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

 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
*/
/*

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.
*/
/*


 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 2018 Contributors (https://github.com/rrweb-io/rrweb/graphs/contributors) and SmartX Inc.
 SPDX-License-Identifier: MIT
*/
/*

 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 CZS,jwT,GEi,Vq5,i9Z,JsT,GE,b9i,Qwf,iZ,bZ,IAS,Eio,ZA,XS,WWI,tq9,aAB,wI,H9w,lA9,Bo,NIT,SBi,viI,h5T,e5w,dfi,swf,gi9,R5T,TIS,FE,b8,nP,KWq,u8,z7,DfW,tO,XE,mfW,C8E,cu,AO,F$Z,$o9,bPW,sm,zyA,QlB,Pu,Iuw,EST,W$T,g2,nSI,T7,auq,HPE,OPi,Er,XuT,wuZ,IL,yOo,zh,ZPT,N2W,cOB,eyT,doE,N3,qmT,sli,P8B,gSB,Rys,T2I,oSS,Doi,puT,jLT,Ghf,itZ,uMo,QLs,zxW,x_,IrE,U39,q3,lri,Otf,Zto,XVA,NWS,PV,Ymw,gW,RL,Y_,wVo,oL,LdZ,MUf,SrW,pt,BWT,v_A,frw,hxB,Alo,clT,exZ,d3T,x3E,Kt,qrB,g_S,YrI,o_S,i0,Kdi,m3B,$l,FYw,iTZ,pV5,Jzw,bTB,nlA,tSi,
QnS,kBS,HTo,l0S,ZTq,N9w,MS5,SLT,vlI,h_Z,e_B,x_w,snw,P09,YLT,ph9,M_,CiE,FbE,GOE,ch,Az,d9,TB,D0,pT,zdq,Vy,EOS,a6B,UaS,HvA,l6w,zO,yW5,Ip,Ea,Ww,tW,NaE,OvT,Xwq,wwW,M9E,LbB,Baf,vOi,f6S,cWT,Hw,Ua,AWS,edW,da9,spq,xas,qaq,PiA,gOw,Lv,Bw,vw,fv,AW,Yaq,e9,oOZ,maq,xO,ChA,jRo,FiT,Pw,Gkf,Vyq,iAB,Rp,bAw,op,z0f,QR5,ra,EfB,IiE,Wio,tyi,ai5,kkB,pv,Ulw,HA9,mb,lio,yGw,CA,jy,Ff,Gk,ZAS,OAT,NS5,VS,wj5,MyZ,Sso,JG,bh,uh,zk,QS,IR,Liq,BSA,fiZ,h0o,AGS,e0w,dlo,xl5,sRq,qsq,aR,PhT,gfo,Ys5,TSB,ofW,rGi,KiT,Dlq,pjo,Hj,mlf,Zi,Nl,Czo,
GIw,VoW,ifw,$di,bfZ,nd5,Iai,Eds,Wgi,too,aaZ,kI9,Udw,ZfB,wS,NGB,Of9,XkE,wk9,Mo5,SDW,BG5,gd9,Rns,YDo,rVB,KgZ,cj,DdW,Cb9,Gl9,VEi,iBW,J2B,$0E,bBZ,nKf,u59,QXW,IBf,jXw,EKw,WvI,tEZ,aBW,klE,U0o,HBB,lBI,y2E,XpS,N0W,Sq5,wpA,MEB,vKE,fBq,hls,Lv5,A2I,B0T,d0E,Cf,x0w,F_,Vf,sXB,Pbq,gK9,T0q,GFw,r2Z,oKf,D0I,m05,KvZ,nnA,JgB,uFi,z7q,QDW,INW,Eni,t_S,WNq,aNo,kFB,U4Z,HW9,ygB,NiW,OW9,XQZ,M_B,wQI,sDs,bz,q0E,gno,R7q,Y0q,Tii,onI,KN9,D4s,pQT,tV,aM,m4o,iDW,Hk,lz,nUB,zB9,l9f,X_,Nj9,ODZ,SwS,wDf,MPB,Bk,Lxf,Bjq,f9s,hBW,cyo,Ayo,eB9,
deZ,xeI,qw9,PHT,RBE,gUI,oUT,sD,gG,Kxq,DeE,pDT,meq,Cwq,jaA,GnB,iOA,VMZ,Gl,ib,WpZ,nB,ls9,ynI,ub,NT9,ZOA,fsB,h85,cni,e8B,qtE,gx9,R8w,YtI,TTI,rnB,DMI,pgw,Eq,CST,kK,Fhf,Gfq,VQo,J5E,j1s,mMs,i1s,t2,b1E,Q1B,uPI,Who,tQs,kfB,U1f,eK5,d1i,Oq,x1q,q1q,s1I,PSi,RKB,M0,D19,GAW,JtT,icI,nyB,vp,Qx5,cp,xK,d0,tWB,zsA,aeS,UwE,Hc9,Pp,ZcI,YK,Tl,Xv5,S8f,BRf,vy5,feE,oX,hsB,r0,cto,esT,dw9,xwi,sxI,P9q,pB,gyA,RsZ,FF,iR,oyS,rtq,KOo,Dwq,Cnf,j6Z,GH9,V3T,ziw,Q6W,b_w,Evw,W9o,t3w,tg,kn,U0,H_q,lcI,y1,yus,Z_w,Nt5,O_I,wSq,M3Z,SHf,L9Z,
XSS,Btf,O0,fc9,dk9,XF,ei9,xk9,vvs,s6i,M4,PnA,gvB,Riq,YHf,ov9,Tts,ruf,pSW,K9I,Cmf,JrB,bX9,uw5,IQA,Qo5,zQW,E6s,tTB,k_s,aQW,HXi,di,yrS,ZXS,NzI,OXi,MTZ,LEI,S5i,Bzs,v6W,PQ,fQS,hQZ,ArE,dUI,q5A,g6q,Pmq,uH,RQq,eQT,p9Z,CQw,jQE,FyS,ty,GUA,ils,blo,zRi,uIS,WyT,tjq,a8i,kUs,Hlw,Ol5,l89,Zls,NhA,XA5,wAf,SZB,Mjo,BhS,Lys,LD,vBi,hRT,c3S,xVs,dj,xU,sQ5,qZ9,sw,YZA,R8,YU,TN,KyI,o8,mVW,D9,CKq,jAW,FDE,Gcw,CO,VNo,i7w,J4I,b7f,u09,Ib9,WDw,uw,tNT,abW,kcS,UWS,H7T,lbW,y4i,Z7q,Ia,XYS,wYo,MNf,S3A,LDo,Bd9,v2w,fbB,hO9,c4q,A4Z,eOI,
dW5,lw,DWE,pYo,yn,Zs,NM,mWT,CE5,jtf,F5s,Gtf,Vv9,id9,upi,zuZ,QtE,Itf,ETT,MM,LO,Bg,vg,cg,An,eM,tvs,xx,ktq,st,UzZ,HdZ,qM,ltE,yRA,ZdI,vTo,huB,xzI,gTw,PE9,fto,Ru9,oTT,b59,CPB,I5i,FmW,QNw,Ezs,oa,trw,KO,kpf,UrB,l5q,yvW,Z5w,O59,mp,wbW,Mrf,SAA,Lm5,BkB,vzZ,f5Z,XbS,AvT,eGZ,dr5,jQ,RGq,YAA,gz5,oz5,rvS,Dro,pb5,KmA,iyf,$DA,neW,ztZ,zf,kST,tRE,aDq,ZyW,Oyo,X65,w69,MR9,S9E,LrA,lS,xDo,q9A,eti,ACq,sPi,vef,geS,jeZ,TQ5,oe9,rCW,zIf,IHs,uXE,UGw,nJs,BQB,kb9,Y9W,C5I,Qef,PaZ,hts,fDB,cCW,dDE,bZB,xw,fHE,cMA,AMZ,eI9,dG9,oJq,CC5,
jyE,K1,G3w,JmZ,uNE,nbZ,Qyq,IRA,WeA,aRW,tV5,k3I,u9,UhT,HYZ,ymf,lRw,zA,MVS,wl5,XlB,vbs,SIo,fRi,Bv9,hN9,cmE,xhE,eN9,dho,qIB,RNE,YIA,rm5,Kew,DhZ,plf,CdT,F8q,ax,VZs,$xS,i3o,b35,Qvs,IFB,tZ5,kZT,y3,Ze,ykI,Z3s,Nw,O8,NJs,XV,wR,O35,Mw,Xx9,SW,wxo,MZA,Bv,SpT,L8i,BJ9,vZ5,fFf,ckT,h1Z,e1w,svi,xxT,qpw,Pdo,Ak5,gZI,TJE,YpB,dxf,oZS,rkT,At,K8B,pxf,DxW,mxT,CVo,F4E,jE9,GCi,dR,iVi,J6I,VuE,bVf,nCB,uDZ,ECZ,aoq,y6o,Xsf,xy,SdI,L4o,s8,Bp9,Rx,Yy,eTS,Pv,De,dbW,xbT,qdw,PVB,RTS,TpE,oCi,r6B,K4s,mb5,VXi,F7f,psI,i2S,Jio,j3,GGZ,$5I,
V9,b2s,nLs,uhS,zqB,W7q,Q3A,ELS,U5o,H2I,O29,Nns,MXW,hqS,ciq,eqA,x5I,s39,PgZ,gLo,Rqi,Tnf,oLw,riE,pcI,FSi,Gi5,m5T,iko,$E9,J8T,VIT,bks,udo,zXS,QFB,Inw,Ek9,a6,kv,y9,Nk,anf,kiB,Hkw,ZkE,OH,XL,N8o,wt,wNi,MIZ,SVA,S3,hXB,dEi,sF5,qVo,PGZ,RXI,YVW,T8S,KSA,BS,DEZ,CTB,vS,j5f,iCI,f_,bCf,hu,e3,dt,n8i,zPq,u3Z,Ifq,E8E,WAE,tLZ,Q5I,lfi,yPT,N1E,Xdi,LAo,SWS,B1i,ffq,hPT,cPE,APi,ePf,dX5,xXw,PTZ,s5q,gt,RPs,R6,YWw,TH,o6,T1o,o8Z,rPS,KAf,DXi,rt,pdB,mXE,Cx5,jqo,VBT,i4q,JcE,$YT,b49,u4E,n0Z,K_,Qq5,E0S,Wl9,tBI,adA,H49,yci,CX,Nc5,
XeT,weq,MBB,Svo,Lli,BcA,v0A,fdE,ldE,Z4Z,hmW,cco,xYE,sqq,qvw,PxW,Vhq,$qq,bxW,npi,JB9,WHW,k$E,th5,Uqs,yBT,NVA,XaW,LHI,Sk9,hwB,um,cBf,ABE,z_,ew9,Qz,dq9,xqs,ssw,Pe5,qkI,gpB,Rwf,YkW,TVS,CNZ,FFf,V$T,GTW,Dqw,rBI,JLB,baW,IE5,Ers,aEB,ZaI,Oa9,tr,X3W,M$o,Sz5,B3Z,cLf,diq,qzS,PNq,grw,RSw,KFI,Yzf,CJs,jYA,Fwq,VHZ,U5,iq9,$7f,bqq,nHZ,usW,zas,QY5,IwZ,WwA,tHS,NU,awW,kDf,HqS,Xw,U7W,yYA,XPs,ST,wPA,MHo,SXB,vHE,fwT,Lwo,cYf,x79,sYq,qXW,c9,PJ5,Tgs,oHo,x6,D7f,rYI,KwB,CuB,jdZ,FVq,Jas,nDT,bHs,$Sw,u9q,QdW,IYs,kLw,EDT,USS,lYS,
HHE,wfi,LVS,vDA,hbT,dS9,YRB,HA,oDE,pfw,CWs,kB,Ll,JKT,uuE,nXw,Qjo,Ipw,WoS,EXS,tlA,apZ,BA,stZ,$Js,z$W,bQf,MV,HQB,lpi,yKw,ZQ9,Now,X09,w0E,MlS,SfT,LoW,PA,Bo9,vXT,fps,h$W,cK5,TU,AKI,xJE,qfW,PWA,Koq,p0E,mJE,CMZ,Fno,GWE,F0,iSs,JhI,$Z5,bSW,nsE,uxw,Qm5,Eso,t8S,aS5,ZSE,lSs,N6B,w$E,M8B,n7,SiS,Lnf,B6S,hFT,AhT,chs,dZA,smZ,IA,PMT,gsW,qiZ,RF5,YiT,oss,Kn9,rh5,DZw,T6A,p$q,mZE,CcS,jkS,FPo,GVf,Vpw,iJw,JSI,naT,bJT,uew,QkE,zhs,E3,I7i,tpE,HJo,Ea9,ZJf,Nqw,OJi,Xnw,SbA,ASZ,ehf,xQB,skB,wd,Rh5,rSS,pnZ,MW,FMB,mQW,CFo,jri,G6i,
bKo,f7,nPq,sri,PFS,gPZ,RJw,YMZ,oPT,rTT,Vtf,CYs,FkT,JJA,iRo,$jo,bRB,uiT,QfA,EWo,ttB,a2i,UjB,SYB,vWA,hvI,cJo,AJs,ev9,djI,sfi,qYW,Rvo,YYI,TBZ,oWi,rJE,Kks,Dji,pZB,j7T,iEw,Y2,Tc,oA,J9E,$sw,Db,n9B,kv5,N$B,y99,s7I,qns,PpA,z25,aOA,E9E,R2B,Yn5,T$E,o9T,HET,r9W,DsT,mso,Fu5,Gsq,$T,QOZ,EVE,tK5,aMq,Hps,yZS,lMq,Opf,wIA,h3T,vVi,SGA,fMA,LuA,cZW,xRW,yk,Zt,rZS,YGi,DRo,pIi,CLf,jh5,O6,F_q,i$W,Jwf,$Oo,b$w,tz9,W_w,fd,ywW,xT,NMq,O$f,qz,X1f,w1W,Mzs,Shq,L_f,BMo,vN9,fZE,hUf,cwo,Awq,eUq,dOT,xOs,sho,Pr,qhW,PLI,gNI,RUs,Yhf,TMw,
oNf,rww,K_i,DOf,p1f,mO9,Rt,j_q,Go5,ief,beI,zCB,Q_A,Ijs,W0A,aj5,koI,UnS,FU,N4S,yEi,Oef,XXS,wX5,L0s,B4q,vF5,hCZ,EA,AEf,QG,dnW,xnT,Wb,s_i,qCI,Pfi,gFA,aN,oFo,K0I,jSo,COT,GmT,V0q,Nr,i6S,Jpq,b6o,ubs,zjA,IJq,Ejo,njA,WZ5,H69,NbE,O6Z,OA,Xqi,wqZ,vjB,M0A,LZE,BbS,dAS,hj9,xAs,qUZ,gjA,Rjq,YUT,Tbf,ojB,rp9,DAA,pq9,mAW,CrE,jiq,GQE,iwW,bww,Qii,WQA,aTi,HwE,vb,lTT,yII,ZwE,NYi,OwI,wOo,Mg5,S2E,LQi,BYf,v1W,fT9,hEW,cIT,AI5,eEf,xL9,dLs,Prs,REs,cb,Y2W,rIA,o1T,pOf,mLi,C6q,F3E,iFq,bFT,$yW,VbS,zWA,uv5,tbo,QHS,sA,EqS,ZF9,UyE,
HFo,l3i,y7s,N_S,X4o,OFw,qr,Pb,f3B,Mbq,vq9,B_w,SJo,L3Z,A7Z,dyf,sHS,xyw,qJi,YJE,RWI,oqA,K3q,Dys,r7S,p4s,ClA,my5,FRf,iGT,rk,J$q,$Bs,uBs,WRZ,lzE,D5,ZGo,wR5,BNE,LRi,MdT,Sc9,F1,c$9,vRB,fzw,A$f,dBS,eAo,qcq,PlE,RAW,YcA,TNw,oR9,r$Z,DBf,pR9,tC,CvZ,jBs,iLZ,JQA,la,$9T,n5T,kPI,X1,IvS,avo,E5q,WzE,yQA,lvB,XKi,ZLI,wKT,M4W,MD,Lzf,BeW,v5f,SNZ,B6,fvs,SR,eLS,RL9,YNo,TeE,o5B,rQq,Kzw,Cos,pKI,m9Z,D9B,FIA,izW,bz9,n3i,zoq,E39,QTS,IlT,WI5,alZ,kas,U6w,Hzs,llI,yxS,NL9,xe,Xm9,SP5,M2W,BLo,LIw,v3s,flT,cx5,Axq,TLB,RoW,KIA,D6Z,GrA,
VOI,ijw,JeA,$I5,bjI,zfs,QUo,IGB,WGs,tOo,aGA,kro,UIo,Hjs,yes,ZjS,NxZ,jn,MOf,wE5,XEE,Ojs,LGA,fGW,Bxq,ceE,Ae9,efs,dIZ,xIo,sUW,qef,PA5,ooZ,goS,Rfw,Yes,reW,KG9,DIA,Tx9,JM,C$B,FcE,jZT,b5,VkB,iI9,J_i,Gg5,$8Z,bIq,nMB,uRI,zps,IVB,EM5,WcI,tkA,U8o,kgE,NyA,aV5,u5,OIT,HIW,ZIo,w7I,Mk5,SSS,Lc9,Bys,fV5,hpW,c_o,epo,x8T,qSB,gMZ,r_T,TyB,oMS,YSE,Rpq,KcS,D8i,p7i,m89,NG,G9B,iiZ,JU5,$gw,biq,nAZ,uOi,XX,wE,WLI,QKZ,zMi,IyB,X5S,Nuw,EAw,ZiZ,fyq,hMf,cUE,AUi,eMI,sKs,P3A,RME,TuA,oA9,rUZ,mgS,p5B,CtT,FKw,oe,iNZ,JNZ,$Fi,bNq,nuA,u8E,
zzs,KZ,DH,Eu9,WKB,a_T,HNo,Xtq,BrS,LKq,vu5,hzT,cNE,ANw,ezB,dFT,xFZ,G3,sbI,oui,rNZ,RzB,guw,TrB,Yyf,C2A,jcs,FUT,Guo,V1q,iuE,buT,$vA,JDq,akI,WUo,kuZ,Uvi,HuE,Zu9,N5w,lki,yD9,vQw,hVw,ADw,dvf,scT,P29,T5T,oQi,rDo,p2T,Dvs,KUw,mvT,CqS,j0Z,FtS,G5S,VAW,iso,JXW,$cZ,bs9,zZT,Q0W,IPi,Eh5,WtI,tAw,k5o,Ucs,HsS,lPw,yX5,ZsI,wJZ,MA5,LtB,vhE,BX9,fP5,Wl,hZI,cXw,AXZ,eZ9,qKB,s0I,PqS,gho,RZS,YKT,rXw,DcA,pJE,mcI,C_A,jJo,Ffw,Gy9,Vw5,iU9,Jji,bUq,$Ki,nYw,uWI,zeZ,QJB,IKi,EYA,WfW,tw5,ZR,kyq,UKZ,lKI,yjT,ZUI,NsE,OUS,XTi,MwS,SEB,Bs9,
wv,hew,xKA,eew,Aj5,cjZ,dKE,sJS,qEZ,P_s,YET,Ts9,oY5,rjT,DKT,pTS,mK5,j$Z,C4B,FT9,GM9,VYZ,$t5,boS,nIq,uyf,zYs,Q$i,WTS,tYs,cl,yFo,ZoS,Oow,MY5,w_5,S7T,LTE,Am,dv,vIE,fqB,qh,Pl,eYf,hYo,cFo,s$i,q7E,P45,gIi,oIZ,KTf,Dtw,p_I,mtZ,CUi,FXi,GK9,VcA,i8q,JfE,$$i,b8E,Yb,nmS,uzZ,oy,z9S,Q9E,Ixi,EmZ,WXS,tcs,DR,pY,axT,kKZ,me,U$q,H8I,lxT,yf9,NOi,O85,wGA,vms,BOI,LXI,fxS,h9i,qxS,e99,d$W,x$o,AfW,s9w,jZ,R99,YxI,TOB,om5,rfZ,D$I,m$W,Fa5,Jqo,VD5,Fc,GXq,z4B,Imf,GZ,E7w,WaB,tD5,kXo,UC9,HmW,lmq,ZmS,NC9,Omi,wFo,MDT,LaZ,BCA,AqA,cqZ,
dCw,xCZ,s2B,PDf,g7Z,R4f,YuS,TCI,pFs,mCf,CBW,jzo,Vfs,$PI,zZ,Iv,Q6,Ep,bMI,n49,uZE,zDo,QzA,E4E,WqZ,tff,aCT,UPo,HM9,lCq,Wx,y0S,ZMT,XMs,wMW,tk,av,Lqw,Mff,BF9,hDA,v4Z,c0E,eDE,ld,dPZ,xPi,PBW,RDT,y6,TFI,o4W,r0i,KqI,DPA,pMZ,mPi,CIo,Vm9,ibq,bbo,JoA,$NT,n$5,I$B,ukS,QVS,E$5,WJW,tm5,UNS,HbW,l$q,ZbS,NHw,LJ5,Sl5,Ao9,xN9,Bx,sVo,PRE,qlS,PIw,Rrs,o$q,roI,FjT,Gdo,VxE,i0E,J1o,$pZ,ngS,u79,Qgf,EgE,zc5,IIE,txT,Wjo,kdq,lIE,Upo,y1S,Z0B,Nm9,O0s,Xis,wii,S$S,MxW,fI9,A1A,hcE,ecT,dpT,xpB,sp,sgB,q$i,Px,ggA,Pyw,Rcs,TmI,Y$w,DpE,pio,
Cji,jCS,G2A,V5S,inB,JdE,nGW,zgi,EGw,IXA,W69,t5f,UTB,STI,Znf,Bww,vGq,hgW,cdZ,xTI,sCS,qTW,Pjq,gGI,Rgq,Twf,oGB,rdI,DTi,K6S,pzS,VFW,ig9,JAB,$uS,bgf,nEB,unq,QGo,WCA,tFZ,agi,kq5,UuS,Hgo,Zg5,yAA,XHB,MFZ,SQ5,LCB,BAq,vES,h6Z,fgo,AAW,qQT,YQT,R6Z,TAA,oEs,rAE,DuS,IE,muw,aE,jIT,Gx9,VJf,zkq,I4W,tJW,kxS,U2f,l4T,yHI,Zh9,OhI,wCs,MJf,LsS,f4i,vtw,BZS,Zo,cHT,hki,AHW,ek9,d2S,x2B,sI5,qgB,P1Z,Rko,YgT,TZT,ot9,rHs,KsE,D2o,pCE,m2f,jWW,FBq,uoo,zHs,QW5,Ec5,WBT,teo,UH5,LV,OrZ,Xyq,Meq,SoW,LBq,BUI,vcW,vs,VH,fV,cs,PXB,gc9,TUq,rbf,
ocq,eu,KB5,DH9,py9;CZS=function(){var C,F;return typeof CSS!=="undefined"&&((F=(C=CSS).supports)==null?void 0:F.call(C,"selector(:has(*))"))};
jwT=function(C){return C.visibility!=="hidden"&&C.display!=="none"};
GEi=function(C){if(CZS()||C.tagName!=="DETAILS"?!C.matches(FWo):C.querySelector("summary")!==null)return-1;C=C.getAttribute("tabindex")||"0";return Number(C)};
Vq5=function(C){return C.some(function(F){return GEi(F)>0})};
i9Z=function(C){if(C.textContent||C.ariaLabel)return!0;if(C instanceof HTMLInputElement){if(!C.labels)return!1;C=_.u(C.labels);for(var F=C.next();!F.done;F=C.next())if(F.value.textContent)return!0}return!1};
JsT=function(C){return C.sort(function(F,G){return GEi(G)-GEi(F)})};
_.$fs=function(C){C=Array.from(C.querySelectorAll(FWo)).filter(function(F){return(jwT(F.style)?jwT(window.getComputedStyle(F)):!1)&&i9Z(F)});
return Vq5(C)?JsT(C):C};
_.FS=function(C,F){if(Error.captureStackTrace)Error.captureStackTrace(this,_.FS);else{var G=Error().stack;G&&(this.stack=G)}C&&(this.message=String(C));F!==void 0&&(this.cause=F)};
GE=function(){throw Error("E");};
b9i=function(C,F){F=String.fromCharCode.apply(null,F);return C==null?F:C+F};
Qwf=function(C){var F=!1;F=F===void 0?!1:F;if(ni9){if(F&&(uS9?!C.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(C)))throw Error("F");C=(z5i||(z5i=new TextEncoder)).encode(C)}else{for(var G=0,V=new Uint8Array(3*C.length),J=0;J<C.length;J++){var b=C.charCodeAt(J);if(b<128)V[G++]=b;else{if(b<2048)V[G++]=b>>6|192;else{if(b>=55296&&b<=57343){if(b<=56319&&J<C.length){var z=C.charCodeAt(++J);if(z>=56320&&z<=57343){b=(b-55296)*1024+z-56320+65536;V[G++]=b>>18|
240;V[G++]=b>>12&63|128;V[G++]=b>>6&63|128;V[G++]=b&63|128;continue}else J--}if(F)throw Error("F");b=65533}V[G++]=b>>12|224;V[G++]=b>>6&63|128}V[G++]=b&63|128}}C=G===V.length?V:V.subarray(0,G)}return C};
iZ=function(C){_.VT.setTimeout(function(){throw C;},0)};
_.Js=function(C,F){return C.lastIndexOf(F,0)==0};
bZ=function(C,F){var G=C.length-F.length;return G>=0&&C.indexOf(F,G)==G};
_.uZ=function(C){return/^[\s\xa0]*$/.test(C)};
_.zE=function(C,F){return C.indexOf(F)!=-1};
_.QT=function(C,F){return _.zE(C.toLowerCase(),F.toLowerCase())};
_.ts=function(C,F){var G=0;C=Iw(String(C)).split(".");F=Iw(String(F)).split(".");for(var V=Math.max(C.length,F.length),J=0;G==0&&J<V;J++){var b=C[J]||"",z=F[J]||"";do{b=/(\d*)(\D*)(.*)/.exec(b)||["","","",""];z=/(\d*)(\D*)(.*)/.exec(z)||["","","",""];if(b[0].length==0&&z[0].length==0)break;G=IAS(b[1].length==0?0:parseInt(b[1],10),z[1].length==0?0:parseInt(z[1],10))||IAS(b[2].length==0,z[2].length==0)||IAS(b[2],z[2]);b=b[3];z=z[3]}while(G==0)}return G};
IAS=function(C,F){return C<F?-1:C>F?1:0};
_.UB=function(){var C=_.VT.navigator;return C&&(C=C.userAgent)?C:""};
Eio=function(C){if(!Ho||!yT)return!1;for(var F=0;F<yT.brands.length;F++){var G=yT.brands[F].brand;if(G&&_.zE(G,C))return!0}return!1};
ZA=function(C){return _.zE(_.UB(),C)};
XS=function(){return Ho?!!yT&&yT.brands.length>0:!1};
WWI=function(){return XS()?!1:ZA("Opera")};
tq9=function(){return XS()?!1:ZA("Trident")||ZA("MSIE")};
aAB=function(){return XS()?Eio("Microsoft Edge"):ZA("Edg/")};
wI=function(){return ZA("Firefox")||ZA("FxiOS")};
_.kEs=function(){return ZA("Safari")&&!(_.Mf()||(XS()?0:ZA("Coast"))||WWI()||(XS()?0:ZA("Edge"))||aAB()||(XS()?Eio("Opera"):ZA("OPR"))||wI()||ZA("Silk")||ZA("Android"))};
_.Mf=function(){return XS()?Eio("Chromium"):(ZA("Chrome")||ZA("CriOS"))&&!(XS()?0:ZA("Edge"))||ZA("Silk")};
_.Ufo=function(){return ZA("Android")&&!(_.Mf()||wI()||WWI()||ZA("Silk"))};
H9w=function(C){var F={};C.forEach(function(G){F[G[0]]=G[1]});
return function(G){return F[G.find(function(V){return V in F})]||""}};
lA9=function(C){var F=_.UB();if(C==="Internet Explorer"){if(tq9())if((C=/rv: *([\d\.]*)/.exec(F))&&C[1])F=C[1];else{C="";var G=/MSIE +([\d\.]+)/.exec(F);if(G&&G[1])if(F=/Trident\/(\d.\d)/.exec(F),G[1]=="7.0")if(F&&F[1])switch(F[1]){case "4.0":C="8.0";break;case "5.0":C="9.0";break;case "6.0":C="10.0";break;case "7.0":C="11.0"}else C="7.0";else C=G[1];F=C}else F="";return F}var V=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");G=[];for(var J;J=V.exec(F);)G.push([J[1],J[2],J[3]||void 0]);
F=H9w(G);switch(C){case "Opera":if(WWI())return F(["Version","Opera"]);if(XS()?Eio("Opera"):ZA("OPR"))return F(["OPR"]);break;case "Microsoft Edge":if(XS()?0:ZA("Edge"))return F(["Edge"]);if(aAB())return F(["Edg"]);break;case "Chromium":if(_.Mf())return F(["Chrome","CriOS","HeadlessChrome"])}return C==="Firefox"&&wI()||C==="Safari"&&_.kEs()||C==="Android Browser"&&_.Ufo()||C==="Silk"&&ZA("Silk")?(F=G[2])&&F[1]||"":""};
_.ysZ=function(C){if(XS()&&C!=="Silk"){var F=yT.brands.find(function(G){return G.brand===C});
if(!F||!F.version)return NaN;F=F.version.split(".")}else{F=lA9(C);if(F==="")return NaN;F=F.split(".")}return F.length===0?NaN:Number(F[0])};
Bo=function(){return Ho?!!yT&&!!yT.platform:!1};
_.Z9W=function(){return Bo()?yT.platform==="Android":ZA("Android")};
NIT=function(){return ZA("iPhone")&&!ZA("iPod")&&!ZA("iPad")};
_.vo=function(){return NIT()||ZA("iPad")||ZA("iPod")};
_.O9T=function(){return Bo()?yT.platform==="macOS":ZA("Macintosh")};
_.XoE=function(){return Bo()?yT.platform==="Windows":ZA("Windows")};
_.woI=function(){return Bo()?yT.platform==="Chrome OS":ZA("CrOS")};
_.hs=function(C){return C[C.length-1]};
_.co=function(C,F,G){F=_.Mq5(C,F,G);return F<0?null:typeof C==="string"?C.charAt(F):C[F]};
_.Mq5=function(C,F,G){for(var V=C.length,J=typeof C==="string"?C.split(""):C,b=0;b<V;b++)if(b in J&&F.call(G,J[b],b,C))return b;return-1};
SBi=function(C){for(var F=_.As,G=typeof C==="string"?C.split(""):C,V=C.length-1;V>=0;V--)if(V in G&&F.call(void 0,G[V],V,C))return V;return-1};
_.sB=function(C,F){return _.dI(C,F)>=0};
_.LWi=function(C,F){_.sB(C,F)||C.push(F)};
_.qf=function(C,F){F=_.dI(C,F);var G;(G=F>=0)&&_.BIT(C,F);return G};
_.BIT=function(C,F){Array.prototype.splice.call(C,F,1)};
_.Po=function(C){var F=C.length;if(F>0){for(var G=Array(F),V=0;V<F;V++)G[V]=C[V];return G}return[]};
_.Rw=function(C,F){for(var G=1;G<arguments.length;G++){var V=arguments[G];if(_.gI(V)){var J=C.length||0,b=V.length||0;C.length=J+b;for(var z=0;z<b;z++)C[J+z]=V[z]}else C.push(V)}};
_.fA9=function(C,F,G,V){Array.prototype.splice.apply(C,viI(arguments,1))};
viI=function(C,F,G){return arguments.length<=2?Array.prototype.slice.call(C,F):Array.prototype.slice.call(C,F,G)};
h5T=function(C,F){F=F||C;for(var G=0,V=0,J={};V<C.length;){var b=C[V++],z=_.TE(b)?"o"+_.rI(b):(typeof b).charAt(0)+b;Object.prototype.hasOwnProperty.call(J,z)||(J[z]=!0,F[G++]=b)}F.length=G};
_.Asq=function(C,F,G){G=G||_.csI;for(var V=0,J=C.length,b;V<J;){var z=V+(J-V>>>1);var Q=G(F,C[z]);Q>0?V=z+1:(J=z,b=!Q)}return b?V:-V-1};
_.K9=function(C,F,G){if(!_.gI(C)||!_.gI(F)||C.length!=F.length)return!1;var V=C.length;G=G||e5w;for(var J=0;J<V;J++)if(!G(C[J],F[J]))return!1;return!0};
_.csI=function(C,F){return C>F?1:C<F?-1:0};
e5w=function(C,F){return C===F};
dfi=function(C,F,G){F=Array.prototype.splice.call(C,F,1);Array.prototype.splice.call(C,G,0,F[0])};
swf=function(C){return xfW[C]||""};
gi9=function(C){if(!qBs)return _.p9(C);C=PZS.test(C)?C.replace(PZS,swf):C;C=atob(C);for(var F=new Uint8Array(C.length),G=0;G<C.length;G++)F[G]=C.charCodeAt(G);return F};
R5T=function(C,F){C.__closure__error__context__984382||(C.__closure__error__context__984382={});C.__closure__error__context__984382.severity=F};
_.CP=function(C){C=Error(C);R5T(C,"warning");return C};
TIS=function(C,F){if(C!=null){var G;var V=(G=YBf)!=null?G:YBf={};G=V[C]||0;G>=F||(V[C]=G+1,C=Error(),R5T(C,"incident"),iZ(C))}};
FE=function(C,F,G){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(G===void 0?0:G)&&Symbol.for&&C?Symbol.for(C):C!=null?Symbol(C):Symbol():F};
b8=function(C,F){G7||_.JO in C||oiZ(C,rsB);C[_.JO]|=F};
nP=function(C,F){G7||_.JO in C||oiZ(C,rsB);C[_.JO]=F};
KWq=function(C){if(4&C)return 512&C?512:1024&C?1024:0};
u8=function(C){b8(C,34);return C};
z7=function(C){b8(C,8192);return C};
DfW=function(C){b8(C,32);return C};
tO=function(){return typeof BigInt==="function"};
XE=function(C,F){return F===void 0?C.copyOnWrite!==l8&&!!(2&(C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.JO]|0)):!!(2&F)&&C.copyOnWrite!==l8};
_.fP=function(C,F){if(C!=null)if(typeof C==="string")C=C?new Mo(C,SG):_.LP();else if(C.constructor!==Mo)if(pof&&C!=null&&C instanceof Uint8Array)C=C.length?new Mo(new Uint8Array(C),SG):_.LP();else{if(!F)throw Error();C=void 0}return C};
mfW=function(C,F){if(typeof F!=="number"||F<0||F>=C.length)throw Error();};
C8E=function(C,F,G){var V=F&128?0:-1,J=C.length,b;if(b=!!J)b=C[J-1],b=b!=null&&typeof b==="object"&&b.constructor===Object;var z=J+(b?-1:0);for(F=F&128?1:0;F<z;F++)G(F-V,C[F]);if(b){C=C[J-1];for(var Q in C)!isNaN(Q)&&G(+Q,C[Q])}};
cu=function(C){return C&128?hO:void 0};
AO=function(C){C.isGuard_doNotManuallySetPrettyPlease=!0;return C};
F$Z=function(){var C=jl9;return AO(function(F){for(var G in C)if(F===C[G]&&!/^[0-9]+$/.test(G))return!0;return!1})};
_.eG=function(C){var F=C;if(G7q(F)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(F))throw Error(String(F));}else if(VGS(F)&&!Number.isSafeInteger(F))throw Error(String(F));return iPW?BigInt(C):C=JOB(C)?C?"1":"0":G7q(C)?C.trim()||"0":String(C)};
$o9=function(C,F){if(C.length>F.length)return!1;if(C.length<F.length||C===F)return!0;for(var G=0;G<C.length;G++){var V=C[G],J=F[G];if(V>J)return!1;if(V<J)return!0}};
bPW=function(C){var F=C>>>0;d2=F;xS=(C-F)/4294967296>>>0};
sm=function(C){if(C<0){bPW(-C);var F=_.u(nSI(d2,xS));C=F.next().value;F=F.next().value;d2=C>>>0;xS=F>>>0}else bPW(C)};
zyA=function(C){var F=uEB||(uEB=new DataView(new ArrayBuffer(8)));F.setFloat32(0,+C,!0);xS=0;d2=F.getUint32(0,!0)};
QlB=function(C,F){var G=F*4294967296+(C>>>0);return Number.isSafeInteger(G)?G:_.qo(C,F)};
Pu=function(C,F){var G=F&2147483648;G&&(C=~C+1>>>0,F=~F>>>0,C==0&&(F=F+1>>>0));C=QlB(C,F);return typeof C==="number"?G?-C:C:G?"-"+C:C};
Iuw=function(C){var F=d2,G=xS,V=G>>31;G=(G<<1|F>>>31)^V;C(F<<1^V,G)};
EST=function(C,F){var G=-(C&1);C=(C>>>1|F<<31)^G;return Pu(C,F>>>1^G)};
_.qo=function(C,F){F>>>=0;C>>>=0;if(F<=2097151)var G=""+(4294967296*F+C);else tO()?G=""+(BigInt(F)<<BigInt(32)|BigInt(C)):(G=(C>>>24|F<<8)&16777215,F=F>>16&65535,C=(C&16777215)+G*6777216+F*6710656,G+=F*8147497,F*=2,C>=1E7&&(G+=C/1E7>>>0,C%=1E7),G>=1E7&&(F+=G/1E7>>>0,G%=1E7),G=F+W$T(G)+W$T(C));return G};
W$T=function(C){C=String(C);return"0000000".slice(C.length)+C};
_.tG9=function(C,F){F&2147483648?tO()?C=""+(BigInt(F|0)<<BigInt(32)|BigInt(C>>>0)):(F=_.u(nSI(C,F)),C=F.next().value,F=F.next().value,C="-"+_.qo(C,F)):C=_.qo(C,F);return C};
g2=function(C){if(C.length<16)sm(Number(C));else if(tO())C=BigInt(C),d2=Number(C&BigInt(4294967295))>>>0,xS=Number(C>>BigInt(32)&BigInt(4294967295));else{var F=+(C[0]==="-");xS=d2=0;for(var G=C.length,V=F,J=(G-F)%6+F;J<=G;V=J,J+=6)V=Number(C.slice(V,J)),xS*=1E6,d2=d2*1E6+V,d2>=4294967296&&(xS+=Math.trunc(d2/4294967296),xS>>>=0,d2>>>=0);F&&(F=_.u(nSI(d2,xS)),C=F.next().value,F=F.next().value,d2=C,xS=F)}};
nSI=function(C,F){F=~F;C?C=~C+1:F+=1;return[C,F]};
T7=function(C){return Array.prototype.slice.call(C)};
_.r2=function(C,F){throw Error(F===void 0?"unexpected value "+C+"!":F);};
_.KP=function(C){if(C!=null&&typeof C!=="number")throw Error("L`"+typeof C+"`"+C);return C};
_.Du=function(C){if(C==null||typeof C==="number")return C;if(C==="NaN"||C==="Infinity"||C==="-Infinity")return Number(C)};
auq=function(C){if(C!=null&&typeof C!=="boolean")throw Error("M`"+_.m$(C)+"`"+C);return C};
_.k7I=function(C){if(C==null||typeof C==="boolean")return C;if(typeof C==="number")return!!C};
_.jU=function(C){switch(typeof C){case "bigint":return!0;case "number":return Ct(C);case "string":return Uof.test(C);default:return!1}};
_.Jl=function(C){if(!Ct(C))throw _.CP("enum");return C|0};
_.$_=function(C){return C==null?C:Ct(C)?C|0:void 0};
HPE=function(C){if(typeof C!=="number")throw _.CP("int32");if(!Ct(C))throw _.CP("int32");return C|0};
_.bs=function(C){return C==null?C:HPE(C)};
_.nt=function(C){if(C==null)return C;if(typeof C==="string"&&C)C=+C;else if(typeof C!=="number")return;return Ct(C)?C|0:void 0};
_.luA=function(C){if(C==null)return C;if(typeof C==="string"&&C)C=+C;else if(typeof C!=="number")return;return Ct(C)?C>>>0:void 0};
OPi=function(C){var F=0;F=F===void 0?0:F;if(!_.jU(C))throw _.CP("int64");var G=typeof C;switch(F){case 512:switch(G){case "string":return zh(C);case "bigint":return String(Q8(64,C));default:return yOo(C)}case 1024:switch(G){case "string":return ZPT(C);case "bigint":return _.eG(Q8(64,C));default:return N2W(C)}case 0:switch(G){case "string":return zh(C);case "bigint":return _.eG(Q8(64,C));default:return IL(C)}default:return _.r2(F,"Unknown format requested type for int64")}};
Er=function(C){return C==null?C:OPi(C)};
XuT=function(C){var F=C.length;if(C[0]==="-"?F<20||F===20&&C<="-9223372036854775808":F<19||F===19&&C<="9223372036854775807")return C;g2(C);return _.tG9(d2,xS)};
wuZ=function(C){if(C[0]==="-")var F=!1;else F=C.length,F=F<20?!0:F===20&&C<="18446744073709551615";if(F)return C;g2(C);return _.qo(d2,xS)};
IL=function(C){C=tl(C);aL(C)||(sm(C),C=Pu(d2,xS));return C};
_.MGW=function(C){C=tl(C);C>=0&&aL(C)||(sm(C),C=QlB(d2,xS));return C};
yOo=function(C){C=tl(C);aL(C)?C=String(C):(sm(C),C=_.tG9(d2,xS));return C};
_.Sm5=function(C){C=tl(C);C>=0&&aL(C)?C=String(C):(sm(C),C=_.qo(d2,xS));return C};
zh=function(C){var F=tl(Number(C));if(aL(F))return String(F);F=C.indexOf(".");F!==-1&&(C=C.substring(0,F));return XuT(C)};
ZPT=function(C){var F=tl(Number(C));if(aL(F))return _.eG(F);F=C.indexOf(".");F!==-1&&(C=C.substring(0,F));return tO()?_.eG(Q8(64,BigInt(C))):_.eG(XuT(C))};
N2W=function(C){return aL(C)?_.eG(IL(C)):_.eG(yOo(C))};
_.L$i=function(C){return aL(C)?_.eG(_.MGW(C)):_.eG(_.Sm5(C))};
_.B2T=function(C){var F=tl(Number(C));if(aL(F)&&F>=0)return String(F);F=C.indexOf(".");F!==-1&&(C=C.substring(0,F));return wuZ(C)};
_.vS9=function(C){var F=tl(Number(C));if(aL(F)&&F>=0)return _.eG(F);F=C.indexOf(".");F!==-1&&(C=C.substring(0,F));return tO()?_.eG((0,_.Ur)(64,BigInt(C))):_.eG(wuZ(C))};
_.hys=function(C){if(C==null)return C;if(typeof C==="bigint")return fui(C)?C=Number(C):(C=Q8(64,C),C=fui(C)?Number(C):String(C)),C;if(_.jU(C))return typeof C==="number"?IL(C):zh(C)};
cOB=function(C,F){F=F===void 0?!1:F;var G=typeof C;if(C==null)return C;if(G==="bigint")return String(Q8(64,C));if(_.jU(C))return G==="string"?zh(C):F?yOo(C):IL(C)};
_.AO5=function(C){var F=typeof C;if(C==null)return C;if(F==="bigint")return _.eG(Q8(64,C));if(_.jU(C))return F==="string"?ZPT(C):N2W(C)};
eyT=function(C){if(C==null)return C;var F=typeof C;if(F==="bigint")return String(Q8(64,C));if(_.jU(C)){if(F==="string")return zh(C);if(F==="number")return IL(C)}};
doE=function(C){if(C==null)return C;var F=typeof C;if(F==="bigint")return String((0,_.Ur)(64,C));if(_.jU(C)){if(F==="string")return _.B2T(C);if(F==="number")return _.MGW(C)}};
_.y8=function(C){if(typeof C!=="string")throw Error();return C};
N3=function(C){if(C!=null&&typeof C!=="string")throw Error();return C};
_.Or=function(C){return C==null||typeof C==="string"?C:void 0};
qmT=function(C,F,G,V){if(C!=null&&C[M3]===SU)return C;if(!Array.isArray(C))return G?V&2?F[xoW]||(F[xoW]=sli(F)):new F:void 0;G=C[_.JO]|0;V=G|V&32|V&2;V!==G&&nP(C,V);return new F(C)};
sli=function(C){C=new C;u8(C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return C};
P8B=function(C,F,G){C=F?HPE(C):_.nt(C);return C==null?G?0:void 0:C|0};
gSB=function(C){return C};
Rys=function(C){return C};
T2I=function(C,F,G,V,J,b){C=qmT(C,V,G,b);J&&(C=Ymw(C));return C};
oSS=function(C){return[C,this.get(C)]};
Doi=function(){return rOS||(rOS=new Lt(u8([]),void 0,void 0,void 0,K$T))};
puT=function(C){var F=hl(Al);return F?C[F]:void 0};
jLT=function(C,F){var G=G===void 0?!1:G;if(hl(mow)&&hl(Al)&&void 0===mow){var V=C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=V[Al];if(!J)return;if(J=J.reviveUnknownFields)try{J(V,F,Csw);return}catch(b){iZ(b)}}G&&(C=C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(G=hl(Al))&&G in C&&(C=C[G])&&delete C[F])};
Ghf=function(C,F){var G=hl(Al),V;G7&&G&&((V=C[G])==null?void 0:V[F])!=null&&TIS(Fdo,3)};
itZ=function(C,F){F<100||TIS(VUW,1)};
uMo=function(C,F,G,V){var J=V!==void 0;V=!!V;var b=hl(Al),z;!J&&G7&&b&&(z=C[b])&&Jlw(z,itZ);b=[];var Q=C.length;z=4294967295;var E=!1,t=!!(F&64),k=t?F&128?0:-1:void 0;if(!(F&1)){var U=Q&&C[Q-1];U!=null&&typeof U==="object"&&U.constructor===Object?(Q--,z=Q):U=void 0;if(t&&!(F&128)&&!J){E=!0;var H;z=((H=$3Z)!=null?H:gSB)(z-k,k,C,U,void 0)+k}}F=void 0;for(H=0;H<Q;H++){var l=C[H];if(l!=null&&(l=G(l,V))!=null)if(t&&H>=z){var N=H-k,S=void 0;((S=F)!=null?S:F={})[N]=l}else b[H]=l}if(U)for(var f in U)Q=U[f],
Q!=null&&(Q=G(Q,V))!=null&&(H=+f,l=void 0,t&&!Number.isNaN(H)&&(l=H+k)<z?b[l]=Q:(H=void 0,((H=F)!=null?H:F={})[f]=Q));F&&(E?b.push(F):b[z]=F);J&&hl(Al)&&(C=puT(C))&&C instanceof btW&&(b[Al]=n_T(C));return b};
QLs=function(C){C[0]=zxW(C[0]);C[1]=zxW(C[1]);return C};
zxW=function(C){switch(typeof C){case "number":return Number.isFinite(C)?C:""+C;case "bigint":return fui(C)?Number(C):""+C;case "boolean":return C?1:0;case "object":if(Array.isArray(C)){var F=C[_.JO]|0;return C.length===0&&F&1?void 0:uMo(C,F,zxW)}if(C!=null&&C[M3]===SU)return IrE(C);if(C instanceof Mo){F=C.JSC$8819_value_;if(F==null)C="";else if(typeof F==="string")C=F;else{if(qBs){for(var G="",V=0,J=F.length-10240;V<J;)G+=String.fromCharCode.apply(null,F.subarray(V,V+=10240));G+=String.fromCharCode.apply(null,
V?F.subarray(V):F);F=btoa(G)}else F=_.eU(F);C=C.JSC$8819_value_=F}return C}if(C instanceof Lt)return C=C.size!==0?E_q(C,QLs):void 0,C;return}return C};
x_=function(C,F){if(F){$3Z=F==null||F===gSB||F[Wds]!==tUS?gSB:F;try{return IrE(C)}finally{$3Z=void 0}}return IrE(C)};
IrE=function(C){C=C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return uMo(C,C[_.JO]|0,zxW)};
U39=function(C){switch(typeof C){case "boolean":return arZ||(arZ=[0,void 0,!0]);case "number":return C>0?void 0:C===0?khW||(khW=[0,void 0]):[-C,void 0];case "string":return[0,C];case "object":return C}};
q3=function(C,F,G){return C=_.sr(C,F[0],F[1],G?1:2)};
_.sr=function(C,F,G,V){V=V===void 0?0:V;if(C==null){var J=32;G?(C=[G],J|=128):C=[];F&&(J=J&-16760833|(F&1023)<<14)}else{if(!Array.isArray(C))throw Error("O");J=C[_.JO]|0;if(Htq&&1&J)throw Error("P");2048&J&&!(2&J)&&lri();if(J&256)throw Error("Q");if(J&64)return V!==0||J&2048||nP(C,J|2048),C;if(G&&(J|=128,G!==C[0]))throw Error("R");a:{G=C;J|=64;var b=G.length;if(b){var z=b-1,Q=G[z];if(Q!=null&&typeof Q==="object"&&Q.constructor===Object){F=J&128?0:-1;z-=F;if(z>=1024)throw Error("T");for(var E in Q)b=
+E,b<z&&(G[b+F]=Q[E],delete Q[E]);J=J&-16760833|(z&1023)<<14;break a}}if(F){E=Math.max(F,b-(J&128?0:-1));if(E>1024)throw Error("U");J=J&-16760833|(E&1023)<<14}}}J|=64;V===0&&(J|=2048);nP(C,J);return C};
lri=function(){if(Htq)throw Error("S");TIS(yls,5)};
Otf=function(C,F){if(typeof C!=="object")return C;if(Array.isArray(C)){var G=C[_.JO]|0;return C.length===0&&G&1?void 0:Zto(C,G,F)}if(C!=null&&C[M3]===SU)return NWS(C);if(C instanceof Lt){F=C.arrayState;if(F&2)return C;if(!C.size)return;G=u8(E_q(C));if(C.valueCtor)for(C=0;C<G.length;C++){var V=G[C],J=V[1];J==null||typeof J!=="object"?J=void 0:J!=null&&J[M3]===SU?J=NWS(J):Array.isArray(J)?J=Zto(J,J[_.JO]|0,!!(F&32)):J=void 0;V[1]=J}return G}if(C instanceof Mo)return C};
Zto=function(C,F,G){if(F&2)return C;!G||4096&F||16&F?C=PV(C,F,!1,G&&!(F&16)):(b8(C,34),F&4&&Object.freeze(C));return C};
XVA=function(C,F,G){C=new C.constructor(F);G&&(C.copyOnWrite=l8);C.noLegacyNull=l8;return C};
NWS=function(C){var F=C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G=F[_.JO]|0;return XE(C,G)?C:wVo(C,F,G)?XVA(C,F):PV(F,G)};
PV=function(C,F,G,V){V!=null||(V=!!(34&F));C=uMo(C,F,Otf,V);V=32;G&&(V|=2);F=F&16769217|V;nP(C,F);return C};
Ymw=function(C){var F=C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G=F[_.JO]|0;return XE(C,G)?wVo(C,F,G)?XVA(C,F,!0):new C.constructor(PV(F,G,!1)):C};
gW=function(C){if(C.copyOnWrite!==l8)return!1;var F=C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;F=PV(F,F[_.JO]|0);b8(F,2048);C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=F;C.copyOnWrite=void 0;C.noLegacyNull=void 0;return!0};
RL=function(C){if(!gW(C)&&XE(C,C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.JO]|0))throw Error();};
Y_=function(C,F){F===void 0&&(F=C[_.JO]|0);F&32&&!(F&4096)&&nP(C,F|4096)};
wVo=function(C,F,G){return G&2?!0:G&32&&!(G&4096)?(nP(F,G|2),C.copyOnWrite=l8,!0):!1};
oL=function(C,F,G,V,J){var b=G+(J?0:-1),z=C.length-1;if(z>=1+(J?0:-1)&&b>=z){var Q=C[z];if(Q!=null&&typeof Q==="object"&&Q.constructor===Object)return Q[G]=V,F}if(b<=z)return C[b]=V,F;if(V!==void 0){var E;z=((E=F)!=null?E:F=C[_.JO]|0)>>14&1023||536870912;G>=z?V!=null&&(b={},C[z+(J?0:-1)]=(b[G]=V,b)):C[b]=V}return F};
_.Dr=function(C,F,G,V,J){var b=C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=b[_.JO]|0;V=XE(C,z)?1:V;J=!!J||V===3;V===2&&gW(C)&&(b=C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=b[_.JO]|0);C=MUf(b,F);var Q=C===rW?7:C[_.JO]|0,E=SrW(Q,z);var t=4&E?!1:!0;if(t){4&E&&(C=T7(C),Q=0,E=Kt(E,z),z=oL(b,z,F,C));for(var k=0,U=0;k<C.length;k++){var H=G(C[k]);H!=null&&(C[U++]=H)}U<k&&(C.length=U);G=(E|4)&-513;E=G&=-1025;E&=-4097}E!==Q&&(nP(C,E),2&E&&Object.freeze(C));return C=LdZ(C,E,b,
z,F,V,t,J)};
LdZ=function(C,F,G,V,J,b,z,Q){var E=F;b===1||(b!==4?0:2&F||!(16&F)&&32&V)?pt(F)||(F|=!C.length||z&&!(4096&F)||32&V&&!(4096&F||16&F)?2:256,F!==E&&nP(C,F),Object.freeze(C)):(b===2&&pt(F)&&(C=T7(C),E=0,F=Kt(F,V),V=oL(G,V,J,C)),pt(F)||(Q||(F|=16),F!==E&&nP(C,F)));2&F||!(4096&F||16&F)||Y_(G,V);return C};
MUf=function(C,F,G){C=md(C,F,G);return Array.isArray(C)?C:rW};
SrW=function(C,F){2&F&&(C|=2);return C|1};
pt=function(C){return!!(2&C)&&!!(4&C)||!!(256&C)};
BWT=function(C){return _.fP(C,!0)};
v_A=function(C){C=T7(C);for(var F=0;F<C.length;F++){var G=C[F]=T7(C[F]);Array.isArray(G[1])&&(G[1]=u8(G[1]))}return z7(C)};
frw=function(C,F){var G=C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V=G[_.JO]|0;a:{var J=V;V=XE(C,V);!V&&gW(C)&&(G=C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=G[_.JO]|0);var b=md(G,F);C=!1;if(b==null){if(V){F=Doi();break a}b=[]}else if(b.constructor===Lt)if(b.arrayState&2&&!V)b=E_q(b);else{F=b;break a}else Array.isArray(b)?C=!!((b[_.JO]|0)&2):b=[];if(V){if(!b.length){F=Doi();break a}C||(C=!0,u8(b))}else C&&(C=!1,z7(b),b=v_A(b));!C&&J&32&&DfW(b);V=new Lt(b,void 0,P8B,P8B);
J=oL(G,J,F,V);C||Y_(G,J);F=V}return F};
_.CT=function(C,F,G,V){RL(C);var J=C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=J[_.JO]|0;if(G==null)return oL(J,b,F),C;var z=G===rW?7:G[_.JO]|0,Q=z,E=pt(z),t=E||Object.isFrozen(G);E||(z=0);t||(G=T7(G),Q=0,z=Kt(z,b),t=!1);z|=5;var k;E=(k=KWq(z))!=null?k:0;for(k=0;k<G.length;k++){var U=G[k],H=V(U,E);Object.is(U,H)||(t&&(G=T7(G),Q=0,z=Kt(z,b),t=!1),G[k]=H)}z!==Q&&(t&&(G=T7(G),z=Kt(z,b)),nP(G,z));oL(J,b,F,G);return C};
_.jS=function(C,F,G,V,J){RL(C);var b=C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;oL(b,b[_.JO]|0,F,(V==="0"?Number(G)===0:G===V)?void 0:G,J);return C};
_.F6=function(C,F,G){if(F&2)throw Error();var V=cu(F),J=MUf(C,G,V),b=J===rW?7:J[_.JO]|0,z=SrW(b,F);if(2&z||pt(z)||16&z)z===b||pt(z)||nP(J,z),J=T7(J),b=0,z=Kt(z,F),oL(C,F,G,J,V);z&=-13;z!==b&&nP(J,z);return J};
hxB=function(C){if(G7){var F;return(F=C[GB])!=null?F:C[GB]=new Map}if(GB in C)return C[GB];F=new Map;Object.defineProperty(C,GB,{value:F});return F};
Alo=function(C,F,G,V,J){var b=hxB(C),z=clT(b,C,F,G,J);z!==V&&(z&&(F=oL(C,F,z,void 0,J)),b.set(G,V));return F};
clT=function(C,F,G,V,J){var b=C.get(V);if(b!=null)return b;for(var z=b=0;z<V.length;z++){var Q=V[z];md(F,Q,J)!=null&&(b!==0&&(G=oL(F,G,b,void 0,J)),b=Q)}C.set(V,b);return b};
exZ=function(C,F,G,V,J){var b=!1;V=md(C,V,J,function(z){var Q=qmT(z,G,!1,F);b=Q!==z&&Q!=null;return Q});
if(V!=null)return b&&!XE(V)&&Y_(C,F),V};
d3T=function(C,F,G,V,J,b,z,Q){var E=XE(C,G);b=E?1:b;z=!!z||b===3;E=Q&&!E;(b===2||E)&&gW(C)&&(F=C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G=F[_.JO]|0);C=MUf(F,J);var t=C===rW?7:C[_.JO]|0,k=SrW(t,G);if(Q=!(4&k)){var U=C,H=G,l=!!(2&k);l&&(H|=2);for(var N=!l,S=!0,f=0,c=0;f<U.length;f++){var A=qmT(U[f],V,!1,H);if(A instanceof V){if(!l){var T=XE(A);N&&(N=!T);S&&(S=T)}U[c++]=A}}c<f&&(U.length=c);k|=4;k=S?k&-4097:k|4096;k=N?k|8:k&-9}k!==t&&(nP(C,k),2&k&&Object.freeze(C));if(E&&!(8&k||!C.length&&
(b===1||(b!==4?0:2&k||!(16&k)&&32&G)))){pt(k)&&(C=T7(C),k=Kt(k,G),G=oL(F,G,J,C));V=C;E=k;for(t=0;t<V.length;t++)U=V[t],k=Ymw(U),U!==k&&(V[t]=k);E|=8;k=E=V.length?E|4096:E&-4097;nP(C,k)}return C=LdZ(C,k,F,G,J,b,Q,z)};
x3E=function(C){C==null&&(C=void 0);return C};
Kt=function(C,F){return C=(2&F?C|2:C&-3)&-273};
_.sLE=function(C,F,G,V,J){RL(C);F=_.Dr(C,F,J,2,!0);var b;J=(b=KWq(F===rW?7:F[_.JO]|0))!=null?b:0;F.push(G(V,J));return C};
qrB=function(C,F,G,V,J,b,z){RL(C);var Q=C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;C=d3T(C,Q,Q[_.JO]|0,G,F,2,!0);if(b&&z)J!=null||(J=C.length-1),mfW(C,J),C.splice(J,b),C.length||(C[_.JO]&=-4097);else{if(b){if(typeof J!=="number"||J<0||J>C.length)throw Error();}else V=V!=null?V:new G;J!=void 0?C.splice(J,b,V):C.push(V);J=G=C===rW?7:C[_.JO]|0;(V=XE(V))?(G&=-9,C.length===1&&(G&=-4097)):G|=4096;G!==J&&nP(C,G);V||Y_(Q)}};
g_S=function(C,F){if(typeof C==="string")return new VF(gi9(C),F);if(Array.isArray(C))return new VF(new Uint8Array(C),F);if(C.constructor===Uint8Array)return new VF(C,!1);if(C.constructor===ArrayBuffer)return C=new Uint8Array(C),new VF(C,!1);if(C.constructor===Mo)return F=Ps5(C)||new Uint8Array(0),new VF(F,!0,C);if(C instanceof Uint8Array)return C=C.constructor===Uint8Array?C:new Uint8Array(C.buffer,C.byteOffset,C.byteLength),new VF(C,!1);throw Error();};
YrI=function(C){switch(typeof C){case "string":RxT(C)}};
o_S=function(C){switch(typeof C){case "string":TWi(C)}};
i0=function(){var C=function(){throw Error();};
Object.setPrototypeOf(C,C.prototype);return C};
Kdi=function(C,F){var G=G===void 0?rli:G;return new Jz(C,F,G)};
m3B=function(C,F,G,V,J){D3A(C,G,pV5(F,V),J)};
$l=function(C,F,G,V){var J=V[C];if(J)return J;J={};J.binaryFields=V;J.messageMetadata=U39(V[0]);var b=V[1],z=1;b&&b.constructor===Object&&(J.extensions=b,b=V[++z],typeof b==="function"&&(J.isMessageSet=!0,C0Z!=null||(C0Z=b),jnI!=null||(jnI=V[z+1]),b=V[z+=2]));for(var Q={};b&&FYw(b);){for(var E=0;E<b.length;E++)Q[b[E]]=b;b=V[++z]}for(E=1;b!==void 0;){typeof b==="number"&&(E+=b,b=V[++z]);var t=void 0;if(b instanceof Jz)var k=b;else k=GBE,z--;b=void 0;if((b=k)==null?0:b.$$isMsg){b=V[++z];t=V;var U=z;
typeof b==="function"&&(b=b(),t[U]=b);t=b}b=V[++z];U=E+1;typeof b==="number"&&b<0&&(U-=b,b=V[++z]);for(;E<U;E++){var H=Q[E];t?G(J,E,k,t,H):F(J,E,k,H)}}return V[C]=J};
FYw=function(C){return Array.isArray(C)&&!!C.length&&typeof C[0]==="number"&&C[0]>0};
iTZ=function(C){return Array.isArray(C)?C[0]instanceof Jz?C:[VSS,C]:[C,void 0]};
pV5=function(C,F){if(C instanceof _.b0)return C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(C))return q3(C,F,!1)};
Jzw=function(C,F,G,V){var J=G.$$binaryReaderFn;C[F]=V?function(b,z,Q){return J(b,z,Q,V)}:J};
bTB=function(C,F,G,V,J){var b=G.$$binaryReaderFn,z,Q;C[F]=function(E,t,k){return b(E,t,k,Q||(Q=$l($_5,Jzw,bTB,V).messageMetadata),z||(z=nlA(V)),J)}};
nlA=function(C){var F=C[u6W];if(F!=null)return F;var G=$l($_5,Jzw,bTB,C);F=G.isMessageSet?function(V,J){return C0Z(V,J,G)}:function(V,J){for(;z_9(J)&&J.nextWireType_!=4;){var b=J.nextField_,z=G[b];
if(z==null){var Q=G.extensions;Q&&(Q=Q[b])&&(Q=QnS(Q),Q!=null&&(z=G[b]=Q))}if(z==null||!z(J,V,b)){Q=J;z=Q.fieldCursor_;I0q(Q);if(Q.discardUnknownFields)var E=void 0;else{var t=Q.decoder_.cursor_-z;Q.decoder_.cursor_=z;E=Els(Q.decoder_,t)}t=Q=z=void 0;var k=V;E&&((z=(Q=(t=k[Al])!=null?t:k[Al]=new btW)[b])!=null?z:Q[b]=[]).push(E)}}if(V=puT(V))V.reviveUnknownFields=G.binaryFields[WYS];return!0};
C[u6W]=F;C[WYS]=tSi.bind(C);return F};
tSi=function(C,F,G,V){var J=this[$_5],b=this[u6W],z=q3(void 0,J.messageMetadata,!1),Q=puT(C);if(Q){var E=!1,t=J.extensions;if(t){J=function(N,S,f){if(f.length!==0)if(t[S])for(N=_.u(f),S=N.next();!S.done;S=N.next()){S=a0B(S.value);try{E=!0,b(z,S)}finally{S.free()}}else V==null||V(C,S,f)};
if(F==null)Jlw(Q,J);else if(Q!=null){var k=Q[F];k&&J(Q,F,k)}if(E){var U=C[_.JO]|0;if(U&2&&U&2048&&(G==null||!G.reviveIntoImmutable))throw Error();var H=cu(U),l=function(N,S){if(md(C,N,H)!=null)switch(G==null?void 0:G.resolutionBehavior){case 1:return;default:throw Error();}S!=null&&(U=oL(C,U,N,S,H));delete Q[N]};
F==null?C8E(z,z[_.JO]|0,function(N,S){l(N,S)}):l(F,md(z,F,H))}}}};
QnS=function(C){C=iTZ(C);var F=C[0].$$binaryReaderFn;if(C=C[1]){var G=nlA(C),V=$l($_5,Jzw,bTB,C).messageMetadata;return function(J,b,z){return F(J,b,z,V,G)}}return F};
kBS=function(C,F,G){C[F]=G.$$binaryWriterFn};
HTo=function(C,F,G,V){var J,b,z=G.$$binaryWriterFn;C[F]=function(Q,E,t){return z(Q,E,t,b||(b=$l(U_Z,kBS,HTo,V).messageMetadata),J||(J=l0S(V)))}};
l0S=function(C){var F=C[yzE];if(!F){var G=$l(U_Z,kBS,HTo,C);F=function(V,J){return ZTq(V,J,G)};
C[yzE]=F}return F};
ZTq=function(C,F,G){C8E(C,C[_.JO]|0,function(V,J){if(J!=null){var b=N9w(G,V);b?b(F,J,V):V<500||TIS(OTE,3)}});
(C=puT(C))&&Jlw(C,function(V,J,b){nT(F,F.encoder_.end());for(V=0;V<b.length;V++)nT(F,Ps5(b[V])||new Uint8Array(0))})};
N9w=function(C,F){var G=C[F];if(G)return G;if(G=C.extensions)if(G=G[F]){G=iTZ(G);var V=G[0].$$binaryWriterFn;if(G=G[1]){var J=l0S(G),b=$l(U_Z,kBS,HTo,G).messageMetadata;G=C.isMessageSet?jnI(b,J):function(z,Q,E){return V(z,Q,E,b,J)}}else G=V;
return C[F]=G}};
_.XhW=function(C,F,G){if(Array.isArray(F)){var V=F[_.JO]|0;if(V&4)return F;for(var J=0,b=0;J<F.length;J++){var z=C(F[J]);z!=null&&(F[b++]=z)}b<J&&(F.length=b);C=V|1;G&&(C=(C|4)&-1537);C!==V&&nP(F,C);G&&C&2&&Object.freeze(F);return F}};
_.u0=function(C,F,G){return new Jz(C,F,G)};
_.whq=function(C,F,G){return new Jz(C,F,G)};
_.QF=function(C,F,G){oL(C,C[_.JO]|0,F,G,cu(C[_.JO]|0))};
MS5=function(C,F,G){F=_.Du(F);F!=null&&(_.In(C,G,1),C=C.encoder_,G=uEB||(uEB=new DataView(new ArrayBuffer(8))),G.setFloat64(0,+F,!0),d2=G.getUint32(0,!0),xS=G.getUint32(4,!0),_.EL(C,d2),_.EL(C,xS))};
SLT=function(C,F,G){F=_.Du(F);F!=null&&(_.In(C,G,5),C=C.encoder_,zyA(F),_.EL(C,d2))};
_.tz=function(C,F,G){F=eyT(F);if(F!=null&&(YrI(F),F!=null))switch(_.In(C,G,0),typeof F){case "number":C=C.encoder_;sm(F);Wh(C,d2,xS);break;case "bigint":G=BigInt.asUintN(64,F);G=new LYi(Number(G&BigInt(4294967295)),Number(G>>BigInt(32)));Wh(C.encoder_,G.JSC$8862_lo,G.JSC$8862_hi);break;default:G=RxT(F),Wh(C.encoder_,G.JSC$8862_lo,G.JSC$8862_hi)}};
vlI=function(C,F,G){F=doE(F);if(F!=null&&(o_S(F),F!=null))switch(_.In(C,G,0),typeof F){case "number":C=C.encoder_;sm(F);Wh(C,d2,xS);break;case "bigint":G=B9E(F);Wh(C.encoder_,G.JSC$8860_lo,G.JSC$8860_hi);break;default:G=TWi(F),Wh(C.encoder_,G.JSC$8860_lo,G.JSC$8860_hi)}};
h_Z=function(C,F,G){F=_.nt(F);F!=null&&F!=null&&(_.In(C,G,0),_.f05(C.encoder_,F))};
_.AzW=function(C,F,G){czZ(C,G,doE(F))};
e_B=function(C,F,G){F=_.k7I(F);F!=null&&(_.In(C,G,0),C.encoder_.JSC$8864_buffer_.push(F?1:0))};
x_w=function(C,F,G){F=_.Or(F);F!=null&&d_5(C,G,Qwf(F))};
snw=function(C,F,G,V,J){D3A(C,G,pV5(F,V),J)};
_.qLB=function(C,F,G){F=F==null||typeof F=="string"||F instanceof Mo?F:void 0;F!=null&&d_5(C,G,g_S(F,!0).buffer)};
P09=function(C,F,G){F=_.luA(F);F!=null&&F!=null&&(_.In(C,G,0),an(C.encoder_,F))};
_.glS=function(C,F,G){F=_.nt(F);F!=null&&(F=parseInt(F,10),_.In(C,G,0),_.f05(C.encoder_,F))};
_.kl=function(C,F){return function(G,V){var J={treatNewDataAsImmutable:!0};V&&Object.assign(J,V);G=a0B(G,void 0,void 0,J);try{var b=new C,z=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;nlA(F)(z,G);var Q=b}finally{G.free()}return Q}};
_.Hh=function(C){return function(F){return R_5(F,C)}};
YLT=function(C){return function(){return R_5(this,C)}};
_.T9B=function(C){return AO(function(F){return F instanceof C&&!XE(F)})};
_.Z0=function(C){return function(F){return olB(C,F)}};
ph9=function(C,F){return rzB({child:C,origin:F||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:KYZ,getPayloadCase:function(G){return G.getPayloadCase()},
createInitMessage:function(G){var V=new N_,J=new D_B;G=_.OL(J,1,G);return _.X6(V,5,w9,G)}})};
M_=function(C){return{valueOf:C}.valueOf()};
CiE=function(){var C=null;if(!m_s)return C;try{var F=function(G){return G};
C=m_s.createPolicy("goog#html",{createHTML:F,createScript:F,createScriptURL:F})}catch(G){}return C};
FbE=function(){jps===void 0&&(jps=CiE());return jps};
_.LT=function(C){var F=FbE();C=F?F.createScriptURL(C):C;return new SS(C)};
_.vh=function(C){if(C instanceof SS)return C.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.fT=function(C){return Object.isFrozen(C)&&Object.isFrozen(C.raw)};
GOE=function(C){return C.toString().indexOf("`")===-1};
ch=function(C){return new _.hz(V9s,C)};
Az=function(C){return C instanceof _.hz};
_.eS=function(C){if(Az(C))return C.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
d9=function(C){return new ivA(function(F){return F.substr(0,C.length+1).toLowerCase()===C+":"})};
_.sL=function(C,F){F=F===void 0?JWf:F;if(Az(C))return C;for(var G=0;G<F.length;++G){var V=F[G];if(V instanceof ivA&&V.isValid(C))return ch(C)}};
_.Ph=function(C,F){F=F===void 0?JWf:F;return _.sL(C,F)||q_};
_.g9=function(C){var F=window;if(typeof MediaSource!=="undefined"&&C instanceof MediaSource||typeof F.ManagedMediaSource!=="undefined"&&C instanceof F.ManagedMediaSource)return ch(URL.createObjectURL(C));F=C.type;F.toLowerCase()==="application/octet-stream"?F=!0:(F=F.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),F=(F==null?void 0:F.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(F[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(F[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(F[1])||/^font\/[\w-]+$/i.test(F[1])));if(!F)throw Error("Z");return ch(URL.createObjectURL(C))};
_.$aI=function(C){for(var F=_.Rn.apply(1,arguments),G=[C[0]],V=0;V<F.length;V++)G.push(String(F[V])),G.push(C[V+1]);return ch(G.join(""))};
_.nO5=function(C){if(!bvT){a:{var F=document.createElement("a");try{F.href=C}catch(G){C=void 0;break a}C=F.protocol;C=C===":"||C===""?"https:":C}return C}try{F=new URL(C)}catch(G){return"https:"}return F.protocol};
_.Yl=function(C){C instanceof _.hz?C=_.eS(C):C=uGE.test(C)?C:void 0;return C};
TB=function(C,F){F=_.Yl(F);F!==void 0&&(C.href=F)};
D0=function(C){var F=FbE();C=F?F.createHTML(C):C;return new on(C)};
pT=function(C){if(C instanceof on)return C.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.mY=function(C,F){C.src=_.vh(F).toString()};
zdq=function(C,F){C.setAttribute("sandbox","");for(var G=0;G<F.length;G++)C.sandbox.supports&&!C.sandbox.supports(F[G])||C.sandbox.add(F[G])};
_.I6o=function(C,F,G){C.removeAttribute("srcdoc");switch(F){case 0:if(G instanceof SS)throw new Qpq("TrustedResourceUrl",0);zdq(C,[]);F=_.Yl(G);F!==void 0&&(C.src=F);break;case 1:if(!(G instanceof SS))throw new Qpq(typeof G,1);zdq(C,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.mY(C,G);break;case 2:if(G instanceof SS)throw new Qpq("TrustedResourceUrl",2);zdq(C,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
F=_.Yl(G);F!==void 0&&(C.src=F);break;default:_.r2(F)}};
_.Cv=function(C,F,G,V){F=_.Yl(F);return F!==void 0?C.open(F,G,V):null};
_.j9=function(C){C=C===void 0?document:C;var F,G;C=(G=(F=C).querySelector)==null?void 0:G.call(F,"script[nonce]");return C==null?"":C.nonce||C.getAttribute("nonce")||""};
_.GO=function(C){var F=FbE();C=F?F.createScript(C):C;return new _.FG(C)};
Vy=function(C){if(C instanceof _.FG)return C.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
EOS=function(C){var F=_.j9(C.ownerDocument);F&&C.setAttribute("nonce",F)};
_.ii=function(C,F){C.textContent=Vy(F);EOS(C)};
_.JW=function(C,F){C.src=_.vh(F);EOS(C)};
_.$O=function(C,F){if(C.nodeType===1&&/^(script|style)$/i.test(C.tagName))throw Error("Z");C.innerHTML=pT(F)};
_.bi=function(C,F,G,V){if(C.length===0)throw Error("Z");C=C.map(function(b){if(b instanceof Wb5)b=b.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return b});
var J=G.toLowerCase();if(C.every(function(b){return J.indexOf(b)!==0}))throw Error("aa`"+G);
F.setAttribute(G,V)};
_.nv=function(C,F,G){if(F instanceof SS)C.href=_.vh(F).toString(),C.rel=G;else{if(t9S.indexOf(G)===-1)throw Error("ba`"+G);F=_.Yl(F);F!==void 0&&(C.href=F,C.rel=G)}};
a6B=function(C){if(C instanceof ui)return C.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.kOf=function(C,F){F=_.Yl(F);F!==void 0&&(C.href=F)};
UaS=function(C){return new Worker(_.vh(C),void 0)};
HvA=function(C){return _.LT(C)};
l6w=function(C,F){C&&(F=C.indexOf(F),0<=F&&C.splice(F,1))};
zO=function(C){return typeof C==="function"};
yW5=function(C){return C instanceof Qy||C&&"closed"in C&&zO(C.remove)&&zO(C.add)&&zO(C.unsubscribe)};
Ip=function(){};
Ea=function(C){ZvS(function(){throw C;})};
Ww=function(C){return C};
tW=function(){return NaE(_.Rn.apply(0,arguments))};
NaE=function(C){return C.length===0?Ww:C.length===1?C[0]:function(F){return C.reduce(function(G,V){return V(G)},F)}};
OvT=function(C){var F;return(F=C!=null?C:void 0)!=null?F:Promise};
Xwq=function(C,F){return new ap(function(G){var V=0;return F.schedule(function(){V===C.length?G.complete():(G.next(C[V++]),G.closed||this.schedule())})})};
wwW=function(C,F){if(!C)throw Error("ca");return new ap(function(G){var V=new Qy;V.add(F.schedule(function(){var J=C[Symbol.asyncIterator]();V.add(F.schedule(function(){var b=this;J.next().then(function(z){z.done?G.complete():(G.next(z.value),b.schedule())})}))}));
return V})};
M9E=function(C,F,G){F=F.schedule(function(){try{G.call(this)}catch(V){C.error(V)}},0);
C.add(F)};
LbB=function(C,F){return new ap(function(G){var V;G.add(F.schedule(function(){V=C[Sa5]();M9E(G,F,function(){var J=V.next(),b=J.value;J.done?G.complete():(G.next(b),this.schedule())})}));
return function(){var J;return zO((J=V)==null?void 0:J.return)&&V.return()}})};
Baf=function(C,F){return new ap(function(G){var V=new Qy;V.add(F.schedule(function(){var J=C[kO]();V.add(J.subscribe({next:function(b){V.add(F.schedule(function(){return G.next(b)}))},
error:function(b){V.add(F.schedule(function(){return G.error(b)}))},
complete:function(){V.add(F.schedule(function(){return G.complete()}))}}))}));
return V})};
vOi=function(C,F){return new ap(function(G){return F.schedule(function(){return C.then(function(V){G.add(F.schedule(function(){G.next(V);G.add(F.schedule(function(){return G.complete()}))}))},function(V){G.add(F.schedule(function(){return G.error(V)}))})})})};
f6S=function(C){return new TypeError("da`"+(C!==null&&typeof C==="object"?"an invalid object":"'"+C+"'"))};
cWT=function(C,F){if(C!=null){if(zO(C[kO]))return Baf(C,F);if(hdA(C))return Xwq(C,F);if(zO(C==null?void 0:C.then))return vOi(C,F);if(Symbol.asyncIterator&&zO(C==null?void 0:C[Symbol.asyncIterator]))return wwW(C,F);if(zO(C==null?void 0:C[Sa5]))return LbB(C,F)}throw f6S(C);};
Hw=function(C,F){return F?cWT(C,F):Ua(C)};
Ua=function(C){if(C instanceof ap)return C;if(C!=null){if(zO(C[kO]))return AWS(C);if(hdA(C))return edW(C);if(zO(C==null?void 0:C.then))return da9(C);if(Symbol.asyncIterator&&zO(C==null?void 0:C[Symbol.asyncIterator]))return xas(C);if(zO(C==null?void 0:C[Sa5]))return spq(C)}throw f6S(C);};
AWS=function(C){return new ap(function(F){var G=C[kO]();if(zO(G.subscribe))return G.subscribe(F);throw new TypeError("ea");})};
edW=function(C){return new ap(function(F){for(var G=0;G<C.length&&!F.closed;G++)F.next(C[G]);F.complete()})};
da9=function(C){return new ap(function(F){C.then(function(G){F.closed||(F.next(G),F.complete())},function(G){return F.error(G)}).then(null,Ea)})};
spq=function(C){return new ap(function(F){for(var G=C[Sa5]();!F.closed;){var V=G.next(),J=V.value;V.done?F.complete():F.next(J)}return function(){return zO(G==null?void 0:G.return)&&G.return()}})};
xas=function(C){return new ap(function(F){qaq(C,F).catch(function(G){return F.error(G)})})};
qaq=function(C,F){var G,V,J,b,z,Q;return _.I(function(E){switch(E.nextAddress){case 1:_.yy(E,2,3),b=_.Z6(C);case 5:return E.yield(b.next(),8);case 8:V=E.yieldResult;if(V.done){E.jumpTo(3);break}z=V.value;F.next(z);E.jumpTo(5);break;case 3:_.Na(E);_.Oa(E,9);if(!V||V.done||!(J=b.return)){E.jumpTo(9);break}return E.yield(J.call(b),9);case 9:_.Na(E,0,0,1);if(G)throw G.error;_.XG(E,10,1);break;case 10:_.XG(E,4);break;case 2:Q=_.wa(E);G={error:Q};E.jumpTo(3);break;case 4:F.complete(),_.S9(E)}})};
PiA=function(C,F){return F?Xwq(C,F):edW(C)};
gOw=function(C){return zO(C[C.length-1])?C.pop():void 0};
Lv=function(C){var F=C[C.length-1];return F&&zO(F.schedule)?C.pop():void 0};
Bw=function(){var C=_.Rn.apply(0,arguments),F=Lv(C);return F?Xwq(C,F):PiA(C)};
vw=function(C){var F=zO(C)?C:function(){return C};
return new ap(function(G){return G.error(F())})};
fv=function(C){return function(F){if(zO(F==null?void 0:F.lift))return F.lift(function(G){try{return C(G,this)}catch(V){this.error(V)}});
throw new TypeError("fa");}};
AW=function(){return fv(function(C,F){var G=null;C._refCount++;var V=new cw(F,void 0,void 0,void 0,function(){if(!C||C._refCount<=0||0<--C._refCount)G=null;else{var J=C._connection,b=G;G=null;!J||b&&J!==b||J.unsubscribe();F.unsubscribe()}});
C.subscribe(V);V.closed||(G=C.connect())})};
Yaq=function(){var C=RdE;var F=F===void 0?0:F;return fv(function(G,V){V.add(C.schedule(function(){return G.subscribe(V)},F))})};
e9=function(C){return fv(function(F,G){var V=0;F.subscribe(new cw(G,function(J){G.next(C.call(void 0,J,V++))}))})};
oOZ=function(C){return e9(function(F){return TaZ(F)?C.apply(null,_.da(F)):C(F)})};
maq=function(C){if(C.length===1){var F=C[0];if(rWW(F))return{args:F,keys:null};if(F&&typeof F==="object"&&KbB(F)===DaI)return C=pww(F),{args:C.map(function(G){return F[G]}),
keys:C}}return{args:C,keys:null}};
xO=function(){var C=_.Rn.apply(0,arguments),F=Lv(C),G=gOw(C);C=maq(C);var V=C.args,J=C.keys;if(V.length===0)return Hw([],F);F=new ap(ChA(V,F,J?function(b){for(var z={},Q=0;Q<b.length;Q++)z[J[Q]]=b[Q];return z}:Ww));
return G?F.pipe(oOZ(G)):F};
ChA=function(C,F,G){G=G===void 0?Ww:G;return function(V){jRo(F,function(){for(var J=C.length,b=Array(J),z=J,Q=C.map(function(){return!1}),E=!0,t={i$jscomp$217:0};t.i$jscomp$217<J;t={i$jscomp$217:t.i$jscomp$217},t.i$jscomp$217++)jRo(F,function(k){return function(){Hw(C[k.i$jscomp$217],F).subscribe(new sa(V,function(U){b[k.i$jscomp$217]=U;
E&&(Q[k.i$jscomp$217]=!0,E=!Q.every(Ww));E||V.next(G(b.slice()))},function(){return--z===0}))}}(t),V)},V)}};
jRo=function(C,F,G){C?G.add(C.schedule(F)):F()};
FiT=function(C,F,G,V){var J=[],b=0,z=0,Q=!1,E=function(t){b++;Ua(G(t,z++)).subscribe(new cw(F,function(k){F.next(k)},void 0,function(){b--;
for(var k={};J.length&&b<V;k={bufferedValue:void 0})k.bufferedValue=J.shift(),E(k.bufferedValue);!Q||J.length||b||F.complete()}))};
C.subscribe(new cw(F,function(t){return b<V?E(t):J.push(t)},void 0,function(){Q=!0;
!Q||J.length||b||F.complete()}));
return function(){J=null}};
Pw=function(C,F){var G=G===void 0?Infinity:G;if(zO(F))return Pw(function(V,J){return e9(function(b,z){return F(V,b,J,z)})(Ua(C(V,J)))},G);
typeof F==="number"&&(G=F);return fv(function(V,J){return FiT(V,J,C,G)})};
Gkf=function(C){C=C===void 0?Infinity:C;return Pw(Ww,C)};
Vyq=function(){var C=_.Rn.apply(0,arguments);return Gkf(1)(PiA(C,Lv(C)))};
iAB=function(C){return new ap(function(F){Ua(C()).subscribe(F)})};
Rp=function(C,F,G){if(zO(G)){var V=G;G=void 0}if(V)return Rp(C,F,G).pipe(oOZ(V));V=_.u(zO(C.addEventListener)&&zO(C.removeEventListener)?JGZ.map(function(z){return function(Q){return C[z](F,Q,G)}}):zO(C.addListener)&&zO(C.removeListener)?$lT.map(bAw(C,F)):zO(C.on)&&zO(C.off)?nfZ.map(bAw(C,F)):[]);
var J=V.next().value,b=V.next().value;return!J&&hdA(C)?Pw(function(z){return Rp(z,F,G)})(PiA(C)):new ap(function(z){if(!J)throw new TypeError("ga");
var Q=function(){var E=_.Rn.apply(0,arguments);return z.next(1<E.length?E:E[0])};
J(Q);return function(){return b(Q)}})};
bAw=function(C,F){return function(G){return function(V){return C[G](F,V)}}};
op=function(){var C=_.Rn.apply(0,arguments),F=Lv(C);var G=typeof C[C.length-1]==="number"?C.pop():Infinity;return C.length?C.length===1?Ua(C[0]):Gkf(G)(PiA(C,F)):TO};
z0f=function(C){return C.length===1&&uf5(C[0])?C[0]:C};
QR5=function(){var C=z0f(_.Rn.apply(0,arguments));return fv(function(F,G){var V=[F].concat(_.da(C)),J=function(){if(!G.closed)if(V.length>0){try{var b=Ua(V.shift())}catch(Q){J();return}var z=new cw(G,void 0,Ip,Ip);G.add(b.subscribe(z));z.add(J)}else G.complete()};
J()})};
ra=function(C){return fv(function(F,G){var V=0;F.subscribe(new cw(G,function(J){return C.call(void 0,J,V++)&&G.next(J)}))})};
EfB=function(){var C=_.Rn.apply(0,arguments);C=z0f(C);return C.length===1?Ua(C[0]):new ap(IiE(C))};
IiE=function(C){return function(F){for(var G=[],V={i$jscomp$220:0};G&&!F.closed&&V.i$jscomp$220<C.length;V={i$jscomp$220:V.i$jscomp$220},V.i$jscomp$220++)G.push(Ua(C[V.i$jscomp$220]).subscribe(new cw(F,function(J){return function(b){if(G){for(var z=0;z<G.length;z++)z!==J.i$jscomp$220&&G[z].unsubscribe();G=null}F.next(b)}}(V))))}};
Wio=function(){var C=_.Rn.apply(0,arguments),F=gOw(C),G=z0f(C);return G.length?new ap(function(V){var J=G.map(function(){return[]}),b=G.map(function(){return!1});
V.add(function(){J=b=null});
for(var z={sourceIndex$jscomp$1:0};!V.closed&&z.sourceIndex$jscomp$1<G.length;z={sourceIndex$jscomp$1:z.sourceIndex$jscomp$1},z.sourceIndex$jscomp$1++)Ua(G[z.sourceIndex$jscomp$1]).subscribe(new cw(V,function(Q){return function(E){J[Q.sourceIndex$jscomp$1].push(E);J.every(function(t){return t.length})&&(E=J.map(function(t){return t.shift()}),V.next(F?F.apply(null,_.da(E)):E),J.some(function(t,k){return!t.length&&b[k]})&&V.complete())}}(z),void 0,function(Q){return function(){b[Q.sourceIndex$jscomp$1]=
!0;
!J[Q.sourceIndex$jscomp$1].length&&V.complete()}}(z)));
return function(){J=b=null}}):TO};
tyi=function(C){var F,G,V;return!!C&&typeof C.active==="boolean"&&typeof((F=C.clock)==null?void 0:F.now)==="function"&&((G=C.clock)==null?void 0:G.timeline)!==void 0&&!((V=C.lastMeasurement)==null||!V.timestamp)&&typeof C.equivalentTo==="function"&&typeof C.extrapolateToNow==="function"&&typeof C.extrapolateToTime==="function"&&typeof C.map==="function"&&typeof C.joinWith==="function"};
ai5=function(C){function F(G){return typeof G==="boolean"||typeof G==="string"||typeof G==="number"||G===void 0||G===null}
return F(C)?!0:Array.isArray(C)?C.every(F):typeof C==="object"?Object.keys(C).every(function(G){return typeof G==="string"})&&Object.values(C).every(function(G){return Array.isArray(G)?G.every(F):F(G)}):!1};
kkB=function(C){if(ai5(C))return C;if(tyi(C))return{lastMeasurement:{value:kkB(C.lastMeasurement.value),timestamp:Kv(C.lastMeasurement.timestamp,new D6(0,C.lastMeasurement.timestamp.timeline))},active:C.active};try{return JSON.parse(JSON.stringify(C))}catch(F){}return String(C)};
pv=function(C,F){return function(G){return new ap(function(V){return G.subscribe(function(J){C.timeExecution(F,function(){V.next(J)})()},function(J){C.timeExecution(F,function(){V.error(J)})()},function(){C.timeExecution(F,function(){V.complete()})()})})}};
Ulw=function(C,F){var G=!1;return new ap(function(V){var J=C.setTimeout(function(){G=!0;V.next(!0);V.complete()},F);
return function(){G||C.clearTimeout(J)}})};
HA9=function(C){C=C.global;if(C.fetchLater)return C.fetchLater.bind(C)};
mb=function(C){return fv(function(F,G){var V=null,J=!1,b;V=F.subscribe(new cw(G,void 0,function(z){b=Ua(C(z,mb(C)(F)));V?(V.unsubscribe(),V=null,b.subscribe(G)):J=!0}));
J&&(V.unsubscribe(),V=null,b.subscribe(G))})};
lio=function(C,F,G){return function(V,J){var b=G,z=F,Q=0;V.subscribe(new cw(J,function(E){var t=Q++;z=b?C(z,E,t):(b=!0,E);J.next(z)},void 0,void 0))}};
yGw=function(C){C=C===void 0?null:C;return fv(function(F,G){var V=!1;F.subscribe(new cw(G,function(J){V=!0;G.next(J)},void 0,function(){V||G.next(C);
G.complete()}))})};
CA=function(){return fv(function(C,F){C.subscribe(new cw(F,Ip))})};
jy=function(C){return fv(function(F,G){F.subscribe(new cw(G,function(){return G.next(C)}))})};
Ff=function(C){return C<=0?function(){return TO}:fv(function(F,G){var V=0;
F.subscribe(new cw(G,function(J){++V<=C&&(G.next(J),C<=V&&G.complete())}))})};
Gk=function(C){var F=F===void 0?Ww:F;var G;C=(G=C)!=null?G:ZAS;return fv(function(V,J){var b,z=!0;V.subscribe(new cw(J,function(Q){var E=F(Q);if(z||!C(b,E))z=!1,b=E,J.next(Q)}))})};
ZAS=function(C,F){return C===F};
OAT=function(C){C=C===void 0?NS5:C;return fv(function(F,G){var V=!1;F.subscribe(new cw(G,function(J){V=!0;G.next(J)},void 0,function(){return V?G.complete():G.error(C())}))})};
NS5=function(){return new XjZ};
VS=function(){var C=_.Rn.apply(0,arguments);return function(F){return Vyq(F,Bw.apply(null,_.da(C)))}};
wj5=function(C){return fv(function(F,G){var V=0;F.subscribe(new cw(G,function(J){C.call(void 0,J,V++,F)||(G.next(!1),G.complete())},void 0,function(){G.next(!0);
G.complete()}))})};
MyZ=function(){return fv(function(C,F){var G=[];C.subscribe(new cw(F,function(V){G.push(V);1<G.length&&G.shift()},void 0,function(){for(var V=_.u(G),J=V.next();!J.done;J=V.next())F.next(J.value);
F.complete()},function(){G=null}))})};
Sso=function(C,F){var G=arguments.length>=2;return function(V){return V.pipe(C?ra(function(J,b){return C(J,b,V)}):Ww,MyZ(),G?yGw(F):OAT(function(){return new XjZ}))}};
JG=function(C){var F=zO(C)?C:function(){return C};
return zO()?fv(function(G,V){var J=F();(void 0)(J).subscribe(V).add(G.subscribe(J))}):function(G){var V=new ih(G,F);
zO(G==null?void 0:G.lift)&&(V.lift=G.lift);V.source=G;V.subjectFactory=F;return V}};
bh=function(C){var F=new $f(C,void 0,void 0);return function(G){return JG(function(){return F})(G)}};
uh=function(C,F){return fv(lio(C,F,arguments.length>=2))};
zk=function(){var C=_.Rn.apply(0,arguments),F=Lv(C);return fv(function(G,V){(F?Vyq(C,G,F):Vyq(C,G)).subscribe(V)})};
QS=function(C){return fv(function(F,G){var V=null,J=0,b=!1;F.subscribe(new cw(G,function(z){var Q;(Q=V)==null||Q.unsubscribe();Q=J++;Ua(C(z,Q)).subscribe(V=new cw(G,function(E){return G.next(E)},void 0,function(){V=null;
b&&!V&&G.complete()}))},void 0,function(){(b=!0,!V)&&G.complete()}))})};
IR=function(C,F){F=F===void 0?!1:F;return fv(function(G,V){var J=0;G.subscribe(new cw(V,function(b){var z=C(b,J++);(z||F)&&V.next(b);!z&&V.complete()}))})};
Liq=function(C,F,G){var V=zO(C)||F||G?{next:C,error:F,complete:G}:C;return V?fv(function(J,b){J.subscribe(new cw(b,function(z){var Q;(Q=V.next)==null||Q.call(V,z);b.next(z)},function(z){var Q;
(Q=V.error)==null||Q.call(V,z);b.error(z)},function(){var z;
(z=V.complete)==null||z.call(V);b.complete()}))}):Ww};
BSA=function(){var C=_.Rn.apply(0,arguments),F=gOw(C);return fv(function(G,V){for(var J=C.length,b=Array(J),z=C.map(function(){return!1}),Q=!1,E={i$jscomp$230:0};E.i$jscomp$230<J;E={i$jscomp$230:E.i$jscomp$230},E.i$jscomp$230++)Ua(C[E.i$jscomp$230]).subscribe(new cw(V,function(t){return function(k){b[t.i$jscomp$230]=k;
Q||z[t.i$jscomp$230]||(z[t.i$jscomp$230]=!0,(Q=z.every(Ww))&&(z=null))}}(E),void 0,Ip));
G.subscribe(new cw(V,function(t){Q&&(t=[t].concat(_.da(b)),V.next(F?F.apply(null,_.da(t)):t))}))})};
fiZ=function(C){var F=vf9;if(F)for(var G in F)Object.prototype.hasOwnProperty.call(F,G)&&C(F[G],G,F)};
h0o=function(){var C=[];fiZ(function(F){C.push(F)});
return C};
AGS=function(C){try{return!!C&&C.location.href!=null&&cG5(C,"foo")}catch(F){return!1}};
_.Wj=function(C){return new Wb5(C[0].toLowerCase())};
e0w=function(C){for(var F=_.Rn.apply(1,arguments),G=C[0],V=0;V<C.length-1;V++)G+=String(F[V]),G+=C[V+1];F=document.implementation.createHTMLDocument("");V=F.createElement("style");F.head.appendChild(V);F=V.sheet;F.insertRule(G,0);if(F.cssRules.length===1&&(G=F.cssRules[0],G instanceof CSSStyleRule))return new ui(G.cssText.replace(/</g,"\\3C "))};
dlo=function(C){try{return new URL(C,window.document.baseURI)}catch(F){return new URL("about:invalid")}};
xl5=function(C,F){var G=F.createRange();G.selectNode(F.body);C=D0(C);return G.createContextualFragment(pT(C))};
sRq=function(C){C=C.nodeName;return typeof C==="string"?C:"FORM"};
qsq=function(C){C=C.nodeType;return C===1||typeof C!=="number"};
aR=function(C,F,G){C.setAttribute(F,G)};
PhT=function(C){return C.parts.map(function(F){var G=F.descriptor;return""+F.url+(G?" "+G:"")}).join(" , ")};
_.kf=function(C){var F=_.Rn.apply(1,arguments);if(F.length===0)return _.LT(C[0]);for(var G=C[0],V=0;V<F.length;V++)G+=encodeURIComponent(F[V])+C[V+1];return _.LT(G)};
_.Us=function(C,F){C=_.vh(C).toString();var G=C.split(/[?#]/),V=/[?]/.test(C)?"?"+G[1]:"";return gfo(G[0],V,/[#]/.test(C)?"#"+(V?G[2]:G[1]):"",F)};
gfo=function(C,F,G,V){function J(z,Q){z!=null&&(Array.isArray(z)?z.forEach(function(E){return J(E,Q)}):(F+=b+encodeURIComponent(Q)+"="+encodeURIComponent(z),b="&"))}
var b=F.length?"&":"?";V.constructor===Object&&(V=Object.entries(V));Array.isArray(V)?V.forEach(function(z){return J(z[1],z[0])}):V.forEach(J);
return _.LT(C+F+G)};
Ys5=function(){var C=Vy(R0f).toString();return _.LT(URL.createObjectURL(new Blob([C],{type:"text/javascript"})))};
TSB=function(C){var F=[],G=0,V;for(V in C)F[G++]=V;return F};
ofW=function(C,F){for(var G in C)if(C[G]==F)return!0;return!1};
rGi=function(C,F,G){for(var V in C)if(F.call(G,C[V],V,C))return V};
KiT=function(C){if(!C||typeof C!=="object")return C;if(typeof C.clone==="function")return C.clone();if(typeof Map!=="undefined"&&C instanceof Map)return new Map(C);if(typeof Set!=="undefined"&&C instanceof Set)return new Set(C);if(C instanceof Date)return new Date(C.getTime());var F=Array.isArray(C)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(C)||C instanceof DataView?{}:new C.constructor(C.length),G;for(G in C)F[G]=KiT(C[G]);return F};
Dlq=function(C){var F=arguments.length;if(F==1&&Array.isArray(arguments[0]))return Dlq.apply(null,arguments[0]);if(F%2)throw Error("ma");for(var G={},V=0;V<F;V+=2)G[arguments[V]]=arguments[V+1];return G};
pjo=function(C){var F=arguments.length;if(F==1&&Array.isArray(arguments[0]))return pjo.apply(null,arguments[0]);for(var G={},V=0;V<F;V++)G[arguments[V]]=!0;return G};
Hj=function(C,F,G,V){this.top=C;this.right=F;this.bottom=G;this.left=V};
mlf=function(C){C=C.global;if(C.PendingGetBeacon)return C.PendingGetBeacon};
Zi=function(C){return function(F){return F.pipe(Czo(C,JG(new yS)))}};
Nl=function(C){return function(F){return F.pipe(Czo(C,bh(1)))}};
Czo=function(C,F){function G(V){return new ap(function(J){return V.subscribe(function(b){Os(C,function(){return void J.next(b)},3)},function(b){Os(C,function(){return void J.error(b)},3)},function(){Os(C,function(){return void J.complete()},3)})})}
return tW(G,Yaq(),F,AW(),G)};
GIw=function(C){var F=jMS(C);return F===null?new Xf(null):F.pipe(e9(function(G){G=G.serialize();if(FgE)G=_.VT.btoa(G);else{for(var V=[],J=0,b=0;b<G.length;b++){var z=G.charCodeAt(b);z>255&&(V[J++]=z&255,z>>=8);V[J++]=z}G=_.eU(V)}return G}),Ff(1),Nl(C.queue))};
VoW=function(C){var F=F===void 0?{}:F;if(typeof Event==="function")return new Event(C,F);if(typeof document!=="undefined"){var G=document.createEvent("CustomEvent");G.initCustomEvent(C,F.bubbles||!1,F.cancelable||!1,F.detail);return G}throw Error();};
ifw=function(C){return typeof C==="string"?document.getElementById(C):C};
$di=function(C){var F=!1;F=F===void 0?!1:F;if(C.tagName==="IMG"){if(C.complete&&(!C.naturalWidth||!C.naturalHeight))return!0;var G;if(F&&((G=C.style)==null?void 0:G.display)==="none")return!0}var V,J;return JVB.test((V=C.getAttribute("width"))!=null?V:"")&&JVB.test((J=C.getAttribute("height"))!=null?J:"")};
bfZ=function(C,F){if(C.tagName==="IMG")return C.naturalWidth&&C.naturalHeight?!0:!1;try{if(C.readyState)var G=C.readyState;else{var V,J;G=(V=C.contentWindow)==null?void 0:(J=V.document)==null?void 0:J.readyState}return G==="complete"}catch(b){return F===void 0?!1:F}};
nd5=function(C){C||(C=function(F,G,V){F.addEventListener(G,V)});
return C};
Iai=function(C,F){var G=u_9();G=G===void 0?new zn9:G;if(C=ifw(C)){var V=nd5(V);for(var J=!1,b=function(f){J||(J=!0,F(f))},z,Q=2,E=0;E<QMq.length;++E)if(QMq[E]===C.tagName){Q=3;
z=[C];break}z||(z=C.querySelectorAll(QMq.join(",")));var t=0,k=0,U=!0,H=C=!1;E={};for(var l=0;l<z.length;E={isImg:void 0},l++){var N=z[l];if(!$di(N))if(E.isImg=N.tagName==="IMG",bfZ(N,G.crossDomainLoadedDefault))C=!0,E.isImg&&(U=!0);else{t++;var S=function(f){return function(c){t--;!t&&U&&b(Q);f.isImg&&(c=c&&c.type==="error",k--,c||(U=!0),!k&&H&&U&&b(Q))}}(E);
V(N,"load",S);E.isImg&&(k++,V(N,"error",S))}}k===0&&(U=!0);z=null;z=_.VT.document.readyState==="complete";if(t===0&&!C&&z)Q=5;else if(t||!C){V(_.VT,"load",function(){!G.pendingImagesBlockLoad||!k&&U?b(4):H=!0});
return}b(Q)}};
Eds=function(C,F,G){if(C)for(var V=0;C!=null&&V<500&&!G(C);++V)C=F(C)};
Wgi=function(C,F){Eds(C,function(G){try{return G===G.parent?null:G.parent}catch(V){}return null},F)};
too=function(C,F){if(C.tagName=="IFRAME")F(C);else{C=C.querySelectorAll("IFRAME");for(var G=0;G<C.length&&!F(C[G]);++G);}};
aaZ=function(C){return(C=C.ownerDocument)&&(C.parentWindow||C.defaultView)||null};
kI9=function(C,F,G){try{var V=JSON.parse(G.data)}catch(z){}if(typeof V==="object"&&V&&V.type==="creativeLoad"){var J=aaZ(C);if(G.source&&J){var b;Wgi(G.source,function(z){try{if(z.parent===J)return b=z,!0}catch(Q){}});
b&&too(C,function(z){if(z.contentWindow===b)return F(V),!0})}}};
Udw=function(C){return typeof C==="string"?document.getElementById(C):C};
ZfB=function(){var C={};return C[0]=_.kf(HfZ,"current"),C[1]=_.kf(laW),C[2]=_.kf(yV9),C};
wS=function(C,F){return C.left===F.left&&C.top===F.top&&C.width===F.width&&C.height===F.height};
NGB=function(C,F){return{left:Math.max(C.left,F.left),top:Math.max(C.top,F.top),width:Math.max(0,Math.min(C.left+C.width,F.left+F.width)-Math.max(C.left,F.left)),height:Math.max(0,Math.min(C.top+C.height,F.top+F.height)-Math.max(C.top,F.top))}};
Of9=function(C,F){return{left:Math.round(C.left+F.x),top:Math.round(C.top+F.y),width:C.width,height:C.height}};
XkE=function(C,F,G){if(C&&F!==null&&F!=F.top){if(!F.top)return new _.Ml(-12245933,-12245933);F=F.top}try{return(G===void 0?0:G)?(new _.Ml(F.innerWidth,F.innerHeight)).round():_.LA(F).round()}catch(V){return new _.Ml(-12245933,-12245933)}};
wk9=function(C,F,G){try{if(C){if(!F.top)return new Hj(-12245933,-12245933,-12245933,-12245933);F=F.top}var V=XkE(C,F,G),J=V.height,b=V.width;if(b===-12245933)return new Hj(b,b,b,b);var z=Bj(vj(F.document)),Q=z.x,E=z.y;return new Hj(E,Q+b,E+J,Q)}catch(t){return new Hj(-12245933,-12245933,-12245933,-12245933)}};
Mo5=function(C){var F;return(F=C.google_tag_data)!=null?F:C.google_tag_data={}};
SDW=function(C){var F,G;return typeof((F=C.navigator)==null?void 0:(G=F.userAgentData)==null?void 0:G.getHighEntropyValues)==="function"};
BG5=function(C){if(!SDW(C))return null;var F=Mo5(C);if(F.uach_promise)return F.uach_promise;C=C.navigator.userAgentData.getHighEntropyValues(LgB).then(function(G){F.uach!=null||(F.uach=G);return G});
return F.uach_promise=C};
gd9=function(C){var F;return vdE(fas(hnq(cVI(AVE(ens(ddW(xdS(sMi(new qDW,C.architecture||""),C.bitness||""),C.mobile||!1),C.model||""),C.platform||""),C.platformVersion||""),C.uaFullVersion||""),((F=C.fullVersionList)==null?void 0:F.map(function(G){var V=new PzW;V=_.fA(V,1,G.brand);return _.fA(V,2,G.version)}))||[]),C.wow64||!1)};
Rns=function(C){var F,G;return(G=(F=BG5(C))==null?void 0:F.then(function(V){return gd9(V)}))!=null?G:null};
YDo=function(C,F){return new ap(function(G){var V=!1,J=Array(F.length);J.fill(void 0);var b=new Set,z=new Set,Q=function(U,H){C.running?(J[H]=U,b.add(H),V||(V=!0,Os(C,function(){V=!1;G.next(_.Po(J))},1))):G.error(new hG(H))},E=function(U,H){z.add(H);
b.add(H);Os(C,function(){G.error(U)},1)},t=function(U){z.add(U);
Os(C,function(){z.size===F.length&&G.complete()},1)},k=F.map(function(U,H){return U.subscribe(function(l){return void Q(l,H)},function(l){return void E(l,H)},function(){return void t(H)})});
return function(){k.forEach(function(U){return void U.unsubscribe()})}})};
rVB=function(C,F,G){function V(){if(F.debugChannel){var f=F.debugChannel,c=f.next;var A={creativeId:F.debugNames.getName(G),requiredSignals:J,signals:Object.assign({},b),hasPrematurelyCompleted:z,errorMessage:Q,erroredSignalKey:E};A={specMajor:2,specMinor:0,specPatch:0,timestamp:Kv(F.timeProvider.now(),new D6(0,F.timeProvider.timeline)),instanceId:F.debugNames.getName(F.symbol),creativeState:A};c.call(f,A)}}
for(var J=Object.keys(C),b={},z=!1,Q=null,E=null,t={},k=new Set,U=[],H=[],l=_.u(J),N=l.next(),S={};!N.done;S={key$jscomp$394:void 0},N=l.next())S.key$jscomp$394=N.value,N=C[S.key$jscomp$394],N instanceof Xf?(t[S.key$jscomp$394]=N.value,k.add(S.key$jscomp$394),F.debugChannel&&(b[String(S.key$jscomp$394)]=kkB(N.value))):(N=N.pipe(Gk(function(f,c){return tyi(f)||tyi(c)?!1:f===c}),e9(function(f){return function(c){F.debugChannel&&(b[String(f.key$jscomp$394)]=kkB(c),V());
var A={};return A[f.key$jscomp$394]=c,A}}(S)),mb(function(f){return function(c){if(c instanceof hG)throw new TGS(String(f.key$jscomp$394));
throw c;}}(S)),Liq(function(f){return function(){k.add(f.key$jscomp$394)}}(S),function(f){return function(c){E=String(f.key$jscomp$394);
Q=String(c);V()}}(S),function(f){return function(){k.has(f.key$jscomp$394)||(z=!0,V())}}(S))),H.push(S.key$jscomp$394),U.push(N));
(C=Object.keys(b).length>0)&&V();l=YDo(F.queue,U).pipe(mb(function(f){if(f instanceof hG)throw new odo(String(H[f.inputObservableIndex]));throw f;}),e9(function(f){return Object.freeze(Object.assign.apply(Object,[{},
t].concat(_.da(f))))}));
return(U=U.length>0)&&C?op(Bw(Object.freeze(t)),l):U?l:Bw(Object.freeze(t))};
KgZ=function(C,F,G,V,J){return C.performanceMonitor.timeExecution.bind(C.performanceMonitor)(733,function(){var b={};try{return F.pipe(mb(function(z){V(Object.assign({},b,{error:z}));return TO}),Pw(function(z){try{var Q=G(C,z)}catch(t){return V(Object.assign({},b,{error:t instanceof Error?t:String(t)})),TO}var E={};
return rVB(Q,C,z.symbol).pipe(Liq(function(t){E=t}),bh(1),AW()).pipe(J,mb(function(t){V(Object.assign({},E,{error:t}));
return TO}),VS(void 0),e9(function(){return!0}))})).pipe(uh(function(z){return z+1},0),mb(function(z){V(Object.assign({},b,{error:z}));
return TO}))}catch(z){return V(Object.assign({},b,{error:z})),TO}})()};
cj=function(C){var F=new Map;if(typeof C!=="object"||C===null)return F;Object.values(C).forEach(function(G){G&&typeof G.extrapolateToNow==="function"&&(F.has(G.clock.timeline)||F.set(G.clock.timeline,G.clock.now()))});
return F};
DdW=function(C,F){return typeof C==="string"?encodeURIComponent(C):typeof C==="number"?String(C):Array.isArray(C)?C.map(function(G){return DdW(G,F)}).join(","):C instanceof D6?C.toString():C&&typeof C.extrapolateToNow==="function"?DdW(C.extrapolateUsingTimestampMap(F).value,F):C===!0?"1":C===!1?"0":C===void 0||C===null?null:C instanceof pkS?mdB(C):[C.top,
C.left,C.top+C.height,C.left+C.width].join()};
Cb9=function(C,F){C=Object.entries(C).map(function(G){var V=_.u(G);G=V.next().value;V=V.next().value;V=DdW(V,F);return V===null?"":G+"="+V}).filter(function(G){return G!==""});
return C.length?C.join("&"):""};
Gl9=function(C,F){var G=jXw,V=FvZ;F=F===void 0?.01:F;return function(J){F>0&&Math.random()<=F&&(C.global.HTMLFencedFrameElement&&C.global.fence&&typeof C.global.fence.reportEvent==="function"&&C.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),J=Object.assign({},J,{errorMessage:J.error instanceof Error&&J.error.message?J.error.message:String(J.error),errorStack:J.error instanceof Error&&J.error.stack?String(J.error.stack):null,errorName:J.error instanceof
Error&&J.error.name?String(J.error.name):null,errorContext:String(C.performanceMonitor.timedFunctionContext),errorEscapedQueryId:J.escapedQueryId}),G(Object.assign({},J,{payloadMapper:function(){return function(b){try{return V(Object.assign({},b))}catch(z){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),cj(J)).forEach(function(b){C.beaconFactory.makeBeacon(b).sendNow()}))}};
VEi=function(){var C=_.Rn.apply(0,arguments);return function(F){var G=F.pipe(bh(1),AW());F=C.map(function(V){return G.pipe(V,VS(!0))});
return xO(F).pipe(Ff(1),CA())}};
iBW=function(){var C=_.Rn.apply(0,arguments);return function(F){var G=F.pipe(bh(1),AW());F=C.map(function(V){return G.pipe(V,VS(!0))});
return op.apply(null,_.da(F)).pipe(Ff(1),CA())}};
J2B=function(C,F){return function(G){var V=G.pipe(bh(1),AW());G=V.pipe(C,VS(!0));V=V.pipe(tW(F,bh(),AW()),VS(!0));G=xO([G,V]);return EfB(G,V).pipe(Ff(1),CA())}};
$0E=function(C,F,G){G(!0)};
bBZ=function(C,F){return tW(QS(function(G){var V=C(G),J=F(G),b={};return V&&J&&b?new ap(function(z){J(V,b,function(Q){z.next(Object.assign({},G,{canEmit:Q}));z.complete()});
return function(){}}):AG}),ra(function(G){return G.canEmit}))};
nKf=function(C){var F={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(G){return G.pipe(QS(function(V){return new ap(function(J){function b(){Q.disconnect();E.unsubscribe()}
var z=C.MutationObserver;if(z&&V.ref!==void 0){var Q=new z(function(t){J.next(t)});
Q.observe(V.ref,F);var E=V.JSC$9359_released.subscribe(b);return b}})}))}};
u59=function(C){if(C.measurementDeferralState===3)return null;if(C.timeOnScreenReason!==void 0){var F=C.creativeFound===!1?"n":null;if(F!==null)return F}return C.geometricMeasurementErrors instanceof ey?"msf":C.contextValidationErrors instanceof dS?"c":C.contextVisibilityKnown===!1?"pv":C.geometricMeasurementErrors||C.contextValidationErrors?"x":null};
QXW=function(C,F){return C.replace(zlI,function(G,V){try{var J=_.xf.get(F,V);if(J==null||J.toString()==null)return G;J=J.toString();if(J==""||!_.uZ(J==null?"":String(J)))return encodeURIComponent(J).replace(/%2C/g,",")}catch(b){}return G})};
IBf=function(C,F){var G=Object.assign({},C),V=C.userAgentClientHints;G=(delete G.userAgentClientHints,G);G=C.payloadMapper(G);var J=Cb9(G,F);return _.ss(C.urlPrefixes,function(b){var z="";typeof V==="string"&&(z="&"+Cb9({uach:V},F));var Q={};return QXW(b,(Q.VIEWABILITY=J,Q))+z})};
jXw=function(C,F){var G=C.payloadMapper(C),V=Cb9(G,F);return V?_.ss(C.urlPrefixes,function(J){J=J.indexOf("?")>=0?J:J+"?";J="?&".indexOf(J.slice(-1))>=0?J:J+"&";return J+V}):C.urlPrefixes};
EKw=function(){return tW(ra(function(C){return C!==void 0}),e9(function(C){return C}))};
WvI=function(C){return tW(e9(function(){return!0}),zk(!1),Nl(C))};
tEZ=function(C){return C.length<=0?TO:xO(C.map(function(F){var G=0;return F.pipe(e9(function(V){return{index:G++,value:V}}))})).pipe(ra(function(F){return F.every(function(G){return G.index===F[0].index})}),e9(function(F){return F.map(function(G){return G.value})}))};
aBW=function(C,F){C.currentState&&(C.previousState=C.currentState);C.currentState=F;C.previousState&&C.previousState.value?(F=Math.max(0,Kv(F.timestamp,C.previousState.timestamp)),C.totalTime+=F,C.consecutiveTime+=F):C.consecutiveTime=0;return C};
klE=function(){return tW(uh(aBW,{totalTime:0,consecutiveTime:0}),e9(function(C){return C.totalTime}))};
U0o=function(){return tW(uh(aBW,{totalTime:0,consecutiveTime:0}),e9(function(C){return C.consecutiveTime}))};
HBB=function(C,F){return function(G){return tEZ(F.map(function(V){return G.pipe(C(V))}))}};
lBI=function(){var C;return tW(Liq(function(F){return void(C=F.timestamp)}),U0o(),e9(function(F){return{timestamp:C,
value:Math.round(F)}}))};
y2E=function(C,F){return wS(C.topWindowViewportExternalGeometry,F.topWindowViewportExternalGeometry)&&wS(C.elementGeometry,F.elementGeometry)&&wS(C.exposedViewportLocalGeometry,F.exposedViewportLocalGeometry)&&wS(C.intersectionGeometry,F.intersectionGeometry)&&C.elementGeometrySourceName===F.elementGeometrySourceName&&C.measurementRequests===F.measurementRequests&&C.viewportGeometrySourceName===F.viewportGeometrySourceName&&C.viewportLocalAppOffset.x===F.viewportLocalAppOffset.x&&C.viewportLocalAppOffset.y===
F.viewportLocalAppOffset.y};
XpS=function(C,F){return function(G){return function(V){var J=V.pipe(JG(new yS),AW());V=G.element.pipe(Gk());J=J.pipe(e9(function(b){return b.value}));
return xO([V,J,F]).pipe(e9(function(b){var z=_.u(b);b=z.next().value;var Q=z.next().value;z=z.next().value;if(b.ref===void 0)var E={top:0,left:0,width:0,height:0};else{E=b.ref.getBoundingClientRect();var t=b.ref,k=C.global,U=new _.ql(0,0),H=Pj(_.gS(t));if(cG5(H,"parent")){do{if(H==k)var l=_.RR(t);else l=ZBT(t),l=new _.ql(l.left,l.top);U.x+=l.x;U.y+=l.y}while(H&&H!=k&&H!=H.parent&&(t=H.frameElement)&&(H=H.parent))}E={top:U.y,left:U.x,width:E.width,height:E.height}}E=Of9(E,Q.viewportLocalAppOffset);
k=NGB(E,Q.exposedViewportLocalGeometry);U=C.timeProvider.now();H=Object;t=H.assign;if(z!==2||C.inCrossDomainIframe||k.width<=0||k.height<=0)var N=!1;else try{var S=C.document.elementFromPoint(k.left+k.width/2,k.top+k.height/2);N=S?!N0W(S,b):!1}catch(f){N=!1}return{timestamp:U,value:t.call(H,{},Q,{elementGeometrySourceName:"geo",intersectionGeometry:N?OB5.intersectionGeometry:k,elementGeometry:E})}}),Zi(C.queue))}}};
N0W=function(C,F,G){G=G===void 0?0:G;return C.ref===void 0||F.ref===void 0?!1:C.ref===F.ref||_.Yf(F.ref,function(V){return V===C.ref})?!0:F.ref.ownerDocument&&F.ref.ownerDocument.defaultView&&F.ref.ownerDocument.defaultView===F.ref.ownerDocument.defaultView.top?!1:G<10&&F.ref.ownerDocument&&F.ref.ownerDocument.defaultView&&F.ref.ownerDocument.defaultView.frameElement?N0W(C,new Tk(F.ref.ownerDocument.defaultView.frameElement),G+1):!0};
Sq5=function(C){return function(F){return F.pipe(C.ResizeObserver?wpA(C):MEB(C),bh(1),AW())}};
wpA=function(C){return function(F){return F.pipe(QS(function(G){var V=C.ResizeObserver;if(!V||G.ref===void 0)return Bw(OB5.elementGeometry);var J=(new ap(function(b){function z(){G.ref!==void 0&&Q.unobserve(G.ref);Q.disconnect();E.unsubscribe()}
if(G.ref===void 0)return b.complete(),function(){};
var Q=new V(function(t){t.forEach(function(k){b.next(k)})});
Q.observe(G.ref);var E=G.JSC$9359_released.subscribe(z);return z})).pipe(pv(C.performanceMonitor,736),e9(function(b){return b.contentRect}));
return op(Bw(G.ref.getBoundingClientRect()),J)}),Gk(wS))}};
MEB=function(C){return function(F){var G=F.pipe(nKf(C)),V=C.onResize;G=op(F.pipe(e9(function(){return VoW("resize")})),G,V);
return xO(F,G).pipe(pv(C.performanceMonitor,737),e9(function(J){J=_.u(J).next().value;return J.ref===void 0?void 0:J.ref.getBoundingClientRect()}),EKw(),Gk(wS))}};
vKE=function(C,F){var G=Lv5(C,F).pipe(bh(1),AW());return function(V){return function(J){J=J.pipe(QS(function(b){return b.element}),Gk());
return xO([G,J]).pipe(QS(function(b){var z=_.u(b);b=z.next().value;z=z.next().value;return B0T(C,b.intersectionObserver,Sq5(C),b.observations,V,b.flushRecords,z)}),Zi(C.queue))}}};
fBq=function(C){return e9(function(F){return F.value.viewportGeometrySourceName!=="nio"?F:Object.assign({},F,{value:Object.assign({},F.value,{exposedViewportLocalGeometry:KA(C,!0),topWindowViewportExternalGeometry:KA(C,!0)})})})};
hls=function(C,F){return Bw(F).pipe(C,e9(function(){return F}))};
Lv5=function(C,F){return C.timeProvider.timeline!==c2q?vw(new ey(2)):C.MutationObserver?typeof IntersectionObserver==="undefined"?vw(new ey(0)):(new ap(function(G){var V=new yS,J=new Di(V.next.bind(V),{threshold:[].concat(_.da(F))});G.next({observations:V.pipe(pv(C.performanceMonitor,735)),intersectionObserver:J,flushRecords:function(b){b=J.takeRecords(b);b.length>0&&V.next(b)}})})).pipe(Ff(1),bh(1),AW()):vw(new ey(1))};
A2I=function(C){return cWT(C.sort(function(F,G){return F.time-G.time}),RdE)};
B0T=function(C,F,G,V,J,b,z){return new ap(function(Q){function E(){N||(N=!0,z.ref!==void 0&&F.unobserve(J,z.ref),k.unsubscribe(),l.unsubscribe(),H.unsubscribe(),S.unsubscribe())}
if(z.ref!==void 0){elT(F,J);F.observe(J,z.ref);var t=new pA({timestamp:C.timeProvider.now(),value:Object.assign({},OB5,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),k=V.pipe(Pw(function(f){return A2I(f)}),ra(function(f){return f.target===z.ref}),e9(function(f){return{timestamp:new D6(f.time,c2q),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:f.rootBounds||mi,topWindowViewportExternalGeometry:f.rootBounds||KA(C,!0),measurementRequests:U,elementGeometrySourceName:"nio",intersectionGeometry:f.intersectionRect,elementGeometry:f.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:f.isIntersecting,isV2Visible:f.isVisible}}}),JG(t),AW()).subscribe(Q),U=new yS,H=U.subscribe(function(){b(J);
Q.next({timestamp:C.timeProvider.now(),value:t.value.value});z.ref!==void 0&&(F.unobserve(J,z.ref),F.observe(J,z.ref))}),l=hls(G,z).subscribe(function(){U.next()}),N=!1,S=z.JSC$9359_released.subscribe(function(){return E()});
return E}})};
d0E=function(C,F){var G=C.getOnBackgrounded().pipe(e9(function(){return"b"}));
return EfB(F,G).pipe(Ff(1),Nl(C.queue))};
Cf=function(C){return function(F){var G;return F.pipe(Liq(function(V){return void(G=V.timestamp)}),e9(function(V){return V.value}),C,e9(function(V){return{timestamp:G,
value:V}}))}};
x0w=function(C){return C.intersectionGeometry.width*C.intersectionGeometry.height/(C.elementGeometry.width*C.elementGeometry.height)};
F_=function(C,F,G){G=G===void 0?function(V,J){return V===J}:G;
return C.timestamp.equals(F.timestamp)&&G(C.value,F.value)};
Vf=function(C,F){return F.pipe(e9(function(G){return new GI(C.timeProvider,{timestamp:C.timeProvider.now(),value:G})}))};
sXB=function(C){return function(F){return F.pipe(BSA(C),e9(function(G){var V=_.u(G);G=V.next().value;V=V.next().value;var J=G.value;return{timestamp:G.timestamp,value:J>=1?!0:J<=0?!1:J>=V}}))}};
Pbq=function(){return tW(ra(function(C,F){return F>0}),qqo,zk(-1),Gk())};
gK9=function(C,F,G){return C?xO([F,G]).pipe(ra(function(V){var J=_.u(V);V=J.next().value;J=J.next().value;return V.timestamp.equals(J.timestamp)}),e9(function(V){var J=_.u(V);
V=J.next().value;J=J.next().value;return V.value>J.value?V:J})):F};
T0q=function(C){return function(F){var G=F.pipe(Rls),V=F.pipe(YqT);return C instanceof ap?C.pipe(QS(function(J){return gK9(J,G,V)})):gK9(C.value,G,V)}};
GFw=function(C,F,G,V){var J=V.geometryIsOccluded,b=V.exposureThreshold,z=V.wasLargeAdAtRender,Q=V.allowLargeAdThreshold,E=V.largeAdExposureThreshold,t=V.mayUseViewportShareExposure,k=V.hasMeasurementStarted;V=V.useIntersectionObserverV2;F=oKf(C,G,F);G=r2Z(C,G);V=KvZ(F,V);var U=D0I(C,J,t,F),H=U.pipe(e9(function(g){return g.value}),Gk(),Nl(C),uh(function(g,r){return Math.max(g,r)},0)),l=U.pipe(e9(function(g){return g.value}),Pbq(),Nl(C)),N=F.pipe(ppW,e9(function(g){return g.value}),Ff(2),Gk(),Nl(C));
z=m05(C,F,z,Q);var S=z.pipe(zk(!1),Gk(),e9(function(g){return g?E:b}));
Q=U.pipe(sXB(S),Gk(),Nl(C));var f=xO([Q,F]).pipe(ra(function(g){var r=_.u(g);g=r.next().value;r=r.next().value;return g.timestamp.equals(r.timestamp)}),e9(function(g){var r=_.u(g);
g=r.next().value;r=r.next().value;return{visible:g.value,geometry:r.value.elementGeometry}}),uh(function(g,r){return!r.visible&&g.visible?g:r},{visible:!1,
geometry:mi}),e9(function(g){return g.geometry}),zk(mi),Nl(C),Gk(wS));
t=t instanceof ap?t.pipe(Gk(),jy()):AG;S=xO([t,S]).pipe(jy());var c=F.pipe(ra(function(g){return g.value.viewportGeometrySourceName!=="ns"&&g.value.elementGeometrySourceName!=="ns"}),uh(function(g){return g+1},0),zk(0),Nl(C)),A=G.pipe(jy(!0),zk(!1),Nl(C));
A=xO([k,A]).pipe(e9(function(g){var r=_.u(g);g=r.next().value;r=r.next().value;return g&&!r}),Nl(C));
var T=F.pipe(CRs,Gk()),P=T.pipe(e9(function(g){return g.value}),uh(function(g,r){return Math.max(g,r)},0),Gk(),Nl(C));
C=T.pipe(e9(function(g){return g.value}),Pbq(),Nl(C));
return{shouldResetExposureSignals:t,shouldResetViewabilitySignals:S,geometrySignals:{readyGeometryWithDefault:F,measurementStrategy:F.pipe(jDi),creativePosition:f.pipe(Gk(wS)),visible:Q.pipe(Gk(F_)),timestampedExposure:U.pipe(Gk(F_)),maximumExposure:H,minimumExposure:l,browserSize:F.pipe(FNZ,Gk(_.K9)),timestampedScreenShare:T,maxScreenShare:P,minScreenShare:C,geometricMeasurementErrors:G,measurementRequests:F.pipe(e9(function(g){return g.value.measurementRequests})),
isLargeAd:z,geometryIsOccluded:J,hasMeasurementStarted:k,geometryMeasurable:A,validMeasurementCount:c,loadTimeExposure:N,v2VisibilityBitVector:V}}};
r2Z=function(C,F){return F.pipe(ra(function(){return!1}),e9(function(G){return G}),mb(function(G){return iz(new Xf(G),C)}))};
oKf=function(C,F,G){return F.pipe(QR5(AG),Nl(C)).pipe(Gk(function(V,J){return F_(V,J,y2E)}),zk({timestamp:G.now(),
value:OB5}),Nl(C))};
D0I=function(C,F,G,V){G=V.pipe(T0q(G),Cf(e9(function(J){return Math.round(J*100)/100})),Nl(C));
return F instanceof Xf?G:xO([G,F]).pipe(e9(function(J){var b=_.u(J);J=b.next().value;b=b.next().value;return{timestamp:b.timestamp.maximum(J.timestamp),value:b.value?0:J.value}}),Gk(F_),Nl(C))};
m05=function(C,F,G,V){F=[F.pipe(e9(function(J){return J.value.elementGeometry.width*J.value.elementGeometry.height>=242500}))];
G instanceof ap&&F.push(G.pipe(e9(function(J){return!!J})));
G=xO(F);return V?G.pipe(e9(function(J){return J.some(function(b){return b})}),zk(!1),Gk(),Nl(C)):iz(new Xf(!1),C)};
KvZ=function(C,F){C=xO([C,F]).pipe(e9(function(J){var b=_.u(J);J=b.next().value;if(b.next().value&&J.value.isIntersecting)return J.value.isV2Visible}),Gk());
var G=C.pipe(e9(function(J){return J===void 0?!0:J}),uh(function(J,b){return J||!b},!1)),V=C.pipe(uh(function(J,b){return b===void 0?J:b?!1:J!=null?J:!0},void 0),e9(function(J){return!!J}));
return xO([F,Wio(C,G,V)]).pipe(e9(function(J){var b=_.u(J);J=b.next().value;var z=_.u(b.next().value);b=z.next().value;var Q=z.next().value;z=z.next().value;var E=0;if(!J)return 0;if(b===void 0)return 16;b&&(E|=1);b||(E|=2);Q&&(E|=4);z&&(E|=8);return E}))};
nnA=function(C,F,G,V,J){var b=V_i.timeThresholdMs;var z=z===void 0?new iWW(F,V):z;return(new ap(function(Q){var E=G.pipe(zk(void 0),QS(function(){return JgB(J)})).pipe(e9(function(t){var k=t.value;
t=t.timestamp;var U=k.visible;k=k.consecutiveViewTime;var H=k>=b;H||!U?$4f(z):(t=Math.max(0,Kv(F.now(),t)),bWo(z,Math.max(0,b-k-t)));return H}),uh(function(t,k){return k||t},!1),Gk()).subscribe(Q);
return function(){z.dispose();E.unsubscribe()}})).pipe(IR(function(Q){return!Q},!0),Nl(C))};
JgB=function(C){return tEZ([C,C.pipe(lBI())]).pipe(e9(function(F){var G=_.u(F);F=G.next().value;G=G.next().value;return{timestamp:F.timestamp,value:{visible:F.value,consecutiveViewTime:G.value}}}),Gk(function(F,G){return F_(F,G,function(V,J){return V.consecutiveViewTime===J.consecutiveViewTime&&V.visible===J.visible})}))};
uFi=function(){return tW(U0o(),uh(function(C,F){return Math.max(C,F)},0),e9(function(C){return Math.round(C)}))};
z7q=function(C){return tW(sXB(Bw(C)),uFi())};
QDW=function(C,F){return F instanceof ap?F.pipe(QS(function(G){return(G=G?15:null)?vw(new ey(G)):C})):(F=F.value?15:null)?vw(new ey(F)):C};
INW=function(C){var F=new ey(13);if(C.length<1)return{chain:TO,capturedErrors:TO};var G=new yS,V=C[0];return{chain:C.slice(1).reduce(function(J,b){return J.pipe(mb(function(z){G.next(z);return b}))},V).pipe(mb(function(J){G.next(J);
return vw(F)}),JG(new yS),AW()),
capturedErrors:G}};
Eni=function(C,F){var G=C.pipe(JG(new yS),AW());return QS(function(V){return G.pipe(F(V))})};
t_S=function(C,F){if(C.inCrossDomainIframe)return vw(new ey(6));var G=new yS;return op(Bw({}),F,G).pipe(e9(function(){return{timestamp:C.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:WNq(C),topWindowViewportExternalGeometry:KA(C,!0),measurementRequests:G,viewportLocalAppOffset:{x:0,y:0}}}}),Zi(C.queue))};
WNq=function(C){var F=KA(C,!1);if(!C.inIframe||!AGS(C.global.parent)||C.global.parent===C.global)return F;var G=new JV(C.global.parent,C.debugChannel);G.beaconFactory=C.beaconFactory;G=WNq(G);C=C.global.frameElement.getBoundingClientRect();return NGB(Of9(NGB(G,C),{x:F.left-C.left,y:F.top-C.top}),F)};
aNo=function(C){if(C.prerendering)return 3;var F;return(F={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[C.visibilityState||C.webkitVisibilityState||C.mozVisibilityState||""])!=null?F:0};
kFB=function(C){return C.document.JSC$9370_onVisibilityChange.pipe(e9(function(F){return F==="visible"}),Gk(),Nl(C.queue))};
U4Z=function(C,F,G){var V;return F.pipe(Gk(),QS(function(J){return G.pipe(e9(function(){if(!V){V=!0;try{J.next()}finally{V=!1}}return!0}))}),zk(!1),Nl(C.queue))};
HW9=function(C){return tW(Cf(e9(function(F){return F>=1?!0:F<=0?!1:F>=C})),klE(),e9(function(F){return Math.round(F)}))};
ygB=function(C,F,G,V,J){var b=lNZ;if(b.length>1)for(var z=0;z<b.length-1;z++)if(b[z]<b[z+1])throw Error();z=J.pipe(zk(void 0),QS(function(){return G.pipe(lBI())}),Gk(),Nl(C));
J=J.pipe(zk(void 0),QS(function(){return G.pipe(uFi())}),Gk(),Nl(C));
return{totalMeasurementTime:V.pipe(zk(void 0),QS(function(){return F.pipe(e9(function(Q){return{timestamp:Q.timestamp,value:!0}}),klE())}),Gk(),Nl(C)),
totalUnviewedTime:V.pipe(zk(void 0),QS(function(){return F.pipe(e9(function(Q){return{timestamp:Q.timestamp,value:Q.value===0}}),klE())}),Gk(),Nl(C)),
maxTimeOnScreen:V.pipe(zk(void 0),QS(function(){return F.pipe(HBB(z7q,b))}),Gk(_.K9),Nl(C)),
timeOnScreen:V.pipe(zk(void 0),QS(function(){return F.pipe(HBB(HW9,b),e9(function(Q){return Q.map(function(E,t){return t>0?E-Q[t-1]:E})}))}),Gk(_.K9),Nl(C)),
maxConsecutiveViewTime:J,consecutiveViewTime:z.pipe(Gk(F_),Nl(C))}};
NiW=function(C){var F=!0;F=F===void 0?!1:F;return tW(QS(function(G){return ZWW(C.document,G,F)}),Nl(C.queue))};
OW9=function(C,F,G){var V=G.pipe(e9(function(J){return{value:J,timestamp:C.timeProvider.now()}}),Gk(F_));
return F instanceof ap?F.pipe(Gk(),QS(function(J){return J?iz(new Xf({value:!1,timestamp:C.timeProvider.now()}),C.queue):V})):F.value===!1?V:new Xf(!1)};
XQZ=function(C,F,G,V,J,b,z){var Q=V_i;F=F instanceof ap?F.pipe(zk(!1),Gk()):F;var E=!C.isMobile();G=OW9(C,G,V);C=z.measurableCreative.pipe(WvI(C.queue));return Object.assign({},Q,{geometryIsOccluded:G,wasLargeAdAtRender:J,allowLargeAdThreshold:E,mayUseViewportShareExposure:F,hasMeasurementStarted:C,useIntersectionObserverV2:b})};
M_B=function(C,F,G,V,J,b){var z=1;b=b===void 0?!0:b;z=z===void 0?.01:z;var Q=Q===void 0?C.timeProvider.intervalObservable(100).pipe(Nl(C.queue)):Q;return C.performanceMonitor.timeExecution(916,function(){return wQI(C,F.pipe(Zi(C.queue)),G.pipe(Zi(C.queue)),V,J,b,z,Q)})()};
wQI=function(C,F,G,V,J,b,z,Q){var E=kFB(C).pipe(e9(function(k){return!k})),t=new S0B(C,[new LNw(C,lNZ),
new BiI(C,Q)]);Q=VEi(vn5,fNi);return KgZ(C,F,function(k,U){var H=iz(new Xf(U.element),k.queue).pipe(NiW(k),Nl(k.queue)),l={loadedElement:H,shouldMeasure:H.pipe(jy(!0)),measurableCreative:H.pipe(e9(function(g){var r=r===void 0?Symbol():r;return Object.freeze({symbol:r,element:iz(new Xf(g),k.queue)})})),
creativeSearchResult:iz(new Xf("mue"),k.queue)},N=new Xf(!1),S=new Xf(!1),f=new Xf(17),c=new Xf(!1),A=new Xf(!1),T=iz($d,k.queue);N=t.buildGeometrySource(l,{inApp:N,useV2:!1,requestSource:iz(f,k.queue)}).geometrySource;l=XQZ(k,c,S,E,A,T,l);S=GFw(k.queue,k.timeProvider,N,l);l=S.geometrySignals;c=S.shouldResetViewabilitySignals;S=ygB(k.queue,l.timestampedExposure,l.visible,S.shouldResetExposureSignals,c);c=nnA(k.queue,k.timeProvider,c,l.measurementRequests,l.visible);A=G.pipe(ra(function(g){return g===
U.element.ref}),e9(function(){return"ur"}));
T=Ulw(k.timeProvider,J).pipe(jy("t"));A=d0E(k,op(A,T));T=U4Z(k,l.measurementRequests,A.pipe(ra(function(g){return g!==null})));
N=A.pipe(ra(function(g){return g!==null}),e9(function(){return aNo(k.global.document)===1}));
var P=h7i(k.document);return Object.assign({},{beaconFactory:new Xf(k.beaconFactory),context:new Xf(k),inferredPingId:new Xf("lidar2"),timeOnScreenPingId:new Xf("lidartos"),binaryContext:new Xf(17),binaryVersion:new Xf(V),requestSource:f,contextValidationErrors:new Xf(k.validate()?null:new dS),contextVisibilityKnown:new Xf(P),payloadMapper:new Xf(FvZ),endOfSessionReason:A,timeOnScreenReason:A,requestMeasurementOnEndOfSession:T,hasImpressionFired:cgS,crossDomainIframeState:new Xf(k.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:$d,inFetchLaterBeaconExperiment:$d,isTurtlex:$d,turtlexReportEventData:new Xf(""),reportFencedFrameEvent:AG,isViewableAttributionEnabled:$d,inViewableAttributionExperiment:new Xf(0),fetchBeaconFactory:AG,supportsPendingBeacon:$d,supportsFetchLater:$d,emit:new Xf($0E),beginToRenderEvent:new Xf(Symbol()),activeViewUnmeasurableEvent:new Xf(Symbol()),activeViewViewableEvent:new Xf(Symbol()),creativeFound:cgS,immediateUrlPrefixes:new Xf(U.immediateUrls),timeOnScreenUrlPrefixes:new Xf(U.timeOnScreenUrls),
cpmavUrls:AG,viewableRelayUrls:AG,measurementDeferralState:new Xf(2),urlSerializer:new Xf(IBf),viewUrlSerializer:new Xf(Agw),isCreativeLoaded:H.pipe(WvI(k.queue)),pageVisible:E.pipe(e9(function(g){return!g})),
eosPageVisible:N,timestampedExposureHistory:l.timestampedExposure.pipe(uh(function(g,r){g.push(r);return g},[]))},l,{viewable:Vf(k,c),
maxTimeOnScreen:Vf(k,S.maxTimeOnScreen),timeOnScreen:Vf(k,S.timeOnScreen),maxConsecutiveViewTime:Vf(k,S.maxConsecutiveViewTime),consecutiveViewTime:S.consecutiveViewTime.pipe(e9(function(g){return new GI(k.timeProvider,g)})),
totalMeasurementTime:Vf(k,S.totalMeasurementTime),totalUnviewedTime:Vf(k,S.totalUnviewedTime),userAgentClientHints:GIw(k),clientOrderPingCounter:new Xf(new pkS)})},Gl9(C,z),iBW(b?J2B(Q,e7E):J2B(Q,d4S),x4T))};
sDs=function(C){var F=_.Rn.apply(1,arguments).filter(Boolean).join("&");if(!F)return C;var G=C.match(/[?&]adurl=/);return G?C.slice(0,G.index+1)+F+"&"+C.slice(G.index+1):C+(C.indexOf("?")<0?"?":"&")+F};
bz=function(C,F){return F?"&"+C+"="+encodeURIComponent(F):""};
q0E=function(){try{var C,F;return!!((C=window)==null?0:(F=C.top)==null?0:F.location.href)&&!1}catch(G){return!0}};
_.uz=function(C){C&&typeof C.dispose=="function"&&C.dispose()};
_.zI=function(C){for(var F=0,G=arguments.length;F<G;++F){var V=arguments[F];_.gI(V)?_.zI.apply(null,V):_.uz(V)}};
gno=function(){var C=PRE();C=C===void 0?"bevasrsg":C;return new Promise(function(F){var G=window===window.top?window:q0E()?window:window.top,V=G[C],J;((J=V)==null?0:J.bevasrs)?F(new Qf(V.bevasrs)):(V||(V={},V=(V.nqfbel=[],V),G[C]=V),V.nqfbel.push(function(b){F(new Qf(b))}))})};
R7q=function(C){var F={c:C.aC,e:C.uiu,mc:C.wrY,me:C.pro};C.ce&&(F.co={c:C.ce.p8G,a:C.ce.lYb,s:C.ce.tT5});return F};
Y0q=function(C){var F,G,V={aC:C.c,uiu:C.e,wrY:(F=C.mc)!=null?F:!1,pro:(G=C.me)!=null?G:!1};C.co&&(V.ce={p8G:C.co.c,lYb:C.co.a,tT5:C.co.s});return V};
Tii=function(C){return function(){var F;return _.I(function(G){if(G.nextAddress==1)return G.yield(C(),2);F=G.yieldResult;return G.return({f:function(){return F.fM9()},
c:function(V){return F.huF(V)},
m:function(V){return F.nU(Y0q(V))},
mws:function(V){return F.hxG(Y0q(V))}})})}};
onI=function(C,F){var G=PRE();G=G===void 0?"bevasrsg":G;F={s:function(b){var z;return C.snapshot(Object.assign({},b.c&&{aC:b.c},b.s&&{j6S:b.s},{m5g:(z=b.p)!=null?z:!0}))},
e:function(b){var z;return void((z=C.oX8)==null?void 0:z.call(C,b))},
c:function(b,z){return C.udX(b,z)},
p:C.ye1,l:function(){return C.qVX()},
wpc:F?Tii(F):void 0};var V=window===window.top?window:q0E()?window:window.top,J=V[G];if(J){J.bevasrs=F;if(J.nqfbel!==void 0)for(G=_.u(J.nqfbel),V=G.next();!V.done;V=G.next())V=V.value,V(F);J.nqfbel=void 0}else J={},J=(J.bevasrs=F,J.nqfbel=void 0,J),V[G]=J};
KN9=function(C){var F=F===void 0?51:F;var G=[];_.IM(C,rgq,6,_.ED()).forEach(function(V){_.Wk(V,2)<=F&&G.push(_.Wk(V,1))});
return G};
D4s=function(C){var F=F===void 0?51:F;var G=[];_.IM(C,rgq,6,_.ED()).forEach(function(V){_.Wk(V,2)>F&&G.push(_.Wk(V,1))});
return G};
pQT=function(C){C.then(function(){},function(){})};
tV=function(C){return{fieldType:1,fieldName:C}};
aM=function(C){return{fieldType:2,fieldName:C}};
_.kd=function(C){return{fieldType:3,fieldName:C}};
m4o=function(){function C(){J[0]=1732584193;J[1]=4023233417;J[2]=2562383102;J[3]=271733878;J[4]=3285377520;k=t=0}
function F(U){for(var H=z,l=0;l<64;l+=4)H[l/4]=U[l]<<24|U[l+1]<<16|U[l+2]<<8|U[l+3];for(l=16;l<80;l++)U=H[l-3]^H[l-8]^H[l-14]^H[l-16],H[l]=(U<<1|U>>>31)&4294967295;U=J[0];var N=J[1],S=J[2],f=J[3],c=J[4];for(l=0;l<80;l++){if(l<40)if(l<20){var A=f^N&(S^f);var T=1518500249}else A=N^S^f,T=1859775393;else l<60?(A=N&S|f&(N|S),T=2400959708):(A=N^S^f,T=3395469782);A=((U<<5|U>>>27)&4294967295)+A+c+T+H[l]&4294967295;c=f;f=S;S=(N<<30|N>>>2)&4294967295;N=U;U=A}J[0]=J[0]+U&4294967295;J[1]=J[1]+N&4294967295;J[2]=
J[2]+S&4294967295;J[3]=J[3]+f&4294967295;J[4]=J[4]+c&4294967295}
function G(U,H){if(typeof U==="string"){U=unescape(encodeURIComponent(U));for(var l=[],N=0,S=U.length;N<S;++N)l.push(U.charCodeAt(N));U=l}H||(H=U.length);l=0;if(t==0)for(;l+64<H;)F(U.slice(l,l+64)),l+=64,k+=64;for(;l<H;)if(b[t++]=U[l++],k++,t==64)for(t=0,F(b);l+64<H;)F(U.slice(l,l+64)),l+=64,k+=64}
function V(){var U=[],H=k*8;t<56?G(Q,56-t):G(Q,64-(t-56));for(var l=63;l>=56;l--)b[l]=H&255,H>>>=8;F(b);for(l=H=0;l<5;l++)for(var N=24;N>=0;N-=8)U[H++]=J[l]>>N&255;return U}
for(var J=[],b=[],z=[],Q=[128],E=1;E<64;++E)Q[E]=0;var t,k;C();return{reset:C,update:G,digest:V,digestString:function(){for(var U=V(),H="",l=0;l<U.length;l++)H+="0123456789ABCDEF".charAt(Math.floor(U[l]/16))+"0123456789ABCDEF".charAt(U[l]%16);return H}}};
iDW=function(C,F){F=F===void 0?CHS:F;if(!j8i){var G;C=(G=C.navigator)==null?void 0:G.userAgentData;if(!C||typeof C.getHighEntropyValues!=="function"||C.brands&&typeof C.brands.map!=="function")return Promise.reject(Error("ua"));FxA((C.brands||[]).map(function(J){var b=new GNS;b=_.fA(b,1,J.brand);return _.fA(b,2,J.version)}));
typeof C.mobile==="boolean"&&_.UD(VPq,2,C.mobile);j8i=C.getHighEntropyValues(F)}var V=new Set(F);return j8i.then(function(J){var b=VPq.clone();V.has("platform")&&_.fA(b,3,J.platform);V.has("platformVersion")&&_.fA(b,4,J.platformVersion);V.has("architecture")&&_.fA(b,5,J.architecture);V.has("model")&&_.fA(b,6,J.model);V.has("uaFullVersion")&&_.fA(b,7,J.uaFullVersion);return b.serialize()}).catch(function(){return VPq.serialize()})};
Hk=function(C,F,G,V){this.initialValue_=C;this.maxValue_=F;this.currBaseValue_=this.currValue_=C;this.randomFactor_=G||0;this.backoffFactor_=V||2};
lz=function(C){this.src=C;this.listeners={};this.typeCount_=0};
nUB=function(){for(var C;C=Jyf.remove();){try{C.fn.call(C.scope)}catch(F){iZ(F)}$eq.put(C)}bDw=!1};
_.u$I=function(C){switch(C){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}};
zB9=function(C){switch(C){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""}};
_.Q8Z=function(){};
l9f=function(C,F,G,V){C=I9i(EUW(WxS(new _.Za(1828,"0"),C),new tPq)).disableWithCredentials();F.length&&a9I(C,kNT(new UeT,F));V!==void 0&&(C.destinationUrl=V);var J=new HDS(1828,"","",!1,"",C.build());_.Nd(J,C);var b=new OD({flush:function(z){try{J.flush(z)}catch(Q){G(Q)}}});
b.addOnDisposeCallback(function(){setTimeout(function(){try{b.snapshotAndFlush()}finally{J.dispose()}})});
b.invocationLimit=1E5;b.flushInterval=3E4;b.JSC$9786_flushTimer.setInterval(3E4);return b};
X_=function(){var C,F,G;return(G=(C=globalThis.performance)==null?void 0:(F=C.now)==null?void 0:F.call(C))!=null?G:Date.now()};
Nj9=function(C,F){if(C.disable)return new yyZ;F=F?KN9(F):[];C={qx:C.qx,oat:C.vxn,f2l:C.f9Z,destinationUrl:C.destinationUrl,ioC:C.ioC,kV8:C.kV8};F=F===void 0?[]:F;return new ZD5(C,F)};
ODZ=function(C){if(!C)return null;C=_.wG(C,2);return C===null||C===void 0?null:D0(C)};
_.XDf=function(C){if(!C)return null;C=_.wG(C,4);return C===null||C===void 0?null:_.LT(C)};
SwS=function(C,F){return F?wDf(F):C?MPB(C):Promise.resolve()};
wDf=function(C){return new Promise(function(F,G){var V=_.Md("SCRIPT"),J=_.XDf(C);_.JW(V,J);V.onload=function(){_.So(V);F()};
V.onerror=function(){_.So(V);G(Error("Fa"))};
(Lf("HEAD")[0]||document.documentElement).appendChild(V)})};
MPB=function(C){return new Promise(function(F){var G=_.Md("SCRIPT");if(C){var V=_.wG(C,6);V=V===null||V===void 0?null:_.GO(V)}else V=null;_.ii(G,V);(Lf("HEAD")[0]||document.documentElement).appendChild(G);_.So(G);F()})};
Bk=function(C,F,G){var V,J=new Promise(function(b){V=setTimeout(b,F)});
return Promise.race([C.finally(function(){return void clearTimeout(V)}),
J.then(G)])};
Lxf=function(C,F){try{return globalThis.sessionStorage.setItem(C,F),!0}catch(G){return!1}};
Bjq=function(C,F,G,V){F=F===void 0?0:F;G=G===void 0?C.length:G;var J=0;for(V&&(J=Bjq(V));F<G;F++)V=typeof C==="string"?C.charCodeAt(F):C[F],J=vUA(31,J)+V|0;return J};
f9s=function(C,F){return[Bjq(C,0,C.length>>1,F),Bjq(C,C.length>>1)]};
hBW=function(C){var F=_.u(f9s(C,vk));C=F.next().value;F=F.next().value;return C.toString(16)+F.toString(16)};
cyo=function(C,F){var G=f9s(F);C=new Uint32Array(C.buffer);F=C[0];var V=_.u(G);G=V.next().value;V=V.next().value;for(var J=1;J<C.length;J+=2){for(var b=F,z=J,Q=G,E=V,t=0;t<22;t++)z=z>>>8|z<<24,z+=b|0,z^=Q+38293,b=b<<3|b>>>29,b^=z,E=E>>>8|E<<24,E+=Q|0,E^=t+38293,Q=Q<<3|Q>>>29,Q^=E;b=[b,z];C[J]^=b[0];J+1<C.length&&(C[J+1]^=b[1])}};
Ayo=function(C,F,G,V,J){var b=(4-(vk.length+G.length)%4)%4,z=new Uint8Array(4+b+vk.length+4+G.length),Q=new DataView(z.buffer),E=0;Q.setUint32(E,Math.random()*4294967295);E=E+4+b;z.set(vk,E);E+=vk.length;Q.setUint32(E,J);z.set(G,E+4);cyo(z,V);return C.insert(F,function(t){return void globalThis.sessionStorage.removeItem(t)})?Lxf(F,_.eU(z))?"s":"t":"i"};
eB9=function(C,F){var G=globalThis.sessionStorage.getItem(C);if(!G)return["m"];try{var V=_.p9(G);cyo(V,F)}catch(J){return globalThis.sessionStorage.removeItem(C),["c"]}for(F=4;F<7&&V[F]===0;)F++;for(G=0;G<vk.length;G++)if(V[F++]!==vk[G])return globalThis.sessionStorage.removeItem(C),["d"];G=(new DataView(V.buffer)).getUint32(F);return Math.floor(Date.now()/1E3)>=G?(globalThis.sessionStorage.removeItem(C),["e"]):["a",new Uint8Array(V.buffer,F+4)]};
deZ=function(C){return globalThis.TextEncoder?(new TextEncoder).encode(C):_.ff(C)};
xeI=function(C){var F=C,G;return function(){if(F){var V=F;F=void 0;G=V.apply(this,arguments)}return G}};
qw9=function(C){return AO(function(F){if(F instanceof C)return!0;var G,V,J=F==null?void 0:(G=F.ownerDocument)==null?void 0:(V=G.defaultView)==null?void 0:V[C.name];return s8I(J)&&F instanceof J})};
_.AV=function(C,F,G){_.hV.call(this);this.JSC$10000_listener_=C;this.JSC$10000_interval_=F||0;this.handler_=G;this.callback_=(0,_.ck)(this.JSC$10002_doAction_,this)};
_.eo=function(C){C=PHT(C);return _.LT(C)};
PHT=function(C){return C===null?"null":C===void 0?"undefined":C};
RBE=function(C){if(C&&C.focus)if(C!==document.activeElement)C.focus();else return gUI(function(){return _.I(function(F){document.activeElement&&document.activeElement.blur();return F.return(gUI(function(){C.focus()}))})})};
_.Ywf=function(C){var F=F===void 0?5:F;setTimeout(function(){var G;return _.I(function(V){V.nextAddress==1&&(G=document.activeElement);if(V.nextAddress!=5)return(document.activeElement===G||document.activeElement===document.body)&&F>=0&&C?V.yield(RBE(C),5):V.jumpTo(0);if(document.activeElement===C)return V.return();C=C.parentElement;--F;return V.jumpTo(2)})},15)};
gUI=function(C){return new Promise(function(F){requestAnimationFrame(function(){F(C())})})};
oUT=function(C){if(_.dG)C(_.dG);else{var F;((F=Tjw)!=null?F:Tjw=[]).push(C)}};
sD=function(){!_.dG&&_.xd&&_.ryw(_.xd());return _.dG};
_.ryw=function(C){_.dG=C;var F;(F=Tjw)==null||F.forEach(oUT);Tjw=void 0};
_.qd=function(C){_.dG&&_.dG.beforeLoadModuleCode(C)};
_.Pk=function(){_.dG&&_.dG.JSC$11061_setLoaded()};
gG=function(C){return fui(C)?Number(C):String(C)};
Kxq=function(C){this.action=C;this.wfv=!1};
DeE=function(C,F){Kxq.call(this,"set-drive-options");this.appId=C;this.appOrigin=F};
pDT=function(C){Kxq.call(this,"visibility");this.visible=C};
meq=function(C,F,G){RM.call(this,C,F,G)};
Cwq=function(C){TI.call(this,C)};
jaA=function(C){C=C&&C.getWindow()||window;return C.gadgets&&C.gadgets.rpc};
GnB=function(C,F){var G=F&&F.getWindow()||window;if(jaA(F))C();else if(FpS)FpS.push(C);else var V=FpS=[C],J=G.setInterval(function(){if(jaA(F)){G.clearInterval(J);for(var b=0;b<V.length;b++)V[b]();FpS=null}},100)};
iOA=function(C,F){var G=new oM(C);_.Nd(F,G);var V={passive:!1};F.listen(G,"mousewheel",function(J){return void VMZ(C,J)},V).listen(C,"scroll",function(J){return void VMZ(C,J)},V)};
VMZ=function(C,F){var G;a:{for(G=F.target;G;){if(G.nodeType==1){var V=_.rG(G,"overflowY");if(V=="auto"||V=="scroll")break a}G=G.parentNode}G=null}if(!G||!_.Kf(C,G)||G.scrollHeight==G.clientHeight||F.deltaY>0&&Math.abs(G.scrollTop-(G.scrollHeight-G.clientHeight))<=1||F.deltaY<0&&G.scrollTop==0)F.preventDefault(),F.stopPropagation()};
Gl=function(C,F,G,V,J,b,z,Q,E){Q=Q===void 0?!1:Q;E=E===void 0?!1:E;RM.call(this,void 0,void 0,void 0);RM.call(this,b?b+" picker modal-dialog":"picker modal-dialog",!0,G);_.Da(C,"protocol");this.iframeManager_=new JnW;this.targetId_=pf();this.rpcToken_=pf();C=_.mg(C);_.CB(C,"hostId");G=_.CB(C,"parent");this.useGapi_=!E&&!0||(G==null?void 0:G.includes("onepick.corp.google.com"));Q&&_.jE(C,"fv2","true");this.setUrl(C.toString());this.preferredDialogWidth_=V;this.preferredDialogHeight_=J;V!==void 0||
J!==void 0?V=!0:(V=_.CB(_.mg(C.toString()),"hostId"),$ME||($ME=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),V=!$ME.has(V));this.autoSizeDialog_=V;this.JSC$10190_gadgetsDomHelper_=z||this.JSC$10141_dom_;F&&(z=this.JSC$10190_gadgetsDomHelper_,F=_.CB(_.mg(this.JSC$10192_url_),"grugl")=="true"?bOw:nxf,jaA(z)||(z=z||vj(document),V=z.createElement("SCRIPT"),_.JW(V,F),V.type="text/javascript",z.JSC$9325_document_.body.appendChild(V)));
C=C.toString();F=null;z=C.indexOf("/picker?");z>-1?F=C.substring(0,z+8-1):bZ(C,"/picker")&&(F=C);F&&this.setRelayUrl(F+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(C=this.buttons_,C.JSC$10175_element_=this.buttonEl_,C.render()):_.$O(this.buttonEl_,uTs),_.F5(this.buttonEl_,!!this.buttons_))};
_.Exs=function(C){var F=F===void 0?z8i:F;var G=_.rI(C),V=function(b){b=_.u(b);b.next();b=VH(b);return F(G,b)},J=function(b){var z=_.u(b);
b=z.next().value;z=VH(z);return C.apply(b,z)};
return function(){var b=_.Rn.apply(0,arguments),z=this||_.VT,Q=QaZ.get(z);Q||(Q={},QaZ.set(z,Q));return IsI(Q,[this].concat(_.da(b)),J,V)}};
ib=function(C){var F={};C=C.replace(/\r/g,"").split("\n");for(var G=0;G<C.length;G++){var V=C[G],J=V.indexOf(":");J<0||(F[V.substring(0,J)]=V.substring(J+2,V.length))}return F};
WpZ=function(C,F,G){G=G===void 0?function(){}:G;
return C?F():G()};
_.aso=function(C){var F;return((F=tMS.documentOverride)!=null?F:C).__wizdispatcher};
_.$K=function(C){var F=J2;J2=C;return F};
_.UMB=function(C){return C===knI||(C==null?void 0:C.name)==="\u0275NotFound"};
_.bb=function(C,F){var G;if((G=C)==null?0:G.isDisposed)throw Error("jb`"+String(C.debugName));for(;C!==void 0;){G=C;if(G.retrieve)return G.retrieve(F,{optional:!0});C=C.parent}return knI};
nB=function(C){return{"\u0275prov":{providedIn:"root",token:Symbol(C),factory:void 0,value:void 0}}};
_.HOI=function(C){var F=J2;if(!F){switch(C===void 0?3:C){case 0:C=Error("ib");break;case 1:C=Error("kb");break;case 2:C=Error("lb");break;default:C=Error("mb")}throw C;}return F};
ls9=function(C){var F=_.$K(C);C={};return C[Symbol.dispose]=function(){_.$K(F)},C};
ynI=function(C,F){C.disposables||(C.disposables=[]);C.disposables.push(F)};
ub=function(C){var F=J2;F&&!F.isDisposed&&(ynI(F,C),C.parent=F)};
NT9=function(C){if(C.disposables){for(var F=_.u(C.disposables),G=F.next();!G.done;G=F.next())G=G.value,typeof G==="function"?G():ZOA(G);C.disposables.length=0}};
ZOA=function(C){if(!C.isDisposed){C.isDisposed=!0;var F;(F=C[Symbol.dispose])==null||F.call(C);delete C.parent;NT9(C)}};
fsB=function(C){var F={retrieve:function(G){switch(G.\u0275prov.token){case OO9.\u0275prov.token:var V=C.asyncDeps;break;case _.XgS.\u0275prov.token:V=C.rootElement;break;case wg5.\u0275prov.token:V=C.modelRootElement;break;case MMI.\u0275prov.token:V=C.appContext;break;case St5.\u0275prov.token:V=C.rendererData;break;case LpT.\u0275prov.token:V=C.injectingConstructor;break;case BT9.\u0275prov.token:V=C.dispatcher}if(V)G=V;else a:{for(V=F.parent;V;){var J=V;if(J.retrieve){G=J.retrieve(G);break a}V=
V.parent}V=G.\u0275prov.token;J=vxZ[V];J!==void 0?G=J:(J=G.\u0275prov.providedIn,G.\u0275prov.factory?(G=G.\u0275prov.factory(),V&&J==="root"&&(vxZ[V]=G)):G=knI)}return G}};
ub(F);return F};
h85=function(){var C=_.HOI(1),F=_.bb(C,MMI);if(!_.UMB(F))return F;C=_.bb(C,BT9);if(!_.UMB(C))return C.getOptionalAppContext()};
cni=function(C){if(typeof document!=="undefined"&&document&&document.getElementById&&(C=document.getElementById(C))){var F=C.tagName.toUpperCase();if(F=="SCRIPT"||F=="LINK")return C}return null};
e8B=function(C,F){if((C=C===void 0?"":C)&&F)throw Error("sb");var G="";var V=_.VT._F_jsUrl;(C=F||cni(C))&&(G=C.src?C.src:C.getAttribute("href"));if(V&&G){if(V!=G)throw Error("tb`"+V+"`"+G);G=V}else G=V||G;if(!AnT(G))throw Error("ub");return G};
qtE=function(){if(!dM9){dM9=!0;try{var C=e8B(_.VT._F_jsUrl?"":"base-js")}catch(V){return}var F=xMq(sas(C)),G=Object.keys(F);G.length!==0&&oUT(function(V){for(var J=_.u(G),b=J.next();!b.done;b=J.next()){b=b.value;for(var z=_.u(Object.keys(F[b])),Q=z.next();!Q.done;Q=z.next())V.addExtraEdge(b,Q.value)}})}};
gx9=function(){var C=Object.assign({},PwZ);Object.getOwnPropertyNames(PwZ).forEach(function(F){zl[F]!==void 0&&(C[F]=zl[F])});
return C};
R8w=function(C,F){if(zl.enablePerformanceTiming){var G,V;(V=(G=performance).mark)==null||V.call(G,C+"Start__"+F)}};
YtI=function(C,F){if(zl.enablePerformanceTiming){var G,V;(V=(G=performance).measure)==null||V.call(G,C+"__"+F,C+"Start__"+F)}};
TTI=function(C,F,G){var V;return C&&F?C+"__"+F:(V=C!=null?C:F)!=null?V:G};
rnB=function(C,F){var G=Object.create(oxS);G.debugName=F;!J2||ub(G);F=_.$K(G);try{C(G)}finally{_.$K(F)}return function(){return void ZOA(G)}};
DMI=function(C){return QH(C)&&Kps in C};
pgw=function(C,F){return Object.is(C,F)};
Eq=function(C){var F=IX;IX=C;return F};
CST=function(C){if(Wp)throw Error("Z");if(IX!==null){var F=IX.producersTail;if(F===void 0||F.producer!==C){var G=void 0,V=IX.recomputing;if(V&&(G=F!==void 0?F.nextProducer:IX.producers,G!==void 0&&G.producer===C)){IX.producersTail=G;G.lastReadVersion=C.version;return}var J=C.consumersTail,b;if(!(b=J===void 0||J.consumer!==IX)){if(V){a:{b=IX;V=b.producersTail;if(V!==void 0){b=b.producers;do{if(b===J){V=!0;break a}if(b===V)break;b=b.nextProducer}while(b!==void 0)}V=!1}V=!V}b=V}b&&(V=t2(IX),G={producer:C,
consumer:IX,nextProducer:G,prevConsumer:J,lastReadVersion:C.version,nextConsumer:void 0},IX.producersTail=G,F!==void 0?F.nextProducer=G:IX.producers=G,V&&mMs(C,G))}}};
kK=function(C){if(!t2(C)||C.dirty)if(C.dirty||C.lastCleanEpoch!==aX)(C.producerMustRecompute(C)||j1s(C))&&C.producerRecomputeValue(C),C.dirty=!1,C.lastCleanEpoch=aX};
Fhf=function(C){if(C.consumers!==void 0){var F=Wp;Wp=!0;try{for(var G=C.consumers;G!==void 0;G=G.nextConsumer){var V=G.consumer;V.dirty||(C=void 0,V.dirty=!0,Fhf(V),(C=V.consumerMarkedDirty)==null||C.call(V,V))}}finally{Wp=F}}};
Gfq=function(){var C;return((C=IX)==null?void 0:C.consumerAllowSignalWrites)!==!1};
VQo=function(C){C&&(C.producersTail=void 0,C.recomputing=!0);return Eq(C)};
J5E=function(C){C.recomputing=!1;var F=C.producersTail,G=F!==void 0?F.nextProducer:C.producers;if(G!==void 0){if(t2(C)){do G=i1s(G);while(G!==void 0)}F!==void 0?F.nextProducer=void 0:C.producers=void 0}};
j1s=function(C){for(C=C.producers;C!==void 0;C=C.nextProducer){var F=C.producer,G=C.lastReadVersion;if(G!==F.version)return!0;kK(F);if(G!==F.version)return!0}return!1};
mMs=function(C,F){var G=C.consumersTail,V=t2(C);G!==void 0?(F.nextConsumer=G.nextConsumer,G.nextConsumer=F):(F.nextConsumer=void 0,C.consumers=F);F.prevConsumer=G;C.consumersTail=F;if(!V)for(C=C.producers;C!==void 0;C=C.nextProducer)mMs(C.producer,C)};
i1s=function(C){var F=C.producer,G=C.nextProducer,V=C.nextConsumer,J=C.prevConsumer;C.nextConsumer=void 0;C.prevConsumer=void 0;V!==void 0?V.prevConsumer=J:F.consumersTail=J;if(J!==void 0)J.nextConsumer=V;else if(F.consumers=V,!t2(F))for(C=F.producers;C!==void 0;)C=i1s(C);return G};
t2=function(C){return C.consumerIsAlwaysLive||C.consumers!==void 0};
b1E=function(C){var F=Object.create($1w);F.computation=C;C=function(){kK(F);CST(F);if(F.value===Uq)throw F.error;return F.value};
C[Hp]=F;return C};
Q1B=function(C,F){var G=Object.create(nwI);G.value=C;F!==void 0&&(G.equal=F);C=function(){CST(G);return G.value};
C[Hp]=G;return[C,function(V){return uPI(G,V)},
function(V){Gfq()||zKE(G);uPI(G,V(G.value))}]};
uPI=function(C,F){Gfq()||zKE(C);if(!C.equal(C.value,F)){C.value=F;C.version++;aX++;Fhf(C);var G;(G=IUB)==null||G(C)}};
Who=function(C,F,G){var V=Object.create(EwE);V.source=C;V.computation=F;G!=void 0&&(V.equal=G);C=function(){kK(V);CST(V);if(V.value===Uq)throw V.error;return V.value};
C[Hp]=V;return C};
_.lb=function(C){var F=Eq(null);try{return C()}finally{Eq(F)}};
_.yH=function(C,F,G){G=G===void 0?"":G;C=Q1B(C,F==null?void 0:F.equals);var V=C[0],J=V[Hp];J.debugName=TTI(F==null?void 0:F.debugName,G,"[signal]");if(!zl.enablePerformanceTiming)return C;var b=C[1],z=C[2];return[V,function(Q){tQs(function(){return void b(Q)},J)},
function(Q){tQs(function(){return void z(Q)},J)}]};
tQs=function(C,F){R8w("signalSet",F.debugName);try{C()}finally{YtI("signalSet",F.debugName)}};
kfB=function(C,F){var G=_.u(_.yH(C,void 0,"cPpJzc"));C=G.next().value;G=G.next().value;C[aU5]=G;C[ZB]=F;return C};
U1f=function(C){return!!C&&typeof C==="object"&&Object.getPrototypeOf(C)===Object.prototype};
eK5=function(C){return typeof C==="function"&&aU5 in C&&typeof C[aU5]==="function"};
d1i=function(C,F){Object.defineProperty(C,ZB,{get:function(){return F}})};
Oq=function(C,F){if(N0(C)){var G=C.map(function(b){return Oq(b,F)});
d1i(G,F);return G}if(U1f(C)){G={};C=_.u(Object.entries(C));for(var V=C.next();!V.done;V=C.next()){var J=_.u(V.value);V=J.next().value;J=J.next().value;G[V]=Oq(J,F)}d1i(G,F);return G}return kfB(C,F)};
x1q=function(C){if(N0(C))return C.map(function(J){return x1q(J)});
if(U1f(C)){var F={};C=_.u(Object.entries(C));for(var G=C.next();!G.done;G=C.next()){var V=_.u(G.value);G=V.next().value;V=V.next().value;F[G]=x1q(V)}return F}return eK5(C)?C():C};
q1q=function(){var C={height:0,width:0};if(!U1f(C))throw Error("Jb");var F=Symbol("Kb");return[Oq(C,F),function(G,V){if(G[ZB]===F)if(typeof V==="function"){var J=[].concat(_.da(x1q(G)));V=V(J)||J;s1I(G,[].concat(_.da(V)))}else s1I(G,V);else throw Error("Lb");}]};
s1I=function(C,F){if(eK5(C))C[aU5](F);else if(N0(C)&&N0(F))F=Oq(F,C[ZB]),C.length=0,C.push.apply(C,_.da(F));else if((U1f(C)||N0(C))&&(N0(F)||typeof F==="object"&&F!==null)){F=_.u(Object.entries(F));for(var G=F.next();!G.done;G=F.next()){var V=_.u(G.value);G=V.next().value;V=V.next().value;var J=C,b=J[G];Object.hasOwn(C,G)?s1I(b,V):J[G]=Oq(V,C[ZB])}}else throw Error("Mb");};
PSi=function(C){return Object.create(Object.assign({},X5,C))};
RKB=function(){var C;return(C=gwq)!=null?C:gwq=PSi({consumerAllowSignalWrites:!0})};
_.w0=function(C,F,G){G=G===void 0?"":G;C=b1E(C);var V=C[Hp];V.debugName=TTI(F==null?void 0:F.debugName,G,"[computed]");(F==null?void 0:F.equals)!=null&&(V.equal=F.equals);return C};
M0=function(C){var F=Eq(Y1q);try{C()}finally{Eq(F)}};
D19=function(C){switch(C.onInitType){case TDA:owT.schedule(C);break;case r5Z:Khi.schedule(C);break;default:_.r2(C.onInitType)}};
GAW=function(C){if(!C.isDisposed)switch(C.effectType){case SE:p8B.schedule(C);break;case m1q:C9Z.schedule(C);break;case jxW:FO9.schedule(C);break;default:_.r2(C.effectType)}};
JtT=function(){if(LB>0)zl.flushRenderEffectsDuringRender&&p8B.flush();else{for(var C=_.u(VWZ),F=C.next();!F.done;F=C.next())F.value.flush();icI()}};
icI=function(){_.I(function(C){if(C.nextAddress==1)return C.yield(Promise.resolve(),2);for(var F=_.u($wT),G=F.next();!G.done;G=F.next())G.value.flush();_.S9(C)})};
nyB=function(C){Bp=!0;try{for(var F=_.u(C),G=F.next();!G.done;G=F.next()){for(var V=G.value,J=[V],b=V;b.parent!==void 0;)b=b.parent,bcW(b)&&C.has(b)&&J.push(b);for(;J.length>0;){var z=J.pop();C.delete(z);z.run()}}}finally{Bp=!1}};
vp=function(C){LB--;if(C){C=_.u(uVI);for(var F=C.next();!F.done;F=C.next())F.value.clear()}else LB>0||Bp&&!zl.flushRenderEffectsDuringRender||JtT()};
Qx5=function(C,F,G){var V=zsA(C);fB={name:G?V+" ("+G+")":V,isReactive:C.componentType!==h2,parent:fB};C=F();fB=fB.parent;return C};
cp=function(){var C=fB;return C?C.isReactive:!1};
xK=function(C,F,G){var V=fB;F&&(fB=F);try{return G==null?C():C.call(G)}catch(b){C=b;d0(C,fB);if(C!==IeB){Eyi=fB;F=[];for(G=J2;G;){var J=void 0;F.push((J=G.debugName)!=null?J:"[context]");J=void 0;G=(J=G.parent)!=null?J:null}WO5=F.reverse()}IeB=C;throw C;}finally{fB=V}};
d0=function(C,F){try{var G=tWB(F);if(G&&!C.componentStack&&(C.componentStack=G,zl.enableComponentStacksInErrorMessages)){var V=C.message+"\n\nComponent stack: "+G;C.stack&&(C.stack=C.stack.replace(C.message,V));C.message=V}}catch(J){}};
tWB=function(C){if(QH(C)&&C.name!==void 0&&C.isReactive!==void 0&&C.parent!==void 0||C===null){for(var F=0,G="";F<20&&C;)G+=C.name+" > ",C=C.parent,F++;C=G.slice(0,-3)}else if(zl.enableContextBasedComponentStacks){a:{for(C=C===void 0?J2:C;C;){if(DMI(C))break a;F=void 0;C=(F=C.parent)!=null?F:null}C=null}C=C.getComponentStack().slice(0,20).join(" > ")}else C="";return C};
zsA=function(C){return C.debugName||C.name||"[component]"};
aeS=function(C,F,G){F=Object.create(F);C&&(F.effectFn=C);G&&(F.debugName=G);ub(F);F.componentStack=fB;return F};
_.sq=function(C,F){C=aeS(C,kAI,F);GAW(C)};
UwE=function(C){return C};
Hc9=function(C,F){function G(){return J()}
var V=V===void 0?"":V;var J=typeof C==="function"?Who(C,UwE,F==null?void 0:F.equals):Who(C.source,C.computation,F==null?void 0:F.equals);var b=J[Hp];b.debugName=TTI(F==null?void 0:F.debugName,V,"[linkedSignal]");G[Hp]=b;return[G,function(z){tQs(function(){kK(b);uPI(b,z);b.dirty=!1;b.lastCleanEpoch=aX},b)},
function(z){tQs(function(){kK(b);Gfq()||zKE(b);uPI(b,z(b.value));b.dirty=!1;b.lastCleanEpoch=aX},b)}]};
_.q0=function(C){var F=J2;if(F){var G=fB;ynI(F,function(){var V=Eq(RKB());try{xK(function(){return void C()},G)}catch(J){throw zl.enableContextBasedComponentStacks&&d0(J),J;
}finally{Eq(V)}})}};
Pp=function(C,F){var G={};(F===void 0||F)&&ub(G);F=_.$K(G);try{C(G)}finally{_.$K(F)}return function(){return void ZOA(G)}};
_.g0=function(C){return typeof C==="function"?C():(C==null?0:C[leW])?C.get():C};
_.RX=function(C,F){C=aeS(C,ytS,F);GAW(C)};
ZcI=function(C){if(J2)throw Error("nb");Pp(C,!1)};
YK=function(C,F){C=_.$K(C);try{return _.lb(F)}finally{_.$K(C)}};
Tl=function(C,F){var G=tWB(Eyi),V,J;var b=(J=(V=WO5)==null?void 0:V.slice())!=null?J:[];F={componentStack:G,contextTrace:b,errorSeverity:3,featureFlags:gx9(),tagName:F};return[C,F]};
Xv5=function(C,F,G){if(Object.hasOwnProperty.call(NRA,C)&&(C=NRA[C],Object.hasOwnProperty.call(C,F)&&(C=C[F],C instanceof Array))){for(var V=null,J=!1,b=0,z=C.length;b<z;++b){var Q=C[b],E=Q.contingentAttribute;if(!E)return Q.contract;V===null&&(V={});E=Object.hasOwnProperty.call(V,E)?V[E]:V[E]=G(E);if(E===Q.requiredValue)return Q.contract;E==null&&(J=!0)}if(J)return null}F=OcE[F];return typeof F==="number"?F:null};
S8f=function(C,F,G){var V=null;(C=wvS[C])&&(V=C[F]);return typeof V!=="number"&&((C=wvS["*"])&&(V=C[F]),typeof V!=="number")?!1:!0===MWB[V][String(G).toLowerCase()]};
BRf=function(C,F){F=Xv5(C.toLowerCase(),F,function(){var V;(V=zl.handleError)==null||V.call.apply(V,[zl].concat(_.da(Tl(Error("Tb"),C.toLowerCase()))))});
if(F===null)return null;var G;return(G=LOq[F])!=null?G:null};
vy5=function(C,F,G){if(G===null||G===void 0)return G;F=F.toLowerCase();C=BRf(C,F);return C===null?G:C(F,G)};
feE=function(){};
oX=function(C,F){for(;C.length>F;)C.pop()};
hsB=function(C){C=Array(C);oX(C,0);return C};
r0=function(C,F,G){if(G==null)C.removeAttribute(F);else{var V;(V=F.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":F.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?C.setAttributeNS(V,F,G):C.setAttribute(F,G)}};
cto=function(C,F,G){C[F]=G};
esT=function(C,F,G){C=C.style;if(typeof G==="string")C.cssText=G;else{C.cssText="";for(var V in G)if(At5.call(G,V)){F=C;var J=V,b=G[V];J.indexOf("-")>=0?F.setProperty(J,b):F[J]=b}}};
dw9=function(C,F,G){var V=typeof G;V==="object"||V==="function"?C[F]=G:r0(C,F,G)};
xwi=function(){var C=new feE;C[DB.default]=dw9;C.style=esT;return C};
sxI=function(C,F,G,V){(V[F]||V[DB.default])(C,F,G)};
P9q=function(C,F,G){F=new q8w(F,G);return C.__incrementalDOMData=F};
pB=function(C,F){if(C.__incrementalDOMData)return C.__incrementalDOMData;var G=C.nodeType===1?C.localName:C.nodeName,V=C.nodeType===1?C.getAttribute("key"):null;F=P9q(C,G,C.nodeType===1?V||F:null);if(C.nodeType===1&&(C=C.attributes,G=C.length)){V=F._attrsArr||(F._attrsArr=hsB(G*2));for(var J=0,b=0;J<G;J+=1,b+=2){var z=C[J],Q=z.value;V[b]=z.name;V[b+1]=Q}}return F};
gyA=function(C,F,G,V,J){return F==G&&V==J};
RsZ=function(C){for(var F=j_,G=FF();G!==C;){var V=G.nextSibling;F.removeChild(G);GF.deleted.push(G);G=V}};
FF=function(){return V1?V1.nextSibling:j_.firstChild};
iR=function(){V1=FF()};
oyS=function(C,F,G){iR();var V;a:{if(V=V1){do{var J=V,b=C,z=F,Q=pB(J,z);if(Y8i(J,b,Q.nameOrCtor,z,Q.key))break a}while(F&&(V=V.nextSibling))}V=null}V||(C==="#text"?(G=Jg.createTextNode(""),P9q(G,"#text",null),C=G):(V=Jg,J=j_,typeof C==="function"?V=new C:V=(J=C==="svg"?"http://www.w3.org/2000/svg":C==="math"?"http://www.w3.org/1998/Math/MathML":J==null||pB(J).nameOrCtor==="foreignObject"?null:J.namespaceURI)?V.createElementNS(J,C):V.createElement(C),P9q(V,C,F),C=V,G&&C.setAttribute("nonce",G)),GF.created.push(C),
V=C);G=V;if(G!==V1){if(TR9.indexOf(G)>=0)for(C=j_,F=G.nextSibling,V=V1;V!==null&&V!==G;)J=V.nextSibling,C.insertBefore(V,F),V=J;else j_.insertBefore(G,V1);V1=G}};
rtq=function(C,F,G){oyS(C,F,G);j_=V1;V1=null;return j_};
KOo=function(){RsZ(null);V1=j_;j_=j_.parentNode};
Dwq=function(){V1=j_.lastChild};
Cnf=function(C,F){F=F===void 0?{}:F;var G=F.matches===void 0?gyA:F.matches;return function(V,J,b){var z=GF,Q=Jg,E=TR9,t=$n,k=bR,U=V1,H=j_,l=Y8i;Jg=V.ownerDocument;GF=new pvf(V);Y8i=G;$n=[];bR=[];V1=null;var N=j_=V.parentNode,S,f=mwI.call(V);if((S=f.nodeType===11||f.nodeType===9?f.activeElement:null)&&V.contains(S)){for(f=[];S!==N;)f.push(S),S=S.parentNode||(N?S.host:null);N=f}else N=[];TR9=N;try{return C(V,J,b)}finally{V=GF,nW&&V.deleted.length>0&&nW(V.deleted),Jg=Q,GF=z,Y8i=l,$n=t,bR=k,V1=U,j_=H,
TR9=E}}};
j6Z=function(C,F,G,V){uR.push(sxI);uR.push(C);uR.push(F);uR.push(G);uR.push(V)};
GH9=function(C,F,G){var V=bR;F=F._attrsArr||(F._attrsArr=hsB(V.length));for(var J=!F.length||!1,b=0;b<V.length;b+=2){var z=V[b];if(J)F[b]=z;else if(F[b]!==z)break;var Q=V[b+1];if(J||F[b+1]!==Q)F[b+1]=Q,j6Z(C,z,Q,G)}if(b<V.length||b<F.length){for(b=J=b;b<F.length;b+=2)zF[F[b]]=F[b+1];for(b=J;b<V.length;b+=2)J=V[b],z=V[b+1],zF[J]!==z&&j6Z(C,J,z,G),F[b]=J,F[b+1]=z,delete zF[J];oX(F,V.length);for(var E in zF)j6Z(C,E,void 0,G),delete zF[E]}C=F9q;F9q=G=uR.length;for(E=C;E<G;E+=5)(0,uR[E])(uR[E+1],uR[E+
2],uR[E+3],uR[E+4]);F9q=C;oX(uR,C);oX(V,0)};
V3T=function(C){oyS("#text",null);var F=V1;var G=pB(F);if(G.text!==C){G=G.text=C;for(var V=1;V<arguments.length;V+=1)G=(0,arguments[V])(G);F.data!==G&&(F.data=G)}};
ziw=function(C,F,G){if(G===!1&&i_E.has(F))r0(C,F,null);else if(F!=="idomKey"&&F!=="skip"&&F!=="skipchildren"&&F!=="children"&&F!=="el")if(F.startsWith("on")){if(F[2]!==":")throw Error("Sb`"+F);if(G===void 0||G===null){var V;(V=zl.handleError)==null||V.call.apply(V,[zl].concat(_.da(Tl(Error("Xb`"+F),C.tagName))));C[F]=void 0}else{var J=F.slice(3);V=cp();if(J==="jsaction"){G=Array.isArray(G)?G:[G];G=_.u(G);for(var b=G.next();!b.done;b=G.next()){b=b.value;if(typeof b!=="object"||b===null||typeof b.selfReg!==
"function")throw Error("$b`"+F);b.selfReg(0,C,V?_.q0:function(){})}}else{if(typeof G!=="object"||G===null)throw Error("Yb`"+F+"`"+typeof G);
if(typeof G.getFn!=="function")throw Error("Zb`"+F+"`"+Object.keys(G));if(G.selfReg)G.selfReg(0,C,J,V?_.q0:function(){});
else if(V&&C["on"+J]===void 0){var z=G.getFn(0);C.addEventListener(J,z);_.q0(function(){return void C.removeEventListener(J,z)})}else if(V||!JuZ.includes(J))C["on"+J]=G.getFn(0)}}}else{if(F.startsWith("data-")&&typeof G==="string")try{G=$kE(G)}catch(Q){G="zSoyz"}typeof G!=="function"||C._disposeEffects!=null?((V=F.startsWith("prop:"))&&(F=F.slice(5)),zl.enableAttributeSanitization&&(V&&b_w(C.tagName)||(G=vy5(C.tagName,F,G))),F==="style"?("function"==typeof _.Q1&&G instanceof _.Q1&&(G=G.toString()),
nvi(C,F,G)):V?C[F]=G:uLi(C,F,G)):(C._signalProps||(C._signalProps=[]),C._signalValues||(C._signalValues=[]),C._signalProps.push(F))}};
Q6W=function(C,F,G){G=(G===void 0?{}:G).isReactive;if(F==null?0:F.el){var V=F.el,J;(J=V.onRender)==null||J.call(V,C);C._disposeRef||(C._disposeRef=function(){var b;(b=V.onUnmount)==null||b.call(V);delete C._disposeRef},G&&_.q0(function(){var b;
(b=C._disposeRef)==null||b.call(C)}))}};
b_w=function(C){return C.length>0&&C.includes("-")&&!Ics.includes(C.toLowerCase())};
Evw=function(C){return QH(C)&&ID in C};
W9o=function(C){return Evw(C)?C[ID].flattened:C};
t3w=function(C,F){var G=_.Rn.apply(2,arguments),V;F=(V=F)!=null?V:{};V={};return V.type=C,V.props=F,V.children=G,V[E0]=!0,V};
_.WQ=function(C){return C.children};
tg=function(C){var F=acw!==t3w;acw=C?kHI:t3w;return F};
_.aD=function(C){return _.TE(C)?"nodeType"in C:!1};
kn=function(){return document.createTextNode("")};
U0=function(C){C=document.createTextNode(String(C));C._isSignalTextNode=!0;return C};
H_q=function(C){return C!=null&&C.contentKind===lR||C instanceof on||UkI(C)};
lcI=function(C){var F=document.createElement("div");if(UkI(C)&&ODZ(C))_.$O(F,ODZ(C));else if(C instanceof on)_.$O(F,C);else if(C!=null&&C.contentKind===lR){if(C.contentKind!==lR)throw Error("Wb");C=D0(C.toString());_.$O(F,C)}C=_.u(F.childNodes);for(var G=C.next();!G.done;G=C.next())G.value._isSafeOrSanitizedHtmlNode=!0;return F};
y1=function(C){C=typeof C;return C==="string"||C==="number"||C==="boolean"};
yus=function(C){return C instanceof SS||Az(C)||C instanceof ui||"function"==typeof _.Q1&&C instanceof _.Q1};
Z_w=function(C,F){var G=C.parentElement;if(!G)return F;G.replaceChild(F,C);return F};
Nt5=function(C,F){var G=C[0].parentElement;if(G)if(C[0].previousSibling||C[C.length-1].nextSibling){G.insertBefore(F,C[0]);for(var V=C.length-1;V>=0;V--)G.removeChild(C[V])}else G.textContent="",G.appendChild(F);return F};
O_I=function(C,F){if(C[0].parentElement)for(var G=C[0].parentElement,V=F.length,J=C.length,b=V,z=0,Q=0,E=C[J-1].nextSibling,t=null;z<J||Q<b;)if(C[z]===F[Q])z++,Q++;else{for(;C[J-1]===F[b-1];)J--,b--;if(J===z)for(var k=b<V?Q?F[Q-1].nextSibling:F[b-Q]:E;Q<b;){var U=F[Q++];G.insertBefore(U,k)}else if(b===Q)for(;z<J;)k=C[z],t&&t.has(k)||G.removeChild(k),z++;else if(C[z]===F[b-1]&&F[Q]===C[J-1])k=C[--J].nextSibling,G.insertBefore(F[Q++],C[z++].nextSibling),G.insertBefore(F[--b],k),C[J]=F[b];else{if(!t)for(t=
new Map,k=Q;k<b;)t.set(F[k],k++);k=t.get(C[z]);if(k==null)G.removeChild(C[z]),z++;else if(Q<k&&k<b){U=z;for(var H=1,l=void 0;++U<J&&U<b&&(l=t.get(C[U]))!=null&&l===k+H;)H++;if(H>k-Q)for(U=C[z];Q<k;)G.insertBefore(F[Q++],U);else G.replaceChild(F[Q++],C[z++])}else z++}}return F};
wSq=function(C){if(Array.isArray(C)){if(C.length>1)throw Error("jc`"+C.length+"`"+C.map(XSS).join(", "));C=C[0]}if(C==null)return null;if(!(C instanceof _.FG)){var F,G;if((F=window)==null?0:(G=F.trustedTypes)==null?0:G.isScript(C))throw Error("ic");if(String(C).trim().length===0)return null;throw Error("kc`"+XSS(C));}return C};
M3Z=function(C,F){F=wSq(F);F!==null&&_.ii(C,F)};
SHf=function(C){if(Array.isArray(C)){if(C.length>1)throw Error("lc`"+C.length+"`"+C.map(XSS).join(", "));C=C[0]}if(C==null)return null;if(!(C instanceof ui)){if(String(C).trim().length===0)return null;throw Error("mc`"+XSS(C));}return C};
L9Z=function(C,F){F=SHf(F);F!==null&&(C.textContent=a6B(F))};
XSS=function(C){return"("+typeof C+") "+(C!=null&&typeof C==="object"?C.constructor.name:typeof C)+" "+C};
Btf=function(){};
O0=function(C,F){F=F===void 0?{}:F;var G=vvs(),V=!0,J,b=!!zl.legacyTriggerSoyRendererEvents;b&&(J=h85());_.RX(function(){var z=!V&&F.isControlFlowComponent&&b,Q=z?G[ID].flattened[0].parentElement:void 0;V=!1;_.ZN.setUp();F.isControlFlowComponent&&LB++;var E=G[0],t=G[ID].flattened,k=tg(!0);try{var U=C(),H=fc9(E,U,G);Array.isArray(H)||(G[ID].flattened=[H]);var l=G[ID].flattened;if(t&&(!Array.isArray(t)||t.length!==0)){var N=Array.isArray(t)?t[0]:t,S=N[N4],f=N._disposeEffects;N._disposeEffects=void 0;
N=Array.isArray(l)?l[0]:l;N[N4]=S;N[N4]&&(N[N4].numNodes=N===l?1:l.length);N._disposeEffects=f}G[0]=H;F.isControlFlowComponent&&vp(!1)}catch(c){throw F.isControlFlowComponent&&vp(!0),c;}finally{tg(k),_.ZN.tearDown()}z&&(z=J,z!=null||(z=_.aso(document).getAppContext()),z.get(hiI).JSC$29317_getEventTarget().dispatchEvent(new cuZ(AuW,Q,lR)))},F.debugName);
return G};
fc9=function(C,F,G){for(;typeof F==="function";)F=F();if(F!=null&&F[E0]){var V,J,b;(b=zl.handleError)==null||b.call.apply(b,[zl].concat(_.da(Tl(Error("nc`"+((V=F.type)==null?void 0:V.TAG_NAME)),(J=F.type)==null?void 0:J.TAG_NAME))))}if(C==null)return F==null?kn():y1(F)?U0(F):yus(F)?U0(F.toString()):_.aD(F)?F:F.length===0?kn():ei9(F,G);if(_.aD(C)){if(F==null)return Z_w(C,kn());if(y1(F))return dk9(C,F);if(yus(F))return dk9(C,F.toString());if(_.aD(F))return Z_w(C,F);if(F.length===0)return Z_w(C,kn());
F=ei9(F,G);O_I([C],G[ID].flattened);return F}C=XF(C);if(F==null)return Nt5(C,kn());if(y1(F))return Nt5(C,U0(F));if(yus(F))return Nt5(C,U0(F.toString()));if(_.aD(F))return O_I(C,[F])[0];if(F.length===0)return Nt5(C,kn());F=ei9(F,G);O_I(C,G[ID].flattened);return F};
dk9=function(C,F){C.nodeType===Node.TEXT_NODE?C.textContent!==String(F)&&(C.textContent=String(F)):C=Z_w(C,U0(F));return C};
XF=function(C,F,G){return xk9(C,F!=null?F:[],G===void 0?!1:G)};
ei9=function(C,F){var G=XF(C,void 0,!0);if(G.length===0)return kn();F[ID].flattened=G;return C};
xk9=function(C,F,G,V,J){F=F===void 0?[]:F;G=G===void 0?!1:G;J=J===void 0?-1:J;if(C==null)return F;if(C instanceof wi){var b=C.render();return xk9(b,F,G,V,J)}if(_.aD(F)&&F.nodeType===Node.ELEMENT_NODE)switch(F.tagName){case "SCRIPT":M3Z(F,C);return;case "STYLE":L9Z(F,C);return}y1(C)&&(C=U0(C),V&&G&&(V[J]=C));if(H_q(C)){G=lcI(C);G=Array.from(G.childNodes);G=_.u(G);for(b=G.next();!b.done;b=G.next())s6i(F,b.value);return F}yus(C)&&(C=U0(C.toString()),V&&G&&(V[J]=C));if(_.aD(C))return s6i(F,C);if(Array.isArray(C)){for(b=
0;b<C.length;b++)xk9(C[b],F,G,C,b);return F}if(typeof C==="function"){b=O0(function(){var Q=C();return Q!=null&&!y1(Q)&&H_q(Q)?(Q=lcI(Q),Array.from(Q.childNodes)):Q},{debugName:"qmF2ne",
debugFn:C})[0];if(Array.isArray(b)){G=_.u(b);for(b=G.next();!b.done;b=G.next())s6i(F,b.value);return F}V&&G&&(V[J]=b);return s6i(F,b)}if(C!=null&&C[E0]){V=C;J=tg(!0);var z=acw;try{b=z.apply(null,[V.type,V.props].concat(_.da(V.children)))}finally{tg(J)}return xk9(b,F,G)}(z=zl.handleError)==null||z.call.apply(z,[zl].concat(_.da(Tl(Error("oc")))));return F};
vvs=function(C){var F={};F=Object.assign([],(F[ID]={flattened:[]},F));if(!C)return F;F[0]=ei9(C,F);return F};
s6i=function(C,F){Array.isArray(C)?C.push(F):C.appendChild(F);return C};
M4=function(C){if(!zl.enableLazyTsx)return C;if(Array.isArray(C)){for(var F=0;F<C.length;F++)C[F]=M4(C[F]);return C}return C instanceof wi?(C=C.render(),M4(C)):C};
PnA=function(C,F){var G,V,J=zsA(C),b=function(l){V=l;l=tg(!0);var N=Eq(S_);R8w("render",J);try{G=M4(C(F))}finally{YtI("render",J),Eq(N),tg(l)}};
b=zl.enableContextPerComponent?rnB(b,J):Pp(b,zl.alwaysTrackContexts||!!J2);DMI(V);if(!F.renderedFromIdom){var z=_.$K(V);try{return qHA(C,F,G),G}finally{_.$K(z)}}!Evw(G)&&Array.isArray(G)&&(G=vvs(G));var Q=W9o(G);z=Array.isArray(Q)?Q[0]:Q;var E=!1;if(z){var t,k=(t=F==null?void 0:F.idomKey)!=null?t:C;t=Q!==z;z._disposeEffects=b;var U=z[N4]||{},H=Evw(G)?G:U.sourceDynamicRange;Object.assign(U,{key:k,numNodes:t?Q.length:1,context:V,higherOrder:!!z[N4],sourceDynamicRange:H});z[N4]=U}else E=!0;(function(){var l=
_.$K(V);try{qHA(C,F,Q)}finally{_.$K(l)}})();
E&&b();return G};
gvB=function(C){var F={},G;for(G in C)F={prev$jscomp$24:void 0,next$jscomp$33:void 0},F.prev$jscomp$24=LW[G],F.next$jscomp$33=C[G],LW[G]=function(V){return function(){var J=_.Rn.apply(0,arguments);V.prev$jscomp$24.apply(null,_.da(J));V.next$jscomp$33.apply(null,_.da(J))}}(F)};
Riq=function(){if(cp())throw Error("pc");return BQ};
YHf=function(C,F){if(!C.__unmounted&&F){C.__unmounted=!0;try{C.didUnmount()}catch(J){var G,V;(V=zl.handleError)==null||V.call.apply(V,[zl].concat(_.da(Tl(J,(G=C.__type)==null?void 0:G.TAG_NAME))))}LW.didUnmount(C);C.el=null;F.__instance&&delete F.__instance}};
ov9=function(C,F,G){C._signalProps!=null&&C._disposeEffects==null&&((G===void 0?0:G)?C._disposeEffects=Pp(function(){return void Tts(C,F)},zl.alwaysTrackContexts||!!J2):Tts(C,F))};
Tts=function(C,F){_.RX(function(){for(var G=C._signalProps,V=C._signalValues,J=0;J<G.length;J++){var b=G[J],z=F[b]();V[J]!==z&&(V[J]=z,ziw(C,b,z))}},"e3YVbb")};
ruf=function(C,F,G){var V,J=[];C._disposeEffects=Pp(function(){_.RX(function(){var b=G();if(b===null||b===void 0)b="";if(y1(b)||b===null)V!=null||(V=document.createTextNode("")),V.parentNode!==C&&(V._isSignalTextNode=!0,C.insertBefore(V,F)),V.textContent=String(b);else if(H_q(b)){for(var z=J.length>0?J[J.length-1].nextSibling:F,Q=_.u(J),E=Q.next();!E.done;E=Q.next())C.removeChild(E.value);b=lcI(b);J=Array.from(b.childNodes);b=_.u(J);for(Q=b.next();!Q.done;Q=b.next())C.insertBefore(Q.value,z)}else throw E=
(Q=(z=fB)==null?void 0:z.name)!=null?Q:"unknown",Error("ec`"+E+"`"+typeof b);},"VvDgC")},zl.alwaysTrackContexts||!!J2)};
pSW=function(C,F){var G=_.Rn.apply(2,arguments);F!=null||(F={});return!zl.enableLazyTsx||fB!=null&&!cp()?K9I(C,F,G):new Dko(C,F,G)};
K9I=function(C,F,G){if(C===_.WQ)return G;if(typeof C==="function")return fB&&!cp()&&(F.renderedFromIdom=!0),Qx5(C,function(){var b=mkS(C,F,G);if(b)return b;G.length>0&&(F.children=G.length===1?G[0]:G);if(C.componentType===h2){var z;rnB(function(){var Q=F;if(C.componentType!==h2)z=!1;else{Q||(Q={});var E=new vQ(Q,C),t=Eq(S_);try{var k=E.render(Q)}finally{Eq(t)}k instanceof HTMLElement?(k.__instance=E,E.el=k,E.__type=C,C.TAG_NAME=k.tagName.toLowerCase(),LW.didPatch(E),z=k):z=k}},C.name);
if(z)return z}return PnA(C,F)},F.debugInstance);
var V=Cmf(C,F),J;for(J in F)ziw(V,J,F[J]);ov9(V,F);XF(G,V);Q6W(V,F,{isReactive:!0});jos(V,F);return V};
Cmf=function(C,F){C=(FEo.has(C.toLowerCase())?0:G_I.has(C.startsWith("svg:")?C.replace("svg:",""):C))?document.createElementNS("http://www.w3.org/2000/svg",C.startsWith("svg:")?C.replace("svg:",""):C):VTw(C,F)||document.createElement(C);C[iXW]=!0;return C};
JrB=function(C){if(C){var F;(F=C._disposeRef)==null||F.call(C);var G;(G=C._disposeEffects)==null||G.call(C);C.__instance&&C.__instance instanceof fW&&(F=C.__instance,YHf(F,C),F instanceof vQ&&F.disposeEffects());for(F=0;F<C.childNodes.length;F++)JrB(C.childNodes[F])}};
bX9=function(C){$U5.push(C)===1&&requestAnimationFrame(function(){setTimeout(function(){var F=[].concat(_.da($U5));$U5=[];F=_.u(F);for(var G=F.next();!G.done;G=F.next()){G=G.value;try{for(var V=0;V<G.length;V++)JrB(G[V])}catch(J){V=G=void 0,(V=(G=zl).handleError)==null||V.call.apply(V,[G].concat(_.da(Tl(J))))}}})})};
_.W=function(C,F){return acw.apply(null,[C,F].concat(_.da(_.Rn.apply(2,arguments))))};
_.hg=function(C){return C};
_.cQ=function(C){return{isDefault:!0,children:C.children}};
_.a=function(C){var F=C.cond;if(F===void 0)return C.else&&C.else();var G=_.w0(function(){return!!F()},void 0,"JHVi8"),V=function(){var J=F();
if(!J){var b;(b=zl.handleError)==null||b.call.apply(b,[zl].concat(_.da(Tl(n6S.nonNullableCondIsNull()))))}return J};
return O0(function(){var J=G(),b;Pp(function(){var z=Eq(S_);try{b=M4(J?C.then(V):C.else&&C.else())}finally{Eq(z)}},!0);
return b},{debugName:C.debugInstance,
debugFn:C.then,isControlFlowComponent:!0})};
uw5=function(C){return _.a(C)};
_.Ag=function(C){return C.keyBy==="INDEX"?zQW(C):Qo5(C)};
IQA=function(C){C=_.u(C);for(var F=C.next();!F.done;F=C.next()){var G=void 0;(G=F.value)==null||G()}};
Qo5=function(C){var F=C.keyBy===void 0||C.keyBy==="REFERENCE",G=F?function(k){return k}:C.keyBy,V=[],J=[],b=[],z=[],Q=[],E=[],t=!0;
_.q0(function(){IQA(z)});
return O0(function(){var k=C.each(),U=k.length;if(U===0){if(V.length===0&&!t)return b;IQA(z);V=k;J=[];for(k=0;k<V.length;k++)J.push(G(V[k]));b=[];z=[];Q=[];E=[];C.fallback&&(z[0]=E6s(function(){b[0]=M4(C.fallback())}));
t=!1;return b}for(var H=new WEf,l=V.length-1;l>=0;l--)H.push(J[l],l);l=Array(U);for(var N=Array(U),S=Array(U),f=Array(U),c=Array(F?0:U),A={i$jscomp$450:0};A.i$jscomp$450<U;A={i$jscomp$450:A.i$jscomp$450,item$jscomp$104:void 0,key$jscomp$563:void 0},A.i$jscomp$450++){A.item$jscomp$104=k[A.i$jscomp$450];A.key$jscomp$563=G(A.item$jscomp$104);var T=H.pop(A.key$jscomp$563);T!=null?(S[A.i$jscomp$450]=b[T],N[A.i$jscomp$450]=J[T],l[A.i$jscomp$450]=z[T],f[A.i$jscomp$450]=Q[T],F||(c[A.i$jscomp$450]=E[T]),M0(function(P){return function(){f[P.i$jscomp$450](P.i$jscomp$450);
if(!F)c[P.i$jscomp$450](P.item$jscomp$104)}}(A)),delete z[T]):l[A.i$jscomp$450]=E6s(function(P){return function(){var g=_.u(_.yH(P.i$jscomp$450,void 0,"Fqk1zd")),r=g.next().value;
g=g.next().value;f[P.i$jscomp$450]=g;N[P.i$jscomp$450]=P.key$jscomp$563;if(F)S[P.i$jscomp$450]=M4(C.children(P.item$jscomp$104,r));else{var C9=_.u(_.yH(P.item$jscomp$104,void 0,"GBj5de"));g=C9.next().value;C9=C9.next().value;c[P.i$jscomp$450]=C9;S[P.i$jscomp$450]=M4(C.children(g,r))}}}(A))}IQA(z);
V=k;J=N;b=S;z=l;Q=f;E=c;t=!1;return S},{debugName:C.debugInstance,
debugFn:C.each,isControlFlowComponent:!0})};
zQW=function(C){var F=[],G=[],V=[],J=[],b=!1;_.q0(function(){for(var z=_.u(J),Q=z.next();!Q.done;Q=z.next())Q=Q.value,Q()});
return O0(function(){var z=C.each();b&&z.length>0&&(J.pop()(),F.pop(),b=!1);for(var Q=Array(z.length),E={i$jscomp$451:0};E.i$jscomp$451<z.length;E={i$jscomp$451:E.i$jscomp$451},E.i$jscomp$451++)if(E.i$jscomp$451<F.length)F[E.i$jscomp$451]!==z[E.i$jscomp$451]&&(M0(function(k){return function(){return void G[k.i$jscomp$451](z[k.i$jscomp$451])}}(E)),F[E.i$jscomp$451]=z[E.i$jscomp$451]),Q[E.i$jscomp$451]=V[E.i$jscomp$451];
else{var t=E6s(function(k){return function(){F[k.i$jscomp$451]=z[k.i$jscomp$451];var U=_.u(_.yH(z[k.i$jscomp$451],void 0,"JMMLmd")),H=U.next().value;U=U.next().value;G[k.i$jscomp$451]=U;Q[k.i$jscomp$451]=M4(C.children(H,k.i$jscomp$451))}}(E));
J[E.i$jscomp$451]=t}for(;F.length>z.length;)F.pop(),J.pop()(),G.pop();z.length===0&&!b&&C.fallback&&(E=E6s(function(){Q[0]=M4(C.fallback())}),J[0]=E,b=!0);
return V=Q},{debugName:C.debugInstance,
isControlFlowComponent:!0})};
E6s=function(C){var F=J2;return Pp(function(G){var V=Eq(S_);try{G.parent=F,C(G)}finally{Eq(V)}},!1)};
_.e_=function(C){var F=tTB(C),G=_.w0(function(){return aQW(F)},void 0,"F1PF4");
return O0(function(){var V=G(),J;Pp(function(){var b=Eq(S_);try{J=M4(V())}finally{Eq(b)}});
return J},{debugName:C.debugInstance,
isControlFlowComponent:!0})};
tTB=function(C){C=C.children;return Array.isArray(C)?C:[C]};
k_s=function(C){var F=C.props;C=C.getChildren()[0];return F.when?{when:F.when,children:C}:{isDefault:!0,children:C}};
aQW=function(C){var F=function(){return null};
C=_.u(C);for(var G=C.next();!G.done;G=C.next())if(G=G.value,G!=null&&G[E0]&&(G=G.type===_.cQ?{isDefault:!0,children:G.children[0]}:{when:G.props.when,children:G.children[0]}),G instanceof wi&&(G=k_s(G)),G.isDefault)F=G.children;else if(G.when())return G.children;return F};
HXi=function(C){var F=null,G,V={get value(){var b,z;(z=(b=J).validateGetValue)==null||z.call(b);return J.__value},set value(b){var z,Q;(Q=(z=J).validateSetValue)==null||Q.call(z,b);J.__value=b;J.__hasBeenSet=!0}},J=(V.__value=null,V.__hasBeenSet=!1,V.__hasErrored=!1,V.onRender=function(b){if(G&&b!==G){G._disposeRef=void 0;var z;(z=F)==null||z()}G=b;F=C(b)||null},V.onUnmount=function(){var b;
(b=F)==null||b();F=J.value=null},V[_.UUE]=!0,V);
return J};
di=function(C){return typeof C==="symbol"};
yrS=function(C){var F=Riq();if(F==null)throw _.lQS.PRIMITIVE_INVALID_HOOK_CALL();var G=F.hookCounter++;F.hooks||(F.hooks=[]);var V=F.hooks;V[G]||(V[G]={key:C,host:F});if(C!==V[G].key){if(F.__type){var J;C=(J=F.__type)==null?void 0:J.name}else C=F instanceof vQ?zsA(F.functionComponent):"<"+F.el.tagName.toLowerCase()+">";throw _.lQS.OUT_OF_ORDER_HOOK_CALL(C);}return V[G]};
ZXS=function(C,F){return!C||C.length!==(F==null?void 0:F.length)||C.some(function(G,V){return G!==F[V]})};
NzI=function(C,F){var G=yrS("onChange"),V=Riq();ZXS(G.deps,F)&&(G.deps=F,G.pendingEffect=C,V.__syncEffects||(V.__syncEffects=[]),V.__syncEffects.push(G))};
_.xn=function(C,F,G){G!=null||(G={});G=G.appContext;var V=!!zl.legacyTriggerSoyRendererEvents;_.ZN.setUp();try{var J=OXi(C,F,G);V&&(F=G,F!=null||(F=_.aso(document).getAppContext()),F.get(hiI).JSC$29317_getEventTarget().dispatchEvent(new cuZ(X9q,C,lR)));_.ZN.log(C);return J}finally{_.ZN.tearDown()}};
OXi=function(C,F,G){var V=xK(function(){var J=Eq(S_);try{return Pp(function(){var b=_.aso(_.gS(C)),z;var Q=fsB({rootElement:{value:C},appContext:G||(b==null?void 0:(z=b.getOptionalAppContext)==null?void 0:z.call(b)),dispatcher:b});b=_.$K(Q);Q=tg(!0);LB++;try{XF(F(),C),vp(!1)}catch(E){throw vp(!0),E;}finally{tg(Q),_.$K(b)}},!1)}catch(b){throw zl.enableContextBasedComponentStacks&&d0(b),b;
}finally{Eq(J)}});
C[w9T]=!0;return function(){C.textContent="";V();C[w9T]=!1}};
_.s0=function(C){if(bcW(IX)){var F;(F=zl.handleError)==null||F.call.apply(F,[zl].concat(_.da(Tl(Error("dc")))))}var G=J2,V=fB;D19({onInitType:r5Z,run:function(){if(G&&!G.isDisposed){var J=_.$K(G);try{xK(function(){return void C()},V)}catch(b){throw zl.enableContextBasedComponentStacks&&d0(b),b;
}finally{_.$K(J)}}}})};
MTZ=function(C,F){NzI(function(){return _.lb(C)},F)};
_.q4=function(C){cp()?_.s0(function(){_.lb(C)}):NzI(function(){return _.lb(C)},[])};
LEI=function(C){var F=[].concat(_.da(C));C.length=0;C=_.u(F);for(F=C.next();!F.done;F=C.next()){F=F.value;S5i(F);var G=F.pendingEffect;F.pendingEffect=null;if(G=G==null?void 0:G())F.pendingCleanup=G}};
S5i=function(C){var F=C.pendingCleanup;C.pendingCleanup=null;F==null||F()};
Bzs=function(C,F){if(cp())return C();var G=yrS("useMemoInternal");ZXS(G.deps,F)&&(G.deps=F,G.value=C());return G.value};
v6W=function(C,F){return Bzs(C,F)};
PQ=function(C){return Bzs(C,[])};
fQS=function(C){return PQ(function(){return{value:C}})};
_.gi=function(C,F){if(!C)return null;C=Object.keys(C);C=_.u(C);for(var G=C.next();!G.done;G=C.next()){G=G.value;var V=G.toLowerCase();if(V.indexOf(F,V.length-F.length)>-1)return G}return null};
_.Yn=function(){var C=arguments,F=_.RD;C.length>1?F[C[0]]=C[1]:C.length===1&&Object.assign(F,C[0])};
_.TF=function(C,F){return C in _.RD?_.RD[C]:F};
_.oD=function(C,F){return!!_.TF(C,F)};
hQZ=function(C){var F=_.RD.EXPERIMENT_FLAGS;return F?F[C]:void 0};
ArE=function(C){crS.forEach(function(F){return F(C)})};
_.pW=function(C){return C&&window.yterr?function(){try{return C.apply(this,arguments)}catch(F){_.ri(F)}}:C};
_.ri=function(C){var F=_.mN("yt.logging.errors.log");F?F(C,"ERROR",void 0,void 0,void 0,void 0,void 0):(F=_.TF("ERRORS",[]),F.push([C,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.Yn("ERRORS",F));ArE(C)};
_.CD=function(C,F,G,V,J){var b=_.mN("yt.logging.errors.log");b?b(C,"WARNING",F,G,V,void 0,J):(b=_.TF("ERRORS",[]),b.push([C,"WARNING",F,G,V,void 0,J]),_.Yn("ERRORS",b))};
dUI=function(C,F){F=C.split(F);for(var G={},V=0,J=F.length;V<J;V++){var b=F[V].split("=");if(b.length===1&&b[0]||b.length===2)try{var z=eQT(b[0]||""),Q=eQT(b[1]||"");if(z in G){var E=G[z];Array.isArray(E)?_.Rw(E,Q):G[z]=[E,Q]}else G[z]=Q}catch(H){var t=H,k=b[0],U=String(dUI);t.args=[{key:k,value:b[1],query:C,method:xUT===U?"unchanged":U}];soE.hasOwnProperty(k)||_.CD(t)}}return G};
q5A=function(C){var F=[];_.xf.forEach(C,function(G,V){var J=_.jP(V);G=Array.isArray(G)?G:[G];_.F$(G,function(b){b==""?F.push(J):F.push(J+"="+_.jP(b))})});
return F.join("&")};
_.GN=function(C){C.charAt(0)==="?"&&(C=C.substring(1));return dUI(C,"&")};
_.Vt=function(C){return C.indexOf("?")!==-1?(C=(C||"").split("#")[0],C=C.split("?",2),_.GN(C.length>1?C[1]:C[0])):{}};
_.iH=function(C,F){return Pmq(C,F||{},!0)};
g6q=function(C,F){return Pmq(C,F||{},!1)};
Pmq=function(C,F,G){var V=C.split("#",2);C=V[0];V=V.length>1?"#"+V[1]:"";var J=C.split("?",2);C=J[0];J=_.GN(J[1]||"");for(var b in F)if(G||!_.xf.containsKey(J,b))J[b]=F[b];return _.Jy(C,J)+V};
uH=function(C){if(!F)var F=window.location.href;var G=_.$U(C)[1]||null,V=_.bH(C);return G&&V?nD(C,F):V?_.bH(F)===V&&(Number(_.$U(F)[4]||null)||null)===(Number(_.$U(C)[4]||null)||null):!0};
_.Y5o=function(C){C=RQq(C);return C===null?!1:C[0]==="com"&&C[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
RQq=function(C){C=_.bH(C);return C!==null?C.split(".").reverse():null};
eQT=function(C){return C&&C.match(TzI)?C:zN(C)};
_.Qt=function(C){return new o6B(C)};
_.I8=function(){rro||(rro=new KES);return rro};
p9Z=function(){var C=DUs;return function(){var F=_.I8();if(!F.resolve(_.Qt(C))){var G={};F.addProvider((G.provide=C,G.useClass=C,G[Ew]=void 0,G))}return F.resolve(C)}};
CQw=function(C){var F=_.WD,G,V;_.I(function(J){G=_.I8();return(V=G.resolve(_.Qt(F)))?(C(V),J.return(Promise.resolve(V))):J.return(G.resolve(new mUB(F)).then(function(b){C(b);return b}))})};
_.y=function(C){C=ty(C);return typeof C==="string"&&C==="false"?!1:!!C};
_.a8=function(C,F){C=ty(C);return C===void 0&&F!==void 0?F:Number(C||0)};
jQE=function(C){C=ty(C);return Array.isArray(C)?_.ss(C,function(F){return Number(F||0)}):[Number(C||0)]};
_.kU=function(C){C=ty(C);return C!==void 0?String(C):""};
_.Uw=function(C){C=ty(C);return Array.isArray(C)?_.ss(C,function(F){return String(F||"")}):[String(C||"")]};
FyS=function(){return _.TF("EXPERIMENTS_TOKEN","")};
ty=function(C){return _.TF("EXPERIMENT_FLAGS",{})[C]};
GUA=function(){for(var C=[],F=_.TF("EXPERIMENTS_FORCED_FLAGS",{}),G=_.u(Object.keys(F)),V=G.next();!V.done;V=G.next())V=V.value,C.push({key:V,value:String(F[V])});G=_.TF("EXPERIMENT_FLAGS",{});V=_.u(Object.keys(G));for(var J=V.next();!J.done;J=V.next())J=J.value,J.startsWith("force_")&&F[J]===void 0&&C.push({key:J,value:String(G[J])});return C};
ils=function(){if(!Vj9)return null;var C=Vj9();return"open"in C?C:null};
_.J3s=function(C){switch(_.HD(C)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.HD=function(C){return C&&"status"in C?C.status:-1};
_.lH=function(C,F){typeof C==="function"&&(C=_.pW(C));return window.setTimeout(C,F)};
_.Z9=function(C,F){typeof C==="function"&&(C=_.pW(C));return window.setInterval(C,F)};
_.Ow=function(C){window.clearTimeout(C)};
blo=function(C){C=_.Vt(C);for(var F=_.u($V5),G=F.next();!G.done;G=F.next())if(C[G.value]!==void 0)return!0;return!1};
zRi=function(C,F,G,V,J,b,z,Q,E){G=G===void 0?"GET":G;V=V===void 0?"":V;Q=Q===void 0?!1:Q;var t=ils();if(!t)return null;var k=function(){(t&&"readyState"in t?t.readyState:0)===4&&F&&_.pW(F)(t)};
"onloadend"in t?t.addEventListener("loadend",k,!1):t.onreadystatechange=k;_.y("debug_forward_web_query_parameters")&&(C=nBw(C,window.location.search));t.open(G,C,!0);b&&(t.responseType=b);z&&(t.withCredentials=!0);G=G==="POST"&&(window.FormData===void 0||!(V instanceof FormData));if(J=uIS(C,J))for(var U in J)t.setRequestHeader(U,J[U]),"content-type"===U.toLowerCase()&&(G=!1);G&&t.setRequestHeader("Content-Type","application/x-www-form-urlencoded");E&&"onprogress"in t&&(t.onprogress=function(){E(t.responseText)});
if(Q&&"setAttributionReporting"in XMLHttpRequest.prototype){C={eventSourceEligible:!0,triggerEligible:!1};try{t.setAttributionReporting(C)}catch(H){_.CD(H)}}t.send(V);return t};
uIS=function(C,F){F=F===void 0?{}:F;var G=uH(C),V=_.TF("INNERTUBE_CLIENT_NAME"),J=_.y("web_ajax_ignore_global_headers_if_set"),b;for(b in QQs){var z=_.TF(QQs[b]),Q=b==="X-Goog-AuthUser"||b==="X-Goog-PageId";b!=="X-Goog-Visitor-Id"||z||(z=_.TF("VISITOR_DATA"));var E;if(!(E=!z)){if(!(E=G||(_.bH(C)?!1:!0))){E=C;var t;if(t=_.y("add_auth_headers_to_remarketing_google_dot_com_ping")&&b==="Authorization"&&(V==="TVHTML5"||V==="TVHTML5_UNPLUGGED"||V==="TVHTML5_SIMPLY"))t=RQq(E),t=t===null?!1:t[1]==="google"?
!0:t[2]==="google"?t[0]==="au"&&t[1]==="com"?!0:t[0]==="uk"&&t[1]==="co"?!0:!1:!1;t&&(E=_.X$(E)||"",E=E.split("/"),E="/"+(E.length>1?E[1]:""),t=E==="/pagead");E=t?!0:!1}E=!E}E||J&&F[b]!==void 0||V==="TVHTML5_UNPLUGGED"&&Q||(F[b]=z)}"X-Goog-EOM-Visitor-Id"in F&&"X-Goog-Visitor-Id"in F&&delete F["X-Goog-Visitor-Id"];if(G||!_.bH(C))F["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(G||!_.bH(C)){try{var k=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(U){}k&&(F["X-YouTube-Time-Zone"]=
k)}document.location.hostname.endsWith("youtubeeducation.com")||!G&&_.bH(C)||(F["X-YouTube-Ad-Signals"]=q5A(I8T()));return F};
_.EBw=function(C,F){var G=_.bH(C);_.y("debug_handle_relative_url_for_query_forward_killswitch")||!G&&uH(C)&&(G=document.location.hostname);var V=_.X$(C);V=(G=G&&(G.endsWith("youtube.com")||G.endsWith("youtube-nocookie.com")))&&V&&V.startsWith("/api/");if(!G||V)return C;var J=_.GN(F),b={};_.F$($V5,function(z){J[z]&&(b[z]=J[z])});
return g6q(C,b)};
WyT=function(C,F){F.method="POST";F.postParams||(F.postParams={});return _.wj(C,F)};
tjq=function(C,F){var G=_.TF("XSRF_FIELD_NAME"),V;F.headers&&(V=F.headers["Content-Type"]);return!F.excludeXsrf&&(!_.bH(C)||F.withCredentials||_.bH(C)===document.location.hostname)&&F.method==="POST"&&(!V||V==="application/x-www-form-urlencoded")&&!(F.postParams&&F.postParams[G])};
_.wj=function(C,F){var G=F.format||"JSON";C=a8i(C,F);var V=kUs(C,F),J=!1,b=UVw(C,function(E){if(!J){J=!0;Q&&_.Ow(Q);var t=_.J3s(E),k=null,U=400<=E.status&&E.status<500,H=500<=E.status&&E.status<600;if(t||U||H)k=Hlw(C,G,E,F.convertToSafeHtml);t&&(t=l89(G,E,k));k=k||{};U=F.context||_.VT;t?F.onSuccess&&F.onSuccess.call(U,E,k):F.onError&&F.onError.call(U,E,k);F.onFinish&&F.onFinish.call(U,E,k)}},F.method,V,F.headers,F.responseType,F.withCredentials,!1,F.onProgress);
V=F.timeout||0;if(F.onTimeout&&V>0){var z=F.onTimeout;var Q=_.lH(function(){J||(J=!0,b.abort(),_.Ow(Q),z.call(F.context||_.VT,b))},V)}return b};
a8i=function(C,F){F.includeDomain&&(C=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+C);var G=_.TF("XSRF_FIELD_NAME");if(F=F.urlParams)F[G]&&delete F[G],C=_.iH(C,F);return C};
kUs=function(C,F){var G=_.TF("XSRF_FIELD_NAME"),V=_.TF("XSRF_TOKEN"),J=F.postBody||"",b=F.postParams;tjq(C,F)&&(b||(b={}),b[G]=V);(_.y("ajax_parse_query_data_only_when_filled")&&b&&Object.keys(b).length>0||b)&&typeof J==="string"&&(J=_.GN(J),_.xf.extend(J,b),J=F.postBodyFormat&&F.postBodyFormat==="JSON"?JSON.stringify(J):_.Me(J));b=J||b&&!_.xf.isEmpty(b);!y3I&&b&&F.method!=="POST"&&(y3I=!0,_.ri(Error("Kc")));return J};
Hlw=function(C,F,G,V){var J=null;switch(F){case "JSON":try{var b=G.responseText}catch(z){throw V=Error("Lc"),V.params=C,_.CD(V),z;}C=G.getResponseHeader("Content-Type")||"";b&&C.indexOf("json")>=0&&(b.substring(0,5)===")]}'\n"&&(b=b.substring(5)),J=JSON.parse(b));break;case "XML":if(C=(C=G.responseXML)?Zls(C):null)J={},_.F$(C.getElementsByTagName("*"),function(z){J[z.tagName]=NhA(z)})}V&&Ol5(J);
return J};
Ol5=function(C){if(_.TE(C))for(var F in C)F==="html_content"||bZ(F,"_html")?C[F]=D0(C[F]):Ol5(C[F])};
l89=function(C,F,G){if(F&&F.status===204)return!0;switch(C){case "JSON":return!!G;case "XML":return Number(G&&G.return_code)===0;case "RAW":return!0;default:return!!G}};
Zls=function(C){return C?(C=("responseXML"in C?C.responseXML:C).getElementsByTagName("root"))&&C.length>0?C[0]:null:null};
NhA=function(C){var F="";_.F$(C.childNodes,function(G){F+=G.nodeValue});
return F};
XA5=function(C){if(C.name==="JavaException")return!0;C=C.stack;return C.includes("chrome://")||C.includes("-extension://")||C.includes("webkit-masked-url://")};
wAf=function(C){if(!C.stack)return!0;var F=!C.stack.includes("\n");return F&&C.stack.includes("ErrorType: ")||F&&C.stack.includes("Anonymous function (Unknown script")||C.stack.toLowerCase()==="not available"||C.fileName==="user-script"||C.fileName.startsWith("user-script:")?!0:!1};
_.SP=function(C){_.hV.call(this);this.JSC$10525_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!C};
SZB=function(C,F){var G=C.length,V=0,J=function(){return C.charCodeAt(V++)};
do{var b=Mjo(J);if(b===Infinity)break;var z=b>>3;switch(b&7){case 0:b=Mjo(J);if(z===F)return b;break;case 1:if(z===F)return;V+=8;break;case 2:b=Mjo(J);if(z===F)return C.substr(V,b);V+=b;break;case 5:if(z===F)return;V+=4;break;default:return}}while(V<G)};
Mjo=function(C){var F=C(),G=F&127;if(F<128)return G;F=C();G|=(F&127)<<7;if(F<128)return G;F=C();G|=(F&127)<<14;if(F<128)return G;F=C();return F<128?G|(F&127)<<21:Infinity};
BhS=function(C,F,G,V){if(C)if(Array.isArray(C)){var J=V;for(V=0;V<C.length&&!(C[V]&&(J+=Lys(V,C[V],F,G),J>500));V++);V=J}else if(typeof C==="object")for(J in C){if(C[J]){var b=J;var z=C[J],Q=F,E=G;b=typeof z!=="string"||b!=="clickTrackingParams"&&b!=="trackingParams"?0:(z=SZB(atob(z.replace(/-/g,"+").replace(/_/g,"/")),2))?Lys(b+".ve",z,Q,E):0;V+=b;V+=Lys(J,C[J],F,G);if(V>500)break}}else G[F]=LD(C),V+=G[F].length;else G[F]=LD(C),V+=G[F].length;return V};
Lys=function(C,F,G,V){G+="."+C;C=LD(F);V[G]=C;return G.length+C.length};
LD=function(C){try{return(typeof C==="string"?C:String(JSON.stringify(C))).substr(0,500)}catch(F){return"unable to serialize "+typeof C+" ("+F.message+")"}};
vBi=function(C){switch(C){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}};
_.vD=function(C,F,G,V,J){_.BD.set(C,F,{maxAge:G,path:"/",domain:V===void 0?"youtube.com":V,secure:J===void 0?!1:J})};
_.f8w=function(C,F,G){_.BD.remove(C,F===void 0?"/":F,G===void 0?"youtube.com":G)};
_.fD=function(){if(_.y("embeds_web_enable_cookie_detection_fix")){if(!_.VT.navigator.cookieEnabled)return!1}else if(!_.BD.isEnabled())return!1;if(!_.BD.isEmpty())return!0;_.y("embeds_web_enable_cookie_detection_fix")?_.BD.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.BD.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.BD.get("TESTCOOKIESENABLED")!=="1")return!1;_.BD.remove("TESTCOOKIESENABLED");return!0};
hRT=function(){var C=_.VT.navigator;return C?C.connection:void 0};
c3S=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(C){}};
_.eRo=function(){var C=hRT();if(C){var F=A3T[C.type||"unknown"]||"CONN_UNKNOWN";C=A3T[C.effectiveType||"unknown"]||"CONN_UNKNOWN";F==="CONN_CELLULAR_UNKNOWN"&&C!=="CONN_UNKNOWN"&&(F=C);if(F!=="CONN_UNKNOWN")return F;if(C!=="CONN_UNKNOWN")return C}};
xVs=function(){var C=hRT();if(C!=null&&C.effectiveType)return dVW.hasOwnProperty(C.effectiveType)?dVW[C.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.cD=function(){try{return _.hy(),!0}catch(C){return!1}};
_.hy=function(C){if(_.TF("DATASYNC_ID")!==void 0)return _.TF("DATASYNC_ID");throw new _.Ay("Datasync ID not set",C===void 0?"unknown":C);};
_.eP=function(C){this.mechanism=C};
dj=function(C){this.mechanism=C};
xU=function(C){this.storage_=C;this.cachedIsStorageAvailable_=null};
sQ5=function(){var C=null;try{C=_.VT.localStorage||null}catch(F){}xU.call(this,C)};
qZ9=function(){var C=null;try{C=_.VT.sessionStorage||null}catch(F){}xU.call(this,C)};
sw=function(C,F){this.mechanism_=C;this.JSC$10627_prefix_=F+"::"};
_.PQI=function(C){var F=new sQ5;return F.isAvailable()?C?new sw(F,C):F:null};
_.gBI=function(C){var F=new qZ9;return F.isAvailable()?C?new sw(F,C):F:null};
YZA=function(){var C;return(C=RRI())==null?void 0:C.get("LAST_RESULT_ENTRY_KEY",!0)};
_.gj=function(C){Ths||(_.qe?_.qe.logError(C):(_.PD.push({type:"ERROR",payload:C}),_.PD.length>10&&_.PD.shift()))};
R8=function(C,F){Ths||(_.qe?_.qe.logEvent(C,F):(_.PD.push({type:"EVENT",eventType:C,payload:F}),_.PD.length>10&&_.PD.shift()))};
YU=function(C){if(C.indexOf(":")>=0)throw Error("Sc");};
TN=function(C){return C.substr(0,C.indexOf(":"))||C};
KyI=function(){return(oBI||r3o)&&o8("applewebkit")&&!o8("version")&&(!o8("safari")||o8("gsa/"))};
o8=function(C){var F=_.UB();return F?F.toLowerCase().indexOf(C)>=0:!1};
mVW=function(C,F,G,V){F=TN(F);var J=C instanceof Error?C:Error("Tc`"+C);if(J instanceof rj)return J;C={objectStoreNames:G,dbName:F,dbVersion:V};if(J.name==="QuotaExceededError")return new rj("QUOTA_EXCEEDED",C);if(_.KD&&J.name==="UnknownError")return new rj("QUOTA_MAYBE_EXCEEDED",C);if(J instanceof DVf)return new rj("MISSING_INDEX",Object.assign({},C,{objectStore:J.objectStore,index:J.index}));if(J.name==="InvalidStateError"&&pA9.some(function(b){return J.message.includes(b)}))return new rj("EXECUTE_TRANSACTION_ON_CLOSED_DB",
C);
if(J.name==="AbortError")return new rj("UNKNOWN_ABORT",C,J.message);J.args=[Object.assign({},C,{name:"IdbError",originalName:J.name})];J.level="WARNING";return J};
D9=function(C,F,G){var V=YZA();return new rj("IDB_NOT_SUPPORTED",{context:{caller:C,publicName:F,version:G,hasSucceededOnce:V==null?void 0:V.hasSucceededOnce}})};
CKq=function(C){if(!C)throw Error();throw C;};
jAW=function(C){return C};
FDE=function(C,F,G){var V=function(){try{C.removeEventListener("success",J),C.removeEventListener("error",b)}catch(z){}},J=function(){F(C.result);
V()},b=function(){G(C.error);
V()};
C.addEventListener("success",J);C.addEventListener("error",b)};
Gcw=function(C){return new Promise(function(F,G){FDE(C,F,G)})};
CO=function(C){return new pD(new mx(function(F,G){FDE(C,F,G)}))};
VNo=function(C,F){return new pD(new mx(function(G,V){var J=function(){var b=C?F(C):null;b?b.then(function(z){C=z;J()},V):G()};
J()}))};
i7w=function(C,F,G){return new Promise(function(V,J){var b=F!==void 0?self.indexedDB.open(C,F):self.indexedDB.open(C);var z=G.blocked,Q=G.blocking,E=G.terminated,t=G.upgrade,k=G.closed,U,H=function(){U||(U=new jM(b.result,{closed:k}));return U};
b.addEventListener("upgradeneeded",function(l){try{if(l.newVersion===null)throw Error("Yc");if(b.transaction===null)throw Error("Zc");l.dataLoss&&l.dataLoss!=="none"&&R8("IDB_DATA_CORRUPTED",{reason:l.dataLossMessage||"unknown reason",dbName:TN(C)});var N=H(),S=new FT(b.transaction);t&&t(N,function(f){return l.oldVersion<f&&l.newVersion>=f},S);
S.done.catch(function(f){J(f)})}catch(f){J(f)}});
b.addEventListener("success",function(){var l=b.result;Q&&l.addEventListener("versionchange",function(){Q(H())});
l.addEventListener("close",function(){R8("IDB_UNEXPECTEDLY_CLOSED",{dbName:TN(C),dbVersion:l.version});E&&E()});
V(H())});
b.addEventListener("error",function(){J(b.error)});
z&&b.addEventListener("blocked",function(){z()})})};
J4I=function(C,F,G){G=G===void 0?{}:G;return i7w(C,F,G)};
_.Vn=function(C,F){F=F===void 0?{}:F;var G,V,J,b;return _.I(function(z){if(z.nextAddress==1)return _.yy(z,2),G=self.indexedDB.deleteDatabase(C),V=F,(J=V.blocked)&&G.addEventListener("blocked",function(){J()}),z.yield(Gcw(G),4);
if(z.nextAddress!=2)return _.Gn(z,0);b=_.wa(z);throw mVW(b,C,"",-1);})};
b7f=function(C,F){var G;return _.I(function(V){if(V.nextAddress==1)return V.yield(_.iw($WA,F),2);G=V.yieldResult;return V.return(_.Jn(G,["databases"],{enableRetries:!0,mode:"readwrite"},function(J){var b=J.objectStore("databases");return b.get(C.actualName).then(function(z){if(z?C.actualName!==z.actualName||C.publicName!==z.publicName||C.userIdentifier!==z.userIdentifier:1)return b.put(C).then(function(){})})}))})};
_.$x=function(C,F){var G;return _.I(function(V){if(V.nextAddress==1)return C?V.yield(_.iw($WA,F),2):V.return();G=V.yieldResult;return V.return(G.delete("databases",C))})};
_.n2B=function(C,F){var G,V;return _.I(function(J){return J.nextAddress==1?(G=[],J.yield(_.iw($WA,F),2)):J.nextAddress!=3?(V=J.yieldResult,J.yield(_.Jn(V,["databases"],{enableRetries:!0,mode:"readonly"},function(b){G.length=0;return bw(b.objectStore("databases"),{},function(z){C(z.getValue())&&G.push(z.getValue());return z.continue()})}),3)):J.return(G)})};
u09=function(C,F){return _.n2B(function(G){return G.publicName===C&&G.userIdentifier!==void 0},F)};
Ib9=function(){var C,F,G,V;return _.I(function(J){switch(J.nextAddress){case 1:C=YZA();if((F=C)==null?0:F.hasSucceededOnce)return J.return(!0);var b;if(b=zOB)b=/WebKit\/([0-9]+)/.exec(_.UB()),b=!!(b&&parseInt(b[1],10)>=600);b&&(b=/WebKit\/([0-9]+)/.exec(_.UB()),b=!(b&&parseInt(b[1],10)>=602));if(b||nO)return J.return(!1);try{if(G=self,!(G.indexedDB&&G.IDBIndex&&G.IDBKeyRange&&G.IDBObjectStore))return J.return(!1)}catch(z){return J.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return J.return(!1);
_.yy(J,2);V={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return J.yield(b7f(V,QAq),4);case 4:return J.yield(_.$x("yt-idb-test-do-not-use",QAq),5);case 5:return J.return(!0);case 2:return _.wa(J),J.return(!1)}})};
WDw=function(){if(E2q!==void 0)return E2q;Ths=!0;return E2q=Ib9().then(function(C){Ths=!1;var F;if((F=RRI())!=null&&F.hasLocalStorage()){var G;F={hasSucceededOnce:((G=YZA())==null?void 0:G.hasSucceededOnce)||C};var V;(V=RRI())==null||V.set("LAST_RESULT_ENTRY_KEY",F,2592E3,!0)}return C})};
uw=function(){return _.mN("ytglobal.idbToken_")||void 0};
_.Qn=function(){var C=uw();return C?Promise.resolve(C):WDw().then(function(F){(F=F?QAq:void 0)&&_.zn("ytglobal.idbToken_",F);return F})};
tNT=function(C){if(!_.cD())throw C=new rj("AUTH_INVALID",{dbName:C}),_.gj(C),C;var F=_.hy();return{actualName:C+":"+F,publicName:C,userIdentifier:F}};
abW=function(C,F,G,V){var J,b,z,Q,E,t;return _.I(function(k){switch(k.nextAddress){case 1:return b=(J=Error().stack)!=null?J:"",k.yield(_.Qn(),2);case 2:z=k.yieldResult;if(!z)throw Q=D9("openDbImpl",C,F),_.y("ytidb_async_stack_killswitch")||(Q.stack=Q.stack+"\n"+b.substring(b.indexOf("\n")+1)),_.gj(Q),Q;YU(C);E=G?{actualName:C,publicName:C,userIdentifier:void 0}:tNT(C);_.yy(k,3);return k.yield(b7f(E,z),5);case 5:return k.yield(J4I(E.actualName,F,V),6);case 6:return k.return(k.yieldResult);case 3:return t=
_.wa(k),_.yy(k,7),k.yield(_.$x(E.actualName,z),9);case 9:_.Gn(k,8);break;case 7:_.wa(k);case 8:throw t;}})};
kcS=function(C,F,G){G=G===void 0?{}:G;return abW(C,F,!1,G)};
UWS=function(C,F,G){G=G===void 0?{}:G;return abW(C,F,!0,G)};
H7T=function(C,F){F=F===void 0?{}:F;var G,V;return _.I(function(J){if(J.nextAddress==1)return J.yield(_.Qn(),2);if(J.nextAddress!=3){G=J.yieldResult;if(!G)return J.return();YU(C);V=tNT(C);return J.yield(_.Vn(V.actualName,F),3)}return J.yield(_.$x(V.actualName,G),0)})};
lbW=function(C,F,G){C=C.map(function(V){return _.I(function(J){return J.nextAddress==1?J.yield(_.Vn(V.actualName,F),2):J.yield(_.$x(V.actualName,G),0)})});
return Promise.all(C).then(function(){})};
y4i=function(C){var F=F===void 0?{}:F;var G,V;return _.I(function(J){if(J.nextAddress==1)return J.yield(_.Qn(),2);if(J.nextAddress!=3){G=J.yieldResult;if(!G)return J.return();YU(C);return J.yield(u09(C,G),3)}V=J.yieldResult;return J.yield(lbW(V,F,G),0)})};
Z7q=function(C,F){F=F===void 0?{}:F;var G;return _.I(function(V){if(V.nextAddress==1)return V.yield(_.Qn(),2);if(V.nextAddress!=3){G=V.yieldResult;if(!G)return V.return();YU(C);return V.yield(_.Vn(C,F),3)}return V.yield(_.$x(C,G),0)})};
Ia=function(C,F){return NdW(C,F)};
XYS=function(C){return _.iw(O7A(),C)};
wYo=function(C,F,G,V){var J,b,z;return _.I(function(Q){switch(Q.nextAddress){case 1:return J={config:C,hashData:F,timestamp:V!==void 0?V:(0,_.Et)()},Q.yield(XYS(G),2);case 2:return b=Q.yieldResult,Q.yield(b.clear("hotConfigStore"),3);case 3:return Q.yield(b.put("hotConfigStore",J),4);case 4:return z=Q.yieldResult,Q.return(z)}})};
MNf=function(C,F,G,V,J){var b,z,Q;return _.I(function(E){switch(E.nextAddress){case 1:return b={config:C,hashData:F,configData:G,timestamp:J!==void 0?J:(0,_.Et)()},E.yield(XYS(V),2);case 2:return z=E.yieldResult,E.yield(z.clear("coldConfigStore"),3);case 3:return E.yield(z.put("coldConfigStore",b),4);case 4:return Q=E.yieldResult,E.return(Q)}})};
S3A=function(C){var F,G;return _.I(function(V){return V.nextAddress==1?V.yield(XYS(C),2):V.nextAddress!=3?(F=V.yieldResult,G=void 0,V.yield(_.Jn(F,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(J){return _.Wg(J.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(b){G=b.getValue()})}),3)):V.return(G)})};
LDo=function(C){var F,G;return _.I(function(V){return V.nextAddress==1?V.yield(XYS(C),2):V.nextAddress!=3?(F=V.yieldResult,G=void 0,V.yield(_.Jn(F,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(J){return _.Wg(J.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(b){G=b.getValue()})}),3)):V.return(G)})};
Bd9=function(){return _.I(function(C){return C.yield(y4i("ytGcfConfig"),0)})};
v2w=function(){return"INNERTUBE_API_KEY"in _.RD&&"INNERTUBE_API_VERSION"in _.RD};
_.tn=function(){return{innertubeApiKey:_.TF("INNERTUBE_API_KEY"),innertubeApiVersion:_.TF("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.TF("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.TF("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.TF("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.TF("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.TF("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.TF("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.TF("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.oD("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.oD("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.TF("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.xWf=function(C){var F={client:{hl:C.innertubeContextHostLanguage,gl:C.innertubeContextGeoLocation,clientName:C.innertubeContextClientName,clientVersion:C.innertubeContextClientVersion,configInfo:C.innertubeContextClientConfigInfo}};navigator.userAgent&&(F.client.userAgent=String(navigator.userAgent));var G=_.VT.devicePixelRatio;G&&G!=1&&(F.client.screenDensityFloat=String(G));G=FyS();G!==""&&(F.client.experimentsToken=G);G=GUA();G.length>0&&(F.request={internalExperimentFlags:G});fbB(C,void 0,F);
hO9(void 0,F);c4q(void 0,F);A4Z(C,void 0,F);eOI(void 0,F);_.y("start_client_gcf")&&dW5(void 0,F);_.TF("DELEGATED_SESSION_ID")&&!_.y("pageid_as_header_web")&&(F.user={onBehalfOfUser:_.TF("DELEGATED_SESSION_ID")});!_.y("fill_delegate_context_in_gel_killswitch")&&(C=_.TF("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(F.user=Object.assign({},F.user,{serializedDelegationContext:C}));C=_.TF("INNERTUBE_CONTEXT");var V;if(_.y("enable_persistent_device_token")&&(C==null?0:(V=C.client)==null?0:V.rolloutToken)){var J;
F.client.rolloutToken=C==null?void 0:(J=C.client)==null?void 0:J.rolloutToken}V=Object;J=V.assign;C=F.client;G={};for(var b=_.u(Object.entries(_.GN(_.TF("DEVICE","")))),z=b.next();!z.done;z=b.next()){var Q=_.u(z.value);z=Q.next().value;Q=Q.next().value;z==="cbrand"?G.deviceMake=Q:z==="cmodel"?G.deviceModel=Q:z==="cbr"?G.browserName=Q:z==="cbrver"?G.browserVersion=Q:z==="cos"?G.osName=Q:z==="cosver"?G.osVersion=Q:z==="cplatform"&&(G.platform=Q)}F.client=J.call(V,C,G);return F};
fbB=function(C,F,G){C=C.innertubeContextClientName;if(C==="WEB"||C==="MWEB"||C===1||C===2)if(F){G=_.aa(F,sAA,96)||new sAA;var V=q3o();V=Object.keys(PKi).indexOf(V);V=V===-1?null:V;V!==null&&_.kx(G,3,V);_.OL(F,96,G)}else G&&(G.client.mainAppWebInfo=(V=G.client.mainAppWebInfo)!=null?V:{},G.client.mainAppWebInfo.webDisplayMode=q3o())};
hO9=function(C,F){var G=_.mN("yt.embedded_player.embed_url");G&&(C?(F=_.aa(C,g2T,7)||new g2T,_.fA(F,4,G),_.OL(C,7,F)):F&&(F.thirdParty={embedUrl:G}))};
c4q=function(C,F){var G;if(_.y("web_log_memory_total_kbytes")&&((G=_.VT.navigator)==null?0:G.deviceMemory)){var V;G=(V=_.VT.navigator)==null?void 0:V.deviceMemory;C?_.Ut(C,95,Er(G*1E6)):F&&(F.client.memoryTotalKbytes=""+G*1E6)}};
A4Z=function(C,F,G){if(C.appInstallData)if(F){var V;G=(V=_.aa(F,Hg,62))!=null?V:new Hg;_.fA(G,6,C.appInstallData);_.OL(F,62,G)}else G&&(G.client.configInfo=G.client.configInfo||{},G.client.configInfo.appInstallData=C.appInstallData)};
eOI=function(C,F){var G=_.eRo();G&&(C?_.kx(C,61,ROA[G]):F&&(F.client.connectionType=G));_.y("web_log_effective_connection_type")&&(G=xVs())&&(C?_.kx(C,94,Y3w[G]):F&&(F.client.effectiveConnectionType=G))};
_.r4i=function(C,F,G){G=G===void 0?{}:G;var V={};_.TF("EOM_VISITOR_DATA")?V={"X-Goog-EOM-Visitor-Id":_.TF("EOM_VISITOR_DATA")}:V={"X-Goog-Visitor-Id":G.visitorData||_.TF("VISITOR_DATA","")};if(F&&F.includes("www.youtube-nocookie.com"))return V;F=G.authorization||_.TF("AUTHORIZATION");F||(C?F="Bearer "+_.mN("gapi.auth.getToken")().access_token:(TdT.instance||(TdT.instance=new TdT),C=o2T(),_.y("pageid_as_header_web")||delete C["X-Goog-PageId"],V=Object.assign({},V,C)));F&&(V.Authorization=F);return V};
dW5=function(C,F){var G=KDA();if(G){var V=G.coldConfigData,J=G.coldHashData;G=G.hotHashData;if(C){var b;F=(b=_.aa(C,Hg,62))!=null?b:new Hg;V=_.fA(F,1,V);_.fA(V,3,J).setHotHashData(G);_.OL(C,62,F)}else F&&(F.client.configInfo=F.client.configInfo||{},V&&(F.client.configInfo.coldConfigData=V),J&&(F.client.configInfo.coldHashData=J),G&&(F.client.configInfo.hotHashData=G))}};
lw=function(C){for(var F=C.length;--F>=0;)C[F]=0};
DWE=function(C,F,G,V,J){this.static_tree=C;this.extra_bits=F;this.extra_base=G;this.elems=V;this.max_length=J;this.has_stree=C&&C.length};
pYo=function(C,F){this.dyn_tree=C;this.max_code=0;this.stat_desc=F};
yn=function(C,F){C.pending_buf[C.pending++]=F&255;C.pending_buf[C.pending++]=F>>>8&255};
Zs=function(C,F,G){C.bi_valid>16-G?(C.bi_buf|=F<<C.bi_valid&65535,yn(C,C.bi_buf),C.bi_buf=F>>16-C.bi_valid,C.bi_valid+=G-16):(C.bi_buf|=F<<C.bi_valid&65535,C.bi_valid+=G)};
NM=function(C,F,G){Zs(C,G[F*2],G[F*2+1])};
mWT=function(C,F){var G=0;do G|=C&1,C>>>=1,G<<=1;while(--F>0);return G>>>1};
CE5=function(C,F,G){var V=Array(16),J=0,b;for(b=1;b<=15;b++)V[b]=J=J+G[b-1]<<1;for(G=0;G<=F;G++)J=C[G*2+1],J!==0&&(C[G*2]=mWT(V[J]++,J))};
jtf=function(C){var F;for(F=0;F<286;F++)C.dyn_ltree[F*2]=0;for(F=0;F<30;F++)C.dyn_dtree[F*2]=0;for(F=0;F<19;F++)C.bl_tree[F*2]=0;C.dyn_ltree[512]=1;C.opt_len=C.static_len=0;C.last_lit=C.matches=0};
F5s=function(C){C.bi_valid>8?yn(C,C.bi_buf):C.bi_valid>0&&(C.pending_buf[C.pending++]=C.bi_buf);C.bi_buf=0;C.bi_valid=0};
Gtf=function(C,F,G){F5s(C);yn(C,G);yn(C,~G);Ot.arraySet(C.pending_buf,C.window,F,G,C.pending);C.pending+=G};
Vv9=function(C,F,G,V){var J=F*2,b=G*2;return C[J]<C[b]||C[J]===C[b]&&V[F]<=V[G]};
id9=function(C,F,G){for(var V=C.heap[G],J=G<<1;J<=C.heap_len;){J<C.heap_len&&Vv9(F,C.heap[J+1],C.heap[J],C.depth)&&J++;if(Vv9(F,V,C.heap[J],C.depth))break;C.heap[G]=C.heap[J];G=J;J<<=1}C.heap[G]=V};
upi=function(C,F,G){var V=0;if(C.last_lit!==0){do{var J=C.pending_buf[C.d_buf+V*2]<<8|C.pending_buf[C.d_buf+V*2+1];var b=C.pending_buf[C.l_buf+V];V++;if(J===0)NM(C,b,F);else{var z=XT[b];NM(C,z+256+1,F);var Q=JRA[z];Q!==0&&(b-=$zi[z],Zs(C,b,Q));J--;z=J<256?wT[J]:wT[256+(J>>>7)];NM(C,z,G);Q=bdT[z];Q!==0&&(J-=nTB[z],Zs(C,J,Q))}}while(V<C.last_lit)}NM(C,256,F)};
zuZ=function(C,F){var G=F.dyn_tree,V=F.stat_desc.static_tree,J=F.stat_desc.has_stree,b=F.stat_desc.elems,z,Q=-1;C.heap_len=0;C.heap_max=573;for(z=0;z<b;z++)G[z*2]!==0?(C.heap[++C.heap_len]=Q=z,C.depth[z]=0):G[z*2+1]=0;for(;C.heap_len<2;){var E=C.heap[++C.heap_len]=Q<2?++Q:0;G[E*2]=1;C.depth[E]=0;C.opt_len--;J&&(C.static_len-=V[E*2+1])}F.max_code=Q;for(z=C.heap_len>>1;z>=1;z--)id9(C,G,z);E=b;do z=C.heap[1],C.heap[1]=C.heap[C.heap_len--],id9(C,G,1),V=C.heap[1],C.heap[--C.heap_max]=z,C.heap[--C.heap_max]=
V,G[E*2]=G[z*2]+G[V*2],C.depth[E]=(C.depth[z]>=C.depth[V]?C.depth[z]:C.depth[V])+1,G[z*2+1]=G[V*2+1]=E,C.heap[1]=E++,id9(C,G,1);while(C.heap_len>=2);C.heap[--C.heap_max]=C.heap[1];z=F.dyn_tree;E=F.max_code;V=F.stat_desc.static_tree;J=F.stat_desc.has_stree;b=F.stat_desc.extra_bits;var t=F.stat_desc.extra_base,k=F.stat_desc.max_length,U,H=0;for(U=0;U<=15;U++)C.bl_count[U]=0;z[C.heap[C.heap_max]*2+1]=0;for(F=C.heap_max+1;F<573;F++){var l=C.heap[F];U=z[z[l*2+1]*2+1]+1;U>k&&(U=k,H++);z[l*2+1]=U;if(!(l>
E)){C.bl_count[U]++;var N=0;l>=t&&(N=b[l-t]);var S=z[l*2];C.opt_len+=S*(U+N);J&&(C.static_len+=S*(V[l*2+1]+N))}}if(H!==0){do{for(U=k-1;C.bl_count[U]===0;)U--;C.bl_count[U]--;C.bl_count[U+1]+=2;C.bl_count[k]--;H-=2}while(H>0);for(U=k;U!==0;U--)for(l=C.bl_count[U];l!==0;)V=C.heap[--F],V>E||(z[V*2+1]!==U&&(C.opt_len+=(U-z[V*2+1])*z[V*2],z[V*2+1]=U),l--)}CE5(G,Q,C.bl_count)};
QtE=function(C,F,G){var V,J=-1,b=F[1],z=0,Q=7,E=4;b===0&&(Q=138,E=3);F[(G+1)*2+1]=65535;for(V=0;V<=G;V++){var t=b;b=F[(V+1)*2+1];++z<Q&&t===b||(z<E?C.bl_tree[t*2]+=z:t!==0?(t!==J&&C.bl_tree[t*2]++,C.bl_tree[32]++):z<=10?C.bl_tree[34]++:C.bl_tree[36]++,z=0,J=t,b===0?(Q=138,E=3):t===b?(Q=6,E=3):(Q=7,E=4))}};
Itf=function(C,F,G){var V,J=-1,b=F[1],z=0,Q=7,E=4;b===0&&(Q=138,E=3);for(V=0;V<=G;V++){var t=b;b=F[(V+1)*2+1];if(!(++z<Q&&t===b)){if(z<E){do NM(C,t,C.bl_tree);while(--z!==0)}else t!==0?(t!==J&&(NM(C,t,C.bl_tree),z--),NM(C,16,C.bl_tree),Zs(C,z-3,2)):z<=10?(NM(C,17,C.bl_tree),Zs(C,z-3,3)):(NM(C,18,C.bl_tree),Zs(C,z-11,7));z=0;J=t;b===0?(Q=138,E=3):t===b?(Q=6,E=3):(Q=7,E=4)}}};
ETT=function(C){var F=4093624447,G;for(G=0;G<=31;G++,F>>>=1)if(F&1&&C.dyn_ltree[G*2]!==0)return 0;if(C.dyn_ltree[18]!==0||C.dyn_ltree[20]!==0||C.dyn_ltree[26]!==0)return 1;for(G=32;G<256;G++)if(C.dyn_ltree[G*2]!==0)return 1;return 0};
MM=function(C,F,G){C.pending_buf[C.d_buf+C.last_lit*2]=F>>>8&255;C.pending_buf[C.d_buf+C.last_lit*2+1]=F&255;C.pending_buf[C.l_buf+C.last_lit]=G&255;C.last_lit++;F===0?C.dyn_ltree[G*2]++:(C.matches++,F--,C.dyn_ltree[(XT[G]+256+1)*2]++,C.dyn_dtree[(F<256?wT[F]:wT[256+(F>>>7)])*2]++);return C.last_lit===C.lit_bufsize-1};
LO=function(C,F){C.msg=SM[F];return F};
Bg=function(C){for(var F=C.length;--F>=0;)C[F]=0};
vg=function(C){var F=C.state,G=F.pending;G>C.avail_out&&(G=C.avail_out);G!==0&&(Ot.arraySet(C.output,F.pending_buf,F.pending_out,G,C.next_out),C.next_out+=G,F.pending_out+=G,C.total_out+=G,C.avail_out-=G,F.pending-=G,F.pending===0&&(F.pending_out=0))};
cg=function(C,F){var G=C.block_start>=0?C.block_start:-1,V=C.strstart-C.block_start,J=0;if(C.level>0){C.strm.data_type===2&&(C.strm.data_type=ETT(C));zuZ(C,C.l_desc);zuZ(C,C.d_desc);QtE(C,C.dyn_ltree,C.l_desc.max_code);QtE(C,C.dyn_dtree,C.d_desc.max_code);zuZ(C,C.bl_desc);for(J=18;J>=3&&C.bl_tree[W5A[J]*2+1]===0;J--);C.opt_len+=3*(J+1)+5+5+4;var b=C.opt_len+3+7>>>3;var z=C.static_len+3+7>>>3;z<=b&&(b=z)}else b=z=V+5;if(V+4<=b&&G!==-1)Zs(C,F?1:0,3),Gtf(C,G,V);else if(C.strategy===4||z===b)Zs(C,2+(F?
1:0),3),upi(C,fO,hn);else{Zs(C,4+(F?1:0),3);G=C.l_desc.max_code+1;V=C.d_desc.max_code+1;J+=1;Zs(C,G-257,5);Zs(C,V-1,5);Zs(C,J-4,4);for(b=0;b<J;b++)Zs(C,C.bl_tree[W5A[b]*2+1],3);Itf(C,C.dyn_ltree,G-1);Itf(C,C.dyn_dtree,V-1);upi(C,C.dyn_ltree,C.dyn_dtree)}jtf(C);F&&F5s(C);C.block_start=C.strstart;vg(C.strm)};
An=function(C,F){C.pending_buf[C.pending++]=F};
eM=function(C,F){C.pending_buf[C.pending++]=F>>>8&255;C.pending_buf[C.pending++]=F&255};
tvs=function(C,F){var G=C.max_chain_length,V=C.strstart,J=C.prev_length,b=C.nice_match,z=C.strstart>C.w_size-262?C.strstart-(C.w_size-262):0,Q=C.window,E=C.w_mask,t=C.prev,k=C.strstart+258,U=Q[V+J-1],H=Q[V+J];C.prev_length>=C.good_match&&(G>>=2);b>C.lookahead&&(b=C.lookahead);do{var l=F;if(Q[l+J]===H&&Q[l+J-1]===U&&Q[l]===Q[V]&&Q[++l]===Q[V+1]){V+=2;for(l++;Q[++V]===Q[++l]&&Q[++V]===Q[++l]&&Q[++V]===Q[++l]&&Q[++V]===Q[++l]&&Q[++V]===Q[++l]&&Q[++V]===Q[++l]&&Q[++V]===Q[++l]&&Q[++V]===Q[++l]&&V<k;);
l=258-(k-V);V=k-258;if(l>J){C.match_start=F;J=l;if(l>=b)break;U=Q[V+J-1];H=Q[V+J]}}}while((F=t[F&E])>z&&--G!==0);return J<=C.lookahead?J:C.lookahead};
xx=function(C){var F=C.w_size,G;do{var V=C.window_size-C.lookahead-C.strstart;if(C.strstart>=F+(F-262)){Ot.arraySet(C.window,C.window,F,F,0);C.match_start-=F;C.strstart-=F;C.block_start-=F;var J=G=C.hash_size;do{var b=C.head[--J];C.head[J]=b>=F?b-F:0}while(--G);J=G=F;do b=C.prev[--J],C.prev[J]=b>=F?b-F:0;while(--G);V+=F}if(C.strm.avail_in===0)break;J=C.strm;G=C.window;b=C.strstart+C.lookahead;var z=J.avail_in;z>V&&(z=V);z===0?G=0:(J.avail_in-=z,Ot.arraySet(G,J.input,J.next_in,z,b),J.state.wrap===
1?J.adler=at9(J.adler,G,z,b):J.state.wrap===2&&(J.adler=dT(J.adler,G,z,b)),J.next_in+=z,J.total_in+=z,G=z);C.lookahead+=G;if(C.lookahead+C.insert>=3)for(V=C.strstart-C.insert,C.ins_h=C.window[V],C.ins_h=(C.ins_h<<C.hash_shift^C.window[V+1])&C.hash_mask;C.insert&&!(C.ins_h=(C.ins_h<<C.hash_shift^C.window[V+3-1])&C.hash_mask,C.prev[V&C.w_mask]=C.head[C.ins_h],C.head[C.ins_h]=V,V++,C.insert--,C.lookahead+C.insert<3););}while(C.lookahead<262&&C.strm.avail_in!==0)};
ktq=function(C,F){for(var G;;){if(C.lookahead<262){xx(C);if(C.lookahead<262&&F===0)return 1;if(C.lookahead===0)break}G=0;C.lookahead>=3&&(C.ins_h=(C.ins_h<<C.hash_shift^C.window[C.strstart+3-1])&C.hash_mask,G=C.prev[C.strstart&C.w_mask]=C.head[C.ins_h],C.head[C.ins_h]=C.strstart);G!==0&&C.strstart-G<=C.w_size-262&&(C.match_length=tvs(C,G));if(C.match_length>=3)if(G=MM(C,C.strstart-C.match_start,C.match_length-3),C.lookahead-=C.match_length,C.match_length<=C.max_lazy_match&&C.lookahead>=3){C.match_length--;
do C.strstart++,C.ins_h=(C.ins_h<<C.hash_shift^C.window[C.strstart+3-1])&C.hash_mask,C.prev[C.strstart&C.w_mask]=C.head[C.ins_h],C.head[C.ins_h]=C.strstart;while(--C.match_length!==0);C.strstart++}else C.strstart+=C.match_length,C.match_length=0,C.ins_h=C.window[C.strstart],C.ins_h=(C.ins_h<<C.hash_shift^C.window[C.strstart+1])&C.hash_mask;else G=MM(C,0,C.window[C.strstart]),C.lookahead--,C.strstart++;if(G&&(cg(C,!1),C.strm.avail_out===0))return 1}C.insert=C.strstart<2?C.strstart:2;return F===4?(cg(C,
!0),C.strm.avail_out===0?3:4):C.last_lit&&(cg(C,!1),C.strm.avail_out===0)?1:2};
st=function(C,F){for(var G,V;;){if(C.lookahead<262){xx(C);if(C.lookahead<262&&F===0)return 1;if(C.lookahead===0)break}G=0;C.lookahead>=3&&(C.ins_h=(C.ins_h<<C.hash_shift^C.window[C.strstart+3-1])&C.hash_mask,G=C.prev[C.strstart&C.w_mask]=C.head[C.ins_h],C.head[C.ins_h]=C.strstart);C.prev_length=C.match_length;C.prev_match=C.match_start;C.match_length=2;G!==0&&C.prev_length<C.max_lazy_match&&C.strstart-G<=C.w_size-262&&(C.match_length=tvs(C,G),C.match_length<=5&&(C.strategy===1||C.match_length===3&&
C.strstart-C.match_start>4096)&&(C.match_length=2));if(C.prev_length>=3&&C.match_length<=C.prev_length){V=C.strstart+C.lookahead-3;G=MM(C,C.strstart-1-C.prev_match,C.prev_length-3);C.lookahead-=C.prev_length-1;C.prev_length-=2;do++C.strstart<=V&&(C.ins_h=(C.ins_h<<C.hash_shift^C.window[C.strstart+3-1])&C.hash_mask,C.prev[C.strstart&C.w_mask]=C.head[C.ins_h],C.head[C.ins_h]=C.strstart);while(--C.prev_length!==0);C.match_available=0;C.match_length=2;C.strstart++;if(G&&(cg(C,!1),C.strm.avail_out===0))return 1}else if(C.match_available){if((G=
MM(C,0,C.window[C.strstart-1]))&&cg(C,!1),C.strstart++,C.lookahead--,C.strm.avail_out===0)return 1}else C.match_available=1,C.strstart++,C.lookahead--}C.match_available&&(MM(C,0,C.window[C.strstart-1]),C.match_available=0);C.insert=C.strstart<2?C.strstart:2;return F===4?(cg(C,!0),C.strm.avail_out===0?3:4):C.last_lit&&(cg(C,!1),C.strm.avail_out===0)?1:2};
UzZ=function(C,F){for(var G,V,J,b=C.window;;){if(C.lookahead<=258){xx(C);if(C.lookahead<=258&&F===0)return 1;if(C.lookahead===0)break}C.match_length=0;if(C.lookahead>=3&&C.strstart>0&&(V=C.strstart-1,G=b[V],G===b[++V]&&G===b[++V]&&G===b[++V])){for(J=C.strstart+258;G===b[++V]&&G===b[++V]&&G===b[++V]&&G===b[++V]&&G===b[++V]&&G===b[++V]&&G===b[++V]&&G===b[++V]&&V<J;);C.match_length=258-(J-V);C.match_length>C.lookahead&&(C.match_length=C.lookahead)}C.match_length>=3?(G=MM(C,1,C.match_length-3),C.lookahead-=
C.match_length,C.strstart+=C.match_length,C.match_length=0):(G=MM(C,0,C.window[C.strstart]),C.lookahead--,C.strstart++);if(G&&(cg(C,!1),C.strm.avail_out===0))return 1}C.insert=0;return F===4?(cg(C,!0),C.strm.avail_out===0?3:4):C.last_lit&&(cg(C,!1),C.strm.avail_out===0)?1:2};
HdZ=function(C,F){for(var G;;){if(C.lookahead===0&&(xx(C),C.lookahead===0)){if(F===0)return 1;break}C.match_length=0;G=MM(C,0,C.window[C.strstart]);C.lookahead--;C.strstart++;if(G&&(cg(C,!1),C.strm.avail_out===0))return 1}C.insert=0;return F===4?(cg(C,!0),C.strm.avail_out===0?3:4):C.last_lit&&(cg(C,!1),C.strm.avail_out===0)?1:2};
qM=function(C,F,G,V,J){this.good_length=C;this.max_lazy=F;this.nice_length=G;this.max_chain=V;this.func=J};
ltE=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 Ot.Buf16(1146);this.dyn_dtree=new Ot.Buf16(122);this.bl_tree=new Ot.Buf16(78);Bg(this.dyn_ltree);Bg(this.dyn_dtree);Bg(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new Ot.Buf16(16);this.heap=new Ot.Buf16(573);Bg(this.heap);this.heap_max=this.heap_len=0;this.depth=new Ot.Buf16(573);Bg(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};
yRA=function(C,F){if(!C||!C.state||F>5||F<0)return C?LO(C,-2):-2;var G=C.state;if(!C.output||!C.input&&C.avail_in!==0||G.status===666&&F!==4)return LO(C,C.avail_out===0?-5:-2);G.strm=C;var V=G.last_flush;G.last_flush=F;if(G.status===42)if(G.wrap===2)C.adler=0,An(G,31),An(G,139),An(G,8),G.gzhead?(An(G,(G.gzhead.text?1:0)+(G.gzhead.hcrc?2:0)+(G.gzhead.extra?4:0)+(G.gzhead.name?8:0)+(G.gzhead.comment?16:0)),An(G,G.gzhead.time&255),An(G,G.gzhead.time>>8&255),An(G,G.gzhead.time>>16&255),An(G,G.gzhead.time>>
24&255),An(G,G.level===9?2:G.strategy>=2||G.level<2?4:0),An(G,G.gzhead.os&255),G.gzhead.extra&&G.gzhead.extra.length&&(An(G,G.gzhead.extra.length&255),An(G,G.gzhead.extra.length>>8&255)),G.gzhead.hcrc&&(C.adler=dT(C.adler,G.pending_buf,G.pending,0)),G.gzindex=0,G.status=69):(An(G,0),An(G,0),An(G,0),An(G,0),An(G,0),An(G,G.level===9?2:G.strategy>=2||G.level<2?4:0),An(G,3),G.status=113);else{var J=8+(G.w_bits-8<<4)<<8;J|=(G.strategy>=2||G.level<2?0:G.level<6?1:G.level===6?2:3)<<6;G.strstart!==0&&(J|=
32);G.status=113;eM(G,J+(31-J%31));G.strstart!==0&&(eM(G,C.adler>>>16),eM(G,C.adler&65535));C.adler=1}if(G.status===69)if(G.gzhead.extra){for(J=G.pending;G.gzindex<(G.gzhead.extra.length&65535)&&(G.pending!==G.pending_buf_size||(G.gzhead.hcrc&&G.pending>J&&(C.adler=dT(C.adler,G.pending_buf,G.pending-J,J)),vg(C),J=G.pending,G.pending!==G.pending_buf_size));)An(G,G.gzhead.extra[G.gzindex]&255),G.gzindex++;G.gzhead.hcrc&&G.pending>J&&(C.adler=dT(C.adler,G.pending_buf,G.pending-J,J));G.gzindex===G.gzhead.extra.length&&
(G.gzindex=0,G.status=73)}else G.status=73;if(G.status===73)if(G.gzhead.name){J=G.pending;do{if(G.pending===G.pending_buf_size&&(G.gzhead.hcrc&&G.pending>J&&(C.adler=dT(C.adler,G.pending_buf,G.pending-J,J)),vg(C),J=G.pending,G.pending===G.pending_buf_size)){var b=1;break}b=G.gzindex<G.gzhead.name.length?G.gzhead.name.charCodeAt(G.gzindex++)&255:0;An(G,b)}while(b!==0);G.gzhead.hcrc&&G.pending>J&&(C.adler=dT(C.adler,G.pending_buf,G.pending-J,J));b===0&&(G.gzindex=0,G.status=91)}else G.status=91;if(G.status===
91)if(G.gzhead.comment){J=G.pending;do{if(G.pending===G.pending_buf_size&&(G.gzhead.hcrc&&G.pending>J&&(C.adler=dT(C.adler,G.pending_buf,G.pending-J,J)),vg(C),J=G.pending,G.pending===G.pending_buf_size)){b=1;break}b=G.gzindex<G.gzhead.comment.length?G.gzhead.comment.charCodeAt(G.gzindex++)&255:0;An(G,b)}while(b!==0);G.gzhead.hcrc&&G.pending>J&&(C.adler=dT(C.adler,G.pending_buf,G.pending-J,J));b===0&&(G.status=103)}else G.status=103;G.status===103&&(G.gzhead.hcrc?(G.pending+2>G.pending_buf_size&&vg(C),
G.pending+2<=G.pending_buf_size&&(An(G,C.adler&255),An(G,C.adler>>8&255),C.adler=0,G.status=113)):G.status=113);if(G.pending!==0){if(vg(C),C.avail_out===0)return G.last_flush=-1,0}else if(C.avail_in===0&&(F<<1)-(F>4?9:0)<=(V<<1)-(V>4?9:0)&&F!==4)return LO(C,-5);if(G.status===666&&C.avail_in!==0)return LO(C,-5);if(C.avail_in!==0||G.lookahead!==0||F!==0&&G.status!==666){V=G.strategy===2?HdZ(G,F):G.strategy===3?UzZ(G,F):Pg[G.level].func(G,F);if(V===3||V===4)G.status=666;if(V===1||V===3)return C.avail_out===
0&&(G.last_flush=-1),0;if(V===2&&(F===1?(Zs(G,2,3),NM(G,256,fO),G.bi_valid===16?(yn(G,G.bi_buf),G.bi_buf=0,G.bi_valid=0):G.bi_valid>=8&&(G.pending_buf[G.pending++]=G.bi_buf&255,G.bi_buf>>=8,G.bi_valid-=8)):F!==5&&(Zs(G,0,3),Gtf(G,0,0),F===3&&(Bg(G.head),G.lookahead===0&&(G.strstart=0,G.block_start=0,G.insert=0))),vg(C),C.avail_out===0))return G.last_flush=-1,0}if(F!==4)return 0;if(G.wrap<=0)return 1;G.wrap===2?(An(G,C.adler&255),An(G,C.adler>>8&255),An(G,C.adler>>16&255),An(G,C.adler>>24&255),An(G,
C.total_in&255),An(G,C.total_in>>8&255),An(G,C.total_in>>16&255),An(G,C.total_in>>24&255)):(eM(G,C.adler>>>16),eM(G,C.adler&65535));vg(C);G.wrap>0&&(G.wrap=-G.wrap);return G.pending!==0?0:1};
ZdI=function(C){if(!(this instanceof ZdI))return new ZdI(C);C=this.options=Ot.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},C||{});C.raw&&C.windowBits>0?C.windowBits=-C.windowBits:C.gzip&&C.windowBits>0&&C.windowBits<16&&(C.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new N7W;this.strm.avail_out=0;var F=this.strm;var G=C.level,V=C.method,J=C.windowBits,b=C.memLevel,z=C.strategy;if(F){var Q=1;G===-1&&(G=6);J<0?(Q=0,J=-J):J>15&&
(Q=2,J-=16);if(b<1||b>9||V!==8||J<8||J>15||G<0||G>9||z<0||z>4)F=LO(F,-2);else{J===8&&(J=9);var E=new ltE;F.state=E;E.strm=F;E.wrap=Q;E.gzhead=null;E.w_bits=J;E.w_size=1<<E.w_bits;E.w_mask=E.w_size-1;E.hash_bits=b+7;E.hash_size=1<<E.hash_bits;E.hash_mask=E.hash_size-1;E.hash_shift=~~((E.hash_bits+3-1)/3);E.window=new Ot.Buf8(E.w_size*2);E.head=new Ot.Buf16(E.hash_size);E.prev=new Ot.Buf16(E.w_size);E.lit_bufsize=1<<b+6;E.pending_buf_size=E.lit_bufsize*4;E.pending_buf=new Ot.Buf8(E.pending_buf_size);
E.d_buf=E.lit_bufsize;E.l_buf=3*E.lit_bufsize;E.level=G;E.strategy=z;E.method=V;if(F&&F.state){F.total_in=F.total_out=0;F.data_type=2;G=F.state;G.pending=0;G.pending_out=0;G.wrap<0&&(G.wrap=-G.wrap);G.status=G.wrap?42:113;F.adler=G.wrap===2?0:1;G.last_flush=0;if(!OdA){V=Array(16);for(b=z=0;b<28;b++)for($zi[b]=z,J=0;J<1<<JRA[b];J++)XT[z++]=b;XT[z-1]=b;for(b=z=0;b<16;b++)for(nTB[b]=z,J=0;J<1<<bdT[b];J++)wT[z++]=b;for(z>>=7;b<30;b++)for(nTB[b]=z<<7,J=0;J<1<<bdT[b]-7;J++)wT[256+z++]=b;for(J=0;J<=15;J++)V[J]=
0;for(J=0;J<=143;)fO[J*2+1]=8,J++,V[8]++;for(;J<=255;)fO[J*2+1]=9,J++,V[9]++;for(;J<=279;)fO[J*2+1]=7,J++,V[7]++;for(;J<=287;)fO[J*2+1]=8,J++,V[8]++;CE5(fO,287,V);for(J=0;J<30;J++)hn[J*2+1]=5,hn[J*2]=mWT(J,5);Xrw=new DWE(fO,JRA,257,286,15);wrW=new DWE(hn,bdT,0,30,15);MvW=new DWE([],S6q,0,19,7);OdA=!0}G.l_desc=new pYo(G.dyn_ltree,Xrw);G.d_desc=new pYo(G.dyn_dtree,wrW);G.bl_desc=new pYo(G.bl_tree,MvW);G.bi_buf=0;G.bi_valid=0;jtf(G);G=0}else G=LO(F,-2);G===0&&(F=F.state,F.window_size=2*F.w_size,Bg(F.head),
F.max_lazy_match=Pg[F.level].max_lazy,F.good_match=Pg[F.level].good_length,F.nice_match=Pg[F.level].nice_length,F.max_chain_length=Pg[F.level].max_chain,F.strstart=0,F.block_start=0,F.lookahead=0,F.insert=0,F.match_length=F.prev_length=2,F.match_available=0,F.ins_h=0);F=G}}else F=-2;if(F!==0)throw Error(SM[F]);C.header&&(F=this.strm)&&F.state&&F.state.wrap===2&&(F.state.gzhead=C.header);if(C.dictionary){var t;typeof C.dictionary==="string"?t=L5W(C.dictionary):B7E.call(C.dictionary)==="[object ArrayBuffer]"?
t=new Uint8Array(C.dictionary):t=C.dictionary;C=this.strm;b=t;z=b.length;if(C&&C.state)if(t=C.state,F=t.wrap,F===2||F===1&&t.status!==42||t.lookahead)F=-2;else{F===1&&(C.adler=at9(C.adler,b,z,0));t.wrap=0;z>=t.w_size&&(F===0&&(Bg(t.head),t.strstart=0,t.block_start=0,t.insert=0),G=new Ot.Buf8(t.w_size),Ot.arraySet(G,b,z-t.w_size,t.w_size,0),b=G,z=t.w_size);G=C.avail_in;V=C.next_in;J=C.input;C.avail_in=z;C.next_in=0;C.input=b;for(xx(t);t.lookahead>=3;){b=t.strstart;z=t.lookahead-2;do t.ins_h=(t.ins_h<<
t.hash_shift^t.window[b+3-1])&t.hash_mask,t.prev[b&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=b,b++;while(--z);t.strstart=b;t.lookahead=2;xx(t)}t.strstart+=t.lookahead;t.block_start=t.strstart;t.insert=t.lookahead;t.lookahead=0;t.match_length=t.prev_length=2;t.match_available=0;C.next_in=V;C.input=J;C.avail_in=G;t.wrap=F;F=0}else F=-2;if(F!==0)throw Error(SM[F]);this._dict_set=!0}};
vTo=function(C,F){F=F||{};F.gzip=!0;F=new ZdI(F);F.push(C,!0);if(F.err)throw F.msg||SM[F.err];return F.result};
huB=function(C,F){var G=fto();G&&G.publish.call(G,C.toString(),C,F)};
xzI=function(C,F,G){var V=fto();if(!V)return 0;var J=V.subscribe(C.toString(),function(b,z){var Q=_.mN("ytPubsub2Pubsub2SkipSubKey");Q&&Q==J||(Q=function(){if(cRE[J])try{if(z&&C instanceof AR5&&C!=b)try{var E=C.dataClass,t=z;if(!t.args||!t.version)throw Error("ad");try{if(!E.version_){var k=new E;E.version_=k.version}var U=E.version_}catch(H){}if(!U||t.version!=U)throw Error("bd");try{z=Reflect.construct(E,_.Po(t.args))}catch(H){throw H.message="yt.pubsub2.Data.deserialize(): "+H.message,H;}}catch(H){throw H.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+C.toString()+": "+H.message,H;}F.call(G||window,z)}catch(H){_.ri(H)}},eui[C.toString()]?_.mN("yt.scheduler.instance")?_.gT.addLowPriorityJob(Q):_.lH(Q,0):Q())});
cRE[J]=!0;dzs[C.toString()]||(dzs[C.toString()]=[]);dzs[C.toString()].push(J);return J};
gTw=function(){var C=stZ,F=xzI(q6Z,function(G){C.apply(void 0,arguments);PE9(F)});
return F};
PE9=function(C){var F=fto();F&&(typeof C==="number"&&(C=[C]),_.F$(C,function(G){F.unsubscribeByKey(G);delete cRE[G]}))};
fto=function(){return _.mN("ytPubsub2Pubsub2Instance")};
Ru9=function(C,F,G){G=G===void 0?{sampleRate:.1}:G;Math.random()<Math.min(.02,G.sampleRate/100)&&huB("meta_logging_csi_event",{timerName:C,timelineData:F})};
_.Y6i=function(C){return C?(C=C.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.GO(C):null:null};
_.Ra=function(C){return C?(C=C.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.LT(C):null:null};
oTT=function(){T7E||(T7E=_.Ra(_.TF("WORKER_SERIALIZATION_URL")));return T7E||void 0};
_.K5q=function(){var C=oTT();rRs||C===void 0||(rRs=UaS(C));return rRs};
_.DzA=function(){return typeof Worker==="function"&&oTT()?!0:!1};
_.jNT=function(){if(_.DzA()&&!prq){var C=function(G){G=G.data;if(G.op==="gzippedGelBatch"){var V=mzE.get(G.key);V&&(CPB(G.gzippedBatch,V.latencyPayload,V.url,V.options,V.sendFn),mzE.delete(G.key))}},F=_.K5q();
F&&(F.addEventListener("message",C),F.onerror=function(){mzE.clear()},prq=!0)}};
b59=function(C,F,G,V,J){J=J===void 0?!1:J;var b={startTime:(0,_.Et)(),ticks:{},infos:{}};if(Yx)try{var z=FmW(F);if(z!=null&&(z>GpE||z<VrW))V(C,G);else{if(_.y("gzip_gel_with_worker")&&(_.y("initial_gzip_use_main_thread")&&!i5S||!_.y("initial_gzip_use_main_thread"))){prq||_.jNT();var Q=_.K5q();if(Q&&!J){mzE.set(Jvo,{latencyPayload:b,url:C,options:G,sendFn:V});Q.postMessage({op:"gelBatchToGzip",serializedBatch:F,key:Jvo});Jvo++;return}}var E=vTo($r5(F));CPB(E,b,C,G,V)}}catch(t){_.CD(t),V(C,G)}else V(C,
G)};
CPB=function(C,F,G,V,J){i5S=!1;var b=(0,_.Et)();F.ticks.gelc=b;Tn++;_.y("disable_compression_due_to_performance_degredation")&&b-F.startTime>=nzE&&(uUf++,_.y("abandon_compression_after_N_slow_zips")?Tn===_.a8("compression_disable_point")&&uUf>zGo&&(Yx=!1):Yx=!1);QNw(F);V.headers||(V.headers={});V.headers["Content-Encoding"]="gzip";V.postBody=C;V.postParams=void 0;J(G,V)};
I5i=function(C){var F=F===void 0?!1:F;var G=G===void 0?!1:G;var V=(0,_.Et)(),J={startTime:V,ticks:{},infos:{}},b=F?_.mN("yt.logging.gzipForFetch",!1):!0;if(Yx&&b){if(!C.body)return C;try{var z=G?C.body:typeof C.body==="string"?C.body:JSON.stringify(C.body);b=z;if(!G&&typeof z==="string"){var Q=FmW(z);if(Q!=null&&(Q>GpE||Q<VrW))return C;G=F?{level:1}:void 0;b=vTo($r5(z),G);var E=(0,_.Et)();J.ticks.gelc=E;if(F){Tn++;if((_.y("disable_compression_due_to_performance_degredation")||_.y("disable_compression_due_to_performance_degradation_lr"))&&
E-V>=nzE)if(uUf++,_.y("abandon_compression_after_N_slow_zips")||_.y("abandon_compression_after_N_slow_zips_lr")){F=uUf/Tn;var t=zGo/_.a8("compression_disable_point");Tn>0&&Tn%_.a8("compression_disable_point")===0&&F>=t&&(Yx=!1)}else Yx=!1;QNw(J)}}C.headers=Object.assign({},{"Content-Encoding":"gzip"},C.headers||{});C.body=b;return C}catch(k){return _.CD(k),C}}else return C};
FmW=function(C){try{return(new Blob(C.split(""))).size}catch(F){return _.CD(F),null}};
QNw=function(C){_.y("gel_compression_csi_killswitch")||!_.y("log_gel_compression_latency")&&!_.y("log_gel_compression_latency_lr")||Ru9("gel_compression",C,{sampleRate:.1})};
Ezs=function(){this.blockSize=-1};
oa=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var C=1;C<this.blockSize;++C)this.pad_[C]=0;this.total_=this.inbuf_=0;this.reset()};
trw=function(C){C=Object.assign({},C);delete C.Authorization;var F=_.WmW();if(F){var G=new oa;G.update(_.TF("INNERTUBE_API_KEY"));G.update(F);C.hash=_.eU(G.digest(),3)}return C};
KO=function(){a5I||(a5I=new _.rT("yt.innertube"));return a5I};
kpf=function(C,F,G,V){if(V)return null;V=KO().get("nextId",!0)||1;var J=KO().get("requests",!0)||{};J[V]={method:C,request:F,authState:trw(G),requestTime:Math.round((0,_.Et)())};KO().set("nextId",V+1,86400,!0);KO().set("requests",J,86400,!0);return V};
UrB=function(C){var F=KO().get("requests",!0)||{};delete F[C];KO().set("requests",F,86400,!0)};
l5q=function(C){var F=KO().get("requests",!0);if(F){for(var G in F){var V=F[G];if(!(Math.round((0,_.Et)())-V.requestTime<6E4)){var J=V.authState,b=trw(_.r4i(!1));_.xf.equals(J,b)&&(J=V.request,"requestTimeMs"in J&&(J.requestTimeMs=Math.round((0,_.Et)())),H5Z(C,V.method,J,{}));delete F[G]}}KO().set("requests",F,86400,!0)}};
yvW=function(C){var F;return(C=C==null?void 0:(F=C.error)==null?void 0:F.code)&&C>=400&&C<=599?!1:!0};
Z5w=function(C){var F;C=C==null?void 0:(F=C.error)==null?void 0:F.code;return!(C!==400&&C!==415)};
O59=function(){if(NkW)return NkW();var C={};NkW=Ia("LogsDatabaseV2",{objectStores:(C.LogsRequestsStore={addedAtVersion:2},C),shared:!1,upgrade:function(F,G,V){G(2)&&Ds(F,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});G(3);G(5)&&(V=V.objectStore("LogsRequestsStore"),V.JSC$10686_wrapped.indexNames.contains("newRequest")&&V.JSC$10686_wrapped.deleteIndex("newRequest"),pO(V,"newRequestV2",["status","interface","timestamp"]));G(7)&&F.JSC$10671_wrapped.objectStoreNames.contains("sapisid")&&F.JSC$10671_wrapped.deleteObjectStore("sapisid");
G(9)&&F.JSC$10671_wrapped.objectStoreNames.contains("SWHealthLog")&&F.JSC$10671_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return NkW()};
mp=function(C){return _.iw(O59(),C)};
wbW=function(C,F){var G,V,J,b;return _.I(function(z){if(z.nextAddress==1)return G={startTime:(0,_.Et)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},z.yield(mp(F),2);if(z.nextAddress!=3)return V=z.yieldResult,J=Object.assign({},C,{options:JSON.parse(JSON.stringify(C.options)),interface:_.TF("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),z.yield(V.put("LogsRequestsStore",J),3);b=z.yieldResult;G.ticks.tc=(0,_.Et)();XbS(G);return z.return(b)})};
Mrf=function(C,F){var G,V,J,b,z,Q,E,t,k;return _.I(function(U){if(U.nextAddress==1)return G={startTime:(0,_.Et)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},U.yield(mp(F),2);if(U.nextAddress!=3)return V=U.yieldResult,J=_.TF("INNERTUBE_CONTEXT_CLIENT_NAME",0),b=[C,J,0],z=[C,J,(0,_.Et)()],Q=IDBKeyRange.bound(b,z),E="prev",_.y("use_fifo_for_networkless")&&(E="next"),t=void 0,k=C==="NEW"?"readwrite":"readonly",_.y("use_readonly_for_get_most_recent_by_status_killswitch")&&(k="readwrite"),
U.yield(_.Jn(V,["LogsRequestsStore"],{mode:k,enableRetries:!0},function(H){return _.Wg(H.objectStore("LogsRequestsStore").index("newRequestV2"),{query:Q,direction:E},function(l){l.getValue()&&(t=l.getValue(),C==="NEW"&&(t.status="QUEUED",l.update(t)))})}),3);
G.ticks.tc=(0,_.Et)();XbS(G);return U.return(t)})};
SAA=function(C,F){var G;return _.I(function(V){if(V.nextAddress==1)return V.yield(mp(F),2);G=V.yieldResult;return V.return(_.Jn(G,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(J){var b=J.objectStore("LogsRequestsStore");return b.get(C).then(function(z){if(z)return z.status="QUEUED",b.put(z).then(function(){return z})})}))})};
Lm5=function(C,F,G,V){G=G===void 0?!0:G;var J;return _.I(function(b){if(b.nextAddress==1)return b.yield(mp(F),2);J=b.yieldResult;return b.return(_.Jn(J,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(z){var Q=z.objectStore("LogsRequestsStore");return Q.get(C).then(function(E){return E?(E.status="NEW",G&&(E.sendCount+=1),V!==void 0&&(E.options.compress=V),Q.put(E).then(function(){return E})):pD.resolve(void 0)})}))})};
BkB=function(C,F){var G;return _.I(function(V){if(V.nextAddress==1)return V.yield(mp(F),2);G=V.yieldResult;return V.return(G.delete("LogsRequestsStore",C))})};
vzZ=function(C){var F,G;return _.I(function(V){if(V.nextAddress==1)return V.yield(mp(C),2);F=V.yieldResult;G=(0,_.Et)()-2592E6;return V.yield(_.Jn(F,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(J){return bw(J.objectStore("LogsRequestsStore"),{},function(b){if(b.getValue().timestamp<=G)return b.delete().then(function(){return b.continue()})})}),0)})};
f5Z=function(){_.I(function(C){return C.yield(y4i("LogsDatabaseV2"),0)})};
XbS=function(C){_.y("nwl_csi_killswitch")||Ru9("networkless_performance",C,{sampleRate:1})};
_.cvS=function(C){return _.iw(hGB(),C)};
AvT=function(C){var F,G;_.I(function(V){if(V.nextAddress==1)return V.yield(_.cvS(C),2);F=V.yieldResult;G=(0,_.Et)()-2592E6;return V.yield(_.Jn(F,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(J){return bw(J.objectStore("SWHealthLog"),{},function(b){if(b.getValue().timestamp<=G)return b.delete().then(function(){return b.continue()})})}),0)})};
eGZ=function(C){var F;return _.I(function(G){if(G.nextAddress==1)return G.yield(_.cvS(C),2);F=G.yieldResult;return G.yield(F.clear("SWHealthLog"),0)})};
_.C1=function(C,F,G,V,J,b,z){J=J===void 0?"":J;b=b===void 0?!1:b;z=z===void 0?!1:z;if(C)if(G&&!o8("cobalt"))_.CD(new _.Ay("Legacy referrer-scrubbed ping detected")),C&&dr5(C,void 0,{scrubReferrer:!0});else if(J)zRi(C,F,"POST",J,V);else if(_.TF("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||V||z)zRi(C,F,"GET","",V,void 0,b,z);else{b:{try{c:{var Q=new xr9({url:C});if(Q.urlParamValues_.dsh==="1")var E=null;else{var t=Q.urlParamValues_.ae;if(t==="1"){var k=Q.urlParamValues_.adurl;if(k)try{E={version:3,directUrl:decodeURIComponent(k),
asyncUrl:sDs(Q.JSC$9475_url_,"act=1","ri=1",sNo(Q))};break c}catch(N){}}E=t==="2"?{version:4,directUrl:sDs(Q.JSC$9475_url_,"dct=1","suid="+Q.suid_,"ri=1"),asyncUrl:sDs(Q.JSC$9475_url_,"act=1","ri=1","suid="+Q.suid_)}:null}}if(E){var U=_.X$(C);var H=!(!U||!U.endsWith("/aclk")||_.Da(C,"ri")!=="1");break b}}catch(N){}H=!1}if(H){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(C,"")){var l=!0;break b}}catch(N){}l=!1}l?(F&&F(),G=!0):G=!1}else G=!1;G||dr5(C,F)}};
dr5=function(C,F,G){G=G===void 0?{}:G;var V=new Image,J=""+qA9++;PPA[J]=V;V.onload=V.onerror=function(){F&&PPA[J]&&F();delete PPA[J]};
G.scrubReferrer&&(V.referrerPolicy="no-referrer");V.src=C};
jQ=function(C,F){gz5(C,F==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
RGq=function(C){var F;return((F=document.featurePolicy)==null?0:F.allowedFeatures().includes("attribution-reporting"))?C+"&nis=6":C+"&nis=5"};
YAA=function(C){if(!C)return!1;try{var F;if(((F=_.GN(C))==null?void 0:F.asm)==="4")return!0}catch(G){_.ri(G)}return!1};
gz5=function(C,F){F?(C=RGq(C),_.C1(C,void 0,void 0,void 0,"",!0,!0)):_.C1(C)};
oz5=function(){TkB||(TkB=new _.rT("yt.offline"));return TkB};
rvS=function(C){if(_.y("offline_error_handling")){var F=oz5().get("errors",!0)||{};F[C.message]={name:C.name,stack:C.stack};C.level&&(F[C.message].level=C.level);oz5().set("errors",F,2592E3,!0)}};
Dro=function(C,F,G,V){V=V===void 0?!1:V;F=_.y("web_fp_via_jspb")?Object.assign({},F):F;_.y("use_cfr_monitor")&&KmA(C,F);if(_.y("use_request_time_ms_header"))F.headers&&uH(C)&&(F.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Et)())));else{var J;if((J=F.postParams)==null?0:J.requestTimeMs)F.postParams.requestTimeMs=Math.round((0,_.Et)())}G&&Object.keys(F).length===0?_.C1(C):F.compress?F.postBody?(typeof F.postBody!=="string"&&(F.postBody=JSON.stringify(F.postBody)),b59(C,F.postBody,
F,_.wj,V)):b59(C,JSON.stringify(F.postParams),F,WyT,V):_.wj(C,F)};
pb5=function(C,F){_.y("use_event_time_ms_header")&&uH(C)&&(F.headers||(F.headers={}),F.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.Et)())));return F};
_.Caq=function(){mrT||(mrT=new _.FP({logOfflineErrors:!0,enablePolling:!0}));return mrT};
KmA=function(C,F){var G=F.onError?F.onError:function(){};
F.onError=function(J,b){Gf().requestComplete(C,!1);G(J,b)};
var V=F.onSuccess?F.onSuccess:function(){};
F.onSuccess=function(J,b){Gf().requestComplete(C,!0);V(J,b)}};
_.jPw=function(){return _.bH(document.location.toString())!=="www.youtube-nocookie.com"};
_.VRT=function(){return _.mN("ytNetworklessLoggingInitializationOptions")?_.Fr5.isNwlInitialized:_.GSB};
iyf=function(C,F){if(_.y("polymer_on_demand_shady_dom")){var G;var V=(G=C.__shady_native_firstElementChild)!=null?G:C.firstElementChild}else V=C.firstElementChild;for(;V;){if(C=F(V)?V:iyf(V,F))return C;V=V.nextElementSibling}return null};
$DA=function(){var C=document;if("visibilityState"in C)return C.visibilityState;var F=JCS+"VisibilityState";if(F in C)return C[F]};
_.byo=function(C,F){var G;V2(C,function(V){G=F[V];return!!G});
return G};
_.J5=function(C){var F=neW(C);F?F.focus(void 0):_.iS(C)};
neW=function(C){return(C=iyf(C,function(F){return _.$w(F)?u1I(F)&&!!F.offsetParent:!1}))?C:null};
_.iS=function(C,F){C.hasAttribute("tabindex")||C.setAttribute("tabindex","-1");C.focus(F)};
ztZ=function(C,F,G,V){V=V===void 0?{}:V;C.addEventListener&&(F!="mouseenter"||"onmouseenter"in document?F!="mouseleave"||"onmouseenter"in document?F=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(F="MozMousePixelScroll"):F="mouseout":F="mouseover");return _.xf.findKey(bS,function(J){var b=typeof J[4]==="boolean"&&J[4]==!!V,z=_.TE(J[4])&&_.TE(V)&&_.xf.equals(J[4],V);return!!J.length&&J[0]==C&&J[1]==F&&J[2]==G&&(b||z)})};
_.uS=function(C,F,G,V){V=V===void 0?{}:V;if(!C||!C.addEventListener&&!C.attachEvent)return"";var J=ztZ(C,F,G,V);if(J)return J;J=++QPW.count+"";var b=!(F!="mouseenter"&&F!="mouseleave"||!C.addEventListener||"onmouseenter"in document);var z=b?function(Q){Q=new n1(Q);if(!_.Yf(Q.relatedTarget,function(E){return E==C},!0))return Q.currentTarget=C,Q.type=F,G.call(C,Q)}:function(Q){Q=new n1(Q);
Q.currentTarget=C;return G.call(C,Q)};
z=_.pW(z);C.addEventListener?(F=="mouseenter"&&b?F="mouseover":F=="mouseleave"&&b?F="mouseout":F=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(F="MozMousePixelScroll"),IDS()||typeof V==="boolean"?C.addEventListener(F,z,V):C.addEventListener(F,z,!!V.capture)):C.attachEvent("on"+F,z);bS[J]=[C,F,G,z,V];return J};
_.WrS=function(C,F,G){var V=V===void 0?{}:V;var J=_.uS(C,F,function(){_.Ees(J);G.apply(C,arguments)},V)};
_.Ees=function(C){C&&(typeof C=="string"&&(C=[C]),_.F$(C,function(F){if(F in bS){var G=bS[F],V=G[0],J=G[1],b=G[3];G=G[4];V.removeEventListener?IDS()||typeof G==="boolean"?V.removeEventListener(J,b,G):V.removeEventListener(J,b,!!G.capture):V.detachEvent&&V.detachEvent("on"+J,b);delete bS[F]}}))};
zf=function(C){this.callback_=C;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(C=0;C<4;C++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.uS(window,"mousemove",(0,_.ck)(this.onMouseMove_,this));this.timerId_=_.Z9((0,_.ck)(this.checkPosition_,this),25)};
kST=function(){var C={};var F=C.preferMobileEvents===void 0?!1:C.preferMobileEvents;C=C.enableScrollEventListener===void 0?!0:C.enableScrollEventListener;if(_.mN("_lact",window)==null){var G=parseInt(_.TF("LACT"),10);G=isFinite(G)?Date.now()-Math.max(G,0):-1;_.zn("_lact",G,window);_.zn("_fact",G,window);G==-1&&_.Q2();tRE(window,F,C);new zf(function(){aDq("mouse",100)})}};
tRE=function(C,F,G){F=F===void 0?!1:F;G=G===void 0?!0:G;_.uS(C.document,"keydown",_.Q2);_.uS(C.document,"keyup",_.Q2);_.uS(C.document,"mousedown",_.Q2);_.uS(C.document,"mouseup",_.Q2);F?_.uS(C,"touchmove",function(){aDq("touchmove",200)},{passive:!0}):(_.uS(C,"resize",function(){aDq("resize",200)}),G&&_.uS(C,"scroll",function(){aDq("scroll",200)}));
_.uS(C.document,"touchstart",_.Q2,{passive:!0});_.uS(C.document,"touchend",_.Q2,{passive:!0})};
aDq=function(C,F){UDi[C]||(UDi[C]=!0,_.gT.addLowPriorityJob(function(){_.Q2();UDi[C]=!1},F))};
_.Q2=function(){_.mN("_lact",window)==null&&kST();var C=Date.now();_.zn("_lact",C,window);_.mN("_fact",window)==-1&&_.zn("_fact",C,window);(C=_.mN("ytglobal.ytUtilActivityCallback_"))&&C()};
_.I1=function(){var C=_.mN("_lact",window);return C==null?-1:Math.max(Date.now()-C,0)};
_.a1=function(C,F,G){var V=_.E1();if(V&&F){var J=V.subscribe(C,function(){var b=arguments,z=function(){W8[J]&&F.apply&&typeof F.apply=="function"&&F.apply(G||window,b)};
try{_.Hyq[C]?z():_.lH(z,0)}catch(Q){_.ri(Q)}},G);
W8[J]=!0;t5[C]||(t5[C]=[]);t5[C].push(J);return J}return 0};
_.lDZ=function(C){var F=_.E1();F&&(typeof C==="number"?C=[C]:typeof C==="string"&&(C=[parseInt(C,10)]),_.F$(C,function(G){F.unsubscribeByKey(G);delete W8[G]}))};
_.yCS=function(C,F){var G=_.E1();G&&G.publish.apply(G,arguments)};
_.NQs=function(C){var F=_.E1();if(F)if(F.clear(C),C)ZyW(C);else for(var G in t5)ZyW(G)};
_.E1=function(){return _.VT.ytPubsubPubsubInstance};
ZyW=function(C){t5[C]&&(C=t5[C],_.F$(C,function(F){W8[F]&&delete W8[F]}),C.length=0)};
Oyo=function(){var C,F;return"h5vcc"in U1&&((C=U1.h5vcc.traceEvent)==null?0:C.traceBegin)&&((F=U1.h5vcc.traceEvent)==null?0:F.traceEnd)?1:"performance"in U1&&U1.performance.mark&&U1.performance.measure?2:0};
X65=function(C){var F=Oyo();switch(F){case 1:U1.h5vcc.traceEvent.traceBegin("YTLR",C);break;case 2:U1.performance.mark(C+"-start");break;case 0:break;default:_.r2(F,"unknown trace type")}};
w69=function(C){var F=Oyo();switch(F){case 1:U1.h5vcc.traceEvent.traceEnd("YTLR",C);break;case 2:F=C+"-start";var G=C+"-end";U1.performance.mark(G);U1.performance.measure(C,F,G);break;case 0:break;default:_.r2(F,"unknown trace type")}};
MR9=function(C){var F,G;(G=(F=window).onerror)==null||G.call(F,C.message,"",0,0,C)};
S9E=function(C){if(_.y("web_lifecycle_error_handling_killswitch"))return C();try{return C()}catch(F){MR9(F)}};
LrA=function(C){return[C.auth===void 0?"undefined":C.auth,C.isJspb===void 0?"undefined":C.isJspb,C.cttAuthInfo===void 0?"undefined":C.cttAuthInfo,C.tier===void 0?"undefined":C.tier].join("/")};
_.Z=function(C,F){if(C)return C[F.name]};
lS=function(){var C=_.mN("yt.logging.ims");C||(C=new H8,_.zn("yt.logging.ims",C));return C};
xDo=function(C,F){if(C.endpoint==="log_event"){BQB(C);var G=vef(C),V=fDB(C.payload)||"",J=hts(V),b=200;if(J){if(J.enabled===!1&&!_.y("web_payload_policy_disabled_killswitch"))return;b=cCW(J.tier);if(b===400){ACq(C,F);return}}y2[G]=!0;G={cttAuthInfo:G,isJspb:!1,tier:b};lS().storePayload(G,C.payload);eti(F,!1,G,dDE(V))}};
q9A=function(C,F,G){if(F.endpoint==="log_event"){BQB(void 0,F);var V=vef(F,!0),J=hts(C),b=200;if(J){if(J.enabled===!1&&!_.y("web_payload_policy_disabled_killswitch"))return;b=cCW(J.tier);if(b===400){sPi(C,F,G);return}}y2[V]=!0;V={cttAuthInfo:V,isJspb:!0,tier:b};lS().storePayload(V,x_(F.payload));eti(G,!0,V,dDE(C))}};
eti=function(C,F,G,V){F=F===void 0?!1:F;V=V===void 0?!1:V;C&&(ZU=new C);C=_.a8("tvhtml5_logging_max_batch_ads_fork")||_.a8("tvhtml5_logging_max_batch")||_.a8("web_logging_max_batch")||100;var J=(0,_.Et)(),b=PaZ(F,G.tier),z=b.lastDebounceQueueFromLogTimeMs;V&&(b.useVideoStatsEndPoint=!0);V=0;G&&(V=lS().getSequenceCount(G));var Q=function(){geS({writeThenSend:!0},F,G.tier)};
V>=1E3?Q():V>=C?RtS||(RtS=Y9W(function(){Q();RtS=void 0},0)):J-z>=10&&(TQ5(F,G.tier),b.lastDebounceQueueFromLogTimeMs=J)};
ACq=function(C,F){if(C.endpoint==="log_event"){_.y("more_accurate_gel_parser")&&lS().storePayload({isJspb:!1},C.payload);BQB(C);var G=vef(C),V=new Map;V.set(G,[C.payload]);var J=fDB(C.payload)||"";F&&(ZU=new F);return new _.N1(function(b,z){ZU&&ZU.isReady()?oe9(V,ZU,b,z,{bypassNetworkless:!0},!0,dDE(J)):b()})}};
sPi=function(C,F,G){if(F.endpoint==="log_event"){BQB(void 0,F);var V=vef(F,!0),J=new Map;J.set(V,[x_(F.payload)]);G&&(ZU=new G);return new _.N1(function(b){ZU&&ZU.isReady()?rCW(J,ZU,b,{bypassNetworkless:!0},!0,dDE(C)):b()})}};
vef=function(C,F){var G="";if(C.dangerousLogToVisitorSession)G="visitorOnlyApprovedKey";else if(C.cttAuthInfo){if(F===void 0?0:F){F=C.cttAuthInfo.token;G=C.cttAuthInfo;var V=new KrE;G.videoId?V.setVideoId(G.videoId):G.playlistId&&O1(V,2,DDo,N3(G.playlistId));p65[F]=V}else F=C.cttAuthInfo,G={},F.videoId?G.videoId=F.videoId:F.playlistId&&(G.playlistId=F.playlistId),mDS[C.cttAuthInfo.token]=G;G=C.cttAuthInfo.token}return G};
geS=function(C,F,G){C=C===void 0?{}:C;F=F===void 0?!1:F;new _.N1(function(V,J){var b=PaZ(F,G),z=b.useVideoStatsEndPoint;b.useVideoStatsEndPoint=!1;C5I(b.queueTimer);C5I(b.queueMaxTimer);b.queueMaxTimer=0;ZU&&ZU.isReady()?G===void 0&&_.y("enable_web_tiered_gel")?jeZ(V,J,C,F,300,z):jeZ(V,J,C,F,G,z):(TQ5(F,G),V())})};
jeZ=function(C,F,G,V,J,b){var z=ZU;G=G===void 0?{}:G;V=V===void 0?!1:V;J=J===void 0?200:J;b=b===void 0?!1:b;var Q=new Map,E=new Map,t={isJspb:V,cttAuthInfo:void 0,tier:J},k={isJspb:V,cttAuthInfo:void 0};if(V){F=_.u(Object.keys(y2));for(J=F.next();!J.done;J=F.next())J=J.value,E=_.y("enable_web_tiered_gel")?lS().smartExtractMatchingEntries({keys:[t,k],sizeLimit:1E3}):lS().extractMatchingEntries({isJspb:!0,cttAuthInfo:J}),E.length>0&&Q.set(J,E),(_.y("web_fp_via_jspb_and_json")&&G.writeThenSend||!_.y("web_fp_via_jspb_and_json"))&&
delete y2[J];rCW(Q,z,C,G,!1,b)}else{Q=_.u(Object.keys(y2));for(t=Q.next();!t.done;t=Q.next())t=t.value,k=_.y("enable_web_tiered_gel")?lS().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:t,tier:J},{isJspb:!1,cttAuthInfo:t}],sizeLimit:1E3}):lS().extractMatchingEntries({isJspb:!1,cttAuthInfo:t}),k.length>0&&E.set(t,k),(_.y("web_fp_via_jspb_and_json")&&G.writeThenSend||!_.y("web_fp_via_jspb_and_json"))&&delete y2[t];oe9(E,z,C,F,G,!1,b)}};
TQ5=function(C,F){C=C===void 0?!1:C;F=F===void 0?200:F;var G=function(){geS({writeThenSend:!0},C,F)},V=PaZ(C,F),J=V===F2o||V===Gbs?5E3:Vnf;
_.y("web_gel_timeout_cap")&&!V.queueMaxTimer&&(J=Y9W(function(){G()},J),V.queueMaxTimer=J);
C5I(V.queueTimer);J=_.TF("LOGGING_BATCH_TIMEOUT",_.a8("web_gel_debounce_ms",1E4));_.y("shorten_initial_gel_batch_timeout")&&iZZ&&(J=JMi);J=Y9W(function(){_.a8("gel_min_batch_size")>0?lS().getSequenceCount({cttAuthInfo:void 0,isJspb:C,tier:F})>=$GA&&G():G()},J);
V.queueTimer=J};
oe9=function(C,F,G,V,J,b,z){J=J===void 0?{}:J;var Q=Math.round((0,_.Et)()),E=C.size,t=bZB(z);C=_.u(C);var k=C.next();for(z={};!k.done;z={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},k=C.next()){var U=_.u(k.value);k=U.next().value;U=U.next().value;z.batchRequest=_.xf.unsafeClone({context:_.xWf(F.config_||_.tn())});if(!_.gI(U)&&!_.y("throw_err_when_logevent_malformed_killswitch")){V();break}z.batchRequest.events=U;
(U=mDS[k])&&nJs(z.batchRequest,k,U);delete mDS[k];z.dangerousLogToVisitorSession=k==="visitorOnlyApprovedKey";uXE(z.batchRequest,Q,z.dangerousLogToVisitorSession);zIf(J);z.onSuccess$jscomp$3=function(H){_.y("start_client_gcf")&&_.gT.addLowPriorityJob(function(){return _.I(function(l){return l.yield(Qef(H),0)})});
E--;E||G()};
z.networkFailures=0;z.onError$jscomp$5=function(H){return function(){H.networkFailures++;if(J.bypassNetworkless&&H.networkFailures===1)try{H5Z(F,t,H.batchRequest,IHs({writeThenSend:!0},H.dangerousLogToVisitorSession,H.onSuccess$jscomp$3,H.onError$jscomp$5,b)),iZZ=!1}catch(l){_.ri(l),V()}E--;E||G()}}(z);
try{H5Z(F,t,z.batchRequest,IHs(J,z.dangerousLogToVisitorSession,z.onSuccess$jscomp$3,z.onError$jscomp$5,b)),iZZ=!1}catch(H){_.ri(H),V()}}};
rCW=function(C,F,G,V,J,b){V=V===void 0?{}:V;var z=Math.round((0,_.Et)()),Q={value:C.size},E=new Map([].concat(_.da(C)));E=_.u(E);for(var t=E.next();!t.done;t=E.next()){var k=_.u(t.value).next().value,U=C.get(k);t=new EJ5;var H=F.config_||_.tn(),l=new XP,N=new W2B;_.fA(N,1,H.innertubeContextHostLanguage);_.fA(N,2,H.innertubeContextGeoLocation);_.kx(N,16,H.innertubeContextClientNameFieldNumber);_.fA(N,17,H.innertubeContextClientVersion);if(H.innertubeContextClientConfigInfo){var S=H.innertubeContextClientConfigInfo,
f=new Hg;S.coldConfigData&&_.fA(f,1,S.coldConfigData);S.appInstallData&&_.fA(f,6,S.appInstallData);S.coldHashData&&_.fA(f,3,S.coldHashData);S.hotHashData&&f.setHotHashData(S.hotHashData);_.OL(N,62,f)}(S=_.VT.devicePixelRatio)&&S!=1&&_.Ut(N,65,_.KP(S));S=FyS();S!==""&&_.fA(N,54,S);S=GUA();if(S.length>0){f=new tnI;for(var c=0;c<S.length;c++){var A=new wD;A.setKey(S[c].key);O1(A,2,aHq,N3(S[c].value));M1(f,15,wD,A)}_.OL(l,5,f)}fbB(H,N);hO9(l);c4q(N);A4Z(H,N);eOI(N);_.y("start_client_gcf")&&dW5(N);_.TF("DELEGATED_SESSION_ID")&&
!_.y("pageid_as_header_web")&&(H=new SQ,_.fA(H,3,_.TF("DELEGATED_SESSION_ID")));!_.y("fill_delegate_context_in_gel_killswitch")&&(S=_.TF("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(f=_.aa(l,SQ,3)||new SQ,H=l,S=_.fA(f,18,S),_.OL(H,3,S));H=N;S=_.u(Object.entries(_.GN(_.TF("DEVICE",""))));for(f=S.next();!f.done;f=S.next())c=_.u(f.value),f=c.next().value,c=c.next().value,f==="cbrand"?_.fA(H,12,c):f==="cmodel"?_.fA(H,13,c):f==="cbr"?_.fA(H,87,c):f==="cbrver"?_.fA(H,88,c):f==="cos"?_.fA(H,18,
c):f==="cosver"?_.fA(H,19,c):f==="cplatform"&&_.kx(H,42,vBi(c));l.setClient(N);_.OL(t,1,l);if(N=p65[k])a:{if(_.wG(N,L1(N,DDo,1)))l=1;else if(N.getPlaylistId())l=2;else break a;_.OL(t,4,N);N=t.getContext()||new XP;H=_.aa(N,SQ,3)||new SQ;S=new B8;S.setToken(k);_.kx(S,1,l);M1(H,12,B8,S);_.OL(N,3,H)}delete p65[k];k=k==="visitorOnlyApprovedKey";kb9()||_.f1(t,2,z);!k&&(l=_.TF("EVENT_ID"))&&(N=UGw(),H=new HZS,_.fA(H,1,l),_.f1(H,2,N),_.OL(t,5,H));zIf(V);if(_.y("jspb_serialize_with_worker")&&(l=_.K5q())&&
V.writeThenSend){_.lHS.set(yMW,{client:F,resolve:G,networklessOptions:V,isIsolated:J,useVSSEndpoint:b,dangerousLogToVisitorSession:k,requestsOutstanding:Q});l.postMessage({op:"gelBatchToSerialize",batchRequest:x_(t),clientEvents:U,key:yMW});yMW++;break}if(U){l=[];for(N=0;N<U.length;N++)try{l.push(new h5(U[N]))}catch(T){_.ri(new _.Ay("Transport failed to deserialize "+String(U[N])))}U=l}else U=[];U=_.u(U);for(l=U.next();!l.done;l=U.next())M1(t,3,h5,l.value);U={startTime:(0,_.Et)(),ticks:{},infos:{}};
t=t.serialize();U.ticks.geljspc=(0,_.Et)();_.y("log_jspb_serialize_latency")&&Ru9("gel_jspb_serialize",U,{sampleRate:.1});_.ZZI(t,F,G,V,J,b,k,Q)}};
_.ZZI=function(C,F,G,V,J,b,z,Q){V=V===void 0?{}:V;Q=Q===void 0?{value:0}:Q;b=bZB(b);V=IHs(V,z,function(E){_.y("start_client_gcf")&&_.gT.addLowPriorityJob(function(){return _.I(function(t){return t.yield(Qef(E),0)})});
Q.value--;Q.value||G()},function(){Q.value--;
Q.value||G()},J);
V.headers["Content-Type"]="application/json+protobuf";V.postBodyFormat="JSPB";V.postBody=C;H5Z(F,b,"",V);iZZ=!1};
zIf=function(C){_.y("always_send_and_write")&&(C.writeThenSend=!1)};
IHs=function(C,F,G,V,J){C={retry:!0,onSuccess:G,onError:V,networklessOptions:C,dangerousLogToVisitorSession:F,bypassMonitoring:!!J,headers:{},postBodyFormat:"",postBody:"",compress:_.y("compress_gel")||_.y("compress_gel_lr")};kb9()&&(C.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Et)())));return C};
uXE=function(C,F,G){kb9()||(C.requestTimeMs=String(F));_.y("unsplit_gel_payloads_in_logs")&&(C.unsplitGelPayloadsInLogs=!0);!G&&(F=_.TF("EVENT_ID"))&&(G=UGw(),C.serializedClientEventId={serializedEventId:F,clientCounter:String(G)})};
UGw=function(){var C=_.TF("BATCH_CLIENT_COUNTER")||0;C||(C=Math.floor(Math.random()*65535/2));C++;C>65535&&(C=1);_.Yn("BATCH_CLIENT_COUNTER",C);return C};
nJs=function(C,F,G){if(G.videoId)var V="VIDEO";else if(G.playlistId)V="PLAYLIST";else return;C.credentialTransferTokenTargetId=G;C.context=C.context||{};C.context.user=C.context.user||{};C.context.user.credentialTransferTokens=[{token:F,scope:V}]};
BQB=function(C,F){var G=_.kU("il_payload_scraping")==="enable_il_payload_scraping";if(!_.mN("yt.logging.transport.enableScrapingForTest"))if(G)NEI=[],_.zn("yt.logging.transport.enableScrapingForTest",!0),_.zn("yt.logging.transport.scrapedPayloadsForTesting",NEI),_.zn("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.zn("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.zn("yt.logging.transport.scrapeClientEvent",!0);else return;G=_.mN("yt.logging.transport.scrapedPayloadsForTesting");var V=_.mN("yt.logging.transport.payloadToScrape");F&&(F=_.mN("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(F.payload)())&&G.push(F);F=_.mN("yt.logging.transport.scrapeClientEvent");if(V&&V.length>=1)for(var J=0;J<V.length;J++)if(C&&C.payload[V[J]])if(F)G.push(C.payload);else{var b=void 0;G.push(((b=C)==null?void 0:b.payload)[V[J]])}_.zn("yt.logging.transport.scrapedPayloadsForTesting",
G)};
kb9=function(){return _.y("use_request_time_ms_header")||_.y("lr_use_request_time_ms_header")};
Y9W=function(C,F){return _.y("transport_use_scheduler")===!1?_.lH(C,F):_.y("logging_avoid_blocking_during_navigation")||_.y("lr_logging_avoid_blocking_during_navigation")?_.c8(_.gT,function(){if(_.OZT().currentState==="none")C();else{var G={};_.OZT().install((G.none={callback:C},G))}},F):_.c8(_.gT,C,F)};
C5I=function(C){_.y("transport_use_scheduler")?_.gT.cancelJob(C):_.Ow(C)};
Qef=function(C){var F,G,V,J,b,z,Q,E,t,k;return _.I(function(U){return U.nextAddress==1?(V=(F=C)==null?void 0:(G=F.responseContext)==null?void 0:G.globalConfigGroup,J=_.Z(V,XBB),z=(b=V)==null?void 0:b.hotHashData,Q=_.Z(V,wBZ),t=(E=V)==null?void 0:E.coldHashData,(k=_.I8().resolve(_.Qt(A5)))?z?J?U.yield(MnS(k,z,J),2):U.yield(MnS(k,z),2):U.jumpTo(2):U.return()):t?Q?U.yield(S4w(k,t,Q),0):U.yield(S4w(k,t),0):U.jumpTo(0)})};
PaZ=function(C,F){F=F===void 0?200:F;return C?F===300?F2o:L25:F===300?Gbs:BEE};
hts=function(C){if(_.y("enable_web_tiered_gel")){C=vJw[C||""];var F,G,V,J=_.I8().resolve(_.Qt(A5))==null?void 0:(F=eQ())==null?void 0:(G=F.loggingHotConfig)==null?void 0:(V=G.eventLoggingConfig)==null?void 0:V.payloadPolicies;if(J)for(F=0;F<J.length;F++)if(J[F].payloadNumber===C)return J[F]}};
fDB=function(C){C=Object.keys(C);C=_.u(C);for(var F=C.next();!F.done;F=C.next())if(F=F.value,vJw[F])return F};
cCW=function(C){switch(C){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}};
dDE=function(C){return C==="gelDebuggingEvent"};
bZB=function(C){return(C===void 0?0:C)&&_.y("vss_through_gel_video_stats")?"video_stats":"log_event"};
xw=function(C,F,G,V){V=V===void 0?{}:V;var J={},b=Math.round(V.timestamp||(0,_.Et)());J.eventTimeMs=b<Number.MAX_SAFE_INTEGER?b:0;J[C]=F;C=_.I1();J.context={lastActivityMs:String(V.timestamp||!isFinite(C)?-1:C)};V.sequenceGroup&&!_.y("web_gel_sequence_info_killswitch")&&(C=J.context,F=V.sequenceGroup,F={index:fHE(F),groupKey:F},C.sequence=F,V.endOfSequence&&delete dD[V.sequenceGroup]);_.y("web_tag_automated_log_events")&&(J.context.automatedLogEventSource=V.automatedLogEventSource);(V.sendIsolatedPayload?
ACq:xDo)({endpoint:"log_event",payload:J,cttAuthInfo:V.cttAuthInfo,dangerousLogToVisitorSession:V.dangerousLogToVisitorSession},G)};
fHE=function(C){dD[C]=C in dD?dD[C]+1:0;return dD[C]};
_.q1=function(C,F,G){G=G===void 0?{}:G;var V=s1;_.oD("ytLoggingEventsDefaultDisabled",!1)&&s1===s1&&(V=null);xw(C,F,V,G)};
_.P8=function(){if(_.y("web_fp_via_jspb")){var C=!0;C=C===void 0?!1:C;var F=hIZ;hIZ=[];if(F){F=_.u(F);for(var G=F.next();!G.done;G=F.next())G=G.value,C?xw(G.payloadName,G.payload,s1,G.options):_.q1(G.payloadName,G.payload,G.options)}geS(void 0,!0);if(!_.y("web_fp_via_jspb_and_json"))return}geS(void 0,!1)};
cMA=function(C,F){var G;if((G=F)==null?0:G.componentStack)return F;if(C=C.componentStack)F||(F={}),F.componentStack=C;return F};
AMZ=function(){_.F$(_.TF("ERRORS")||[],function(C){_.gD.apply(null,C)});
_.Yn("ERRORS",[])};
_.R1=function(C){_.gD(C)};
_.Yw=function(C){_.gD(C,"WARNING")};
eI9=function(C){C instanceof Error?_.gD(C):(C=_.TE(C)?JSON.stringify(C):String(C),C=new _.Ay(C),C.name="RejectedPromiseError",_.Yw(C))};
dG9=function(C,F,G,V,J,b){F=F===void 0?"Unknown file":F;G=G===void 0?0:G;var z=!1,Q=hQZ("log_window_onerror_fraction");if(Q&&Math.random()<Q)z=!0;else{Q=document.getElementsByTagName("script");for(var E=0,t=Q.length;E<t;E++)if(Q[E].src.indexOf("/debug-")>0){z=!0;break}}z&&(z=!1,J?z=!0:(typeof C==="string"?Q=C:ErrorEvent&&C instanceof ErrorEvent?(z=!0,Q=C.message,F=C.filename,G=C.lineno,V=C.colno):(Q="Unknown error",F="Unknown file",G=0),J=new _.Ay(Q),J.name="UnhandledWindowError",J.message=Q,J.fileName=
F,J.lineNumber=G,isNaN(V)?delete J.columnNumber:J.columnNumber=V),_.y("wiz_enable_component_stack_propagation_killswitch")||(b=cMA(J,b)),b&&_.Tf(J,b),z?_.gD(J):_.Yw(J))};
_.gD=function(C,F,G,V,J,b,z,Q){b=b===void 0?{}:b;b.name=G||_.TF("INNERTUBE_CONTEXT_CLIENT_NAME",1);b.version=V||_.TF("INNERTUBE_CONTEXT_CLIENT_VERSION");G=b;F=F===void 0?"ERROR":F;z=z===void 0?!1:z;F=F===void 0?"ERROR":F;z=z===void 0?!1:z;if(C&&(C.hasOwnProperty("level")&&C.level&&(F=C.level),_.y("console_log_js_exceptions")&&(V=[],V.push("Name: "+C.name),V.push("Message: "+C.message),C.hasOwnProperty("params")&&V.push("Error Params: "+JSON.stringify(C.params)),C.hasOwnProperty("args")&&V.push("Error args: "+
JSON.stringify(C.args)),V.push("File name: "+C.fileName),V.push("Stacktrace: "+C.stack),V=V.join("\n"),window.console.log(V,C)),!(xGT>=5))){V=[];J=_.u(seA);for(b=J.next();!b.done;b=J.next()){b=b.value;try{b()&&V.push(b())}catch(f){}}V=[].concat(_.da(q4I),_.da(V));var E=P5Z(C);J=E.message||"Unknown Error";b=E.name||"UnknownError";var t=E.stack||C.stacktrace||"Not available";if(t.startsWith(b+": "+J)){var k=t.split("\n");k.shift();t=k.join("\n")}k=E.lineNumber||"Not available";E=E.fileName||"Not available";
var U=0;if(C.hasOwnProperty("args")&&C.args&&C.args.length)for(var H=0;H<C.args.length&&!(U=BhS(C.args[H],"params."+H,G,U),U>=500);H++);else if(C.hasOwnProperty("params")&&C.params){var l=C.params;if(typeof C.params==="object")for(H in l){if(l[H]){var N="params."+H,S=LD(l[H]);G[N]=S;U+=N.length+S.length;if(U>500)break}}else G.params=LD(l)}if(V.length)for(H=0;H<V.length&&!(U=BhS(V[H],"params.context."+H,G,U),U>=500);H++);navigator.vendor&&!G.hasOwnProperty("vendor")&&(G["device.vendor"]=navigator.vendor);
H={message:J,name:b,lineNumber:k,fileName:E,stack:t,params:G,sampleWeight:1};G=Number(C.columnNumber);isNaN(G)||(H.lineNumber=H.lineNumber+":"+G);if(C.level==="IGNORED")C=0;else a:{C=gJA();G=_.u(C.messageWeights);for(V=G.next();!V.done;V=G.next())if(V=V.value,H.message&&H.message.match(V.messageRegExp)){C=V.weight;break a}C=_.u(C.callbackWeights);for(G=C.next();!G.done;G=C.next())if(G=G.value,G.callback(H)){C=G.weight;break a}C=1}H.sampleWeight=C;C=_.u(RI5);for(G=C.next();!G.done;G=C.next())if(G=
G.value,G.patternsForType[H.name])for(J=_.u(G.patternsForType[H.name]),V=J.next();!V.done;V=J.next())if(b=V.value,V=H.message.match(b.regexp)){H.params["params.error.original"]=V[0];J=b.groups;b={};for(k=0;k<J.length;k++)b[J[k]]=V[k+1],H.params["params.error."+J[k]]=V[k+1];H.message=G.messageFn(b);break}H.params||(H.params={});C=gJA();H.params["params.errorServiceSignature"]="msg="+C.messageWeights.length+"&cb="+C.callbackWeights.length;H.params["params.serviceWorker"]="false";_.VT.document&&_.VT.document.querySelectorAll&&
(H.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new o1(Y4w,"sample")).constructor!==o1&&(H.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(H);if(H.sampleWeight!==0&&!TEi.has(H.message)){if(z&&_.y("web_enable_error_204"))oJq(F===void 0?"ERROR":F,H);else{F=F===void 0?"ERROR":F;F==="ERROR"?(rMA.publish("handleError",H),_.y("record_app_crashed_web")&&K2q===0&&H.sampleWeight===1&&(K2q++,z={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.y("report_client_error_with_app_crash_ks")||(z.systemHealth={crashData:{clientError:{logMessage:{message:H.message}}}}),_.q1("appCrashed",z)),DGW++):F==="WARNING"&&rMA.publish("handleWarning",H);if(_.y("kevlar_gel_error_routing")){z=F;Q=Q===void 0?{}:Q;b:{C=_.u(pBZ);for(G=C.next();!G.done;G=C.next())if(o8(G.value.toLowerCase())){C=!0;break b}C=!1}if(C)Q=void 0;else{G={stackTrace:H.stack};H.fileName&&(G.filename=H.fileName);C=H.lineNumber&&H.lineNumber.split?H.lineNumber.split(":"):[];C.length!==
0&&(C.length!==1||isNaN(Number(C[0]))?C.length!==2||isNaN(Number(C[0]))||isNaN(Number(C[1]))||(G.lineNumber=Number(C[0]),G.columnNumber=Number(C[1])):G.lineNumber=Number(C[0]));C={level:"ERROR_LEVEL_UNKNOWN",message:H.message,errorClassName:H.name,sampleWeight:H.sampleWeight};z==="ERROR"?C.level="ERROR_LEVEL_ERROR":z==="WARNING"&&(C.level="ERROR_LEVEL_WARNNING");G={isObfuscated:!0,browserStackInfo:G};Q.pageUrl=window.location.href;Q.kvPairs=[];_.TF("FEXP_EXPERIMENTS")&&(Q.experimentIds=_.TF("FEXP_EXPERIMENTS"));
V=_.TF("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!hQZ("web_disable_gel_stp_ecatcher_killswitch")&&V)for(J=_.u(Object.keys(V)),b=J.next();!b.done;b=J.next())b=b.value,Q.kvPairs.push({key:b,value:String(V[b])});if(V=H.params)for(J=_.u(Object.keys(V)),b=J.next();!b.done;b=J.next())b=b.value,Q.kvPairs.push({key:"client."+b,value:String(V[b])});V=_.TF("SERVER_NAME");J=_.TF("SERVER_VERSION");V&&J&&(Q.kvPairs.push({key:"server.name",value:V}),Q.kvPairs.push({key:"server.version",value:J}));Q={errorMetadata:Q,
stackTrace:G,logMessage:C}}Q&&(_.q1("clientError",Q),(z==="ERROR"||_.y("errors_flush_gel_always_killswitch"))&&_.P8())}_.y("suppress_error_204_logging")||oJq(F,H)}try{TEi.add(H.message)}catch(f){}xGT++}}};
oJq=function(C,F){var G=F.params||{};C={urlParams:{a:"logerror",t:"jserror",type:F.name,msg:F.message.substr(0,250),line:F.lineNumber,level:C,"client.name":G.name},postParams:{url:_.TF("PAGE_NAME",window.location.href),file:F.fileName},method:"POST"};G.version&&(C["client.version"]=G.version);if(C.postParams){F.stack&&(C.postParams.stack=F.stack);F=_.u(Object.keys(G));for(var V=F.next();!V.done;V=F.next())V=V.value,C.postParams["client."+V]=G[V];if(G=_.TF("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(F=
_.u(Object.keys(G)),V=F.next();!V.done;V=F.next())V=V.value,C.postParams[V]=G[V];(G=_.TF("LAVA_VERSION"))&&(C.postParams["lava.version"]=G);G=_.TF("SERVER_NAME");F=_.TF("SERVER_VERSION");G&&F&&(C.postParams["server.name"]=G,C.postParams["server.version"]=F)}_.wj(_.TF("ECATCHER_REPORT_HOST","")+"/error_204",C)};
_.mGo=function(C,F){F=F===void 0?"ERROR":F;var G=G===void 0?{}:G;var V=_.mN("ytbin.polymer.shared.lib.tampering.info");V&&(V=V())&&(G["params.tamperingInfo"]=V.sort().join(","));_.gD(C,F,void 0,void 0,!0,G)};
_.Tf=function(C){var F=_.Rn.apply(1,arguments);C.args||(C.args=[]);Array.isArray(C.args)&&C.args.push.apply(C.args,_.da(F))};
CC5=function(C){C.level="IGNORED"};
jyE=function(C,F){q4I.push(C);F();q4I.pop()};
K1=function(C,F){for(var G in F)F.hasOwnProperty(G)&&(C=_.rD(C,G,F[G]));return C};
_.FeZ=function(C,F,G){G=G===void 0?!1:G;if(!C)return null;if(C.adInfoDialogEndpoint||C.backstageImageUploadEndpoint||C.confirmDialogEndpoint||C.clientActionEndpoint||C.createBackstagePostDialogEndpoint||C.createCommentReplyDialogEndpoint||C.flowEndpoint||C.guideBuilderEndpoint||C.liveChatDialogEndpoint||C.modalEndpoint||C.openPopupAction||C.shareEndpoint||C.shareEntityEndpoint||C.showLiveChatItemEndpoint||C.subscriptionManagerEndpoint||C.unlimitedCreateFamilyEndpoint||C.unlimitedFamilyFlowEndpoint||
C.updateCommentDialogEndpoint||C.updateCommentReplyDialogEndpoint||C.userFeedbackEndpoint||C.videoEditorEndpoint||C.ypcCancelSurveyEndpoint)return F=_.a8("polymer_report_client_url_requested_rate"),!G&&Math.random()<F&&_.Yw(new _.Ay("urlForEndpoint used on client endpoint",C)),null;var V=_.a8("polymer_report_missing_web_navigation_endpoint_rate");if(C.liveChatEndpoint||C.liveChatReplayEndpoint)V=0;if(!C.commandMetadata&&!C.clickTrackingParams&&Math.random()<V){var J={},b;for(b in C)J[b]="1";_.Yw(new _.Ay("Missing navigation data",
J))}J="";if(C.commandMetadata&&C.commandMetadata.webCommandMetadata&&C.commandMetadata.webCommandMetadata.url)J=C.commandMetadata.webCommandMetadata.url;else if(C.searchEndpoint)Math.random()<V&&_.Yw(new _.Ay("Should not manually handle search",C)),J="/results?search_query="+encodeURIComponent(C.searchEndpoint.query).replace(/%20/g,"+"),C.searchEndpoint.params&&(J+="&sp="+C.searchEndpoint.params);else if(C.watchEndpoint)Math.random()<V&&_.Yw(new _.Ay("Should not manually handle watch",C)),J="/watch?v="+
C.watchEndpoint.videoId,C.watchEndpoint.playlistId&&(J+="&list="+C.watchEndpoint.playlistId),C.watchEndpoint.index&&(J+="&index="+C.watchEndpoint.index),C.watchEndpoint.startTimeSeconds&&(J+="&t="+C.watchEndpoint.startTimeSeconds);else if(C.browseEndpoint)V=C.browseEndpoint.browseId,(b=C.browseEndpoint.canonicalBaseUrl)?J=b:V&&(J=V.substr(0,2),J=J==="FE"?V==="FEwhat_to_watch"?"/":V==="FEmy_videos"?"/my_videos":"/feed/"+V.substr(2):J==="VL"?"/playlist?list="+V.substr(2):"/channel/"+V),J&&C.browseEndpoint.query&&
(J=K1(J+"/search",{query:C.browseEndpoint.query})),J&&C.browseEndpoint.params&&(J=K1(J,{params:C.browseEndpoint.params}));else{if(C.urlEndpoint)return C.urlEndpoint.url;C.signInEndpoint?(J="https://accounts.google.com/ServiceLogin",V={},_.xf.extend(V,F||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),F=V):C.uploadEndpoint?J="//www.youtube.com/upload":C.liveChatEndpoint?(J=C.liveChatEndpoint,V=_.xf.clone(J),_.TE(J.continuation)&&(b=Object.keys(J.continuation)[0],
V.continuation=J.continuation[b].continuation),J=K1("/youtubei/v1/live_chat/get_live_chat",V)):C.liveChatReplayEndpoint?(J=_.xf.clone(C.liveChatReplayEndpoint),J.currentPlayerState&&(_.xf.extend(J,J.currentPlayerState),delete J.currentPlayerState),J=K1("/youtubei/v1/live_chat/get_live_chat_replay",J)):C.liveChatItemContextMenuEndpoint?J=K1("/youtubei/v1/live_chat/get_item_context_menu",C.liveChatItemContextMenuEndpoint):C.liveChatPurchaseMessageEndpoint?J=K1("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
C.liveChatPurchaseMessageEndpoint):C.openSuperStickerBuyFlowCommand?J=K1("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",C.openSuperStickerBuyFlowCommand):C.videoEditEndpoint?J=K1("/edit",{video_id:C.videoEditEndpoint.videoId}):C.liveDashboardEndpoint?J=C.liveDashboardEndpoint.videoId?K1("/live_dashboard",{v:C.liveDashboardEndpoint.videoId}):"/live_dashboard":C.signalNavigationEndpoint&&C.signalNavigationEndpoint.signal&&C.signalNavigationEndpoint.signal==="WEBCAM"?J="/webcam":C.getPdgBuyFlowCommand&&
(J=K1(C.getPdgBuyFlowCommand.buyflowApiPath,{params:C.getPdgBuyFlowCommand.params}))}return J||G?K1(J,F||{}):(_.Yw(new _.Ay("Error: Can't construct url for endpoint","keys:"+Object.keys(C).sort().join(","),C)),null)};
G3w=function(C){if(C){if(C.browseEndpoint)return!!C.browseEndpoint.nofollow;if(C.watchEndpoint)return!!C.watchEndpoint.nofollow;if(C.urlEndpoint)return!!C.urlEndpoint.nofollow}return!1};
_.iYo=function(C,F){var G=F+C,V=VVS.get(G);if(V)return V;C=F+"-"+C.replace(/([A-Z])/g,"-$1").toLowerCase();VVS.set(G,C);return C};
JmZ=function(C){var F=_.gi(C,"action")||_.gi(C,"command")||_.gi(C,"endpoint");if(!F)return null;F=_.iYo(F,"yt");_.Z(C,_.DU)&&(F+="-"+_.Z(C,_.DU).signal.toLowerCase().replace(/_/g,"-"));return F};
uNE=function(C){try{var F=Object.keys(C)}catch(J){return[]}for(var G=0;G<F.length;G++){var V=F[G];if($hS.test(V)||bYI.test(V))return nbZ(C[V])}return[]};
nbZ=function(C){return C.command?[C.command]:C.onExecutionAction?[C.onExecutionAction]:C.onResponseReceivedCommand?[C.onResponseReceivedCommand]:C.updateFlowCommand?[C.updateFlowCommand]:C.clientActions?C.clientActions:C.action?[C.action]:C.actions||C.commands||C.onResponseReceivedActions||C.onResponseReceivedCommands||C.onResponseReceivedEndpoints||[]};
Qyq=function(C,F){F=F===void 0?!1:F;var G=_.I8().resolve(_.Qt(p1));G||(G=new zNE,_.I8().addProvider({provide:p1,useValue:G}));return G&&C&&!_.xf.isEmpty(C)?G.getUrl(C,F):""};
IRA=function(C,F,G){G=G===void 0?"":G;if(F){C.data=F;var V=Qyq(F);V?(TB(C,V),G3w(F)||!uH(V)?C.rel="nofollow":C.removeAttribute("rel"),_.Z(F,_.jW)&&_.Z(F,_.jW).target==="TARGET_NEW_WINDOW"?C.target="_blank":G?C.target=G:C.removeAttribute("target")):(C.removeAttribute("href"),C.removeAttribute("rel"),C.removeAttribute("target"))}};
_.i9=function(C,F){var G=J2;if(cp())Ebi(C,function(){var b=_.Rn.apply(0,arguments);YK(G,function(){F.apply(null,_.da(b))})});
else{var V=_.FV.getInstance(),J=fQS(F);NzI(function(){J.value=F});
_.q4(function(){var b={},z=_.GA(V,(b[C]=function(){var Q=_.Rn.apply(0,arguments);YK(G,function(){J.value.apply(J,_.da(Q))})},b));
return function(){var Q={};_.V3(V,(Q[C]="",Q),z)}})}};
_.Jt=function(C,F){return WeA(C,!1,F)};
_.nc=function(C,F){return WeA(C,!0,F)};
WeA=function(C,F,G){return cp()?tV5(C,F,G):aRW(C,F,G)};
aRW=function(C,F,G){return PQ(function(){return tV5(C,F,G)})};
tV5=function(C,F,G){var V=HXi(function(J){V.value=J;var b=function(){var z=Eq(null);try{return G==null?void 0:G(J)}finally{Eq(z)}}();
return function(){b==null||b()}});
V.__expectedTagName=C;V.__optional=F;V.isIdom=!cp();return V};
k3I=function(C){var F=J2,G=fB;return{getFn:function(){return function(V){if(!F.isDisposed){var J=function(){return C(V)};
xK(function(){return _.lb(J)},G)!==!0&&V.stopPropagation()}}}}};
u9=function(C){if(typeof C.children==="function")return C.children(),null;C=_.u(C.children);for(var F=C.next();!F.done;F=C.next())F=F.value,F();return null};
UhT=function(C){var F;return((F=C.prototype)==null?void 0:F.render)===void 0};
HYZ=function(C){return C.items.map(C.children)};
ymf=function(C,F,G){G=G===void 0?!1:G;xK(function(){return lRw(C,F,G)})};
lRw=function(C,F,G){var V=null;LB++;G=(G===void 0?0:G)?ZYw:NvA;try{V=G(C,function(){zA(F)}),vp(!1)}catch(J){throw vp(!0),J;
}return V===null?C:V};
zA=function(C){if(C!==void 0&&C!==null)if(C instanceof wi)for(var F=j_;FF()!=null&&iXW in FF()&&F.contains(FF());)iR();else if(Array.isArray(C))for(F=_.u(C),C=F.next();!C.done;C=F.next())zA(C.value);else if(C instanceof SS||C instanceof ui||"function"==typeof _.Q1&&C instanceof _.Q1)V3T(C.toString());else if(_.aD(C)){if(FF()!==C){var G,V;F=(V=(G=fB)==null?void 0:G.name)!=null?V:"unknown";throw Error("hc`"+C.tagName+"`"+F);}iR()}else if(C!=null&&C.contentKind===lR||C instanceof on||UkI(C))for(F=lcI(C),
F=Array.from(F.childNodes),F=_.u(F),C=F.next();!C.done;C=F.next())j_.appendChild(C.value),iR();else if(Az(C)&&(C=C.toString()),G=typeof C,G==="boolean"||G==="number"||G==="string")V3T(C);else if(typeof C==="function"){F=j_;var J=FF();J&&(J._isSignalTextNode||J._isSafeOrSanitizedHtmlNode)||ruf(F,J,C);iR()}else if(C.type===HYZ)zA(C.type(Object.assign({},C.props,{children:C.children[0]})));else{LW.beforeVisit(C);if(typeof C.type==="string"){a:{C.__open||rtq(C.type,C.props.idomKey);J=j_;for(F in C.props)if(C.props[F]!==
OYT){var b=C.props[F];G=bR;G.push(F);G.push(b)}F=zl.attributes;F=F===void 0?Q3:F;b=j_;G=pB(b);GH9(b,G,F);ov9(J,C.props,!0);if((C.props.skip||C.props.skipchildren)&&j_.hasChildNodes())Dwq();else{if(C.type==="style"&&SHf(C.children)===null){Dwq();F=void 0;break a}zA(C.children)}KOo();C.__open&&(C.__open=!1);Q6W(J,C.props);F=J}return F}if(C.type===_.WQ)zA(C.children);else if(!XlB(C)){F=C;try{wl5(F)}catch(z){C=z,(b=zl.handleError)==null||b.call.apply(b,[zl].concat(_.da(Tl(C,(J=F.type)==null?void 0:J.TAG_NAME))))}F.__open&&
(KOo(),F.__open=!1)}}};
MVS=function(C,F){var G;UhT(C)?G=new vQ(F,C):G=new C(F);G.__type=C;G.__updateContext={nextState:G.state,isForced:!1};return G};
wl5=function(C){var F=C.type,G=F.TAG_NAME;if(F===u9)C.props.children=C.children,F(C.props);else{C.children.length>0&&(C.props.children=C.children);var V;(V=C.props).idomKey||(V.idomKey=F);if(G){var J=rtq(G,C.props.idomKey);C.__open=!0;var b=J.__instance}b||(b=MVS(F,C.props),b.props=null,J&&(J.__instance=b,b.el=J));var z;G=((z=b.__updateContext)!=null?z:{nextState:b.state,isForced:!1}).nextState;b.__updateContext=void 0;F.getDerivedStateFromProps&&(G=F.getDerivedStateFromProps(C.props,G));b.props=
C.props;b.state=G;z=function(){var Q=b;LW.beforeRender(Q);var E=Q.render(Q.props);LW.afterRender(Q,E);E?(Q.props.idomKey&&(E.props.idomKey=Q.props.idomKey),Q=E):Q=void 0;if(E=Q)if(E.__open=C.__open,Q=zA(E),C.__open=E.__open,!F.TAG_NAME)if(Q)F.TAG_NAME=Q.tagName.toLowerCase(),Q.__instance=b,b.el=Q;else{var t;if((t=b.hooks)==null?0:t.length){var k;(k=zl.handleError)==null||k.call.apply(k,[zl].concat(_.da(Tl(Error("pd")))))}}b.didPatch();LW.didPatch(b)};
(G=b.functionComponent)?Qx5(G,z,b.props.debugInstance):z()}};
XlB=function(C){var F=C.type;if(!UhT(F)||F===u9||F.componentType===h2)return!1;C.props.children=C.children.length>1?C.children:C.children[0];var G,V=(G=C.props.idomKey)!=null?G:C.type,J;if(FF()&&((J=FF()[N4])==null?void 0:J.key)===V){var b=FF(),z=b[N4];if(!z)throw Error("gc`"+b.tagName);var Q;(Q=z.updateSignalsFromIdomProps)==null||Q.call(z,C.props);SIo(z);return!0}if(Leq.has(F.name))throw Q=F.name,F=(z=(b=fB)==null?void 0:b.name)!=null?z:"unknown",Error("fc`"+Q+"`"+F);mkS(C.type,C.props,C.children);
C.props.renderedFromIdom=!0;(Q=Qx5(C.type,function(){return PnA(C.type,C.props)},C.props.debugInstance))&&Bv9(Q);
return!0};
vbs=function(C){for(var F=0;F<XF(C).length;F++)iR()};
SIo=function(C){var F=fRi();if(F)vbs(F);else for(var G=0;G<C.numNodes;G++)(F=fRi())?vbs(F):iR()};
fRi=function(){var C;return(C=FF()[N4])==null?void 0:C.sourceDynamicRange};
Bv9=function(C){C=W9o(C);C=Array.isArray(C)?C:[C];C=_.u(C);for(var F=C.next();!F.done;F=C.next())j_.insertBefore(F.value,FF()),iR()};
hN9=function(){var C=Riq(),F=PQ(function(){return{value:0}});
return[F.value,function(G){if(BQ!==null){var V;(V=zl.handleError)==null||V.call.apply(V,[zl].concat(_.da(Tl(Error("qd")))))}F.value=typeof G==="function"?G(F.value):G;C.__updateContext={nextState:C.state,isForced:!0};G=_.$K(C.effectContext);V=tg(!1);try{if(C.el){var J,b={},z=(b.props=C.props,b.type=C.__type,b.children=(J=C.props.children)!=null?J:[],b[E0]=!0,b);try{ymf(C.el,z,!0)}catch(t){var Q,E;(E=zl.handleError)==null||E.call.apply(E,[zl].concat(_.da(Tl(t,(Q=C.__type)==null?void 0:Q.TAG_NAME))))}}}finally{tg(V),
_.$K(G)}}]};
_.Ix=function(C,F){var G=J2,V=function(J){YK(G,function(){F(J)})};
window.addEventListener(C,V,void 0);_.q0(function(){window.removeEventListener(C,V,void 0)})};
_.Wv=function(C){var F=J2;return function(G){var V,J=(V=C.observer)!=null?V:_.I8().resolve(E8);V=cmE(G);var b=[];C.showOption&&b.push(J.observe(G,function(){YK(F,function(){C.visibilityCallback(!0,G)})},C.showOption));
C.hideOption&&b.push(J.observe(G,function(){YK(F,function(){C.visibilityCallback(!1,G)})},C.hideOption));
C.prescanOption&&C.prescanCallback&&b.push(J.observe(G,function(){YK(F,function(){C.prescanCallback()})},C.prescanOption));
var z;V.visibilityMonitorKeys=((z=V.visibilityMonitorKeys)!=null?z:[]).concat(b)}};
cmE=function(C){var F;return(F=C.polymerController)!=null?F:C};
xhE=function(C,F){var G=Am9;return _.W(_.WQ,null,WpZ(zl.enableLazyTsx,function(){return _.W(eN9,{id:G,value:C,children:F})},function(){var V=dho(G,C);
ub(V);V=_.$K(V);try{return F()}finally{_.$K(V)}}))};
eN9=function(C){var F=C.children;C=dho(C.id,C.value);ub(C);C=_.$K(C);try{return _.W(_.WQ,null,M4(F()))}finally{_.$K(C)}};
dho=function(C,F){return Object.assign(Object.create(syI),{id:C,contextValue:F})};
qIB=function(C){var F,G=J2;_.RX(function(){var V=_.$K(G),J=tg(!F);try{if(F)ymf(F,C.children(),!0);else if(F=M4(C.children()),!(F instanceof Element))throw Error("rd");}finally{tg(J),_.$K(V)}},"f");
return F};
_.PCi=function(C,F){var G;F=Pp(function(){var V=tg(!0);LB++;try{G=XF(C()),vp(!1)}catch(J){throw vp(!0),J;}finally{tg(V)}},F===void 0?!1:F);
return[G,F]};
RNE=function(C){var F=new gbq;F.abort(C);return F.signal};
YIA=function(){if(this.aborted){var C;throw(C=this.reason)!=null?C:new DOMException("signal is aborted without reason","AbortError");}};
rm5=function(C){var F=new gbq;C=_.u(C);for(var G=C.next();!G.done;G=C.next())if(G=G.value,G.aborted){F.abort(G.reason);break}else TvZ.set(F.signal,F),obZ.add(G,F.signal);return F.signal};
Kew=function(){for(var C=_.u(obZ.get(this)),F=C.next();!F.done;F=C.next())TvZ.get(F.value).abort(this.reason)};
DhZ=function(C){var F=new gbq;setTimeout(function(){F.abort(new DOMException("signal timed out","TimeoutError"))},C);
return F.signal};
plf=function(){var C,F;return{promise:new Promise(function(G,V){C=G;F=V}),
resolve:C,reject:F}};
CdT=function(C){var F=plf(),G=F.promise;mhB.set(C,{promise:G,resolve:F.resolve,reject:F.reject});tt||(tt=[],queueMicrotask(function(){var V=[].concat(_.da(tt));tt=null;var J=sD().loadMultiple(V);V=_.u(V);for(var b=V.next();!b.done;b=V.next())b=b.value,J[b].then(mhB.get(b).resolve,mhB.get(b).reject)}));
tt.push(C);return G};
F8q=function(C){C=C.buf.charCodeAt(C.pos++);return jv5[C]};
ax=function(C){var F=0,G=0;do{var V=F8q(C);F|=(V&31)<<G;G+=5}while(V&32);return F<0?F+4294967296:F};
VZs=function(){var C=!0;C=C===void 0?!1:C;var F=F===void 0?!1:F;var G=G===void 0?{}:G;var V=G.cssRowKey||"",J=G.combinedSignature||"";!V&&window&&window._F_cssRowKey&&(V=window._F_cssRowKey,!J&&window._F_combinedSignature&&(J=window._F_combinedSignature));if(V&&typeof window._F_installCss!=="function")throw Error("Bd");var b=G.loaderClass||_.ky,z=cni("base-js");C=new b(HvA(e8B("",z)),V,J,C,F);F=G.useCors||z&&z.hasAttribute("crossorigin");z=G.corsMode||z&&z.getAttribute("crossorigin");F&&(C.useCors_=
F);z&&(C.corsMode_=z);G.urlMaxLength&&(C.urlMaxLength=G.urlMaxLength);G.fetchPriority&&(C.fetchPriority=G.fetchPriority);var Q=sD();Q.JSC$10053_loader_=C;Q.setBatchModeEnabled(!0);_.GZZ=G.batchingStrategy==="BATCH"?CdT:function(E){return Promise.resolve(Q.load(E))}};
$xS=function(C,F,G){i3o(C,F);C[F][Jkw].unshift(G)};
i3o=function(C,F){if(!C[F]||!C[F][Jkw]){var G=C[F],V=G?[G]:[];C[F]=function(){for(var J=_.u(V),b=J.next();!b.done;b=J.next())b.value.apply(this,arguments)};
C[F][Jkw]=V}};
b35=function(C){if(!C)return[];var F=[];C=_.u(C);for(var G=C.next();!G.done;G=C.next())G=G.value,Array.isArray(G)?F.push.apply(F,_.da(b35(G))):F.push(G);return F};
_.Hv=function(C,F){if(C&&nZS.test(C)||C==="//")return C;if(ucw===void 0){ucw=!1;try{var G=new URL("b","http://a");G.pathname="c%20d";ucw=G.href==="http://a/c%20d"}catch(V){}}F||(F=document.baseURI||window.location.href);if(ucw)try{return(new URL(C,F)).href}catch(V){return C}U8||(U8=document.implementation.createHTMLDocument("temp"),U8.base=U8.createElement("base"),U8.head.appendChild(U8.base),U8.anchor=U8.createElement("a"),U8.body.appendChild(U8.anchor));U8.base.href=F;U8.anchor.href=C;return U8.anchor.href||
C};
Qvs=function(C,F){return C.replace(z19,function(G,V,J,b){return V+"'"+_.Hv(J.replace(/["']/g,""),F)+"'"+b})};
IFB=function(C){return C.substring(0,C.lastIndexOf("/")+1)};
tZ5=function(){EZT=!1;for(var C=l9.length,F=0;F<C;F++){var G=l9[F];if(G)try{G()}catch(V){setTimeout(function(){throw V;})}}l9.splice(0,C);
W8I+=C};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(C){console.log("["+C.is+"]: registered")};
kZT=function(C){aFE.push(C)};
y3=function(C){return UxT[C]||(UxT[C]=C.indexOf("-")<0?C:C.replace(H3w,function(F){return F[1].toUpperCase()}))};
Ze=function(C){return UxT[C]||(UxT[C]=C.replace(lFT,"-$1").toLowerCase())};
ykI=function(C,F){var G=F.parentInfo&&ykI(C,F.parentInfo);if(G)for(C=G.firstChild,G=0;C;C=C.nextSibling){if(F.parentIndex===G++)return C}else return C};
Z3s=function(C,F){C=C._methodHost||C;return function(G){if(C[F])C[F](G,G.detail);else console.warn("listener method `"+F+"` not defined")}};
Nw=function(C){return C.indexOf(".")>=0};
O8=function(C){var F=C.indexOf(".");return F===-1?C:C.slice(0,F)};
NJs=function(C,F){return C.indexOf(F+".")===0};
XV=function(C,F){return F.indexOf(C+".")===0};
wR=function(C,F,G){return F+G.slice(C.length)};
O35=function(C,F){return C===F||NJs(C,F)||XV(C,F)};
Mw=function(C){if(Array.isArray(C)){for(var F=[],G=0;G<C.length;G++)for(var V=C[G].toString().split("."),J=0;J<V.length;J++)F.push(V[J]);return F.join(".")}return C};
Xx9=function(C){return Array.isArray(C)?Mw(C).split("."):C.toString().split(".")};
SW=function(C,F,G){F=Xx9(F);for(var V=0;V<F.length;V++){if(!C)return;C=C[F[V]]}G&&(G.path=F.join("."));return C};
wxo=function(C,F,G){var V=Xx9(F),J=V[V.length-1];if(V.length>1){for(F=0;F<V.length-1;F++)if(C=C[V[F]],!C)return;C[J]=G}else C[F]=G;return V.join(".")};
MZA=function(C,F,G){var V=C[F];if(!V)V=C[F]={};else if(!C.hasOwnProperty(F)&&(V=C[F]=Object.create(C[F]),G))for(var J in V)for(C=V[J],F=V[J]=Array(C.length),G=0;G<C.length;G++)F[G]=C[G];return V};
Bv=function(C,F,G,V,J,b){if(F){var z=!1,Q=Lc++,E;for(E in G){var t=J?O8(E):E;if(t=F[t])for(var k=0,U=t.length,H=void 0;k<U&&(H=t[k]);k++)H.info&&H.info.lastRun===Q||J&&!SpT(E,H.trigger)||(H.info&&(H.info.lastRun=Q),H.fn(C,E,G,V,H.info,J,b),z=!0)}return z}return!1};
SpT=function(C,F){if(F){var G=F.name;return G==C||!(!F.structured||!NJs(G,C))||!(!F.wildcard||!XV(G,C))}return!0};
L8i=function(C,F,G,V,J){F=typeof J.method==="string"?C[J.method]:J.method;G=J.property;F?F.call(C,C.__data[G],V[G]):J.dynamicFn||console.warn("observer method `"+J.method+"` not defined")};
BJ9=function(C,F,G,V){G={value:G,queueProperty:!0};V&&(G.path=V);(0,_.vv)(C).dispatchEvent(new CustomEvent(F,{detail:G}))};
vZ5=function(C,F,G,V,J,b){b=(V=(b?O8(F):F)!=F?F:null)?SW(C,V):C.__data[F];V&&b===void 0&&(b=G[F]);BJ9(C,J.eventName,b,V)};
fFf=function(C,F,G,V,J){G=C.__data[F];fc&&(G=fc(G,J.attrName,"attribute",C));C._propertyToAttribute(F,J.attrName,G)};
ckT=function(C){var F=C.constructor.__orderedComputedDeps;if(!F){F=new Map;for(var G=C.__computeEffects,V=h1Z(C),J=V.counts,b=V.ready,z=V.total;V=b.shift();)F.set(V,F.size),(V=G[V])&&V.forEach(function(Q){Q=Q.info.methodInfo;--z;--J[Q]===0&&b.push(Q)});
z!==0&&console.warn("Computed graph for "+C.localName+" incomplete; circular?");C.constructor.__orderedComputedDeps=F}return F};
h1Z=function(C){var F=C.__computeInfo,G={};C=C.__computeEffects;var V=[],J=0,b;for(b in F){var z=F[b];J+=G[b]=z.args.filter(function(E){return!E.literal}).length+(z.dynamicFn?1:0)}for(var Q in C)F[Q]||V.push(Q);
return{counts:G,ready:V,total:J}};
e1w=function(C,F,G,V,J){F=Ak5(C,F,G,V,J);if(F===ht)return!1;J=J.methodInfo;if(C.__dataHasAccessor&&C.__dataHasAccessor[J])return C._setPendingProperty(J,F,!0);C[J]=F;return!1};
svi=function(C,F,G,V,J,b,z){G.bindings=G.bindings||[];V={kind:V,target:J,parts:b,literal:z,isCompound:b.length!==1};G.bindings.push(V);V.target&&V.kind!="attribute"&&V.kind!="text"&&!V.isCompound&&V.parts[0].mode==="{"&&(G=V.parts[0],b=G.negate,V.listenerEvent=G.event||Ze(J)+"-changed",V.listenerNegate=b);J=F.nodeInfoList.length;for(G=0;G<V.parts.length;G++){var Q=V.parts[G];Q.compoundIndex=G;b=C;z=F;var E=V,t=Q,k=J;if(!t.literal)if(E.kind==="attribute"&&E.target[0]==="-")console.warn("Cannot set attribute "+
E.target+' because "-" is not a valid attribute starting character');else for(Q=t.dependencies,E={index:k,binding:E,part:t,evaluator:b},t=0;t<Q.length;t++)k=Q[t],typeof k=="string"&&(k=dxf(k),k.wildcard=!0),b._addTemplatePropertyEffect(z,k.rootProperty,{fn:xxT,info:E,trigger:k})}};
xxT=function(C,F,G,V,J,b,z){z=z[J.index];var Q=J.binding,E=J.part;b&&E.source&&F.length>E.source.length&&Q.kind=="property"&&!Q.isCompound&&z.__isPropertyEffectsClient&&z.__dataHasAccessor&&z.__dataHasAccessor[Q.target]?(G=G[F],F=wR(E.source,Q.target,F),z._setPendingPropertyOrPath(F,G,!1,!0)&&C._enqueueClient(z)):(F=J.evaluator._evaluateBinding(C,E,F,G,V,b),F!==ht&&(Q.isCompound&&(G=z.__dataCompoundStorage[Q.target],G[E.compoundIndex]=F,F=G.join("")),Q.kind==="attribute"||Q.target!=="textContent"&&
(Q.target!=="value"||z.localName!=="input"&&z.localName!=="textarea")||(F=F==void 0?"":F),E=F,fc&&(E=fc(E,Q.target,Q.kind,z)),Q.kind=="attribute"?C._valueToNodeAttribute(z,E,Q.target):(Q=Q.target,z.__isPropertyEffectsClient&&z.__dataHasAccessor&&z.__dataHasAccessor[Q]?z.__readOnly&&z.__readOnly[Q]||z._setPendingProperty(Q,E)&&C._enqueueClient(z):C._setUnmanagedPropertyToNode(z,Q,E))))};
qpw=function(C,F,G){if(G.listenerEvent){var V=G.parts[0];C.addEventListener(G.listenerEvent,function(J){var b=G.target,z=V.source,Q=V.negate,E=J.detail,t=E&&E.path;t?(z=wR(b,z,t),J=E&&E.value):J=J.currentTarget[b];F.__readOnly&&F.__readOnly[z]||!F._setPendingPropertyOrPath(z,Q?!J:J,!0,!!t)||E&&E.queueProperty||F._invalidateProperties()})}};
Pdo=function(C,F,G,V,J,b){b=F.static||b&&(typeof b!=="object"||b[F.methodName]);J={methodName:F.methodName,args:F.args,methodInfo:J,dynamicFn:b};for(var z=0,Q=void 0;z<F.args.length&&(Q=F.args[z]);z++)Q.literal||C._addPropertyEffect(Q.rootProperty,G,{fn:V,info:J,trigger:Q});b&&C._addPropertyEffect(F.methodName,G,{fn:V,info:J});return J};
Ak5=function(C,F,G,V,J){V=C._methodHost||C;var b=V[J.methodName];if(b)return C=C._marshalArgs(J.args,F,G),C===ht?ht:b.apply(V,C);J.dynamicFn||console.warn("method `"+J.methodName+"` not defined")};
gZI=function(C){for(var F="",G=0;G<C.length;G++)F+=C[G].literal||"";return F};
TJE=function(C){if(C=C.match(/([^\s]+?)\(([\s\S]*)\)/)){var F={methodName:C[1],static:!0,args:R1o};return C[2].trim()?YpB(C[2].replace(/\\,/g,"&comma;").split(","),F):F}return null};
YpB=function(C,F){F.args=C.map(function(G){G=dxf(G);G.literal||(F.static=!1);return G},this);
return F};
dxf=function(C){C=C.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var F={name:C,value:"",literal:!1},G=C[0];G==="-"&&(G=C[1]);G>="0"&&G<="9"&&(G="#");switch(G){case "'":case '"':F.value=C.slice(1,-1);F.literal=!0;break;case "#":F.value=Number(C),F.literal=!0}F.literal||(F.rootProperty=O8(C),F.structured=Nw(C),F.structured&&(F.wildcard=C.slice(-2)==".*",F.wildcard&&(F.name=C.slice(0,-2))));return F};
oZS=function(C,F,G){C=SW(C,G);C===void 0&&(C=F[G]);return C};
rkT=function(C,F,G,V){V={indexSplices:V};cv&&!C._overrideLegacyUndefined&&(F.splices=V);C.notifyPath(G+".splices",V);C.notifyPath(G+".length",F.length);cv&&!C._overrideLegacyUndefined&&(V.indexSplices=[])};
At=function(C,F,G,V,J,b){rkT(C,F,G,[{index:V,addedCount:J,removed:b,object:F,type:"splice"}])};
K8B=function(C){C=Qvs((C.body?C.body:C).textContent,C.baseURI);var F=document.createElement("style");F.textContent=C;return F};
pxf=function(C){C=C.trim().split(/\s+/);for(var F=[],G=0;G<C.length;G++)F.push.apply(F,_.da(DxW(C[G])));return F};
DxW=function(C){var F=eW.import(C);if(!F)return console.warn("Could not find style data in module named",C),[];if(F._styles===void 0){C=[];C.push.apply(C,_.da(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(F)));var G=F.querySelector("template");G&&C.push.apply(C,_.da(mxT(G,F.assetpath)));F._styles=C}return F._styles};
mxT=function(C,F){if(!C._styles){for(var G=[],V=C.content.querySelectorAll("style"),J=0;J<V.length;J++){var b=V[J],z=b.getAttribute("include");z&&G.push.apply(G,_.da(pxf(z).filter(function(Q,E,t){return t.indexOf(Q)===E})));
F&&(b.textContent=Qvs(b.textContent,F));G.push(b)}C._styles=G}return C._styles};
CVo=function(C){return(C=eW.import(C))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(C):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(C){var F=[];C=C.querySelectorAll("link[rel=import][type~=css]");for(var G=0;G<C.length;G++){var V=C[G];if(V.import){var J=V.import;if((V=V.hasAttribute("shady-unscoped"))&&!J._unscopedStyle){var b=K8B(J);b.setAttribute("shady-unscoped","");J._unscopedStyle=b}else J._style||(J._style=K8B(J));F.push(V?J._unscopedStyle:J._style)}}return F};
F4E=function(C){C=C.trim().split(/\s+/);for(var F="",G=0;G<C.length;G++)F+=jE9(C[G]);return F};
jE9=function(C){var F=eW.import(C);if(F&&F._cssText===void 0){var G=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(F),V=F.querySelector("template");V&&(G+=GCi(V,F.assetpath));F._cssText=G||null}F||console.warn("Could not find style data in module named",C);return F&&F._cssText||""};
GCi=function(C,F){var G="";C=mxT(C,F);for(F=0;F<C.length;F++){var V=C[F];V.parentNode&&V.parentNode.removeChild(V);G+=V.textContent}return G};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(C){var F="";C=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(C);for(var G=0;G<C.length;G++)F+=C[G].textContent;return F};
dR=function(C,F){return{index:C,removed:[],addedCount:F}};
iVi=function(C,F,G,V){var J=0,b=0,z=0,Q=0,E=Math.min(F-J,V-b);if(J==0&&b==0)a:{for(z=0;z<E;z++)if(C[z]!==G[z])break a;z=E}if(F==C.length&&V==G.length){Q=C.length;for(var t=G.length,k=0;k<E-z&&VuE(C[--Q],G[--t]);)k++;Q=k}J+=z;b+=z;F-=Q;V-=Q;if(F-J==0&&V-b==0)return[];if(J==F){for(F=dR(J,0);b<V;)F.removed.push(G[b++]);return[F]}if(b==V)return[dR(J,F-J)];E=J;z=b;V=V-z+1;Q=F-E+1;F=Array(V);for(t=0;t<V;t++)F[t]=Array(Q),F[t][0]=t;for(t=0;t<Q;t++)F[0][t]=t;for(t=1;t<V;t++)for(k=1;k<Q;k++)if(C[E+k-1]===
G[z+t-1])F[t][k]=F[t-1][k-1];else{var U=F[t-1][k]+1,H=F[t][k-1]+1;F[t][k]=U<H?U:H}E=F.length-1;z=F[0].length-1;V=F[E][z];for(C=[];E>0||z>0;)E==0?(C.push(2),z--):z==0?(C.push(3),E--):(Q=F[E-1][z-1],t=F[E-1][z],k=F[E][z-1],U=t<k?t<Q?t:Q:k<Q?k:Q,U==Q?(Q==V?C.push(0):(C.push(1),V=Q),E--,z--):U==t?(C.push(3),E--,V=t):(C.push(2),z--,V=k));C.reverse();F=void 0;E=[];for(z=0;z<C.length;z++)switch(C[z]){case 0:F&&(E.push(F),F=void 0);J++;b++;break;case 1:F||(F=dR(J,0));F.addedCount++;J++;F.removed.push(G[b]);
b++;break;case 2:F||(F=dR(J,0));F.addedCount++;J++;break;case 3:F||(F=dR(J,0)),F.removed.push(G[b]),b++}F&&E.push(F);return E};
J6I=function(C,F){return iVi(C,C.length,F,F.length)};
VuE=function(C,F){return C===F};
bVf=function(C){if(C instanceof $bo)return C.value;throw Error("Jd`"+C);};
nCB=function(C,F){for(var G in F)G===null?C.style.removeProperty(G):C.style.setProperty(G,F[G])};
uDZ=function(C,F){return(C=window.getComputedStyle(C).getPropertyValue(F))?C.trim():""};
ECZ=function(C){requestAnimationFrame(function(){zTT?zTT(C):(QEB||(QEB=new Promise(function(F){IoE=F}),document.readyState==="complete"?IoE():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&IoE()})),QEB.then(function(){C&&C()}))})};
aoq=function(C){W4q=C&&C.shimcssproperties?!1:tuA||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
y6o=function(C){if(!(kCZ.indexOf(C)>-1)&&C!=="touchend"&&UbW&&HVZ&&loT)return{passive:!0}};
Xsf=function(C){for(var F=ZVs?["click"]:kCZ,G=0,V;G<F.length;G++)V=F[G],C?(NpT.length=0,document.addEventListener(V,OVZ,!0)):document.removeEventListener(V,OVZ,!0)};
xy=function(C){var F=C.type;return kCZ.indexOf(F)>-1?F==="mousemove"?(F=C.buttons===void 0?1:C.buttons,C instanceof window.MouseEvent&&!wss&&(F=Muw[C.which]||0),!!(F&1)):(C.button===void 0?0:C.button)===0:!1};
SdI=function(C){if(C.type==="click"){if(C.detail===0)return!0;var F=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(C);if(!F.nodeType||F.nodeType!==Node.ELEMENT_NODE)return!0;F=F.getBoundingClientRect();var G=C.pageX;C=C.pageY;return!(G>=F.left&&G<=F.right&&C>=F.top&&C<=F.bottom)}return!1};
L4o=function(C,F,G){C.movefn=F;C.upfn=G;document.addEventListener("mousemove",F);document.addEventListener("mouseup",G)};
s8=function(C){document.removeEventListener("mousemove",C.movefn);document.removeEventListener("mouseup",C.upfn);C.movefn=null;C.upfn=null};
Bp9=function(C,F){for(var G=document.elementFromPoint(C,F),V=G;V&&V.shadowRoot&&!window.ShadyDOM;){var J=V;V=V.shadowRoot.elementFromPoint(C,F);if(J===V)break;V&&(G=V)}return G};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(C){var F=vCW(C);return F.length>0?F[0]:C.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(C){var F=C.type,G=C.currentTarget.__polymerGestures;if(G&&(G=G[F])){if(!C.__polymerGesturesHandled&&(C.__polymerGesturesHandled={},F.slice(0,5)==="touch")){var V=C.changedTouches[0];F==="touchstart"&&C.touches.length===1&&(fos=V.identifier);if(fos!==V.identifier)return;UbW||(F==="touchstart"||F==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(C)}V=
C.__polymerGesturesHandled;if(!V.skip){for(var J=0,b;J<qw.length;J++)b=qw[J],G[b.name]&&!V[b.name]&&b.flow&&b.flow.start.indexOf(C.type)>-1&&b.reset&&b.reset();for(J=0;J<qw.length;J++)b=qw[J],G[b.name]&&!V[b.name]&&(V[b.name]=!0,b[F](C))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(C){var F=C.changedTouches[0],G=C.type;if(G==="touchstart")hTW=F.clientX,c6o=F.clientY,A6T=!1;else if(G==="touchmove"&&!A6T){A6T=!0;G="auto";for(var V=vCW(C),J=0,b;J<V.length;J++)if(b=V[J],b.__polymerGesturesTouchAction){G=b.__polymerGesturesTouchAction;break}V=!1;J=Math.abs(hTW-F.clientX);F=Math.abs(c6o-F.clientY);C.cancelable&&(G==="none"?V=!0:G==="pan-x"?V=F>J:G==="pan-y"&&(V=J>F));V?C.preventDefault():
Pv("track")}};
Rx=function(C,F,G){return gR[F]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(C,F,G),!0):!1};
Yy=function(C,F,G){return gR[F]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(C,F,G),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(C,F,G){var V=gR[F],J=V.deps,b=V.name,z=C.__polymerGestures;z||(C.__polymerGestures=z={});for(var Q=0,E,t;Q<J.length;Q++)E=J[Q],ZVs&&kCZ.indexOf(E)>-1&&E!=="click"||((t=z[E])||(z[E]=t={_count:0}),t._count===0&&C.addEventListener(E,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,y6o(E)),t[b]=(t[b]||0)+1,t._count=(t._count||0)+1);C.addEventListener(F,G);V.touchAction&&_.TA(C,V.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(C,F,G){var V=gR[F],J=V.deps;V=V.name;var b=C.__polymerGestures;if(b)for(var z=0,Q,E;z<J.length;z++)Q=J[z],(E=b[Q])&&E[V]&&(E[V]=(E[V]||1)-1,E._count=(E._count||1)-1,E._count===0&&C.removeEventListener(Q,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,y6o(Q)));C.removeEventListener(F,G)};
eTS=function(C){qw.push(C);for(var F=0;F<C.emits.length;F++)gR[C.emits[F]]=C};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(C){for(var F=0,G;F<qw.length;F++){G=qw[F];for(var V=0,J;V<G.emits.length;V++)if(J=G.emits[V],J===C)return G}return null};
_.TA=function(C,F){UbW&&C instanceof HTMLElement&&ox.run(function(){C.style.touchAction=F});
C.__polymerGesturesTouchAction=F};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(C,F,G){F=new Event(F,{bubbles:!0,cancelable:!0,composed:!0});F.detail=G;(0,_.vv)(C).dispatchEvent(F);F.defaultPrevented&&(C=G.preventer||G.sourceEvent)&&C.preventDefault&&C.preventDefault()};
Pv=function(C){C=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(C);C.info&&(C.info.prevent=!0)};
De=function(C,F,G,V){F&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F,C,{x:G.clientX,y:G.clientY,sourceEvent:G,preventer:V,prevent:function(J){return Pv(J)}})};
dbW=function(C,F,G){if(C.prevent)return!1;if(C.started)return!0;G=Math.abs(C.y-G);return Math.abs(C.x-F)>=5||G>=5};
xbT=function(C,F,G){if(F){var V=C.moves[C.moves.length-2],J=C.moves[C.moves.length-1],b=J.x-C.x,z=J.y-C.y,Q=0;if(V){var E=J.x-V.x;Q=J.y-V.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F,"track",{state:C.state,x:G.clientX,y:G.clientY,dx:b,dy:z,ddx:E,ddy:Q,sourceEvent:G,hover:function(){return Bp9(G.clientX,G.clientY)}})}};
qdw=function(C,F,G){var V=Math.abs(F.clientX-C.x),J=Math.abs(F.clientY-C.y),b=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G||F);!b||sEo[b.localName]&&b.hasAttribute("disabled")||!(isNaN(V)||isNaN(J)||V<=25&&J<=25||SdI(F))||C.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(b,"tap",{x:F.clientX,y:F.clientY,sourceEvent:F,preventer:G})};
PVB=function(C,F,G,V,J){var b;J&&(b=typeof G==="object"&&G!==null)&&(V=C.__dataTemp[F]);V=V!==G&&(V===V||G===G);b&&V&&(C.__dataTemp[F]=G);return V};
RTS=function(){if(pc&&!mO){if(!gCs){gCs=!0;var C=document.createElement("style");C.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(C)}return!0}return!1};
TpE=function(){return YdB};
oCi=function(C,F){YdB=C;Object.setPrototypeOf(C,F.prototype);new F;YdB=null};
r6B=function(C,F){for(var G=0;G<F.length;G++){var V=F[G];if(!!C!=!!V.__hideTemplateChildren__)if(V.nodeType===Node.TEXT_NODE)C?(V.__polymerTextContent__=V.textContent,V.textContent=""):V.textContent=V.__polymerTextContent__;else if(V.localName==="slot")if(C)V.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.vv)((0,_.vv)(V).parentNode).replaceChild(V.__polymerReplaced__,V);else{var J=V.__polymerReplaced__;J&&(0,_.vv)((0,_.vv)(J).parentNode).replaceChild(V,J)}else V.style&&(C?(V.__polymerDisplay__=
V.style.display,V.style.display="none"):V.style.display=V.__polymerDisplay__);V.__hideTemplateChildren__=C;V._showHideChildren&&V._showHideChildren(C)}};
K4s=function(C){return(C=C.__dataHost)&&C._methodHost||C};
mb5=function(C,F,G){var V=G.mutableData?DbT:C_;j3.mixin&&(V=j3.mixin(V));var J=function(){return V.apply(this,arguments)||this};
_.O(J,V);J.prototype.__templatizeOptions=G;J.prototype._bindTemplate(C);psI(J,C,F,G);return J};
VXi=function(C,F,G,V){var J=G.forwardHostProp;if(J&&F.hasHostProps){var b=C.localName=="template",z=F.templatizeTemplateClass;if(!z){if(b){var Q=G.mutableData?Cg9:j3I;z=function(){return Q.apply(this,arguments)||this};
_.O(z,Q);z=F.templatizeTemplateClass=z}else{var E=C.constructor;z=function(){return E.apply(this,arguments)||this};
_.O(z,E);z=F.templatizeTemplateClass=z}var t=F.hostProps,k;for(k in t)z.prototype._addPropertyEffect("_host_"+k,z.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:F7f(J)}),z.prototype._createNotifyingProperty("_host_"+k);FL&&V&&GGZ(F,G,V)}C.__dataProto&&Object.assign(C.__data,C.__dataProto);if(b)oCi(C,z),C.__dataTemp={},C.__dataPending=null,C.__dataOld=null,C._enableProperties();else{Object.setPrototypeOf(C,z.prototype);F=F.hostProps;for(var U in F)U="_host_"+U,U in C&&(F=C[U],delete C[U],C.__data[U]=
F)}}};
F7f=function(C){return function(F,G,V){C.call(F.__templatizeOwner,G.substring(6),V[G])}};
psI=function(C,F,G,V){var J=G.hostProps||{},b;for(b in V.instanceProps){delete J[b];var z=V.notifyInstanceProp;z&&C.prototype._addPropertyEffect(b,C.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:i2S(z)})}if(V.forwardHostProp&&F.__dataHost)for(var Q in J)G.hasHostProps||(G.hasHostProps=!0),C.prototype._addPropertyEffect(Q,C.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Jio()})};
i2S=function(C){return function(F,G,V){C.call(F.__templatizeOwner,F,G,V[G])}};
Jio=function(){return function(C,F,G){C.__dataHost._setPendingPropertyOrPath("_host_"+F,G[F],!0,!0)}};
j3=function(C,F,G){if(GH&&!K4s(C))throw Error("Pd");G=G||{};if(C.__templatizeOwner)throw Error("Qd");C.__templatizeOwner=F;var V=(F?F.constructor:C_)._parseTemplate(C),J=V.templatizeInstanceClass;J||(J=mb5(C,V,G),V.templatizeInstanceClass=J);var b=K4s(C);VXi(C,V,G,b);G=function(){return J.apply(this,arguments)||this};
_.O(G,J);G.prototype._methodHost=b;G.prototype.__dataHost=C;G.prototype.__templatizeOwner=F;G.prototype.__hostProps=V.hostProps;return G};
GGZ=function(C,F,G){G=G.constructor._properties;C=C.propertyEffects;F=F.instanceProps;for(var V in C)if(!(G[V]||F&&F[V]))for(var J=C[V],b=0;b<J.length;b++){var z=J[b].info.part;if(!z.signature||!z.signature.static){console.warn("Property '"+V+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
$5I=function(C,F){for(var G;F;)if(G=F.__dataHost?F:F.__templatizeInstance)if(G.__dataHost!=C)F=G.__dataHost;else return G;else F=(0,_.vv)(F).parentNode;return null};
V9=function(C){return C.localName==="slot"};
b2s=function(){for(var C=Ju.prototype,F="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),G={},V=0;V<F.length;G={method$jscomp$33:void 0},V++)G.method$jscomp$33=F[V],C[G.method$jscomp$33]=function(J){return function(){return this.node[J.method$jscomp$33].apply(this.node,arguments)}}(G)};
nLs=function(C,F){for(var G={},V=0;V<F.length;G={name$jscomp$448:void 0},V++)G.name$jscomp$448=F[V],Object.defineProperty(C,G.name$jscomp$448,{get:function(J){return function(){return this.node[J.name$jscomp$448]}}(G),
configurable:!0})};
uhS=function(){for(var C=Ju.prototype,F=["textContent","innerHTML","className"],G={},V=0;V<F.length;G={name$jscomp$449:void 0},V++)G.name$jscomp$449=F[V],Object.defineProperty(C,G.name$jscomp$449,{get:function(J){return function(){return this.node[J.name$jscomp$449]}}(G),
set:function(J){return function(b){this.node[J.name$jscomp$449]=b}}(G),
configurable:!0})};
zqB=function(){$v=document.documentElement.getAttribute("dir");$v=document.documentElement.getAttribute("dir");for(var C=0;C<bn.length;C++){var F=bn[C];F.__autoDirOptOut||F.setAttribute("dir",$v)}};
W7q=function(){n_=!0;requestAnimationFrame(function(){n_=!1;Q3A(IWA);setTimeout(function(){for(var C=0,F=un.length;C<F;C++)ELS(un.shift())})})};
Q3A=function(C){for(;C.length;)ELS(C.shift())};
ELS=function(C){var F=C[0],G=C[1];C=C[2];try{G.apply(F,C)}catch(V){setTimeout(function(){throw V;})}};
_.tXq=function(C,F,G){n_||W7q();IWA.push([C,F,G])};
_.zH=function(C,F,G){n_||W7q();un.push([C,F,G])};
U5o=function(C,F){F=F===void 0?!1:F;if(!aWI||!kGS||!aWI.handlesDynamicScoping)return null;var G=kGS.ScopingShim;if(!G)return null;var V=G.scopeForNode(C),J=(0,_.vv)(C).getRootNode(),b=function(z){if((0,_.vv)(z).getRootNode()===J){var Q=Array.from(aWI.nativeMethods.querySelectorAll.call(z,"*"));Q.push(z);for(z=0;z<Q.length;z++){var E=Q[z];if((0,_.vv)(E).getRootNode()===J){var t=G.currentScopeForNode(E);t!==V&&(t!==""&&G.unscopeNode(E,t),G.scopeNode(E,V))}}}};
b(C);return F?(F=new MutationObserver(function(z){for(var Q=0;Q<z.length;Q++)for(var E=z[Q],t=0;t<E.addedNodes.length;t++){var k=E.addedNodes[t];k.nodeType===Node.ELEMENT_NODE&&b(k)}}),F.observe(C,{childList:!0,
subtree:!0}),F):null};
H2I=function(){document.body.removeAttribute("unresolved")};
O29=function(C){var F=C=C.replace(lW9,"").replace(yi9,""),G=new Z2B;G.start=0;G.end=F.length;for(var V=G,J=0,b=F.length;J<b;J++)if(F[J]==="{"){V.rules||(V.rules=[]);var z=V,Q=z.rules[z.rules.length-1]||null;V=new Z2B;V.start=J+1;V.parent=z;V.previous=Q;z.rules.push(V)}else F[J]==="}"&&(V.end=J+1,V=V.parent||G);return Nns(G,C)};
Nns=function(C,F){var G=F.substring(C.start,C.end-1);C.parsedCssText=C.cssText=G.trim();C.parent&&(G=F.substring(C.previous?C.previous.end:C.parent.start,C.start-1),G=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(G),G=G.replace(Xc5," "),G=G.substring(G.lastIndexOf(";")+1),G=C.parsedSelector=C.selector=G.trim(),C.atRule=G.indexOf("@")===0,C.atRule?G.indexOf("@media")===0?C.type=4:G.match(wcw)&&(C.type=7,C.keyframesName=C.selector.split(Xc5).pop()):G.indexOf("--")===
0?C.type=1E3:C.type=1);if(G=C.rules)for(var V=0,J=G.length,b=void 0;V<J&&(b=G[V]);V++)Nns(b,F);return C};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(C){return C.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var F=arguments[1],G=6-F.length;G--;)F="0"+F;return"\\"+F})};
MXW=function(C,F,G){G=G===void 0?"":G;var V="";if(C.cssText||C.rules){var J=C.rules;if(J&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(J))for(var b=0,z=J.length,Q=void 0;b<z&&(Q=J[b]);b++)V=MXW(Q,F,V);else F?F=C.cssText:(F=C.cssText,F=F.replace(Sjq,"").replace(L7s,""),F=F.replace(Bni,"").replace(vLW,"")),(V=F.trim())&&(V="  "+V+"\n")}V&&(C.selector&&(G+=C.selector+" {\n"),G+=V,C.selector&&(G+="}\n\n"));return G};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(C){C=C[0];return!!C&&!!C.selector&&C.selector.indexOf("--")===0};
hqS=function(C){if(C=fW5[C])C._applyShimCurrentVersion=C._applyShimCurrentVersion||0,C._applyShimValidatingVersion=C._applyShimValidatingVersion||0,C._applyShimNextVersion=(C._applyShimNextVersion||0)+1};
ciq=function(C){return C._applyShimCurrentVersion===C._applyShimNextVersion};
eqA=function(C){C._applyShimValidatingVersion=C._applyShimNextVersion;C._validating||(C._validating=!0,AiI.then(function(){C._applyShimCurrentVersion=C._applyShimNextVersion;C._validating=!1}))};
x5I=function(C){if(!C)return"";typeof C==="string"&&(C=O29(C));return MXW(C,d5B)};
s39=function(C){!C.__cssRules&&C.textContent&&(C.__cssRules=O29(C.textContent));return C.__cssRules||null};
PgZ=function(C,F,G,V){if(C){var J=!1,b=C.type;if(V&&b===4){var z=C.selector.match(qjS);z&&(window.matchMedia(z[1]).matches||(J=!0))}b===1?F(C):G&&b===7?G(C):b===1E3&&(J=!0);if((C=C.rules)&&!J)for(J=0,b=C.length,z=void 0;J<b&&(z=C[J]);J++)PgZ(z,F,G,V)}};
gLo=function(C,F){var G=C.indexOf("var(");if(G===-1)return F(C,"","","");a:{var V=0;var J=G+3;for(var b=C.length;J<b;J++)if(C[J]==="(")V++;else if(C[J]===")"&&--V===0)break a;J=-1}V=C.substring(G+4,J);G=C.substring(0,G);C=gLo(C.substring(J+1),F);b=V.indexOf(",");if(b===-1)return F(G,V.trim(),"",C);J=V.substring(0,b).trim();V=V.substring(b+1).trim();return F(G,J,V,C)};
Rqi=function(C){if(Q9!==void 0)return Q9;if(C.__cssBuild===void 0){var F=C.getAttribute("css-build");if(F)C.__cssBuild=F;else{a:{F=C.localName==="template"?C.content.firstChild:C.firstChild;if(F instanceof Comment&&(F=F.textContent.trim().split(":"),F[0]==="css-build")){F=F[1];break a}F=""}if(F!==""){var G=C.localName==="template"?C.content.firstChild:C.firstChild;G.parentNode.removeChild(G)}C.__cssBuild=F}}return C.__cssBuild||""};
Tnf=function(C,F,G,V){for(var J=F._noAccessors,b=Object.getOwnPropertyNames(F),z=0;z<b.length;z++){var Q=b[z];if(!(Q in V))if(J)C[Q]=F[Q];else{var E=Object.getOwnPropertyDescriptor(F,Q);E&&(E.configurable=!0,Object.defineProperty(C,Q,E))}}for(var t in Yjo)F[t]&&(G[t]=G[t]||[],G[t].push(F[t]))};
oLw=function(C,F,G){F=F||[];for(var V=C.length-1;V>=0;V--){var J=C[V];J?Array.isArray(J)?oLw(J,F):F.indexOf(J)<0&&(!G||G.indexOf(J)<0)&&F.unshift(J):console.warn("behavior is null, check for missing or 404 import")}return F};
riE=function(C,F){for(var G in F){var V=C[G],J=F[G];C[G]=!("value"in J)&&V&&"value"in V?Object.assign({value:V.value},J):J}};
pcI=function(C,F,G){var V={},J=function(){return F.apply(this,arguments)||this};
_.O(J,F);J._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(z)for(var E=0,t;E<z.length;E++)t=z[E],t.properties&&this.createProperties(t.properties),t.observers&&this.createObservers(t.observers,t.properties);C.properties&&this.createProperties(C.properties);C.observers&&this.createObservers(C.observers,C.properties);this._prepareTemplate()}else F._finalizeClass.call(this)};
J.prototype.created=function(){F.prototype.created.call(this);var E=V.created;if(E)for(var t=0;t<E.length;t++)E[t].call(this)};
J.prototype._registered=function(){var E=J.prototype;if(!E.hasOwnProperty("__hasRegisterFinished")){E.__hasRegisterFinished=!0;F.prototype._registered.call(this);pc&&Q(E);E=Object.getPrototypeOf(this);var t=V.beforeRegister;if(t)for(var k=0;k<t.length;k++)t[k].call(E);if(t=V.registered)for(k=0;k<t.length;k++)t[k].call(E)}};
J.prototype._applyListeners=function(){F.prototype._applyListeners.call(this);var E=V.listeners;if(E)for(var t=0;t<E.length;t++){var k=E[t];if(k)for(var U in k)this._addMethodEventListenerToNode(this,U,k[U])}};
J.prototype._ensureAttributes=function(){var E=V.hostAttributes;if(E)for(var t=E.length-1;t>=0;t--){var k=E[t],U;for(U in k)this._ensureAttribute(U,k[U])}F.prototype._ensureAttributes.call(this)};
J.prototype.ready=function(){F.prototype.ready.call(this);var E=V.ready;if(E)for(var t=0;t<E.length;t++)E[t].call(this)};
J.prototype.attached=function(){F.prototype.attached.call(this);var E=V.attached;if(E)for(var t=0;t<E.length;t++)E[t].call(this)};
J.prototype.detached=function(){F.prototype.detached.call(this);var E=V.detached;if(E)for(var t=0;t<E.length;t++)E[t].call(this)};
J.prototype.attributeChanged=function(E,t,k){F.prototype.attributeChanged.call(this);var U=V.attributeChanged;if(U)for(var H=0;H<U.length;H++)U[H].call(this,E,t,k)};
_.I6.Object.defineProperties(J,{properties:{configurable:!0,enumerable:!0,get:function(){var E={};if(z)for(var t=0;t<z.length;t++)riE(E,z[t].properties);riE(E,C.properties);return E}},
observers:{configurable:!0,enumerable:!0,get:function(){var E=[];if(z)for(var t=0,k;t<z.length;t++)k=z[t],k.observers&&(E=E.concat(k.observers));C.observers&&(E=E.concat(C.observers));return E}}});
if(G){Array.isArray(G)||(G=[G]);var b=F.prototype.behaviors;var z=oLw(G,null,b);J.prototype.behaviors=b?b.concat(G):z}var Q=function(E){if(z)for(var t=z,k=0;k<t.length;k++)Tnf(E,t[k],V,K7f);Tnf(E,C,V,D5q)};
pc||Q(J.prototype);J.generatedFrom=C;return J};
FSi=function(C){var F=typeof C!=="string"?C:{is:C,notifyObserversOnUndefined:!0};F.fastInit===void 0&&(F.fastInit=!0);return function(G){if(!F.disableInheritanceCheck&&Object.getPrototypeOf(G.prototype).constructor!==_.EH)throw Error("Ud");var V=G.prototype;V.is=F.is;$xS(V,"created",function(){this.hostElement=this;this.polymerController=this});
m5T(V,G,F.fastInit);F.notifyObserversOnUndefined&&(V._overrideLegacyUndefined=!0);if(CGE)for(var J=_.u(Object.getOwnPropertyNames(V)),b=J.next();!b.done;b=J.next()){b=b.value;var z=Object.getOwnPropertyDescriptor(V,b);z.enumerable===!1&&(z.enumerable=!0,Object.defineProperty(V,b,z))}if("template"in G)var Q=function(){return G.template};
else F.template!==void 0&&(Q=F.template);if(Q!==void 0){var E;Object.defineProperty(V,"_template",{get:function(){E===void 0&&(E=Q());return E},
set:function(t){E=t},
configurable:!0,enumerable:!0})}Polymer(V);G[jF5]=V}};
Gi5=function(C){C=C===void 0?{}:C;C.fastInit===void 0&&(C.fastInit=!0);return function(F){if(!C.disableInheritanceCheck&&Object.getPrototypeOf(F.prototype).constructor!==WS)throw Error("Vd");m5T(F.prototype,F,C.fastInit)}};
m5T=function(C,F,G){G=G===void 0?!1:G;VIT(F);G?$xS(C,"created",function(){this.disableEnforceFastDefaultValuesCheck||iko(F,this)}):$xS(C,"ready",function(){for(var V={},J=_.u(b35(this.behaviors)),b=J.next();!b.done;b=J.next())b=b.value,b.properties&&Object.assign(V,J8T(this,b.properties));
Object.assign(V,J8T(this,this.properties));iko(F,this);J=_.u(Object.keys(V));for(b=J.next();!b.done;b=J.next())b=b.value,this[b]=V[b]})};
iko=function(C,F){if(CGE){C=new C;for(var G=_.u(Object.getOwnPropertyNames(C)),V=G.next();!V.done;V=G.next())V=V.value,F[V]=C[V];for(G=F;G&&G!==Object.prototype;G=Object.getPrototypeOf(G)){V=_.u(Object.getOwnPropertyNames(G));for(var J=V.next();!J.done;J=V.next())J=J.value,C.hasOwnProperty(J)||Object.defineProperty(C,J,$E9(F,J))}}else C.apply(F)};
$E9=function(C,F){return{get:function(){var G=C[F];return G instanceof Function?G.bind(C):G},
set:function(G){C[F]=G}}};
J8T=function(C,F){if(!F)return{};for(var G={},V=_.u(Object.keys(F)),J=V.next();!J.done;J=V.next())if(J=J.value,!F[J].readOnly){var b=C[J];b!==void 0&&(G[J]=b)}return G};
VIT=function(C){var F=new C;C=C.prototype.properties||{};for(var G=_.u(Object.keys(C)),V=G.next();!V.done;V=G.next())if(V=V.value,F.hasOwnProperty(V)){var J=C[V];typeof J==="function"&&(C[V]=J={type:J});F[V]!=null&&J.type===Object&&(J.type=bks(F[V].constructor))}};
bks=function(C){for(var F=_.u(nkI),G=F.next();!G.done;G=F.next())if(G=G.value,C===G)return G;return Object};
udo=function(C){return function(F,G){F.behaviors=F.behaviors||[];F.behaviors.push(C||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",F,G).prototype:void 0));Object.defineProperty(F,G,{get:function(){return this},
enumerable:!0,configurable:!0})}};
zXS=function(C){C=C===void 0?{}:C;return function(F,G){F.properties=F.properties||{};C.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?C.type=bks(Reflect.getMetadata("design:type",F,G)):C.type=String);var V=C,J=F.properties[G];F.properties[G]=J?Object.assign({},J,V):V}};
QFB=function(C){return function(F,G){F.listeners=F.listeners||{};F.listeners[C]=G}};
Inw=function(){var C=_.Rn.apply(0,arguments);if(C.length===0)throw Error("Wd");return function(F,G){F.observers=F.observers||[];F.observers.push(G+"("+C.join(",")+")")}};
Ek9=function(){var C=_.Rn.apply(0,arguments);return function(F,G,V){var J=Object.getOwnPropertyDescriptor(F,G).get,b="__compute__"+G;Object.defineProperty(F,b,{value:J,enumerable:!0});F.properties=F.properties||{};J=F.properties[G];J||(J={},F.properties[G]=J);J.computed=b+"("+C.join(",")+")";V.get=void 0}};
_.tu=function(C,F,G){_.hV.call(this);this.JSC$11317_id_=null;this.usingListeners_=!1;this.JSC$11317_listener_=C;this.handler_=G;this.JSC$11317_win_=F||window;this.callback_=(0,_.ck)(this.JSC$11319_doAction_,this)};
a6=function(C){this.range_=C};
kv=function(C){this.range_=C};
y9=function(C,F,G){_.hV.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=C;this.scrollTimer_=new _.UH(50);this.JSC$11396_eventHandler_=new _.ln(this);this.scrollDelta_=new _.ql;this.containerIsActuallyContent_=C.tagName==="BODY"||C.tagName==="HTML";this.containerBounds_=WSw(C);this.containerIsActuallyContent_&&(C=_.LA(),this.containerBounds_.height=C.height,this.containerBounds_.width=C.width);this.margin_=F||0;if(F){if(F=this.containerBounds_.clone(),C=this.margin_){var V=
Math.min(C,F.height*.25);F.top+=V;F.height-=2*V;C=Math.min(C,F.width*.25);F.left+=C;F.width-=2*C}}else F=this.containerBounds_;this.scrollBounds_=F;G||this.JSC$11396_eventHandler_.listen(_.gS(this.containerNode_),"mousemove",this.JSC$11398_onMouseMove);this.JSC$11396_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11398_onTick_)};
_.Zc=function(C){this.mechanism=C};
Nk=function(C,F){this.JSC$11494_key_=C;this.JSC$11494_value_=F};
anf=function(C){if(C>=55296&&C<=57343||C>1114111)return"\ufffd";C in tI9&&(C=tI9[C]);var F="";C>65535&&(C-=65536,F+=String.fromCharCode(C>>>10&1023|55296),C=56320|C&1023);return F+=String.fromCharCode(C)};
kiB=function(C,F){return C<F?1:-1};
Hkw=function(){return function(C){return C.charAt(1)==="#"?C.charAt(2)==="X"||C.charAt(2)==="x"?anf(parseInt(C.substr(3),16)):anf(parseInt(C.substr(2),10)):UEB[C.slice(1,-1)]}};
ZkE=function(C){return C.slice(1,C.length-1).trim().replace(ln9,function(F){return y8B[F]||" "})};
OH=function(C){return C===32||C===9};
XL=function(C,F){return F<C.length?C.charCodeAt(F):-1};
N8o=function(C){for(;C;){if(C._lastLineBlank)return!0;var F=C.type;if(F==="list"||F==="item")C=C._lastChild;else break}return!1};
wt=function(C){if(Okq.test(C)){var F=1,G=0,V=0;for(C[G]=="|"&&G++;G<C.length;){switch(C[G]){case "|":V=1;break;case " ":break;case "\t":break;default:V&&(V=0,F++)}G++}return XNs.test(C)?-F:F}return 0};
wNi=function(C){return C=="table"||C=="row"||C=="cell"};
MIZ=function(){return new Mk("document",[[1,1],[0,0]])};
SVA=function(){};
S3=function(){var C={safe:!1};C=C||{};C.softbreak=C.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=C};
hXB=function(C,F){var G="";if(C)if(C=C.toLowerCase(),C===" "||LSA.test(C))G="space";else if(B8f.test(C))G="esc";else if(C.length==1){if(!F||vkB.test(C))G=C}else G=fnT.test(C)?C.replace("arrow",""):C=="multiply"?"*":C;return G};
dEi=function(C,F){var G=C.hasModifiers;if(F.key)G=hXB(F.key,G);else if(F.detail&&F.detail.key)G=hXB(F.detail.key,G);else{G=F.keyIdentifier;var V="";G&&(G in c8W?V=c8W[G]:A8q.test(G)?(G=parseInt(G.replace("U+","0x"),16),V=String.fromCharCode(G).toLowerCase()):V=G.toLowerCase());(G=V)||(G=F.keyCode,V="",Number(G)&&(G>=65&&G<=90?V=String.fromCharCode(32+G):G>=112&&G<=123?V="f"+(G-112+1):G>=48&&G<=57?V=String(G-48):G>=96&&G<=105?V=String(G-96):V=eXo[G]),G=V);G=G||""}return G===C.key&&(!C.hasModifiers||
!!F.shiftKey===!!C.shiftKey&&!!F.ctrlKey===!!C.ctrlKey&&!!F.altKey===!!C.altKey&&!!F.metaKey===!!C.metaKey)};
sF5=function(C){return C.length===1?{combo:C,key:C,event:"keydown"}:C.split("+").reduce(function(F,G){var V=G.split(":");G=V[0];V=V[1];G in xEB?(F[xEB[G]]=!0,F.hasModifiers=!0):(F.key=G,F.event=V||"keydown");return F},{combo:C.split(":").shift()})};
qVo=function(C){return C.trim().split(" ").map(function(F){return sF5(F)})};
PGZ=function(C,F){if(C&&C.fn){var G=C.fn;C.fn=function(){try{G.apply(this,arguments)}catch(V){if(V instanceof L_)console.warn("Argument '"+V.arg+"'"+(F?" for method '"+F+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw V;}}}return C};
RXI=function(){var C=[],F;var G=G||_.gk5.length;for(F=0;F<8;F++)C[F]=_.gk5[0|Math.random()*G];return C.join("")};
YVW=function(){var C=_.Rn.apply(0,arguments);return C.length===0?function(F){return F}:C.length===1?C[0]:C.reduce(function(F,G){return function(){return F(G.apply(null,_.da(_.Rn.apply(0,arguments))))}})};
T8S=function(){var C=_.Rn.apply(0,arguments);return function(F){return function(G,V){G=F(G,V);var J=function(){throw Error("Ge");},b={getState:G.getState,
dispatch:function(z){return J.apply(null,[z].concat(_.da(_.Rn.apply(1,arguments))))}};
V=C.map(function(z){return z(b)});
J=YVW.apply(null,_.da(V))(G.dispatch);return Object.assign({},G,{dispatch:J})}}};
KSA=function(C){Object.keys(C).forEach(function(F){var G=C[F];if(typeof G(void 0,{type:oki})==="undefined")throw Error("He`"+F);if(typeof G(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+r89()})==="undefined")throw Error("Ie`"+F+"`"+oki);})};
BS=function(C){for(var F=Object.keys(C),G={},V=0;V<F.length;V++){var J=F[V];typeof C[J]==="function"&&(G[J]=C[J])}var b=Object.keys(G);try{KSA(G)}catch(Q){var z=Q}return function(Q,E){Q=Q===void 0?{}:Q;if(z)throw z;for(var t=!1,k={},U=0;U<b.length;U++){var H=b[U],l=Q[H],N=(0,G[H])(l,E);if(typeof N==="undefined")throw Q=E&&E.type,Error("Je`"+(Q?'"'+String(Q)+'"':"(unknown type)")+"`"+H);k[H]=N;t=t||N!==l}return(t=t||b.length!==Object.keys(Q).length)?k:Q}};
DEZ=function(C,F,G){function V(){if(k)throw Error("Ke");return Q}
function J(l){if(typeof l!=="function")throw Error("Le`"+typeof l);if(k)throw Error("Me");var N=!0;t===E&&(t=E.slice());t.push(l);return function(){if(N){if(k)throw Error("Ne");N=!1;t===E&&(t=E.slice());var S=t.indexOf(l);t.splice(S,1);E=null}}}
function b(l){if(typeof l!=="object"||l===null)var N=!1;else{for(N=l;Object.getPrototypeOf(N)!==null;)N=Object.getPrototypeOf(N);N=Object.getPrototypeOf(l)===N}if(!N)throw Error("Oe`"+typeof l);if(typeof l.type==="undefined")throw Error("Pe");if(k)throw Error("Qe");try{k=!0,Q=z(Q,l)}finally{k=!1}N=E=t;for(var S=0;S<N.length;S++)(0,N[S])();return l}
if(typeof F==="function"&&typeof G==="function"||typeof G==="function"&&typeof arguments[3]==="function")throw Error("Re");typeof F==="function"&&typeof G==="undefined"&&(G=F,F=void 0);if(typeof G!=="undefined"){if(typeof G!=="function")throw Error("Se`"+typeof G);return G(DEZ)(C,F)}if(typeof C!=="function")throw Error("Te`"+typeof C);var z=C,Q=F,E=[],t=E,k=!1;b({type:oki});var U={},H=(U.dispatch=b,U.subscribe=J,U.getState=V,U.replaceReducer=function(l){if(typeof l!=="function")throw Error("Ue`"+
typeof l);z=l;b({type:pN9});return H},U[mEB]=function(){var l={};
return l.subscribe=function(N){function S(){N.next&&N.next(V())}
if(typeof N!=="object"||N===null)throw new TypeError("Ve`"+typeof N);S();return{unsubscribe:J(S)}},l[mEB]=function(){return this},l},U);
return H};
CTB=function(C){function F(){J&&(J=!1,C());b&&V()}
function G(){requestAnimationFrame(F)}
function V(){var Q=Date.now();if(J){if(Q-z<2)return;b=!0}else J=!0,b=!1,setTimeout(G,20);z=Q}
var J=!1,b=!1,z=0;return V};
vS=function(C){return typeof C==="number"?C:parseFloat(C)||0};
j5f=function(C){return _.Rn.apply(1,arguments).reduce(function(F,G){return F+vS(C["border-"+G+"-width"])},0)};
iCI=function(C){if(FAB[C])return FAB[C];var F=globalThis[C],G=F.prototype,V=C in GYA?GYA[C]:void 0;V=!(!V||!V.every(function(E){var t,k;return!!((t=Object.getOwnPropertyDescriptor(G,E))==null?0:(k=t.get)==null?0:k.toString().includes("[native code]"))}));
var J=C in VL5?VL5[C]:void 0;J=!(!J||!J.every(function(E){var t;return typeof G[E]==="function"&&((t=G[E])==null?void 0:t.toString().includes("[native code]"))}));
if(V&&J&&!globalThis.Zone)return FAB[C]=F.prototype;try{var b=document.createElement("iframe");document.body.appendChild(b);var z=b.contentWindow;if(!z)return F.prototype;var Q=z[C].prototype;document.body.removeChild(b);return Q?FAB[C]=Q:G}catch(E){return G}};
f_=function(C,F,G){var V=C+"."+String(G);if(JP5[V])return JP5[V].call(F);C=iCI(C);var J;C=(J=Object.getOwnPropertyDescriptor(C,G))==null?void 0:J.get;if(!C)return F[G];JP5[V]=C;return C.call(F)};
bCf=function(C,F){var G="Node."+String(F);if($XA[G])return $XA[G].bind(C);var V=iCI("Node")[F];if(typeof V!=="function")return C[F];$XA[G]=V;return V.bind(C)};
hu=function(C,F,G){try{if(!(F in C))return function(){};
var V=C[F],J=G(V);typeof J==="function"&&(J.prototype=J.prototype||{},Object.defineProperties(J,{__rrweb_original__:{enumerable:!1,value:V}}));C[F]=J;return function(){C[F]=V}}catch(b){return function(){}}};
e3=function(C){var F=C&&"host"in C&&"mode"in C&&cS(C)||null;return!!(F&&"shadowRoot"in F&&Au(F)===C)};
dt=function(C){return Object.prototype.toString.call(C)==="[object ShadowRoot]"};
n8i=function(C){C.includes(" background-clip: text;")&&!C.includes(" -webkit-background-clip: text;")&&(C=C.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"));return C};
zPq=function(C){try{var F=C.rules||C.cssRules;if(!F)return null;var G=C.href;!G&&C.ownerNode&&C.ownerNode.ownerDocument&&(G=C.ownerNode.ownerDocument.location.href);var V=Array.from(F,function(J){return u3Z(J,G)}).join("");
return n8i(V)}catch(J){return null}};
u3Z=function(C,F){if("styleSheet"in C){try{var G;if(!(G=zPq(C.styleSheet))){var V=C.cssText;if(V.split('"').length<3)G=V;else{var J=["@import","url("+JSON.stringify(C.href)+")"];C.layerName===""?J.push("layer"):C.layerName&&J.push("layer("+C.layerName+")");C.supportsText&&J.push("supports("+C.supportsText+")");C.media.length&&J.push(C.media.mediaText);G=J.join(" ")+";"}}var b=G}catch(z){b=C.cssText}return C.styleSheet.href?Q5I(b,C.styleSheet.href):b}b=C.cssText;"selectorText"in C&&C.selectorText.includes(":")&&
(b=b.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"));return F?Q5I(b,F):b};
Ifq=function(C){var F=C.element;var G=C.maskInputOptions;var V=C.tagName;var J=C.type;var b=C.value;C=C.maskInputFn;b=b||"";J=J&&J.toLowerCase();if(G[V.toLowerCase()]||J&&G[J])b=C?C(b,F):"*".repeat(b.length);return b};
E8E=function(C){var F=C.getContext("2d");if(!F)return!0;for(var G=0;G<C.width;G+=50)for(var V=0;V<C.height;V+=50){var J=F.getImageData;if((new Uint32Array(("__rrweb_original__"in J?J.__rrweb_original__:J).call(F,G,V,Math.min(50,C.width-G),Math.min(50,C.height-V)).data.buffer)).some(function(b){return b!==0}))return!1}return!0};
WAE=function(C){var F=C.type;return C.hasAttribute("data-rr-is-password")?"password":F?F.toLowerCase():null};
tLZ=function(C){try{var F=new URL(C,window.location.href)}catch(J){return null}var G,V;return(V=(G=F.pathname.match(/\.([0-9a-z]+)(?:$)/i))==null?void 0:G[1])!=null?V:null};
Q5I=function(C,F){return(C||"").replace(af9,function(G,V,J,b,z,Q){J=J||z||Q;V=V||b||"";if(!J)return G;if(kYT.test(J)||UXo.test(J)||HCi.test(J))return"url("+V+J+V+")";if(J[0]==="/")return G=F.indexOf("//")>-1?F.split("/").slice(0,3).join("/"):F.split("/")[0],G=G.split("?")[0],"url("+V+(G+J)+V+")";G=F.split("/");b=J.split("/");G.pop();b=_.u(b);for(J=b.next();!J.done;J=b.next())J=J.value,J!=="."&&(J===".."?G.pop():G.push(J));return"url("+V+G.join("/")+V+")"})};
lfi=function(C,F){return(F=F===void 0?!1:F)?C.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):C.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")};
yPT=function(C,F){var G=G===void 0?!1:G;F=Array.from(F.childNodes);var V=[],J=0;if(F.length>1&&C&&typeof C==="string")for(var b=lfi(C,G),z=b.length/C.length,Q=1;Q<F.length;Q++)if(F[Q].textContent&&typeof F[Q].textContent==="string"){for(var E=lfi(F[Q].textContent,G),t=3;t<E.length&&(E[t].match(/[a-zA-Z0-9]/)||E.indexOf(E.substring(0,t),1)!==-1);t++);for(;t<E.length;t++){var k=E.substring(0,t),U=b.split(k),H=-1;if(U.length===2)H=U[0].length;else if(U.length>2&&U[0]===""&&F[Q-1].textContent!=="")H=
b.indexOf(k,1);else if(U.length===1){k=k.substring(0,k.length-1);U=b.split(k);if(U.length<=1)return V.push(C),V;t=101}else t===E.length-1&&(H=b.indexOf(k));if(U.length>=2&&t>100){var l=F[Q-1].textContent;l&&typeof l==="string"&&(H=b.indexOf(k,lfi(l).length));H===-1&&(H=U[0].length)}if(H!==-1){for(E=Math.floor(H/z);E>0&&E<C.length;){J+=1;if(J>50*F.length)return V.push(C),V;t=lfi(C.substring(0,E),G);if(t.length===H){V.push(C.substring(0,E));C=C.substring(E);b=b.substring(H);break}else E=t.length<H?
E+Math.max(1,Math.floor((H-t.length)/z)):E-Math.max(1,Math.floor((t.length-H)*z))}break}}}V.push(C);return V};
N1E=function(){return ZCB++};
Xdi=function(C){if(C instanceof HTMLFormElement)return"form";C=C.tagName.toLowerCase();return OC5.test(C)?"div":C};
LAo=function(C,F){function G(t){return(t=t.exec(F.substring(V)))?(t=t[0],V+=t.length,t):""}
if(F.trim()==="")return F;for(var V=0,J=[];;){G(wdA);if(V>=F.length)break;var b=G(MLE);if(b.slice(-1)===",")b=SWS(C,b.substring(0,b.length-1)),J.push(b);else{var z="";b=SWS(C,b);for(var Q=!1;;){var E=F.charAt(V);if(E===""){J.push((b+z).trim());break}else if(Q)E===")"&&(Q=!1);else if(E===","){V+=1;J.push((b+z).trim());break}else E==="("&&(Q=!0);z+=E;V+=1}}}return J.join(", ")};
SWS=function(C,F){return F&&F.trim()!==""?B1i(C,F):F};
B1i=function(C,F){var G=v8o.get(C);G||(G=C.createElement("a"),v8o.set(C,G));if(!F)F="";else if(F.startsWith("blob:")||F.startsWith("data:"))return F;TB(G,F);return G.href};
ffq=function(C,F,G,V){return V?G==="src"||G==="href"&&(F!=="use"||V[0]!=="#")||G==="xlink:href"&&V[0]!=="#"||G==="background"&&(F==="table"||F==="td"||F==="th")?SWS(C,V):G==="srcset"?LAo(C,V):G==="style"?Q5I(V,B1i(C)):F==="object"&&G==="data"?SWS(C,V):V:V};
hPT=function(C,F){return(C==="video"||C==="audio")&&F==="autoplay"};
cPE=function(C,F,G){try{if(typeof F==="string"){if(C.classList.contains(F))return!0}else for(var V=C.classList.length;V--;)if(F.test(C.classList[V]))return!0;if(G)return C.matches(G)}catch(J){}return!1};
APi=function(C,F,G){if(!C)return!1;if(C.nodeType!==C.ELEMENT_NODE)return G?APi(xv(C),F,G):!1;for(var V=C.classList.length;V--;)if(F.test(C.classList[V]))return!0;return G?APi(xv(C),F,G):!1};
ePf=function(C,F,G,V){if(C.nodeType===C.ELEMENT_NODE){if(!sH(C).length)return!1}else{if(qk(C)===null)return!1;C=qk(C)}try{if(typeof F==="string")if(V){if(C.closest("."+F))return!0}else{if(C.classList.contains(F))return!0}else if(APi(C,F,V))return!0;if(G)if(V){if(C.closest(G))return!0}else if(C.matches(G))return!0}catch(J){}return!1};
dX5=function(C,F,G){var V=C.contentWindow;if(V){var J=!1;try{var b=V.document.readyState}catch(Q){return}if(b!=="complete"){var z=setTimeout(function(){J||(F(),J=!0)},G);
C.addEventListener("load",function(){clearTimeout(z);J=!0;F()})}else V.location.href==="about:blank"&&C.src!=="about:blank"&&C.src!==""||setTimeout(F,0),C.addEventListener("load",F)}};
xXw=function(C,F,G){var V=!1;try{var J=C.sheet}catch(z){return}if(!J){var b=setTimeout(function(){V||(F(),V=!0)},G);
C.addEventListener("load",function(){clearTimeout(b);V=!0;F()})}};
PTZ=function(C,F){var G=F.doc,V=F.blockClass,J=F.blockSelector,b=F.needsMask,z=F.inlineStylesheet,Q=F.maskInputOptions===void 0?{}:F.maskInputOptions,E=F.maskTextFn,t=F.maskInputFn,k=F.dataURLOptions===void 0?{}:F.dataURLOptions,U=F.inlineImages,H=F.recordCanvas,l=F.keepIframeSrcFn,N=F.newlyAddedElement===void 0?!1:F.newlyAddedElement,S=F.cssCaptured===void 0?!1:F.cssCaptured;F=F.mirror;F.nodeMetaMap.has(G)?(F=F.getId(G),F=F===1?void 0:F):F=void 0;switch(C.nodeType){case C.DOCUMENT_NODE:return C.compatMode!==
"CSS1Compat"?{type:0,childNodes:[],compatMode:C.compatMode}:{type:0,childNodes:[]};case C.DOCUMENT_TYPE_NODE:return{type:1,name:C.name,publicId:C.publicId,systemId:C.systemId,rootId:F};case C.ELEMENT_NODE:return s5q(C,{doc:G,blockClass:V,blockSelector:J,inlineStylesheet:z,maskInputOptions:Q,maskInputFn:t,dataURLOptions:k,inlineImages:U,recordCanvas:H,keepIframeSrcFn:l,newlyAddedElement:N,rootId:F});case C.TEXT_NODE:return z=(V=xv(C))&&V.tagName,V="",J=z==="STYLE"?!0:void 0,(z=z==="SCRIPT"?!0:void 0)?
V="SCRIPT_PLACEHOLDER":S||(V=qWq(C),J&&V&&(V=Q5I(V,B1i(G)))),!J&&!z&&V&&b&&(V=E?E(V,qk(C)):V.replace(/[\S]/g,"*")),{type:3,textContent:V||"",rootId:F};case C.CDATA_SECTION_NODE:return{type:4,textContent:"",rootId:F};case C.COMMENT_NODE:return{type:5,textContent:qWq(C)||"",rootId:F};default:return!1}};
s5q=function(C,F){var G=F.doc,V=F.inlineStylesheet,J=F.maskInputOptions===void 0?{}:F.maskInputOptions,b=F.maskInputFn,z=F.dataURLOptions===void 0?{}:F.dataURLOptions,Q=F.inlineImages,E=F.recordCanvas,t=F.keepIframeSrcFn,k=F.newlyAddedElement===void 0?!1:F.newlyAddedElement,U=F.rootId;F=cPE(C,F.blockClass,F.blockSelector);for(var H=Xdi(C),l={},N=C.attributes.length,S=0;S<N;S++){var f=C.attributes[S];hPT(H,f.name)||(l[f.name]=ffq(G,H,f.name.toLowerCase(),f.value))}H==="link"&&V&&(V=Array.from(G.styleSheets).find(function(g){return g.href===
C.href}),N=null,V&&(N=zPq(V)),N&&(delete l.rel,delete l.href,l._cssText=N));
H==="style"&&C.sheet&&(V=zPq(C.sheet))&&(C.childNodes.length>1&&(V=yPT(V,C).join("/* rr_split */")),l._cssText=V);if(H==="input"||H==="textarea"||H==="select")V=C.value,N=C.checked,l.type!=="radio"&&l.type!=="checkbox"&&l.type!=="submit"&&l.type!=="button"&&V?l.value=Ifq({element:C,type:WAE(C),tagName:H,value:V,maskInputOptions:J,maskInputFn:b}):N&&(l.checked=N);H==="option"&&(C.selected&&!J.select?l.selected=!0:delete l.selected);H==="dialog"&&C.open&&(l.rr_open_mode=C.matches("dialog:modal")?"modal":
"non-modal");H==="canvas"&&E&&(C.__context==="2d"?E8E(C)||(l.rr_dataURL=C.toDataURL(z.type,z.quality)):"__context"in C||(J=C.toDataURL(z.type,z.quality),b=G.createElement("canvas"),b.width=C.width,b.height=C.height,b=b.toDataURL(z.type,z.quality),J!==b&&(l.rr_dataURL=J)));if(H==="img"&&Q){PS||(PS=G.createElement("canvas"),g8q=PS.getContext("2d"));var c=C.currentSrc||C.getAttribute("src")||"<unknown-src>",A=C.crossOrigin,T=function(){C.removeEventListener("load",T);try{PS.width=C.naturalWidth,PS.height=
C.naturalHeight,g8q.drawImage(C,0,0),l.rr_dataURL=PS.toDataURL(z.type,z.quality)}catch(g){if(C.crossOrigin!=="anonymous"){C.crossOrigin="anonymous";C.complete&&C.naturalWidth!==0?T():C.addEventListener("load",T);return}console.warn("Cannot inline img src="+c+"! Error: "+g)}C.crossOrigin==="anonymous"&&(A?l.crossOrigin=A:C.removeAttribute("crossorigin"))};
C.complete&&C.naturalWidth!==0?T():C.addEventListener("load",T)}if(H==="audio"||H==="video")G=l,G.rr_mediaState=C.paused?"paused":"played",G.rr_mediaCurrentTime=C.currentTime,G.rr_mediaPlaybackRate=C.playbackRate,G.rr_mediaMuted=C.muted,G.rr_mediaLoop=C.loop,G.rr_mediaVolume=C.volume;k||(C.scrollLeft&&(l.rr_scrollLeft=C.scrollLeft),C.scrollTop&&(l.rr_scrollTop=C.scrollTop));F&&(k=C.getBoundingClientRect(),l={class:l.class,rr_width:k.width+"px",rr_height:k.height+"px"});H!=="iframe"||t(l.src)||(C.contentDocument||
(l.rr_src=l.src),delete l.src);var P;try{customElements.get(H)&&(P=!0)}catch(g){}return{type:2,tagName:H,attributes:l,childNodes:[],isSVG:!(C.tagName!=="svg"&&!C.ownerSVGElement)||void 0,needBlock:F,rootId:U,isCustom:P}};
gt=function(C){return C===void 0||C===null?"":C.toLowerCase()};
RPs=function(C,F){return F.comment&&C.type===5||C.type===2&&(F.script&&(C.tagName==="script"||C.tagName==="link"&&(C.attributes.rel==="preload"&&C.attributes.as==="script"||C.attributes.rel==="modulepreload")||C.tagName==="link"&&C.attributes.rel==="prefetch"&&typeof C.attributes.href==="string"&&tLZ(C.attributes.href)==="js")||F.headFavicon&&(C.tagName==="link"&&C.attributes.rel==="shortcut icon"||C.tagName==="meta"&&(gt(C.attributes.name).match(/^msapplication-tile(image|color)$/)||gt(C.attributes.name)===
"application-name"||gt(C.attributes.rel)==="icon"||gt(C.attributes.rel)==="apple-touch-icon"||gt(C.attributes.rel)==="shortcut icon"))||C.tagName==="meta"&&(F.headMetaDescKeywords&&gt(C.attributes.name).match(/^description|keywords$/)||F.headMetaSocial&&(gt(C.attributes.property).match(/^(og|twitter|fb):/)||gt(C.attributes.name).match(/^(og|twitter):/)||gt(C.attributes.name)==="pinterest")||F.headMetaRobots&&(gt(C.attributes.name)==="robots"||gt(C.attributes.name)==="googlebot"||gt(C.attributes.name)===
"bingbot")||F.headMetaHttpEquiv&&C.attributes["http-equiv"]!==void 0||F.headMetaAuthorship&&(gt(C.attributes.name)==="author"||gt(C.attributes.name)==="generator"||gt(C.attributes.name)==="framework"||gt(C.attributes.name)==="publisher"||gt(C.attributes.name)==="progid"||gt(C.attributes.property).match(/^article:/)||gt(C.attributes.property).match(/^product:/))||F.headMetaVerification&&(gt(C.attributes.name)==="google-site-verification"||gt(C.attributes.name)==="yandex-verification"||gt(C.attributes.name)===
"csrf-token"||gt(C.attributes.name)==="p:domain_verify"||gt(C.attributes.name)==="verify-v1"||gt(C.attributes.name)==="verification"||gt(C.attributes.name)==="shopify-checkout-api-token")))?!0:!1};
R6=function(C,F){var G=F.doc,V=F.mirror,J=F.blockClass,b=F.blockSelector,z=F.maskTextClass,Q=F.maskTextSelector,E=F.skipChild===void 0?!1:F.skipChild,t=F.inlineStylesheet===void 0?!0:F.inlineStylesheet,k=F.maskInputOptions===void 0?{}:F.maskInputOptions,U=F.maskTextFn,H=F.maskInputFn,l=F.slimDOMOptions,N=F.dataURLOptions===void 0?{}:F.dataURLOptions,S=F.inlineImages===void 0?!1:F.inlineImages,f=F.recordCanvas===void 0?!1:F.recordCanvas,c=F.onSerialize,A=F.onIframeLoad,T=F.iframeLoadTimeout===void 0?
5E3:F.iframeLoadTimeout,P=F.onStylesheetLoad,g=F.stylesheetLoadTimeout===void 0?5E3:F.stylesheetLoadTimeout,r=F.keepIframeSrcFn===void 0?function(){return!1}:F.keepIframeSrcFn,C9=F.newlyAddedElement===void 0?!1:F.newlyAddedElement,Wo=F.cssCaptured===void 0?!1:F.cssCaptured,EB=F.needsMask,L9=F.preserveWhiteSpace===void 0?!0:F.preserveWhiteSpace;
EB||(EB=ePf(C,z,Q,EB===void 0));var ki=PTZ(C,{doc:G,mirror:V,blockClass:J,blockSelector:b,needsMask:EB,inlineStylesheet:t,maskInputOptions:k,maskTextFn:U,maskInputFn:H,dataURLOptions:N,inlineImages:S,recordCanvas:f,keepIframeSrcFn:r,newlyAddedElement:C9,cssCaptured:Wo});if(!ki)return console.warn(C,"not serialized"),null;C9=V.nodeMetaMap.has(C)?V.getId(C):RPs(ki,l)||!L9&&ki.type===3&&!ki.textContent.replace(/^\s+|\s+$/gm,"").length?-2:ZCB++;F=Object.assign(ki,{id:C9});V.add(C,F);if(C9===-2)return null;
c&&c(C);C9=!E;F.type===2&&(C9=C9&&!F.needBlock,delete F.needBlock,(Wo=Au(C))&&dt(Wo)&&(F.isShadowHost=!0));if((F.type===0||F.type===2)&&C9){l.headWhitespace&&F.type===2&&F.tagName==="head"&&(L9=!1);E={doc:G,mirror:V,blockClass:J,blockSelector:b,needsMask:EB,maskTextClass:z,maskTextSelector:Q,skipChild:E,inlineStylesheet:t,maskInputOptions:k,maskTextFn:U,maskInputFn:H,slimDOMOptions:l,dataURLOptions:N,inlineImages:S,recordCanvas:f,preserveWhiteSpace:L9,onSerialize:c,onIframeLoad:A,iframeLoadTimeout:T,
onStylesheetLoad:P,stylesheetLoadTimeout:g,keepIframeSrcFn:r,cssCaptured:!1};if(F.type!==2||F.tagName!=="textarea"||F.attributes.value===void 0)for(F.type===2&&F.attributes._cssText!==void 0&&typeof F.attributes._cssText==="string"&&(E.cssCaptured=!0),C9=_.u(Array.from(sH(C))),Wo=C9.next();!Wo.done;Wo=C9.next())(Wo=R6(Wo.value,E))&&F.childNodes.push(Wo);C9=null;if(C.nodeType===C.ELEMENT_NODE&&(C9=Au(C))){Wo=_.u(Array.from(sH(C9)));for(var lZ=Wo.next();!lZ.done;lZ=Wo.next())if(lZ=R6(lZ.value,E))dt(C9)&&
(lZ.isShadow=!0),F.childNodes.push(lZ)}}(E=xv(C))&&e3(E)&&dt(E)&&(F.isShadow=!0);F.type===2&&F.tagName==="iframe"&&dX5(C,function(){var eq=C.contentDocument;eq&&A&&(eq=R6(eq,{doc:eq,mirror:V,blockClass:J,blockSelector:b,needsMask:EB,maskTextClass:z,maskTextSelector:Q,skipChild:!1,inlineStylesheet:t,maskInputOptions:k,maskTextFn:U,maskInputFn:H,slimDOMOptions:l,dataURLOptions:N,inlineImages:S,recordCanvas:f,preserveWhiteSpace:L9,onSerialize:c,onIframeLoad:A,iframeLoadTimeout:T,onStylesheetLoad:P,stylesheetLoadTimeout:g,
keepIframeSrcFn:r}))&&A(C,eq)},T);
F.type===2&&F.tagName==="link"&&typeof F.attributes.rel==="string"&&(F.attributes.rel==="stylesheet"||F.attributes.rel==="preload"&&typeof F.attributes.href==="string"&&tLZ(F.attributes.href)==="css")&&xXw(C,function(){if(P){var eq=R6(C,{doc:G,mirror:V,blockClass:J,blockSelector:b,needsMask:EB,maskTextClass:z,maskTextSelector:Q,skipChild:!1,inlineStylesheet:t,maskInputOptions:k,maskTextFn:U,maskInputFn:H,slimDOMOptions:l,dataURLOptions:N,inlineImages:S,recordCanvas:f,preserveWhiteSpace:L9,onSerialize:c,
onIframeLoad:A,iframeLoadTimeout:T,onStylesheetLoad:P,stylesheetLoadTimeout:g,keepIframeSrcFn:r});eq&&P(C,eq)}},g);
return F};
YWw=function(C){var F=document;C=C||{};var G=C.maskAllInputs===void 0?!1:C.maskAllInputs,V=C.slimDOM===void 0?!1:C.slimDOM;return R6(F,{doc:F,mirror:C.mirror===void 0?new Yv:C.mirror,blockClass:C.blockClass===void 0?"rr-block":C.blockClass,blockSelector:C.blockSelector===void 0?null:C.blockSelector,maskTextClass:C.maskTextClass===void 0?"rr-mask":C.maskTextClass,maskTextSelector:C.maskTextSelector===void 0?null:C.maskTextSelector,skipChild:!1,inlineStylesheet:C.inlineStylesheet===void 0?!0:C.inlineStylesheet,
maskInputOptions:G===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:G===!1?{password:!0}:G,maskTextFn:C.maskTextFn,maskInputFn:C.maskInputFn,slimDOMOptions:V===!0||V==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:V==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:V===!1?{}:V,dataURLOptions:C.dataURLOptions,
inlineImages:C.inlineImages===void 0?!1:C.inlineImages,recordCanvas:C.recordCanvas===void 0?!1:C.recordCanvas,preserveWhiteSpace:C.preserveWhiteSpace,onSerialize:C.onSerialize,onIframeLoad:C.onIframeLoad,iframeLoadTimeout:C.iframeLoadTimeout,onStylesheetLoad:C.onStylesheetLoad,stylesheetLoadTimeout:C.stylesheetLoadTimeout,keepIframeSrcFn:C.keepIframeSrcFn===void 0?function(){return!1}:C.keepIframeSrcFn,
newlyAddedElement:!1})};
TH=function(C,F,G){G=G===void 0?document:G;var V={capture:!0,passive:!0};G.addEventListener(C,F,V);return function(){return G.removeEventListener(C,F,V)}};
o6=function(C,F,G){G=G===void 0?{}:G;var V=null,J=0;return function(){var b=_.Rn.apply(0,arguments),z=Date.now();J||G.leading!==!1||(J=z);var Q=F-(z-J),E=this;Q<=0||Q>F?(V&&(clearTimeout(V),V=null),J=z,C.apply(E,b)):V||G.trailing===!1||(V=setTimeout(function(){J=G.leading===!1?0:Date.now();V=null;C.apply(E,b)},Q))}};
T1o=function(C,F,G,V,J){J=J===void 0?window:J;var b=J.Object.getOwnPropertyDescriptor(C,F);J.Object.defineProperty(C,F,V?G:{set:function(z){var Q=this;setTimeout(function(){G.set.call(Q,z)},0);
b&&b.set&&b.set.call(this,z)}});
return function(){return T1o(C,F,b||{},!0)}};
o8Z=function(C){var F=C.document,G,V,J,b;return{left:F.scrollingElement?F.scrollingElement.scrollLeft:C.pageXOffset!==void 0?C.pageXOffset:F.documentElement.scrollLeft||(F==null?void 0:F.body)&&((G=qk(F.body))==null?void 0:G.scrollLeft)||(F==null?void 0:(V=F.body)==null?void 0:V.scrollLeft)||0,top:F.scrollingElement?F.scrollingElement.scrollTop:C.pageYOffset!==void 0?C.pageYOffset:(F==null?void 0:F.documentElement.scrollTop)||(F==null?void 0:F.body)&&((J=qk(F.body))==null?void 0:J.scrollTop)||(F==
null?void 0:(b=F.body)==null?void 0:b.scrollTop)||0}};
rPS=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight};
KAf=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth};
DXi=function(C){return C?C.nodeType===C.ELEMENT_NODE?C:qk(C):null};
rt=function(C,F,G,V){if(!C)return!1;C=DXi(C);if(!C)return!1;try{if(typeof F==="string"){if(C.classList.contains(F)||V&&C.closest("."+F)!==null)return!0}else if(APi(C,F,V))return!0}catch(J){}return G&&(C.matches(G)||V&&C.closest(G)!==null)?!0:!1};
pdB=function(C,F,G){return C.tagName==="TITLE"&&G.headTitleMutations?!0:F.getId(C)===-2};
mXE=function(C,F){if(e3(C))return!1;var G=F.getId(C);return F.has(G)?(G=xv(C))&&G.nodeType===C.DOCUMENT_NODE?!1:G?mXE(G,F):!0:!0};
Cx5=function(){var C=C===void 0?window:C;"NodeList"in C&&!C.NodeList.prototype.forEach&&(C.NodeList.prototype.forEach=Array.prototype.forEach);"DOMTokenList"in C&&!C.DOMTokenList.prototype.forEach&&(C.DOMTokenList.prototype.forEach=Array.prototype.forEach)};
jqo=function(C,F){return!(C.nodeName!=="LINK"||C.nodeType!==C.ELEMENT_NODE||!C.getAttribute||C.getAttribute("rel")!=="stylesheet"||!F.nodeMetaMap.get(C))};
VBT=function(C){var F=null,G;"getRootNode"in C&&((G=Gei(C))==null?void 0:G.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&cS(Gei(C))&&(F=cS(Gei(C)));return F};
i4q=function(C){var F=C.ownerDocument;if(F){if(!(F=bCf(F,"contains")(C)))if(F=C.ownerDocument){for(var G;G=VBT(C);)C=G;F=bCf(F,"contains")(C)}else F=!1}else F=!1;return F};
JcE=function(C,F){C.delete(F);sH(F).forEach(function(G){return JcE(C,G)})};
$YT=function(C,F){for(var G=[C];G.length;)C=G.pop(),F.has(C)||(F.add(C),sH(C).forEach(function(V){return G.push(V)}))};
b49=function(C,F){C.size===0?C=!1:C=(F=xv(F))?C.has(F):!1;return C};
u4E=function(C,F){return C.size===0?!1:n0Z(C,F)};
n0Z=function(C,F){return(F=xv(F))?C.has(F)?!0:n0Z(C,F):!1};
K_=function(C){try{if("composedPath"in C){var F=C.composedPath();if(F.length)return F[0]}else if("path"in C&&C.path.length)return C.path[0]}catch(G){}return C&&C.target};
Qq5=function(C,F){var G=new zmI;Dc.push(G);G.init(C);C=new (iCI("MutationObserver").constructor)(p_(G.processMutations.bind(G)));C.observe(F,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0});return C};
E0S=function(C){var F=C.mousemoveCb;var G=C.sampling;var V=C.doc;var J=C.mirror;if(G.mousemove===!1)return function(){};
var b=[],z,Q=o6(p_(function(t){var k=Date.now()-z;F(b.map(function(U){U.timeOffset-=k;return U}),t);
b=[];z=null}),typeof G.mousemoveCallback==="number"?G.mousemoveCallback:500);
C=p_(o6(p_(function(t){var k=K_(t),U=t.changedTouches?t.changedTouches[0]:t,H=U.clientX;U=U.clientY;z||(z=Idi());b.push({x:H,y:U,id:J.getId(k),timeOffset:Idi()-z});Q(typeof DragEvent!=="undefined"&&t instanceof DragEvent?12:t instanceof MouseEvent?1:6)}),typeof G.mousemove==="number"?G.mousemove:50,{trailing:!1}));
var E=[TH("mousemove",C,V),TH("touchmove",C,V),TH("drag",C,V)];return p_(function(){E.forEach(function(t){return t()})})};
Wl9=function(C){var F=C.mouseInteractionCb;var G=C.doc;var V=C.mirror;var J=C.blockClass;var b=C.blockSelector;C=C.sampling;if(C.mouseInteraction===!1)return function(){};
var z=C.mouseInteraction===!0||C.mouseInteraction===void 0?{}:C.mouseInteraction,Q=[],E=null,t=function(k){return function(U){var H=K_(U);if(!rt(H,J,b,!0)){var l=null,N=k;if("pointerType"in U){switch(U.pointerType){case "mouse":l=0;break;case "touch":l=2;break;case "pen":l=1}l===2&&(m9[k]===1?N="TouchStart":m9[k]===0&&(N="TouchEnd"))}else U.changedTouches&&(l=2);if(l!==null){if(E=l,N.startsWith("Touch")&&l===2||N.startsWith("Mouse")&&l===0)l=null}else m9[k]===2&&(l=E,E=null);if(U=U.changedTouches?
U.changedTouches[0]:U)H=V.getId(H),p_(F)(Object.assign({},{type:m9[N],id:H,x:U.clientX,y:U.clientY},l!==null&&{pointerType:l}))}}};
Object.keys(m9).filter(function(k){return Number.isNaN(Number(k))&&!k.endsWith("_Departed")&&z[k]!==!1}).forEach(function(k){var U=k.toLowerCase(),H=t(k);
if(window.PointerEvent)switch(m9[k]){case 1:case 0:U=U.replace("mouse","pointer");break;case 7:case 9:return}Q.push(TH(U,H,G))});
return p_(function(){Q.forEach(function(k){return k()})})};
tBI=function(C){var F=C.scrollCb;var G=C.doc;var V=C.mirror;var J=C.blockClass;var b=C.blockSelector;return TH("scroll",p_(o6(p_(function(z){var Q=K_(z);Q&&!rt(Q,J,b,!0)&&(z=V.getId(Q),Q===G&&G.defaultView?(Q=o8Z(G.defaultView),F({id:z,x:Q.left,y:Q.top})):F({id:z,x:Q.scrollLeft,y:Q.scrollTop}))}),C.sampling.scroll||100)),G)};
adA=function(C,F){var G=C.viewportResizeCb;var V=-1,J=-1;return TH("resize",p_(o6(p_(function(){var b=rPS(),z=KAf();if(V!==b||J!==z)G({width:Number(z),height:Number(b)}),V=b,J=z}),200)),F.win)};
H49=function(C){function F(f){var c=K_(f),A=f.isTrusted,T=c&&c.tagName;c&&T==="OPTION"&&(c=qk(c));if(!(!c||!T||keZ.indexOf(T)<0||rt(c,z,Q,!0)||c.classList.contains(E)||t&&c.matches(t))){var P=c.value,g=!1;f=WAE(c)||"";if(f==="radio"||f==="checkbox")g=c.checked;else if(k[T.toLowerCase()]||k[f])P=Ifq({element:c,maskInputOptions:k,tagName:T,type:f,value:P,maskInputFn:U});G(c,l?{text:P,isChecked:g,userTriggered:A}:{text:P,isChecked:g});A=c.name;f==="radio"&&A&&g&&J.querySelectorAll('input[type="radio"][name="'+
A+'"]').forEach(function(r){if(r!==c){var C9=r.value;G(r,l?{text:C9,isChecked:!g,userTriggered:!1}:{text:C9,isChecked:!g})}})}}
function G(f,c){var A=UYS.get(f);A&&A.text===c.text&&A.isChecked===c.isChecked||(UYS.set(f,c),f=b.getId(f),p_(V)(Object.assign({},c,{id:f})))}
var V=C.inputCb;var J=C.doc;var b=C.mirror;var z=C.blockClass;var Q=C.blockSelector;var E=C.ignoreClass;var t=C.ignoreSelector;var k=C.maskInputOptions;var U=C.maskInputFn;var H=C.sampling;var l=C.userTriggeredOnInput;var N=(H.input==="last"?["change"]:["input","change"]).map(function(f){return TH(f,p_(F),J)}),S=J.defaultView;
if(!S)return function(){N.forEach(function(f){return f()})};
C=S.Object.getOwnPropertyDescriptor(S.HTMLInputElement.prototype,"value");H=[[S.HTMLInputElement.prototype,"value"],[S.HTMLInputElement.prototype,"checked"],[S.HTMLSelectElement.prototype,"value"],[S.HTMLTextAreaElement.prototype,"value"],[S.HTMLSelectElement.prototype,"selectedIndex"],[S.HTMLOptionElement.prototype,"selected"]];C&&C.set&&N.push.apply(N,_.da(H.map(function(f){return T1o(f[0],f[1],{set:function(){p_(F)({target:this,isTrusted:!1})}},!1,S)})));
return p_(function(){N.forEach(function(f){return f()})})};
yci=function(C){var F=[],G,V,J,b;ldE("CSSGroupingRule")&&((G=C.parentRule)==null?void 0:(V=G.constructor)==null?void 0:V.name)==="CSSGroupingRule"||ldE("CSSMediaRule")&&C.parentRule instanceof CSSMediaRule||ldE("CSSSupportsRule")&&C.parentRule instanceof CSSSupportsRule||ldE("CSSConditionRule")&&((J=C.parentRule)==null?void 0:(b=J.constructor)==null?void 0:b.name)==="CSSConditionRule"?(C=Array.from(C.parentRule.cssRules).indexOf(C),F.unshift(C)):C.parentStyleSheet&&(C=Array.from(C.parentStyleSheet.cssRules).indexOf(C),
F.unshift(C));return F};
CX=function(C,F,G){var V,J;if(!C)return{};C.ownerNode?V=F.getId(C.ownerNode):J=G.getId(C);return{styleId:J,id:V}};
Nc5=function(C,F){var G=C.styleSheetRuleCb;var V=C.mirror;var J=C.stylesheetManager;var b=F.win;if(!b.CSSStyleSheet||!b.CSSStyleSheet.prototype)return function(){};
var z=b.CSSStyleSheet.prototype.insertRule;b.CSSStyleSheet.prototype.insertRule=new jT(z,{apply:p_(function(H,l,N){var S=_.u(N),f=S.next().value;S=S.next().value;var c=CX(l,V,J.styleMirror),A=c.id;c=c.styleId;(A&&A!==-1||c&&c!==-1)&&G({id:A,styleId:c,adds:[{rule:f,index:S}]});return H.apply(l,N)})});
b.CSSStyleSheet.prototype.addRule=function(H,l,N){N=N===void 0?this.cssRules.length:N;return b.CSSStyleSheet.prototype.insertRule.apply(this,[H+" { "+l+" }",N])};
var Q=b.CSSStyleSheet.prototype.deleteRule;b.CSSStyleSheet.prototype.deleteRule=new jT(Q,{apply:p_(function(H,l,N){var S=_.u(N).next().value,f=CX(l,V,J.styleMirror),c=f.id;f=f.styleId;(c&&c!==-1||f&&f!==-1)&&G({id:c,styleId:f,removes:[{index:S}]});return H.apply(l,N)})});
b.CSSStyleSheet.prototype.removeRule=function(H){return b.CSSStyleSheet.prototype.deleteRule.apply(this,[H])};
if(b.CSSStyleSheet.prototype.replace){var E=b.CSSStyleSheet.prototype.replace;b.CSSStyleSheet.prototype.replace=new jT(E,{apply:p_(function(H,l,N){var S=_.u(N).next().value,f=CX(l,V,J.styleMirror),c=f.id;f=f.styleId;(c&&c!==-1||f&&f!==-1)&&G({id:c,styleId:f,replace:S});return H.apply(l,N)})})}if(b.CSSStyleSheet.prototype.replaceSync){var t=b.CSSStyleSheet.prototype.replaceSync;
b.CSSStyleSheet.prototype.replaceSync=new jT(t,{apply:p_(function(H,l,N){var S=_.u(N).next().value,f=CX(l,V,J.styleMirror),c=f.id;f=f.styleId;(c&&c!==-1||f&&f!==-1)&&G({id:c,styleId:f,replaceSync:S});return H.apply(l,N)})})}var k={};
Z4Z("CSSGroupingRule")?k.CSSGroupingRule=b.CSSGroupingRule:(Z4Z("CSSMediaRule")&&(k.CSSMediaRule=b.CSSMediaRule),Z4Z("CSSConditionRule")&&(k.CSSConditionRule=b.CSSConditionRule),Z4Z("CSSSupportsRule")&&(k.CSSSupportsRule=b.CSSSupportsRule));var U={};Object.entries(k).forEach(function(H){var l=_.u(H);H=l.next().value;l=l.next().value;U[H]={insertRule:l.prototype.insertRule,deleteRule:l.prototype.deleteRule};l.prototype.insertRule=new jT(U[H].insertRule,{apply:p_(function(N,S,f){var c=_.u(f),A=c.next().value;
c=c.next().value;var T=CX(S.parentStyleSheet,V,J.styleMirror),P=T.id;T=T.styleId;(P&&P!==-1||T&&T!==-1)&&G({id:P,styleId:T,adds:[{rule:A,index:[].concat(_.da(yci(S)),[c||0])}]});return N.apply(S,f)})});
l.prototype.deleteRule=new jT(U[H].deleteRule,{apply:p_(function(N,S,f){var c=_.u(f).next().value,A=CX(S.parentStyleSheet,V,J.styleMirror),T=A.id;A=A.styleId;(T&&T!==-1||A&&A!==-1)&&G({id:T,styleId:A,removes:[{index:[].concat(_.da(yci(S)),[c])}]});return N.apply(S,f)})})});
return p_(function(){b.CSSStyleSheet.prototype.insertRule=z;b.CSSStyleSheet.prototype.deleteRule=Q;E&&(b.CSSStyleSheet.prototype.replace=E);t&&(b.CSSStyleSheet.prototype.replaceSync=t);Object.entries(k).forEach(function(H){var l=_.u(H);H=l.next().value;l=l.next().value;l.prototype.insertRule=U[H].insertRule;l.prototype.deleteRule=U[H].deleteRule})})};
XeT=function(C,F){var G=C.mirror;var V=C.stylesheetManager;var J=null;J=F.nodeName==="#document"?G.getId(F):G.getId(cS(F));var b,z,Q;C=F.nodeName==="#document"?(b=F.defaultView)==null?void 0:b.Document:(z=F.ownerDocument)==null?void 0:(Q=z.defaultView)==null?void 0:Q.ShadowRoot;var E=(C==null?0:C.prototype)?Object.getOwnPropertyDescriptor(C==null?void 0:C.prototype,"adoptedStyleSheets"):void 0;if(J===null||J===-1||!C||!E)return function(){};
Object.defineProperty(F,"adoptedStyleSheets",{configurable:E.configurable,enumerable:E.enumerable,get:function(){var t;return(t=E.get)==null?void 0:t.call(this)},
set:function(t){var k,U=(k=E.set)==null?void 0:k.call(this,t);if(J!==null&&J!==-1)try{O4w(V,t,J)}catch(H){}return U}});
return p_(function(){Object.defineProperty(F,"adoptedStyleSheets",{configurable:E.configurable,enumerable:E.enumerable,get:E.get,set:E.set})})};
weq=function(C,F){var G=C.styleDeclarationCb;var V=C.mirror;var J=C.ignoreCSSAttributes;var b=C.stylesheetManager;var z=F.win;var Q=z.CSSStyleDeclaration.prototype.setProperty;z.CSSStyleDeclaration.prototype.setProperty=new jT(Q,{apply:p_(function(t,k,U){var H=_.u(U),l=H.next().value,N=H.next().value;H=H.next().value;if(J.has(l))return Q.apply(k,[l,N,H]);var S,f=CX((S=k.parentRule)==null?void 0:S.parentStyleSheet,V,b.styleMirror);S=f.id;f=f.styleId;(S&&S!==-1||f&&f!==-1)&&G({id:S,styleId:f,set:{property:l,
value:N,priority:H},index:yci(k.parentRule)});return t.apply(k,U)})});
var E=z.CSSStyleDeclaration.prototype.removeProperty;z.CSSStyleDeclaration.prototype.removeProperty=new jT(E,{apply:p_(function(t,k,U){var H=_.u(U).next().value;if(J.has(H))return E.apply(k,[H]);var l,N=CX((l=k.parentRule)==null?void 0:l.parentStyleSheet,V,b.styleMirror);l=N.id;N=N.styleId;(l&&l!==-1||N&&N!==-1)&&G({id:l,styleId:N,remove:{property:H},index:yci(k.parentRule)});return t.apply(k,U)})});
return p_(function(){z.CSSStyleDeclaration.prototype.setProperty=Q;z.CSSStyleDeclaration.prototype.removeProperty=E})};
MBB=function(C){var F=C.mediaInteractionCb;var G=C.blockClass;var V=C.blockSelector;var J=C.mirror;var b=C.sampling;C=C.doc;var z=p_(function(E){return o6(p_(function(t){if((t=K_(t))&&!rt(t,G,V,!0)){var k=t.currentTime,U=t.volume,H=t.muted,l=t.playbackRate,N=t.loop;F({type:E,id:J.getId(t),currentTime:k,volume:U,muted:H,playbackRate:l,loop:N})}}),b.media||500)}),Q=[TH("play",z(0),C),
TH("pause",z(1),C),TH("seeked",z(2),C),TH("volumechange",z(3),C),TH("ratechange",z(4),C)];return p_(function(){Q.forEach(function(E){return E()})})};
Svo=function(C){var F=C.fontCb;C=C.doc;var G=C.defaultView;if(!G)return function(){};
var V=[],J=new WeakMap,b=G.FontFace;G.FontFace=function(z,Q,E){var t=new b(z,Q,E);J.set(t,{family:z,buffer:typeof Q!=="string",descriptors:E,fontSource:typeof Q==="string"?Q:JSON.stringify(Array.from(new Uint8Array(Q)))});return t};
C=hu(C.fonts,"add",function(z){return function(Q){setTimeout(p_(function(){var E=J.get(Q);E&&(F(E),J.delete(Q))}),0);
return z.apply(this,[Q])}});
V.push(function(){G.FontFace=b});
V.push(C);return p_(function(){V.forEach(function(z){return z()})})};
Lli=function(C){var F=C.doc,G=C.mirror,V=C.blockClass,J=C.blockSelector,b=C.selectionCb,z=!0;C=p_(function(){var Q=F.getSelection();if(Q&&!(z&&(Q==null?0:Q.isCollapsed))){z=Q.isCollapsed||!1;for(var E=[],t=Q.rangeCount||0,k=0;k<t;k++){var U=Q.getRangeAt(k),H=U.startContainer,l=U.startOffset,N=U.endContainer;U=U.endOffset;rt(H,V,J,!0)||rt(N,V,J,!0)||E.push({start:G.getId(H),startOffset:l,end:G.getId(N),endOffset:U})}b({ranges:E})}});
C();return TH("selectionchange",C)};
BcA=function(C){var F=C.doc;var G=C.customElementCb;return(C=F.defaultView)&&C.customElements?hu(C.customElements,"define",function(V){return function(J,b,z){try{G({define:{name:J}})}catch(Q){console.warn("Custom element callback failed for "+J)}return V.apply(this,[J,b,z])}}):function(){}};
v0A=function(C,F){var G=C.mutationCb,V=C.mousemoveCb,J=C.mouseInteractionCb,b=C.scrollCb,z=C.viewportResizeCb,Q=C.inputCb,E=C.mediaInteractionCb,t=C.styleSheetRuleCb,k=C.styleDeclarationCb,U=C.canvasMutationCb,H=C.fontCb,l=C.selectionCb,N=C.customElementCb;C.mutationCb=function(){var S=_.Rn.apply(0,arguments);F.mutation&&F.mutation.apply(F,_.da(S));G.apply(null,_.da(S))};
C.mousemoveCb=function(){var S=_.Rn.apply(0,arguments);F.mousemove&&F.mousemove.apply(F,_.da(S));V.apply(null,_.da(S))};
C.mouseInteractionCb=function(){var S=_.Rn.apply(0,arguments);F.mouseInteraction&&F.mouseInteraction.apply(F,_.da(S));J.apply(null,_.da(S))};
C.scrollCb=function(){var S=_.Rn.apply(0,arguments);F.scroll&&F.scroll.apply(F,_.da(S));b.apply(null,_.da(S))};
C.viewportResizeCb=function(){var S=_.Rn.apply(0,arguments);F.viewportResize&&F.viewportResize.apply(F,_.da(S));z.apply(null,_.da(S))};
C.inputCb=function(){var S=_.Rn.apply(0,arguments);F.input&&F.input.apply(F,_.da(S));Q.apply(null,_.da(S))};
C.mediaInteractionCb=function(){var S=_.Rn.apply(0,arguments);F.mediaInteaction&&F.mediaInteaction.apply(F,_.da(S));E.apply(null,_.da(S))};
C.styleSheetRuleCb=function(){var S=_.Rn.apply(0,arguments);F.styleSheetRule&&F.styleSheetRule.apply(F,_.da(S));t.apply(null,_.da(S))};
C.styleDeclarationCb=function(){var S=_.Rn.apply(0,arguments);F.styleDeclaration&&F.styleDeclaration.apply(F,_.da(S));k.apply(null,_.da(S))};
C.canvasMutationCb=function(){var S=_.Rn.apply(0,arguments);F.canvasMutation&&F.canvasMutation.apply(F,_.da(S));U.apply(null,_.da(S))};
C.fontCb=function(){var S=_.Rn.apply(0,arguments);F.font&&F.font.apply(F,_.da(S));H.apply(null,_.da(S))};
C.selectionCb=function(){var S=_.Rn.apply(0,arguments);F.selection&&F.selection.apply(F,_.da(S));l.apply(null,_.da(S))};
C.customElementCb=function(){var S=_.Rn.apply(0,arguments);F.customElement&&F.customElement.apply(F,_.da(S));N.apply(null,_.da(S))}};
fdE=function(C,F){F=F===void 0?{}:F;var G=C.doc.defaultView;if(!G)return function(){};
v0A(C,F);var V;C.recordDOM&&(V=Qq5(C,C.doc));var J=E0S(C),b=Wl9(C),z=tBI(C),Q=adA(C,{win:G}),E=H49(C),t=MBB(C),k=function(){},U=function(){},H=function(){},l=function(){};
C.recordDOM&&(k=Nc5(C,{win:G}),U=XeT(C,C.doc),H=weq(C,{win:G}),C.collectFonts&&(l=Svo(C)));var N=Lli(C),S=BcA(C),f=[];C=_.u(C.plugins);for(F=C.next();!F.done;F=C.next())F=F.value,f.push(F.observer(F.callback,G,F.options));return p_(function(){Dc.forEach(function(A){return A.reset()});
var c;(c=V)==null||c.disconnect();J();b();z();Q();E();t();k();U();H();l();N();S();f.forEach(function(A){return A()})})};
ldE=function(C){return typeof window[C]!=="undefined"};
Z4Z=function(C){return!!(typeof window[C]!=="undefined"&&window[C].prototype&&"insertRule"in window[C].prototype&&"deleteRule"in window[C].prototype)};
hmW=function(C){C=new Uint8Array(C);for(var F="",G=0;G<C.byteLength;G++)F+=String.fromCharCode(C[G]);return btoa(F)};
cco=function(C,F,G){if(C instanceof Array)return C.map(function(J){return cco(J,F,G)});
if(C!==null){if(C instanceof Float32Array||C instanceof Float64Array||C instanceof Int32Array||C instanceof Uint32Array||C instanceof Uint8Array||C instanceof Uint16Array||C instanceof Int16Array||C instanceof Int8Array||C instanceof Uint8ClampedArray)return{rr_type:C.constructor.name,args:[Object.values(C)]};if(C instanceof ArrayBuffer){var V=C.constructor.name;C=hmW(C);return{rr_type:V,base64:C}}if(C instanceof DataView)return{rr_type:C.constructor.name,args:[cco(C.buffer,F,G),C.byteOffset,C.byteLength]};
if(C instanceof HTMLImageElement)return{rr_type:C.constructor.name,src:C.src};if(C instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:C.toDataURL()};if(C instanceof ImageData)return{rr_type:C.constructor.name,args:[cco(C.data,F,G),C.width,C.height]};if(Aco(C,F)||typeof C==="object")return V=C.constructor.name,C=emW(C,F,G),{rr_type:V,index:C}}return C};
xYE=function(C,F,G,V){for(var J=[],b=_.u(Object.getOwnPropertyNames(F.CanvasRenderingContext2D.prototype)),z=b.next(),Q={};!z.done;Q={prop$jscomp$58:void 0},z=b.next()){Q.prop$jscomp$58=z.value;try{if(typeof F.CanvasRenderingContext2D.prototype[Q.prop$jscomp$58]==="function"){var E=hu(F.CanvasRenderingContext2D.prototype,Q.prop$jscomp$58,function(t){return function(k){return function(){var U=_.Rn.apply(0,arguments),H=this;rt(this.canvas,G,V,!0)||setTimeout(function(){var l=dY5(U,F,H);C(H.canvas,{type:Fw["2D"],
property:t.prop$jscomp$58,args:l})},0);
return k.apply(this,U)}}}(Q));
J.push(E)}}catch(t){z=T1o(F.CanvasRenderingContext2D.prototype,Q.prop$jscomp$58,{set:function(k){return function(U){C(this.canvas,{type:Fw["2D"],property:k.prop$jscomp$58,args:[U],setter:!0})}}(Q)}),J.push(z)}}return function(){J.forEach(function(t){return t()})}};
sqq=function(C,F,G,V){var J=[];try{var b=hu(C.HTMLCanvasElement.prototype,"getContext",function(z){return function(Q){var E=_.Rn.apply(1,arguments);if(!rt(this,F,G,!0)){var t=Q==="experimental-webgl"?"webgl":Q;"__context"in this||(this.__context=t);V&&["webgl","webgl2"].includes(t)&&(E[0]&&typeof E[0]==="object"?(t=E[0],t.preserveDrawingBuffer||(t.preserveDrawingBuffer=!0)):E.splice(0,1,{preserveDrawingBuffer:!0}))}return z.apply(this,[Q].concat(_.da(E)))}});
J.push(b)}catch(z){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){J.forEach(function(z){return z()})}};
qvw=function(C,F,G,V,J,b){for(var z=[],Q=_.u(Object.getOwnPropertyNames(C)),E=Q.next(),t={};!E.done;t={prop$jscomp$59:void 0},E=Q.next())if(t.prop$jscomp$59=E.value,!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(t.prop$jscomp$59))try{if(typeof C[t.prop$jscomp$59]==="function"){var k=hu(C,t.prop$jscomp$59,function(U){return function(H){return function(){var l=_.Rn.apply(0,arguments),N=H.apply(this,l);emW(N,b,this);"tagName"in this.canvas&&!rt(this.canvas,V,J,!0)&&(l=
dY5(l,b,this),G(this.canvas,{type:F,property:U.prop$jscomp$59,args:l}));return N}}}(t));
z.push(k)}}catch(U){E=T1o(C,t.prop$jscomp$59,{set:function(H){return function(l){G(this.canvas,{type:F,property:H.prop$jscomp$59,args:[l],setter:!0})}}(t)}),z.push(E)}return z};
PxW=function(C,F,G,V){var J=[];J.push.apply(J,_.da(qvw(F.WebGLRenderingContext.prototype,1,C,G,V,F)));typeof F.WebGL2RenderingContext!=="undefined"&&J.push.apply(J,_.da(qvw(F.WebGL2RenderingContext.prototype,2,C,G,V,F)));return function(){J.forEach(function(b){return b()})}};
Vhq=function(C){var F=C=C===void 0?{}:C,G=F.emit,V=F.checkoutEveryNms,J=F.checkoutEveryNth,b=F.blockClass===void 0?"rr-block":F.blockClass,z=F.blockSelector===void 0?null:F.blockSelector,Q=F.ignoreClass===void 0?"rr-ignore":F.ignoreClass,E=F.ignoreSelector===void 0?null:F.ignoreSelector,t=F.maskTextClass===void 0?"rr-mask":F.maskTextClass,k=F.maskTextSelector===void 0?null:F.maskTextSelector,U=F.inlineStylesheet===void 0?!0:F.inlineStylesheet,H=F.maskAllInputs,l=F.maskInputOptions,N=F.slimDOMOptions,
S=F.maskInputFn,f=F.maskTextFn,c=F.hooks,A=F.packFn,T=F.sampling===void 0?{}:F.sampling,P=F.dataURLOptions===void 0?{}:F.dataURLOptions,g=F.mousemoveWait,r=F.recordDOM===void 0?!0:F.recordDOM,C9=F.recordCanvas===void 0?!1:F.recordCanvas,Wo=F.recordCrossOriginIframes===void 0?!1:F.recordCrossOriginIframes,EB=F.recordAfter===void 0?C.recordAfter==="DOMContentLoaded"?C.recordAfter:"load":F.recordAfter,L9=F.userTriggeredOnInput===void 0?!1:F.userTriggeredOnInput,ki=F.collectFonts===void 0?!1:F.collectFonts,
lZ=F.inlineImages===void 0?!1:F.inlineImages,eq=F.plugins,OB=F.keepIframeSrcFn===void 0?function(){return!1}:F.keepIframeSrcFn,yr=F.ignoreCSSAttributes===void 0?new Set([]):F.ignoreCSSAttributes;
G_=F.errorHandler;var Rl=Wo?window.parent===window:!0,w2=!1;if(!Rl)try{window.parent.document&&(w2=!1)}catch(Qr){w2=!0}if(Rl&&!G)throw Error("af");if(!Rl&&!w2)return function(){};
g!==void 0&&T.mousemove===void 0&&(T.mousemove=g);Vz.reset();var jG=H===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:l!==void 0?l:{password:!0},Il=N===!0||N==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:N==="all",headMetaDescKeywords:N==="all",headTitleMutations:N==="all"}:
N?N:{};Cx5();var Bu,vu=0,Zr=function(Qr){for(var FM=_.u(eq||[]),ow=FM.next();!ow.done;ow=FM.next())ow=ow.value,ow.eventProcessor&&(Qr=ow.eventProcessor(Qr));A&&!w2&&(Qr=A(Qr));return Qr};
im=function(Qr,FM){Qr.timestamp=Idi();var ow;((ow=Dc[0])==null?0:ow.isFrozen())&&Qr.type!==2&&(Qr.type!==3||Qr.data.source!==0)&&Dc.forEach(function(kS){return kS.unfreeze()});
Rl?G==null||G(Zr(Qr),FM):w2&&(FM={type:"rrweb",event:Zr(Qr),origin:window.location.origin,isCheckout:FM},window.parent.postMessage(FM,"*"));Qr.type===2?(Bu=Qr,vu=0):Qr.type!==3||Qr.data.source===0&&Qr.data.isAttachIframe||(vu++,Qr=V&&Qr.timestamp-Bu.timestamp>V,(J&&vu>=J||Qr)&&g0S(!0))};
var k_=function(Qr){im({type:3,data:Object.assign({},{source:0},Qr)})},$i=function(Qr){return im({type:3,
data:Object.assign({},{source:3},Qr)})},Vr=function(Qr){return im({type:3,
data:Object.assign({},{source:9},Qr)})},Um=new RmT({mutationCb:k_,
adoptedStyleSheetCb:function(Qr){return im({type:3,data:Object.assign({},{source:15},Qr)})}}),V8=new Yv9({mirror:Vz,
mutationCb:k_,stylesheetManager:Um,recordCrossOriginIframes:Wo,wrappedEmit:im});C=_.u(eq||[]);for(F=C.next();!F.done;F=C.next())F=F.value,F.getMirror&&F.getMirror({nodeMirror:Vz,crossOriginIframeMirror:V8.crossOriginIframeMirror,crossOriginIframeStyleMirror:V8.crossOriginIframeStyleMirror});var Hu=new Tcs;o0s=new rci({recordCanvas:C9,mutationCb:Vr,win:window,blockClass:b,blockSelector:z,mirror:Vz,sampling:T.canvas,dataURLOptions:P});var Gh=new Kls({mutationCb:k_,scrollCb:$i,bypassOptions:{blockClass:b,
blockSelector:z,maskTextClass:t,maskTextSelector:k,inlineStylesheet:U,maskInputOptions:jG,dataURLOptions:P,maskTextFn:f,maskInputFn:S,recordCanvas:C9,inlineImages:lZ,sampling:T,slimDOMOptions:Il,iframeManager:V8,stylesheetManager:Um,canvasManager:o0s,keepIframeSrcFn:OB,processedNodeManager:Hu},mirror:Vz});g0S=function(Qr){Qr=Qr===void 0?!1:Qr;if(r){im({type:4,data:{href:window.location.href,width:KAf(),height:rPS()}},Qr);Um.reset();Gh.init();Dc.forEach(function(ow){return ow.lock()});
var FM=YWw({mirror:Vz,blockClass:b,blockSelector:z,maskTextClass:t,maskTextSelector:k,inlineStylesheet:U,maskAllInputs:jG,maskTextFn:f,maskInputFn:S,slimDOM:Il,dataURLOptions:P,recordCanvas:C9,inlineImages:lZ,onSerialize:function(ow){ow.nodeName==="IFRAME"&&Vz.nodeMetaMap.get(ow)&&DYI(V8,ow);jqo(ow,Vz)&&peq(Um,ow);ow&&Au(ow)&&mYB(Gh,Au(ow),document)},
onIframeLoad:function(ow,kS){Ceq(V8,ow,kS);ow.contentWindow&&ow.contentDocument&&jso(Gh,ow.contentWindow.Element,ow.contentDocument)},
onStylesheetLoad:function(ow,kS){FHB(Um,ow,kS)},
keepIframeSrcFn:OB});FM?(im({type:2,data:{node:FM,initialOffset:o8Z(window)}},Qr),Dc.forEach(function(ow){return ow.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&O4w(Um,document.adoptedStyleSheets,Vz.getId(document))):console.warn("Failed to snapshot the document")}};
try{var hW=[],YS=function(Qr){var FM;return p_(fdE)({mutationCb:k_,mousemoveCb:function(ow,kS){return im({type:3,data:{source:kS,positions:ow}})},
mouseInteractionCb:function(ow){return im({type:3,data:Object.assign({},{source:2},ow)})},
scrollCb:$i,viewportResizeCb:function(ow){return im({type:3,data:Object.assign({},{source:4},ow)})},
inputCb:function(ow){return im({type:3,data:Object.assign({},{source:5},ow)})},
mediaInteractionCb:function(ow){return im({type:3,data:Object.assign({},{source:7},ow)})},
styleSheetRuleCb:function(ow){return im({type:3,data:Object.assign({},{source:8},ow)})},
styleDeclarationCb:function(ow){return im({type:3,data:Object.assign({},{source:13},ow)})},
canvasMutationCb:Vr,fontCb:function(ow){return im({type:3,data:Object.assign({},{source:10},ow)})},
selectionCb:function(ow){im({type:3,data:Object.assign({},{source:14},ow)})},
customElementCb:function(ow){im({type:3,data:Object.assign({},{source:16},ow)})},
blockClass:b,ignoreClass:Q,ignoreSelector:E,maskTextClass:t,maskTextSelector:k,maskInputOptions:jG,inlineStylesheet:U,sampling:T,recordDOM:r,recordCanvas:C9,inlineImages:lZ,userTriggeredOnInput:L9,collectFonts:ki,doc:Qr,maskInputFn:S,maskTextFn:f,keepIframeSrcFn:OB,blockSelector:z,slimDOMOptions:Il,dataURLOptions:P,mirror:Vz,iframeManager:V8,stylesheetManager:Um,shadowDomManager:Gh,processedNodeManager:Hu,canvasManager:o0s,ignoreCSSAttributes:yr,plugins:(eq==null?void 0:(FM=eq.filter(function(ow){return ow.observer}))==
null?void 0:FM.map(function(ow){return{observer:ow.observer,
options:ow.options,callback:function(kS){return im({type:6,data:{plugin:ow.name,payload:kS}})}}}))||[]},c)};
G$T(V8,function(Qr){try{hW.push(YS(Qr.contentDocument))}catch(FM){console.warn(FM)}});
var Em=function(){g0S();hW.push(YS(document))};
document.readyState==="interactive"||document.readyState==="complete"?Em():(hW.push(TH("DOMContentLoaded",function(){im({type:0,data:{}});EB==="DOMContentLoaded"&&Em()})),hW.push(TH("load",function(){im({type:1,
data:{}});EB==="load"&&Em()},window)));
return function(){hW.forEach(function(Qr){return Qr()});
Hu.destroy();G_=void 0}}catch(Qr){console.warn(Qr)}};
_.X=function(C,F){F=pT(D0(F));C.innerHTML=F};
$qq=function(C){var F=ixI;F||(F=JB9(),F=ixI=_.xf.transpose(F));F=F[C];return typeof F==="string"?F:_.Jr(C)};
bxW=function(C){C=String(C).toLowerCase();var F=JB9()[C];return typeof F==="string"?F:_.$6(C)};
npi=function(C){C=C.toLowerCase();C=JB9()[C];return typeof C==="string"?C:null};
JB9=function(){if(!u2o){for(var C=Object.assign({},zw5),F=_.u(QsW),G=F.next();!G.done;G=F.next())G=G.value,C[G.toLowerCase()]=G;u2o=C}return u2o};
WHW=function(C,F){var G=window.customElements;return G&&G.get(C)||IhW[C]===!0?2:F.name==="HTMLUnknownElement"?1:F.name==="HTMLElement"&&Ep5.test(C)?3:0};
k$E=function(C,F){switch(F){case "innerHTML":return th5(C)===1?2:null;case "textContent":return C=th5(C),C===1||C===6?1:null;default:var G,V;return(V=(G=ahi[C.localName])==null?void 0:G[F])!=null?V:null}};
th5=function(C){var F=C.localName,G=WHW(F,C.constructor);switch(G){case 0:case 1:return Uqs(F,C);case 3:case 2:return 1;default:_.r2(G,"got an unknown element classification")}};
Uqs=function(C,F){var G=Object.hasOwnProperty.call(HxI,C)?HxI[C]:null;return G!==null?G:Object.hasOwnProperty.call(lhI,C)&&F instanceof SVGElement?lhI[C]:null};
yBT=function(C,F){return F};
NVA=function(C){return(C=C.split(ZxT,2))?{url:C[0],metadata:C[1]}:null};
XaW=function(C){var F=String(C.url).replace(OxE,encodeURIComponent);if(C=C.metadata){OxE.lastIndex=0;if(OxE.test(C))return null;F+=" "+C}return F};
LHI=function(C){function F(t){var k=t.localName;if(!t.getAttribute("is")&&WHW(k,t.constructor)===2){var U;return(U=E)!=null?U:E=document.createElement("polyresinuncustomized")}(t=Q[k])||(t=Q[k]=document.createElement(k));return t}
var G=C.reportHandler||void 0,V=C.safeTypesBridge||waW,J=/^$/;if(C=C.allowedIdentifierPrefixes){C=_.u(C);for(var b=C.next();!b.done;b=C.next())J=new RegExp(J.source+"|^"+_.Mhw(b.value))}G&&G(!1,"initResin",null);var z=Sk9(J,V,G),Q={},E=null;return function(t,k,U){var H=t.nodeType;if(H!==Node.ELEMENT_NODE){if(H===Node.TEXT_NODE){k=t.parentElement;U=!k;if(k&&k.nodeType===Node.ELEMENT_NODE){H=k.localName;var l=WHW(H,k.constructor);switch(l){case 0:case 1:k=Uqs(H,k);U=k===1||k===6;break;case 3:case 2:U=
!0;break;default:_.r2(l,"got an unknown element classification")}}if(U)return function(c){return""+V(c,"STRING",c)}}return function(c){if(!c&&c!==document.all)return c;
G&&G(!0,"Failed to sanitize "+(t.parentElement&&t.parentElement.nodeName)+" #text node to value "+c,t.parentElement);return bm}}var N=t.localName;
H=F(t);var S=null;switch(U){case "attribute":if(bxW(k)in H)break;return function(c){return c};
case "property":if(k in H){S=k$E(H,k);break}if((l=npi(k))&&l in H)break;return function(c){return c};
default:_.r2(U,"got an unknown resin type, expected either 'property' or 'attribute'")}var f=U==="attribute"?k.toLowerCase():$qq(k);S||(S=Xv5(N,f,function(c){var A=t.getAttribute(c);return!A||/[\[\{]/.test(c)?null:A}));
return function(c){var A=nX,T=null;if(!c&&c!==document.all)return c;if(S!=null){var P=z[S],g=P.safeType;T=P.safeReplacement;g&&(A=V(c,g,nX));A===nX&&(P.filterString?(A=String(V(c,"STRING",c)),A=P.filterString(N,f,A)):P.filterRaw&&(A=P.filterRaw(N,f,c,t)),A===T&&(A=nX))}A===nX&&(A=T||bm,G&&G(!0,"Failed to sanitize attribute of <"+N+">: <"+N+" "+f+'="'+c+'">',t));return A}}};
Sk9=function(C,F,G){return[,{filterRaw:function(V,J,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:BVq,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:BVq,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:bm,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:vpT,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(V,J,b){b=
String(b).toLowerCase();return S8f(V,J,b)?b:bm},
safeReplacement:bm,safeType:void 0},,{filterRaw:void 0,filterString:function(V,J,b){return C.test(b)?b:bm},
safeReplacement:bm,safeType:"CONSTANT"},{filterRaw:function(V,J,b,z){if(typeof b==="string")var Q=(Q=b.match(fho))?Q.map(NVA).filter(Boolean):[];else if(Array.isArray(b))Q=b;else return BVq;var E=Q;Q=[];var t=[],k={};if(Array.isArray(E))for(var U=0,H=E.length;U<H;++U){var l=E[U],N=l&&l.url;if(N){var S=F(N,"URL",k);if(S){var f=S!==k;(f?Q:t).push({url:f?S:N,metadata:l.metadata})}}}else t.push(E);E=t.length?JSON.stringify(t):null;t=nX;if(Q.length){if(!Array.isArray(Q))throw Error();t=Q.map(XaW).filter(Boolean).join(" , ")||
nX}E&&G&&G(!0,"Failed to sanitize attribute value of <"+V+">: <"+V+" "+J+'="'+b+'">: '+E,z);return t===nX?BVq:t},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
hwB=function(C){var F=LHI(C);return function(G,V,J,b){return b||b===document.all?F(G,V,J)(b):b}};
um=function(C,F){function G(){function J(Q,E,t){for(E=Reflect.getMetadata("parameters",Q)||[];E.length<=t;)E.push(null);E[t]=E[t]||[];E[t].push(z);Reflect.defineMetadata(E,Q);return Q}
var b=_.Rn.apply(0,arguments);if(this instanceof G)return V.apply(this,b),this;var z=new (Function.prototype.bind.apply(G,[null].concat(_.da(b))));J.annotation=z;return J}
var V=cBf(F);G.prototype.toString=function(){return"@"+C};
return G.annotationCls=G};
cBf=function(C){return function(){var F=_.Rn.apply(0,arguments),G=this;C.forEach(function(V,J){J=F[J];if(Array.isArray(V))G[V[0]]=J&&J!==void 0?J:V[1];else for(var b in V)G[b]=J&&J[b]!==void 0?J[b]:V[b]})}};
ABE=function(C){return C!==void 0&&C!==null};
z_=function(C){if(typeof C==="string")return C;if(C===void 0||C===null)return""+C;if(C.overriddenName)return C.overriddenName;if(C.name)return C.name;C=C.toString();var F=C.indexOf("\n");return F===-1?C:C.substring(0,F)};
ew9=function(C){C.__forward_ref__=ew9;C.toString=function(){return z_(this())};
return C};
Qz=function(C){return typeof C==="function"&&C.hasOwnProperty("__forward_ref__")&&C.__forward_ref__===ew9?C():C};
dq9=function(C){return C?C.map(function(F){return new (Function.prototype.bind.apply(F.type.annotationCls,[null].concat(_.da(F.args?F.args:[]))))}):[]};
xqs=function(C){for(var F=[],G=0;G<C.length;++G){if(F.indexOf(C[G])>-1){F.push(C[G]);break}F.push(C[G])}return F};
ssw=function(C){return C.length>1?" ("+xqs(C.slice().reverse()).map(function(F){return z_(F.token)}).join(" -> ")+")":""};
Pe5=function(C,F,G,V){if(V){var J=Error("df``"+(V instanceof Error?V.message:V));J.ngOriginalError=V}else J=Error();J.addKey=qkI;J.keys=[F];J.injectors=[C];J.constructResolvingMessage=G;J.message=J.constructResolvingMessage();J.ngOriginalError=V;return J};
qkI=function(C,F){this.injectors.push(C);this.keys.push(F);this.message=this.constructResolvingMessage()};
gpB=function(C,F){return Pe5(C,F,function(){return"No provider for "+z_(this.keys[0].token)+"!"+ssw(this.keys)})};
Rwf=function(C,F){return Pe5(C,F,function(){return"Cannot instantiate cyclic dependency!"+ssw(this.keys)})};
YkW=function(C,F,G){return Pe5(C,G,function(){var V=z_(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+V+"!"+ssw(this.keys)+"."},F)};
TVS=function(C,F){for(var G=[],V=0,J=F.length;V<J;V++){var b=F[V];b&&b.length!=0?G.push(b.map(z_).join(" ")):G.push("?")}return Error("hf`"+z_(C)+"`"+G.join(", ")+"`"+z_(C))};
CNZ=function(C){var F=void 0,G=void 0;if(C&&C.useClass!==void 0){F=C.useClass;var V=Qz(C.useClass);var J=opq.factory(V);V=rBI(V)}else C&&C.useExisting!==void 0?(J=function(b){return b},V=[KHW(Io.get(Qz(C.useExisting)))]):C&&C.useFactory!==void 0?(J=C.useFactory,V=Dqw(C.useFactory,C.deps)):(G=C.useValue,J=function(){return C.useValue},V=pa5);
return new mqi(J,V,F,G)};
FFf=function(C){return new j4o(Io.get(Qz(C.provide)),[CNZ(C)],C.multi)};
V$T=function(C){C=GTW(C,[]).map(FFf);for(var F=new Map,G=0;G<C.length;G++){var V=C[G],J=F.get(V.key.id);if(J){if(V.multiProvider!==J.multiProvider)throw Error("kf`"+J+"`"+V);if(V.multiProvider)for(var b=0;b<V.resolvedFactories.length;b++)J.resolvedFactories.push(V.resolvedFactories[b]);else F.set(V.key.id,V)}else J=void 0,V.multiProvider?J=new j4o(V.key,V.resolvedFactories.slice(),V.multiProvider):J=V,F.set(V.key.id,J)}return Array.from(F.values())};
GTW=function(C,F){C.forEach(function(G){if(G instanceof iaI)F.push({provide:G,useClass:G});else if(G&&typeof G=="object"&&G.provide!==void 0)F.push(G);else if(G instanceof Array)GTW(G,F);else throw Error("gf`"+G);});
return F};
Dqw=function(C,F){if(F){var G=F.map(function(V){return[V]});
return F.map(function(V){return JLB(C,V,G)})}return rBI(C)};
rBI=function(C){var F=opq.parameters(C);if(!F)return[];if(F.some(function(G){return G==null}))throw TVS(C,F);
return F.map(function(G){return JLB(C,G,F)})};
JLB=function(C,F,G){var V=null,J=!1;if(!Array.isArray(F))return F instanceof $iZ?baW(F.token,J,null):baW(F,J,null);for(var b=null,z=0;z<F.length;++z){var Q=F[z];if(Q instanceof iaI)V=Q;else if(Q instanceof $iZ)V=Q.token;else if(Q instanceof nrw)J=!0;else if(Q instanceof uti||Q instanceof zSi)b=Q}V=Qz(V);if(V!=null)return baW(V,J,b);throw TVS(C,G);};
baW=function(C,F,G){return new Q4I(Io.get(Qz(C)),F,G)};
IE5=function(C,F){for(var G=Array(C.providers.length),V=0;V<C.providers.length;++V){var J=V;if(V<0||V>=C.providers.length)throw Error("jf`"+V);G[J]=F(C.providers[V])}return G};
Ers=function(C){return typeof C==="function"&&opq.parameters(C).every(function(F){return!!F})};
aEB=function(C){var F=WFW;t$E.get(C)||t$E.set(C,new F);return t$E.get(C)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(C){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(C)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(C){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(C)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(C,F){var G,V;if(C.contains(F))return!0;C=_.E5(C).querySelectorAll("content,slot");for(G=0;G<C.length;++G){var J=_.E5(C[G]).getDistributedNodes();for(V=0;V<J.length;++V)if(J[V].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(J[V],F))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(C){C.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(C)&&C.preventDefault();C.targetTouches&&(C=C.targetTouches[0],kTE=C.pageX,UiB=C.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 C=0,F=W9.length;C<F;C++)document.addEventListener(W9[C],_._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 C=0,F=W9.length;C<F;C++)document.removeEventListener(W9[C],_._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(C){var F=_.E5(C).rootTarget;C.type!=="touchmove"&&HaZ!==F&&(HaZ=F,lEE=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.E5(C).path));if(!lEE.length)return!0;if(C.type==="touchstart")return!1;C=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(C);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(lEE,C.deltaX,C.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(C){for(var F=[],G=C.indexOf(yLA),V=0;V<=G;V++)if(C[V].nodeType===Node.ELEMENT_NODE){var J=C[V],b=J.style;b.overflow!=="scroll"&&b.overflow!=="auto"&&(b=window.getComputedStyle(J));b.overflow!=="scroll"&&b.overflow!=="auto"||F.push(J)}return F};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(C,F,G){if(F||G)for(var V=Math.abs(G)>=Math.abs(F),J=0;J<C.length;J++){var b=C[J];if(V?G<0?b.scrollTop>0:b.scrollTop<b.scrollHeight-b.clientHeight:F<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(C){var F={deltaX:C.deltaX,deltaY:C.deltaY};"deltaX"in C||("wheelDeltaX"in C&&"wheelDeltaY"in C?(F.deltaX=-C.wheelDeltaX,F.deltaY=-C.wheelDeltaY):"wheelDelta"in C?(F.deltaX=0,F.deltaY=-C.wheelDelta):"axis"in C?(F.deltaX=C.axis===1?C.detail:0,F.deltaY=C.axis===2?C.detail:0):C.targetTouches&&(C=C.targetTouches[0],F.deltaX=kTE-C.pageX,F.deltaY=UiB-C.pageY));return F};
ZaI=function(C){this.element=C;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
Oa9=function(C){this.element=C;this.color=window.getComputedStyle(C).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");_.E5(this.waveContainer).appendChild(this.wave);N3w(this)};
tr=function(C,F){for(var G in C)if(G.toLowerCase()===F.toLowerCase())return C[G]};
X3W=function(C,F){for(var G in C)if(G.toLowerCase()===F.toLowerCase()){delete C[G];break}};
M$o=function(C){C=_.xf.clone(C);for(var F=0;F<w3f.length;++F){var G=w3f[F],V=tr(C,G);V&&(C["X-Goog-Upload-Header-"+G]=V,X3W(C,G))}return C};
Sz5=function(C){C=_.xf.clone(C);X3W(C,"X-Goog-Upload-Status")};
B3Z=function(C){return LFf.some(function(F){return F.test(C)})};
cLf=function(C,F){var G;var V=(G=C.formContent)==null?void 0:G.locale;G=V==null?void 0:V.split("-")[0];V=V&&vrW.includes(V)?V:G&&vrW.includes(G)?G:void 0;V=(V!=null?V:"en").replaceAll("-","_").toLowerCase();var J;C=((J=C.initializationData)==null?0:J.useNightlyRelease)?"nightly":"live";var b;return(F==null?0:(b=F.getEnableAlohaBinarySplit)==null?0:b.call(F))?_.kf(fEW,C):_.kf(hSA,C,V)};
diq=function(C,F,G,V){if(ALw&&eST===F)return ALw;eST=F;var J=cLf(C,V);return ALw=F.feedbackV2GlobalObject?Promise.resolve(F.feedbackV2GlobalObject):new Promise(function(b,z){var Q=_.Md("SCRIPT");_.JW(Q,J);Q.onload=function(){F.feedbackV2GlobalObject?b(F.feedbackV2GlobalObject):z(Error("nf"))};
Q.onerror=function(){z(Error("of`"+J.toString()))};
G.body.appendChild(Q)})};
qzS=function(C,F,G,V){if(xi5&&s49===F)return xi5;s49=F;var J=cLf(C,V);return xi5=F.feedbackV2GlobalObject?Promise.resolve(F.feedbackV2GlobalObject):new Promise(function(b,z){var Q=_.Md("SCRIPT");_.JW(Q,J);Q.onload=function(){F.feedbackV2GlobalObject?b(F.feedbackV2GlobalObject):z(Error("nf"))};
Q.onerror=function(){z(Error("of`"+J.toString()))};
G.body.appendChild(Q)})};
PNq=function(C,F,G,V,J){J=J===void 0?!0:J;var b,z,Q,E,t;return _.I(function(k){switch(k.nextAddress){case 1:return b=Date.now(),k.yield(diq(C,G,V,F),2);case 2:z=k.yieldResult;if(!(J||((E=C.initializationData)==null?0:E.useNightlyRelease)||((t=C.initializationData)==null?0:t.isLocalServer))){Q=z.initializeFeedbackClient(C,b,F);k.jumpTo(3);break}return k.yield(z.initializeFeedbackClientAsync(C,b,F),4);case 4:Q=k.yieldResult;case 3:return Q.initiateAloha(),k.return(Q)}})};
grw=function(C,F,G,V){var J,b,z;return _.I(function(Q){if(Q.nextAddress==1)return J=Date.now(),Q.yield(qzS(C,G,V.document,F),2);if(Q.nextAddress!=3)return b=Q.yieldResult,Q.yield(b.initializeFeedbackClientAsync(C,J,F,V),3);z=Q.yieldResult;z.initiateAloha();return Q.return(z)})};
RSw=function(C,F,G){var V=!0;V=V===void 0?!0:V;var J,b,z,Q,E,t,k,U,H,l;return _.I(function(N){J=G||_.VT;if((b=F)==null?0:(Q=(z=b).getEnableAlohaBinarySplit)==null?0:Q.call(z)){E=J;if(E.isFormOpened)throw t=Error("pf"),t.name="DuplicateFormError",t;E.isFormOpened=!0;C.callbacks=C.callbacks||{};k=C.callbacks.onClose||function(){};
C.callbacks.onClose=function(S){E.isFormOpened=!1;k(S)};
try{return N.return(grw(C,F,E,J))}catch(S){throw E.isFormOpened=!1,S;}}else{U=J;if(U.isFormOpened)throw H=Error("pf"),H.name="DuplicateFormError",H;U.isFormOpened=!0;C.callbacks=C.callbacks||{};l=C.callbacks.onClose||function(){};
C.callbacks.onClose=function(S){U.isFormOpened=!1;l(S)};
try{return N.return(PNq(C,F,U,J.document,V))}catch(S){throw U.isFormOpened=!1,S;}}_.S9(N)})};
KFI=function(C,F){return _.I(function(G){return G.return(new Promise(function(V,J){Number.isInteger(Number(C))&&Number(C)>0?(J=Yzf(F!=null?F:"")+"/aloha_form_properties?productId="+C,T3S(J,function(b){b=b.target;var z=null;try{var Q=JSON,E=Q.stringify;if(b.JSC$9795_xhr_){var t=b.JSC$9795_xhr_.responseText;t.indexOf(")]}'\n")==0&&(t=t.substring(5));var k=(0,_.ao)(t)}else k=void 0;z=olB(orI,E.call(Q,k))}catch(U){E=new orI,k=rLB(),k=_.k6(k,13,!1),k=_.k6(k,14,!0),k=_.k6(k,15,!0),k=_.k6(k,20,!1),z=_.OL(E,
1,k)}V(z)},"GET","",{},2E3,!0)):J(Error("qf`"+C))}))})};
Yzf=function(C){return B3Z(C)?C:"https://www.google.com/tools/feedback"};
CJs=function(C){C=C.match(new RegExp(DiZ,"gi"))||[];C=_.u(C);for(var F=C.next();!F.done;F=C.next()){F=F.value;a:{var G=_.u(p35);for(var V=G.next();!V.done;V=G.next())if(V.value.test(F)){G=!1;break a}G=!0}if(!G)a:{G=_.u(miA);for(V=G.next();!V.done;V=G.next())if(V.value.test(F)){G=!0;break a}G=!1}if(G)return!0}return!1};
jYA=function(C,F){var G={},V=Object.keys(C);V=_.u(V);for(var J=V.next();!J.done;J=V.next())J=J.value,G[J]=F(J,C[J]);return G};
Fwq=function(C){switch(C){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"}};
VHZ=function(C){if(window.crypto&&window.crypto.getRandomValues)try{var F=Array(C),G=new Uint8Array(C);window.crypto.getRandomValues(G);for(var V=0;V<F.length;V++)F[V]=G[V];return F}catch(b){}F=Array(C);for(G=0;G<C;G++){V=Date.now();for(var J=0;J<V%23;J++)F[G]=Math.random();F[G]=Math.floor(Math.random()*256)}if(GDE)for(G=1,V=0;V<GDE.length;V++)F[G%C]^=F[(G-1)%C]/4^GDE.charCodeAt(V),G++;return F};
U5=function(C){C=VHZ(C);for(var F=[],G=0;G<C.length;G++)F.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(C[G]&63));return F.join("")};
iq9=function(){var C=_.VT.ytLoggingDocDocumentNonce_;C||(C=U5(16),_.zn("ytLoggingDocDocumentNonce_",C));return C};
$7f=function(C){C&&_.q1("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:JYE,clientScreenNonce:C})};
bqq=function(C){return _.TF("client-screen-nonce-store",{})[C===void 0?0:C]};
nHZ=function(C,F){F=F===void 0?0:F;var G=_.TF("client-screen-nonce-store");G||(G={},_.Yn("client-screen-nonce-store",G));G[F]=C};
usW=function(C){C=C===void 0?0:C;return C===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+C};
zas=function(C){return _.TF(usW(C===void 0?0:C))};
_.lm=function(C){return(C=zas(C===void 0?0:C))?new H9({veType:C,youtubeData:void 0,jspbYoutubeData:void 0}):null};
QY5=function(){var C=_.TF("csn-to-ctt-auth-info");C||(C={},_.Yn("csn-to-ctt-auth-info",C));return C};
IwZ=function(){return Object.values(_.TF("client-screen-nonce-store",{})).filter(function(C){return C!==void 0})};
_.ZQ=function(C){C=bqq(C===void 0?0:C);if(!C&&!_.oD("USE_CSN_FALLBACK",!0))return null;C||(C="UNDEFINED_CSN");return C?C:null};
WwA=function(C){for(var F=_.u(Object.values(EHS)),G=F.next();!G.done;G=F.next())if(_.ZQ(G.value)===C)return!0;return!1};
tHS=function(C,F,G){var V=QY5();(G=_.ZQ(G))&&delete V[G];F&&(V[C]=F)};
NU=function(C){return QY5()[C]};
_.O5=function(C,F,G,V){G=G===void 0?0:G;if(C!==bqq(G)||F!==_.TF(usW(G)))if(tHS(C,V,G),nHZ(C,G),_.Yn(usW(G),F),F=function(){setTimeout(function(){$7f(C)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(F)}catch(J){F()}else F()};
awW=function(C,F){F=F===void 0?"":F;var G=[],V;for(V in C)if(C.hasOwnProperty(V)){var J=F!==""?F+"."+V:V;typeof C[V]==="object"?G.push.apply(G,_.da(awW(C[V],J))):G.push([J,C[V]])}G.sort();return G};
_.wz=function(C){var F=_.Rn.apply(1,arguments);if(!Xw(C)||F.some(function(V){return!Xw(V)}))throw Error("rf");
F=_.u(F);for(var G=F.next();!G.done;G=F.next())kDf(C,G.value)};
kDf=function(C,F){for(var G in F)if(Xw(F[G])){if(G in C&&!Xw(C[G]))throw Error("sf");G in C||(C[G]={});kDf(C[G],F[G])}else if(U7W(F[G])){if(G in C&&!U7W(C[G]))throw Error("tf");G in C||(C[G]=[]);HqS(C[G],F[G])}else C[G]=F[G];return C};
HqS=function(C,F){F=_.u(F);for(var G=F.next();!G.done;G=F.next())G=G.value,Xw(G)?C.push(kDf({},G)):U7W(G)?C.push(HqS([],G)):C.push(G);return C};
Xw=function(C){return typeof C==="object"&&!Array.isArray(C)};
U7W=function(C){return typeof C==="object"&&Array.isArray(C)};
yYA=function(C){for(var F=_.u(Object.entries(lwo)),G=F.next();!G.done;G=F.next())if(G=_.u(G.value),G.next(),G=G.next().value,G==="SLI_STATUS_"+C)return G;return"SLI_STATUS_UNKNOWN"};
_.MU=function(C,F,G,V){return ZqW(C,F,function(){return new _.NgB(C,F,G,V)})};
_.OqZ=function(){return _.MU("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
XPs=function(){return _.MU("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
ST=function(){return _.MU("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
wPA=function(){return _.MU("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
MHo=function(){return _.MU("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
SXB=function(){return _.MU("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
vHE=function(C){C&&(C.dataset?C.dataset[Lwo()]="true":_.bi([_.Wj(BgI)],C,"data-loaded","true".toString()))};
fwT=function(C){return C?C.dataset?C.dataset[Lwo()]:C.getAttribute("data-loaded"):null};
Lwo=function(){return haB.loaded||(haB.loaded="loaded".replace(/\-([a-z])/g,function(C,F){return F.toUpperCase()}))};
_.LX=function(C,F,G){cYf(C,F,G===void 0?null:G)};
_.eaq=function(C,F){C&&F&&(C=""+_.rI(F),(C=AYZ[C])&&_.lDZ(C))};
cYf=function(C,F,G){G=G===void 0?null:G;var V=_.d7Z(typeof C==="string"?C:C.toString()),J=document.getElementById(V),b=J&&fwT(J),z=J&&!b;b?F&&F():(F&&(b=_.a1(V,F),F=""+_.rI(F),AYZ[F]=b),z||(J=x79(C,V,function(){fwT(J)||(vHE(J),_.yCS(V),_.lH(function(){_.NQs(V)},0))},G)))};
x79=function(C,F,G,V){V=V===void 0?null:V;var J=_.Md("SCRIPT");J.id=F;J.onload=function(){G&&setTimeout(G,0)};
J.onreadystatechange=function(){switch(J.readyState){case "loaded":case "complete":J.onload()}};
V&&J.setAttribute("nonce",V);_.JW(J,typeof C==="string"?_.eo(C):C);C=document.getElementsByTagName("head")[0]||document.body;C.insertBefore(J,C.firstChild);return J};
_.d7Z=function(C){var F=document.createElement("a");TB(F,C);return"js-"+B9(F.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
sYq=function(C){var F=_.TF("INNERTUBE_HOST_OVERRIDE");F&&(C=String(F)+String(_.v9(C)));return C};
qXW=function(C){var F={};_.y("json_condensed_response")&&(F.prettyPrint="false");return C=g6q(C,F)};
_.fX=function(C){return uH(C)?"same-origin":"include"};
_.hr=function(C){return uH(C)?"same-origin":"cors"};
c9=function(C,F,G){G=G===void 0?{}:G;C={method:F===void 0?"POST":F,mode:_.hr(C),credentials:_.fX(C)};F={};for(var V=_.u(Object.keys(G)),J=V.next();!J.done;J=V.next())J=J.value,G[J]&&(F[J]=G[J]);Object.keys(F).length>0&&(C.headers=F);return C};
_.Ar=function(C,F){F=F===void 0?{}:F;return"service:"+C+"/"+Object.keys(F).sort().map(function(G){return G+":"+F[G]}).join("/")};
PJ5=function(C){var F,G,V,J;C=(F=_.Z(C,_.eT))==null?void 0:(G=F.watchEndpointSupportedOnesieConfig)==null?void 0:(V=G.html5PlaybackOnesieConfig)==null?void 0:(J=V.commonConfig)==null?void 0:J.url;if(!C)return[];F=new _.dz(C);return F.JSC$10031_domain_?["https://"+F.JSC$10031_domain_+"/generate_204"]:[]};
_.YX5=function(){return gH9()||KyI()||RaW&&o8("version/")?!0:_.TF("EOM_VISITOR_DATA")?!1:!0};
Tgs=function(C){var F=C.docid||C.video_id||C.videoId||C.id;if(F)return F;F=C.raw_player_response;F||(C=C.player_response)&&(F=JSON.parse(C));return F&&F.videoDetails&&F.videoDetails.videoId||null};
oHo=function(C){return C.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
x6=function(C){return!isNaN(Number(C))&&!_.uZ(C)};
_.qU=function(C,F,G,V){V=V===void 0?!0:V;var J=_.TF("VALID_SESSION_TEMPDATA_DOMAINS",[]),b=_.bH(window.location.href);b&&J.push(b);b=_.bH(C);if(_.sB(J,b)||!b&&_.Js(C,"/"))if(J=document.createElement("a"),TB(J,C),C=J.href)if(C=_.v9(C),C=_.s5(C))V&&!F.csn&&(F.itct||F.ved)&&(F=Object.assign({csn:_.ZQ()},F)),G?(G=parseInt(G,10),isFinite(G)&&G>0&&rYI(C,F,G)):rYI(C,F)};
D7f=function(C){var F=_.TF("VALID_SESSION_TEMPDATA_DOMAINS",[]),G=_.bH(window.location.href);G&&F.push(G);G=_.bH(C);if(!(_.sB(F,G)||!G&&_.Js(C,"/")))return null;C=_.v9(C);(C=_.s5(C))?(C=KwB(C),C=(C=_.BD.get(C,void 0)||null)?_.GN(C):{}):C=null;return C};
rYI=function(C,F,G){C=KwB(C);F=F?_.Me(F):"";G=G||5;_.YX5()&&_.vD(C,F,G)};
KwB=function(C){for(var F=_.u(pPT),G=F.next();!G.done;G=F.next())C=_.P9(C,G.value);return"ST-"+B9(C).toString(36)};
_.m7w=function(C){if(C.requestFullscreen)C=C.requestFullscreen(void 0);else if(C.webkitRequestFullscreen)C=C.webkitRequestFullscreen();else if(C.mozRequestFullScreen)C=C.mozRequestFullScreen();else if(C.msRequestFullscreen)C=C.msRequestFullscreen();else if(C.webkitEnterFullscreen)C=C.webkitEnterFullscreen();else return Promise.reject(Error("Cf"));return C instanceof Promise?C:Promise.resolve()};
_.Ro=function(C){var F;_.byo(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.gz()==C&&(F=document):F=C;if(F&&(C=_.byo(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],F))){C.call(F)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.gz=function(){var C=C===void 0?!1:C;var F=_.byo(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(C)for(;F&&F.shadowRoot;)F=F.shadowRoot.fullscreenElement;return F?F:null};
_.Y6=function(C,F){F=F===void 0?!0:F;C.addEventListener("wheel",CuB);C.overscrollConfig={cooldown:F}};
_.T_=function(C){C.overscrollConfig=void 0;C.removeEventListener("wheel",CuB)};
CuB=function(C){var F=C.deltaY,G=C.target,V=null;if(window.Polymer&&window.Polymer.Element){if(G=C.path||C.composedPath&&C.composedPath()){G=_.u(G);for(var J=G.next();!J.done&&(J=J.value,!jdZ(J,F));J=G.next())if(J.overscrollConfig){V=J;break}}}else for(;G&&!jdZ(G,F);){if(G.overscrollConfig){V=G;break}G=G.parentElement}V&&(F=V.overscrollConfig,F.cooldown?(V=C.deltaY,G=F.lastDeltaY||0,F.lastDeltaY=V,J=F.lastStopped||0,G&&J&&G>0==V>0?Math.abs(G)>=Math.abs(V)?(V=J+1200,G=!1):(V=J+600,G=!0):(V=Date.now()+
600,G=!0),V>Date.now()&&(C.preventDefault(),G&&(F.lastStopped=Date.now()))):C.preventDefault())};
jdZ=function(C,F){return F<0&&C.scrollTop>0||F>0&&C.scrollTop<C.scrollHeight-C.clientHeight-1?(C=getComputedStyle(C).overflowY,C=="auto"||C=="scroll"):!1};
_.oo=function(C,F,G,V){V||(V={bubbles:!0,cancelable:!1,composed:!0});G!==null&&G!==void 0&&(V.detail=G);var J=new CustomEvent(F,V);_.y("untrack_fire_custom_event_killswitch")?C.dispatchEvent(J):_.lb(function(){return void C.dispatchEvent(J)});
return J};
FVq=function(C){var F=window,G=function(V){F.removeEventListener("yt-navigate-start",G);return C.call(F,V)};
F.addEventListener("yt-navigate-start",G,void 0)};
_.rz=function(C,F,G,V){F=new GL9(F,!(V===void 0||!V),G);_.oo(C,"yt-action",F);return F.returnValue};
_.KX=function(C,F,G){return _.rz(C,F,G,!0)};
_.pX=function(C,F,G,V){F&&F.length&&F.forEach(function(J){var b=JmZ(J);b&&(_.y("handle_service_request_actions")&&J.commandMetadata&&J.commandMetadata.webCommandMetadata&&J.commandMetadata.webCommandMetadata.sendPost?_.DQ(G?G:C,[J]):_.KX(C,b,[J,G,V]))})};
_.DQ=function(C,F){var G=[C];F&&G.push.apply(G,F);F=_.rz(C,"yt-service-request",G);return F.length>0&&(F=F[0],_.oo(C,"yt-service-request-sent",F),F&&F.ajaxPromise)?(F.ajaxPromise.then(function(V){_.oo(C,"yt-service-request-completed",V)},function(V){_.oo(C,"yt-service-request-error",{error:V,
params:G})},C),F.ajaxPromise):_.mE()};
_.jj=function(C,F){if(_.y("handle_service_request_actions"))_.pX(F,C,F);else{C=_.u(C);for(var G=C.next();!G.done;G=C.next()){G=G.value;var V=void 0;((V=_.Z(G,_.Cl))==null?0:V.commands)?_.jj(_.Z(G,_.Cl).commands,F):(V=void 0,((V=_.Z(G,_.FI))==null?0:V.actions)?_.jj(_.Z(G,_.FI).actions,F):(V=void 0,((V=_.Z(G.commandMetadata,_.GU))==null?0:V.sendPost)?_.DQ(F,[G]):_.pX(F,[G],F)))}}};
_.iHs=function(C,F,G){F=F===void 0?{}:F;typeof F==="function"&&(F={callback:F});G||F._c&&F._c.jsl&&F._c.jsl.h||_.xf.extend(F,{_c:{jsl:{h:_.TF("GAPI_HINT_PARAMS")}}});(F.gapiHintOverride||_.TF("GAPI_HINT_OVERRIDE"))&&(G=_.Vt(document.location.href).gapi_jsh)&&_.xf.extend(F,{_c:{jsl:{h:G}}});V6I(C,F)};
_.iQ=function(C,F,G){F=F===void 0?{}:F;C=(C=C in VO?VO[C]:G)||"";G={};for(var V in F){G={key$jscomp$844:G.key$jscomp$844};G.key$jscomp$844=V;var J=function(b){return function(){return String(F[b.key$jscomp$844])}}(G);
C=C.replace(new RegExp("\\$\\{"+G.key$jscomp$844+"\\}","gi"),J);C=C.replace(new RegExp("\\$"+G.key$jscomp$844,"gi"),J)}return C};
_.J3=function(C,F){return Jas(C in VO?VO[C]:{},F)};
Jas=function(C,F){var G=_.TF("I18N_PLURAL_RULES");G||(G=function(V){return V==1?"one":"other"});
return(C=C["case"+F]||C[G(F)])?C.replace("#",F.toString()):F+""};
nDT=function(C){var F=$Sw(C),G=document.getElementById(F),V=G&&fwT(G);V||G&&!V||(G=bHs(C,F,function(){if(!fwT(G)){vHE(G);_.yCS(F);var J=_.$B(_.NQs,F);_.lH(J,0)}}))};
bHs=function(C,F,G){var V=document.createElement("link");V.id=F;V.onload=function(){G&&setTimeout(G,0)};
C=_.eo(C);_.nv(V,C,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(V);return V};
$Sw=function(C){var F=_.Md("A");TB(F,ch(C));return"css-"+B9(F.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.zbI=function(C){var F=u9q();C!==F&&(F=_.bQ(),!_.y("web_autonav_allow_off_by_default")&&C||_.nl(0,141,!0),_.nl(0,140,!C),F.save())};
u9q=function(){var C=_.bQ();return _.y("web_autonav_allow_off_by_default")&&!C.getFlag(141)&&_.TF("AUTONAV_OFF_BY_DEFAULT")?!1:!C.getFlag(140)};
QdW=function(C,F){var G,V;C=((G=C.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(V=G.videoAuthorizationToken)==null?void 0:V.credentialTransferTokens)||[];for(G=0;G<C.length;++G)if(C[G].scope===F)return C[G].token||void 0};
IYs=function(C){for(var F=0,G=0;G<C.length;G++)F=F*31+C.charCodeAt(G),G<C.length-1&&(F%=0x800000000000);return F%1E5};
_.uQ=function(C){return _.mN("ytcsi."+(C||"")+"data_")||EDT(C)};
_.WVI=function(C){C=_.uQ(C);C.metadata||(C.metadata={});return C.metadata};
_.t6w=function(C){C=_.uQ(C);C.tick||(C.tick={});return C.tick};
_.zU=function(C){C=_.uQ(C);if(C.gel){var F=C.gel;F.gelInfos||(F.gelInfos={});F.gelTicks||(F.gelTicks={})}else C.gel={gelTicks:{},gelInfos:{}};return C.gel};
_.aYZ=function(C){C=_.zU(C);C.gelInfos||(C.gelInfos={});return C.gelInfos};
kLw=function(C){var F=_.uQ(C).nonce;F||(F=U5(16),_.uQ(C).nonce=F);return F};
EDT=function(C){var F={tick:{},info:{}};_.zn("ytcsi."+(C||"")+"data_",F);return F};
USS=function(){var C=_.mN("ytcsi.debug");C||(C=[],_.zn("ytcsi.debug",C),_.zn("ytcsi.reference",{}));return C};
_.QO=function(C){C=C||"";var F=HHE();if(F[C])return F[C];var G=USS(),V={timerName:C,info:{},tick:{},span:{},jspbInfo:[]};G.push(V);return F[C]=V};
lYS=function(C){C=C||"";var F=HHE();F[C]&&delete F[C];var G=USS(),V={timerName:C,info:{},tick:{},span:{},jspbInfo:[]};G.push(V);F[C]=V};
HHE=function(){var C=_.mN("ytcsi.reference");if(C)return C;USS();return _.mN("ytcsi.reference")};
_.ZHE=function(C){return yaT[C]||"LATENCY_ACTION_UNKNOWN"};
wfi=function(C,F,G){G=G===void 0?{}:G;var V=!1;_.oD("ytLoggingEventsDefaultDisabled",!1)&&(V=!0);V=V?null:s1;G=G===void 0?{}:G;var J=Math.round(G.timestamp||(0,_.Et)());_.f1(F,1,J<Number.MAX_SAFE_INTEGER?J:0);J=new Nfs;if(G.lact)_.f1(J,1,isFinite(G.lact)?G.lact:-1);else if(G.timestamp)_.f1(J,1,-1);else{var b=_.I1();_.f1(J,1,isFinite(b)?b:-1)}if(G.sequenceGroup&&!_.y("web_gel_sequence_info_killswitch")){b=G.sequenceGroup;var z=fHE(b),Q=new OHB;_.f1(Q,2,z);_.fA(Q,1,b);_.OL(J,3,Q);G.endOfSequence&&delete XfW[G.sequenceGroup]}_.OL(F,
33,J);(G.sendIsolatedPayload?sPi:q9A)(C,{endpoint:"log_event",payload:F,cttAuthInfo:G.cttAuthInfo,dangerousLogToVisitorSession:G.dangerousLogToVisitorSession},V)};
_.EZ=function(){return(_.y("csi_use_time_origin")||_.y("csi_use_time_origin_tvhtml5"))&&_.IQ.timeOrigin?Math.floor(_.IQ.timeOrigin):_.IQ.timing.navigationStart};
_.M6q=function(C,F){_.WA("_start",C,F)};
_.t3=function(C,F){if(!_.y("web_csi_action_sampling_enabled")||!_.uQ(F).actionDisabled){var G=_.QO(F||"");_.wz(G.info,C);C.loadType&&(G=C.loadType,_.WVI(F).loadType=G);_.wz(_.aYZ(F),C);G=kLw(F);F=_.uQ(F).cttAuthInfo;SR9().info(C,G,F)}};
LVS=function(){var C,F,G,V;return((V=_.I8().resolve(_.Qt(A5))==null?void 0:(C=eQ())==null?void 0:(F=C.loggingHotConfig)==null?void 0:(G=F.csiConfig)==null?void 0:G.debugTicks)!=null?V:[]).map(function(J){return Object.values(J)[0]})};
_.WA=function(C,F,G){if(!_.y("web_csi_action_sampling_enabled")||!_.uQ(G).actionDisabled){var V=kLw(G),J;if(J=_.y("web_csi_debug_sample_enabled")&&V){(_.I8().resolve(_.Qt(A5))==null?0:eQ())&&!Bfi&&(Bfi=!0,_.WA("gcfl",(0,_.Et)(),G));var b,z,Q;J=(_.I8().resolve(_.Qt(A5))==null?void 0:(b=eQ())==null?void 0:(z=b.loggingHotConfig)==null?void 0:(Q=z.csiConfig)==null?void 0:Q.debugSampleWeight)||0;if(b=J!==0)b:{b=LVS();if(b.length>0)for(z=0;z<b.length;z++)if(C===b[z]){b=!0;break b}b=!1}b?(J=IYs(V)%J!==0,
_.uQ(G).debugTicksExcludedLogged||(b={},b.debugTicksExcluded=J,_.t3(b,G)),_.uQ(G).debugTicksExcludedLogged=!0):J=!1}if(!J){C[0]!=="_"&&vDA(C,G,F);J=_.QO(G||"");J.tick[C]=F||(0,_.Et)();if(J.callback&&J.callback[C])for(J=_.u(J.callback[C]),b=J.next();!b.done;b=J.next())b=b.value,b();J=_.zU(G);J.gelTicks&&(J.gelTicks[C]=!0);b=_.t6w(G);J=F||(0,_.Et)();_.y("log_repeated_ytcsi_ticks")?C in b||(b[C]=J):b[C]=J;b=_.uQ(G).cttAuthInfo;C==="_start"?SR9().baseline(V,F,b):SR9().tick(C,V,F,b);_.fYS(G);return J}}};
vDA=function(C,F,G){if(_.IQ.mark)if(C.startsWith("mark_")||(C="mark_"+C),F&&(C+=" ("+F+")"),G===void 0||_.y("web_csi_disable_alt_time_performance_mark"))_.IQ.mark(C);else{G=_.y("csi_use_performance_navigation_timing")?G-_.IQ.timeOrigin:G-(_.IQ.timeOrigin||_.IQ.timing.navigationStart);try{_.IQ.mark(C,{startTime:G})}catch(V){}}};
hbT=function(){var C,F=(C=_.IQ.getEntriesByType)==null?void 0:C.call(_.IQ,"mark");F&&F.forEach(function(G){if(G.name.startsWith("mark_")){var V;(V=_.IQ.clearMarks)==null||V.call(_.IQ,G.name)}})};
_.ca9=function(){switch($DA()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.Aai=function(C){var F={},G=function(b,z,Q){z=z.match("_rid")?z.split("_rid")[0]:z;typeof Q==="number"&&(Q=JSON.stringify(Q));b.requestIds?b.requestIds.push({endpoint:z,id:Q}):b.requestIds=[{endpoint:z,id:Q}]};
C=_.u(Object.entries(C));for(var V=C.next();!V.done;V=C.next()){var J=_.u(V.value);V=J.next().value;J=J.next().value;switch(V){case "GetBrowse_rid":G(F,V,J);break;case "GetGuide_rid":G(F,V,J);break;case "GetHome_rid":G(F,V,J);break;case "GetPlayer_rid":G(F,V,J);break;case "GetSearch_rid":G(F,V,J);break;case "GetSettings_rid":G(F,V,J);break;case "GetTrending_rid":G(F,V,J);break;case "GetWatchNext_rid":G(F,V,J);break;case "yt_red":F.isRedSubscriber=!!J;break;case "yt_ad":F.isMonetized=!!J}}return F};
dS9=function(C,F,G,V,J,b){if(!_.y("web_csi_action_sampling_enabled")||!_.uQ(b).actionDisabled){var z=_.zU(b);if(z.gelSpans)z.gelSpans[C]=!0;else{var Q={};z.gelSpans=(Q[C]=!0,Q)}ebI++;C={spanName:C,spanLengthUsec:String(Math.round(F*1E3)),spanNonce:ebI};V&&(C.spanInfo=V);J&&(C.parentSpanNonce=J);G&&(C.spanStartTimeUsec=String(Math.round(G*1E3)));_.QO(b||"").span[String(C.spanName)]=C;G=_.zU(b);G.gelSpans||(G.gelSpans={});_.wz(G.gelSpans,C);G=kLw(b);b=_.uQ(b).cttAuthInfo;SR9().span(C,G,b);return C.spanNonce}};
_.xSq=function(C){var F=_.aQ("aft",C);if(F)return F;F=_.TF((C||"")+"TIMING_AFT_KEYS",["ol"]);for(var G=F.length,V=0;V<G;V++){var J=_.aQ(F[V],C);if(J)return J}return NaN};
_.sds=function(C,F){_.zn("ytglobal.timing"+(F||"")+"ready_",C)};
_.aQ=function(C,F){if(C=_.t6w(F)[C])return typeof C==="number"?C:C[C.length-1]};
_.fYS=function(C){var F=_.aQ("_start",C),G=_.xSq(C),V=!qRI;F&&G&&V&&(huB(Puw,new gDZ(Math.round(G-F),C)),qRI=!0)};
YRB=function(C){EDT(C);RbZ();hbT();C||(_.TF("TIMING_ACTION")&&_.Yn("PREVIOUS_ACTION",_.TF("TIMING_ACTION")),_.Yn("TIMING_ACTION",""))};
_.Tfw=function(C){C=C===void 0?{}:C;_.pW(function(){kB();lYS();YRB();_.sds(!1);C.cttAuthInfo&&(_.uQ().cttAuthInfo=C.cttAuthInfo);_.Yn("TIMING_AFT_KEYS",[]);C.isHot?_.UZ({loadType:"hot"}):_.UZ({loadType:"warm"});_.Yn("TIMING_ACTION","");delete _.TF("TIMING_INFO",{}).yt_lt;_.pW(_.M6q)(C.startTime,void 0)})()};
_.Z8=function(C,F,G,V){F=F===void 0?{}:F;_.pW(function(){var J=G?G:C;HA(J);var b=F.sampleRate;if(!_.y("web_csi_action_sampling_enabled")||b===void 0||b<=1)b=!1;else{var z=kLw(J);b=IYs(z)%b!==0}b&&(_.uQ(J).actionDisabled=!0);_.QO(J||"").info.actionType=C;F.cttAuthInfo&&(_.uQ(J).cttAuthInfo=F.cttAuthInfo);_.Yn(J+"TIMING_ACTION",C);_.pW(_.M6q)(F.startTime,J);b={actionType:V||_.ZHE(C)};F.logPreviousAction&&(b.previousAction=_.ZHE(_.TF("TIMING_ACTION")));(z=_.ZQ())&&z!=="UNDEFINED_CSN"&&(b.clientScreenNonce=
z);_.UZ(b,J);_.sds(!0,J)})()};
HA=function(C){_.pW(function(){kB(C);lYS(C);YRB(C)})()};
oDE=function(){_.pW(function(){var C=[],F;for(F in _.mN("ytcsi.".slice(0,-1)))F.endsWith("data_")&&C.push(F.slice(0,-5));C=_.u(C);for(F=C.next();!F.done;F=C.next())HA(F.value);kB()})()};
_.KVT=function(C){return _.pW(function(){return _.raq("_start",C)})()};
_.UZ=function(C,F,G){_.pW(_.t3)(C,F,G===void 0?!1:G)};
_.NV=function(C,F,G){return _.pW(_.WA)(C,F,G)};
_.raq=function(C,F){return _.pW(function(){var G=_.t6w(F);return C in G})()};
pfw=function(C){if(!_.y("universal_csi_network_ticks"))return"";C=_.X$(C)||"";for(var F=Object.keys(DSf),G=0;G<F.length;G++){var V=F[G];if(C.includes(V))return V}return""};
CWs=function(C){if(!_.y("universal_csi_network_ticks"))return function(){};
var F=DSf[C];return F?(_.OZ(F),function(){var G=_.y("universal_csi_network_ticks")?(G=mSf[C])?_.OZ(G):!1:!1;return G}):function(){}};
_.OZ=function(C,F,G){return _.pW(function(){if(_.raq(C,G))return!1;_.NV(C,F,G);return!0})()};
_.XI=function(C,F,G){_.pW(function(){if(!_.KVT(G)||_.raq(C,G))return!1;_.NV(C,F,G);return!0})()};
_.wh=function(C){return _.pW(_.aQ)(C,void 0)};
kB=function(C){_.KVT(C)&&_.NV("aa",void 0,C)};
_.iQi=function(C,F,G,V,J,b,z,Q,E){var t=jjZ();Q=new H9({veType:F,youtubeData:b,jspbYoutubeData:Q});b=MV({},t);J&&(b.cttAuthInfo=J);J={csn:t,pageVe:Q.getAsJson()};_.y("expectation_logging")&&E&&E.screenCreatedLoggingExpectations&&(J.screenCreatedLoggingExpectations=E.screenCreatedLoggingExpectations);G&&G.visualElement?(J.implicitGesture={parentCsn:G.clientScreenNonce,gesturedVe:G.visualElement.getAsJson()},z&&(J.implicitGesture.gestureType=z)):G&&_.Yw(new _.Ay("newScreen() parent element does not have a VE - rootVe",
F));V&&(J.cloneCsn=V);C?xw("screenCreated",J,C,b):_.q1("screenCreated",J,b);huB(q6Z,new FoZ(t));Sj.clear();GzS.clear();Vlq.clear();return t};
Ll=function(C,F,G,V,J,b){b=b===void 0?{}:b;JKT(C,F,G,[V],J===void 0?!1:J,b)};
JKT=function(C,F,G,V,J,b){J=J===void 0?!1:J;b=b===void 0?{}:b;Object.assign(b,MV({cttAuthInfo:NU(F)||void 0},F));for(var z=_.u(V),Q=z.next();!Q.done;Q=z.next()){Q=Q.value;var E=Q.getAsJson();(_.xf.isEmpty(E)||!E.trackingParams&&!E.veType)&&_.Yw(Error("Df"));if(_.y("no_client_ve_attach_unless_shown")){var t=$Js(Q,F);if(E.veType&&!GzS.has(t)&&!Vlq.has(t)&&!J){if(!_.y("il_attach_cache_limit")||Sj.size<1E3){Sj.set(t,[C,F,G,Q]);return}_.y("il_attach_cache_limit")&&Sj.size>1E3&&_.Yw(new _.Ay("IL Attach cache exceeded limit"))}Q=
$Js(G,F);Sj.has(Q)?bQf(G,F):Vlq.set(Q,!0)}}V=V.filter(function(k){k.csn!==F?(k.csn=F,k=!0):k=!1;return k});
G={csn:F,parentVe:G.getAsJson(),childVes:_.ss(V,function(k){return k.getAsJson()})};
F==="UNDEFINED_CSN"?BA("visualElementAttached",b,G):C?xw("visualElementAttached",G,C,b):_.q1("visualElementAttached",G,b)};
uuE=function(C,F,G,V,J){nXw(C,F,G,J)};
nXw=function(C,F,G,V){z$W(G,F);var J=MV({cttAuthInfo:NU(F)||void 0},F);G={csn:F,ve:G.getAsJson(),eventType:1};V&&(G.clientData=V);F==="UNDEFINED_CSN"?BA("visualElementShown",J,G):C?xw("visualElementShown",G,C,J):_.q1("visualElementShown",G,J)};
Qjo=function(C,F,G,V){z$W(G,F);var J=MV({cttAuthInfo:NU(F)||void 0},F);G={csn:F,ve:G.getAsJson(),eventType:4};V&&(G.clientData=V);F==="UNDEFINED_CSN"?BA("visualElementShown",J,G):C?xw("visualElementShown",G,C,J):_.q1("visualElementShown",G,J)};
Ipw=function(C,F,G,V,J){var b=(V=V===void 0?!1:V)?16:8;V=MV({cttAuthInfo:NU(F)||void 0,endOfSequence:V},F);G={csn:F,ve:G.getAsJson(),eventType:b};J&&(G.clientData=J);F==="UNDEFINED_CSN"?BA("visualElementHidden",V,G):C?xw("visualElementHidden",G,C,V):_.q1("visualElementHidden",G,V)};
WoS=function(C,F,G,V,J){EXS(C,F,G,void 0,V,J)};
EXS=function(C,F,G,V,J){z$W(G,F);V=V||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var b=MV({cttAuthInfo:NU(F)||void 0},F);G={csn:F,ve:G.getAsJson(),gestureType:V};J&&(G.clientData=J);F==="UNDEFINED_CSN"?BA("visualElementGestured",b,G):C?xw("visualElementGestured",G,C,b):_.q1("visualElementGestured",G,b)};
tlA=function(C,F,G,V){var J=MV({cttAuthInfo:NU(F)||void 0},F);G={csn:F,ve:G.getAsJson(),clientData:V};F==="UNDEFINED_CSN"?BA("visualElementStateChanged",J,G):C?xw("visualElementStateChanged",G,C,J):_.q1("visualElementStateChanged",G,J)};
apZ=function(){var C=VHZ(16);for(var F=[],G=0;G<C.length;G++)F.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(C[G]&63));return F.join("")};
BA=function(C,F,G){kzs.push({payloadName:C,payload:G,jspbPayload:void 0,options:F});UJf||(UJf=gTw())};
stZ=function(C){if(kzs){for(var F=_.u(kzs),G=F.next();!G.done;G=F.next())G=G.value,G.payload&&(G.payload.csn=C.csn,_.q1(G.payloadName,G.payload,G.options));kzs.length=0}UJf=0};
$Js=function(C,F){return""+C.getAsJson().veType+C.getAsJson().veCounter+F};
z$W=function(C,F){if(_.y("no_client_ve_attach_unless_shown")){var G=$Js(C,F);GzS.set(G,!0);bQf(C,F)}};
bQf=function(C,F){C=$Js(C,F);Sj.has(C)&&(F=Sj.get(C)||[],Ll(F[0],F[1],F[2],F[3],!0),Sj.delete(C))};
MV=function(C,F){_.y("log_sequence_info_on_gel_web")&&(C.sequenceGroup=F);return C};
_.vA=function(C,F,G){_.pW(Ll)(void 0,C,F,G)};
_.fl=function(C,F,G){_.pW(JKT)(void 0,C,F,G)};
_.h3=function(C,F){_.pW(uuE)(void 0,C,F,void 0,void 0,void 0)};
_.cA=function(C,F,G){_.pW(function(){_.F$(F,function(V){Qjo(void 0,C,V,G)})})()};
_.A3=function(C,F,G,V){_.pW(function(){_.F$(F,function(J){Ipw(void 0,C,J,G,V)})})()};
_.ej=function(C,F,G){_.pW(WoS)(void 0,C,F,G,void 0)};
_.dh=function(C,F,G,V){_.pW(EXS)(void 0,C,F,G,V,void 0)};
_.xB=function(C,F,G){_.pW(tlA)(void 0,C,F,G,void 0)};
HQB=function(C,F){sZ.set(C,F)};
lpi=function(C){qV.initialized=!0;qV.sessionId=C.sessionId||"";qV.enabledSpans=C.enabledSpans;C.shouldSampleFn!=null&&(qV.shouldSampleFn=C.shouldSampleFn)};
yKw=function(C){qV.processors.push(C)};
ZQ9=function(C){return qV.initialized?qV.enabledSpans?qV.enabledSpans[C]:!0:!1};
Now=function(C,F){if(C){F=F===void 0?1:F;if(C){C.endTime=(0,_.Et)();F&&(C.status=F);F=_.u(qV.processors);for(var G=F.next();!G.done;G=F.next()){G=G.value;try{var V=void 0,J=void 0;(J=(V=G).onSpanEnd)==null||J.call(V,C)}catch(b){_.Yw(b)}}}C!==qV.stack[qV.stack.length-1]&&_.Yw(Error("Gf`"+C.name));qV.stack.pop()}};
X09=function(C,F,G){if(ZQ9(C)&&qV.shouldSampleFn(C,F,OQw)){var V=qV.nextSpanId++,J=qV.stack[qV.stack.length-1];C={id:V,parentId:J==null?void 0:J.id,name:C,attributes:F,traceId:J?J.traceId:V,sessionId:qV.sessionId,startTime:(0,_.Et)(),status:0};J&&(J.children||(J.children=[]),J.children.push(C));J=_.u(qV.processors);for(F=J.next();!F.done;F=J.next()){F=F.value;try{var b=V=void 0;(b=(V=F).onSpanStart)==null||b.call(V,C)}catch(Q){_.Yw(Q)}}}else C=void 0;C?qV.stack.push(C):C=void 0;if(!C)return G();try{var z=
G(C);Now(C);return z}catch(Q){throw Now(C,2),Q;}};
w0E=function(){};
MlS=function(C,F){var G=Object.keys(C);C=new _.Ay("[Command Handler] "+F,{filteredCommandNames:G,originalCommand:C});_.gD(C)};
SfT=function(C,F){MlS(C,F+" was called but not set")};
LoW=function(C){return function(){return new C}};
PA=function(C){return function(){return _.I8().resolve(C)}};
Bo9=function(C,F){var G=_.Z(C,_.DU);if(G&&(G=F[G.signal]))return G();C=_.u(Object.keys(C));for(G=C.next();!G.done;G=C.next())if(G=G.value,F[G]&&(G=F[G]))return G()};
_.gh=function(C,F,G,V){return{browseEndpoint:{browseId:C},commandMetadata:{webCommandMetadata:{url:F,rootVe:G,webPageType:V===void 0?"WEB_PAGE_TYPE_BROWSE":V}}}};
vXT=function(C,F,G){var V=F=F===void 0?0:F;G=G===void 0?0:G;var J=G-V;return _.RQ(C,"PPSV",void 0,void 0,(J>600?0:J<60||G<=0||V/G>.9)?0:F)};
_.RQ=function(C,F,G,V,J){var b="/watch?v="+C;C={videoId:C};F&&(C.playlistId=F,b+="&list="+F);V&&(b+="&pp="+V);J&&(C.startTimeSeconds=J,b+="&t="+J+"s");F={watchEndpoint:C,commandMetadata:{webCommandMetadata:{url:b,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};G&&(F.clickTrackingParams=G);V&&(_.Z(F,_.eT).playerParams=V);return F};
fps=function(C){return{browseEndpoint:{browseId:"VL"+C},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+C,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
h$W=function(C){if(C){var F;if(C){var G=(F=_.Z(C.commandMetadata,_.GU))==null?void 0:F.url;F=!(!G||G==="/service_ajax")}else F=!1;if(F)return C;var V;if(C=(V=_.Z(C,_.Cl))==null?void 0:V.commands)for(V=_.u(C),C=V.next();!C.done;C=V.next())if(C=h$W(C.value))return C}};
_.YB=function(C){return{runs:[{text:C}]}};
cK5=function(C,F){return C&&F?{runs:[{text:C,navigationEndpoint:F}]}:void 0};
TU=function(C){return C?_.YB(C):void 0};
_.oQ=function(C){return C?{simpleText:C}:void 0};
_.rh=function(C){var F=C.type;C=C.payload;F={type:F};C!==void 0&&(F.payload=C);return F};
AKI=function(C,F,G){for(var V=Object.assign({},C),J=_.u(Object.keys(F)),b=J.next();!b.done;b=J.next()){b=b.value;var z=C[b],Q=F[b];if(Q===void 0)delete V[b];else if(z===void 0)V[b]=Q;else if(Array.isArray(Q)&&Array.isArray(z))V[b]=G?[].concat(_.da(z),_.da(Q)):Q;else if(!Array.isArray(Q)&&_.TE(Q)&&!Array.isArray(z)&&_.TE(z))V[b]=AKI(z,Q,G);else if(typeof Q===typeof z)V[b]=Q;else return F=new _.Ay("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:b,originalValue:z,updateValue:Q}),
_.gD(F),C}return V};
xJE=function(C){if(!C.length)return"";try{if(e$Z)return e$Z.decode(C);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(C)}catch(z){}for(var F=0,G=[],V=C.length;F<V;){for(var J=0;J<1024&&F<V;){var b=C[F++];if(b<128)dJq[J++]=b;else{if(b<224)b=(b&31)<<6|C[F++]&63;else if(b<240)b=(b&15)<<12|(C[F++]&63)<<6|C[F++]&63;else{if(J+1===1024){--F;break}b=(b&7)<<18|(C[F++]&63)<<12|(C[F++]&63)<<6|C[F++]&63;b-=65536;dJq[J++]=55296|b>>10;b=56320|b&1023}dJq[J++]=b}}b=String.fromCharCode.apply(String,
dJq);J<1024&&(b=b.substring(0,J));G.push(b)}return G.join("")};
qfW=function(C,F){var G;if((G=sjW)==null?0:G.encodeInto)return F=sjW.encodeInto(C,F),F.read<C.length?C.length*4:F.written;for(var V=G=0;V<C.length;V++){var J=C.charCodeAt(V);J<128?F[G++]=J:(J<2048?F[G++]=J>>6|192:((J&64512)===55296&&V+1<C.length&&(C.charCodeAt(V+1)&64512)===56320?(J=65536+((J&1023)<<10)+(C.charCodeAt(++V)&1023),F[G++]=J>>18|240,F[G++]=J>>12&63|128):F[G++]=J>>12|224,F[G++]=J>>6&63|128),F[G++]=J&63|128)}return G};
PWA=function(C,F,G){if(F&&G&&G.buffer===F.exports.memory.buffer){var V=F.realloc(G.byteOffset,C);if(V)return new Uint8Array(F.exports.memory.buffer,V,C)}C=F?new Uint8Array(F.exports.memory.buffer,F.malloc(C),C):new Uint8Array(C);G&&C.set(G);return C};
_.D8=function(C){C=new gXq(new R$w([_.p9(decodeURIComponent(C))]));if(Yfs(C,2)){var F=Kl(C);var G=C.pos;var V=C.arrayView;G=G===void 0?0:G;var J=F===void 0?-1:F;G=G===void 0?0:G;J=J===void 0?-1:J;if(V.totalLength&&J){J<0&&(J=V.totalLength-G);V.focus(G);if(!(G-V.arrayPos+J<=V.arrays[V.arrayIdx].length)){var b=V.arrayIdx,z=V.arrayPos;V.focus(G+J-1);z=new Uint8Array(V.arrayPos+V.arrays[V.arrayIdx].length-z);for(var Q=0,E=b;E<=V.arrayIdx;E++)z.set(V.arrays[E],Q),Q+=V.arrays[E].length;V.arrays.splice(b,
V.arrayIdx-b+1,z);V.arrayIdx=0;V.arrayPos=0;V.focus(G)}b=V.arrays[V.arrayIdx];V=new DataView(b.buffer,b.byteOffset+G-V.arrayPos,J)}else V=new DataView(new ArrayBuffer(0));V=new Uint8Array(V.buffer,V.byteOffset,V.byteLength);C.pos+=F;F=V}else F=void 0;F=F?xJE(F):void 0;C=Yfs(C,4)?Kl(C):void 0;V=Tos[C];if(typeof V==="undefined")throw C=new _.Ay("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:C}),_.gD(C),C;return{entityTypeFieldNumber:C,entityType:V,entityId:F}};
_.C7=function(C,F,G){G=G===void 0?0:G;var V=new oXS;if(sjW)C=sjW.encode(C);else{var J=new Uint8Array(Math.ceil(C.length*1.2)),b=qfW(C,J);J.length<b&&(J=new Uint8Array(b),b=qfW(C,J));J.length>b&&(J=J.subarray(0,b));C=J}C!==void 0&&(pl(V,18),J=C.length,pl(V,J),my(V,J),V.buf.set(C,V.pos),V.pos+=J);C=rKI[F];if(typeof C==="undefined")throw G=new _.Ay("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:F}),_.gD(G),G;C!==void 0&&(pl(V,32),pl(V,C));pl(V,40);pl(V,1);F=new Uint8Array(V.buf.buffer,
V.buf.byteOffset,V.pos);return encodeURIComponent(_.eU(F,G))};
Koq=function(C){C=C.key||C.id;if(!C)throw Error("If");return C};
p0E=function(C,F){C=C===void 0?{}:C;return DJB(C,F)};
mJE=function(C,F,G,V){if(V===void 0)return V=Object.assign({},C[F]||{}),G=(delete V[G],V),V={},Object.assign({},C,(V[F]=G,V));var J={},b={};return Object.assign({},C,(b[F]=Object.assign({},C[F],(J[G]=V,J)),b))};
CMZ=function(C,F,G,V,J){var b=C[F];if(b==null||!b[G])return C;V=AKI(b[G],V,J==="REPEATED_FIELDS_MERGE_OPTION_APPEND");J={};b={};return Object.assign({},C,(b[F]=Object.assign({},C[F],(J[G]=V,J)),b))};
_.jN=function(C,F,G){return C[F]?C[F][G]||null:null};
Fno=function(){if(jmS)return jmS();var C={};jmS=Ia("PersistentEntityStoreDb",{objectStores:(C.EntityStore={addedAtVersion:1},C.EntityAssociationStore={addedAtVersion:2},C),shared:!1,upgrade:function(F,G){G(1)&&pO(Ds(F,"EntityStore",{keyPath:"key"}),"entityType","entityType");G(2)&&(F=Ds(F,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),pO(F,"byParentEntityKey","parentEntityKey"),pO(F,"byChildEntityKey","childEntityKey"))},
version:3});return jmS()};
GWE=function(C){return _.iw(Fno(),C)};
F0=function(C){return window.Int32Array?new Int32Array(C):Array(C)};
iSs=function(C){return _.iw(V8W(),C)};
JhI=function(C){return new Gc("WRONG_DATA_TYPE",{encoderVersion:C})};
$Z5=function(C){return C instanceof Error?new Gc("UNKNOWN_ENCODE_ERROR",{originalMessage:C.message}):new Gc("UNKNOWN_ENCODE_ERROR")};
bSW=function(C){return C instanceof Error?new Gc("UNKNOWN_DECODE_ERROR",{originalMessage:C.message}):new Gc("UNKNOWN_DECODE_ERROR")};
nsE=function(C,F){C=C instanceof Gc?C:F(C);_.gD(C);throw C;};
uxw=function(C){C=(new TextEncoder).encode(C).subarray(0,16);var F=new Uint8Array(16);F.set(C);return F};
Qm5=function(C){var F=zFs[C];if(F)return F;_.Yw(new _.Ay("Entity model not found.",{entityType:C}))};
_.Vj=function(){ISi||(ISi=Eso());return ISi};
Eso=function(){var C,F,G;return _.I(function(V){if(V.nextAddress==1)return _.yy(V,2),V.yield(_.Qn(),4);if(V.nextAddress!=2){C=V.yieldResult;if(!C||!_.cD()||typeof _.VT.BroadcastChannel==="undefined")return V.return();F=new WnB;return V.return(new iK(C,F))}G=_.wa(V);G instanceof Error&&_.gD(G);return V.return()})};
_.J4=function(C,F){var G;return _.I(function(V){if(V.nextAddress==1){G=C.mutations;if(!G||G.length<=0)return V.return();F&&F.dispatch(_.rh({type:"ENTITY_LOADED",payload:G}));return V.yield(t8S(G),2)}G.length=0;_.S9(V)})};
t8S=function(C){var F;return _.I(function(G){return G.nextAddress==1?G.yield(_.Vj(),2):(F=G.yieldResult)?G.yield(_.$2(F,"readwrite",function(V){for(var J={},b=_.u(C),z=b.next(),Q={};!z.done;Q={mutation$jscomp$8:void 0,mutationEntityType$jscomp$3:void 0},z=b.next())Q.mutation$jscomp$8=z.value,Q.mutation$jscomp$8.entityKey&&aS5(Q.mutation$jscomp$8)&&(Q.mutationEntityType$jscomp$3=(0,_.xf.getAnyKey)(Q.mutation$jscomp$8.payload),z=void 0,Q.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(z=function(E){return function(){return _.kWA(V,
E.mutation$jscomp$8.payload[E.mutationEntityType$jscomp$3],E.mutationEntityType$jscomp$3)}}(Q)),Q.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_DELETE"&&(z=function(E){return function(){return UZw(V,E.mutation$jscomp$8.entityKey)}}(Q)),Q.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(z=function(E){return function(){return HSw(V,E.mutation$jscomp$8.entityKey,E.mutation$jscomp$8.payload[E.mutationEntityType$jscomp$3],E.mutationEntityType$jscomp$3)}}(Q)),z&&(J[Q.mutation$jscomp$8.entityKey]=
J[Q.mutation$jscomp$8.entityKey]?J[Q.mutation$jscomp$8.entityKey].then(z):z()));
return pD.all(Object.values(J))}),0):G.return()})};
aS5=function(C){var F;C=(F=C.options)==null?void 0:F.persistenceOption;return C==="ENTITY_PERSISTENCE_OPTION_PERSIST"||C==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
ZSE=function(C,F){var G,V;_.I(function(J){if(J.nextAddress==1)return J.yield(_.Vj(),2);if(J.nextAddress!=3)return(G=J.yieldResult)?J.yield(_.$2(G,"readonly",function(b){var z={},Q=Object.keys(F).map(function(E){var t=F[E]?[].concat(_.da(F[E])):[];return lSs(b,E,t,z)});
return pD.all(Q).then(function(){return z})}),3):J.return();
V=J.yieldResult;Object.keys(V).length>0&&C.dispatch(yhs(V));_.S9(J)})};
lSs=function(C,F,G,V){return bK(C,F,G).then(function(J){V[F]=N6B(G,J)})};
N6B=function(C,F){if(F.length!==C.length)throw Error("Lf");return F.reduce(function(G,V,J){G[C[J]]=V;return G},{})};
w$E=function(C){var F=C.filter(function(J){var b;return(J==null?void 0:(b=J.transferEntity)==null?void 0:b.transferState)==="TRANSFER_STATE_COMPLETE"}).length,G=C.filter(function(J){var b;
return(J==null?void 0:(b=J.transferEntity)==null?void 0:b.transferState)==="TRANSFER_STATE_FAILED"}).length,V=C.filter(function(J){var b;
return(J==null?void 0:(b=J.transferEntity)==null?void 0:b.transferState)&&OSB.includes(J.transferEntity.transferState)});
if(!(F||V!=null&&V.length))return 0;F=_.X$i(V)+F;C=C.length-G;return C===0?0:Math.round(F*100/C)/100};
_.X$i=function(C){var F=[];F=F.concat.apply(F,_.da(C.filter(function(b){return b.streamEntity}).map(function(b){var z=Object.assign({},b.streamEntity),Q,E=(Q=b.transferEntity)==null?void 0:Q.transferState;
z.streamsProgress=z.streamsProgress||[];z.streamsProgress=z.streamsProgress.map(function(t){var k=Object.assign({},t);k.numBytesDownloaded=E==="TRANSFER_STATE_COMPLETE"?t.numTotalBytes:t.numBytesDownloaded;return k});
return z}).map(function(b){return b.streamsProgress})));
var G=C=0;F=_.u(F);for(var V=F.next();!V.done;V=F.next()){var J=V.value;V=Number(J.numBytesDownloaded);J=Number(J.numTotalBytes);G+=isNaN(V)?0:V;C+=isNaN(J)?0:J}return C===0?0:Math.round(G*100/C)/100};
M8B=function(C){if(!C||!C.expirationTimestamp||!C.action)return!1;var F=(0,_.Et)()/1E3;return Number(C.expirationTimestamp)>=F};
n7=function(C){return C&&C.expirationTimestamp&&C.action?M8B(C)&&C.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.uK=function(C){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(C||"TRANSFER_STATE_UNKNOWN")};
SiS=function(C){var F=new oXS;if(C!==void 0){var G=Math.ceil(Math.log2(C.length*4+2)/7);G=G===void 0?2:G;pl(F,10);F.submessagePosStack.push(F.pos);F.submessagePosStack.push(G);F.pos+=G;my(F,C.length*1.2);G=qfW(C,F.buf.subarray(F.pos));F.pos+G>F.buf.length&&(my(F,G),G=qfW(C,F.buf.subarray(F.pos)));F.pos+=G;C=F.submessagePosStack.pop();G=F.submessagePosStack.pop();for(var V=F.pos-G-C;C--;){var J=C?128:0;F.view.setUint8(G++,V&127|J);V>>=7}}F=new Uint8Array(F.buf.buffer,F.buf.byteOffset,F.pos);return(new TextDecoder("utf-8")).decode(F)};
_.zc=function(C){var F=0;C=_.u(C);for(var G=C.next(),V={};!G.done;V={transferState$jscomp$3:void 0},G=C.next()){var J=G.value,b=void 0;G=(b=J.streamEntity)!=null?b:{};b=void 0;V.transferState$jscomp$3=(b=J.transferEntity)==null?void 0:b.transferState;b=J=void 0;((J=G)==null?0:(b=J.streamsProgress)==null?0:b.length)&&G.streamsProgress.forEach(function(z){return function(Q){Q=Number(z.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?Q.numTotalBytes:Q.numBytesDownloaded);isFinite(Q)&&(F+=Q)}}(V))}return F};
Lnf=function(C){return C.some(function(F){var G;if(!(F==null?0:(G=F.transferEntity)==null?0:G.transferState)){var V;return!(F==null?0:(V=F.policyEntity)==null?0:V.action)||F.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return OSB.includes(F.transferEntity.transferState)})};
B6S=function(C,F){if(!F)return!1;if(_.y("of_pb_en_po_ks"))return!0;var G;C=(G=_.jN(C,"offlineVideoPolicy",_.C7(F,"offlineVideoPolicy")))!=null?G:void 0;return!!C&&n7(C)};
_.fSA=function(C){var F=["TRANSFER_STATE_COMPLETE"];F=F===void 0?vsT:F;return C.filter(function(G){var V,J;return F.includes((J=(V=G.transferEntity)==null?void 0:V.transferState)!=null?J:"TRANSFER_STATE_UNKNOWN")})};
hFT=function(C,F){if(F){var G,V=(G=_.jN(C,"playbackData",_.C7(F,"playbackData")))!=null?G:null,J;G=(J=_.jN(C,"transfer",_.C7(F,"transfer")))!=null?J:null;var b;J=(b=_.jN(C,"offlineVideoStreams",_.C7(F,"offlineVideoStreams")))!=null?b:null;var z;C=(z=_.jN(C,"offlineVideoPolicy",_.C7(F,"offlineVideoPolicy")))!=null?z:null;if(V||G||J||C)return{playbackDataEntity:V,transferEntity:G,streamEntity:J,policyEntity:C}}};
_.Qj=function(C){var F=C.playbackData;if(!F)return[];var G=[];F=_.u(Object.keys(F));for(var V=F.next();!V.done;V=F.next()){var J=V.value;if(!chs(C,_.D8(J).entityId)&&(V=hFT(C,_.D8(J).entityId))){var b=void 0,z=void 0;J=(z=Number((b=_.jN(C,"playbackData",J))==null?void 0:b.streamDownloadTimestampSeconds))!=null?z:(0,_.Et)();G.push({entity:V,streamDownloadTimestamp:J})}}return G.sort(function(Q,E){var t=Q.streamDownloadTimestamp,k=E.streamDownloadTimestamp;return k===t?Q.entity.streamEntity&&!E.entity.streamEntity?
1:-1:k-t}).map(function(Q){return Q.entity})};
AhT=function(C){return _.fSA(_.Qj(C))};
_.eFq=function(C){return _.Qj(C).filter(function(F){var G;if(((G=F.policyEntity)==null?0:G.action)&&F.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var V;if((V=F.transferEntity)==null?0:V.transferState){var J;return OSB.includes((J=F.transferEntity)==null?void 0:J.transferState)}return!0})};
chs=function(C,F){var G;return((G=_.jN(C,"downloadStatusEntity",_.C7(F,"downloadStatusEntity")))==null?void 0:G.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
dZA=function(C){var F;if(C==null?0:(F=C.playbackDataEntity)==null?0:F.key)return _.D8(C.playbackDataEntity.key).entityId;var G;if(C==null?0:(G=C.transferEntity)==null?0:G.key)return _.D8(C.transferEntity.key).entityId;var V;if(C==null?0:(V=C.streamEntity)==null?0:V.key)return _.D8(C.streamEntity.key).entityId;var J;if(C==null?0:(J=C.policyEntity)==null?0:J.key)return _.D8(C.policyEntity.key).entityId};
smZ=function(C){var F=new Set,G;C=(G=C.mainDownloadsListEntity)==null?void 0:G[xZT];var V;if(!(C==null?0:(V=C.downloads)==null?0:V.length))return F;var J;C==null||(J=C.downloads)==null||J.forEach(function(b){(b==null?0:b.videoItem)&&F.add(b.videoItem)});
return F};
IA=function(C,F){if(F){var G=_.jN(C,"mainVideoEntity",_.C7(F,"mainVideoEntity")),V=_.jN(C,"downloadStatusEntity",_.C7(F,"downloadStatusEntity")),J=_.jN(C,"ytMainChannelEntity",_.C7(F,"ytMainChannelEntity")),b={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};C=hFT(C,F);V=(V==null?void 0:V.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.y("woffle_render_failed_download_state_ks")&&(V==null?void 0:V.downloadState)==="DOWNLOAD_STATE_FAILED";!C&&V&&(C=b);if(C&&G&&
J)return Object.assign({},{videoEntity:G,channelEntity:J},C)}};
PMT=function(C,F){return qiZ(C,F)==="TRANSFER_STATE_COMPLETE"&&B6S(C,F)};
gsW=function(C,F){if(!F)return!1;var G;C=(G=_.jN(C,"playbackData",_.C7(F,"playbackData")))!=null?G:void 0;return!!C&&!!C.playerResponseJson};
qiZ=function(C,F){if(!F)return"TRANSFER_STATE_UNKNOWN";var G=_.jN(C,"transfer",_.C7(F,"transfer"));if(G){var V;return(V=G.transferState)!=null?V:"TRANSFER_STATE_UNKNOWN"}G=_.jN(C,"offlineOrchestrationActionWrapperEntity",_.C7(F,"offlineOrchestrationActionWrapperEntity"));C=_.jN(C,"mainVideoEntity",_.C7(F,"mainVideoEntity"));return G||C?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
RF5=function(C,F){if(!F)return"TRANSFER_STATE_UNKNOWN";if(C=_.jN(C,"transfer",_.C7(F,"transfer"))){var G;return(G=C.transferState)!=null?G:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
YiT=function(C,F){return F&&(C=_.jN(C,"videoPlaybackPositionEntity",_.C7(F,"videoPlaybackPositionEntity")),C==null?0:C.lastPlaybackPositionSeconds)?Number(C.lastPlaybackPositionSeconds):0};
oss=function(C,F){return T6A(C).some(function(G){var V;return(G==null?void 0:(V=G.mainPlaylistEntity)==null?void 0:V.playlistId)===F})};
Kn9=function(C,F,G){var V=rh5(C,F);if(!V.length)return[];F=[];V=_.u(V);for(var J=V.next();!J.done;J=V.next()){J=J.value;var b=IA(C,J);G&&qiZ(C,J)!=="TRANSFER_STATE_COMPLETE"||b&&F.push(b)}return F};
rh5=function(C,F){if(!F)return[];var G=_.C7(F,"mainPlaylistEntity"),V;F=(V=C.mainPlaylistEntity)==null?void 0:V[G];V=[];if(F==null||!F.videos)return V;F=_.u(F.videos);for(G=F.next();!G.done;G=F.next()){G=G.value;var J=void 0,b=void 0,z=void 0,Q=(J=C)==null?void 0:(b=J.mainPlaylistVideoEntity)==null?void 0:(z=b[G])==null?void 0:z.video;Q&&(G=_.D8(Q).entityId)&&V.push(G)}return V};
DZw=function(C,F){if(F){var G=_.jN(C,"mainPlaylistEntity",_.C7(F,"mainPlaylistEntity")),V=_.jN(C,"mainPlaylistDownloadStateEntity",_.C7(F,"mainPlaylistDownloadStateEntity"));C=_.jN(C,"ytMainChannelEntity",_.C7(F,"ytMainChannelEntity"));if(V&&G)return Object.assign({},{mainPlaylistEntity:G,mainPlaylistDownloadStateEntity:V},!!C&&{channelEntity:C})}};
T6A=function(C){return p$q(C).sort(function(F,G){return G.addedTimestampMillis-F.addedTimestampMillis}).map(function(F){return F.downloadedPlaylistEntities})};
p$q=function(C){var F=C.mainPlaylistDownloadStateEntity,G=[];if(!F)return G;for(var V=_.u(Object.keys(F)),J=V.next();!J.done;J=V.next()){var b=J.value;J=DZw(C,_.D8(b).entityId);var z=void 0;b=Number((z=F[b])==null?void 0:z.addedTimestampMillis);z=isNaN(b)?(0,_.Et)():b;J!==void 0&&G.push({downloadedPlaylistEntities:J,addedTimestampMillis:z})}return G};
mZE=function(C){var F,G=(F=C.mainPlaylistVideoEntity)!=null?F:{};return new Set(T6A(C).reduce(function(V,J){V=V===void 0?[]:V;var b,z;J==null||(b=J.mainPlaylistEntity)==null||(z=b.videos)==null||z.forEach(function(Q){var E;(Q=(E=G[Q])==null?void 0:E.video)&&V.push(Q)});
return V},[]))};
CcS=function(C){return"downloadedMusicPlaylistEntities"in C};
jkS=function(C){return"mainPlaylistEntity"in C&&"mainPlaylistDownloadStateEntity"in C};
FPo=function(C){return"videoEntity"in C&&"channelEntity"in C};
GVf=function(C){var F=C.musicPlaylistDownloadMetadataEntity,G=[];if(!F)return G;for(var V=_.u(Object.keys(F)),J=V.next();!J.done;J=V.next()){J=J.value;a:{var b=C,z=_.D8(J).entityId;if(z){var Q=_.jN(b,"musicPlaylist",_.C7(z,"musicPlaylist"));b=_.jN(b,"musicPlaylistDownloadMetadataEntity",_.C7(z,"musicPlaylistDownloadMetadataEntity"));if(Q&&b){Q={musicPlaylistEntity:Q,musicPlaylistDownloadStateEntity:b};break a}}Q=void 0}b=void 0;J=Number((b=F[J])==null?void 0:b.addedTimestampMillis);J=isNaN(J)?(0,_.Et)():
J;Q!==void 0&&G.push({downloadedMusicPlaylistEntities:Q,addedTimestampMillis:J})}return G};
Vpw=function(C){var F=new Set;C=_.u(C);for(var G=C.next();!G.done;G=C.next())if(G=G.value,"musicPlaylistEntity"in G&&"musicPlaylistDownloadStateEntity"in G){G=_.u(G.musicPlaylistEntity.tracks);for(var V=G.next();!V.done;V=G.next())F.add(V.value)}return F};
iJw=function(C,F){if(F){var G=_.jN(C,"musicTrack",_.C7(F,"musicTrack")),V=_.jN(C,"musicArtist",_.C7(F,"musicArtist"))||{};if((C=hFT(C,F))&&G&&V)return Object.assign({},{musicTrackEntity:G,musicArtistEntity:V},C)}};
JSI=function(C){var F=C.musicTrackDownloadMetadataEntity,G=[];if(!F)return[];F=_.u(Object.keys(F));for(var V=F.next();!V.done;V=F.next()){var J=V.value;V=iJw(C,_.D8(J).entityId);var b=void 0;J=Number((b=_.jN(C,"musicTrackDownloadMetadataEntity",J))==null?void 0:b.addedTimestampMillis);b=isNaN(J)?(0,_.Et)():J;V!==void 0&&G.push({downloadedMusicEntities:V,addedTimestampMillis:b})}return G};
naT=function(C,F){if(!F)return[];if(Object.values($QZ).includes(F))return bJT(C,F);F=_.C7(F,"musicPlaylist");var G;C=(G=C.musicPlaylist)==null?void 0:G[F];G=[];if(C==null||!C.tracks)return G;C=_.u(C.tracks);for(F=C.next();!F.done;F=C.next())(F=_.D8(F.value).entityId)&&G.push(F);return G};
bJT=function(C,F){var G=new Set,V=GVf(C).map(function(b){return b.downloadedMusicPlaylistEntities});
V=Vpw(V);V=_.u(V);for(var J=V.next();!J.done;J=V.next())(J=_.D8(J.value).entityId)&&G.add(J);return uew(C).downloadedMusicEntities.filter(function(b){var z;if((z=b.musicTrackEntity)!=null&&z.videoId){b=b.musicTrackEntity;if(z=F==="PPOM"?!0:!G.has(b.videoId))b:switch(b=b.musicVideoType,F){case "PPSE":z=b==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:z=b!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}b=z}else b=!1;return b}).map(function(b){var z;
return(z=b.musicTrackEntity)==null?void 0:z.videoId})};
uew=function(C){var F=JSI(C).sort(function(G,V){return V.addedTimestampMillis-G.addedTimestampMillis}).map(function(G){return"downloadedMusicEntities"in G?G.downloadedMusicEntities:CcS(G)?G.downloadedMusicPlaylistEntities:{}});
C=GVf(C).sort(function(G,V){return V.addedTimestampMillis-G.addedTimestampMillis}).map(function(G){return"downloadedMusicEntities"in G?G.downloadedMusicEntities:CcS(G)?G.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:F,downloadedMusicPlaylistEntities:C}};
QkE=function(C,F){F=_.TF("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?naT(C,F):rh5(C,F);if(!F.length)return"TRANSFER_STATE_UNKNOWN";F=F.map(function(G){return RF5(C,G)});
return zhs(F)};
zhs=function(C){var F=new Set(C);if(F.has("TRANSFER_STATE_FAILED")&&F.size===1)return"TRANSFER_STATE_FAILED";F.delete("TRANSFER_STATE_FAILED");if(F.has("TRANSFER_STATE_UNKNOWN")&&F.size===1)return"TRANSFER_STATE_PRE_TRANSFER";F.delete("TRANSFER_STATE_UNKNOWN");if(F.has("TRANSFER_STATE_PRE_TRANSFER")&&F.size===1||F.size===0)return"TRANSFER_STATE_PRE_TRANSFER";C=F.has("TRANSFER_STATE_TRANSFERRING");F=F.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return C||F?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
E3=function(C){var F=C.mainVideoDownloadStateEntity,G=[];if(!F)return[];F=_.u(Object.keys(F));for(var V=F.next();!V.done;V=F.next()){var J=V.value;if(!chs(C,_.D8(J).entityId)){V=IA(C,_.D8(J).entityId);var b=void 0,z=void 0;J=(z=Number((b=_.jN(C,"mainVideoDownloadStateEntity",J))==null?void 0:b.addedTimestampMillis))!=null?z:(0,_.Et)();V!==void 0&&G.push({downloadedVideoEntities:V,addedTimestampMillis:J})}}return G};
I7i=function(C){return E3(C).sort(function(F,G){return G.addedTimestampMillis-F.addedTimestampMillis}).map(function(F){return F.downloadedVideoEntities})};
_.WPw=function(C){var F=mZE(C),G=_.WY(C),V=smZ(C),J=E3(C).filter(function(z){var Q,E;if((z==null?void 0:(Q=z.downloadedVideoEntities)==null?void 0:(E=Q.transferEntity)==null?void 0:E.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var t,k;z=z==null?void 0:(t=z.downloadedVideoEntities)==null?void 0:(k=t.videoEntity)==null?void 0:k.key;return _.y("kevlar_use_library_entity")?z&&(V.has(z)||G[z]):z&&!F.has(z)}),b=p$q(C).filter(function(z){return QkE(C,z.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.da(J),_.da(b)).sort(function(z,Q){return Q.addedTimestampMillis-z.addedTimestampMillis}).map(function(z){return Ea9(z)})};
tpE=function(C,F){if(F&&B6S(C,F)){var G,V,J=(V=(G=_.jN(C,"playbackData",_.C7(F,"playbackData")))!=null?G:void 0)==null?void 0:V.playerResponseJson;if(J){try{var b=JSON.parse(J);var z=_.jN(C,"transfer",_.C7(F,"transfer")),Q=YiT(C,F);Q&&(b=Object.assign({},b,{playerConfig:Object.assign({},b.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+Q*1E3}}})}));b.cotn=z==null?void 0:z.cotn}catch(E){}return b}}};
_.kVS=function(C){var F,G,V;C=(V=(G=((F=C.downloadsPageViewConfigurationEntity)!=null?F:{})[_.t4])==null?void 0:G.smartDownloadsOptInBannerVisibility)!=null?V:{};var J;return(J=_.Z(C,a79))!=null?J:{}};
_.WY=function(C){var F,G,V;C=(V=(G=((F=C.mainDownloadsListEntity)!=null?F:{})[_.UQf])==null?void 0:G.downloads)!=null?V:[];F={};G=_.u(C);for(V=G.next();!V.done;V=G.next())C=void 0,F[(C=V.value.videoItem)!=null?C:""]=!0;return F};
HJo=function(C){var F=_.WY(C);if(Object.keys(F).length===0)return!1;var G=C.mainVideoEntity;if(!G)return!0;G=_.u(Object.keys(G));for(var V=G.next();!V.done;V=G.next()){V=V.value;var J=_.D8(V).entityId;if(F[V]&&!chs(C,J))return!1}return!0};
_.aA=function(C){var F=_.WY(C);return E3(C).sort(function(G,V){return G.addedTimestampMillis-V.addedTimestampMillis}).map(function(G){return G.downloadedVideoEntities}).filter(function(G){var V;
return(G=G==null?void 0:(V=G.videoEntity)==null?void 0:V.key)&&!!F[G]})};
_.ySS=function(C){var F,G,V;C=(V=(G=((F=C.downloadsPageViewConfigurationEntity)!=null?F:{})[_.t4])==null?void 0:G.downloadsUpsellBannerVisibility)!=null?V:{};var J;return(J=_.Z(C,l7I))!=null?J:{}};
Ea9=function(C){return"downloadedVideoEntities"in C?C.downloadedVideoEntities:"downloadedPlaylistEntities"in C?C.downloadedPlaylistEntities:{}};
ZJf=function(C){var F=_.WY(C),G=mZE(C),V=E3(C).filter(function(J){var b,z;return(J=J==null?void 0:(b=J.downloadedVideoEntities)==null?void 0:(z=b.videoEntity)==null?void 0:z.key)&&!F[J]&&!G.has(J)});
C=p$q(C);return[].concat(_.da(V),_.da(C)).sort(function(J,b){return b.addedTimestampMillis-J.addedTimestampMillis}).map(function(J){return Ea9(J)})};
_.k2=function(C){if(!_.y("kevlar_use_library_entity"))return ZJf(C);var F=E3(C).filter(function(V){var J,b;if(J=V=V==null?void 0:(J=V.downloadedVideoEntities)==null?void 0:(b=J.videoEntity)==null?void 0:b.key){var z,Q,E;J=((Q=(z=C.mainDownloadsListEntity)==null?void 0:z[xZT])==null?0:(E=Q.downloads)==null?0:E.length)?smZ(C).has(V):!1}return J}),G=p$q(C);
return[].concat(_.da(F),_.da(G)).sort(function(V,J){return J.addedTimestampMillis-V.addedTimestampMillis}).map(function(V){return Ea9(V)})};
Nqw=function(C){var F=_.WY(C),G=mZE(C);return I7i(C).filter(function(V){var J;return(V=V==null?void 0:(J=V.videoEntity)==null?void 0:J.key)&&!F[V]&&!G.has(V)})};
OJi=function(C){if(!_.y("kevlar_use_library_entity"))return Nqw(C);var F=_.WY(C),G=smZ(C);return I7i(C).filter(function(V){var J;return(V=V==null?void 0:(J=V.videoEntity)==null?void 0:J.key)&&!F[V]&&G.has(V)})};
Xnw=function(C,F){F=_.C7(F,"settingEntity");var G,V,J;return!!((J=(V=((G=C.settingEntity)!=null?G:{})[F])==null?void 0:V.settingOptionValue)!=null?J:{}).boolValue};
_.U3=function(C){var F=_.aA(C);if(Lnf(F))return 0;var G=[];F=_.u(F);for(var V=F.next();!V.done;V=F.next()){V=V.value;var J=void 0,b=void 0;if((J=V)==null?0:(b=J.videoEntity)==null?0:b.key)J=_.D8(V.videoEntity.key).entityId,V=C,J=_.C7(J,"mainVideoDownloadStateEntity"),V=_.jN(V,"mainVideoDownloadStateEntity",J),(V=Number(V==null?void 0:V.addedTimestampMillis))&&G.push(V)}return Math.max.apply(Math,_.da(G))};
_.HY=function(C){return C.ui.richGridMiniMode};
_.lK=function(C){return C.ui.richGridItemsPerRow};
_.wni=function(C){return C.ui.richGridSlimItemsPerRow};
_.Mpw=function(C){return C.ui.guideIsExpanded};
_.yj=function(C){return C.ui.miniplayerIsActive};
SbA=function(C){return C.ui.singleOptionSurveyIsActive};
_.Zb=function(C){var F;return((F=C.ui)==null?void 0:F.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.LPo=function(C){return _.Zb(C)==="WEB_PAGE_TYPE_WATCH"};
_.BqI=function(C){return _.Zb(C)==="WEB_PAGE_TYPE_SHORTS"};
_.vai=function(C){return C.ui.inlinePreviewIsActive};
_.f7Z=function(C){return C.ui.inlinePreviewIsEnabled};
_.hhE=function(C){return C.ui.miniplayerPlaybackState};
_.NW=function(C){return C.ui.isOnline};
_.cSi=function(C){return C.ui.frostedGlassMode};
_.O3=function(C,F){return qiZ(C.entities,F)};
_.X0=function(C,F){return QkE(C.entities,F)};
ASZ=function(C,F){var G;if(F){var V;C=(V=_.jN(C.entities,"offlineVideoPolicy",_.C7(F,"offlineVideoPolicy")))==null?void 0:V.action}else C=void 0;return(G=C)!=null?G:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
ehf=function(C,F){var G;F?(C=_.jN(C.entities,"offlineVideoPolicy",_.C7(F,"offlineVideoPolicy")),C=Number(C==null?void 0:C.expirationTimestamp)):C=void 0;return(G=C)!=null?G:0};
_.dQo=function(C){return _.Qj(C.entities).length};
xQB=function(C,F){return IA(C.entities,F)};
skB=function(C,F){return DZw(C.entities,F)};
wd=function(C,F){return(C=IA(C.entities,F))?_.X$i([C]):0};
_.qbw=function(C,F){var G=_.TF("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(G){var V=C.entities;var J=naT(V,F);if(J.length){var b=[];J=_.u(J);for(var z=J.next();!z.done;z=J.next())(z=iJw(V,z.value))&&b.push(z);V=b}else V=[]}else V=Kn9(C.entities,F);var Q;if(G){var E=C.entities;F?(F=_.C7(F,"musicPlaylist"),E=(Q=E.musicPlaylist)==null?void 0:Q[F],Q=E!=null&&E.tracks?E.tracks.length:0):Q=0}else Q=C.entities,F?(F=_.C7(F,"mainPlaylistEntity"),Q=(E=Q.mainPlaylistEntity)==null?void 0:E[F],Q=Q!=null&&Q.videos?
Q.videos.length:0):Q=0;return V.length!==Q?0:V?w$E(V):0};
_.PcI=function(C){return C.download.isLeaderTab};
_.gai=function(C,F,G){if(!F&&G){var V=C.entities;if(G){var J=SiS(G),b,z;F=(z=(b=_.jN(V,"offlineabilityEntity",_.C7(J,"offlineabilityEntity")))==null?void 0:b.addToOfflineButtonState)!=null?z:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else F="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else b=C.entities,F?(z=SiS(F),F=(J=(V=_.jN(b,"offlineabilityEntity",_.C7(z,"offlineabilityEntity")))==null?void 0:V.addToOfflineButtonState)!=null?J:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):F="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return F};
Rh5=function(C,F){C=C.entities;if(F){F=SiS(F);var G,V;F=(V=(G=_.jN(C,"offlineabilityEntity",_.C7(F,"offlineabilityEntity")))==null?void 0:G.addToOfflineButtonState)!=null?V:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else F="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return F};
_.Ybi=function(C){var F=C.entities;C=_.NW(C);var G=Xnw(F,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.y("kevlar_modern_downloads_page")&&G)var V=!1;else{var J,b;F=(b=(J=((V=F.downloadsPageViewConfigurationEntity)!=null?V:{})[_.t4])==null?void 0:J.smartDownloadsOptInBannerVisibility)!=null?b:{};V=C?!!F.visibleWithConnection:!!F.visibleWithoutConnection}return V};
_.Tqo=function(C){return Xnw(C.entities,"SMART_DOWNLOADS_ENABLED")};
_.oa9=function(C){return HJo(C.entities)};
rSS=function(C){return _.aA(C.entities).every(function(F){var G;return(F==null?void 0:(G=F.transferEntity)==null?void 0:G.transferState)&&!OSB.includes(F.transferEntity.transferState)})};
_.KPB=function(C){var F,G,V,J=(V=(G=((F=C.entities.downloadsPageViewConfigurationEntity)!=null?F:{})[_.t4])==null?void 0:G.downloadsUpsellBannerVisibility)!=null?V:{};return _.NW(C)?!!J.visibleWithConnection:!!J.visibleWithoutConnection};
_.DQ5=function(C,F){return chs(C.entities,F)};
pnZ=function(C,F){if(F){var G,V;C=(V=(G=_.jN(C.entities,"downloadStatusEntity",_.C7(F,"downloadStatusEntity")))==null?void 0:G.downloadState)!=null?V:"DOWNLOAD_STATE_UNKNOWN"}else C="DOWNLOAD_STATE_UNKNOWN";return C};
MW=function(C,F){return YiT(C.entities,F)};
FMB=function(C){C=mQW(C);var F=C.hours===void 0?0:C.hours,G=C.minutes===void 0?0:C.minutes,V=C.seconds===void 0?0:C.seconds,J=F>0;C=[];J&&(F=CFo(F),C.push(F));F=J;F=F===void 0?!1:F;G=(["af","be","lt"].includes(SN)||F)&&G<10?jri().format(G):(new Intl.NumberFormat("en-u-nu-latn")).format(G);C.push(G);G=jri().format(V);C.push(G);G=":";"da fi id si sr sr-Latn".split(" ").includes(SN)&&(G=".");return C.join(G)};
_.ViE=function(C){C=mQW(C);var F=C.hours===void 0?0:C.hours,G=C.minutes===void 0?0:C.minutes,V=C.seconds===void 0?0:C.seconds;C=[];if(F>0){var J=G6i().format({hours:F});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(SN)||F>9999)J=J.replace(F.toString(),CFo(F)),SN==="km"&&(J=J.replace(".",","));C.push(J)}G>0&&C.push(G6i().format({minutes:G}));V>0&&C.push(G6i().format({seconds:V}));F="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");G=SN=="am"?"{0}\u1363 ":SN=="fa"?"{0}\u060c\u200f ":
SN=="my"?"{0} - ":SN=="ne"?"{0},":SN=="th"?"{0} ":SN=="ur"?"{0}\u060c ":SN=="ar"||SN=="ar-XB"?"{0} \u0648":SN=="ja"||SN=="zh-CN"||SN=="zh-HK"||SN=="zh-TW"?"{0}\u3001":"{0}, ";V=SN=="am"?"\u1363 ":SN=="fa"?"\u060c\u200f ":SN=="my"?" - ":SN=="th"?" ":SN=="ur"?"\u060c ":SN=="ar"||SN=="ar-XB"?" \u0648":SN=="ja"||SN=="zh-CN"||SN=="zh-HK"||SN=="zh-TW"?"\u3001":", ";J=SN=="am"?" \u12a5\u1293 {0}":SN=="as"?" \u0986\u09f0\u09c1 {0}":SN=="az"?" v\u0259 {0}":SN=="bn"?" \u098f\u09ac\u0982 {0}":SN=="cs"?" a\u00a0{0}":
SN=="de"?" und {0}":SN=="el"?" \u03ba\u03b1\u03b9 {0}":SN=="eu"?" eta {0}":SN=="fa"?"\u060c \u0648 {0}":SN=="fil"?", at {0}":SN=="gu"?" \u0a85\u0aa8\u0ac7 {0}":SN=="hi"?", \u0914\u0930 {0}":SN=="hu"?" \u00e9s {0}":SN=="hy"?" \u0587 {0}":SN=="id"?", dan {0}":SN=="iw"?" \u05d5-{0}":SN=="ja"?"\u3001{0}":SN=="ka"?" \u10d3\u10d0 {0}":SN=="km"?" \u1793\u17b7\u1784 {0}":SN=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":SN=="ko"?" \ubc0f {0}":SN=="ky"?" \u0436\u0430\u043d\u0430 {0}":SN=="lt"?" ir {0}":SN==
"lv"?" un {0}":SN=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":SN=="mr"?" \u0906\u0923\u093f {0}":SN=="ms"?" dan {0}":SN=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":SN=="ne"?" \u0930 {0}":SN=="or"?", \u0b13 {0}":SN=="pa"?" \u0a05\u0a24\u0a47 {0}":SN=="ro"?" \u0219i {0}":SN=="si"?", \u0dc3\u0dc4 {0}":SN=="sk"?" a {0}":SN=="sl"?" in {0}":SN=="sq"?" dhe {0}":SN=="sv"?" och {0}":SN=="sw"?" na {0}":SN=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":SN=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":
SN=="th"?" \u0e41\u0e25\u0e30{0}":SN=="tr"?" ve {0}":SN=="ur"?"\u060c \u0627\u0648\u0631 {0}":SN=="uz"?" va {0}":SN=="vi"?" v\u00e0 {0}":SN=="zh-HK"?"\u53ca{0}":SN=="zu"?", ne-{0}":SN=="af"||SN=="nl"?" en {0}":SN=="ar"||SN=="ar-XB"?" \u0648{0}":SN=="be"||SN=="uk"?" \u0456 {0}":SN=="en-GB"||SN=="en-IN"?" and {0}":SN=="en"||SN=="en-XA"?", and {0}":SN=="et"||SN=="fi"?" ja {0}":SN=="fr"||SN=="fr-CA"?" et {0}":SN=="zh-CN"||SN=="zh-TW"?"\u548c{0}":SN=="da"||SN=="is"||SN=="no"?" og {0}":SN=="es"||SN=="es-419"||
SN=="es-US"?" y {0}":SN=="kk"||SN=="lo"||SN=="mn"?", {0}":SN=="bg"||SN=="mk"||SN=="ru"||SN=="sr"?" \u0438 {0}":SN=="gl"||SN=="it"||SN=="pt-BR"||SN=="pt-PT"?" e {0}":" i {0}";var b=SN=="am"?"{0} \u12a5\u1293 {1}":SN=="as"?"{0} \u0986\u09f0\u09c1 {1}":SN=="az"?"{0} v\u0259 {1}":SN=="bn"?"{0} \u098f\u09ac\u0982 {1}":SN=="de"?"{0} und {1}":SN=="el"?"{0} \u03ba\u03b1\u03b9 {1}":SN=="eu"?"{0} eta {1}":SN=="fa"?"{0} \u0648 {1}":SN=="fil"?"{0} at {1}":SN=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":SN=="hi"?"{0} \u0914\u0930 {1}":
SN=="hu"?"{0} \u00e9s {1}":SN=="hy"?"{0} \u0587 {1}":SN=="iw"?"{0} \u05d5-{1}":SN=="ja"?"{0}\u3001{1}":SN=="ka"?"{0} \u10d3\u10d0 {1}":SN=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":SN=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":SN=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":SN=="ko"?"{0} \ubc0f {1}":SN=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":SN=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":SN=="lt"?"{0} ir {1}":SN=="lv"?"{0} un {1}":SN=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":SN=="mn"?"{0}, {1}":SN==
"mr"?"{0} \u0906\u0923\u093f {1}":SN=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":SN=="ne"?"{0} \u0930 {1}":SN=="or"?"{0} \u0b13 {1}":SN=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":SN=="ro"?"{0} \u0219i {1}":SN=="si"?"{0} \u0dc3\u0dc4 {1}":SN=="sl"?"{0} in {1}":SN=="sq"?"{0} dhe {1}":SN=="sv"?"{0} och {1}":SN=="sw"?"{0} na {1}":SN=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":SN=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":SN=="th"?"{0}\u0e41\u0e25\u0e30{1}":SN=="tr"?"{0} ve {1}":SN=="ur"?
"{0} \u0627\u0648\u0631 {1}":SN=="uz"?"{0} va {1}":SN=="vi"?"{0} v\u00e0 {1}":SN=="zh-HK"?"{0}\u53ca{1}":SN=="zu"?"{0} ne-{1}":SN=="af"||SN=="nl"?"{0} en {1}":SN=="ar"||SN=="ar-XB"?"{0} \u0648{1}":SN=="be"||SN=="uk"?"{0} \u0456 {1}":SN=="cs"||SN=="sk"?"{0} a\u00a0{1}":SN=="et"||SN=="fi"?"{0} ja {1}":SN=="fr"||SN=="fr-CA"?"{0} et {1}":SN=="id"||SN=="ms"?"{0} dan {1}":SN=="zh-CN"||SN=="zh-TW"?"{0}\u548c{1}":SN=="da"||SN=="is"||SN=="no"?"{0} og {1}":SN=="es"||SN=="es-419"||SN=="es-US"?"{0} y {1}":SN==
"bg"||SN=="mk"||SN=="ru"||SN=="sr"?"{0} \u0438 {1}":SN=="en"||SN=="en-GB"||SN=="en-IN"||SN=="en-XA"?"{0} and {1}":SN=="gl"||SN=="it"||SN=="pt-BR"||SN=="pt-PT"?"{0} e {1}":"{0} i {1}";SN==="sq"?(J=J.replace("dhe","e"),b=b.replace("dhe","e")):SN==="th"?(V=V.replace("{0}"," {0}"),b=b.replace("{0}","{0} "),b=b.replace("{1}"," {1}")):SN==="ne"?V=",":SN==="zh-CN"?V="":F.includes(SN)&&(V=" ");return C.length<2?C.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(SN)?
C.length===2?b.replace("{0}",C[0]).replace("{1}",C[1]):G.replace("{0}",C[0])+C.slice(1,-1).join(V)+J.replace("{0}",C[C.length-1]):C.join(V)};
mQW=function(C){var F=C.hours||0,G=C.minutes||0,V=C.seconds||0;F=V+G*60+F*3600+(C.days||0)*86400+(C.weeks||0)*604800+(C.months||0)*2629800+(C.years||0)*31557600;if(F<=0)return{hours:0,minutes:0,seconds:0};C=F;F=Math.floor(C/3600);C%=3600;G=Math.floor(C/60);V=Math.floor(C%60);return{hours:F,minutes:G,seconds:V}};
CFo=function(C){C=(new Intl.NumberFormat("en-u-nu-latn")).format(C);var F=["fr"],G="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(SN)?C.replace(",","\u00a0"):F.includes(SN)?C.replace(",","\u202f"):G.includes(SN)?C.replace(",","."):C};
jri=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
G6i=function(){iKq||(BY=JTZ,iKq=new $mA);return iKq};
bKo=function(C){try{return(new _.vY(5)).format(C)}catch(F){}};
f7=function(C){return{thumbnailOverlayDownloadingRenderer:{state:C}}};
nPq=function(){var C=_.iQ("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.YB(C),icon:{iconType:"PLAY_ALL"}}}};
sri=function(C){C=_.h4(C,2);return SN!=="ru"&&SN!=="es_419"&&SN!=="es-419"&&SN!=="es"&&SN!=="es_US"&&SN!=="es-US"&&SN!=="fr"&&SN!=="pl"&&SN!=="it"&&SN!=="nl"&&SN!=="uk"&&SN!=="fr_CA"&&SN!=="fr-CA"||C===""?C:C[0].toLocaleUpperCase()+C.substring(1)};
PFS=function(C){return function(F){var G=C(),V=_.h4(F,G.dateFormat);F=_.h4(F,G.timeFormat);var J=qM5.DATETIMEFORMATS[G.joinerStyle];J=J.replace(/'(?!')/g,"");J=J.replace("{0}",F);J=J.replace("{1}",V);return G.capitalize(J)}};
gPZ=function(C){return C?typeof C.seconds==="string"&&(C.nanos===void 0||typeof C.nanos==="number"):!1};
RJw=function(C){return new Date(Number(C.seconds)*1E3+(C.nanos||0)*1E-6)};
_.h4=function(C,F){if(typeof C.getTime==="function")C={date:C};else if(gPZ(C))C={date:RJw(C)};else if(typeof gPZ(C.timestamp)&&typeof C.i18nInternalSecondsEastOfUtc==="number")C={date:RJw(C.timestamp),timeZone:cY(-C.i18nInternalSecondsEastOfUtc/60)};else throw Error("Mf`"+JSON.stringify(C));var G=C;C=G.date;G=G.timeZone;F=YMZ(F).format(C,G);SN==="zh-TW"&&(C=G?Number(YMZ("H").format(C,G)):C.getHours(),F=C<5?F.replace("\u4e0a\u5348","\u51cc\u6668"):C<8?F.replace("\u4e0a\u5348","\u65e9\u4e0a"):C<12?
F.replace("\u4e0a\u5348","\u4e0a\u5348"):C<13?F.replace("\u4e0b\u5348","\u4e2d\u5348"):C<19?F.replace("\u4e0b\u5348","\u4e0b\u5348"):F.replace("\u4e0b\u5348","\u665a\u4e0a"));return F};
YMZ=function(C){if(TKB.has(C))return TKB.get(C);var F=oPT(C);F=rTT(F);KMB!==!0&&(KMB=!0);Dmw=!0;Dmw=!1;F=new A4(F,qM5);TKB.set(C,F);return F};
oPT=function(C){return(new A4(C,qM5)).patternParts_.map(function(F){return F.type===0?"'"+F.text+"'":F.text}).join("")};
rTT=function(C){return SN==="en"||SN==="es_US"||SN==="es-US"?C:C.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(F,G,V){return"H".repeat(G.length)+V})};
Vtf=function(C,F){pLT||(BY=JTZ,pLT=new mmq);var G=pLT;a:if(C=CYs(C),F=CYs(F||new Date),C>F)G=C.getTime()-F.getTime()>6048E5?_.h4(C,1):jfB(C);else{for(var V=0;FkT(C,12*(V+1))<F;)++V;if(V>0)G=G.format(-V,0);else{for(V=0;FkT(C,V+1)<F;)++V;if(V>0)G=G.format(-V,2);else{C=F.getTime()-C.getTime();F=_.u(GRw);for(V=F.next();!V.done;V=F.next()){V=V.value;var J=V.unit,b=Math.floor(C/V.unitDuration);if(b>=(V.threshold===void 0?1:V.threshold)){G=G.format(-b,J);break a}}G=G.format(-0,7)}}}return G};
CYs=function(C){if(typeof C.getTime==="function")return C;if(gPZ(C))return RJw(C);throw Error("Nf`"+JSON.stringify(C));};
FkT=function(C,F){for(var G=0,V;;++G)if(V=new Date(C.getFullYear(),C.getMonth()+F,C.getDate()-G,C.getHours(),C.getMinutes(),C.getSeconds()),V.getMonth()===(C.getMonth()+F)%12)return V};
_.eN=function(C){return{runs:[{text:C}]}};
_.dd=function(C){if(C&&C.simpleText)return C.simpleText;var F="";if(C&&C.runs)for(var G=0;G<C.runs.length;G++)C.runs[G].text&&(F+=C.runs[G].text);return F};
JJA=function(C,F,G,V){return C.videoEntity&&!C.policyEntity&&G!=="DOWNLOAD_STATE_FAILED"?[f7("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:n7(C.policyEntity)&&F!=="TRANSFER_STATE_FAILED"&&F!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?F==="TRANSFER_STATE_PAUSED_BY_USER"?[f7("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.uK(F)?[f7("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:C.videoEntity.lengthSeconds?iRo(C.videoEntity.lengthSeconds,V):[]:
[f7("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
iRo=function(C,F){var G=[{thumbnailOverlayTimeStatusRenderer:{text:_.YB(FMB({seconds:C})),style:"DEFAULT"}}];F&&(C=F<=0||C<=0?0:F>=C?100:Math.ceil(F*100/C),C>0&&G.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:C}}));return G};
$jo=function(C,F,G,V,J){if(F==="TRANSFER_STATE_UNKNOWN"||!C)return{};if(_.uK(F)||F==="TRANSFER_STATE_PRE_TRANSFER")var b=[f7("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var z,Q;if(F==="TRANSFER_STATE_COMPLETE"&&((z=C.mainPlaylistEntity)==null?0:(Q=z.videos)==null?0:Q.length)){var E;C=(b=C.mainPlaylistEntity)==null?void 0:(E=b.videos)==null?void 0:E.length;b=(b=bKo(C))?{thumbnailOverlayBottomPanelRenderer:{text:_.YB(b),icon:{iconType:"PLAYLISTS"}}}:void 0;b=[nPq(),Object.assign({},
b!=null?b:{})]}else b=[]}a:if(F==="TRANSFER_STATE_PRE_TRANSFER")G=TU(_.iQ("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(F==="TRANSFER_STATE_TRANSFER_IN_QUEUE")G=TU(_.iQ("WAITING_TO_DOWNLOAD"));else if(_.uK(F))G=Math.floor(G*100).toString(),G=TU(_.iQ("DOWNLOADING_PERCENT",{percent:G},"Downloading... "+G+"%"));else{if(V&&(_.y("playlist_is_offline_selector_killswitch")&&(J=_.I8().resolve(_.FP).isNetworkAvailable()),J)){G=cK5(_.iQ("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),
fps(V));break a}G=void 0}F=F==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.iQ("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},b.length?{thumbnailOverlays:b}:{},G?{viewPlaylistText:G}:{viewPlaylistText:_.eN("")},F.length?{badges:F}:{})};
bRB=function(C,F,G,V,J,b){if(F==="TRANSFER_STATE_UNKNOWN"||!C)return{};if(V==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var z=JJA(C,F,V);if(C.videoEntity&&!C.policyEntity&&V!=="DOWNLOAD_STATE_FAILED"){var Q=_.iQ("WAITING_TO_DOWNLOAD");if(Q)return{shortViewCountText:_.eN(Q),publishedTimeText:void 0,thumbnailOverlays:z}}if(!n7(C.policyEntity)){b=C.policyEntity&&!M8B(C.policyEntity)?_.iQ("DOWNLOAD_EXPIRED",{},"Download expired"):
_.iQ("TRANSFER_FAILED",{},"Download failed");var E;if((E=C.policyEntity)==null?0:E.shortMessageForDisabledAction)b=C.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:TU(b),publishedTimeText:void 0,thumbnailOverlays:z}}if(F==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.eN(_.iQ("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:z};if(F==="TRANSFER_STATE_FAILED"||F==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.eN(_.iQ("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:z};if(F==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(E=_.iQ("WAITING_TO_DOWNLOAD"),V==="DOWNLOAD_STATE_PAUSED"&&(E=_.iQ("DOWNLOAD_PAUSED",{},"Download paused")),E))return{shortViewCountText:_.eN(E),publishedTimeText:void 0,thumbnailOverlays:z};if(_.uK(F))return C=Math.floor(G*100).toString(),{shortViewCountText:_.eN(_.iQ("DOWNLOADING_PERCENT",{percent:C},"Downloading... "+C+"%")),publishedTimeText:void 0,thumbnailOverlays:z};F=void 0;C.videoEntity.publishedTimestampMillis&&
(F=new Date,J&&(F=new Date(J)),F=TU(Vtf(new Date(Number(C.videoEntity.publishedTimestampMillis)),F)));J=[];_.y("kevlar_woffle_badge_killswitch")||(J=[{metadataBadgeRenderer:{label:_.iQ("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var t;C=TU((t=C.videoEntity.localizedStrings)==null?void 0:t.viewCount);return Object.assign({},b?{shortViewCountText:void 0}:{shortViewCountText:C},b?{}:{publishedTimeText:F},{badges:J,thumbnailOverlays:z})};
uiT=function(C,F){C=C===void 0?_.nWi:C;switch(F.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:F.payload.playlistId,inviteLinkURL:F.payload.inviteLinkUrl};default:return C}};
QfA=function(C,F){C=C===void 0?_.zvi:C;switch(F.type){case "SET_CURRENT_FORM_ID":return F=F.payload.formId,C.currentFormId===F?C:{currentFormId:F,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var G=F.payload;F=G.groupId;G=G.command;if(C.currentFormId){var V=Object.assign({},C.commandsMap);V[F]=G;C=Object.assign({},C,{commandsMap:V})}return C;case "RESET_COMMAND_MAP":return Object.assign({},C,{commandsMap:{}});default:return C}};
EWo=function(C,F){C=C===void 0?_.I2o:C;switch(F.type){case "UPDATE_CANVAS_MODE":return Object.assign({},C,{currentMode:F.payload.currentMode});default:return C}};
ttB=function(C,F){C=C===void 0?_.Wk9:C;switch(F.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},C,{guideIsExpanded:F.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},C,{scrollAtTop:F.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},C,{guideIsVisibleButNotPersistent:F.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},C,{miniplayerIsActive:F.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},C,{singleOptionSurveyIsActive:F.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},C,{slimlineSurveyRatingSelectedIndex:F.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},C,{richGridMiniMode:F.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},C,{richGridItemsPerRow:F.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},C,{richGridSlimItemsPerRow:F.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},C,{richGridContainerWidth:F.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},C,{richGridStyle:F.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},C,{currentPageType:F.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},C,{inlinePreviewIsActive:F.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},C,{inlinePreviewIsEnabled:F.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},C,{darkModeIsEnabled:F.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
C,{miniplayerPlaybackState:F.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},C,{tabGesturesIsActive:F.payload});case "SET_ONLINE_STATUS":return Object.assign({},C,{isOnline:F.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},C,{chipBarIsSticky:F.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},C,{frostedGlassMode:F.payload});default:return C}};
a2i=function(){return _.y("kevlar_disable_theater_mode_persistence")?!1:_.oD("START_IN_THEATER_MODE")};
UjB=function(C,F){C=C===void 0?_.kRW:C;switch(F.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},C,{transcription:F.payload});case "SET_OVERLAY_STATE":return Object.assign({},C,{overlay:F.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return C}};
SYB=function(){return BS(Object.assign({},{continuation:HRI,download:l2T,canvas:EWo,reportChannelAbuse:yJW,share:ZRZ,talkToRecs:NBS,ui:ttB,voiceSearch:UjB,watch:ORq,ypc:XZZ,shorts:wZw,radioButtonGroup:QfA,collabInviteLink:uiT},MtA))};
vWA=function(){return _.y("web_player_entities_middleware")?new x2(SYB(),[Lkw,BB9]):new x2(SYB(),[Lkw])};
_.s3=function(){f2T||(f2T=vWA());return f2T};
hvI=function(C,F,G){if(C.length)return{titleText:_.YB(F!=null?F:_.iQ("DOWNLOADS",void 0,"Downloads")),contents:C.map(function(V){var J=V.videoEntity;V={videoId:J.videoId,title:TU(J.title),shortBylineText:TU(V.channelEntity.title),thumbnail:J.thumbnail};var b=J.videoId?MW(_.s3().getState(),J.videoId):0;J.videoId&&G?V.navigationEndpoint=_.RQ(J.videoId,G,void 0,void 0,b):J.videoId&&(V.navigationEndpoint=vXT(J.videoId,b,J.lengthSeconds));J.lengthSeconds&&(V.thumbnailOverlays=iRo(J.lengthSeconds,b));return{playlistPanelVideoRenderer:V}}),
totalVideos:C.length}};
cJo=function(C){return(C=(0,_.xf.getValueByKeys)(C,"playlistId"))?{playlistId:C}:null};
AJs=function(){return{}};
ev9=function(C,F){return new _.N1(function(G,V){C.then(function(J){if(J){if(J=F(J))return G(J);V()}},V)})};
djI=function(C){var F,G,V,J=(F=C.contents)==null?void 0:(G=F.twoColumnWatchNextResults)==null?void 0:(V=G.autoplay)==null?void 0:V.autoplay,b,z,Q;F=(b=C.contents)==null?void 0:(z=b.twoColumnWatchNextResults)==null?void 0:(Q=z.playlist)==null?void 0:Q.playlist;return J&&F&&F.playlistId?{rawResponse:C,autoplayRenderer:J,playlistPanelRenderer:F,playlistId:F.playlistId}:null};
sfi=function(C){var F=F===void 0?"UNKNOWN_INTERFACE":F;if(C.length===1)return C[0];var G=xjT[F];if(G){G=new RegExp(G);for(var V=_.u(C),J=V.next();!J.done;J=V.next())if(J=J.value,G.exec(J))return J}var b=[];Object.entries(xjT).forEach(function(z){var Q=_.u(z);z=Q.next().value;Q=Q.next().value;F!==z&&b.push(Q)});
G=new RegExp(b.join("|"));C.sort(function(z,Q){return z.length-Q.length});
V=_.u(C);for(J=V.next();!J.done;J=V.next())if(J=J.value,!G.exec(J))return J;return C[0]};
_.qW=function(C){return"/youtubei/v1/"+sfi(C)};
_.PY=function(C,F){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:C}}},F!==void 0?{durationHintMs:F}:{})}};
_.gd=function(C,F){return _.PY(_.eN(C),F)};
qYW=function(C,F){var G={mode:"NORMAL"};C&&(G.autoplayVideo=C.navigationEndpoint,G.nextButtonVideo=C.navigationEndpoint);F&&(G.previousButtonVideo=F.navigationEndpoint);return G};
Rvo=function(C,F,G){if(!G||!G.sets)return{sets:[qYW(C,F)]};var V=G.sets.find(function(z){return z.mode==="NORMAL"}),J=(0,_.xf.unsafeClone)(G);
if(!V)return J.sets.push(qYW(C,F)),J;if(!C)return G;V=_.xf.getValueByKeys.apply(null,[V].concat(_.da(PYq)));var b=_.xf.getValueByKeys.apply(null,[C].concat(_.da(gW9)));if(V===b)return G;J.sets=J.sets.filter(function(z){return z.mode!=="NORMAL"});
J.sets.push(qYW(C,F));return J};
YYI=function(C){return!!C.playlistPanelVideoRenderer&&!C.playlistPanelVideoRenderer.unplayableText};
TBZ=function(C){return!!C.playlistPanelVideoRenderer&&!!C.playlistPanelVideoRenderer.title};
oWi=function(C,F){if(F.contents&&!(C>=F.contents.length)&&(C=F.contents.slice(C).find(YYI)))return C.playlistPanelVideoRenderer};
rJE=function(C,F){if(F.contents)return(F=F.contents.find(function(G){return!!G.playlistPanelVideoRenderer&&G.playlistPanelVideoRenderer.videoId===C}))?F.playlistPanelVideoRenderer:void 0};
Kks=function(C,F){return F.contents?F.contents.findIndex(function(G){return!!G.playlistPanelVideoRenderer&&G.playlistPanelVideoRenderer.videoId===C}):-1};
Dji=function(C,F){return F.contents?F.contents.findIndex(function(G){return!!G.playlistPanelVideoRenderer&&G.playlistPanelVideoRenderer.playlistSetVideoId===C}):-1};
pZB=function(C,F){C.contents&&F!==-1&&C.contents.splice(F,1).length===1&&C.totalVideos!==void 0&&(--C.totalVideos,delete C.videoCountText)};
_.mj9=function(C){var F=[];if(!C||!C.contents)return F;C=_.u(C.contents);for(var G=C.next();!G.done;G=C.next())G=G.value,G.playlistPanelVideoRenderer&&G.playlistPanelVideoRenderer.videoId&&F.push(G.playlistPanelVideoRenderer.videoId);return F};
_.Cp5=function(C){if(C&&C.contents)return(C=C.contents.find(function(F){return!!F.playlistPanelVideoRenderer&&!!F.playlistPanelVideoRenderer.selected})||C.contents[C.currentIndex])?C.playlistPanelVideoRenderer:void 0};
j7T=function(C,F,G,V,J,b,z){J=J===void 0?!1:J;b=b===void 0?!1:b;z=z===void 0?!1:z;if(C.contents&&C.contents.length!==0){V&&(C.contents=C.contents.filter(V));V=C.contents.length;for(var Q=0;Q<V;Q++){var E=C.contents[Q].playlistPanelVideoRenderer;E&&(Q===F?(b&&delete E.menu,E.indexText=_.eN("\u25b6")):J||C.isInfinite||E.indexText===void 0?delete E.indexText:E.indexText=_.eN((Q+1+G).toString()))}C.currentIndex=F+G;z&&(delete C.videoCountText,C.totalVideos=V)}};
_.RA=function(C){C=F1B(C);if(C){var F=C.length;var G=-23%F;G<0&&(G=F+G);C=C.slice(F-G)+C.slice(0,F-G)}else C="";G="";for(F=0;F<C.length&&C[F]!==Gvq;F++)G+=C[F];return G};
_.VCi=function(C,F){var G=document.body;F=F===void 0?function(Q){return Q}:F;
var V,J=null;C=_.u(C);for(V=C.next();!V.done;V=C.next()){var b=V.value;V="div";b[2]&&(V=F(b[2]));V=document.createElement(V);J||(J=V);var z=b[0];b=b[1];z&&(V.id=F(z));if(b)for(b=_.u(b),z=b.next();!z.done;z=b.next())V.classList.add(F(z.value));G.appendChild(V);G=V}return[J,G]};
iEw=function(C,F){for(var G="",V=0;V<F;V++)G+=C.charAt(Math.floor(Math.random()*C.length));return G};
Y2=function(C){return iEw("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",C)};
Tc=function(C){return iEw("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",C)};
oA=function(C){return iEw("0123456789",C)};
J9E=function(){var C=performance.now(),F=new Date;var G="2."+F.getFullYear()+String(F.getMonth()+1).padStart(2,"0")+String(F.getDate()).padStart(2,"0");for(var V,J=Math.floor(Math.random()*11)+15,b=[],z=0;z<J;z++)b.push(Math.floor(Math.random()*26476865)+24547720);V=b.join(",");var Q=Y2(10),E=Y2(100),t=Y2(102),k=Y2(106),U=Y2(108),H=Y2(11),l=Y2(1140),N=Y2(123),S=Y2(14),f=Y2(16),c=Y2(1900),A=Y2(23),T=Y2(26),P=Y2(34),g=Y2(397),r=Y2(44),C9=Y2(5),Wo=Y2(72),EB=Y2(74),L9=Y2(75),ki=Y2(88),lZ=Y2(91),eq="rr2---sn-q4fl6nd7 rr1---sn-t0a7ln7d rr3---sn-5hnekn7z rr2---sn-q4fl6nds rr3---sn-5hne6nzd rr4---sn-q4fzene7 rr3---sn-q4flrn7y rr1---sn-5hne6nsr rr4---sn-5hnekn7l rr4---sn-q4fl6nlz rr5---sn-q4fl6ns6 rr3---sn-q4flrne6 rr2---sn-4g5edn6r rr1---sn-5hnekn7k rr3---sn-5hnekn7l rr2---sn-5hne6nzs rr2---sn-q4fl6ns7 rr2---sn-ntqe6n7k rr3---sn-hgn7rn7k rr4---sn-ntq7yney".split(" ");
var OB=eq[Math.floor(Math.random()*eq.length)];var yr=(new Date("2010-01-01")).getTime();var Rl=(new Date(yr+Math.random()*((new Date).getTime()-yr))).toISOString().split("T")[0];for(var w2,jG=[],Il=0;Il<4;Il++)jG.push(Math.floor(Math.random()*100));w2=jG.join(".");var Bu=Number(oA(5)),vu=Number(oA(6)),Zr=Number(oA(7)),k_=Number(oA(9)),$i=oA(1),Vr=oA(10),Um=oA(16),V8=oA(19),Hu=oA(2),Gh=oA(20),hW=oA(21),YS=oA(3),Em=oA(4),Qr=oA(5),FM=oA(6),ow=oA(7),kS=oA(8),HV=oA(9);var r9=iEw("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var BV=[Tc(5),Tc(5),Tc(5)].join("%2C"),qa=[oA(3),oA(5),oA(5)].join("%2C"),mh=Tc(0),nA=Tc(1),pP=Tc(10),XM=Tc(108),is=Tc(11),nf=Tc(12),jo=Tc(13),oR=Tc(14),A2=Tc(15),li=Tc(16),HS=Tc(17),Sq=Tc(18),xi=Tc(19),Yi=Tc(2),Zu=Tc(20),ls=Tc(22),Bh=Tc(23),vV=Tc(24),Om=Tc(266),No=Tc(3),dW=Tc(30),UL=Tc(34),al=Tc(35),Sy=Tc(36),eE=Tc(4),xl=Tc(40),KB=Tc(43),Cc=Tc(47),Hc=Tc(5),lh=Tc(6),Wd=Tc(7),GP=Tc(75),DA=Tc(8),wW=Tc(80),WV=Tc(9),us="https://www."+Tc(12)+".com",Es={},rS={},Yd={},JC={},xJ={},BG={},vG={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:V}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:G},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+Tc(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:G},{key:"client.name",value:"WEB"},{key:"client.fexp",value:V}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:hW+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+Tc(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:xl,ypcGetOfflineUpsellEndpoint:{params:wW}},trackingParams:al+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+OB+".googlevideo.com/videoplayback?expire="+Vr+"&ei="+A+"&ip="+w2+"&id=o-AF"+KB+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+qa+"&mn="+BV+"&ms="+BV+"&mv="+nA+"&mvi="+$i+"&pl="+Hu+"&initcwndbps="+ow+"&siu="+$i+"&spc="+r+"&vprv="+$i+"&svpuc="+$i+"&mime=video%2Fmp4&ns="+vV+"&cnr="+Hu+"&ratebypass=yes&dur="+kS+"&lmt="+Um+"&mt="+Vr+"&fvip=3&c=WEB&txp="+ow+"&n="+f+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
U+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+U,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:vu,width:640,height:360,lastModified:Um,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:ow,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+OB+".googlevideo.com/videoplayback?expire="+Vr+"&ei="+A+"&ip="+w2+"&id=o-AF"+KB+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+qa+"&mn="+
BV+"&ms="+BV+"&mv="+nA+"&mvi="+$i+"&pl="+Hu+"&initcwndbps="+ow+"&siu="+$i+"&spc="+r+"&vprv="+$i+"&svpuc="+$i+"&mime=video%2Fmp4&ns="+vV+"&cnr="+Hu+"&ratebypass=yes&dur="+kS+"&lmt="+Um+"&mt="+Vr+"&fvip=3&c=WEB&txp="+ow+"&n="+f+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+XM+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+U,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:vu,width:1280,
height:720,lastModified:Um,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:ow,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+OB+".googlevideo.com/videoplayback?expire="+Vr+"&ei="+A+"&ip="+w2+"&id=o-AF"+KB+"&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="+qa+"&mn="+BV+"&ms="+
BV+"&mv="+nA+"&mvi="+$i+"&pl="+Hu+"&initcwndbps="+ow+"&siu="+$i+"&spc="+r+"&vprv="+$i+"&svpuc="+$i+"&mime=video%2Fmp4&ns="+vV+"&gir="+No+"&clen="+HV+"&dur="+kS+"&lmt="+Um+"&mt="+Vr+"&fvip=3&keepalive="+No+"&c=WEB&txp="+ow+"&n="+li+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+E+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+U,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:Zr,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:YS,end:Em},lastModified:Um,contentLength:HV,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Zr,approxDurationMs:ow},{itag:248,url:"https://"+OB+".googlevideo.com/videoplayback?expire="+Vr+"&ei="+A+"&ip="+w2+"&id=o-AF"+KB+"&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="+qa+"&mn="+BV+"&ms="+BV+"&mv="+
nA+"&mvi="+$i+"&pl="+Hu+"&initcwndbps="+ow+"&siu="+$i+"&spc="+r+"&vprv="+$i+"&svpuc="+$i+"&mime=video%2Fwebm&ns="+vV+"&gir="+No+"&clen="+HV+"&dur="+kS+"&lmt="+Um+"&mt="+Vr+"&fvip=3&keepalive="+No+"&c=WEB&txp="+ow+"&n="+li+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+U,mimeType:'video/webm; codecs="vp9"',bitrate:Zr,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:YS,end:Em},lastModified:Um,contentLength:HV,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Zr,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ow},{itag:399,url:"https://"+OB+".googlevideo.com/videoplayback?expire="+Vr+"&ei="+A+"&ip="+w2+"&id=o-AF"+KB+"&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="+
qa+"&mn="+BV+"&ms="+BV+"&mv="+nA+"&mvi="+$i+"&pl="+Hu+"&initcwndbps="+ow+"&siu="+$i+"&spc="+r+"&vprv="+$i+"&svpuc="+$i+"&mime=video%2Fmp4&ns="+vV+"&gir="+No+"&clen="+HV+"&dur="+kS+"&lmt="+Um+"&mt="+Vr+"&fvip=3&keepalive="+No+"&c=WEB&txp="+ow+"&n="+li+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+E+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+U,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:Zr,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:YS,end:Em},lastModified:Um,contentLength:HV,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Zr,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ow},{itag:136,url:"https://"+OB+".googlevideo.com/videoplayback?expire="+Vr+"&ei="+A+"&ip="+w2+"&id=o-AF"+KB+"&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="+
qa+"&mn="+BV+"&ms="+BV+"&mv="+nA+"&mvi="+$i+"&pl="+Hu+"&initcwndbps="+ow+"&siu="+$i+"&spc="+r+"&vprv="+$i+"&svpuc="+$i+"&mime=video%2Fmp4&ns="+vV+"&gir="+No+"&clen="+HV+"&dur="+kS+"&lmt="+Um+"&mt="+Vr+"&fvip=3&keepalive="+No+"&c=WEB&txp="+ow+"&n="+li+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+U+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+U,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Zr,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:YS,end:Em},lastModified:Um,contentLength:HV,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:vu,approxDurationMs:ow},{itag:247,url:"https://"+OB+".googlevideo.com/videoplayback?expire="+Vr+"&ei="+A+"&ip="+w2+"&id=o-AF"+KB+"&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="+qa+"&mn="+
BV+"&ms="+BV+"&mv="+nA+"&mvi="+$i+"&pl="+Hu+"&initcwndbps="+ow+"&siu="+$i+"&spc="+r+"&vprv="+$i+"&svpuc="+$i+"&mime=video%2Fwebm&ns="+vV+"&gir="+No+"&clen="+HV+"&dur="+kS+"&lmt="+Um+"&mt="+Vr+"&fvip=3&keepalive="+No+"&c=WEB&txp="+ow+"&n="+li+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+U+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+U,mimeType:'video/webm; codecs="vp9"',bitrate:Zr,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:YS,end:Em},lastModified:Um,contentLength:HV,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:vu,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ow},{itag:398,url:"https://"+OB+".googlevideo.com/videoplayback?expire="+Vr+"&ei="+A+"&ip="+w2+"&id=o-AF"+KB+"&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="+
qa+"&mn="+BV+"&ms="+BV+"&mv="+nA+"&mvi="+$i+"&pl="+Hu+"&initcwndbps="+ow+"&siu="+$i+"&spc="+r+"&vprv="+$i+"&svpuc="+$i+"&mime=video%2Fmp4&ns="+vV+"&gir="+No+"&clen="+HV+"&dur="+kS+"&lmt="+Um+"&mt="+Vr+"&fvip=3&keepalive="+No+"&c=WEB&txp="+ow+"&n="+li+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+U+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+U,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:Zr,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:YS,end:Em},lastModified:Um,contentLength:HV,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:vu,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ow},{itag:135,url:"https://"+OB+".googlevideo.com/videoplayback?expire="+Vr+"&ei="+A+"&ip="+w2+"&id=o-AF"+KB+"&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="+
qa+"&mn="+BV+"&ms="+BV+"&mv="+nA+"&mvi="+$i+"&pl="+Hu+"&initcwndbps="+ow+"&siu="+$i+"&spc="+r+"&vprv="+$i+"&svpuc="+$i+"&mime=video%2Fmp4&ns="+vV+"&gir="+No+"&clen="+kS+"&dur="+kS+"&lmt="+Um+"&mt="+Vr+"&fvip=3&keepalive="+No+"&c=WEB&txp="+ow+"&n="+li+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+U+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+U,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:vu,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:YS,end:Em},lastModified:Um,contentLength:kS,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:vu,approxDurationMs:ow},{itag:244,url:"https://"+OB+".googlevideo.com/videoplayback?expire="+Vr+"&ei="+A+"&ip="+w2+"&id=o-AF"+KB+"&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="+qa+"&mn="+
BV+"&ms="+BV+"&mv="+nA+"&mvi="+$i+"&pl="+Hu+"&initcwndbps="+ow+"&siu="+$i+"&spc="+r+"&vprv="+$i+"&svpuc="+$i+"&mime=video%2Fwebm&ns="+vV+"&gir="+No+"&clen="+kS+"&dur="+kS+"&lmt="+Um+"&mt="+Vr+"&fvip=3&keepalive="+No+"&c=WEB&txp="+ow+"&n="+li+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+XM+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+U,mimeType:'video/webm; codecs="vp9"',bitrate:vu,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:YS,end:Em},lastModified:Um,contentLength:kS,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:vu,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ow},{itag:397,url:"https://"+OB+".googlevideo.com/videoplayback?expire="+Vr+"&ei="+A+"&ip="+w2+"&id=o-AF"+KB+"&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="+
qa+"&mn="+BV+"&ms="+BV+"&mv="+nA+"&mvi="+$i+"&pl="+Hu+"&initcwndbps="+ow+"&siu="+$i+"&spc="+r+"&vprv="+$i+"&svpuc="+$i+"&mime=video%2Fmp4&ns="+vV+"&gir="+No+"&clen="+kS+"&dur="+kS+"&lmt="+Um+"&mt="+Vr+"&fvip=3&keepalive="+No+"&c=WEB&txp="+ow+"&n="+li+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+E+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+U,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:vu,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:YS,end:Em},lastModified:Um,contentLength:kS,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:vu,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ow},{itag:134,url:"https://"+OB+".googlevideo.com/videoplayback?expire="+Vr+"&ei="+A+"&ip="+w2+"&id=o-AF"+KB+"&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="+
qa+"&mn="+BV+"&ms="+BV+"&mv="+nA+"&mvi="+$i+"&pl="+Hu+"&initcwndbps="+ow+"&siu="+$i+"&spc="+r+"&vprv="+$i+"&svpuc="+$i+"&mime=video%2Fmp4&ns="+vV+"&gir="+No+"&clen="+kS+"&dur="+kS+"&lmt="+Um+"&mt="+Vr+"&fvip=3&keepalive="+No+"&c=WEB&txp="+ow+"&n="+li+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+U+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+U,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:vu,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:YS,end:Em},lastModified:Um,contentLength:kS,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:vu,highReplication:!0,approxDurationMs:ow},{itag:243,url:"https://"+OB+".googlevideo.com/videoplayback?expire="+Vr+"&ei="+A+"&ip="+w2+"&id=o-AF"+KB+"&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="+
qa+"&mn="+BV+"&ms="+BV+"&mv="+nA+"&mvi="+$i+"&pl="+Hu+"&initcwndbps="+ow+"&siu="+$i+"&spc="+r+"&vprv="+$i+"&svpuc="+$i+"&mime=video%2Fwebm&ns="+vV+"&gir="+No+"&clen="+kS+"&dur="+kS+"&lmt="+Um+"&mt="+Vr+"&fvip=3&keepalive="+No+"&c=WEB&txp="+ow+"&n="+li+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+U,mimeType:'video/webm; codecs="vp9"',bitrate:vu,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:YS,end:Em},lastModified:Um,contentLength:kS,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:vu,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ow},{itag:396,url:"https://"+OB+".googlevideo.com/videoplayback?expire="+Vr+"&ei="+A+"&ip="+w2+"&id=o-AF"+KB+"&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="+
qa+"&mn="+BV+"&ms="+BV+"&mv="+nA+"&mvi="+$i+"&pl="+Hu+"&initcwndbps="+ow+"&siu="+$i+"&spc="+r+"&vprv="+$i+"&svpuc="+$i+"&mime=video%2Fmp4&ns="+vV+"&gir="+No+"&clen="+kS+"&dur="+kS+"&lmt="+Um+"&mt="+Vr+"&fvip=3&keepalive="+No+"&c=WEB&txp="+ow+"&n="+li+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+U+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+U,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:vu,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:YS,end:Em},lastModified:Um,contentLength:kS,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:vu,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ow},{itag:133,url:"https://"+OB+".googlevideo.com/videoplayback?expire="+Vr+"&ei="+A+"&ip="+w2+"&id=o-AF"+KB+"&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="+
qa+"&mn="+BV+"&ms="+BV+"&mv="+nA+"&mvi="+$i+"&pl="+Hu+"&initcwndbps="+ow+"&siu="+$i+"&spc="+r+"&vprv="+$i+"&svpuc="+$i+"&mime=video%2Fmp4&ns="+vV+"&gir="+No+"&clen="+kS+"&dur="+kS+"&lmt="+Um+"&mt="+Vr+"&fvip=3&keepalive="+No+"&c=WEB&txp="+ow+"&n="+li+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+U+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+U,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:vu,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:YS,end:Em},lastModified:Um,contentLength:kS,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:vu,approxDurationMs:ow},{itag:242,url:"https://"+OB+".googlevideo.com/videoplayback?expire="+Vr+"&ei="+A+"&ip="+w2+"&id=o-AF"+KB+"&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="+qa+"&mn="+
BV+"&ms="+BV+"&mv="+nA+"&mvi="+$i+"&pl="+Hu+"&initcwndbps="+ow+"&siu="+$i+"&spc="+r+"&vprv="+$i+"&svpuc="+$i+"&mime=video%2Fwebm&ns="+vV+"&gir="+No+"&clen="+kS+"&dur="+kS+"&lmt="+Um+"&mt="+Vr+"&fvip=3&keepalive="+No+"&c=WEB&txp="+ow+"&n="+li+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+U+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+U,mimeType:'video/webm; codecs="vp9"',bitrate:vu,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:YS,end:Em},lastModified:Um,contentLength:kS,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:vu,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ow},{itag:395,url:"https://"+OB+".googlevideo.com/videoplayback?expire="+Vr+"&ei="+A+"&ip="+w2+"&id=o-AF"+KB+"&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="+
qa+"&mn="+BV+"&ms="+BV+"&mv="+nA+"&mvi="+$i+"&pl="+Hu+"&initcwndbps="+ow+"&siu="+$i+"&spc="+r+"&vprv="+$i+"&svpuc="+$i+"&mime=video%2Fmp4&ns="+vV+"&gir="+No+"&clen="+kS+"&dur="+kS+"&lmt="+Um+"&mt="+Vr+"&fvip=3&keepalive="+No+"&c=WEB&txp="+ow+"&n="+li+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+U+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+U,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:vu,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:YS,end:Em},lastModified:Um,contentLength:kS,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:vu,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ow},{itag:160,url:"https://"+OB+".googlevideo.com/videoplayback?expire="+Vr+"&ei="+A+"&ip="+w2+"&id=o-AF"+KB+"&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="+
qa+"&mn="+BV+"&ms="+BV+"&mv="+nA+"&mvi="+$i+"&pl="+Hu+"&initcwndbps="+ow+"&siu="+$i+"&spc="+r+"&vprv="+$i+"&svpuc="+$i+"&mime=video%2Fmp4&ns="+vV+"&gir="+No+"&clen="+kS+"&dur="+kS+"&lmt="+Um+"&mt="+Vr+"&fvip=3&keepalive="+No+"&c=WEB&txp="+ow+"&n="+li+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+U,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:vu,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:YS,end:Em},lastModified:Um,contentLength:kS,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Bu,approxDurationMs:ow},{itag:278,url:"https://"+OB+".googlevideo.com/videoplayback?expire="+Vr+"&ei="+A+"&ip="+w2+"&id=o-AF"+KB+"&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="+qa+"&mn="+
BV+"&ms="+BV+"&mv="+nA+"&mvi="+$i+"&pl="+Hu+"&initcwndbps="+ow+"&siu="+$i+"&spc="+r+"&vprv="+$i+"&svpuc="+$i+"&mime=video%2Fwebm&ns="+vV+"&gir="+No+"&clen="+kS+"&dur="+kS+"&lmt="+Um+"&mt="+Vr+"&fvip=3&keepalive="+No+"&c=WEB&txp="+ow+"&n="+li+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+U+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+U,mimeType:'video/webm; codecs="vp9"',bitrate:vu,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:YS,end:Em},lastModified:Um,contentLength:kS,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Bu,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ow},{itag:394,url:"https://"+OB+".googlevideo.com/videoplayback?expire="+Vr+"&ei="+A+"&ip="+w2+"&id=o-AF"+KB+"&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="+
qa+"&mn="+BV+"&ms="+BV+"&mv="+nA+"&mvi="+$i+"&pl="+Hu+"&initcwndbps="+ow+"&siu="+$i+"&spc="+r+"&vprv="+$i+"&svpuc="+$i+"&mime=video%2Fmp4&ns="+vV+"&gir="+No+"&clen="+kS+"&dur="+kS+"&lmt="+Um+"&mt="+Vr+"&fvip=3&keepalive="+No+"&c=WEB&txp="+ow+"&n="+li+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+E+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+U,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Bu,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:YS,end:Em},lastModified:Um,contentLength:kS,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Bu,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ow},{itag:140,url:"https://"+OB+".googlevideo.com/videoplayback?expire="+Vr+"&ei="+A+"&ip="+w2+"&id=o-AF"+KB+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
qa+"&mn="+BV+"&ms="+BV+"&mv="+nA+"&mvi="+$i+"&pl="+Hu+"&initcwndbps="+ow+"&siu="+$i+"&spc="+r+"&vprv="+$i+"&svpuc="+$i+"&mime=audio%2Fmp4&ns="+vV+"&gir="+No+"&clen="+kS+"&dur="+kS+"&lmt="+Um+"&mt="+Vr+"&fvip=3&keepalive="+No+"&c=WEB&txp="+ow+"&n="+li+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+U,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:vu,
initRange:{start:"0",end:"631"},indexRange:{start:YS,end:Em},lastModified:Um,contentLength:kS,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:vu,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:ow,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+OB+".googlevideo.com/videoplayback?expire="+Vr+"&ei="+A+"&ip="+w2+"&id=o-AF"+KB+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+qa+"&mn="+BV+"&ms="+BV+"&mv="+nA+"&mvi="+$i+"&pl="+
Hu+"&initcwndbps="+ow+"&siu="+$i+"&spc="+r+"&vprv="+$i+"&svpuc="+$i+"&mime=audio%2Fwebm&ns="+vV+"&gir="+No+"&clen="+ow+"&dur="+kS+"&lmt="+Um+"&mt="+Vr+"&fvip=3&keepalive="+No+"&c=WEB&txp="+ow+"&n="+li+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+U,mimeType:'audio/webm; codecs="opus"',bitrate:Bu,initRange:{start:"0",end:"265"},indexRange:{start:YS,
end:Em},lastModified:Um,contentLength:ow,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Bu,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:ow,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+OB+".googlevideo.com/videoplayback?expire="+Vr+"&ei="+A+"&ip="+w2+"&id=o-AF"+KB+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+qa+"&mn="+BV+"&ms="+BV+"&mv="+nA+"&mvi="+$i+"&pl="+Hu+"&initcwndbps="+ow+"&siu="+$i+"&spc="+r+"&vprv="+$i+"&svpuc="+$i+"&mime=audio%2Fwebm&ns="+
vV+"&gir="+No+"&clen="+ow+"&dur="+kS+"&lmt="+Um+"&mt="+Vr+"&fvip=3&keepalive="+No+"&c=WEB&txp="+ow+"&n="+li+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+U,mimeType:'audio/webm; codecs="opus"',bitrate:Bu,initRange:{start:"0",end:"265"},indexRange:{start:YS,end:Em},lastModified:Um,contentLength:ow,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Bu,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:ow,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+OB+".googlevideo.com/videoplayback?expire="+Vr+"&ei="+A+"&ip="+w2+"&id=o-AF"+KB+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+qa+"&mn="+BV+"&ms="+BV+"&mv="+nA+"&mvi="+$i+"&pl="+Hu+"&initcwndbps="+ow+"&siu="+$i+"&spc="+r+"&vprv="+$i+"&svpuc="+$i+"&mime=audio%2Fwebm&ns="+vV+"&gir="+No+"&clen="+kS+"&dur="+kS+"&lmt="+Um+"&mt="+Vr+"&fvip=3&keepalive="+No+"&c=WEB&txp="+
ow+"&n="+li+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+E+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+U,mimeType:'audio/webm; codecs="opus"',bitrate:vu,initRange:{start:"0",end:"265"},indexRange:{start:YS,end:Em},lastModified:Um,contentLength:kS,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:vu,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:ow,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="+HV+"&docid="+H+"&ei="+A+"&feature="+Q+"&fexp="+mh+"&ns="+Yi+"&plid="+f+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+nA+"&el="+pP+"&len="+Em+"&of="+ls+
"&uga="+Hu+"&vm="+Om},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+HV+"&docid="+H+"&ei="+A+"&feature="+Q+"&fexp="+mh+"&ns="+Yi+"&plid="+f+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+nA+"&el="+pP+"&len="+Em+"&of="+ls+"&uga="+Hu+"&vm="+Om},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+HV+"&docid="+H+"&ei="+A+"&feature="+Q+"&fexp="+mh+"&ns="+Yi+"&plid="+f+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
nA+"&el="+pP+"&len="+Em+"&of="+ls+"&uga="+Hu+"&vm="+Om},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+A+"&m="+ki+"&oid="+ls+"&plid="+f+"&pltype="+Wd+"&ptchn="+ls+"&ptk="+S+"&video_id="+H},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+HV+"&docid="+H+"&ei="+A+"&event="+oR+"&feature="+Q+"&fexp="+mh+"&ns="+Yi+"&plid="+f+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+nA},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
li+"&ver=2&cmt=1."+YS+"&fmt="+YS+"&fs=0&rt="+Qr+"&euri&lact="+YS+"&cl="+HV+"&mos="+$i+"&volume=100&cbrand="+Hc+"&cbr="+lh+"&cbrver="+w2+"&c=WEB&cver="+G+"&cplayer=UNIPLAYER&cos="+WV+"&cosver="+ow+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+Hu+"&len="+kS+"&fexp="+BV+"&feature=g-high-rec&afmt="+YS+"&muted=0&conn=1&docid="+H+"&ei="+A+"&plid="+f+"&vm="+Tc(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
H+"&caps="+No+"&opi="+HV+"&xoaf="+$i+"&hl="+Yi+"&ip="+w2+"&ipbits="+$i+"&expire="+Vr+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+w2+"&key="+No+"&lang="+C9,name:{simpleText:Hc},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+H+"&caps="+No+"&opi="+HV+"&xoaf="+$i+"&hl="+Yi+"&ip="+w2+"&ipbits="+$i+"&expire="+Vr+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+w2+"&key="+No+"&kind="+No+"&lang="+Yi,name:{simpleText:lh},
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:is,title:oR,lengthSeconds:"1155",keywords:[oR,lh,xi,Zu],channelId:vV,isOwnerViewing:!1,shortDescription:WV,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+H+"/hqdefault.jpg?sqp=-oaymwE"+Sy+"G&rs="+UL,width:168,height:94},{url:"https://i.ytimg.com/vi/"+H+"/hqdefault.jpg?sqp=-oaymwE"+Sy+
"G&rs="+UL,width:196,height:110},{url:"https://i.ytimg.com/vi/"+H+"/hqdefault.jpg?sqp=-oaymwE"+Sy+"G&rs="+P,width:246,height:138},{url:"https://i.ytimg.com/vi/"+H+"/hqdefault.jpg?sqp=-oaymwE"+Sy+"G&rs="+P,width:336,height:188},{url:"https://i.ytimg.com/vi/"+H+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:ow,author:jo,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:ow,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
ls+"/featured_channel.jpg?v="+DA,width:40,height:40}]},trackingParams:al+"=",navigationEndpoint:{clickTrackingParams:xl,commandMetadata:{webCommandMetadata:{url:"/channel/"+vV,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:vV}},channelName:jo,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Hc}]},subscribed:!1,enabled:!0,type:"FREE",channelId:vV,showPreferences:!1,subscribedButtonText:{runs:[{text:li}]},unsubscribedButtonText:{runs:[{text:Sq}]},
trackingParams:al+"=",unsubscribeButtonText:{runs:[{text:li}]},serviceEndpoints:[{clickTrackingParams:xl,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[vV],params:DA}},{clickTrackingParams:xl,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:xl,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:al+"=",dialogMessages:[{runs:[{text:WV},
{text:DA},{text:eE}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Hc}]},serviceEndpoint:{clickTrackingParams:xl,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[vV],params:DA}},accessibility:{label:oR},trackingParams:al+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:li}]},accessibility:{label:Sq},
trackingParams:al+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:Wd}},unsubscribeAccessibility:{accessibilityData:{label:jo}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:kS},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:xl,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:xl,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[vV],
params:DA}},unsubscribeCommand:{clickTrackingParams:xl,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[vV],params:DA}},addToWatchLaterCommand:{clickTrackingParams:xl,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:is,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:xl,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:is}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+H+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+Sy+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+H+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+is,width:1280,
height:720},title:{simpleText:jo},description:{simpleText:Zu},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+A2,externalChannelId:vV,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:ow,category:"Travel & Events",publishDate:Rl,ownerChannelName:jo,uploadDate:Rl}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:HS},trackingParams:al+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:xl,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:al+"="}}],headerText:{simpleText:oR},icon:{infoCardIconRenderer:{trackingParams:al+"="}},closeButton:{infoCardIconRenderer:{trackingParams:al+"="}},trackingParams:al+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:al+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+is+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:r9,interpreterSafeUrl:(Es.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+dW+".js",Es),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:lh},{text:nf,bold:!0}]},endpoint:{clickTrackingParams:xl,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:al+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:eE}]},actionButton:{buttonRenderer:{text:{runs:[{text:nf}]},navigationEndpoint:{clickTrackingParams:xl,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+H,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
H,target:"TARGET_NEW_WINDOW"}},trackingParams:al+"="}},trackingParams:al+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+Wo+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+Wo+"=s400-c-k-c0x00ffffff-no-rj",width:400,height:400}]},icon:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/annotations/youtube.png"}]},left:.030214407,width:.15438597,top:.37587035,aspectRatio:1,
startMs:ow,endMs:ow,title:{accessibility:{accessibilityData:{label:HS}},simpleText:xi},metadata:{simpleText:Zu},callToAction:{simpleText:Zu},dismiss:{simpleText:eE},endpoint:{clickTrackingParams:xl,commandMetadata:{webCommandMetadata:{url:"/channel/"+vV,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:vV}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:li}]},subscribed:!1,enabled:!0,type:"FREE",channelId:vV,showPreferences:!1,
subscribedButtonText:{runs:[{text:WV}]},unsubscribedButtonText:{runs:[{text:nf}]},trackingParams:al+"=",unsubscribeButtonText:{runs:[{text:Wd}]},serviceEndpoints:[{clickTrackingParams:xl,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[vV],params:DA}},{clickTrackingParams:xl,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:xl,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:al+
"=",dialogMessages:[{runs:[{text:xi},{text:Zu},{text:is}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:WV}]},serviceEndpoint:{clickTrackingParams:xl,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[vV],params:DA}},accessibility:{label:is},trackingParams:al+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:WV}]},
accessibility:{label:li},trackingParams:al+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:A2}},unsubscribeAccessibility:{accessibilityData:{label:WV}}}},trackingParams:al+"=",isSubscribe:!0,id:Gh}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+H+"/hqdefault.jpg?sqp=-oaymwE"+Sy+"G&rs="+P,width:168,height:94},{url:"https://i.ytimg.com/vi/"+H+"/hqdefault.jpg?sqp=-oaymwE"+Sy+"G&rs="+UL,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+H+"/hqdefault.jpg?sqp=-oaymwE"+Sy+"G&rs="+P,width:246,height:138},{url:"https://i.ytimg.com/vi/"+H+"/hqdefault.jpg?sqp=-oaymwE"+Sy+"G&rs="+P,width:336,height:188},{url:"https://i.ytimg.com/vi/"+H+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:ow,endMs:ow,title:{accessibility:{accessibilityData:{label:WV}},simpleText:is},metadata:{simpleText:HS},endpoint:{clickTrackingParams:xl,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
is,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:is,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+OB+".googlevideo.com/videoplayback?source=youtube&oeis="+$i+"&c=WEB&oad="+Em+"&ovd="+Em+"&oaad="+Qr+"&oavd="+Qr+"&ocs="+YS+"&oewis="+$i+"&oputc="+$i+"&ofpcc="+$i+"&siu="+$i+"&msp="+$i+"&odepv="+$i+
"&id=o-AF"+KB+"&ip="+w2+"&initcwndbps="+ow+"&mt="+Vr+"&oweuc="+mh}}}}},trackingParams:al+"=",id:Gh,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:HS}},simpleText:Zu},style:"DEFAULT"}}]}}],startMs:ow,trackingParams:al+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:$i,offsetEndMilliseconds:Qr},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+HV+";dc_trk_cid="+HV+";dc_dbm_token="+U+";ord="+Vr+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+$i+";dc_rui="+$i+";dc_exteid="+Gh+";dc_av="+YS+";dc_sk="+$i+";dc_ctype="+Hu+";dc_ref=http://www.youtube.com/video/"+is+";dc_pubid="+$i+";dc_btype=23?gclid="+lZ+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
l+"____________"+N+"AxAA&sigh="+is+"&cid="+T+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+$i+"&ns="+$i+"&event="+$i+"&device="+$i+"&content_v="+H+"&el="+pP+"&ei="+A+"&devicever="+G+"&bti="+ow+"&format="+FM+"&break_type="+$i+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+$i+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+w2+"&slot_pos="+$i+"&slot_len="+$i+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+qa+"&ad_len="+Qr+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
is+"&aqi="+A+"&ad_rmp="+$i+"&sli="+$i}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+H+"&cid="+T+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+H+"&cid="+T+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$i+";dc_exteid="+Gh+";met="+$i+";ecn"+$i+"="+$i+
";etm1="+$i+";eid1="+Hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+H+"&cid="+T+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$i+";dc_exteid="+Gh+";met="+$i+";ecn"+$i+"="+$i+";etm1="+$i+";eid1="+FM+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
l+"____________"+N+"AxAA&sigh="+H+"&cid="+T+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$i+";dc_exteid="+Gh+";met="+$i+";ecn"+$i+"="+$i+";etm1="+$i+";eid1="+Hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+H+"&cid="+T+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+H+"&cid="+T+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$i+";dc_exteid="+Gh+";met="+$i+";ecn"+$i+"="+$i+";etm1="+$i+";eid1="+Hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+H+"&cid="+T+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$i+";dc_exteid="+Gh+";met="+$i+";ecn"+$i+"="+$i+";etm1="+$i+";eid1="+ow+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+H+"&cid="+T+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
l+"____________"+N+"AxAA&sigh="+H+"&cid="+T+"&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"+l+"____________"+N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&ctype="+YS+"&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"+
l+"____________"+N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_engaged_view&ctype="+YS+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$i+";dc_exteid="+Gh+";met="+$i+";ecn"+$i+"="+$i+";etm1="+$i+";eid1="+FM+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
HV+";dc_trk_cid="+HV+";dc_dbm_token="+U+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+$i+";ord="+HV+";dc_rui="+$i+";dc_exteid="+V8+";dc_av="+$i+";dc_sk="+$i+";dc_ctype="+Hu+";dc_pubid="+$i+";dc_btype=3?gclid="+lZ+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+H+"&cid="+T+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$i+";dc_exteid="+Gh+";met="+$i+";ecn"+$i+"="+$i+";etm1="+$i+";eid1="+Hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+t+"&sig="+Bh+"&ad_cpn=[AD_CPN]&id="+lh+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+lh+"&dc_pubid="+$i+"&dc_exteid="+Gh+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+H+"&cid="+T+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+t+"&sig="+Bh+"&ad_cpn=[AD_CPN]&id="+lh+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+$i},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+lh+"&avm="+$i+"&dc_pubid="+$i+"&dc_exteid="+
Gh+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+H+"&cid="+T+"&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="+$i+";dc_exteid="+Gh+";met="+$i+";ecn"+$i+"="+$i+";etm1="+$i+";eid1="+Hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
t+"&sig="+Bh+"&ad_cpn=[AD_CPN]&id="+lh+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+$i},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+lh+"&dc_pubid="+$i+"&dc_exteid="+Gh+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$i+";dc_exteid="+Gh+";met="+$i+";ecn"+$i+"="+$i+";etm1="+$i+";eid1="+Hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
$i+";dc_exteid="+Gh+";met="+$i+";ecn"+$i+"="+$i+";etm1="+$i+";eid1="+FM+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$i+";dc_exteid="+Gh+";met="+$i+";ecn"+$i+"="+$i+";etm1="+$i+";eid1="+Hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$i+";dc_exteid="+Gh+";met="+$i+";ecn"+$i+"="+$i+";etm1="+$i+";eid1="+FM+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+H+"&cid="+T+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$i+";dc_exteid="+Gh+";met="+$i+";ecn"+$i+"="+$i+";etm1="+$i+";eid1="+Hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:xl,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_click_to_advertiser_site&ctype="+YS+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_click_to_advertiser_site&ctype="+
YS+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+H+"/mqdefault.jpg",width:320,height:180}]},trackingParams:al+"="},trackingParams:al+
"=",templatedCountdown:{templatedAdText:{text:oR,isTemplated:!0,trackingParams:al+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:li,isTemplated:!1,trackingParams:al+"="},trackingParams:al+"="}},trackingParams:al+"=",skipOffsetMilliseconds:5E3}},trackingParams:al+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:DA},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:xl,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
l+"____________"+N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_click_to_advertiser_site&ctype="+YS+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_click_to_advertiser_site&ctype="+YS+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:al+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:DA,isTemplated:!1,trackingParams:al+"="},trackingParams:al+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:nf,isTemplated:!0,trackingParams:al+"="}},trackingParams:al+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:xl,openPopupAction:{popup:{aboutThisAdRenderer:{url:(rS.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+c+"&hl="+Yi+"&origin=www.youtube.com&ata_theme="+eE,rS),trackingParams:al+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:al+"="}},hoverText:{runs:[{text:pP}]},trackingParams:al+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Cc+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:al+"="},headline:{text:lh,isTemplated:!1,trackingParams:al+"="},description:{text:eE,
trackingParams:al+"="},actionButton:{buttonRenderer:{text:{simpleText:xi},navigationEndpoint:{clickTrackingParams:xl,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+HV+";dc_trk_cid="+HV+";dc_dbm_token="+U+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+$i+";ord="+HV+";dc_rui="+$i+";dc_exteid="+Gh+";dc_av="+$i+";dc_sk="+$i+";dc_ctype="+Hu+";dc_pubid="+$i+";dc_btype=3?gclid="+lZ+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
l+"____________"+N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_click_to_advertiser_site&ctype="+YS+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_click_to_advertiser_site&ctype="+YS+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:al+"="}},startMs:$i,trackingParams:al+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:li},elementId:jo}},elementId:jo,trackingParams:al+"=",legacyInfoCardVastExtension:Wd,sodarExtensionData:{siub:eE,bgub:HS,scs:eE,bgp:WV},externalVideoId:is,adLayoutLoggingData:{serializedAdServingDataEntry:oR},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Cc+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:al+"="},
headline:{text:nf,isTemplated:!1,trackingParams:al+"="},description:{text:DA,isTemplated:!1,trackingParams:al+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:A2},navigationEndpoint:{clickTrackingParams:xl,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+HV+";dc_trk_cid="+HV+";dc_dbm_token="+U+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+$i+";ord="+HV+";dc_rui="+$i+";dc_exteid="+
Gh+";dc_av="+$i+";dc_sk="+$i+";dc_ctype="+Hu+";dc_pubid="+$i+";dc_btype=3?gclid="+lZ+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_click_to_advertiser_site&ctype="+YS+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+
$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_click_to_advertiser_site&ctype="+YS+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:al+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:al+"="}},navigationEndpoint:{clickTrackingParams:xl,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+HV+";dc_trk_cid="+
HV+";dc_dbm_token="+U+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+$i+";ord="+HV+";dc_rui="+$i+";dc_exteid="+Gh+";dc_av="+$i+";dc_sk="+$i+";dc_ctype="+Hu+";dc_pubid="+$i+";dc_btype=3?gclid="+lZ+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+H+"&cid="+T+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+
N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_click_to_advertiser_site&ctype="+YS+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_click_to_advertiser_site&ctype="+YS+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:al+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:al+"="},abandonCommands:{commands:[{clickTrackingParams:xl,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+H+"&cid="+T+"&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="+$i+";dc_exteid="+Gh+";met="+$i+";ecn"+
$i+"="+$i+";etm1="+$i+";eid1="+Hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:xl,commandExecutorCommand:{commands:[{clickTrackingParams:xl,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+H+"&cid="+T+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:WV,isTemplated:!1,trackingParams:al+
"="},trackingParams:al+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:oR},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+H+"&cid="+T+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$i+";dc_exteid="+Gh+";met="+$i+";ecn"+$i+"="+$i+";etm1="+$i+";eid1="+ow+";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="+HV+";dc_trk_cid="+HV+";ord="+Vr+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+$i+";dc_rui="+$i+";dc_exteid="+Gh+";dc_av="+YS+";dc_sk="+$i+";dc_ctype="+Hu+";dc_ref=http://www.youtube.com/video/"+is+";dc_pubid="+$i+";dc_btype=23?gclid="+lZ+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+l+"____________"+N+"AxAA&sigh="+is+"&cid="+T+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+$i+"&ns="+$i+"&event="+$i+"&device="+$i+"&content_v="+H+"&el="+pP+"&ei="+A+"&devicever="+G+"&bti="+ow+"&format="+FM+"&break_type="+$i+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+$i+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+w2+"&slot_pos="+$i+"&slot_len="+$i+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
qa+"&ad_len="+Qr+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+is+"&aqi="+A+"&ad_rmp="+$i+"&sli="+$i}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+is+"&cid="+T+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+is+"&cid="+T+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
$i+";dc_exteid="+Gh+";met="+$i+";ecn"+$i+"="+$i+";etm1="+$i+";eid1="+Hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+is+"&cid="+T+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$i+";dc_exteid="+Gh+";met="+$i+";ecn"+$i+"="+$i+";etm1="+$i+";eid1="+FM+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+is+"&cid="+T+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$i+";dc_exteid="+Gh+";met="+$i+";ecn"+$i+"="+$i+";etm1="+$i+";eid1="+Hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+is+"&cid="+
T+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+is+"&cid="+T+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$i+";dc_exteid="+Gh+";met="+$i+";ecn"+$i+"="+$i+";etm1="+$i+";eid1="+Hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
l+"____________"+N+"AxAA&sigh="+is+"&cid="+T+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$i+";dc_exteid="+Gh+";met="+$i+";ecn"+$i+"="+$i+";etm1="+$i+";eid1="+ow+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+is+"&cid="+T+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+is+"&cid="+T+"&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"+l+"____________"+N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&ctype="+YS+"&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"+l+"____________"+N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_engaged_view&ctype="+YS+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$i+";dc_exteid="+Gh+";met="+$i+";ecn"+$i+"="+$i+";etm1="+$i+";eid1="+FM+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+is+"&cid="+T+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$i+";dc_exteid="+Gh+";met="+$i+";ecn"+$i+"="+$i+";etm1="+$i+";eid1="+Hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+t+"&sig="+Bh+"&ad_cpn=[AD_CPN]&id="+
lh+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+lh+"&dc_pubid="+$i+"&dc_exteid="+Gh+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+is+"&cid="+T+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+t+
"&sig="+Bh+"&ad_cpn=[AD_CPN]&id="+lh+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+$i},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+lh+"&avm="+$i+"&dc_pubid="+$i+"&dc_exteid="+Gh+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+is+"&cid="+T+"&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="+$i+";dc_exteid="+Gh+";met="+$i+";ecn"+$i+"="+$i+";etm1="+$i+";eid1="+Hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+t+"&sig="+Bh+"&ad_cpn=[AD_CPN]&id="+lh+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+$i},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+lh+"&dc_pubid="+$i+"&dc_exteid="+Gh+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$i+";dc_exteid="+Gh+";met="+$i+";ecn"+$i+"="+$i+";etm1="+$i+";eid1="+Hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$i+";dc_exteid="+Gh+";met="+$i+";ecn"+$i+"="+$i+";etm1="+$i+";eid1="+FM+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
$i+";dc_exteid="+Gh+";met="+$i+";ecn"+$i+"="+$i+";etm1="+$i+";eid1="+Hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$i+";dc_exteid="+Gh+";met="+$i+";ecn"+$i+"="+$i+";etm1="+$i+";eid1="+FM+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+is+"&cid="+T+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$i+";dc_exteid="+Gh+";met="+$i+";ecn"+$i+"="+$i+";etm1="+$i+";eid1="+Hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:xl,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_click_to_advertiser_site&ctype="+
YS+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_click_to_advertiser_site&ctype="+YS+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",
playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+H+"/mqdefault.jpg",width:320,height:180}]},trackingParams:al+"="},trackingParams:al+"=",templatedCountdown:{templatedAdText:{text:xi,isTemplated:!0,trackingParams:al+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Sq,isTemplated:!1,trackingParams:al+"="},trackingParams:al+"="}},
trackingParams:al+"=",skipOffsetMilliseconds:5E3}},trackingParams:al+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Sq},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:xl,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_click_to_advertiser_site&ctype="+YS+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_click_to_advertiser_site&ctype="+YS+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:al+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:is,isTemplated:!1,trackingParams:al+"="},trackingParams:al+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Hc,
isTemplated:!0,trackingParams:al+"="}},trackingParams:al+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:xl,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Yd.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+c+"&hl="+Yi+"&origin=www.youtube.com&ata_theme="+eE,Yd),trackingParams:al+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:al+"="}},hoverText:{runs:[{text:xi}]},trackingParams:al+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+EB+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:al+"="},headline:{text:eE,isTemplated:!1,trackingParams:al+"="},description:{text:li,trackingParams:al+"="},actionButton:{buttonRenderer:{text:{simpleText:HS},navigationEndpoint:{clickTrackingParams:xl,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
l+"____________"+N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_click_to_advertiser_site&ctype="+YS+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_click_to_advertiser_site&ctype="+YS+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:al+"="}},startMs:$i,trackingParams:al+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:pP},elementId:Wd}},elementId:WV,trackingParams:al+"=",legacyInfoCardVastExtension:oR,sodarExtensionData:{siub:pP,bgub:HS,scs:Zu,bgp:A2},externalVideoId:is,adLayoutLoggingData:{serializedAdServingDataEntry:WV},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+EB+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:al+"="},headline:{text:WV,
isTemplated:!1,trackingParams:al+"="},description:{text:WV,isTemplated:!1,trackingParams:al+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:jo},navigationEndpoint:{clickTrackingParams:xl,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_click_to_advertiser_site&ctype="+YS+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_click_to_advertiser_site&ctype="+YS+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:al+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:al+"="}},navigationEndpoint:{clickTrackingParams:xl,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
l+"____________"+N+"AxAA&sigh="+is+"&cid="+T+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_click_to_advertiser_site&ctype="+YS+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+
$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_click_to_advertiser_site&ctype="+YS+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:al+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:al+"="},abandonCommands:{commands:[{clickTrackingParams:xl,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+is+"&cid="+T+"&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="+$i+";dc_exteid="+Gh+";met="+$i+";ecn"+$i+"="+$i+";etm1="+$i+";eid1="+Hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:xl,commandExecutorCommand:{commands:[{clickTrackingParams:xl,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+is+"&cid="+T+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:Hc,isTemplated:!1,trackingParams:al+"="},trackingParams:al+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:A2},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+is+"&cid="+T+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$i+";dc_exteid="+Gh+";met="+$i+";ecn"+$i+"="+$i+";etm1="+$i+";eid1="+
ow+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:eE}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:pP}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Qr,offsetEndMilliseconds:FM},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+A+"&m_pos="+Hu+"&token=ALHj"+g+"&index="+$i+"&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="+G+"&m_pos_ms="+Qr}},adSlotLoggingData:{serializedSlotAdServingDataEntry:pP}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:FM,offsetEndMilliseconds:FM},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+A+"&m_pos="+YS+"&token=ALHj"+g+"&index="+$i+"&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="+
G+"&m_pos_ms="+FM}},adSlotLoggingData:{serializedSlotAdServingDataEntry:is}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:FM,offsetEndMilliseconds:FM},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+A+"&m_pos="+YS+"&token=ALHj"+g+"&index="+$i+"&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="+
G+"&m_pos_ms="+FM}},adSlotLoggingData:{serializedSlotAdServingDataEntry:WV}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:FM,offsetEndMilliseconds:FM},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+A+"&m_pos="+YS+"&token=ALHj"+g+"&index="+$i+"&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="+
G+"&m_pos_ms="+FM}},adSlotLoggingData:{serializedSlotAdServingDataEntry:xi}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:FM,offsetEndMilliseconds:Hu},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+A+"&m_pos="+YS+"&token=ALHj"+g+"&index="+$i+"&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="+
G+"&m_pos_ms="+FM}},adSlotLoggingData:{serializedSlotAdServingDataEntry:WV}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:Hu,offsetEndMilliseconds:Hu},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+A+"&m_pos="+Hu+"&token=ALHj"+g+"&index="+$i+"&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="+
G+"&m_pos_ms="+Hu}},adSlotLoggingData:{serializedSlotAdServingDataEntry:nf}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:is,isTemplated:!1,trackingParams:al+"="},description:{text:li,isTemplated:!1,trackingParams:al+"="},actionButton:{buttonRenderer:{text:{simpleText:eE},navigationEndpoint:{clickTrackingParams:xl,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
HV+";dc_trk_cid="+HV+";dc_dbm_token="+U+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+$i+";ord="+HV+";dc_rui="+$i+";dc_exteid="+Gh+";dc_av="+$i+";dc_sk="+$i+";dc_ctype="+Hu+";dc_pubid="+$i+";dc_btype=3?gclid="+lZ+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_click_to_advertiser_site&ctype="+YS+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_click_to_advertiser_site&ctype="+YS+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:al+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Cc+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:al+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+L9+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:al+"="},navigationEndpoint:{clickTrackingParams:xl,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+HV+";dc_trk_cid="+HV+";dc_dbm_token="+U+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+$i+";ord="+HV+
";dc_rui="+$i+";dc_exteid="+Gh+";dc_av="+$i+";dc_sk="+$i+";dc_ctype="+Hu+";dc_pubid="+$i+";dc_btype=3?gclid="+lZ+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_click_to_advertiser_site&ctype="+YS+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
l+"____________"+N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_click_to_advertiser_site&ctype="+YS+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:al+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:xl,openPopupAction:{popup:{aboutThisAdRenderer:{url:(JC.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+c+"&hl="+Yi+"&origin=www.youtube.com&ata_theme="+eE,JC),trackingParams:al+"="}},popupType:"DIALOG"}},trackingParams:al+"="}},hoverText:{runs:[{text:WV}]},trackingParams:al+"="}},adVideoId:is,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+H+"&cid="+T+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:oR},associatedCompositePlayerBytesLayoutId:li}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:lh}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:A2,isTemplated:!1,trackingParams:al+"="},description:{text:li,isTemplated:!1,trackingParams:al+"="},actionButton:{buttonRenderer:{text:{simpleText:Sq},navigationEndpoint:{clickTrackingParams:xl,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+
N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_click_to_advertiser_site&ctype="+YS+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_click_to_advertiser_site&ctype="+YS+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:al+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+EB+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:al+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+GP+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:al+"="},navigationEndpoint:{clickTrackingParams:xl,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+
$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_click_to_advertiser_site&ctype="+YS+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_click_to_advertiser_site&ctype="+YS+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:al+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:xl,openPopupAction:{popup:{aboutThisAdRenderer:{url:(xJ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+c+"&hl="+Yi+"&origin=www.youtube.com&ata_theme="+eE,xJ),trackingParams:al+"="}},popupType:"DIALOG"}},trackingParams:al+"="}},
hoverText:{runs:[{text:nf}]},trackingParams:al+"="}},adVideoId:is,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+is+"&cid="+T+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:HS},associatedCompositePlayerBytesLayoutId:li}},adSlotLoggingData:{serializedSlotAdServingDataEntry:jo}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:WV,
isTemplated:!1,trackingParams:al+"="},description:{text:jo,isTemplated:!1,trackingParams:al+"="},actionButton:{buttonRenderer:{text:{simpleText:li},navigationEndpoint:{clickTrackingParams:xl,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+HV+";dc_trk_cid="+HV+";dc_dbm_token="+U+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+$i+";ord="+HV+";dc_rui="+$i+";dc_exteid="+Gh+";dc_av="+$i+";dc_sk="+$i+";dc_ctype="+
Hu+";dc_pubid="+$i+";dc_btype=3?gclid="+lZ+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_click_to_advertiser_site&ctype="+YS+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+
P+"&adurl="+us+"&label=video_click_to_advertiser_site&ctype="+YS+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:al+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Cc+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:al+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+L9+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:al+
"="},navigationEndpoint:{clickTrackingParams:xl,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+HV+";dc_trk_cid="+HV+";dc_dbm_token="+U+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+$i+";ord="+HV+";dc_rui="+$i+";dc_exteid="+Gh+";dc_av="+$i+";dc_sk="+$i+";dc_ctype="+Hu+";dc_pubid="+$i+";dc_btype=3?gclid="+lZ+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
l+"____________"+N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_click_to_advertiser_site&ctype="+YS+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+$i+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+P+"&adurl="+us+"&label=video_click_to_advertiser_site&ctype="+YS+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:al+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:xl,openPopupAction:{popup:{aboutThisAdRenderer:{url:(BG.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+c+"&hl="+Yi+"&origin=www.youtube.com&ata_theme="+eE,BG),trackingParams:al+"="}},popupType:"DIALOG"}},trackingParams:al+
"="}},hoverText:{runs:[{text:lh}]},trackingParams:al+"="}},adVideoId:is,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+H+"&cid="+T+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:A2},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:li}},adSlotLoggingData:{serializedSlotAdServingDataEntry:li}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:dW,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:dW,command:{innertubeCommand:{clickTrackingParams:xl,ypcGetOfflineUpsellEndpoint:{params:wW}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:al+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:Vr,nanos:k_}}}},FlZ=JSON.stringify(vG),f8=performance.now()-C;return{objectRepresentation:vG,jsonRepresentation:FlZ,generationTime:f8}};
$sw=function(C,F){if(C===F)return!0;if(!C||!F||typeof C!==typeof F)return!1;if(C instanceof Array&&F instanceof Array){if(C.length!==F.length)return!1;for(var G=0;G<C.length;G++)if(!$sw(C[G],F[G]))return!1;return!0}if(typeof C==="object"&&typeof F==="object"&&C&&F){for(G in C)if(!(G in F&&$sw(C[G],F[G])))return!1;for(var V in F)if(!(V in C))return!1;return!0}return!1};
_.K7=function(){if(!rd){rd=new OD(new bEA);var C=_.a8("client_streamz_web_flush_count",-1);C!==-1&&(rd.invocationLimit=C)}return rd};
Db=function(C,F,G,V){if(C===F)return!0;if(Array.isArray(C)&&Array.isArray(F)){if(C.length!==F.length)return!1;for(var J=0;J<C.length;J++)if(!Db(C[J],F[J],G,V))return!1;return!0}if(C instanceof Set||F instanceof Set){if(C instanceof Set&&F instanceof Set){if(C.size!==F.size)return!1;V=_.u(C.values());for(J=V.next();!J.done;J=V.next())if(!F.has(J.value))return!1;return!0}return!1}if(C instanceof Function){if(V)return!0;C.name===""&&_.gD(Error("Rf"),"ERROR");return!1}if(C instanceof Date&&F instanceof
Date)return C.getTime()===F.getTime();if(C instanceof Object&&F instanceof Object){if(n9B(C)&&n9B(F))try{return C.equals(F)}catch(z){_.gD(Error("Sf`"+z),"ERROR")}J=Object.getOwnPropertyNames(C).filter(function(z){return G?C[z]!==void 0:!0});
var b=Object.getOwnPropertyNames(F).filter(function(z){return G?F[z]!==void 0:!0});
if(J.length!==b.length)return!1;J=_.u(J);for(b=J.next();!b.done;b=J.next())if(b=b.value,!Db(C[b],F[b],G,V))return!1;return!0}return!1};
n9B=function(C){C=Object.getPrototypeOf(C).equals;return C instanceof Function&&C.length===1};
_.Q7i=function(){return _.I(function(C){if(C.nextAddress==1)return uCW!==2?C.jumpTo(2):C.yield(z25(),3);C.nextAddress!=2&&(uCW=C.yieldResult);return C.return(uCW)})};
_.W1s=function(){return _.I(function(C){if(C.nextAddress==1)return _.y("ab_pl_man")?IOB!==2?C.jumpTo(2):C.yield(E9E(),3):C.return(1);C.nextAddress!=2&&(IOB=C.yieldResult);return C.return(IOB)})};
kv5=function(){return _.I(function(C){if(C.nextAddress==1)return _.y("ab_fk_sk_cl")?tCS!==2?C.jumpTo(2):C.yield(aOA(),3):C.return(1);C.nextAddress!=2&&(tCS=C.yieldResult);return C.return(tCS)})};
_.lO5=function(){return _.I(function(C){if(C.nextAddress==1)return _.y("ab_det_apb_b")?UsW!==2?C.jumpTo(2):C.yield(HET(),3):C.return(1);C.nextAddress!=2&&(UsW=C.yieldResult);return C.return(UsW)})};
N$B=function(){var C;return _.I(function(F){if(F.nextAddress==1)return F.yield(Promise.all([_.Q7i(),_.lO5(),_.W1s(),kv5()]),2);if(F.nextAddress!=3)return y99()?F.return(!0):F.yield(_.ZEA(),3);C=F.yieldResult;return F.return(C===0)})};
y99=function(){var C=!1,F=function(G,V){OEI.increment(V,G);G===0&&(C=!0)};
F(_.XWT(),"j.s_");F(uCW,"f.i_");F(UsW,"a.b_");F(IOB,"p.m_");F(tCS,"i.f_");wWT===2&&(wWT=_.MCE(SnT));F(wWT,"e.h_");_.y("ks_det_gpbl")||F(_.L1E(),"p.i_");_.y("ks_get_o_pp")||F(_.B$Z(),"g.o_");_.y("ab_deg_unex_thr")||F(_.v9i(),"a.o_");F(fOi,"s.t_");_.y("ab_det_sc_inj_enf")&&F(_.h2W(),"s.i_");F(c95,"d.p_");F(_.A9W(_.p7),"o.p_");F(_.e2Z()===0?0:_.dsT(),"o.a_");return _.y("debug_sk_em_precheck")?!0:C};
s7I=function(){var C=[].concat(_.da(xsS));try{var F=J9E();C.push({jsonRepresentation:F.jsonRepresentation,objectRepresentation:F.objectRepresentation})}catch(G){C=[].concat(_.da(xsS))}return C};
qns=function(){var C=["adPlacements","adSlots"];try{return C.filter(function(){return!0}).length!==C.length?0:1}catch(F){return 0}};
_.B$Z=function(){if(qns()===0)return 0;var C=J9E(),F=C.objectRepresentation,G=(0,_.xf.unsafeClone)(F),V=[];if(F&&typeof F==="object")for(var J in F)V.push(J);else return 4;C=C.objectRepresentation.adPlacements;if(!(C&&C.length>0))return 4;try{if(!$sw(V,Object.getOwnPropertyNames(F)))return 0}catch(b){return 0}return $sw(G,F)?1:0};
_.A9W=function(C){if(!C||!C.length||typeof C==="string")return 0;for(var F=Object.getOwnPropertyNames(Object.prototype),G=0;G<C.length;G++)for(var V=_.RA(C[G]),J=_.u(F),b=J.next();!b.done;b=J.next())if(V===b.value)return 0;return 1};
PpA=function(C){var F=_.RA(C[1]);if(C[0]===null)return F;C=C[0];for(var G={},V=0;V<C.length;V++){var J=_.RA(C[V]);if(V===0)G[J]=F;else{var b={};b[J]=G;G=b}}return G};
_.e2Z=function(){for(var C=_.mD,F=0;F<C.length;F++){var G=PpA(C[F]),V=[];V.push(G);if(V.length===0)return 0}return 1};
_.dsT=function(){for(var C=_.mD,F={},G=0;G<C.length;F={dm8:void 0},G++){var V=[PpA(C[G])];F.dm8=[];V.forEach(function(J){return function(b){J.dm8[J.dm8.length]=b}}(F));
if(F.dm8.length===0)return 0}return 1};
_.XWT=function(){for(var C=_.u(s7I()),F=C.next();!F.done;F=C.next()){var G=F.value;F=G.jsonRepresentation;G=G.objectRepresentation;try{var V=JSON.parse(F);if(!Db(V,G,!1,!1))return 0}catch(J){return 0}}return 1};
_.h2W=function(){try{var C=_.Uw("ab_det_sc_inj_val");C.length===1&&C[0]===""&&(C=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var F=document.querySelectorAll("script"),G=_.u(F),V=G.next();!V.done;V=G.next())for(var J=V.value,b=_.u(C),z=b.next();!z.done;z=b.next()){var Q=z.value;F=void 0;if((F=J.textContent)==null?0:F.includes(Q))return 0}}catch(E){return 4}return 1};
_.ZEA=function(){var C,F,G,V,J,b,z;return _.I(function(Q){switch(Q.nextAddress){case 1:_.yy(Q,2),C=_.u(xsS),F=C.next();case 4:if(F.done)return Q.return(1);V=G=F.value;J=V.jsonRepresentation;b=V.objectRepresentation;return Q.yield((new Response(J,{status:200})).json(),7);case 7:z=Q.yieldResult;if(!Db(z,b,!1,!1))return Q.return(0);F=C.next();Q.jumpTo(4);break;case 2:return _.wa(Q),Q.return(4)}})};
_.v9i=function(){try{btoa("abc")}catch(C){return 0}return 1};
z25=function(){var C,F,G,V,J,b,z,Q,E,t,k;return _.I(function(U){switch(U.nextAddress){case 1:_.yy(U,2),C=_.u(s7I()),F=C.next();case 4:if(F.done)return U.return(1);V=G=F.value;J=V.jsonRepresentation;b=V.objectRepresentation;z=btoa(J);Q="data:application/json;base64,"+z;E=new Request(Q);Object.defineProperty(E,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(E,"method",{get:function(){return"POST"}});
Object.defineProperty(E,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(E,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(E,"body",{get:function(){return new ReadableStream}});
return U.yield(fetch(E),7);case 7:return t=U.yieldResult,U.yield(t.json(),8);case 8:k=U.yieldResult;if(!Db(k,b,!1,!1))return U.return(0);F=C.next();U.jumpTo(4);break;case 2:return _.wa(U),U.return(4)}})};
_.MCE=function(C){if(!C||!C.length||typeof C==="string")return 0;for(var F=function(J){return _.RA(J)},G=2,V=0;V<C.length&&(G=_.g9s(_.VCi(C[V],F)),G!==0);V++);
return G};
_.g9s=function(C){var F=_.u(C);C=F.next().value;F=F.next().value;try{var G=document.createElement("div");document.body.appendChild(G);var V=getComputedStyle(G).display;document.body.removeChild(G);if(V==="none")return 4;var J=getComputedStyle(F).display==="none"?0:1;document.body.removeChild(C);return J}catch(b){return 4}};
aOA=function(){var C,F,G;return _.I(function(V){C=new _.Cd;F=document.createElement("button");F.classList.add("ytp-ad-skip-button");F.style.opacity="0";F.style.height="0px";F.style.width="0px";F.style.padding="0px";F.style.border="none";G=function(){F.parentElement&&F.parentElement.removeChild(F)};
F.onclick=function(){C.resolve(0);G()};
document.body.appendChild(F);setTimeout(function(){G();C.resolve(1)},50);
return V.return(C.promise)})};
E9E=function(){var C,F,G,V,J,b,z;return _.I(function(Q){C=new _.Cd;F=document.createElement("ytd-player");try{document.body.prepend(F)}catch(E){return Q.return(4)}G=function(){F.parentElement&&F.parentElement.removeChild(F)};
F.getElementsByTagName("div").length>0?V=F.getElementsByTagName("div")[0]:(V=document.createElement("div"),F.appendChild(V));J=document.createElement("div");V.appendChild(J);b=document.createElement("video");z=new Blob([new Uint8Array([26,69,223,163,159,66,134,129,1,66,247,129,1,66,242,129,4,66,243,129,8,66,130,132,119,101,98,109,66,135,129,4,66,133,129,2,24,83,128,103,1,255,255,255,255,255,255,255,21,73,169,102,153,42,215,177,131,15,66,64,77,128,134,67,104,114,111,109,101,87,65,134,67,104,114,111,
109,101,22,84,174,107,169,174,167,215,129,1,115,197,135,207,96,156,234,24,157,175,131,129,1,85,238,129,1,134,133,86,95,86,80,56,224,138,176,129,1,186,129,1,83,192,129,1,31,67,182,117,1,255,255,255,255,255,255,255,231,129,0,160,204,161,162,129,0,0,0,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,229,106,0,117,161,165,166,163,238,129,1,165,158,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,232,120,0,160,187,161,152,129,3,233,0,177,
1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,129,0,160,188,161,152,129,7,208,0,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,130,3,233])],{type:"video/webm"});b.src=_.eS(_.g9(z));b.ontimeupdate=function(){G();C.resolve(0)};
J.appendChild(b);b.classList.add("html5-main-video");setTimeout(function(){J.classList.add("ad-interrupting")},200);
setTimeout(function(){G();C.resolve(1)},5E3);
return Q.return(C.promise)})};
R2B=function(C){var F=J9E().objectRepresentation.playbackTracking;if(F){var G=[],V;G.push(F==null?void 0:(V=F.videostatsPlaybackUrl)==null?void 0:V.baseUrl);var J;G.push(F==null?void 0:(J=F.videostatsDelayplayUrl)==null?void 0:J.baseUrl);var b;G.push(F==null?void 0:(b=F.videostatsWatchtimeUrl)==null?void 0:b.baseUrl);var z;G.push(F==null?void 0:(z=F.ptrackingUrl)==null?void 0:z.baseUrl);var Q;G.push(F==null?void 0:(Q=F.qoeUrl)==null?void 0:Q.baseUrl);var E;G.push(F==null?void 0:(E=F.atrUrl)==null?
void 0:E.baseUrl);F=_.u(G);for(G=F.next();!G.done;G=F.next())if((G=G.value)&&C.test(G))return G.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
Yn5=function(C,F){var G,V;return _.I(function(J){switch(J.nextAddress){case 1:G=[],V=0;case 2:if(!(V<3)){J.jumpTo(4);break}return J.yield(fetch(C,{cache:"no-store",method:F}).then(function(b){G.push(b.status)}).catch(function(){G.push(-1)}),3);
case 3:V++;J.jumpTo(2);break;case 4:return J.return(G)}})};
T$E=function(C){return C.domainLookupStart===0&&C.domainLookupEnd===0&&C.connectStart===0&&C.connectEnd===0||C.duration===0};
o9T=function(C,F,G){G=G===void 0?"GET":G;var V,J,b,z,Q,E,t,k,U,H;return _.I(function(l){if(l.nextAddress==1)return l.yield(Promise.all([Yn5(C,G),Yn5(F,G)]),2);V=l.yieldResult;J=_.u(V);b=J.next().value;z=J.next().value;Q=b;E=z;if(Math.min.apply(Math,_.da(E))!==Math.max.apply(Math,_.da(E))||Math.min.apply(Math,_.da(Q))!==Math.max.apply(Math,_.da(Q)))return l.return(2);if(Math.min.apply(Math,_.da(E))===Math.min.apply(Math,_.da(Q)))return l.return(1);k=(t=performance.getEntriesByName(C))==null?void 0:
t[0];H=(U=performance.getEntriesByName(F))==null?void 0:U[0];return k&&H?T$E(H)?l.return(1):T$E(k)?l.return(0):l.return(1):l.return(2)})};
HET=function(){var C;return _.I(function(F){var G=[];var V;var J,b,z;(J=V=(J=J9E().objectRepresentation.streamingData)==null?void 0:(b=J.formats)==null?void 0:(z=b[0])==null?void 0:z.url)&&J&&!V.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(J=J.replace("initcwndbps","ctier=L&initcwndbps"),J=J.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),V={testUrl:J,baseUrl:V,method:"GET"}):V=void 0;V&&G.push(V);_.y("ab_net_tp_e")&&G.push({testUrl:_.VT.location.origin+"/ad_companion",baseUrl:_.VT.location.origin+
"/generate_204",method:"OPTIONS"});_.y("ab_fix_creator_view_cnt")&&(G.length=0,(V=R2B(/api\/stats\/atr/))&&G.push({testUrl:_.VT.location.origin+V,baseUrl:_.VT.location.origin+"/generate_204",method:"POST"}));_.y("ad_net_pb_pbp")&&(V=R2B(/api\/stats\/qoe/))&&G.push({testUrl:_.VT.location.origin+V,baseUrl:_.VT.location.origin+"/feed/download",method:"GET"});G=G.length!==0?G[Math.floor(Math.random()*G.length)]:void 0;return(C=G)?F.return(o9T(C.testUrl,C.baseUrl,C.method)):F.return(4)})};
_.L1E=function(){if(_.VT.aoo===void 0||_.VT.aoo===null||typeof _.VT.aoo!=="function")return 2;try{return _.VT.aoo()===!0?0:1}catch(C){return 0}};
r9W=function(C){switch(C){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.r2(C,"unknown result type")}};
_.K1q=function(C,F){var G=Number(_.TF("CATSTAT",0));if(F.kCS===void 0)return G;F=F.kCS;C=r9W(C);return G&~(3<<F)|C<<F};
DsT=function(C){var F,G;if((C=(F=C.auxiliaryUi)==null?void 0:(G=F.messageRenderers)==null?void 0:G.bkaEnforcementMessageViewModel)&&C.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return C};
mso=function(){for(var C=_.u(Object.values(_.pW5)),F=C.next();!F.done;F=C.next())F=F.value,F.isAsync&&F.kCS&&_.Yn("CATSTAT",_.K1q(2,F))};
_.Gt=function(C,F){C=_.jv("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",C);(F===void 0?0:F)?_.C75(C,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.Fp().logFlowEvent(C,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
Fu5=function(){if(!jOs){if(Polymer.Base){var C=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{C.apply(this,arguments)}catch(U){_.ri(U)}};
var F=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{F.apply(this,arguments)}catch(U){_.ri(U)}};
var G=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{G.apply(this,arguments)}catch(U){_.ri(U)}};
var V=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{V.apply(this,arguments)}catch(U){_.ri(U)}};
var J=Polymer.Base._listen,b=new WeakMap;Polymer.Base._listen=function(U,H,l){var N=function(){try{l.apply(this,arguments)}catch(S){_.ri(S)}};
b.set(l,N);J.call(this,U,H,N)};
var z=Polymer.Base._unlisten;Polymer.Base._unlisten=function(U,H,l){z.call(this,U,H,b.get(l))}}if(Polymer.Async){var Q=Polymer.Async,E=Q._atEndOfMicrotask;
Q._atEndOfMicrotask=function(){try{E.apply(Q,arguments)}catch(U){_.ri(U)}}}if(Polymer.RenderStatus){var t=Polymer.RenderStatus,k=t.afterNextRender;
t.afterNextRender=function(U,H,l){k.call(t,U,function(){try{H.apply(this,arguments)}catch(N){_.ri(N)}},l)}}jOs=!0}};
_.VKI=function(C){var F=C?_.X$(C):"";if(F){if(F.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(F.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(F.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(F.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(F.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.y("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(F.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";F=F.toLowerCase();if(F==="/")return"home";if(F==="/channel_memberships")return"channel-memberships-shopfront";if(F.indexOf("/feed/trending")===0)return"trending";if(F.indexOf("/feed/explore")===0)return"explore";if(F.indexOf("/live")===0)return"live";if(F.indexOf("/results")===0)return"search";if(F.indexOf("/sports")===0)return"sports";if(F.indexOf("/fashion")===0||F.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(F))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(F))return _.y("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(F.indexOf("/channel/")===0||F.indexOf("/user/")===0||F.indexOf("/gaming")===0||F.indexOf("/post/")===0)return"channel";if(Gsq(C))return"show";if(F==="/playlist"||F.indexOf("/playlist/")===0||F==="/view_play_list"||F.indexOf("/view_play_list/")===0||F.indexOf("/show/")===0)return"playlist";if(F==="/companion_canvas")return"companion-canvas";if(F==="/feed/history"||
F.indexOf("/feed/history/")===0)return"history";if(F==="/new")return"labs";if(F==="/feed/subscriptions")return"subscriptions";if(F.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(F==="/history_controls")return"standalone";if(F.indexOf("/account")===0||F==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(F.indexOf("/paid_memberships")===0||F.indexOf("/refund")===0||F.indexOf("/purchases")===0||F.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(F.indexOf("/product")===
0)return"yts-products";if(F.indexOf("/premium")===0||F.indexOf("/musicpremium")===0)return F.indexOf("/premium/offers")===0||F.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(F==="/cart/checkout"||F==="/cart")return"ypc-checkout";if(F.indexOf("/feed/downloads")===0||F.indexOf("/redeem")===0||F.indexOf("/reporthistory")===0)return"browse";if(F.indexOf("/hashtag")===0)return"hashtag-landing-page";if(F.indexOf("/handle")===0)return"handle";if(F.indexOf("/source")===0)return"audio-pivot";if(F.search(RegExp("^/playables/(?!saved)."))===
0)return"mini_app";if(F.indexOf("/playables")===0)return"playables";if(F.indexOf("/create/live/join")===0)return"open-in-app";if(F.indexOf("/shorts")===0)return"shorts";if(F.indexOf("/feed/channels")===0)return"subscriptions-channels";(F=C?_.X$(C):"")&&F.indexOf("/watch")===0&&_.y("web_watch_enable_learning_journey")?(C=_.Vt(C),C=!!C.list&&C.list.indexOf("LJPP")===0):C=!1;if(C)return"learning_journey_watch"}};
_.Vk=function(C){var F,G;(C=(G=_.Z(C==null?void 0:C.commandMetadata,_.GU))==null?void 0:G.url)&&(F=_.VKI(C));return F};
Gsq=function(C){var F=C?_.X$(C):"";if(!F)return!1;F=F.toLowerCase();return F.indexOf("/show/")===0||F.indexOf("/playlist")===0&&(C=_.Vt(C),C.list&&C.list.indexOf("EL")===0)?!0:!1};
$T=function(C){var F="unknown",G;var V=((G=_.Z(C==null?void 0:C.commandMetadata,_.GU))==null?void 0:G.webPageType)||"";V?(G=V.toLowerCase(),G.startsWith("web_page_type_")&&(G=G.slice(14))):G=V;G&&ipI[G.toUpperCase()]?F=ipI[G.toUpperCase()]:_.Z(C,_.iE)||_.Z(C,JZI)?F="browse":_.Z(C,_.JR)?F="search":_.Z(C,_.eT)&&(F="watch");F==="watch"&&_.Vk(C||null)==="learning_journey_watch"&&(F="learning_journey_watch");F==="unknown"&&_.Yw(Error("Uf`"+JSON.stringify({clickTrackingParams:C==null?void 0:C.clickTrackingParams,
commandMetadata:C==null?void 0:C.commandMetadata,allEndpointKeys:Object.keys(C||[])})));return F};
_.bE=function(C){if(!_.$Rs||C)_.$Rs=_.LA();return _.$Rs};
_.bp5=function(C){return!!_.Z(C,_.eT)||!!_.Z(C,_.nd)&&_.y("kevlar_enable_shorts_prefetch")};
_.nVI=function(C,F){C=_.Z(C,_.eT)||_.Z(C,_.nd);return"v"+C.videoId+(C.playlistId?"-pl"+C.playlistId:"")+(F?"-an1":"")+(C.params?"-pr"+C.params:"")};
_.uA9=function(C){var F=new uE(_.TF("ONE_PICK_URL",""));F.urlParamMap_.set("hostId",C);(C=_.TF("GAPI_LOCALE"))&&F.urlParamMap_.set("hl",C);(C=_.TF("SESSION_INDEX"))&&F.urlParamMap_.set("authuser",C);(C=_.TF("DELEGATED_SESSION_ID"))&&F.urlParamMap_.set("groupId",C);return F};
QOZ=function(){var C=_.I8(),F=C.resolve(_.zt);C=C.resolve(_.Qk);return new z39(F,C)};
EVE=function(C){if(window.IntersectionObserver)return new IMi(C,400);throw new TypeError("Wf");};
tK5=function(){var C=Hammer.TouchAction,F=C.prototype.preventDefaults;C.prototype.preventDefaults=function(G){var V=this.actions.indexOf("pan-down")>-1;if(!V)return F.call(this,G);if(!Wuo){var J=G.srcEvent;G=G.direction;var b;if((b=this.manager)==null?0:b.session.prevented)J.preventDefault();else if(V&&G&Hammer.DIRECTION_DOWN)return this.preventSrc(J)}}};
aMq=function(C){if(!C||C.size===0)return Hammer.DIRECTION_ALL;if(C.size===2){if(C.has("up")&&C.has("down"))return Hammer.DIRECTION_VERTICAL;if(C.has("right")&&C.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(C.size===1){if(C.has("up"))return Hammer.DIRECTION_UP;if(C.has("down"))return Hammer.DIRECTION_DOWN;if(C.has("right"))return Hammer.DIRECTION_RIGHT;if(C.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.URo=function(){return ksf?Promise.resolve(ksf):new Promise(function(C,F){var G=self.indexedDB.open("swpushnotificationsdb");G.onerror=F;G.onsuccess=function(){var V=G.result;if(V.objectStoreNames.contains("swpushnotificationsstore"))ksf=V,C(ksf);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.URo()};
G.onupgradeneeded=Hps})};
Hps=function(C){C=C.target.result;C.objectStoreNames.contains("swpushnotificationsstore")&&C.deleteObjectStore("swpushnotificationsstore");C.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
_.E6=function(C,F,G){var V=G&&G>0?G:0;G=V?Date.now()+V*1E3:0;if((V=V?_.It.getLocalStorage():_.It.getSessionStorage())&&window.JSON){typeof F!=="string"&&(F=JSON.stringify(F,void 0));try{V.set(C,F,G)}catch(J){V.remove(C)}}};
_.Wr=function(C){var F=_.It.getSessionStorage(),G=_.It.getLocalStorage();if(!F&&!G||!window.JSON)return null;try{var V=F.get(C)}catch(J){}if(typeof V!=="string")try{V=G.get(C)}catch(J){}if(typeof V!=="string")return null;try{V=JSON.parse(V,void 0)}catch(J){}return V};
_.tR=function(C){try{var F=_.It.getSessionStorage(),G=_.It.getLocalStorage();F&&F.remove(C);G&&G.remove(C)}catch(V){}};
yZS=function(C){var F=lMq(),G;return _.I(function(V){switch(V.nextAddress){case 1:return _.yy(V,2),V.yield(C.match(F,{cacheName:"yt-appshell-assets"}),4);case 4:G=V.yieldResult;_.Gn(V,3);break;case 2:_.wa(V);case 3:return V.return(G)}})};
lMq=function(){var C=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?Zp9.registration.scope:NPi;C.endsWith("/")&&(C=C.slice(0,-1));return C+"/app_shell_home"};
Opf=function(C){C.map(function(F){return F.source}).join("|")};
_.XIo=function(C){return _.I(function(F){return F.return(yZS(C))})};
wIA=function(){var C=window.caches,F;return _.I(function(G){if(G.nextAddress==1)return G.yield(_.XIo(C),2);F=G.yieldResult;return G.return(!!F)})};
h3T=function(){_.I(function(C){if(C.nextAddress==1){if(MKT)return C.jumpTo(0);MKT=!0;if(_.y("enable_system_health_primes_monitoring"))return _.Z9(SGA,3E4),LuA(),C.return();if(!(Math.random()<_.a8("web_system_health_fraction")))return C.jumpTo(0);BPW={heightPixels:screen.height,widthPixels:screen.width};at&&!isNaN(at.jsHeapSizeLimit)&&(BPW.memoryTotalKbytes=String(Math.round(at.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(BPW.devicePixelRatio=window.devicePixelRatio);return C.yield(vVi(),4)}_.Z9(SGA,
3E4);return C.yield(fMA(),0)})};
vVi=function(){return _.I(function(C){if(C.nextAddress==1)return kT.intersectionObserverPresent="IntersectionObserver"in window,kT.serviceWorkerPresent="serviceWorker"in navigator,kT.webSharePresent="share"in navigator,kT.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,kT.cacheStoragePresent="caches"in window,kT.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,kT.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
kT.webkitTemporaryStoragePresent="webkitTemporaryStorage"in U6&&U6.webkitTemporaryStorage&&"queryUsageAndQuota"in U6.webkitTemporaryStorage,kT.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",C.yield(WDw(),2);kT.indexedDbPresent=C.yieldResult;kT.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;kT.broadcastChannelPresent="BroadcastChannel"in window;kT.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(kT.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,kT.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.S9(C)})};
SGA=function(){var C=9E4+Math.random()*2E3;_.I1()>C||(_.y("enable_system_health_primes_monitoring")?LuA():fMA())};
fMA=function(){var C;return _.I(function(F){if(F.nextAddress==1)return F.yield(cZW(),2);C=F.yieldResult;_.q1("systemHealthCaptured",C);_.S9(F)})};
LuA=function(){var C={metric:{}},F=AZo();F.networkEvents.length&&(C.metric.networkEvents=e3I(F));_.q1("systemHealthCaptured",C)};
cZW=function(){var C,F,G,V,J,b,z,Q,E,t;return _.I(function(k){switch(k.nextAddress){case 1:C={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)};F=window.screen;_.y("enable_is_extended_monitoring")&&F&&"isExtended"in F&&(C.isExtended=!!F.isExtended);G={metric:{staticContext:BPW,dynamicContext:C,webMetric:dRT,webApiSupport:kT}};
if(V=_.ZQ())G.csn=V;at&&(G.metric.webMetric.currentHeapKbytes=Math.round(at.usedJSHeapSize/1E3));window.matchMedia&&(G.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,G.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,G.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in U6&&typeof U6.getBattery==="function")){k.jumpTo(2);break}return k.yield(U6.getBattery(),3);case 3:if(J=
k.yieldResult)G.metric.dynamicContext.chargingStatus=J.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(G.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(kT.storageEstimatePresent)return k.yield(navigator.storage.estimate(),8);if(!kT.webkitTemporaryStoragePresent){k.jumpTo(5);break}return k.yield(xRW(),7);case 7:b=k.yieldResult;k.jumpTo(5);break;case 8:b=k.yieldResult;case 5:return G.metric.dynamicContext.deviceStorageQuotaMbytes=((z=b)==null?0:z.quota)?String(Math.round(b.quota/
1048576/10)*10):"-1",G.metric.dynamicContext.deviceStorageUsageMbytes=((Q=b)==null?0:Q.usage)?String(Math.round(b.usage/1048576/10)*10):"-1",E=G.metric.dynamicContext,k.yield(wIA(),9);case 9:return E.hasAppShell=k.yieldResult,t=AZo(),t.networkEvents.length&&(G.metric.networkEvents=e3I(t)),k.return(G)}})};
xRW=function(){return new Promise(function(C){var F;kT.webkitTemporaryStoragePresent&&(F=U6.webkitTemporaryStorage)!=null&&F.queryUsageAndQuota?U6.webkitTemporaryStorage.queryUsageAndQuota(function(G,V){C({usage:G,quota:V})}):C(void 0)})};
_.Hr=function(C){C&=16777215;C=[(C&16711680)>>16,(C&65280)>>8,C&255];return sO5(C[0],C[1],C[2])};
_.lE=function(C){C=[(C&16711680)>>>16,(C&65280)>>>8,C&255,(C&4278190080)>>>24];if(!_.qGq(C,function(F){return F===(F&255)}))throw Error("Xf`"+C.join(","));
return"rgba("+C[0]+","+C[1]+","+C[2]+","+(C[3]/255).toFixed(3)+")"};
_.P7B=function(C){return[(C&16711680)>>>16,(C&65280)>>>8,C&255]};
_.gVS=function(C){C=C.map(function(F){F/=255;return F<=.03928?F/12.92:Math.pow((F+.05)/1.05,2.4)});
return C[0]*.2126+C[1]*.7152+C[2]*.0722};
yk=function(C,F){C=_.P7B(C);return"rgba("+C[0]+", "+C[1]+", "+C[2]+", "+F+")"};
Zt=function(C){return(C&4278190080)>>>24===0?yk(C,"1"):_.lE(C)};
_.R3E=function(){try{return!!self.localStorage}catch(C){return!1}};
rZS=function(){if(YGi())_.Yw(Error("Yf"));else{var C=document.createElement("iframe");C.style.display="none";var F=F===void 0?window.location.href:F;var G=_.Ra(_.TF("PERSIST_IDENTITY_IFRAME_URL"));F=G?G:(new URL(F)).host.indexOf("studio")===0?_.kf(TPq,"persist_identity"):_.kf(oVi,"persist_identity");_.I6o(C,1,F);C.id="persist_identity";var V;(V=document.body)==null||V.appendChild(C)}};
YGi=function(){var C=KuT;C||(C=document.querySelector("#persist_identity"));return C};
DRo=function(){var C=!1;try{C=!!window.sessionStorage.getItem("session_logininfo")}catch(F){C=!0}return(_.TF("INNERTUBE_CLIENT_NAME")==="WEB"||_.TF("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&C};
pIi=function(C,F){if(!DRo())return!1;F||(F=_.TF("LOGIN_INFO"));return F?(C.session_logininfo=F,!0):!1};
CLf=function(C,F){C=C===void 0?!1:C;if((F===void 0||!F)&&mRI!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.oD("LOG_STICKINESS",!1)){F=_.ZQ();var G=_.lm(),V={identityStickinessData:{initialState:mRI}};F&&G&&_.xB(F,G,V)}if(F=YGi())if(G=F.src?(new URL(F.src)).origin:"*",C){var J;(J=F.contentWindow)==null||J.postMessage({action:"clear"},G)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(C=window.sessionStorage.getItem("session_logininfo"))){var b;(b=F.contentWindow)==null||b.postMessage({loginInfo:C},G)}};
_.Nz=function(C){C=C===void 0?!0:C;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.Yn("LOGIN_INFO",""),C&&window.sessionStorage.setItem("from_switch_account","1"),CLf(!0,C)}catch(F){}};
jh5=function(C){C&&(C.startsWith("https://accounts.google.com/AddSession")?_.Nz():C.startsWith("https://accounts.google.com/ServiceLogin")?_.Nz():C.startsWith("https://myaccount.google.com")&&_.mg(C).getPath().endsWith("/youtubeoptions")&&_.Nz())};
O6=function(C,F){jh5(C);if(_.oD("LOGGED_IN",!0)&&DRo()){var G=D7f(C);G==null&&(G={});pIi(G,F)&&_.qU(C,G)}};
F_q=function(){function C(F){for(F=F.target;F&&F.nodeName!=="A";)if(F=F.parentNode,!(F&&F instanceof HTMLElement))return;if(F&&!F.hasAttribute("download")&&F.getAttribute("rel")!=="external"&&F.href)return F.href}
document.addEventListener("mousedown",function(F){F.button!==0&&(F=C(F))&&O6(F)});
document.addEventListener("click",function(F){(F=C(F))&&O6(F)})};
i$W=function(){var C=new G1W;try{if(_.oD("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(Q){C.increment(5,!1);return}if(_.TF("LOGIN_INFO")){var F=VzW?VzW:window.location;_.TF("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&rZS();var G=D7f(F.href);G==null&&(G={});var V=G.session_logininfo,J=Number(window.sessionStorage.getItem("stickiness_reload")),b=V===_.TF("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
J>=2||b)J>=2?C.increment(2,b):b?C.increment(7,b):window.sessionStorage.getItem("session_logininfo")||(C.increment(3,b),mRI="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.TF("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.TF("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))C.increment(4,b),window.sessionStorage.removeItem("stickiness_reload");
else if(J<2){window.sessionStorage.setItem("stickiness_reload",String(J+1));var z=F.href;z=_.P9(z,"sttick");O6(z,window.sessionStorage.getItem("session_logininfo"));z=_.iH(z,{sttick:J});C.increment(J,b);_.kOf(F,z)}}else C.increment(6,!1)}else _.Nz(!1)}catch(Q){}};
_.Xp=function(C,F,G,V,J){F=F===void 0?{}:F;G=G===void 0?"":G;V=V===void 0?window:V;C=_.Jy(C,F);O6(C);G=_.Ph(C+G,J);_.kOf(V.location,G)};
Jwf=function(C){if(C.urlEndpoint){if(C=_.Vt(C.urlEndpoint.url),C.adurl)return zN(C.adurl)}else if(C.watchEndpoint)return"//www.youtube.com/watch?v="+C.watchEndpoint.videoId;return null};
$Oo=function(C){if(!C||!C.reportingPings)return null;var F={};C.reportingPings.forEach(function(G){G.pingType in F?F[G.pingType].push(G.url):F[G.pingType]=[G.url]});
return{adpings:q5A(F)}};
_.Mz=function(C){C=C===void 0?!1:C;var F=_.bQ(),G="USER_INTERFACE_THEME_LIGHT";F.getFlag(165)?G="USER_INTERFACE_THEME_DARK":F.getFlag(174)?G="USER_INTERFACE_THEME_LIGHT":_.w7()&&(G="USER_INTERFACE_THEME_DARK");return C?G:b$w()||G};
_.nNi=function(){return!_.y("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.w7=function(){return _.nNi()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.Sv=function(){var C=_.bQ();return _.nNi()&&!C.getFlag(165)&&!C.getFlag(174)};
b$w=function(){var C=C===void 0?window.location.href:C;if(_.y("kevlar_disable_theme_param"))return null;var F=_.X$(C);if(_.uYZ(F))return"USER_INTERFACE_THEME_DARK";try{var G=_.Vt(C).theme;return zUS.get(G)||null}catch(V){}return null};
_.uYZ=function(C){return _.y("enable_dark_theme_only_on_shorts")?!(C==null||!C.startsWith("/shorts/")):!1};
_.ENZ=function(C,F,G,V,J){F=F===void 0?!1:F;G=G===void 0?!1:G;var b=_.TF("INNERTUBE_CONTEXT");if(!b)return _.gD(Error("bg")),{};b=(0,_.xf.unsafeClone)(b);_.y("web_no_tracking_params_in_shell_killswitch")||delete b.clickTracking;b.client||(b.client={});var z=b.client;z.clientName==="MWEB"&&z.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(z.clientFormFactor=_.TF("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");z.screenWidthPoints=window.innerWidth;z.screenHeightPoints=window.innerHeight;z.screenPixelDensity=
Math.round(window.devicePixelRatio||1);z.screenDensityFloat=window.devicePixelRatio||1;z.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());z.userInterfaceTheme=_.Mz();if(!F){var Q=_.eRo();Q&&(z.connectionType=Q);_.y("web_log_effective_connection_type")&&(Q=xVs())&&(b.client.effectiveConnectionType=Q)}var E;if(_.y("web_log_memory_total_kbytes")&&((E=_.VT.navigator)==null?0:E.deviceMemory)){var t;E=(t=_.VT.navigator)==null?void 0:t.deviceMemory;b.client.memoryTotalKbytes=""+E*1E6}F&&V&&!_.y("web_it_context_set_original_url_ks")&&
(z.originalUrl=QhB(_.VT.location.href,V).toString());_.y("web_gcf_hashes_innertube")&&(Q=KDA())&&(t=Q.coldConfigData,E=Q.coldHashData,Q=Q.hotHashData,b.client.configInfo=b.client.configInfo||{},t&&(b.client.configInfo.coldConfigData=t),E&&(b.client.configInfo.coldHashData=E),Q&&(b.client.configInfo.hotHashData=Q));t=_.Vt(_.VT.location.href);!_.y("web_populate_internal_geo_killswitch")&&t.internalcountrycode&&(z.internalGeo=t.internalcountrycode);!_.y("web_populate_client_screen_killswitch")&&J&&(z.clientScreen=
J);z.clientName==="MWEB"||z.clientName==="WEB"?(z.mainAppWebInfo||(z.mainAppWebInfo={}),z.mainAppWebInfo.graftUrl=V||_.VT.location.href,_.y("kevlar_woffle")&&_.Ld.instance&&(V=_.Ld.instance,z.mainAppWebInfo.pwaInstallabilityStatus=!V.appInstalledEventFired&&V.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),z.mainAppWebInfo.webDisplayMode=q3o(),z.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):z.clientName==="TVHTML5"&&
(!_.y("web_lr_app_quality_killswitch")&&(V=_.TF("LIVING_ROOM_APP_QUALITY"))&&(z.tvAppInfo=Object.assign(z.tvAppInfo||{},{appQuality:V})),V=_.TF("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(z.tvAppInfo=Object.assign(z.tvAppInfo||{},{certificationScope:V}));!_.y("web_populate_time_zone_itc_killswitch")&&(V=c3S())&&(z.timeZone=V);(V=FyS())?z.experimentsToken=V:delete z.experimentsToken;z=GUA();V=_.IZE();V=(0,_.xf.getValues)(V.tokenJars);b.request=Object.assign({},b.request,{internalExperimentFlags:z,consistencyTokenJars:V});
!_.y("web_prequest_context_killswitch")&&(z=_.TF("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(b.request.externalPrequestContext=z);V=_.bQ();z=V.getFlag(58);V=V.get("gsml","");b.user=Object.assign({},b.user);z&&(b.user.enableSafetyMode=z);V&&(b.user.lockedSafetyMode=!0);_.y("warm_op_csn_cleanup")?G&&(F=_.ZQ())&&(b.clientScreenNonce=F):!F&&(F=_.ZQ())&&(b.clientScreenNonce=F);C&&(b.clickTracking={clickTrackingParams:C});if(C=_.mN("yt.mdx.remote.remoteClient_"))b.remoteClient=C;_.Br.getInstance().setLocationOnInnerTubeContext(b);
try{var k=I8T(),U=k.bid;delete k.bid;b.adSignalsInfo={params:[],bid:U};for(var H=_.u(Object.entries(k)),l=H.next();!l.done;l=H.next()){var N=_.u(l.value),S=N.next().value,f=N.next().value;k=S;U=f;C=void 0;(C=b.adSignalsInfo.params)==null||C.push({key:k,value:""+U})}var c,A;if(((c=b.client)==null?void 0:c.clientName)==="TVHTML5"||((A=b.client)==null?void 0:A.clientName)==="TVHTML5_UNPLUGGED"){var T=_.TF("INNERTUBE_CONTEXT");T.adSignalsInfo&&(b.adSignalsInfo.advertisingId=T.adSignalsInfo.advertisingId,
b.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",b.adSignalsInfo.limitAdTracking=T.adSignalsInfo.limitAdTracking)}}catch(P){_.gD(P)}return b};
_.vr=function(){return{isShellLoad:_.oD("IS_SHELL_LOAD",!1)}};
tz9=function(){navigator.serviceWorker.getRegistrations().then(function(C){C.forEach(W_w)})};
W_w=function(C){C&&_.aZZ(k1s,C.scope)};
_.aZZ=function(C,F){F={scope:F||_.kU("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.vh(C),F)};
fd=function(C,F,G,V){if(F&&F.serializedYpcCujLoggingParams){if(G){var J={};J.transactionErrorType=G;V&&(J.errorMessage=V);F.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:J}}}G={};G.ypcCujContext=F;C=_.jv("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",C,G);_.Fp().logFlowEvent(C,"FLOW_TYPE_YPC_ACQUISITION")}};
_.UOs=function(C,F,G,V){var J={};J.serializedTransactionFlowLoggingParams=F;G&&(J.errorType=G);V&&(J.errorMessage=V);_.q1(C,J);_.P8()};
_.H$S=function(C){C&&_.UOs("transactionFlowStarted",C)};
_.lZs=function(C){C&&_.UOs("transactionFlowCancelled",C)};
_.hR=function(C,F,G){F&&_.UOs("transactionFlowFailed",F,C,G)};
ywW=function(C){var F=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");F&&(F.inert=C)};
_.cr=function(){this.megabloxUrl_=null};
_.AR=function(C){try{var F=Z$s==null?void 0:Z$s.composedPath(C)}catch(G){F=C.composedPath?C.composedPath():[]}return F&&F.length>0?F:C.composedPath?C.composedPath():[]};
_.ev=function(C){return _.AR(C)[0]};
_.d7=function(C){if(!(C instanceof Element))return null;C=C.classList?Array.from(C.classList):void 0;if(!C)return null;var F=C.indexOf("style-scope");return F>-1&&F+1<C.length?C[F+1]:null};
xT=function(C){if(!(C instanceof HTMLElement))return null;var F=C&&(C.$$||C.polymerController)?C.tagName.toLowerCase():null;return F?F:_.d7(C)};
NMq=function(C,F){return C.replace(/[^a-z]*[^\s]+/g,function(G){return G+".style-scope."+F})};
O$f=function(C,F){return F?C.split(",").map(function(G){return NMq(G.trim(),F)}).join(", "):C};
_.s6=function(C){var F,G,V,J;return(J=(V=(G=(F=C.root)!=null?F:C.shadowRoot)!=null?G:C.__shady_native_shadowRoot)!=null?V:C.__shady_shadowRoot)!=null?J:C};
qz=function(C){return C instanceof ShadowRoot?ShadowRoot:C instanceof DocumentFragment?DocumentFragment:C instanceof Document?Document:HTMLElement};
X1f=function(C){var F,G,V;return(V=(G=(F=C.parentElement)!=null?F:C.__shady_native_parentElement)!=null?G:C.__shady_parentElement)!=null?V:null};
w1W=function(C){var F,G,V;return(V=(G=(F=C.parentNode)!=null?F:C.__shady_native_parentNode)!=null?G:C.__shady_parentNode)!=null?V:null};
Mzs=function(C){var F,G,V;return(V=(G=(F=C.__shady_parentNode)!=null?F:C.__shady_native_parentNode)!=null?G:C.parentNode)!=null?V:null};
Shq=function(C){var F,G;return(G=(F=w1W(C))!=null?F:C.host)!=null?G:null};
L_f=function(C){var F,G,V;return(V=(G=(F=C.nextSibling)!=null?F:C.__shady_native_nextSibling)!=null?G:C.__shady_nextSibling)!=null?V:null};
BMo=function(C){var F,G,V;return(V=(G=(F=C.previousSibling)!=null?F:C.__shady_native_previousSibling)!=null?G:C.__shady_previousSibling)!=null?V:null};
vN9=function(C){var F,G,V;return(V=(G=(F=C.nextElementSibling)!=null?F:C.__shady_native_nextElementSibling)!=null?G:C.__shady_nextElementSibling)!=null?V:null};
fZE=function(C){var F,G,V;return(V=(G=(F=C.previousElementSibling)!=null?F:C.__shady_native_previousElementSibling)!=null?G:C.__shady_previousElementSibling)!=null?V:null};
hUf=function(C){var F,G,V;return new Set([].concat(_.da((F=C.children)!=null?F:[]),_.da((G=C.__shady_native_children)!=null?G:[]),_.da((V=C.__shady_children)!=null?V:[])))};
cwo=function(C){var F,G,V;return new Set([].concat(_.da((F=C.childNodes)!=null?F:[]),_.da((G=C.__shady_native_childNodes)!=null?G:[]),_.da((V=C.__shady_childNodes)!=null?V:[])))};
Awq=function(C){if(!C)return null;var F=_.d7(C);if(!F){var G;return(G=Node.prototype.getRootNode)==null?void 0:G.call(C)}F=F.toUpperCase();for(C=X1f(C);C&&C.tagName!==F;)C=X1f(C);return C?_.s6(C):null};
eUq=function(C){for(;C&&!(C instanceof HTMLElement);)C=Shq(C);return C};
dOT=function(C){var F=eUq(C);return C===F?_.d7(C):F?xT(F):null};
xOs=function(C){return(C=eUq(C))?xT(C):null};
sho=function(C){if(C instanceof Comment)return!1;if(C instanceof Text){var F,G;if(((G=(F=C.textContent)==null?void 0:F.trim())!=null?G:"")==="")return!1}return!0};
Pr=function(C,F,G){var V=F(C);for(G=G===void 0?xOs(C):G;V&&(dOT(V)!==G||!sho(V));)C=V,V=F(C);return V};
qhW=function(C,F,G){if(!F)return null;C=xOs(C);return dOT(F)===C&&sho(F)?F:Pr(F,G,C)};
PLI=function(C){return Pr(C,Mzs,_.d7(C))};
gNI=function(C){return Pr(C,vN9)};
RUs=function(C){return Pr(C,L_f)};
Yhf=function(C){return Pr(C,fZE)};
TMw=function(C){return Pr(C,BMo)};
oNf=function(C){return qhW(C,C.firstChild||C.__shady_native_firstChild||C.__shady_firstChild||null,L_f)};
rww=function(C){var F,G,V;var J=(V=(G=(F=C.firstElementChild)!=null?F:C.__shady_native_firstElementChild)!=null?G:C.__shady_firstElementChild)!=null?V:null;return qhW(C,J,vN9)};
K_i=function(C){var F,G,V;var J=(V=(G=(F=C.lastChild)!=null?F:C.__shady_native_lastChild)!=null?G:C.__shady_lastChild)!=null?V:null;return qhW(C,J,BMo)};
DOf=function(C){var F,G,V;var J=(V=(G=(F=C.lastElementChild)!=null?F:C.__shady_native_lastElementChild)!=null?G:C.__shady_lastElementChild)!=null?V:null;return qhW(C,J,fZE)};
p1f=function(C){var F=xOs(C);return Array.from(cwo(C)).filter(function(G){return dOT(G)===F})};
mO9=function(C){var F=xT(C);return Array.from(hUf(C)).filter(function(G){return _.d7(G)===F})};
_.g7=function(C,F,G){if(C instanceof HTMLElement&&_.d7(C)===G){var V=Array.from(C.classList).indexOf("style-scope");if(V===-1)C.classList.add("style-scope"),C.classList.add(F);else if(!(V+1>=C.classList.length)){V=C.classList[V+1];var J,b;C==null||(J=C.classList)==null||(b=J.replace)==null||b.call(J,V,F)}}if(C instanceof HTMLElement||C instanceof DocumentFragment)for(J=_.u(hUf(C)),b=J.next();!b.done;b=J.next())_.g7(b.value,F,G);return C};
Rt=function(C,F){if(C instanceof HTMLElement&&_.d7(C)===F){var G=Array.from(C.classList).indexOf("style-scope");G===-1||G+1>=C.classList.length||C.classList.remove("style-scope",C.classList[G+1])}if(C instanceof HTMLElement||C instanceof DocumentFragment){G=_.u(C.children);for(var V=G.next();!V.done;V=G.next())Rt(V.value,F)}return C};
_.CfA=function(C,F){return qz(C).prototype.appendChild.call(C,F)};
j_q=function(C,F){if(C===F)return!0;C=cwo(C);return Array.from(C).some(function(G){return j_q(G,F)})};
_.ot=function(C,F){if(C instanceof Tt)return C;(F==null?0:F.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(C,"ownerDocument")&&Object.defineProperty(C,"ownerDocument",{get:function(){return window.document}});
return new Tt(C)};
Go5=function(){var C=Tt.prototype,F=[].concat(_.da(F05?[]:["getRootNode"]),["setAttribute","removeAttribute"]);F=_.u(F);for(var G=F.next(),V={};!G.done;V={method$jscomp$53:void 0},G=F.next())V.method$jscomp$53=G.value,C[V.method$jscomp$53]=function(J){return function(){return this.host[J.method$jscomp$53].apply(this.host,arguments)}}(V)};
ief=function(){var C=Tt.prototype,F=[].concat(_.da(F05?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.da(V7W?[]:["querySelector","querySelectorAll"]));F=_.u(F);for(var G=F.next(),V={};!G.done;V={method$jscomp$54:void 0},G=F.next())V.method$jscomp$54=G.value,C[V.method$jscomp$54]=function(J){return function(){return this.root[J.method$jscomp$54].apply(this.root,arguments)}}(V)};
beI=function(){var C=Tt.prototype,F=[].concat(_.da(JEE?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.da($nE?[]:["parentNode"]));F=_.u(F);for(var G=F.next(),V={};!G.done;V={prop$jscomp$67:void 0},G=F.next())V.prop$jscomp$67=G.value,Object.defineProperty(C,V.prop$jscomp$67,{get:function(J){return function(){return this.host[J.prop$jscomp$67]}}(V),
configurable:!0})};
zCB=function(){var C=Tt.prototype,F=["activeElement"].concat(_.da(JEE?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.da(nFW?[]:["children"]),_.da(uH5?[]:["lastChild"]));F=_.u(F);for(var G=F.next(),V={};!G.done;V={prop$jscomp$68:void 0},G=F.next())V.prop$jscomp$68=G.value,Object.defineProperty(C,V.prop$jscomp$68,{get:function(J){return function(){return this.root[J.prop$jscomp$68]}}(V),
configurable:!0})};
Q_A=function(){for(var C=Tt.prototype,F=_.u(["innerHTML","textContent"]),G=F.next(),V={};!G.done;V={prop$jscomp$69:void 0},G=F.next())V.prop$jscomp$69=G.value,Object.defineProperty(C,V.prop$jscomp$69,{get:function(J){return function(){return this.root[J.prop$jscomp$69]}}(V),
set:function(J){return function(b){this.root[J.prop$jscomp$69]=b}}(V),
configurable:!0})};
Ijs=function(C){var F=Tt.prototype;C=_.u(Object.entries(C));for(var G=C.next(),V={};!G.done;V={fn$jscomp$403:void 0},G=C.next()){var J=_.u(G.value);G=J.next().value;J=J.next().value;V.fn$jscomp$403=J;F[G]=function(b){return function(){return b.fn$jscomp$403.apply(null,[this.host.node||this.host].concat(_.da(arguments)))}}(V)}};
W0A=function(){for(var C=Tt.prototype,F=_.u(Object.entries(EFE)),G=F.next(),V={};!G.done;V={fn$jscomp$404:void 0},G=F.next()){var J=_.u(G.value);G=J.next().value;J=J.next().value;V.fn$jscomp$404=J;Object.defineProperty(C,G,{get:function(b){return function(){return b.fn$jscomp$404.apply(null,[this.host.node||this.host].concat(_.da(arguments)))}}(V),
configurable:!0})}};
_.r7=function(C){return C instanceof t7W||C instanceof Document?C:new t7W(C)};
aj5=function(){for(var C=t7W.prototype,F=_.u("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),G=F.next(),V={};!G.done;V={method$jscomp$55:void 0},G=F.next())V.method$jscomp$55=G.value,C[V.method$jscomp$55]=function(J){return function(){return HTMLElement.prototype[J.method$jscomp$55].call.apply(HTMLElement.prototype[J.method$jscomp$55],[this.node].concat(_.da(arguments)))}}(V)};
koI=function(){for(var C=t7W.prototype,F=_.u("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),G=F.next(),V={};!G.done;V={prop$jscomp$70:void 0},G=F.next())V.prop$jscomp$70=G.value,Object.defineProperty(C,V.prop$jscomp$70,{get:function(J){return function(){var b;return(b=this.node["__shady_native_"+J.prop$jscomp$70])!=null?b:this.node[J.prop$jscomp$70]}}(V),
configurable:!0})};
_.pd=function(C,F,G){G===void 0&&(G=!C.classList.contains(F));G?C.classList.add(F):C.classList.remove(F)};
_.m5=function(C,F,G){G===void 0&&(G=!C.hasAttribute(F));if(F==="class")throw Error("fg");G?_.r7(C).setAttribute(F,""):_.r7(C).removeAttribute(F)};
UnS=function(C){return(C.localName!=="slot"?[]:(0,_.C5)(C).assignedNodes({flatten:!0})).filter(function(F){return F.nodeType===Node.ELEMENT_NODE})};
_.Heq=function(C){return(C=_.ot(C).querySelector("slot"))&&C.localName==="slot"?UnS(C):[]};
_.jr=function(C,F){window.ShadyCSS&&window.ShadyCSS.styleSubtree(C,F)};
FU=function(C,F){var G=F.bind(C);return function(V){G(V,V.detail)}};
_.Gp=function(C,F){var G=ljS.get(C);G||(G=new WeakMap,ljS.set(C,G));if(G.has(F))return G.get(F);if(_.y("web_fi_listen_disable_bound_fn_helper")){var V=F.bind(C);C=function(J){V(J,J==null?void 0:J.detail)}}else C=FU(C,F);
G.set(F,C);return C};
N4S=function(C,F){yEi(C);C.created[ZeB].push(F)};
yEi=function(C){if(!C.created||!C.created[ZeB]){var F=C.created,G=F?[F]:[];C.created=function(){for(var V=_.u(G),J=V.next();!J.done;J=V.next())J.value.apply(this)};
C.created[ZeB]=G}};
Oef=function(C){return function(){var F=_.Rn.apply(0,arguments);return function(G,V,J){C.apply(null,_.da(F))(G,V,J)}}};
XXS=function(){return function(){var C=_.Rn.apply(0,arguments);return function(F,G,V){udo.apply(null,_.da(C))(F,G,V)}}};
_.w=function(C){return XXS()(C)};
_.M=function(){return Oef(Ek9).apply(null,_.da(_.Rn.apply(0,arguments)))};
_.VG=function(C){return _.y("pbcm_fi_listen_decorators")?wX5(C):Oef(QFB)(C)};
wX5=function(C){return function(F,G){N4S(F,function(){var V=this[G],J=_.y("web_fi_listen_disable_bound_fn_helper")?function(b){V(b,b.detail)}.bind(this):FU(this,V);
M79.has(C)?Rx(this.hostElement,C,J):this.hostElement.addEventListener(C,J)})}};
_.iP=function(){return Oef(Inw).apply(null,_.da(_.Rn.apply(0,arguments)))};
_.L=function(C){C=C===void 0?{}:C;return Oef(zXS)(C)};
_.Jv=function(C){if(C.hostElement&&C!==C.hostElement){var F=_.E5(C.hostElement);F=C.renderIdom?F:F.shadowRoot}F||(C=C.root,F=C instanceof Node?_.E5(C):null);return F};
_.$z=function(C){return SCq?L0s(C):function(F,G){Object.defineProperty(F,G,{get:function(){var V;return(V=_.Jv(this))==null?void 0:V.querySelector(C)},
enumerable:!0,configurable:!0})}};
L0s=function(C){return function(F,G){Object.defineProperty(F,G,{get:function(){var V,J=(V=_.ot(this.hostElement))==null?void 0:V.querySelector(C);if(J)return J;var b;return(b=_.Jv(this))==null?void 0:b.querySelector(C)},
enumerable:!0,configurable:!0})}};
_.bP=function(C){return SCq?B4q(C):function(F,G){Object.defineProperty(F,G,{get:function(){var V;return(V=_.Jv(this))==null?void 0:V.querySelectorAll(C)},
enumerable:!0,configurable:!0})}};
B4q=function(C){return function(F,G){Object.defineProperty(F,G,{get:function(){var V,J=(V=_.ot(this.hostElement))==null?void 0:V.querySelectorAll(C);if(J==null?0:J.length)return J;var b;return(b=_.Jv(this))==null?void 0:b.querySelectorAll(C)},
enumerable:!0,configurable:!0})}};
vF5=function(C){return function(F){if(![_.EH,_.B].includes(Object.getPrototypeOf(F.prototype).constructor))throw Error("gg");FSi(Object.assign({},typeof C!=="string"?C:{is:C,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(F)}};
_.uP=function(){var C=C===void 0?{}:C;return function(F){if(![WS,_.n5].includes(Object.getPrototypeOf(F.prototype).constructor))throw Error("hg");Gi5(Object.assign({},C,{disableInheritanceCheck:!0}))(F)}};
hCZ=function(C,F){fjS[C]!=null||(fjS[C]=new Set);fjS[C].add(F)};
_.zp=function(){var C=_.iP.apply(null,_.da(_.Rn.apply(0,arguments)));return function(F,G){hCZ(F.is,G);C(F,G)}};
EA=function(C,F,G){if(QG(C)&&!cEI.has(F)){F=F.replace(/^JSC\$[\d]+_/,"");F=F.replace(/\.\d+(\.|$)/g,function(b,z){return".#"+z});
IN[C]!=null||(IN[C]={});var V,J;(V=IN[C])[J=F]!=null||(V[J]=new Set);IN[C][F].has(G)||(IN[C][F].add(G),_.q1("polymerPropertyAccessEvent",{componentName:C,propertyName:F,accessType:G}))}};
AEf=function(){return _.y("polymer_property_access_logging_debug")||_.y("polymer_enable_property_access_logging")};
QG=function(C){if(_.y("polymer_property_access_logging_debug"))return!0;if(!_.y("polymer_enable_property_access_logging"))return!1;eCq||(eCq=Date.now());return(B9(C)+eCq)%100<_.a8("polymer_property_access_logging_percent")};
dnW=function(C,F){return QG(F)&&C.hostElement.loggingStatus?new Proxy(C,{get:function(G,V,J){if(G.hostElement.loggingStatus.bypassProxyController)return G[V];G.hostElement.loggingStatus.isExternalGet=!0;var b=G[V];G.hostElement.loggingStatus.isExternalGet=!1;if(b instanceof Function)return function(){var z=_.Rn.apply(0,arguments);try{return G.hostElement.loggingStatus.currentExternalCall=V,EA(F,V,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),b.apply(this===J?G:this,z)}finally{G.hostElement.loggingStatus.currentExternalCall=
void 0}};
EA(F,V,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return b},
set:function(G,V,J){if(G.hostElement.loggingStatus.bypassProxyController)return G[V]=J,!0;G.hostElement.loggingStatus.isRendererStamper?EA(F,V,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):G.hostElement.loggingStatus.isDeclarativeExternal||EA(F,V,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{G.hostElement.loggingStatus.currentExternalSet=V,G[V]=J}finally{G.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):C};
xnT=function(C,F){C&&C.loggingStatus&&!C.loggingStatus.isDeclarativeExternal&&!C.loggingStatus.isExternalGet&&C.loggingStatus.currentExternalSet!==F&&EA(C.tagName.toLowerCase(),F,"PROPERTY_ACCESS_GET_INTERNAL")};
Wb=function(C,F,G){C&&(G||C.loggingStatus&&!C.loggingStatus.isInitializing&&!C.loggingStatus.isDefiningPropertyAccessor&&C.loggingStatus.currentExternalSet!==F)&&EA(C.tagName.toLowerCase(),F,"PROPERTY_ACCESS_SET_INTERNAL")};
s_i=function(){return{_definePropertyAccessor:function(C,F){var G=this,V=G.hostElement.loggingStatus;V&&(V.isDefiningPropertyAccessor=!0);var J=G[C];J!==void 0&&(G.__data?G._setPendingProperty(C,J):(G.__dataProto!=null||(G.__dataProto={}),G.__dataProto[C]=J));V&&(V.isDefiningPropertyAccessor=!1);Object.defineProperty(this,C,{get:function(){xnT(G.hostElement,C);return this.__data[C]},
set:function(b){F||this._setPendingProperty(C,b,!0)&&this._invalidateProperties()}})},
created:function(){var C=this._setPendingProperty.bind(this);this._setPendingProperty=function(F,G,V){Wb(this.hostElement,F);return C.apply(this,[F,G,V])}}}};
qCI=function(C){AEf()&&_.w(tv.prototype)(C.prototype,"__templateBindingLoggingBehavior")};
Pfi=function(C,F){if(F.resolvedFactories.length!==C.resolvedFactories.length)return!0;F=_.u(F.resolvedFactories.entries());for(var G=F.next();!G.done;G=F.next()){var V=_.u(G.value);G=V.next().value;V=V.next().value;if(V.providerClass){if(V.providerClass!==C.resolvedFactories[G].providerClass)return!0}else if(V.providerValue){if(V.providerValue!==C.resolvedFactories[G].providerValue)return!0}else if(V.factory!==C.resolvedFactories[G].factory)return!0}return!1};
gFA=function(C,F){C=_.u(C);for(var G=C.next();!G.done;G=C.next())if(G=G.value,G.constructor===Array)gFA(G,F);else{var V=F;V.has(G)||(G.inject&&V.add(G),G.behaviors&&gFA(G.behaviors,V))}};
aN=function(C,F){var G=C[F];C[F]=function(){var V=_.Rn.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(G)return G.apply(this,V)}};
oFo=function(){_.kz.Class=function(G,V){G=RCq(G,V);aN(G.prototype,"created");return G};
aN(UA.prototype,"_initializeProperties");aN(_.Hb.prototype,"_initializeProperties");if(YCB)aN(T4i,"created");else{var C=function(){aN(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))C();else{var F=customElements.define;customElements.define=function(G,V,J){F.call(customElements,G,V,J);G==="tp-yt-iron-list"&&(C(),customElements.define=F)}}}};
K0I=function(C,F){C.prototype.behaviors=C.prototype.behaviors||[];C.prototype.behaviors.unshift(rEW.InjectBehavior);C.prototype.provide=F};
_.Z5=function(C){return function(F){if(!C.disableElementRegistration){C.noInjection||K0I(F,C.providers);var G=F.prototype;G.__templateHelpers||udo(lP.prototype)(G,"__templateHelpers");G=C.is;Dn5||(Dn5=Date.now());(B9(G)+Dn5)%100<_.a8("polymer_log_prop_change_observer_percent")&&udo(yG.prototype)(F.prototype,"__propertyObserverObserver");F.prototype.behaviors=F.prototype.behaviors||[];F.prototype.behaviors.unshift(_.pXI.YtHostElementBehavior);qCI(F);vF5({is:C.is,notifyObserversOnUndefined:C.notifyObserversOnUndefined!==
!1,fastInit:C.fastInit,template:C.template,disableEnforceFastDefaultValuesCheck:!0})(F)}}};
_.e=function(C){return _.Z5({is:C.is,template:C.template,disableElementRegistration:C.disableElementRegistration,cssBuildOptOut:C.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
jSo=function(C,F){if(mnS){C=new C;for(var G=_.u(Object.getOwnPropertyNames(C)),V=G.next();!V.done;V=G.next())V=V.value,F[V]=C[V];for(G=F;G&&G!==Object.prototype;G=Object.getPrototypeOf(G)){V=_.u(Object.getOwnPropertyNames(G));for(var J=V.next();!J.done;J=V.next())J=J.value,C.hasOwnProperty(J)||Object.defineProperty(C,J,COT(F,J))}}else C.apply(F)};
COT=function(C,F){return{get:function(){var G=C[F];return G instanceof Function?G.bind(C):G},
set:function(G){C[F]=G}}};
GmT=function(C,F){for(var G=C._noAccessors,V=_.u(Object.getOwnPropertyNames(C)),J=V.next();!J.done;J=V.next())if(J=J.value,!FZA.has(J))if(G)F[J]=C[J];else{var b=Object.getOwnPropertyDescriptor(C,J);b&&(b.configurable=!0,Object.defineProperty(F,J,b))}};
V0q=function(C,F,G){return function(V){if(G){var J=G();V.model=J}if(C[F])C[F](V,V.detail)}};
Nr=function(C){var F=[];if(typeof C==="string")C.length>0&&F.push.apply(F,_.da(C.split(".")));else{C=_.u(C);for(var G=C.next();!G.done;G=C.next())G=G.value,typeof G==="string"?F.push.apply(F,_.da(G.split("."))):F.push(G)}return F};
i6S=function(C,F){if(F[F.length-1]!=="*"&&F[F.length-1]!=="splices"){for(var G=0;G<F.length;G++){if(!C)return;C=C[F[G]]}return C}};
Jpq=function(C,F){if(C.length>F.length)return!1;for(var G=0;G<C.length;G++)if(C[G]!==F[G])return!1;return!0};
b6o=function(C,F,G){if(F.type==="compute"){var V=F.getter.bind(G);var J=F.args}else V=function(){return G[F.method.methodName].apply(G,_.da(_.Rn.apply(0,arguments)))},J=F.method.args;
$A9(C,F.propertyKey,V,J,F.value)};
ubs=function(C,F){if(F.readOnly){var G=Object.getOwnPropertyDescriptor(C.model,F.propertyKey);Object.defineProperty(C.model,F.propertyKey,{get:G.get,set:function(){}});
C.model[njA(F.propertyKey)]=G.set}};
zjA=function(C,F,G){if(G){var V=F.propertyKey,J=F.selector;F=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.da(F.selectorArgs.map(function(b){return{type:"path",path:b}})));
$A9(C,V,function(b){var z=_.Rn.apply(1,arguments);return J.apply(null,[G.getState()].concat(_.da(z)))},F)}};
IJq=function(C,F,G){var V=_.Jr(F.propertyKey)+"-changed";QSZ(C,function(J){var b={value:J.value,queueProperty:!0};J.path.split(".").length>1&&(b.path=J.path);G.dispatchEvent(new CustomEvent(V,{detail:b}))},[{type:"wildcard",
path:F.propertyKey}])};
Ejo=function(C,F,G){QSZ(C,function(){G[F.method.methodName].apply(G,_.da(_.Rn.apply(0,arguments)))},F.method.args)};
njA=function(C){return"_set"+(C.charAt(0).toUpperCase()+C.slice(1))};
WZ5=function(){var C,F=Pp(function(G){C=G},!1);
return[C,F]};
H69=function(C){C=C.trim().replace(t0W,",").replace(aJB,"$1");var F=C[0];F==="-"&&(F=C[1]);if(F>="0"&&F<="9")return{type:"literal",value:Number(C)};if(F==="'"||F==='"')return{type:"literal",value:C.slice(1,-1)};if(F=C.match(kmT)){F=F[1];var G=UAS[F];if(G)return{type:G,path:C.slice(0,-(F.length+1))}}return{type:"path",path:C}};
NbE=function(C){var F=C.match(lJi);if(F)return C={methodName:F[1],args:ypE},F[2].trim()&&(F=F[2].replace(Z6T,"&comma;").split(","),C.args=F.map(H69)),C};
O6Z=function(C,F,G,V){V=V===void 0?!1:V;F=_.Jr(F);var J=fc;J&&(G=J(G,F,"attribute",C));OA(C,G,F,V)};
OA=function(C,F,G,V){F=Xqi(F,V===void 0?!1:V);F===void 0?C.removeAttribute(G):C.setAttribute(G,F)};
Xqi=function(C,F){switch(typeof C){case "object":case "function":if(C instanceof Date)return C.toString();if(C){if((F===void 0?0:F)&&!_.y("polymer_reflect_objects_as_boolean_killswitch"))return C?"":void 0;F=window.trustedTypes?window.trustedTypes.isHTML(C)||window.trustedTypes.isScript(C)||window.trustedTypes.isScriptURL(C):void 0;if(F)return C;try{return JSON.stringify(C)}catch(G){_.Yw(Error("Dg`"+C))}}break;case "boolean":return C?"":void 0;default:return C!==null&&C!==void 0?C.toString():void 0}};
wqZ=function(C){if(C===void 0)throw Error("Eg");return C};
vjB=function(C,F,G,V){var J=M0A(V);if(J.length){V=G;var b="property";SUw.test(G)?b="attribute":G[G.length-1]==="$"&&(G=G.slice(0,-1),b="attribute");var z=LZE(J);z&&b==="attribute"&&(G==="class"&&C.hasAttribute("class")&&(z+=" "+C.getAttribute(G)),OA(C,z,G));b==="attribute"&&V==="disable-upgrade$"&&C.setAttribute("disable-upgrade","");C.localName==="input"&&V==="value"&&C.setAttribute("value","");C.removeAttribute(V);b==="property"&&(G=_.$6(G));F=wqZ(F);BbS(F,b,G,J);return!0}return G.slice(0,3)===
"on-"?(C.removeAttribute(G),(b=F).events!=null||(b.events=[]),F.events.push({name:G.slice(3),value:V}),!0):G==="id"?(F.id=V,!0):!1};
M0A=function(C){for(var F=[],G=0,V;(V=fJq.exec(C))!==null;){V.index>G&&F.push({type:"literal",value:C.slice(G,V.index)});var J=V[1][0];G=!!V[2];V=V[3].trim();if(J==="{")throw Error("Fg");(J=NbE(V))?F.push({type:"method",negate:G,signature:J}):F.push({type:"path",negate:G,path:V});G=fJq.lastIndex}G&&G<C.length&&(C=C.substring(G))&&F.push({type:"literal",value:C});return F};
LZE=function(C){for(var F="",G=0;G<C.length;G++){var V=C[G];V.type==="literal"&&(F+=V.value)}return F};
BbS=function(C,F,G,V){C.bindings!=null||(C.bindings=[]);C.bindings.push({kind:F,target:G,parts:V})};
dAS=function(C,F,G){var V=!1;if(C.localName==="template"){V=G;var J=F.stripWhitespace;J=hj9(C,J===void 0?!1:J);var b=C.content.ownerDocument.createDocumentFragment();J.content=b;b.appendChild(C.content);V&&(V.templateInfo=J);V=!0}else C.localName==="slot"&&(F.hasInsertionPoint=!0);if(C.firstChild&&(J=G,C.localName!=="script"&&C.localName!=="style")){b=0;for(var z=C.firstChild;z;){var Q=z;if(Q.localName==="template"){var E=Q.getAttribute("is");if((z=E==="dom-if")||E==="dom-repeat"){Q.removeAttribute("is");
E=Q.ownerDocument.createElement("ps-"+E);Q.parentNode.replaceChild(E,Q);E.appendChild(Q);var t=Array.from(Q.attributes);t=_.u(t);for(var k=t.next();!k.done;k=t.next())k=k.value,z?cp9.has(k.name)&&OA(E,k.value,k.name):ApT.has(k.name)?OA(E,k.value,k.name):ejB.has(k.name),Q.removeAttribute(k.name);z=E}else z=Q}if(z.nodeType===Node.TEXT_NODE){Q=void 0;E=C;for(t=z;((Q=t.nextSibling)==null?void 0:Q.nodeType)===Node.TEXT_NODE;)k=void 0,(k=t).textContent!=null||(k.textContent=""),t.nextSibling.textContent&&
(t.textContent+=t.nextSibling.textContent),E.removeChild(t.nextSibling);if(F.stripWhitespace&&z.textContent&&!z.textContent.trim()){C.removeChild(z);z=z.nextSibling;continue}}dAS(z,F,{parentIndex:b,parentInfo:J});z.parentNode&&b++;z=z.nextSibling}}var U;if((U=C.hasAttributes)==null?0:U.call(C)){U=G=wqZ(G);J=!1;b=Array.from(C.attributes);b=_.u(b);for(Q=b.next();!Q.done;Q=b.next())Q=Q.value,J=vjB(C,U,Q.name,Q.value)||J;V=J||V}C.nodeType===Node.TEXT_NODE&&(U=M0A(C.textContent),U.length&&(C.textContent=
LZE(U)||" ",G=wqZ(G),BbS(G,"text","textContent",U),V=!0));G&&V&&(G.infoIndex=F.nodeInfoList.push(G)-1)};
hj9=function(C,F){F={nodeInfoList:[],stripWhitespace:(F===void 0?!1:F)||C.hasAttribute("strip-whitespace")};dAS(C.content,F);return F};
xAs=function(C){Object.assign(C,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
qUZ=function(C,F,G){F.signalCache!=null||(F.signalCache={});var V=F.signalCache[G];if(!V){var J=G.split(".");V=!sSB(C,J[0]);if(J.length>1&&V){var b=C.getPathMutationSignal(J);V=function(){var z=YK(C.owner,function(){return C.getWithPath([J[0]])}),Q,E=(Q=b())==null?void 0:Q.value;
return{rootWasDefined:z!==void 0,value:E}}}else V=function(){var z=C.getWithPath(J);
return{rootWasDefined:z!==void 0,value:z}};
F.signalCache[G]=V}return V()};
gjA=function(C,F,G,V,J){F=F.parts.map(function(z,Q){if(z.type==="literal"){G.partWasDefined!=null||(G.partWasDefined=[]);var E;(E=G.partWasDefined)[Q]||(E[Q]=z.value!==void 0);return z.value}var t;if(z.type==="method"){var k,U=(k=(t=G.partWasDefined)==null?void 0:t[Q])!=null?k:!1;U||(U=z.signature.args.every(function(N){return N.type==="literal"}));
var H=!1,l=!0;t=z.signature.args.map(function(N){if(N.type==="literal")return N.value;if(N.type!=="path")throw Error("Gg`"+N.type);var S=qUZ(C,G,N.path);N=S.value;S=S.rootWasDefined;H||(H=S);l&&(l=S);return N});
U||(U=J===1?l:H);G.partWasDefined!=null||(G.partWasDefined={});G.partWasDefined[Q]=U;if(!U)return;t=(Q=qUZ(C,G,z.signature.methodName).value)&&typeof Q==="function"?Q.apply(V,t):void 0}else k=qUZ(C,G,z.path),t=k.value,G.partWasDefined!=null||(G.partWasDefined={}),(U=G.partWasDefined)[Q]||(U[Q]=t!==void 0||k.rootWasDefined);z.negate&&(t=!t);return t});
if(F.length===1){var b;return((b=G.partWasDefined)==null?0:b[0])?F[0]:PO9}return F.join("")};
Rjq=function(C){return typeof C==="object"&&!!C&&"notifyPath"in C&&"canNotifyPath"in C};
YUT=function(C){return typeof C==="object"&&!!C&&"notifyPath"in C};
Tbf=function(C){return"polymerController"in C};
ojB=function(C,F){F=""+Nr(F)[0];if(Rjq(C))return C.canNotifyPath(F);if(Tbf(C)&&Rjq(C.polymerController))return C.polymerController.canNotifyPath(F);if(YUT(C)){var G;return!((G=C.properties)==null||!G[F])}if(Tbf(C)&&YUT(C.polymerController)){var V;return!((V=C.polymerController.properties)==null||!V[F])}return!1};
rp9=function(C,F,G){Rjq(C)||YUT(C)?C.notifyPath(F,G):Tbf(C)&&(Rjq(C.polymerController)||YUT(C.polymerController))&&C.polymerController.notifyPath(F,G)};
DAA=function(C,F,G){if(G!==PO9){C.kind==="attribute"||C.target!=="textContent"&&(C.target!=="value"||F.localName!=="input"&&F.localName!=="textarea")||(G=G===void 0?"":G);var V,J=(V=KZB.Polymer)==null?void 0:V.sanitizeDOMValue;J&&(G=J(G,C.target,C.kind,F));if(C.kind==="attribute"){C=C.target;if(C==="class"||C==="name"||C==="slot")F=(0,_.C5)(F);OA(F,G,C)}else if(C=C.target,G!==F[C]||typeof G==="object")F.loggingStatus&&(F.loggingStatus.isDeclarativeExternal=!0,EA(F.localName,C,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
F[C]=G,F.loggingStatus&&(F.loggingStatus.isDeclarativeExternal=!1)}};
pq9=function(C,F,G,V){var J=F.parts[0];if(F.parts.length!==1||J.type!=="path"||!ojB(G,F.target))return!1;var b=_.u(J.path.split(".")),z=b.next().value,Q=VH(b);if(sSB(C,z))return!1;V.signalCache!=null||(V.signalCache={});b=V.signalCache[J.path];var E;b=(E=b)==null?void 0:E().value;if((b==null?void 0:b.path)!==void 0){V=Nr(b.path);var t=Nr(J.path);V=[F.target].concat(_.da(V.slice(t.length-1)));rp9(G,V,J.negate?!b.value:b.value);return!0}var k=XU(C,z);var U=k.getChangeRecordSignal(Q),H=!1;b=function(){if(!H){var N=
YK(C.owner,function(){return k.getWithPath([])});
H||(H=N!==void 0)}return{value:U(),rootWasDefined:H}};
V.signalCache[J.path]=b;V.partWasDefined!=null||(V.partWasDefined={});b=b();(t=V.partWasDefined)[0]||(t[0]=b.rootWasDefined);var l=YK(C.owner,function(){return k.getWithPath(Q)});
V.partWasDefined[0]&&YK(C.owner,function(){return void DAA(F,G,J.negate?!l:l)});
return!0};
mAW=function(C,F,G,V,J,b){if(!pq9(C,F,G,V)){var z=gjA(C,F,V,J,b);YK(C.owner,function(){return void DAA(F,G,z)})}};
CrE=function(C,F,G,V,J,b){G=_.u(G);for(var z=G.next(),Q={};!z.done;Q={infoIndex:void 0},z=G.next()){z=z.value;var E=z.bindings;Q.infoIndex=z.infoIndex;z=z.parentInfo;if(E){E=_.u(E);for(var t=E.next(),k={};!t.done;k={b$jscomp$256:void 0,bindingCtx$jscomp$4:void 0},t=E.next()){k.b$jscomp$256=t.value;if(Q.infoIndex===void 0)throw Error("Hg");k.bindingCtx$jscomp$4={};C.effect(function(U,H){return function(){J&&!J()||mAW(C,U.b$jscomp$256,F[H.infoIndex],U.bindingCtx$jscomp$4,V,b)}}(k,Q))}}z&&CrE(C,F,[z],
V,J,b)}};
jiq=function(C,F){C=(F.parentInfo?jiq(C,F.parentInfo):C).firstChild;for(var G=0;C;C=C.nextSibling)if(F.parentIndex===G++)return C;throw Error("Ig");};
GQE=function(C,F,G,V){C=document.importNode(C.content,!0);C.__noInsertionPoint=!(V==null?0:V.hasInsertionPoint);for(var J=Array(F.length),b={},z=0;z<F.length;z++){var Q=F[z],E=jiq(C,Q);J[z]=E;Q.id&&(b[Q.id]=E);if(Q.templateInfo){var t=E.parentElement;t&&(t.templateInfo=Q.templateInfo,t.parentSignalProxy=G,t.eventListenerHost=V.eventListenerHost,t.stampingEnabled=V.enabledSignal)}t=void 0;if((t=Q.events)==null?0:t.length)for(t=0;t<Q.events.length;t++){var k=Q.events[t];FQE(V.eventListenerHost,E,k.name,
k.value,V.getModel)}}CrE(G,J,F,V.thisCtx,V.enabledSignal,V.methodInvocationRequirement);return{root:C,nodes:J,nodesById:b}};
iwW=function(C,F){C=C();var G;(G=Vgf.ShadyCSS)==null||G.prepareTemplate(C,F);F=hj9(C);return{template:C,nodeInfoList:F.nodeInfoList,hasInsertionPoint:F.hasInsertionPoint}};
bww=function(){JIE=!1;for(var C=wk.length,F=0;F<C;F++){var G=wk[F];if(G)try{G()}catch(V){Promise.resolve().then(function(){throw V;})}}wk.splice(0,C);
$Lw+=C};
Qii=function(C){JIE||(JIE=!0,n1o.textContent=(uaq++).toString());wk.push(C);return zEE++};
_.L5=function(C,F,G){Mr++;C=F?new IT9(Mr,C,F,G):new E1T(Mr,C);Sr.set(Mr,C);return Mr};
WQA=function(C){(C=Sr.get(C))&&C.cancel()};
aTi=function(C,F){C=tgS.get(C);return C?(F=C.get(F))?F:null:null};
_.Bb=function(C,F,G,V){var J=aTi(C,F);if(!J){J=new kQB;var b=tgS.get(C);b||(b=new Map,tgS.set(C,b));b.set(F,J)}C=G.bind(C);J.run(C,V,void 0)};
_.ULi=function(C,F){var G;(G=aTi(C,F))==null||G.cancel()};
HwE=function(C){var F;(F=aTi(C,"doRender"))==null||F.flush()};
vb=function(C){var F;return(F=C.hostElement)!=null?F:C};
lTT=function(C){var F=C.indexOf(".");return F===-1?C:C.slice(0,F)};
yII=function(C,F,G,V,J,b){b=(J=(V=b?lTT(F):F)?F:null)?C.get(J):C.__data[F];J&&b===void 0&&(b=G[F]);_.oo(C.hostElement,oHo(V)+"-changed",{value:b,queueProperty:!0,path:J!=null?J:void 0},{bubbles:!1,composed:!1})};
ZwE=function(C,F){C.__isReflecting=!0;O6Z(C.hostElement,F,C.__data[F]);C.__isReflecting=!1};
NYi=function(C){if(C._onIronRequestResizeNotifications){var F=C._onIronRequestResizeNotifications.bind(C);C._onIronRequestResizeNotifications=function(G){_.ev(G)!==C.hostElement&&F(G)}}C._ariaActiveAttributeChanged&&(C._ariaActiveAttributeChanged=C._ariaActiveAttributeChanged.bind(C.hostElement));
C._activeChanged&&(C._activeChanged=function(G){C.toggles?OA(C.hostElement,G?"true":"false",C.ariaActiveAttribute):C.hostElement.removeAttribute(C.ariaActiveAttribute);C._changedButtonState()});
C._asyncClick&&(C._asyncClick=function(){_.L5(function(){C.hostElement.click()},1)});
!C.keyEventTarget||C.keyEventTarget instanceof EventTarget||(C.keyEventTarget=vb(C.keyEventTarget));C._disabledChanged&&(C._disabledChanged=C._disabledChanged.bind(C.hostElement));C._observeItems&&(C._observeItems=function(G){var V=vb(G);return _.E5(V).observeNodes(function(J){C._updateItems();C._updateSelected();_.oo(V,"iron-items-changed",J,{bubbles:!1,cancelable:!1})})});
C._updateItems&&C._updateItems===_.f5._updateItems&&(C._updateItems=function(){var G=_.E5(C.hostElement).queryDistributedElements(C.selectable||"*");G=Array.prototype.filter.call(G,C._bindFilterItem);C._setItems(G)});
C._computeKeyboardClass&&(C._computeKeyboardClass=function(G){_.pd(C.hostElement,"keyboard-focus",G)});
C.ensureRipple&&(C.ensureRipple=function(G){if(C.hasRipple&&!C.hasRipple()){if(!C._createRipple)return;C._ripple=C._createRipple();C._ripple.noink=C.noink;var V=C._rippleContainer||C.hostElement;V&&_.ot(V).appendChild(C._ripple)}var J;if(G&&((J=C._ripple)==null?0:J.uiDownAction)){V=_.ot(C._rippleContainer||C.hostElement);var b;J=(b=G.composedPath())==null?void 0:b[0];V.contains(J)&&C._ripple.uiDownAction(G)}});
C._updateMultiselectable&&(C._updateMultiselectable=function(G){G?C.hostElement.setAttribute("aria-multiselectable","true"):C.hostElement.removeAttribute("aria-multiselectable")})};
OwI=function(C,F,G){G=_.u(G);for(var V=G.next();!V.done;V=G.next())jSo(V.value.constructor,C);jSo(F.constructor,C)};
wOo=function(C,F){C=_.u(C);for(var G=C.next();!G.done;G=C.next())if(G=G.value,G.type==="signal"){var V=G.propertyKey;if(F.hasOwnProperty(V)&&F[V]!=null&&G.attributeType===Object){a:{V=F[V].constructor;for(var J=_.u(XOE),b=J.next();!b.done;b=J.next())if(b=b.value,V===b){V=b;break a}V=Object}G.attributeType=V}}};
Mg5=function(){};
S2E=function(C){var F;return(F=C.hostElement)!=null?F:C};
LQi=function(){throw Error("Mg");};
BYf=function(C,F){C.constructor.prototype.useSignals=!0;var G=new C.constructor;OwI(G,C,F.behaviors);wOo(F.reactiveSchemas,G);G={};for(var V=_.u(F.reactiveSchemas),J=V.next();!J.done;J=V.next())J=J.value,J.type==="signal"&&(G[J.propertyKey]=J.attributeType);var b={copyPropertiesToProto:LQi,didRegister:!1,typesForSignals:G},z=["disable-upgrade"].concat(_.da(F.observedAttributes)),Q=function(E){hv.call(this,C,F,b,E)};
_.O(Q,hv);_.I6.Object.defineProperties(Q,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return z}}});
b.copyPropertiesToProto=function(){for(var E=0;E<F.behaviors.length;E++)GmT(F.behaviors[E],Q.prototype);GmT(C,Q.prototype)};
F.legacyOptimizations||b.copyPropertiesToProto();Q.prototype.is=C.is;return Q};
v1W=function(C,F){if(Object.getPrototypeOf(F.prototype).constructor!==_.B)throw Error("Ng");F.prototype.is=C.is;return BYf(F.prototype,C)};
fT9=function(C){return C.type==="compute"||C.type==="computeWithMethod"};
hEW=function(C){for(var F=C.reactiveSchemas.filter(fT9),G=new Map,V=new Map,J=new Map,b=_.u(F),z=b.next();!z.done;z=b.next())z=z.value,G.set(z.propertyKey,z),V.set(z.propertyKey,[]),J.set(z.propertyKey,0);b=0;F=_.u(F);for(z=F.next();!z.done;z=F.next()){z=z.value;for(var Q=_.u(z.type==="computeWithMethod"?z.method.args:z.args),E=Q.next();!E.done;E=Q.next())E=E.value,E.type!=="literal"&&(E=E.path.split(".")[0],V.has(E)&&(V.get(E).push(z.propertyKey),J.set(z.propertyKey,J.get(z.propertyKey)+1),b++))}z=
[].concat(_.da(V.keys())).filter(function(t){return J.get(t)===0});
for(F=[];z.length;)for(Q=z.shift(),F.push(G.get(Q)),Q=_.u(V.get(Q)),E=Q.next();!E.done;E=Q.next())E=E.value,J.set(E,J.get(E)-1),b--,J.get(E)===0&&z.push(E);G=C.reactiveSchemas.filter(function(t){return!fT9(t)});
C.reactiveSchemas=[].concat(_.da(G),_.da(F))};
cIT=function(C,F){if(F.properties)for(var G=_.u(Object.entries(F.properties)),V=G.next();!V.done;V=G.next()){var J=_.u(V.value);V=J.next().value;J=J.next().value;C.properties[V]=typeof J==="function"?{type:J}:J}F.observers&&C.observers.push.apply(C.observers,_.da(F.observers));F.disabledPolySiReactions&&C.disabledPolySiReactions.push.apply(C.disabledPolySiReactions,_.da(F.disabledPolySiReactions))};
AI5=function(C,F){for(var G=F.length-1;G>=0;G--){var V=F[G];Array.isArray(V)?AI5(C,V):C.indexOf(V)<0&&C.unshift(V)}};
eEf=function(C,F){C.reactiveSchemas=C.reactiveSchemas.filter(function(G){return G.type==="observe"&&F.includes(G.method.methodName)||fT9(G)&&F.includes(G.propertyKey)?!1:!0})};
xL9=function(C,F){var G=F.prototype,V,J,b={is:C.is,reactiveSchemas:[],observedAttributes:[],behaviors:[rEW.InjectBehavior,lP.prototype],disableElementRegistration:C.disableElementRegistration,provide:(V=C.providers)!=null?V:[],reactivityMode:C.reactivityMode,signalProperties:(J=G.signalProperties)!=null?J:[]};"template"in F?b.templateGetter=function(){return F.template}:C.getTemplate&&(b.templateGetter=C.getTemplate);
G.behaviors&&AI5(b.behaviors,G.behaviors);dLs(b,F);return b};
dLs=function(C,F){for(var G=F.prototype,V={properties:{},observers:[],disabledPolySiReactions:[]},J=_.u(C.behaviors),b=J.next();!b.done;b=J.next())cIT(V,b.value);cIT(V,G);if(C.signalProperties)for(G=_.u(C.signalProperties),J=G.next();!J.done;J=G.next())delete V.properties[J.value];G=_.u(Object.entries(V.properties));for(J=G.next();!J.done;J=G.next()){b=_.u(J.value);J=b.next().value;b=b.next().value;var z=void 0;if((z=C.signalProperties)==null||!z.includes(J)){z=void 0;var Q=C,E=b.type;if(!E)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{E=Reflect.getMetadata("design:type",F,J);for(var t=_.u(siI),k=t.next();!k.done;k=t.next())if(k=k.value,E===k){E=k;break a}E=Object}else E=String;b.computed||b.selector||(Q.reactiveSchemas.push({type:"signal",propertyKey:J,value:b.value,attributeType:E,readOnly:b.readOnly}),Q.observedAttributes.push(_.Jr(J)));b.reflectToAttribute&&Q.reactiveSchemas.push({type:"reflect",propertyKey:J});if(b.computed){E=NbE(b.computed);if(!E)throw Error("Og");Q.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:J,method:E,value:b.value})}b.observer&&Q.reactiveSchemas.push({type:"observe",method:{methodName:b.observer,args:[{type:"path",path:J}]}});b.notify&&Q.reactiveSchemas.push({type:"notify",propertyKey:J});b.selector&&Q.reactiveSchemas.push({type:"redux",propertyKey:J,selector:b.selector,selectorArgs:(z=b.selectorArgs)!=null?z:[]})}}q2w&&hEW(C);F=_.u(V.observers);for(J=F.next();!J.done;J=F.next())G=C,J=J.value,(b=NbE(J))?G.reactiveSchemas.push({type:"observe",method:b}):console.log('Warning: unable to parse observe declaration: "'+
J+'"');eEf(C,V.disabledPolySiReactions)};
Prs=function(C,F){for(var G=0;G<F.length;G++){var V=F[G],J=void 0;(J=V).showHideApi!=null||(J.showHideApi={});J=void 0;!!C!==!((J=V.showHideApi)==null||!J.hideTemplateChildren)&&(V.nodeType===Node.TEXT_NODE?C?(V.showHideApi.polymerTextContent=V.textContent,V.textContent=""):(J=void 0,V.textContent=(J=V.showHideApi.polymerTextContent)!=null?J:null):V instanceof Element&&V.localName==="slot"?C?(V.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.C5)((0,_.C5)(V).parentNode).replaceChild(V.showHideApi.polymerReplaced,
V)):(J=V.showHideApi.polymerReplaced)&&(0,_.C5)((0,_.C5)(J).parentNode).replaceChild(V,J):V instanceof HTMLElement&&V.style&&(C?(V.showHideApi.polymerDisplay=V.style.display,V.style.display="none"):V.style.display=V.showHideApi.polymerDisplay));V.showHideApi.hideTemplateChildren=C;V.showHideChildren&&V.showHideChildren(C)}};
REs=function(){if(!g1A){var C=document.createElement("style");C.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(C);g1A=!0}};
cb=function(){return _.y("disable_hidden_dom_if_using_stamper")};
Y2W=function(C,F){var G=_.Av().getState();return F?C.apply(null,[G].concat(_.da(F))):C(G)};
rIA=function(){if(TYs)return TYs;var C=_.u(_.yH(0,void 0,"MB1Hb")),F=C.next().value;C.next();var G=C.next().value;_.Av().subscribe(function(){o1T(G)});
return TYs=F};
o1T=function(C){KQi||(KQi=!0,Promise.resolve().then(function(){C(function(F){return F+1});
KQi=!1}))};
_.Av=function(){return DLE.getAppStore()};
pOf=function(C,F){return DLE.getSelectFn()(C,F)};
_.er=function(C){DLE.getDispatchFn()(C)};
mLi=function(C,F){var G={},V;for(V in C)G[V]=F(C[V],V);return G};
_.dk=function(C,F){return function(){var G;return(G=_.g0(C))!=null?G:F}};
_.xz=function(C,F){var G=Object.assign({},C),V;for(V in F)F.hasOwnProperty(V)&&(G[V]=_.dk(C[V],F[V]));return G};
C6q=function(C,F,G){C instanceof Element&&(G.debugName||(G.debugName="<"+C.tagName.toLowerCase()+(C.tagName.includes("-")?">":"."+C.className+">")),_.y("ytwiz_enable_debug_component_props")&&(C.debugProps||(C.debugProps=mLi(F,function(V){return function(){return V()}}))))};
F3E=function(C){var F;return jHs.value.traceAllComponents||((F=qV.stack[qV.stack.length-1])==null?void 0:F.name)!=="ytComponent"?X09("ytComponent",{},C):C()};
_.d=function(C,F){var G=function(V){return F3E(function(J){var b=G8S={};var z;if(((z=G)==null?0:z.idomCompat)&&V.renderedFromIdom){var Q;z=typeof G.idomCompat==="object"?(Q=G)==null?void 0:Q.idomCompat.callbacks:{};z=_.u(VbS(V,z,G.debugName));Q=z.next().value;z.next();z=z.next().value;var E=iFq(C,Q);b.privateValue=E;G8S=void 0;C6q(E,Q,G);b={debugName:G.debugName};J&&b&&Object.assign(J.attributes,b);J=W9o(E);J=Array.isArray(J)?J[0]:J;J[N4]||(J[N4]={});J[N4].updateSignalsFromIdomProps=z;J7f(Q,E);return E}z=
mLi(V,$yW);Q=iFq(C,z);b.privateValue=Q;G8S=void 0;C6q(Q,z,G);b={debugName:G.debugName};J&&b&&Object.assign(J.attributes,b);J7f(z,Q);return Q})};
G.debugName=F===void 0?"":F;return G};
iFq=function(C,F){C=C(F);return M4(C)};
bFT=function(C,F){C[F]||(C=new _.Ay("IDOM interop setter undefined. Key:",F),_.gD(C))};
$yW=function(C,F){return F==="children"||F==="ref"||typeof C==="function"||C===void 0?C:function(){return _.g0(C)}};
VbS=function(C,F,G){var V={},J={},b={},z={},Q;for(Q in C){z={key$jscomp$949:z.key$jscomp$949};z.key$jscomp$949=Q;var E=C[z.key$jscomp$949];if(z.key$jscomp$949==="children"||z.key$jscomp$949==="ref")V[z.key$jscomp$949]=E;else if(typeof E==="function")z.key$jscomp$949 in F||E.length>0?(b[z.key$jscomp$949]=E,V[z.key$jscomp$949]=function(k){return function(){return b[k.key$jscomp$949].apply(b,_.da(_.Rn.apply(0,arguments)))}}(z)):V[z.key$jscomp$949]=E;
else if(!(C[z.key$jscomp$949]===void 0&&z.key$jscomp$949 in F)){var t=_.u(_.yH(C[z.key$jscomp$949],{debugName:z.key$jscomp$949+":cwis:"+G},"rvrjQe"));E=t.next().value;t=t.next().value;V[z.key$jscomp$949]=E;J[z.key$jscomp$949]=t}}return[V,J,function(k){var U={},H;for(H in k)U={key$jscomp$950:U.key$jscomp$950,val$jscomp$122:void 0},U.key$jscomp$950=H,U.val$jscomp$122=k[U.key$jscomp$950],U.key$jscomp$950!=="children"&&U.key$jscomp$950!=="ref"&&(typeof U.val$jscomp$122==="function"?U.key$jscomp$950 in
F?b[U.key$jscomp$950]=U.val$jscomp$122:U.val$jscomp$122.length>0&&(b[U.key$jscomp$950]=U.val$jscomp$122,_.Yw(new _.Ay("Callback detected that was not set in the idomCompat callbacks map. Key:",U.key$jscomp$950))):U.key$jscomp$950 in F&&U.val$jscomp$122===void 0||(bFT(J,U.key$jscomp$950),M0(function(l){return function(){J[l.key$jscomp$950](l.val$jscomp$122)}}(U))))}]};
zWA=function(C,F,G){var V=pcI(C.prototype,nq5,C.prototype.behaviors);V.prototype.is=F;V.prototype.localName=F;G&&uv5(V,G);return function(J){J&&(V.prototype.hostElement=J);var b=new V;b.root=b;b.hostElement=J;return b}};
uv5=function(C,F){var G;Object.defineProperty(C.prototype,"_template",{get:function(){G===void 0&&(G=F());return G},
set:function(V){G=V},
configurable:!0,enumerable:!0})};
tbo=function(C,F,G,V){function J(){if(!l){for(var N=new Set,S=_.u(k),f=S.next();!f.done;f=S.next()){f=f.value;for(var c=_.u(Object.getOwnPropertyNames(f)),A=c.next();!A.done;A=c.next()){A=A.value;var T=void 0,P=(T=Object.getOwnPropertyDescriptor(f,A))==null?void 0:T.value;P&&P instanceof Function&&!sA(A)&&(!Q[A]||_.y("polymer_forward_method_killswitch"))&&N.add(A)}}S=_.u(Object.entries(Object.getOwnPropertyDescriptors(C.prototype)));for(f=S.next();!f.done;f=S.next())c=_.u(f.value),f=c.next().value,
c=c.next().value,c.value instanceof Function&&!sA(f)&&N.add(f);l=N}return l}
QHS(C,F,V==null?void 0:V.providers);m5T(C.prototype,C,!0);var b=zWA(C,F,G),z,Q=(z=C.prototype.properties)!=null?z:{},E,t,k=(t=(E=C.prototype.behaviors)==null?void 0:E.flat(Infinity))!=null?t:[];G=_.u(k);for(z=G.next();!z.done;z=G.next())Q=Object.assign({},z.value.properties,Q);var U=[].concat(_.da(I3I),_.da(Object.keys(Q).map(function(N){return _.Jr(N)}))),H=!1,l;
return{ctor:function(N,S){var f=b(N),c,A;N=[].concat(_.da((c=V==null?void 0:V.allowedProps)!=null?c:[]),_.da((A=V==null?void 0:V.allowedPropsFromBehaviors)!=null?A:[]));f.allowedProps=N.length>0?N:void 0;c={};A=_.u(U);for(N=A.next();!N.done;N=A.next())N=N.value,c[N]=_.$6(N);f.__dataAttributes=c;var T=f.ready.bind(f);f.ready=function(){S.beforeReady();T();if(QG(F)&&!H){var P=f.__templateInfo;if(P==null?0:P.hostProps){P=_.u(Object.keys(P.hostProps));for(var g=P.next();!g.done;g=P.next())EA(F,g.value,
"PROPERTY_ACCESS_GET_INTERNAL")}H=!0}};
f._overrideLegacyUndefined=!0;return f},
props:Q,observedAttributes:U,getInitialMethods:J,getPropsToForwardBeforeRegister:function(){for(var N=[],S=new Set,f=_.u(Object.keys(Q)),c=f.next();!c.done;c=f.next())c=c.value,N.push([c,Q[c].readOnly]),S.add(c);f=J();c=_.u(Object.keys(Object.getOwnPropertyDescriptors(C.prototype)));for(var A=c.next();!A.done;A=c.next())A=A.value,!EqS(A)||f.has(A)||S.has(A)||(N.push([A,!1]),S.add(A));S=_.u(W3o);for(f=S.next();!f.done;f=S.next())N.push([f.value,!0]);return N},
getPropsToForwardBeforeReady:function(N){for(var S=[],f=_.u(Object.entries(N)),c=f.next();!c.done;c=f.next()){var A=_.u(c.value);c=A.next().value;A=A.next().value;if(EqS(c)&&!(A instanceof Function)&&(S.push([c,!1]),QG(F))){var T=A=void 0;(T=(A=N)._createPropertyAccessor)==null||T.call(A,c)}}return S},
shouldForwardProp:EqS,shouldLog:QG}};
QHS=function(C,F,G){K0I(C,G);C.prototype.behaviors.unshift(a3B);if(AEf()){if(QG(F)){var V;(V=C.prototype).behaviors!=null||(V.behaviors=[]);C.prototype.behaviors.unshift(s_i())}qCI(C)}_.w(lP.prototype)(C.prototype,"__templateHelpers")};
sA=function(C){return k8f.has(C)||C.startsWith("__compute__")};
EqS=function(C){return!sA(C)&&!C.startsWith("_")&&!C.endsWith("_")};
ZF9=function(C,F){function G(){var H=E();H=_.u(H);for(var l=H.next();!l.done;l=H.next()){var N=_.u(l.value);l=N.next().value;N=N.next().value;UyE(U.prototype,l,N)}V=!0}
var V=!1,J=C.ctor,b=C.getInitialMethods,z=C.observedAttributes,Q=C.getPropsToForwardBeforeReady,E=C.getPropsToForwardBeforeRegister,t=C.shouldForwardProp,k=C.shouldLog,U=function(){var H=HTMLElement.call(this)||this;H.didForwardDynamicProps=!1;H.loggingStatus={};V||G();H.inst=J(H,{beforeReady:function(){H.didForwardDynamicProps||(H.forwardDynamicProps(),H.didForwardDynamicProps=!0)}});
H.controllerProxy=dnW(H.inst,F);H.forwardMethods();return H};
_.O(U,HTMLElement);U.prototype.forwardMethods=function(){for(var H=this,l=_.u(this.inst.getExtraMethodsToForward()),N=l.next(),S={};!N.done;S={method$jscomp$65:void 0},N=l.next()){var f=_.u(N.value);N=f.next().value;f=f.next().value;S.method$jscomp$65=f;this[N]=function(c){return function(){return c.method$jscomp$65.call.apply(c.method$jscomp$65,[H.inst].concat(_.da(_.Rn.apply(0,arguments))))}}(S)}l=_.u(b());
for(S=l.next();!S.done;S=l.next())S=S.value,t(S)&&HFo(this,S),k(F)&&!sA(S)&&l3i(this.inst,S)};
U.prototype.forwardDynamicProps=function(){var H=Q(this.inst);H=_.u(H);for(var l=H.next();!l.done;l=H.next()){var N=_.u(l.value);l=N.next().value;N=N.next().value;UyE(this,l,N);k(F)&&!sA(l)&&y7s(this.inst,l)}};
U.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
U.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
U.prototype.attributeChangedCallback=function(H,l,N){this.inst.attributeChangedCallbackWrapper(H,l,N)};
_.I6.Object.defineProperties(U.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return F}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.I6.Object.defineProperties(U,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return z}}});
customElements.define(F,U)};
UyE=function(C,F,G){C.hasOwnProperty(F)||Object.defineProperty(C,F,{get:function(){var V,J=((V=C.is)!=null?V:C.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||EA(J,F,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,V=this.polymerController[F],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,V},
set:function(V){if(!G){var J,b=((J=C.is)!=null?J:C.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||EA(b,F,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=F,this.loggingStatus.bypassProxyController=!0,this.polymerController[F]!==V&&(J={},this.polymerController.setProperties((J[F]=V,J)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
HFo=function(C,F,G){var V=C.polymerController;C[F]=function(){var J=_.Rn.apply(0,arguments);C.loggingStatus.currentExternalCall=F;C.loggingStatus.bypassProxyController=!0;var b,z=((b=C.is)!=null?b:C.tagName).toLowerCase();EA(z,F,"PROPERTY_ACCESS_CALL_EXTERNAL");var Q;b=(Q=G!=null?G:V[F])==null?void 0:Q.call.apply(Q,[V].concat(_.da(J)));C.loggingStatus.currentExternalCall=void 0;C.loggingStatus.bypassProxyController=!1;return b}};
l3i=function(C,F){var G=C.hostElement,V=C[F];C[F]=function(){var J=_.Rn.apply(0,arguments);if(G.loggingStatus.currentExternalCall!==F){var b,z=((b=G.is)!=null?b:G.tagName).toLowerCase();EA(z,F,"PROPERTY_ACCESS_CALL_INTERNAL")}return V==null?void 0:V.apply(C,J)}};
y7s=function(C,F){var G=Object.getOwnPropertyDescriptor(C,F);G&&!G.get&&Object.defineProperty(C,F,{get:function(){xnT(C.hostElement,F);return G.value},
set:function(V){Wb(C.hostElement,F);G.value=V}})};
N_S=function(C){return _.y("poly_si_dom_repeat_detached_fix_killswitch")||C.tagName!=="PS-DOM-REPEAT"?C.tagName==="DOM-REPEAT":!0};
X4o=function(C,F){var G=OFw(C);C instanceof Element&&G.unshift(C);C=_.u(G.filter(N_S));for(var V=C.next();!V.done;V=C.next()){var J=void 0;V=_.u((J=V.value.__instances)!=null?J:[]);for(J=V.next();!J.done;J=V.next())if(J=J.value,J.root){J=Array.from(J.root.children);J=_.u(J);for(var b=J.next();!b.done;b=J.next())G.push.apply(G,_.da(X4o(b.value,F)))}}return G.filter(function(z){return z.usePatchedLifecycles&&z.lifecycleIsConnected===F})};
OFw=function(C){var F=null;C instanceof Element?F=Element.prototype.querySelectorAll:C instanceof DocumentFragment&&(F=DocumentFragment.prototype.querySelectorAll);return F?Array.from(F.call(C,"*")):[]};
qr=function(C){_.lb(function(){for(var F=_.u(X4o(C,!1)),G=F.next();!G.done;G=F.next()){G=G.value;G.lifecycleIsConnected=!0;try{var V=void 0,J=void 0,b=void 0,z=void 0;(V=(z=G.polymerController)!=null?z:G)==null||(b=(J=V).connectedCallback)==null||b.call(J)}catch(Q){_.gD(Q)}}})};
Pb=function(C){_.lb(function(){for(var F=_.u(X4o(C,!0)),G=F.next();!G.done;G=F.next()){G=G.value;G.lifecycleIsConnected=!1;try{var V=void 0,J=void 0,b=void 0,z=void 0;(V=(z=G.polymerController)!=null?z:G)==null||(b=(J=V).disconnectedCallback)==null||b.call(J)}catch(Q){_.gD(Q)}}})};
f3B=function(){if(!w4I){w4I=!0;var C=[Node];gk&&C.push(gk.Wrapper);var F=Node.prototype.insertBefore,G=Node.prototype.removeChild;C=_.u(C);for(var V=C.next(),J={};!V.done;J={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},V=C.next())V=V.value,J.nativeInsertBefore=V.prototype.insertBefore,V.prototype.insertBefore=function(z){return function(Q,E){if(Q instanceof DocumentFragment){var t=Array.from(Q.children);Q=z.nativeInsertBefore.call(this,Q,E);
if(this.isConnected&&z.nativeInsertBefore===F)for(E=_.u(t),t=E.next();!t.done;t=E.next())qr(t.value);return Q}t=Q instanceof Element&&Q.isConnected;E=z.nativeInsertBefore.call(this,Q,E);t&&Pb(Q);this.isConnected&&qr(Q);return E}}(J),J.nativeAppendChild=V.prototype.appendChild,V.prototype.appendChild=function(z){return function(Q){if(Q instanceof DocumentFragment){var E=Array.from(Q.children);
Q=z.nativeAppendChild.call(this,Q);if(this.isConnected){E=_.u(E);for(var t=E.next();!t.done;t=E.next())qr(t.value)}return Q}E=Q instanceof Element&&Q.isConnected;t=z.nativeAppendChild.call(this,Q);E&&Pb(Q);this.isConnected&&qr(Q);return t}}(J),J.nativeRemoveChild=V.prototype.removeChild,V.prototype.removeChild=function(z){return function(Q){var E=Q instanceof Element&&Q.isConnected,t=z.nativeRemoveChild.call(this,Q);
E&&G===z.nativeRemoveChild&&Pb(Q);return t}}(J),J.nativeReplaceChild=V.prototype.replaceChild,V.prototype.replaceChild=function(z){return function(Q,E){if(Q instanceof DocumentFragment){var t=Array.from(Q.children);
Q=z.nativeReplaceChild.call(this,Q,E);if(this.isConnected)for(Pb(E),E=_.u(t),t=E.next();!t.done;t=E.next())qr(t.value);return Q}t=Q instanceof Element&&Q.isConnected;var k=this.isConnected,U=z.nativeReplaceChild.call(this,Q,E);k&&Pb(E);t&&Pb(Q);k&&qr(Q);return U}}(J);
C=[Element];gk&&C.push(gk.Wrapper);C=_.u(C);V=C.next();for(J={};!V.done;J={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},V=C.next())V=V.value,V.prototype.before=Mbq(V.prototype.before),V.prototype.after=Mbq(V.prototype.after),J.nativeReplaceWith=V.prototype.replaceWith,V.prototype.replaceWith=function(z){return function(){var Q=_.Rn.apply(0,arguments),E=_.u(SJo(Q)),t=E.next().value,
k=E.next().value;E=this.isConnected;z.nativeReplaceWith.apply(this,Q);Q=_.u(k);for(k=Q.next();!k.done;k=Q.next())Pb(k.value);if(E)for(Pb(this),t=_.u(t),E=t.next();!E.done;E=t.next())E=E.value,E instanceof Element&&qr(E)}}(J),J.nativeRemove=V.prototype.remove,V.prototype.remove=function(z){return function(){var Q=this.isConnected;
z.nativeRemove.call(this);Q&&Pb(this)}}(J),J.nativeInsertAdjacentElement=V.prototype.insertAdjacentElement,V.prototype.insertAdjacentElement=function(z){return function(Q,E){var t=E.isConnected;
Q=z.nativeInsertAdjacentElement.call(this,Q,E);t&&Pb(E);Q.isConnected&&qr(Q);return Q}}(J),J.nativeSetAttribute=V.prototype.setAttribute,V.prototype.setAttribute=function(z){return function(Q,E){var t=L3Z(this);
if(!t.usePatchedLifecycles)return z.nativeSetAttribute.call(this,Q,E);var k=this.getAttribute(Q);z.nativeSetAttribute.call(this,Q,E);E=this.getAttribute(Q);B_w(t,Q,k,E)}}(J),J.nativeRemoveAttribute=V.prototype.removeAttribute,V.prototype.removeAttribute=function(z){return function(Q){var E=L3Z(this);
if(!E.usePatchedLifecycles)return z.nativeRemoveAttribute.call(this,Q);var t=this.getAttribute(Q);z.nativeRemoveAttribute.call(this,Q);t!==null&&B_w(E,Q,t,null)}}(J),J.nativeToggleAttribute=V.prototype.toggleAttribute,V.prototype.toggleAttribute=function(z){return function(Q,E){var t=L3Z(this);
if(!this.usePatchedLifecycles)return z.nativeToggleAttribute.call(this,Q,E);var k=this.getAttribute(Q),U=k!==null;E=z.nativeToggleAttribute.call(this,Q,E);E!==U&&B_w(t,Q,k,E?"":null);return E}}(J);
C=[Document,DocumentFragment,Element,ShadowRoot];gk&&C.push(gk.Wrapper);C=_.u(C);for(J=C.next();!J.done;J=C.next())J=J.value,J.prototype.prepend=Mbq(J.prototype.prepend),J.prototype.append=Mbq(J.prototype.append);(gk==null?void 0:gk.noPatch)===!0&&vq9();document.readyState==="complete"?qr(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&qr(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(z){z||Pb(this);b.set.call(this,z);return z}})}};
Mbq=function(C){return function(){var F=_.Rn.apply(0,arguments),G=_.u(SJo(F)),V=G.next().value;G=G.next().value;C.apply(this,F);F=_.u(G);for(G=F.next();!G.done;G=F.next())Pb(G.value);if(this.isConnected)for(V=_.u(V),F=V.next();!F.done;F=V.next())F=F.value,F instanceof Element&&qr(F)}};
vq9=function(){for(var C=_.u(hWE),F=C.next();!F.done;F=C.next()){F=F.value.prototype;for(var G=_.u(c7I),V=G.next();!V.done;V=G.next()){V=V.value;var J=Object.getOwnPropertyDescriptor(F,V);J&&Object.defineProperty(F,"__shady_native_"+V,J)}}};
B_w=function(C,F,G,V){var J,b;if((J=C.polymerController)==null?0:(b=J.observedAttributes)==null?0:b.includes(F))if(C=C.polymerController,C.attributeChangedCallbackWrapper)C.attributeChangedCallbackWrapper.call(C,F,G,V);else{var z;(z=C.attributeChangedCallback)==null||z.call(C,F,G,V)}};
SJo=function(C){var F=[],G=[];C=_.u(C);for(var V=C.next();!V.done;V=C.next())V=V.value,V instanceof Element&&V.isConnected&&G.push(V),V instanceof DocumentFragment?F.push.apply(F,_.da(Array.from(V.children))):F.push(V);return[F,G]};
L3Z=function(C){return!(C instanceof Element)&&C.node instanceof Element?C.node:C};
A7Z=function(C,F){var G=F?["children"].concat(_.da(F)):["children"];F=[];G=_.u(G);for(var V=G.next();!V.done;V=G.next()){var J=V.value;if(C.hasOwnProperty(J)){V=C[J];V=typeof V==="function"?V():V;V=Array.isArray(V)?V:[V];V=M4(V).flat();if(J!=="children"){J=oHo(J);for(var b=_.u(V),z=b.next();!z.done;z=b.next())z=z.value,z instanceof Element&&z.setAttribute("slot",J)}F.push(V)}}F.length===0?C=[]:(C=M4(_.W("div",null,F)),C=Array.from(C.childNodes));return C};
dyf=function(C,F,G){var V={};_.RX(function(){var J={},b;for(b in F)if(F.hasOwnProperty(b)){var z=void 0,Q=void 0;if(!(((z=G.slotProps)==null?0:z.includes(b))||b==="children"||((Q=G.callbackProps)==null?0:Q.includes(b))||b==="ref")&&(z=_.g0(F[b]),V[b]!==z)){V[b]=z;Q=void 0;var E=(Q=C.hostElement)!=null?Q:C;!G.skipHostForwardedProps&&eWB.has(b)&&(E[b]=z);J[b]=z}}M0(function(){if(C.setProperties)C.setProperties(J);else for(var t=_.u(Object.entries(J)),k=t.next();!k.done;k=t.next()){var U=_.u(k.value);
k=U.next().value;U=U.next().value;C[k]=U}})},"i")};
sHS=function(C,F,G,V){var J=A7Z(G,V.slotProps),b=(0,_.C5)(C);J=_.u(J);for(var z=J.next();!z.done;z=J.next())b.appendChild(z.value);dyf(F,G,V);V=_.u(V.callbackProps||[]);J=V.next();for(b={};!J.done;b={kebabEventName:void 0,eventListener:void 0},J=V.next())z=J=J.value,String(J).substring(0,2)==="on"&&G[z]?(b.kebabEventName=oHo(String(J).substring(2)),b.eventListener=G[z],C.addEventListener(b.kebabEventName,b.eventListener),_.q0(function(k){return function(){C.removeEventListener(k.kebabEventName,k.eventListener)}}(b))):
F[z]=G[z];
if(G.ref){G=_.u(xyw(G.ref));var Q=G.next().value,E=G.next().value,t=F.attached.bind(F);F.attached=function(){Q(C);t()};
_.q0(function(){E()})}};
xyw=function(C){if(typeof C==="function"){var F;return[function(G){F=C(G)},
function(){var G;(G=F)==null||G()}]}if(!C.onRender||!C.onUnmount)throw Error("Sg");
return[C.onRender,C.onUnmount]};
qJi=function(C,F){F=F===void 0?{}:F;var G=function(V){var J=document.createElement(C),b;var z=(b=J.polymerController)!=null?b:J;sHS(J,z,V,F);return J};
G.debugName=C+" (CoW wrapped)";return G};
YJE=function(C,F,G,V,J){V=V===void 0?{}:V;var b=P6W,z=!1;b?(z=!0,P6W=void 0):(gqo=F,b=document.createElement(F),gqo=void 0);var Q=b;Q.usePatchedLifecycles=!0;Q.lifecycleIsConnected=!1;b.loggingStatus={};var E=RWI(C,F,b,V,J);_.q0(function(){Q.lifecycleIsConnected&&(Q.lifecycleIsConnected=!1,E.disconnectedCallback())});
z||(b.__noInsertionPoint=!0,sHS(b,E,G,V));return b};
RWI=function(C,F,G,V,J){J=J===void 0?tbo:J;T_w[F]!=null||(T_w[F]=J(C,F,V==null?void 0:V.getTemplate,V));var b=T_w[F],z=b.ctor;J=b.getInitialMethods;var Q=b.getPropsToForwardBeforeReady;C=b.getPropsToForwardBeforeRegister;V=b.shouldForwardProp;var E=b.observedAttributes,t=b.shouldLog,k=z(G,{beforeReady:function(){var U=k;U._takeAttributes?U._takeAttributes():U.setPropertiesFromInitialAttributeValues&&U.setPropertiesFromInitialAttributeValues();U=_.u(Q(G.polymerController));for(var H=U.next();!H.done;H=
U.next()){var l=_.u(H.value);H=l.next().value;l=l.next().value;UyE(G,H,l);t(F)&&!sA(H)&&y7s(G.polymerController,H)}G.polymerController=dnW(k,F)}});
G.polymerController=k;G.polymerController.observedAttributes=E;b=_.u(k.getExtraMethodsToForward());for(z=b.next();!z.done;z=b.next())E=_.u(z.value),z=E.next().value,E=E.next().value,HFo(G,z,E);J=_.u(J());for(b=J.next();!b.done;b=J.next())b=b.value,V(b)&&HFo(G,b),t(F)&&!sA(b)&&l3i(k,b);C=_.u(C());for(V=C.next();!V.done;V=C.next())J=_.u(V.value),V=J.next().value,J=J.next().value,UyE(G,V,J);return k};
oqA=function(C){var F=RN;RN=C;return F};
K3q=function(C){if(Yz.has(C)&&RN&&r7S(RN)===C){var F;(F=RN)._numRenders!=null||(F._numRenders=0);RN._numRenders++;if(RN._numRenders>1)throw Error("Tg");return RN}};
Dys=function(C){Yz.has(r7S(C))&&RN!==C&&(C._isInert=!0)};
r7S=function(C){var F;return(F=C==null?void 0:C.tagName.toLowerCase())!=null?F:""};
p4s=function(C,F){if(C.componentType===h2)throw Error("Ug");Yz.add(F);var G=function(){var V=HTMLElement.call(this)||this;V.is=F;if(gqo===F)return V.isInert=!0,V;V.createElement();return V};
_.O(G,HTMLElement);G.prototype.createElement=function(){if(!this.isInert){P6W=this;var V=_.u(_.PCi(function(){return _.W(C,null)})).next().value;
P6W=void 0;xAs(this);return V}};
customElements.define(F,G)};
ClA=function(C,F,G,V,J){C.prototype.is=F;(V==null?0:V.useSink)?my5(C,F,G,V,J):(G=tbo(C,F,G,V),ZF9(G,F));return C};
my5=function(C,F,G,V,J){f3B();var b=_.d(function(z){return YJE(C,F,z,Object.assign({},V,{getTemplate:G}),J)},"j");
b.debugName=F+" (CoW wrapped)";p4s(b,F);return b};
FRf=function(C){return!juW.has(C)};
iGT=function(C,F,G,V){function J(){if(!U){for(var H=new Set(GjA),l=_.u(b.behaviors),N=l.next();!N.done;N=l.next()){N=N.value;for(var S=_.u(Object.getOwnPropertyNames(N)),f=S.next();!f.done;f=S.next()){f=f.value;var c=void 0,A=(c=Object.getOwnPropertyDescriptor(N,f))==null?void 0:c.value;A&&A instanceof Function&&(!t[f]||_.y("polymer_forward_method_killswitch"))&&H.add(f)}}l=_.u(Object.entries(Object.getOwnPropertyDescriptors(C.prototype)));for(N=l.next();!N.done;N=l.next())S=_.u(N.value),N=S.next().value,
S=S.next().value,S.value instanceof Function&&H.add(N);U=H}return U}
var b=xL9({is:F,disableElementRegistration:!1,getTemplate:G,providers:V==null?void 0:V.providers,reactivityMode:V==null?void 0:V.reactivityMode},C);if((V==null?0:V.allowedProps)||(V==null?0:V.allowedPropsFromBehaviors)){var z,Q;b.allowedProps=[].concat(_.da((z=V.allowedProps)!=null?z:[]),_.da((Q=V.allowedPropsFromBehaviors)!=null?Q:[]))}var E=v1W(b,C);F=E.observedAttributes;var t={};G=_.u(b.reactiveSchemas);for(V=G.next();!V.done;V=G.next())if(V=V.value,V.type==="signal")t[V.propertyKey]={readOnly:V.readOnly},
V.readOnly&&(t[njA(V.propertyKey)]={readOnly:!0});else if(V.type==="compute"||V.type==="computeWithMethod"||V.type==="redux")t[V.propertyKey]={readOnly:!0};var k=b.reactiveSchemas.length,U;return{ctor:function(H,l){H=new E(H);H.beforeReady=l.beforeReady;return H},
props:t,observedAttributes:F,getInitialMethods:J,getPropsToForwardBeforeRegister:function(){for(var H=[],l=new Set,N=_.u(Vd9),S=N.next();!S.done;S=N.next())S=S.value,H.push([S,S!=="observers"&&S!=="properties"]),l.add(S);N=_.u(Object.keys(t));for(S=N.next();!S.done;S=N.next())S=S.value,H.push([S,t[S].readOnly]),l.add(S);N=J();S=_.u(Object.keys(Object.getOwnPropertyDescriptors(C.prototype)));for(var f=S.next();!f.done;f=S.next())f=f.value,!FRf(f)||N.has(f)||l.has(f)||(H.push([f,!1]),l.add(f));H.push(["allowedProps",
!0]);return H},
getPropsToForwardBeforeReady:function(H){var l=[];H=_.u(Object.keys(H));for(var N=H.next();!N.done;N=H.next()){N=N.value;var S=J();FRf(N)&&!S.has(N)&&l.push([N,!1])}H=_.u(b.reactiveSchemas.slice(k));for(N=H.next();!N.done;N=H.next())N=N.value,N.type!=="compute"&&N.type!=="computeWithMethod"&&N.type!=="redux"&&N.type!=="signal"||l.push([N.propertyKey,N.type==="signal"?N.readOnly:!0]);return l},
shouldForwardProp:FRf,shouldLog:QG}};
_.q=function(C,F,G,V){var J,b,z=(b=(J=V)==null?void 0:J.mode)!=null?b:0;V!=null||(V={});var Q;(Q=V).reactivityMode!=null||(Q.reactivityMode=0);z===1&&_.Uw("creator_poly_si_disable_list").includes(F)&&(z=2);return z===1?ClA(C,F,G,Object.assign({},V,{useSink:!0}),iGT):ClA(C,F,G,Object.assign({},V,{useSink:z===2}))};
_.Tp=function(){return function(C,F,G,V){var J,b,z=(b=(J=V)==null?void 0:J.mode)!=null?b:2;V!=null||(V={});var Q;(Q=V).reactivityMode!=null||(Q.reactivityMode=0);if(z===0)throw Error("Vg`"+z);return my5(C,F,G,V,z===1?iGT:void 0)}};
_.oN=function(C){return _.y("creator_poly_si_killswitch")?!1:_.y("force_all_poly_si_batches")&&(C==="poly_si_all_on_test_check"||C==="creator_poly_si_batch_050"?0:C)||document.documentElement.hasAttribute("use-signals")?!0:!C||_.y(C+"_holdback_enabled")&&_.y("kevlar_polysi_holdback")?!1:_.y(C)};
rk=function(C){return C?C.icon?C.icon.iconType.toLowerCase():C.customThumbnail?"member":"":""};
J$q=function(C){if(!C)return"";C=_.u(C);for(var F=C.next();!F.done;F=C.next())if((F=F.value)&&F.liveChatAuthorBadgeRenderer&&(F=rk(F.liveChatAuthorBadgeRenderer))&&F!=="verified")return F;return""};
$Bs=function(C,F){if(!C)return null;var G;return((G=C.find(function(V){return V&&V.liveChatAuthorBadgeRenderer?rk(V.liveChatAuthorBadgeRenderer)===F:!1}))==null?void 0:G.liveChatAuthorBadgeRenderer)||null};
_.IzE=function(C){var F=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;C=bGw(C);F=bGw(F);var G=nR9(C.hex);F=nR9(F.hex);var V=F[0]/255;var J=F[1]/255,b=F[2]/255,z=Math.max(V,J,b),Q=Math.min(V,J,b),E=0,t=0,k=.5*(z+Q);z!=Q&&(z==V?E=60*(J-b)/(z-Q):z==J?E=60*(b-V)/(z-Q)+120:z==b&&(E=60*(V-J)/(z-Q)+240),t=0<k&&k<=.5?(z-Q)/(2*k):(z-Q)/(2-2*k));V=[Math.round(E+360)%360,t,k];G=uBs(G,F);for(C=zAi(C.hex);G<4.5;){C=V[2]>=.5?C.darker((4.5-G)/2):C.brighter((4.5-G)/2);G=C.toString();
J=QuT(G);if(!J.length)throw Error("Yd`"+G);G=J;G=uBs(G,F)}return C.hex()};
uBs=function(C,F){C=_.gVS(C);F=_.gVS(F);return(Math.max(C,F)+.05)/(Math.min(C,F)+.05)};
_.K5=function(C){return"#"+("000000"+(C&16777215).toString(16)).slice(-6)};
_.ERW=function(C){for(var F=0,G=0;G<C.length;G++)F=C.charCodeAt(G)+((F<<5)-F);C="#";for(G=0;G<3;G++)C+=("00"+(F>>G*8&255).toString(16)).slice(-2);return C};
WRZ=function(C){C=(C||"").split(":");C.length===1&&C.unshift("yt-icons");C[1]=C[1].toLowerCase();return C};
lzE=function(C,F){var G=(F=F===void 0?!1:F)?tdT:azw,V=F?kj5:UBE;C.getIconNames().forEach(function(J){J=F?J:J.substring(J.indexOf(":")+1);C.name==="yt-icons"?HG9.add(J):J.includes("-filled")?G.add(J):V.add(J)})};
D5=function(C,F,G,V){G=G===void 0?!1:G;V=V===void 0?!1:V;var J,b,z;return _.I(function(Q){if(Q.nextAddress==1)return Q.yield(y$T,2);if(V)return Q.return(HG9.has(C));J=G?tdT:azw;b=G?kj5:UBE;return F?(z=C.includes("-filled")?C:C.concat("-filled"),Q.return(J.has(z))):Q.return(b.has(C))})};
_.OGZ=function(C){if(ZGo(C))return C;var F=C=C.toLowerCase();(C=NNB.get(C))&&(F=C);return F};
_.p5=function(C){if(ZGo(C))return C.toString();var F=XRW.get(C);if(F)return F;F=C.toLowerCase();var G="yt-icons",V=F.replace(/_/g,"-");switch(C){case "MY_CHANNEL":F="account_circle";break;case "ADD_TO_LIBRARY":F="add";break;case "ALERT_WARN_RED":F="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":F="person_music";break;case "BLOCK_USER":F="block";break;case "CAPTIONS":F="closed_caption";break;case "CLOSED_CAPTION":G="av";F="closed-caption";break;case "COLLECTION":G="maps";F="layers";break;case "CONTACT":G=
"icons";F="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":G="yt-studio-system-icons";F=V.split("creator-studio-")[1];break;case "DISMISSAL":F="close";break;case "DO_NOT_DISTURB":F="block";break;case "DOGFOOD":G="icons";F="pets";break;case "DRAFT":F="paper_corner_folded";
break;case "EMPTY_LIKE":F="like_outline";break;case "EXIT_APP":F="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":F=V;break;case "GAMES":G="ytg";F="my-games";break;case "GO_TO_PAGE":F="arrow-forward";break;case "GROUP":G="social";break;case "HIDE":F="not_interested";break;case "INPUT_COMPONENT":G="icons";F="settings-input-component";break;case "KIDS_BLOCK":F="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":G="ytg";F="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":G=
"ytg";F="membership-post-purchase";break;case "MULTIVIEW":F="screen_multi_view";break;case "MY_LOCATION":G="maps";F=V;break;case "NOTIFICATIONS_INBOX":F="NOTIFICATIONS";break;case "NEXT":F="chevron_right";break;case "OFFLINE":F="power-settings-new";break;case "PAUSE":G="miniplayer";break;case "PAYMENT":G="icons";break;case "PHONE_DOWNLOAD":F="phone_download";break;case "PREMIUM_STANDALONE":G="yt-logos";F="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":G="yt-logos";F="premium_standalone_cairo";
break;case "QUESTION_ANSWER":F="question_answer";break;case "REDEEM":G="icons";F="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":F="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":F="library_add";break;case "SCHOOL":G="yt-sys-icons";F="creator_academy";break;case "SETTINGS_LIGHT":F="settings_applications";break;case "SETTINGS_MATERIAL":F="settings";break;case "SEARCH_HISTORY":F="watch_history";break;case "SHOPPING_BAG":F="bag";break;case "SOCIAL":case "PEOPLE":G=
"yt-icons";F="people";break;case "STAFF_PICK":G="ytg";F="spotlight";break;case "START_DVR":F="add";break;case "STOP_DVR":G="av";F="stop";break;case "TAB_LIKED":F="like";break;case "TAB_INBOX":F="mail";break;case "TERMS_OF_SERVICE":G="icons";F="description";break;case "TRENDING":F="fire";break;case "UNBLOCK_USER":F="remove";break;case "UNPLUGGED_DARK_THEME":G="image";F="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":F="live";break;case "UNPLUGGED_SPORTS":G="ytu";F="visibility-off";break;
case "VIDEOS":G="av";F="play-circle-filled";break;case "YOUTUBE":G="yt-logos";F="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":G="yt-logos-ext";F="yt-logo-red-updated";break;case "YOUTUBE_LOGO":G="yt-logos-ext";F="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":G="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":G="shorts";F=V;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":G="yt-sys-icons";F="youtube_improve_tv";break;case "OUTLINE_BAG":G=
"yt-sys-icons";F="bag";break;case "QUEUE_PLAY_LAST":G="yt-sys-icons";F="list_queue_last";break;case "SLASH_CIRCLE_LEFT":F="slash_circle_left";break;case "SPEED_1_POINT_2X":F="1_point_2x";break;case "SPEED_1_POINT_5X":F="1_point_5x";break;case "SPEED_1_POINT_8X":F="1_point_8x";break;case "SPEED_POINT_2X":F="point_2x";break;case "SPEED_POINT_5X":F="point_5x";break;case "SPEED_POINT_8X":F="point_8x";break;case "SPEED_1X":F="1x";break;case "SPEED_2X":F="2x";break;case "TAB_BOOKMARK":F="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":G="yt-sys-icons";F="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":G="yt-sys-icons";F="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":G="yt-sys-icons",F="tic_tac_toe"}F=G+":"+F;XRW.set(C,F);return F};
ZGo=function(C){var F;_.y("kevlar_use_wil_icons")?F=!!_.I8().resolve(_.mm).resolveIcon({iconName:C.toString()}):F=!1;return F};
_.jR=function(C,F,G,V){G=G===void 0?{}:G;V=V===void 0?!1:V;G===null&&(G={});var J=_.Uw("kevlar_command_handler_command_banlist");J=_.u(J);for(var b=J.next();!b.done;b=J.next())if(b=C?C.hasOwnProperty(b.value):void 0,b)return!1;J=_.Z(C.commandMetadata,_.GU);return V&&J!=null&&J.url?!1:!F.disableCommandHandlerOverride&&_.Cy.instance?(V=_.Cy.instance,G.form||(G.form={element:F}),G.form.element||(G.form.element=F),!G.clickedVisualElement&&F.visualElement&&(G.clickedVisualElement=F.visualElement),V.resolveCommand(C,
G),!0):!1};
wR5=function(C,F){C=F1(C);for(var G=_.u(C.visibilityMonitorKeys||[]),V=G.next();!V.done;V=G.next())F.unobserveByKey(V.value);C.visibilityMonitorKeys=void 0};
BNE=function(C,F){if(_.ZQ()){if(_.y("kevlar_vimio_use_shared_monitor"))MdT(C,F.data);else if(!MdT(C,F.data))return;var G=F.data,V=Sc9(G);if(_.y("enable_client_ve_spec_logging"))wR5(C,F.observer);else{var J=F1(C);J.trackedParams&&J.trackedParams!==V&&wR5(C,F.observer)}J=F1(C);!G||J.data&&J.data===G||(J.data=G);LRi(C,F);J.trackedParams=V}};
LRi=function(C,F){var G=F.observer;if(!G&&_.y("web_skip_missing_vimio_observer")){var V,J;_.Yw(new _.Ay("VisibilityObserver is not defined.",C.tagName,C.trackedParams,(V=F.data)==null?void 0:V.trackingParams,(J=F.data)==null?void 0:J.loggingDirectives))}else{var b=F.layer,z=F.visibilityCallback||function(){},Q=F.prescanCallback,E=F1(C);
V=[];F.showOption&&V.push(G.observe(C,function(){F.skipLogging&&F.skipLogging()||_.GS().reportShown(E,void 0,b);z(!0)},F.showOption));
F.hideOption&&V.push(G.observe(C,function(){_.GS().reportHidden(E,void 0,b);z(!1)},F.hideOption));
F.prescanOption&&Q&&V.push(G.observe(C,function(){Q()},F.prescanOption));
E.visibilityMonitorKeys=V}};
MdT=function(C,F){C=F1(C);if(C.visualElement&&!F)return!0;if(!F)return!1;var G=!1;if(_.y("enable_client_ve_spec_logging")){var V,J;G=!!((V=F.loggingDirectives)==null?0:(J=V.clientVeSpec)==null?0:J.uiType)}V=Sc9(F);if(!V&&!G)return!1;_.y("mweb_component_visibility_logging")&&(C.veContainer||(C.veContainer={}),C.veContainer.trackingParams=V);if(C.trackedParams&&C.trackedParams===V)return!1;var b;if(_.y("enable_client_ve_spec_logging")&&((b=C.visualElement)==null?0:b.isClientVe())){var z;b=(z=C.visualElement)==
null?void 0:z.getAsJspb();var Q,E,t,k;if(_.Wk(b,2)===((Q=F.loggingDirectives)==null?void 0:(E=Q.clientVeSpec)==null?void 0:E.uiType)&&_.Wk(b,3,-1)===((t=F.loggingDirectives)==null?void 0:(k=t.clientVeSpec)==null?void 0:k.elementIndex))return!1}if(_.y("enable_client_ve_spec_logging")){var U,H;!C.visualElement&&((U=F.loggingDirectives)==null?0:(H=U.clientVeSpec)==null?0:H.uiType)&&(Q=F.loggingDirectives.clientVeSpec,F=Q.uiType,z=Q.elementIndex,Q=Q.clientYoutubeData,C.visualElement=_.Vp(_.ia(),{veType:F,
elementIndex:z,clientYouTubeData:Q}))}return!0};
Sc9=function(C){if(C==null?0:C.rendererContext){var F=_.Z(C.rendererContext,_.$e);if(F==null?0:F.loggingDirectives)return F.loggingDirectives.trackingParams}return(C==null?0:C.loggingDirectives)?C.loggingDirectives.trackingParams:C==null?void 0:C.trackingParams};
F1=function(C){var F;return(F=C.polymerController)!=null?F:C};
c$9=function(C){_.GS();if(_.pW(ba().JSC$12726_elementShouldLogGesture).bind(ba())(C,4)){vRB(C);var F=fzw(C);hAf.set(C,F)}};
vRB=function(C){hAf.has(C)&&(hAf.get(C).cancel("untrack hover element"),hAf.delete(C))};
fzw=function(C){var F,G=[],V=!1,J=new _.N1(function(b,z){ny(C,"mouseenter",_.pW(function(){var Q,E,t;return _.I(function(k){if(k.nextAddress==1)return F=(0,_.Et)(),Q=A$f(C),G.push(Q),E=eAo(C,function(){V=!0;z(Error("Wg"))}),k.yield(Q,2);
if(k.nextAddress!=3)return E&&ua(E),t=dBS(C),G.push(t),k.yield(t,3);b();_.S9(k)})}))});
J.then(function(){var b=(0,_.Et)()-F;b=Math.round(b);if(!(500>b||6E5<=b)){var z=C.getScreenLayer?C.getScreenLayer():void 0;z=_.ZQ(z)||"";var Q=xBS(_.GS(),C);_.dh(z,C.visualElement?C.visualElement:_.zS(Q),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:b}})}c$9(C)},function(){Qp&&(Qp(),Qp=null);
V&&(vRB(C),c$9(C))});
return J};
A$f=function(C){var F;return(new _.N1(function(G,V){Qp=function(){V(Error("Xg"))};
F=_.gT.debounce(_.pW(function(){ua(J);G()}),1,100);
var J=_.IP(C,"mousemove",F)})).thenCatch(function(){var G=_.gT.cancelDebouncedJobMap.get(F);
G&&_.gT.cancelJob(G)})};
dBS=function(C){var F;return(new _.N1(function(G,V){Qp=function(){V(Error("Yg"))};
F=ny(C,"mouseleave",_.pW(function(){G()}))})).thenCatch(function(){ua(F)})};
eAo=function(C,F){return ny(C,"mouseleave",_.pW(F))};
qcq=function(C){suw&&_.E9.cancel(suw);suw=_.E9.run(function(){_.oo(C,"yt-visibility-refresh");suw=0})};
PlE=function(C){C=Number(C);return"rgba("+[C>>16&255,C>>8&255,C&255,(C>>24&255)/255].join()+")"};
RAW=function(C){if(!C)return!1;if(_.Z(C,_.gRE))return!0;var F;if(C=(F=_.Z(C,_.Cl))==null?void 0:F.commands)for(F=_.u(C),C=F.next();!C.done;C=F.next())if(_.Z(C.value,_.gRE))return!0;return!1};
YcA=function(C){var F=!0;F=F===void 0?!0:F;if(!C.useSignals&&!C.experimentalPropertiesChanged||_.y("experimental_templating_behavior_nopatch_killswitch")){var G=C._propertiesChanged;C._propertiesChanged=function(V,J,b){F?C.debounceRender():C.doRender();G&&G.call(C,V,J,b)}}};
TNw=function(C,F){if(C.useSignals||C.experimentalPropertiesChanged)if(_.y("experimental_templating_behavior_nopatch_killswitch"))C.experimentalPropertiesChanged=function(){};
else return;var G=new Set,V=[C].concat(_.da(C.behaviors));V=_.u(V);for(var J=V.next();!J.done;J=V.next()){J=J.value;for(var b in J.properties)G.has(b)||(C._addPropertyEffect(b,"function",F),G.add(b))}};
oR9=function(){var C=Polymer.Element,F=C._prepareTemplate;C._prepareTemplate=function(){F.call(this);var G=this.prototype;if(G.experimentalTemplatingInUse&&G.experimentalTemplatingInUse()&&G.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.gD(Error("Zg"));else{G=this.template.content.childNodes;for(var V=G.length-1;V>=0;V--){var J=G[V];J.nodeName!=="STYLE"&&J.nodeName!=="LINK"&&J.nodeName!=="SCRIPT"&&J.nodeName!=="#comment"&&J.remove()}}}};
r$Z=function(C){var F=!0;F=F===void 0?!0:F;oR9();var G=C.ready;C.ready=function(){this._template=null;G.call(this)};
TNw(C,F?C.debounceRender:C.doRender)};
DBf=function(C,F,G){if(G===null||G===void 0)return G;var V=Xv5(C.tagName.toLowerCase(),F,function(){throw Error("Tb");});
if(V===null)return G;V=KRw[V];var J;if((J=V.isUnwrappable)==null?0:J.call(V,G)){if(V.unwrap)return V.unwrap(G);throw Error("bh");}return V.filterString?V.filterString(C.tagName,F,String(G)):G};
pR9=function(C,F,G){var V=F[F.length-1]!=="$",J=DBf(C,F,G);if(V)if(typeof J==="function"&&F.startsWith("reactiveon")&&F===F.toLowerCase()){var b=J2;cto(C,F.slice(8),function(z){YK(b,function(){J(z)})})}else C[F]=J;
else G=J==null?null:String(J),r0(C,F.slice(0,-1),G)};
tC=function(C){mBE.length===0&&requestAnimationFrame(function(){setTimeout(function(){var F=mBE.slice();mBE.length=0;F=_.u(F);for(var G=F.next();!G.done;G=F.next()){G=G.value;try{G()}catch(V){_.W6(V)}}})});
mBE.push(C)};
CvZ=function(C){if(C){var F=C.component;if(F){var G;F==null||(G=F.events)==null||G.publish("DISCONNECTED");var V;F==null||(V=F.onDisconnected)==null||V.call(F)}var J,b;(J=C.__spec)==null||(b=J.didUnmount)==null||b.call(J);for(F=0;F<C.childNodes.length;F++)CvZ(C.childNodes[F])}};
jBs=function(C,F,G){var V=F&&F.key,J=$n;J[0]=C;J[1]=V;J[2]=void 0;for(var b in F)F.hasOwnProperty(b)&&(C=F[b],V=bR,V.push(b),V.push(C));F=$n;a:{if(b=$n[2])for(C=0;C<b.length;C+=2)if(b[C]==="nonce"){b=b[C+1];break a}b=""}b=rtq(F[0],F[1],b);C=pB(b);V=F[2];if(!C.staticsApplied&&(C.staticsApplied=!0,V&&V.length))if((J=C._attrsArr)&&J.length){for(J=0;J<V.length;J+=2)aP[V[J]]=J+1;J=C._attrsArr||(C._attrsArr=hsB(0));for(var z=0,Q=0;Q<J.length;Q+=2){var E=J[Q],t=J[Q+1],k=aP[E];k?V[k]===t&&delete aP[E]:(J[z]=
E,J[z+1]=t,z+=2)}oX(J,z);for(var U in aP)sxI(b,U,V[aP[U]],Q3),delete aP[U]}else for(U=0;U<V.length;U+=2)sxI(b,V[U],V[U+1],Q3);GH9(b,C,Q3);oX(F,0);G&&G(j_);KOo()};
_.ke=function(C,F,G){G===void 0?delete C[F.name]:C[F.name]=G};
_.U9=function(C){var F={androidIncludeFontPadding:!1},G=0,V=[],J=[],b=[];if(C.simpleText)return F.content=C.simpleText,F;if(C.runs===void 0)return F.content="",F;C=_.u(C.runs);for(var z=C.next();!z.done;z=C.next()){z=z.value;var Q=z.text,E=void 0,t=(E=Q)==null?void 0:E.length;if(Q&&t){V.push(Q);if(z.bold||z.italics||z.strikethrough||z.underline||z.textColor!=null&&z.textColor!==0||z.deemphasize){Q=J;E=Q.push;var k={startIndex:G,length:t};z.bold&&(k.weightLabel="FONT_WEIGHT_MEDIUM");z.italics&&(k.italic=
!0);z.strikethrough&&(k.strikethrough="LINE_STYLE_SINGLE");z.underline&&(k.underline="LINE_STYLE_SINGLE");z.textColor!=null&&z.textColor!==0?document.documentElement.hasAttribute("dark")?k.fontColor=z.darkModeTextColor||z.textColor:k.fontColor=z.textColor:z.deemphasize&&(document.documentElement.hasAttribute("dark")?k.fontColor=parseInt("ff"+FzI("#aaa").substring(1),16):k.fontColor=parseInt("ff"+FzI("#606060").substring(1),16));E.call(Q,k)}z.navigationEndpoint&&(Q=b,E=Q.push,k={startIndex:G,length:t,
onTap:{innertubeCommand:z.navigationEndpoint}},z.loggingDirectives&&_.ke(k,GP5,z.loggingDirectives),E.call(Q,k));G+=t}}F.content=V.join("");F.styleRuns=J.length?J:void 0;F.commandRuns=b.length?b:void 0;return F};
iLZ=function(C){if(C==null||!C.runs)return!0;C=_.u(C.runs);for(var F=C.next();!F.done;F=C.next())if(F=F.value,F.bracket||F.errorUnderline||F.deemphasize||_.Z(F,H6)||_.Z(F,V4f))return!1;return!0};
JQA=function(C,F){return function(G){var V=F.unit;if(V!==G)throw Error("eh`"+C+"`"+V+"`"+G);return F}};
la=function(C){if(!((C==null?0:C.value)&&(C==null?0:C.unit)))return"";switch(C.unit){case "DIMENSION_UNIT_FRACTION":var F="%";break;default:F="px"}C=C.value;F==="%"&&(C*=100);return""+C+F};
$9T=function(C){try{return C()}catch(F){_.Yw(F)}};
_.ZD=function(C){var F=_.Z(C,_.yp);if(F)return F;if((F=_.Z(C,bLW))&&F.commands)return n5T(F.commands);if((F=_.Z(C,uq9))&&F.commands)return n5T(F.commands);if((C=_.Z(C,zLo))&&C.identifier&&C.command&&(QBI||(QBI=[]),!QBI.includes(C.identifier)))return QBI.push(C.identifier),_.Z(C.command,_.yp)};
n5T=function(C){if(C.length!==0){var F=[];C=_.u(C);for(var G=C.next();!G.done;G=C.next())(G=_.ZD(G.value))&&F.push(G);return{commandExecutorCommand:{commands:F}}}};
_.O9=function(C){var F=C.defaultTarget,G=C.elementConfig,V=C.elementsCommand,J=C.skipOnClick,b=C.forceNewState,z=C.additionalCommandArgs,Q=C.innertubeCommand||_.ZD(V);if(Q){C={};var E=IvS(Q);V=E.navigatingCommand;E=E.href;V&&E?(C.href$=E,E5q(C,V,E,F),_.y("web_atagconfig_pointerdown")&&WzE(C,V),b&&(C["force-new-state$"]=!0)):(C.role$="button",C.href$="javascript:void(0);");_.Z(Q,t45)&&(C["aria-haspopup$"]=!0);J||(C.onclick=function(t){var k={};if(avo(t)){var U=(z==null?void 0:z.clickedVisualElement)||
(z==null?void 0:z.getClickedVisualElement)&&z.getClickedVisualElement();U&&(k={clickedVisualElement:U});k=Object.assign({},{form:{element:t.target,event:t,createScreenConfig:k}},z);t.preventDefault();_.ND(Q,k)}});
return Object.assign({},G,C)}};
kPI=function(C){if(C.length){if(C.length===1)return C[0];var F={};_.ke(F,_.Cl,{commands:C});return F}};
X1=function(C){return C&&C.href$!=="javascript:void(0);"};
IvS=function(C){var F,G=((F=_.Z(C,_.Cl))==null?void 0:F.commands)||[C];C=_.u(G);for(F=C.next();!F.done;F=C.next()){F=F.value;var V=void 0,J=void 0;G=(J=_.Z((V=F)==null?void 0:V.commandMetadata,_.GU))==null?void 0:J.url;_.y("web_remove_web_navigation_endpoint_data")||(V=void 0,G=G||((V=_.Z(F,U9W))==null?void 0:V.url));if(G&&G!=="/service_ajax"){if(V=_.sL(G,HLB))return C=_.eS(V),{navigatingCommand:F,href:C};_.Yw(new _.Ay("AttributedString URL could not be sanitized",G))}}return{}};
avo=function(C){return C.button!==void 0?C.button===0&&!(C.shiftKey||C.altKey||C.metaKey||C.ctrlKey):!(C.shiftKey||C.altKey||C.metaKey||C.ctrlKey)};
E5q=function(C,F,G,V){G=!uH(G);var J,b,z;if((J=_.Z(F,_.iE))!=null&&J.nofollow||(b=_.Z(F,_.eT))!=null&&b.nofollow||(z=_.Z(F,_.jW))!=null&&z.nofollow||G)C.rel$="nofollow";var Q;F=((Q=_.Z(F,_.jW))==null?void 0:Q.target)==="TARGET_NEW_WINDOW"?"_blank":V===void 0?"":V;C.target$=F};
WzE=function(C,F){F.clickTrackingParams&&(C.params={itct:F.clickTrackingParams});C.onpointerdown=function(G){lvB(G)};
C._data=F};
yQA=function(C){(C.loggingUrls||[]).forEach(function(F){jQ(F.baseUrl,F.attributionSrcMode)})};
lvB=function(C){var F=C.currentTarget;C=$9T(function(){return F.href});
var G=F.params;C&&_.qU(C,G||{},8,!0)};
_.wQ=function(C,F){(C=_.ZD(C))&&_.ND(C,F)};
_.ND=function(C,F){CQw(function(G){F?G.resolveCommand(C,F):G.resolveCommand(C)})};
XKi=function(C,F){var G=["yt-core-attributed-string__link"];F!=null&&F.noLinkColor||((F==null?0:F.isOverlay)?G.push("yt-core-attributed-string__link--overlay-call-to-action-color"):G.push("yt-core-attributed-string__link--call-to-action-color"),(F==null?0:F.linkInheritColor)&&G.push("yt-core-attributed-string--link-inherit-color"));G={className:G.join(" "),tabindex$:"0"};var V=C.onTap||C.onLongPress;if(!V)return G;var J=ZLI(C);J&&(G["aria-label$"]=J);F=_.O9({elementsCommand:V,elementConfig:G,skipOnClick:!(F==
null||!F.skipOnClick),forceNewState:!0});C.onLongPress&&(V=new Nei(function(){var b=_.ZD(C.onLongPress);b&&_.I8().resolve(_.WD).resolveCommand(b)}),F&&OL9(V,F));
return F||G};
ZLI=function(C){var F,G;return(F=C.onTapOptions)==null?void 0:(G=F.accessibilityInfo)==null?void 0:G.accessibilityLabel};
wKT=function(C){var F=C;C<=16777215&&(F+=parseInt("ff000000",16));return _.lE(F)};
M4W=function(C){var F=C.isDarkTheme;var G=C.extension;C=C.runColor;var V=void 0;if(G=G==null?void 0:G.colorMap){F=F?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";G=_.u(G);for(var J=G.next();!J.done;J=G.next())if(J=J.value,F===J.key){V=J.value;break}}V==null&&C&&(V=C);if(V)return wKT(V)};
MD=function(C){var F=C.config;var G=C.image;var V=C.imageConfig;var J=C.imageWrapperConfig;var b=C.run;var z=C.tag;var Q=C.textLength;var E=C.startIndex===void 0?0:C.startIndex;C=C.length;E===void 0&&(E=0);b={run:b,startIndex:E,endIndex:C!==void 0?E+C:Q,tag:z};G&&(b.image=G);V&&(b.imageConfig=V);J&&(b.imageWrapperConfig=J);F&&(b.config=F);return b};
Lzf=function(C,F){var G=[];G.push("yt-core-attributed-string");(F==null?0:F.className)&&G.push(F==null?void 0:F.className);(F==null?0:F.ellipsisTruncate)?G.push("yt-core-attributed-string--ellipsis-truncate"):(F==null?0:F.noWrap)?G.push("yt-core-attributed-string--white-space-no-wrap"):(F==null?0:F.noPreWrap)||G.push("yt-core-attributed-string--white-space-pre-wrap");(F==null?0:F.linkInheritColor)&&G.push("yt-core-attributed-string--link-inherit-color");C.alignment&&G.push(SNZ(C.alignment));C.lineBreakMode&&
G.push("yt-core-attributed-string--word-wrapping");return G.join(" ")};
BeW=function(C,F){if(C.weight)return C.weight;switch(C.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 F?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
v5f=function(C){switch(C){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"}};
SNZ=function(C){switch(C){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"}};
B6=function(C,F,G){var V=F;C.content&&G&&(G=C.content.indexOf("\n"),G!==-1&&(V=Math.min(F,G)));if(!C.content||C.content.length<=V)F=C;else if(C.attachmentRuns||C.commandRuns||C.decorationRuns||C.styleRuns||C.paragraphStyleRuns){F=SR(C.content,V);G=V;var J=C.attachmentRuns;if(J){var b=[];J=_.u(J);for(var z=J.next();!z.done;z=J.next())z=Object.assign({},z.value),z.startIndex===void 0||z.startIndex>=G||(z.length||(z.length=0),z.length+z.startIndex>G&&(z.length=G-z.startIndex),b.push(z));G=b}else G=void 0;
b=fvs(V,C.commandRuns);J=V;var Q=C.decorationRuns;if(Q){z=[];Q=_.u(Q);for(var E=Q.next();!E.done;E=Q.next()){E=E.value;var t=_.Z(E.textDecorator,Ly);if(t&&t.startIndex!==void 0&&!(t.startIndex>=J)){E=Object.assign({},E,{textDecorator:{highlightTextDecorator:Object.assign({},t)}});t=_.Z(E.textDecorator,Ly);if(!t.length||t.length+t.startIndex>J)t.length=J-t.startIndex;z.push(E)}}J=z}else J=void 0;z=fvs(V,C.styleRuns);if(Q=C.paragraphStyleRuns)for(C=[],Q=_.u(Q),E=Q.next();!E.done;E=Q.next()){var k=E.value;
E=Object.assign({},k);if(!(E.startIndex===void 0||E.startIndex>=V)){if(!E.length||E.length+E.startIndex>V)E.length=V-E.startIndex;t=[];var U=void 0,H=void 0;if((U=k)==null?0:(H=U.listGroup)==null?0:H.listItems)for(k=_.u(k.listGroup.listItems),U=k.next();!U.done;U=k.next())if(U=Object.assign({},U.value),!(U.startIndex===void 0||U.startIndex>=V)){if(!U.length||U.length+U.startIndex>V)U.length=V-U.startIndex;t.push(U)}t.length>0&&(E.listGroup||(E.listGroup={}),E.listGroup=Object.assign({},E.listGroup,
{listItems:t}));C.push(E)}}else C=void 0;F={content:F,attachmentRuns:G,commandRuns:b,decorationRuns:J,styleRuns:z,paragraphStyleRuns:C}}else F=Object.assign({},C,{content:SR(C.content,V)});return F};
fvs=function(C,F){if(F){var G=[];F=_.u(F);for(var V=F.next();!V.done;V=F.next())if(V=Object.assign({},V.value),!(V.startIndex===void 0||V.startIndex>=C)){if(!V.length||V.length+V.startIndex>C)V.length=C-V.startIndex;G.push(V)}return G}};
SR=function(C,F){var G=F,V;if(V=G>0)V=C.charCodeAt(G-1),V=V>=55296&&V<=56319;V&&(G=C.charCodeAt(G),V=G>=56320&&G<=57343);V&&--F;return C.substring(0,F)};
eLS=function(C,F,G){G=G===void 0?hLo:G;if(C){var V=_.I8().resolve(E8);V||_.y("mweb_no_observer_killswitch")?BNE(C,{data:F,observer:V,visibilityCallback:G,hideOption:cQS,showOption:AQs,layer:C.layer}):_.Yw(new _.Ay("Warning: monitorVisibility called with null observer",C.tagName,F==null?void 0:F.loggingDirectives,F==null?void 0:F.trackingParams))}else _.Yw(new _.Ay("Warning: monitorVisibility called with null element",F==null?void 0:F.loggingDirectives,F==null?void 0:F.trackingParams,F==null?void 0:
F.rendererContext))};
RL9=function(C,F){var G=[],V=C.content.length,J,b=(J=_.I8().resolve(_.Qt(_.v6)))==null?void 0:J();if(C.paragraphStyleRuns){J=_.u(C.paragraphStyleRuns);for(var z=J.next();!z.done;z=J.next()){var Q=G.push,E=Q.apply;var t=void 0;z=z.value;if((t=z.listGroup)!=null&&t.listItems){t=[];b:switch(z.listGroup.listType){case "LIST_TYPE_BULLET":var k="ul";break b;default:k="span"}t.push(MD({run:z,textLength:V,tag:k,config:{className:"yt-core-attributed-string__list-group"},startIndex:z.startIndex,length:z.length}));
k=_.u(z.listGroup.listItems);for(var U=k.next();!U.done;U=k.next()){U=U.value;b:switch(z.listGroup.listType){case "LIST_TYPE_BULLET":var H="li";break b;default:H="span"}t.push(MD({run:z,textLength:V,tag:H,startIndex:U.startIndex,length:U.length}))}z=t}else z=[];E.call(Q,G,_.da(z))}}if(C.styleRuns&&(F==null||!F.noStyleRuns))for(J=_.u(C.styleRuns),Q=J.next();!Q.done;Q=J.next()){z=Q=Q.value;t=b;E=F;t=M4W({extension:_.Z(z.styleRunExtensions,d99),isDarkTheme:t===void 0?!1:t,runColor:z.fontColor});U=z;
k=[];t&&k.push("yt-core-attributed-string--link-inherit-color");U.italic&&k.push("yt-core-attributed-string--italicized");U.underline&&U.strikethrough?k.push("yt-core-attributed-string--underline-strikethrough",v5f(U.underline)):U.underline?k.push("yt-core-attributed-string--underlined",v5f(U.underline)):U.strikethrough&&k.push("yt-core-attributed-string--strikethrough",v5f(U.strikethrough));if(U.baselineOffset){a:switch(U.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":U="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":U="yt-core-attributed-string--baseline-offset-superscript";break a;default:U="yt-core-attributed-string--baseline-offset-unknown"}k.push(U)}k=k.join(" ");U={};if(z.weight||z.weightLabel)U.fontWeight=BeW(z,E==null?void 0:E.isHeadline).toString();t&&(U.color=t);G.push(MD({run:Q,textLength:V,tag:"span",config:{className:k,style:U},startIndex:Q.startIndex,length:Q.length}))}if(C.decorationRuns)for(J=_.u(C.decorationRuns),Q=J.next();!Q.done;Q=J.next())Q=Q.value,
E={},Q.textDecorator&&(k=Q.textDecorator,z=b===void 0?!1:b,U=[],t=_.Z(k,Ly),k=_.Z(k,x9T),t?(k=U,U=k.concat,H=[],(z=M4W({extension:_.Z(t.highlightTextDecoratorExtensions,sBZ),isDarkTheme:z,runColor:t.backgroundColor}))&&H.push("background-color: "+z+";"),t.backgroundCornerRadius!==void 0&&H.push("border-radius: "+t.backgroundCornerRadius+"px;"),t.leftPadding!==void 0&&H.push("padding-left: "+t.leftPadding+"px;"),t.rightPadding!==void 0&&H.push("padding-right: "+t.rightPadding+"px;"),t.topPadding!==
void 0&&H.push("padding-top: "+t.topPadding+"px;"),t.bottomPadding!==void 0&&H.push("padding-bottom: "+t.bottomPadding+"px;"),U=U.call(k,H)):k&&(t=U,U=t.concat,z=z?"#2ba640":"#107516",z=k.color?wKT(k.color):z,z=["padding: 2px;","border-top: solid "+z+" 2px;","border-bottom: solid "+z+" 2px;","background: linear-gradient(135deg, "+z+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+z+" 3px, rgba(0, 0, 0, 0) 3px);"],U=U.call(t,z)),z=U.join(" "),E.style$=z,z=Q.textDecorator,t=[],k=_.Z(z,
x9T),_.Z(z,Ly)?t.push("yt-core-attributed-string--highlight-text-decorator"):k&&t.push("yt-core-attributed-string--bracket-text-decorator"),z=t.join(" "),E.className=z,E.dir="auto"),z=_.Z(Q.textDecorator,Ly),t=_.Z(Q.textDecorator,x9T),k=_.Z(Q.textDecorator,Ly),U=_.Z(Q.textDecorator,x9T),G.push(MD({run:Q,textLength:V,tag:"span",config:E,startIndex:(z==null?void 0:z.startIndex)||(t==null?void 0:t.startIndex)||0,length:(k==null?void 0:k.length)||(U==null?void 0:U.length)||0}));if(C.commandRuns&&(F==
null||!F.noEndpoints))for(b=_.u(C.commandRuns),J=b.next();!J.done;J=b.next())J=J.value,Q=XKi(J,F),G.push(MD({run:J,textLength:V,tag:"a",config:Q,startIndex:J.startIndex,length:J.length}));if(C.attachmentRuns)for(C=_.u(C.attachmentRuns),b=C.next();!b.done;b=C.next()){b=b.value;E=Q=void 0;J={className:"yt-core-attributed-string--inline-block-mod"};if((E=b.element)==null?0:E.properties){E=(Q=b.element)==null?void 0:Q.properties;Q=[];E=_.Z(E,qNo);if(E==null?0:E.margin)E=E.margin,E.left&&Q.push("margin-left: "+
la(E.left)+";"),E.right&&Q.push("margin-right: "+la(E.right)+";"),E.top&&Q.push("margin-top: "+la(E.top)+";"),E.bottom&&Q.push("margin-bottom: "+la(E.bottom)+";");Q=Q.length!==0?Q.join(" "):void 0;J.style$=Q}z=void 0;Q={alt:"",preserveHeight:!0,preserveWidth:!0};E=["yt-core-attributed-string__image-element"];if(b.alignment){a:switch(b.alignment){case "ALIGNMENT_BASELINE":t="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":t="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:t="yt-core-attributed-string__image-element--image-alignment-bottom"}E.push(t)}if((z=b.element)==null?0:z.properties)z=[],t=_.Z(b.element.properties,qNo),(t==null?0:t.height)&&z.push("height: "+la(t.height)+";"),(t==null?0:t.width)&&z.push("width: "+la(t.width)+";"),z=z.length!==0?z.join(" "):void 0,Q.style$=z,t=void 0,z=((t=_.Z(b.element.properties,Pv5))==null?void 0:t.label)||"",Q.alt=z;Q.className=E.join(" ");E=void 0;k=t=void 0;z=((k=b.element)==null?0:k.type)?(t=_.Z(b.element.type,
g5S))==null?void 0:t.image:void 0;G.push(MD({run:b,textLength:V,tag:"img",image:z,imageConfig:Q,imageWrapperConfig:J,startIndex:b.startIndex,length:(E=b.length)!=null?E:0}))}if(F==null?0:F.headerRuns)for(F=_.u(F.headerRuns),C=F.next();!C.done;C=F.next())if(C=C.value,C.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(C.headerMapping)){a:{switch(C.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}G.push(MD({run:C,textLength:V,tag:"span",config:b?{className:b}:void 0,startIndex:C.startIndex,length:C.length}))}return G};
_.fy=function(C){return(C==null?void 0:C.content)!==void 0};
YNo=function(C){return _.fy(C)?C:_.U9(C)};
TeE=function(C){return C.image!==void 0&&C.imageConfig!==void 0};
o5B=function(C,F){if(F==null?0:F.userInput)for(C=_.u(C),F=C.next();!F.done;F=C.next())if(F=F.value,F.tag!=="a"&&F.tag!=="li"){var G=void 0;(G=F).config||(G.config={});F.config.dir=F.tag==="ul"?_.I8().resolve(_.hC):"auto"}};
rQq=function(C){return function(F){var G=C.run;(G.onTap!==void 0||G.onLongPress!==void 0)&&_.Z(G,GP5)&&eLS(F,{loggingDirectives:_.Z(G,GP5)})}};
Kzw=function(C){return function(F){for(var G in C)(Q3[G]||Q3[DB["default"]])(F,G,C[G])}};
Cos=function(C,F){D9B(F);var G={data:null,start:0,end:C.length,parts:[]};F=_.u(F);for(var V=F.next();!V.done;V=F.next())V=V.value,pKI(G,V.startIndex,V.endIndex,V);m9Z(C,G);return G};
pKI=function(C,F,G,V){for(var J=_.u(C.parts),b=J.next();!b.done;b=J.next()){b=b.value;if(typeof b==="string")throw Error("gh");if(b.start<=F&&G<=b.end){pKI(b,F,G,V);return}}C.parts.push({data:V,parts:[],start:F,end:G})};
m9Z=function(C,F){for(var G=F.parts.length;G>=0;G--){var V=F.parts[G],J=F.parts[G-1],b=G===F.parts.length?F.end:V.start;J=G===0?F.start:J.end;b!==J&&F.parts.splice(G,0,C.slice(J,b));V&&m9Z(C,V)}};
D9B=function(C){C.sort(function(F,G){if(F.startIndex<G.startIndex)return-1;if(G.startIndex<F.startIndex)return 1;F=F.endIndex-F.startIndex;G=G.endIndex-G.startIndex;return F>G?-1:G>F?1:0})};
_.jTW=function(C){var F=C.thumbnails;if(F){C={sources:[]};F=_.u(F);for(var G=F.next();!G.done;G=F.next()){G=G.value;var V={};V.url=G.url;V.width=G.width;V.height=G.height;C.sources.push(V)}return C}};
FIA=function(C,F,G,V){if(!F)return C.length>=1?C[C.length-1]:null;if(V)for(var J=_.u(C),b=J.next();!b.done;b=J.next()){b=b.value;var z=void 0,Q=(z=b.url)==null?void 0:z.indexOf(V);if(Q!==void 0&&Q>=0)return b}V=_.u(C);for(J=V.next();!J.done;J=V.next())if(J=J.value,J.width&&J.height&&(G&&J.width>=F||!G&&J.height>=F))return J;for(F=C.length-1;F>=0;F--)if(G&&C[F].width||!G&&C[F].height)return C[F];return C[0]};
_.Gaq=function(C){var F;return(C=(F=C.sources)==null?void 0:F[0])?C.width/C.height:0};
_.V2Z=function(C){if(C.sources){C=_.u(C.sources);for(var F=C.next();!F.done;F=C.next()){F=F.value;var G=void 0;if((G=F.clientResource)==null?0:G.imageName)return F}}};
izW=function(C){var F;if((F=C.clientResource)!=null&&F.imageColor)return _.lE(C.clientResource.imageColor)};
_.$6S=function(C,F,G,V,J,b,z){if(!F||F.length===0||F[0].clientResource)return null;if(G&&F[0].url)return F[0].url;V===void 0&&(V=!0);if(V){var Q;C=JxE*(J||(C==null?void 0:(Q=C.getBoundingClientRect())==null?void 0:Q.width)||0)}else{var E;C=JxE*(b||(C==null?void 0:(E=C.getBoundingClientRect())==null?void 0:E.height)||0)}F=FIA(F,C,V,z);return(F==null?0:F.url)?F.url:(F==null?0:F.imageData)?F.imageData:null};
bz9=function(C,F,G){G=G?[G]:[];C.opacity&&G.push("opacity: "+C.opacity+";");F&&C.placeholderColor?(C=_.lE(C.placeholderColor),G.push("background-color: "+C+";")):G.push("background-color: transparent;");return G.join(" ")};
n3i=function(C,F,G,V,J){var b=["ytCoreImageHost"];F&&b.push(F);G||b.push("ytCoreImageFillParentHeight");V||b.push("ytCoreImageFillParentWidth");switch(C.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":b.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":b.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":b.push("ytCoreImageContentModeCenter");break;default:b.push("ytCoreImageContentModeScaleToFill")}C.flipForRtlLayout&&b.push("ytCoreImageFlipRtl");
switch(J){case "TOP_START":var z;b.push(((z=document.body)==null?void 0:z.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return b.join(" ")};
zoq=function(C){var F;if(C==null?0:(F=C.clientResource)==null?0:F.imageName){var G;C=(G=C.clientResource)==null?void 0:G.imageName;a:{switch(C){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":G="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":G="yt-logos-ext:yt-logo-updated";break a}G=void 0}return G||urT.get(C)||C}};
E39=function(C){return _.y("mweb_wiz_skip_render")?QTS(C):IlT(C)};
QTS=function(C){return function(F){var G=rtq("wink-root");Dwq();KOo();ymf(G,_.W(C,F))}};
IlT=function(C){var F=F===void 0?!1:F;return function(G){if(!F||!_.y("mweb_skip_keto_to_c3_if_no_data")||G.data!==void 0){var V=tg(!1);try{var J=G.children;_.y("mweb_render_outside_patch_killswitch")||j_?J?zA(_.W(C,G,J)):zA(_.W(C,G)):_.Yw(new _.Ay("ketoToC3 called outside of a patch",{tagName:C.TAG_NAME}))}finally{tg(V)}}}};
WI5=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
alZ=function(C,F){C.onViewportEntered=F;t2S.observe(C)};
kas=function(){var C={rootMargin:"10%",threshold:.01};_.y("mweb_enable_set_io_root_to_null_safari")?C.root=null:_.y("mweb_enable_set_io_root_to_body_safari")&&(C.root=document.body);return new IntersectionObserver(function(F,G){F.filter(function(V){return V.intersectionRect.height>0}).forEach(function(V){V=V.target;
if(!_.y("mweb_enable_only_update_image_when_connected")||V.isConnected!==!1){var J;(J=V.onViewportEntered)==null||J.call(V);G.unobserve(V)}})},C)};
U6w=function(C,F,G,V,J){function b(){if(V){var Q=V.loadedClass,E=V.notifyOnUnloaded;Q&&_.c6(C,Q);E&&C.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function z(){var Q=G(F,C);Q&&C.getAttribute("src")!==Q&&(_.y("mweb_enable_only_update_image_when_connected")&&C.isConnected===!1||Q===C.src||(C.src=Q),b())}
J=J===void 0?!0:J;C.removeAttribute("src");b();F&&(J?alZ(C,z):z())};
Hzs=function(C,F,G){if(!F)return!1;F=G(F,C);G=C.getAttribute("src");return F&&F===G&&C.complete};
llI=function(C,F){for(var G in F)G==="className"?C.className=F[G]:(Q3[G]||Q3[DB.default])(C,G,F[G])};
yxS=function(C,F,G,V){E39(_.AC)({contentMode:F.contentMode,loadedClass:F.loadedClass,isPreloaded:F.isPreloaded,notifyOnLoaded:F.notifyOnLoaded,notifyOnUnloaded:F.notifyOnUnloaded,preferredThumbnail:F.preferredThumbnail,preserveHeight:F.preserveHeight,preserveWidth:F.preserveWidth,objectPosition:F.objectPosition,targetWidth:F.targetWidth,targetHeight:F.targetHeight,shouldShowPlaceholder:F.shouldShowPlaceholder,useWidth:F.useWidth,isToggled:F.isToggled,alt:F.alt,className:F.className,onerror:F.onerror,
onload:F.onload,style$:F.style$,color:F.color,width:F.width,height:F.height,"aria-hidden$":F["aria-hidden$"],draggable:F.draggable,"data-disabled$":F["data-disabled$"],data:C,callback:G,renderLazy:V===void 0?!0:V,hideOn404:!1})};
NL9=function(C,F,G){G=G===void 0?!1:G;var V=C.sources!==void 0?C:_.jTW(C);if(V){var J=F.onload;F.onload=function(E){var t=E.target;G&&t.naturalWidth===120||_.eR(t,"ytCoreImageLoaded");F.notifyOnLoaded&&t.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));J==null||J(E)};
F.targetWidth&&F.preserveWidth&&(F.width=F.targetWidth);F.targetHeight&&F.preserveHeight&&(F.height=F.targetHeight);var b=_.V2Z(V),z=b&&zoq(b);if(z)return(C=izW(b))&&(F.color=C),{type:"icon",iconName:z,config:Object.assign({},F,F.alt?{}:{"aria-hidden$":"true"},{"aria-label$":F.alt,role:"img"})};if(C.sources===void 0){F.alt=C.accessibility&&C.accessibility.accessibilityData&&C.accessibility.accessibilityData.label||F.alt;F.style$=bz9(C,F.shouldShowPlaceholder,F.style$);var Q;F.isPreloaded=!((Q=_.Z(C,
Zzf))==null||!Q.isPreloaded)}F.contentMode&&!V.contentMode&&(V.contentMode=F.contentMode);F.className=n3i(V,F.className,F.preserveHeight,F.preserveWidth,F.objectPosition);F.loadedClass="ytCoreImageLoaded";return{type:"image",image:V,config:F}}};
_.dQ=function(){var C=_.Rn.apply(0,arguments);return _.nc(Ozs,function(F){var G=C.map(function(V){return V==null?void 0:V(F)});
return function(){return void G.forEach(function(V){return void(V==null?void 0:V())})}})};
xe=function(C,F){var G=F==null?void 0:F.initial;return _.w0(function(){_.g0(!0);return G=C(G)},{equals:F==null?void 0:F.isEqual},"rSlKsc")};
Xm9=function(C,F){if(C===F)return!0;if(C===void 0||F===void 0)return!1;var G,V,J,b,z,Q,E,t;return C.content===F.content&&((G=C.styleRuns)==null?void 0:G.length)===((V=F.styleRuns)==null?void 0:V.length)&&((J=C.commandRuns)==null?void 0:J.length)===((b=F.commandRuns)==null?void 0:b.length)&&((z=C.attachmentRuns)==null?void 0:z.length)===((Q=F.attachmentRuns)==null?void 0:Q.length)&&((E=C.decorationRuns)==null?void 0:E.length)===((t=F.decorationRuns)==null?void 0:t.length)};
SP5=function(C,F){if(C){var G=YNo(C);if(G!=null&&G.content)if(_.y("attr_string_reactive"))E39(wmI)({text:C,config:F});else{var V=!(F==null||!F.ariaLabel)||!(G.commandRuns&&G.commandRuns.length!==0||G.paragraphStyleRuns&&G.paragraphStyleRuns.length!==0);C=V?F==null?void 0:F.ariaLabel:null;V=V?"text":null;jBs("span",{className:Lzf(G,F),dir$:(F==null?0:F.userInput)?"auto":void 0,"aria-label$":C,role$:V},function(){if(G.styleRuns||G.commandRuns||G.attachmentRuns||G.decorationRuns||G.paragraphStyleRuns){var J=
RL9(G,F);o5B(J,F);J=Cos(G.content,J);J=_.u(J.parts);for(var b=J.next();!b.done;b=J.next())M2W(b.value)}else V3T(G.content)})}}};
M2W=function(C){typeof C==="string"?V3T(C):TeE(C.data)?jBs("span",C.data.imageWrapperConfig,function(){yxS(C.data.image,C.data.imageConfig)}):jBs(C.data.tag,C.data.config,function(F){rQq(C.data)(F);
F=_.u(C.parts);for(var G=F.next();!G.done;G=F.next())M2W(G.value)})};
BLo=function(C){return C.parts.map(LIw)};
LIw=function(C){if(typeof C==="string")return C;C=TeE(C.data)?_.W("span",{el:_.dQ(Kzw(C.data.imageWrapperConfig))},_.W(_.AC,Object.assign({},{data:C.data.image},C.data.imageConfig))):_.W(C.data.tag,{el:_.dQ(rQq(C.data),Kzw(C.data.config))},C.parts.map(LIw));return M4(C)};
v3s=function(C,F){return C===F?!0:C===void 0||F===void 0?!1:C.noStyleRuns===F.noStyleRuns&&C.noLinkColor===F.noLinkColor&&C.noEndpoints===F.noEndpoints&&C.headerRuns===F.headerRuns&&C.isOverlay===F.isOverlay&&C.linkInheritColor===F.linkInheritColor&&C.userInput===F.userInput&&C.isHeadline===F.isHeadline};
flT=function(C){return function(){var F,G,V,J,b,z,Q,E,t,k,U,H,l,N;return{ariaLabel:(F=C.ariaLabel)==null?void 0:F.call(C),className:(G=C.className)==null?void 0:G.call(C),ellipsisTruncate:(V=C.ellipsisTruncate)==null?void 0:V.call(C),isOverlay:(J=C.isOverlay)==null?void 0:J.call(C),linkInheritColor:(b=C.linkInheritColor)==null?void 0:b.call(C),noEndpoints:(z=C.noEndpoints)==null?void 0:z.call(C),noStyleRuns:(Q=C.noStyleRuns)==null?void 0:Q.call(C),noLinkColor:(E=C.noLinkColor)==null?void 0:E.call(C),
noPreWrap:(t=C.noPreWrap)==null?void 0:t.call(C),noWrap:(k=C.noWrap)==null?void 0:k.call(C),skipOnClick:(U=C.skipOnClick)==null?void 0:U.call(C),userInput:(H=C.userInput)==null?void 0:H.call(C),headerRuns:(l=C.headerRuns)==null?void 0:l.call(C),isHeadline:(N=C.isHeadline)==null?void 0:N.call(C)}}};
cx5=function(C,F){C=new hoE(C,F);_.gD(C);throw C;};
Axq=function(C,F,G){var V=oqA(C);C._numRenders=0;try{var J=_.PCi(function(){return _.W(F,Object.assign({},G))})}catch(z){var b=function(Q){Q.args||(Q.args=[]);
Q.args.push("Error in web component wrapper");Q.args.push(C.tagName.toLowerCase());return Q};
_.R1(z instanceof Error?b(z):new hoE("Wiz rendering error",C.tagName.toLowerCase()));throw z;}finally{oqA(V)}return J};
_.gQ=function(C,F,G){function V(k){var U={};k=_.u(k);for(var H=k.next();!H.done;H=k.next()){H=H.value;var l=void 0,N=void 0,S=void 0,f=_.$6((S=(N=(l=H).getAttribute)==null?void 0:N.call(l,"slot"))!=null?S:"children");if(l=U[f])l.push(H);else if(f in b||f==="children")U[f]=[H]}k=_.u(Object.keys(U));f=k.next();for(H={};!f.done;H={content$jscomp$59:void 0},f=k.next())f=f.value,f!=="children"&&(H.content$jscomp$59=U[f],U[f]=function(c){return function(){return c.content$jscomp$59}}(H));
return U}
G=G===void 0?{}:G;C.componentType!==h2||cx5("Components must be marked reactive to be used from web component wrapper.",F);var J,b=(J=G.props)!=null?J:{};Yz.add(F);var z=eoA();J=function(){var k=z.apply(this,arguments)||this;k.rawProps={};k.queuingRender=!1;k.dispose=function(){};
k.isWebComponentWrapper=!0;k.isReparenting=!1;k.hasRendered=!1;return k};
_.O(J,z);J.prototype.render=function(){this.hasRendered=!0;for(var k=_.u([].concat(_.da(this.attributes))),U=k.next();!U.done;U=k.next())U=U.value,U.name!=="slot"&&U.name!=="hidden"&&this.removeAttribute(U.name);k=Object.assign({},this.componentProps,this.slotProps);U=_.u(Axq(this,C,k));k=U.next().value;U=U.next().value;!(k[0]instanceof Element)||k.length>1?cx5("Wrapped Wiz components must return a single root element.",F):(k=k[0].tagName.toLowerCase(),k!==F&&cx5("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(k+" !== '"+F),F),this.dispose=U)};
J.prototype.setUpProps=function(){for(var k=this.rawProps,U=this.attributes,H=_.u(Object.keys(b)),l=H.next();!l.done;l=H.next()){l=l.value;var N=void 0;((N=this)==null?0:N[l])&&this[l]!==d6I&&k[l]===void 0&&(k[l]=this[l],(N=Object.getOwnPropertyDescriptor(this.constructor.prototype,l))&&Object.defineProperty(this,l,N))}H=_.u(U);for(l=H.next();!l.done;l=H.next()){N=l.value;l=_.$6(N.name);var S=l==="class"&&!U.getNamedItem("class-name");if(l in b||S)N=N.value===""||N.value==="true"?!0:N.value==="false"?
!1:isNaN(Number(N.value))?N.value:Number(N.value),l!=="class"||k.className?k[l]=N:k.className=N}U={};for(var f in b)b[f]!==_.s9&&b[f]!==x6B&&(k[f]instanceof Function&&cx5("Function props must be configured as STATIC, not SIGNAL.",F),l=_.u(_.yH(k[f],void 0,"q4ZVff")),H=l.next().value,l=l.next().value,U[f]=l,k[f]=H);k=_.u([k,U]);this.componentProps=k.next().value;this.setters=k.next().value;this.slotProps=V(this.childNodes)};
J.prototype.connectedCallback=function(){sTE===F&&(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()))};
J.prototype.disconnectedCallback=function(){if(!this._isInert){var k;a:{if(_.qD)for(k=this;k;){if(_.P6.has(k)){k=!0;break a}k=k.parentElement}k=!1}if(k)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){k=_.u([].concat(_.da(this.attributes)));for(var U=k.next();!U.done;U=k.next()){U=U.value;var H=void 0;U.name==="slot"||U.name==="hidden"&&((H=G.unsafeExternallySettableAttributes)==null?0:H.has("hidden"))||this.removeAttribute(U.name)}}this.innerText="";xAs(this)}}};
J.prototype._setPendingPropertyOrPath=function(){};
J.prototype.notifyPath=function(){};
_.I6.Object.defineProperties(J.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var Q=_.u(Object.keys(b)),E=Q.next(),t={};!E.done;t={prop$jscomp$109:void 0},E=Q.next())t.prop$jscomp$109=E.value,E=void 0,((E=G.legacyPolymer)==null?0:E.forwardHostProps)&&eWB.has(t.prop$jscomp$109)||Object.defineProperty(J.prototype,t.prop$jscomp$109,{set:function(k){return function(U){var H=this;this._isInert||(this.setters?M0(function(){var l,N;return void((N=(l=H.setters)[k.prop$jscomp$109])==null?void 0:N.call(l,U))}):(this.rawProps[k.prop$jscomp$109]=U,this.queuingRender&&k.prop$jscomp$109===
"data"&&U!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(t),
get:qPf.has(t.prop$jscomp$109)?void 0:function(){return d6I}});
customElements.define(F,J)};
_.PoS=function(C,F){return(C=_.RP(C,F))?_.eS(_.Ph(C)):null};
_.Ye=function(C){if(C=_.RP(C,Number.MAX_VALUE,void 0,"width"))return _.Ph(C)};
_.RP=function(C,F,G,V){V=V===void 0?"width":V;if(!C||!C.length)return null;if(_.y("kevlar_tuner_should_always_use_device_pixel_ratio")){var J=window.devicePixelRatio;_.y("kevlar_tuner_should_clamp_device_pixel_ratio")?J=Math.min(J,_.a8("kevlar_tuner_clamp_device_pixel_ratio")):_.y("kevlar_tuner_should_use_thumbnail_factor")&&(J=_.a8("kevlar_tuner_thumbnail_factor"));g3q=J}else g3q||(g3q=window.devicePixelRatio);J=g3q;_.y("kevlar_tuner_should_always_use_device_pixel_ratio")?F*=J:J>1&&(F*=J);if(_.y("kevlar_tuner_min_thumbnail_quality"))return C[0].url||
null;J=C.length;if(_.y("kevlar_tuner_max_thumbnail_quality"))return C[J-1].url||null;if(G)for(var b=0;b<J;b++)if(C[b].url.indexOf(G)>=0)return C[b].url||null;for(G=0;G<J;G++)if(C[G][V]>=F)return C[G].url||null;for(F=J-1;F>0;F--)if(C[F][V])return C[F].url||null;return C[0].url||null};
TLB=function(){TS.size?setTimeout(function(){oP(RoW)},0):YP5=0};
RoW=function(){var C=(0,_.Et)(),F=null,G=!1;TS.forEach(function(J){J.loaded=!0;J.loadTime=C;J.pendingPaint=!1;var b=o3E.get(J);b&&b.resolve(C);F=J;G||!J.ftlEligible&&J.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(G=!0)});
var V;((V=F)==null?0:V.markDirty)&&F.markDirty();TS.clear();YP5=0;G&&rxi(C)};
KIA=function(C){TS.add(C);C.pendingPaint=!0;YP5||(YP5=_.rQ(_.gT,TLB))};
D6Z=function(C){C.loaded=!1;C.loadTime=Infinity;var F=o3E.get(C);F&&(F.reject(Error("mh")),o3E.delete(C));C.pendingPaint&&(TS.delete(C),C.pendingPaint=!1)};
_.pmS=function(C){var F=C.indexOf(":");return F===-1?{originalName:C}:{originalName:C.substring(0,F),datasyncId:C.substring(F+1)}};
_.CAE=function(){return _.I(function(C){if(m6B!==void 0)return C.return(m6B);m6B=new Promise(function(F){var G;return _.I(function(V){switch(V.nextAddress){case 1:return _.yy(V,2),V.yield(_.Ky.open("test-only"),4);case 4:return V.yield(_.Ky.delete("test-only"),5);case 5:_.Gn(V,3);break;case 2:if(G=_.wa(V),G instanceof Error&&G.name==="SecurityError")return F(!1),V.return();case 3:F("caches"in window),_.S9(V)}})});
return C.return(m6B)})};
GrA=function(){return _.I(function(C){if(C.nextAddress==1)return C.yield(_.CAE(),2);if(!C.yieldResult)return C.return(void 0);jUq||(jUq=new FGZ);return C.return(jUq)})};
VOI=function(C){var F,G,V,J;return _.I(function(b){switch(b.nextAddress){case 1:return b.yield(GrA(),2);case 2:F=b.yieldResult;if(!F)throw Error("oh");return b.yield(F.open("yt-player-local-img"),3);case 3:return G=b.yieldResult,b.yield(G.match(C),4);case 4:V=b.yieldResult;if(!V)throw Error("ph");return b.yield(V.blob(),5);case 5:return J=b.yieldResult,b.return(J)}})};
ijw=function(C,F){for(var G in C)if(C.hasOwnProperty(G)&&F[G])return G;return null};
JeA=function(C){return"stamp"+C.replace("-","_")+"_"};
$I5=function(C){var F=C.match(/\[\[([\w\.]+)\]\]/);if(F&&F.length>1)return F[1];_.gD(Error("rh`"+C));return null};
bjI=function(C){return C===void 0?_.oD("REUSE_COMPONENTS",!1):C||!1};
zfs=function(C,F,G){G&&(F.is?(noI.has(F)&&(C=noI.get(F),G=C.listener,delete F[C.property],G.type==="element"&&F.removeEventListener(G.eventName,G.handler),noI.delete(F)),ug5(F)):F.__proto__==HTMLElement.prototype&&(F=new _.Ay("Rendererstamper removed a non custom element","Stamper: "+C+" element: "+(F&&F.nodeName)),_.Yw(F)))};
QUo=function(C,F,G,V){var J=F.node?F.node:F;_.ot(G).parentNode===J&&(F.removeChild(G),zfs(C,G,V));if(C=DD.get(G))DD.delete(G),_.gT.cancelJob(C);G.hidden=!1};
IGB=function(C,F,G,V){if(F&&F.children&&(G=F.children[G]))if(_.oD("DEFERRED_DETACH"))for(;G&&!DD.has(G);){var J=C,b=F,z=G,Q=V;z.hidden=!0;J=_.c8(_.gT,QUo.bind(null,J,b,z,Q),0);DD.set(z,J);G=G.nextElementSibling}else for(;(z=F.lastElementChild)&&(F.removeChild(z),zfs(C,z,V),z!=G););};
_.py=function(){for(var C=_.Rn.apply(0,arguments),F=!0,G=_.u(C),V=G.next();!V.done;V=G.next())if(typeof V.value!=="string"){F=!1;break}return F?C.join(" ").trim()||void 0:function(){for(var J="",b=_.u(C),z=b.next();!z.done;z=b.next())if(z=z.value,typeof z==="function"&&(z=z()),z)if(typeof z==="string")J+=" "+z;else for(var Q in z)if(z.hasOwnProperty(Q)){var E=z[Q];typeof E==="function"&&(E=E());E&&(J+=" "+Q)}J=J.trim()||void 0;return _.g0(J)}};
_.Eof=function(C,F){return _.jN(C.entities,"markersEngagementPanelSyncEntity",F)};
_.mr=function(C,F){return _.jN(C.entities,"playerStateEntity",F)};
WGs=function(C,F){return _.jN(C.entities,"fantasyWinProbabilityEntity",F)};
tOo=function(C,F){return _.jN(C.entities,"fantasyTeamEntity",F)};
aGA=function(C,F){return _.jN(C.entities,"fantasyPlayerEntity",F)};
kro=function(C,F){return _.jN(C.entities,"booleanEntity",F)};
UIo=function(C,F){return _.jN(C.entities,"qrCodeEntity",F)};
Hjs=function(C){return _.jN(C.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
yes=function(C){var F;return(F=lGB[C])!=null?F:"EVENT_SPAN_TYPE_UNKNOWN"};
ZjS=function(C){var F=C.nodeName;if(C.id)return F+="#"+C.id;if(C.classList)for(var G=_.u(C.classList),V=G.next();!V.done;V=G.next())F+="."+V.value;C.parentElement&&(F=ZjS(C.parentElement)+" > "+F);return F};
NxZ=function(C){return function(F){var G=yes(F.type);return G==="EVENT_SPAN_TYPE_UNKNOWN"?C(F):X09("event",{type:G,nodepath:F.target instanceof Element?ZjS(F.target):void 0},function(){return C(F)})}};
_.CZ=function(C){C&&ZQ9("event")&&(C=NxZ(C));return k3I(function(F){var G,V=(G=C)==null?void 0:G(F);return typeof V==="boolean"?V:!0})};
jn=function(C){return function(){return C()?C():void 0}};
MOf=function(C){var F=_.Jt("animated-rolling-character"),G=fQS(),V=x6(C.character)||x6(C.previousCharacter),J=_.u(hN9()),b=J.next().value,z=J.next().value;_.q4(function(){if(window.ResizeObserver&&_.y("web_fix_rolling_numbers_zoom_safari")){var Q=new _.FX(function(){var t,k,U=Math.round(((k=(t=F.value.querySelector("div"))==null?void 0:t.getBoundingClientRect().height)!=null?k:0)*100)/100;U&&z(U)},500),E=new ResizeObserver(function(){Q.fire()});
E.observe(F.value);return function(){E.disconnect();Q.dispose()}}});
NzI(function(){var Q=_.y("web_fix_rolling_numbers_zoom_safari")?b:C.marginMultiplier;if(Q){var E;(E=G.value)==null||E.cancel();V?(E=C.previousCharacter?Number(C.previousCharacter)+10:C.rollUp?0:30,C.shouldAnimate||(E-=Ojs(C,E))):(E=C.rollUp?0:2,C.shouldAnimate||(E-=C.rollUp?-1:1));F.value.style.marginTop="-"+E*Q+"px";C.shouldAnimate?G.value=XEE(F.value,C,E,V,Q):F.value.style.display=C.character?"":"none"}});
return _.W("animated-rolling-character",{el:F,class:"animatedRollingCharacterHost"},WpZ(V,function(){for(var Q=[],E=1;E<30;E++)Q.push(_.W("div",null,E%10));return _.W(_.WQ,null,_.W("div",null,"\u00a0"),Q,_.W("div",null,"\u00a0"))},function(){return wE5(C.character)}))};
wE5=function(C){return _.W(_.WQ,null,_.W("div",null,"\u00a0"),_.W(_.WQ,null,WpZ(!C||_.uZ(C),function(){return _.W("div",null,"\u00a0")},function(){return _.W("div",null,C)})),_.W("div",null,"\u00a0"))};
XEE=function(C,F,G,V,J){G=new Animation(new KeyframeEffect(C,[{transform:"translateY(0px)"},{transform:"translateY("+(V?Ojs(F,G):F.rollUp?-1:1)*J+"px)"}],SeA),document.timeline);F.character?(C.style.display="",G.onfinish=null):G.onfinish=function(){C.style.display="none"};
G.play();return G};
Ojs=function(C,F){var G=Number(C.character)+10;if(C.previousCharacter)if(C.character){var V=Number(C.character),J=Number(C.previousCharacter);C=C.rollUp?J<V?G:G+10:J<V?G-10:G}else C=C.rollUp?30:0;else C=C.character==="0"?G:C.rollUp?G-10:G+10;return F-C};
LGA=function(C){return function(F){var G={},V;for(V in F){var J=void 0,b=void 0;((J=void 0)==null?0:(b=J.callbacks)==null?0:b[V])||(G[V]=F[V])}return _.W(qIB,null,function(){for(var z in G)F[z]=_.g0(G[z]);F.disableReactiveLogging=!0;return _.W(C,Object.assign({},F))})}};
fGW=function(C,F,G,V,J,b,z){G=new Animation(new KeyframeEffect(C,[{transform:"translateY(0px)"},{transform:"translateY("+(b?Bxq(F,G,V,J):V?-1:1)*z+"px)"}],voT),document.timeline);F?(C.style.display="",G.onfinish=null):G.onfinish=function(){C.style.display="none"};
G.play();return G};
Bxq=function(C,F,G,V){var J=Number(C)+10;F?C?(C=Number(C),F=Number(F),G=G?F<C?J:J+10:F<C?J-10:J):G=G?30:0:G=C==="0"?J:G?J-10:J+10;return V-G};
ceE=function(C){var F=fQS(),G=fQS();MTZ(function(){F.value=C.numberText;G.value=C.numberValue},[C.numberText]);
var V=C.fontSizeMultiplier?C.heightPx*C.fontSizeMultiplier:C.heightPx,J=v6W(function(){if(C.numberText){var z=C.numberText;var Q=C.forceRollUp||!G.value||!C.numberValue||G.value<C.numberValue;var E=!!C.shouldAnimate,t=F.value,k=[],U=0,H=0,l=(t?t.replace(/\D/g,"").length:0)-(z?z.replace(/\D/g,"").length:0);t=t?t.split(/(\d)/).filter(Boolean):[];for(z=z.split(/(\d)/).filter(Boolean);l<0;){var N=z[H];k.push({character:N,rollUp:Q,marginMultiplier:V,shouldAnimate:E});H++;x6(N)&&l++}for(;U<l;)N=t[U],k.push({previousCharacter:N,
rollUp:Q,marginMultiplier:V,shouldAnimate:E}),U++,x6(N)||l++;for(;H<z.length;)l=z[H],N=t[U],x6(l)===x6(N)?(H++,U++):x6(l)?(U++,l=void 0):x6(N)&&(H++,N=void 0),k.push({character:l,previousCharacter:N,rollUp:Q,marginMultiplier:V,shouldAnimate:E});Q=k}else Q=[];return Q},[C.numberText]),b=C.numberText?["height: "+V+"px;",
"line-height: "+C.heightPx+"px;"].join(" "):"";return _.W("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:b,dir:"ltr","aria-hidden":"true"},J.map(function(z){return _.W(hfw,Object.assign({},z))}))};
Ae9=function(C){switch(C){case 0:return 16/9;case 1:return 2/3;case 2:return.75;case 3:return 1;case 4:return.5625;default:return 0}};
efs=function(C,F){if(!C&&!F)return"medium";C=Math.max(C||0,F||0);return C>=256?"large":C>=96?"medium":"small"};
dIZ=function(C){switch(C){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
xIo=function(C){return new KeyframeEffect(C,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
sUW=function(C){return new KeyframeEffect(C,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.Gb=function(C){if(C.length===0)return Hc9(C,"D");var F=_.u(Hc9({source:function(){return C()},
computation:function(J,b){return(b==null?0:b.value)?C(b.value):J}},"E")),G=F.next().value,V=F.next().value;
F=F.next().value;return[G,V,F]};
_.VA=function(C){return function(){var F="",G;for(G in C){for(var V=C[G];typeof V==="function";)V=V();V!==void 0&&V!==null&&(F+="; "+G+": "+V)}return F.length>0?_.g0(F.slice(2)):_.g0()}};
qef=function(C){switch(C){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"}};
PA5=function(C,F){if(F)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(C)switch(C){case "large":return"yt-spec-touch-feedback-shape--thumbnail-size-large";case "medium":return"yt-spec-touch-feedback-shape--thumbnail-size-medium";default:return"yt-spec-touch-feedback-shape--thumbnail-size-small"}};
ooZ=function(C,F,G,V,J,b,z){var Q=goS(C),E=Q.disabled,t=Q.iconPosition,k=Q.style,U=Q.focused,H=function(){return!!S()&&t()==="icon-only"},l=function(){return!!S()&&t()==="icon-only-40"},N=function(){return!!S()&&t()==="icon-with-label"},S=function(){return!!F||!(V==null||!V())};
return{type:function(){return k()==="call-to-action-inverse"?"text":k()==="overlay-dark"&&C().type!=="filled"&&C().type!=="tonal"?"tonal":C().type},
shouldFocus:function(){return(U()||(b==null?void 0:b()))&&!E()},
hasIconLeading:function(){return!!S()&&t()==="leading"},
hasIconTrailing:function(){return!!S()&&t()==="trailing"},
hasIconLeadingTrailing:function(){return!!S()&&!!(G||J!=null&&J())&&t()==="leading-trailing"},
hasIconOnly:H,hasIconOnly40:l,hasIconWithLabel:N,iconButton:function(){return H()||l()||N()},
visiblyDisabled:function(){return(E()?"disabled":C().state)==="disabled"||E()},
overrideSmallSizeIcon:function(){return!C().ignoreIconSizeOverride&&Rfw(C(),S())},
iconToRender:F?F:function(){return _.W(_.i5,{icon:V,gradientColor:function(){var f;return(f=C().customColors)==null?void 0:f.iconGradientColor},
size:function(){return Yes(C(),!0,C().ignoreIconSizeOverride)},
active:function(){return C().toggled},
iconFilter:function(){return Tx9(C())},
animateIcon:z})},
secondaryIconToRender:G?G:function(){return _.W(_.i5,{icon:J,size:function(){return Yes(C(),!0,C().ignoreIconSizeOverride)},
active:function(){return C().toggled},
iconFilter:function(){return Tx9(C())}})}}};
goS=function(C){return{size:function(){return C().size},
style:function(){return C().style},
focused:function(){return C().focused},
disabled:function(){return C().disabled},
onTap:function(F){var G,V;return(V=(G=C()).onTap)==null?void 0:V.call(G,F)},
alignByText:function(){return C().alignByText},
aTagConfig:function(){return C().aTagConfig},
customColors:function(){return C().customColors},
segmentedPosition:function(){return C().segmentedPosition},
toggled:function(){return C().toggled},
toggleable:function(){return C().toggleable},
accessibilityLabel:function(){return C().accessibilityLabel},
onToggle:function(F){var G,V;return(V=(G=C()).onToggle)==null?void 0:V.call(G,F)},
iconPosition:function(){return C().iconPosition},
oneOffCustomTextWrap:function(){return C().oneOffCustomTextWrap},
disableTextEllipsis:function(){return C().disableTextEllipsis},
disableBackdropFilter:function(){return C().disableBackdropFilter},
tooltipText:function(){return C().tooltipText},
ariaHidden:function(){return C().ariaHidden},
tabIndex:function(){return C().tabIndex},
buttonText:function(){return C().buttonText},
formattedButtonText:function(){return C().formattedButtonText},
animatedTextProps:function(){return C().animatedTextProps},
onClickRateLimitMs:function(){return C().onClickRateLimitMs}}};
Rfw=function(C,F){F=(C.iconPosition==="icon-only"||C.iconPosition==="icon-only-40"||C.iconPosition==="icon-with-label")&&F;return!C.segmentedPosition&&F&&C.size==="S"};
Yes=function(C,F,G){switch(C.size){case "XS":return 16;case "S":return!G&&Rfw(C,F)?24:16;default:return 24}};
reW=function(C){switch(C){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"}};
KG9=function(C){switch(C){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"}};
DIA=function(C){switch(C){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"}};
Tx9=function(C){if(C.style==="overlay-dark"&&C.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
JM=function(C){return C&&C.endsWith("px")?Number(C.slice(0,-2)):0};
C$B=function(C){var F=F===void 0?{}:F;C=_.u(_.Gb(C));var G=C.next().value;return[function(V){var J=_.w0(function(){var Q,E,t,k;return{text:(Q=G())!=null?Q:"",location:(E=F.location)!=null?E:"bottom",offset:(t=F.offset)!=null?t:16,delay:(k=F.delay)!=null?k:1}},void 0,"MgTrkc");
_.sq(function(){var Q=J();_.lb(function(){_.gT.addJob(function(){$J.notify(V,Q)},4)})},"WlsgZc");
var b=function(){pEw(V,J())},z=function(){mIE()};
V.addEventListener("mouseenter",b);V.addEventListener("focus",b);V.addEventListener("mouseleave",z);V.addEventListener("blur",z);V.addEventListener("tap",z);_.q0(function(){V.removeEventListener("mouseenter",b);V.removeEventListener("mouseleave",z);V.removeEventListener("focus",b);V.removeEventListener("blur",z);V.removeEventListener("tap",z);mIE()})},
C.next().value]};
FcE=function(C,F){if(!J2){var G;ZcI(function(){return G=xhE(C,F)});
return G}C.parent=jZT();return xhE(C,F)};
jZT=function(){var C=_.bb(J2||void 0,Am9);return _.UMB(C)?void 0:C};
b5=function(C,F){_.ND(C,Object.assign({},F,{forceClickLogging:!0}))};
VkB=function(C,F){var G=_.ZD(C==null?void 0:C.onTap),V={};G&&(V.getClickedVisualElement=function(){var J;return Gg5(C,G,F==null?void 0:(J=F.value)==null?void 0:J.visualElement)});
V=_.O9({elementsCommand:C.onTap,forceNewState:!0,additionalCommandArgs:V});return X1(V)?V:void 0};
iI9=function(C,F,G,V){b5(C,Object.assign({},{form:{element:F,event:G}},V))};
J_i=function(C,F,G,V,J){var b=void 0;return function(z){var Q=_.ZD(G?C==null?void 0:C.onDisabledTap:C==null?void 0:C.onTap);if(Q){var E;b=(E=b)!=null?E:F==null?void 0:F.value;if(Q)if(_.y("web_button_vm_click_client_ve_killswitch"))iI9(Q,b,z);else{var t;E=Gg5(C,Q,(t=b)==null?void 0:t.visualElement);if(J){iI9(Q,J,z,{clickedVisualElement:E,form:{element:J}});return}iI9(Q,b,z,{clickedVisualElement:E})}}V&&V(z)}};
Gg5=function(C,F,G){F=F==null?void 0:F.clickTrackingParams;var V,J;C=C==null?void 0:(V=C.loggingDirectives)==null?void 0:(J=V.clientVeSpec)==null?void 0:J.uiType;if(G&&C&&!F)return G};
$8Z=function(C){switch(C){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"}};
bIq=function(C){switch(C){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"}};
nMB=function(C){switch(C){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"}};
uRI=function(C){switch(C){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"}};
_.nZ=function(C){return _.w0(function(){rIA()();return pOf(C)},{debugName:"d8B62c"},"DEXkhd")};
zps=function(C,F){return _.jN(C.entities,"engagementToolbarStateEntityPayload",F)};
IVB=function(C){(C=_.zS(C))&&_.QZS(C)};
_.QZS=function(C){var F=_.ZQ();F&&_.h3(F,C)};
EM5=function(C,F,G){_.rz(C,"yt-open-popup-action",[F,G||C])};
WcI=function(C,F){var G=_.gi(C,"endpoint"),V=_.gi(C,"action");return(G=V?V:G)&&F&&(G=F.navigationEndpointPopupMap[G])&&(C=_.mN(G,C),(G=_.gi(C,"renderer"))&&F.supportedPopups.hasOwnProperty(G))?{openPopupAction:{popupType:F.popupTypeMap[G],popup:C}}:null};
tkA=function(C,F,G,V){if(V){var J;G=G==null?void 0:(J=G.data)==null?void 0:J.contents;(J=G instanceof Array&&G.length?G[0]:G)&&(G=_.gi(J,"renderer"))&&V.supportedPopups.hasOwnProperty(G)&&(F.stopPropagation(),EM5(C,{openPopupAction:{popupType:V.popupTypeMap[G],popup:J}}))}};
U8o=function(C,F,G,V){V=V===void 0?!1:V;var J=aV5(F);if(J){J.href&&O6(J.href);var b=F.button;b=b!==void 0?b===0&&!u5(F):!u5(F);J.data&&b&&kgE(C,J,F,G,V)}};
kgE=function(C,F,G,V,J){J=J===void 0?!1:J;var b=_.a8("pbj_navigate_limit",-1)===0;HIW(F);_.I8().resolve(_.Qt(p1));var z=F.data;if(Object.keys(z).length!==0)if(!_.y("unplugged_web_disable_actions_for_cec_endpoint")&&_.Z(z,_.Cl))_.y("endpoint_behavior_command_executor_fix_killswitch")||(G.preventDefault(),G.stopPropagation()),_.pX(C,[z],C);else if(V=WcI(z,V))z.loggingUrls&&z.loggingUrls.forEach(function(E){E.baseUrl&&_.C1(E.baseUrl)}),G.preventDefault(),G.stopPropagation(),EM5(C,V,F);
else{var Q=lVB(0,F.data,G);if(C=F.getForm)C=C(),Q.tempData=Q.tempData||{},Q.tempData=Object.assign({},Q.tempData,C);C=_.AR(G);if(V=C.find(function(E){return!!E.visualElement}))Q.createScreenConfig=Q.createScreenConfig||{},Q.createScreenConfig.clickedVisualElement=V.visualElement;
if(!b)if(G.preventDefault(),G.stopPropagation(),_.Z(z,_.y_I)&&!J&&_.Cy.instance)_.Cy.instance.resolveCommand(z,Q);else if(_.y("kevlar_command_handler_formatted_string")&&!J&&_.Cy.instance&&ZIo(z))J=C.find(function(E){return!!E.is})||G.target,G={form:Object.assign({},Q,{event:G,
element:J,originatingNode:F})},_.Cy.instance.resolveCommand(z,G);else{z=_.AR(G);G=[];for(J=0;J<z.length;J++)(b=z[J].is)&&G.push(b);jyE({parents:G.join(","),text:F.innerText},function(){_.oo(F,"yt-navigate",Q)})}}};
NyA=function(C){if(C=aV5(C))HIW(C),jh5(C.href)};
aV5=function(C){C=_.AR(C);for(var F,G=0;G<C.length;G++)if(F=C[G],F.tagName==="A"&&F.classList.contains("yt-simple-endpoint")){if(!F.data)break;return F}return null};
u5=function(C){return C.shiftKey||C.altKey||C.metaKey||C.ctrlKey};
OIT=function(C,F){var G={itct:F.clickTrackingParams};_.y("kevlar_client_side_screens")&&(!_.Z(F,_.nd)||_.y("kevlar_exclude_endpoint_killswitch"))&&(G.endpoint=JSON.stringify(F));_.y("enable_unknown_lact_fix_on_html5")&&_.I8().resolve(_.Qt(_.zb))&&(G.lact=_.I1());pIi(G);_.qU(C,G)};
HIW=function(C){C.href&&Object.keys(C.data).length!==0&&OIT(C.href,C.data)};
ZIo=function(C){for(var F=_.u(X7W),G=F.next();!G.done;G=F.next())if(C[G.value])return!1;return!0};
w7I=function(){if(QA)return QA;if(window.lottie)return QA=Promise.resolve(window.lottie);var C=_.Ra(_.TF("LOTTIE_URL"));return C?QA=new Promise(function(F,G){var V=document.createElement("script");V.addEventListener("load",function(){F(lottie)});
V.addEventListener("error",function(J){var b="Lottie library failed to load.";J?J.message&&(b+=" Original description: "+J.message,_.Tf(J,b)):J=Error(b);_.Yw(J);G(J)});
V.setAttribute("async","");_.JW(V,C);document.head.appendChild(V)}):Promise.reject(Error("sh"))};
Mk5=function(){return QA?QA:w7I()};
SSS=function(C){if(C)switch(C){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.y("kevlar_use_wil_icons"))return C=(C=Hjs(_.s3().getState()))&&C.animationLightUrl&&C.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:C.animationLightUrl,pathDarkTheme:C.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,C?C:Ie.get("LIKE");break;case "LIKE_DELHI_PLAYER":return Ie.get("LIKE_DELHI_PLAYER")}};
Lc9=function(C){var F=SSS(C);if(F)return F;switch(C){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return Ie.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return Ie.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return Ie.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return Ie.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return Ie.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return Ie.get("NOTIFICATION_BELL")}};
Bys=function(C,F){if(!C.closest)return!1;F=!!SSS(F);return _.TF("ID_TOKEN")&&F?!!C.closest("segmented-like-dislike-button-view-model")||!!C.closest("yt-player-quick-action-buttons"):!1};
fV5=function(C,F){if(!C||vMW)F=!1;else{var G;if(!(G=Bys(C,F)))if(C.closest)if(G=!_.TF("ID_TOKEN"),C=C.closest("ytd-subscription-notification-toggle-button-renderer-next"),G||!C)G=!1;else{var V;G=((V=C.data)==null?void 0:V.targetId)==="notification-bell"&&F!=="EXPAND_MORE"}else G=!1;F=G}return F};
hpW=function(C){var F,G;return _.I(function(V){switch(V.nextAddress){case 1:return _.yy(V,2),V.yield(fetch(C),4);case 4:return F=V.yieldResult,V.yield(F.json(),5);case 5:return V.return(V.yieldResult);case 2:G=_.wa(V),_.Yw(G),_.S9(V)}})};
c_o=function(C,F){var G,V,J;return _.I(function(b){if(b.nextAddress==1)return(G=F?C.pathDarkTheme:C.path)?b.yield(Promise.all([hpW(G),w7I()]),2):b.return();V=b.yieldResult;J=V[0];E4.set(G,J);_.S9(b)})};
epo=function(C,F,G,V){function J(z,Q){if(F.value===Q&&!F.cancelled&&C!=null&&C.value){for(;C.value.firstChild;)C.value.removeChild(C.value.firstChild);C.value.classList.add("ytSpecIconShapeHost");z(C.value,V)}}
var b=_.A_I(_.I8().resolve(_.mm),G);typeof b==="function"?(F.value=null,J(b,null)):(F.value=b,b.then(function(z){J(z,b)}))};
x8T=function(C,F){var G=document.createElement("div"),V=_.xn(G,function(){return _.W(_.a,{cond:C,then:function(J){return _.W(d8s,{data:J,options:F})}})},"ba");
return[G,V]};
_.WB=function(C,F){if(F){var G={};sZZ.forEach(function(V){V=qSB(F,V,"--yt-lightsource-");Object.assign(G,V)});
P$w.forEach(function(V){V=qSB(F,V,"--yt-basic-");Object.assign(G,V)});
_.jr(C,G)}};
qSB=function(C,F,G){var V={};V[G+_.Jr(F)]=C&&C[F]?_.lE(C[F]):"";return V};
_.ae=function(C,F,G){tM[C]||(tM[C]={});tM[C][F]=G};
_.kJ=function(C){tM[C]||(tM[C]={});return tM[C]};
gMZ=function(C){if(!C)return{};var F=C.foregroundTitleColor,G=C.backgroundColor;C=C.borderColor;var V="text";C?V="outline":G&&(V="filled");return{type:V,customColors:{color:F?_.lE(F):void 0,backgroundColor:G?_.lE(G):void 0,borderColor:C?_.lE(C):void 0}}};
r_T=function(C){var F=C.renderer;var G=C.element;var V=C.commandController;var J=C.onTapCallback;var b=C.skipCommandHandling;var z=C.overrides;var Q=C.forceIcon;var E=C.forceModernIconButton;var t=C.forceDisabled;var k=C.isSubscribe===void 0?!1:C.isSubscribe;var U=C.isPressed===void 0?!1:C.isPressed;var H=C.useButtonSize===void 0?!1:C.useButtonSize;C=Rpq(F);k&&(C.style="mono",C.type="filled");Q=!F.icon||!Q&&F.text?F.icon?F.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:E?"icon-only":"icon-only-40";Q==="icon-only-40"&&(C.type="text");var l;E=Object;k=E.assign;H=YSE(F,H);U=!!F.isSelected||!_.y("web_propagate_is_pressed_killswitch")&&!!U;var N=F.isSelected!==void 0;t=t===void 0?F.isDisabled:t;var S=F.text?_.U9(F.text):void 0;var f,c,A,T=((f=F.accessibilityData)==null?void 0:(c=f.accessibilityData)==null?void 0:c.label)||((A=F.accessibility)==null?void 0:A.label);f=T?T:_.dd(F.text);G=TyB(F,G,V,J,b);V=oMS(F);V!=null&&V.length?(V=_.O9({innertubeCommand:kPI(V),
forceNewState:!0}),V=X1(V)?V:void 0):V=void 0;return k.call(E,{},C,H,{iconPosition:Q},z,{focused:!1,toggled:U,toggleable:N,disabled:t,formattedButtonText:S,accessibilityLabel:f,onTap:G,aTagConfig:V},gMZ((l=F.colorData)==null?void 0:l.basicColorPaletteData),{oneOffCustomTextWrap:F.oneOffCustomTextWrap})};
TyB=function(C,F,G,V,J){return function(b){var z=oMS(C);V(z,b);if(!J){z=_.u(z);for(var Q=z.next();!Q.done;Q=z.next())b5(Q.value,{form:{element:F,event:b},commandController:G})}}};
oMS=function(C){var F=[];C.command&&F.push(C.command);C.serviceEndpoint&&F.push(C.serviceEndpoint);C.navigationEndpoint&&F.push(C.navigationEndpoint);return F};
YSE=function(C,F){if(F)switch(C.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(C.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
Rpq=function(C){switch(C.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_CALL_TO_ACTION_TONAL":return{style:"call-to-action",type:"tonal",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",
type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",
type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",
type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
KcS=function(C,F){return typeof C!=="object"||C===null?!1:Object.keys(F).every(function(G){return G in C})};
_.U4=function(C){return Object.fromEntries(Object.keys(C).map(function(F){return[F,F]}))};
D8i=function(C,F,G){return jYA(G,function(V,J){return function(b){var z=_.Rn.apply(1,arguments);return KcS(b,C)?J.apply(null,[b[F]].concat(_.da(z))):J.apply(null,[b].concat(_.da(z)))}})};
_.HB=function(C){return function(F,G){return D8i(C,F,G)}};
p7i=function(C,F){var G;return(G=_.jN(C,"playlistLoopStateEntity",F))!=null?G:void 0};
m89=function(C,F){var G;return(G=_.jN(C,"toggleMenuServiceItemEntity",F))!=null?G:void 0};
_.l5=function(C){return C!=null&&C.watch?C.watch.isTheaterMode:!1};
_.yA=function(C){return C!=null&&C.watch?C.watch.isWatchFullscreen:!1};
_.ZH=function(C){if(_.C3I(C))return!0;C=_.jKA(C);return _.y("web_watch_enable_single_column_grid_view")?C:!1};
_.C3I=function(C){return C.watch.isSwatcherooActive};
_.jKA=function(C){return C.watch.isWatchNarrowWidth};
_.FLq=function(C){return C.watch.openEngagementPanels};
NG=function(C,F){return _.jN(C.entities,"likeStatusEntity",F)};
G9B=function(C,F){return _.jN(C.entities,"likeCountEntity",F)};
_.Vsw=function(C,F){return _.jN(C.entities,"stringEntity",F)};
iiZ=function(C,F){return _.jN(C.entities,"dataFreshnessEntity",F)};
JU5=function(C,F){if(!C)return!1;var G,V=(G=_.Z(C,_.FI))==null?void 0:G.signal;if(V&&F.signalEndpointMap)return!!F.signalEndpointMap[V];var J;if((G=(J=_.Z(C,_.O4))==null?void 0:J.request)&&F.continuationEndpointMap)return!!F.continuationEndpointMap[G];for(var b in C)if(F.commandEndpointMap[b])return!0;return!1};
$gw=function(C,F){if(F.streamingEndpointMap)for(var G in C)if(F.streamingEndpointMap[G]&&(C=F.streamingEndpointMap[G]))return C()};
biq=function(C,F){var G,V=(G=_.Z(C,_.FI))==null?void 0:G.signal;if(V&&F.signalEndpointMap&&(G=F.signalEndpointMap[V]))return G();var J;if((G=(J=_.Z(C,_.O4))==null?void 0:J.request)&&F.continuationEndpointMap&&(J=F.continuationEndpointMap[G]))return J();for(var b in C)if(F.commandEndpointMap[b]&&(C=F.commandEndpointMap[b]))return C()};
nAZ=function(C){var F={"Content-Type":"application/json"};_.TF("EOM_VISITOR_DATA")?F["X-Goog-EOM-Visitor-Id"]=_.TF("EOM_VISITOR_DATA"):_.TF("VISITOR_DATA")&&(F["X-Goog-Visitor-Id"]=_.TF("VISITOR_DATA"));F["X-Youtube-Bootstrap-Logged-In"]=_.TF("LOGGED_IN",!1);_.TF("DEBUG_SETTINGS_METADATA")&&(F["X-Debug-Settings-Metadata"]=_.TF("DEBUG_SETTINGS_METADATA"));if(C!=="cors"){var G=_.TF("INNERTUBE_CONTEXT_CLIENT_NAME");G&&(F["X-Youtube-Client-Name"]=G);(G=_.TF("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(F["X-Youtube-Client-Version"]=
G);(G=_.TF("CHROME_CONNECTED_HEADER"))&&(F["X-Youtube-Chrome-Connected"]=G);(G=_.TF("DOMAIN_ADMIN_STATE"))&&(F["X-Youtube-Domain-Admin-State"]=G)}_.oD("SEND_LAVA_HEADER_UNCONDITIONALLY",!1)?(C=_.TF("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(F["X-YouTube-Lava-Device-Context"]=C):C!=="cors"&&_.oD("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(C=_.TF("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(F["X-YouTube-Lava-Device-Context"]=C);return F};
uOi=function(C,F){F.watchNextResponse||F.reelItemWatchResponse?F.watchNextResponse?C.content=F.watchNextResponse:C.content=F.reelItemWatchResponse:F.playerResponse?C.player=F.playerResponse:F.reelWatchSequenceResponse&&(C.reelSequence=F.reelWatchSequenceResponse)};
XX=function(C){return function(){return new C}};
wE=function(C){var F=_.I8();return function(){return F.resolve(C)}};
_.MG=function(C){if(!C)return null;for(var F=[],G=0;G<C.textSegments.length;G++){var V=C.textSegments[G];V.text?F.push(V):V.emojiId&&F.push({emoji_id:V.emojiId})}return{text_segments:F}};
WLI=function(C,F,G,V,J,b,z){b=b===void 0?[]:b;var Q=new _.Sn;Q.endpoint=G;if(!G)return _.R1(new _.Ay("handle undefined endpoint",F.tagName)),Q;var E=uNE(G);E.length&&(_.pX(C,E,F,V),Q.actions=E);G.loggingUrls&&G.loggingUrls.forEach(function(k){k.baseUrl&&jQ(k.baseUrl,k.attributionSrcMode)});
E=!_.y("web_skip_impression_click_killswitch")&&V&&V.impression;if(G.clickTrackingParams&&!zMi(G)&&!QKZ(F)&&!E&&(E=_.ia(),!_.LZ(E,F))){var t=F.getScreenLayer&&F.getScreenLayer();t?E.clickCommand(G,null,t):E.clickCommand(G,null)}E=!1;for(t=0;t<b.length;t++)if((0,b[t])(F,G,V)){E=!0;break}!E&&IyB(G)&&(Q.ajaxPromise=EAw(C,F,G,V,J,z));return Q};
QKZ=function(C){var F;return(C=(F=C.data)==null?void 0:F.navigationEndpoint)&&!!C.clickTrackingParams};
zMi=function(C){var F=_.Z(C,_.FI);if(F&&(F=F.signal)&&ts5.indexOf(F)>=0)return!0;for(var G in C)if(ayo.indexOf(G)>=0)return!0;return!1};
IyB=function(C){var F;if(((F=_.Z(C,_.FI))==null?void 0:F.signal)==="CLIENT_SIGNAL")return!1;for(var G in C)if(k9s.indexOf(G)>=0)return!1;C=Object.keys(C);return C.length===1&&C[0]==="loggingUrls"?!1:!0};
X5S=function(C,F,G,V,J,b,z){var Q=_.BB.instance;if(Q&&_.vB(Q,V))var E=_.fZ(Q,V,J).then(function(k){return(k==null?0:k.data)?k:{data:k}});
else E=C.requestDataForServiceEndpoint(V,J),_.Z(V,Ugi)||_.Z(V,HiB)||_.Z(V,_.lyi)||_.Z(V,yUE)||_.Yw(new _.Ay("No RequestBuilder for endpoint",V));var t=_.hM();t.promise.thenCatch(function(){var k=_.gi(V,"action")||_.gi(V,"command")||_.gi(V,"endpoint");k&&(k=V[k],k.hasOwnProperty("onFailureAction")?_.pX(F,[k.onFailureAction],G):k.hasOwnProperty("onFailureCommand")&&_.pX(F,k.onFailureCommand,G));E.cancel("Resolver promise rejected")});
E.then(function(k){if(k){var U=k.error;if(U){if(b&&b.onServerError)b.onServerError(V,k);t.reject(new _.Ay("Response error",V,U))}else if(k=k.data)if(U=k.error){if(b&&b.onServerError)b.onServerError(V,k);t.reject(new _.Ay("Returned error",V,U))}else{ZiZ(F,G,k,V);Nuw(k);if(U=nbZ(k))for(var H=_.u(U),l=H.next();!l.done;l=H.next()){l=l.value;var N=_.I8().resolve(_.Qt(OiZ))||cB;if(!_.BB.instance||!N.some(function(f){return!!_.Z(V,f)})||_.y("kevlar_response_processor_allowlist_killswitch")){var S=N=void 0;
((S=_.Z((N=l)==null?void 0:N.commandMetadata,_.GU))==null?0:S.sendPost)?_.DQ(F,[l]):_.pX(F,[l],G)}}(H=_.Z(k==null?void 0:k.frameworkUpdates,AM))&&z&&z(H);if(b&&b.onSuccess)b.onSuccess(V,k);t.resolve(new _.en(k,U))}}else t.reject(new _.Ay("Invalid service endpoint provided",V))},function(k){t.reject(k)});
return t.promise};
Nuw=function(C){var F;(C=(F=_.Z(C==null?void 0:C.onResponseReceivedCommand,_.w5W))==null?void 0:F.continuationItems)&&(C==null?void 0:C.length)===1&&_.Z(C[0],Msw)&&_.NV("so_r",void 0,"search_overview_answer")};
EAw=function(C,F,G,V,J,b){var z;return(z=F.getNetworkManager&&F.getNetworkManager()?F.getNetworkManager():_.I8().resolve(_.Qt(_.zt)))?X5S(z,C,F,G,V,J,b):_.W6("No network manager.")};
ZiZ=function(C,F,G,V){if(G=G.trackingParams||G.loggingDirectives&&G.loggingDirectives.trackingParams){var J;(_.Z(V,SFA)||_.Z(V,LLi)||_.Z(V,BuT))&&V.clickTrackingParams?J=_.zS(V.clickTrackingParams):_.y("web_graft_to_parent_command")&&V.clickTrackingParams&&(J=_.zS(V.clickTrackingParams));var b;V=(b=F.getScreenLayer)==null?void 0:b.call(F);F=_.ia().graftServerVe(G,J,V);_.KX(C,"yt-store-grafted-ve-action",[F])}};
_.vAT=function(C){var F=new Image;return new _.N1(function(G,V){F.addEventListener("load",function(){G()});
F.addEventListener("error",function(){V()});
F.src=C})};
fyq=function(C){return!!C};
hMf=function(C){return!!C};
cUE=function(C,F,G){var V=C.rowIndex;V!==void 0&&_.KX(C.hostElement,"yt-section-reactive-dismissal",[V,F,G])};
_.dE=function(C,F,G){C=_.u(C);for(var V=C.next();!V.done;V=C.next()){V=V.value;if(V===F)break;for(var J=_.u(G),b=J.next();!b.done;b=J.next())if(b=b.value,V.tagName===b||!_.y("web_event_button_role_check_killswitch")&&V.role==="button"&&b==="BUTTON")return!0}return!1};
_.s4=function(C,F,G){C=_.u(C);for(var V=C.next();!V.done;V=C.next()){V=V.value;if(V===F)break;for(var J=_.u(G),b=J.next();!b.done;b=J.next())if(V.id===b.value)return!0}return!1};
_.gE=function(){var C=_.I8().resolve(_.Qt(_.qG));return C?(C=C.getCurrentPage())?_.PB(C):null:null};
_.Re=function(){var C=_.gE();if(!C){var F=_.I8().resolve(_.Qt(_.qG)),G=F?typeof F:"no page manager";F=F?F.getCurrentPage():null;G=new _.Ay("Player is missing when requested.",G,F?F.tagName:"no page");_.gD(G)}return C};
_.PB=function(C){return C&&C.getPlayer?C.getPlayer():null};
AUi=function(C,F){C={args:{raw_player_response:C}};F&&(C.args=Object.assign({},C.args,F));return C};
eMI=function(C){if(C.args){if(C.args.raw_player_response)return C.args.raw_player_response;if(C.args.player_response)return JSON.parse(C.args.player_response)}};
_.dgB=function(C,F){var G={url:"/watch?v="+C.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};C.playlistId&&(G.url+="&list="+C.playlistId);C.playerParams&&(G.url+="&pp="+C.playerParams);C={watchEndpoint:C,commandMetadata:{webCommandMetadata:G}};F&&(C.clickTrackingParams=F);return C};
sKs=function(){return xgo||!!_.mN("yt.player.Application")};
P3A=function(){return qFf||!!document.querySelector("link#player-css")};
RME=function(){function C(){xgo=!0;gAf.resolve()}
var F,G;return _.I(function(V){gAf||(gAf=new _.Cd,sKs()?C():(F=document.createElement("script"),F.addEventListener("load",C),G=_.eo(_.TF("PLAYER_JS_URL")),_.JW(F,G),document.head.appendChild(F)));return V.return(gAf.promise)})};
TuA=function(){function C(){qFf=!0;YFq.resolve()}
if(!YFq)if(YFq=new _.Cd,P3A())C();else{var F=document.createElement("link");F.id="player-css";F.addEventListener("load",C);var G=_.eo(_.TF("PLAYER_CSS_URL"));_.nv(F,G,"stylesheet");document.head.appendChild(F)}return YFq.promise};
oA9=function(){return sKs()&&P3A()?Promise.resolve([]):Promise.all([RME(),TuA()])};
rUZ=function(C,F,G){var V={args:{}};C&&(V.args.raw_player_response=C);F&&(V.args.raw_watch_next_response=F);G&&(V.args=Object.assign({},V.args,G));return V};
mgS=function(C,F,G){var V=!1;V=V===void 0?!0:V;C=typeof C==="string"?_.YJ(document,C):C;var J=KLo+"_"+_.rI(C),b=Dgw[J];if(b&&V)return p5B(F,G)?b.api.loadVideoByPlayerVars(F.args||null):b.loadNewVideoConfig(F),b.api;b=new Tb(C,J,F,G,void 0);Dgw[J]=b;b.addOnDisposeCallback(function(){delete Dgw[b.getId()]});
return b.api};
p5B=function(C,F){return F&&F.serializedExperimentFlags?F.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):C&&C.args&&C.args.fflags?C.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
CtT=function(){var C=new _.Cd;C.resolved=!1;var F=C.resolve;C.resolve=function(G){C.resolved=!0;F(G)};
return C};
FKw=function(C){var F={};jbi().install((F.document_disposed={callback:C},F))};
oe=function(C,F){if(!C&&Math.random()<=_.a8("kevlar_unified_player_logging_threshold")){C=Error("uh`"+(F?F:"Unspecified error"));if(_.y("kevlar_unified_player_throw_errors"))throw C;_.Yw(C)}};
_.G0T=function(){var C=_.mN("ytDebugData.callbacks");C||(C={},_.zn("ytDebugData.callbacks",C));return C};
iNZ=function(C,F){var G=_.G0T();if(_.y("web_dd_iu")||VaZ.includes(C))G[C]=F};
JNZ=function(){return _.I(function(C){return C.return({isLeader:_.PcI(_.s3().getState()),c:_.TF("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.TF("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
$Fi=function(){var C;_.I(function(F){if(F.nextAddress==1)return iNZ("APP_STATE",JNZ),F.yield(_.I8().resolve(_.rE),2);C=F.yieldResult;iNZ("PI",function(){return _.I(function(G){return G.return(C.getVideoStats())})});
_.S9(F)})};
bNq=function(C){return!!C&&C.length>0&&C[0].loggingUrls!=null&&C[0].loggingUrls.length>0};
nuA=function(){var C=_.TF("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(C==null?void 0:C.length)===2?C[1]:null};
u8E=function(C){if(!C)return[];var F=[];C=_.u(C);for(var G=C.next();!G.done;G=C.next())if(G=G.value,G.loggingUrls){G=_.u(G.loggingUrls);for(var V=G.next();!V.done;V=G.next())V=V.value,V.baseUrl&&F.push(V.baseUrl)}return F};
zzs=function(C){var F=_.s5(_.v9(_.VT.location.href));C=_.s5(_.v9(C));return _.y("kevlar_clear_non_displayable_url_params")?F==KZ(C):KZ(F)==KZ(C)};
KZ=function(C){var F=_.QbB(C);C=C.slice(0);var G=["frags"];_.y("kevlar_hide_pp_url_param")&&G.push("pp");_.y("kevlar_hide_time_continue_url_param")&&G.push("time_continue");G=_.u(G);for(var V=G.next();!V.done;V=G.next())V=V.value,C=_.P9(_.s5(C),V);return _.s5(C)+(F?"#"+F:"")};
DH=function(C,F){F=Number(F)*1E3;var G=Math.round((0,_.Et)()),V=G.toString();C={innertubeResponse:C,serverDateTimestampMs:V,lastModifiedTimestampMs:V,expireTimestampMs:(G+F).toString()};if(F=_.TF("INNERTUBE_CONTEXT_CLIENT_NAME"))C.clientName=F;return C};
Eu9=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++I_B};
WKB=function(C){return!isNaN(C)&&C>0};
a_T=function(){_.y("web_adaptive_repeat_ase")&&taw&&_.q1("applicationStarted",taw)};
_.k0T=function(){var C=_.lm(),F=_.ZQ();F&&C&&_.A3(F,[C],!0)};
HNo=function(C){return C&&UFS.some(function(F){return C.includes(F)})};
Xtq=function(C){var F=_.Z(C,_.jW);if(!F)return!1;var G=F.url,V=F.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!G)return _.gD(Error("zh")),!1;if(F.target==="TARGET_NEW_WINDOW"){F={};_.y("resolve_url_parent_tracking_params")&&(!_.bH(G)||nD(window.location.href,G))&&(F={endpoint:C,itct:C.clickTrackingParams});pIi(F);C=null;try{if(V){a:{var J=G,b=F;V=V===void 0?!1:V;b&&_.qU(J,b);var z=_.Ph(J),Q=_.eS(z);J!=Q&&_.CD(Error("Zf`"+J));J=Q;try{if(V){Q=J;Q=RGq(Q);O6(Q);C=_.Cv(window,Q,"_blank",
"attributionsrc");break a}}catch(H){_.ri(H)}O6(J);C=_.Cv(window,z,"_blank")}l_o(_.I8().resolve(yNq),C,G);return!0}}catch(H){_.gD(H)}_.qU(G,F);F={target:"_blank",noopener:!1};z=window;Q=Az(G)?G:_.Ph(typeof G.href!="undefined"?G.href:String(G));V=self.crossOriginIsolated!==void 0;C="strict-origin-when-cross-origin";window.Request&&(C=(new Request("/")).referrerPolicy);J=F.noreferrer;if(V&&J&&C==="unsafe-url")throw Error("we");C=J&&!V;J=F.target||G.target;b=[];var E=[],t=!1;for(U in F){var k=F[U];switch(U){case "width":case "height":case "top":case "left":b.push(U+
"="+k);break;case "target":break;case "noopener":case "noreferrer":k?E.push(U):(t=!0,E.push(U+"=false"));break;case "attributionsrc":b.push(U+(k?"="+k:""));break;default:b.push(U+"="+(k?1:0))}}var U=J!==void 0&&!["_blank","_self","_top","_parent",""].includes(J);U=wI()&&U;ZNq&&V&&b.length===0&&E.length>0&&!U&&!t?(E.length===2&&(E=["noreferrer"]),_.Cv(z,Q,J,E[0]),C=NrS()):(U=b.join(","),_.vo()&&z.navigator&&z.navigator.standalone&&J&&J!="_self"?(U=_.Md("A"),TB(U,Q),U.target=J,C&&(U.rel="noreferrer"),
((F=F.attributionsrc)||F==="")&&U.setAttribute("attributionsrc",F),F=document.createEvent("MouseEvent"),F.initMouseEvent("click",!0,!0,z,1),U.dispatchEvent(F),U=NrS()):C?(U=_.Cv(z,"",J,U),z=_.eS(Q),U&&(U.opener=null,z===""&&(z="javascript:''"),z='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+pZ(z)+'">',z=D0(z),(F=U.document)&&F.write&&(F.write(pT(z)),F.close()))):((U=_.Cv(z,Q,J,U))&&F.noopener&&(U.opener=null),U&&F.noreferrer&&(U.opener=null)),C=U);l_o(_.I8().resolve(yNq),
C,G);return!0}U=_.X$(G);U=HNo(U)||G==="https://studio.youtube.com/";if(_.bH(G)&&!nD(window.location.href,G)||U)O6(G),kB(),_.Xp(G,void 0,void 0,window.top,ONq);else return _.Yw(new _.Ay("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",C)),!1;return!0};
_.SyI=function(C,F){F=F===void 0?0:F;if(!(_.Z(C,wtE)||_.Z(C,MaB)||_.Z(C,_.jW)&&_.Z(C,_.jW).url))return!1;var G,V=(G=_.Z(C,_.jW))==null?void 0:G.url;G=V?{externalLinkData:{url:V}}:null;return _.ia().clickCommand(C,G,F)};
BrS=function(C,F,G,V,J){J=J===void 0?{}:J;return function(b){var z,Q;var E=((z=C.loggingDirectives)==null?0:(Q=z.clientVeSpec)==null?0:Q.uiType)?_.m2(C.loggingDirectives.clientVeSpec.uiType):void 0;J.clickedVisualElement||(J.clickedVisualElement=E);E=LKq(C,F);G(E,b);E=_.u(E);for(z=E.next();!z.done;z=E.next()){z=z.value;Q=V;var t=b,k=J;k.form?k.form.event=t:k.form={element:Q,event:t};b5(z,k)}}};
LKq=function(C,F){var G=[];F?(C.toggledCommand&&G.push(C.toggledCommand),C.toggledServiceEndpoint&&G.push(C.toggledServiceEndpoint)):(C.defaultCommand&&G.push(C.defaultCommand),C.defaultServiceEndpoint&&G.push(C.defaultServiceEndpoint),C.defaultNavigationEndpoint&&G.push(C.defaultNavigationEndpoint));return G};
vu5=function(C,F){var G=C.toggledStyle||C.style,V;switch((V=F?G:C.style)==null?void 0:V.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"}}};
_.CY=function(){return _.I(function(C){return C.nextAddress==1?C.yield(_.I8().resolve(_.rE),2):C.return(_.I8().resolve(f_Z)())})};
_.jV=function(){return _.I8().resolve(f_Z)()};
_.FN=function(){return PQ(function(){return{lottieEl:void 0}})};
hzT=function(C,F){return C.startsWith(F.uniqueId)};
cNE=function(C){var F,G;_.I(function(V){if(V.nextAddress==1)return V.yield(_.CY(),2);F=V.yieldResult;if((G=F)==null||!G.addEventListener)return G3(),V.return();F.addEventListener("onCueRangeEnter",C);_.S9(V)})};
ANw=function(C){var F,G;_.I(function(V){if(V.nextAddress==1)return V.yield(_.CY(),2);F=V.yieldResult;if((G=F)==null||!G.removeEventListener)return G3(),V.return();F.removeEventListener("onCueRangeEnter",C);_.S9(V)})};
ezB=function(C){var F,G,V,J,b;_.I(function(z){if(z.nextAddress==1)return z.yield(_.CY(),2);F=z.yieldResult;if((G=F)==null||!G.addCueRange)return G3(),z.return();V=_.u(C.timings);for(J=V.next();!J.done;J=V.next())b=J.value,F.addCueRange(C.uniqueId+"-"+b,b/1E3,(b+100)/1E3);_.S9(z)})};
dFT=function(C){var F,G,V,J,b;_.I(function(z){if(z.nextAddress==1)return z.yield(_.CY(),2);F=z.yieldResult;if((G=F)==null||!G.removeCueRange)return G3(),z.return();V=_.u(C.timings);for(J=V.next();!J.done;J=V.next())b=J.value,F.removeCueRange(C.uniqueId+"-"+b);_.S9(z)})};
xFZ=function(){var C,F,G;return _.I(function(V){if(V.nextAddress==1)return V.yield(_.CY(),2);C=V.yieldResult;if((F=C)==null||!F.getPlayerState)return G3(),V.return();G=C.getPlayerState();return V.return(G===2)})};
G3=function(){_.Yw(new _.Ay("Smartimation player does not exist or is corrupted"))};
sbI=function(){try{var C;return(C=window.CSS)!=null&&C.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(F){return _.Yw(new _.Ay("Smartimation CSS.supports threw an error")),!1}};
oui=function(C,F,G,V,J){var b=C.playlistId?qyT:PtW;F=F();G=G();J=!!C.videoId&&J()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.uK(F))return guw({data:C,actionType:b,disabled:J},G);if(C.videoId&&V())return RzB({data:C,actionType:b,disabled:J});switch(F){case "TRANSFER_STATE_UNKNOWN":return RzB({data:C,actionType:b,disabled:J});case "TRANSFER_STATE_FAILED":return C.videoId?Yyf({data:C,actionType:b,disabled:J}):TrB({data:C,actionType:b,disabled:J});case "TRANSFER_STATE_COMPLETE":return TrB({data:C,
actionType:b,disabled:J});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return guw({data:C,actionType:b,disabled:J},G);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return C.videoId?Yyf({data:C,actionType:b,disabled:J}):RzB({data:C,actionType:b,disabled:J});default:return RzB({data:C,actionType:b,disabled:J})}};
rNZ=function(C,F){var G=C.onTapCommand,V=_.ZD(G);if(C.videoId&&_.Z(V,_.VJ))return _.Z(V,_.VJ).action=F,G;C.playlistId&&_.Z(V,_.Jm)&&(_.Z(V,_.Jm).action=F);return G};
RzB=function(C){var F=C.data;var G=C.actionType;C=C.disabled;return{text:KK9,iconType:"OFFLINE_DOWNLOAD",onTap:rNZ(F,G.ACTION_ADD),disabled:C}};
guw=function(C,F){var G=C.data;var V=C.actionType;C=C.disabled;var J="OFFLINE_DOWNLOAD";F>=0&&F<=.1?J="OFFLINE_DOWNLOADING_ZERO":F>.1&&F<=.3?J="OFFLINE_DOWNLOADING_TWENTY":F>.3&&F<=.5?J="OFFLINE_DOWNLOADING_FORTY":F>.5&&F<=.7?J="OFFLINE_DOWNLOADING_SIXTY":F>.7&&F<1?J="OFFLINE_DOWNLOADING_EIGHTY":F===1&&(J="OFFLINE_PIN");return{text:DFZ,iconType:J,onTap:rNZ(G,V.ACTION_REMOVE_WITH_PROMPT),disabled:C}};
TrB=function(C){var F=C.data;var G=C.actionType;C=C.disabled;return{text:pti,iconType:"OFFLINE_PIN",onTap:rNZ(F,G.ACTION_REMOVE_WITH_PROMPT),disabled:C}};
Yyf=function(C){var F=C.data;var G=C.actionType;C=C.disabled;return{text:mFI,iconType:"OFFLINE_DOWNLOAD",onTap:rNZ(F,G.ACTION_RETRY),disabled:C}};
_.$b=function(C,F){var G=rIA();return _.w0(function(){G();return pOf(C,[_.g0(F)||""])},{debugName:"LUZslf"},"Z105t")};
C2A=function(C){var F=_.$b(_.O3,function(){return C().videoId}),G=_.$b(_.X0,function(){return C().playlistId});
return function(){return C().videoId?F:C().playlistId?G:_.u(_.yH("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
jcs=function(C){var F=_.$b(wd,function(){return C().videoId}),G=_.$b(_.qbw,function(){return C().playlistId});
return function(){return C().videoId?F:C().playlistId?G:_.u(_.yH(0,void 0,"K4tgOc")).next().value}};
FUT=function(C){var F=_.$b(_.DQ5,function(){return C().videoId});
return function(){return C().videoId?F:_.u(_.yH(!1,void 0,"Oaxwcf")).next().value}};
Guo=function(C){var F=_.$b(Rh5,function(){return C().videoId});
return function(){return C().videoId?F:_.u(_.yH("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
V1q=function(){return{}};
_.nQB=function(C,F,G){return{submitForm:function(){var V,J,b,z;return _.I(function(Q){if(Q.nextAddress==1){V=iuE(C());if(!V)return Q.return();if(V.onSubmit)return JDq(F),V.onSubmit(),JDq(G),Q.return();if(!V.submitConfig||!V.formData)return Q.jumpTo(0);V.disableDuringSubmission&&$vA(C(),!0);JDq(F);return Q.yield(buT(V.submitConfig,V.formData()),3)}J=Q.yieldResult;JDq(G);if(((b=J)==null?0:b.submitResult)&&((z=V)==null?0:z.onSubmitResult))V.onSubmitResult(J.submitResult);V.disableDuringSubmission&&$vA(C(),
!1);return Q.return()})},
isValid:function(){var V=iuE(C());if(V){var J;return!((J=V.isValid)==null||!J.call(V))}return!0},
isSubmitting:function(){var V,J;return!!((V=iuE(C()))==null?0:(J=V.isSubmitting)==null?0:J.call(V))}}};
_.bC=function(){if(!uKs){var C=_.u(_.yH(new Map,void 0,"Y1XnBc"));uKs=C.next().value;zVf=C.next().value}return uKs};
_.QcE=function(C){zVf(new Map(C))};
iuE=function(C){if(C)return _.bC()().get(C)};
buT=function(C,F){var G;return _.I(function(V){return V.nextAddress==1?F?(G=_.I8().resolve(_.Qt(Iki)))&&C.submitId?V.yield(G.submitForm(C.submitId,F,EQ5,C.params,C.clickTrackingParams),2):V.return(Promise.reject(Error("Bh"))):V.return(Promise.reject(Error("Ah"))):V.return(V.yieldResult)})};
$vA=function(C,F){if(C){var G=_.bC();G().set(C,Object.assign({},G().get(C),{isSubmitting:function(){return F}}));
_.QcE(G())}};
JDq=function(C){if(C){var F=_.I8().resolve(_.WD);F&&(C=_.ZD(C()))&&F.resolveCommand(C)}};
akI=function(C,F){F=F===void 0?{shouldPersist:!0}:F;return{useUpdatableData:function(G,V){var J=_.w0(function(){return C(G())},void 0,"Gmrblb"),b=WUo(G,J,V,F);
_.sq(function(){if(J()!=null){t1q.set(J(),b);var z=J();_.q0(function(){t1q.delete(z)})}},"j4hx9b");
return b},
getData:function(G){var V;return(V=t1q.get(C(G)))==null?void 0:V[0]()},
updateData:function(G,V){G=C(G);G=t1q.get(G);if(!G)return!1;var J=_.u(G);G=J.next().value;J=J.next().value;V=V(G());J(V);return!0}}};
WUo=function(C,F,G,V){V=V===void 0?{}:V;var J=_.u(_.Gb(function(){var Q=C(),E=F();return kuZ(Q,E,G,V)})),b=J.next().value,z=J.next().value;
return[b,function(Q){z(Q);var E=F();if(V.shouldPersist&&E!=null){var t,k=(t=G==null?void 0:G.map(function(U){return U()}))!=null?t:[];
_.nY.set(E,[Q,k])}}]};
kuZ=function(C,F,G,V){V=V===void 0?{}:V;if(F==null||!V.shouldPersist)return C;V=_.nY.get(F);if(!V)return C;var J=_.u(V);V=J.next().value;var b=J.next().value,z;J=(z=G==null?void 0:G.map(function(Q){return Q()}))!=null?z:[];
if((b==null?0:b.length)&&(G==null?0:G.length)&&J.some(function(Q,E){return Q!==b[E]}))return _.nY.remove(F),C;
(G==null?0:G.length)&&_.nY.set(F,[V,J]);return V};
Uvi=function(C){var F=_.u(_.yH(!0,void 0,"bKtO6d")),G=F.next().value;F.next();return function(){var V=M4(C.children());return _.W(_.a,{cond:G,then:function(){return V},
else:C.fallback})}()};
_.uC=function(C){var F=HuE(C),G=F.data,V=F.mapping,J=F.wrapper;F=F.pendingFallback;var b=function(){return lki(_.g0(G))},z=function(){var Q=b(),E=[];
Q=_.u(Q);for(var t=Q.next();!t.done;t=Q.next()){var k=void 0;t=t.value;var U=void 0;for(k in t)if(!(!t).hasOwnProperty(k)){U=k;break}(k=U)&&E.push(k)}return E};
return C.data?_.W(Uvi,{fallback:F},function(){return _.W(_.Ag,{each:z},function(Q,E){var t=J?function(U){return J(function(){return V[Q](U,E)},k,E)}:function(U){return V[Q](U,E)};
t.debugName||(t.debugName=String(Q));if(!V[String(Q)])return document.createComment("");t.componentType!==h2&&yD9(String(Q));var k=Zu9(b,Q,E);return _.W(t,{data:k})})}):_.W(_.WQ,null)};
HuE=function(C){var F=C.targetId||N5w(C.children);if(!C.data||!F)return Object.assign({},C,{mapping:C.children,wrapper:void 0});var G="stamper-"+OuI++,V=function(){var Q;return(Q=typeof C.targetId==="function"?C.targetId(G):C.targetId)!=null?Q:G};
F=_.u(X2I(function(){var Q=lki(C.data());Q.targetId=V;return Q})).next().value;
var J=Object.assign({},(_.I8().resolve(_.Qt(w2i))||{}).replaceableMapping,C.children);if(C.replacementWrapper){var b=J.notificationTextRenderer,z=J.notificationMultiActionRenderer;b&&(J.notificationTextRenderer=function(Q,E){return C.replacementWrapper(b({data:Q.data},E))});
z&&(J.notificationMultiActionRenderer=function(Q,E){return C.replacementWrapper(z({data:Q.data},E))})}return Object.assign({},C,{data:F,
mapping:J,wrapper:function(Q,E,t){return FcE({targetId:V,stamperIndex:t},Q)}})};
Zu9=function(C,F,G){var V;return _.w0(function(){var J=C()[G()];if(J)V=J[F];else return _.Yw(new _.Ay("Stamper failed to find "+String(F)+" at index "+G()+" of data array of length "+(C().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),V;return J[F]},void 0,"Md3d6e")};
N5w=function(C){C=_.u(Object.keys(C));for(var F=C.next();!F.done;F=C.next())if(F=F.value,M1E.includes(F)||SOi.includes(F)||LUI.includes(F))return!0;return!1};
lki=function(C){return C?Array.isArray(C)?C:[C]:[]};
yD9=function(C){if(_.y("web_enable_renderer_logger")){var F;(F=_.I8().resolve(_.Qt(B5W)))!=null&&F.loggingEnabled&&!F.ids.has(C)&&F.ids.add(C)}};
vQw=function(){var C,F;return(F=(C=_.I8().resolve(_.Qt(_.v6)))==null?void 0:C())!=null?F:!1};
hVw=function(C,F){C=C===void 0?fkB:C;switch(F.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},C,{isOpen:F.payload});default:return C}};
ADw=function(C,F){C=C===void 0?cDB:C;switch(F.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},C,{isAllowed:F.payload});default:return C}};
dvf=function(C,F){C=C===void 0?eVq:C;switch(F.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},C,{errorMessage:F.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},C,{title:F.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},C,{privacy:F.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},C,{isDisabled:F.payload});default:return C}};
scT=function(C,F){C=C===void 0?xvq:C;switch(F.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},C,{isOpen:F.payload});default:return C}};
P29=function(C,F){C=C===void 0?qOf:C;switch(F.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},C,{isFullscreen:F.payload});case "SET_NAVIGATION_BUTTON":var G=F.payload.targetId,V=Object.assign({},C.navigationButtons);V[G]=F.payload.button;return Object.assign({},C,{navigationButtons:V});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},C,{topPanelId:F.payload});case "SET_SECONDARY_HEADER":return G=F.payload.panelId,V=Object.assign({},C.secondaryHeader),V[G]=F.payload.secondaryHeader,
Object.assign({},C,{secondaryHeader:V});default:return C}};
T5T=function(){return BS(Object.assign({},{voiceSearch:UjB,engagementPanel:P29,bottomSheet:hVw,cinematicSetting:ADw,shorts:wZw,drawerLayout:scT,createPlaylist:dvf,locationCollection:gQB,reportChannel:RVW,reportForm:YOZ},MtA))};
oQi=function(C,F){_.gT.addLowPriorityJob(function(){var G,V,J;return _.I(function(b){switch(b.nextAddress){case 1:return _.yy(b,2),b.yield(w7I(),4);case 4:return b.yield(fetch(C),5);case 5:return G=b.yieldResult,b.yield(G.json(),6);case 6:V=b.yieldResult;E4.set(C,V);requestAnimationFrame(function(){F(V)});
_.Gn(b,0);break;case 2:J=_.wa(b),_.Yw(J),_.S9(b)}})})};
rDo=function(C){var F={animationConfig:{},listeners:{}},G=function(){C(!0)};
F.listeners.data_failed=G;F.listeners.error=G;F.listeners.data_ready=function(){C(!1)};
return F};
p2T=function(C){var F=C.model;var G=C.subscribed;var V=C.isOverlay;var J=C.element;var b=C.commandController;var z=C.notificationState;if(G){var Q,E;var t=(F==null?void 0:(Q=F.buttonStyle)==null?void 0:Q.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:F==null?void 0:(E=F.unsubscribeButtonContent)==null?void 0:E.buttonText}else{var k;t=F==null?void 0:(k=F.subscribeButtonContent)==null?void 0:k.buttonText}a:{var U;switch(F==null?void 0:(U=F.buttonStyle)==
null?void 0:U.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":Q="S";break a;default:Q="M"}}a:if(V)V="overlay";else switch(F.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":V="overlay";break a;default:V="mono"}a:if(G)var H="tonal";else switch((H=F.buttonStyle)==
null?void 0:H.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":H="tonal";break a;default:H="filled"}return{style:V,type:H,state:F.disableSubscribeButton?"disabled":"active",size:Q,focused:C.focused,toggled:G,accessibilityLabel:KUw(F,G,z),buttonText:t,iconPosition:F.disableNotificationBell?"none":"leading-trailing",onTap:Dvs(F,G,J,b),disableTextEllipsis:!!C.disableTextEllipsis}};
Dvs=function(C,F,G,V){return function(J){if(F){var b;var z=C.disableNotificationBell?_.ZD(C==null?void 0:(b=C.unsubscribeButtonContent)==null?void 0:b.onTapCommand):_.ZD(C==null?void 0:C.onShowSubscriptionOptions)}else{var Q;z=_.ZD(C==null?void 0:(Q=C.subscribeButtonContent)==null?void 0:Q.onTapCommand)}z&&b5(z,{form:{element:G==null?void 0:G.value},commandController:V});J.stopPropagation()}};
KUw=function(C,F,G){if(F){if(C==null?0:C.disableNotificationBell){var V;return C==null?void 0:(V=C.unsubscribeButtonContent)==null?void 0:V.accessibilityText}switch(G){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var J;return C==null?void 0:(J=C.bellAccessibilityData)==null?void 0:J.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var b;return C==null?void 0:(b=C.bellAccessibilityData)==null?void 0:b.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var z;return C==null?void 0:(z=
C.bellAccessibilityData)==null?void 0:z.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var Q;return C==null?void 0:(Q=C.bellAccessibilityData)==null?void 0:Q.disabledLabel;default:var E;return C==null?void 0:(E=C.unsubscribeButtonContent)==null?void 0:E.accessibilityText}}else{var t;return C==null?void 0:(t=C.subscribeButtonContent)==null?void 0:t.accessibilityText}};
mvT=function(C,F){return _.jN(C.entities,"subscriptionStateEntity",F)};
CqS=function(C,F){return _.jN(C.entities,"subscriptionNotificationStateEntity",F)};
j0Z=function(C,F){return _.jN(C.entities,"upcomingEventReminderStateEntity",F)};
FtS=function(C,F){return _.jN(C.entities,"commentEntityPayload",F)};
G5S=function(C,F){return _.jN(C.entities,"engagementToolbarSurfaceEntityPayload",F)};
VAW=function(C,F){return _.jN(C.entities,"triStateButtonStateEntityPayload",F)};
iso=function(C,F){return _.jN(C.entities,"commerceCartCheckoutButtonEntity",F)};
JXW=function(C,F){return _.jN(C.entities,"commandEntity",F)};
$cZ=function(C){if(C){switch(C){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":C="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":C="NOTIFICATIONS_OFF";break;default:C="NOTIFICATIONS_NONE"}return C}};
bs9=function(C,F,G){G.subscribed!==F&&((G=G.key)&&_.er(_.z3("subscriptionStateEntity",G,{key:G,subscribed:F})),C.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:F})),F||_.rz(C,"yt-unsubscribe-action"))};
zZT=function(C){C=_.Z(_.ZD(C),_.nhq);var F,G,V,J;return(J=_.Z(C==null?void 0:(F=C.panelLoadingStrategy)==null?void 0:(G=F.inlineContent)==null?void 0:(V=G.sheetViewModel)==null?void 0:V.content,ujZ))==null?void 0:J.listItems};
Q0W=function(C,F){if(C.onShowSubscriptionOptions&&F&&(C=zZT(C.onShowSubscriptionOptions),C!=null&&C.length)){var G=$cZ(F);C.forEach(function(V){V=_.Z(V,_.QJ);var J,b,z,Q,E=V==null?void 0:(J=V.leadingImage)==null?void 0:(b=J.sources)==null?void 0:(z=b[0])==null?void 0:(Q=z.clientResource)==null?void 0:Q.imageName;V&&E&&(V.isSelected=E===G)})}};
IPi=function(C,F,G,V){F&&G?C.style.width=G+"px":!F&&V&&(C.style.width=V+"px")};
Eh5=function(C,F,G){var V;(V=C.lottieEl)==null||V.goToAndPlay(0);var J;(J=F.lottieEl)==null||J.goToAndPlay(0);_.Iy(_.gT,function(){var b;(b=G.lottieEl)==null||b.goToAndPlay(0)},300)};
WtI=function(C){return!(C==null||!C.iconName||(C==null?0:C.title))};
tAw=function(C,F,G,V){G&&_.gT.cancelJob(G);G=_.gT.addLowPriorityJob(function(){V(void 0)},5E3);
V(G);F&&C!==(F.likeStatus==="LIKE")&&F.key&&_.er(_.z3("likeStatusEntity",F.key,{key:F.key,likeStatus:C?"LIKE":"INDIFFERENT",hadUserInteraction:C}))};
_.aPs=function(C,F){return _.jN(C.entities,"accountLinkStatusEntity",F)};
k5o=function(C,F){return _.jN(C.entities,"hatsSurveyEntity",F)};
Ucs=function(C,F){return _.jN(C.entities,"hatsSurveyStateEntity",F)};
HsS=function(C,F){return _.jN(C.entities,"quantityIncrementerEntity",F)};
lPw=function(C){switch(C){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;case "BADGE_STYLE_TYPE_BLUE":return 12;default:return 0}};
yX5=function(C){switch(C){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}};
ZsI=function(C){switch(C){case 2:return"yt-badge-shape--ad";case 1:return"yt-badge-shape--media";case 3:return"yt-badge-shape--promoted";case 4:return"yt-badge-shape--promoted-inverted";case 5:return"yt-badge-shape--timely";case 6:return"yt-badge-shape--premium";case 7:return"yt-badge-shape--sale";case 8:return"yt-badge-shape--membership";case 9:return"yt-badge-shape--commerce";case 11:return"yt-badge-shape--live";case 12:return"yt-badge-shape--status-new";case 13:return"yt-badge-shape--status-complete";
case 14:return"yt-badge-shape--status-warning";case 15:return"yt-badge-shape--status-error";case 16:return"yt-badge-shape--status-default";case 17:return"yt-badge-shape--thumbnail-default";case 18:return"yt-badge-shape--thumbnail-live";case 19:return"yt-badge-shape--thumbnail-special";default:return"yt-badge-shape--default"}};
_.Oss=function(C){var F=_.a8("web_generic_client_event_wait_period ",0);F||(F=3E5);var G=NXS.get(C);!_.y("enable_web_client_experiment_event_timeout_killswitch")&&G&&(0,_.Et)()-G<F||(NXS.set(C,(0,_.Et)()),_.q1("genericClientExperimentEvent",{eventType:C}))};
_.XJs=function(C,F){var G,V,J,b;a:{var z=C.style;if(z===void 0)z=17;else switch(z){case "LIVE":z=18;break a;default:z=17}}return{type:z,text:F?FMB({seconds:F}):_.dd(C.text),accessibilityText:(G=C.text)==null?void 0:(V=G.accessibility)==null?void 0:(J=V.accessibilityData)==null?void 0:J.label,icon:(b=C.icon)==null?void 0:b.iconType}};
wJZ=function(C){switch(C){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
MA5=function(C){if(!C)return"";var F,G=(F=_.I8().resolve(_.Qt(_.v6)))==null?void 0:F(),V;if(!G&&((V=C.vibrantColorPalette)==null?0:V.iconInactiveColor))return yk(C.vibrantColorPalette.iconInactiveColor,"1");var J;return G&&((J=C.darkColorPalette)==null?0:J.iconInactiveColor)?yk(C.darkColorPalette.iconInactiveColor,"1"):C.color?yk(C.color,"1"):C.sampledThumbnailColor?(C=C.sampledThumbnailColor,"rgba("+C.red+","+C.green+","+C.blue+");"):""};
_.EI=function(C,F){if(!C.includes("DATE_PLACEHOLDER"))return C;var G=new Date(0);G.setUTCSeconds(F);return C.replace("DATE_PLACEHOLDER",SKw(G))};
LtB=function(C,F,G){return function(V){var J=C.command;J&&(b5(J,{form:{element:G}}),F([J],V))}};
vhE=function(C,F,G,V,J){return function(b){var z=BX9(C,F);z&&b5(z,{form:{element:G},commandController:V});J&&b.stopPropagation()}};
BX9=function(C,F){if(C.signInEndpoint&&!_.y("web_subscribe_sign_in_endpoint_killswitch"))return C.signInEndpoint;if(F){if(C.serviceEndpoints)return C.serviceEndpoints[1];if(C.onUnsubscribeEndpoints)return C.onUnsubscribeEndpoints[0]}else{if(C.serviceEndpoints)return C.serviceEndpoints[0];if(C.onSubscribeEndpoints)return C.onSubscribeEndpoints[0]}};
fP5=function(C,F){var G,V,J,b;F=F&&((G=C.unsubscribeAccessibility)==null?void 0:(V=G.accessibilityData)==null?void 0:V.label)||((J=C.subscribeAccessibility)==null?void 0:(b=J.accessibilityData)==null?void 0:b.label);return C.longSubscriberCountText?[F,_.dd(C.longSubscriberCountText)].filter(function(z){return z}).join(" "):F};
Wl=function(C,F){return F||(C==null?0:C.isChannelDelegate)?"disabled":"active"};
hZI=function(C,F){var G;switch((G=C.style)==null?void 0:G.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:Wl(C)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:Wl(C)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:Wl(C,!0)};case "OVERLAY":return F?{style:"overlay",type:"tonal",state:Wl(C)}:{style:"overlay",type:"filled",state:Wl(C)};default:return F?{style:"mono",type:"tonal",state:Wl(C)}:{style:"mono",type:"filled",state:Wl(C)}}};
_.tm=function(){for(var C=[],F=_.u(_.Rn.apply(0,arguments)),G=F.next();!G.done;G=F.next())if(G=G.value)if(typeof G==="string")C.push(G);else{G=_.u(Object.entries(G));for(var V=G.next();!V.done;V=G.next()){var J=_.u(V.value);V=J.next().value;(J=J.next().value)&&C.push(V)}}return C.join(" ")};
cXw=function(C){switch(C){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
AXZ=function(C){switch(C){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
eZ9=function(C,F){var G=C.map(function(V){return V.toString()});
return _.CZ(function(V){if(G.includes(V.key)){F&&V.preventDefault();var J;(J=V.currentTarget)==null||J.click()}})};
_.dc9=function(){return eZ9(["Enter"])};
_.xcE=function(){return eZ9(["Enter"," "],!0)};
_.ay=function(C){if(C.composedPath)return C.composedPath();if(!C.__composedPath){for(var F=[],G=C.target;G;)F.push(G),G=G.parentNode;F.push(window);C.__composedPath=F}return C.__composedPath};
_.kb=function(C,F,G){C=_.u(C);for(var V=C.next();!V.done;V=C.next()){V=V.value;if(V===F)break;for(var J=_.u(G),b=J.next();!b.done;b=J.next())if(b=b.value,V.tagName===b||V.role==="button"&&b==="BUTTON")return!0}return!1};
qKB=function(C,F){var G,V=(G=F.observer)!=null?G:_.I8().resolve(E8);if(C){G=s0I(C);var J=[];F.showOption&&J.push(V.observe(C,function(){F.visibilityCallback(!0,C)},F.showOption));
F.hideOption&&J.push(V.observe(C,function(){F.visibilityCallback(!1,C)},F.hideOption));
F.prescanOption&&F.prescanCallback&&J.push(V.observe(C,function(){F.prescanCallback()},F.prescanOption));
var b;G.visibilityMonitorKeys=((b=G.visibilityMonitorKeys)!=null?b:[]).concat(J)}};
s0I=function(C){var F;return(F=C.polymerController)!=null?F:C};
_.Hl=function(C){return!!_.UI(C)};
_.lC=function(C,F,G,V,J){return function(b){var z=jZT();_.sq(function(){if(b){PqS(b,C(),J);var Q=gho(b,C(),F,G,V,z);_.q0(Q)}},"nr377e")}};
PqS=function(C,F,G){var V=RZS(F),J=YKT(F);F=V&&TX5;var b=J&&ohE;(V||J)&&qKB(C,{visibilityCallback:function(z){var Q=_.I8().resolve(_.WD);z&&V?Q.resolveCommand(V,{form:{element:G?C:void 0},disableClickTracking:!0}):!z&&J&&Q.resolveCommand(J,{form:{element:G?C:void 0},disableClickTracking:!0})},
showOption:F,hideOption:b})};
gho=function(C,F,G,V,J,b){var z=new Map;if(F=_.UI(F)){var Q;C=(V==null?void 0:(Q=V.onTap)==null?void 0:Q.value)||C;G=rXw(F,C,G==null?void 0:G.onTap,J,b);C.addEventListener("click",G);z.set("click",G)}return function(){for(var E=_.u(z),t=E.next();!t.done;t=E.next()){var k=_.u(t.value);t=k.next().value;k=k.next().value;C.removeEventListener(t,k)}}};
_.UI=function(C){var F;return(C=(F=_.Z(C,KtZ))==null?void 0:F.onTap)&&_.ZD(C)};
RZS=function(C){var F;return(C=(F=_.Z(C,KtZ))==null?void 0:F.onVisible)&&_.ZD(C)};
YKT=function(C){var F;return(C=(F=_.Z(C,KtZ))==null?void 0:F.onHidden)&&_.ZD(C)};
rXw=function(C,F,G,V,J){var b=function(Q){_.I8().resolve(_.WD).resolveCommand(C,Q)},z=function(Q){V&&_.kb(_.ay(Q),F,V)||b(Q.target?{form:{element:Q.target,
sourceData:C,mutationContext:J}}:void 0)};
G&&(z=function(Q){G(Q,b)});
return z};
DcA=function(C){switch(C){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}};
pJE=function(C){var F=C.numAvatarsInCluster;switch(C.clusterSize){case "small":return F===2?22:18;case "40":return F===2?24:22;default:return F===2?24:20}};
mcI=function(C,F){return function(G){var V=Object.keys(F);_.sq(function(){if(C!=null&&C()){for(var J=_.u(V),b=J.next();!b.done;b=J.next())b=b.value,G.addEventListener(b,F[b]);_.q0(function(){for(var z=_.u(V),Q=z.next();!Q.done;Q=z.next())Q=Q.value,G.removeEventListener(Q,F[Q])})}},"bXZGfe")}};
C_A=function(C){switch(pJE(C)){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""}};
jJo=function(C){switch(C){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""}};
Ffw=function(C){switch(pJE(C)){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""}};
Gy9=function(C){switch(C){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""}};
Vw5=function(C){switch(C){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}};
iU9=function(C){return C==="medium"||C==="48"||C==="large"||C==="extra-large"||C==="extra-extra-large"||C==="giant"};
Jji=function(C){return!!((C==null?0:C.includes(3))||(C==null?0:C.includes(5)))};
bUq=function(C){var F=C.data;return{size:$Ki(F.avatarImageSize),type:F.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:C.onTap,decorations:C.decorations||[],badgeText:C.badgeText,accessibilityText:C.accessibilityText,avatarButtonCustomClassName:C.avatarButtonCustomClassName,clusterLayoutConfig:C.clusterLayoutConfig}};
$Ki=function(C){switch(C){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"}};
nYw=function(C){switch(C){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_40":return 40;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
uWI=function(C){switch(C){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model__avatar--avatar-size-giant";default:return""}};
zeZ=function(C){var F=C.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",G,V=C.avatars&&C.avatars.length>0?(G=_.Z(C.avatars[0],_.yJ))==null?void 0:G.avatarImageSize:"AVATAR_SIZE_UNKNOWN";G=nYw(V)||0;if(F){var J,b=(J=C.avatarClusterSize)!=null?J:"AVATAR_SIZE_M";F=nYw(b);var z,Q,E=Math.min((Q=(z=C.avatars)==null?void 0:z.length)!=null?Q:0,4),t;return{avatars:((t=C.avatars)==null?void 0:t.slice(0,4))||[],avatarSizeInPx:G,avatarStackStyle:{width:F+"px",height:F+"px",position:"relative"},avatarStyle:function(U){var H=
pJE({clusterSize:$Ki(b),numAvatarsInCluster:E,avatarIndex:U});var l=nYw(b);E===3&&U===2?(l=(l-H)/2,l=(_.TF("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*l):l=void 0;return{position:"absolute",top:E===2&&U===1||E===3&&U===2||E===4&&U>=2?"0":void 0,bottom:E===2&&U===0||E>2&&U<2?"0":void 0,left:E===2&&U===1||E>2&&(U===1||U===3)?"0":void 0,right:E<=3&&U===0||E===4&&(U===0||U===2)?"0":void 0,transform:l?"translateX("+l+"px)":void 0,width:H+"px",height:H+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(U){return{clusterSize:$Ki(C.avatarClusterSize),numAvatarsInCluster:E,avatarIndex:U}},
avatarButtonCustomClassName:void 0}}var k;return{avatars:((k=C.avatars)==null?void 0:k.slice())||[],avatarSizeInPx:G,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:uWI(V),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
QJB=function(C,F,G){return function(){b5(C,{form:{element:F},commandController:G})}};
IKi=function(C){switch(C){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
EYA=function(C){switch(C){case "small":return"yt-thumbnail-overlay-badge-view-model--small";case "medium":return"yt-thumbnail-overlay-badge-view-model--medium";case "large":return"yt-thumbnail-overlay-badge-view-model--large";default:return"yt-thumbnail-overlay-badge-view-model--medium"}};
WfW=function(C){if("accessibilityText"in C)return C.accessibilityText||"";if("title"in C){var F,G,V;return((F=C.title)==null?void 0:(G=F.accessibility)==null?void 0:(V=G.accessibilityData)==null?void 0:V.label)||""}if("accessibility"in C){var J,b;return((J=C.accessibility)==null?void 0:(b=J.accessibilityData)==null?void 0:b.label)||""}return""};
tw5=function(C){return"inlinePlayerData"in C};
ZR=function(C){return new aKq(C)};
kyq=function(C){return function(F){C&&(C.thumbnailElRef=F.thumbnailElRef,C.thumbnail=F.thumbnail,C.thumbnailOverlays=F.thumbnailOverlays,C.thumbnailSize=F.thumbnailSize)}};
UKZ=function(C){switch(C){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
lKI=function(C){var F=_.u(_.yH(!1,void 0,"E6wDDe")),G=F.next().value,V=F.next().value;_.q4(function(){var J=C==null?void 0:C();if(J){var b=_.I8().resolve(_.Qt(HUs));if(b){var z={triggeringElement:J,onDwellTriggeredFn:function(){V(!0)},
onDwellEndFn:function(){V(!1)}};
b.registerElement(z);_.q0(function(){_.Nh(b,z)})}}});
return G};
yjT=function(C,F,G){G?G(F):_.wQ(F,C.target?{form:{element:C.target}}:void 0)};
_.OI=function(C,F,G,V){return function(J){_.sq(function(){function b(k){k=k.composedPath();k=_.u(k);for(var U=k.next();!U.done;U=k.next()){U=U.value;if(U===J)break;if(U.className.indexOf("HostIsClickableAdComponent")>=0||U.tagName==="A".toString()||U.tagName==="BUTTON".toString())return!0}return!1}
var z=new Map,Q,E=(Q=C())==null?void 0:Q.onTap;if(E){Q=function(k){b(k)||yjT(k,E,F)};
var t=function(k){b(k)||k.key!=="Enter"||yjT(k,E,F)};
(G==null?0:G())||_.y("enable_web_home_top_landscape_image_layout_level_click")?(J.addEventListener("tap",Q),z.set("tap",Q)):(J.addEventListener("click",Q),z.set("click",Q));if(V==null?0:V())J.addEventListener("keydown",t),z.set("keydown",t)}_.q0(function(){for(var k=_.u(z),U=k.next();!U.done;U=k.next()){var H=_.u(U.value);U=H.next().value;H=H.next().value;J.removeEventListener(U,H)}})},"D7XqOc")}};
ZUI=function(C,F){var G,V=(G=C.interaction)==null?void 0:G.onTap;if(C=_.O9({elementsCommand:V,forceNewState:!0,skipOnClick:!0}))return C.onclick=function(J){avo(J)&&(J.preventDefault(),V&&yjT(J,V,F))},X1(C)?C:void 0};
NsE=function(C){switch(C){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
OUS=function(C){switch(C){case "AD_BUTTON_STYLE_OVERLAY":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case "AD_BUTTON_STYLE_TRANSPARENT":case "AD_BUTTON_STYLE_MONO_FILLED":case "AD_BUTTON_STYLE_MONO_TONAL":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"mono";case "AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action"}};
XTi=function(C){switch(C){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"}};
_.wTZ=function(C){return _.y("rich_grid_enable_dynamic_offset")&&C?Math.max(Math.round((C-_.a8("rich_grid_dynamic_offset_anchor_width",1300))/100*_.a8("rich_grid_dynamic_offset_offset_per_100",10)),_.a8("rich_grid_dynamic_offset_lower_bound",-60)):0};
MwS=function(C,F){switch(F){case 4:return 16;case 1:return C<528?16:C<1024?32:48;case 2:return(C>=528?16:8)/2;case 3:return(C<528?16:C<1024?32:48)+(C>=528?16:8)/2;default:return 0}};
SEB=function(C){var F=C.originalContainerWidth;var G=C.sizing;var V=C.standardUnit;if(C.isCompactList&&F<528)return 1;switch(G){case "STANDARD":return V;case "COMPACT":return V+1;case "EXTRA_COMPACT":return _.y("web_responsive_extra_compact_2x")?V*2:_.y("web_responsive_current")?V===1?2:V%2===0?V/2*3:V+2:V<4?V*2:Math.ceil(V*3/2);case "MINI":return V>1?V*2:3;default:return V}};
Bs9=function(C){var F=C.containerWidth;var G=C.peek;var V=C.gutter;var J=C.numItems;C=C.ignoreMaxWidthLimit;F=G?Math.max((F-G-V*J)/J,0):Math.max((F-V*(J-1))/J,0);return C?F:Math.min(F,LfZ)};
_.XN=function(C){var F=C.containerWidth;var G=C.hasPeek;var V=C.sizing;var J=C.marginSettings;var b=C.isCompactList;var z=C.enableFullBleedForSingleCol;var Q=C.standardUnitMinWidth;V=V||"STANDARD";G=!!G;C=F>=528?16:8;var E=G?F>=528?48:24:0;J=MwS(F,J);var t=Math.max(F-J*2,0);Q=_.y("kevlar_disable_min_width_override")?void 0:Q;Q=Math.min(Math.max(Math.floor((t-E+C)/((Q!=null?Q:vYT)+_.wTZ(F)+C)),1),6);var k=(z=!!z&&Q===1)||Q===1&&V!=="STANDARD";G=G||k?t:Math.min(t,(LfZ+C)*Q-C);V=SEB({originalContainerWidth:F,
sizing:V,standardUnit:Q,isCompactList:b});return{itemWidth:Bs9({containerWidth:G,peek:E,gutter:C,numItems:V,ignoreMaxWidthLimit:k}),gutter:C,maxContainerWidth:G,numItems:V,margin:z?0:J,contentMargin:MwS(F,1),typographyBump:Bs9({containerWidth:G,peek:E,gutter:C,numItems:Q,ignoreMaxWidthLimit:k})>400&&!(b&&F<528),standardUnit:Q}};
wv=function(C){switch(C){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.fKf=function(C){if(C){var F;if((F=C.responsiveContainerConfiguration)==null?0:F.responsiveSize)return wv(C.responsiveContainerConfiguration.responsiveSize);if(C.layoutSizing)switch(C.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"}}};
hew=function(C){if(C.fullbleed)return 1;switch(C.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
xKA=function(C,F,G,V,J,b,z,Q){a:if(C===4&&V==="LOCKUP_CONTENT_TYPE_SOURCE")var E=1;else switch(C){case 3:E=1;break a;default:E=0}a:switch(C){case 4:b=!!(b&&b<100);break a;default:b=!1}a:switch(C){case 3:case 4:var t=V==="LOCKUP_CONTENT_TYPE_CHANNEL"||V==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:t=!1}return{isOverlay:cjZ(C,V),isCard:Aj5(V,z),sizing:F!=null?F:"STANDARD",typographyBump:G!=null?G:!1,isTiny:b,isCentered:t,isCollection:eew(V),arrangement:E,addMarginForFullbleed:C===1&&V!=="LOCKUP_CONTENT_TYPE_VIDEO",
fullbleed:C===1&&V==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:dKE(V,J,Q),disableRounding:C===5||Aj5(V,z)||C===1&&V==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:eew(V)?2:0,useLegacyTypography:!(Q==null||!Q.useLegacyTypography),useRichGridLegacyTypography:!(Q==null||!Q.useRichGridLegacyTypography)&&!_.y("web_enable_typography_bump"),compactMetadata:E===0&&V==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:Q==null?void 0:Q.onFocusEffect}};
eew=function(C){switch(C){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":case "LOCKUP_CONTENT_TYPE_MIX":case "LOCKUP_CONTENT_TYPE_STATION":return!0;default:return!1}};
Aj5=function(C,F){if(F&&C==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(C){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
cjZ=function(C,F){if(F==="LOCKUP_CONTENT_TYPE_AI_CARD")return!0;switch(C){case 5:return!0;case 4:return!1;default:return!1}};
dKE=function(C,F,G){if(F&&(G==null||!G.alwaysRespectPodcastShowAspectRatio||C!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(C){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}};
sJS=function(C){switch(C){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"}};
qEZ=function(C){switch(C){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;default:return 0}};
P_s=function(C){switch(C){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}};
_.Mh=function(C){if(C){var F;return((F=_.I8().resolve(_.Qt(_.v6)))==null?0:F())?C.darkThemeImage:C.image}};
YET=function(C,F,G,V,J,b){if(J&&b&&F==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:J,height:b};if(!G)return{};J=G.size;G=G.allowFullWidth;if(F==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&G)return{fullWidth:!0};if(J===void 0)return{};switch(C){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:J,height:J};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:J,height:1/gYo*J};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:J*
ReS,height:J};default:return(V==null?0:V.height)&&(V==null?0:V.width)?V.width/V.height>1?{maxWidth:J*ReS}:{maxWidth:J}:{maxWidth:J}}};
Ts9=function(C){var F;return C&&((F=_.Mh(C.themedImage))!=null?F:C.image)};
oY5=function(C){var F;return C==null?void 0:(F=C.sources)==null?void 0:F[0]};
rjT=function(C){switch(C){case 0:return"yt-content-metadata-view-model__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model__metadata-text";case 2:return"yt-content-metadata-view-model__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model__metadata-text-max-lines-4"}};
_.Kf5=function(C){if(C)return"content-id-"+C};
DKT=function(C){switch(C.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"}}};
pTS=function(C){var F=_.SV.currentPageSubTypeSelector(_.Av().getState())||"";return C?C+F:""};
mK5=function(C){switch(C){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
j$Z=function(C){var F=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],G=_.u(_.yH(void 0,void 0,"JrqNsb")),V=G.next().value,J=G.next().value,b=_.u(_.yH(void 0,void 0,"rWytse"));G=b.next().value;var z=b.next().value;b=_.u(_.yH(void 0,void 0,"DHRqxe"));var Q=b.next().value,E=b.next().value;return{touchFeedbackEvents:{pointerUpEvent:V,pointerDownEvent:G,pointerLeaveEvent:Q},touchFeedbackOnPointerUp:_.CZ(function(t){C4B(_.ay(t),F)||(J(t),z(void 0),E(void 0))}),
touchFeedbackOnPointerDown:_.CZ(function(t){C==null||C(t);C4B(_.ay(t),F)||(z(t),J(void 0),E(void 0))}),
touchFeedbackOnPointerLeave:_.CZ(function(t){C4B(_.ay(t),F)||(E(t),z(void 0),J(void 0))})}};
C4B=function(C,F){F=F===void 0?[]:F;F=[].concat(_.da(F),["BUTTON".toString()]);C=_.u(C);for(var G=C.next();!G.done;G=C.next()){G=G.value;for(var V=_.u(F),J=V.next();!J.done;J=V.next())if(G.tagName===J.value)return!0}return!1};
FT9=function(C){switch(C){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"}};
GM9=function(C){return C.scrollHeight-C.offsetHeight>1};
VYZ=function(C,F){var G;return B6(C,((G=C.content)==null?void 0:G.length)||0,!F)};
$t5=function(C,F,G,V,J,b){if(!F||io5){var z;return B6(C,((z=C.content)==null?void 0:z.length)||0,!0)}F=V.value;if(!G.value||!F||!C.content)return C;G=0;V=C.content.length;z=0;JFo||(JFo=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var Q=JFo;for(J=J*b*Q;G<=V;)b=Math.floor(G+(V-G)/2),Q=B6(C,b)||C,F.firstChild&&(F.firstChild.textContent=Q.content),F.scrollHeight>J?V=b-1:(z=b,G=b+1);return B6(C,z)};
boS=function(C,F){var G,V;return(((G=C.content)==null?void 0:G.length)||0)>(((V=F.content)==null?void 0:V.length)||0)};
nIq=function(C,F,G,V,J,b){var z=_.Jt("truncated-text-content"),Q=_.Jt("truncated-text-content"),E=_.Jt("button"),t=_.Jt("button"),k=_.Jt("button"),U=_.I8().resolve(_.hC),H=_.u(_.Gb(function(){return VYZ(C(),J())})),l=H.next().value,N=H.next().value;
H=_.u(_.Gb(function(){return boS(C(),l())}));
var S=H.next().value,f=H.next().value,c=null;_.sq(function(){function A(){if(z.value&&E.value&&k.value){var g=b()?C():$t5(C(),J(),z,Q,F(),G());N(g);requestAnimationFrame(function(){if(z.value&&E.value&&k.value){var r=GM9(z.value)||boS(C(),g);f(r);if(!V()){var C9=GM9(z.value),Wo=G(),EB=z.value,L9=E.value,ki=k.value,lZ=U==="rtl";if(EB&&L9){var eq=L9.offsetLeft;lZ&&(eq=EB.offsetWidth-L9.offsetWidth-L9.offsetLeft);if(r){r=L9.offsetWidth;L9=EB.offsetWidth;var OB=C9?L9-r-70:eq-70;Wo="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
Wo+"rem,\n      #000 "+Wo+"rem,\n      #000 100%), linear-gradient(\n      to "+((lZ?"left":"right")+",\n      #000 0px,\n      #000 "+OB+"px,\n      transparent "+(C9?L9-r:OB+70)+"px)");EB.style.setProperty("-webkit-mask-image",Wo);EB.style.setProperty("mask-image",Wo)}else EB.style.setProperty("-webkit-mask-image",""),EB.style.setProperty("mask-image","");C9?lZ?(ki.style.setProperty("left","0"),ki.style.setProperty("right","unset")):(ki.style.setProperty("left",""),ki.style.setProperty("right",
"0")):lZ?(ki.style.setProperty("left","unset"),ki.style.setProperty("right",eq+"px")):(ki.style.setProperty("left",eq+"px"),ki.style.setProperty("right","unset"))}}}})}}
var T,P;(T=c)==null||(P=T.stop)==null||P.call(T);T=new _.FX(A,17);A();c=T},"KjwIxd");
_.q4(function(){N(VYZ(C(),J()));f(boS(C(),l()));var A=function(){JFo=void 0;var P,g;(P=c)==null||(g=P.fire)==null||g.call(P)};
if(window.ResizeObserver){var T=new ResizeObserver(A);T.observe(z.value);_.q0(function(){var P,g;(P=c)==null||(g=P.stop)==null||g.call(P);T.disconnect()})}else window.addEventListener("resize",A),_.q0(function(){var P,g;
(P=c)==null||(g=P.stop)==null||g.call(P);window.removeEventListener("resize",A)})});
return{isTruncated:S,displayText:l,contentRef:z,hiddenRef:Q,placeholderTruncationTextRef:E,hiddenTruncationTextRef:t,truncationTextRef:k}};
uyf=function(C){return{content:C!=null?C:""}};
zYs=function(C){return _.ZD(C.onTap)||_.UI(C.rendererContext)};
Q$i=function(C){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:C.overflowMenuA11yLabel,onTap:function(F){F.preventDefault();F.stopPropagation();if(C.overflowMenuOnTap){var G=_.O9({elementsCommand:C.overflowMenuOnTap,forceNewState:!0});if(G==null?0:G.onclick)G.onclick(F)}}}};
_.LY=function(C,F,G,V,J){V=V===void 0?{}:V;if(!J||Math.random()<5E-4){F=F||null;G=G||null;C=C instanceof Error?C:new _.Ay(C);if(C.args)for(var b=_.u(C.args),z=b.next();!z.done;z=b.next())z=z.value,z instanceof Object&&(V=Object.assign({},z,V));V.category="H5 Ads Control Flow";F&&(V.slot=F?"slot:  "+F.slotType:"");G&&(V.layout=G?"layout:  "+G.layoutType:"",V.layoutId=G.layoutId);J&&(V.known_error_aggressively_sampled=!0);C.args=[V];_.Yw(C)}};
_.IqT=function(C,F){F=_.PY(F);_.rz(C,"yt-open-popup-action",[F,C])};
_.Bl=function(C,F){_.IqT(C,_.eN(F))};
WTS=function(C){if(!C)return"";if(EIB[C])return EIB[C];vl||(vl=_.Md("A"));vl.href!==C&&TB(vl,C);var F=vl.pathname;EIB[C]=F.startsWith("/")?F:"/"+F;return EIB[C]};
tYs=function(){var C=WTS(window.location.href);if(C==="/")return"home";if(C.startsWith("/results"))return"search";if(C.startsWith("/watch"))return"watch";if(C.startsWith("/shorts"))return"shorts";if(C.startsWith("/hashtag"))return"hashtag";if(C.startsWith("/create_channel"))return"create_channel";if(C.startsWith("/@")||C.startsWith("/user/")||C.startsWith("/channel/"))return"channel";if(C.startsWith("/experiments"))return"experiments";if(C.startsWith("/sponsor_channel"))return"sponsorship";if(C.startsWith("/select_site"))return"settings";
if(C.startsWith("/locate"))return"locate";if(C.startsWith("/redeem"))return"redeem";if(C.startsWith("/musicpremium")||C.startsWith("/premium")||C.startsWith("/red"))return"premium";if(C.startsWith("/paid_memberships"))return"paid_memberships";if(C.startsWith("/oops"))return"oops";if(C.startsWith("/clip"))return"clip";var F;return(fY==null?void 0:(F=fY.response)==null?void 0:F.page)==="404"?"404":C.startsWith("/feed/history")?"history":C.startsWith("/feed/library")?"library":C.startsWith("/feed/subscriptions")?
"subscriptions":C.startsWith("/feed/trending")?"trending":C.startsWith("/feed/news_destination")?"news":C.startsWith("/playlist")?"playlist":C.startsWith("/minor_moment")?"minor_moment":C.startsWith("/playable/")||C.match("^/playables/(?!saved).")?"mini_app":C.startsWith("/playables")?"playables":C.startsWith("/create/live/join")?"open_in_app":C.startsWith("/feed/explore")?"explore":"browse"};
_.HoW=function(){var C=fY==null?void 0:fY.response,F=C==null?void 0:C.endpoint;if(!F)return(C==null?void 0:C.page)==="watch"?"watch":tYs();var G;C=(G=_.Z(F==null?void 0:F.commandMetadata,_.GU))==null?void 0:G.webPageType;G=!1;if(C&&!aqi.includes(C))switch(C){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 V;return((V=_.Z(F==null?void 0:F.commandMetadata,_.GU))==null?0:V.url)&&WTS(_.Z(F.commandMetadata,_.GU).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var J;return(F=(J=_.Z(F,_.iE))==null?void 0:J.browseId)?kM5[F]||"browse":"browse";default:G=!0}if(_.Z(F,_.hm)||_.Z(F,Ut5))return"sponsorship";J=WTS(window.location.href);if(J.startsWith("/experiments"))return"experiments";if(J.startsWith("/create_channel"))return"create_channel";
if(_.Z(F,_.jW)&&J.startsWith("/shorts"))return"shorts";if(_.Z(F,_.jW)&&J.startsWith("/watch"))return"watch";G&&(F=new _.Ay("Unsupported mWeb page type",{pathname:J,webPageType:C}),_.gD(F));return"browse"};
cl=function(C,F,G,V){return C&&F?C!==G||F!==V?(_.LY(Error("Kh"),void 0,void 0,{"stored-slot":C,"stored-layout":F,"latest-slot":G,"latest-layout":V}),!1):!0:!1};
yFo=function(C,F,G){return C({targetId:F},function(V){return G.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},V,{contents:[G.continuationItems?_.Z(G.continuationItems[0],lq9):{}]}):G.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},V,{header:G.continuationItems?G.continuationItems[0]:void 0}):Object.assign({},V,{contents:G.continuationItems?G.continuationItems:[]})})};
ZoS=function(C,F,G,V){if(F=F.trackingParams){var J,b=(J=G.getScreenLayer)==null?void 0:J.call(G);G=_.ZQ(b);J=_.lm(b);if(G&&J){var z=_.zS(F);_.y("combine_ve_grafts")?C.graftServerVe(F,J,b):_.vA(G,J,z);V==null||V(z)}}};
Oow=function(C){var F;return((F=NlS.get(C))==null?void 0:F.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
MY5=function(C,F){var G={type:F.slotType,controlFlowManagerLayer:X_W.get(F.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};F.slotEntryTrigger&&(G.entryTriggerType=F.slotEntryTrigger.triggerType);F.slotPhysicalPosition!==1&&(G.slotPhysicalPosition=F.slotPhysicalPosition);if(C){G.debugData={slotId:F.slotId};if(C=F.slotEntryTrigger)G.debugData.slotEntryTriggerData=w_5(C);C=F.slotFulfillmentTriggers;G.debugData.fulfillmentTriggerData=[];C=_.u(C);for(var V=C.next();!V.done;V=C.next())G.debugData.fulfillmentTriggerData.push(w_5(V.value));
F=F.slotExpirationTriggers;G.debugData.expirationTriggerData=[];F=_.u(F);for(C=F.next();!C.done;C=F.next())G.debugData.expirationTriggerData.push(w_5(C.value))}return G};
w_5=function(C,F){var G={type:C.triggerType};F!=null&&(G.category=F);C.triggeringSlotId!=null&&(G.triggerSourceData||(G.triggerSourceData={}),G.triggerSourceData.associatedSlotId=C.triggeringSlotId);C.triggeringLayoutId!=null&&(G.triggerSourceData||(G.triggerSourceData={}),G.triggerSourceData.associatedLayoutId=C.triggeringLayoutId);return G};
S7T=function(C,F,G,V){F={opportunityType:F};C&&(V||G)&&(V=_.ss(V||[],function(J){return MY5(C,J)}),F.debugData=Object.assign({},G&&G.length>0?{associatedSlotId:G}:{},V.length>0?{slots:V}:{}));
return F};
LTE=function(C){return Am(C.opportunityAdapterMap).concat(Am(C.triggerAdapterMap)).concat(Am(C.fulfillmentAdapterFactoryMap)).concat(Am(C.slotAdapterFactoryMap)).concat(Am(C.layoutRenderingAdapterFactoryMap))};
Am=function(C){var F=[];C=_.u(C.values());for(var G=C.next();!G.done;G=C.next())G=G.value,G.isAdsControlFlowEventListener&&F.push(G);return F};
dv=function(C){var F=C.slotId,G=C.slotType,V=C.slotPhysicalPosition;return F===void 0?new eV("Cannot construct a slot due to the missing id.",{adSlotMetadata:C}):G===void 0?new eV("Cannot construct a slot due to the missing type.",{adSlotMetadata:C}):V===void 0?new eV("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:C}):{slotId:F,slotType:G,slotPhysicalPosition:V,managerLayer:"external",adSlotLoggingData:C.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new BlA}};
vIE=function(C){var F=C.layoutId,G=C.layoutType;return F===void 0?new xb("Cannot construct a layout due to the missing id.",{adLayoutMetadata:C}):G===void 0?new xb("Cannot construct a layout due to the missing type.",{adLayoutMetadata:C}):{layoutId:F,layoutType:G,managerLayer:"external",adLayoutLoggingData:C.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new BlA,interactionLoggingAdsClientData:{}}};
fqB=function(C){if(C.querySelector("img")){var F=C.querySelector("img");F.addEventListener("error",function(){VOI(F.src).then(function(G){(G=_.g9(G).toString())?F.src=G:F.removeAttribute("src")}).catch(function(){F.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
qh=function(C,F){if(F&&(hYo(F.viewableCommand)||hYo(F.endOfSessionCommand))){var G=cFo(F==null?void 0:F.viewableCommand);F=cFo(F==null?void 0:F.endOfSessionCommand);if(!sI){var V=_.a8("custom_active_view_tos_timeout_ms");sI=V>0&&V!==36E5?new AFo(eYf(),V):new AFo(eYf())}dtA(sI,C);xt5(sI,C,G,F)}};
Pl=function(C){sI&&dtA(sI,C)};
eYf=function(){var C=_.TF("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(C==null?void 0:C.length)===2?C[1]:null};
hYo=function(C){C=_.ZD(C);return!(C==null||!C.loggingUrls)&&C.loggingUrls.length>0};
cFo=function(C){if(!C)return[];var F=[],G,V;((V=(G=_.ZD(C))==null?void 0:G.loggingUrls)!=null?V:[]).forEach(function(J){J.baseUrl&&F.push(J.baseUrl)});
return F};
s$i=function(C){if(_.y("stop_av_measurement_on_detach"))return function(){Pl(C)}};
q7E=function(C){return function(){_.y("stop_av_measurement_on_detach")&&Pl(C)}};
P45=function(C){if(_.y("stop_av_measurement_on_detach"))return function(){Pl(C)}};
gIi=function(C){return C.shorts.isDesktopSmallWidth};
_.RYB=function(C){return C.shorts.isShortsActive};
_.Y7f=function(C){return C.shorts.isWatchWhileMode};
_.gv=function(C){return C.shorts.isFullscreen};
_.Ry=function(C){return C.shorts.isShortsPipActive};
oIZ=function(C){var F,G;if(C=(F=_.Z(C.reelsAdCardButtoned,Tls))==null?void 0:(G=F.animatedRenderingConfig)==null?void 0:G.easeOutSeconds)return C+"s"};
KTf=function(C,F,G){return _.I(function(V){return V.return(new Promise(function(J){var b=new Image;b.onload=function(){J(new rF9(C,F,G,b.naturalWidth,b.naturalHeight))};
b.src=G.toString()}))})};
Dtw=function(C,F){return Math.round(C/1E-5)===Math.round(F/1E-5)};
p_I=function(C,F){return Math.round(C/1E-5)===Math.round(F/1E-5)};
mtZ=function(C,F){return C.year===F.year&&C.month===F.month&&C.day===F.day};
CUi=function(C,F){return C.year!==F.year?C.year<F.year:C.month!==F.month?C.month<F.month:C.day<F.day};
FXi=function(C){return C.day===j9w(C.year,C.month)?C.month===11?{year:C.year+1,month:0,day:1}:{year:C.year,month:C.month+1,day:1}:{year:C.year,month:C.month,day:C.day+1}};
GK9=function(){var C=new Date,F={year:C.getFullYear(),month:C.getMonth(),day:C.getDate()};return{start:F,end:{year:C.getFullYear()+2,month:C.getMonth(),day:C.getDate()},selectedDate:FXi(F)}};
VcA=function(C){return(new A4(2)).format(new Date(C.year,C.month,C.day))};
i8q=function(C){return{year:C.getFullYear(),month:C.getMonth(),day:C.getDate()}};
JfE=function(C,F){C=(C+(Number(F.utcOffsetSec)+(new Date(C*1E3)).getTimezoneOffset()*60))*1E3;F=i8q(new Date(C));return{date:F,secondsSinceMidnight:Math.floor((C-(new Date(F.year,F.month,F.day)).getTime())/1E3)}};
$$i=function(C,F){F=F.months.findIndex(function(G){return G.year===C.year&&G.month===C.month});
return F>=0?F:void 0};
b8E=function(C){if(!C)return!1;try{if(C.host&&C.host.tagName==="YT-FORMATTED-STRING"&&C.host.id==="contenteditable-textarea"||C.nodeType===Node.ELEMENT_NODE&&C.tagName==="YTD-COMMENTBOX")return!0}catch(F){return!1}return b8E(C.parentNode)};
Yb=function(C){return C?!(C.tagName!=="A"||!C.href||!C.classList.contains("yt-simple-endpoint")):!1};
nmS=function(C){return C?C.tagName==="IMG"&&C.classList.contains("emoji"):!1};
uzZ=function(C,F,G){if(!C)return null;var V=Yb(C);if(V&&G)return F=C.pathname.substring(C.pathname.indexOf("/channel/")+9),document.createTextNode("@"+F);if(V&&!G)return document.createTextNode("");if(nmS(C))return G=C.alt,C=C.dataset.emojiId,!C&&F&&(F=_.T3(F,G))&&F.isCustomEmoji&&(C=F.emojiId),C?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+C+">"):document.createTextNode(G);V=C.cloneNode(!1);for(var J=0;J<C.childNodes.length;++J){var b=uzZ(C.childNodes[J],F,G);b&&V.appendChild(b)}return V};
oy=function(C){return C?Yb(C)?C:oy(C.lastChild):null};
z9S=function(C){return C?Yb(C)?C:z9S(C.firstChild):null};
Q9E=function(C){if(!C)return null;for(var F=C.previousSibling;F;)if(F.nodeType===Node.ELEMENT_NODE&&F.nodeName==="BR")F=F.previousSibling;else if(F.nodeType===Node.TEXT_NODE&&/\s+/.test(F.textContent))F=F.previousSibling;else break;(F=oy(F))?C=F:C=(C=C.parentNode)?oy(C.previousElementSibling):null;return C};
Ixi=function(C){if(!C)return null;for(var F=C.nextSibling;F;)if(F.nodeType===Node.ELEMENT_NODE&&F.nodeName==="BR")F=F.nextSibling;else if(F.nodeType===Node.TEXT_NODE&&/\s+/.test(F.textContent))F=F.nextSibling;else break;return(F=z9S(F))?F:Ixi(C.parentNode)};
EmZ=function(C){var F=_.rv(),G=F.JSC$11350_getStartNode();if(!b8E(G.parentNode))return null;F=F.JSC$11350_getStartOffset();if(G.nodeType===Node.TEXT_NODE){var V=_.Yf(G,Yb);if(V){if(C&&F===0||!C&&F===G.length)return V}else{if(C&&F===G.length)return!G||G.nodeName==="BR"||G.nextElementSibling&&_.KY(G.nextElementSibling,"display")==="block"?null:z9S(G.nextElementSibling);if(!C&&F===0)return G?oy(G.previousElementSibling):null}}if(G.nodeType===Node.ELEMENT_NODE)if(C){if(0<=F&&F<G.childNodes.length)return z9S(G.childNodes[F])}else if(0<
F&&F<=G.childNodes.length)return oy(G.childNodes[F-1]);return null};
WXS=function(C,F,G){if(!C)return null;if(C.nodeType===Node.TEXT_NODE)if(G){var V=Q9E(C);if(V&&!/^\s+\S/.test(C.wholeText.substr(0,F)))return V}else if((V=Ixi(C))&&!/\S\s+/.test(C.wholeText.substr(F,C.wholeText.length)))return V;return C.nodeType===Node.ELEMENT_NODE?G?Q9E(C.childNodes[F]):Ixi(C.childNodes[F]):WXS(C.parentNode,F,G)};
tcs=function(C){if(C.hasChildNodes())switch(C.tagName){case "DIV":case "A":case "SPAN":var F="";for(C=C.firstChild;C;C=C.nextSibling)F+=tcs(C);return F;default:return""}else switch(C.nodeType){case 3:return C.textContent;default:return""}};
DR=function(C,F){return C.year===F.year&&C.month===F.month&&C.day===F.day};
pY=function(C,F){return C.year!==F.year?C.year<F.year:C.month!==F.month?C.month<F.month:C.day<F.day};
axT=function(C){return{year:C.getFullYear(),month:C.getMonth(),day:C.getDate()}};
kKZ=function(C){var F=sri;F=F===void 0?sri:F;F(new Date(C.year,C.month,C.day))};
me=function(C){return axT(new Date(Number(C.seconds)*1E3))};
U$q=function(C){return C.year!==void 0&&C.month!==void 0&&C.day!==void 0};
H8I=function(C){return C.start!==void 0&&C.end!==void 0};
lxT=function(C){return H8I(C)?C.start:C};
yf9=function(C){return H8I(C)?C.end:void 0};
NOi=function(C,F){for(var G=[],V=new Date(C.start.year,C.start.month);V.getFullYear()<C.end.year||V.getFullYear()===C.end.year&&V.getMonth()<=C.end.month;){var J=G,b=J.push,z=V.getFullYear(),Q=V.getMonth(),E=C,t=F,k=void 0,U=[],H=Object.freeze({extraCssClass:"invisible"}),l=new Date(z,Q),N=axT(l);l=l.getDay();for(var S=axT(new Date);N.month===Q;){l!==Z8A&&k||(k=Array.from({length:7}).fill(H),U.push(k));var f={date:{year:z,month:Q,day:N.day},extraCssClass:"",debugClass:""};f.extraCssClass=t(f.date,
N,S,E).trim();k[(l-Z8A+7)%7]=f;N=N.day===j9w(N.year,N.month)?N.month===11?{year:N.year+1,month:0,day:1}:{year:N.year,month:N.month+1,day:1}:{year:N.year,month:N.month,day:N.day+1};l=(l+1)%7}b.call(J,{weeks:U,monthLabel:C3.SHORTMONTHS[Q]+" "+z,year:z,month:Q,monthLabelExtraCssClass:U[0][2]===H?"shift-down-label":""});V.setMonth(V.getMonth()+1)}return G};
O85=function(C,F){F=F.months.findIndex(function(G){return G.year===C.year&&G.month===C.month});
return F>=0?F:void 0};
wGA=function(C,F){a:{var G=G===void 0?[2,3]:G;G=_.u(G);for(var V=G.next();!V.done;V=G.next()){var J=new Date;if((new XGq(V.value)).parse(F,J,{validate:!0})){J.setHours(0,0,0,0);F=J;break a}}F=null}if(!F)return{isValid:!1,value:void 0};F=axT(F);G=C.end;return pY(F,C.start)||pY(G,F)?{isValid:!1,value:void 0}:{isValid:!0,value:F}};
vms=function(C){var F=Mcw;F=F===void 0?Sxf:F;var G=C.columnsToShow||[],V=LXI(C.columnDimensions,C.columnsToShow,C.leftFloatingColumns,F);return G.map(function(J,b){var z=C.columns[J];if(z===void 0)throw Error("Qh");var Q=V?V[b]:"";var E=C.getCustomTooltip?C.getCustomTooltip(J,z.headerTooltipParagraphs):z.headerTooltipParagraphs;var t=BOI(C,J);return{type:J,index:b,style:Q,classes:t,headerName:z.headerName||"",headerIcon:z.headerIcon,headerTooltipParagraphs:E||[],headerTooltipHelpContext:z.headerTooltipHelpContext,
sortOrders:z.sortOrders||[],selectionState:z.isSelectionCheckbox?C.selectionState:void 0}})};
BOI=function(C,F){var G=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],V=C.columns[F];if(V===void 0)return"";var J=G.includes("DEFAULTS")&&V.cssClass?[V.cssClass]:[];if(G.includes("SORTING")){V.sortOrders&&V.sortOrders.length&&J.push("sortable");if(C.sorting&&C.sorting.columnType===F)a:switch(C.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var b="column-sorted";break a;default:b=""}else b="";b&&J.push(b)}G.includes("FLOATING")&&(F=C.columnsToShow.indexOf(F),C.leftFloatingColumns&&F<C.leftFloatingColumns&&
J.push("floating-column"),C.leftFloatingColumns&&F===C.leftFloatingColumns-1&&J.push("last-floating-column"));G.includes("RIGHT_ALIGN")&&V.rightAlignHeader&&J.push("right-align");return J.filter(function(z){return z}).join(" ")};
LXI=function(C,F,G,V){G=G===void 0?0:G;V=V===void 0?Sxf:V;if(C){var J=[],b=0;fxS(C,F,V).forEach(function(z,Q){var E="min-width:"+z.minWidth+"px;padding-left:"+z.paddingLeft+"px;padding-right:"+z.paddingRight+"px;flex:"+z.flexGrow+" 0 "+z.minWidth+"px;";z.maxWidth!==Infinity&&(E=[E,"max-width:"+z.maxWidth+"px;"].join(""));b>0&&Q<G&&(E=[E,"left:"+b+"px;"].join(""));J.push(E);b+=z.minWidth+z.paddingLeft+z.paddingRight});
return J}};
fxS=function(C,F,G){G=G===void 0?Sxf:G;return F.map(function(V,J){V=C&&C[V]||{};var b=J===0?G.paddingLeftFirstColumn:G.padding;V.paddingLeft!==void 0&&(b=V.paddingLeft);J=J===F.length-1?G.paddingRightLastColumn:G.padding;V.paddingRight!==void 0&&(J=V.paddingRight);return{paddingLeft:b,paddingRight:J,minWidth:V.minWidth!==void 0?V.minWidth:G.minWidth,maxWidth:V.maxWidth!==void 0?V.maxWidth:G.maxWidth,flexGrow:V.flexGrow!==void 0?V.flexGrow:G.flexGrow}})};
h9i=function(C){var F=C.reduce(function(V,J){var b=J.columnId,z={};J.headerText&&(z.headerName=_.dd(J.headerText));J.rightAlignHeader&&(z.rightAlignHeader=J.rightAlignHeader);var Q;if((Q=J.headerIcon)==null?0:Q.iconType)z.headerIcon=_.p5(J.headerIcon.iconType);V[b]=z;return V},{}),G=C.filter(function(V){return!V.hideColumn}).map(function(V){return V.columnId});
C=C.filter(function(V){return!!V.dimensions}).reduce(function(V,J){V[J.columnId]=J.dimensions;
return V},{});
return{columns:F,columnsToShow:G,columnDimensions:C}};
_.cfw=function(C){return C?C.simpleText?C.simpleText:C.runs?C.runs.map(function(F){return F.text}).join(""):"":""};
qxS=function(C){var F=C.data;var G=C.onTap;var V=C.isSelected;var J=C.onFocusIn;if(!F)return{};C=AfW(F);V===void 0&&(V=F==null?void 0:F.isSelected);var b;return{text:e99(F,C),startIcon:(b=F.icon)==null?void 0:b.iconType,state:V?0:2,type:0,style:d$W(F),onTap:x$o(F,G),accessibilityLabel:s9w(F,C),onFocusIn:function(){return J==null?void 0:J()}}};
e99=function(C,F){if(!F)return C.text?_.cfw(C.text):void 0};
d$W=function(C){var F;switch((F=C.style)==null?void 0:F.styleType){case "STYLE_AI_CUSTOMIZED_FEED_CHIP":return 0}};
x$o=function(C,F){return function(G){F==null||F(G,C)}};
AfW=function(C){C=C.style&&C.style.styleType;return!io5&&C==="STYLE_EXPLORE_LAUNCHER_CHIP"};
s9w=function(C,F){if(F){var G,V,J;return(J=(G=C.accessibilityData)==null?void 0:(V=G.accessibilityData)==null?void 0:V.label)!=null?J:e99(C,!1)}};
jZ=function(C){return{signalAction:{signal:C}}};
R99=function(){return _.TF("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?PUs:_.gmi};
YxI=function(C,F){C=C===void 0?"SOFT_RELOAD_PAGE":C;F=F===void 0?49504:F;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.YB(_.iQ("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:F}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:C}}]}}}};
TOB=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.YB(_.iQ("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:R99()}};
om5=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.YB(_.iQ("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:R99()}};
rfZ=function(C,F){var G=_.YB(_.iQ("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),V=_.YB(_.iQ("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),J={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.YB(_.iQ("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};J.serviceEndpoint=C?C:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[jZ("SOFT_RELOAD_PAGE")]}};return{title:G,bodyText:V,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:J},
style:{value:F!=null?F:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
D$I=function(C){C=C===void 0?{}:C;return{title:_.YB(C.localizedZeroStateTitleText===void 0?"":C.localizedZeroStateTitleText),bodyText:_.YB(C.localizedZeroStateMessage===void 0?"":C.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.YB(C.localizedZeroStateButtonText===void 0?"":C.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[KXo]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
m$W=function(C){C=C===void 0?{}:C;return{title:_.YB(C.localizedOptInBannerTitleText===void 0?"":C.localizedOptInBannerTitleText),titleLength:19,subtitle:_.YB(C.localizedOptInMessage===void 0?"":C.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.YB(_.iQ("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:_.YB(_.iQ("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:[pGA]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
Fa5=function(C,F){var G=F=F===void 0?{}:F;F=G.offlineTitleText===void 0?"":G.offlineTitleText;var V=G.offlineDescriptionText===void 0?"":G.offlineDescriptionText,J=G.formattedSupplementalText,b=G.actionButtonText===void 0?"":G.actionButtonText,z=G.titleText===void 0?"":G.titleText;G=G.descriptionText===void 0?"":G.descriptionText;var Q={title:b,accessibilityText:b,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{browseEndpoint:{browseId:"SPunlimited"},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse",rootVe:93498,url:"/premium",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}}};C||(z=F,G=V,Q={title:b,accessibilityText:b,style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_DISABLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:266213}}});
return{title:_.YB(z),titleLength:z.length,overrideTitleMaxFontSize:30,subtitle:_.YB(G),supplementalText:J,primaryButton:{buttonViewModel:Q},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[CDI]},darkTileImage:{thumbnails:[j2o]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.imI=function(C,F,G,V,J,b,z,Q,E,t,k){J=J===void 0?!1:J;b=b===void 0?!1:b;z=z===void 0?0:z;Q=Q===void 0?-Infinity:Q;E=E===void 0?!1:E;t=t===void 0?!1:t;k=k===void 0?!1:k;var U=[],H=_.YB(_.iQ("SMART_DOWNLOADS",void 0,"Smart downloads")),l=_.YB(GXq(z,Q,C.length));Q=z=void 0;t?z={statementBannerRenderer:Fa5(k,V)}:J?C.length>0?Q=VD5(C,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.y("kevlar_manual_downloads_above"),H,l):E?Q={alertBannerViewModel:{heading:{content:G.localizedOptInBannerTitleText===
void 0?"":G.localizedOptInBannerTitleText},body:{content:G.localizedPromptMessage===void 0?"":G.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.iQ("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.iQ("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:_.UQf}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:b&&(Q={backgroundPromoRenderer:{bodyText:_.YB(_.iQ("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"}}}):
b&&(Q={alertBannerViewModel:{heading:{content:G.localizedOptInBannerTitleText===void 0?"":G.localizedOptInBannerTitleText},body:{content:G.localizedOptInMessage===void 0?"":G.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.iQ("TURN_ON",void 0,"Turn on"),accessibilityText:_.iQ("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}}}}}});G=_.YB(_.iQ("YOUR_DOWNLOADS",void 0,"Your downloads"));V=void 0;F.length>0?(V=void 0,_.y("kevlar_display_downloads_numbers")&&(V=_.YB(_.J3("VIDEO_COUNT",F.length))),V=VD5(F,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,G,V)):J||C.length||
t||(V={backgroundPromoRenderer:{bodyText:_.YB(_.iQ("VIDEOS_WILL_APPEAR_HERE",void 0,"Videos you download will appear here")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/downloads_empty_state.png"}]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:120848}}}});z?U.push({richSectionRenderer:{content:z}}):Q&&!_.y("kevlar_manual_downloads_above")&&U.push({richSectionRenderer:{content:Q,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
V&&U.push({richSectionRenderer:{content:V,loggingDirectives:{clientVeSpec:{uiType:51721}}}});Q&&_.y("kevlar_manual_downloads_above")&&U.push({richSectionRenderer:{content:Q,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(F.length>0||J&&C.length>0&&!t)&&U.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.YB(_.iQ("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:U}};
_.$Cs=function(C){return Jqo(C,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.bmS=function(C){return Jqo(C,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
Jqo=function(C,F){var G=[];C=VD5(C,F,!0);G.push({richSectionRenderer:{content:C}});return{contents:G}};
VD5=function(C,F,G,V,J){G=G===void 0?!1:G;var b="RESPONSIVE_SIZE_STANDARD";_.y("kevlar_standard_rich_grid_on_offline_home")&&F==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?b="RESPONSIVE_SIZE_STANDARD":_.y("kevlar_modern_downloads_compact")?b="RESPONSIVE_SIZE_COMPACT":_.y("kevlar_modern_downloads_extra_compact")?b="RESPONSIVE_SIZE_EXTRA_COMPACT":_.y("kevlar_modern_downloads_tiny")&&(b="RESPONSIVE_SIZE_TINY");C={isExpanded:G,contents:Fc(C),entitySelectorType:F,responsiveContainerConfiguration:{responsiveSize:b}};
V&&(C.title=V);J&&(C.subtitle=J);G||(_.y("kevlar_smart_downloads_show_more_button")?(C.showMoreButton={buttonRenderer:{accessibility:{label:_.iQ("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.YB(_.iQ("SHOW_MORE",void 0,"Show more"))}},C.showLessButton={buttonRenderer:{accessibility:{label:_.iQ("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.YB(_.iQ("SHOW_LESS",void 0,"Show less"))}}):(C.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.iQ("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}}}},C.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.iQ("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}}}},C.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.iQ("VIEW_ALL",void 0,"View all"),accessibilityText:_.iQ("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:_.gh("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:C}};
Fc=function(C){var F=[];C=_.u(C);for(var G=C.next();!G.done;G=C.next())if(G=G.value,FPo(G)){var V=F,J=V.push;var b=void 0;if(G==null?0:(b=G.videoEntity)==null?0:b.videoId){b=MW(_.s3().getState(),G.videoEntity.videoId);var z=_.s3().getState();var Q=_.C7(G.videoEntity.videoId,"mainVideoEntity");z=!!_.WY(z.entities)[Q];z={videoId:G.videoEntity.videoId,title:TU(G.videoEntity.title),shortBylineText:TU(G.channelEntity.title),thumbnail:G.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:z&&_.y("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:vXT(G.videoEntity.videoId,b,G.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.iQ("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};G.videoEntity.lengthSeconds&&(z.thumbnailOverlays=iRo(G.videoEntity.lengthSeconds,b));z.isWatched=b>0;_.y("kevlar_modern_downloads_page")&&(z.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:G.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.iQ("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},z.badges=void 0);G=z}else G={};J.call(V,{richItemRenderer:{content:{videoRenderer:G},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(jkS(G)){V=F;J=V.push;var E=Q=b=void 0,t=void 0,k=void 0,U=void 0,H=void 0,l=void 0,N=void 0,S=void 0,f=void 0,c=void 0;z=G.mainPlaylistEntity.playlistId;var A=G==null?void 0:(c=G.mainPlaylistEntity)==null?void 0:(f=c.thumbnailStyleData)==null?void 0:(S=f[0])==null?void 0:(N=S.value)==null?void 0:(l=N.collageThumbnail)==
null?void 0:l.coverThumbnail;if(z&&A){l=fps(z);!_.y("enable_offline_playlist_page")&&(G==null?0:(H=G.mainPlaylistEntity)==null?0:H.videos)&&(H=G==null?void 0:(U=G.mainPlaylistEntity)==null?void 0:(k=U.videos)==null?void 0:k[0],k=_.D8(H).entityId,k=JSON.parse(k).videoId,k!==void 0&&(l=MW(_.s3().getState(),k),l=_.RQ(k,z,void 0,void 0,l)));k=[];if(G==null?0:(t=G.mainPlaylistEntity)==null?0:(E=t.videos)==null?0:E.length)E=nPq(),t=Object,k=t.assign,U=(U=bKo(G==null?void 0:G.mainPlaylistEntity.videos.length))?
{thumbnailOverlaySidePanelRenderer:{text:_.YB(U),icon:{iconType:"PLAYLISTS"}}}:void 0,k=[E,k.call(t,{},(Q=U)!=null?Q:{})];G={playlistId:z,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:A}},navigationEndpoint:l,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:k,title:TU(G.mainPlaylistEntity.title),shortBylineText:TU(G==null?void 0:(b=G.channelEntity)==null?void 0:b.title),badges:[{metadataBadgeRenderer:{label:_.iQ("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};
_.y("kevlar_modern_downloads_page")&&(G.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:n7W,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:z,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.iQ("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},G.badges=void 0)}else G=void 0;J.call(V,{richItemRenderer:{content:{playlistRenderer:G},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return F};
GXq=function(C,F,G){C=C?um9(C):"";F!==void 0&&isFinite(F)?F===0?F=_.iQ("UPDATING",void 0,"Updating..."):(F=Vtf(new Date(F),new Date),F=_.iQ("UPDATED_TIME",{relative_time:F},"Updated "+F)):F="";var V="";C&&F&&(V=" \u2022 ");if(G&&_.y("kevlar_display_downloads_numbers")){G=_.J3("VIDEO_COUNT",G);if(C||F)V=" \u2022 ";return G+V+C+V+F}return C+V+F};
z4B=function(C){return T6A(C.entities).length};
_.Q2s=function(C,F){var G=wv(C.responsiveSize),V;C=!((V=C.responsiveMap)==null||!V.some(function(J){return J.containerSize==="CONTAINER_SIZE_NARROW"&&J.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:F,sizing:G,enableFullBleedForSingleCol:!1,isCompactList:G==="COMPACT"&&C}};
Imf=function(C,F){return _.jN(C.entities,"votingEntity",F)};
GZ=function(C){if(C){var F;return((F=_.I8().resolve(_.Qt(_.v6)))==null?0:F())?C.darkTheme:C.lightTheme}};
E7w=function(C,F){if(C.simpleText)return Object.assign({},C,{simpleText:SR(C.simpleText,F)});if(!C.runs)return C;for(var G=Object.assign({},C,{runs:[]}),V=0,J=_.u(C.runs),b=J.next();!b.done;b=J.next())if(b=b.value,b.text)if(V+b.text.length<=F)G.runs.push(b),V+=b.text.length;else return G.runs.push(Object.assign({},b,{text:SR(b.text,F-V)})),G;return C};
WaB=function(C,F){return _.jN(C.entities,"chipBarStateEntity",F)};
tD5=function(C,F){return _.jN(C.entities,"chipEntity",F)};
kXo=function(C,F,G,V){return function(){var J=amI.has(C.displayType)&&C.selected,b=J&&C.deselectCommand?C.deselectCommand:C.tapCommand;!b||J&&V||_.wQ(b,{form:{element:F==null?void 0:F.value}});G==null||G()}};
UC9=function(C){switch(C){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"dividerViewModelBaseDividerFullBleed4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"dividerViewModelBaseDividerFullBleedThick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"dividerViewModelBaseDividerFullBleed8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"dividerViewModelBaseDividerFullBleed12px";default:return""}};
HmW=function(C,F){return{triggeringElement:C,onDwellTriggeredFn:function(){var G={triggeringElement:C,loadVideoPreviewEventData:F},V=document.querySelector(".video-preview");V&&V.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:G}))},
onDwellEndFn:function(){var G=document.querySelector(".video-preview");G&&G.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
lmq=function(C,F){var G=_.I8().resolve(_.Qt(HUs)),V=function(){var J=F();return G&&J?HmW(C.value,J):null};
_.sq(function(){var J=V();G&&J&&Promise.resolve().then(function(){G.registerElement(J)});
_.q0(function(){G&&J&&Promise.resolve().then(function(){_.Nh(G,J)})})},"csPUge")};
ZmS=function(C){var F=C.dataset.resizeObserverId;if(F)return F;F=""+yqA++;return C.dataset.resizeObserverId=F};
NC9=function(C,F){var G=ZmS(C);V6.has(G)||V6.set(G,new Set);V6.get(G).add(F);id.has(G)&&F(Object.assign({},{target:C},id.get(G)))};
Omi=function(C){C=_.u(C);for(var F=C.next();!F.done;F=C.next()){F=F.value;var G=ZmS(F.target),V=Object.assign({},{target:F.target},id.get(G));if(V!=null&&V.contentRect?V.contentRect.width!==F.contentRect.width||V.contentRect.height!==F.contentRect.height:1)for(id.set(G,{borderBoxSize:F.borderBoxSize,contentBoxSize:F.contentBoxSize,contentRect:F.contentRect,devicePixelContentBoxSize:F.devicePixelContentBoxSize}),G=_.u(V6.get(G)||[]),V=G.next();!V.done;V=G.next())V=V.value,V(F)}};
wFo=function(){return Jk?Jk:Jk=new XF9(Omi)};
MDT=function(C,F){var G=ZmS(C);V6.has(G)&&(V6.get(G).delete(F),V6.get(G).size===0&&(V6.delete(G),id.delete(G),Jk.unobserve(C),delete C.dataset.resizeObserverId));V6.size===0&&Jk&&(Jk.disconnect(),Jk=void 0)};
LaZ=function(C,F){var G=_.I8().resolve(E8);return SuZ.map(function(V){return G.observe(C,F,V)})};
BCA=function(C){var F=_.I8().resolve(E8);C.forEach(function(G){F.unobserveByKey(G)})};
_.h4T=function(C,F){var G=Object.assign({},v7q,F);F=_.u(q1q());var V=F.next().value,J=F.next().value,b=function(z){var Q=z.contentRect.height;if((z=z.contentRect.width)||Q||G.canHaveZeroSize)V.width()===z&&V.height()===Q||J(V,{height:Q,width:z})};
_.q4(function(){var z=C instanceof HTMLElement?C:C.value,Q=fmZ(b,G.throttleMs),E=[];G.useVisibilityObserver&&(E=LaZ(z,function(t,k){requestAnimationFrame(function(){k==="visible"?(NC9(z,Q),wFo().observe(z)):MDT(z,Q)})}));
E.length||(NC9(z,Q),wFo().observe(z));_.q0(function(){E.length&&(BCA(E),E.length=0);MDT(z,Q)})});
return V};
AqA=function(C,F,G,V,J){C=F?C.switchOffCommand:C.switchOnCommand;if(V&&J)cqZ(C,G,J);else{var b,z;(b=_.O9({elementsCommand:C}))==null||(z=b.onclick)==null||z.call(b,G)}};
cqZ=function(C,F,G){C=_.O9({elementsCommand:C,additionalCommandArgs:{commandController:{onSuccess:function(){G(!1)},
onServerError:function(){G(!1)}}}});
if(C==null?0:C.onclick)C.onclick(F),G(!0)};
dCw=function(C){if(C)return _.Z(C,e4B)};
xCZ=function(C,F){if(!((C==null?0:C.entitySelectorType)&&(C==null?0:C.entityKey)))return{};switch(C.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":if(_.y("enable_web_shorts_captions_language_command")){var G;var V=(G=_.jV())==null?void 0:G.getOption("captions","track");var J,b=typeof(V==null?void 0:V.translationLanguage)==="object"&&((J=V.translationLanguage)==null?void 0:J.languageName)||(V==null?void 0:V.displayName)||"";V={data:Object.assign({},
!!b&&{selectionText:{content:b}},!!b&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:typeof V==="undefined"})}}else V={};return V;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.y("web_shorts_audio_track_picker")){var z;J=((z=_.jV())==null?void 0:z.getAudioTrack())||void 0;G=J==null?void 0:(b=J.getLanguageInfo())==null?void 0:b.getName();J={data:Object.assign({},{selectionText:{content:G}},G&&!(J==null?0:(V=J.getLanguageInfo())==
null?0:V.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}}else J={};return J;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":return V=C!=null&&C.entityKey?(V=_.mr(F,C.entityKey))?{isHidden:(V==null?void 0:V.adsState)!=="ADS_STATE_PLAYING"}:{isHidden:!0}:{},V;default:return{}}};
s2B=function(C){var F=["A".toString(),"BUTTON".toString()];return function(G){var V=function(J){_.kb(_.ay(J),G,F)||C(J)};
G.addEventListener("click",V);return function(){G.removeEventListener("click",V)}}};
_.quT=function(C){return function(){return _.Z(C(),_.$Z)}};
PDf=function(C){switch(C==null?void 0:C.all){case "LINEAR_LAYOUT_SPACE_S1":return 4;case "LINEAR_LAYOUT_SPACE_S2":return 8;case "LINEAR_LAYOUT_SPACE_S3":return 12;case "LINEAR_LAYOUT_SPACE_S4":return 16;case "LINEAR_LAYOUT_SPACE_S5":return 20;case "LINEAR_LAYOUT_SPACE_S6":return 24;case "LINEAR_LAYOUT_SPACE_S7":return 28;case "LINEAR_LAYOUT_SPACE_S8":return 32;case "LINEAR_LAYOUT_SPACE_S9":return 36;case "LINEAR_LAYOUT_SPACE_S10":return 40;default:return 0}};
g7Z=function(C){var F={};(C==null?void 0:C.flexDirection)==="FLEX_DIRECTION_ROW"||(C==null?void 0:C.flexDirection)==="FLEX_DIRECTION_ROW_REVERSE"?F["margin-right"]=(0,_.bd)(function(){return PDf(C==null?void 0:C.gap)}):F["margin-bottom"]=(0,_.bd)(function(){return PDf(C==null?void 0:C.gap)});
return F};
R4f=function(C){switch(C){case "FLEX_DIRECTION_COLUMN_REVERSE":return"ytLinearLayoutViewModelFlexDirectionColumnReverse";case "FLEX_DIRECTION_ROW":return"ytLinearLayoutViewModelFlexDirectionRow";case "FLEX_DIRECTION_ROW_REVERSE":return"ytLinearLayoutViewModelFlexDirectionRowReverse";default:return"ytLinearLayoutViewModelFlexDirectionColumn"}};
YuS=function(C){switch(C){case "JUSTIFY_CONTENT_CENTER":return"ytLinearLayoutViewModelJustifyContentCenter";case "JUSTIFY_CONTENT_FLEX_END":return"ytLinearLayoutViewModelJustifyContentFlexEnd";case "JUSTIFY_CONTENT_SPACE_AROUND":return"ytLinearLayoutViewModelJustifyContentSpaceAround";case "JUSTIFY_CONTENT_BETWEEN":return"ytLinearLayoutViewModelJustifyContentBetween";case "JUSTIFY_CONTENT_SPACE_EVENLY":return"ytLinearLayoutViewModelJustifyContentSpaceEvenly";default:return"ytLinearLayoutViewModelJustifyContentFlexStart"}};
TCI=function(C){switch(C){case "ALIGN_ITEMS_START":return"ytLinearLayoutViewModelAlignItemsStart";case "ALIGN_ITEMS_END":return"ytLinearLayoutViewModelAlignItemsEnd";case "ALIGN_ITEMS_CENTER":return"ytLinearLayoutViewModelAlignItemsCenter";case "ALIGN_ITEMS_BASELINE_FIRST":return"ytLinearLayoutViewModelAlignItemsBaselineFirst";case "ALIGN_ITEMS_BASELINE_LAST":return"ytLinearLayoutViewModelAlignItemsBaselineLast";default:return"ytLinearLayoutViewModelAlignItemsStretch"}};
pFs=function(C,F,G){if(F)return[o7S];switch(C){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[n3];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return G?[n3]:[rqo,n3];case "TRANSFER_STATE_PAUSED_BY_USER":return[Kai,n3];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[DCS,n3];default:return[o7S]}};
mCf=function(C,F,G,V){return pFs(C,F,V).map(function(J){var b=J.text,z=J.iconType,Q=J.videoAction;J=J.playlistAction;b=b?{content:b}:void 0;z=z&&{sources:[{clientResource:{imageName:z}}]};var E=(0,_.xf.unsafeClone)(G);if(E){var t=_.Z(E,_.VJ),k=_.Z(E,_.Jm);t&&Q?t.action=Q:k&&J&&(k.action=J)}return{title:b,leadingImage:z,rendererContext:E&&{commandContext:{onTap:{innertubeCommand:E}}}}})};
CBW=function(C){C=_.UI(C.rendererContext);var F;return(F=_.Z(C,_.Jm))==null?void 0:F.playlistId};
jzo=function(C){var F;return(F=C.listItems)==null?void 0:F.some(function(G){var V;return _.Hl((V=_.Z(G,_.QJ))==null?void 0:V.rendererContext)})};
Vfs=function(C){var F;return(F=C.listItems)==null?void 0:F.some(function(G){var V,J,b=(J=(V=_.Z(G,Fq5))==null?void 0:V.defaultListItem)!=null?J:G;G=_.Z(b,_.QJ);return!!_.Z(G==null?void 0:G.leadingAccessory,GJf)})};
$PI=function(C){var F=C.element;var G=C.veType;var V=C.storedVisualElement===void 0?null:C.storedVisualElement;var J=C.elementIndex===void 0?0:C.elementIndex;C=C.clientYouTubeData;var b=_.ZQ();b!==iMZ&&(J0w.clear(),iMZ=b);if(F.visualElement&&J0w.has(F.visualElement))return null;if(V&&J0w.has(V))return F.visualElement=V,null;G=_.Vp(_.ia(),{veType:G,elementIndex:J,clientYouTubeData:C});if(!G)return null;F.visualElement=G;J0w.add(G);return G};
_.ud=function(C,F,G,V){G=G===void 0?null:G;V=V===void 0?hLo:V;var J=J===void 0?null:J;tC(function(){if(F){G instanceof Function&&(G=G());var b=$PI({element:F,veType:C,storedVisualElement:G,clientYouTubeData:void 0});b&&(eLS(F,J),V(b))}})};
zZ=function(C){var F=_.I8().resolve(_.Qt(_.v6));return F!=null&&F()?C.darkThemeColorPalette:C.lightThemeColorPalette};
Iv=function(C){return{primaryTextColor:Q6(C,0),secondaryTextColor:Q6(C,1),optionColor:Q6(C,2),backgroundColor:Q6(C,3),videoBackgroundColor:Q6(C,4)}};
Q6=function(C,F){if(C){switch(F){case 0:C=C.primaryTitleColor;break;case 1:C=C.secondaryTitleColor;break;case 2:C=C.surgeColor;break;case 3:C=C.section2Color;break;case 4:C=C.section3Color;break;default:return}if(C)return _.Hr(C)}};
Ep=function(C,F){if(C){switch(F){case 0:C=C.primaryTitleColor;break;case 1:C=C.secondaryTitleColor;break;case 2:C=C.surgeColor;break;case 3:C=C.section2Color;break;case 4:C=C.section3Color;break;default:return}if(C)return _.Hr(C)}};
bMI=function(C){return C?_.lE(C):""};
n49=function(C){return(C==null?void 0:C.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
uZE=function(C,F){return _.jN(C.entities,"videoOverviewAsyncDataEntity",F)};
zDo=function(C,F){var G;return"linear-gradient(to bottom, "+((G=F==null?void 0:F.map(function(V){var J=C?V.darkThemeColor:V.lightThemeColor;return J?_.lE(J)+" "+((V==null?void 0:V.startLocation)||0)*100+"%":"transparent"}))==null?void 0:G.join(", "))+")"};
QzA=function(C,F,G,V,J){if(!((V==null?0:V.height)&&(V==null?0:V.width)))return{size:0};var b=V.width;V=V.height;if(J)return F==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||F==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&b>V?{size:312/ReS}:F==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(G!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||C!==1&&C!==2||F!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&F!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&F!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(F==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||F==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||V===b)switch(C){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(F==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||V>b)switch(C){case 1:case 3:return{size:240*gYo};default:return{size:360*gYo}}switch(C){case 1:case 2:return{size:1/ReS*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.ICS=function(C){if(!("matchMedia"in window))return _.CD(Error("Rh")),function(){return!1};
var F=window.matchMedia(C);C=_.u(_.yH(F.matches,void 0,"jLJc8e"));var G=C.next().value,V=C.next().value,J=function(b){V(b.matches)};
F.addEventListener?(F.addEventListener("change",J),_.q0(function(){F.removeEventListener("change",J)})):F.addListener&&(F.addListener(J),_.q0(function(){F.removeListener(J)}));
return G};
E4E=function(C){return C==="IMAGE_BANNER_STYLE_INSET"||C==="IMAGE_BANNER_STYLE_UNKNOWN"};
WqZ=function(){if(!("matchMedia"in window))return _.CD(Error("Rh")),function(){return 0};
var C=PQ(function(){return window.matchMedia("(max-width: 527.9px)")}),F=PQ(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),G=PQ(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),V=PQ(function(){return window.matchMedia("(min-width: 1024px)")}),J=_.u(_.yH(C.matches,void 0,"og9kEc")),b=J.next().value,z=J.next().value;
J=_.u(_.yH(F.matches,void 0,"ybDWCb"));var Q=J.next().value,E=J.next().value;J=_.u(_.yH(G.matches,void 0,"o0Gfh"));var t=J.next().value,k=J.next().value;J=_.u(_.yH(V.matches,void 0,"yqUUgd"));var U=J.next().value,H=J.next().value,l=PQ(function(){return function(c){z(c.matches)}}),N=PQ(function(){return function(c){E(c.matches)}}),S=PQ(function(){return function(c){k(c.matches)}}),f=PQ(function(){return function(c){H(c.matches)}});
_.q4(function(){C.addEventListener?(C.addEventListener("change",l),F.addEventListener("change",N),G.addEventListener("change",S),V.addEventListener("change",f)):C.addListener&&(C.addListener(l),F.addListener(N),G.addListener(S),V.addListener(f));_.q0(function(){C.removeEventListener?(C.removeEventListener("change",l),F.removeEventListener("change",N),G.removeEventListener("change",S),V.removeEventListener("change",f)):C.removeListener&&(C.removeListener(l),F.removeListener(N),G.removeListener(S),
V.removeListener(f))})});
return function(){return b()?1:Q()?2:t()?3:U()?4:0}};
tff=function(C){var F=0;C=_.u([C.title,C.metadata,C.actions,C.description,C.attribution]);for(var G=C.next();!G.done;G=C.next())G.value&&F++;return F};
aCT=function(C){return C===1||C===2?1:0};
UPo=function(C){C=(new kJf).parse(C);return(new S3).render(C).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(F){var G=F.split(":").map(Number),V=0,J=0;if(G.length===3)G=_.u(G),V=G.next().value,J=G.next().value,G=G.next().value;else if(G.length===2)G=_.u(G),J=G.next().value,G=G.next().value;else if(G.length===1)G=_.u(G).next().value;else throw Error("Sh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(V*3600+J*60+G)+'" role="button">'+F+"</span>"})};
HM9=function(C){C=_.u(C.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var F=C.next(),G={};!F.done;G={clickHandler$jscomp$5:void 0},F=C.next()){F=F.value;G.clickHandler$jscomp$5=function(J){J=Number(J.target.getAttribute("data-time"));if(isNaN(J))throw Error("Th");var b;(b=_.jV())==null||b.seekTo(J,!0)};
var V=function(J){return function(b){b.key!=="Enter"&&b.key!=="Space"||(0,J.clickHandler$jscomp$5)(b)}}(G);
F.setAttribute("tabindex","0");F.removeEventListener("click",G.clickHandler$jscomp$5);F.removeEventListener("keydown",V);F.addEventListener("click",G.clickHandler$jscomp$5);F.addEventListener("keydown",V)}};
lCq=function(){return _.W("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.W(Wx,{percentWidth:100}),_.W(Wx,{animationDelay:200}),_.W(Wx,{animationDelay:400}),_.W(Wx,{animationDelay:600}),_.W(Wx,{animationDelay:800,percentWidth:60}),_.W("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.W(Wx,{percentWidth:100}),_.W(Wx,{animationDelay:200}),_.W(Wx,{animationDelay:400}),_.W(Wx,{animationDelay:600,percentWidth:50}))};
Wx=function(C){return _.W("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(C.percentWidth===void 0?100:C.percentWidth)+"%"},_.W("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(C.animationDelay===void 0?0:C.animationDelay)+"ms"}))};
y0S=function(){var C=_.u(_.yH(function(){return""},void 0,"dXJHWc")),F=C.next().value;
return[function(){return F()()},
C.next().value]};
ZMT=function(C,F){C=C?um9(C):"";F!==void 0&&isFinite(F)?F===0?F=_.iQ("UPDATING",void 0,"Updating..."):(F=Vtf(new Date(F),new Date),F=_.iQ("UPDATED_TIME",{relative_time:F},"Updated "+F)):F="";var G="";C&&F&&(G=" \u2022 ");return _.YB(C+G+F)};
XMs=function(C,F,G,V,J,b){F=F===void 0?0:F;var z=NFq[F],Q=z.title,E=z.iconType,t=z.topButtonRenderer,k=z.sectionClientVE;z=z.videoClientVE;var U;if(F!==1||C.length){G=[];C=_.u(C);for(V=C.next();!V.done;V=C.next()){var H=V.value;if(FPo(H))G.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:H.videoEntity.videoId,title:TU(H.videoEntity.title),shortBylineText:TU(H.channelEntity.title),thumbnail:H.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:H.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.iQ("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:z}}}}}});else if(jkS(H)){V=G;var l=V.push;var N=void 0,S=void 0,f=void 0,c=void 0,A=void 0,T=void 0,P=void 0,g=void 0,r=H.mainPlaylistEntity.playlistId,C9=H==null?void 0:(g=H.mainPlaylistEntity)==null?void 0:(P=g.thumbnailStyleData)==null?void 0:(T=P[0])==null?void 0:(A=T.value)==null?void 0:(c=A.collageThumbnail)==null?void 0:c.coverThumbnail;c=fps(r);if(!_.y("enable_offline_playlist_page")&&
(H==null?0:(f=H.mainPlaylistEntity)==null?0:f.videos)){b:{f=H==null?void 0:(S=H.mainPlaylistEntity)==null?void 0:S.videos;S=_.s3().getState().entities;if(f!=null&&f.length&&S)for(f=_.u(f),A=f.next();!A.done;A=f.next())if(A=_.D8(A.value).entityId,(A=JSON.parse(A).videoId)&&RF5(S,A)==="TRANSFER_STATE_COMPLETE"){S=A;break b}S=""}S!==void 0&&(c=MW(_.s3().getState(),S),c=_.RQ(S,r,void 0,void 0,c))}S=cK5(_.iQ("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),fps(r));H=r&&C9&&S?{playlistId:r,navigationEndpoint:c,
viewPlaylistText:S,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:C9}},title:TU(H.mainPlaylistEntity.title),shortBylineText:TU(H==null?void 0:(N=H.channelEntity)==null?void 0:N.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:OMT,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:r,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.iQ("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:z}}}:
void 0;l.call(V,{gridPlaylistRenderer:H})}}z={gridRenderer:{items:G}};F===1&&(U=ZMT(J,b))}else if(V){var Wo=_.YB((l=G==null?void 0:G.localizedPromptMessage)!=null?l:"");z={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.YB(_.iQ("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.UQf}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.YB(_.iQ("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};U=ZMT(J,b)}else Wo=_.YB(_.iQ("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
z={};return{contents:[{shelfRenderer:{title:Q,titleAnnotation:U,icon:{iconType:E},subtitle:Wo,content:z,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:t}]}}}}],loggingDirectives:{clientVeSpec:{uiType:k}}}};
wMW=function(C,F,G,V,J,b,z,Q,E,t,k){G=G===void 0?{}:G;V=V===void 0?{}:V;J=J===void 0?!1:J;b=b===void 0?!1:b;z=z===void 0?!1:z;Q=Q===void 0?!1:Q;E=E===void 0?!1:E;t=t===void 0?0:t;k=k===void 0?-Infinity:k;if(!(F.length||C.length||J||Q))return b?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:D$I(G)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.YB(_.iQ("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 U=[];C.length&&U.push(XMs(C,0));Q?U.push({contents:[{statementBannerRenderer:Fa5(E,V)}]}):J?U.push(XMs(F,1,G,z,t,k)):b&&U.push({contents:[{statementBannerRenderer:m$W(G)}]});(J&&F.length||C.length)&&U.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.YB(_.iQ("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 U.map(function(H){return{itemSectionRenderer:H}})};
tk=function(C,F){if(typeof C!=="object")return null;C=_.u(Object.entries(C));for(var G=C.next();!G.done;G=C.next()){var V=_.u(G.value);G=V.next().value;V=V.next().value;if(G===F)return G;if(V=tk(V,F))return G+"."+V}return null};
av=function(C){var F=C.content;return(C=C.styleRuns)&&F?{runs:C.map(function(G){var V={text:F.slice(G.startIndex,G.startIndex+G.length)};G.fontColor&&(V.textColor=G.fontColor);return V})}:{simpleText:F}};
Lqw=function(C,F,G,V){var J=Mff;V&&(C.quantity=V);if(!C.quantity||!C.maxQuantity)return{};V=C.minusButton;var b=C.plusButton,z,Q,E,t;return{value:C.quantity,maxValue:C.maxQuantity,onChangeCallback:function(k){J(C,k)},
minusLabel:(z=_.Z(V,S_o))==null?void 0:z.label,minimumReachedLabel:(Q=_.Z(V,S_o))==null?void 0:Q.limitReachedLabel,plusLabel:(E=_.Z(b,S_o))==null?void 0:E.label,maximumReachedLabel:(t=_.Z(b,S_o))==null?void 0:t.limitReachedLabel,disabled:F,onRemoveCommand:G}};
Mff=function(C,F){var G=C.quantityIncrementerEntityKey;if(G){var V={};V.quantity=F;_.er(_.kZ("quantityIncrementerEntity",G,V));C.onChangeCommand&&_.wQ(C.onChangeCommand)}};
BF9=function(C){if(C)return C===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(C).overflowY)?C:BF9(C.parentElement)};
hDA=function(C,F){(C=v4Z(C))&&((_.y("enable_mini_app_command_handler_mweb_fix")?0:F)?fCB.push({command:C,sourceData:{},commandContext:void 0}):_.I8().resolve(_.WD).resolveCommand(C))};
v4Z=function(C){return _.Z(C,_.yp)};
c0E=function(){var C=window.performance.timeOrigin+window.performance.now(),F=(new _.Up).setSeconds(C/1E9);return _.jS(F,2,_.bs(C%1E9),0)};
eDE=function(C,F){var G;C=(G=_.Z(_.Z(C,_.yp),A0T))==null?void 0:G.methodName;var V,J;(G=window.youtubewebview||((V=window.webkit)==null?void 0:(J=V.messageHandlers)==null?void 0:J.youtubewebview))&&C&&(V=new Hx,C=_.fA(V,1,C),C=_.eU(C.JSC$12552_serializeBinary()),F=_.eU(F),G.postMessage(C+","+F))};
ld=function(C,F){var G=_.Z(_.Z(C,_.yp),A0T);G&&(F&&(G.serializedAdditionalMetadata=_.eU(F)),hDA(C,!0))};
dPZ=function(C){switch(C){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"}};
xPi=function(){return!!_.TF("ID_TOKEN")};
PBW=function(C){return C instanceof Error&&C.cause instanceof szW&&C.cause.rpcErrorCode!==void 0?!q_i.includes(C.cause.rpcErrorCode):!0};
RDT=function(){return _.Jy(g4T,{authuser:""+(_.TF("SESSION_INDEX")||0)})};
y6=function(C,F,G,V){G=G===void 0?"MINI_APP_SDK_API_UNSPECIFIED":G;V=V===void 0?"":V;var J=new _.Ay;G={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:V,sdkApi:G};C instanceof Error&&(J.message=C.message,J.name=C.name,C.cause instanceof szW&&C.cause.rpcErrorCode!==void 0&&(G.rpcErrorCode=C.cause.rpcErrorCode));var b;(b=F.onError)==null||b.call(F,{loggingError:J,metadata:G})};
TFI=function(C,F,G,V){switch(C){case "MINI_APP_SOURCE_GAMESNACKS":return new ZF(F,G,V);default:return new Y_I(F,G,V)}};
o4W=function(C){switch(C){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"}};
r0i=function(C){switch(C){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"}};
KqI=function(C){switch(C){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"}};
DPA=function(){return Math.floor(Math.random()*4)+1};
pMZ=function(C,F,G,V){C=_.u(Object.entries(C));for(var J=C.next(),b={};!J.done;b={message$jscomp$995:void 0},J=C.next()){var z=_.u(J.value);J=z.next().value;z=z.next().value;b.message$jscomp$995=z;F.push(setTimeout(function(Q){return function(){V(!1);G(Q.message$jscomp$995.text)}}(b),b.message$jscomp$995.delayMs));
Number(J)>0&&F.push(setTimeout(function(){V(!0)},b.message$jscomp$995.delayMs-400))}};
mPi=function(C,F){var G=G===void 0?hLo:G;_.y("mweb_fix_monitor_visibility_after_render")?C&&tC(function(){eLS(C,F,G)}):tC(function(){eLS(C,F,G)})};
CIo=function(C,F){var G=document.createElement("ytd-engagement-panel-section-list-renderer");G.data=C;if(F==null?0:F.isPersistentPanel)G.isPersistentPanel=!0;return G};
Vm9=function(C){jVA||(jVA=FJB(new _.vY(1,void 0,void 0,G4W),0));var F=jVA.format(Math.floor(C));F=SN==="be"||SN==="bg"||SN==="es"||SN==="et"||SN==="hu"||SN==="ka"||SN==="lv"||SN==="pl"||SN==="pt-PT"||SN==="sq"?F.replace(new RegExp("^(\\d)"+G4W.GROUP_SEP.replace(".","\\.")+"(\\d+("+G4W.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):F;return C>=1E3&&C<=9999&&F[1]==="."&&(SN==="sl"||SN==="it")?F.replace(".",""):F};
ibq=function(C,F){jBs("ytd-button-renderer",{data:C,className:F?F.className:"",overrides:F==null?void 0:F.buttonOverrides},Dwq)};
bbo=function(C,F,G,V){if(C)return V=V||C.likeStatus,F?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:V==="LIKE",isDisabled:!C.likesAllowed,defaultIcon:{iconType:G},defaultText:V==="LIKE"?C.likeCountWithUnlikeText:C.likeCountText,toggledText:V==="LIKE"?C.likeCountText:C.likeCountWithLikeText,defaultNavigationEndpoint:JoA(C,"LIKE"),defaultServiceEndpoint:$NT(C,"LIKE"),toggledServiceEndpoint:$NT(C,"INDIFFERENT"),defaultTooltip:_.dd(C.likeCountTooltipText),toggledTooltip:_.dd(C.likeCountTooltipText),
targetId:C.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:V==="DISLIKE",isDisabled:!C.likesAllowed,defaultIcon:{iconType:G},defaultText:V==="DISLIKE"?C.dislikeCountWithUndislikeText:C.dislikeCountText,toggledText:V==="DISLIKE"?C.dislikeCountText:C.dislikeCountWithDislikeText,defaultNavigationEndpoint:JoA(C,"DISLIKE"),defaultServiceEndpoint:$NT(C,"DISLIKE"),toggledServiceEndpoint:$NT(C,"INDIFFERENT"),defaultTooltip:_.dd(C.dislikeCountTooltipText),
toggledTooltip:_.dd(C.dislikeCountTooltipText)}};
JoA=function(C,F){if(F==="LIKE")return C.likeCommand;if(F==="DISLIKE")return C.dislikeNavigationEndpoint};
$NT=function(C,F){var G;return(G=C.serviceEndpoints)==null?void 0:G.find(function(V){var J;return((J=_.Z(V,_.Nx))==null?void 0:J.status)===F})};
_.zrS=function(C,F,G){return window.spf&&!_.y("web_disable_spfjs_client")?n$5(C,F,G):ukS(C,F)};
n$5=function(C,F,G){var V=null,J=(new _.N1(function(b,z){var Q={};if(F){Q.method=F.method;var E=F.postParams||{};tjq(C,F)&&(E[_.TF("XSRF_FIELD_NAME")]=_.TF("XSRF_TOKEN"));Q.postData=_.Me(E);F.type&&(Q.type=F.type);E=F.headers}Q.headers=uIS(C,E);_.y("debug_forward_web_query_parameters")&&(C=_.EBw(C,window.location.search));Q.experimental_headers=Q.headers;Q.onError=function(t){t.err&&t.xhr&&(t.err.params={url:t.xhr.responseURL,response:t.xhr.responseText.substr(0,64)});z(t.err)};
Q.onPartDone=function(t){G&&G.call(null,t.part)};
Q.onDone=function(t){var k=QVS(t.response,"xsrf_token");nD(window.location.href,C)&&k&&_.Yn("XSRF_TOKEN",k);if(k=QVS(t.response,"service_worker_killswitch"))_.Yn("SERVICE_WORKER_KILLSWITCH",k),tz9();b(t.response)};
V=spf.request(C,Q)})).then(I$B);
J.thenCatch(function(b){var z=b instanceof _.Op,Q=b&&b.hasOwnProperty("params")&&b.params.response?b.params.response:"";b instanceof Error&&(Q?z?CC5(b):Q===')]}\'\n{"reload":"now"}'?CC5(b):(E$5(b,C,Q),WJW(b,Q)?_.Yw(b):_.gD(b)):CC5(b));V&&V.abort()});
return J};
I$B=function(C){if(C.type==="multipart"){var F=C.timing;C=C.parts.reduce(function(G,V){Object.assign(G,V);return G},{});
C.timing=C.timing||{};Object.assign(C.timing,F);C.type="reduced"}return C};
ukS=function(C,F){F=F===void 0?{}:F;var G=null,V=new _.N1(function(J,b){F.onFinish=function(z){if(z.readyState===XMLHttpRequest.DONE)if(z.status===200){if(z.responseType!=="json"){var Q=z.response;Q.substring(0,5)===")]}'\n"&&(Q=Q.substring(5));try{var E=JSON.parse(Q)}catch(t){E=t}}else E=z.response;E instanceof Error?b(E):(Q=QVS(E,"xsrf_token"),nD(window.location.href,C)&&Q&&_.Yn("XSRF_TOKEN",Q),z=z.responseURL,window.performance&&window.performance.getEntriesByName?(Q=window.performance.getEntriesByName(z).pop())?
z={responseStart:(0,_.Et)()-(Q.responseEnd-Q.responseStart)}:(Math.random()<.01&&(Q=Error("ei"),Q.params=z,_.Yw(Q)),z={responseStart:-1}):z={responseStart:0},E.timing=E.timing||{},Object.assign(E.timing,z),J(E))}else b(Error("di`"+z.status))};
(G=_.wj(C,F))||b(Error("di`"+G.status))});
V.thenCatch(function(J){J instanceof Error&&(E$5(J,C),WJW(J)&&(J.level="WARNING"))});
_.y("cancel_pending_navs")&&V.thenCatch(function(){G.abort()});
return V};
QVS=function(C,F){var G=C[F],V=C.parts;C.type==="multipart"&&V&&(G=(C=V.find(function(J){return F in J}))&&C[F]);
return G};
E$5=function(C,F,G){var V=C.message||"";F={original:V,url:F};if(G)if(V=V.match(/position:?\s*(\d+)/)){V=V&&Number(V[1])?Number(V[1]):0;var J=Math.max(V-25,0);F.position=V;F.response=G.substring(J,V+25)}else F.response=G.substring(0,50);_.Tf(C,F);try{C.message="JSON parse error"}catch(b){}};
WJW=function(C,F){C=C.message||"";C=!!(C.indexOf("<")>=0||C.indexOf("end of ")>=0||C.indexOf("Unterminated string")>=0||C.indexOf("Unexpected EOF"));if(!C&&F)for(var G=F.length,V=!1,J=0;J<G;J++)if(V&&F[J]==="\\")J++;else if(F[J]==='"')V=!V;else if(F[J]==="<"&&!V){C=!0;break}return C};
tm5=function(){return document.documentElement.hasAttribute("dark")};
_.a$f=function(C,F){if(C!=="GFEEDBACK"&&C!=="GUIDED_HELP")_.ri(Error("fi`"+C));else{var G=_.I8().resolve(_.Qt(_.qG));if(G&&(G=G.getCurrentPage())&&G.getServiceTrackingParams&&(G=G.getServiceTrackingParams()))for(var V=0,J;J=G[V++];)if(J.service===C){if(C=J.params)for(G=0;V=C[G++];)F[V.key]=V.value;break}}};
_.k4i=function(C){var F=_.gE();F&&(F=F.getPlayer())&&(F.pauseVideo(),C.playback_id=F.getVideoData().cpn,C.eid=F.getVideoData().eventId,Object.assign(C,F.getFeedbackProductData()))};
UNS=function(){var C={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.TF("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(C.enableAnonymousFeedback=!0);_.TF("SESSION_INDEX")&&(C.authuser=String(_.TF("SESSION_INDEX")));_.y("enable_pageid_for_feedback")&&_.TF("DELEGATED_SESSION_ID")&&(C.pageId=String(_.TF("DELEGATED_SESSION_ID")));return C};
_.Xc=function(C){_.y("enable_ypc_spinners")&&_.rz(C,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},C])};
_.wJ=function(C){_.y("enable_ypc_spinners")&&_.rz(C,"yt-close-popup-action",["yt-loading-renderer"])};
HbW=function(C){return new Promise(function(F,G){_.ND({verifyCommand:{recaptchaToken:C.recaptchaResponse}},{commandController:{onSuccess:function(V,J){J||G("ChallengeService did not return a response.");var b;F({challengeCompleted:(b=J.verified)!=null?b:!1})},
onServerError:function(V,J){G(J)}}})})};
l$q=function(C,F,G,V){F({recaptchaResponse:V}).then(function(J){J.challengeCompleted?_.fD()?(G(3),_.I8().resolve(_.WD).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:C}})):G(2):G(4)},function(){G(4)})};
ZbS=function(C,F,G){_.LX(_.kf(yo9,_.TF("HL")),function(){var V;(V=window.grecaptcha)==null||V.ready(function(){var J=window.grecaptcha;J?(G(J.render(C,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:l$q.bind(null,C,HbW,F)})),F(1)):F(4)})})};
NHw=function(C,F){return function(){switch(F()){case 0:return C().captchaLoadingMessage;case 1:return C().challengeReason;case 3:return C().captchaSuccessfulMessage;case 2:return C().captchaCookieSetFailureMessage;case 4:return C().captchaFailedMessage;default:return C().challengeReason}}()};
_.Mx=function(){if(!ObA){var C=document.querySelector("#player.skeleton");C&&(_.So(C),ObA=!0)}};
_.wU5=function(){return XUW=y99()};
LJ5=function(){return _.I(function(C){return Mmw!==void 0?C.return():C.yield(Sl5(),0)})};
Sl5=function(){return _.I(function(C){if(C.nextAddress==1)return C.yield(N$B(),2);XUW=C.yieldResult;Mmw=_.gT.addLowPriorityJob(Sl5,5E3);_.S9(C)})};
Ao9=function(C){var F=F===void 0?BHS:F;var G,V,J=(G=C.responseContext)==null?void 0:(V=G.mainAppWebResponseContext)==null?void 0:V.trackingParam;if(!J){F.increment("MISSING");var b,z,Q,E,t,k;_.Yw(new _.Ay("282054944_a",{tJg:!!((b=C.responseContext)==null?0:(z=b.mainAppWebResponseContext)==null?0:z.loggedOut),eSZ:((Q=C.responseContext)==null?void 0:Q.mainAppWebResponseContext)===void 0,maw:C.responseContext===void 0,cp:(E=C.playabilityStatus)==null?void 0:E.contextParams,gIf:(((t=C.streamingData)==
null?void 0:t.formats)||[]).length>0,eCJ:(((k=C.streamingData)==null?void 0:k.adaptiveFormats)||[]).length>0,os:!!C.offlineState,cotn:C.cotn}));return 2}G="";try{G=v$S(J)}catch(l){return F.increment("C_ERROR"),_.gD(l),2}try{var U=_.f$I(G);var H=hri(U)}catch(l){return F.increment("P_ERROR"),_.gD(l),2}H=_.IM(H,coo,1,_.ED());J=[];H=_.u(H);for(U=H.next();!U.done;U=H.next())V=U.value,U=V.getPath(),G=(0,_.xf.getValueByKeys)(C,U.split(".")),G=String(G===void 0||G===null?"":G),V=V.getValue()||"",b=/[+\-\/_]/g,
G.replace(b,"")!==V.replace(b,"")&&(F.increment("MISMATCH"),_.y("ab_mis_log_err")&&(G=new _.Ay("282054944_p",{gV9:U,g:String(G),e:String(V)}),_.gD(G)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(U)||(U.match(/enforcementMessageViewModel/i)?J.push(3):J.push(2)));if(J.length>0)return Math.max.apply(Math,_.da(J));F.increment("SUCCESS");return 1};
xN9=function(C){var F=new SZ;if(C.interpreterJavascript){var G=_.Y6i(C.interpreterJavascript);G=Vy(G).toString();var V=new erA;_.fA(V,6,G);_.OL(F,1,V,hO)}else C.interpreterUrl&&(G=_.Ra(C.interpreterUrl),G=_.vh(G).toString(),V=new _.dNS,_.fA(V,4,G),_.OL(F,2,V,hO));C.interpreterHash&&_.L3(F,3,C.interpreterHash,hO);C.program&&_.L3(F,4,C.program,hO);C.globalName&&_.L3(F,5,C.globalName,hO);C.clientExperimentsStateBlob&&_.L3(F,7,C.clientExperimentsStateBlob,hO);return F};
Bx=function(C){var F={};C=_.u(C.split("&"));for(var G=C.next();!G.done;G=C.next())G=G.value.split("="),G.length===2&&(F[G[0]]=G[1]);return F};
sVo=function(C){return Number(C.t)||7200};
PRE=function(){if(_.y("bg_st_hr"))return"havuokmhhs-0";var C,F=((C=globalThis.performance)==null?void 0:C.timeOrigin)||0;return"havuokmhhs-"+Math.floor(F)};
qlS=function(){return new Promise(function(C){var F=window;F.ntpevasrs!==void 0?C(new vx(F.ntpevasrs)):(F.ntpqfbel===void 0&&(F.ntpqfbel=[]),F.ntpqfbel.push(function(G){C(new vx(G))}))})};
PIw=function(C){var F=C.wMJ.bind(C);_.zn("yt.aba.att",F);C=C.yTT.bind(C);_.zn("yt.aba.att2",C)};
Rrs=function(C){switch(_.X$(C.input)){case _.qW(g$W):var F={};return F.encryptedVideoId=C.innerTubeRequest.externalVideoId,F}return{}};
o$q=function(C){switch(_.X$(C.input)){case _.qW(g$W):if(_.y("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.qW(YlB):if(_.y("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.qW(f3):if(_.y("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&C.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.qW(THA):var F,G;if(_.y("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((G=_.Z((F=C.config)==null?void 0:F.command,SFA))==null?0:G.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.KJZ=function(C){var F;if(C.playlistVideoRenderer&&((F=C.playlistVideoRenderer)==null?0:F.engagementBar))return roI(C.playlistVideoRenderer.engagementBar);if(_.Z(C,hk)){var G;if(C=(G=_.Z(C,hk))==null?void 0:G.engagementBar)return roI(C)}return""};
roI=function(C){if(!C)return"";C=_.Z(C,_.DNA);if(C==null||!C.actions)return"";C=_.u(C.actions);for(C=C.next();!C.done;C=C.next()){C=_.Z(C.value,_.pUT);var F=void 0;if((F=C)==null||!F.itemId)break;return C.itemId}return""};
_.mNI=function(C){var F;if(C.playlistVideoRenderer&&((F=C.playlistVideoRenderer)==null?0:F.videoId))return C.playlistVideoRenderer.videoId;if(_.Z(C,hk)){var G,V;if(C=(G=_.Z(C,hk))==null?void 0:(V=G.playlistItemData)==null?void 0:V.videoId)return C}return""};
_.Cyo=function(C){var F;if(C.playlistVideoRenderer&&((F=C.playlistVideoRenderer)==null?0:F.voteCount))return C.playlistVideoRenderer.voteCount;if(_.Z(C,hk)){var G,V;if(C=(G=_.Z(C,hk))==null?void 0:(V=G.playlistItemData)==null?void 0:V.voteCount)return C}return 0};
_.cx=function(C,F){return _.jN(C.entities,"flowStateEntity",F)};
FjT=function(C,F,G,V){var J=void 0;C=_.u(C[F.iconName]||[]);for(var b=C.next();!b.done;b=C.next()){b=b.value;var z=F.iconSize;var Q=F.iconStyle;z=!z||z===b[2];var E=jgS[b[0]];V&&V!==b[1]||!z||Q&&Q!==E?Q=!1:J?(Q=jgS[b[0]],Q=!!F.iconStyle||Q==="youtube_outline",z=J.version<=b[1],Q=(!!F.iconSize||b[2]===24)&&Q&&z):Q=!0;Q&&(J={name:F.iconName,style:jgS[b[0]],size:b[2],version:b[1],allowMirroring:!!b[3],url:G(F.iconName,b)})}return J};
Gdo=function(C,F,G,V){return C+(""+jgS[G[0]]+((V===void 0?0:V)?"_experimental":"")+"/"+F+"/v"+G[1]+"/")+(G[2]+"px.svg")};
VxE=function(C){return _.TF("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.TF("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":C};
i0E=function(C,F){return Gdo("https://fonts.gstatic.com/s/i/",C,F)};
J1o=function(C,F){return Gdo("https://fonts.gstatic.com/s/i/",C,F,!0)};
$pZ=function(C,F){return Gdo("https://www.gstatic.com/youtube/img/icons/web/",C,F)};
ngS=function(C){var F=C.enabled;var G=C.itemPlaybackModel;var V=C.thumbnailElRef;var J=C.containerElRef;var b=C.options;var z;_.sq(function(){var Q=J==null?void 0:J.value;var E,t=(E=V())==null?void 0:E.value;E=G();var k=b();if(F&&E&&Q&&t&&(k==null?0:k.thumbnail)){var U={data:E,hostElement:Q},H,l,N=[].concat(_.da((H=k.thumbnailOverlays)!=null?H:[]),_.da((l=E.overlays)!=null?l:[]));l=E.itemPlaybackOptions;H=(l==null?void 0:l.enableRoundedPlayer)||k.enableRounding;l=l==null?void 0:l.disableTimeStatusOverlay;
var S,f;Q={mediaRenderer:U,lockupElement:Q,thumbnailElement:t,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.ZD((S=E.inlinePlayerData)==null?void 0:S.onVisible),navigationEndpoint:_.ZD((f=E.inlinePlayerData)==null?void 0:f.onSelect),thumbnail:k.thumbnail,thumbnailOverlays:N,accessibilityText:k.accessibilityText||""},thumbnailSize:k.thumbnailSize,enableRounding:H,mouseleaveCallback:k.mouseleaveCallback,hideTimeDisplay:l}}}else Q=void 0;if(S=Q){var c;(c=z)==null||Ak(c);z=ZR(S);var A,T;
((A=G())==null?0:(T=A.inlinePlayerData)==null?0:T.forceImpAutoplay)&&b0Z(z)}},"BLiQOd");
_.q0(function(){var Q;(Q=z)==null||Ak(Q)})};
u79=function(C){C=atob(C);for(var F=[],G=0;G<C.length;G++)F.push(C.charCodeAt(G));return new Blob([new Uint8Array(F)],{type:"image/png"})};
Qgf=function(C,F,G,V){V=V===void 0?"INSERTION_POSITION_UNSPECIFIED":V;return C({targetId:F},function(J){var b,z=(b=J.contents)!=null?b:[];b=G!=null?G:[];var Q=zc5(z);switch(V){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},J,{contents:[].concat(_.da(z.slice(0,Q)),_.da(b),_.da(z.slice(Q+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},J,{contents:[].concat(_.da(b),_.da(z))});case "INSERTION_POSITION_LAST":return Object.assign({},J,{contents:[].concat(_.da(z),_.da(b))});
default:return J}})};
EgE=function(C,F,G,V,J){J=J===void 0?"RELATIVE_INSERTION_POSITION_AFTER":J;return C({targetId:F},function(b){var z,Q=(z=b.contents)!=null?z:[];z=IIE(Q,G);if(z<0)return b;z=J==="RELATIVE_INSERTION_POSITION_BEFORE"?z:z+1;return Object.assign({},b,{contents:[].concat(_.da(Q.slice(0,z)),_.da(V),_.da(Q.slice(z)))})})};
zc5=function(C){var F=C.findIndex(function(G){return _.Z(G,_.eZ)});
return F>=0?F:C.length};
IIE=function(C,F){return C.findIndex(function(G){a:{G=_.u(Object.values(G));for(var V=G.next();!V.done;V=G.next())if((V=V.value)&&V.targetId){G=V.targetId;break a}G=""}return G===F})};
txT=function(C,F,G){return C({targetId:F},function(V){var J,b=(J=V.contents)!=null?J:[];return Object.assign({},V,{contents:Wjo(b,G)})})};
Wjo=function(C,F){return C.filter(function(G){var V=F.includes;a:{G=_.u(Object.values(G));for(var J=G.next();!J.done;J=G.next())if((J=J.value)&&J.targetId){G=J.targetId;break a}G=""}return!V.call(F,G||"")})};
_.aIo=function(C,F){return{engagementPanelSectionListRenderer:{panelIdentifier:C,identifier:F,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
kdq=function(C,F){C=C.getAvailableAudioTracks();if(C.length)return C==null?void 0:C.find(function(G){var V;return(G==null?void 0:(V=G.getLanguageInfo())==null?void 0:V.getId())===F})};
_.H0s=function(C){var F,G=(F=C.getOption("captions","tracklist",{includeAsr:!0}))!=null?F:[];return G=Upo(G,C)};
lIE=function(C){return C.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
Upo=function(C,F){F=lIE(F);if(F==null||!F.length)return C;var G=F.filter(function(z){return z});
F=C.filter(function(z){return z.languageCode.startsWith("en")});
G=_.u(G);for(var V=G.next();!V.done;V=G.next())if(V=V.value,F.length){var J=F[0],b=Object.assign({},J);J.languageCode!==V.languageCode&&(b.displayName=J.languageName+" >> "+V.languageName,b.translationLanguage=V,C.push(b))}return C};
y1S=function(C,F,G){C=_.H0s(C);if(C.length)return G?C.find(function(V){if(typeof(V==null?void 0:V.translationLanguage)==="object"){var J;return((J=V.translationLanguage)==null?void 0:J.languageCode)===F}return!1}):C==null?void 0:C.find(function(V){return V.languageCode===F})};
Z0B=function(C){return C.getOption("captions","tracklist",{includeAsr:!0})};
Nm9=function(C){var F=C.getAvailableAudioTracks();if(F!=null&&F.length){var G=C.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.da(F.map(function(V){return{listItemViewModel:{title:{content:V.getLanguageInfo().getName()},isSelected:V.getLanguageInfo().getId()===(G==null?void 0:G.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:V.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
O0s=function(C){return C.getOption("captions","tracklist",{includeAsr:!0})};
Xis=function(C){var F=O0s(C);if(F==null?0:F.length)return F;C.loadModule("captions");return O0s(C)};
wii=function(C){var F=C.getOption("captions","track");if(F)return F;C.loadModule("captions");return C.getOption("captions","track")};
S$S=function(C){var F=Xis(C);if(F!=null&&F.length){var G=wii(C),V;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.iQ("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(G==null?0:G.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.da(F.map(function(J){return{listItemViewModel:{title:{content:J.displayName},
isSelected:J.displayName===(G==null?void 0:G.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:J.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.iQ("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!G.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!G.translationLanguage&&{selectionText:{content:(G==null?void 0:(V=G.translationLanguage)==null?void 0:V.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[MxW(C)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
MxW=function(C){var F=lIE(C);if(F==null||!F.length)throw Error("Ei");var G=wii(C);C=F.filter(function(V){return!V.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.da(C.map(function(V){var J;return{listItemViewModel:{title:{content:V.languageName},isSelected:V.languageName===(G==null?void 0:(J=G.translationLanguage)==null?void 0:J.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:V.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
fI9=function(C){return new Promise(function(F,G){if(C===void 0)_.gD(Error("Ii"),"ERROR"),G(Error("Ii"));else{G=new _.Ljq;var V=_.BmT();G=G.init();var J=_.vgB(_.TF("YPC_MB_URL"),!0);Promise.all([G,J]).then(function(){var b=_.dJ.payments.business.integration.ClientTokenFactory.createClientToken(C,V);F(b)})}})};
A1A=function(C,F,G,V,J,b,z){var Q=_.hM();G=G.replace(/-/g,"+").replace(/_/g,"/");var E=_.bQ().get("hl"),t=_.xZ(_.cr),k=F==null?void 0:F.element;k&&_.Xc(k);hcE(F,!0);_.c1w(t,G,Q.resolve,function(){k&&_.wJ(k)},function(U){k&&_.wJ(k);
Q.reject(U)},E,V?function(U){V&&_.fZ(C,V,{backend_analytics:U})}:void 0,Q.resolve,J,b,z);
return Q.promise};
hcE=function(C,F){!(C=C==null?void 0:C.element)||C.tagName!=="YT-BUTTON-RENDERER"&&C.tagName!=="YTD-BUTTON-RENDERER"||(C.disabled=F)};
ecT=function(){var C=_.iQ("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.YB(C),actionButton:{buttonRenderer:om5()}}},popupType:"TOAST"}};
dpT=function(){var C=_.iQ("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.YB(C),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
xpB=function(C){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:C}]}}};
sp=function(C,F,G,V){var J;return _.I(function(b){if(b.nextAddress==1)return _.yy(b,2),b.yield(C,4);if(b.nextAddress!=2)return(J=_.Qj(F.getState().entities).length>0)?b.return({title:_.YB(_.iQ("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.YB(_.iQ("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:TOB()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
b.return(rfZ(G,V));_.wa(b);return b.return(rfZ(G,V))})};
sgB=function(C,F){return F?F==="PPSV"||oss(C,F):!1};
q$i=function(C){C.responseContext||(C.responseContext={});C.responseContext.maxAgeSeconds=0;return C};
Px=function(C){var F;return _.I(function(G){return G.nextAddress==1?G.yield(Pyw(C,"service:topbar:fallback"),2):(F=G.yieldResult)&&_.qx(F)?G.return(q$i(_.qx(F))):G.return()})};
ggA=function(C){var F;return _.I(function(G){return G.nextAddress==1?G.yield(Pyw(C,"service:downloads_settings:fallback"),2):(F=G.yieldResult)&&_.qx(F)?G.return(F):G.return()})};
Pyw=function(C,F){var G;return _.I(function(V){if(V.nextAddress==1)return C?V.yield(C.get(F),2):V.return();G=V.yieldResult;return!G||!_.qx(G)||!isNaN(Number(G.data.expireTimestampMs))&&G.isExpired()?V.return():V.return(G)})};
Rcs=function(C){var F=_.I8().resolve(gJ).getState().entities;return C.playlistId?sgB(F,C.playlistId):!1};
TmI=function(C){var F=_.a8("web_pbj_log_warning_rate",0);F=F>0&&Math.random()<F;if(!_.Z(C,_.nd))return F&&_.Yw(Error("bj")),!1;var G;return _.y("shorts_controller_retrieve_seedless_sequence_v2")&&((G=_.Z(C,_.nd))==null?void 0:G.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:Y$w(C)?!0:(F&&_.Yw(Error("cj")),!1)};
Y$w=function(C){var F=(_.Z(C,_.eT)||_.Z(C,_.nd)).videoId;if(!F||!ogi.test(F))return!1;var G;return(C=(G=_.Z(C.commandMetadata,_.GU))==null?void 0:G.url)&&(C.includes(F)||C.startsWith("/clip"))?!0:!1};
_.Kjf=function(){var C=_.bQ();return C.getFlag(192)?C.getFlag(190):!(_.y("web_watch_cinematics_disabled_by_default")||_.y("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&r1I())};
_.Rv=function(C,F,G){var V={};V.currentUrl=F;V.vis=C.vis!==void 0?C.vis:0;V.splay=!1;F=_.bQ();V.autoCaptionsDefaultOn=F.getFlag(66);F.getFlag(141)?F.getFlag(140)?V.autonavState="STATE_OFF":V.autonavState="STATE_ON":V.autonavState="STATE_NONE";V.html5Preference="HTML5_PREF_WANTS";isNaN(_.TF("STS"))||(V.signatureTimestamp=_.TF("STS"));C.autonav&&(V.autoplay=!0,V.autonav=!0);C.mutedAutoplay&&(V.autoplay=!0,V.mutedAutoplay=!0);C.inlinePlayback&&(V.autoplay=!0,V.autonav=!1,V.isInlineUnmutedPlayback=!!C.inlineUnmuted);
V.referer=G;V.lactMilliseconds=C.lact!==void 0?C.lact.toString():"-1";_.y("enable_unknown_lact_fix_on_html5")&&V.lactMilliseconds==="-1"&&_.Yw(new _.Ay("Unknown LACT is set in playbackContext.",{"lact in tempData":C.lact||"undefined",autonav:C.autonav||"undefined"}));C={};F.getFlag(194)&&(C.hasShownAmbientMode=!0);F.getFlag(192)&&(C.hasToggledOffAmbientMode=!0);_.Kjf()&&(C.watchAmbientModeEnabled=!0);V.watchAmbientModeContext=C;return V};
DpE=function(C){var F={},G=C.pbis||0;G&&(F.playbackBeginsInSeconds=G);C.prefetch_reason&&C.prefetch_reason==="hc_pbis"&&(F.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return F};
pio=function(C,F){var G;if(F==null?0:(G=F.requestTemplate)==null?0:G.panelId)C.panelId=F.requestTemplate.panelId;var V;if(F==null?0:(V=F.requestTemplate)==null?0:V.params)C.params=F.requestTemplate.params};
Cji=function(){if(mpT)return mpT();var C=!_.y("idb_response_store_auth_killswitch"),F={};mpT=Ia("yt-it-response-store",{objectStores:(F.ResponseStore={addedAtVersion:1},F),shared:!C,upgrade:function(G,V){V(1)&&(G=Ds(G,"ResponseStore",{keyPath:["key","clientName"]}),pO(G,"byExpiration","expireTimestampMs"),pO(G,"byInterface","clientName"))},
version:1});return mpT()};
jCS=function(C){return _.iw(Cji(),C)};
G2A=function(C,F){var G;return _.I(function(V){return V.nextAddress==1?V.yield(_.Qn(),2):(G=V.yieldResult)?V.return(new F6S(C,F,G)):V.return()})};
V5S=function(C){var F=Object.keys(C)[0];if(F)return C.screenExit&&(F=F+";"+C.screenExit.screen),F};
inB=function(C){var F=new Map;C=_.u(C);for(var G=C.next();!G.done;G=C.next())G=G.value,G!=null&&(F.has(G.taskType)||F.set(G.taskType,[]),F.get(G.taskType).push(G));return F};
JdE=function(C){C=[].concat(_.da(C)).sort(function(G,V){return G-V});
var F=Math.floor(C.length/2);return C.length%2?C[F]:(C[F-1]+C[F])/2};
nGW=function(C,F){C=C===void 0?dG9:C;F=F===void 0?{}:F;_.zn("yt.logging.errors.log",_.gD);AMZ();$TE(gJA(),F);window.onerror=C;bni=eI9;window.addEventListener("unhandledrejection",function(G){if(G.reason instanceof Error){var V=G.reason;_.Tf(V,{source:"unhandledrejection"});V.name==="AbortError"&&(V.level="WARNING")}eI9(G.reason);G.preventDefault()})};
_.uJI=function(C){var F,G,V,J,b,z,Q,E,t,k,U,H,l,N,S,f,c,A,T,P,g,r,C9,Wo,EB,L9,ki,lZ,eq,OB,yr,Rl,w2,jG,Il,Bu,vu,Zr,k_,$i;return _.I(function(Vr){if(Vr.nextAddress==1)return Vr.yield(_.$2(C,{mode:"readonly",enableRetries:!0},function(Um){return bK(Um,"playbackData").then(function(V8){var Hu=V8.map(function(Em){return Em.transfer}).filter(function(Em){return!!Em}),Gh=V8.map(function(Em){return Em.offlineVideoPolicy}).filter(function(Em){return!!Em}),hW=V8.filter(function(Em){return!!Em.key}).map(function(Em){return _.C7(_.D8(Em.key).entityId,
"downloadStatusEntity")});
Hu=bK(Um,"transfer",Hu);Gh=bK(Um,"offlineVideoPolicy",Gh);hW=bK(Um,"downloadStatusEntity",hW);var YS=Hu.then(function(Em){Em=Em.reduce(function(Qr,FM){(FM==null?0:FM.offlineVideoStreams)&&Qr.push.apply(Qr,_.da(FM.offlineVideoStreams));return Qr},[]).filter(function(Qr){return!!Qr});
return bK(Um,"offlineVideoStreams",Em)});
return pD.all([Hu,Gh,YS,hW]).then(function(Em){var Qr=_.u(Em);Em=Qr.next().value;var FM=Qr.next().value;var ow=Qr.next().value;Qr=Qr.next().value;return[V8,Em,FM,ow,Qr]})})}),2);
if(Vr.nextAddress!=3)return F=Vr.yieldResult,Vr.yield(_.$2(C,{mode:"readonly",enableRetries:!0},function(Um){return bK(Um,"mainDownloadsListEntity").then(function(V8){var Hu,Gh;return(Gh=(Hu=V8[0])==null?void 0:Hu.downloads)!=null?Gh:[]})}),3);
G=Vr.yieldResult;V=_.u(F);J=V.next().value;b=V.next().value;z=V.next().value;Q=V.next().value;E=V.next().value;t=J;k=b;U=z;H=Q;l=E;N={};S={};f={};c={};A={};T=[];P=_.u(k);for(g=P.next();!g.done;g=P.next())(r=g.value)&&(N[r.key]=r);C9=_.u(U);for(Wo=C9.next();!Wo.done;Wo=C9.next())(EB=Wo.value)&&(S[EB.key]=EB);L9=_.u(l);for(ki=L9.next();!ki.done;ki=L9.next())(lZ=ki.value)&&(f[lZ.key]=lZ);eq=_.u(H);for(OB=eq.next();!OB.done;OB=eq.next())(yr=OB.value)&&(c[yr.key]=yr);Rl=_.u(G);for(w2=Rl.next();!w2.done;w2=
Rl.next())jG=w2.value,Il=void 0,A[(Il=jG.videoItem)!=null?Il:""]=!0,jG.videoItem&&(vu=Bu=void 0,Zr=(vu=(Bu=_.D8(jG.videoItem))==null?void 0:Bu.entityId)!=null?vu:"",T.push({externalVideoId:Zr}));k_=t.filter(function(Um){if(!Um||!Um.key||!Um.offlineVideoPolicy)return!1;Um=_.D8(Um.key).entityId;Um=_.C7(Um,"downloadStatusEntity");var V8;return!(Um&&((V8=f[Um])==null?void 0:V8.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
$i=k_.map(function(Um){var V8=N[Um.transfer],Hu=[];if(V8==null?0:V8.offlineVideoStreams)for(var Gh=_.u(V8.offlineVideoStreams),hW=Gh.next();!hW.done;hW=Gh.next())(hW=c[hW.value])&&Hu.push(hW);Gh=S[Um.offlineVideoPolicy];hW=A;var YS=Um==null?void 0:Um.playerResponseTimestamp,Em=_.D8(Gh.key).entityId;Um=_.C7(Em,"mainVideoEntity");if(Gh.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var Qr="OFFLINE_VIDEO_STATE_DISABLED";Gh.expirationTimestamp&&Number(Gh.expirationTimestamp)<Date.now()/1E3&&(Qr="OFFLINE_VIDEO_STATE_EXPIRED")}else if(Gh.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")Qr="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(V8==null?void 0:V8.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":Qr="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":Qr="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":Qr="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":Qr="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":Qr="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":Qr="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:Qr="OFFLINE_VIDEO_STATE_UNKNOWN"}if(Qr==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(V8==null?void 0:V8.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":Qr="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":Qr="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":Qr=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}Em={id:Em,videoState:Qr};if(V8==null?0:V8.cotn)Em.cotn=V8.cotn;if(V8==null?0:V8.maximumDownloadQuality)Em.selectedVideoQuality=V8==null?void 0:V8.maximumDownloadQuality;if(V8==null?0:V8.lastProgressTimeMs)Em.lastProgressTimeMs=V8.lastProgressTimeMs;YS&&(Em.playerResponseSavedTimeMs=String(Number(YS)*1E3));V8=String;YS=0;Hu=_.u(Hu);for(Qr=Hu.next();!Qr.done;Qr=Hu.next())if(Qr=Qr.value,Qr.streamsProgress){Qr=_.u(Qr.streamsProgress);for(var FM=Qr.next();!FM.done;FM=
Qr.next()){var ow=void 0;YS+=Number((ow=FM.value.numBytesDownloaded)!=null?ow:0)}}Em.downloadedBytes=V8(YS);Em.selectedOfflineMode=hW[Um]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";Gh.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(Em.offlinePlaybackDisabledReason=Gh.offlinePlaybackDisabledReason);return Em});
return Vr.return({offlineVideos:$i,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:T}}})})};
zgi=function(){var C;return _.I(function(F){return F.nextAddress==1?F.yield(_.Vj(),2):(C=F.yieldResult)?F.return(_.uJI(C)):F.return({state:"PES Unavailable"})})};
EGw=function(){var C,F,G,V;return _.I(function(J){if(J.nextAddress==1)return J.yield(_.Vj(),2);if(J.nextAddress!=3)return(C=J.yieldResult)?J.yield(QCf(C),3):J.return({state:"PES Unavailable"});F=J.yieldResult;G={};V=F.reduce(function(b,z){b[z.key]=z;return b},G);
return J.return(IXA(V))})};
IXA=function(C){for(var F={},G=[],V=_.u(Object.keys(C)),J=V.next();!J.done;J=V.next()){var b=J.value;J=C[b];var z=void 0;if(((z=J)==null?void 0:z.entityType)==="mainVideoEntity"){delete C[b];var Q=J.data;J={};if(Q){var E=void 0;z=(E=Q.videoId)!=null?E:"vid-"+b;b=C;J.video=Q;delete J.video.formattedDescription;delete J.video.thumbnail;Q.owner&&(E=b[Q.owner],E==null?0:E.data)&&(delete b[E.key],J.video.owner=E.data,delete J.video.owner.avatar);if(Q=Q.downloadState)if(E=b[Q],E==null?0:E.data)if(delete b[Q],
Q=E.data.playbackData)if(E=b[Q],E!=null&&E.data){delete b[Q];Q=E.data;delete Q.playerResponseJson;J.playbackData=Q;if(Q.transfer&&(E=b[Q.transfer],E==null?0:E.data)){delete b[E.key];var t=E.data;J.transfer=t;E=[];t=_.u(t.offlineVideoStreams||[]);for(var k=t.next();!k.done;k=t.next())if(k=b[k.value])delete b[k.key],E.push(k.data);E&&(J.streams=E)}(Q=Q.offlineVideoPolicy)&&(Q=b[Q])&&Q.data&&(delete b[Q.key],J.offlineVideoPolicy=Q.data)}F[z]=J}}else J&&J.entityType==="offlineOrchestrationActionWrapperEntity"&&
J.data&&(delete C[J.key],z=J.data,b=void 0,G.push({id:z.rootActionId,type:((b=z.actionProto)==null?void 0:b.actionType)||"",entity:J}))}F.wrapperEntities=G;Object.keys(C).length>0&&(F.unknownKeys=C);return F};
W69=function(){var C,F,G,V,J,b,z,Q,E;return _.I(function(t){if(t.nextAddress==1)return C=(new _.rT("")).hasLocalStorage(),V=!!((F=_.VT.crypto)==null?0:(G=F.subtle)==null?0:G.importKey),J=!!_.VT.BroadcastChannel,b=!!_.VT.navigator.locks,t.yield(WDw(),2);z=t.yieldResult;Q=C&&V&&J&&b&&z;E={isSupported:Q};if(Q)return t.return(E);E.missingBrowserFeatures=[];z||E.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");C||E.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
V||E.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");J||E.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");b||E.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return t.return(E)})};
t5f=function(){var C;return!((C=rJ?rJ:null)==null||!C.window)};
_.k2B=function(C){if(_.Mf()&&_.ysZ("Chromium")>=120){var F=_.aXw().mediaSession;try{F.setActionHandler("enterpictureinpicture",function(){C()})}catch(G){}}};
UTB=function(C){for(var F=[],G=_.u(document.styleSheets),V=G.next(),J={};!V.done;J={node$jscomp$769:void 0},V=G.next())J.node$jscomp$769=V.value.ownerNode,J.node$jscomp$769&&(J.node$jscomp$769 instanceof HTMLStyleElement||J.node$jscomp$769 instanceof HTMLLinkElement)&&F.push(new Promise(function(b){return function(z){var Q=b.node$jscomp$769.cloneNode(!0);Q.onload=function(){z()};
Q.onerror=function(){_.Yw(Error("tj"));z()};
C.document.head.appendChild(Q)}}(J)));
return Promise.all(F)};
STI=function(C){var F=[_.Wj(HnI),_.Wj(lXI),_.Wj(ydE)];Znf(window.document.documentElement,C.document.documentElement,[_.Wj(NwT),_.Wj(On9),_.Wj(XzS),_.Wj(wzI),_.Wj(M5f)]);Znf(window.document.body,C.document.body,F)};
Znf=function(C,F,G){C=_.u(C.attributes);for(var V=C.next();!V.done;V=C.next())if(V=V.value)try{_.bi(G,F,V.name,V.value)}catch(J){}};
Bww=function(C,F){C=new _.K3(C.document.documentElement);C.start(L65,F);return C};
vGq=function(C){var F=C.document.documentElement;F.addEventListener("click",function(G){U8o(F,G)});
F.addEventListener("touchstart",function(G){NyA(G)});
F.addEventListener("mousedown",function(G){NyA(G)})};
hgW=function(C,F,G,V){V=V===void 0?!1:V;F=new fXi(F||C,G||C);return{x:C.x+((V===void 0?0:V)?F.lengthX*-1:F.lengthX)*.2,y:C.y+((V===void 0?0:V)?F.lengthY*-1:F.lengthY)*.2}};
cdZ=function(C){if(!C)return!1;var F=C.status==="OK"||C.status==="LIVE_STREAM_OFFLINE",G,V,J,b=(J=(G=C.errorScreen)==null?void 0:G.playerLegacyDesktopYpcTrailerRenderer)!=null?J:(V=C.errorScreen)==null?void 0:V.ypcTrailerRenderer;return!!F||!!b};
_.Adq=function(C,F){if(!C)return!1;var G,V=(G=C.errorScreen)==null?void 0:G.playerLegacyDesktopYpcOfferRenderer,J;F=!!(F==null?0:(J=F.playerOverlayRenderer)==null?0:J.gatedActionsOverlayRenderer);return!!cdZ(C)||!!V||!!F};
xTI=function(C){return egA(C,0,"gclid",C.search(dTZ))>=0||egA(C,0,"gad_source",C.search(dTZ))>=0};
sCS=function(C){var F=[],G=0;return{clear:function(){G=F.length=0},
push:function(V){F[G]=V;G=(G+1)%C},
iterate:function(){return function J(){var b,z,Q,E;return _.DF(J,function(t){switch(t.nextAddress){case 1:_.Oa(t,2),b=F.length,z=0;case 4:if(!(z<b)){t.jumpTo(2);break}Q=G+z;E=_.p3;return t.yield(F[Q%b],7);case 7:E(t.yieldResult);z++;t.jumpTo(4);break;case 2:_.Na(t),_.XG(t,0)}})}()}}};
qTW=function(C){C.eventsToIgnore||(C.eventsToIgnore=[]);var F=C.eventsToIgnore.map(yes),G=new Set(F),V=sCS(C.bufferSize);return{flush:function(){var J=Array.from(V.iterate());V.clear();J=J.map(function(b){return{name:b.name,timestamp:b.startTime,attributes:b.attributes}});
return JSON.stringify(J)},
onSpanStart:function(J){J.name==="event"&&G.has(J.attributes.type)||V.push(J)}}};
Pjq=function(C){C=qTW(C);var F=C.flush;yKw({onSpanStart:C.onSpanStart});rMA.subscribe("handleError",function(G){try{G.params.breadcrumbs=F()}catch(V){_.gD(V,"WARNING")}})};
gGI=function(){HA("web_tracing_action");_.Z8("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
Rgq=function(){HA("web_tracing_action");_.Z8("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
Twf=function(C,F,G){if(F===void 0){YTq||(Rgq(),setInterval(Rgq,6E5),YTq=!0);var V="web_tracing_action"}else V=F;var J,b=((J=C.endTime)!=null?J:C.startTime)-C.startTime,z={};J=C.name;var Q=C.startTime;z={webTracing:(z[C.name]=C.attributes,z)};G=_.pW(dS9)(J,b,Q,z,G,V);if(C.children)for(C=_.u(C.children),V=C.next();!V.done;V=C.next())Twf(V.value,F,G)};
oGB=function(C){var F=w0E.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(G){G.data&&typeof G.data==="object"&&(G=G.data,G.from==="extension"&&G.app==="yt.telemetry"&&(F("Received message from extension",G),C.onMessage(G)))});
return function(G,V){G={app:"yt.telemetry",from:"app",key:G,payload:V};F("Sending message to extension",G);window.postMessage(G,"*")}};
rdI=function(){var C=C===void 0?3E3:C;var F=oGB({onMessage:function(){}}),G=[];
return{onSpanEnd:function(V){V.parentId==null&&G.push(V)===1&&setTimeout(function(){var J=[].concat(_.da(G));G.length=0;F("spansReported",{spans:J})},C)}}};
DTi=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var C=window.performance.getEntriesByType("navigation");if(C.length>0){var F=C[0];X09("pageLoad",{navigationType:K6S(F.type),unloadEventStart:Math.round(F.unloadEventStart),unloadEventEnd:Math.round(F.unloadEventEnd),domInteractive:Math.round(F.domInteractive),domContentLoadedEventStart:Math.round(F.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(F.domContentLoadedEventEnd),
domComplete:Math.round(F.domComplete),loadEventStart:Math.round(F.loadEventStart),loadEventEnd:Math.round(F.loadEventEnd),redirectCount:F.redirectCount},function(){})}}catch(G){}})};
K6S=function(C){switch(C){case "navigate":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_NAVIGATE";case "reload":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_RELOAD";case "back_forward":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_BACK_FORWARD";case "prerender":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_PRERENDER";default:return"PERFORMANCE_NAVIGATION_TIMING_TYPE_UNKNOWN"}};
pzS=function(C){C=C===void 0?400:C;var F=[],G=[];return{start:function(){return Vhq({checkoutEveryNth:C,emit:function(V,J){J&&(F=G,G=[]);G.push(V)}})},
getRecording:function(){return[].concat(_.da(F),_.da(G))}}};
VFW=function(){for(var C=jHs.value,F={},G=_.u(C.enabledSpansArray),V=G.next();!V.done;V=G.next())F[V.value]=!0;lpi({sessionId:iq9(),enabledSpans:F,shouldSampleFn:function(b,z,Q){if(mTw){var E;return b==="shortToShort"||(Q==null?void 0:(E=Q.rootSpan())==null?void 0:E.name)==="shortToShort"}return!0}});
ZQ9("pageLoad")&&DTi();C.exportToCsi&&yKw(CkZ);C.exportToDevTools&&yKw(rdI());C.maxBreadcrumbs>0&&Pjq({eventsToIgnore:jGo,bufferSize:C.maxBreadcrumbs});if(C.sessionReplayEvents>0){var J=pzS(C.sessionReplayEvents);J.start();_.y("web_tracing_session_replay_demo")&&(window.exportSessionReplay=function(){var b=JSON.stringify(J.getRecording(),null,2);b=FCf(new Blob([b],{type:"text/plain"}));var z=document.createElement("a");z.download="session_replay.json";z.dataset.downloadurl=["application/json",z.download,
z.href].join(":");z.style.display="none";z.href=b;z.click();URL.revokeObjectURL(b);Gq5("View replay at go/yt-session-replay-viewer")})}};
ig9=function(C){return new Promise(function(F){window.setTimeout(F,C)})};
JAB=function(C){var F={bicf:function(b){C.uy5=b},
blc:function(){return C.getLatestChallengeResponse()},
bcr:function(b){C.y9q.push(b)}},G=window;
G.ntpevasrs=F;if(G.ntpqfbel!==void 0)for(var V=_.u(G.ntpqfbel),J=V.next();!J.done;J=V.next())J=J.value,J(F);G.ntpqfbel=void 0};
$uS=function(C){return _.I(function(F){if(F.nextAddress==1)return _.yy(F,2),F.yield(C.fM9(),4);if(F.nextAddress!=2)return _.Gn(F,0);_.wa(F);_.S9(F)})};
bgf=function(C){var F,G;(F=C.ytcsi)==null||(G=F.tick)==null||G.call(F,"pot_ist")};
nEB=function(C){if(C instanceof Error){var F=_.mN("yt.logging.errors.log");F&&F(C,"WARNING")}};
unq=function(C){try{var F=JSON.parse(C);if(F.bgChallenge)return F}catch(G){}};
QGo=function(){var C=window,F={networkStatusManagerPromise:_.I8().resolve(new mUB(_.FP)),initialChallengeSli:_.y("wpo_att_sli")?new _.NgB("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};C=C===void 0?window:C;var G=C.ytAtR,V;F==null||(V=F.initialChallengeSli)==null||_.m8(V);if(G){if(G=unq(G)){var J;F==null||(J=F.initialChallengeSli)==null||_.CV(J,"SUCCESS");z6B(G,F)}C.ytAtR=void 0}else C.ytAtRC=function(b){if(b=unq(b)){var z;F==null||(z=F.initialChallengeSli)==null||
_.CV(z,"SUCCESS");z6B(b,F);C.ytAtRC=void 0}}};
WCA=function(){if(IgA)return IgA;try{var C=_.Md("IFRAME");_.mY(C,_.kf(EEo));C.sandbox.add("allow-same-origin");C.style.display="none";document.body.appendChild(C);return IgA=C}catch(F){C=new _.Ay("Failed to create sandbox iframe"),_.gD(C)}};
tFZ=function(C){var F,G;return(G=C==null?void 0:(F=C.contentWindow)==null?void 0:F.fetch)!=null?G:window.fetch};
agi=function(C){var F,G;return(G=C==null?void 0:(F=C.contentWindow)==null?void 0:F.Request)!=null?G:window.Request};
kq5=function(C){var F,G;return(G=C==null?void 0:(F=C.contentWindow)==null?void 0:F.TextDecoder)!=null?G:window.TextDecoder};
UuS=function(){return function(C,F){_.TF("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[C]=F}};
Hgo=function(){return function(C,F){var G={};G[C]=F;C=_.pW(_.Aai)(G);Object.keys(C).length>0&&_.UZ(C)}};
Zg5=function(){if($DA()==="hidden")var C="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else $DA()==="visible"&&(C="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",lgE=null);C&&yAA(C)};
yAA=function(C){if(C==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||C==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(NAi===C)return;NAi=C}var F=9E4+Math.random()*2E3;if(C!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.I1()>F)&&$DA()==="visible"){F=-1;lgE&&(F=Math.round((0,_.Et)()-lgE));var G=String;var V=_.mN("_fact",window);V=V==null||V==-1?-1:Math.max(Date.now()-V,0);_.q1("foregroundHeartbeat",{firstActivityMs:G(V),clientDocumentNonce:JYE,index:String(Ogi),lastEventDeltaMs:String(F),trigger:C});
_.zn("_fact",-1,window);Ogi++;lgE=(0,_.Et)()}};
XHB=function(C,F,G,V,J,b){F=new Uint8Array(F);if(C.length===0)return F;var z=0;J=J!=null?J:C.length-1;for(var Q=G;Q<=J;Q++){var E=C[Q],t=Q===G?V:0,k=void 0,U=Q===J?(k=b)!=null?k:E.length:E.length;E=E.subarray(t,U);F.set(E,z);z+=E.length}return F};
_.wHw=function(){try{return!!self.sessionStorage}catch(C){return!1}};
MFZ=function(){var C=navigator;return new Promise(function(F,G){var V;(V=C.webkitTemporaryStorage)!=null&&V.queryUsageAndQuota?C.webkitTemporaryStorage.queryUsageAndQuota(function(J,b){F({usage:J,quota:b})},function(J){G(J)}):G(Error("Dj"))})};
SQ5=function(C,F){var G={errorSeverity:F.errorSeverity.toString(),wizFeatureFlags:Object.entries(F.featureFlags).join("\n")};cMA(F,G);F=F.errorSeverity;F===3?_.gD(C,"ERROR",void 0,void 0,void 0,G):F===2&&_.gD(C,"WARNING",void 0,void 0,void 0,G);_.y("cow_if_errors_in_popup")&&F===3&&C.message.indexOf("<If>")!==-1&&window.alert(C.message)};
LCB=function(C,F){var G=sZ.get(C)||{layerNode:F};G.layerNode=F;HQB(C,G);C.getScreenLayer=function(){return ju(G.layerNode)}};
BAq=function(C){var F;C=C.parentNode;for(var G;C&&((F=sZ.get(C))==null||!F.isRenderer)&&!((G=C.polymerController)!=null?G:C).isRenderer_;)C=C.parentNode||C.host;if(F=C)return sZ.get(F)};
vES=function(C){if(C){sZ.delete(C);var F=_.I8().resolve(E8);wR5(C,F)}};
h6Z=function(C,F,G){if(G===void 0?0:G){if(G=C.getAttribute("client-ve-type"),F.data&&!F.disableReactiveLogging||G)_.RX(function(){fgo(C,_.g0(F.data))},"qg"),_.q0(function(){return void vES(C)})}else typeof F.data!=="function"&&fgo(C,F.data)};
fgo=function(C,F){cAq++;AAW(C,F)&&_.gT.addJob(function(){_.FD(_.gT,function(){if(AAW(C,F)&&C.ownerDocument.documentElement===document.documentElement&&C){var G;if(C.getAttribute("layer")){var V=G=Number(C.getAttribute("layer")),J=sZ.get(C);J?J.layerNode.layer=V:LCB(C,new e6f(V));(V=BAq(C))&&(J=sZ.get(C))!=null&&(J.layerNode.parent=V.layerNode)}else if(G=sZ.get(C))G=ju(G.layerNode);else{G=ju;V=new e6f;if(J=BAq(C))V.parent=J.layerNode;LCB(C,V);G=G(V)}G!=null||(G=0);V=C.getAttribute("client-ve-type");
J=Number(V);var b=!1;V=!1;var z=sZ.get(C),Q;if((Q=z)&&!(Q=z[duZ]!==F)&&(Q=J)){var E;Q=((E=sZ.get(C))==null?void 0:E.clientVeType)===void 0}Q&&(z[duZ]=F,b=V=z.isRenderer=!0);sZ.has(C)&&(sZ.get(C).clientVeType=J);C.visualElement&&(V=!0);if(_.y("wiz_next_ld_fix_client_ve_spec")){var t;E=((t=_.Z(F==null?void 0:F.rendererContext,_.$e))==null?void 0:t.loggingDirectives)||(F==null?void 0:F.loggingDirectives)}else E=F==null?void 0:F.loggingDirectives;E&&E.clientVeSpec&&(t=xuf(_.GS(),C),t=_.sGs(_.ia(),E,t||
void 0,G))&&(C.visualElement=t);!C.visualElement&&J&&b&&(C.veType=J,t=void 0,_.y("wiz_next_client_ve_parent_fix")&&(t=xuf(_.GS(),C)),t=_.Vp(_.ia(),C,t,G),C.visualElement=t);V&&(t=_.I8().resolve(E8),BNE(C,{data:F,observer:t,layer:G,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
AAW=function(C,F){return(F==null?0:F.trackingParams)||(F==null?0:F.loggingDirectives)||_.Z(F==null?void 0:F.rendererContext,_.$e)||C.getAttribute("client-ve-type")?!0:!1};
qQT=function(C,F,G){C.componentType!==h2&&G instanceof HTMLElement&&F&&!_.y("cow_logging_in_component_wrapper")&&h6Z(G,F,!0)};
YQT=function(){if(!Pkw){Pkw=!0;var C=Object.assign({},{flushRenderEffectsDuringRender:!0,enableWizQueueEffectAndOnInitInitialRuns:_.y("enable_wiz_queue_effect_and_on_init_initial_runs")},{handleError:SQ5,enableComponentStacksInErrorMessages:!1});Object.assign(zl,C);mkS=gEB;R6Z();VTw=K3q;jos=Dys}};
R6Z=function(){_.y("cow_logging_in_component_wrapper")?(J7f=function(C,F){F instanceof HTMLElement&&h6Z(F,C,!0)},qHA=function(){}):(J7f=function(){},qHA=qQT)};
TAA=function(C,F,G){F=F===void 0?{}:F;var V,J=(V=_.Z(C.commandMetadata,_.GU))==null?void 0:V.url;V=F.form||{};!G||V.element||V.skipDefaultElement||(F.form=F.form||{},F.form.element=G);if(J&&J!=="/service_ajax")return{type:0,command:C,form:F.form};if(_.y("kevlar_service_command_check")){if(_.vB(_.I8().resolve(_.Qk),C))return Object.assign({},{type:1,command:C},F)}else{var b;if((b=_.Z(C.commandMetadata,_.GU))==null?0:b.apiUrl)return Object.assign({},{type:1,command:C},F)}return{type:2,command:C,form:F.form}};
oEs=function(C){if(C.form){var F=C.form,G=Object.assign({},F);F=F.element;G=(delete G.element,G);if(F)return[_.DQ(F,[C.command,G,C.commandController])]}return[]};
rAE=function(C){if(C.form){var F=C.form,G=Object.assign({},F);F=F.element;G=(delete G.element,G);F&&_.pX(F,[C.command],F,G)}};
DuS=function(C,F,G){var V=new KCA(C,F),J=new GC(C,F,G);C={"/youtubei/v1/browse":new V7(C,F,G),"/youtubei/v1/player":V,"/youtubei/v1/navigation/resolve_url":new iV,"/youtubei/v1/next":J,"/youtubei/v1/guide":new J6(G),"/youtubei/v1/search":new $C(C,F,G),"/youtubei/v1/reel/reel_item_watch":new bV(C,F,G),"/youtubei/v1/get_watch":new nV(V,J)};C["/youtubei/v1/account/account_menu"]=new uV;C["/youtubei/v1/notification/get_notification_menu"]=new zC;return C};
IE=function(){var C=_.I8().resolve(_.Q7);return Promise.resolve(pHI(C,_.VT.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
muw=function(C){return C&&(C=_.Ed(_.QbB(C)))?(new URLSearchParams(C)).get("service"):null};
aE=function(C,F){_.rQ(_.Ws(),function(){_.NV("adl")});
_.I8().resolve(C1o)(F);C=C.root;C.loadData&&C.loadData(F);(F==null?0:F.response)?_.CV(wPA(),"SUCCESS"):_.Yw(new _.Ay("Lifecycle: No response in data",_.oD("IS_SHELL_LOAD"),F?F.page:"NO_PAGE",F?F.endpoint:"NO_ENDPOINT"));C.polymerController.$["page-manager"].lazyPrepareCriticalPages((F==null?void 0:F.page)||"",F.endpoint);var G,V;((V=_.Z(F==null?void 0:(G=F.endpoint)==null?void 0:G.commandMetadata,_.GU))==null?0:V.webPageType)&&_.s3().dispatch(_.t6(_.Z(F.endpoint.commandMetadata,_.GU).webPageType))};
jIT=function(){var C,F;return _.I(function(G){switch(G.nextAddress){case 1:C=window;if(!C.getDataPromise){G.jumpTo(2);break}_.yy(G,3);return G.yield(C.getDataPromise(),5);case 5:return G.return(G.yieldResult);case 3:return _.wa(G),G.yield(IE(),6);case 6:return G.return(G.yieldResult);case 2:if(C.getInitialData)return F=C.getInitialData(),C.getInitialData=void 0,G.return(F);throw Error("Fj`"+_.VT.location.href);}})};
Gx9=function(){_.Yn("CSI_SERVICE_NAME","youtube");_.UZ({loadType:"cold"});_.y("kevlar_log_lcp")&&FsS(function(C){_.NV("lcp",C.value)})};
VJf=function(){var C=_.Da(document.location.href,"enable");C&&C.indexOf("scraper")>-1&&_.Yn("ADD_SCRAPER_ATTRIBUTES",!0)};
zkq=function(C){var F=C.root;C=[ihw,JHI,_.kC];_.y("web_feedback_endpoint_autolog_allowlist_killswitch")&&C.push(_.Ud,$2s);var G=[];_.y("web_talk_to_recs_double_click_fix")&&G.push(_.bhA,nti);uQS(function(V,J){return TAA(V,J,F)},function(V){if(!V.command)return[];
var J;((J=V.form)==null?0:J.element)?V.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},V.form,{endpoint:V.command})})):F.handleNavigate(V);return[]},C,G);
_.I8().addProvider({provide:_.WD,useValue:_.Cy.instance})};
I4W=function(){var C={},F={},G;for(G in QIW){var V=_.u(_.yH(QIW[G],void 0,"IAtZ7"));C[G]=V.next().value;F[G]=V.next().value}return[C,function(J){for(var b in J){var z=void 0;(z=F[b])==null||z(J[b])}}]};
_.Hs=function(C,F,G){F=F===void 0?!1:F;var V=_.xf.getValueByKeys(C,"contents","twoColumnWatchNextResults","results","results","contents"),J=_.xf.getValueByKeys(C,"contents","twoColumnWatchNextResults","playlist","playlist")||null;F&&(J=null);var b=F=null;if(J)F=_.xf.getValueByKeys(J,"titleText"),b=_.xf.unsafeClone(_.xf.getValueByKeys(J,"longBylineText")),V="",b&&(V=_.dd(b)),b=_.eN(V);else if(V){V=_.u(V);for(var z=V.next();!z.done;z=V.next())z=z.value,z.videoPrimaryInfoRenderer&&(F=_.xf.getValueByKeys.apply(_.xf,
[z].concat(_.da(EtT)))),z.videoSecondaryInfoRenderer&&(b=_.xf.getValueByKeys.apply(_.xf,[z].concat(_.da(WsW))))}else _.CD(Error("Kj"));var Q;C.currentVideoEndpoint?Q=C.currentVideoEndpoint:_.CD(Error("Lj"));var E;G&&(E=_.xf.getValueByKeys(G,"playabilityStatus","miniplayer","miniplayerRenderer"));C={miniplayerTitle:F,miniplayerSubtitle:b,watchEndpoint:Q,playlistData:J};E&&(C.miniplayerRenderer=E);return C};
tJW=function(C){if(C)return _.U9(C)};
_.a4T=function(){return{isFullscreen:function(){throw Error("Mj");},
toggleFullscreen:function(){throw Error("Nj");},
exitFullscreen:function(){throw Error("Oj");},
isAutonavEnabled:function(){throw Error("Pj");},
setAutonavEnabled:function(){throw Error("Qj");},
isAutoplaySetExplicitly:function(){throw Error("Rj");}}};
kxS=function(C){return C.videoDuration?C.numTaps>1&&C.tapDirection!==0?_.lV(C.draggedTime/C.videoDuration,0,1):_.lV((C.playedTime||0)/C.videoDuration,0,1):0};
U2f=function(C){return C.videoDuration?C.isDragging||C.numTaps>1&&C.tapDirection!==0?_.lV(C.draggedTime/C.videoDuration,0,1):_.lV((C.playedTime||0)/C.videoDuration,0,1):0};
l4T=function(C){var F,G,V;return _.Z(C==null?void 0:(F=C.markersMap)==null?void 0:(G=F.find(function(J){return J.key==="HEATSEEKER"}))==null?void 0:(V=G.value)==null?void 0:V.heatmap,HhB)};
yHI=function(C){var F,G;return(G=(F=l4T(C))==null?void 0:F.heatMarkersDecorations)!=null?G:[]};
Zh9=function(C){if(_.y("mweb_supported_chapters_killswitch"))return!0;var F;return!!(C==null?0:(F=C.markersMap)==null?0:F.find(function(G){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(G.key)}))};
_.NZs=function(C){var F=Object,G=F.assign,V;C={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(V=C==null?void 0:C.getPlayerState())!=null?V:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return G.call(F,{},{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,lastTapTime:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},C,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
OhI=function(C){return function(F){var G=C(),V,J=(V=G.playerApi)==null?void 0:V.getPlayerState();F&&F!==G.playerState&&(F===1||F===2)&&G.setState({playerState:J})}};
wCs=function(C){return function(F){var G=C(),V=G.playerApi;V&&(F==null?void 0:F.type)==="newdata"&&(XCW&&(clearTimeout(XCW),XCW=void 0),_.y("web_shorts_use_progress_state_for_gapless")?(F=V==null?void 0:V.getProgressState(F==null?void 0:F.playertype),F=F.seekableEnd-F.seekableStart):F=V==null?void 0:V.getDuration(F==null?void 0:F.playertype),G.setState({playedTime:0,videoDuration:F}))}};
MJf=function(C){return function(F){var G=C(),V=G.playerApi;if(V){var J=V.getPresentingPlayerType();_.y("web_shorts_use_progress_state_for_gapless")?(V=V.getProgressState(J),V=V.seekableEnd-V.seekableStart):V=V.getDuration(J);G.setState({playedTime:F,videoDuration:V})}}};
LsS=function(C){_.ud(112394,C,function(){return Sgi},function(F){Sgi=F})};
f4i=function(C,F){if(!C)return[];var G,V,J;C=((G=C.markersMap)==null?void 0:(V=G.find(function(b){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(b.key)}))==null?void 0:(J=V.value)==null?void 0:J.chapters)||[];
!BZS(C)||(F==null?0:F.ignoreStub)||(C=[vtw()].concat(_.da(C)));return C};
vtw=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
BZS=function(C){if(C.length===0)return!1;var F;return((F=_.Z(C[0],y7))==null?void 0:F.timeRangeStartMillis)!==0};
Zo=function(C){return C?C.timeRangeStartMillis||0:0};
cHT=function(C,F){if(C.isDragging&&F)return C=hki(C,F),C===-1?vtw():f4i(F)[C]};
hki=function(C,F){return C.isDragging&&F?f4i(F,{ignoreStub:!0}).findIndex(function(G,V,J){G=AHW(C);return ek9(G,J,V).scrubberHovering}):-1};
AHW=function(C){return Object.assign({},C,{videoDuration:C.videoDuration*1E3,playedTime:C.playedTime*1E3,draggedTime:C.draggedTime*1E3})};
ek9=function(C,F,G){var V=Zo(_.Z(F[G],y7));F=Zo(_.Z(F[G+1],y7))||C.videoDuration;G=C.isDragging;var J;if(J=C.isDragging)J=C.draggedTime,J=J!==null&&J>=V&&J<F;var b=C.playedTime;return b!==null&&b>=V&&b<F?{videoPosition:"active",isScrubbing:G,scrubberHovering:J}:C.playedTime<V?{videoPosition:"pending",isScrubbing:G,scrubberHovering:J}:{videoPosition:"seen",isScrubbing:G,scrubberHovering:J}};
d2S=function(C,F){return C.videoPosition==="seen"||(F===void 0?0:F)>0};
x2B=function(C,F,G){F=C/F.storyboardInterval;var V=f4i(G);if(!V.length)return-F*72;G=0;V=_.u(V);for(var J=V.next();!J.done;J=V.next())if(Zo(_.Z(J.value,y7))/1E3<C)G++;else break;return-(F*72)-G*56};
sI5=function(C){return C?C.width/C.columns:0};
qgB=function(C){return C.isHovering?C.hoveredTime:C.draggedTime};
P1Z=function(C,F){C=C.draggedTime*1E3;return C>=F.visibleTimeRangeStartMillis&&C<=F.visibleTimeRangeEndMillis};
_.gtT=function(C){if(C===void 0||Number.isNaN(C))return"--:--";var F=Math.abs(Math.floor(C)),G=Math.floor(F/86400),V=Math.floor(F%86400/3600),J=Math.floor(F%3600/60);F=Math.floor(F%60);var b="";G>0&&(b+=G+":",V<10&&(b+="0"));if(G>0||V>0)b+=V+":",J<10&&(b+="0");b+=J+":";F<10&&(b+="0");b+=F;return C>=0?b:"-"+b};
Rko=function(C,F){return function(){var G=qgB(C());var V=F();var J=C().playerApi;if(J&&J.getNumberOfStoryboardLevels()!==0){var b=J.getStoryboardFrameIndex(G,1);b!==-1?V=J.getStoryboardFrame(b,1):(G=J.getStoryboardFrameIndex(G,0),J=J.getStoryboardFrame(G,0),V&&J&&(J.height*=3,J.width*=3),V=J)}else V=null;if(!V)return null;F()&&(V.width=90*V.columns,V.height=160*V.rows);return V}};
_.Nb=function(C){if(!C||C.getVideoData)return C};
YgT=function(){var C;return{playerApi:(C=_.jV())!=null?C:void 0}};
TZT=function(C){var F;_.I(function(G){if(G.nextAddress==1)return G.yield(_.CY(),2);if(F=G.yieldResult)F.unMute(!0),F.setVolume(C,!0);_.S9(G)})};
ot9=function(C,F){C&&(C.value=""+F,C.style.setProperty("--gradient-percent",F+"%"))};
rHs=function(C){var F;return(F=C==null?void 0:C.value)!=null?F:0};
KsE=function(){var C;_.I(function(F){if(F.nextAddress==1)return F.yield(_.CY(),2);C=F.yieldResult;if(!C)return F.return();C.isMuted()?C.unMute(!0):C.mute(!0);_.S9(F)})};
D2o=function(C){var F=_.I8().resolve(_.Od).getPlayerElement();F&&C&&(C===1?F.pause():F.play())};
pCE=function(C){_.KX(C,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
m2f=function(C){_.KX(C,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
jWW=function(C){return _.xn(C.document.body,function(){return _.W(CXS,null)},"eh")};
FBq=function(){var C=window.performance.getEntriesByType("navigation");return C?C.map(function(F){return F.type}).includes("reload"):!1};
uoo=function(){XD(XD(XD(XD(XD(XD(XD(_.I8().resolve(_.wp),_.Gwq),_.VeB),_.irq),_.JbZ),_.$H9),_.br5),_.ncT)};
zHs=function(C,F){F=F===void 0?!1:F;var G,V,J,b;return _.I(function(z){if(z.nextAddress==1)return F||!_.y("kevlar_shorts_seedless_retry_initial_load")||(G=window,V=!(!G.getDataPromise&&!G.getInitialData),V)?z.yield(jIT(),2):(setTimeout(zHs.bind(window,C,!0),1E3),z.return());if(z.nextAddress!=3)return J=z.yieldResult,z.yield(QW5(J),3);b=z.yieldResult;aE(C,b);_.S9(z)})};
QW5=function(C){var F;if((F=C.response)==null||!F.replacementEndpoint)return _.mE(C);F=_.I8().resolve(_.Q7);C=C.response;_.Z(C.replacementEndpoint,_.nd)&&C.sequenceContinuation&&(_.Z(C.replacementEndpoint,_.nd).sequenceParams=C.sequenceContinuation);return Mb(F,C.replacementEndpoint,{},_.VT.location.href,"shorts",function(){},function(){return!1})};
Ec5=function(C){var F=_.I8().resolve(I1s);C.playerResponse&&F.handleResponse(C.playerResponse);C.response&&F.handleResponse(C.response)};
WBT=function(C){var F=_.s3(),G,V=_.Z((G=C.response)==null?void 0:G.frameworkUpdates,AM),J;G=_.Z((J=C.playerResponse)==null?void 0:J.frameworkUpdates,AM);var b;C=_.Z((b=C.reelWatchSequenceResponse)==null?void 0:b.frameworkUpdates,AM);V&&_.J4(V,F);G&&_.J4(G,F);C&&_.J4(C,F)};
teo=function(C){var F;_.y("enable_redirect_linking_for_desktop_web_client")&&((F=window.location.hash)==null?0:F.includes("redirect_state"))&&C.url&&(C.url=C.url.toString()+window.location.hash)};
UH5=function(C){var F=_.I8(),G=F.resolve(_.Q7);F=F.resolve(_.a1q);C.endpoint&&(G=kwB(G,C.endpoint),G.content&&C.response&&_.Su(F,C.response,G.content),G.player&&C.playerResponse&&_.Su(F,C.playerResponse,G.player),G.reelSequence&&C.reelWatchSequenceResponse&&_.Su(F,C.reelWatchSequenceResponse,G.reelSequence))};
LV=function(C,F){Ec5(F);WBT(F);var G;(F==null?0:F.url)&&((G=window.location.hash)==null?0:G.includes("redirect_state"))&&(teo(F),(G=muw(F.url))&&_.rz(C.root,"yt-initialize-third-party",[G,F]));UH5(F);G=_.I8();var V=G.resolve(HrT);F.playerResponse&&G.resolve(l1i).handleResponse(F.playerResponse);if(F.playerResponse){G=void 0;if(_.y("ab_v_vid_sig")&&F.endpoint){var J,b=(J=_.Z(F.endpoint,_.eT))!=null?J:_.Z(F.endpoint,_.nd);b&&(G=b.videoId)}ybB(V,F.playerResponse,G)}F.playerResponse&&DsT(F.playerResponse)&&
_.y("web_enable_ab_rsp_cl")?LJ5().then(function(){ZrW(V,F.playerResponse);aE(C,F)}):aE(C,F)};
OrZ=function(C){if(C=C.root.data){var F=_.I8().resolve(NUq);C.endpoint&&(C.response&&F.handleResponse(C.response,void 0,document.querySelector("ytd-app")),C.playerResponse&&F.handleResponse(C.playerResponse),C.reelWatchSequenceResponse&&F.handleResponse(C.reelWatchSequenceResponse))}};
Xyq=function(C){var F,G,V,J,b,z;return _.I(function(Q){switch(Q.nextAddress){case 1:F=window;if(!F.getDataPromise){Q.jumpTo(2);break}_.yy(Q,3);return Q.yield(F.getDataPromise(),5);case 5:G=Q.yieldResult;LV(C,G);_.Gn(Q,4);break;case 3:return _.wa(Q),Q.yield(IE(),6);case 6:V=Q.yieldResult,aE(C,V);case 4:return Q.return();case 2:if(!_.y("sw_nav_preload_pbj")){Q.jumpTo(7);break}F.fetchInitialData=function(){var E;return _.I(function(t){if(t.nextAddress==1)return t.yield(IE(),2);E=t.yieldResult;aE(C,E);
_.S9(t)})};
if(F.getInitialData){F.loadInitialData=function(E){LV(C,E)};
J=F.getInitialData();F.getInitialData=void 0;LV(C,J);Q.jumpTo(8);break}F.fetchInitialData=void 0;return Q.yield(IE(),9);case 9:b=Q.yieldResult,aE(C,b);case 8:return Q.return();case 7:F.getInitialData?(z=F.getInitialData(),F.getInitialData=void 0,LV(C,z)):F.loadInitialData=function(E){LV(C,E)},_.S9(Q)}})};
Meq=function(){var C=new wyS;_.ryw(C);C.registerInitializationCallback(function(){VZs()});
C.registerCallback("error",function(F,G,V){_.ri(Error("Vj`"+G+"`"+V))})};
SoW=function(C){var F=0;return function(){return F<C.length?{done:!1,value:C[F++]}:{done:!0}}};
LBq=typeof Object.defineProperties=="function"?Object.defineProperty:function(C,F,G){if(C==Array.prototype||C==Object.prototype)return C;C[F]=G.value;return C};
BUI=function(C){C=["object"==typeof globalThis&&globalThis,C,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var F=0;F<C.length;++F){var G=C[F];if(G&&G.Math==Math)return G}throw Error("a");};
_.I6=BUI(this);vcW="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");_.I6.BigInt64Array&&(vcW.push("BigInt64"),vcW.push("BigUint64"));var hHW=function(C,F){if(F)for(var G=0;G<vcW.length;G++)f1W(vcW[G]+"Array.prototype."+C,F)},Bs=function(C,F){F&&f1W(C,F)},f1W=function(C,F){var G=_.I6;
C=C.split(".");for(var V=0;V<C.length-1;V++){var J=C[V];if(!(J in G))return;G=G[J]}C=C[C.length-1];V=G[C];F=F(V);F!=V&&F!=null&&LBq(G,C,{configurable:!0,writable:!0,value:F})};
Bs("Symbol",function(C){if(C)return C;var F=function(b,z){this.$jscomp$symbol$id_=b;LBq(this,"description",{configurable:!0,writable:!0,value:z})};
F.prototype.toString=function(){return this.$jscomp$symbol$id_};
var G="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",V=0,J=function(b){if(this instanceof J)throw new TypeError("b");return new F(G+(b||"")+"_"+V++,b)};
return J});
Bs("Symbol.iterator",function(C){if(C)return C;C=Symbol("c");LBq(Array.prototype,C,{configurable:!0,writable:!0,value:function(){return cbo(SoW(this))}});
return C});
Bs("Symbol.asyncIterator",function(C){return C?C:Symbol("d")});
var cbo=function(C){C={next:C};C[Symbol.iterator]=function(){return this};
return C},AbW=typeof Object.create=="function"?Object.create:function(C){var F=function(){};
F.prototype=C;return new F},eHS=function(){function C(){function G(){}
new G;Reflect.construct(G,[],function(){});
return new G instanceof G}
if(typeof Reflect!="undefined"&&Reflect.construct){if(C())return Reflect.construct;var F=Reflect.construct;return function(G,V,J){G=F(G,V);J&&Reflect.setPrototypeOf(G,J.prototype);return G}}return function(G,V,J){J===void 0&&(J=G);
J=AbW(J.prototype||Object.prototype);return Function.prototype.apply.call(G,J,V)||J}}(),dHT;
if(typeof Object.setPrototypeOf=="function")dHT=Object.setPrototypeOf;else{var xH5;a:{var sWE={a:!0},qoi={};try{qoi.__proto__=sWE;xH5=qoi.a;break a}catch(C){}xH5=!1}dHT=xH5?function(C,F){C.__proto__=F;if(C.__proto__!==F)throw new TypeError("e`"+C);return C}:null}vs=dHT;
_.O=function(C,F){C.prototype=AbW(F.prototype);C.prototype.constructor=C;if(vs)vs(C,F);else for(var G in F)if(G!="prototype")if(Object.defineProperties){var V=Object.getOwnPropertyDescriptor(F,G);V&&Object.defineProperty(C,G,V)}else C[G]=F[G];C.superClass_=F.prototype};
_.u=function(C){var F=typeof Symbol!="undefined"&&Symbol.iterator&&C[Symbol.iterator];if(F)return F.call(C);if(typeof C.length=="number")return{next:SoW(C)};throw Error("f`"+String(C));};
VH=function(C){for(var F,G=[];!(F=C.next()).done;)G.push(F.value);return G};
_.da=function(C){return C instanceof Array?C:VH(_.u(C))};
_.h6=function(C){return fV(C,C)};
fV=function(C,F){C.raw=F;Object.freeze&&(Object.freeze(C),Object.freeze(F));return C};
cs=function(C,F){return Object.prototype.hasOwnProperty.call(C,F)};
PXB=function(C){if(C==null)throw new TypeError("g");return Object(C)};
gc9=typeof Object.assign=="function"?Object.assign:function(C,F){C=PXB(C);for(var G=1;G<arguments.length;G++){var V=arguments[G];if(V)for(var J in V)cs(V,J)&&(C[J]=V[J])}return C};
Bs("Object.assign",function(C){return C||gc9});
var A6=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},RHs=function(C){if(C.isRunning_)throw new TypeError("i");
C.isRunning_=!0};
A6.prototype.JSC$8719_next_=function(C){this.yieldResult=C};
var Yow=function(C,F){C.abruptCompletion_={exception:F,isException:!0};C.nextAddress=C.catchAddress_||C.finallyAddress_};
A6.prototype.return=function(C){this.abruptCompletion_={return:C};this.nextAddress=this.finallyAddress_};
A6.prototype.yield=function(C,F){this.nextAddress=F;return{value:C}};
A6.prototype.jumpTo=function(C){this.nextAddress=C};
_.S9=function(C){C.nextAddress=0};
_.yy=function(C,F,G){C.catchAddress_=F;G!=void 0&&(C.finallyAddress_=G)};
_.Oa=function(C,F){C.catchAddress_=0;C.finallyAddress_=F||0};
_.Gn=function(C,F,G){C.nextAddress=F;C.catchAddress_=G||0};
_.wa=function(C,F){C.catchAddress_=F||0;F=C.abruptCompletion_.exception;C.abruptCompletion_=null;return F};
_.Na=function(C,F,G,V){V?C.finallyContexts_[V]=C.abruptCompletion_:C.finallyContexts_=[C.abruptCompletion_];C.catchAddress_=F||0;C.finallyAddress_=G||0};
_.XG=function(C,F,G){G=C.finallyContexts_.splice(G||0)[0];(G=C.abruptCompletion_=C.abruptCompletion_||G)?G.isException?C.nextAddress=C.catchAddress_||C.finallyAddress_:G.jumpTo!=void 0&&C.finallyAddress_<G.jumpTo?(C.nextAddress=G.jumpTo,C.abruptCompletion_=null):C.nextAddress=C.finallyAddress_:C.nextAddress=F};
TUq=function(C){this.JSC$8724_context_=new A6;this.program_=C};
rbf=function(C,F){RHs(C.JSC$8724_context_);var G=C.JSC$8724_context_.yieldAllIterator_;if(G)return ocq(C,"return"in G?G["return"]:function(V){return{value:V,done:!0}},F,C.JSC$8724_context_.return);
C.JSC$8724_context_.return(F);return eu(C)};
ocq=function(C,F,G,V){try{var J=F.call(C.JSC$8724_context_.yieldAllIterator_,G);if(!(J instanceof Object))throw new TypeError("h`"+J);if(!J.done)return C.JSC$8724_context_.isRunning_=!1,J;var b=J.value}catch(z){return C.JSC$8724_context_.yieldAllIterator_=null,Yow(C.JSC$8724_context_,z),eu(C)}C.JSC$8724_context_.yieldAllIterator_=null;V.call(C.JSC$8724_context_,b);return eu(C)};
eu=function(C){for(;C.JSC$8724_context_.nextAddress;)try{var F=C.program_(C.JSC$8724_context_);if(F)return C.JSC$8724_context_.isRunning_=!1,{value:F.value,done:!1}}catch(G){C.JSC$8724_context_.yieldResult=void 0,Yow(C.JSC$8724_context_,G)}C.JSC$8724_context_.isRunning_=!1;if(C.JSC$8724_context_.abruptCompletion_){F=C.JSC$8724_context_.abruptCompletion_;C.JSC$8724_context_.abruptCompletion_=null;if(F.isException)throw F.exception;return{value:F.return,done:!0}}return{value:void 0,done:!0}};
KB5=function(C){this.next=function(F){RHs(C.JSC$8724_context_);C.JSC$8724_context_.yieldAllIterator_?F=ocq(C,C.JSC$8724_context_.yieldAllIterator_.next,F,C.JSC$8724_context_.JSC$8719_next_):(C.JSC$8724_context_.JSC$8719_next_(F),F=eu(C));return F};
this.throw=function(F){RHs(C.JSC$8724_context_);C.JSC$8724_context_.yieldAllIterator_?F=ocq(C,C.JSC$8724_context_.yieldAllIterator_["throw"],F,C.JSC$8724_context_.JSC$8719_next_):(Yow(C.JSC$8724_context_,F),F=eu(C));return F};
this.return=function(F){return rbf(C,F)};
this[Symbol.iterator]=function(){return this}};
_.DF=function(C,F){F=new KB5(new TUq(F));vs&&C.prototype&&vs(F,C.prototype);return F};
DH9=function(C){function F(V){return C.next(V)}
function G(V){return C.throw(V)}
return new Promise(function(V,J){function b(z){z.done?V(z.value):Promise.resolve(z.value).then(F,G).then(b,J)}
b(C.next())})};
_.I=function(C){return DH9(new KB5(new TUq(C)))};
_.Z6=function(C){var F=C[Symbol.asyncIterator];return F!==void 0?F.call(C):new py9(_.u(C))};
py9=function(C){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return C};
this.next=function(F){return Promise.resolve(C.next(F))};
this["throw"]=function(F){return new Promise(function(G,V){var J=C["throw"];J!==void 0?G(J.call(C,F)):(G=C["return"],G!==void 0&&G.call(C),V(new TypeError("j")))})};
C["return"]!==void 0&&(this["return"]=function(F){return Promise.resolve(C["return"](F))})};
_.Rn=function(){for(var C=Number(this),F=[],G=C;G<arguments.length;G++)F[G-C]=arguments[G];return F};
_.p3=function(C){return C};
Bs("globalThis",function(C){return C||_.I6});
Bs("Reflect",function(C){return C?C:{}});
Bs("Reflect.construct",function(){return eHS});
Bs("Reflect.setPrototypeOf",function(C){return C?C:vs?function(F,G){try{return vs(F,G),!0}catch(V){return!1}}:null});
Bs("Promise",function(C){function F(){this.batch_=null}
function G(z){return z instanceof J?z:new J(function(Q){Q(z)})}
if(C&&(typeof _.I6.PromiseRejectionEvent!=="undefined"||!_.I6.Promise||_.I6.Promise.toString().indexOf("[native code]")===-1))return C;F.prototype.asyncExecute=function(z){if(this.batch_==null){this.batch_=[];var Q=this;this.asyncExecuteFunction(function(){Q.executeBatch_()})}this.batch_.push(z)};
var V=_.I6.setTimeout;F.prototype.asyncExecuteFunction=function(z){V(z,0)};
F.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var z=this.batch_;this.batch_=[];for(var Q=0;Q<z.length;++Q){var E=z[Q];z[Q]=null;try{E()}catch(t){this.asyncThrow_(t)}}}this.batch_=null};
F.prototype.asyncThrow_=function(z){this.asyncExecuteFunction(function(){throw z;})};
var J=function(z){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var Q=this.createResolveAndReject_();try{z(Q.resolve,Q.reject)}catch(E){Q.reject(E)}};
J.prototype.createResolveAndReject_=function(){function z(t){return function(k){E||(E=!0,t.call(Q,k))}}
var Q=this,E=!1;return{resolve:z(this.resolveTo_),reject:z(this.JSC$8752_reject_)}};
J.prototype.resolveTo_=function(z){if(z===this)this.JSC$8752_reject_(new TypeError("n"));else if(z instanceof J)this.settleSameAsPromise_(z);else{a:switch(typeof z){case "object":var Q=z!=null;break a;case "function":Q=!0;break a;default:Q=!1}Q?this.resolveToNonPromiseObj_(z):this.fulfill_(z)}};
J.prototype.resolveToNonPromiseObj_=function(z){var Q=void 0;try{Q=z.then}catch(E){this.JSC$8752_reject_(E);return}typeof Q=="function"?this.settleSameAsThenable_(Q,z):this.fulfill_(z)};
J.prototype.JSC$8752_reject_=function(z){this.settle_(2,z)};
J.prototype.fulfill_=function(z){this.settle_(1,z)};
J.prototype.settle_=function(z,Q){if(this.state_!=0)throw Error("o`"+z+"`"+Q+"`"+this.state_);this.state_=z;this.result_=Q;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
J.prototype.scheduleUnhandledRejectionCheck_=function(){var z=this;V(function(){if(z.notifyUnhandledRejection_()){var Q=_.I6.console;typeof Q!=="undefined"&&Q.error(z.result_)}},1)};
J.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var z=_.I6.CustomEvent,Q=_.I6.Event,E=_.I6.dispatchEvent;if(typeof E==="undefined")return!0;typeof z==="function"?z=new z("unhandledrejection",{cancelable:!0}):typeof Q==="function"?z=new Q("unhandledrejection",{cancelable:!0}):(z=_.I6.document.createEvent("CustomEvent"),z.initCustomEvent("unhandledrejection",!1,!0,z));z.promise=this;z.reason=this.result_;return E(z)};
J.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var z=0;z<this.onSettledCallbacks_.length;++z)b.asyncExecute(this.onSettledCallbacks_[z]);this.onSettledCallbacks_=null}};
var b=new F;J.prototype.settleSameAsPromise_=function(z){var Q=this.createResolveAndReject_();z.callWhenSettled_(Q.resolve,Q.reject)};
J.prototype.settleSameAsThenable_=function(z,Q){var E=this.createResolveAndReject_();try{z.call(Q,E.resolve,E.reject)}catch(t){E.reject(t)}};
J.prototype.then=function(z,Q){function E(H,l){return typeof H=="function"?function(N){try{t(H(N))}catch(S){k(S)}}:l}
var t,k,U=new J(function(H,l){t=H;k=l});
this.callWhenSettled_(E(z,t),E(Q,k));return U};
J.prototype.catch=function(z){return this.then(void 0,z)};
J.prototype.callWhenSettled_=function(z,Q){function E(){switch(t.state_){case 1:z(t.result_);break;case 2:Q(t.result_);break;default:throw Error("p`"+t.state_);}}
var t=this;this.onSettledCallbacks_==null?b.asyncExecute(E):this.onSettledCallbacks_.push(E);this.isRejectionHandled_=!0};
J.resolve=G;J.reject=function(z){return new J(function(Q,E){E(z)})};
J.race=function(z){return new J(function(Q,E){for(var t=_.u(z),k=t.next();!k.done;k=t.next())G(k.value).callWhenSettled_(Q,E)})};
J.all=function(z){var Q=_.u(z),E=Q.next();return E.done?G([]):new J(function(t,k){function U(N){return function(S){H[N]=S;l--;l==0&&t(H)}}
var H=[],l=0;do H.push(void 0),l++,G(E.value).callWhenSettled_(U(H.length-1),k),E=Q.next();while(!E.done)})};
return J});
var dp=function(C,F,G){if(C==null)throw new TypeError("q`"+G);if(F instanceof RegExp)throw new TypeError("r`"+G);return C+""};
Bs("String.prototype.startsWith",function(C){return C?C:function(F,G){var V=dp(this,F,"startsWith"),J=V.length,b=F.length;G=Math.max(0,Math.min(G|0,V.length));for(var z=0;z<b&&G<J;)if(V[G++]!=F[z++])return!1;return z>=b}});
Bs("Object.setPrototypeOf",function(C){return C||vs});
Bs("Symbol.dispose",function(C){return C?C:Symbol("s")});
Bs("SuppressedError",function(C){function F(G,V,J){if(!(this instanceof F))return new F(G,V,J);J=Error(J);"stack"in J&&(this.stack=J.stack);this.message=J.message;this.error=G;this.suppressed=V}
if(C)return C;_.O(F,Error);F.prototype.name="SuppressedError";return F});
Bs("Array.from",function(C){return C?C:function(F,G,V){G=G!=null?G:function(Q){return Q};
var J=[],b=typeof Symbol!="undefined"&&Symbol.iterator&&F[Symbol.iterator];if(typeof b=="function"){F=b.call(F);for(var z=0;!(b=F.next()).done;)J.push(G.call(V,b.value,z++))}else for(b=F.length,z=0;z<b;z++)J.push(G.call(V,F[z],z));return J}});
var mHA=function(C,F,G){C instanceof String&&(C=String(C));for(var V=C.length,J=0;J<V;J++){var b=C[J];if(F.call(G,b,J,C))return{i:J,v:b}}return{i:-1,v:void 0}};
Bs("Array.prototype.find",function(C){return C?C:function(F,G){return mHA(this,F,G).v}});
Bs("WeakMap",function(C){function F(){}
function G(E){var t=typeof E;return t==="object"&&E!==null||t==="function"}
function V(E){if(!cs(E,b)){var t=new F;LBq(E,b,{value:t})}}
function J(E){var t=Object[E];t&&(Object[E]=function(k){if(k instanceof F)return k;Object.isExtensible(k)&&V(k);return t(k)})}
if(function(){if(!C||!Object.seal)return!1;try{var E=Object.seal({}),t=Object.seal({}),k=new C([[E,2],[t,3]]);if(k.get(E)!=2||k.get(t)!=3)return!1;k.delete(E);k.set(t,4);return!k.has(E)&&k.get(t)==4}catch(U){return!1}}())return C;
var b="$jscomp_hidden_"+Math.random();J("freeze");J("preventExtensions");J("seal");var z=0,Q=function(E){this.JSC$8760_id_=(z+=Math.random()+1).toString();if(E){E=_.u(E);for(var t;!(t=E.next()).done;)t=t.value,this.set(t[0],t[1])}};
Q.prototype.set=function(E,t){if(!G(E))throw Error("t");V(E);if(!cs(E,b))throw Error("u`"+E);E[b][this.JSC$8760_id_]=t;return this};
Q.prototype.get=function(E){return G(E)&&cs(E,b)?E[b][this.JSC$8760_id_]:void 0};
Q.prototype.has=function(E){return G(E)&&cs(E,b)&&cs(E[b],this.JSC$8760_id_)};
Q.prototype.delete=function(E){return G(E)&&cs(E,b)&&cs(E[b],this.JSC$8760_id_)?delete E[b][this.JSC$8760_id_]:!1};
return Q});
Bs("Map",function(C){if(function(){if(!C||typeof C!="function"||!C.prototype.entries||typeof Object.seal!="function")return!1;try{var Q=Object.seal({x:4}),E=new C(_.u([[Q,"s"]]));if(E.get(Q)!="s"||E.size!=1||E.get({x:4})||E.set({x:4},"t")!=E||E.size!=2)return!1;var t=E.entries(),k=t.next();if(k.done||k.value[0]!=Q||k.value[1]!="s")return!1;k=t.next();return k.done||k.value[0].x!=4||k.value[1]!="t"||!t.next().done?!1:!0}catch(U){return!1}}())return C;
var F=new WeakMap,G=function(Q){this[0]={};this[1]=b();this.size=0;if(Q){Q=_.u(Q);for(var E;!(E=Q.next()).done;)E=E.value,this.set(E[0],E[1])}};
G.prototype.set=function(Q,E){Q=Q===0?0:Q;var t=V(this,Q);t.list||(t.list=this[0][t.id]=[]);t.entry?t.entry.value=E:(t.entry={next:this[1],previous:this[1].previous,head:this[1],key:Q,value:E},t.list.push(t.entry),this[1].previous.next=t.entry,this[1].previous=t.entry,this.size++);return this};
G.prototype.delete=function(Q){Q=V(this,Q);return Q.entry&&Q.list?(Q.list.splice(Q.index,1),Q.list.length||delete this[0][Q.id],Q.entry.previous.next=Q.entry.next,Q.entry.next.previous=Q.entry.previous,Q.entry.head=null,this.size--,!0):!1};
G.prototype.clear=function(){this[0]={};this[1]=this[1].previous=b();this.size=0};
G.prototype.has=function(Q){return!!V(this,Q).entry};
G.prototype.get=function(Q){return(Q=V(this,Q).entry)&&Q.value};
G.prototype.entries=function(){return J(this,function(Q){return[Q.key,Q.value]})};
G.prototype.keys=function(){return J(this,function(Q){return Q.key})};
G.prototype.values=function(){return J(this,function(Q){return Q.value})};
G.prototype.forEach=function(Q,E){for(var t=this.entries(),k;!(k=t.next()).done;)k=k.value,Q.call(E,k[1],k[0],this)};
G.prototype[Symbol.iterator]=G.prototype.entries;var V=function(Q,E){var t=E&&typeof E;t=="object"||t=="function"?F.has(E)?t=F.get(E):(t=""+ ++z,F.set(E,t)):t="p_"+E;var k=Q[0][t];if(k&&cs(Q[0],t))for(Q=0;Q<k.length;Q++){var U=k[Q];if(E!==E&&U.key!==U.key||E===U.key)return{id:t,list:k,index:Q,entry:U}}return{id:t,list:k,index:-1,entry:void 0}},J=function(Q,E){var t=Q[1];
return cbo(function(){if(t){for(;t.head!=Q[1];)t=t.previous;for(;t.next!=t.head;)return t=t.next,{done:!1,value:E(t)};t=null}return{done:!0,value:void 0}})},b=function(){var Q={};
return Q.previous=Q.next=Q.head=Q},z=0;
return G});
Bs("Set",function(C){if(function(){if(!C||typeof C!="function"||!C.prototype.entries||typeof Object.seal!="function")return!1;try{var G=Object.seal({x:4}),V=new C(_.u([G]));if(!V.has(G)||V.size!=1||V.add(G)!=V||V.size!=1||V.add({x:4})!=V||V.size!=2)return!1;var J=V.entries(),b=J.next();if(b.done||b.value[0]!=G||b.value[1]!=G)return!1;b=J.next();return b.done||b.value[0]==G||b.value[0].x!=4||b.value[1]!=b.value[0]?!1:J.next().done}catch(z){return!1}}())return C;
var F=function(G){this.JSC$8774_map_=new Map;if(G){G=_.u(G);for(var V;!(V=G.next()).done;)this.add(V.value)}this.size=this.JSC$8774_map_.size};
F.prototype.add=function(G){G=G===0?0:G;this.JSC$8774_map_.set(G,G);this.size=this.JSC$8774_map_.size;return this};
F.prototype.delete=function(G){G=this.JSC$8774_map_.delete(G);this.size=this.JSC$8774_map_.size;return G};
F.prototype.clear=function(){this.JSC$8774_map_.clear();this.size=0};
F.prototype.has=function(G){return this.JSC$8774_map_.has(G)};
F.prototype.entries=function(){return this.JSC$8774_map_.entries()};
F.prototype.values=function(){return this.JSC$8774_map_.values()};
F.prototype.keys=F.prototype.values;F.prototype[Symbol.iterator]=F.prototype.values;F.prototype.forEach=function(G,V){var J=this;this.JSC$8774_map_.forEach(function(b){return G.call(V,b,b,J)})};
return F});
Bs("Math.log2",function(C){return C?C:function(F){return Math.log(F)/Math.LN2}});
Bs("Object.values",function(C){return C?C:function(F){var G=[],V;for(V in F)cs(F,V)&&G.push(F[V]);return G}});
Bs("Object.is",function(C){return C?C:function(F,G){return F===G?F!==0||1/F===1/G:F!==F&&G!==G}});
Bs("Array.prototype.includes",function(C){return C?C:function(F,G){var V=this;V instanceof String&&(V=String(V));var J=V.length;G=G||0;for(G<0&&(G=Math.max(G+J,0));G<J;G++){var b=V[G];if(b===F||Object.is(b,F))return!0}return!1}});
Bs("String.prototype.includes",function(C){return C?C:function(F,G){return dp(this,F,"includes").indexOf(F,G||0)!==-1}});
Bs("Object.entries",function(C){return C?C:function(F){var G=[],V;for(V in F)cs(F,V)&&G.push([V,F[V]]);return G}});
Bs("Number.isFinite",function(C){return C?C:function(F){return typeof F!=="number"?!1:!isNaN(F)&&F!==Infinity&&F!==-Infinity}});
Bs("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
Bs("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
Bs("Number.isInteger",function(C){return C?C:function(F){return Number.isFinite(F)?F===Math.floor(F):!1}});
Bs("Number.isSafeInteger",function(C){return C?C:function(F){return Number.isInteger(F)&&Math.abs(F)<=Number.MAX_SAFE_INTEGER}});
Bs("String.prototype.endsWith",function(C){return C?C:function(F,G){var V=dp(this,F,"endsWith");G===void 0&&(G=V.length);G=Math.max(0,Math.min(G|0,V.length));for(var J=F.length;J>0&&G>0;)if(V[--G]!=F[--J])return!1;return J<=0}});
var CZE=function(C,F){C instanceof String&&(C+="");var G=0,V=!1,J={next:function(){if(!V&&G<C.length){var b=G++;return{value:F(b,C[b]),done:!1}}V=!0;return{done:!0,value:void 0}}};
J[Symbol.iterator]=function(){return J};
return J};
Bs("Array.prototype.entries",function(C){return C?C:function(){return CZE(this,function(F,G){return[F,G]})}});
Bs("Math.trunc",function(C){return C?C:function(F){F=Number(F);if(isNaN(F)||F===Infinity||F===-Infinity||F===0)return F;var G=Math.floor(Math.abs(F));return F<0?-G:G}});
Bs("Number.isNaN",function(C){return C?C:function(F){return typeof F==="number"&&isNaN(F)}});
Bs("Array.prototype.keys",function(C){return C?C:function(){return CZE(this,function(F){return F})}});
Bs("Array.prototype.values",function(C){return C?C:function(){return CZE(this,function(F,G){return G})}});
Bs("Array.prototype.fill",function(C){return C?C:function(F,G,V){var J=this.length||0;G<0&&(G=Math.max(0,J+G));if(V==null||V>J)V=J;V=Number(V);V<0&&(V=Math.max(0,J+V));for(G=Number(G||0);G<V;G++)this[G]=F;return this}});
hHW("fill",function(C){return C?C:Array.prototype.fill});
Bs("Object.fromEntries",function(C){return C?C:function(F){var G={};if(!(Symbol.iterator in F))throw new TypeError("v`"+F);F=F[Symbol.iterator].call(F);for(var V=F.next();!V.done;V=F.next()){V=V.value;if(Object(V)!==V)throw new TypeError("w");G[V[0]]=V[1]}return G}});
Bs("String.prototype.replaceAll",function(C){return C?C:function(F,G){if(F instanceof RegExp&&!F.global)throw new TypeError("x");return F instanceof RegExp?this.replace(F,G):this.replace(new RegExp(String(F).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),G)}});
Bs("Object.getOwnPropertySymbols",function(C){return C?C:function(){return[]}});
Bs("String.prototype.repeat",function(C){return C?C:function(F){var G=dp(this,null,"repeat");if(F<0||F>1342177279)throw new RangeError("y");F|=0;for(var V="";F;)if(F&1&&(V+=G),F>>>=1)G+=G;return V}});
Bs("Array.prototype.findIndex",function(C){return C?C:function(F,G){return mHA(this,F,G).i}});
Bs("Array.prototype.flatMap",function(C){return C?C:function(F,G){var V=[];Array.prototype.forEach.call(this,function(J,b){J=F.call(G,J,b,this);Array.isArray(J)?V.push.apply(V,J):V.push(J)});
return V}});
Bs("String.prototype.codePointAt",function(C){return C?C:function(F){var G=dp(this,null,"codePointAt"),V=G.length;F=Number(F)||0;if(F>=0&&F<V){F|=0;var J=G.charCodeAt(F);if(J<55296||J>56319||F+1===V)return J;F=G.charCodeAt(F+1);return F<56320||F>57343?J:(J-55296)*1024+F+9216}}});
Bs("String.fromCodePoint",function(C){return C?C:function(F){for(var G="",V=0;V<arguments.length;V++){var J=Number(arguments[V]);if(J<0||J>1114111||J!==Math.floor(J))throw new RangeError("z`"+J);J<=65535?G+=String.fromCharCode(J):(J-=65536,G+=String.fromCharCode(J>>>10&1023|55296),G+=String.fromCharCode(J&1023|56320))}return G}});
Bs("String.prototype.trimLeft",function(C){function F(){return this.replace(/^[\s\xa0]+/,"")}
return C||F});
Bs("String.prototype.trimStart",function(C){return C||String.prototype.trimLeft});
Bs("String.prototype.padStart",function(C){return C?C:function(F,G){var V=dp(this,null,"padStart");F-=V.length;G=G!==void 0?String(G):" ";return(F>0&&G?G.repeat(Math.ceil(F/G.length)).substring(0,F):"")+V}});
Bs("Promise.prototype.finally",function(C){return C?C:function(F){return this.then(function(G){return Promise.resolve(F()).then(function(){return G})},function(G){return Promise.resolve(F()).then(function(){throw G;
})})}});
Bs("Math.imul",function(C){return C?C:function(F,G){F=Number(F);G=Number(G);var V=F&65535,J=G&65535;return V*J+((F>>>16&65535)*J+V*(G>>>16&65535)<<16>>>0)|0}});
Bs("Object.hasOwn",function(C){return C?C:function(F,G){return Object.prototype.hasOwnProperty.call(F,G)}});
Bs("Math.sign",function(C){return C?C:function(F){F=Number(F);return F===0||isNaN(F)?F:F>0?1:-1}});
Bs("Array.prototype.flat",function(C){return C?C:function(F){F=F===void 0?1:F;var G=[];Array.prototype.forEach.call(this,function(V){Array.isArray(V)&&F>0?(V=Array.prototype.flat.call(V,F-1),G.push.apply(G,V)):G.push(V)});
return G}});
Bs("String.raw",function(C){return C?C:function(F,G){F=PXB(F);for(var V=F.raw,J=V.length,b="",z=0;z<J;++z)b+=V[z],z+1<J&&z+1<arguments.length&&(b+=String(arguments[z+1]));return b}});
Bs("WeakSet",function(C){if(function(){if(!C||!Object.seal)return!1;try{var G=Object.seal({}),V=Object.seal({}),J=new C([G]);if(!J.has(G)||J.has(V))return!1;J.delete(G);J.add(V);return!J.has(G)&&J.has(V)}catch(b){return!1}}())return C;
var F=function(G){this.JSC$8785_map_=new WeakMap;if(G){G=_.u(G);for(var V;!(V=G.next()).done;)this.add(V.value)}};
F.prototype.add=function(G){this.JSC$8785_map_.set(G,!0);return this};
F.prototype.has=function(G){return this.JSC$8785_map_.has(G)};
F.prototype.delete=function(G){return this.JSC$8785_map_.delete(G)};
return F});
Bs("Reflect.ownKeys",function(C){return C?C:function(F){var G=[],V=Object.getOwnPropertyNames(F);F=Object.getOwnPropertySymbols(F);for(var J=0;J<V.length;J++)(V[J].substring(0,14)=="jscomp_symbol_"?F:G).push(V[J]);return G.concat(F)}});
Bs("Object.getOwnPropertyDescriptors",function(C){return C?C:function(F){for(var G={},V=Reflect.ownKeys(F),J=0;J<V.length;J++)G[V[J]]=Object.getOwnPropertyDescriptor(F,V[J]);return G}});
Bs("Promise.allSettled",function(C){function F(V){return{status:"fulfilled",value:V}}
function G(V){return{status:"rejected",reason:V}}
return C?C:function(V){var J=this;V=Array.from(V,function(b){return J.resolve(b).then(F,G)});
return J.all(V)}});
Bs("Number.parseInt",function(C){return C||parseInt});
_._DumpException=window._DumpException||function(C){throw C;};
window._DumpException=_._DumpException;var jwr=window.ytcsi;jwr&&typeof jwr.tick==="function"&&jwr.tick("rses_dpj");var FWu,xC,sd,qb,GES,Vqy,i98,Jsr,hl,$fO;FWu=FWu||{};_.VT=this||self;_.zn=function(C,F,G){C=C.split(".");G=G||_.VT;for(var V;C.length&&(V=C.shift());)C.length||F===void 0?G[V]&&G[V]!==Object.prototype[V]?G=G[V]:G=G[V]={}:G[V]=F};
xC=function(C,F){var G=_.mN("WIZ_global_data.oxN3nb");C=G&&G[C];return C!=null?C:F};
sd=_.VT._F_toggles_default_kevlar_base||[];qb=function(){};
qb.get=function(){return null};
_.GZZ=null;_.mN=function(C,F){C=C.split(".");F=F||_.VT;for(var G=0;G<C.length;G++)if(F=F[C[G]],F==null)return null;return F};
_.Ps=function(C){C.instance_=void 0;C.getInstance=function(){return C.instance_?C.instance_:C.instance_=new C}};
_.m$=function(C){var F=typeof C;return F!="object"?F:C?Array.isArray(C)?"array":F:"null"};
_.gI=function(C){var F=_.m$(C);return F=="array"||F=="object"&&typeof C.length=="number"};
_.TE=function(C){var F=typeof C;return F=="object"&&C!=null||F=="function"};
_.rI=function(C){return Object.prototype.hasOwnProperty.call(C,GES)&&C[GES]||(C[GES]=++Vqy)};
GES="closure_uid_"+(Math.random()*1E9>>>0);Vqy=0;i98=function(C,F,G){return C.call.apply(C.bind,arguments)};
Jsr=function(C,F,G){if(!C)throw Error();if(arguments.length>2){var V=Array.prototype.slice.call(arguments,2);return function(){var J=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(J,V);return C.apply(F,J)}}return function(){return C.apply(F,arguments)}};
_.ck=function(C,F,G){_.ck=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?i98:Jsr;return _.ck.apply(null,arguments)};
_.$B=function(C,F){var G=Array.prototype.slice.call(arguments,1);return function(){var V=G.slice();V.push.apply(V,arguments);return C.apply(this,V)}};
_.gp=function(){return Date.now()};
hl=function(C){return C};
_.RE=function(C,F){function G(){}
G.prototype=F.prototype;C.superClass_=F.prototype;C.prototype=new G;C.prototype.constructor=C;C.base=function(V,J,b){for(var z=Array(arguments.length-2),Q=2;Q<arguments.length;Q++)z[Q-2]=arguments[Q];return F.prototype[J].apply(V,z)}};
$fO=function(C){return C};var b9S,niP;_.R=function(C,F,G,V){var J=arguments.length,b=J<3?F:V===null?V=Object.getOwnPropertyDescriptor(F,G):V,z;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")b=Reflect.decorate(C,F,G,V);else for(var Q=C.length-1;Q>=0;Q--)if(z=C[Q])b=(J<3?z(b):J>3?z(F,G,b):z(F,G))||b;J>3&&b&&Object.defineProperty(F,G,b)};
_.Y=function(C,F){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(C,F)};
b9S=function(C,F){if(F!==null&&F!==void 0){if(typeof F!=="object"&&typeof F!=="function")throw new TypeError("A");if(G===void 0){if(!Symbol.dispose)throw new TypeError("C");var G=F[Symbol.dispose]}if(typeof G!=="function")throw new TypeError("D");C.stack.push({value:F,dispose:G,async:!1})}return F};
niP=function(C){function F(b){C.error=C.hasError?new SuppressedError(b,C.error,"An error was suppressed during disposal."):b;C.hasError=!0}
function G(){for(;V=C.stack.pop();)try{if(!V.async&&J===1)return J=0,C.stack.push(V),Promise.resolve().then(G);if(V.dispose){var b=V.dispose.call(V.value);if(V.async)return J|=2,Promise.resolve(b).then(G,function(z){F(z);return G()})}else J|=1}catch(z){F(z)}if(J===1)return C.hasError?Promise.reject(C.error):Promise.resolve();
if(C.hasError)throw C.error;}
var V,J=0;G()};var uSP="a[href] a[tabindex] area[href] iframe [tabindex] [contentEditable] summary input:not([disabled]) select:not([disabled]) textarea:not([disabled]) button:not([disabled]) object:not([disabled])".split(" ");CZS()&&uSP.push("details:not(:has(summary))");var FWo=uSP.join(",");_.RE(_.FS,Error);_.FS.prototype.name="CustomError";var z5S;var Qwo=void 0,IAE,Eiu=typeof TextDecoder!=="undefined",z5i,uS9=typeof String.prototype.isWellFormed==="function",ni9=typeof TextEncoder!=="undefined";var WW2;_.ff=function(C){for(var F=[],G=0,V=0;V<C.length;V++){var J=C.charCodeAt(V);J<128?F[G++]=J:(J<2048?F[G++]=J>>6|192:((J&64512)==55296&&V+1<C.length&&(C.charCodeAt(V+1)&64512)==56320?(J=65536+((J&1023)<<10)+(C.charCodeAt(++V)&1023),F[G++]=J>>18|240,F[G++]=J>>12&63|128):F[G++]=J>>12|224,F[G++]=J>>6&63|128),F[G++]=J&63|128)}return F};
WW2=function(C){for(var F=[],G=0,V=0;G<C.length;){var J=C[G++];if(J<128)F[V++]=String.fromCharCode(J);else if(J>191&&J<224){var b=C[G++];F[V++]=String.fromCharCode((J&31)<<6|b&63)}else if(J>239&&J<365){b=C[G++];var z=C[G++],Q=C[G++];J=((J&7)<<18|(b&63)<<12|(z&63)<<6|Q&63)-65536;F[V++]=String.fromCharCode(55296+(J>>10));F[V++]=String.fromCharCode(56320+(J&1023))}else b=C[G++],z=C[G++],F[V++]=String.fromCharCode((J&15)<<12|(b&63)<<6|z&63)}return F.join("")};var Iw=String.prototype.trim?function(C){return C.trim()}:function(C){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(C)[1]},tqP=/&/g,aAm=/</g,kEO=/>/g,Ufu=/"/g,H9l=/'/g,lAP=/\x00/g,ys8=/[\x00&<>"']/;var YC=!!(sd[0]>>15&1),Z9$=!!(sd[0]&1024),NIr=!!(sd[0]>>16&1),O9r=!!(sd[0]&8),Xo7=!!(sd[0]&2),wo2=!!(sd[0]&4),Mqy=!!(sd[0]&16),SBS=!!(sd[0]&128);var Ho=YC?NIr:xC(610401301,!1),LWS=YC?O9r:xC(772657768,!1),BIr=YC?Xo7:xC(513659523,!1),vi2=YC?Z9$||!wo2:xC(568333945,!0),ZNq=YC?Mqy:xC(1331761403,!1),Htq=YC?Z9$||!SBS:xC(748402147,!0);var yT,fAP=_.VT.navigator;yT=fAP?fAP.userAgentData||null:null;var V2;_.dI=function(C,F){return Array.prototype.indexOf.call(C,F,void 0)};
_.F$=function(C,F,G){Array.prototype.forEach.call(C,F,G)};
_.TC=function(C,F,G){return Array.prototype.filter.call(C,F,G)};
_.ss=function(C,F,G){return Array.prototype.map.call(C,F,G)};
V2=function(C,F,G){return Array.prototype.some.call(C,F,G)};
_.qGq=function(C,F,G){return Array.prototype.every.call(C,F,G)};var oE=function(C){oE[" "](C);return C};
oE[" "]=function(){};
var cG5=function(C,F){try{return oE(C[F]),!0}catch(G){}return!1},IsI=function(C,F,G,V){V=V?V(F):F;
return Object.prototype.hasOwnProperty.call(C,V)?C[V]:C[V]=G(F)};var h5r,nO,cs2,AsG,dfS,xf$,RaW,swo,qBO,PZE,io5,R5r,YBo,KWG,Df$,poo;_.aXw=function(){return _.VT.navigator||null};
h5r=WWI();_.rp=tq9();nO=ZA("Edge");cs2=nO||_.rp;_.KV=ZA("Gecko")&&!(_.QT(_.UB(),"WebKit")&&!ZA("Edge"))&&!(ZA("Trident")||ZA("MSIE"))&&!ZA("Edge");_.Do=_.QT(_.UB(),"WebKit")&&!ZA("Edge");AsG=_.Do&&ZA("Mobile");_.e5l=_.O9T();dfS=_.XoE();xf$=(Bo()?yT.platform==="Linux":ZA("Linux"))||_.woI();RaW=_.Z9W();swo=NIT();qBO=ZA("iPad");PZE=ZA("iPod");_.giP=_.vo();io5=_.QT(_.UB(),"KaiOS");R5r=function(){var C=_.VT.document;return C?C.documentMode:void 0};
a:{var TIE="",oi8=function(){var C=_.UB();if(_.KV)return/rv:([^\);]+)(\)|;)/.exec(C);if(nO)return/Edge\/([\d\.]+)/.exec(C);if(_.rp)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(C);if(_.Do)return/WebKit\/(\S+)/.exec(C);if(h5r)return/(?:Version)[ \/]?(\S+)/.exec(C)}();
oi8&&(TIE=oi8?oi8[1]:"");if(_.rp){var rsm=R5r();if(rsm!=null&&rsm>parseFloat(TIE)){YBo=String(rsm);break a}}YBo=TIE}KWG=YBo;Df$={};_.pV=function(C){return IsI(Df$,C,function(){return _.ts(KWG,C)>=0})};
if(_.VT.document&&_.rp){var mf$=R5r();poo=mf$?mf$:parseInt(KWG,10)||void 0}else poo=void 0;_.C87=poo;var oBI,r3o,jlP;_.m4=wI();oBI=NIT()||ZA("iPod");r3o=ZA("iPad");jlP=_.Ufo();_.C2=_.Mf();_.KD=_.kEs()&&!_.vo();var F$8,jX,FgE,F1B,VGE,G7G;F$8={};jX=null;FgE=_.KV||_.Do||typeof _.VT.btoa=="function";_.eU=function(C,F){F===void 0&&(F=0);G7G();F=F$8[F];for(var G=Array(Math.floor(C.length/3)),V=F[64]||"",J=0,b=0;J<C.length-2;J+=3){var z=C[J],Q=C[J+1],E=C[J+2],t=F[z>>2];z=F[(z&3)<<4|Q>>4];Q=F[(Q&15)<<2|E>>6];E=F[E&63];G[b++]=t+z+Q+E}t=0;E=V;switch(C.length-J){case 2:t=C[J+1],E=F[(t&15)<<2]||V;case 1:C=C[J],G[b]=F[C>>2]+F[(C&3)<<4|t>>4]+E+V}return G.join("")};
F1B=function(C){var F="";VGE(C,function(G){F+=String.fromCharCode(G)});
return F};
_.f$I=function(C){var F=[];VGE(C,function(G){F.push(G)});
return F};
_.p9=function(C){var F=C.length,G=F*3/4;G%3?G=Math.floor(G):_.zE("=.",C[F-1])&&(G=_.zE("=.",C[F-2])?G-2:G-1);var V=new Uint8Array(G),J=0;VGE(C,function(b){V[J++]=b});
return J!==G?V.subarray(0,J):V};
VGE=function(C,F){function G(E){for(;V<C.length;){var t=C.charAt(V++),k=jX[t];if(k!=null)return k;if(!_.uZ(t))throw Error("H`"+t);}return E}
G7G();for(var V=0;;){var J=G(-1),b=G(0),z=G(64),Q=G(64);if(Q===64&&J===-1)break;F(J<<2|b>>4);z!=64&&(F(b<<4&240|z>>2),Q!=64&&F(z<<6&192|Q))}};
G7G=function(){if(!jX){jX={};for(var C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),F=["+/=","+/","-_=","-_.","-_"],G=0;G<5;G++){var V=C.concat(F[G].split(""));F$8[G]=V;for(var J=0;J<V.length;J++){var b=V[J];jX[b]===void 0&&(jX[b]=J)}}}};var pof=typeof Uint8Array!=="undefined",qBs=!_.rp&&typeof btoa==="function",PZS=/[-_.]/g,xfW={"-":"+",_:"/",".":"="},SG={};var Mo,JOm;Mo=function(C,F){if(F!==SG)throw Error("J");this.JSC$8819_value_=C;if(C!=null&&C.length===0)throw Error("I");};
_.LP=function(){return iP$||(iP$=new Mo(null,SG))};
JOm=function(C){return new Uint8Array(Ps5(C)||0)};
Mo.prototype.isEmpty=function(){return this.JSC$8819_value_==null};
Mo.prototype.sizeBytes=function(){var C=Ps5(this);return C?C.length:0};
var Ps5=function(C){if(SG!==SG)throw Error("J");var F=C.JSC$8819_value_;F==null||pof&&F!=null&&F instanceof Uint8Array||(typeof F==="string"?F=gi9(F):(_.m$(F),F=null));return F==null?F:C.JSC$8819_value_=F},iP$;var YBf=void 0;var G7=typeof Symbol==="function"&&typeof Symbol()==="symbol",$oP=FE("jas",void 0,!0),xoW=FE(void 0,"0di"),GB=FE(void 0,"1oa"),Al=FE(void 0,Symbol()),Fdo=FE(void 0,"0ub"),VUW=FE(void 0,"0ubs"),OTE=FE(void 0,"0ubsb"),yls=FE(void 0,"0actk"),M3=FE("m_m","messagePrototypeMarker",!0),Wds=FE(void 0,"vps"),mow=FE();var rsB,oiZ,rW,bP$;rsB={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};oiZ=Object.defineProperties;_.JO=G7?$oP:"internalArrayState";bP$=[];nP(bP$,7);rW=Object.freeze(bP$);var SU={},l8={},nS2=function(C,F,G){this.iterable=C;this.mapper=F;this.thisArg=G};
nS2.prototype.next=function(){var C=this.iterable.next();C.done||(C.value=this.mapper.call(this.thisArg,C.value));return C};
nS2.prototype[Symbol.iterator]=function(){return this};
var uEm=Object.freeze({}),hO={};_.zyu=AO(function(C){return C!==null&&C!==void 0});var VGS=AO(function(C){return typeof C==="number"}),G7q=AO(function(C){return typeof C==="string"}),JOB=AO(function(C){return typeof C==="boolean"}),Qlm=AO(function(C){return C!=null&&typeof C==="object"&&typeof C.then==="function"}),s8I=AO(function(C){return typeof C==="function"}),QH=AO(function(C){return!!C&&(typeof C==="object"||typeof C==="function")});var iPW=typeof _.VT.BigInt==="function"&&typeof _.VT.BigInt(0)==="bigint";var fui=AO(function(C){return iPW?C>=Iul&&C<=ESr:C[0]==="-"?$o9(C,W$r):$o9(C,tGP)}),W$r=Number.MIN_SAFE_INTEGER.toString(),Iul=iPW?BigInt(Number.MIN_SAFE_INTEGER):void 0,tGP=Number.MAX_SAFE_INTEGER.toString(),ESr=iPW?BigInt(Number.MAX_SAFE_INTEGER):void 0;var auG=typeof Uint8Array.prototype.slice==="function",d2=0,xS=0,uEB;var Q8,aL,Ct,tl,Uof;Q8=typeof BigInt==="function"?BigInt.asIntN:void 0;_.Ur=typeof BigInt==="function"?BigInt.asUintN:void 0;aL=Number.isSafeInteger;Ct=Number.isFinite;tl=Math.trunc;Uof=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var tUS={};var K$T={},k72=function(){try{var C=function(){return eHS(Map,[],this.constructor)};
_.O(C,Map);oE(new C);return!1}catch(F){return!0}}(),Fh=function(){this.JSC$8838_map_=new Map};
_.n=Fh.prototype;_.n.get=function(C){return this.JSC$8838_map_.get(C)};
_.n.set=function(C,F){this.JSC$8838_map_.set(C,F);this.size=this.JSC$8838_map_.size;return this};
_.n.delete=function(C){C=this.JSC$8838_map_.delete(C);this.size=this.JSC$8838_map_.size;return C};
_.n.clear=function(){this.JSC$8838_map_.clear();this.size=this.JSC$8838_map_.size};
_.n.has=function(C){return this.JSC$8838_map_.has(C)};
_.n.entries=function(){return this.JSC$8838_map_.entries()};
_.n.keys=function(){return this.JSC$8838_map_.keys()};
_.n.values=function(){return this.JSC$8838_map_.values()};
_.n.forEach=function(C,F){return this.JSC$8838_map_.forEach(C,F)};
Fh.prototype[Symbol.iterator]=function(){return this.entries()};
var GG=function(){if(k72)return Object.setPrototypeOf(Fh.prototype,Map.prototype),Object.defineProperties(Fh.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),Fh;var C=function(){return eHS(Map,[],this.constructor)};
_.O(C,Map);return C}(),Lt=function(C,F,G,V){G=G===void 0?Rys:G;
V=V===void 0?Rys:V;var J=GG.call(this)||this;J.arrayState=C[_.JO]|0;J.valueCtor=F;J.keyToApi=G;J.valueToApi=J.valueCtor?T2I:V;for(var b=0;b<C.length;b++){var z=C[b],Q=G(z[0],!1,!0),E=z[1];F?E===void 0&&(E=null):E=V(z[1],!1,!0,void 0,void 0,J.arrayState);GG.prototype.set.call(J,Q,E)}return J};
_.O(Lt,GG);var Uoo=function(C){if(C.arrayState&2)throw Error("N");},E_q=function(C,F){return z7(Array.from(GG.prototype.entries.call(C),F))};
_.n=Lt.prototype;_.n.clear=function(){Uoo(this);GG.prototype.clear.call(this)};
_.n.delete=function(C){Uoo(this);return GG.prototype.delete.call(this,this.keyToApi(C,!0,!1))};
_.n.entries=function(){if(this.valueCtor){var C=GG.prototype.keys.call(this);C=new nS2(C,oSS,this)}else C=GG.prototype.entries.call(this);return C};
_.n.values=function(){if(this.valueCtor){var C=GG.prototype.keys.call(this);C=new nS2(C,Lt.prototype.get,this)}else C=GG.prototype.values.call(this);return C};
_.n.forEach=function(C,F){this.valueCtor?GG.prototype.forEach.call(this,function(G,V,J){C.call(F,J.get(V),V,J)}):GG.prototype.forEach.call(this,C,F)};
_.n.set=function(C,F){Uoo(this);C=this.keyToApi(C,!0,!1);return C==null?this:F==null?(GG.prototype.delete.call(this,C),this):GG.prototype.set.call(this,C,this.valueToApi(F,!0,!0,this.valueCtor,!1,this.arrayState))};
_.n.has=function(C){return GG.prototype.has.call(this,this.keyToApi(C,!1,!1))};
_.n.get=function(C){C=this.keyToApi(C,!1,!1);var F=GG.prototype.get.call(this,C);if(F!==void 0){var G=this.valueCtor;return G?(G=this.valueToApi(F,!1,!0,G,this.callToMutableOnAccess,this.arrayState),G!==F&&GG.prototype.set.call(this,C,G),G):F}};
Lt.prototype[Symbol.iterator]=function(){return this.entries()};
Lt.prototype.toJSON=void 0;var rOS;var btW=function(){},Jlw=function(C,F){for(var G in C)!isNaN(G)&&F(C,+G,C[G])},n_T=function(C){var F=new btW;
Jlw(C,function(G,V,J){F[V]=T7(J)});
F.reviveUnknownFields=C.reviveUnknownFields;return F},Csw={reviveIntoImmutable:!0};var $3Z;var arZ,khW;var HP7,md,O1,L1,luu,zG,M1,yOu,ZPr,Wc,N2$,ti,Uj,lg;HP7=_.eG(0);_.VZ={};_.ig=function(C,F,G,V,J){F=md(C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F,G,J);if(F!==null||V&&C.noLegacyNull!==l8)return F};
md=function(C,F,G,V){if(F===-1)return null;var J=F+(G?0:-1),b=C.length-1;if(!(b<1+(G?0:-1))){if(J>=b){var z=C[b];if(z!=null&&typeof z==="object"&&z.constructor===Object){G=z[F];var Q=!0}else if(J===b)G=z;else return}else G=C[J];if(V&&G!=null){V=V(G);if(V==null)return V;if(!Object.is(V,G))return Q?z[F]=V:C[J]=V,V}return G}};
_.Ut=function(C,F,G,V){RL(C);var J=C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;oL(J,J[_.JO]|0,F,G,V);return C};
_.Ji=function(C,F,G){C=C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return exZ(C,C[_.JO]|0,F,G)!==void 0};
_.$L=function(C,F,G,V){var J=C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return exZ(J,J[_.JO]|0,F,L1(C,V,G))!==void 0};
_.ED=function(C){return C===uEm?2:4};
_.bg=function(C,F){C=_.ig(C,F,void 0,void 0,BWT);return C==null?_.LP():C};
O1=function(C,F,G,V){RL(C);var J=C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=J[_.JO]|0;if(V==null){var z=hxB(J);if(clT(z,J,b,G)===F)z.set(G,0);else return C}else b=Alo(J,b,G,F);oL(J,b,F,V);return C};
_.n2=function(C,F,G,V){var J=C[_.JO]|0,b=cu(J);J=Alo(C,J,G,F,b);oL(C,J,F,V,b)};
L1=function(C,F,G){return _.ug(C,F)===G?G:-1};
_.ug=function(C,F){C=C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return clT(hxB(C),C,void 0,F,void 0)};
luu=function(C,F,G){var V=C[_.JO]|0,J=cu(V),b=md(C,G,J);if(b!=null&&b[M3]===SU){if(!XE(b))return gW(b),b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var z=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(b)&&(z=b);if(z){var Q=z[_.JO]|0;Q&2&&(z=PV(z,Q))}z=q3(z,F,!0);z!==b&&oL(C,V,G,z,J);return z};
_.aa=function(C,F,G,V){var J=C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=J[_.JO]|0;F=exZ(J,b,F,G,V);if(F==null)return F;b=J[_.JO]|0;if(!XE(C,b)){var z=Ymw(F);z!==F&&(gW(C)&&(J=C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=J[_.JO]|0),F=z,b=oL(J,b,G,F,V),Y_(J,b))}return F};
_.IM=function(C,F,G,V){var J=C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return d3T(C,J,J[_.JO]|0,F,G,V,!1,!0)};
_.OL=function(C,F,G,V){G=x3E(G);_.Ut(C,F,G,V);G&&!XE(G)&&Y_(C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return C};
_.X6=function(C,F,G,V){V=x3E(V);O1(C,F,G,V);V&&!XE(V)&&Y_(C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return C};
zG=function(C,F,G){RL(C);var V=C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=V[_.JO]|0;if(G==null)return oL(V,J,F),C;for(var b=G===rW?7:G[_.JO]|0,z=b,Q=pt(b),E=Q||Object.isFrozen(G),t=!0,k=!0,U=0;U<G.length;U++){var H=G[U];Q||(H=XE(H),t&&(t=!H),k&&(k=H))}Q||(b=t?13:5,b=k?b&-4097:b|4096);E&&b===z||(G=T7(G),z=0,b=Kt(b,J));b!==z&&nP(G,b);J=oL(V,J,F,G);2&b||!(4096&b||16&b)||Y_(V,J);return C};
M1=function(C,F,G,V){qrB(C,F,G,V);return C};
yOu=function(C,F,G){qrB(C,F,QZ,void 0,G,1,!0);return C};
_.I3=function(C,F,G){C=_.ig(C,F,void 0,G);F=typeof C;C=C==null?C:F==="bigint"?_.eG((0,_.Ur)(64,C)):_.jU(C)?F==="string"?_.vS9(C):_.L$i(C):void 0;return C};
_.Ej=function(C,F){var G=G===void 0?!1:G;var V;return(V=_.k7I(_.ig(C,F)))!=null?V:G};
_.Wk=function(C,F,G){G=G===void 0?0:G;var V;return(V=_.nt(_.ig(C,F)))!=null?V:G};
ZPr=function(C,F){var G=G===void 0?0:G;C=_.luA(_.ig(C,F));return C!=null?C:G};
Wc=function(C,F,G){G=G===void 0?HP7:G;var V;return(V=_.AO5(_.ig(C,F)))!=null?V:G};
N2$=function(C){var F=F===void 0?HP7:F;var G;return(G=_.I3(C,23))!=null?G:F};
ti=function(C,F){var G=G===void 0?0:G;var V;return(V=_.ig(C,F,void 0,void 0,_.Du))!=null?V:G};
_.a3=function(C,F,G,V){G=G===void 0?"":G;var J;return(J=_.Or(_.ig(C,F,V)))!=null?J:G};
_.kL=function(C,F){var G=G===void 0?0:G;var V;return(V=_.$_(_.ig(C,F)))!=null?V:G};
Uj=function(C,F){var G=G===void 0?"0":G;C=cOB(_.ig(C,F),!0);return C!=null?C:G};
lg=function(C,F,G){return _.a3(C,L1(C,G,F))};
_.yZ=function(C,F,G,V){return _.aa(C,F,L1(C,V,G),void 0)};
_.wG=function(C,F){return _.Or(_.ig(C,F,void 0,_.VZ))};
_.UD=function(C,F,G){return _.Ut(C,F,auq(G))};
_.k6=function(C,F,G){return _.jS(C,F,auq(G),!1)};
_.ZW=function(C,F,G){return _.Ut(C,F,_.bs(G))};
_.f1=function(C,F,G){return _.Ut(C,F,Er(G))};
_.fA=function(C,F,G){return _.Ut(C,F,N3(G))};
_.L3=function(C,F,G,V){return _.jS(C,F,N3(G),"",V)};
_.kx=function(C,F,G){return _.Ut(C,F,G==null?G:_.Jl(G))};
_.N5=function(C,F,G){return _.jS(C,F,G==null?G:_.Jl(G),0)};var VF=function(C,F,G){this.buffer=C;if(G&&!F)throw Error();this.JSC$8850_isImmutable=F};var OPS=function(C,F,G,V){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8853_start_=0;this.init(C,F,G,V)},Oj,wu8,MG$,Smy,L$S,B2r,Els,Xur;
_.n=OPS.prototype;_.n.init=function(C,F,G,V){var J=V===void 0?{}:V;V=J.aliasBytesFields===void 0?!1:J.aliasBytesFields;J=J.treatNewDataAsImmutable===void 0?!1:J.treatNewDataAsImmutable;this.aliasBytesFields=V;this.treatNewDataAsImmutable=J;C&&(C=g_S(C,this.treatNewDataAsImmutable),this.bytes_=C.buffer,this.bytesAreImmutable_=C.JSC$8850_isImmutable,this.JSC$8853_start_=F||0,this.end_=G!==void 0?this.JSC$8853_start_+G:this.bytes_.length,this.cursor_=this.JSC$8853_start_)};
_.n.free=function(){this.clear();Xur.length<100&&Xur.push(this)};
_.n.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8853_start_=0;this.aliasBytesFields=!1};
_.n.reset=function(){this.cursor_=this.JSC$8853_start_};
_.n.atEnd=function(){return this.cursor_==this.end_};
_.Xh=function(C,F){var G=0,V=0,J=0,b=C.bytes_,z=C.cursor_;do{var Q=b[z++];G|=(Q&127)<<J;J+=7}while(J<32&&Q&128);if(J>32)for(V|=(Q&127)>>4,J=3;J<32&&Q&128;J+=7)Q=b[z++],V|=(Q&127)<<J;Oj(C,z);if(!(Q&128))return F(G>>>0,V>>>0);throw Error();};
Oj=function(C,F){C.cursor_=F;if(F>C.end_)throw Error();};
_.wn=function(C){var F=C.bytes_,G=C.cursor_,V=F[G++],J=V&127;if(V&128&&(V=F[G++],J|=(V&127)<<7,V&128&&(V=F[G++],J|=(V&127)<<14,V&128&&(V=F[G++],J|=(V&127)<<21,V&128&&(V=F[G++],J|=V<<28,V&128&&F[G++]&128&&F[G++]&128&&F[G++]&128&&F[G++]&128&&F[G++]&128)))))throw Error();Oj(C,G);return J};
_.M5=function(C){var F=C.bytes_,G=C.cursor_,V=F[G],J=F[G+1],b=F[G+2];F=F[G+3];Oj(C,C.cursor_+4);return(V<<0|J<<8|b<<16|F<<24)>>>0};
wu8=function(C){var F=_.M5(C);C=_.M5(C);return QlB(F,C)};
MG$=function(C){var F=_.M5(C);C=(F>>31)*2+1;var G=F>>>23&255;F&=8388607;return G==255?F?NaN:C*Infinity:G==0?C*1.401298464324817E-45*F:C*Math.pow(2,G-150)*(F+8388608)};
Smy=function(C){var F=_.M5(C),G=_.M5(C);C=(G>>31)*2+1;var V=G>>>20&2047;F=4294967296*(G&1048575)+F;return V==2047?F?NaN:C*Infinity:V==0?C*4.9E-324*F:C*Math.pow(2,V-1075)*(F+4503599627370496)};
L$S=function(C){for(var F=0,G=C.cursor_,V=G+10,J=C.bytes_;G<V;){var b=J[G++];F|=b;if((b&128)===0)return Oj(C,G),!!(F&127)}throw Error();};
B2r=function(C,F){if(F<0)throw Error();var G=C.cursor_;F=G+F;if(F>C.end_)throw Error();C.cursor_=F;return G};
Els=function(C,F){if(F==0)return _.LP();var G=B2r(C,F);C.aliasBytesFields&&C.bytesAreImmutable_?G=C.bytes_.subarray(G,G+F):(C=C.bytes_,F=G+F,G=G===F?new Uint8Array(0):auG?C.slice(G,F):new Uint8Array(C.subarray(G,F)));return G.length==0?_.LP():new Mo(G,SG)};
Xur=[];var fuS=function(C,F,G,V){if(Xur.length){var J=Xur.pop();J.init(C,F,G,V);C=J}else C=new OPS(C,F,G,V);this.decoder_=C;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;vSP(this,V)},vSP=function(C,F){F=F===void 0?{}:F;
C.discardUnknownFields=F.discardUnknownFields===void 0?!1:F.discardUnknownFields},a0B=function(C,F,G,V){if(hyO.length){var J=hyO.pop();
vSP(J,V);J.decoder_.init(C,F,G,V);return J}return new fuS(C,F,G,V)},z_9,I0q,SX,cOm,hyO;
fuS.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;hyO.length<100&&hyO.push(this)};
fuS.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
z_9=function(C){if(C.decoder_.atEnd())return!1;C.fieldCursor_=C.decoder_.cursor_;var F=_.wn(C.decoder_)>>>0,G=F>>>3;F&=7;if(!(F>=0&&F<=5))throw Error();if(G<1)throw Error();C.nextField_=G;C.nextWireType_=F;return!0};
I0q=function(C){switch(C.nextWireType_){case 0:C.nextWireType_!=0?I0q(C):L$S(C.decoder_);break;case 1:C=C.decoder_;Oj(C,C.cursor_+8);break;case 2:if(C.nextWireType_!=2)I0q(C);else{var F=_.wn(C.decoder_)>>>0;C=C.decoder_;Oj(C,C.cursor_+F)}break;case 5:C=C.decoder_;Oj(C,C.cursor_+4);break;case 3:F=C.nextField_;do{if(!z_9(C))throw Error();if(C.nextWireType_==4){if(C.nextField_!=F)throw Error();break}I0q(C)}while(1);break;default:throw Error();}};
SX=function(C,F,G){var V=C.decoder_.end_,J=_.wn(C.decoder_)>>>0;J=C.decoder_.cursor_+J;var b=J-V;b<=0&&(C.decoder_.end_=J,G(F,C,void 0,void 0,void 0),b=J-C.decoder_.cursor_);if(b)throw Error();C.decoder_.cursor_=J;C.decoder_.end_=V;return F};
cOm=function(C){var F=_.wn(C.decoder_)>>>0;C=C.decoder_;var G=B2r(C,F);C=C.bytes_;if(Eiu){var V=C,J;(J=IAE)||(J=IAE=new TextDecoder("utf-8",{fatal:!0}));F=G+F;V=G===0&&F===V.length?V:V.subarray(G,F);try{var b=J.decode(V)}catch(t){if(Qwo===void 0){try{J.decode(new Uint8Array([128]))}catch(k){}try{J.decode(new Uint8Array([97])),Qwo=!0}catch(k){Qwo=!1}}!Qwo&&(IAE=void 0);throw t;}}else{b=G;F=b+F;G=[];for(var z=null,Q,E;b<F;)Q=C[b++],Q<128?G.push(Q):Q<224?b>=F?GE():(E=C[b++],Q<194||(E&192)!==128?(b--,
GE()):G.push((Q&31)<<6|E&63)):Q<240?b>=F-1?GE():(E=C[b++],(E&192)!==128||Q===224&&E<160||Q===237&&E>=160||((J=C[b++])&192)!==128?(b--,GE()):G.push((Q&15)<<12|(E&63)<<6|J&63)):Q<=244?b>=F-2?GE():(E=C[b++],(E&192)!==128||(Q<<28)+(E-144)>>30!==0||((J=C[b++])&192)!==128||((V=C[b++])&192)!==128?(b--,GE()):(Q=(Q&7)<<18|(E&63)<<12|(J&63)<<6|V&63,Q-=65536,G.push((Q>>10&1023)+55296,(Q&1023)+56320))):GE(),G.length>=8192&&(z=b9i(z,G),G.length=0);b=b9i(z,G)}return b};
_.AOy=function(C){var F=_.wn(C.decoder_)>>>0;return Els(C.decoder_,F)};
_.eyr=function(C,F,G){var V=_.wn(C.decoder_)>>>0;for(V=C.decoder_.cursor_+V;C.decoder_.cursor_<V;)G.push(F(C.decoder_))};
hyO=[];var do7=function(C,F){this.JSC$8860_lo=C>>>0;this.JSC$8860_hi=F>>>0},B9E=function(C){C=BigInt.asUintN(64,C);
return new do7(Number(C&BigInt(4294967295)),Number(C>>BigInt(32)))},TWi=function(C){if(!C)return xo$||(xo$=new do7(0,0));
if(!/^\d+$/.test(C))return null;g2(C);return new do7(d2,xS)},xo$,LYi=function(C,F){this.JSC$8862_lo=C>>>0;
this.JSC$8862_hi=F>>>0},RxT=function(C){if(!C)return slS||(slS=new LYi(0,0));
if(!/^-?\d+$/.test(C))return null;g2(C);return new LYi(d2,xS)},slS;var L2=function(){this.JSC$8864_buffer_=[]},Wh,an,qmr;
L2.prototype.length=function(){return this.JSC$8864_buffer_.length};
L2.prototype.end=function(){var C=this.JSC$8864_buffer_;this.JSC$8864_buffer_=[];return C};
Wh=function(C,F,G){for(;G>0||F>127;)C.JSC$8864_buffer_.push(F&127|128),F=(F>>>7|G<<25)>>>0,G>>>=7;C.JSC$8864_buffer_.push(F)};
an=function(C,F){for(;F>127;)C.JSC$8864_buffer_.push(F&127|128),F>>>=7;C.JSC$8864_buffer_.push(F)};
_.f05=function(C,F){if(F>=0)an(C,F);else{for(var G=0;G<9;G++)C.JSC$8864_buffer_.push(F&127|128),F>>=7;C.JSC$8864_buffer_.push(1)}};
qmr=function(C,F){g2(F);Iuw(function(G,V){Wh(C,G>>>0,V>>>0)})};
L2.prototype.writeUint8=function(C){this.JSC$8864_buffer_.push(C>>>0&255)};
_.EL=function(C,F){C.JSC$8864_buffer_.push(F>>>0&255);C.JSC$8864_buffer_.push(F>>>8&255);C.JSC$8864_buffer_.push(F>>>16&255);C.JSC$8864_buffer_.push(F>>>24&255)};
L2.prototype.writeInt8=function(C){this.JSC$8864_buffer_.push(C>>>0&255)};var P8m,nT,czZ,d_5,D3A;P8m=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new L2};
nT=function(C,F){F.length!==0&&(C.blocks_.push(F),C.totalLength_+=F.length)};
_.gSm=function(C,F){_.In(C,F,2);F=C.encoder_.end();nT(C,F);F.push(C.totalLength_);return F};
_.RyO=function(C,F){var G=F.pop();for(G=C.totalLength_+C.encoder_.length()-G;G>127;)F.push(G&127|128),G>>>=7,C.totalLength_++;F.push(G);C.totalLength_++};
_.In=function(C,F,G){an(C.encoder_,F*8+G)};
czZ=function(C,F,G){if(G!=null)switch(o_S(G),_.In(C,F,1),typeof G){case "number":C=C.encoder_;bPW(G);_.EL(C,d2);_.EL(C,xS);break;case "bigint":G=B9E(G);C=C.encoder_;F=G.JSC$8860_hi;_.EL(C,G.JSC$8860_lo);_.EL(C,F);break;default:G=TWi(G),C=C.encoder_,F=G.JSC$8860_hi,_.EL(C,G.JSC$8860_lo),_.EL(C,F)}};
d_5=function(C,F,G){_.In(C,F,2);an(C.encoder_,G.length);nT(C,C.encoder_.end());nT(C,G)};
D3A=function(C,F,G,V){G!=null&&(F=_.gSm(C,F),V(G,C),_.RyO(C,F))};var rli,Yml,T22,oSE,rOE,DoS,pur,Csl,jLr;rli=i0();Yml=i0();T22=i0();oSE=i0();rOE=i0();_.K$r=i0();_.Bc=i0();DoS=i0();pur=i0();_.mol=i0();Csl=i0();jLr=i0();_.Fdu=i0();_.Gho=i0();_.b0=function(C,F,G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C,F,G)};
_.b0.prototype.toJSON=function(){return x_(this)};
_.b0.prototype.serialize=function(C){return JSON.stringify(x_(this,C))};
var olB=function(C,F){if(F==null||F=="")return new C;F=JSON.parse(F);if(!Array.isArray(F))throw Error("V");return new C(DfW(F))};
_.b0.prototype.getExtension=function(C){Ghf(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C.fieldIndex);jLT(this,C.fieldIndex);return C.ctor?C.isRepeated?C.getExtensionFn(this,C.ctor,C.fieldIndex,_.ED(),C.JSC$8875_hasMessageId):C.getExtensionFn(this,C.ctor,C.fieldIndex,C.JSC$8875_hasMessageId):C.isRepeated?C.getExtensionFn(this,C.fieldIndex,_.ED(),C.JSC$8875_hasMessageId):C.getExtensionFn(this,C.fieldIndex,C.defaultValue,C.JSC$8875_hasMessageId)};
_.b0.prototype.clone=function(){var C=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F=C[_.JO]|0;return wVo(this,C,F)?XVA(this,C,!0):new this.constructor(PV(C,F,!1))};
_.b0.prototype[M3]=SU;_.b0.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var Jz=function(C,F,G){this.$$binaryReaderFn=C;this.$$binaryWriterFn=F;C=hl(rli);this.$$isMsg=!!C&&G===C||!1},GBE=Kdi(function(C,F,G,V,J){if(C.nextWireType_!==2)return!1;
SX(C,luu(F,V,G),J);return!0},m3B),VSS=Kdi(function(C,F,G,V,J){if(C.nextWireType_!==2)return!1;
SX(C,luu(F,V,G),J);return!0},m3B),U_Z=Symbol(),$_5=Symbol(),u6W=Symbol(),yzE=Symbol(),WYS=Symbol(),C0Z,jnI;var R_5,VU$,vc,it8,Jll,$38,bt$,hi,uMu,zx$,QLO,Ir7,E_G,tUE,ar8,kh$,U3P,HtG,lrS;R_5=function(C,F){var G=new P8m;ZTq(C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G,$l(U_Z,kBS,HTo,F));nT(G,G.encoder_.end());C=new Uint8Array(G.totalLength_);F=G.blocks_;for(var V=F.length,J=0,b=0;b<V;b++){var z=F[b];C.set(z,J);J+=z.length}G.blocks_=[C];return C};
VU$=Kdi(function(C,F,G,V,J){if(C.nextWireType_!==2)return!1;C=SX(C,q3([void 0,void 0],V,!0),J);C=T7(C);V=F[_.JO]|0;J=cu(V);if(V&2)throw Error();var b=md(F,G,J);if(b instanceof Lt)(b.arrayState&2)!=0?(b=E_q(b),b.push(C),oL(F,V,G,b,J)):(F=b,G=F.keyToApi(C[0],!1,!0),C=C[1],C=F.valueCtor?C===void 0?null:C:F.valueToApi(C,!1,!0,void 0,!1,F.arrayState),GG.prototype.set.call(F,G,C));else if(Array.isArray(b)){var z=b[_.JO]|0;z&8192||nP(b,z|=8192);z&2&&(b=v_A(b),oL(F,V,G,b,J));b.push(C)}else oL(F,V,G,z7([C]),
J);return!0},function(C,F,G,V,J){if(F instanceof Lt)F.forEach(function(Q,E){D3A(C,G,q3([E,
Q],V,!1),J)});
else if(Array.isArray(F)){for(var b=0;b<F.length;b++){var z=F[b];Array.isArray(z)&&D3A(C,G,q3(z,V,!1),J)}z7(F)}});
vc=_.u0(function(C,F,G){if(C.nextWireType_!==1)return!1;_.QF(F,G,Smy(C.decoder_));return!0},MS5,jLr);
it8=_.u0(function(C,F,G,V){if(C.nextWireType_!==1)return!1;_.n2(F,G,V,Smy(C.decoder_));return!0},MS5,jLr);
Jll=_.u0(function(C,F,G){if(C.nextWireType_!==5)return!1;_.QF(F,G,MG$(C.decoder_));return!0},SLT,Csl);
$38=_.whq(function(C,F,G){if(C.nextWireType_!==5&&C.nextWireType_!==2)return!1;F=_.F6(F,F[_.JO]|0,G);C.nextWireType_==2?_.eyr(C,MG$,F):F.push(MG$(C.decoder_));return!0},function(C,F,G){F=_.XhW(_.Du,F,!0);
if(F!=null&&F.length)for(_.In(C,G,2),an(C.encoder_,F.length*4),G=0;G<F.length;G++){var V=C.encoder_;zyA(F[G]);_.EL(V,d2)}},Csl);
bt$=_.u0(function(C,F,G,V){if(C.nextWireType_!==5)return!1;_.n2(F,G,V,MG$(C.decoder_));return!0},SLT,Csl);
_.n_r=_.u0(function(C,F,G){if(C.nextWireType_!==0)return!1;_.QF(F,G,_.Xh(C.decoder_,_.tG9));return!0},_.tz,_.Bc);
_.f2=_.u0(function(C,F,G){if(C.nextWireType_!==0)return!1;_.QF(F,G,_.Xh(C.decoder_,Pu));return!0},_.tz,_.Bc);
hi=_.u0(function(C,F,G){if(C.nextWireType_!==0)return!1;C=_.Xh(C.decoder_,Pu);_.QF(F,G,C===0?void 0:C);return!0},_.tz,_.Bc);
uMu=_.u0(function(C,F,G,V){if(C.nextWireType_!==0)return!1;_.n2(F,G,V,_.Xh(C.decoder_,Pu));return!0},_.tz,_.Bc);
zx$=_.u0(function(C,F,G){if(C.nextWireType_!==0)return!1;_.QF(F,G,_.Xh(C.decoder_,_.qo));return!0},vlI,DoS);
_.cc=_.u0(function(C,F,G){if(C.nextWireType_!==0)return!1;_.QF(F,G,_.Xh(C.decoder_,QlB));return!0},vlI,DoS);
_.Ai=_.u0(function(C,F,G){if(C.nextWireType_!==0)return!1;_.QF(F,G,_.wn(C.decoder_));return!0},h_Z,oSE);
QLO=_.u0(function(C,F,G){if(C.nextWireType_!==0)return!1;C=_.wn(C.decoder_);_.QF(F,G,C===0?void 0:C);return!0},h_Z,oSE);
Ir7=_.u0(function(C,F,G,V){if(C.nextWireType_!==0)return!1;_.n2(F,G,V,_.wn(C.decoder_));return!0},h_Z,oSE);
E_G=_.u0(function(C,F,G){if(C.nextWireType_!==1)return!1;_.QF(F,G,wu8(C.decoder_));return!0},_.AzW,_.mol);
_.WdO=_.whq(function(C,F,G){if(C.nextWireType_!==1&&C.nextWireType_!==2)return!1;F=_.F6(F,F[_.JO]|0,G);C.nextWireType_==2?_.eyr(C,wu8,F):F.push(wu8(C.decoder_));return!0},function(C,F,G){F=_.XhW(doE,F,!1);
if(F!=null)for(var V=0;V<F.length;V++)czZ(C,G,F[V])},_.mol);
_.eX=_.u0(function(C,F,G){if(C.nextWireType_!==0)return!1;_.QF(F,G,L$S(C.decoder_));return!0},e_B,Yml);
_.dn=_.u0(function(C,F,G){if(C.nextWireType_!==0)return!1;C=L$S(C.decoder_);_.QF(F,G,C===!1?void 0:C);return!0},e_B,Yml);
tUE=_.u0(function(C,F,G,V){if(C.nextWireType_!==0)return!1;_.n2(F,G,V,L$S(C.decoder_));return!0},e_B,Yml);
_.xL=_.u0(function(C,F,G){if(C.nextWireType_!==2)return!1;_.QF(F,G,cOm(C));return!0},x_w,T22);
_.q5=_.u0(function(C,F,G){if(C.nextWireType_!==2)return!1;C=cOm(C);_.QF(F,G,C===""?void 0:C);return!0},x_w,T22);
_.Pc=_.u0(function(C,F,G,V){if(C.nextWireType_!==2)return!1;_.n2(F,G,V,cOm(C));return!0},x_w,T22);
ar8=_.whq(function(C,F,G){if(C.nextWireType_!==2)return!1;C=cOm(C);_.F6(F,F[_.JO]|0,G).push(C);return!0},function(C,F,G){F=_.XhW(_.Or,F,!0);
if(F!=null)for(var V=0;V<F.length;V++){var J=C,b=G,z=F[V];z!=null&&d_5(J,b,Qwf(z))}},T22);
kh$=void 0;kh$=kh$===void 0?rli:kh$;_.gn=new Jz(function(C,F,G,V,J){if(C.nextWireType_!==2)return!1;V=q3(void 0,V,!0);_.F6(F,F[_.JO]|0,G).push(V);SX(C,V,J);return!0},function(C,F,G,V,J){if(Array.isArray(F)){for(var b=0;b<F.length;b++)snw(C,F[b],G,V,J);
C=F[_.JO]|0;C&1||nP(F,C|1)}},kh$);
_.R3=Kdi(function(C,F,G,V,J,b){if(C.nextWireType_!==2)return!1;var z=F[_.JO]|0;Alo(F,z,b,G,cu(z));F=luu(F,V,G);SX(C,F,J);return!0},snw);
_.YL=_.u0(function(C,F,G){if(C.nextWireType_!==2)return!1;_.QF(F,G,_.AOy(C));return!0},_.qLB,_.Fdu);
U3P=_.u0(function(C,F,G,V){if(C.nextWireType_!==2)return!1;_.n2(F,G,V,_.AOy(C));return!0},_.qLB,_.Fdu);
_.TG=_.u0(function(C,F,G){if(C.nextWireType_!==0)return!1;_.QF(F,G,_.wn(C.decoder_)>>>0);return!0},P09,rOE);
HtG=_.u0(function(C,F,G,V){if(C.nextWireType_!==0)return!1;_.n2(F,G,V,_.wn(C.decoder_)>>>0);return!0},P09,rOE);
_.o3=_.u0(function(C,F,G){if(C.nextWireType_!==0)return!1;_.QF(F,G,_.wn(C.decoder_));return!0},_.glS,_.Gho);
_.rn=_.u0(function(C,F,G){if(C.nextWireType_!==0)return!1;C=_.wn(C.decoder_);_.QF(F,G,C===0?void 0:C);return!0},_.glS,_.Gho);
lrS=_.u0(function(C,F,G){if(C.nextWireType_!==0)return!1;_.QF(F,G,_.Xh(C.decoder_,EST));return!0},function(C,F,G){F=eyT(F);
if(F!=null&&(YrI(F),F!=null))switch(_.In(C,G,0),typeof F){case "number":C=C.encoder_;G=F;F=G<0;G=Math.abs(G)*2;bPW(G);G=d2;var V=xS;F&&(G==0?V==0?V=G=4294967295:(V--,G=4294967295):G--);d2=G;xS=V;Wh(C,d2,xS);break;case "bigint":C=C.encoder_;F=F<<BigInt(1)^F>>BigInt(63);d2=Number(BigInt.asUintN(32,F));xS=Number(BigInt.asUintN(32,F>>BigInt(32)));Wh(C,d2,xS);break;default:qmr(C.encoder_,F)}},pur);var NWE=function(){var C=ylO,F=Ztu;this.fieldIndex=175237375;this.ctor=F;this.isRepeated=0;this.getExtensionFn=_.aa;this.defaultValue=void 0;this.JSC$8875_hasMessageId=C.messageId!=null?hO:void 0};
NWE.prototype.register=function(){oE(this)};var Oto=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Oto,_.b0);var XVu=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(XVu,_.b0);var D_B=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(D_B,_.b0);var wVu=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(wVu,_.b0);var MUo=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(MUo,_.b0);var Sr$=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Sr$,_.b0);var Ld8=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Ld8,_.b0);Ld8.prototype.getData=function(){return _.bg(this,2)};var BWr=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(BWr,_.b0);var v_u=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(v_u,_.b0);v_u.prototype.getStyle=function(){return _.aa(this,Oto,1)};var N_=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(N_,_.b0);N_.prototype.getPayloadCase=function(){return _.ug(this,w9)};
N_.prototype.getStyle=function(){return _.yZ(this,v_u,6,w9)};
var frl=function(){var C=new N_,F=new MUo;return _.X6(C,7,w9,F)},hxm=function(){var C=new N_,F=new Sr$;
return _.X6(C,8,w9,F)},w9=[1,
2,3,4,5,6,7,8];var clr=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(clr,_.b0);var Alu=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Alu,_.b0);var ex8=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(ex8,_.b0);var d3r=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(d3r,_.b0);var x37=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(x37,_.b0);var sL7=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(sL7,_.b0);var qrm=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(qrm,_.b0);var Psy=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Psy,_.b0);Psy.prototype.getData=function(){return _.bg(this,2)};var g_E=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(g_E,_.b0);var KYZ=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(KYZ,_.b0);KYZ.prototype.getPayloadCase=function(){return _.ug(this,K2)};
var K2=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var DW=function(C,F){C=Error.call(this,C);this.message=C.message;"stack"in C&&(this.stack=C.stack);this.code=F===void 0?2:F};
_.O(DW,Error);var Rxr=Promise;var Yr2=function(C){this.channelPromise=C};
Yr2.prototype.send=function(C,F,G){this.channelPromise.then(function(V){V.send(C,F,G)})};var TWS=function(C,F){this.data=C;this.channel=F};
TWS.prototype.reply=function(C,F,G){this.channel.send(C,F,G)};var o_E=function(C){this.JSC$8941_port_=C};
o_E.prototype.send=function(C,F,G){G=G===void 0?[]:G;var V=new MessageChannel;rlS(V.port1,F);this.JSC$8941_port_.postMessage(C,[V.port2].concat(G))};
var KdS=function(C,F){rlS(C,F);return new o_E(C)},rlS=function(C,F){F&&(C.onmessage=function(G){F(new TWS(G.data,KdS(G.ports[0])))})};var D3u=function(C){this.verifier_=C};
D3u.prototype.verify=function(C){return this.verifier_(C)};
var pVy=function(C){var F=Object.create(null);(typeof C==="string"?[C]:C).forEach(function(G){if(G==="null")throw Error("X");F[G]=!0});
return function(G){return F[G]===!0}};_.m3m=function(){if(!_.VT.addEventListener||!Object.defineProperty)return!1;var C=!1,F=Object.defineProperty({},"passive",{get:function(){C=!0}});
try{var G=function(){};
_.VT.addEventListener("test",G,F);_.VT.removeEventListener("test",G,F)}catch(V){}return C}();var C08;_.p2=function(C){var F=C.destination;var G=C.iframe;var V=C.origin;var J=C.channelName===void 0?"ZNWN1d":C.channelName;var b=C.onMessage===void 0?void 0:C.onMessage;C=C.onEstablished===void 0?void 0:C.onEstablished;return C08({destination:F,getSource:function(){return G.contentWindow},
originVerifier:V instanceof D3u?V:typeof V==="function"?new D3u(V):new D3u(pVy(V)),channelName:J,onMessage:b,onEstablished:C})};
C08=function(C){var F=C.destination;var G=C.getSource;var V=C.originVerifier;var J=C.token===void 0?void 0:C.token;var b=C.channelName;var z=C.onMessage===void 0?void 0:C.onMessage;var Q=C.onEstablished===void 0?void 0:C.onEstablished;return new Yr2(new Rxr(function(E,t){var k=function(U){U.source&&U.source===G()&&V.verify(U.origin)&&(U.data.n||U.data)===b&&(F.removeEventListener("message",k,!1),J&&U.data.t!==J?t(Error("Y`"+b+"`"+J+"`"+U.data.t)):(E(KdS(U.ports[0],z)),Q&&Q(U)))};
F.addEventListener("message",k,!1)}))};var jn2=function(C){try{C()}catch(F){iZ(F)}};var GB7=function(C){var F=this;var G=C.getMessageType;var V=C.onUnregisteredMessage===void 0?function(){}:C.onUnregisteredMessage;
var J=C.onBeforeRegisteredMessage===void 0?function(){}:C.onBeforeRegisteredMessage;
C=C.onAfterRegisteredMessage===void 0?function(){}:C.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=G;this.onUnregisteredMessage_=V;this.onBeforeRegisteredMessage_=J;this.onAfterRegisteredMessage_=C;this.onMessage=function(b){return FYl(F,b)}};
GB7.prototype.register=function(C,F){this.registry_.set(C,F);return this};
var FYl=function(C,F){var G=C.getMessageType_(F.data),V=C.registry_.get(G);V?(jn2(function(){return C.onBeforeRegisteredMessage_(F,G)}),jn2(function(){return V(F)}),jn2(function(){return C.onAfterRegisteredMessage_(F,G)})):jn2(function(){return C.onUnregisteredMessage_(F,G)})};var VSE=function(C){this.JSC$8958_channel_=C},Jzl,$_y;
VSE.prototype.send=function(C,F,G){this.JSC$8958_channel_.send(x_(C),F,G)};
_.iT8=function(C,F){return function(G){var V=new C(G.data);return F(new TWS(V,G.channel))}};
Jzl=function(C){return function(F){return C(new TWS(F.data,new VSE(F.channel)))}};
$_y=function(C,F){return Jzl(_.iT8(C,F))};var bTm=function(C,F,G,V){this.registry=C;this.delegate=F;this.receiveMessageConstructor=G;this.createInitMessage=V;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},rzB=function(C){var F=new GB7({getMessageType:C.getPayloadCase});
return new bTm(F,new VSE(_.p2({iframe:C.child,destination:window,origin:C.origin,channelName:C.channelName,onMessage:$_y(C.receiveMessageConstructor,F.onMessage)})),C.receiveMessageConstructor,C.createInitMessage)},nlu=function(C,F){C.createInitMessage=F};
bTm.prototype.send=function(C){if(!this.initialised)throw new DW("Attempted to send a message before initialisation.");this.delegate.send(C)};
var u6$=function(C,F){return _.I(function(G){if(!C.initialised)throw new DW("Attempted to send a message before initialisation.");return G.return(new Promise(function(V){C.delegate.send(F,$_y(C.receiveMessageConstructor,V))}))})};
bTm.prototype.init=function(){var C=this;return _.I(function(F){if(C.initialised)throw new DW("Attempted to initialise twice. The SDK can only be initialised once.");if(C.createInitMessage!==void 0){var G=C.delegate,V=G.send,J=C.createInitMessage;var b=new XVu;var z=[].concat(_.da(C.features));b=_.CT(b,1,z,_.Jl);V.call(G,J.call(C,b))}C.initialised=!0;_.S9(F)})};
var m7=function(C,F){if(C.initialised)throw new DW('Attempted to set up API "'+F+'" after initialisation. All APIs must be set up before initialising the SDK.');C.features.add(F);return C.registry};
_.I6.Object.defineProperties(bTm.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var z_P=function(C){this.channel=C;this.registered=!1};
z_P.prototype.update=function(C){if(this.channel.isInitialised){if(!this.registered)throw new DW("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var F=new N_;var G=new wVu;G=_.UD(G,1,C);F=_.X6(F,2,w9,G);this.channel.send(F)}else this.register();this.JSC$8972_audioEnabled=C};
z_P.prototype.register=function(){m7(this.channel,1);this.registered=!0};
z_P.prototype.isAudioEnabled=function(){return this.JSC$8972_audioEnabled};var QnE=function(C){this.channel=C};
_.n=QnE.prototype;_.n.onFirstFrameReady=function(C){m7(this.channel,2).register(11,function(F){F=_.yZ(F.data,clr,11,K2);if(!F)throw new DW("Unexpectedly nonexistent GameFirstFrameReadyEvent");C(_.a3(F,1))})};
_.n.onReady=function(C){m7(this.channel,2).register(4,function(F){F=_.yZ(F.data,ex8,4,K2);if(!F)throw new DW("Unexpectedly nonexistent GameReadyEvent");C(_.a3(F,1))})};
_.n.onLevelComplete=function(C){m7(this.channel,2).register(5,function(F){F=_.yZ(F.data,d3r,5,K2);if(!F)throw new DW("Unexpectedly nonexistent LevelCompleteEvent");C(_.a3(F,1),_.Wk(F,2))})};
_.n.onGameOver=function(C){m7(this.channel,2).register(6,function(F){F=_.yZ(F.data,Alu,6,K2);if(!F)throw new DW("Unexpectedly nonexistent GameOverEvent");C(_.a3(F,1))})};
_.n.pause=function(){var C=this;if(!this.channel.isInitialised)return m7(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new DW("Using unregistered Game Feature: pause.");var F=frl();return new Promise(function(G){return _.I(function(V){if(V.nextAddress==1)return V.yield(u6$(C.channel,F),2);G();_.S9(V)})})};
_.n.resume=function(){var C=this;if(!this.channel.isInitialised)return m7(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new DW("Using unregistered Game Feature: resume.");var F=hxm();return new Promise(function(G){return _.I(function(V){if(V.nextAddress==1)return V.yield(u6$(C.channel,F),2);G();_.S9(V)})})};var I0G=function(C){this.channel=C};
I0G.prototype.onReady=function(C){m7(this.channel,5).register(8,function(F){if(!_.yZ(F.data,x37,8,K2))throw new DW("Unexpectedly nonexistent PageReadyEvent");C()})};var ElO=function(C){this.channel=C};
ElO.prototype.onChange=function(C){m7(this.channel,3).register(7,function(F){F=_.yZ(F.data,sL7,7,K2);if(!F)throw new DW("Unexpectedly nonexistent ScoreEvent");C(_.a3(F,1),_.Wk(F,2))})};var WYE={load:function(){throw new DW("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new DW("Storage used, but storage.onSave() listener not set!");}},tSS=function(C){this.channel=C;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},a0m=function(C){m7(C.channel,4).register(2,WYE.load).register(3,WYE.save);
C.initialSetupDone=!0};
tSS.prototype.onLoad=function(C){this.initialSetupDone||a0m(this);this.loadRegistered||(this.loadRegistered=!0,m7(this.channel,4).register(2,function(F){var G,V,J;return _.I(function(b){if(b.nextAddress==1){G=_.yZ(F.data,qrm,2,K2);if(!G)throw new DW("Unexpectedly nonexistent StorageLoad");V=_.a3(G,1);return b.yield(C(V),2)}J=b.yieldResult;var z=F.reply,Q=new N_;var E=new Ld8;E=_.fA(E,1,V);E=_.Ut(E,2,_.fP(J,!1));Q=_.X6(Q,3,w9,E);z.call(F,Q);_.S9(b)})}))};
tSS.prototype.onSave=function(C){this.initialSetupDone||a0m(this);this.saveRegistered||(this.saveRegistered=!0,m7(this.channel,4).register(3,function(F){var G,V,J;return _.I(function(b){if(b.nextAddress==1){G=_.yZ(F.data,Psy,3,K2);if(!G)throw new DW("Unexpectedly nonexistent StorageSave");V=_.a3(G,1);J=JOm(G.getData());return b.yield(C(V,J),2)}var z=F.reply,Q=new N_;var E=new BWr;E=_.fA(E,1,V);Q=_.X6(Q,4,w9,E);z.call(F,Q);_.S9(b)})}))};var kBE=function(C){this.channel=C};
kBE.prototype.update=function(C){if(!this.channel.features.has(6))throw new DW("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var F=new N_,G=new v_u;C=_.OL(G,1,C);F=_.X6(F,6,w9,C);this.channel.send(F)};
kBE.prototype.register=function(){m7(this.channel,6)};var U_8=function(C){this.channel=C;this.userActivityLoggingIntervalMs=0};
U_8.prototype.onUserActivity=function(C,F){this.userActivityLoggingIntervalMs=F;m7(this.channel,7).register(9,function(G){if(!_.yZ(G.data,g_E,9,K2))throw new DW("Unexpectedly nonexistent ClickEvent");C()})};var HTu=function(C){var F=this;this.channel=C;this.init=this.channel.init.bind(this.channel);this.page=new I0G(this.channel);this.game=new QnE(this.channel);this.audio=new z_P(this.channel);this.score=new ElO(this.channel);this.storage=new tSS(this.channel);this.style=new kBE(this.channel);this.userActivity=new U_8(this.channel);nlu(this.channel,function(G){var V=new D_B;G=_.OL(V,1,G);G=_.ZW(G,3,F.userActivity.userActivityLoggingIntervalMs);V=F.audio.isAudioEnabled();V!==void 0&&_.UD(G,2,V);V=new N_;
return _.X6(V,5,w9,G)})};var l0E=function(){this.timedFunctionContext=0};
l0E.prototype.timeExecution=function(C,F){var G=this;return function(){var V=_.Rn.apply(0,arguments);G.timedFunctionContext=C;return F.apply(null,_.da(V))}};var yz7=function(){var C={};this.priorityTasks=(C[3]=[],C[2]=[],C[1]=[],C);this.isFlushing=!1},Os=function(C,F,G){var V=ZTG(C,G);
C.priorityTasks[G].push(F);V&&C.priorityTasks[G].length===1&&C.flush()},ZTG=function(C,F){return Object.keys(C.priorityTasks).map(function(G){return Number(G)}).filter(function(G){return!isNaN(G)&&G>F}).every(function(G){return C.priorityTasks[G].length===0})};
yz7.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(C){return C.length>0});)N9l(this,3),N9l(this,2),N9l(this,1)}catch(C){throw Object.values(this.priorityTasks).forEach(function(F){return void F.splice(0,F.length)}),C;
}finally{this.isFlushing=!1}}};
var N9l=function(C,F){for(;ZTG(C,F)&&C.priorityTasks[F].length>0;)C.priorityTasks[F][0](),C.priorityTasks[F].shift()};
_.I6.Object.defineProperties(yz7.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(C){return C.length>0})}}});var V9s={};var OT7=globalThis.trustedTypes,m_s=OT7,jps;var SS=function(C){this.privateDoNotAccessOrElseWrappedResourceUrl=C};
SS.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var Xh$,whG,MSy,SLr,LYS,B97,vl2,f0y;Xh$=_.h6([""]);whG=fV(["\x00"],["\\0"]);MSy=fV(["\n"],["\\n"]);SLr=fV(["\x00"],["\\u0000"]);LYS=_.h6([""]);B97=fV(["\x00"],["\\0"]);vl2=fV(["\n"],["\\n"]);f0y=fV(["\x00"],["\\u0000"]);_.h_8=GOE(function(C){return C(Xh$)})||GOE(function(C){return C(whG)})||GOE(function(C){return C(MSy)})||GOE(function(C){return C(SLr)});
_.cz8=_.fT(LYS)&&_.fT(B97)&&_.fT(vl2)&&_.fT(f0y);var q_;_.hz=function(C,F){this.privateDoNotAccessOrElseWrappedUrl=F};
_.hz.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.Az$=ch("about:blank");q_=ch("about:invalid#zClosurez");var ivA=function(C){this.isValid=C},e_m=new ivA(function(C){return/^[^:]*([/?#]|$)/.test(C)}),d_y=d9("data"),x_l=d9("http"),snl=d9("https"),qLm=d9("ftp"),P0P=d9("mailto"),glE=d9("intent"),R_y=d9("vnd.youtube"),JWf=[d_y,
x_l,snl,P0P,qLm,e_m],bvT=M_(function(){return typeof URL==="function"}),YLr=["data:",
"http:","https:","mailto:","ftp:"],uGE=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var on=function(C){this.privateDoNotAccessOrElseWrappedHtml=C};
on.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var uTs=M_(function(){return new on(OT7?OT7.emptyHTML:"")});var T9m={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"},Qpq=function(C,F){var G=Error.call(this,C+" cannot be used with intent "+T9m[F]);this.message=G.message;"stack"in G&&(this.stack=G.stack);this.type=C;this.intent=F;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.O(Qpq,Error);_.FG=function(C){this.privateDoNotAccessOrElseWrappedScript=C};
_.FG.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var Wb5=function(C){this.privateDoNotAccessOrElseWrappedAttributePrefix=C};
Wb5.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var t9S="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var ui=function(C){this.privateDoNotAccessOrElseWrappedStyleSheet=C};
ui.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var P5Z=function(C){var F=_.mN("window.location.href");C==null&&(C='Unknown Error of type "null/undefined"');if(typeof C==="string")return{message:C,name:"Unknown error",lineNumber:"Not available",fileName:F,stack:"Not available"};var G=!1;try{var V=C.lineNumber||C.line||"Not available"}catch(z){V="Not available",G=!0}try{var J=C.fileName||C.filename||C.sourceURL||_.VT.$googDebugFname||F}catch(z){J="Not available",G=!0}F=olm(C);if(!(!G&&C.lineNumber&&C.fileName&&C.stack&&C.message&&C.name)){G=C.message;
if(G==null){if(C.constructor&&C.constructor instanceof Function){if(C.constructor.name)G=C.constructor.name;else if(G=C.constructor,Ck[G])G=Ck[G];else{G=String(G);if(!Ck[G]){var b=/function\s+([^\(]+)/m.exec(G);Ck[G]=b?b[1]:"[Anonymous]"}G=Ck[G]}G='Unknown Error of type "'+G+'"'}else G="Unknown Error of unknown type";typeof C.toString==="function"&&Object.prototype.toString!==C.toString&&(G+=": "+C.toString())}return{message:G,name:C.name||"UnknownError",lineNumber:V,fileName:J,stack:F||"Not available"}}return{message:C.message,
name:C.name,lineNumber:C.lineNumber,fileName:C.fileName,stack:F}},olm=function(C,F){F||(F={});
F[rzm(C)]=!0;var G=C.stack||"",V=C.cause;V&&!F[rzm(V)]&&(G+="\nCaused by: ",V.stack&&V.stack.indexOf(V.toString())==0||(G+=typeof V==="string"?V:V.message+"\n"),G+=olm(V,F));C=C.errors;if(Array.isArray(C)){V=1;var J;for(J=0;J<C.length&&!(V>4);J++)F[rzm(C[J])]||(G+="\nInner error "+V++ +": ",C[J].stack&&C[J].stack.indexOf(C[J].toString())==0||(G+=typeof C[J]==="string"?C[J]:C[J].message+"\n"),G+=olm(C[J],F));J<C.length&&(G+="\n... "+(C.length-J)+" more inner errors")}return G},rzm=function(C){var F=
"";
typeof C.toString==="function"&&(F=""+C);return F+C.stack},Ck={};var KY8,zN,pZ,phP,m_O,D_m,pf,B9,jpO;KY8=function(C,F){for(var G=C.split("%s"),V="",J=Array.prototype.slice.call(arguments,1);J.length&&G.length>1;)V+=G.shift()+J.shift();return V+G.join("%s")};
_.jP=function(C){return encodeURIComponent(String(C))};
zN=function(C){return decodeURIComponent(C.replace(/\+/g," "))};
pZ=function(C){ys8.test(C)&&(C.indexOf("&")!=-1&&(C=C.replace(tqP,"&amp;")),C.indexOf("<")!=-1&&(C=C.replace(aAm,"&lt;")),C.indexOf(">")!=-1&&(C=C.replace(kEO,"&gt;")),C.indexOf('"')!=-1&&(C=C.replace(Ufu,"&quot;")),C.indexOf("'")!=-1&&(C=C.replace(H9l,"&#39;")),C.indexOf("\x00")!=-1&&(C=C.replace(lAP,"&#0;")));return C};
phP=function(C){var F={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var G=_.VT.document.createElement("div");return C.replace(D_m,function(V,J){var b=F[V];if(b)return b;J.charAt(0)=="#"&&(J=Number("0"+J.slice(1)),isNaN(J)||(b=String.fromCharCode(J)));b||(_.$O(G,D0(V+" ")),b=G.firstChild.nodeValue.slice(0,-1));return F[V]=b})};
m_O=function(C){return C.replace(/&([^;]+);/g,function(F,G){switch(G){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return G.charAt(0)!="#"||(G=Number("0"+G.slice(1)),isNaN(G))?F:String.fromCharCode(G)}})};
D_m=/&([^;\s<&]+);?/g;_.Mhw=function(C){return String(C).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.Ci7=String.prototype.repeat?function(C,F){return C.repeat(F)}:function(C,F){return Array(F+1).join(C)};
_.jI=function(C,F){if(!Number.isFinite(C))return String(C);C=String(C);var G=C.indexOf(".");G===-1&&(G=C.length);var V=C[0]==="-"?"-":"";V&&(C=C.substring(1));return V+(0,_.Ci7)("0",Math.max(0,F-G))+C};
pf=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.gp()).toString(36)};
B9=function(C){for(var F=0,G=0;G<C.length;++G)F=31*F+C.charCodeAt(G)>>>0;return F};
_.$6=function(C){return String(C).replace(/\-([a-z])/g,function(F,G){return G.toUpperCase()})};
_.Jr=function(C){return String(C).replace(/([A-Z])/g,"-$1").toLowerCase()};
jpO=function(C){return C.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(F,G,V){return G+V.toUpperCase()})};var Fb7=function(){this.names=new Map};
Fb7.prototype.getName=function(C){var F=this.names.get(C);if(F)return F;var G;F=(G=C.description)!=null?G:pf();this.names.set(C,F);return F};var GO7=function(C){var F=Error.call(this,C?C.length+" errors occurred during unsubscription:\n"+C.map(function(G,V){return V+1+") "+G.toString()}).join("\n  "):"");
this.message=F.message;"stack"in F&&(this.stack=F.stack);this.errors=C;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.O(GO7,Error);var Qy=function(C){this.initialTeardown=C;this.closed=!1;this._teardowns=this._parentage=null};
_.n=Qy.prototype;
_.n.unsubscribe=function(){if(!this.closed){this.closed=!0;var C=this._parentage;if(Array.isArray(C))for(var F=_.u(C),G=F.next();!G.done;G=F.next())G.value.remove(this);else C==null||C.remove(this);F=this.initialTeardown;if(zO(F))try{F()}catch(b){var V=b instanceof GO7?b.errors:[b]}var J=this._teardowns;if(J)for(this._teardowns=null,F=_.u(J),G=F.next();!G.done;G=F.next()){G=G.value;try{zO(G)?G():G.unsubscribe()}catch(b){G=void 0,V=(G=V)!=null?G:[],b instanceof GO7?V=[].concat(_.da(V),_.da(b.errors)):
V.push(b)}}if(V)throw new GO7(V);}};
_.n.add=function(C){if(C&&C!==this)if(this.closed)zO(C)?C():C.unsubscribe();else{if(C instanceof Qy){if(C.closed||C._hasParent(this))return;C._addParent(this)}var F;(this._teardowns=(F=this._teardowns)!=null?F:[]).push(C)}};
_.n._hasParent=function(C){var F=this._parentage;return F===C||Array.isArray(F)&&F.includes(C)};
_.n._addParent=function(C){var F=this._parentage;this._parentage=Array.isArray(F)?(F.push(C),F):F?[F,C]:C};
_.n._removeParent=function(C){var F=this._parentage;F===C?this._parentage=null:Array.isArray(F)&&l6w(F,C)};
_.n.remove=function(C){var F=this._teardowns;F&&l6w(F,C);C instanceof Qy&&C._removeParent(this)};
var V9O=new Qy;V9O.closed=!0;Qy.JSC$9068_EMPTY=V9O;var ZvS=function(){setTimeout.apply(null,_.da(_.Rn.apply(0,arguments)))};var Fd=function(C){Qy.call(this);this.JSC$9073_isStopped=!1;this.destination=C instanceof Fd?C:new Gi(!C||zO(C)?{next:C!=null?C:void 0}:C);yW5(C)&&C.add(this)};
_.O(Fd,Qy);Fd.JSC$9068_EMPTY=Qy.JSC$9068_EMPTY;Fd.create=function(C,F,G){return new VY(C,F,G)};
_.n=Fd.prototype;_.n.next=function(C){this.JSC$9073_isStopped||this._next(C)};
_.n.error=function(C){this.JSC$9073_isStopped||(this.JSC$9073_isStopped=!0,this._error(C))};
_.n.complete=function(){this.JSC$9073_isStopped||(this.JSC$9073_isStopped=!0,this._complete())};
_.n.unsubscribe=function(){this.closed||(this.JSC$9073_isStopped=!0,Qy.prototype.unsubscribe.call(this))};
_.n._next=function(C){this.destination.next(C)};
_.n._error=function(C){this.destination.error(C);this.unsubscribe()};
_.n._complete=function(){this.destination.complete();this.unsubscribe()};
var Gi=function(C){this.partialObserver=C};
Gi.prototype.next=function(C){var F=this.partialObserver;if(F.next)try{F.next(C)}catch(G){Ea(G)}};
Gi.prototype.error=function(C){var F=this.partialObserver;if(F.error)try{F.error(C)}catch(G){Ea(G)}else Ea(C)};
Gi.prototype.complete=function(){var C=this.partialObserver;if(C.complete)try{C.complete()}catch(F){Ea(F)}};
var VY=function(C,F,G){Fd.call(this);var V;zO(C)||!C?V={next:C!=null?C:void 0,error:F!=null?F:void 0,complete:G!=null?G:void 0}:V=C;this.destination=new Gi(V)};
_.O(VY,Fd);VY.JSC$9068_EMPTY=Fd.JSC$9068_EMPTY;VY.create=Fd.create;var kO=typeof Symbol==="function"&&Symbol.observable||"@@observable";var ap=function(C){C&&(this._subscribe=C)};
_.n=ap.prototype;_.n.lift=function(C){var F=new ap;F.source=this;F.operator=C;return F};
_.n.subscribe=function(C,F,G){C=C&&C instanceof Fd||C&&zO(C.next)&&zO(C.error)&&zO(C.complete)&&yW5(C)?C:new VY(C,F,G);F=this.operator;G=this.source;C.add(F?F.call(C,G):G?this._subscribe(C):this._trySubscribe(C));return C};
_.n._trySubscribe=function(C){try{return this._subscribe(C)}catch(F){C.error(F)}};
_.n.forEach=function(C,F){var G=this;F=OvT(F);return new F(function(V,J){var b=G.subscribe(function(z){try{C(z)}catch(Q){J(Q),b==null||b.unsubscribe()}},J,V)})};
_.n._subscribe=function(C){var F;return(F=this.source)==null?void 0:F.subscribe(C)};
ap.prototype[kO]=function(){return this};
ap.prototype.pipe=function(){var C=_.Rn.apply(0,arguments);return C.length?NaE(C)(this):this};
ap.create=function(C){return new ap(C)};var ivu=function(){var C=Error.call(this,"object unsubscribed");this.message=C.message;"stack"in C&&(this.stack=C.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.O(ivu,Error);var yS=function(){this.observers=[];this.hasError=this.JSC$9089_isStopped=this.closed=!1;this.thrownError=null};
_.O(yS,ap);_.n=yS.prototype;_.n.lift=function(C){var F=new iG(this,this);F.operator=C;return F};
_.n._throwIfClosed=function(){if(this.closed)throw new ivu;};
_.n.next=function(C){this._throwIfClosed();if(!this.JSC$9089_isStopped){var F=this.observers.slice();F=_.u(F);for(var G=F.next();!G.done;G=F.next())G.value.next(C)}};
_.n.error=function(C){this._throwIfClosed();if(!this.JSC$9089_isStopped){this.hasError=this.JSC$9089_isStopped=!0;this.thrownError=C;for(var F=this.observers;F.length;)F.shift().error(C)}};
_.n.complete=function(){this._throwIfClosed();if(!this.JSC$9089_isStopped){this.JSC$9089_isStopped=!0;for(var C=this.observers;C.length;)C.shift().complete()}};
_.n.unsubscribe=function(){this.JSC$9089_isStopped=this.closed=!0;this.observers=null};
_.n._trySubscribe=function(C){this._throwIfClosed();return ap.prototype._trySubscribe.call(this,C)};
_.n._subscribe=function(C){this._throwIfClosed();this._checkFinalizedStatuses(C);return this._innerSubscribe(C)};
_.n._innerSubscribe=function(C){var F=this,G=this.JSC$9089_isStopped,V=this.observers;return this.hasError||G?Qy.JSC$9068_EMPTY:(V.push(C),new Qy(function(){return l6w(F.observers,C)}))};
_.n._checkFinalizedStatuses=function(C){var F=this.thrownError,G=this.JSC$9089_isStopped;this.hasError?C.error(F):G&&C.complete()};
yS.create=function(C,F){return new iG(C,F)};
var iG=function(C,F){yS.call(this);this.destination=C;this.source=F};
_.O(iG,yS);iG.create=yS.create;iG.prototype.next=function(C){var F,G;(F=this.destination)==null||(G=F.next)==null||G.call(F,C)};
iG.prototype.error=function(C){var F,G;(F=this.destination)==null||(G=F.error)==null||G.call(F,C)};
iG.prototype.complete=function(){var C,F;(C=this.destination)==null||(F=C.complete)==null||F.call(C)};
iG.prototype._subscribe=function(C){var F,G;return(G=(F=this.source)==null?void 0:F.subscribe(C))!=null?G:Qy.JSC$9068_EMPTY};var pA=function(C){yS.call(this);this._value=C};
_.O(pA,yS);pA.create=yS.create;pA.prototype._subscribe=function(C){var F=yS.prototype._subscribe.call(this,C);!F.closed&&C.next(this._value);return F};
pA.prototype.getValue=function(){var C=this.thrownError,F=this._value;if(this.hasError)throw C;this._throwIfClosed();return F};
pA.prototype.next=function(C){yS.prototype.next.call(this,this._value=C)};
_.I6.Object.defineProperties(pA.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var TO=new ap(function(C){return C.complete()});var Sa5=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var hdA=function(C){return C&&typeof C.length==="number"&&typeof C!=="function"};var JWo={now:function(){return(JWo.delegate||Date).now()},
delegate:void 0};var $f=function(C,F,G){C=C===void 0?Infinity:C;F=F===void 0?Infinity:F;G=G===void 0?JWo:G;yS.call(this);this.bufferSize=C;this.windowTime=F;this.timestampProvider=G;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=F===Infinity;this.bufferSize=Math.max(1,C);this.windowTime=Math.max(1,F)};
_.O($f,yS);$f.create=yS.create;$f.prototype.next=function(C){var F=this.buffer,G=this.infiniteTimeWindow,V=this.timestampProvider,J=this.windowTime;this.JSC$9089_isStopped||(F.push(C),!G&&F.push(V.now()+J));$a2(this);yS.prototype.next.call(this,C)};
$f.prototype._subscribe=function(C){this._throwIfClosed();$a2(this);for(var F=this._innerSubscribe(C),G=this.infiniteTimeWindow,V=this.buffer.slice(),J=0;J<V.length&&!C.closed;J+=G?1:2)C.next(V[J]);this._checkFinalizedStatuses(C);return F};
var $a2=function(C){var F=C.bufferSize,G=C.timestampProvider,V=C.buffer;C=C.infiniteTimeWindow;var J=(C?1:2)*F;F<Infinity&&J<V.length&&V.splice(0,V.length-J);if(!C){F=G.now();G=0;for(C=1;C<V.length&&V[C]<=F;C+=2)G=C;G&&V.splice(0,G+1)}};var nOy=function(C,F){F=F===void 0?bvr:F;this.schedulerActionCtor=C;this.now=F};
nOy.prototype.schedule=function(C,F,G){F=F===void 0?0:F;return(new this.schedulerActionCtor(this,C)).schedule(G,F)};
var bvr=JWo.now;var XjZ=function(){var C=Error.call(this,"no elements in sequence");this.message=C.message;"stack"in C&&(this.stack=C.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.O(XjZ,Error);var cw=function(C,F,G,V,J){Fd.call(this,C);this.onUnsubscribe=J;F&&(this._next=function(b){try{F(b)}catch(z){this.destination.error(z)}});
G&&(this._error=function(b){try{G(b)}catch(z){this.destination.error(z)}this.unsubscribe()});
V&&(this._complete=function(){try{V()}catch(b){this.destination.error(b)}this.unsubscribe()})};
_.O(cw,Fd);cw.JSC$9068_EMPTY=Fd.JSC$9068_EMPTY;cw.create=Fd.create;cw.prototype.unsubscribe=function(){var C;this.closed||(C=this.onUnsubscribe)!=null&&C.call(this);Fd.prototype.unsubscribe.call(this)};var ih=function(C,F){this.source=C;this.subjectFactory=F;this._subject=null;this._refCount=0;this._connection=null};
_.O(ih,ap);ih.create=ap.create;ih.prototype._subscribe=function(C){return uG7(this).subscribe(C)};
var uG7=function(C){var F=C._subject;if(!F||F.JSC$9089_isStopped)C._subject=C.subjectFactory();return C._subject};
ih.prototype._teardown=function(){this._refCount=0;var C=this._connection;this._subject=this._connection=null;C==null||C.unsubscribe()};
ih.prototype.connect=function(){var C=this,F=this._connection;if(!F){F=this._connection=new Qy;var G=uG7(this);F.add(this.source.subscribe(new cw(G,void 0,function(V){C._teardown();G.error(V)},function(){C._teardown();
G.complete()},function(){return C._teardown()})));
F.closed&&(this._connection=null,F=Qy.JSC$9068_EMPTY)}return F};var TaZ=Array.isArray;var rWW=Array.isArray,zdG=Object,KbB=zdG.getPrototypeOf,DaI=zdG.prototype,pww=zdG.keys;var sa=function(C,F,G){Fd.call(this,C);this._next=F;this.shouldComplete=G};
_.O(sa,Fd);sa.JSC$9068_EMPTY=Fd.JSC$9068_EMPTY;sa.create=Fd.create;sa.prototype._complete=function(){this.shouldComplete()?Fd.prototype._complete.call(this):this.unsubscribe()};var $lT=["addListener","removeListener"],JGZ=["addEventListener","removeEventListener"],nfZ=["on","off"];var J8=function(){Qy.call(this)};
_.O(J8,Qy);J8.JSC$9068_EMPTY=Qy.JSC$9068_EMPTY;J8.prototype.schedule=function(){return this};var QpG=function(C,F){return setInterval.apply(null,[C,F].concat(_.da(_.Rn.apply(2,arguments))))};var $k=function(C,F){Qy.call(this);this.scheduler=C;this.work=F;this.pending=!1};
_.O($k,J8);$k.JSC$9068_EMPTY=J8.JSC$9068_EMPTY;$k.prototype.schedule=function(C,F){F=F===void 0?0:F;if(this.closed)return this;this.state=C;C=this.id;var G=this.scheduler;C!=null&&(this.id=I6u(this,C,F));this.pending=!0;this.delay=F;this.id=this.id||this.requestAsyncId(G,this.id,F);return this};
$k.prototype.requestAsyncId=function(C,F,G){G=G===void 0?0:G;return QpG(C.flush.bind(C,this),G)};
var I6u=function(C,F,G){G=G===void 0?0:G;if(G!=null&&C.delay===G&&C.pending===!1)return F;clearInterval(F)};
$k.prototype.execute=function(C,F){if(this.closed)return Error("ha");this.pending=!1;if(C=this._execute(C,F))return C;this.pending===!1&&this.id!=null&&(this.id=I6u(this,this.id,null))};
$k.prototype._execute=function(C){var F=!1;try{this.work(C)}catch(V){F=!0;var G=!!V&&V||Error(V)}if(F)return this.unsubscribe(),G};
$k.prototype.unsubscribe=function(){if(!this.closed){var C=this.id,F=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;l6w(F,this);C!=null&&(this.id=I6u(this,C,null));this.delay=null;J8.prototype.unsubscribe.call(this)}};var EOE=function(C,F){F=F===void 0?bvr:F;nOy.call(this,C,F);this.actions=[];this.active=!1;this.scheduled=void 0};
_.O(EOE,nOy);EOE.prototype.flush=function(C){var F=this.actions;if(this.active)F.push(C);else{var G;this.active=!0;do if(G=C.execute(C.state,C.delay))break;while(C=F.shift());this.active=!1;if(G){for(;C=F.shift();)C.unsubscribe();throw G;}}};var AG=new ap(Ip);var uf5=Array.isArray;var bG=function(C,F){$k.call(this,C,F);this.scheduler=C;this.work=F};
_.O(bG,$k);bG.JSC$9068_EMPTY=$k.JSC$9068_EMPTY;bG.prototype.schedule=function(C,F){F=F===void 0?0:F;if(F>0)return $k.prototype.schedule.call(this,C,F);this.delay=F;this.state=C;this.scheduler.flush(this);return this};
bG.prototype.execute=function(C,F){return F>0||this.closed?$k.prototype.execute.call(this,C,F):this._execute(C,F)};
bG.prototype.requestAsyncId=function(C,F,G){G=G===void 0?0:G;return G!=null&&G>0||G==null&&this.delay>0?$k.prototype.requestAsyncId.call(this,C,F,G):C.flush(this)};var Wby=function(){EOE.apply(this,arguments)};
_.O(Wby,EOE);var RdE=new Wby(bG);var t9E=function(){this.performanceMonitor=new l0E;this.queue=new yz7;this.internalSymbol=Symbol();this.debugNames=new Fb7};
t9E.prototype.getOnBackgrounded=function(){return AG};
_.I6.Object.defineProperties(t9E.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var nk=function(C,F){F=Error.call(this,F?C+": "+F:String(C));this.message=F.message;"stack"in F&&(this.stack=F.stack);this.code=C;this.__proto__=nk.prototype;this.name=String(C)};
_.O(nk,Error);var ey=function(C){nk.call(this,1E3,'sfr:"'+C+'"');this.measurementStrategyFailureReason=C;this.__proto__=ey.prototype};
_.O(ey,nk);var dS=function(){nk.call(this,1003);this.__proto__=dS.prototype};
_.O(dS,nk);var uG=function(){nk.call(this,1009);this.__proto__=uG.prototype};
_.O(uG,nk);var a6m=function(){nk.call(this,1011);this.__proto__=a6m.prototype};
_.O(a6m,nk);var kOo=function(){nk.call(this,1007);this.__proto__=dS.prototype};
_.O(kOo,nk);var hG=function(C){nk.call(this,1004,String(C));this.inputObservableIndex=C;this.__proto__=hG.prototype};
_.O(hG,nk);var TGS=function(C){nk.call(this,1010,C);this.__proto__=odo.prototype};
_.O(TGS,nk);var odo=function(C){nk.call(this,1005,C);this.__proto__=odo.prototype};
_.O(odo,nk);var UaE=function(C){var F=_.Rn.apply(1,arguments),G=this;this.orderedFactories=[];this.orderedFactories.push(C);F.forEach(function(V){G.orderedFactories.push(V)})};
UaE.prototype.isSupported=function(C){return this.orderedFactories.some(function(F){return F.isSupported(C)})};
UaE.prototype.makeBeacon=function(C,F){for(var G=0;G<this.orderedFactories.length;G++)if(this.orderedFactories[G].isSupported(F))return this.orderedFactories[G].makeBeacon(C,F);throw new uG;};var c2q=Symbol("ia"),Hvu=Symbol("ja"),D6=function(C,F){this.value=C;this.timeline=F},Kv=function(C,F){if(F.timeline!==C.timeline)throw new kOo;
return C.value-F.value};
_.n=D6.prototype;_.n.equals=function(C){return Kv(this,C)===0};
_.n.maximum=function(C){if(C.timeline!==this.timeline)throw new kOo;return this.value>=C.value?this:C};
_.n.round=function(){return new D6(Math.round(this.value),this.timeline)};
_.n.add=function(C){return new D6(this.value+C,this.timeline)};
_.n.toString=function(){return String(this.value)};var zi=function(C,F){this.context=C;this.JSC$9195_pinger=F};
zi.prototype.isSupported=function(C){return this.JSC$9195_pinger.isSupported(C)};
zi.prototype.makeBeacon=function(C,F){if(!this.isSupported(F))throw new uG;return new QY(this.context,this.JSC$9195_pinger,F!=null?F:void 0,C)};
var QY=function(C,F,G,V){var J=this;this.JSC$9201_pinger=F;this.properties=G;this.url=V;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var b;this.method=(b=G==null?void 0:G.beaconMethod)!=null?b:"GET";this.backgroundedSubscription=C.getOnBackgrounded().subscribe(function(){J.sendNow()})};
QY.prototype.deactivate=function(){this.internalIsPending=!1};
QY.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9201_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var C,F;this.JSC$9201_pinger.pingWithHeadersAndBody((C=this.properties)!=null?C:{},this.customHeaders,(F=this.body)!=null?F:"",this.url)}else this.JSC$9201_pinger.ping(this.url);this.internalIsPending=!1}catch(G){}else this.internalIsPending=!1};
QY.prototype.setHeader=function(C,F){this.customHeaders.set(C,F)};
_.I6.Object.defineProperties(QY.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var yWy=function(){for(var C=_.u(_.Rn.apply(0,arguments)),F=C.next();!F.done;F=C.next())if(F=F.value,F.available()){this.timeProvider=F;return}this.timeProvider=new l6l};
_.n=yWy.prototype;_.n.available=function(){return this.timeProvider.available()};
_.n.now=function(){return this.timeProvider.now()};
_.n.setTimeout=function(C,F){return this.timeProvider.setTimeout(C,F)};
_.n.clearTimeout=function(C){this.timeProvider.clearTimeout(C)};
_.n.interval=function(C,F){var G=this.intervalObservable(C).subscribe(F);return function(){return void G.unsubscribe()}};
_.n.intervalObservable=function(C){return this.timeProvider.intervalObservable(C)};
_.I6.Object.defineProperties(yWy.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var l6l=function(){this.timeline=Symbol()};
_.n=l6l.prototype;_.n.available=function(){return!1};
_.n.now=function(){return new D6(0,this.timeline)};
_.n.setTimeout=function(){return 0};
_.n.clearTimeout=function(){};
_.n.interval=function(){return function(){}};
_.n.intervalObservable=function(){return AG};var IF=function(C,F){this.intrinsicFunctionNamespace=C;this.performanceMonitor=F};
_.n=IF.prototype;_.n.setTimeout=function(C,F){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,C),F)};
_.n.clearTimeout=function(C){this.intrinsicFunctionNamespace.clearTimeout(C)};
_.n.interval=function(C,F){var G=this.intervalObservable(C).subscribe(F);return function(){return void G.unsubscribe()}};
_.n.intervalObservable=function(C){var F=this;return new ap(function(G){var V=0,J=F.intrinsicFunctionNamespace.setInterval(function(){G.next(V++)},C);
return function(){F.intrinsicFunctionNamespace.clearInterval(J)}})};
_.n.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var ZvE=function(C,F){IF.call(this,C,F);this.timeline=Hvu};
_.O(ZvE,IF);ZvE.prototype.now=function(){return new D6(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
ZvE.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&IF.prototype.available.call(this)};var Na7=function(C,F){IF.call(this,C,F);this.timeline=c2q};
_.O(Na7,IF);Na7.prototype.now=function(){return new D6(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
Na7.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&IF.prototype.available.call(this)};var XwG=function(C){this.context=C;if(Ovr===void 0)a:{var F,G,V=(F=C.global)==null?void 0:(G=F.document)==null?void 0:G.createElement("meta");if(V)try{V.httpEquiv="origin-trial";V.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";C.global.document.head.append(V);Ovr=V;break a}catch(J){}Ovr=void 0}},
Ovr;
XwG.prototype.isSupported=function(C){return HA9(this.context)!==void 0&&!(C==null||!C.endOfSession)&&!EV(this.context)&&!(C==null?0:C.attributionEnabled)&&!(C==null?0:C.customHeaders)&&!(C==null?0:C.customBody)};
XwG.prototype.makeBeacon=function(C,F){if(!this.isSupported(F))throw new uG;return new WN(this.context,C,F)};
var WN=function(C,F,G){this.context=C;this.properties=G;this.JSC$9228_urlWithoutToken=F;var V;this.beaconMethod=(V=G==null?void 0:G.beaconMethod)!=null?V:"GET";C=HA9(this.context);if(C===void 0)throw Error();this.fetchLater=C;ww$(this,M97(this))},ww$=function(C,F){C.beaconResult&&C.beaconResult.activated||(C.beaconAbort=new AbortController,C.beaconResult=C.fetchLater(F,{method:C.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:C.beaconAbort.signal,activateAfter:96E4}))},M97=function(C){C=C.JSC$9228_urlWithoutToken;
return(C.slice(-1)[0]==="&"?C:C+"&")+"flapi=1"};
WN.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
WN.prototype.sendNow=function(){};
WN.prototype.setHeader=function(){};
_.I6.Object.defineProperties(WN.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9228_urlWithoutToken},
set:function(C){this.JSC$9228_urlWithoutToken=C;C=M97(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);ww$(this,C)}},
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 Say=function(C){this.context=C};
Say.prototype.isSupported=function(){return!EV(this.context)&&!!this.context.global.fetch};
Say.prototype.ping=function(){var C=this;return op.apply(null,_.da(_.Rn.apply(0,arguments).map(function(F){return Hw(C.context.global.fetch(F,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(e9(function(G){return G.status===200}))}))).pipe(wj5(function(F){return F}),Sso())};
Say.prototype.pingWithHeadersAndBody=function(C,F,G){for(var V=_.Rn.apply(3,arguments),J=this,b=new Headers,z=_.u(F.entries()),Q=z.next();!Q.done;Q=z.next()){var E=_.u(Q.value);Q=E.next().value;E=E.next().value;b.set(Q,E)}var t,k=(t=C.keepAlive)!=null?t:!1;op.apply(null,_.da(V.map(function(U){return Hw(J.context.global.fetch(U,Object.assign({},{method:String(C.beaconMethod),cache:"no-cache"},k?{keepalive:!0}:{},{mode:"no-cors",headers:b,body:G}))).pipe(e9(function(H){return H.status===200}))}))).pipe(wj5(function(U){return U}),
Sso())};var Lbm,fmZ,Bao;_.t8=function(){};
_.As=function(C){return C};
Lbm=function(C){var F=F||0;return function(){return C.apply(this,Array.prototype.slice.call(arguments,0,F))}};
_.aF=function(C){var F=!1,G;return function(){F||(G=C(),F=!0);return G}};
_.kk=function(C,F){var G=0;return function(V){_.VT.clearTimeout(G);var J=arguments;G=_.VT.setTimeout(function(){C.apply(void 0,J)},F)}};
fmZ=function(C,F){var G=0,V=!1,J=[],b=function(){G=0;V&&(V=!1,z())},z=function(){G=_.VT.setTimeout(b,F);
var Q=J;J=[];C.apply(void 0,Q)};
return function(Q){J=arguments;G?V=!0:z()}};
Bao=function(C,F){var G=0,V=function(){G=0};
return function(J){G||(G=_.VT.setTimeout(V,F),C.apply(void 0,arguments))}};var f6E=function(){return Ho&&yT?yT.mobile:!vOS()&&(ZA("iPod")||ZA("iPhone")||ZA("Android")||ZA("IEMobile"))},vOS=function(){return Ho&&yT?!yT.mobile&&(ZA("iPad")||ZA("Android")||ZA("Silk")):ZA("iPad")||ZA("Android")&&!ZA("Mobile")||ZA("Silk")};var UV=function(C,F,G,V,J){this.allowedElements=C;this.elementPolicies=F;this.allowedGlobalAttributes=G;this.globalAttributePolicies=V;this.globallyAllowedAttributePrefixes=J},hdu=function(C,F,G){G=C.elementPolicies.get(G);
return(G==null?0:G.has(F))?G.get(F):C.allowedGlobalAttributes.has(F)?{policyAction:1}:(G=C.globalAttributePolicies.get(F))?G:C.globallyAllowedAttributePrefixes&&[].concat(_.da(C.globallyAllowedAttributePrefixes)).some(function(V){return F.indexOf(V)===0})?{policyAction:1}:{policyAction:0}};var cWr="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(" "),
AWE=[["A",new Map([["href",{policyAction:7}]])],["AREA",new Map([["href",{policyAction:7}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],ed$="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist coords crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden inert ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type usemap valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
daP=[["dir",{policyAction:3,conditions:M_(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:M_(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:M_(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:M_(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],xaO=new UV(new Set(cWr),new Map(AWE),new Set(ed$),new Map(daP)),spG=new UV(new Set(cWr.concat(["BUTTON",
"INPUT"])),new Map(AWE),new Set(M_(function(){return ed$.concat(["class","id","name"])})),new Map(M_(function(){return daP.concat([["style",
{policyAction:1}]])})));var qaG,Piu,Rd7;qaG=function(C,F,G,V,J){this.JSC$9285_sanitizerTable=C;this.styleElementSanitizer=F;this.styleAttributeSanitizer=G;this.JSC$9285_resourceUrlPolicy=V;this.JSC$9285_navigationUrlPolicy=J;this.changes=[]};
_.gOl=function(C,F){var G=document.implementation.createHTMLDocument("");C=Piu(C,F,G);G=G.body;G.appendChild(C);G=(new XMLSerializer).serializeToString(G);G=G.slice(G.indexOf(">")+1,G.lastIndexOf("</"));return D0(G)};
Piu=function(C,F,G){F=xl5(F,G);F=document.createTreeWalker(F,5,function(Q){if(Q.nodeType===3)Q=1;else if(qsq(Q))if(Q=sRq(Q),Q===null)Q=2;else{var E=C.JSC$9285_sanitizerTable;Q=Q!=="FORM"&&(E.allowedElements.has(Q)||E.elementPolicies.has(Q))?1:2}else Q=2;return Q});
for(var V=F.nextNode(),J=G.createDocumentFragment(),b=J;V!==null;){var z=void 0;if(V.nodeType===3)C.styleElementSanitizer&&b.nodeName==="STYLE"?(V=C.styleElementSanitizer(V.data),z=C.createTextNode(V)):z=C.createTextNode(V.data);else if(qsq(V))z=Rd7(C,V,G);else throw Error("Z");b.appendChild(z);if(V=F.firstChild())b=z;else for(;!(V=F.nextSibling())&&(V=F.parentNode());)b=b.parentNode}return J};
qaG.prototype.createTextNode=function(C){return document.createTextNode(C)};
Rd7=function(C,F,G){var V,J=sRq(F);G=G.createElement(J);F=F.attributes;for(var b=_.u(F),z=b.next();!z.done;z=b.next()){var Q=z.value;z=Q.name;Q=Q.value;var E=hdu(C.JSC$9285_sanitizerTable,z,J);a:{if(V=E.conditions){V=_.u(V);for(var t=V.next();!t.done;t=V.next()){var k=_.u(t.value);t=k.next().value;k=k.next().value;var U=void 0;if((t=(U=F.getNamedItem(t))==null?void 0:U.value)&&!k.has(t)){V=!1;break a}}}V=!0}if(V)switch(E.policyAction){case 1:aR(G,z,Q);break;case 2:throw Error();case 3:aR(G,z,Q.toLowerCase());
break;case 4:C.styleAttributeSanitizer?(Q=C.styleAttributeSanitizer(Q),aR(G,z,Q)):aR(G,z,Q);break;case 5:C.JSC$9285_resourceUrlPolicy?(E={type:2,attributeName:z,elementName:J},Q=dlo(Q),(Q=C.JSC$9285_resourceUrlPolicy(Q,E))&&aR(G,z,Q.toString())):aR(G,z,Q);break;case 6:if(C.JSC$9285_resourceUrlPolicy){E={type:2,attributeName:z,elementName:J};V=[];Q=_.u(Q.split(","));for(t=Q.next();!t.done;t=Q.next())k=_.u(t.value.trim().split(/\s+/,2)),t=k.next().value,k=k.next().value,V.push({url:t,descriptor:k});
Q={parts:[]};V=_.u(V);for(t=V.next();!t.done;t=V.next())t=t.value,k=dlo(t.url),(k=C.JSC$9285_resourceUrlPolicy(k,E))&&Q.parts.push({url:k.toString(),descriptor:t.descriptor});aR(G,z,PhT(Q))}else aR(G,z,Q);break;case 7:E=Q;if(C.JSC$9285_navigationUrlPolicy){E={type:2,attributeName:z,elementName:J};Q=dlo(Q);Q=C.JSC$9285_navigationUrlPolicy(Q,E);if(Q===null)break;E=Q.toString()}Q=E;E=_.nO5(Q);E=E!==void 0&&YLr.indexOf(E.toLowerCase())!==-1?Q:"about:invalid#zClosurez";aR(G,z,E)}}return G};
_.YaG=M_(function(){return new qaG(xaO)});
_.Ta8=M_(function(){return new qaG(spG)});var oO8=function(){this.calledBuild=!1;this.JSC$9297_sanitizerTable=xaO},rW$=function(){oO8.apply(this,arguments)};
_.O(rW$,oO8);rW$.prototype.build=function(){if(this.calledBuild)throw Error("la");this.calledBuild=!0;return new qaG(this.JSC$9297_sanitizerTable,void 0,void 0,this.JSC$9297_resourceUrlPolicy,this.JSC$9297_navigationUrlPolicy)};var Kbm=/[^#]*/;var vf9={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"},Da2=_.aF(function(){return h0o()}),
maG=function(){var C=pwl("IFRAME"),F={};
_.F$(Da2(),function(G){C.sandbox&&C.sandbox.supports&&C.sandbox.supports(G)&&(F[G]=!0)});
return F},pwl=function(C,F){F=F===void 0?document:F;
return F.createElement(String(C).toLowerCase())};var HN;_.lV=function(C,F,G){return Math.min(Math.max(C,F),G)};
HN=function(C,F,G){return C+G*(F-C)};_.ql=function(C,F){this.x=C!==void 0?C:0;this.y=F!==void 0?F:0};
_.n=_.ql.prototype;_.n.clone=function(){return new _.ql(this.x,this.y)};
_.n.equals=function(C){return C instanceof _.ql&&(this==C?!0:this&&C?this.x==C.x&&this.y==C.y:!1)};
_.n.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.n.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.n.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.n.translate=function(C,F){C instanceof _.ql?(this.x+=C.x,this.y+=C.y):(this.x+=Number(C),typeof F==="number"&&(this.y+=F));return this};
_.n.scale=function(C,F){this.x*=C;this.y*=typeof F==="number"?F:C;return this};_.Ml=function(C,F){this.width=C;this.height=F};
_.n=_.Ml.prototype;_.n.clone=function(){return new _.Ml(this.width,this.height)};
_.n.area=function(){return this.width*this.height};
_.n.aspectRatio=function(){return this.width/this.height};
_.n.isEmpty=function(){return!this.area()};
_.n.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.n.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.n.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.n.scale=function(C,F){this.width*=C;this.height*=typeof F==="number"?F:C;return this};var Chu;_.xf={};Chu="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.xf.add=function(C,F,G){if(C!==null&&F in C)throw Error("na`"+F);C[F]=G};
_.xf.clear=function(C){for(var F in C)delete C[F]};
_.xf.clone=function(C){var F={},G;for(G in C)F[G]=C[G];return F};
_.xf.contains=function(C,F){return ofW(C,F)};
_.xf.containsKey=function(C,F){return C!==null&&F in C};
_.xf.containsValue=ofW;_.xf.create=Dlq;_.xf.createImmutableView=function(C){var F=C;Object.isFrozen&&!Object.isFrozen(C)&&(F=Object.create(C),Object.freeze(F));return F};
_.xf.createSet=pjo;_.xf.equals=function(C,F){for(var G in C)if(!(G in F)||C[G]!==F[G])return!1;for(var V in F)if(!(V in C))return!1;return!0};
_.xf.every=function(C,F,G){for(var V in C)if(!F.call(G,C[V],V,C))return!1;return!0};
_.xf.extend=function(C,F){for(var G,V,J=1;J<arguments.length;J++){V=arguments[J];for(G in V)C[G]=V[G];for(var b=0;b<Chu.length;b++)G=Chu[b],Object.prototype.hasOwnProperty.call(V,G)&&(C[G]=V[G])}};
_.xf.filter=function(C,F,G){var V={},J;for(J in C)F.call(G,C[J],J,C)&&(V[J]=C[J]);return V};
_.xf.findKey=rGi;_.xf.findValue=function(C,F,G){return(F=rGi(C,F,G))&&C[F]};
_.xf.forEach=function(C,F,G){for(var V in C)F.call(G,C[V],V,C)};
_.xf.get=function(C,F,G){return C!==null&&F in C?C[F]:G};
_.xf.getAllPropertyNames=function(C,F,G){if(!C)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return TSB(C);for(var V={};C&&(C!==Object.prototype||F)&&(C!==Function.prototype||G);){for(var J=Object.getOwnPropertyNames(C),b=0;b<J.length;b++)V[J[b]]=!0;C=Object.getPrototypeOf(C)}return TSB(V)};
_.xf.getAnyKey=function(C){for(var F in C)return F};
_.xf.getAnyValue=function(C){for(var F in C)return C[F]};
_.xf.getCount=function(C){var F=0,G;for(G in C)F++;return F};
_.xf.getKeys=TSB;_.xf.getSuperClass=function(C){return(C=Object.getPrototypeOf(C.prototype))&&C.constructor};
_.xf.getValueByKeys=function(C,F){var G=_.gI(F),V=G?F:arguments;for(G=G?0:1;G<V.length;G++){if(C==null)return;C=C[V[G]]}return C};
_.xf.getValues=function(C){var F=[],G=0,V;for(V in C)F[G++]=C[V];return F};
_.xf.isEmpty=function(C){for(var F in C)return!1;return!0};
_.xf.isImmutableView=function(C){return!!Object.isFrozen&&Object.isFrozen(C)};
_.xf.map=function(C,F,G){var V={},J;for(J in C)V[J]=F.call(G,C[J],J,C);return V};
_.xf.remove=function(C,F){var G;(G=F in C)&&delete C[F];return G};
_.xf.set=function(C,F,G){C[F]=G};
_.xf.setIfUndefined=function(C,F,G){return F in C?C[F]:C[F]=G};
_.xf.setWithReturnValueIfNotSet=function(C,F,G){if(F in C)return C[F];G=G();return C[F]=G};
_.xf.some=function(C,F,G){for(var V in C)if(F.call(G,C[V],V,C))return!0;return!1};
_.xf.transpose=function(C){var F={},G;for(G in C)F[C[G]]=G;return F};
_.xf.unsafeClone=KiT;var o1=function(C,F){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=C===Y4w&&F||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=jRu};
o1.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var Fir=function(C){return C instanceof o1&&C.constructor===o1&&C.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===jRu?C.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},jRu={},Y4w={};
new o1(Y4w,"");var vj,Lf,yY,Gko,JG8,iAm,Pj,bAl,ufy,nf8,Xd,z0o,kkm,aiy,tyS,Ull,HAP,liu,yGl,u1I,ZAE,OAr,Xj8,NSy,lG;vj=function(C){return C?new lG(_.gS(C)):z5S||(z5S=new lG)};
_.YJ=function(C,F){return typeof F==="string"?C.getElementById(F):F};
Lf=function(C,F){return(F||document).getElementsByTagName(String(C))};
_.VyG=function(C){return Gko("yt-formatted-string","paper-input-input",C)};
yY=function(C,F,G,V){C=V||C;return(F=F&&F!="*"?String(F).toUpperCase():"")||G?C.querySelectorAll(F+(G?"."+G:"")):C.getElementsByTagName("*")};
Gko=function(C,F,G){var V=document,J=C&&C!="*"?String(C).toUpperCase():"";return J||F?(G||V).querySelector(J+(F?"."+F:"")):yY(V,C,F,G)[0]||null};
JG8=function(C,F){_.xf.forEach(F,function(G,V){V=="style"?C.style.cssText=G:V=="class"?C.className=G:V=="for"?C.htmlFor=G:iAm.hasOwnProperty(V)?C.setAttribute(iAm[V],G):_.Js(V,"aria-")||_.Js(V,"data-")?C.setAttribute(V,G):C[V]=G})};
iAm={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"};_.LA=function(C){C=(C||window).document;C=C.compatMode=="CSS1Compat"?C.documentElement:C.body;return new _.Ml(C.clientWidth,C.clientHeight)};
_.$lr=function(C){var F=_.Zn(C);C=C.defaultView;return new _.ql((C==null?void 0:C.pageXOffset)||F.scrollLeft,(C==null?void 0:C.pageYOffset)||F.scrollTop)};
_.Zn=function(C){return C.scrollingElement?C.scrollingElement:_.Do||C.compatMode!="CSS1Compat"?C.body||C.documentElement:C.documentElement};
Pj=function(C){return C?C.defaultView:window};
_.NE=function(C,F,G){return bAl(document,arguments)};
bAl=function(C,F){var G=F[1],V=nf8(C,String(F[0]));G&&(typeof G==="string"?V.className=G:Array.isArray(G)?V.className=G.join(" "):JG8(V,G));F.length>2&&ufy(C,V,F,2);return V};
ufy=function(C,F,G,V){function J(Q){Q&&F.appendChild(typeof Q==="string"?C.createTextNode(Q):Q)}
for(;V<G.length;V++){var b=G[V];if(!_.gI(b)||_.TE(b)&&b.nodeType>0)J(b);else{a:{if(b&&typeof b.length=="number"){if(_.TE(b)){var z=typeof b.item=="function"||typeof b.item=="string";break a}if(typeof b==="function"){z=typeof b.item=="function";break a}}z=!1}_.F$(z?_.Po(b):b,J)}}};
_.Md=function(C){return nf8(document,C)};
nf8=function(C,F){F=String(F);C.contentType==="application/xhtml+xml"&&(F=F.toLowerCase());return C.createElement(F)};
_.OV=function(){return document.createTextNode("\n")};
Xd=function(C){if(C.nodeType!=1)return!1;switch(C.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};
z0o=function(C,F){ufy(_.gS(C),C,arguments,1)};
_.w8=function(C){for(var F;F=C.firstChild;)C.removeChild(F)};
_.ME=function(C,F){F.parentNode&&F.parentNode.insertBefore(C,F)};
_.SI=function(C,F){F.parentNode&&F.parentNode.insertBefore(C,F.nextSibling)};
_.So=function(C){return C&&C.parentNode?C.parentNode.removeChild(C):null};
_.QRy=function(C,F){var G=F.parentNode;G&&G.replaceChild(C,F)};
_.Ii7=function(C){var F,G=C.parentNode;if(G&&G.nodeType!=11)if(C.removeNode)C.removeNode(!1);else{for(;F=C.firstChild;)G.insertBefore(F,C);_.So(C)}};
_.Lk=function(C){return C.children!=void 0?C.children:Array.prototype.filter.call(C.childNodes,function(F){return F.nodeType==1})};
_.Wiu=function(C){return C.nextElementSibling!==void 0?C.nextElementSibling:_.Efm(C.nextSibling,!0)};
_.Efm=function(C,F){for(;C&&C.nodeType!=1;)C=F?C.nextSibling:C.previousSibling;return C};
_.$w=function(C){return _.TE(C)&&C.nodeType==1};
_.Kf=function(C,F){if(!C||!F)return!1;if(C.contains&&F.nodeType==1)return C==F||C.contains(F);if(typeof C.compareDocumentPosition!="undefined")return C==F||!!(C.compareDocumentPosition(F)&16);for(;F&&C!=F;)F=F.parentNode;return F==C};
kkm=function(C,F){if(C==F)return 0;if(C.compareDocumentPosition)return C.compareDocumentPosition(F)&2?1:-1;if("sourceIndex"in C||C.parentNode&&"sourceIndex"in C.parentNode){var G=C.nodeType==1,V=F.nodeType==1;if(G&&V)return C.sourceIndex-F.sourceIndex;var J=C.parentNode,b=F.parentNode;return J==b?tyS(C,F):!G&&_.Kf(J,F)?-1*aiy(C,F):!V&&_.Kf(b,C)?aiy(F,C):(G?C.sourceIndex:J.sourceIndex)-(V?F.sourceIndex:b.sourceIndex)}V=_.gS(C);G=V.createRange();G.selectNode(C);G.collapse(!0);C=V.createRange();C.selectNode(F);
C.collapse(!0);return G.compareBoundaryPoints(_.VT.Range.START_TO_END,C)};
aiy=function(C,F){var G=C.parentNode;if(G==F)return-1;for(;F.parentNode!=G;)F=F.parentNode;return tyS(F,C)};
tyS=function(C,F){for(;F=F.previousSibling;)if(F==C)return-1;return 1};
Ull=function(C){var F,G=arguments.length;if(!G)return null;if(G==1)return arguments[0];var V=[],J=Infinity;for(F=0;F<G;F++){for(var b=[],z=arguments[F];z;)b.unshift(z),z=z.parentNode;V.push(b);J=Math.min(J,b.length)}b=null;for(F=0;F<J;F++){z=V[0][F];for(var Q=1;Q<G;Q++)if(z!=V[Q][F])return b;b=z}return b};
_.gS=function(C){return C.nodeType==9?C:C.ownerDocument||C.document};
HAP=function(C){return C.contentDocument||C.contentWindow.document};
_.BN=function(C,F){if("textContent"in C)C.textContent=F;else if(C.nodeType==3)C.data=String(F);else if(C.firstChild&&C.firstChild.nodeType==3){for(;C.lastChild!=C.firstChild;)C.removeChild(C.lastChild);C.firstChild.data=String(F)}else _.w8(C),C.appendChild(_.gS(C).createTextNode(String(F)))};
liu={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};yGl={IMG:" ",BR:"\n"};u1I=function(C){var F;C.tagName=="A"&&C.hasAttribute("href")||C.tagName=="INPUT"||C.tagName=="TEXTAREA"||C.tagName=="SELECT"||C.tagName=="BUTTON"?F=!C.disabled&&(!C.hasAttribute("tabindex")||ZAE(C)):F=C.hasAttribute("tabindex")&&ZAE(C);return F};
ZAE=function(C){C=C.tabIndex;return typeof C==="number"&&C>=0&&C<32768};
OAr=function(C){var F=[];NSy(C,F,!0);C=F.join("");C=C.replace(/ \xAD /g," ").replace(/\xAD/g,"");C=C.replace(/\u200B/g,"");C=C.replace(/ +/g," ");C!=" "&&(C=C.replace(/^\s*/,""));return C};
Xj8=function(C){var F=[];NSy(C,F,!1);return F.join("")};
NSy=function(C,F,G){if(!(C.nodeName in liu))if(C.nodeType==3)G?F.push(String(C.nodeValue).replace(/(\r\n|\r|\n)/g,"")):F.push(C.nodeValue);else if(C.nodeName in yGl)F.push(yGl[C.nodeName]);else for(C=C.firstChild;C;)NSy(C,F,G),C=C.nextSibling};
_.wjy=function(C,F,G){if(!F&&!G)return null;var V=F?String(F).toUpperCase():null;return _.Yf(C,function(J){return(!V||J.nodeName==V)&&(!G||typeof J.className==="string"&&_.sB(J.className.split(/\s+/),G))},!0)};
_.Yf=function(C,F,G){C&&!G&&(C=C.parentNode);for(G=0;C;){if(F(C))return C;C=C.parentNode;G++}return null};
lG=function(C){this.JSC$9325_document_=C||_.VT.document||document};
_.n=lG.prototype;_.n.getElement=function(C){return _.YJ(this.JSC$9325_document_,C)};
_.n.$=lG.prototype.getElement;_.n.getElementsByTagName=function(C,F){return(F||this.JSC$9325_document_).getElementsByTagName(String(C))};
_.n.getElementsByTagNameAndClass=function(C,F,G){return yY(this.JSC$9325_document_,C,F,G)};
_.n.$$=lG.prototype.getElementsByTagNameAndClass;_.n.setProperties=JG8;_.n.JSC$9327_createDom=function(C,F,G){return bAl(this.JSC$9325_document_,arguments)};
_.n.createElement=function(C){return nf8(this.JSC$9325_document_,C)};
_.n.createTextNode=function(C){return this.JSC$9325_document_.createTextNode(String(C))};
_.n.getWindow=function(){return this.JSC$9325_document_.defaultView};
var Bj=function(C){return _.$lr(C.JSC$9325_document_)};
_.n=lG.prototype;_.n.appendChild=function(C,F){C.appendChild(F)};
_.n.append=z0o;_.n.canHaveChildren=Xd;_.n.removeNode=_.So;_.n.getChildren=_.Lk;_.n.contains=_.Kf;_.n.isFocusable=u1I;_.n=Hj.prototype;_.n.getWidth=function(){return this.right-this.left};
_.n.getHeight=function(){return this.bottom-this.top};
_.n.clone=function(){return new Hj(this.top,this.right,this.bottom,this.left)};
_.n.contains=function(C){return this&&C?C instanceof Hj?C.left>=this.left&&C.right<=this.right&&C.top>=this.top&&C.bottom<=this.bottom:C.x>=this.left&&C.x<=this.right&&C.y>=this.top&&C.y<=this.bottom:!1};
_.n.expand=function(C,F,G,V){_.TE(C)?(this.top-=C.top,this.right+=C.right,this.bottom+=C.bottom,this.left-=C.left):(this.top-=C,this.right+=Number(F),this.bottom+=Number(G),this.left-=Number(V));return this};
_.n.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};
_.n.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};
_.n.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};
_.n.translate=function(C,F){C instanceof _.ql?(this.left+=C.x,this.right+=C.x,this.top+=C.y,this.bottom+=C.y):(this.left+=C,this.right+=C,typeof F==="number"&&(this.top+=F,this.bottom+=F));return this};
_.n.scale=function(C,F){F=typeof F==="number"?F:C;this.left*=C;this.right*=C;this.top*=F;this.bottom*=F;return this};var vN=function(C,F,G,V){this.left=C;this.top=F;this.width=G;this.height=V};
_.n=vN.prototype;_.n.clone=function(){return new vN(this.left,this.top,this.width,this.height)};
_.n.boundingRect=function(C){var F=Math.max(this.left+this.width,C.left+C.width),G=Math.max(this.top+this.height,C.top+C.height);this.left=Math.min(this.left,C.left);this.top=Math.min(this.top,C.top);this.width=F-this.left;this.height=G-this.top};
_.n.contains=function(C){return C instanceof _.ql?C.x>=this.left&&C.x<=this.left+this.width&&C.y>=this.top&&C.y<=this.top+this.height:this.left<=C.left&&this.left+this.width>=C.left+C.width&&this.top<=C.top&&this.top+this.height>=C.top+C.height};
_.n.distance=function(C){var F=C.x<this.left?this.left-C.x:Math.max(C.x-(this.left+this.width),0);C=C.y<this.top?this.top-C.y:Math.max(C.y-(this.top+this.height),0);return Math.sqrt(F*F+C*C)};
_.n.getSize=function(){return new _.Ml(this.width,this.height)};
_.n.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};
_.n.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};
_.n.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};
_.n.translate=function(C,F){C instanceof _.ql?(this.left+=C.x,this.top+=C.y):(this.left+=C,typeof F==="number"&&(this.top+=F));return this};
_.n.scale=function(C,F){F=typeof F==="number"?F:C;this.left*=C;this.width*=C;this.top*=F;this.height*=F;return this};var Ssu,cN,ZBT,h8,fi8,vfP,h0u,WSw,cGy,e0l;_.fk=function(C,F,G){if(typeof F==="string")(F=_.My8(C,F))&&(C.style[F]=G);else for(var V in F){G=C;var J=F[V],b=_.My8(G,V);b&&(G.style[b]=J)}};
Ssu={};_.My8=function(C,F){var G=Ssu[F];if(!G){var V=_.$6(F);G=V;C.style[V]===void 0&&(V=(_.Do?"Webkit":_.KV?"Moz":null)+jpO(V),C.style[V]!==void 0&&(G=V));Ssu[F]=G}return G};
_.KY=function(C,F){var G=_.gS(C);return G.defaultView&&G.defaultView.getComputedStyle&&(C=G.defaultView.getComputedStyle(C,null))?C[F]||C.getPropertyValue(F)||"":""};
_.rG=function(C,F){return _.KY(C,F)||(C.currentStyle?C.currentStyle[F]:null)||C.style&&C.style[F]};
_.LiG=function(C){return _.rG(C,"position")};
cN=function(C,F,G){if(F instanceof _.ql){var V=F.x;F=F.y}else V=F,F=G;C.style.left=h8(V,!1);C.style.top=h8(F,!1)};
ZBT=function(C){try{return C.getBoundingClientRect()}catch(F){return{left:0,top:0,right:0,bottom:0}}};
_.RR=function(C){var F=_.gS(C),G=new _.ql(0,0);if(C==(F?_.gS(F):document).documentElement)return G;C=ZBT(C);F=Bj(vj(F));G.x=C.left+F.x;G.y=C.top+F.y;return G};
_.BSu=function(C,F,G){if(F instanceof _.Ml)G=F.height,F=F.width;else if(G==void 0)throw Error("oa");C.style.width=h8(F,!0);C.style.height=h8(G,!0)};
h8=function(C,F){typeof C=="number"&&(C=(F?Math.round(C):C)+"px");return C};
fi8=function(C){return vfP(C)};
vfP=function(C){var F=h0u;if(_.rG(C,"display")!="none")return F(C);var G=C.style,V=G.display,J=G.visibility,b=G.position;G.visibility="hidden";G.position="absolute";G.display="inline";C=F(C);G.display=V;G.position=b;G.visibility=J;return C};
h0u=function(C){var F=C.offsetWidth,G=C.offsetHeight,V=_.Do&&!F&&!G;return(F===void 0||V)&&C.getBoundingClientRect?(C=ZBT(C),new _.Ml(C.right-C.left,C.bottom-C.top)):new _.Ml(F,G)};
WSw=function(C){var F=_.RR(C);C=vfP(C);return new vN(F.x,F.y,C.width,C.height)};
cGy=function(C,F){C=C.style;"opacity"in C?C.opacity=F:"MozOpacity"in C?C.MozOpacity=F:"filter"in C&&(C.filter=F===""?"":"alpha(opacity="+Number(F)*100+")")};
_.F5=function(C,F){C.style.display=F?"":"none"};
_.AGE=function(C){return"rtl"==_.rG(C,"direction")};
e0l=function(C){var F=_.KY(C,"marginLeft"),G=_.KY(C,"marginRight"),V=_.KY(C,"marginTop");C=_.KY(C,"marginBottom");return new Hj(parseFloat(V),parseFloat(G),parseFloat(C),parseFloat(F))};
_.dlu=function(C){var F=_.KY(C,"borderLeftWidth"),G=_.KY(C,"borderRightWidth"),V=_.KY(C,"borderTopWidth");C=_.KY(C,"borderBottomWidth");return new Hj(parseFloat(V),parseFloat(G),parseFloat(C),parseFloat(F))};var A8=function(C){this.context=C};
A8.prototype.isSupported=function(C){return(C==null?0:C.attributionEnabled)||(C==null?void 0:C.beaconMethod)==="POST"||(C==null?0:C.customHeaders)||(C==null?0:C.customBody)||(C==null?0:C.keepAlive)?!1:!EV(this.context)};
A8.prototype.ping=function(){var C=this;return Bw(_.Rn.apply(0,arguments).map(function(F){try{var G=C.context.global,V=!1;V=V===void 0?!1:V;G.google_image_requests||(G.google_image_requests=[]);var J=pwl("IMG",G.document);V&&(J.attributionSrc="");J.src=F;G.google_image_requests.push(J);return!0}catch(b){return!1}}).every(function(F){return F}))};
A8.prototype.pingWithHeadersAndBody=function(C,F,G){this.ping.apply(this,_.da(_.Rn.apply(3,arguments)))};var xly=function(C){this.context=C};
xly.prototype.isSupported=function(C){return sRG&&!EV(this.context)&&mlf(this.context)!==void 0&&!(C==null?0:C.attributionEnabled)&&(C==null?void 0:C.beaconMethod)!=="POST"&&!(C==null?0:C.customHeaders)&&!(C==null?0:C.customBody)};
xly.prototype.makeBeacon=function(C,F){if(!this.isSupported(F))throw new uG;return new eI(this.context,C)};
var sRG=!1,eI=function(C,F){this.context=C;this.JSC$9346_urlWithoutToken=F;C=mlf(this.context);if(C===void 0)throw Error();this.wrappedBeacon=new C(qsG(this),{})},qsG=function(C){C=C.JSC$9346_urlWithoutToken;
return(C.slice(-1)[0]==="&"?C:C+"&")+"pbapi=1"};
eI.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
eI.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
eI.prototype.setHeader=function(){};
_.I6.Object.defineProperties(eI.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9346_urlWithoutToken},
set:function(C){this.JSC$9346_urlWithoutToken=C;this.wrappedBeacon.setURL(qsG(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(C){if(C!=="GET")throw new uG;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var Phr=function(C){this.context=C};
Phr.prototype.isSupported=function(C){if((C==null?0:C.attributionEnabled)||(C==null?void 0:C.beaconMethod)==="GET"||(C==null?0:C.customHeaders)||(C==null?0:C.customBody)||(C==null?0:C.keepAlive))return!1;var F;return!EV(this.context)&&((F=this.context.global.navigator)==null?void 0:F.sendBeacon)!==void 0};
Phr.prototype.ping=function(){var C=this;return Bw(_.Rn.apply(0,arguments).map(function(F){var G;return(G=C.context.global.navigator)==null?void 0:G.sendBeacon(F)}).every(function(F){return F}))};
Phr.prototype.pingWithHeadersAndBody=function(C,F,G){this.ping.apply(this,_.da(_.Rn.apply(3,arguments)))};var Xf=function(C){this.value=C},iz=function(C,F){return Bw(C.value).pipe(Nl(F))},$d=new Xf(!1),cgS=new Xf(!0);var Tk=function(C){this.value=C;this.releasedSubject=new yS};
Tk.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.I6.Object.defineProperties(Tk.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9359_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var QMq=["FRAME","IMG","IFRAME"],JVB=/^[01](px)?$/,zn9=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},u_9=function(){var C=new zn9;
C.crossDomainLoadedDefault=!0;C.pendingImagesBlockLoad=!0;return C};var gfu=function(C,F){var G=Udw(C);if(G)if(G.onCreativeLoad)G.onCreativeLoad(F);else{var V=F?[F]:[],J=function(b){for(var z=0;z<V.length;++z)try{V[z](1,b)}catch(Q){}V={push:function(Q){Q(1,b)}}};
G.onCreativeLoad=function(b){V.push(b)};
G.setAttribute("data-creative-load-listener","");G.addEventListener("creativeLoad",function(b){J(b.detail)});
_.VT.addEventListener("message",function(b){kI9(G,J,b)})}};var d8=function(C,F){var G=this;this.global=C;this.parentContext=F;this.JSC$9370_onVisibilityChange=this.document?op(Bw(!0),Rp(this.document,"visibilitychange")).pipe(pv(this.parentContext.performanceMonitor,748),e9(function(){return G.getVisibilityState()}),Gk()):Bw("visible");
this.document?Rp(this.document,"DOMContentLoaded").pipe(pv(this.parentContext.performanceMonitor,739),Ff(1)):Bw(VoW("DOMContentLoaded"))},h7i=function(C){return C.document!==null&&C.document.visibilityState!==void 0};
d8.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
d8.prototype.querySelector=function(C){return this.document?this.document.querySelector(C):null};
d8.prototype.querySelectorAll=function(C){return this.document?_.Po(this.document.querySelectorAll(C)):[]};
d8.prototype.elementFromPoint=function(C,F){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;C=this.document.elementFromPoint(C,F);return C===null?null:new Tk(C)};
var ZWW=function(C,F,G){G=G===void 0?!1:G;if(F.ref===void 0||!C.document)return Bw(F).pipe(pv(C.parentContext.performanceMonitor,749));var V=new $f(1),J=function(){V.next(F)};
G||gfu(F.ref,J);Iai(F.ref,J);return V.pipe(pv(C.parentContext.performanceMonitor,749),Ff(1))};
_.I6.Object.defineProperties(d8.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return cG5(this.global,"document")?this.global.document||null:null}}});var HfZ=_.h6(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),laW=_.h6(["./reach_worklet.js"]),yV9=_.h6(["./reach_worklet.js"]),R0o=_.h6(["./reach_worklet.html"]),Ysy=_.h6(["./reach_worklet.js"]),TSm=_.h6(["./reach_worklet.js"]);_.kf(R0o);_.kf(Ysy);_.kf(TSm);var mi={left:0,top:0,width:0,height:0};var of$,rGS,Kir,DlG,nD,mlo,Czu,jME,egA,dTZ,Vo$,ifl;of$=function(C,F,G,V,J,b,z){var Q="";C&&(Q+=C+":");G&&(Q+="//",F&&(Q+=F+"@"),Q+=G,V&&(Q+=":"+V));J&&(Q+=J);b&&(Q+="?"+b);z&&(Q+="#"+z);return Q};
rGS=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.$U=function(C){return C.match(rGS)};
_.Ed=function(C,F){return C?F?decodeURI(C):decodeURIComponent(C):C};
Kir=function(C){C=_.$U(C)[1]||null;!C&&_.VT.self&&_.VT.self.location&&(C=_.VT.self.location.protocol.slice(0,-1));return C?C.toLowerCase():""};
_.bH=function(C){return _.Ed(_.$U(C)[3]||null,!0)};
_.X$=function(C){return _.Ed(_.$U(C)[5]||null,!0)};
_.QbB=function(C){var F=C.indexOf("#");return F<0?null:C.slice(F+1)};
DlG=function(C){C=_.$U(C);return of$(C[1],C[2],C[3],C[4])};
_.pju=function(C){C=_.$U(C);return of$(C[1],null,C[3],C[4])};
_.v9=function(C){C=_.$U(C);return of$(null,null,null,null,C[5],C[6],C[7])};
_.s5=function(C){var F=C.indexOf("#");return F<0?C:C.slice(0,F)};
nD=function(C,F){C=_.$U(C);F=_.$U(F);return C[3]==F[3]&&C[1]==F[1]&&C[4]==F[4]};
mlo=function(C,F){if(C){C=C.split("&");for(var G=0;G<C.length;G++){var V=C[G].indexOf("="),J=null;if(V>=0){var b=C[G].substring(0,V);J=C[G].substring(V+1)}else b=C[G];F(b,J?zN(J):"")}}};
Czu=function(C){var F=C.indexOf("#");F<0&&(F=C.length);var G=C.indexOf("?");if(G<0||G>F){G=F;var V=""}else V=C.substring(G+1,F);return[C.slice(0,G),V,C.slice(F)]};
jME=function(C,F){return F?C?C+"&"+F:F:C};
_.Fg7=function(C,F){if(!F)return C;C=Czu(C);C[1]=jME(C[1],F);return C[0]+(C[1]?"?"+C[1]:"")+C[2]};
_.GIl=function(C,F,G){if(Array.isArray(F))for(var V=0;V<F.length;V++)_.GIl(C,String(F[V]),G);else F!=null&&G.push(C+(F===""?"":"="+_.jP(F)))};
_.Me=function(C){var F=[],G;for(G in C)_.GIl(G,C[G],F);return F.join("&")};
_.Jy=function(C,F){F=_.Me(F);return _.Fg7(C,F)};
_.xk=function(C,F,G){G=G!=null?"="+_.jP(G):"";return _.Fg7(C,F+G)};
egA=function(C,F,G,V){for(var J=G.length;(F=C.indexOf(G,F))>=0&&F<V;){var b=C.charCodeAt(F-1);if(b==38||b==63)if(b=C.charCodeAt(F+J),!b||b==61||b==38||b==35)return F;F+=J+1}return-1};
dTZ=/#|$/;_.Da=function(C,F){var G=C.search(dTZ),V=egA(C,0,F,G);if(V<0)return null;var J=C.indexOf("&",V);if(J<0||J>G)J=G;V+=F.length+1;return zN(C.slice(V,J!==-1?J:0))};
Vo$=/[?&]($|#)/;_.P9=function(C,F){for(var G=C.search(dTZ),V=0,J,b=[];(J=egA(C,V,F,G))>=0;)b.push(C.substring(V,J)),V=Math.min(C.indexOf("&",J)+1||G,G);b.push(C.slice(V));return b.join("").replace(Vo$,"$1")};
_.rD=function(C,F,G){return _.xk(_.P9(C,F),F,G)};
ifl=function(C){var F=Czu(window.location.href),G=F[1],V=[];G&&G.split("&").forEach(function(J){var b=J.indexOf("=");b=b>=0?J.slice(0,b):J;C.hasOwnProperty(b)||V.push(J)});
F[1]=jME(V.join("&"),_.Me(C));return F[0]+(F[1]?"?"+F[1]:"")+F[2]};var PzW=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(PzW,_.b0);var qDW=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(qDW,_.b0);var cVI=function(C,F){return _.fA(C,2,F)},sMi=function(C,F){return _.fA(C,3,F)};
qDW.prototype.getModel=function(){return _.a3(this,4)};
var ens=function(C,F){return _.fA(C,4,F)},hnq=function(C,F){return _.fA(C,5,F)},xdS=function(C,F){return _.fA(C,9,F)},fas=function(C,F){return zG(C,10,F)},vdE=function(C,F){return _.UD(C,11,F)},AVE=function(C,F){return _.fA(C,1,F)},ddW=function(C,F){return _.UD(C,7,F)};var LgB="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var JV=function(C,F,G,V){C=C===void 0?window:C;F=F===void 0?null:F;G=G===void 0?new l0E:G;V=V===void 0?ZfB():V;t9E.call(this);var J=this;this.global=C;this.debugChannel=F;this.performanceMonitor=G;this.onPageHide=iAB(function(){return Rp(J.global,"pagehide")}).pipe(pv(this.performanceMonitor,941));
this.onLoad=iAB(function(){return Rp(J.global,"load")}).pipe(pv(this.performanceMonitor,738),Ff(1));
this.onResize=iAB(function(){return Rp(J.global,"resize")}).pipe(pv(this.performanceMonitor,741));
this.onMessage=iAB(function(){return Rp(J.global,"message")}).pipe(pv(this.performanceMonitor,740));
this.document=new d8(this.global,this);this.timeProvider=new yWy(new Na7(this.intrinsicFunctionNamespace,this.performanceMonitor),new ZvE(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new UaE(new XwG(this),new xly(this),new zi(this,new Say(this)),new zi(this,new Phr(this)),new zi(this,new A8(this)))};
_.O(JV,t9E);JV.prototype.hasLocalStorage=function(){try{return!!this.global.localStorage}catch(C){return C}};
var EV=function(C){var F=C.global;return!!C.global.HTMLFencedFrameElement&&!!F.fence&&typeof F.fence.reportEvent==="function"};
_.n=JV.prototype;_.n.reportFencedFrameEvent=function(C){EV(this)&&this.global.fence.reportEvent(C)};
_.n.getOnBackgrounded=function(){return this.onPageHide.pipe(pv(this.performanceMonitor,942),Nl(this.queue),e9(function(){}))};
_.n.postMessage=function(C,F,G){G=G===void 0?[]:G;this.global.postMessage(C,F,G)};
_.n.getWidth=function(){return AGS(this.global)?this.global.width:0};
_.n.getHeight=function(){return AGS(this.global)?this.global.height:0};
_.n.isMobile=function(){return vOS()||f6E()};
var KA=function(C,F){try{var G=wk9(F,C.global,C.isMobile());return{left:G.left,top:G.top,width:G.getWidth(),height:G.getHeight()}}catch(V){return mi}};
JV.prototype.validate=function(){var C=this.beaconFactory.isSupported()||EV(this);return this.global&&this.timeProvider.available()&&C};
var jMS=function(C){return(C=Rns(C.global))?Hw(C):null};
_.I6.Object.defineProperties(JV.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(C){}}},
localStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.localStorage}catch(C){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!AGS(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}}});_.JVm=!_.rp&&!_.kEs();var Agw=function(C){return C};var d4S=function(C){return C.pipe(ra(function(F){var G=F.endOfSessionReason;var V;return((V=F.viewable)==null?void 0:V.extrapolateToNow().value)||G!=void 0}),Ff(1),CA())};var pkS=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},mdB=function(C){var F=C.sequenceNumber.toString(10).padStart(2,"0");
F=""+C.startTime+F;C.sequenceNumber<99&&C.sequenceNumber++;return F};var fNi=tW(IR(function(C){return C.endOfSessionReason===void 0}),e9(function(C){return Object.assign({},C,{timestamps:cj(C)})}),ra(function(C){var F=C.viewable;
C=C.timestamps;var G;return(G=F==null?void 0:F.extrapolateUsingTimestampMap(C).value)!=null?G:!1}),e9(function(C){var F=C.beaconFactory;
var G=C.timestampedExposureHistory;var V=C.timeOnScreen;var J=C.binaryContext;C=C.timestamps;if(F===void 0||G===void 0||V===void 0||J===void 0)return!1;if(V.extrapolateUsingTimestampMap(C).value.every(function(b){return b>=0}))return!0;
G=G.map(function(b){return b.timestamp+":"+b.value}).join(",");
V=Cb9({bin:J,tos:V},C);F.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+V+("&eh="+G)).sendNow();return!0}),IR(function(C){return!C}),CA());var FvZ=function(C){return{id:C.pingId,mcvt:C.maxConsecutiveViewTime,p:C.creativePosition,asp:C.adSpeedPosition,tm:C.totalMeasurementTime,tu:C.totalUnviewedTime,mtos:C.maxTimeOnScreen,tos:C.timeOnScreen,v:C.binaryVersion,bin:C.binaryContext,avms:C.measurementStrategy,bs:C.browserSize,mc:C.maximumExposure,"if":C.crossDomainIframeState,vu:C.delayedImpressionJsState,app:C.inApp,mse:C.mraidError,mtop:C.mraidSituation,itpl:C.injectedTemplateId,adk:C.adKey,exk:C.awbidKey,rs:C.requestSource,la:C.isLargeAd,
cr:C.isContentRecommendationAd,uach:C.userAgentClientHints,vs:C.viewState,r:C.reasonCode,pay:C.hasCpmavUrl,co:C.clientPingOrderCounter,rst:C.adRenderStartTime,rpt:C.adRenderPeriodTime,isd:C.initialScrollDepth,lsd:C.loadedScrollDepth,context:C.errorContext,msg:C.errorMessage,stack:C.errorStack,name:C.errorName,ec:C.hasElementChanged,sfr:C.strategyFailureReasons,met:C.creativeSearchResult,wmsd:C.webMeasurementStartDiagnostic,pv:C.pageVisible,epv:C.eosPageVisible,pbe:C.inStatefulBeaconExperiment,fle:C.inFetchLaterBeaconExperiment,
vae:C.inViewableAttributionExperiment,spb:C.supportsPendingBeacon,sfl:C.supportsFetchLater,ffslot:C.isFencedFrameSlotTurtlex,reach:C.sharedStorageReachMode,io2:C.v2VisibilityBitVector,rxdbg:C.rxDebugger,omida:C.omidAppId,omidp:C.omidPartner,omidpv:C.omidPartnerVersion,omidor:C.omidOcclusionReasons,omidv:C.omidVersion,omids:C.omidSessionType,omidam:C.omidAccessMode,omidct:C.omidCreativeType,omidia:C.omidInApp,omiddc:C.omidDeviceCategory,omidlat:C.omidLastActivity,omiddit:C.omidDeviceIdleTime,qid:C.errorEscapedQueryId}};var e7E=function(C){var F=[];return C.pipe(e9(function(G){var V=G.beaconFactory,J=G.fetchBeaconFactory,b=G.timeOnScreen,z=G.timeOnScreenUrlPrefixes,Q=G.payloadMapper,E=G.timeOnScreenPingId,t=G.timeOnScreenReason,k=G.urlSerializer,U=G.viewable,H=G.hasImpressionFired,l=G.inStatefulBeaconExperiment,N=G.supportsPendingBeacon,S=G.supportsFetchLater,f=G.turtlexReportEventData;if(!G.geometryMeasurable||!H||G.maxTimeOnScreen===void 0||b===void 0||z===void 0||Q===void 0||E===void 0||k===void 0||V===void 0)return!1;
if(G.isTurtlex){if(t===void 0)return!1;z=G.reportFencedFrameEvent;if(!z)return!1;z({eventType:"active-view-time-on-screen",eventData:f!=null?f:"",destination:["buyer"]});return!0}if(!(l||S||t))return!1;f=cj(G);var c;U=(c=U==null?void 0:U.extrapolateUsingTimestampMap(f).value)!=null?c:!1;c=k(Object.assign({},G,{pingId:E,viewState:U?4:3,reasonCode:t!=null?t:"u",payloadMapper:Q,urlPrefixes:z}),f);if(l){for(;F.length>z.length;)G=void 0,(G=F.shift())==null||G.deactivate();c.forEach(function(T,P){P>=F.length?
F.push(V.makeBeacon(T)):F[P].url=T});
return N&&J&&t!==void 0?(c.forEach(function(T){J.makeBeacon(T).sendNow()}),!0):t!==void 0}if(N&&J&&t!==void 0)return c.forEach(function(T){J.makeBeacon(T).sendNow()}),!0;
if(S&&J){for(;F.length>z.length;)N=void 0,(N=F.shift())==null||N.deactivate();var A=k(Object.assign({},G,{pingId:E,viewState:U?4:3,reasonCode:t!=null?t:"u",payloadMapper:Q,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),f)[0];c.forEach(function(T,P){P>=F.length?F.push(V.makeBeacon(A,{endOfSession:!0})):F[P].url=A});
return t!==void 0?(c.forEach(function(T){J.makeBeacon(T).sendNow()}),!0):t!==void 0}return t!==void 0?(c.forEach(function(T){V.makeBeacon(T).sendNow()}),!0):!1}),IR(function(G){return!G}),CA())};var x4T=tW(ra(function(C){return C.immediateUrlPrefixes!==void 0&&C.payloadMapper!==void 0&&C.urlSerializer!==void 0&&C.inferredPingId!==void 0&&C.beaconFactory!==void 0}),ra(function(C){return u59(C)!==null}),bBZ(function(C){return C.activeViewUnmeasurableEvent},function(C){return C.emit}),e9(function(C){if(C.isTurtlex){var F=C.reportFencedFrameEvent;
if(F){var G;F({eventType:"active-view-unmeasurable",eventData:(G=C.turtlexReportEventData)!=null?G:"",destination:["buyer"]})}}else{G=void 0;var V=u59(C);if(V==="x"){var J,b=(J=C.geometricMeasurementErrors)!=null?J:C.contextValidationErrors;b&&(F=b.stack,G=b.message)}C.urlSerializer(Object.assign({},C,{urlPrefixes:C.immediateUrlPrefixes,payloadMapper:C.payloadMapper,pingId:C.inferredPingId,viewState:2,reasonCode:V,errorMessage:G,errorStack:F}),cj(C)).forEach(function(z){C.beaconFactory.makeBeacon(z).sendNow()})}}),
Ff(1),CA());var zlI=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var vn5=tW(ra(function(C){return C.payloadMapper!==void 0&&C.immediateUrlPrefixes!==void 0&&C.urlSerializer!==void 0&&C.inferredPingId!==void 0&&C.beaconFactory!==void 0}),e9(function(C){return Object.assign({},C,{timestamps:cj(C)})}),ra(function(C){var F=C.viewable;
var G=C.hasImpressionFired;C=C.timestamps;var V;return!!G&&((V=F==null?void 0:F.extrapolateUsingTimestampMap(C).value)!=null?V:!1)}),bBZ(function(C){return C.activeViewViewableEvent},function(C){return C.emit}),e9(function(C){var F=C.beaconFactory,G=C.turtlexReportEventData;
if(C.isTurtlex){var V=C.reportFencedFrameEvent;if(!V)return!1;V({eventType:"active-view-viewable",eventData:G!=null?G:"",destination:["buyer"]});return!0}G=C.urlSerializer(Object.assign({},C,{urlPrefixes:C.immediateUrlPrefixes,payloadMapper:C.payloadMapper,pingId:C.inferredPingId,viewState:4,reasonCode:"v"}),C.timestamps);(V=C.cpmavUrls)&&V.length>0&&C.viewUrlSerializer&&C.viewUrlSerializer(V,C).forEach(function(J){F.makeBeacon(J).sendNow()});
(V=C.viewableRelayUrls)&&V.length>0&&C.viewUrlSerializer&&C.viewUrlSerializer(V,C).forEach(function(J){F.makeBeacon(J).sendNow()});
G.forEach(function(J){F.makeBeacon(J,{attributionEnabled:C.isViewableAttributionEnabled}).sendNow()});
return!0}),IR(function(C){return!C}),CA());var FNZ=e9(function(C){return[C.value.topWindowViewportExternalGeometry.width,C.value.topWindowViewportExternalGeometry.height]});var Di=function(C,F){this.callback=C;this.options=F;this.intersectionObserverV2=this.intersectionObserverV1=null},elT=function(C,F){F?C.intersectionObserverV2||(F=Object.assign({},C.options,{delay:100,
trackVisibility:!0}),C.intersectionObserverV2=new IntersectionObserver(C.callback,F)):C.intersectionObserverV1||(C.intersectionObserverV1=new IntersectionObserver(C.callback,C.options))},$dS=function(C,F){C=F?C.intersectionObserverV2:C.intersectionObserverV1;
if(!C)throw new a6m;return C};
Di.prototype.observe=function(C,F){$dS(this,C).observe(F)};
Di.prototype.unobserve=function(C,F){$dS(this,C).unobserve(F)};
Di.prototype.disconnect=function(C){$dS(this,C).disconnect()};
Di.prototype.takeRecords=function(C){return $dS(this,C).takeRecords()};var OB5={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:mi,topWindowViewportExternalGeometry:mi,measurementRequests:new yS,elementGeometrySourceName:"ns",elementGeometry:mi,intersectionGeometry:mi,viewportLocalAppOffset:{x:0,y:0}};var Rls=Cf(tW(e9(function(C){var F;return(F=C.exposureOverride)!=null?F:x0w(C)}),e9(function(C){return isFinite(C)?C:0}))),ppW=Cf(tW(e9(function(C){var F;
return(F=C.exposureOverride)!=null?F:x0w(C)}),e9(function(C){return isFinite(C)?C:-1})));var sV=function(C,F){this.a=C;this.b=F;if(C.clock.timeline!==F.clock.timeline)throw Error();};
sV.prototype.equivalentTo=function(C){return C instanceof sV?this.a.equivalentTo(C.a)&&this.b.equivalentTo(C.b):!1};
sV.prototype.extrapolateToTime=function(C){var F=this.a.extrapolateToTime(C).value,G=this.b.extrapolateToTime(C).value;return{timestamp:C,value:[F,G]}};
_.I6.Object.defineProperties(sV.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 C=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),F=this.a.lastMeasurement.timestamp.equals(C)?this.a.lastMeasurement.value:this.a.extrapolateToTime(C).value,G=this.b.lastMeasurement.timestamp.equals(C)?this.b.lastMeasurement.value:this.b.extrapolateToTime(C).value;return{timestamp:C,value:[F,G]}}}});var qE=function(C,F){this.input=C;this.mapFunction=F;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
qE.prototype.equivalentTo=function(C){return C instanceof qE?this.input.equivalentTo(C.input)&&this.mapFunction===C.mapFunction:!1};
qE.prototype.extrapolateToTime=function(C){C=this.input.extrapolateToTime(C);return{timestamp:C.timestamp,value:this.mapFunction(C.value)}};
_.I6.Object.defineProperties(qE.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var PN=function(){};
PN.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
PN.prototype.extrapolateUsingTimestampMap=function(C){var F=this.clock.timeline,G,V=(G=C.get(F))!=null?G:this.clock.now();C.set(F,V);return this.extrapolateToTime(V)};
PN.prototype.map=function(C){return new bf8(this,C)};
PN.prototype.joinWith=function(C){return new ndy(this,C)};
var ndy=function(){sV.apply(this,arguments);this.map=PN.prototype.map;this.joinWith=PN.prototype.joinWith;this.extrapolateToNow=PN.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=PN.prototype.extrapolateUsingTimestampMap};
_.O(ndy,sV);var bf8=function(){qE.apply(this,arguments);this.map=PN.prototype.map;this.joinWith=PN.prototype.joinWith;this.extrapolateToNow=PN.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=PN.prototype.extrapolateUsingTimestampMap};
_.O(bf8,qE);var GI=function(C,F){this.lastMeasurement=F;this.extrapolateToNow=PN.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=PN.prototype.extrapolateUsingTimestampMap;this.map=PN.prototype.map;this.joinWith=PN.prototype.joinWith;this.clock=C};
GI.prototype.equivalentTo=function(C){return C.active};
GI.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.I6.Object.defineProperties(GI.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var jDi=e9(function(C){if(C.value.viewportGeometrySourceName==="omid"){if(C.value.elementGeometrySourceName==="nio")return"omio";if(C.value.elementGeometrySourceName==="geo")return"omgeo"}return C.value.elementGeometrySourceName==="geo"||C.value.elementGeometrySourceName==="nio"?C.value.viewportGeometrySourceName:C.value.elementGeometrySourceName});var qqo=tW(ra(function(C){return!isNaN(C)}),uh(function(C,F){return isNaN(C)?F:Math.min(C,F)},NaN),Gk());var YqT=Cf(tW(e9(function(C){return C.intersectionGeometry.width*C.intersectionGeometry.height/(C.exposedViewportLocalGeometry.width*C.exposedViewportLocalGeometry.height)}),e9(function(C){return isFinite(C)?Math.min(1,C):0})));var CRs=tW(Cf(e9(function(C){C=C.exposureOverride?C.elementGeometry.width*C.elementGeometry.height*C.exposureOverride/(C.topWindowViewportExternalGeometry.width*C.topWindowViewportExternalGeometry.height):C.intersectionGeometry.width*C.intersectionGeometry.height/(C.topWindowViewportExternalGeometry.width*C.topWindowViewportExternalGeometry.height);return isFinite(C)?C:0})));var iWW=function(C,F){var G=this;this.timeProvider=C;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=F.pipe(Gk()).subscribe(function(V){$4f(G);G.measurementRequestObserver=V})},bWo=function(C,F){$4f(C);
C.lastMeasurementRequest=C.timeProvider.setTimeout(function(){var G;return void((G=C.measurementRequestObserver)==null?void 0:G.next())},F)},$4f=function(C){C.lastMeasurementRequest!==null&&C.timeProvider.clearTimeout(C.lastMeasurementRequest);
C.lastMeasurementRequest=null};
iWW.prototype.dispose=function(){$4f(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var u_P=function(){};var S0B=function(C,F){this.context=C;this.strategies=F};
_.O(S0B,u_P);S0B.prototype.buildGeometrySource=function(C,F){var G=this.strategies.map(function(b){return b.buildGeometrySource(C,F)}),V=INW(G.map(function(b){return b.geometrySource})),J=V.capturedErrors.pipe(znP());
return{geometrySource:V.chain.pipe(Nl(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:J,strategyErrors:V.capturedErrors}].concat(_.da(G.map(function(b){return b.additionalOutputs}))))}};
var znP=function(){return uh(function(C,F){F instanceof ey?C.push(F.measurementStrategyFailureReason):C.push(-1);return C},[])};var BiI=function(C,F){this.context=C;this.poller=F};
_.O(BiI,u_P);BiI.prototype.buildGeometrySource=function(C,F){var G=Eni(t_S(this.context,this.poller),XpS(this.context,F.requestSource));return{geometrySource:QDW(C.measurableCreative.pipe(G),F.inApp),additionalOutputs:{}}};var LNw=function(C,F,G){G=G===void 0?vKE(C,F):G;this.context=C;this.intersectionObserverStrategy=G};
_.O(LNw,u_P);LNw.prototype.buildGeometrySource=function(C,F){var G=this.intersectionObserverStrategy(F.useV2);return{geometrySource:QDW(C.measurableCreative.pipe(G,fBq(this.context)),F.inApp),additionalOutputs:{}}};var QMG=function(C,F,G){var V=V===void 0?Symbol():V;this.element=C;this.immediateUrls=F;this.timeOnScreenUrls=G;this.symbol=V};var V_i=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),lNZ=Object.freeze([1,.75,V_i.exposureThreshold,V_i.largeAdExposureThreshold,0]);var AFo=function(C,F){F=F===void 0?36E5:F;var G=G===void 0?!0:G;this.creatives=new yS;this.elementsToUnregister=new yS;this.elementMap=new Map;var V=new JV(window,null);V.beaconFactory=new zi(V,new A8(V));M_B(V,this.creatives,this.elementsToUnregister,C,F,G).subscribe()},xt5=function(C,F,G,V){if(!C.elementMap.has(F)){var J=new Tk(F);
C.elementMap.set(F,J);C.creatives.next(new QMG(J,G,V))}},dtA=function(C,F){C.elementsToUnregister.next(F);
var G=C.elementMap.get(F);G!==void 0&&(G.release(),C.elementMap.delete(F))};var xr9=function(C){var F=C.url;C=C.uaDataValues;this.JSC$9475_url_=F;this.uaDataValues_=C;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var G=/[?&]([^&=]+)=([^&]*)/g;C=G.exec(F);)this.urlParamValues_[C[1]]=C[2]},sNo=function(C){C=C.uaDataValues_;
if(!C)return"";var F=bz("uap",C.platform)+bz("uapv",C.platformVersion)+bz("uafv",C.uaFullVersion)+bz("uaa",C.architecture)+bz("uam",C.model)+bz("uab",C.bitness);C.fullVersionList&&(F+="&uafvl="+encodeURIComponent(C.fullVersionList.map(function(G){return encodeURIComponent(G.brand)+";"+encodeURIComponent(G.version)}).join("|")));
C.wow64!=null&&(F+="&uaw="+Number(C.wow64));return F.slice(1)};var IaS=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(IaS,_.b0);IaS.prototype.getId=function(){return _.a3(this,1)};var g8=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(g8,_.b0);g8.prototype.getSeconds=function(){return Wc(this,1)};
g8.prototype.setSeconds=function(C){return _.jS(this,1,Er(C),"0")};_.Up=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(_.Up,_.b0);_.Up.prototype.getSeconds=function(){return Wc(this,1)};
_.Up.prototype.setSeconds=function(C){return _.jS(this,1,Er(C),"0")};
_.EdO=function(C){var F=Number(Uj(C,1));C=_.Wk(C,2);return new Date(F*1E3+C/1E6)};var RF=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(RF,_.b0);RF.prototype.getUrl=function(){return _.a3(this,1)};
RF.prototype.setUrl=function(C){return _.L3(this,1,C)};
RF.prototype.getHeight=function(){return _.Wk(this,2)};
RF.prototype.getWidth=function(){return _.Wk(this,3)};var Yk=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Yk,_.b0);Yk.prototype.getAspectRatio=function(){return ti(this,1)};
Yk.prototype.getDuration=function(){return _.aa(this,g8,2)};var WgS=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(WgS,_.b0);var tou=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(tou,_.b0);var aa8=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(aa8,_.b0);var kIP=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(kIP,_.b0);var Udl=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Udl,_.b0);var Hf8=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Hf8,_.b0);var la$=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(la$,_.b0);var yVP=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(yVP,_.b0);var Zfm=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Zfm,_.b0);var Ti=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Ti,_.b0);var oF=[2,4,5,6,7];var NGm=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(NGm,_.b0);var QZ=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(QZ,_.b0);_.n=QZ.prototype;_.n.getId=function(){return _.aa(this,IaS,1)};
_.n.getName=function(){return _.a3(this,2)};
_.n.setDescription=function(C){return _.L3(this,3,C)};
_.n.getUrl=function(){return _.a3(this,8)};
_.n.setUrl=function(C){return _.L3(this,8,C)};
var r8=function(C){return _.IM(C,RF,10,_.ED())};
QZ.prototype.getOwner=function(C){var F=_.Dr(this,40,_.Or,3,!0);mfW(F,C);return F[C]};
var Kk=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Kk,_.b0);_.Dn=[0,hi,QLO];_.pk=[0,hi,QLO];var OfP=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(OfP,_.b0);var mS=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(mS,_.b0);mS.prototype.getStatus=function(){return _.kL(this,1)};
mS.prototype.removeItem=function(C){return yOu(this,2,C)};var Xk7=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Xk7,_.b0);Xk7.prototype.getName=function(){return _.a3(this,8)};var CC=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(CC,_.b0);CC.prototype.getCommand=function(){return _.kL(this,1)};
CC.prototype.getSource=function(){return _.aa(this,Xk7,2)};
CC.prototype.setVisible=function(C){return _.k6(this,5,C)};
CC.prototype.removeItem=function(C){return yOu(this,7,C)};var wkP=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(wkP,_.b0);wkP.prototype.getCommand=function(){return _.kL(this,1)};
wkP.prototype.removeItem=function(C){return yOu(this,4,C)};
var Moy=_.Z0(wkP);var jL=function(C,F,G){G=G===void 0?Error():G;var V=Error.call(this);this.message=V.message;"stack"in V&&(this.stack=V.stack);this.code=C;F+=":";G instanceof Error?(this.message=F+G.message,this.stack=G.stack||""):(this.message=F+String(G),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.O(jL,Error);_.hV=function(){this.JSC$9533_disposed_=this.JSC$9533_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.hV.prototype.JSC$9533_disposed_=!1;_.hV.prototype.isDisposed=function(){return this.JSC$9533_disposed_};
_.hV.prototype.dispose=function(){this.JSC$9533_disposed_||(this.JSC$9533_disposed_=!0,this.disposeInternal())};
_.hV.prototype[Symbol.dispose]=function(){this.dispose()};
_.Nd=function(C,F){C.addOnDisposeCallback(_.$B(_.uz,F))};
_.hV.prototype.addOnDisposeCallback=function(C,F){this.JSC$9533_disposed_?F!==void 0?C.call(F):C():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),F&&(C=C.bind(F)),this.onDisposeCallbacks_.push(C))};
_.hV.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var F3=function(C){_.hV.call(this);this.wpc=C};
_.O(F3,_.hV);F3.prototype.fM9=function(){return this.wpc.f()};
F3.prototype.huF=function(C){return this.wpc.c(C)};
F3.prototype.nU=function(C){return this.wpc.m(R7q(C))};
F3.prototype.hxG=function(C){return this.wpc.mws(R7q(C))};
var Qf=function(C){_.hV.call(this);var F=this;this.vm=C;this.qbP="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.ejF=void 0;this.ye1=this.vm.p;this.zvT=this.oX8.bind(this);this.addOnDisposeCallback(function(){return void SD$(F)})};
_.O(Qf,_.hV);var Lgm=function(C){var F;return _.I(function(G){if(G.nextAddress==1){if(!C.vm.wpc)throw new jL(30,"NWA");return C.aVC?G.return(C.aVC):G.yield(C.vm.wpc(),2)}F=G.yieldResult;C.aVC=new F3(F);return G.return(C.aVC)})};
Qf.prototype.snapshot=function(C){return this.vm.s(Object.assign({},C.aC&&{c:C.aC},C.j6S&&{s:C.j6S},C.k4H!==void 0&&{p:C.k4H}))};
Qf.prototype.oX8=function(C){this.vm.e(C)};
Qf.prototype.udX=function(C,F){return this.vm.c(C,F,!1)};
var SD$=function(C){C.ejF!==void 0&&(C.qbP.forEach(function(F){var G;(G=C.ejF)==null||G.removeEventListener(F,C.zvT)}),C.ejF=void 0)};
Qf.prototype.qVX=function(){return this.vm.l()};var GY=function(){_.hV.apply(this,arguments);this.zh9=1};
_.O(GY,_.hV);GY.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.zh9++;return this};
GY.prototype.dispose=function(){--this.zh9||_.hV.prototype.dispose.call(this)};var BGy=function(C){this.nKp=C;C.addNewEventMetric("/client_streamz/bg/frs",_.kd("mk"))};
BGy.prototype.record=function(C,F){this.nKp.record("/client_streamz/bg/frs",C,F)};
var vd7=function(C){this.w0a=C;C.addNewEventMetric("/client_streamz/bg/wrl",_.kd("mn"),aM("ac"),aM("sc"),_.kd("rk"),_.kd("mk"))};
vd7.prototype.record=function(C,F,G,V,J,b){this.w0a.record("/client_streamz/bg/wrl",C,F,G,V,J,b)};
var faO=function(C){this.p0a=C;C.addNewCounter("/client_streamz/bg/ec",_.kd("en"),_.kd("mk"))};
faO.prototype.increment=function(C,F){this.p0a.JSC$9786_incrementCounter("/client_streamz/bg/ec",C,F)};
var hnG=function(C){this.aR2=C;C.addNewEventMetric("/client_streamz/bg/el",_.kd("en"),_.kd("mk"))};
hnG.prototype.record=function(C,F,G){this.aR2.record("/client_streamz/bg/el",C,F,G)};
var cV2=function(C){this.beP=C;C.addNewCounter("/client_streamz/bg/cec",aM("ec"),_.kd("mk"))};
cV2.prototype.increment=function(C,F){this.beP.JSC$9786_incrementCounter("/client_streamz/bg/cec",C,F)};
var AV7=function(C){this.oKp=C;C.addNewCounter("/client_streamz/bg/po/csc",aM("cs"),_.kd("mk"))};
AV7.prototype.increment=function(C,F){this.oKp.JSC$9786_incrementCounter("/client_streamz/bg/po/csc",C,F)};
var enO=function(C){this.dfT=C;C.addNewCounter("/client_streamz/bg/po/ctav",_.kd("av"),_.kd("mk"))};
enO.prototype.increment=function(C,F){this.dfT.JSC$9786_incrementCounter("/client_streamz/bg/po/ctav",C,F)};
var dd$=function(C){this.cFk=C;C.addNewCounter("/client_streamz/bg/po/cwsc",_.kd("su"),_.kd("mk"))};
dd$.prototype.increment=function(C,F){this.cFk.JSC$9786_incrementCounter("/client_streamz/bg/po/cwsc",C,F)};var UeT=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(UeT,_.b0);var kNT=function(C,F){return _.CT(C,3,F,HPE)};var xdE=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(xdE,_.b0);var sMS=[1,2,3];var qD$=[0,sMS,_.Pc,Ir7,tUE];var Pz$=[0,_.gn,[0,vc,_.f2]];var gdP=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(gdP,_.b0);var RnO=[1,2,3];var YDu=[0,RnO,uMu,it8,_.R3,Pz$];var TGE=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(TGE,_.b0);var odu=[0,_.gn,qD$,YDu];var rVm=[0,_.xL];var Kg8=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Kg8,_.b0);var Dd$=[0,_.xL,-1,_.eX];var pkE=[0,_.xL,-1,_.Ai,_.eX];var mdm=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(mdm,_.b0);var CbP=[1,2,3];var jXl=[0,CbP,_.R3,Dd$,_.R3,pkE,_.R3,rVm];var Fv8=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Fv8,_.b0);Fv8.prototype.JSC$9606_serializeBinary=YLT([0,_.xL,jXl,ar8,_.gn,odu,E_G,_.WdO]);var GlP=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(GlP,_.b0);var J2m=function(C){var F=new Fv8;F=_.fA(F,1,C.JSC$9722_metricName);var G=VES(C);F=_.CT(F,3,G,_.y8);G=[];for(var V=[],J=_.u(C.cellMap.keys()),b=J.next();!b.done;b=J.next())V.push(b.value.split(","));for(J=0;J<V.length;J++){b=V[J];for(var z=C.cellType,Q=C.getCells(b)||[],E=[],t=0;t<Q.length;t++){var k=Q[t],U=k&&k.cellValue;k=new gdP;switch(z){case 3:U=Number(U);Number.isFinite(U)&&O1(k,1,RnO,Er(U));break;case 2:O1(k,2,RnO,_.KP(Number(U)))}E.push(k)}z=E;for(Q=0;Q<z.length;Q++){E=z[Q];t=new TGE;E=_.OL(t,
2,E);t=[];k=iB$(C);for(U=0;U<k.length;U++){var H=k[U],l=b[U],N=new xdE;switch(H){case 3:O1(N,1,sMS,N3(String(l)));break;case 2:H=Number(l);Number.isFinite(H)&&O1(N,2,sMS,_.bs(H));break;case 1:O1(N,3,sMS,auq(l==="true"))}t.push(N)}zG(E,1,t);G.push(E)}}zG(F,4,G);return F};var $07=function(C){if(!C)return"";if(/^about:(?:blank|srcdoc)$/.test(C))return window.origin||"";C.indexOf("blob:")===0&&(C=C.substring(5));C=C.split("#")[0].split("?")[0];C=C.toLowerCase();C.indexOf("//")==0&&(C=window.location.protocol+C);/^[\w\-]*:\/\//.test(C)||(C=window.location.href);var F=C.substring(C.indexOf("://")+3),G=F.indexOf("/");G!=-1&&(F=F.substring(0,G));G=C.substring(0,C.indexOf("://"));if(!G)throw Error("qa`"+C);if(G!=="http"&&G!=="https"&&G!=="chrome-extension"&&G!=="moz-extension"&&
G!=="file"&&G!=="android-app"&&G!=="chrome-search"&&G!=="chrome-untrusted"&&G!=="chrome"&&G!=="app"&&G!=="devtools")throw Error("ra`"+G);C="";var V=F.indexOf(":");if(V!=-1){var J=F.substring(V+1);F=F.substring(0,V);if(G==="http"&&J!=="80"||G==="https"&&J!=="443")C=":"+J}return G+"://"+F+C};var nKo=function(C,F,G){var V=String(_.VT.location.href);return V&&C&&F?[F,bB8($07(V),C,G||null)].join(" "):null},bB8=function(C,F,G){var V=[],J=[];
if((Array.isArray(G)?2:1)==1)return J=[F,C],_.F$(V,function(Q){J.push(Q)}),u5P(J.join(" "));
var b=[],z=[];_.F$(G,function(Q){z.push(Q.key);b.push(Q.value)});
G=Math.floor((new Date).getTime()/1E3);J=b.length==0?[G,F,C]:[b.join(":"),G,F,C];_.F$(V,function(Q){J.push(Q)});
C=u5P(J.join(" "));C=[G,C];z.length==0||C.push(z.join(""));return C.join("_")},u5P=function(C){var F=m4o();
F.update(C);return F.digestString().toLowerCase()};var VW=function(C){this.JSC$9617_document_=C||{cookie:""}},zl2;
_.n=VW.prototype;_.n.isEnabled=function(){if(!_.VT.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};
_.n.set=function(C,F,G){var V=!1;if(typeof G==="object"){var J=G.sameSite;V=G.secure||!1;var b=G.domain||void 0;var z=G.path||void 0;var Q=G.maxAge}if(/[;=\s]/.test(C))throw Error("sa`"+C);if(/[;\r\n]/.test(F))throw Error("ta`"+F);Q===void 0&&(Q=-1);G=b?";domain="+b:"";z=z?";path="+z:"";V=V?";secure":"";Q=Q<0?"":Q==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+Q*1E3)).toUTCString();this.JSC$9617_document_.cookie=C+"="+F+G+z+Q+V+(J!=null?";samesite="+J:"")};
_.n.get=function(C,F){for(var G=C+"=",V=(this.JSC$9617_document_.cookie||"").split(";"),J=0,b;J<V.length;J++){b=Iw(V[J]);if(b.lastIndexOf(G,0)==0)return b.slice(G.length);if(b==C)return""}return F};
_.n.remove=function(C,F,G){var V=this.containsKey(C);this.set(C,"",{maxAge:0,path:F,domain:G});return V};
_.n.getKeys=function(){return zl2(this).keys};
_.n.getValues=function(){return zl2(this).values};
_.n.isEmpty=function(){return!this.JSC$9617_document_.cookie};
_.n.getCount=function(){return this.JSC$9617_document_.cookie?(this.JSC$9617_document_.cookie||"").split(";").length:0};
_.n.containsKey=function(C){return this.get(C)!==void 0};
_.n.containsValue=function(C){for(var F=zl2(this).values,G=0;G<F.length;G++)if(F[G]==C)return!0;return!1};
_.n.clear=function(){for(var C=zl2(this).keys,F=C.length-1;F>=0;F--)this.remove(C[F])};
zl2=function(C){C=(C.JSC$9617_document_.cookie||"").split(";");for(var F=[],G=[],V,J,b=0;b<C.length;b++)J=Iw(C[b]),V=J.indexOf("="),V==-1?(F.push(""),G.push(J)):(F.push(J.substring(0,V)),G.push(J.substring(V+1)));return{keys:F,values:G}};
_.BD=new VW(typeof document=="undefined"?null:document);var gH9,QX$;gH9=function(){var C=_.VT.__SAPISID||_.VT.__APISID||_.VT.__3PSAPISID||_.VT.__1PSAPISID||_.VT.__OVERRIDE_SID;if(C)return!0;typeof document!=="undefined"&&(C=new VW(document),C=C.get("SAPISID")||C.get("APISID")||C.get("__Secure-3PAPISID")||C.get("__Secure-1PAPISID"));return!!C};
QX$=function(C,F,G,V){(C=_.VT[C])||typeof document==="undefined"||(C=(new VW(document)).get(F));return C?nKo(C,G,V):null};
_.WmW=function(C){var F=$07(_.VT==null?void 0:_.VT.location.href),G=[];if(gH9()){F=F.indexOf("https:")==0||F.indexOf("chrome-extension:")==0||F.indexOf("chrome-untrusted://new-tab-page")==0||F.indexOf("moz-extension:")==0;var V=F?_.VT.__SAPISID:_.VT.__APISID;V||typeof document==="undefined"||(V=new VW(document),V=V.get(F?"SAPISID":"APISID")||V.get("__Secure-3PAPISID"));(V=V?nKo(V,F?"SAPISIDHASH":"APISIDHASH",C):null)&&G.push(V);F&&((F=QX$("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",C))&&G.push(F),
(C=QX$("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",C))&&G.push(C))}return G.length==0?null:G.join(" ")};var IBo=function(){this.minSize=1024};
IBo.prototype.compress=function(C){var F,G,V,J;return _.I(function(b){switch(b.nextAddress){case 1:return F=new CompressionStream("gzip"),G=(new Response(F.readable)).arrayBuffer(),V=F.writable.getWriter(),b.yield(V.write((new TextEncoder).encode(C)),2);case 2:return b.yield(V.close(),3);case 3:return J=Uint8Array,b.yield(G,4);case 4:return b.return(new J(b.yieldResult))}})};
IBo.prototype.isSupported=function(C){return C<this.minSize?!1:typeof CompressionStream!=="undefined"};var EKl=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(EKl,_.b0);var iT=function(C,F){this.intervalMs=C;this.callback=F;this.enabled=!1;this.nowFn=function(){return _.gp()};
this.lastTimeMs=this.nowFn()};
iT.prototype.setInterval=function(C){this.intervalMs=C;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
iT.prototype.start=function(){var C=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){C.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
iT.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
iT.prototype.tick=function(){var C=this;if(this.enabled){var F=Math.max(this.nowFn()-this.lastTimeMs,0);F<this.intervalMs*.8?this.timer=setTimeout(function(){C.tick()},this.intervalMs-F):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var Wv2=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Wv2,_.b0);var tE8=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(tE8,_.b0);var aB$=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(aB$,_.b0);aB$.prototype.getTransmissionType=function(){return _.kL(this,1)};var GNS=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(GNS,_.b0);var JP=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(JP,_.b0);var FxA=function(C){zG(VPq,1,C)};
JP.prototype.getModel=function(){return _.a3(this,6)};
var kl7=_.Z0(JP);var U0u=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(U0u,_.b0);var CHS=["platform","platformVersion","architecture","model","uaFullVersion"],VPq=new JP,j8i=null;var $8=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O($8,_.b0);var HBm=function(C){return _.kx(C,1,1)};var lB2=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C,4)};
_.O(lB2,_.b0);_.bT=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C,36)};
_.O(_.bT,_.b0);_.bT.prototype.getExperimentIds=function(){return _.aa(this,EKl,16)};var y27=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C,19)};
_.O(y27,_.b0);y27.prototype.setLogSource=function(C){return _.kx(this,2,C)};
y27.prototype.setScheduler=function(C){return _.kx(this,10,C)};var N0$=function(C,F){this.isServiceWorkerScope=F=F===void 0?!1:F;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new y27;Number.isInteger(C)&&this.logRequest.setLogSource(C);F||(this.locale=document.documentElement.getAttribute("lang"));ZBr(this,new $8)};
N0$.prototype.setLogSource=function(C){this.logRequest.setLogSource(C);return this};
var ZBr=function(C,F){_.OL(C.logRequest,1,F);_.kL(F,1)||HBm(F);C.isServiceWorkerScope||(F=nC(C),_.a3(F,5)||_.fA(F,5,C.locale));C.uach&&(F=nC(C),_.aa(F,JP,9)||_.OL(F,9,C.uach))},OBy=function(C,F){C.transmissionType=F},XpE=function(C){var F=F===void 0?CHS:F;
var G=C.isServiceWorkerScope?void 0:Pj();G?iDW(G,F).then(function(V){C.uach=kl7(V!=null?V:"[]");V=nC(C);_.OL(V,9,C.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},nC=function(C){var F=_.aa(C.logRequest,$8,1);
F||(F=new $8,ZBr(C,F));C=F;F=_.aa(C,U0u,11);F||(F=new U0u,_.OL(C,11,F));return F};
N0$.prototype.build=function(C,F,G,V,J,b){F=F===void 0?0:F;G=G===void 0?0:G;V=V===void 0?null:V;J=J===void 0?0:J;b=b===void 0?0:b;if(!this.isServiceWorkerScope){var z=nC(this);var Q=new aB$;Q=_.kx(Q,1,this.transmissionType);Q=_.UD(Q,2,this.isFinal);G=_.ZW(Q,3,G>0?G:void 0);G=_.ZW(G,4,J>0?J:void 0);G=_.ZW(G,5,b>0?b:void 0);J=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;b=J[_.JO]|0;G=XE(G,b)?G:wVo(G,J,b)?XVA(G,J):new G.constructor(PV(J,b,!0));_.OL(z,10,G)}z=this.logRequest.clone();G=Date.now().toString();
z=_.Ut(z,4,Er(G));C=C.slice();C=zG(z,3,C);V&&(z=new Wv2,V=_.ZW(z,13,V),z=new tE8,V=_.OL(z,2,V),z=new lB2,V=_.OL(z,1,V),V=_.kx(V,2,9),_.OL(C,18,V));F&&_.f1(C,14,F);return C};Hk.prototype.currBackoffCount_=0;Hk.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
Hk.prototype.getValue=function(){return this.currValue_};
var wpu=function(C){C.currBaseValue_=Math.min(C.maxValue_,C.currBaseValue_*C.backoffFactor_);C.currValue_=Math.min(C.maxValue_,C.currBaseValue_+(C.randomFactor_?Math.round(C.randomFactor_*(Math.random()-.5)*2*C.currBaseValue_):0));C.currBackoffCount_++};var ylO=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C,8)};
_.O(ylO,_.b0);var MEm=_.Z0(ylO);var Ztu=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Ztu,_.b0);var uT;uT=new NWE;var zY=function(C){_.hV.call(this);var F=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9695_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$9695_sendBeaconApiEnabled=!1;this.logSource=C.logSource;this.getAuthHeaderValue=
C.getAuthHeaderValue||function(){};
this.logRequestBuilder=new N0$(C.logSource,C.isServiceWorkerScope);this.network=C.network||null;this.productID=C.productID||null;this.bufferSize=1E3;this.clearcutUrl=C.urlOverride||null;this.sessionIndex=C.sessionIndex||null;this.disableAutomaticFlush=C.disableAutomaticFlush||!1;this.withCredentials=!C.disableWithCredentials;this.isServiceWorkerScope=C.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!Pj()&&!!Pj().navigator&&Pj().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(Sqy())).searchParams&&!!(new URL(Sqy())).searchParams.set;var G=HBm(new $8);ZBr(this.logRequestBuilder,G);this.flushBackoff=new Hk(1E4,3E5,.1);C=Lvy(this,C.backgroundJobDeferrer);this.JSC$9695_flushTimer=new iT(this.flushBackoff.getValue(),C);this.backupTimer=new iT(6E5,C);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){B0r(F);
var V;(V=F.metalogService)==null||V.flush()}}),document.addEventListener("pagehide",function(){B0r(F);
var V;(V=F.metalogService)==null||V.flush()}))};
_.O(zY,_.hV);var Lvy=function(C,F){return C.isBrowserSupported?F?function(){F().then(function(){C.flush()})}:function(){C.flush()}:function(){}};
zY.prototype.disposeInternal=function(){B0r(this);this.JSC$9695_flushTimer.stop();this.backupTimer.stop();_.hV.prototype.disposeInternal.call(this)};
var vK7=function(C){C.clearcutUrl||(C.clearcutUrl=Sqy());try{return(new URL(C.clearcutUrl)).toString()}catch(F){return(new URL(C.clearcutUrl,Pj().location.origin)).toString()}};
zY.prototype.dispatch=function(C){if(C instanceof _.bT)this.log(C);else try{var F=new _.bT,G=C.serialize();var V=_.fA(F,8,G);this.log(V)}catch(J){QW(this,4,1)}};
var QW=function(C,F,G){C.metalogService&&C.metalogService.increment(F,G)};
zY.prototype.log=function(C){QW(this,2,1);if(this.isBrowserSupported){C=C.clone();var F=this.sequencePosition++;C=_.f1(C,21,F);this.componentId&&_.fA(C,26,this.componentId);F=C;if(cOB(_.ig(F,1))==null){var G=Date.now();G=Number.isFinite(G)?G.toString():"0";_.Ut(F,1,Er(G))}_.hys(_.ig(F,15))!=null||_.f1(F,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(G=this.experimentIds.clone(),_.OL(F,16,G));QW(this,1,1);F=this.pendingEvents.length-this.bufferSize+1;F>0&&(this.pendingEvents.splice(0,F),
this.numLogsDroppedSinceLastFlush+=F,QW(this,3,F));this.pendingEvents.push(C);this.disableAutomaticFlush||this.JSC$9695_flushTimer.enabled||this.JSC$9695_flushTimer.start()}};
zY.prototype.flush=function(C,F){var G=this;if(this.pendingEvents.length===0)C&&C();else if(this.JSC$9695_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,fBG(this);else{var V=Date.now();if(this.noFlushUntilMs>V&&this.startWaitingMs<V)F&&F("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?OBy(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var J=this.pendingEvents.length,
b=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),z=this.getAuthHeaderValue();if(z&&this.lastFailedAuth===z)F&&F("stale-auth-token");else{this.pendingEvents=[];this.JSC$9695_flushTimer.enabled&&this.JSC$9695_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;V=b.serialize();var Q;this.JSC$9695_compressor&&this.JSC$9695_compressor.isSupported(V.length)&&
(Q=this.JSC$9695_compressor.compress(V));var E=hlO(this,V,z),t=function(H){G.flushBackoff.reset();G.JSC$9695_flushTimer.setInterval(G.flushBackoff.getValue());if(H){var l=null;try{var N=JSON.stringify(JSON.parse(H.replace(")]}'\n","")));l=MEm(N)}catch(S){}l&&(H=Number(Wc(l,1,_.eG("-1"))),H>0&&(G.startWaitingMs=Date.now(),G.noFlushUntilMs=G.startWaitingMs+H),Ghf(l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,uT.fieldIndex),jLT(l,uT.fieldIndex),l=uT.ctor?uT.getExtensionFn(l,uT.ctor,uT.fieldIndex,
uT.JSC$8875_hasMessageId):uT.getExtensionFn(l,uT.fieldIndex,null,uT.JSC$8875_hasMessageId),l=l===null?void 0:l)&&(l=_.Wk(l,1,-1),l!==-1&&(G.flushBackoff=new Hk(l<1?1:l,3E5,.1),G.JSC$9695_flushTimer.setInterval(G.flushBackoff.getValue())))}C&&C();G.numRetriesSinceLastSuccessfulFlush=0},k=function(H,l){var N=_.IM(b,_.bT,3,_.ED());
var S=Number(Wc(b,14));wpu(G.flushBackoff);G.JSC$9695_flushTimer.setInterval(G.flushBackoff.getValue());H===401&&z&&(G.lastFailedAuth=z);S&&(G.numLogsDroppedSinceLastFlush+=S);l===void 0&&(l=G.isRetryable(H));l&&(G.pendingEvents=N.concat(G.pendingEvents),G.disableAutomaticFlush||G.JSC$9695_flushTimer.enabled||G.JSC$9695_flushTimer.start());QW(G,7,1);F&&F("net-send-failed",H);++G.numRetriesSinceLastSuccessfulFlush},U=function(){G.network&&G.network.send(E,t,k)};
Q?Q.then(function(H){QW(G,5,J);E.requestHeaders["Content-Encoding"]="gzip";E.requestHeaders["Content-Type"]="application/binary";E.body=H;E.bodyType=2;U()},function(){QW(G,6,J);
U()}):U()}}}};
var hlO=function(C,F,G){G=G===void 0?null:G;var V=V===void 0?C.withCredentials:V;var J={},b=new URL(vK7(C));G&&(J.Authorization=G);C.sessionIndex&&(J["X-Goog-AuthUser"]=C.sessionIndex,b.searchParams.set("authuser",C.sessionIndex));C.pageId&&(Object.defineProperty(J,"X-Goog-PageId",{value:C.pageId}),b.searchParams.set("pageId",C.pageId));return{url:b.toString(),body:F,bodyType:1,requestHeaders:J,requestType:"POST",withCredentials:V,timeoutMillis:C.timeoutMillis}},B0r=function(C){C.logRequestBuilder.isFinal=
!0;
C.flush();C.logRequestBuilder.isFinal=!1},fBG=function(C){c2G(C,function(F,G){F=new URL(F);
F.searchParams.set("format","json");var V=!1;try{V=Pj().navigator.sendBeacon(F.toString(),G.serialize())}catch(J){}V||(C.isSendBeaconSupported=!1);return V})},c2G=function(C,F){if(C.pendingEvents.length!==0){var G=new URL(vK7(C));
G.searchParams.delete("format");var V=C.getAuthHeaderValue();V&&G.searchParams.set("auth",V);G.searchParams.set("authuser",C.sessionIndex||"0");for(V=0;V<10&&C.pendingEvents.length;++V){var J=C.pendingEvents.slice(0,32),b=C.logRequestBuilder.build(J,C.numLogsDroppedSinceLastFlush,C.numRetriesSinceLastSuccessfulFlush,C.productID,C.persistedLogRecoveredCount,C.persistedLogExpiredCount);if(!F(G.toString(),b)){++C.numRetriesSinceLastSuccessfulFlush;break}C.numLogsDroppedSinceLastFlush=0;C.numRetriesSinceLastSuccessfulFlush=
0;C.persistedLogRecoveredCount=0;C.persistedLogExpiredCount=0;C.pendingEvents=C.pendingEvents.slice(J.length)}C.JSC$9695_flushTimer.enabled&&C.JSC$9695_flushTimer.stop()}};
zY.prototype.isRetryable=function(C){return 500<=C&&C<600||C===401||C===0};
var Sqy=function(){return"https://play.google.com/log?format=json&hasfast=true"};var A22=function(){this.abortSupported=typeof AbortController!=="undefined"};
A22.prototype.send=function(C,F,G){var V=this,J,b,z,Q,E,t,k,U,H,l;return _.I(function(N){switch(N.nextAddress){case 1:return b=(J=V.abortSupported?new AbortController:void 0)?setTimeout(function(){J.abort()},C.timeoutMillis):void 0,_.yy(N,2,3),z=Object.assign({},{method:C.requestType,
headers:Object.assign({},C.requestHeaders)},C.body&&{body:C.body},C.withCredentials&&{credentials:"include"},{signal:C.timeoutMillis&&J?J.signal:null}),N.yield(fetch(C.url,z),5);case 5:Q=N.yieldResult;if(Q.status!==200){(E=G)==null||E(Q.status);N.jumpTo(3);break}if((t=F)==null){N.jumpTo(7);break}return N.yield(Q.text(),8);case 8:t(N.yieldResult);case 7:case 3:_.Na(N);clearTimeout(b);_.XG(N,0);break;case 2:k=_.wa(N);switch((U=k)==null?void 0:U.name){case "AbortError":(H=G)==null||H(408);break;default:(l=
G)==null||l(400)}N.jumpTo(3)}})};
A22.prototype.getTransmissionType=function(){return 4};_.Za=function(C,F){F=F===void 0?"0":F;_.hV.call(this);this.logSource=C;this.sessionIndex=F;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9713_clearExperimentIds=this.productID=null;this.JSC$9713_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.O(_.Za,_.hV);var WxS=function(C,F){C.buildLabel=F;return C},EUW=function(C,F){C.network=F;
return C},a9I=function(C,F){C.JSC$9713_clearExperimentIds=F},I9i=function(C){C.JSC$9713_sendBeaconApiEnabled=!0;
return C};
_.Za.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.Za.prototype.build=function(){this.network||(this.network=new A22);var C=new zY({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.WmW,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.Nd(this,C);if(this.buildLabel){var F=this.buildLabel,G=
nC(C.logRequestBuilder);_.fA(G,7,F)}C.JSC$9695_compressor=new IBo;this.componentId&&(C.componentId=this.componentId);this.productID&&(C.productID=this.productID);this.pageId&&(C.pageId=this.pageId);this.JSC$9713_clearExperimentIds&&((G=this.JSC$9713_clearExperimentIds)?(C.experimentIds||(C.experimentIds=new EKl),F=C.experimentIds,G=G.serialize(),_.fA(F,4,G)):C.experimentIds&&_.Ut(C.experimentIds,4));this.JSC$9713_sendBeaconApiEnabled&&(C.JSC$9695_sendBeaconApiEnabled=C.isSendBeaconSupported);XpE(C.logRequestBuilder);
this.bufferSize&&(C.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(C);return C};var HDS=function(C,F,G,V,J,b,z){C=C===void 0?-1:C;F=F===void 0?"":F;G=G===void 0?"":G;V=V===void 0?!1:V;J=J===void 0?"":J;_.hV.call(this);this.logSource=C;this.componentId=F;b?F=b:(C=new _.Za(C,"0"),C.componentId=F,_.Nd(this,C),G!==""&&(C.destinationUrl=G),V&&(C.serviceWorkerScopeEnabled=!0),J&&WxS(C,J),z&&EUW(C,z),F=C.build());this.JSC$9717_transport=F};
_.O(HDS,_.hV);HDS.prototype.flush=function(C){C=C||[];if(C.length){for(var F=new GlP,G=[],V=0;V<C.length;V++){var J=C[V],b=J2m(J);G.push(b);J.clear()}zG(F,1,G);this.JSC$9717_transport.dispatch(F);this.JSC$9717_transport.flush()}};var elr=function(C){this.cellValue=C};var I5=function(C,F,G){this.JSC$9722_metricName=C;this.cellType=F;this.fields=G||[];this.cellMap=new Map},iB$=function(C){return C.fields.map(function(F){return F.fieldType})},VES=function(C){return C.fields.map(function(F){return F.fieldName})};
_.n=I5.prototype;_.n.addCell=function(C){var F=_.Rn.apply(1,arguments),G=this.getCells(F);G?G.push(new elr(C)):this.JSC$9722_setCell(C,F)};
_.n.JSC$9722_setCell=function(C){var F=this.JSC$9722_getKey(_.Rn.apply(1,arguments));this.cellMap.set(F,[new elr(C)])};
_.n.getCells=function(){var C=this.JSC$9722_getKey(_.Rn.apply(0,arguments));return this.cellMap.has(C)?this.cellMap.get(C):void 0};
_.n.getCell=function(){var C=this.getCells(_.Rn.apply(0,arguments));return C&&C.length?C[0]:void 0};
_.n.clear=function(){this.cellMap.clear()};
_.n.JSC$9722_getKey=function(){var C=_.Rn.apply(0,arguments);return C?C.join(","):"key"};var d07=function(C,F){I5.call(this,C,3,F)};
_.O(d07,I5);d07.prototype.JSC$9725_incrementCounterBy=function(C){var F=_.Rn.apply(1,arguments),G=0,V=this.getCell(F);V&&(G=V.cellValue);this.JSC$9722_setCell(G+C,F)};var x0l=function(C,F){I5.call(this,C,2,F)};
_.O(x0l,I5);x0l.prototype.record=function(C){this.addCell(C,_.Rn.apply(1,arguments))};_.EW=function(C){this.id=C};
_.EW.prototype.toString=function(){return this.id};_.tP=function(C,F){this.type=C instanceof _.EW?String(C):C;this.currentTarget=this.target=F;this.defaultPrevented=this.propagationStopped_=!1};
_.tP.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.tP.prototype.preventDefault=function(){this.defaultPrevented=!0};_.a5=function(C,F){_.tP.call(this,C?C.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;C&&this.init(C,F)};
_.RE(_.a5,_.tP);
_.a5.prototype.init=function(C,F){var G=this.type=C.type,V=C.changedTouches&&C.changedTouches.length?C.changedTouches[0]:null;this.target=C.target||C.srcElement;this.currentTarget=F;F=C.relatedTarget;F||(G=="mouseover"?F=C.fromElement:G=="mouseout"&&(F=C.toElement));this.relatedTarget=F;V?(this.clientX=V.clientX!==void 0?V.clientX:V.pageX,this.clientY=V.clientY!==void 0?V.clientY:V.pageY,this.screenX=V.screenX||0,this.screenY=V.screenY||0):(this.offsetX=_.Do||C.offsetX!==void 0?C.offsetX:C.layerX,
this.offsetY=_.Do||C.offsetY!==void 0?C.offsetY:C.layerY,this.clientX=C.clientX!==void 0?C.clientX:C.pageX,this.clientY=C.clientY!==void 0?C.clientY:C.pageY,this.screenX=C.screenX||0,this.screenY=C.screenY||0);this.button=C.button;this.keyCode=C.keyCode||0;this.key=C.key||"";this.charCode=C.charCode||(G=="keypress"?C.keyCode:0);this.ctrlKey=C.ctrlKey;this.altKey=C.altKey;this.shiftKey=C.shiftKey;this.metaKey=C.metaKey;this.pointerId=C.pointerId||0;this.pointerType=C.pointerType;this.state=C.state;
this.timeStamp=C.timeStamp;this.event_=C;C.defaultPrevented&&_.a5.superClass_.preventDefault.call(this)};
_.a5.prototype.isButton=function(C){return this.event_.button==C};
_.a5.prototype.stopPropagation=function(){_.a5.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.a5.prototype.preventDefault=function(){_.a5.superClass_.preventDefault.call(this);var C=this.event_;C.preventDefault?C.preventDefault():C.returnValue=!1};var sXm="closure_listenable_"+(Math.random()*1E6|0),k8=function(C){return!(!C||!C[sXm])};var qqu=0;var PbG=function(C,F,G,V,J){this.listener=C;this.proxy=null;this.src=F;this.type=G;this.capture=!!V;this.handler=J;this.key=++qqu;this.removed=this.callOnce=!1},gKP=function(C){C.removed=!0;
C.listener=null;C.proxy=null;C.src=null;C.handler=null};lz.prototype.add=function(C,F,G,V,J){var b=C.toString();C=this.listeners[b];C||(C=this.listeners[b]=[],this.typeCount_++);var z=RlO(C,F,V,J);z>-1?(F=C[z],G||(F.callOnce=!1)):(F=new PbG(F,this.src,b,!!V,J),F.callOnce=G,C.push(F));return F};
lz.prototype.remove=function(C,F,G,V){C=C.toString();if(!(C in this.listeners))return!1;var J=this.listeners[C];F=RlO(J,F,G,V);return F>-1?(gKP(J[F]),_.BIT(J,F),J.length==0&&(delete this.listeners[C],this.typeCount_--),!0):!1};
var Yqr=function(C,F){var G=F.type;if(!(G in C.listeners))return!1;var V=_.qf(C.listeners[G],F);V&&(gKP(F),C.listeners[G].length==0&&(delete C.listeners[G],C.typeCount_--));return V};
lz.prototype.removeAll=function(C){C=C&&C.toString();var F=0,G;for(G in this.listeners)if(!C||G==C){for(var V=this.listeners[G],J=0;J<V.length;J++)++F,gKP(V[J]);delete this.listeners[G];this.typeCount_--}return F};
lz.prototype.getListener=function(C,F,G,V){C=this.listeners[C.toString()];var J=-1;C&&(J=RlO(C,F,G,V));return J>-1?C[J]:null};
lz.prototype.hasListener=function(C,F){var G=C!==void 0,V=G?C.toString():"",J=F!==void 0;return _.xf.some(this.listeners,function(b){for(var z=0;z<b.length;++z)if(!(G&&b[z].type!=V||J&&b[z].capture!=F))return!0;return!1})};
var RlO=function(C,F,G,V){for(var J=0;J<C.length;++J){var b=C[J];if(!b.removed&&b.listener==F&&b.capture==!!G&&b.handler==V)return J}return-1};var T0G,oKo,r28,D02,pp$,ny,ua,jDS,m0y,CRO,UW,FN8,Kv8;T0G="closure_lm_"+(Math.random()*1E6|0);oKo={};r28=0;_.IP=function(C,F,G,V,J){if(V&&V.once)return ny(C,F,G,V,J);if(Array.isArray(F)){for(var b=0;b<F.length;b++)_.IP(C,F[b],G,V,J);return null}G=Kv8(G);return k8(C)?C.listen(F,G,_.TE(V)?!!V.capture:!!V,J):D02(C,F,G,!1,V,J)};
D02=function(C,F,G,V,J,b){if(!F)throw Error("va");var z=_.TE(J)?!!J.capture:!!J,Q=UW(C);Q||(C[T0G]=Q=new lz(C));G=Q.add(F,G,V,z,b);if(G.proxy)return G;V=pp$();G.proxy=V;V.src=C;V.listener=G;if(C.addEventListener)_.m3m||(J=z),J===void 0&&(J=!1),C.addEventListener(F.toString(),V,J);else if(C.attachEvent)C.attachEvent(m0y(F.toString()),V);else if(C.addListener&&C.removeListener)C.addListener(V);else throw Error("wa");r28++;return G};
pp$=function(){var C=CRO,F=function(G){return C.call(F.src,F.listener,G)};
return F};
ny=function(C,F,G,V,J){if(Array.isArray(F)){for(var b=0;b<F.length;b++)ny(C,F[b],G,V,J);return null}G=Kv8(G);return k8(C)?C.listenOnce(F,G,_.TE(V)?!!V.capture:!!V,J):D02(C,F,G,!0,V,J)};
_.Hd=function(C,F,G,V,J){if(Array.isArray(F))for(var b=0;b<F.length;b++)_.Hd(C,F[b],G,V,J);else V=_.TE(V)?!!V.capture:!!V,G=Kv8(G),k8(C)?C.unlisten(F,G,V,J):C&&(C=UW(C))&&(F=C.getListener(F,G,V,J))&&ua(F)};
ua=function(C){if(typeof C==="number"||!C||C.removed)return!1;var F=C.src;if(k8(F))return Yqr(F.eventTargetListeners_,C);var G=C.type,V=C.proxy;F.removeEventListener?F.removeEventListener(G,V,C.capture):F.detachEvent?F.detachEvent(m0y(G),V):F.addListener&&F.removeListener&&F.removeListener(V);r28--;(G=UW(F))?(Yqr(G,C),G.typeCount_==0&&(G.src=null,F[T0G]=null)):gKP(C);return!0};
jDS=function(C,F,G,V,J){G=Kv8(G);V=!!V;return k8(C)?C.getListener(F,G,V,J):C?(C=UW(C))?C.getListener(F,G,V,J):null:null};
m0y=function(C){return C in oKo?oKo[C]:oKo[C]="on"+C};
CRO=function(C,F){if(C.removed)C=!0;else{F=new _.a5(F,this);var G=C.listener,V=C.handler||C.src;C.callOnce&&ua(C);C=G.call(V,F)}return C};
UW=function(C){C=C[T0G];return C instanceof lz?C:null};
FN8="__closure_events_fn_"+(Math.random()*1E9>>>0);Kv8=function(C){if(typeof C==="function")return C;C[FN8]||(C[FN8]=function(F){return C.handleEvent(F)});
return C[FN8]};_.lT=function(){_.hV.call(this);this.eventTargetListeners_=new lz(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.RE(_.lT,_.hV);_.lT.prototype[sXm]=!0;_.n=_.lT.prototype;_.n.setParentEventTarget=function(C){this.parentEventTarget_=C};
_.n.addEventListener=function(C,F,G,V){_.IP(this,C,F,G,V)};
_.n.removeEventListener=function(C,F,G,V){_.Hd(this,C,F,G,V)};
_.n.dispatchEvent=function(C){var F,G=this.parentEventTarget_;if(G)for(F=[];G;G=G.parentEventTarget_)F.push(G);G=this.actualEventTarget_;var V=C.type||C;if(typeof C==="string")C=new _.tP(C,G);else if(C instanceof _.tP)C.target=C.target||G;else{var J=C;C=new _.tP(V,G);_.xf.extend(C,J)}J=!0;var b;if(F)for(b=F.length-1;!C.propagationStopped_&&b>=0;b--){var z=C.currentTarget=F[b];J=GFl(z,V,!0,C)&&J}C.propagationStopped_||(z=C.currentTarget=G,J=GFl(z,V,!0,C)&&J,C.propagationStopped_||(J=GFl(z,V,!1,C)&&
J));if(F)for(b=0;!C.propagationStopped_&&b<F.length;b++)z=C.currentTarget=F[b],J=GFl(z,V,!1,C)&&J;return J};
_.n.disposeInternal=function(){_.lT.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.n.listen=function(C,F,G,V){return this.eventTargetListeners_.add(String(C),F,!1,G,V)};
_.n.listenOnce=function(C,F,G,V){return this.eventTargetListeners_.add(String(C),F,!0,G,V)};
_.n.unlisten=function(C,F,G,V){return this.eventTargetListeners_.remove(String(C),F,G,V)};
_.n.removeAllListeners=function(C){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(C):0};
var GFl=function(C,F,G,V){F=C.eventTargetListeners_.listeners[String(F)];if(!F)return!0;F=F.concat();for(var J=!0,b=0;b<F.length;++b){var z=F[b];if(z&&!z.removed&&z.capture==G){var Q=z.listener,E=z.handler||z.src;z.callOnce&&Yqr(C.eventTargetListeners_,z);J=Q.call(E,V)!==!1&&J}}return J&&!V.defaultPrevented};
_.lT.prototype.getListener=function(C,F,G,V){return this.eventTargetListeners_.getListener(String(C),F,G,V)};
_.lT.prototype.hasListener=function(C,F){return this.eventTargetListeners_.hasListener(C!==void 0?String(C):void 0,F)};var yW=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(C){return C&&AsyncContext.Snapshot.wrap(C)}:function(C){return C};var V_S=function(C,F){this.create_=C;this.reset_=F;this.occupants_=0;this.JSC$9757_head_=null};
V_S.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var C=this.JSC$9757_head_;this.JSC$9757_head_=C.next;C.next=null}else C=this.create_();return C};
V_S.prototype.put=function(C){this.reset_(C);this.occupants_<100&&(this.occupants_++,C.next=this.JSC$9757_head_,this.JSC$9757_head_=C)};var iW$=function(){this.workTail_=this.workHead_=null};
iW$.prototype.add=function(C,F){var G=$eq.get();G.set(C,F);this.workTail_?this.workTail_.next=G:this.workHead_=G;this.workTail_=G};
iW$.prototype.remove=function(){var C=null;this.workHead_&&(C=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),C.next=null);return C};
var $eq=new V_S(function(){return new Jgm},function(C){return C.reset()}),Jgm=function(){this.next=this.scope=this.fn=null};
Jgm.prototype.set=function(C,F){this.fn=C;this.scope=F;this.next=null};
Jgm.prototype.reset=function(){this.next=this.scope=this.fn=null};var $4o,bDw,Jyf,bWu;bDw=!1;Jyf=new iW$;_.Zf=function(C,F){$4o||bWu();bDw||($4o(),bDw=!0);Jyf.add(C,F)};
bWu=function(){var C=Promise.resolve(void 0);$4o=function(){C.then(nUB)}};var nnu=function(C){C.prototype.$goog_Thenable=!0},uFS=function(C){if(!C)return!1;
try{return!!C.$goog_Thenable}catch(F){return!1}};var z7G,QD$,IN$,WNG,t_E,aNu,lN8,Ni$,M_m,XQ8,bni;_.N1=function(C,F){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(C!=_.t8)try{var G=this;C.call(F,function(V){G.resolve_(2,V)},function(V){G.resolve_(3,V)})}catch(V){this.resolve_(3,V)}};
z7G=function(){this.next=this.context=this.JSC$9768_onRejected=this.JSC$9768_onFulfilled=this.child=null;this.always=!1};
z7G.prototype.reset=function(){this.context=this.JSC$9768_onRejected=this.JSC$9768_onFulfilled=this.child=null;this.always=!1};
QD$=new V_S(function(){return new z7G},function(C){C.reset()});
IN$=function(C,F,G){var V=QD$.get();V.JSC$9768_onFulfilled=C;V.JSC$9768_onRejected=F;V.context=G;return V};
_.mE=function(C){if(C instanceof _.N1)return C;var F=new _.N1(_.t8);F.resolve_(2,C);return F};
_.W6=function(C){return new _.N1(function(F,G){G(C)})};
WNG=function(C,F,G){EnS(C,F,G,null)||_.Zf(_.$B(F,C))};
_.NX=function(C){return new _.N1(function(F,G){var V=C.length,J=[];if(V)for(var b=function(t,k){V--;J[t]=k;V==0&&F(J)},z=function(t){G(t)},Q,E=0;E<C.length;E++)Q=C[E],WNG(Q,_.$B(b,E),z);
else F(J)})};
t_E=function(C){return new _.N1(function(F){var G=C.length,V=[];if(G)for(var J=function(Q,E,t){G--;V[Q]=E?{fulfilled:!0,value:t}:{fulfilled:!1,reason:t};G==0&&F(V)},b,z=0;z<C.length;z++)b=C[z],WNG(b,_.$B(J,z,!0),_.$B(J,z,!1));
else F(V)})};
aNu=function(C){return new _.N1(function(F,G){var V=C.length,J=[];if(V)for(var b=function(t){F(t)},z=function(t,k){V--;
J[t]=k;V==0&&G(J)},Q,E=0;E<C.length;E++)Q=C[E],WNG(Q,b,_.$B(z,E));
else F(void 0)})};
_.hM=function(){var C,F,G=new _.N1(function(V,J){C=V;F=J});
return new kFm(G,C,F)};
_.N1.prototype.then=function(C,F,G){return U48(this,yW(typeof C==="function"?C:null),yW(typeof F==="function"?F:null),G)};
nnu(_.N1);lN8=function(C,F,G,V){HWP(C,IN$(F||_.t8,G||null,V))};
_.OW=function(C,F){F=yW(F);F=IN$(F,F);F.always=!0;HWP(C,F);return C};
_.N1.prototype.finally=function(C){var F=this;C=yW(C);return new _.N1(function(G,V){lN8(F,function(J){C();G(J)},function(J){C();
V(J)})})};
_.N1.prototype.thenCatch=function(C,F){return U48(this,null,yW(C),F)};
_.N1.prototype.catch=_.N1.prototype.thenCatch;_.N1.prototype.cancel=function(C){if(this.state_==0){var F=new _.Op(C);_.Zf(function(){ygm(this,F)},this)}};
var ygm=function(C,F){if(C.state_==0)if(C.parent_){var G=C.parent_;if(G.callbackEntries_){for(var V=0,J=null,b=null,z=G.callbackEntries_;z&&(z.always||(V++,z.child==C&&(J=z),!(J&&V>1)));z=z.next)J||(b=z);J&&(G.state_==0&&V==1?ygm(G,F):(b?(V=b,V.next==G.callbackEntriesTail_&&(G.callbackEntriesTail_=V),V.next=V.next.next):ZW$(G),Ni$(G,J,3,F)))}C.parent_=null}else C.resolve_(3,F)},HWP=function(C,F){C.callbackEntries_||C.state_!=2&&C.state_!=3||OWP(C);
C.callbackEntriesTail_?C.callbackEntriesTail_.next=F:C.callbackEntries_=F;C.callbackEntriesTail_=F},U48=function(C,F,G,V){var J=IN$(null,null,null);
J.child=new _.N1(function(b,z){J.JSC$9768_onFulfilled=F?function(Q){try{var E=F.call(V,Q);b(E)}catch(t){z(t)}}:b;
J.JSC$9768_onRejected=G?function(Q){try{var E=G.call(V,Q);E===void 0&&Q instanceof _.Op?z(Q):b(E)}catch(t){z(t)}}:z});
J.child.parent_=C;HWP(C,J);return J.child};
_.N1.prototype.unblockAndFulfill_=function(C){this.state_=0;this.resolve_(2,C)};
_.N1.prototype.unblockAndReject_=function(C){this.state_=0;this.resolve_(3,C)};
_.N1.prototype.resolve_=function(C,F){this.state_==0&&(this===F&&(C=3,F=new TypeError("xa")),this.state_=1,EnS(F,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=F,this.state_=C,this.parent_=null,OWP(this),C!=3||F instanceof _.Op||XQ8(this,F)))};
var EnS=function(C,F,G,V){if(C instanceof _.N1)return lN8(C,F,G,V),!0;if(uFS(C))return C.then(F,G,V),!0;if(_.TE(C))try{var J=C.then;if(typeof J==="function")return wQ2(C,J,F,G,V),!0}catch(b){return G.call(V,b),!0}return!1},wQ2=function(C,F,G,V,J){var b=!1,z=function(E){b||(b=!0,G.call(J,E))},Q=function(E){b||(b=!0,V.call(J,E))};
try{F.call(C,z,Q)}catch(E){Q(E)}},OWP=function(C){C.executing_||(C.executing_=!0,_.Zf(C.executeCallbacks_,C))},ZW$=function(C){var F=null;
C.callbackEntries_&&(F=C.callbackEntries_,C.callbackEntries_=F.next,F.next=null);C.callbackEntries_||(C.callbackEntriesTail_=null);return F};
_.N1.prototype.executeCallbacks_=function(){for(var C;C=ZW$(this);)Ni$(this,C,this.state_,this.result_);this.executing_=!1};
Ni$=function(C,F,G,V){if(G==3&&F.JSC$9768_onRejected&&!F.always)for(;C&&C.hadUnhandledRejection_;C=C.parent_)C.hadUnhandledRejection_=!1;if(F.child)F.child.parent_=null,M_m(F,G,V);else try{F.always?F.JSC$9768_onFulfilled.call(F.context):M_m(F,G,V)}catch(J){bni.call(null,J)}QD$.put(F)};
M_m=function(C,F,G){F==2?C.JSC$9768_onFulfilled.call(C.context,G):C.JSC$9768_onRejected&&C.JSC$9768_onRejected.call(C.context,G)};
XQ8=function(C,F){C.hadUnhandledRejection_=!0;_.Zf(function(){C.hadUnhandledRejection_&&bni.call(null,F)})};
bni=iZ;_.Op=function(C){_.FS.call(this,C)};
_.RE(_.Op,_.FS);_.Op.prototype.name="cancel";var kFm=function(C,F,G){this.promise=C;this.resolve=F;this.reject=G};var X3;_.UH=function(C,F){_.lT.call(this);this.JSC$9780_interval_=C||1;this.timerObject_=F||_.VT;this.boundTick_=(0,_.ck)(this.tick_,this);this.last_=_.gp()};
_.RE(_.UH,_.lT);_.n=_.UH.prototype;_.n.enabled=!1;_.n.JSC$9782_timer_=null;_.n.setInterval=function(C){this.JSC$9780_interval_=C;this.JSC$9782_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9782_timer_&&this.stop()};
_.n.tick_=function(){if(this.enabled){var C=_.gp()-this.last_;C>0&&C<this.JSC$9780_interval_*.8?this.JSC$9782_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9780_interval_-C):(this.JSC$9782_timer_&&(this.timerObject_.clearTimeout(this.JSC$9782_timer_),this.JSC$9782_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.n.start=function(){this.enabled=!0;this.JSC$9782_timer_||(this.JSC$9782_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9780_interval_),this.last_=_.gp())};
_.n.stop=function(){this.enabled=!1;this.JSC$9782_timer_&&(this.timerObject_.clearTimeout(this.JSC$9782_timer_),this.JSC$9782_timer_=null)};
_.n.disposeInternal=function(){_.UH.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
X3=function(C,F,G){if(typeof C==="function")G&&(C=(0,_.ck)(C,G));else if(C&&typeof C.handleEvent=="function")C=(0,_.ck)(C.handleEvent,C);else throw Error("ya");return Number(F)>2147483647?-1:_.VT.setTimeout(C,F||0)};
_.S0m=function(C){var F=null;return(new _.N1(function(G,V){F=X3(function(){G(void 0)},C);
F==-1&&V(Error("za"))})).thenCatch(function(G){_.VT.clearTimeout(F);
throw G;})};var OD=function(C){_.hV.call(this);this.streamzLogger=C;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9786_flushTimer=new _.UH(this.flushInterval);this.JSC$9786_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.Nd(this,this.JSC$9786_flushTimer)};
_.O(OD,_.hV);OD.prototype.sendIsolatedPayload=function(C){this.shouldSendIsolatedPayload=C;this.invocationLimit=1};
var LNl=function(C){C.JSC$9786_flushTimer.enabled||C.JSC$9786_flushTimer.start();C.invocationCount++;C.invocationCount>=C.invocationLimit&&C.snapshotAndFlush()};
OD.prototype.snapshotAndFlush=function(){var C=this.metricMap.values();C=[].concat(_.da(C)).filter(function(F){return F.cellMap.size});
C.length&&this.streamzLogger.flush(C,this.shouldSendIsolatedPayload);Bi2(C);this.invocationCount=0;this.JSC$9786_flushTimer.enabled&&this.JSC$9786_flushTimer.stop()};
OD.prototype.addNewCounter=function(C){var F=_.Rn.apply(1,arguments);this.metricMap.has(C)||this.metricMap.set(C,new d07(C,F))};
OD.prototype.addNewEventMetric=function(C){var F=_.Rn.apply(1,arguments);this.metricMap.has(C)||this.metricMap.set(C,new x0l(C,F))};
var vny=function(C,F){return C.disabledMetrics.has(F)?void 0:C.metricMap.get(F)};
OD.prototype.JSC$9786_incrementCounter=function(C){this.JSC$9786_incrementCounterBy(C,1,_.Rn.apply(1,arguments))};
OD.prototype.JSC$9786_incrementCounterBy=function(C,F){var G=_.Rn.apply(2,arguments),V=vny(this,C);V&&V instanceof d07&&(V.JSC$9725_incrementCounterBy(F,G),LNl(this))};
OD.prototype.record=function(C,F){var G=_.Rn.apply(2,arguments),V=vny(this,C);V&&V instanceof x0l&&(V.record(F,G),LNl(this))};
var Bi2=function(C){for(var F=0;F<C.length;F++)C[F].clear()};_.w1=function(C,F,G){G=G===void 0?{}:G;F=Error.call(this,F);this.message=F.message;"stack"in F&&(this.stack=F.stack);this.code=C;this.metadata=G;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.O(_.w1,Error);_.w1.prototype.toString=function(){var C="RpcError("+(zB9(this.code)||String(this.code))+")";this.message&&(C+=": "+this.message);return C};_.fNS=_.VT.JSON.parse;_.MX=_.VT.JSON.stringify;_.ao=_.VT.JSON.parse;_.h7S=function(C){switch(C){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 cgE=function(C){switch(C){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var Agl,e77=function(){};
_.RE(e77,_.Q8Z);e77.prototype.createInstance=function(){return new XMLHttpRequest};
Agl=new e77;_.SL=function(C){_.lT.call(this);this.headers=new Map;this.JSC$9795_xmlHttpFactory_=C||null;this.JSC$9795_active_=!1;this.JSC$9795_xhr_=null;this.JSC$9795_lastUri_="";this.JSC$9795_lastErrorCode_=0;this.JSC$9795_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9795_timeoutId_=null;this.responseType_="";this.JSC$9795_withCredentials_=!1};
_.RE(_.SL,_.lT);var d4E=/^https?$/i,x4r=["POST","PUT"],sDO=[],T3S=function(C,F,G,V,J,b,z){var Q=new _.SL;sDO.push(Q);F&&Q.listen("complete",F);Q.listenOnce("ready",Q.cleanupSend_);b&&(Q.timeoutInterval_=Math.max(0,b));z&&(Q.JSC$9795_withCredentials_=z);Q.send(C,G,V,J)};
_.SL.prototype.cleanupSend_=function(){this.dispose();_.qf(sDO,this)};
_.SL.prototype.send=function(C,F,G,V){if(this.JSC$9795_xhr_)throw Error("Aa`"+this.JSC$9795_lastUri_+"`"+C);F=F?F.toUpperCase():"GET";this.JSC$9795_lastUri_=C;this.JSC$9795_lastError_="";this.JSC$9795_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9795_active_=!0;this.JSC$9795_xhr_=this.createXhr();this.JSC$9795_xhr_.onreadystatechange=yW((0,_.ck)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9795_xhr_.open(F,String(C),!0),this.inOpen_=!1}catch(z){q07(this,z);return}C=G||"";G=new Map(this.headers);
if(V)if(Object.getPrototypeOf(V)===Object.prototype)for(var J in V)G.set(J,V[J]);else if(typeof V.keys==="function"&&typeof V.get==="function"){J=_.u(V.keys());for(var b=J.next();!b.done;b=J.next())b=b.value,G.set(b,V.get(b))}else throw Error("Ba`"+String(V));V=Array.from(G.keys()).find(function(z){return"content-type"==z.toLowerCase()});
J=_.VT.FormData&&C instanceof _.VT.FormData;!_.sB(x4r,F)||V||J||G.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");F=_.u(G);for(V=F.next();!V.done;V=F.next())G=_.u(V.value),V=G.next().value,G=G.next().value,this.JSC$9795_xhr_.setRequestHeader(V,G);this.responseType_&&(this.JSC$9795_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9795_xhr_&&this.JSC$9795_xhr_.withCredentials!==this.JSC$9795_withCredentials_&&(this.JSC$9795_xhr_.withCredentials=this.JSC$9795_withCredentials_);
try{this.JSC$9795_timeoutId_&&(clearTimeout(this.JSC$9795_timeoutId_),this.JSC$9795_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9795_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9795_xhr_.send(C),this.inSend_=!1}catch(z){q07(this,z)}};
_.SL.prototype.createXhr=function(){return this.JSC$9795_xmlHttpFactory_?this.JSC$9795_xmlHttpFactory_.createInstance():Agl.createInstance()};
_.SL.prototype.timeout_=function(){typeof FWu!="undefined"&&this.JSC$9795_xhr_&&(this.JSC$9795_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9795_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var q07=function(C,F){C.JSC$9795_active_=!1;C.JSC$9795_xhr_&&(C.inAbort_=!0,C.JSC$9795_xhr_.abort(),C.inAbort_=!1);C.JSC$9795_lastError_=F;C.JSC$9795_lastErrorCode_=5;PR7(C);gnu(C)},PR7=function(C){C.errorDispatched_||(C.errorDispatched_=!0,C.dispatchEvent("complete"),C.dispatchEvent("error"))};
_.SL.prototype.abort=function(C){this.JSC$9795_xhr_&&this.JSC$9795_active_&&(this.JSC$9795_active_=!1,this.inAbort_=!0,this.JSC$9795_xhr_.abort(),this.inAbort_=!1,this.JSC$9795_lastErrorCode_=C||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),gnu(this))};
_.SL.prototype.disposeInternal=function(){this.JSC$9795_xhr_&&(this.JSC$9795_active_&&(this.JSC$9795_active_=!1,this.inAbort_=!0,this.JSC$9795_xhr_.abort(),this.inAbort_=!1),gnu(this,!0));_.SL.superClass_.disposeInternal.call(this)};
_.SL.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)R7G(this);else this.onReadyStateChangeEntryPoint_()};
_.SL.prototype.onReadyStateChangeEntryPoint_=function(){R7G(this)};
var R7G=function(C){if(C.JSC$9795_active_&&typeof FWu!="undefined")if(C.inSend_&&_.LC(C)==4)setTimeout(C.onReadyStateChange_.bind(C),0);else if(C.dispatchEvent("readystatechange"),C.isComplete()){C.JSC$9795_active_=!1;try{if(C.isSuccess())C.dispatchEvent("complete"),C.dispatchEvent("success");else{C.JSC$9795_lastErrorCode_=6;try{var F=_.LC(C)>2?C.JSC$9795_xhr_.statusText:""}catch(G){F=""}C.JSC$9795_lastError_=F+" ["+C.getStatus()+"]";PR7(C)}}finally{gnu(C)}}},gnu=function(C,F){if(C.JSC$9795_xhr_){C.JSC$9795_timeoutId_&&
(clearTimeout(C.JSC$9795_timeoutId_),C.JSC$9795_timeoutId_=null);
var G=C.JSC$9795_xhr_;C.JSC$9795_xhr_=null;F||C.dispatchEvent("ready");try{G.onreadystatechange=null}catch(V){}}};
_.SL.prototype.isActive=function(){return!!this.JSC$9795_xhr_};
_.SL.prototype.isComplete=function(){return _.LC(this)==4};
_.SL.prototype.isSuccess=function(){var C=this.getStatus(),F;if(!(F=cgE(C))){if(C=C===0)C=Kir(String(this.JSC$9795_lastUri_)),C=!d4E.test(C);F=C}return F};
_.LC=function(C){return C.JSC$9795_xhr_?C.JSC$9795_xhr_.readyState:0};
_.n=_.SL.prototype;_.n.getStatus=function(){try{return _.LC(this)>2?this.JSC$9795_xhr_.status:-1}catch(C){return-1}};
_.n.getResponseText=function(){try{return this.JSC$9795_xhr_?this.JSC$9795_xhr_.responseText:""}catch(C){return""}};
_.n.getResponse=function(){try{if(!this.JSC$9795_xhr_)return null;if("response"in this.JSC$9795_xhr_)return this.JSC$9795_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9795_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9795_xhr_)return this.JSC$9795_xhr_.mozResponseArrayBuffer}return null}catch(C){return null}};
_.n.getAllResponseHeaders=function(){return this.JSC$9795_xhr_&&_.LC(this)>=2?this.JSC$9795_xhr_.getAllResponseHeaders()||"":""};
_.n.getLastError=function(){return typeof this.JSC$9795_lastError_==="string"?this.JSC$9795_lastError_:String(this.JSC$9795_lastError_)};var tPq=function(){};
tPq.prototype.send=function(C,F,G){F=F===void 0?function(){}:F;
G=G===void 0?function(){}:G;
T3S(C.url,function(V){V=V.target;V.isSuccess()?F(V.getResponseText()):G(V.getStatus())},C.requestType,C.body,C.requestHeaders,C.timeoutMillis,C.withCredentials)};
tPq.prototype.getTransmissionType=function(){return 1};var Y0G=function(C,F){this.xf2=C;this.event=F;this.startTime=X_()},yyZ;
Y0G.prototype.done=function(){this.xf2.hk(this.event,X_()-this.startTime)};
var Bd=function(){GY.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.O(Bd,GY);_.vd=function(C,F,G){var V=X_();F=F();C.hk(G,X_()-V);return F};
yyZ=function(){Bd.apply(this,arguments)};
_.O(yyZ,Bd);_.n=yyZ.prototype;_.n.hNt=function(){};
_.n.dk=function(){};
_.n.hk=function(){};
_.n.logError=function(){};
_.n.r9=function(){};
_.n.dgG=function(){};
_.n.biC=function(){};
_.n.oLv=function(){};
var TiS=function(C){Bd.call(this);var F=this;this.e2=C;this.TEST_ONLY={phH:function(){return F.e2},
getExperimentIds:function(){return F.e2.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void F.e2.dispose()})};
_.O(TiS,Bd);_.n=TiS.prototype;_.n.update=function(C){this.e2.dispose();this.e2=C};
_.n.dk=function(C){this.e2.dk(C)};
_.n.hk=function(C,F){this.e2.hk(C,F)};
_.n.logError=function(C){this.e2.logError(C)};
_.n.r9=function(){this.e2.r9()};
_.n.dgG=function(C){this.e2.dgG(C)};
_.n.biC=function(C){this.e2.biC(C)};
_.n.oLv=function(C){this.e2.oLv(C)};
_.n.hNt=function(C){this.e2.hNt(C)};
var on2=function(C,F){_.hV.call(this);var G=this;this.callback=C;this.sJ9=F;this.z7o=-F;this.addOnDisposeCallback(function(){return void clearTimeout(G.timer)})};
_.O(on2,_.hV);var rgG=function(C){if(C.timer===void 0){var F=Math.max(0,C.z7o+C.sJ9-X_());C.timer=setTimeout(function(){try{C.callback()}finally{C.z7o=X_(),C.timer=void 0}},F)}},KNP=function(C,F){Bd.call(this);
this.metrics=C;this.qx=F};
_.O(KNP,Bd);_.n=KNP.prototype;_.n.hNt=function(C){this.metrics.uES.record(C,this.qx)};
_.n.dk=function(C){this.metrics.eventCount.increment(C,this.qx)};
_.n.hk=function(C,F){this.metrics.dPn.record(F,C,this.qx)};
_.n.logError=function(C){this.metrics.errorCount.increment(C,this.qx)};
_.n.dgG=function(C){this.metrics.n1I.increment(C,this.qx)};
_.n.biC=function(C){this.metrics.kGj.increment(C,this.qx)};
_.n.oLv=function(C){this.metrics.rnS.increment(C,this.qx)};
var ZD5=function(C,F){F=F===void 0?[]:F;var G={qx:C.qx||"_",oat:C.oat||[],f2l:C.f2l|0,destinationUrl:C.destinationUrl,ioC:C.ioC||function(){},
kV8:C.kV8||function(b,z){return l9f(b,z,G.ioC,G.destinationUrl)}},V=G.kV8("51",G.oat.concat(F));
KNP.call(this,{uES:new BGy(V),errorCount:new cV2(V),eventCount:new faO(V),dPn:new hnG(V),hzg:new vd7(V),n1I:new AV7(V),kGj:new enO(V),rnS:new dd$(V)},G.qx);var J=this;this.TEST_ONLY={getExperimentIds:function(){return J.options.oat.concat(J.h0k).sort(function(b,z){return b-z})}};
this.options=G;this.service=V;this.nM5=!C.kV8;this.flushDebouncer=new on2(function(){return void J.service.snapshotAndFlush()},G.f2l);
this.addOnDisposeCallback(function(){J.flushDebouncer.dispose();J.nM5&&J.service.dispose()});
(this.h0k=F.slice()).sort(_.csI)};
_.O(ZD5,KNP);ZD5.prototype.r9=function(){rgG(this.flushDebouncer)};var erA=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(erA,_.b0);_.dNS=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(_.dNS,_.b0);var SZ=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C,0,SZ.messageId)};
_.O(SZ,_.b0);var D4O=_.T9B(SZ);SZ.messageId="bfkj";var rgq=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(rgq,_.b0);var pQr=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(pQr,_.b0);var m4u=_.Z0(pQr);_.Cd=function(){var C=this;this.promise=new Promise(function(F,G){C.resolve=F;C.reject=G})};_.fC=function(C){_.hV.call(this);var F=this;this.yZb=Math.floor(Math.random()*200);this.g2u=new pQr;if("challenge"in C&&D4O(C.challenge)){var G=_.a3(C.challenge,4,void 0,hO);var V=_.a3(C.challenge,5,void 0,hO);_.a3(C.challenge,7,void 0,hO)&&(this.g2u=m4u(_.a3(C.challenge,7,void 0,hO)))}else G=C.program,V=C.globalName;this.addOnDisposeCallback(function(){var N,S,f;return _.I(function(c){if(c.nextAddress==1)return c.yield(F.cku,2);N=c.yieldResult;S=N.gcH;(f=S)==null||f();_.S9(c)})});
this.tE=Nj9(C.c9C||{},this.g2u);_.Nd(this,this.tE);var J=new _.Cd;this.cku=J.promise;this.tE.dk("t");var b=this.tE.share(),z=new Y0G(b,"t"),Q=function(N,S,f,c){if(!F.tE.isDisposed()){var A="k";S?A="h":f&&(A="u");A!=="k"?c!==0&&(F.tE.dk(A),F.tE.hk(A,N)):F.yZb<=0?(F.tE.dk(A),F.tE.hk(A,N),F.yZb=Math.floor(Math.random()*200)):F.yZb--}},E=function(N,S,f,c){Promise.resolve().then(function(){z.done();
b.r9();b.dispose();J.resolve({hE2:N,gcH:S,yoH:f,onP:c})})};
if(!_.VT[V])throw this.tE.logError(25),Error("Ca");if(!_.VT[V].a)throw this.tE.logError(26),Error("Da");try{var t=_.VT[V].a;V=[];for(var k=[],U=KN9(this.g2u),H=0;H<U.length;H++)V.push(U[H]),k.push(1);var l=D4s(this.g2u);for(U=0;U<l.length;U++)V.push(l[U]),k.push(2);this.igH=_.u(t(G,E,!0,C.eyQ,Q,[V,k],_.a3(this.g2u,5),!1)).next().value;this.ye1=J.promise.then(function(){})}catch(N){throw this.tE.logError(28),N;
}};
_.O(_.fC,_.hV);_.fC.prototype.snapshot=function(C){if(this.isDisposed())throw Error("Ea");this.tE.dk("n");var F=this.tE.share();return this.cku.then(function(G){var V=G.hE2;return new Promise(function(J){var b=new Y0G(F,"n");V(function(z){b.done();F.hNt(z.length);F.r9();F.dispose();J(z)},[C.aC,
C.j6S,C.b3x,C.k4H])})})};
_.fC.prototype.oX8=function(C){this.cku.then(function(F){var G;(G=F.yoH)==null||G(C)})};
_.fC.prototype.udX=function(C,F){return this.cku.then(function(G){var V;return(V=G.onP)==null?void 0:V(C,F,!1)})};
_.fC.prototype.qVX=function(){return this.tE.share()};var CHE=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(CHE,_.b0);var UkI=_.T9B(CHE);var j8S=function(){this.promises={};this.vkF=null},Fxu=function(){j8S.instance||(j8S.instance=new j8S);
return j8S.instance},VPG=function(C,F){return GNE(C,_.aa(F,erA,1,hO),_.aa(F,_.dNS,2,hO),_.a3(F,3,void 0,hO))},GNE=function(C,F,G,V){if(!F&&!G)return Promise.resolve();
if(!V)return SwS(F,G);var J;(J=C.promises)[V]||(J[V]=new Promise(function(b,z){SwS(F,G).then(function(){C.vkF=V;b()},function(Q){delete C.promises[V];
z(Q)})}));
return C.promises[V]};var iD$=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(iD$,_.b0);var Jyo=function(C,F){return _.L3(C,1,F)},$eG=function(C,F){return _.L3(C,2,F)};var hP=function(C){_.hV.call(this);var F=this;this.options=C;this.awJ=new _.Cd;this.ye1=this.awJ.promise;this.eaC=new _.Cd;this.ipN=1;this.bgI=new _.Cd;this.rhC=[];this.lBu=C.lBu||function(){};
this.dFu=new TiS(Nj9(C.c9C||{}));bDl(this,C.wF,C.xFn,C.kir,C.bNJ,Object.assign({},nUm,C.aJG||{}));this.addOnDisposeCallback(function(){return void u$2(F)})};
_.O(hP,_.hV);hP.prototype.snapshot=function(C){var F=this;return _.I(function(G){switch(G.nextAddress){case 1:if(F.isDisposed())throw Error("Ea");if(F.bZ||F.lWN){G.jumpTo(2);break}return G.yield(F.eaC.promise,2);case 2:if(!F.bZ){G.jumpTo(4);break}return G.yield(F.bZ.snapshot(C),5);case 5:return G.return(G.yieldResult);case 4:throw F.lWN;}})};
var zBP=function(C){var F;return _.I(function(G){if(C.isDisposed())throw Error("Ea");(F=C.iW)!=null&&(F.endTimeMs=0,F.resolver(1));return G.yield(C.bgI.promise,0)})},u$2=function(C){C.lWN=Error("Ga");
C.eaC.resolve();pQT(C.awJ.promise);C.awJ.reject(Error("Ga"));C.dFu.dispose();Promise.all(C.rhC).then(function(){var G;return _.I(function(V){(G=C.bZ)==null||G.dispose();C.bZ=void 0;_.S9(V)})});
C.rhC=[];var F;(F=C.iW)!=null&&(F.endTimeMs=0,F.resolver(1));pQT(C.bgI.promise);C.bgI.reject(Error("Ga"))};
hP.prototype.oX8=function(C){var F,G;(F=this.bZ)==null||(G=F.oX8)==null||G.call(F,C)};
hP.prototype.udX=function(C,F){var G,V,J;return(J=(G=this.bZ)==null?void 0:(V=G.udX)==null?void 0:V.call(G,C,F))!=null?J:Promise.resolve()};
var Q88=function(C,F){var G=C.lBu;C.lBu=function(){G();F()}},I9S=function(C,F){C.isDisposed()||(C.bZ=F,C.dFu.update(F.qVX()),C.eaC.resolve(),C.awJ.resolve(void 0),C.lBu())};
hP.prototype.handleError=function(C){if(!this.isDisposed()){this.lWN=C;this.eaC.resolve();var F,G;(G=(F=this.options).rfL)==null||G.call(F,C)}};
var EU$=function(C,F){F&&(Promise.all(C.rhC).then(function(){return void F.dispose()}),C.rhC=[])},cd=function(C,F){C.ipN=F;
var G,V;(V=(G=C.options).qEL)==null||V.call(G,F)},WxE=function(C){C.isDisposed()||(C.bgI.resolve(),C.bgI=new _.Cd)},bDl=function(C,F,G,V,J,b){V=V===void 0?Fxu():V;
J=J===void 0?Promise.resolve(void 0):J;var z,Q,E,t,k,U,H,l,N,S,f,c;_.I(function(A){switch(A.nextAddress){case 1:return A.yield(0,3);case 3:Q=null;if(!z){A.jumpTo(6);break}cd(C,7);_.yy(A,7);return A.yield(Bk(z.snapshot({}),b.nF2,function(){return Promise.resolve("E:CTO")}),9);
case 9:Q=A.yieldResult;_.Gn(A,6);break;case 7:_.wa(A),Q="E:UCE";case 6:E=void 0,t=z?b.rxT:b.nxp,k=new Hk(t,b.wun,b.puQ,b.zs5),U=1;case 10:if(!(U<=b.maxAttempts)){A.jumpTo(12);break}if(U===1){A.jumpTo(13);break}cd(C,0);C.iW=new tPG(k.getValue(),b.b6k,b.jDT);return A.yield(C.iW.promise,14);case 14:H=A.yieldResult,C.iW=void 0,H===1?(U=1,k.reset()):wpu(k);case 13:_.yy(A,15);l=void 0;if(G){l=G;A.jumpTo(17);break}cd(C,5);N=V.vkF;return A.yield(Bk(a92(F,N,Q),b.pZ5,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:l=A.yieldResult;case 17:return cd(C,3),A.yield(Bk(VPG(V,l),b.e7a,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return cd(C,8),A.yield(J,20);case 20:return S=new _.fC({challenge:l,c9C:C.options.c9C,eyQ:C.options.eyQ}),A.yield(Bk(S.ye1,b.hyZ,function(){return Promise.reject(Error("Ja"))}),21);
case 21:E=S;A.jumpTo(12);break;case 15:f=_.wa(A),C.handleError(f),WxE(C);case 11:U++;A.jumpTo(10);break;case 12:if(C.isDisposed()){A.jumpTo(5);break}E&&(G=void 0,EU$(C,z),z=E,I9S(C,E),WxE(C));cd(C,2);C.iW=new tPG(b.rC2,b.b6k,b.jDT);return A.yield(C.iW.promise,22);case 22:C.iW=void 0;if(C.isDisposed()){A.jumpTo(5);break}A.jumpTo(3);break;case 5:(c=z)==null||c.dispose(),_.S9(A)}})};
hP.prototype.qVX=function(){return this.dFu.share()};
var nUm={rC2:432E5,b6k:3E5,jDT:10,nF2:1E4,pZ5:3E4,e7a:3E4,hyZ:6E4,nxp:1E3,rxT:6E4,wun:6E5,puQ:.25,zs5:2,maxAttempts:10},tPG=function(C,F,G){var V=this;this.endTimeMs=Date.now()+C;this.promise=new Promise(function(b){V.resolver=b});
var J=function(){var b=V.endTimeMs-Date.now();b<=G?V.resolver(0):setTimeout(J,Math.min(b,F))};
J()};var kNr,vUA=(kNr=Math.imul)!=null?kNr:function(C,F){return C*F|0},vk=[196,
200,224,18],AP=function(C,F,G){G=G===void 0?[]:G;this.maxItems=C;this.j6=F===void 0?0:F;this.pX=G},Uer=function(C){var F=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!F)return new AP(C);var G=F.split(",");if(G.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new AP(C);F=G.slice(1);F.length===1&&F[0]===""&&(F=[]);G=Number(G[0]);return isNaN(G)||G<0||G>F.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new AP(C)):new AP(C,G,F)};
AP.prototype.serialize=function(){return String(this.j6)+","+this.pX.join()};
AP.prototype.insert=function(C,F){var G=void 0;if(this.pX[this.j6]!==C){var V=this.pX.indexOf(C);V!==-1?(this.pX.splice(V,1),V<this.j6&&this.j6--,this.pX.splice(this.j6,0,C)):(G=this.pX[this.j6],this.pX[this.j6]=C)}this.j6=(this.j6+1)%this.maxItems;C=Lxf("iU5q-!O9@$",this.serialize());G&&C&&F(G);return C};
var HDE=function(C,F){this.qDJ=F;try{var G=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(V){G=!1}G&&(this.index=Uer(C))},l9o=function(C,F,G,V,J){var b=C.index?_.vd(C.qDJ,function(){return Ayo(C.index,hBW(F),G,V,J)},"W"):"u";
C.qDJ.oLv(b)},yy8=function(C,F,G){var V=_.u(C.index?_.vd(C.qDJ,function(){return eB9(hBW(F),G)},"R"):["u"]),J=V.next().value;
V=V.next().value;C.qDJ.biC(J);return V};var ZDy={toString:function(C){var F=[],G=0;C-=-2147483648;F[G++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(C%52);for(C=Math.floor(C/52);C>0;)F[G++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(C%62),C=Math.floor(C/62);return F.join("")}};var XDo=function(C){C=NjP(C);for(var F=2654435769,G=2654435769,V=314159265,J=C.length,b=J,z=0,Q=function(){F-=G;F-=V;F^=V>>>13;G-=V;G-=F;G^=F<<8;V-=F;V-=G;V^=G>>>13;F-=G;F-=V;F^=V>>>12;G-=V;G-=F;G^=F<<16;V-=F;V-=G;V^=G>>>5;F-=G;F-=V;F^=V>>>3;G-=V;G-=F;G^=F<<10;V-=F;V-=G;V^=G>>>15};b>=12;b-=12,z+=12)F+=OD8(C,z),G+=OD8(C,z+4),V+=OD8(C,z+8),Q();
V+=J;switch(b){case 11:V+=C[z+10]<<24;case 10:V+=C[z+9]<<16;case 9:V+=C[z+8]<<8;case 8:G+=C[z+7]<<24;case 7:G+=C[z+6]<<16;case 6:G+=C[z+5]<<8;case 5:G+=C[z+4];case 4:F+=C[z+3]<<24;case 3:F+=C[z+2]<<16;case 2:F+=C[z+1]<<8;case 1:F+=C[z]}Q();return ZDy.toString(V)},NjP=function(C){for(var F=[],G=0;G<C.length;G++)F.push(C.charCodeAt(G));
return F},OD8=function(C,F){return C[F]+(C[F+1]<<8)+(C[F+2]<<16)+(C[F+3]<<24)};var eL=function(C){_.hV.call(this);this.lB=C;this.sCb=new _.Cd};
_.O(eL,_.hV);var wDo=function(C,F){var G=setTimeout(function(){C.sCb.resolve()},F);
C.addOnDisposeCallback(function(){return void clearTimeout(G)})};
eL.prototype.hxG=function(C,F){var G=this.nU(C);F==null||F(G);return _.vd(this.lB,function(){return _.eU(G,2)},this.d81)};
var MPm=function(C,F,G,V){return _.vd(C.lB,function(){return G?C.hxG(F,V):C.nU(F,V)},C.iqt)},SwE=function(C,F,G,V){eL.call(this,C);
this.vHY=F;this.ydY=G;this.iqt="m";this.d81="x";this.ubZ=0;wDo(this,V)};
_.O(SwE,eL);SwE.prototype.nU=function(C,F){var G=this;this.lB.dk(this.iqt);++this.ubZ>=this.ydY&&this.sCb.resolve();var V=C();C=_.vd(this.lB,function(){return G.vHY(V)},"C");
if(C===void 0)throw new jL(17,"YNJ:Undefined");if(!(C instanceof Uint8Array))throw new jL(18,"ODM:Invalid");F==null||F(C);return C};
var Lxo=function(C,F,G){eL.call(this,C);this.rbp=F;this.iqt="f";this.d81="z";wDo(this,G)};
_.O(Lxo,eL);Lxo.prototype.nU=function(){return this.rbp};
var BjG=function(C,F,G){eL.call(this,C);this.dDa=F;this.iqt="w";this.d81="z";wDo(this,G)};
_.O(BjG,eL);BjG.prototype.nU=function(){var C=this;return _.vd(this.lB,function(){return _.p9(C.dDa)},"d")};
BjG.prototype.hxG=function(){return this.dDa};
var vUu=function(C,F){eL.call(this,C);this.error=F;this.iqt="e";this.d81="y"};
_.O(vUu,eL);var f9O=function(C,F){var G=(F(C.error.message)+":"+F(C.error.stack)).substring(0,2048);F=G.length+1;G=deZ(G);var V=new Uint8Array(4+G.length);V.set([42,F&127|128,F>>7,C.error.code]);V.set(G,4);return V};
vUu.prototype.nU=function(){if(this.ycH)return this.ycH;this.ycH=f9O(this,function(C){return"_"+XDo(C)});
return f9O(this,function(C){return C})};
var hB$=function(C,F,G){eL.call(this,C);this.fVx=F;this.clientState=G;this.iqt="S";this.d81="q"};
_.O(hB$,eL);hB$.prototype.nU=function(){var C=Math.floor(Date.now()/1E3),F=[Math.random()*255,Math.random()*255],G=F.concat([this.fVx&255,this.clientState],[C>>24&255,C>>16&255,C>>8&255,C&255]);C=new Uint8Array(2+G.length);C[0]=34;C[1]=G.length;C.set(G,2);G=C.subarray(2);for(var V=F=F.length;V<G.length;++V)G[V]^=G[V%F];this.lB.dgG(this.clientState);return C};var cyu={acP:3E4,yv4:2E4},d1=function(C){_.hV.call(this);var F=this;this.paC=new _.Cd;this.l95=0;this.p9=void 0;this.state=2;this.vm=C.vm;this.wF=C.wF;this.aJG=Object.assign({},cyu,C.aJG||{});this.f3=C.vm.qVX();var G;this.onError=(G=C.onError)!=null?G:function(){};
this.nl9=C.nl9||!1;if(Ayu(C)){var V=this.vm;this.sTT=function(){return zBP(V).catch(function(z){z=F.reportError(new jL(F.bO?20:32,"TRG:Disposed",z));F.p9=z;var Q;(Q=F.bO)==null||Q.dispose();F.bO=void 0;F.paC.reject(z)})};
Q88(V,function(){return void eBP(F)});
V.ipN===2&&eBP(this)}else this.sTT=C.mTh,eBP(this);var J=this.f3.share();J.dk("o");var b=new Y0G(J,"o");this.paC.promise.then(function(){b.done();J.r9();J.dispose()},function(){return void J.dispose()});
this.addOnDisposeCallback(function(){F.bO?(F.bO.dispose(),F.bO=void 0):F.p9?F.f3.r9():(F.p9=F.reportError(new jL(32,"TNP:Disposed")),F.f3.r9(),F.paC.reject(F.p9))});
_.Nd(this,this.f3)};
_.O(d1,_.hV);d1.prototype.fM9=function(){return this.paC.promise};
var de8=function(C,F){if(!(F instanceof jL))if(F instanceof _.w1){var G=Error(F.toString());G.stack=F.stack;F=new jL(11,"EBH:Error",G)}else F=new jL(12,"BSO:Unknown",F);return C.reportError(F)},eBP=function(C){var F,G,V,J,b,z,Q,E,t,k,U,H,l,N,S;
return _.I(function(f){switch(f.nextAddress){case 1:F=void 0;C.l95++;G=new _.Cd;C.vm instanceof hP&&C.vm.rhC.push(G.promise);if(!C.nl9){f.jumpTo(2);break}V=new _.Cd;setTimeout(function(){return void V.resolve()});
return f.yield(V.promise,2);case 2:return J=C.f3.share(),_.yy(f,4,5),C.state=5,b={},z=[],f.yield(Bk(C.vm.snapshot({aC:b,b3x:z}),C.aJG.yv4,function(){return Promise.reject(new jL(15,"MDA:Timeout"))}),7);
case 7:Q=f.yieldResult;if(C.isDisposed())throw new jL(C.bO?20:32,"MDA:Disposed");E=z[0];C.state=6;return f.yield(Bk(xe2(C.wF,Q),C.aJG.acP,function(){return Promise.reject(new jL(10,"BWB:Timeout"))}),8);
case 8:t=f.yieldResult;if(C.isDisposed())throw new jL(C.bO?20:32,"BWB:Disposed");C.state=7;F=_.vd(J,function(){var A=s82(C,t,G,E);A.sCb.promise.then(function(){return void C.sTT()});
return A},"i");
case 5:_.Na(f);J.dispose();_.XG(f,6);break;case 4:k=_.wa(f);(U=F)==null||U.dispose();if(!C.p9){H=de8(C,k);G.resolve();var c;if(c=C.vm instanceof hP&&C.l95<2)a:if(k instanceof jL)c=k.code!==32&&k.code!==20&&k.code!==10;else{if(k instanceof _.w1)switch(k.code){case 2:case 13:case 14:case 4:break;default:c=!1;break a}c=!0}if(c)return l=(1+Math.random()*.25)*(C.bO?6E4:1E3),N=setTimeout(function(){return void C.sTT()},l),C.addOnDisposeCallback(function(){return void clearTimeout(N)}),f.return();
C.p9=H}J.logError(C.bO?13:14);C.paC.reject(C.p9);return f.return();case 6:C.state=8,C.l95=0,(S=C.bO)==null||S.dispose(),C.bO=F,C.paC.resolve(),_.S9(f)}})},s82=function(C,F,G,V){var J=ZPr(F,2)*1E3;
if(J<=0)throw new jL(31,"TTM:Invalid");if(_.a3(F,4))return new BjG(C.f3,_.a3(F,4),J);if(!ZPr(F,3))return new Lxo(C.f3,JOm(_.bg(F,1)),J);if(!V)throw new jL(4,"PMD:Undefined");V=V(JOm(_.bg(F,1)));if(!(V instanceof Function))throw new jL(16,"APF:Failed");C.afq=Math.floor((Date.now()+J)/1E3);C=new SwE(C.f3,V,ZPr(F,3),J);C.addOnDisposeCallback(function(){return void G.resolve()});
return C};
d1.prototype.nU=function(C){return qwP(this,Object.assign({},C),!1)};
d1.prototype.hxG=function(C){return qwP(this,Object.assign({},C),!0)};
d1.prototype.huF=function(C){if(C>150)return!1;try{return this.cache=new HDE(C,this.f3),!0}catch(F){return this.reportError(new jL(22,"GBJ:init",F)),!1}};
d1.prototype.reportError=function(C){this.f3.logError(C.code);this.onError(C);return C};
var PHr=function(C,F){F=F instanceof jL?F:new jL(5,"TVD:error",F);return C.reportError(F)},qwP=function(C,F,G){try{if(C.isDisposed())throw new jL(21,"BNT:disposed");
if(!C.bO&&C.p9)throw C.p9;var V,J;return(J=(V=gU2(C,F,G))!=null?V:RB7(C,F,G))!=null?J:Ywo(C,F,G)}catch(b){if(!F.pro)throw PHr(C,b);return Tjl(C,G,b)}},gU2=function(C,F,G){var V;
return(V=C.bO)==null?void 0:MPm(V,function(){return oUr(C,F)},G,function(J){var b;
if(C.bO instanceof SwE&&((b=F.ce)==null?0:b.tT5))try{var z;(z=C.cache)==null||l9o(z,oUr(C,F),J,F.ce.p8G,C.afq-120)}catch(Q){C.reportError(new jL(24,"ELX:write",Q))}})},RB7=function(C,F,G){var V;
if((V=F.ce)!=null&&V.lYb)try{var J,b=(J=C.cache)==null?void 0:yy8(J,oUr(C,F),F.ce.p8G);return b?G?_.vd(C.f3,function(){return _.eU(b,2)},"a"):b:void 0}catch(z){C.reportError(new jL(23,"RXO:read",z))}},Ywo=function(C,F,G){var V={stack:[],
error:void 0,hasError:!1};try{if(!F.wrY)throw new jL(29,"SDF:notready");return MPm(b9S(V,new hB$(C.f3,0,C.state)),function(){return oUr(C,F)},G)}catch(J){V.error=J,V.hasError=!0}finally{niP(V)}},Tjl=function(C,F,G){var V={stack:[],
error:void 0,hasError:!1};try{var J=PHr(C,G);return MPm(b9S(V,new vUu(C.f3,J)),function(){return[]},F)}catch(b){V.error=b,V.hasError=!0}finally{niP(V)}},oUr=function(C,F){return F.uiu?F.uiu:F.aC?_.vd(C.f3,function(){return F.uiu=deZ(F.aC)},"c"):[]},Ayu=function(C){return AO(function(F){if(!QH(F))return!1;
for(var G=_.u(Object.entries(C)),V=G.next();!V.done;V=G.next()){var J=_.u(V.value);V=J.next().value;J=J.next().value;if(!(V in F)){if(J.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!J(F[V]))return!1}return!0})}({vm:function(C){return AO(function(F){return F instanceof C})}(hP)},"");var ryl=function(){var C=_.K7();this.JSC$9913_streamzService=C;C.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",tV("cookie_enabled"),tV("cookie_3p_enabled"),_.kd("browser"))};
ryl.prototype.increment=function(C,F,G){this.JSC$9913_streamzService.JSC$9786_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",C,F,G)};
var G1W=function(){var C=_.K7();this.JSC$9937_streamzService=C;C.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",aM("tick"),tV("from_st_cookie"))};
G1W.prototype.increment=function(C,F){this.JSC$9937_streamzService.JSC$9786_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",C,F)};
var KxG=function(){var C=_.K7();this.JSC$9943_streamzService=C;C.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.kd("status"))};
KxG.prototype.increment=function(C){this.JSC$9943_streamzService.JSC$9786_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",C)};
var De7=function(){var C=_.K7();this.JSC$9946_streamzService=C;C.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.kd("stage"),tV("is_using_ytd_player"),tV("has_expandable_tiles"))};
De7.prototype.increment=function(C,F,G){this.JSC$9946_streamzService.JSC$9786_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",C,F,G)};
var pDr=function(){var C=_.K7();this.JSC$9949_streamzService=C;C.addNewCounter("/client_streamz/youtube/web/response_signature",_.kd("check_status"))};
pDr.prototype.increment=function(C){this.JSC$9949_streamzService.JSC$9786_incrementCounter("/client_streamz/youtube/web/response_signature",C)};
var meG=function(){var C=_.K7();this.JSC$9952_streamzService=C;C.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.kd("sig"),aM("de"))};
meG.prototype.increment=function(C,F){this.JSC$9952_streamzService.JSC$9786_incrementCounter("/client_streamz/youtube/web/e_sig_log",C,F)};
var CwG=function(){var C=_.K7();this.JSC$9955_streamzService=C;C.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.kd("sig"),aM("de"))};
CwG.prototype.increment=function(C,F){this.JSC$9955_streamzService.JSC$9786_incrementCounter("/client_streamz/youtube/web/e_sig_en",C,F)};
_.jau=function(){var C=_.K7();this.JSC$9958_streamzService=C;C.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.kd("action"))};
_.jau.prototype.increment=function(C){this.JSC$9958_streamzService.JSC$9786_incrementCounter("/client_streamz/youtube/web/enforcement_intent",C)};var x8=window;var FpE=(new Date).getTime();_.xf.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.xf.createSet("action","cite","data","formaction","href","manifest","poster","src");var Gnm=function(C){this.servicePromise_=C;C.then((0,_.ck)(function(){},this),function(){},this)},VM8=function(C,F,G){C.servicePromise_.then(function(V){var J=V[F];
if(!J)throw Error("Ka`"+F);return J.apply(V,G)})},$M7=function(C,F,G){for(var V=Array(arguments.length-2),J=2;J<arguments.length;J++)V[J-2]=arguments[J];
J=iOu(C,F).then(function(b){return b.apply(null,V)},function(b){b=Error("La`"+F+"`"+C+"`"+b,{cause:b});
delete Jn$[F];return _.W6(b)});
return new Gnm(J)},Jn$={},iOu=function(C,F){var G=Jn$[F];
if(G)return G;G=(G=_.mN(F))?_.mE(G):(new _.N1(function(V,J){var b=(new lG(document)).createElement("SCRIPT");b.async=!0;_.JW(b,_.LT(Fir(C)));b.onload=b.onreadystatechange=function(){b.readyState&&b.readyState!="loaded"&&b.readyState!="complete"||V()};
b.onerror=function(z){J(Error("Ma`"+F+"`"+C,{cause:z}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(b)})).then(function(){var V=_.mN(F);
if(!V)throw Error("Na`"+F+"`"+C);return V});
return Jn$[F]=G};var bOl={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},uTO=function(){var C=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=xeI(function(){return _.I(function(F){if(F.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?F.return(Promise.resolve()):F.yield(nxo(C),2);C.rsaForList.length>
0&&document.addEventListener("click",C.requestAccessForHelpPanel);_.S9(F)})});
this.requestAccessForHelpPanel=function(){if(!(C.rsaForPromises.length>0)){for(var F=_.u(C.rsaForList),G=F.next();!G.done;G=F.next()){G=G.value;try{C.rsaForPromises.push(document.requestStorageAccessFor(G))}catch(V){}}Promise.all(C.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){C.reset()})}}};
uTO.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var nxo=function(C){var F,G,V,J;return _.I(function(b){switch(b.nextAddress){case 1:F=_.u(Object.values(bOl)),G=F.next();case 2:if(G.done){b.jumpTo(0);break}V=G.value;_.yy(b,5);return b.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:V}),7);case 7:J=b.yieldResult;J.state!=="granted"&&C.rsaForList.push(V);_.Gn(b,3);break;case 5:_.wa(b);b.jumpTo(0);break;case 3:G=F.next(),b.jumpTo(2)}})};(new uTO).initialize();var z8S=function(C){this.JSC$9972_loader_=C};
z8S.prototype.startHelp=function(C){VM8(this.JSC$9972_loader_,"startHelp",arguments)};
z8S.prototype.JSC$9974_loadChatSupport=function(C){VM8(this.JSC$9972_loader_,"loadChatSupport",arguments)};
var Is2=function(C,F){F=F||{};C=$M7(Qa8,"help.service.Lazy.create",C,{apiKey:F.apiKey||F.apiKey,asxUiUri:F.asxUiUri||F.asxUiUri,environment:F.environment||F.environment,flow:F.flow||F.flow,frdProductData:F.frdProductData||F.frdProductData,frdProductDataSerializedJspb:F.frdProductDataSerializedJspb||F.frdProductDataSerializedJspb,helpCenterPath:F.helpCenterPath||F.helpCenterPath,locale:F.locale||F.locale||"en-US".replace(/-/g,"_"),nonce:F.nonce||F.nonce,productData:F.productData||F.productData,receiverUri:F.receiverUri||
F.receiverUri,renderApiUri:F.renderApiUri||F.renderApiUri,theme:F.theme||F.theme,window:F.window||F.window});return new z8S(C)},Qa8=new o1(Y4w,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var ExO=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(ExO,_.b0);var Wp8=_.Z0(ExO);var tME=[0,_.q5,hi,QLO];_.asu=new function(C,F,G,V){this.configType=C;this.flagName=G;this.defaultValue=V;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 UMm=function(){this.retriever=_.I8().resolve(kn2)};_.dJ={get payments(){return window.payments}};qw9(Node);qw9(Element);var HO2=qw9(HTMLElement);qw9(SVGElement);var lsP,yn2,g1,ZOu;lsP=function(C){return typeof C.className=="string"?C.className:C.getAttribute&&C.getAttribute("class")||""};
yn2=function(C){return C.classList?C.classList:lsP(C).match(/\S+/g)||[]};
_.sW=function(C,F){typeof C.className=="string"?C.className=F:C.setAttribute&&C.setAttribute("class",F)};
_.Pd=function(C,F){return C.classList?C.classList.contains(F):_.sB(yn2(C),F)};
_.eR=function(C,F){if(C.classList)C.classList.add(F);else if(!_.Pd(C,F)){var G=lsP(C);_.sW(C,G+(G.length>0?" "+F:F))}};
g1=function(C,F){if(C.classList)Array.prototype.forEach.call(F,function(J){_.eR(C,J)});
else{var G={};Array.prototype.forEach.call(yn2(C),function(J){G[J]=!0});
Array.prototype.forEach.call(F,function(J){G[J]=!0});
F="";for(var V in G)F+=F.length>0?" "+V:V;_.sW(C,F)}};
_.c6=function(C,F){C.classList?C.classList.remove(F):_.Pd(C,F)&&_.sW(C,Array.prototype.filter.call(yn2(C),function(G){return G!=F}).join(" "))};
ZOu=function(C,F){C.classList?Array.prototype.forEach.call(F,function(G){_.c6(C,G)}):_.sW(C,Array.prototype.filter.call(yn2(C),function(G){return!_.sB(F,G)}).join(" "))};var NTP=function(C){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=C.document},wgy=function(C,F){OOP(C);
var G=document.createElement("div"),V;(V=F.parentNode)==null||V.insertBefore(G,F);G.tabIndex=0;G.id="fc-focus-trap-pre-div";G=document.createElement("div");var J;(J=F.parentNode)==null||J.insertBefore(G,F.nextSibling);G.tabIndex=0;G.id="fc-focus-trap-post-div";var b=XgE(C,F),z=XgE(C,F,!0);b&&z&&(C.focusChangeHandler=function(){var Q=C.document.activeElement;if(Q)if(_.Kf(F,Q))C.previouslyFocusedElement=Q;else if(Q===C.document.activeElement)switch(C.previouslyFocusedElement){case b:z.focus();C.previouslyFocusedElement=
z;break;default:b.focus(),C.previouslyFocusedElement=b}},C.document.addEventListener("focus",C.focusChangeHandler,!0),C.document.addEventListener("focusin",C.focusChangeHandler))},OOP=function(C){C.focusChangeHandler&&(document.removeEventListener("focus",C.focusChangeHandler,!0),document.removeEventListener("focusin",C.focusChangeHandler),C.focusChangeHandler=null);
var F;(F=document.getElementById("fc-focus-trap-pre-div"))==null||F.remove();var G;(G=document.getElementById("fc-focus-trap-post-div"))==null||G.remove()},MM2=function(C,F,G,V,J){G=G===void 0?!0:G;
var b;J=(b=J===void 0?null:J)!=null?b:XgE(C,F,V===void 0?!1:V);J!==null&&(J.focus(),G&&wgy(C,F))};
NTP.prototype.disableButton=function(C,F){F=F===void 0?null:F;C.disabled=!0;F&&_.eR(C,F)};
var XgE=function(C,F,G){G=G===void 0?!1:G;if(u1I(F)&&!G)return F;var V=G?[].slice.call(F.children,0).reverse():F.children;V=_.u(V);for(var J=V.next();!J.done;J=V.next())if(J=J.value,HO2(J)&&(J=XgE(C,J,G)))return J;return u1I(F)&&G?F:null};var Sty=function(C){this.originalBodyOverflow="";this.JSC$9999_domHelper=vj(C)};
Sty.prototype.enableScrolling=function(){this.JSC$9999_domHelper.JSC$9325_document_.body.style.overflow=this.originalBodyOverflow};_.RE(_.AV,_.hV);_.n=_.AV.prototype;_.n.JSC$10002_id_=0;_.n.disposeInternal=function(){_.AV.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10000_listener_;delete this.handler_};
_.n.start=function(C){this.stop();this.JSC$10002_id_=X3(this.callback_,C!==void 0?C:this.JSC$10000_interval_)};
_.n.stop=function(){this.isActive()&&_.VT.clearTimeout(this.JSC$10002_id_);this.JSC$10002_id_=0};
_.n.fire=function(){this.stop();this.JSC$10002_doAction_()};
_.n.isActive=function(){return this.JSC$10002_id_!=0};
_.n.JSC$10002_doAction_=function(){this.JSC$10002_id_=0;this.JSC$10000_listener_&&this.JSC$10000_listener_.call(this.handler_)};_.ln=function(C){_.hV.call(this);this.handler_=C;this.JSC$10003_keys_={}};
_.RE(_.ln,_.hV);var Lpr=[];_.ln.prototype.listen=function(C,F,G,V){Array.isArray(F)||(F&&(Lpr[0]=F.toString()),F=Lpr);for(var J=0;J<F.length;J++){var b=_.IP(C,F[J],G||this.handleEvent,V||!1,this.handler_||this);if(!b)break;this.JSC$10003_keys_[b.key]=b}return this};
_.ln.prototype.listenOnce=function(C,F,G,V){return BTP(this,C,F,G,V)};
var BTP=function(C,F,G,V,J,b){if(Array.isArray(G))for(var z=0;z<G.length;z++)BTP(C,F,G[z],V,J,b);else{F=ny(F,G,V||C.handleEvent,J,b||C.handler_||C);if(!F)return C;C.JSC$10003_keys_[F.key]=F}return C};
_.ln.prototype.unlisten=function(C,F,G,V,J){if(Array.isArray(F))for(var b=0;b<F.length;b++)this.unlisten(C,F[b],G,V,J);else if(C=jDS(C,F,G||this.handleEvent,_.TE(V)?!!V.capture:!!V,J||this.handler_||this))ua(C),delete this.JSC$10003_keys_[C.key];return this};
_.ln.prototype.removeAll=function(){_.xf.forEach(this.JSC$10003_keys_,function(C,F){this.JSC$10003_keys_.hasOwnProperty(F)&&ua(C)},this);
this.JSC$10003_keys_={}};
_.ln.prototype.disposeInternal=function(){_.ln.superClass_.disposeInternal.call(this);this.removeAll()};
_.ln.prototype.handleEvent=function(){throw Error("Oa");};var R5=function(){_.hV.call(this);this.services_={}};
_.RE(R5,_.hV);R5.prototype.connect=function(C){C&&C()};
R5.prototype.isConnected=function(){return!0};
R5.prototype.registerService=function(C,F,G){this.services_[C]={callback:F,objectPayload:!!G}};
R5.prototype.getService=function(C,F){var G=this.services_[C];return G?G:this.defaultService_?{callback:_.$B(this.defaultService_,C),objectPayload:_.TE(F)}:null};
var vx8=function(C,F){if(F&&typeof C==="string")try{return JSON.parse(C)}catch(G){return null}else if(!F&&typeof C!=="string")return(0,_.MX)(C);return C};
R5.prototype.disposeInternal=function(){R5.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 Y8=function(C,F){this.sequence_=[];this.onCancelFunction_=C;this.defaultScope_=F||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};
Y8.prototype.cancel=function(C){if(this.fired_)this.result_ instanceof Y8&&this.result_.cancel();else{if(this.parent_){var F=this.parent_;delete this.parent_;C?F.cancel(C):(F.branches_--,F.branches_<=0&&F.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new TY(this))}};
Y8.prototype.continue_=function(C,F){this.blocked_=!1;fsm(this,C,F)};
var fsm=function(C,F,G){C.fired_=!0;C.result_=G;C.hadError_=!F;h8y(C)},Anr=function(C){if(C.fired_){if(!C.silentlyCanceled_)throw new cnS(C);
C.silentlyCanceled_=!1}};
Y8.prototype.callback=function(C){Anr(this);fsm(this,!0,C)};
Y8.prototype.errback=function(C){Anr(this);fsm(this,!1,C)};
var e8m=function(C,F,G){o5(C,F,null,G)};
Y8.prototype.finally=function(C){var F=this;return dMP(new Promise(function(G,V){o5(F,function(J){C();G(J)},function(J){C();
V(J)})}))};
var o5=function(C,F,G,V){var J=C.fired_;J||(F===G?F=G=yW(F):(F=yW(F),G=yW(G)));C.sequence_.push([F,G,V]);J&&h8y(C)};
Y8.prototype.then=function(C,F,G){var V,J,b=new _.N1(function(z,Q){J=z;V=Q});
o5(this,J,function(z){z instanceof TY?b.cancel():V(z);return xMG},this);
return b.then(C,F,G)};
nnu(Y8);var saO=function(C,F){F instanceof Y8?e8m(C,(0,_.ck)(F.branch,F)):e8m(C,function(){return F})};
Y8.prototype.branch=function(C){var F=new Y8;o5(this,F.callback,F.errback,F);C&&(F.parent_=this,this.branches_++);return F};
Y8.prototype.isError=function(C){return C instanceof Error};
var qt7=function(C){return V2(C.sequence_,function(F){return typeof F[1]==="function"})},xMG={},h8y=function(C){if(C.unhandledErrorId_&&C.fired_&&qt7(C)){var F=C.unhandledErrorId_,G=Pw8[F];
G&&(_.VT.clearTimeout(G.JSC$10020_id_),delete Pw8[F]);C.unhandledErrorId_=0}C.parent_&&(C.parent_.branches_--,delete C.parent_);F=C.result_;for(var V=G=!1;C.sequence_.length&&!C.blocked_;){var J=C.sequence_.shift(),b=J[0],z=J[1];J=J[2];if(b=C.hadError_?z:b)try{var Q=b.call(J||C.defaultScope_,F);Q===xMG&&(Q=void 0);Q!==void 0&&(C.hadError_=C.hadError_&&(Q==F||C.isError(Q)),C.result_=F=Q);if(uFS(F)||typeof _.VT.Promise==="function"&&F instanceof _.VT.Promise)V=!0,C.blocked_=!0}catch(E){F=E,C.hadError_=
!0,qt7(C)||(G=!0)}}C.result_=F;V&&(Q=(0,_.ck)(C.continue_,C,!0),V=(0,_.ck)(C.continue_,C,!1),F instanceof Y8?(o5(F,Q,V),F.blocking_=!0):F.then(Q,V));G&&(F=new gxP(F),Pw8[F.JSC$10020_id_]=F,C.unhandledErrorId_=F.JSC$10020_id_)},dMP=function(C){var F=new Y8;
C.then(function(G){F.callback(G)},function(G){F.errback(G)});
return F},cnS=function(){_.FS.call(this)};
_.RE(cnS,_.FS);cnS.prototype.message="Deferred has already fired";cnS.prototype.name="AlreadyCalledError";var TY=function(){_.FS.call(this)};
_.RE(TY,_.FS);TY.prototype.message="Deferred was canceled";TY.prototype.name="CanceledError";var gxP=function(C){this.JSC$10020_id_=_.VT.setTimeout((0,_.ck)(this.throwError,this),0);this.JSC$10020_error_=C};
gxP.prototype.throwError=function(){delete Pw8[this.JSC$10020_id_];throw this.JSC$10020_error_;};
var Pw8={};var R8l={1:"NativeMessagingTransport"},Yt2=["pu","lru","pru","lpu","ppu"],oxE=function(){for(var C=10,F=TT2,G=F.length,V="";C-- >0;)V+=F.charAt(Math.floor(Math.random()*G));return V},TT2="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var r1=function(C){_.hV.call(this);this.JSC$10023_domHelper_=C||vj()};
_.RE(r1,_.hV);r1.prototype.transportType=0;r1.prototype.getWindow=function(){return this.JSC$10023_domHelper_.getWindow()};
r1.prototype.getName=function(){return R8l[String(this.transportType)]||""};var KC=function(C,F,G,V,J){r1.call(this,G);this.JSC$10026_channel_=C;this.protocolVersion_=J||2;this.peerHostname_=F||"*";this.JSC$10026_eventHandler_=new _.ln(this);this.maybeAttemptToConnectTimer_=new _.UH(100,this.getWindow());this.oneSidedHandshake_=!!V;this.setupAckReceived_=new Y8;this.setupAckSent_=new Y8;this.JSC$10026_connected_=new Y8;this.endpointId_=oxE();this.peerEndpointId_=null;this.oneSidedHandshake_?rnm(this.JSC$10026_channel_)==1?saO(this.JSC$10026_connected_,this.setupAckReceived_):
saO(this.JSC$10026_connected_,this.setupAckSent_):(saO(this.JSC$10026_connected_,this.setupAckReceived_),this.protocolVersion_==2&&saO(this.JSC$10026_connected_,this.setupAckSent_));e8m(this.JSC$10026_connected_,this.notifyConnected_,this);this.JSC$10026_connected_.callback(!0);this.JSC$10026_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.RE(KC,r1);KC.prototype.peerProtocolVersion_=null;KC.prototype.initialized_=!1;KC.prototype.transportType=1;var KpO={};KC.prototype.sendTimerId_=0;
var mMO=function(C){var F=C.event_.data;if(typeof F!=="string")return!1;var G=F.indexOf("|"),V=F.indexOf(":");if(G==-1||V==-1)return!1;var J=F.substring(0,G);G=F.substring(G+1,V);F=F.substring(V+1);if(V=Df[J])return V.xpcDeliver(G,F,C.event_.origin),!0;V=DM2(F)[0];for(var b in Df){var z=Df[b];if(rnm(z)==1&&!z.isConnected()&&G=="tp"&&(V=="SETUP"||V=="SETUP_NTPV2")&&pgl(z,C.event_.origin))return delete Df[z.name],z.name=J,Df[J]=z,z.xpcDeliver(G,F),!0}return!1},CSr=function(C){C.protocolVersion_!=2||
C.peerProtocolVersion_!=null&&C.peerProtocolVersion_!=2||C.send("tp","SETUP_NTPV2,"+C.endpointId_);
C.peerProtocolVersion_!=null&&C.peerProtocolVersion_!=1||C.send("tp","SETUP")},j1O=function(C,F){if(C.protocolVersion_!=2||C.peerProtocolVersion_!=null&&C.peerProtocolVersion_!=2||F!=2){if(C.peerProtocolVersion_!=null&&C.peerProtocolVersion_!=1||F!=1)return;
C.send("tp","SETUP_ACK")}else C.send("tp","SETUP_ACK_NTPV2");C.setupAckSent_.fired_||C.setupAckSent_.callback(!0)},Fho=function(C,F){F>C.peerProtocolVersion_&&(C.peerProtocolVersion_=F);
C.peerProtocolVersion_==1&&(C.setupAckSent_.fired_||C.oneSidedHandshake_||C.setupAckSent_.callback(!0),C.peerEndpointId_=null)};
_.n=KC.prototype;_.n.connect=function(){var C=this.getWindow(),F=_.rI(C),G=KpO[F];typeof G!=="number"&&(G=0);G==0&&_.IP(C.postMessage?C:C.document,"message",mMO,!1,KC);KpO[F]=G+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.n.maybeAttemptToConnect_=function(){var C=rnm(this.JSC$10026_channel_)==0;this.oneSidedHandshake_&&C||this.JSC$10026_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),CSr(this))};
_.n.send=function(C,F){var G=this.JSC$10026_channel_.peerWindowObject_;G&&(this.send=function(V,J){var b=this,z=this.JSC$10026_channel_.name;this.sendTimerId_=X3(function(){b.sendTimerId_=0;try{var Q=G.postMessage?G:G.document;Q.postMessage&&Q.postMessage(z+"|"+V+":"+J,b.peerHostname_)}catch(E){}},0)},this.send(C,F))};
_.n.notifyConnected_=function(){var C=this.JSC$10026_channel_,F=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;C.isConnected()||C.connectionDelay_&&C.connectionDelay_.isActive()||(C.state_=2,_.uz(C.connectionDelay_),F!==void 0?(C.connectionDelay_=new _.AV(C.connectCb_,F),C.connectionDelay_.start()):(C.connectionDelay_=null,C.connectCb_()))};
_.n.disposeInternal=function(){if(this.initialized_){var C=this.getWindow(),F=_.rI(C),G=KpO[F];KpO[F]=G-1;G==1&&_.Hd(C.postMessage?C:C.document,"message",mMO,!1,KC)}this.sendTimerId_&&(_.VT.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.uz(this.JSC$10026_eventHandler_);delete this.JSC$10026_eventHandler_;_.uz(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10026_connected_.cancel();delete this.JSC$10026_connected_;delete this.send;KC.superClass_.disposeInternal.call(this)};
var DM2=function(C){C=C.split(",");C[1]=C[1]||null;return C};var VQu;_.pC=function(C){if(C.getValues&&typeof C.getValues=="function")return C.getValues();if(typeof Map!=="undefined"&&C instanceof Map||typeof Set!=="undefined"&&C instanceof Set)return Array.from(C.values());if(typeof C==="string")return C.split("");if(_.gI(C)){for(var F=[],G=C.length,V=0;V<G;V++)F.push(C[V]);return F}return _.xf.getValues(C)};
_.GfG=function(C){if(C.getKeys&&typeof C.getKeys=="function")return C.getKeys();if(!C.getValues||typeof C.getValues!="function"){if(typeof Map!=="undefined"&&C instanceof Map)return Array.from(C.keys());if(!(typeof Set!=="undefined"&&C instanceof Set)){if(_.gI(C)||typeof C==="string"){var F=[];C=C.length;for(var G=0;G<C;G++)F.push(G);return F}return _.xf.getKeys(C)}}};
VQu=function(C,F,G){if(C.forEach&&typeof C.forEach=="function")C.forEach(F,G);else if(_.gI(C)||typeof C==="string")Array.prototype.forEach.call(C,F,G);else for(var V=_.GfG(C),J=_.pC(C),b=J.length,z=0;z<b;z++)F.call(G,J[z],V&&V[z],C)};var QhB,ix,$0,zK7,i1O,$1l,J57,uP2,b17;
_.dz=function(C,F){this.JSC$10031_domain_=this.userInfo_=this.scheme_="";this.JSC$10031_port_=null;this.fragment_=this.JSC$10031_path_="";this.JSC$10031_ignoreCase_=!1;var G;C instanceof _.dz?(this.JSC$10031_ignoreCase_=F!==void 0?F:C.JSC$10031_ignoreCase_,_.mA(this,C.scheme_),this.userInfo_=C.userInfo_,_.C4(this,C.JSC$10031_domain_),_.jB(this,C.JSC$10031_port_),_.F4(this,C.getPath()),_.Ge(this,C.JSC$10031_queryData_.clone()),_.VV(this,C.fragment_)):C&&(G=_.$U(String(C)))?(this.JSC$10031_ignoreCase_=
!!F,_.mA(this,G[1]||"",!0),this.userInfo_=ix(G[2]||""),_.C4(this,G[3]||"",!0),_.jB(this,G[4]),_.F4(this,G[5]||"",!0),_.Ge(this,G[6]||"",!0),_.VV(this,G[7]||"",!0)):(this.JSC$10031_ignoreCase_=!!F,this.JSC$10031_queryData_=new _.Jc(null,this.JSC$10031_ignoreCase_))};
_.dz.prototype.toString=function(){var C=[],F=this.scheme_;F&&C.push($0(F,i1O,!0),":");var G=this.JSC$10031_domain_;if(G||F=="file")C.push("//"),(F=this.userInfo_)&&C.push($0(F,i1O,!0),"@"),C.push(_.jP(G).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),G=this.JSC$10031_port_,G!=null&&C.push(":",String(G));if(G=this.getPath())this.JSC$10031_domain_&&G.charAt(0)!="/"&&C.push("/"),C.push($0(G,G.charAt(0)=="/"?J57:$1l,!0));(G=this.JSC$10031_queryData_.toString())&&C.push("?",G);(G=this.fragment_)&&C.push("#",
$0(G,b17));return C.join("")};
_.dz.prototype.resolve=function(C){var F=this.clone(),G=!!C.scheme_;G?_.mA(F,C.scheme_):G=!!C.userInfo_;G?F.userInfo_=C.userInfo_:G=!!C.JSC$10031_domain_;G?_.C4(F,C.JSC$10031_domain_):G=C.JSC$10031_port_!=null;var V=C.getPath();if(G)_.jB(F,C.JSC$10031_port_);else if(G=!!C.JSC$10031_path_){if(V.charAt(0)!="/")if(this.JSC$10031_domain_&&!this.JSC$10031_path_)V="/"+V;else{var J=F.getPath().lastIndexOf("/");J!=-1&&(V=F.getPath().slice(0,J+1)+V)}J=V;if(J==".."||J==".")V="";else if(_.zE(J,"./")||_.zE(J,
"/.")){V=_.Js(J,"/");J=J.split("/");for(var b=[],z=0;z<J.length;){var Q=J[z++];Q=="."?V&&z==J.length&&b.push(""):Q==".."?((b.length>1||b.length==1&&b[0]!="")&&b.pop(),V&&z==J.length&&b.push("")):(b.push(Q),V=!0)}V=b.join("/")}else V=J}G?_.F4(F,V):G=C.JSC$10031_queryData_.toString()!=="";G?_.Ge(F,C.JSC$10031_queryData_.clone()):G=!!C.fragment_;G&&_.VV(F,C.fragment_);return F};
_.dz.prototype.clone=function(){return new _.dz(this)};
_.mA=function(C,F,G){C.scheme_=G?ix(F,!0):F;C.scheme_&&(C.scheme_=C.scheme_.replace(/:$/,""));return C};
_.C4=function(C,F,G){C.JSC$10031_domain_=G?ix(F,!0):F;return C};
_.jB=function(C,F){if(F){F=Number(F);if(isNaN(F)||F<0)throw Error("Pa`"+F);C.JSC$10031_port_=F}else C.JSC$10031_port_=null;return C};
_.dz.prototype.getPath=function(){return this.JSC$10031_path_};
_.F4=function(C,F,G){C.JSC$10031_path_=G?ix(F,!0):F;return C};
_.Ge=function(C,F,G){F instanceof _.Jc?(C.JSC$10031_queryData_=F,nw2(C.JSC$10031_queryData_,C.JSC$10031_ignoreCase_)):(G||(F=$0(F,uP2)),C.JSC$10031_queryData_=new _.Jc(F,C.JSC$10031_ignoreCase_));return C};
_.jE=function(C,F,G){C.JSC$10031_queryData_.set(F,G);return C};
_.CB=function(C,F){return C.JSC$10031_queryData_.get(F)};
_.VV=function(C,F,G){C.fragment_=G?ix(F):F;return C};
_.bx=function(C){_.jE(C,"zx",pf());return C};
_.mg=function(C,F){return C instanceof _.dz?C.clone():new _.dz(C,F)};
QhB=function(C,F){C instanceof _.dz||(C=_.mg(C));F instanceof _.dz||(F=_.mg(F));return C.resolve(F)};
ix=function(C,F){return C?F?decodeURI(C.replace(/%25/g,"%2525")):decodeURIComponent(C):""};
$0=function(C,F,G){return typeof C==="string"?(C=encodeURI(C).replace(F,zK7),G&&(C=C.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),C):null};
zK7=function(C){C=C.charCodeAt(0);return"%"+(C>>4&15).toString(16)+(C&15).toString(16)};
i1O=/[#\/\?@]/g;$1l=/[#\?:]/g;J57=/[#\?]/g;uP2=/[#\?@]/g;b17=/#/g;_.Jc=function(C,F){this.count_=this.keyMap_=null;this.encodedQuery_=C||null;this.JSC$10032_ignoreCase_=!!F};
_.n4=function(C){C.keyMap_||(C.keyMap_=new Map,C.count_=0,C.encodedQuery_&&mlo(C.encodedQuery_,function(F,G){C.add(zN(F),G)}))};
_.n=_.Jc.prototype;_.n.getCount=function(){_.n4(this);return this.count_};
_.n.add=function(C,F){_.n4(this);this.encodedQuery_=null;C=ux(this,C);var G=this.keyMap_.get(C);G||this.keyMap_.set(C,G=[]);G.push(F);this.count_+=1;return this};
_.n.remove=function(C){_.n4(this);C=ux(this,C);return this.keyMap_.has(C)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(C).length,this.keyMap_.delete(C)):!1};
_.n.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.n.isEmpty=function(){_.n4(this);return this.count_==0};
_.n.containsKey=function(C){_.n4(this);C=ux(this,C);return this.keyMap_.has(C)};
_.n.containsValue=function(C){var F=this.getValues();return _.sB(F,C)};
_.n.forEach=function(C,F){_.n4(this);this.keyMap_.forEach(function(G,V){G.forEach(function(J){C.call(F,J,V,this)},this)},this)};
_.n.getKeys=function(){_.n4(this);for(var C=Array.from(this.keyMap_.values()),F=Array.from(this.keyMap_.keys()),G=[],V=0;V<F.length;V++)for(var J=C[V],b=0;b<J.length;b++)G.push(F[V]);return G};
_.n.getValues=function(C){_.n4(this);var F=[];if(typeof C==="string")this.containsKey(C)&&(F=F.concat(this.keyMap_.get(ux(this,C))));else{C=Array.from(this.keyMap_.values());for(var G=0;G<C.length;G++)F=F.concat(C[G])}return F};
_.n.set=function(C,F){_.n4(this);this.encodedQuery_=null;C=ux(this,C);this.containsKey(C)&&(this.count_-=this.keyMap_.get(C).length);this.keyMap_.set(C,[F]);this.count_+=1;return this};
_.n.get=function(C,F){if(!C)return F;C=this.getValues(C);return C.length>0?String(C[0]):F};
_.Q1m=function(C,F,G){C.remove(F);G.length>0&&(C.encodedQuery_=null,C.keyMap_.set(ux(C,F),_.Po(G)),C.count_+=G.length)};
_.Jc.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var C=[],F=Array.from(this.keyMap_.keys()),G=0;G<F.length;G++){var V=F[G],J=_.jP(V);V=this.getValues(V);for(var b=0;b<V.length;b++){var z=J;V[b]!==""&&(z+="="+_.jP(V[b]));C.push(z)}}return this.encodedQuery_=C.join("&")};
_.Jc.prototype.clone=function(){var C=new _.Jc;C.encodedQuery_=this.encodedQuery_;this.keyMap_&&(C.keyMap_=new Map(this.keyMap_),C.count_=this.count_);return C};
var ux=function(C,F){F=String(F);C.JSC$10032_ignoreCase_&&(F=F.toLowerCase());return F},nw2=function(C,F){F&&!C.JSC$10032_ignoreCase_&&(_.n4(C),C.encodedQuery_=null,C.keyMap_.forEach(function(G,V){var J=V.toLowerCase();
V!=J&&(this.remove(V),_.Q1m(this,J,G))},C));
C.JSC$10032_ignoreCase_=F};
_.Jc.prototype.extend=function(C){for(var F=0;F<arguments.length;F++)VQu(arguments[F],function(G,V){this.add(V,G)},this)};var ze=function(C,F){R5.call(this);for(var G=0,V;V=Yt2[G];G++)if(V in C&&!/^https?:\/\//.test(C[V]))throw Error("Ra`"+C[V]+"`"+V);this.cfg_=C;this.name=this.cfg_.cn||oxE();this.JSC$10027_domHelper_=F||vj();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.ln(this);C.lpu=C.lpu||DlG(this.JSC$10027_domHelper_.getWindow().location.href)+"/robots.txt";C.ppu=C.ppu||DlG(C.pu||"")+"/robots.txt";Df[this.name]=this;jDS(window,"unload",IUm)||ny(window,"unload",IUm)};
_.RE(ze,R5);var Ew7=RegExp("^%*tp$"),Whu=RegExp("^%+tp$");_.n=ze.prototype;_.n.connectionDelay_=null;_.n.peerWindowDeferred_=null;_.n.transport_=null;_.n.state_=1;_.n.isConnected=function(){return this.state_==2};
_.n.peerWindowObject_=null;_.n.iframeElement_=null;_.n.getConfig=function(){return this.cfg_};
_.n.connect=function(C){this.connectCb_=C||_.t8;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?e8m(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.n.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10027_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var C=this.iframeElement_.contentWindow;C||(C=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=C}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ta");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$10027_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new KC(this,this.cfg_.ph,this.JSC$10027_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Sa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.n.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.uz(this.transport_);this.connectCb_=this.transport_=null;_.uz(this.connectionDelay_);this.connectionDelay_=null};
_.n.send=function(C,F){if(this.isConnected()){try{var G=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(J){G=!1}if(G){_.TE(F)&&(F=(0,_.MX)(F));G=this.transport_;var V=G.send;Ew7.test(C)&&(C="%"+C);C=C.replace(/[%:|]/g,encodeURIComponent);V.call(G,C,F)}else this.close()}};
_.n.xpcDeliver=function(C,F,G){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.ck)(this.xpcDeliver,this,C,F,G));else if(pgl(this,G)&&!this.isDisposed()&&this.state_!=3)if(C&&C!="tp")this.isConnected()&&(C=C.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),C=Whu.test(C)?C.substring(1):C,C=this.getService(C,F))&&(F=vx8(F,C.objectPayload),F!=null&&C.callback(F));else switch(C=this.transport_,G=DM2(F),F=G[1],G[0]){case "SETUP_ACK":Fho(C,1);C.setupAckReceived_.fired_||C.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":C.protocolVersion_==2&&(Fho(C,2),C.setupAckReceived_.fired_||C.setupAckReceived_.callback(!0));break;case "SETUP":Fho(C,1);j1O(C,1);break;case "SETUP_NTPV2":C.protocolVersion_==2&&(G=C.peerProtocolVersion_,Fho(C,2),j1O(C,2),G!=1&&C.peerEndpointId_==null||C.peerEndpointId_==F||CSr(C),C.peerEndpointId_=F)}};
var rnm=function(C){var F=C.cfg_.role;return typeof F==="number"?F:window.parent==C.peerWindowObject_?1:0},pgl=function(C,F){var G=C.cfg_.ph;
return _.uZ(F==null?"":String(F))||_.uZ(G==null?"":String(G))||F==C.cfg_.ph};
ze.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete Df[this.name];_.uz(this.peerLoadHandler_);delete this.peerLoadHandler_;ze.superClass_.disposeInternal.call(this)};
var IUm=function(){for(var C in Df)_.uz(Df[C])},Df={};var aUy=function(C,F){this.win=C;this.allowAdsHttpEndpoint=F;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10041_domHelper=vj(C);this.scrollManager=new Sty(C);this.accessibilityManager=new NTP(C);tQO(this)},tQO=function(C){var F=function(){C.allowAdsPopup&&C.allowAdsPopup.style.setProperty("display","none","important");
C.wallElement.style.setProperty("display","","important");OOP(C.accessibilityManager);MM2(C.accessibilityManager,C.wallElement.querySelector(".fc-dialog-container"),!1,!1,C.wallElement.querySelector(".fc-button-whitelist"));C.scrollManager.enableScrolling()};
C.allowAdsPopup=C.JSC$10041_domHelper.JSC$9327_createDom("DIV",{"class":"fc-whitelist-root"});C.allowAdsPopup.style.setProperty("display","none","important");C.JSC$10041_domHelper.appendChild(C.JSC$10041_domHelper.JSC$9325_document_.body,C.allowAdsPopup);var G=C.JSC$10041_domHelper.JSC$9327_createDom("DIV",{"class":"fc-dialog-overlay"});C.JSC$10041_domHelper.appendChild(C.allowAdsPopup,G);var V=C.JSC$10041_domHelper.JSC$9327_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:F});C.JSC$10041_domHelper.appendChild(C.allowAdsPopup,
V);G=C.JSC$10041_domHelper.JSC$9327_createDom("IFRAME");G.className="fc-whitelist-dialog";G.frameBorder="0";G.id="fc-whitelist-iframe";G.tabIndex="0";_.mY(G,C.allowAdsHttpEndpoint);C.JSC$10041_domHelper.appendChild(V,G);V={};V.pu=_.vh(C.allowAdsHttpEndpoint).toString();V.tp=1;V.cn="fc-whitelist-channel";V.ifrid=G.id;V.osh=!0;C.allowAdsCrossPageChannel=new ze(V);C.allowAdsCrossPageChannel.registerService("close",F);C.allowAdsCrossPageChannel.registerService("refresh",function(){C.win.location.reload()});
C.allowAdsCrossPageChannel.registerService("resize",function(J){if(J){var b=C.allowAdsPopup.querySelector(".fc-whitelist-dialog");J.width&&b.style.setProperty("width",J.width,"important");J.height&&b.style.setProperty("height",J.height,"important")}},!0);
C.allowAdsCrossPageChannel.connect()};
aUy.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10041_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var QV=window,Iq=document,kfm=QV.location,U1o=function(){},H1l=/\[native code\]/,Ev=function(C,F,G){return C[F]=C[F]||G},lU2=function(C){C=C.sort();
for(var F=[],G=void 0,V=0;V<C.length;V++){var J=C[V];J!=G&&F.push(J);G=J}return F},We=function(){var C;
if((C=Object.create)&&H1l.test(C))C=C(null);else{C={};for(var F in C)C[F]=void 0}return C},tc=Ev(QV,"gapi",{});var aq={};aq=Ev(QV,"___jsl",We());Ev(aq,"I",0);Ev(aq,"hel",10);var y5P=function(){var C=kfm.href;if(aq.dpo)var F=aq.h;else{F=aq.h;var G=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),V=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(C=C&&(G.exec(C)||V.exec(C)))try{F=decodeURIComponent(C[2])}catch(J){}}return F},Z1r=function(C){var F=Ev(aq,"PQ",[]);
aq.PQ=[];var G=F.length;if(G===0)C();else for(var V=0,J=function(){++V===G&&C()},b=0;b<G;b++)F[b](J)},ND$=function(C){return Ev(Ev(aq,"H",We()),C,We())};var k0=function(C){this.JSC$10043_obj_=C};
k0.prototype.value=function(){return this.JSC$10043_obj_};
k0.prototype.getWidth=function(){return this.JSC$10043_obj_.width};
k0.prototype.getHeight=function(){return this.JSC$10043_obj_.height};
k0.prototype.getStyle=function(){return this.JSC$10043_obj_.style};var O1O=function(C){this.JSC$10046_obj_=C||{}};
_.n=O1O.prototype;_.n.value=function(){return this.JSC$10046_obj_};
_.n.setUrl=function(C){this.JSC$10046_obj_.url=C;return this};
_.n.getUrl=function(){return this.JSC$10046_obj_.url};
_.n.getStyle=function(){return this.JSC$10046_obj_.style};
_.n.getId=function(){return this.JSC$10046_obj_.id};
_.n.getContext=function(){return this.JSC$10046_obj_.context};
var X8S=function(C){C.JSC$10046_obj_.attributes=C.JSC$10046_obj_.attributes||{};return new k0(C.JSC$10046_obj_.attributes)};var w8l=function(){O1O.apply(this,arguments)};
_.O(w8l,O1O);var MQm=Ev(aq,"perf",We());Ev(MQm,"g",We());var S1y=Ev(MQm,"i",We());Ev(MQm,"r",[]);We();We();var BDr=function(C,F,G){F&&F.length>0&&(F=LhP(F),G&&G.length>0&&(F+="___"+LhP(G)),F.length>28&&(F=F.substr(0,28)+(F.length-28)),G=F,F=Ev(S1y,"_p",We()),Ev(F,G,We())[C]=(new Date).getTime(),F=MQm.r,typeof F==="function"?F(C,"_p",G):F.push([C,"_p",G]))},LhP=function(C){return C.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var vwy=We(),fU7=[],Uv=function(C){throw Error("Ua`"+C);};
fU7.push(["jsl",function(C){for(var F in C)if(Object.prototype.hasOwnProperty.call(C,F)){var G=C[F];typeof G=="object"?aq[F]=Ev(aq,F,[]).concat(G):Ev(aq,F,G)}if(F=C.u)C=Ev(aq,"us",[]),C.push(F),(F=/^https:(.*)$/.exec(F))&&C.push("http:"+F[1])}]);
var hK2=/^(\/[a-zA-Z0-9_\-]+)+$/,c5u=[/\/amp\//,/\/amp$/,/^\/amp$/],A58=/^[a-zA-Z0-9\-_\.,!]+$/,eKy=/^gapi\.loaded_[0-9]+$/,d1S=/^[a-zA-Z0-9,._-]+$/,PSS=function(C,F,G,V,J){var b=C.split(";"),z=b.shift(),Q=vwy[z],E=null;Q?E=Q(b,F,G,V):Uv("no hint processor for: "+z);E||Uv("failed to generate load url");F=E;G=F.match(x1G);(V=F.match(s12))&&V.length===1&&q1G.test(F)&&G&&G.length===1||Uv("failed sanity: "+C);try{C="?";if(J&&J.length>0){h5T(J);var t=J.join(",");E=E+"?le="+t;C="&"}if(aq.rol){var k=aq.ol;
k&&k.length&&(E=""+E+C+"ol="+k.length)}}catch(U){}return E},Y1G=function(C,F,G,V){C=gwG(C);
eKy.test(G)||Uv("invalid_callback");F=RKm(F);V=V&&V.length?RKm(V):null;var J=function(b){return encodeURIComponent(b).replace(/%2C/g,",")};
return[encodeURIComponent(C.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",J(C.version),"/m=",J(F),V?"/exm="+J(V):"","/rt=j/sv=1/d=1/ed=1",C.activeMods?"/am="+J(C.activeMods):"",C.resourceSig?"/rs="+J(C.resourceSig):"",C.zcms?"/t="+J(C.zcms):"","/cb=",J(G)].join("")},gwG=function(C){C.charAt(0)!=="/"&&Uv("relative path");
for(var F=C.substring(1).split("/"),G=[];F.length;){C=F.shift();if(!C.length||C.indexOf(".")==0)Uv("empty/relative directory");else if(C.indexOf("=")>0){F.unshift(C);break}G.push(C)}C={};for(var V=0,J=F.length;V<J;++V){var b=F[V].split("="),z=decodeURIComponent(b[0]),Q=decodeURIComponent(b[1]);b.length==2&&z&&Q&&(C[z]=C[z]||Q)}F="/"+G.join("/");hK2.test(F)||Uv("invalid_prefix");G=0;for(V=c5u.length;G<V;++G)c5u[G].test(F)&&Uv("invalid_prefix");G=TDu(C,"k",!0);V=TDu(C,"am");J=TDu(C,"rs");C=TDu(C,"t");
return{pathPrefix:F,version:G,activeMods:V,resourceSig:J,zcms:C}},RKm=function(C){for(var F=[],G=0,V=C.length;G<V;++G){var J=C[G].replace(/\./g,"_").replace(/-/g,"_");
d1S.test(J)&&F.push(J)}return F.join(",")},TDu=function(C,F,G){C=C[F];
!C&&G&&Uv("missing: "+F);if(C){if(A58.test(C))return C;Uv("invalid: "+F)}return null},q1G=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,s12=/\/cb=/g,x1G=/\/\//g;
vwy.m=function(C,F,G,V){(C=C[0])||Uv("missing_hint");return"https://apis.google.com"+Y1G(C,F,G,V)};
var owr=decodeURI("%73cript"),r58=/^[-+_0-9\/A-Za-z]+={0,2}$/,KhS=function(C,F){for(var G=[],V=0;V<C.length;++V){var J=C[V],b;if(b=J){a:{for(b=0;b<F.length;b++)if(F[b]===J)break a;b=-1}b=b<0}b&&G.push(J)}return G},D1P=function(){var C=aq.nonce;
return C!==void 0?C&&C===String(C)&&C.match(r58)?C:aq.nonce=null:Iq.querySelector?(C=Iq.querySelector("script[nonce]"))?(C=C.nonce||C.getAttribute("nonce")||"",C&&C===String(C)&&C.match(r58)?aq.nonce=C:aq.nonce=null):null:null},C98=function(C){if(Iq.readyState!="loading")p8m(C);
else{var F=D1P(),G="";F!==null&&(G=' nonce="'+F+'"');C="<"+owr+' src="'+encodeURI(C)+'"'+G+"></"+owr+">";Iq.write(m1G?m1G.createHTML(C):C)}},p8m=function(C){var F=Iq.createElement(owr);
F.setAttribute("src",m1G?m1G.createScriptURL(C):C);C=D1P();C!==null&&F.setAttribute("nonce",C);F.async="true";(C=Iq.getElementsByTagName(owr)[0])?C.parentNode.insertBefore(F,C):(Iq.head||Iq.body||Iq.documentElement).appendChild(F)},FOP=function(C,F,G){jx$(function(){var V=F===y5P()?Ev(tc,"_",We()):We();
V=Ev(ND$(F),"_",V);C(V)},G)},V6I=function(C,F){var G=F||{};
typeof F=="function"&&(G={},G.callback=F);var V=(F=G)&&F._c;if(V)for(var J=0;J<fU7.length;J++){var b=fU7[J][0],z=fU7[J][1];z&&Object.prototype.hasOwnProperty.call(V,b)&&z(V[b],C,F)}F=[];C?F=C.split(":"):G.features&&(F=G.features);if(!(C=G.h)&&(C=y5P(),!C))throw Error("Va");GA$(F||[],G,C)},GA$=function(C,F,G){C=lU2(C)||[];
var V=F.callback,J=F.config,b=F.timeout,z=F.ontimeout,Q=F.onerror,E=void 0;typeof Q=="function"&&(E=Q);var t=null,k=!1;if(b&&!z||!b&&z)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";Q=Ev(ND$(G),"r",[]).sort();var U=Ev(ND$(G),"L",[]).sort(),H=aq.le||[],l=[].concat(Q),N=function(T,P){if(k)return 0;QV.clearTimeout(t);U.push.apply(U,S);var g=((tc||{}).config||{}).update;g?g(J):J&&Ev(aq,"cu",[]).push(J);if(P){BDr("me0",T,l);try{FOP(P,G,E)}finally{BDr("me1",T,l)}}return 1};
b>0&&(t=QV.setTimeout(function(){k=!0;z()},b));
var S=KhS(C,U);if(S.length){S=KhS(C,Q);var f=Ev(aq,"CP",[]),c=f.length;f[c]=function(T){if(!T)return 0;BDr("ml1",S,l);var P=function(r){f[c]=null;N(S,T)&&Z1r(function(){V&&V();r()})},g=function(){var r=f[c+1];
r&&r()};
c>0&&f[c-1]?f[c]=function(){P(g)}:P(g)};
if(S.length){var A="loaded_"+aq.I++;tc[A]=function(T){f[c](T);tc[A]=null};
C=PSS(G,S,"gapi."+A,Q,H);Q.push.apply(Q,S);BDr("ml0",S,l);F.sync||QV.___gapisync?C98(C):p8m(C)}else f[c](U1o)}else N(S)&&V&&V()},VW8;
var ic2=null,Jtr=_.VT.trustedTypes;if(Jtr&&Jtr.createPolicy){try{ic2=Jtr.createPolicy("goog#gapi",{createHTML:$fO,createScript:$fO,createScriptURL:$fO})}catch(C){_.VT.console&&_.VT.console.error(C.message)}VW8=ic2}else VW8=ic2;var m1G=VW8,jx$=function(C,F){if(aq.hee&&aq.hel>0)try{return C()}catch(G){F&&F(G),aq.hel--,V6I("debug_error",function(){try{window.___jsl.hefn(G)}catch(V){throw G;}})}else try{return C()}catch(G){throw F&&F(G),G;
}},$wr=tc.load;
$wr&&Ev(aq,"ol",[]).push($wr);tc.load=function(C,F){return jx$(function(){return V6I(C,F)})};var Tjw;var nym=function(C,F){var G=G||[];this.serviceId_=C;this.moduleId_=F||null;this.dependencies_=[];bc$(this,G)};
nym.prototype.toString=function(){return this.serviceId_};
nym.prototype.getModuleId=function(){return this.moduleId_};
var bc$=function(C,F){var G=!1;G=G===void 0?!1:G;C.dependencies_=C.dependencies_.concat(F);if(G){if(!C.moduleId_)throw Error("Wa`"+C.serviceId_);F.map(function(V){return V.getModuleId()}).forEach(function(V){oUT(function(J){J.addExtraEdge(C.moduleId_,V)})})}};var hiI=new nym("MpJwZc","MpJwZc");var X9q=new _.EW("a"),AuW=new _.EW("c"),cuZ=function(C,F,G){_.tP.call(this,C,F);this.node=F;this.kind=G};
_.O(cuZ,_.tP);var uV2=function(){this.JSC$10059_keys_={};this.urlPrefix_="";this.JSC$10059_queryData_={}};
uV2.prototype.toString=function(){var C=this.urlPrefix_+zsu(this),F=_.Me(this.JSC$10059_queryData_),G="";F!=""&&(G="?"+F);return C+G};
var Qxy=function(C){C=He(C,"md");return!!C&&C!=="0"},zsu=function(C){var F=[],G=function(V){C.JSC$10059_keys_[V]!==void 0&&F.push(V+"="+C.JSC$10059_keys_[V])};
Qxy(C)?(G("md"),G("k"),G("ck"),G("am"),G("rs"),G("gssmodulesetproto"),G("slk"),G("dti")):(G("sdch"),G("k"),G("ck"),G("am"),G("rt"),"d"in C.JSC$10059_keys_||lx(C,"d","0"),G("d"),G("exm"),G("excm"),(C.JSC$10059_keys_.excm||C.JSC$10059_keys_.exm)&&F.push("ed=1"),G("im"),G("dg"),G("sm"),He(C,"br")!="1"&&He(C,"br")!="0"||G("br"),G("br-d"),He(C,"rb")=="1"&&G("rb"),He(C,"zs")!=="0"&&G("zs"),Iem(C)!==""&&G("wt"),G("gssmodulesetproto"),G("ujg"),G("sp"),G("rs"),G("cb"),G("ee"),G("slk"),G("dti"),G("m"));return F.join("/")},
He=function(C,F){return C.JSC$10059_keys_[F]?C.JSC$10059_keys_[F]:null},lx=function(C,F,G){G?C.JSC$10059_keys_[F]=G:delete C.JSC$10059_keys_[F]},EyS=function(C,F){C.urlPrefix_=F},WOy=function(C,F){F&&F.length>0?(F.sort(),lx(C,"exm",F.join(","))):lx(C,"exm",null)},tWm=function(C,F){F&&F.length>0?(F.sort(),lx(C,"excm",F.join(","))):lx(C,"excm",null)},aeE=function(C){return(C=He(C,"m"))?C.split(","):[]},Iem=function(C){switch(He(C,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},kA2=function(C,F){var G=Object.keys(F).filter(function(V){return!!Object.keys(F[V]).length}).map(function(V){var J=Object.keys(F[V]);
J.length>1&&J.sort();return V+":"+J.join(",")});
G.sort();lx(C,"ee",G.join(";"))},xMq=function(C){var F=He(C,"ee");
if(!F)return{};C={};F=_.u(F.split(";"));for(var G=F.next();!G.done;G=F.next()){var V=_.u(G.value.split(":"));G=V.next().value;V=V.next().value;C[G]={};V=_.u(V.split(","));for(var J=V.next();!J.done;J=V.next())C[G][J.value]=!0}return C},Uw7=function(C){delete C.JSC$10059_keys_.m;
delete C.JSC$10059_keys_.exm;delete C.JSC$10059_keys_.ed};
uV2.prototype.clone=function(){var C=new uV2;C.JSC$10059_keys_=Object.assign({},this.JSC$10059_keys_);C.urlPrefix_=this.urlPrefix_;C.JSC$10059_queryData_=Object.assign({},this.JSC$10059_queryData_);return C};
var sas=function(C,F){F=F===void 0?!0:F;var G=HcP(C),V=new uV2,J=_.$U(G)[5];_.xf.forEach(le$,function(z){var Q=J.match("/"+z+"=([^/]+)");Q&&lx(V,z,Q[1])});
var b="";b=C.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";EyS(V,C.substr(0,C.indexOf(b)+b.length));if(!F)return V;(C=_.$U(G)[6]||null)&&mlo(C,function(z,Q){V.JSC$10059_queryData_[z]=Q});
return V},AnT=function(C){C=_.X$(HcP(C));
return C===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(C)?/\/k=/.test(C):!1},HcP=function(C){return C.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?C.substr(65):C},le$={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"},ytE=RegExp("^loaded_(g|h)?[_\\d]+$");_.yV=function(C){this.JSC$10071_id_=C;this.opts={}};
_.yV.prototype.JSC$10073_setLabel=function(C){this.label_=C||void 0;return this};
_.yV.prototype.addUploadMetadata=function(C,F){var G=this.opts.data||{};G[C]=F;this.opts.data=G;return this};
var Zc2=function(C){var F=_.xf.filter(C.opts,function(G){return G!==null});
F=_.xf.isEmpty(F)?null:F;C=[C.JSC$10071_id_,C.label_,F];F=SBi(C);return C=C.slice(0,F+1)};
_.yV.prototype.toString=function(){var C=Zc2(this);return"("+_.ss(C,function(F){return JSON.stringify(F)}).join(",")+")"};
_.yV.prototype.getId=function(){return this.JSC$10071_id_};
_.yV.prototype.getOptions=function(){return _.xf.clone(this.opts)};var Zd=function(){_.yV.call(this,"image-search")};
_.O(Zd,_.yV);Zd.prototype.setSize=function(C){this.opts.imgsz=C;return this};
Zd.prototype.JSC$10073_setLabel=function(C){_.yV.prototype.JSC$10073_setLabel.call(this,C);return this};
Zd.prototype.addUploadMetadata=function(C,F){_.yV.prototype.addUploadMetadata.call(this,C,F);return this};var NY=function(){_.yV.call(this,"maps")};
_.O(NY,_.yV);NY.prototype.setZoom=function(C){this.opts.zoom=C;return this};
NY.prototype.JSC$10073_setLabel=function(C){_.yV.prototype.JSC$10073_setLabel.call(this,C);return this};
NY.prototype.addUploadMetadata=function(C,F){_.yV.prototype.addUploadMetadata.call(this,C,F);return this};_.Ov=function(){_.yV.call(this,"photos")};
_.O(_.Ov,_.yV);_.Ov.prototype.JSC$10073_setLabel=function(C){_.yV.prototype.JSC$10073_setLabel.call(this,C);return this};
_.Ov.prototype.addUploadMetadata=function(C,F){_.yV.prototype.addUploadMetadata.call(this,C,F);return this};var X4=function(){_.yV.call(this,"url")};
_.O(X4,_.yV);var NRu=function(){var C=new X4;C.opts.type="video";C.opts.site="youtube.com";return C};
X4.prototype.JSC$10073_setLabel=function(C){_.yV.prototype.JSC$10073_setLabel.call(this,C);return this};
X4.prototype.addUploadMetadata=function(C,F){_.yV.prototype.addUploadMetadata.call(this,C,F);return this};var wc=function(){_.yV.call(this,"video-search")};
_.O(wc,_.yV);var Oc7=function(){var C=new wc;C.opts.site="youtube.com";return C};
wc.prototype.JSC$10073_setLabel=function(C){_.yV.prototype.JSC$10073_setLabel.call(this,C);return this};
wc.prototype.addUploadMetadata=function(C,F){_.yV.prototype.addUploadMetadata.call(this,C,F);return this};var Xvy=function(){_.yV.call(this,"web")};
_.O(Xvy,_.yV);Xvy.prototype.JSC$10073_setLabel=function(C){_.yV.prototype.JSC$10073_setLabel.call(this,C);return this};
Xvy.prototype.addUploadMetadata=function(C,F){_.yV.prototype.addUploadMetadata.call(this,C,F);return this};var MY=function(){this.items_=[];this.opts={}},wvE=function(C){switch(C){case "image-search":return new Zd;
case "maps":return new NY;case "photos":return new _.Ov;case "url":return new X4;case "video-search":return new wc;case "web":return new Xvy}return new _.yV(C)};
MY.prototype.addView=function(C){this.items_.push(typeof C==="string"?wvE(C):C);return this};
var MWm=function(C){return"("+_.ss(C.items_,function(F){return F.toString()}).join(",")+")"};
MY.prototype.toString=function(){return MWm(this)};
MY.prototype.getViews=function(C,F){F=F===void 0?[]:F;for(var G=this.items_,V=0;V<G.length;V++){var J=G[V];J instanceof MY?J.getViews(C,F):J.getId()==C&&F.push(J)}return F};
MY.prototype.getOptions=function(){return _.xf.clone(this.opts)};var TI=function(C){this.basePickerUrl_=C||"https://docs.google.com/picker";this.nav_=new MY};
TI.prototype.nav_=null;TI.prototype.addView=function(C){this.nav_.addView(C);return this};
TI.prototype.getBaseUrl=function(){return this.basePickerUrl_};
TI.prototype.getViews=function(C){return this.nav_.getViews(C)};
_.S8o=function(C,F){C.callback_=F;return C};var LOG=new Map;LOG.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");LOG.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");LOG.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var BRo=new Set;BRo.add("application/vnd.google-apps.kix");BRo.add("application/vnd.google-apps.ritz");BRo.add("application/vnd.google-apps.punch");var gyu=function(C,F,G){var V=G&&_.a3(G,1);G=vyy(G);var J=C[0].getId();switch(_.kL(J,2)){case 13:return fe7(C,F,V,G);case 3:return hsm(C,F,V,G);case 10:return ctu(C,F,V,G);case 27:return ctu(C,F,V,G);case 12:return Aty(C,F);case 2:return esr(C,F,V,G);case 5:return dwP(C,F,V,G);case 9:return xwS(C,F,V,G);case 6:return sx2(C,F,V,G);case 25:return q8l(C,F,V,G);case 1:return _.Ji(C[0],WgS,26)?P9G(C,F,V,G):ctu(C,F,V,G);default:return{}}},sx2=function(C,F,G,V){C=C.map(function(J){return{id:J.getId().getId(),
serviceId:"youtube",name:J.getName(),description:_.a3(J,3),type:SB(J),lastEditedUtc:_.EdO(_.aa(J,_.Up,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:J.getUrl(),embedUrl:_.a3(J,13),thumbnails:L4(r8(J))}});
return{action:F,docs:C,viewToken:V,view:G||"youtube",v2Translated:!0}},esr=function(C,F,G,V){var J=C.map(function(b){var z=b.getId().getId(),Q=_.a3(b,7),E=b.getName(),t=SB(b),k=_.EdO(_.aa(b,_.Up,12)).getTime(),U=b.getUrl(),H=Number(N2$(b)),l=_.a3(b,3),N=_.a3(b,11),S=L4(r8(b));
var f=_.aa(b,Kk,21);f=_.Ej(f,1);var c=_.aa(b,Kk,21);c=_.a3(c,10);var A=_.a3(b,13);var T=_.aa(b,Kk,21);T=_.Ej(T,9);var P=_.aa(b,Kk,21);P=_.a3(P,11);z={id:z,serviceId:"docs",mimeType:Q,name:E,type:t,lastEditedUtc:k,url:U,sizeBytes:H,description:l,iconUrl:N,thumbnails:S,isShared:f,downloadUrl:c,embedUrl:A,copyable:T,resourceKey:P};Q=_.aa(b,Kk,21);_.Ej(Q,12)&&(z.uploadState="success",z.isNew=!0);Q=_.aa(b,Kk,21);_.Ji(Q,Yk,3)&&(b=_.aa(b,Kk,21),b=_.aa(b,Yk,3),_.Ji(b,g8,2)&&(Q=gG(b.getDuration().getSeconds()),
E=b.getDuration(),E=_.Wk(E,2),z.duration=Q+E/1E9),z.aspectRatio=b.getAspectRatio());return z});
return{action:F,docs:J,viewToken:V,view:G||"all",extraUserInputs:Rs8(C),v2Translated:!0}},dwP=function(C,F,G,V){C=C.map(function(J){var b=_.aa(J,NGm,15);
b=_.aa(b,RF,1);M1(J,10,RF,b);return{id:J.getId().getId(),serviceId:"web",mimeType:_.a3(J,7),name:J.getName(),type:SB(J),url:J.getUrl(),description:_.a3(J,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:L4(r8(J))}});
return{action:F,docs:C,viewToken:V,view:G||"image-search",v2Translated:!0}},xwS=function(C,F,G,V){C=C.map(function(J){return{serviceId:"url",
name:r8(J)[0].getUrl().split("/").pop(),type:SB(J),mimeType:_.a3(J,7),url:J.getUrl(),description:_.a3(J,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:L4(r8(J))}});
return{action:F,docs:C,viewToken:V,view:G||"url",v2Translated:!0}},P9G=function(C,F,G,V){C=C.map(function(J){return{id:J.getId().getId(),
serviceId:"picasa",name:J.getName(),type:SB(J),description:_.a3(J,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:L4(r8(J))}});
return{action:F,docs:C,viewToken:V,view:G||"webcam",v2Translated:!0}},ctu=function(C,F,G,V){return{action:F,
docs:C.map(Y8S),viewToken:V,view:TRP(G||"upload",C),extraUserInputs:Rs8(C),v2Translated:!0}},TRP=function(C,F){return F.some(function(G){var V;
return((V=_.aa(G,Ti,30))==null?void 0:_.kL(V,3))===9})?C+"/gmailphotos":C},hsm=function(C,F,G,V){var J=C.map(function(b){var z={id:b.getId().getId(),
serviceId:"picasa",mimeType:_.a3(b,7),name:b.getName(),type:SB(b),lastEditedUtc:_.EdO(_.aa(b,_.Up,12)).getTime(),url:b.getUrl(),sizeBytes:Number(N2$(b)),description:_.a3(b,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:L4(r8(b)),mediaKey:b.getId().getId(),parentId:_.a3(b,4)},Q,E=(Q=_.aa(b,kIP,18))==null?void 0:_.aa(Q,aa8,3);E&&(z.latitude=ti(E,1),z.longitude=ti(E,2));var t;b=(t=_.aa(b,kIP,18))==null?void 0:Wc(t,6);t=b!=null?gG(b):void 0;t&&(z.version=
t);return z});
return{action:F,docs:J,viewToken:V,view:G||"photos",extraUserInputs:Rs8(C),v2Translated:!0}},fe7=function(C,F,G,V){C=C.map(function(J){return{id:J.getId().getId(),
serviceId:"et",name:r8(J)[0].getUrl().split("/").pop(),description:_.a3(J,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:L4(r8(J),"etjpg")}});
return{action:F,docs:C,viewToken:V,view:G||"et",v2Translated:!0}},q8l=function(C,F,G,V){C=C.map(function(J){var b=J.getId().getId(),z=V["2"];
return{id:b,serviceId:z.type!=="gmail_themes"&&z.parent==="6226252643674576769"?"picasa":"static_themes",name:J.getName(),mimeType:_.a3(J,7),type:SB(J),description:_.a3(J,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:J.getUrl(),embedUrl:J.getUrl(),thumbnails:L4(r8(J))}});
return{action:F,docs:C,viewToken:V,view:G||"photos",v2Translated:!0}},Aty=function(C,F){C=C.map(function(G){var V=_.aa(G,tou,27);
V=_.Dr(V,1,_.Or,_.ED())[0];return{id:G.getId().getId(),serviceId:"contacts",mimeType:_.a3(G,7),name:G.getName(),description:_.a3(G,3),url:"mailto:"+V,thumbnail:[{url:_.a3(G,11)}],email:V}});
return{action:F,docs:C,view:"contacts",v2Translated:!0}},vyy=function(C){if(!C)return{};
var F=_.a3(C,3);F=F&&JSON.parse(F)||{};return{0:_.a3(C,1),1:_.a3(C,2),2:F}},L4=function(C,F){F=F===void 0?"":F;
if(!C.length)return null;F=="etjpg"&&(C=C.filter(function(G){return G.getUrl().includes("w1200-h300")}));
return C.map(function(G){return{url:G.getUrl(),height:G.getHeight(),width:G.getWidth(),type:F}})},Rs8=function(C){return{isAttachment:C.some(function(F){return _.Ej(F,31)})}},Y8S=function(C){var F,G={id:(F=C.getId())==null?void 0:F.getId(),
serviceId:oyE(C),mimeType:_.a3(C,7),name:C.getName(),type:SB(C),sizeBytes:Number(N2$(C)),description:_.a3(C,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:L4(r8(C)),isNew:!0};if(F=_.aa(C,Ti,30)){G.dataUrl=_.a3(F,1)||null;a:{var V=_.aa(C,Ti,30);switch(_.kL(V,3)){case 9:V=_.yZ(V,yVP,2,oF);V={remoteRefs:V&&_.a3(V,1)};break a;case 10:case 15:V=_.yZ(V,la$,4,oF);var J=r8(C);V={photo_id:V&&_.a3(V,1),media_key:C.getId().getId(),media_type:_.kL(C,6)===1?1:2,image_url:J&&
J[0].getUrl(),width:J&&String(J[0].getWidth()),height:J&&String(J[0].getHeight())};break a}V=null}G.uploadMetadata=V;G.uploadId=_.a3(F,9)||null;G.uploadState=rtG(F)||null}(V=F&&_.yZ(F,la$,4,oF))&&(G.id=_.a3(V,1));(V=F&&_.yZ(F,Zfm,5,oF))&&(G.contentId=_.a3(V,1));(V=F&&_.yZ(F,Udl,7,oF))&&(G.contentId=_.a3(V,1));(V=F&&_.yZ(F,Hf8,6,oF))&&(G.contentId=_.a3(V,1));(F==null?void 0:_.kL(F,3))===1&&(G.mediaKey=C.getId().getId());return G},oyE=function(C){var F;
switch(((F=_.aa(C,Ti,30))==null?void 0:_.kL(F,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},SB=function(C){switch(_.kL(C,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 _.a3(C,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},rtG=function(C){switch(C==null?void 0:_.kL(C,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 mw2,KOu,DwG,pvo;_.Cno=function(C,F){var G=F||{};F=G.document||document;var V=_.vh(C).toString(),J=(new lG(F)).createElement("SCRIPT"),b={script_:J,timeout_:void 0},z=new Y8(KOu,b),Q=null,E=G.timeout!=null?G.timeout:5E3;E>0&&(Q=window.setTimeout(function(){DwG(J,!0);z.errback(new pvo(1,"Timeout reached for loading script "+V))},E),b.timeout_=Q);
J.onload=J.onreadystatechange=function(){J.readyState&&J.readyState!="loaded"&&J.readyState!="complete"||(DwG(J,G.cleanupWhenDone||!1,Q),z.callback(null))};
J.onerror=function(){DwG(J,!0,Q);z.errback(new pvo(0,"Error while loading script "+V))};
b=G.attributes||{};_.xf.extend(b,{type:"text/javascript",charset:"UTF-8"});JG8(J,b);_.JW(J,C);mw2(F).appendChild(J);return z};
mw2=function(C){var F=Lf("HEAD",C);return F&&F.length!==0?F[0]:C.documentElement};
KOu=function(){if(this&&this.script_){var C=this.script_;C&&C.tagName=="SCRIPT"&&DwG(C,!0,this.timeout_)}};
DwG=function(C,F,G){G!=null&&_.VT.clearTimeout(G);C.onload=function(){};
C.onerror=function(){};
C.onreadystatechange=function(){};
F&&window.setTimeout(function(){_.So(C)},0)};
pvo=function(C,F){var G="Jsloader error (code #"+C+")";F&&(G+=": "+F);_.FS.call(this,G);this.code=C};
_.RE(pvo,_.FS);var j68=_.h6(["https://apis.google.com/js/api.js"]),F9G=_.kf(j68),Ju8=function(C,F,G){G=G===void 0?{}:G;var V=!1,J=GHP(C,F,G).then(function(z){V=!0;return z}),b=_.S0m(5E3).then(function(){return V?GHP(C,F,G):V3r(F,G).then(function(z){return i_7(z,C)})});
return aNu([J,b])},GHP=function(C,F,G){G=G===void 0?{}:G;
return $k7(F,G).then(function(V){return i_7(V,C)})},i_7=function(C,F){var G=_.Js(F,"gapi.")?F.slice(5):F;
return C[G]?_.mE(C[G]):new _.N1(function(V,J){var b=X3(function(){J(Error("Ya"))},3E4);
C.load(F,{callback:function(){_.VT.clearTimeout(b);V(C[G])},
onerror:function(z){_.VT.clearTimeout(b);J(z)}})})},$k7=function(C,F){F=F===void 0?{}:F;
return C.gapi&&C.gapi.load?_.mE(C.gapi):V3r(C,F)},V3r=function(C,F){F=F===void 0?{}:F;
return _.Cno(F9G,{document:C.document,attributes:F}).then(function(){return C.gapi})},b_l=function(){};
b_l.prototype.load=function(C,F,G){F=F===void 0?window:F;G=G===void 0?{}:G;var V=Date.now();return Ju8(C,F,G).then(function(J){var b=Date.now();return{library:J,loadStartMs:V,loadEndMs:b}},function(J){throw J instanceof Error?J:Error(String(J));
})};var JnW=function(){_.hV.call(this);this.gapiLoader_=new b_l;this.origin_=null;this.gapiPickerIframeResolver_=_.hM();this.gapiIframesResolver_=_.hM();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.O(JnW,_.hV);var nvS=function(C,F){var G=G===void 0?{}:G;var V=_.mN("gapi.iframes",F);return V?(C=Date.now(),_.mE({library:V,loadStartMs:C,loadEndMs:C})):C.gapiLoader_.load("gapi.iframes",F,G)},uLS=function(C,F,G,V,J,b){var z=!1;
z=z===void 0?!1:z;nvS(C,Pj(F.ownerDocument)).then(function(Q){var E=Q.library;C.gapiIframesResolver_.resolve(E);Q=C.gapiPickerIframeResolver_;var t=Q.resolve,k=z;k=k===void 0?!1:k;var U={};U["host-message-handler"]=G;C.hostMessageHandlerInternal_=U;var H=_.mg(V);H=_.mg(H);H=_.jB(_.C4(_.mA(new _.dz,H.scheme_),H.JSC$10031_domain_),H.JSC$10031_port_).toString();C.origin_=H;H=(new w8l).setUrl(V);H.JSC$10046_obj_.where=F;H.JSC$10046_obj_.allowPost=k;H.JSC$10046_obj_.messageHandlers=U;k=_.mN("makeWhiteListIframesFilter",
E)([C.origin_]);H.JSC$10046_obj_.messageHandlersFilter=k;J!=null&&(H.JSC$10046_obj_.id=J);b!=null&&(H.JSC$10046_obj_.rpctoken=b);k=X8S(H);k.JSC$10043_obj_.style={display:"block","min-width":"100%",width:"1px"};k.JSC$10043_obj_.height="100%";X8S(H).value().allow="camera 'src' "+C.origin_;E=E.getContext().openChild(H.value());t.call(Q,E)},function(Q){C.gapiIframesResolver_.reject(Q);
C.gapiPickerIframeResolver_.reject(Q)});
return C.gapiPickerIframeResolver_.promise},zil=function(C,F){return _.NX([C.gapiIframesResolver_.promise,
C.gapiPickerIframeResolver_.promise]).then(function(G){var V=_.u(G);G=V.next().value;return(V=V.next().value)?V.send("picker-message-handler",F,void 0,_.mN("makeWhiteListIframesFilter",G)([C.origin_])):_.W6(Error("Za"))})};
JnW.prototype.disposeInternal=function(){Q6$(this);_.hV.prototype.disposeInternal.call(this)};
var Q6$=function(C){C.gapiPickerIframeResolver_.promise.then(function(F){F&&(F.unregister("host-message-handler"),delete C.hostMessageHandlerInternal_["host-message-handler"])})};var IcO=function(){this.nextId=0};var W9u=function(C,F){switch(C.action){case "select-contacts":C=Evl(C.contacts);break;case "visibility":C=C.visible;var G=new CC;C=_.N5(G,1,7).setVisible(C);G={};G["iframe-command"]=C.serialize();C=G;break;default:C=null}return C?zil(F,C):_.mE()},Evl=function(C){if(!C||C.length==0)return null;
var F=new CC;_.N5(F,1,11);var G=new IcO;C.forEach(function(V){if(V.email){var J=new QZ;J=_.L3(J,2,V.name?V.name:V.email);var b=new tou;V=_.sLE(b,1,_.y8,V.email,_.Or);V=_.OL(J,27,V);J=new IaS;b=":"+(G.nextId++).toString(36);J=_.L3(J,1,b);J=_.N5(J,2,12);V=_.OL(V,1,J)}else V=null;V&&M1(F,7,QZ,V)});
C={};C["iframe-command"]=F.serialize();return C};_.t3l=function(){if(dfS){var C=/Windows NT ([0-9.]+)/;return(C=C.exec(_.UB()))?C[1]:"0"}return _.e5l?(C=/1[0|1][_.][0-9_.]+/,(C=C.exec(_.UB()))?C[0].replace(/_/g,"."):"10"):RaW?(C=/Android\s+([^\);]+)(\)|;)/,(C=C.exec(_.UB()))?C[1]:""):swo||qBO||PZE?(C=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(C=C.exec(_.UB()))?C[1].replace(/_/g,"."):""):""}();var Be;Be=function(C){return(C=C.exec(_.UB()))?C[1]:""};
_.acl=function(){if(_.m4)return Be(/Firefox\/([0-9.]+)/);if(_.rp||nO||h5r)return KWG;if(_.C2){if(_.vo()||_.O9T()){var C=Be(/CriOS\/([0-9.]+)/);if(C)return C}return Be(/Chrome\/([0-9.]+)/)}if(_.KD&&!_.vo())return Be(/Version\/([0-9.]+)/);if(oBI||r3o){if(C=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.UB()))return C[1]+"."+C[2]}else if(jlP)return(C=Be(/Android\s+([0-9.]+)/))?C:Be(/Version\/([0-9.]+)/);return""}();var kH2=function(){};
_.Ps(kH2);kH2.prototype.nextId_=0;_.ve=function(C){return":"+(C.nextId_++).toString(36)};var f4=function(C){_.lT.call(this);this.JSC$10141_dom_=C||vj();this.JSC$10141_id_=null;this.inDocument_=!1;this.JSC$10141_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.RE(f4,_.lT);f4.prototype.idGenerator_=kH2.getInstance();f4.prototype.getId=function(){return this.JSC$10141_id_||(this.JSC$10141_id_=_.ve(this.idGenerator_))};
f4.prototype.getElement=function(){return this.JSC$10141_element_};
var hc=function(C){C.googUiComponentHandler_||(C.googUiComponentHandler_=new _.ln(C));return C.googUiComponentHandler_},Uk2=function(C,F){if(C==F)throw Error("$a");
var G;if(G=F&&C.parent_&&C.JSC$10141_id_){G=C.parent_;var V=C.JSC$10141_id_;G=G.childIndex_&&V?_.xf.get(G.childIndex_,V)||null:null}if(G&&C.parent_!=F)throw Error("$a");C.parent_=F;f4.superClass_.setParentEventTarget.call(C,F)};
f4.prototype.setParentEventTarget=function(C){if(this.parent_&&this.parent_!=C)throw Error("ab");f4.superClass_.setParentEventTarget.call(this,C)};
f4.prototype.JSC$10143_createDom=function(){this.JSC$10141_element_=this.JSC$10141_dom_.createElement("DIV")};
f4.prototype.render=function(C){H_G(this,C)};
var H_G=function(C,F,G){if(C.inDocument_)throw Error("bb");C.JSC$10141_element_||C.JSC$10143_createDom();F?F.insertBefore(C.JSC$10141_element_,G||null):C.JSC$10141_dom_.JSC$9325_document_.body.appendChild(C.JSC$10141_element_);C.parent_&&!C.parent_.inDocument_||C.enterDocument()};
_.n=f4.prototype;_.n.decorate=function(C){if(this.inDocument_)throw Error("bb");if(C&&this.canDecorate(C)){this.wasDecorated_=!0;var F=_.gS(C);this.JSC$10141_dom_&&this.JSC$10141_dom_.JSC$9325_document_==F||(this.JSC$10141_dom_=vj(C));this.decorateInternal(C);this.enterDocument()}else throw Error("cb");};
_.n.canDecorate=function(){return!0};
_.n.decorateInternal=function(C){this.JSC$10141_element_=C};
_.n.enterDocument=function(){this.inDocument_=!0;lc2(this,function(C){!C.inDocument_&&C.getElement()&&C.enterDocument()})};
_.n.exitDocument=function(){lc2(this,function(C){C.inDocument_&&C.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.n.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);lc2(this,function(C){C.dispose()});
!this.wasDecorated_&&this.JSC$10141_element_&&_.So(this.JSC$10141_element_);this.parent_=this.model_=this.JSC$10141_element_=this.childIndex_=this.children_=null;f4.superClass_.disposeInternal.call(this)};
_.n.getModel=function(){return this.model_};
_.n.addChild=function(C,F){var G=this.children_?this.children_.length:0;if(C.inDocument_&&(F||!this.inDocument_))throw Error("bb");if(G<0||G>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);C.parent_==this?(_.xf.set(this.childIndex_,C.getId(),C),_.qf(this.children_,C)):_.xf.add(this.childIndex_,C.getId(),C);Uk2(C,this);_.fA9(this.children_,G,0,C);C.inDocument_&&this.inDocument_&&C.parent_==this?(F=this.getContentElement(),
(F.childNodes[G]||null)!=C.getElement()&&(C.getElement().parentElement==F&&F.removeChild(C.getElement()),G=F.childNodes[G]||null,F.insertBefore(C.getElement(),G))):F?(this.JSC$10141_element_||this.JSC$10143_createDom(),G=this.children_?this.children_[G+1]||null:null,H_G(C,this.getContentElement(),G?G.JSC$10141_element_:null)):this.inDocument_&&!C.inDocument_&&C.JSC$10141_element_&&C.JSC$10141_element_.parentNode&&C.JSC$10141_element_.parentNode.nodeType==1&&C.enterDocument()};
_.n.getContentElement=function(){return this.JSC$10141_element_};
var lc2=function(C,F){C.children_&&C.children_.forEach(F,void 0)};
f4.prototype.removeChild=function(C,F){if(C){var G=typeof C==="string"?C:C.getId();C=this.childIndex_&&G?_.xf.get(this.childIndex_,G)||null:null;G&&C&&(_.xf.remove(this.childIndex_,G),_.qf(this.children_,C),F&&(C.exitDocument(),C.JSC$10141_element_&&_.So(C.JSC$10141_element_)),Uk2(C,null))}if(!C)throw Error("eb");return C};_.RE(DeE,Kxq);_.RE(pDT,Kxq);var yuO;_.xf.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var Z_l=function(C,F){F?C.setAttribute("role",F):C.removeAttribute("role")},ce=function(C,F,G){Array.isArray(G)&&(G=G.join(" "));
var V="aria-"+F;G===""||G==void 0?(yuO||(G={},yuO=(G.atomic=!1,G.autocomplete="none",G.dropeffect="none",G.haspopup=!1,G.live="off",G.multiline=!1,G.multiselectable=!1,G.orientation="vertical",G.readonly=!1,G.relevant="additions text",G.required=!1,G.sort="none",G.busy=!1,G.disabled=!1,G.hidden=!1,G.invalid="false",G)),G=yuO,F in G?C.setAttribute(V,G[F]):C.removeAttribute(V)):C.setAttribute(V,G)};var Nty;_.Ac=function(C,F,G){_.lT.call(this);this.target=C;this.handle=F||C;this.limits=G||new vN(NaN,NaN,NaN,NaN);this.JSC$10146_document_=_.gS(C);this.JSC$10146_eventHandler_=new _.ln(this);_.Nd(this,this.JSC$10146_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;_.IP(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=Nty};
_.RE(_.Ac,_.lT);Nty=_.VT.document&&_.VT.document.documentElement&&!!_.VT.document.documentElement.setCapture&&!!_.VT.document.releaseCapture;_.O_2=function(C,F){C.hysteresisDistanceSquared_=Math.pow(F,2)};
_.n=_.Ac.prototype;_.n.setEnabled=function(C){this.enabled_=C};
_.n.disposeInternal=function(){_.Ac.superClass_.disposeInternal.call(this);_.Hd(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10146_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10146_document_.releaseCapture();this.handle=this.target=null};
_.n.startDrag=function(C){var F=C.type=="mousedown";if(!this.enabled_||this.dragging_||F&&(!C.isButton(0)||_.e5l&&C.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new eB("start",this,C.clientX,C.clientY,C)))this.dragging_=!0,F&&C.preventDefault();else return;else F&&C.preventDefault();F=this.JSC$10146_document_;var G=F.documentElement,V=!this.useSetCapture_;this.JSC$10146_eventHandler_.listen(F,["touchmove","mousemove"],this.handleMove_,
{capture:V,passive:!1});this.JSC$10146_eventHandler_.listen(F,["touchend","mouseup"],this.endDrag,V);this.useSetCapture_?(G.setCapture(!1),this.JSC$10146_eventHandler_.listen(G,"losecapture",this.endDrag)):this.JSC$10146_eventHandler_.listen(Pj(F),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10146_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,V);this.clientX=this.startX=C.clientX;this.clientY=this.startY=C.clientY;this.screenX=C.screenX;this.screenY=C.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=Bj(vj(this.JSC$10146_document_))}};
_.n.endDrag=function(C,F){this.JSC$10146_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10146_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new eB("end",this,C.clientX,C.clientY,C,XSE(this,this.deltaX),wSG(this,this.deltaY),F||C.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.n.handleMove_=function(C){if(this.enabled_){var F=C.clientX-this.clientX,G=C.clientY-this.clientY;this.clientX=C.clientX;this.clientY=C.clientY;this.screenX=C.screenX;this.screenY=C.screenY;if(!this.dragging_){var V=this.startX-this.clientX,J=this.startY-this.clientY;if(V*V+J*J>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new eB("start",this,C.clientX,C.clientY,C)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(C);return}}G=M38(this,F,G);F=G.x;G=G.y;this.dragging_&&this.dispatchEvent(new eB("beforedrag",
this,C.clientX,C.clientY,C,F,G))&&(SHo(this,C,F,G),C.preventDefault())}};
var M38=function(C,F,G){var V=Bj(vj(C.JSC$10146_document_));F+=V.x-C.pageScroll.x;G+=V.y-C.pageScroll.y;C.pageScroll=V;C.deltaX+=F;C.deltaY+=G;return new _.ql(XSE(C,C.deltaX),wSG(C,C.deltaY))};
_.Ac.prototype.onScroll_=function(C){var F=M38(this,0,0);C.clientX=this.clientX;C.clientY=this.clientY;SHo(this,C,F.x,F.y)};
var SHo=function(C,F,G,V){C.target.style.left=G+"px";C.target.style.top=V+"px";C.dispatchEvent(new eB("drag",C,F.clientX,F.clientY,F,G,V))},XSE=function(C,F){var G=C.limits;
C=isNaN(G.left)?null:G.left;G=isNaN(G.width)?0:G.width;return Math.min(C!=null?C+G:Infinity,Math.max(C!=null?C:-Infinity,F))},wSG=function(C,F){var G=C.limits;
C=isNaN(G.top)?null:G.top;G=isNaN(G.height)?0:G.height;return Math.min(C!=null?C+G:Infinity,Math.max(C!=null?C:-Infinity,F))};
_.Ac.prototype.isDragging=function(){return this.dragging_};
var eB=function(C,F,G,V,J,b,z){_.tP.call(this,C);this.clientX=G;this.clientY=V;this.browserEvent=J;this.left=b!==void 0?b:F.deltaX;this.top=z!==void 0?z:F.deltaY};
_.RE(eB,_.tP);var dc=function(C){this.JSC$10153_map_=new Map;var F=arguments.length;if(F>1){if(F%2)throw Error("ma");for(var G=0;G<F;G+=2)this.set(arguments[G],arguments[G+1])}else C&&this.addAll(C)};
_.n=dc.prototype;_.n.getCount=function(){return this.JSC$10153_map_.size};
_.n.getValues=function(){return Array.from(this.JSC$10153_map_.values())};
_.n.getKeys=function(){return Array.from(this.JSC$10153_map_.keys())};
_.n.containsKey=function(C){return this.JSC$10153_map_.has(C)};
_.n.containsValue=function(C){return this.getValues().some(function(F){return F==C})};
_.n.equals=function(C,F){var G=this;F=F===void 0?function(V,J){return V===J}:F;
return this===C?!0:this.JSC$10153_map_.size!=C.getCount()?!1:this.getKeys().every(function(V){return F(G.JSC$10153_map_.get(V),C.get(V))})};
_.n.isEmpty=function(){return this.JSC$10153_map_.size==0};
_.n.clear=function(){this.JSC$10153_map_.clear()};
_.n.remove=function(C){return this.JSC$10153_map_.delete(C)};
_.n.get=function(C,F){return this.JSC$10153_map_.has(C)?this.JSC$10153_map_.get(C):F};
_.n.set=function(C,F){this.JSC$10153_map_.set(C,F);return this};
_.n.addAll=function(C){if(C instanceof dc){C=_.u(C.JSC$10153_map_);for(var F=C.next();!F.done;F=C.next()){var G=_.u(F.value);F=G.next().value;G=G.next().value;this.JSC$10153_map_.set(F,G)}}else if(C)for(C=_.u(Object.entries(C)),F=C.next();!F.done;F=C.next())G=_.u(F.value),F=G.next().value,G=G.next().value,this.JSC$10153_map_.set(F,G)};
_.n.forEach=function(C,F){var G=this;F=F===void 0?this:F;this.JSC$10153_map_.forEach(function(V,J){return C.call(F,V,J,G)})};
_.n.clone=function(){return new dc(this)};(function(){for(var C=["ms","moz","webkit","o"],F,G=0;F=C[G]&&!_.VT.requestAnimationFrame;++G)_.VT.requestAnimationFrame=_.VT[F+"RequestAnimationFrame"],_.VT.cancelAnimationFrame=_.VT[F+"CancelAnimationFrame"]||_.VT[F+"CancelRequestAnimationFrame"];if(!_.VT.requestAnimationFrame){var V=0;_.VT.requestAnimationFrame=function(J){var b=(new Date).getTime(),z=Math.max(0,16-(b-V));V=b+z;return _.VT.setTimeout(function(){J(b+z)},z)};
_.VT.cancelAnimationFrame||(_.VT.cancelAnimationFrame=function(J){clearTimeout(J)})}})();
var L98=[[],[]],Bto=0,vvO=!1,fcP=0,cu8=function(C,F){var G=fcP++,V={measureTask:{id:G,fn:C.measure,context:F},mutateTask:{id:G,fn:C.mutate,context:F},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(V.args||(V.args=[]),V.args.length=0,V.args.push.apply(V.args,arguments),V.args.push(V.state)):V.args&&V.args.length!=0?(V.args[0]=V.state,V.args.length=1):V.args=[V.state];V.isScheduled||(V.isScheduled=!0,L98[Bto].push(V));vvO||(vvO=!0,window.requestAnimationFrame(hi2))}},hi2=
function(){vvO=!1;
var C=L98[Bto],F=C.length;Bto=(Bto+1)%2;for(var G,V=0;V<F;++V){G=C[V];var J=G.measureTask;G.isScheduled=!1;J.fn&&J.fn.apply(J.context,G.args)}for(V=0;V<F;++V)G=C[V],J=G.mutateTask,G.isScheduled=!1,J.fn&&J.fn.apply(J.context,G.args),G.state={};C.length=0};var Au$=_.h6(["about:blank"]),eiP=_.h6(["javascript:undefined"]),dkP=_.kf(Au$);_.vh(dkP);var xkP=_.kf(eiP);_.vh(xkP);var x0=function(C){_.lT.call(this);this.JSC$10159_element_=C;this.listenKeyIn_=_.IP(this.JSC$10159_element_,"focus",this,!0);this.listenKeyOut_=_.IP(this.JSC$10159_element_,"blur",this,!0)};
_.RE(x0,_.lT);x0.prototype.handleEvent=function(C){var F=new _.a5(C.event_);F.type=C.type=="focusin"||C.type=="focus"?"focusin":"focusout";this.dispatchEvent(F)};
x0.prototype.disposeInternal=function(){x0.superClass_.disposeInternal.call(this);ua(this.listenKeyIn_);ua(this.listenKeyOut_);delete this.JSC$10159_element_};var s6S=function(C,F){this.JSC$10162_element_=C;this.JSC$10162_dom_=F};var sv=function(C,F){f4.call(this,F);this.useIframeMask_=!!C;this.lastFocus_=null;this.resizeBackgroundTask_=cu8({mutate:this.resizeBackground_},this);cu8({mutate:this.updateModalAndBackground_},this)};
_.RE(sv,f4);_.n=sv.prototype;_.n.focusHandler_=null;_.n.visible_=!1;_.n.bgEl_=null;_.n.bgIframeEl_=null;_.n.tabCatcherElement_=null;_.n.backwardTabWrapInProgress_=!1;_.n.getCssClass=function(){return"goog-modalpopup"};
_.n.getBackgroundElement=function(){return this.bgEl_};
_.n.JSC$10143_createDom=function(){sv.superClass_.JSC$10143_createDom.call(this);var C=this.getElement(),F=Iw(this.getCssClass()).split(" ");g1(C,F);C.tabIndex=0;_.F5(C,!1);qHu(this);Pnu(this)};
var qHu=function(C){if(C.useIframeMask_&&!C.bgIframeEl_){var F=C.JSC$10141_dom_.JSC$9327_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.mY(F,dkP);C.bgIframeEl_=F;C.bgIframeEl_.className=C.getCssClass()+"-bg";_.F5(C.bgIframeEl_,!1);cGy(C.bgIframeEl_,0)}C.bgEl_||(C.bgEl_=C.JSC$10141_dom_.JSC$9327_createDom("DIV",C.getCssClass()+"-bg"),_.F5(C.bgEl_,!1))},Pnu=function(C){C.tabCatcherElement_||(C.tabCatcherElement_=C.JSC$10141_dom_.createElement("SPAN"),_.F5(C.tabCatcherElement_,
!1),C.tabCatcherElement_.tabIndex=0,C.tabCatcherElement_.style.position="absolute")};
_.n=sv.prototype;_.n.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.n.canDecorate=function(C){return!!C&&C.tagName=="DIV"};
_.n.decorateInternal=function(C){sv.superClass_.decorateInternal.call(this,C);C=Iw(this.getCssClass()).split(" ");g1(this.getElement(),C);qHu(this);Pnu(this);this.getElement().tabIndex=0;_.F5(this.getElement(),!1)};
_.n.enterDocument=function(){this.bgIframeEl_&&_.ME(this.bgIframeEl_,this.getElement());_.ME(this.bgEl_,this.getElement());sv.superClass_.enterDocument.call(this);_.SI(this.tabCatcherElement_,this.getElement());this.focusHandler_=new x0(this.JSC$10141_dom_.JSC$9325_document_);hc(this).listen(this.focusHandler_,"focusin",this.onFocus);gvm(this,!1)};
_.n.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.uz(this.focusHandler_);sv.superClass_.exitDocument.call(this);_.So(this.bgIframeEl_);_.So(this.bgEl_);_.So(this.tabCatcherElement_)};
_.n.setVisible=function(C){if(C!=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_&&gvm(this,C),C){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10141_dom_.JSC$9325_document_.activeElement}catch(J){}this.updateModalAndBackground_();hc(this).listen(this.JSC$10141_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10141_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);RiG(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)ny(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){hc(this).unlisten(this.JSC$10141_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10141_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)ny(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var F=this.JSC$10141_dom_,G=F.JSC$9325_document_.body,V=F.JSC$9325_document_.activeElement||G;if(!this.lastFocus_||this.lastFocus_==G){this.lastFocus_=null;break a}(V==G||F.contains(this.getElement(),V))&&this.lastFocus_.focus()}catch(J){}this.lastFocus_=
null}}};
var gvm=function(C,F){C.modalAriaVisibilityHelper_||(C.modalAriaVisibilityHelper_=new s6S(C.JSC$10141_element_,C.JSC$10141_dom_));C=C.modalAriaVisibilityHelper_;if(F){C.hiddenElements_||(C.hiddenElements_=[]);F=C.JSC$10162_dom_.getChildren(C.JSC$10162_dom_.JSC$9325_document_.body);for(var G=0;G<F.length;G++){var V=F[G],J;if(J=V!=C.JSC$10162_element_)J=V.getAttribute("aria-hidden"),J=!(J==null||J==void 0?0:String(J));J&&(ce(V,"hidden",!0),C.hiddenElements_.push(V))}}else if(C.hiddenElements_){for(F=
0;F<C.hiddenElements_.length;F++)C.hiddenElements_[F].removeAttribute("aria-hidden");C.hiddenElements_=null}};
sv.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var RiG=function(C,F){C.bgIframeEl_&&_.F5(C.bgIframeEl_,F);C.bgEl_&&_.F5(C.bgEl_,F);_.F5(C.getElement(),F);_.F5(C.tabCatcherElement_,F)};
_.n=sv.prototype;_.n.onShow=function(){this.dispatchEvent("show")};
_.n.onHide=function(){RiG(this,!1);this.dispatchEvent("hide")};
_.n.isVisible=function(){return this.visible_};
_.n.focus=function(){this.focusElement_()};
_.n.resizeBackground_=function(){this.bgIframeEl_&&_.F5(this.bgIframeEl_,!1);this.bgEl_&&_.F5(this.bgEl_,!1);var C=this.JSC$10141_dom_.JSC$9325_document_;var F=_.LA(Pj(this.JSC$10141_dom_.JSC$9325_document_)||window);var G=Math.max(F.width,Math.max(C.body.scrollWidth,C.documentElement.scrollWidth));C=Math.max(F.height,Math.max(C.body.scrollHeight,C.documentElement.scrollHeight));this.bgIframeEl_&&(_.F5(this.bgIframeEl_,!0),_.BSu(this.bgIframeEl_,G,C));this.bgEl_&&(_.F5(this.bgEl_,!0),_.BSu(this.bgEl_,
G,C))};
_.n.reposition=function(){var C;if(_.LiG(this.getElement())=="fixed")var F=C=0;else F=Bj(this.JSC$10141_dom_),C=F.x,F=F.y;var G=fi8(this.getElement());var V=_.LA(Pj(this.JSC$10141_dom_.JSC$9325_document_)||window);C=Math.max(C+V.width/2-G.width/2,0);F=Math.max(F+V.height/2-G.height/2,0);cN(this.getElement(),C,F);cN(this.tabCatcherElement_,C,F)};
_.n.onFocus=function(C){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():C.target==this.tabCatcherElement_&&X3(this.focusElement_,0,this)};
_.n.focusElement_=function(){try{this.getElement().focus()}catch(C){}};
_.n.disposeInternal=function(){_.uz(this.popupShowTransition_);this.popupShowTransition_=null;_.uz(this.popupHideTransition_);this.popupHideTransition_=null;_.uz(this.bgShowTransition_);this.bgShowTransition_=null;_.uz(this.bgHideTransition_);this.bgHideTransition_=null;sv.superClass_.disposeInternal.call(this)};var RM=function(C,F,G){sv.call(this,F,G);this.JSC$10172_class_=C||"modal-dialog";this.buttons_=(new qY).addButton(YHo,!0).addButton(TtO,!1,!0)};
_.RE(RM,sv);_.n=RM.prototype;_.n.escapeToCancel_=!0;_.n.hasTitleCloseButton_=!0;_.n.modal_=!0;_.n.draggable_=!0;_.n.backgroundElementOpacity_=.5;_.n.title_="";_.n.JSC$10174_dragger_=null;_.n.JSC$10174_disposeOnHide_=!1;_.n.titleEl_=null;_.n.titleTextEl_=null;_.n.titleTextId_=null;_.n.titleCloseEl_=null;_.n.contentEl_=null;_.n.buttonEl_=null;_.n.getCssClass=function(){return this.JSC$10172_class_};
_.n.setTitle=function(C){this.title_=C;this.titleTextEl_&&_.BN(this.titleTextEl_,C)};
_.n.getTitle=function(){return this.title_};
_.n.getContent=function(){return""};
_.n.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var ovP=function(C){C.getElement()||C.render();return C.getElement()};
RM.prototype.getBackgroundElement=function(){this.getElement()||this.render();return RM.superClass_.getBackgroundElement.call(this)};
var ruo=function(C,F){C.backgroundElementOpacity_=F;C.getElement()&&(F=C.getBackgroundElement())&&cGy(F,C.backgroundElementOpacity_)};
RM.prototype.setDraggable=function(C){this.draggable_=C;K92(this,C&&this.inDocument_)};
RM.prototype.handleDrag=function(){};
var K92=function(C,F){var G=Iw(C.JSC$10172_class_+"-title-draggable").split(" ");C.getElement()&&(F?g1(C.titleEl_,G):ZOu(C.titleEl_,G));F&&!C.JSC$10174_dragger_?(F=new _.Ac(C.getElement(),C.titleEl_),C.JSC$10174_dragger_=F,g1(C.titleEl_,G),_.IP(C.JSC$10174_dragger_,"start",C.setDraggerLimits_,!1,C),_.IP(C.JSC$10174_dragger_,"drag",C.handleDrag,!1,C)):!F&&C.JSC$10174_dragger_&&(C.JSC$10174_dragger_.dispose(),C.JSC$10174_dragger_=null)};
_.n=RM.prototype;
_.n.JSC$10143_createDom=function(){RM.superClass_.JSC$10143_createDom.call(this);var C=this.getElement(),F=this.JSC$10141_dom_;this.titleTextId_=this.getId();var G=this.getId()+".contentEl";this.titleEl_=F.JSC$9327_createDom("DIV",this.JSC$10172_class_+"-title",this.titleTextEl_=F.JSC$9327_createDom("SPAN",{className:this.JSC$10172_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=F.JSC$9327_createDom("SPAN",this.JSC$10172_class_+"-title-close"));z0o(C,this.titleEl_,this.contentEl_=
F.JSC$9327_createDom("DIV",{className:this.JSC$10172_class_+"-content",id:G}),this.buttonEl_=F.JSC$9327_createDom("DIV",this.JSC$10172_class_+"-buttons"));Z_l(this.titleTextEl_,"heading");Z_l(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;ce(this.titleCloseEl_,"label","Close");Z_l(C,"dialog");ce(C,"labelledby",this.titleTextId_||"");_.F5(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(C=this.buttons_,C.JSC$10175_element_=this.buttonEl_,C.render());_.F5(this.buttonEl_,!!this.buttons_);
ruo(this,this.backgroundElementOpacity_)};
_.n.decorateInternal=function(C){RM.superClass_.decorateInternal.call(this,C);C=this.getElement();var F=this.JSC$10172_class_+"-content";this.contentEl_=yY(document,null,F,C)[0];this.contentEl_||(this.contentEl_=this.JSC$10141_dom_.JSC$9327_createDom("DIV",F),C.appendChild(this.contentEl_));F=this.JSC$10172_class_+"-title";var G=this.JSC$10172_class_+"-title-text",V=this.JSC$10172_class_+"-title-close";(this.titleEl_=yY(document,null,F,C)[0])?(this.titleTextEl_=yY(document,null,G,this.titleEl_)[0],
this.titleCloseEl_=yY(document,null,V,this.titleEl_)[0]):(this.titleEl_=this.JSC$10141_dom_.JSC$9327_createDom("DIV",F),C.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=OAr(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.NE("SPAN",{className:G,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;ce(C,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10141_dom_.JSC$9327_createDom("SPAN",V),this.titleEl_.appendChild(this.titleCloseEl_));_.F5(this.titleCloseEl_,this.hasTitleCloseButton_);F=this.JSC$10172_class_+"-buttons";(this.buttonEl_=yY(document,null,F,C)[0])?(this.buttons_=new qY(this.JSC$10141_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10141_dom_.JSC$9327_createDom("DIV",F),C.appendChild(this.buttonEl_),this.buttons_&&(C=this.buttons_,C.JSC$10175_element_=this.buttonEl_,C.render()),_.F5(this.buttonEl_,
!!this.buttons_));ruo(this,this.backgroundElementOpacity_)};
_.n.enterDocument=function(){RM.superClass_.enterDocument.call(this);hc(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);hc(this).listen(this.buttonEl_,"click",this.onButtonClick_);K92(this,this.draggable_);hc(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var C=this.getElement();Z_l(C,"dialog");this.titleTextEl_.id!==""&&ce(C,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){C=this.JSC$10141_dom_;
var F=this.getBackgroundElement();C.removeNode(this.bgIframeEl_);C.removeNode(F)}this.isVisible()&&gvm(this,!1)}};
_.n.exitDocument=function(){this.isVisible()&&this.setVisible(!1);K92(this,!1);RM.superClass_.exitDocument.call(this)};
_.n.setVisible=function(C){C!=this.isVisible()&&(this.inDocument_||this.render(),RM.superClass_.setVisible.call(this,C))};
_.n.onShow=function(){RM.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.n.onHide=function(){RM.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10174_disposeOnHide_&&this.dispose()};
_.n.setDraggerLimits_=function(){var C=this.JSC$10141_dom_.JSC$9325_document_,F=_.LA(Pj(C)||window),G=Math.max(C.body.scrollWidth,F.width);C=Math.max(C.body.scrollHeight,F.height);var V=fi8(this.getElement());_.LiG(this.getElement())=="fixed"?this.JSC$10174_dragger_.limits=new vN(0,0,Math.max(0,F.width-V.width),Math.max(0,F.height-V.height)):this.JSC$10174_dragger_.limits=new vN(0,0,G-V.width,C-V.height)};
_.n.onTitleCloseClick_=function(){Dku(this)};
var Dku=function(C){if(C.hasTitleCloseButton_){var F=C.buttons_,G=F&&F.cancelButton_;G?(F=F.get(G),C.dispatchEvent(new Pe(G,F))&&C.setVisible(!1)):C.setVisible(!1)}},pS$=function(C){C.hasTitleCloseButton_=!1;
C.titleCloseEl_&&_.F5(C.titleCloseEl_,C.hasTitleCloseButton_)};
RM.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;RM.superClass_.disposeInternal.call(this)};
RM.prototype.onButtonClick_=function(C){a:{for(C=C.target;C!=null&&C!=this.buttonEl_;){if(C.tagName=="BUTTON")break a;C=C.parentNode}C=null}if(C&&!C.disabled){C=C.name;var F=this.buttons_.get(C);this.dispatchEvent(new Pe(C,F))&&this.setVisible(!1)}};
RM.prototype.onKey_=function(C){var F=!1,G=!1,V=this.buttons_,J=C.target;if(C.type=="keydown")if(this.escapeToCancel_&&C.keyCode==27){var b=V&&V.cancelButton_;J=J.tagName=="SELECT"&&!J.disabled;b&&!J?(G=!0,F=V.get(b),F=this.dispatchEvent(new Pe(b,F))):J||(F=!0)}else{if(C.keyCode==9&&C.shiftKey&&J==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(k){}X3(this.resetBackwardTabWrap_,0,this)}}else if(C.keyCode==13){if(J.tagName=="BUTTON"&&!J.disabled)b=J.name;
else if(J==this.titleCloseEl_)Dku(this);else if(V){var z=V.defaultButton_,Q;if(Q=z)a:{Q=Lf("BUTTON",V.JSC$10175_element_);for(var E,t=0;E=Q[t];t++)if(E.name==z||E.id==z){Q=E;break a}Q=null}J=(J.tagName=="TEXTAREA"||J.tagName=="SELECT"||J.tagName=="A")&&!J.disabled;!Q||Q.disabled||J||(b=z)}b&&V&&(G=!0,F=this.dispatchEvent(new Pe(b,String(V.get(b)))))}else J!=this.titleCloseEl_||C.keyCode!=32&&C.key!=" "||Dku(this);if(F||G)C.stopPropagation(),C.preventDefault();F&&this.setVisible(!1)};
var Pe=function(C,F){this.type="dialogselect";this.key=C;this.caption=F};
_.RE(Pe,_.tP);var qY=function(C){dc.call(this);C||vj();this.cancelButton_=this.JSC$10175_element_=this.defaultButton_=null};
_.RE(qY,dc);_.n=qY.prototype;_.n.clear=function(){dc.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.n.set=function(C,F,G,V){dc.prototype.set.call(this,C,F);G&&(this.defaultButton_=C);V&&(this.cancelButton_=C);return this};
_.n.addButton=function(C,F,G){return this.set(C.key,C.caption,F,G)};
_.n.render=function(){if(this.JSC$10175_element_){_.$O(this.JSC$10175_element_,uTs);var C=vj(this.JSC$10175_element_);this.forEach(function(F,G){F=C.JSC$9327_createDom("BUTTON",{name:G},F);G==this.defaultButton_&&(F.className="goog-buttonset-default");this.JSC$10175_element_.appendChild(F)},this)}};
_.n.decorate=function(C){if(C&&C.nodeType==1){this.JSC$10175_element_=C;C=Lf("BUTTON",this.JSC$10175_element_);for(var F,G,V,J=0;F=C[J];J++)if(G=F.name||F.id,V=OAr(F)||F.value,G){var b=J==0;this.set(G,V,b,F.name=="cancel");b&&_.eR(F,"goog-buttonset-default")}}};
_.n.getElement=function(){return this.JSC$10175_element_};
var YHo={key:"ok",caption:"OK"},TtO={key:"cancel",caption:"Cancel"},mkE={key:"yes",caption:"Yes"},Cmo={key:"no",caption:"No"},joO={key:"save",caption:"Save"},FEu={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new qY).addButton(YHo,!0,!0),(new qY).addButton(YHo,!0).addButton(TtO,!1,!0),(new qY).addButton(mkE,!0).addButton(Cmo,!1,!0),(new qY).addButton(mkE).addButton(Cmo,!0).addButton(TtO,!1,!0),(new qY).addButton(FEu).addButton(joO).addButton(TtO,!0,!0));_.RE(meq,RM);_.RE(Cwq,TI);var G_2=_.h6(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),VTl=_.h6(["//apis.google.com/js/rpc.js"]),nxf=_.kf(G_2),bOw=_.kf(VTl),FpS=null;var oM=function(C,F){_.lT.call(this);this.JSC$10184_element_=C;C=_.$w(this.JSC$10184_element_)?this.JSC$10184_element_:this.JSC$10184_element_?this.JSC$10184_element_.body:null;this.isRtl_=!!C&&_.AGE(C);this.listenKey_=_.IP(this.JSC$10184_element_,_.KV?"DOMMouseScroll":"mousewheel",this,F)};
_.RE(oM,_.lT);oM.prototype.handleEvent=function(C){var F=0,G=0,V=C.event_;V.type=="mousewheel"?(C=iX$(-V.wheelDelta),V.wheelDeltaX!==void 0?(F=iX$(-V.wheelDeltaX),G=iX$(-V.wheelDeltaY)):G=C):(C=V.detail,C>100?C=3:C<-100&&(C=-3),V.axis!==void 0&&V.axis===V.HORIZONTAL_AXIS?F=C:G=C);typeof this.maxDeltaX_==="number"&&(F=_.lV(F,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(G=_.lV(G,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(F=-F);F=new Jrm(C,V,F,G);this.dispatchEvent(F)};
var iX$=function(C){return _.Do&&(_.e5l||xf$)&&C%40!=0?C:C/40};
oM.prototype.disposeInternal=function(){oM.superClass_.disposeInternal.call(this);ua(this.listenKey_);this.listenKey_=null};
var Jrm=function(C,F,G,V){_.a5.call(this,F);this.type="mousewheel";this.detail=C;this.deltaX=G;this.deltaY=V};
_.RE(Jrm,_.a5);_.xZ=function(C){var F="instance_";if(C.instance_&&C.hasOwnProperty(F))return C.instance_;F=new C;return C.instance_=F};var $ME;var $Uy=_.h6(["https://about:blank"]),bXP=_.h6(['javascript:""']),n6E=_.h6(["about:blank"]);_.RE(Gl,meq);_.n=Gl.prototype;_.n.JSC$10192_url_="";_.n.JSC$10192_iframe_=null;_.n.iframeLoaded_=!1;_.n.loadedFired_=!1;_.n.callback_=function(){};
_.n.enterDocument=function(){Gl.superClass_.enterDocument.call(this);iOA(this.getBackgroundElement(),hc(this))};
_.n.render=function(C){var F=this;Gl.superClass_.render.call(this,C);this.useGapi_?nvS(this.iframeManager_,window).then(function(){return uwy(F)}).then(null,function(){F.callback_({action:"error"})}):zQ$(this)};
var uwy=function(C){var F=C.JSC$10141_dom_.JSC$9327_createDom("div",["picker-dialog-content","picker-frame"]);_.F5(F,!1);C.getContentElement().appendChild(F);return uLS(C.iframeManager_,F,function(G){var V=Moy(G["iframe-command"]);switch(V.getCommand()){case 1:G=C.callback_;V=_.aa(V,mS,2);var J="";switch(V.getStatus()){case 2:J="cancel";break;case 1:J="picked";break;case 3:J="error"}var b=_.IM(V,QZ,2,_.ED(uEm));V=b.length===0?{action:J}:gyu(b,J,_.aa(V,OfP,7));G.call(C,V);C.setVisible(!1);break;case 4:pS$(C);
C.callback_({action:"loaded"});break;case 7:case 8:G=C.callback_;a:{J=V.getCommand();b=_.aa(V,mS,2);switch(J){case 7:J="uploadScheduled";break;case 8:J="uploadStateChange";break;default:V={};break a}V=_.IM(b,QZ,2,_.ED(uEm));if(V.length===0)V={action:J};else{var z=_.aa(b,OfP,7);b=z&&_.a3(z,1);z=vyy(z);V=ctu(V,J,b,z)}}G.call(C,V)}},C.JSC$10192_url_,C.targetId_,C.rpcToken_).then(function(G){C.JSC$10192_iframe_=G.getIframeEl();
Qoy(C);_.F5(C.JSC$10192_iframe_.parentElement,!0);_.eR(C.getElement(),"picker-dialog");IQu(C);return G})},zQ$=function(C){C.JSC$10192_iframe_=C.JSC$10141_dom_.JSC$9327_createDom("IFRAME",{id:C.targetId_,
name:C.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.mY(C.JSC$10192_iframe_,E6O(C));_.eR(C.getElement(),"picker-dialog");C.getContentElement().appendChild(C.JSC$10192_iframe_);hc(C).listen(C.JSC$10192_iframe_,"load",function(){return void Qoy(C)});
C.JSC$10192_iframe_.src=C.JSC$10192_url_;IQu(C)},tTm=function(C){WEo(C,(0,_.ck)(function(F){F.setAuthToken(this.targetId_,this.rpcToken_)},C))},IQu=function(C){var F=_.CB(_.mg(C.JSC$10192_url_),"title");
F&&C.setTitle(F)},E6O=function(C){return _.ysZ("Internet Explorer")>=7&&_.Js(C.JSC$10192_url_,"https")?_.kf($Uy):_.rp?_.kf(bXP):_.kf(n6E)},Qoy=function(C){tTm(C);
C.iframeLoaded_=!0;C.JSC$10192_iframe_.tabIndex=0;C.isVisible()&&C.focus()};
Gl.prototype.handleKeydown_=function(C){C.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),C.stopPropagation(),C.preventDefault())};
var WEo=function(C,F){var G=C.JSC$10190_gadgetsDomHelper_;GnB(function(){F(G.getWindow().gadgets.rpc)},G)};
Gl.prototype.setUrl=function(C){C=_.jE(new _.dz(C),"rpcService",this.targetId_);_.jE(C,"rpctoken",this.rpcToken_);_.VV(C,"rpctoken="+this.rpcToken_);_.mA(C,"https");this.JSC$10192_url_=C.toString();this.JSC$10192_iframe_&&(this.JSC$10192_iframe_.src=this.JSC$10192_url_)};
var aQ$=function(C,F){C.callback_=F;WEo(C,(0,_.ck)(function(G){G.register(this.targetId_,(0,_.ck)(this.handlePickerAction_,this))},C))};
Gl.prototype.handlePickerAction_=function(C){var F=C.action;F=="loaded"&&(this.loadedFired_=!0,k_O(this,new pDT(this.isVisible())),UU7(this),pS$(this),hc(this).unlisten(this.JSC$10141_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10192_iframe_.tabIndex=0);F!="picked"&&F!="cancel"||this.setVisible(!1);this.callback_(C)};
var UU7=function(C){C.JSC$10192_appId_&&k_O(C,new DeE(C.JSC$10192_appId_,window.location.protocol+"//"+window.location.host))};
Gl.prototype.setRelayUrl=function(C){WEo(this,(0,_.ck)(function(F){F.setRelayUrl(this.targetId_,C)},this))};
var k_O=function(C,F){C.useGapi_&&W9u(F,C.iframeManager_).then(null,function(){C.callback_({action:"error"})});
WEo(C,(0,_.ck)(function(G){G.call(this.targetId_,"picker",null,F)},C))};
Gl.prototype.resizePicker_=function(){var C=Pj(this.JSC$10141_dom_.JSC$9325_document_)||window;if(_.CB(_.mg(this.JSC$10192_url_),"ignoreLimits")=="true")C=new _.Ml(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.CB(_.mg(this.JSC$10192_url_),"shadeDialog")=="true"){var F=ovP(this);F=e0l(F);var G=_.LA(C);C=G.width-80;G=G.height-40;F&&(C-=F.left?F.left:0,C-=F.right?F.right:0,G-=F.top?F.top:0,G-=F.bottom?F.bottom:0);C=new _.Ml(C>0?C:0,G>0?G:0)}else(F=this.preferredDialogWidth_)?(F=Math.max(320,
Math.min(1051,F)),(G=this.preferredDialogHeight_)||(G=_.LA(C).height*.85),G=Math.max(480,Math.min(650,G))):(F=_.LA(C),G=F.width*.618,G=G<F.height?Math.round(Math.max(480,Math.min(650,G*.85))):Math.round(Math.max(480,Math.min(650,F.height*.85))),F=Math.round(G/.618)),C=_.LA(C),F=Math.min(F,Math.max(C.width,320)),G=Math.min(G,Math.max(C.height,480)),C=new _.Ml(F,G);_.BSu(this.getContentElement(),C);this.reposition()};
Gl.prototype.reposition=function(){if(_.CB(_.mg(this.JSC$10192_url_),"shadeDialog")=="true"){var C=fi8(this.getElement()),F=_.LA(this.JSC$10141_dom_.getWindow());C=Math.floor(F.width/2-C.width/2);F=ovP(this);if(F=e0l(F)){var G=F.left?F.left:0;G+=F.right?F.right:0;C=Math.floor(C-G/2)}C=C>0?C:0;F=Bj(this.JSC$10141_dom_).y;cN(this.getElement(),C,F)}else Gl.superClass_.reposition.call(this)};
Gl.prototype.setVisible=function(C){if(C!=this.isVisible()&&this.autoSizeDialog_){var F=this.JSC$10141_dom_.getWindow();C?(this.resizePicker_(),hc(this).listen(F,"resize",this.resizePicker_),this.iframeLoaded_||hc(this).listen(F,"keydown",this.handleKeydown_)):(hc(this).unlisten(F,"resize",this.resizePicker_),this.iframeLoaded_||hc(this).unlisten(F,"keydown",this.handleKeydown_))}Gl.superClass_.setVisible.call(this,C);k_O(this,new pDT(C))};
Gl.prototype.focus=function(){Gl.superClass_.focus.call(this);if(this.JSC$10192_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10192_iframe_.focus()}catch(C){}};var uE=function(C,F){F=F===void 0?Gl:F;TI.call(this,C);this.pickerConstructor=F;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(C=window.location.origin)||(C=window.location.protocol+"//"+window.location.host);C&&this.urlParamMap_.set("origin",C);this.postProcessors_=[]};
_.O(uE,Cwq);uE.prototype.JSC$10197_disposeOnHide_=!1;
uE.prototype.build=function(){this.JSC$10098_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10098_appId_);this.getRelayUrl()||this.setRelayUrl(_.F4(_.VV(_.Ge(_.mg(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var C=new this.pickerConstructor(HXS(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);C.JSC$10174_disposeOnHide_=this.JSC$10197_disposeOnHide_;
C.JSC$10192_appId_=this.JSC$10098_appId_;C.loadedFired_&&UU7(C);aQ$(C,this.callback_);return C};
var lQE=function(C){C.urlParamMap_.set("multiselectEnabled","true");return C};
_.n=uE.prototype;_.n.getHeight=function(){return this.dialogHeight_};
_.n.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.n.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.n.getTitle=function(){return this.urlParamMap_.get("title")};
_.n.getWidth=function(){return this.dialogWidth_};
var yrE=function(C){C.JSC$10197_disposeOnHide_=void 0;return C};
uE.prototype.setRelayUrl=function(C){this.urlParamMap_.set("parent",C);return this};
var ZXE=function(C,F){C.urlParamMap_.set("selectButtonLabel",F);return C};
uE.prototype.setSize=function(C,F){this.dialogWidth_=C;this.dialogHeight_=F;return this};
uE.prototype.setTitle=function(C){this.urlParamMap_.set("title",C);return this};
var HXS=function(C){C.postProcessors_.length&&C.urlParamMap_.set("pp",JSON.stringify(C.postProcessors_));C.urlParamMap_.set("nav",MWm(C.nav_));var F=new _.dz(C.getBaseUrl());C.urlParamMap_.forEach(function(G,V){_.jE(F,V,G)});
return F};var X9G=function(C,F){C.name!==void 0?(this.name=C.name,this.code=Nz2[C.name]):(this.code=C=C.code,this.name=OXS(C));_.FS.call(this,KY8("%s %s",this.name,F))};
_.RE(X9G,_.FS);var OXS=function(C){var F=_.xf.findKey(Nz2,function(G){return C==G});
if(F===void 0)throw Error("hb`"+C);return F},Rq={},Nz2=(Rq.AbortError=3,Rq.EncodingError=5,Rq.InvalidModificationError=9,Rq.InvalidStateError=7,Rq.NotFoundError=1,Rq.NotReadableError=4,Rq.NoModificationAllowedError=6,Rq.PathExistsError=12,Rq.QuotaExceededError=10,Rq.SecurityError=2,Rq.SyntaxError=8,Rq.TypeMismatchError=11,Rq);var w9r=function(C,F){_.tP.call(this,C.type,F);this.event_=C};
_.RE(w9r,_.tP);var MT8=function(C,F,G){G===void 0&&(G=C.size);return C.slice?C.slice(F,G):null};var QaZ=new WeakMap,z8i=function(C,F){C=[C];for(var G=F.length-1;G>=0;--G)C.push(typeof F[G],F[G]);return C.join("\v")};_.Exs(function(){if(!_.VT.Blob)return!1;var C=new Uint8Array(100);try{var F=new Blob([C])}catch(G){return!1}return F.size!=100?!1:!0});
var S5S=_.Exs(function(){if(!_.VT.Blob)return!1;var C=new Uint8Array(100);try{var F=new Blob([C])}catch(G){return!1}return MT8(F,0,1)===null?!1:!0});_.VT.U3bHHf!=null||(_.VT.U3bHHf=0);_.VT.U3bHHf++;_.LE2=new WeakMap;_.BzO=new WeakMap;var tMS={};var J2=void 0;var knI=Symbol("pb");var BT9=nB("WizInjectionContext_Dispatcher");var E0=Symbol("qb");var wi,fW;wi=function(){this.afterRenderCallbacks=null};
_.UUE=Symbol("rb");fW=function(C){this.props=C;this.__unmounted=!1};
fW.prototype.didPatch=function(){};
fW.prototype.didMount=function(){};
fW.prototype.didUnmount=function(){};
fW.prototype.didUpdate=function(){};_.XgS=nB("WizInjectionContext_RootElement");var MMI=nB("WizInjectionContext_AppContext"),wg5=nB("WizInjectionContext_ModelRootElement"),St5=nB("WizInjectionContext_RendererData"),LpT=nB("WizInjectionContext_InjectingConstructor"),OO9=nB("WizInjectionContext_AsyncDeps"),vxZ={};var dM9=!1;var PwZ={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:BIr,enableLazyTsx:vi2,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:LWS,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var zl=Object.assign({},{attributes:{},handleError:function(C){throw C;}},PwZ);var v6$=Symbol("vb"),SE=Symbol("wb"),jxW=Symbol("xb"),m1q=Symbol("yb"),bcW=AO(function(C){return QH(C)&&v6$ in C});var Kps=Symbol("zb"),Y0={},oxS=(Y0[Kps]=!0,Y0.debugName="[component]",Y0.getComponentStack=function(){for(var C=[],F=this;F;)DMI(F)&&C.push(F.debugName),F=F.parent;return C},Y0.registerSignal=function(){},Y0.registerEffect=function(){},Y0);var IX=null,Wp=!1,aX=1,Hp=Symbol("Db"),X5={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var Te=Symbol("Eb"),oq=Symbol("Fb"),Uq=Symbol("Gb"),$1w=Object.assign({},X5,{value:Te,dirty:!0,error:null,equal:pgw,kind:"computed",producerMustRecompute:function(C){return C.value===Te||C.value===oq},
producerRecomputeValue:function(C){if(C.value===oq)throw Error("Z");var F=C.value;C.value=oq;var G=VQo(C),V=!1;try{var J=C.computation();Eq(null);V=F!==Te&&F!==Uq&&J!==Uq&&C.equal(F,J)}catch(b){J=Uq,C.error=b}finally{Eq(G),C&&J5E(C)}V?C.value=F:(C.value=J,C.version++)}});Object.assign({},X5,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var zKE=function(){throw Error();};var IUB=null,nwI=Object.assign({},X5,{equal:pgw,value:void 0,kind:"signal"});var EwE=Object.assign({},X5,{value:Te,dirty:!0,error:null,equal:pgw,kind:"linkedSignal",producerMustRecompute:function(C){return C.value===Te||C.value===oq},
producerRecomputeValue:function(C){if(C.value===oq)throw Error("Z");var F=C.value;C.value=oq;var G=VQo(C);try{var V=C.source();var J=C.computation(V,F===Te||F===Uq?void 0:{source:C.sourceValue,value:F});C.sourceValue=V}catch(b){J=Uq,C.error=b}finally{Eq(G),C&&J5E(C)}F!==Te&&J!==Uq&&C.equal(F,J)?C.value=F:(C.value=J,C.version++)}});Object.assign({},X5,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(C){C.schedule!==null&&C.schedule(C.ref)},
cleanupFn:function(){}});var aU5=Symbol("Hb"),ZB=Symbol("Ib");var N0=Array.isArray;var gwq;var fQE={},Y1q=PSi(Object.assign({},{consumerAllowSignalWrites:!0},fQE)),S_=PSi(Object.assign({},{consumerAllowSignalWrites:!0},fQE));var LB=0,Bp=!1,rc=function(){this.queue=new Set};
rc.prototype.schedule=function(C){this.queue.add(C)};
rc.prototype.remove=function(C){this.queue.delete(C)};
rc.prototype.clear=function(){this.queue.clear()};
var r5Z=Symbol("Nb"),TDA=Symbol("Ob"),K4=function(){rc.apply(this,arguments)};
_.O(K4,rc);K4.prototype.flush=function(){if(this.queue.size){Bp=!0;for(var C=_.u(this.queue),F=C.next();!F.done;F=C.next()){F=F.value;this.queue.delete(F);try{F.run()}catch(G){hQ8(G)}}Bp=!1}};
var crE=function(){K4.apply(this,arguments)};
_.O(crE,K4);var owT=new crE,Ar7=function(){K4.apply(this,arguments)};
_.O(Ar7,K4);Ar7.prototype.schedule=function(C){var F=this;return _.I(function(G){if(G.nextAddress==1)return zl.enableQueueEffectAndOnInitInitialRuns?G.jumpTo(2):G.yield(Promise.resolve(),3);if(G.nextAddress!=2)return C.run(),G.return();F.queue.add(C);_.S9(G)})};
var Khi=new Ar7,Dd=function(){rc.apply(this,arguments)};
_.O(Dd,rc);Dd.prototype.flush=function(){this.queue.size&&nyB(this.queue)};
var eQr=function(){Dd.apply(this,arguments)};
_.O(eQr,Dd);eQr.prototype.schedule=function(C){C.hasRun?this.queue.add(C):C.run()};
eQr.prototype.flush=function(){if(this.queue.size)if(zl.flushRenderEffectsDuringRender){var C=this.queue;this.queue=new Set;nyB(C)}else nyB(this.queue)};
var p8B=new eQr,dU2=function(){Dd.apply(this,arguments)};
_.O(dU2,Dd);dU2.prototype.schedule=function(C){var F=this;return _.I(function(G){if(G.nextAddress==1)return zl.enableQueueEffectAndOnInitInitialRuns||C.hasRun?G.jumpTo(2):G.yield(Promise.resolve(),3);if(G.nextAddress!=2)return C.run(),G.return();F.queue.add(C);_.S9(G)})};
var FO9=new dU2,xUr=function(){Dd.apply(this,arguments)};
_.O(xUr,Dd);var C9Z=new xUr,VWZ=[p8B,owT,C9Z],$wT=[Khi,FO9],so7=[p8B,C9Z,FO9],uVI=[].concat(_.da(VWZ),_.da($wT)),q5u=[];IUB=function(){JtT();for(var C=_.u(q5u),F=C.next();!F.done;F=C.next())F=F.value,F()};
var hQ8=iZ;var h2=Symbol("Pb");var fB=null,IeB,Eyi=null,WO5;var p4={},PmG=Object.assign({},X5,(p4[v6$]=!0,p4.effectType=SE,p4.isResettableContext=!0,p4.hasRun=!1,p4.effectFn=null,p4.consumerIsAlwaysLive=!0,p4.consumerAllowSignalWrites=!0,p4.consumerMarkedDirty=GAW,p4.kind="effect",p4.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(Wp)throw Error("Qb");this.dirty=!1;if(!this.hasRun||j1s(this)){this.hasRun=!0;NT9(this);var C=_.$K(this),F=VQo(this);R8w("effectRun",this.debugName);try{xK(this.effectFn,this.componentStack,this)}catch(G){throw zl.enableContextBasedComponentStacks&&
d0(G),G;}finally{YtI("effectRun",this.debugName),Eq(F),this&&J5E(this),_.$K(C)}}}},p4.componentStack=void 0,p4.debugName="[effect]",p4[Symbol.dispose]=function(){if(t2(this))for(var C=this.producers;C!==void 0;)C=i1s(C);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;C=_.u(so7);for(var F=C.next();!F.done;F=C.next())F.value.remove(this);ZOA(this)},p4));var kAI=Object.assign({},PmG,{effectType:jxW});var leW=Symbol("Rb");var ytS=Object.assign({},PmG,{effectType:SE});var i_E=new Set("allowfullscreen allowtransparency async autofocus autoplay checked controls default defer disabled disableremoteplayback formnovalidate hidden inert ismap itemscope jsshadow jsslot loop multiple muted nomodule novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var OcE={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,coords:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,
id:10,inert:1,ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,playsinline:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,usemap:1,valign:1,value:1,width:1,wrap:1},NRA=
{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}]}},HxI={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},MWB=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],wvS={"*":{async:1,dir:0,loading:2,target:3}};var g6G=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,ml={},LOq=(ml[1]=null,ml[2]=function(C,F){return F instanceof on?pT(F):q_.toString()},ml[3]=function(C,F){return Az(F)?_.eS(F):g6G.test(String(F))?String(F):q_.toString()},ml[4]=function(C,F){return F instanceof SS?_.vh(F):q_.toString()},ml[5]=function(C,F){return String(F)},ml[7]=null,ml[8]=null,ml[10]=null,ml);var OYT=Symbol("Ub");var um9=function(C){var F=RQG,G=C,V="",J="",b=1;C<0&&(C=-C);if(C===Infinity)C=(Infinity*Math.sign(G)).toString();else{for(var z=0;z<Y5u.length;z++){var Q=Y5u[z];b=F[Q];if(C>=b||b<=1&&C>.1*b){V=Q;break}}V?(V+="B",J=" "):b=1;C=Math.round(G/b*10)/10+J+V}return C},Y5u="Y Z E P T G M K  m u n".split(" "),RQG={"":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};_.Tz2=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 lR={};RegExp.prototype.hasOwnProperty("sticky");var $kE=function(C){C=String(C);for(var F=function(V,J,b){for(var z=Math.min(J.length-b,V.length),Q=0;Q<z;Q++){var E=J[b+Q];if(V[Q]!==("A"<=E&&E<="Z"?E.toLowerCase():E))return!1}return!0},G=0;(G=C.indexOf("<",G))!=-1;){if(F("\x3c/script",C,G)||F("\x3c!--",C,G))return"zSoyz";
G+=1}return C};var DB={default:"__default"};var At5=Object.prototype.hasOwnProperty;feE.prototype=Object.create(null);var Q3=xwi();var nW=null;var pvf=function(C){this.created=[];this.deleted=[];this.node=C};var mwI=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var C=this,F=C;C;)F=C,C=C.parentNode;return F};var q8w=function(C,F){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=C;this.key=F;this.text=void 0};var GF=null,V1=null,j_=null,Jg=null,TR9=[],Y8i=gyA,$n=[],bR=[],NvA=function(C){return Cnf(function(F,G,V){j_=V1=F;V1=null;G(V);RsZ(null);V1=j_;j_=j_.parentNode;return F},C)}(),ZYw=function(C){return Cnf(function(F,G,V){var J={nextSibling:F};
V1=J;G(V);j_&&RsZ(F.nextSibling);return J===V1?null:V1},C)}();var uR=[],F9q=0;var zF=new feE;var aP=new feE;var o6m=xwi(),uLi=o6m[DB.default],nvi=o6m.style,JuZ=["focusin","focusout"],Ics="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var mkS=function(){},qHA=function(){},VTw=function(){},jos=function(){};var ID=Symbol("bc");var kHI,acw=t3w;var N4=Symbol("cc");var G_I=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(" ")),
FEo=new Set(["a","font","script","style","title"]);_.ZN={setUp:Btf,tearDown:Btf,log:Btf,logNodeRange:Btf,graft:function(C,F){F()}};var LW={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var BQ=null,vQ=function(C,F){fW.call(this,C);var G=this;this.functionComponent=F;this.hooks=[];this.hookCounter=0;this.disposeEffects=Pp(function(V){G.effectContext=V;_.q0(function(){YHf(G,G.el)})},zl.alwaysTrackContexts||!!J2)};
_.O(vQ,fW);vQ.prototype.render=function(C){var F=BQ;BQ=this;this.hookCounter=0;var G=Eq(S_),V=_.$K(this.effectContext);try{return R8w("render",this.componentName),this.functionComponent(C)}finally{YtI("render",this.componentName),_.$K(V),Eq(G),BQ=F}};
_.I6.Object.defineProperties(vQ.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return zsA(this.functionComponent)}}});var iXW=Symbol("qc"),Dko=function(C,F,G){this.afterRenderCallbacks=null;this.kind=C;this.props=F;this.children=G};
_.O(Dko,wi);Dko.prototype.render=function(){var C=K9I(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var F=_.u(this.afterRenderCallbacks),G=F.next();!G.done;G=F.next())G=G.value,C=G(C);return C};
Dko.prototype.getChildren=function(){return this.children};var $U5=[];zKE=function(C){throw Error("ob`"+C.debugName);};
(function(){var C=nW;nW=function(F){C==null||C(F);bX9(F)}})();Object.assign({},PmG,{effectType:SE,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var C=this.elementRef;var F;C.element!=null||(C.element=(F=C.document.getElementById(C.value))!=null?F:void 0);C=C.element;for(F=this.attributes;F;){var G=F.signal();G!==F.prevValue&&(F.prevValue=G,F.namespace===1?C[F.name]=G:i_E.has(F.name)?r0(C,F.name,G?"":null):r0(C,F.name,G));F=F.next}}});_.hg.debugName="tbhMcf";_.cQ.debugName="zyMFzb";Object.assign({},PmG,{effectType:SE,hasRun:!0});_.a.debugName="RlDudd";var n6S={nonNullableCondIsNull:function(){return Error("vc")}};var WEf=function(){this.map=new Map};
WEf.prototype.push=function(C,F){var G=this.map;G.has(C)&&(this.multi||(this.multi=new Map),this.multi.set(F,G.get(C)));G.set(C,F)};
WEf.prototype.pop=function(C){var F=this.map,G=F.get(C),V;G!==void 0&&((V=this.multi)==null?0:V.has(G))?(F.set(C,this.multi.get(G)),this.multi.delete(G)):F.delete(C);return G};_.Ag.debugName="nsTGHd";_.e_.debugName="vI1rtf";_.lQS={OUT_OF_ORDER_HOOK_CALL:function(C){return Error("wc`"+C)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("xc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("yc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("zc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(C,F){return Error("Ac`"+((F===void 0?0:F)?"IDOM":"Reactive")+"`"+(di(C)?C.description:C))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(C,F){return Error("Bc`"+(di(C)?C.description:C)+"`"+F)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(C){return Error("Cc`"+(di(C)?C.description:C))},
USE_ELEMENT_NOT_ASSIGNED:function(C){return Error("Dc`"+(di(C)?C.description:C))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(C){return Error("Ec`"+(di(C)?C.description:C))}};kHI=pSW;var w9T=Symbol("Fc");gvB({beforeRender:function(C){var F=_.$K(C.effectContext);try{var G;((G=C.__syncEffects)==null?0:G.length)&&LEI(C.__syncEffects)}finally{_.$K(F)}},
didPatch:function(C){var F=_.$K(C.effectContext);try{var G;((G=C.__syncEffects)==null?0:G.length)&&LEI(C.__syncEffects)}finally{_.$K(F)}},
didUnmount:function(C){var F;((F=C.hooks)==null?0:F.length)&&C.hooks.forEach(S5i)}});var rru,KEE,DUO;rru=_.VT.window;_.RD=(rru==null?void 0:(KEE=rru.yt)==null?void 0:KEE.config_)||(rru==null?void 0:(DUO=rru.ytcfg)==null?void 0:DUO.data_)||{};_.zn("yt.config_",_.RD);var p98={},crS=[];_.Ay=function(C){var F=_.Rn.apply(1,arguments);var G=Error.call(this,C);this.message=G.message;"stack"in G&&(this.stack=G.stack);this.args=[].concat(_.da(F));Object.setPrototypeOf(this,this.constructor.prototype)};
_.O(_.Ay,Error);var GL9=function(C,F,G){this.actionName=C;this.optionalAction=F===void 0?!1:F;this.args=G===void 0?null:G;this.returnValue=[]};_.Cx=function(C){this.name=C};_.DU=new _.Cx("signalAction");var TzI=/^[\w.]*$/,soE={q:!0,search_query:!0},xUT=String(dUI);var Ew;Ew=Symbol("Gc");_.jh=function(C){this.name=C};
_.jh.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var o6B=function(C){this.key=C},mUB=function(C){this.deferredKey=C},KES=function(){var C=this;
this.providers=new Map;this.JSC$10495_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(C.providers)}}};
KES.prototype.addProvider=function(C){this.providers.set(C.provide,C);var F=this.JSC$10495_deferred.get(C.provide);if(F)try{F.resolver(this.resolve(C.provide))}catch(G){F.rejector(G)}};
KES.prototype.resolve=function(C){return C instanceof mUB?mUm(this,C):C instanceof o6B?CQl(this,C.key,[],!0):CQl(this,C,[])};
var mUm=function(C,F){F=F.deferredKey;if(C.JSC$10495_deferred.has(F))return C.JSC$10495_deferred.get(F).promise;var G={};G.promise=new Promise(function(V,J){G.resolver=V;G.rejector=J});
C.JSC$10495_deferred.set(F,G);return G.promise},CQl=function(C,F,G,V){V=V===void 0?!1:V;
if(G.indexOf(F)>-1)throw Error("Hc`"+F);if(C.cachedValues.has(F))return C.cachedValues.get(F);if(!C.providers.has(F)){if(V)return;throw Error("Ic`"+F);}V=C.providers.get(F);G.push(F);if(V.useValue!==void 0)var J=V.useValue;else if(V.useFactory)J=V[Ew]?jQ7(C,V[Ew],G):[],J=V.useFactory.apply(V,_.da(J));else if(V.useClass){J=V.useClass;var b=J[Ew]?jQ7(C,J[Ew],G):[];J=new (Function.prototype.bind.apply(J,[null].concat(_.da(b))))}else throw Error("Jc`"+F);G.pop();V.skipCache||C.cachedValues.set(F,J);return J},
jQ7=function(C,F,G){return F?F.map(function(V){return V instanceof o6B?CQl(C,V.key,G,!0):CQl(C,V,G)}):[]};var rro;var p1=new _.jh("ENDPOINT_HANDLER_TOKEN");_.jW=new _.Cx("urlEndpoint");var FyE=function(){this.data=[];this.cachedPackedInt52=-1};
FyE.prototype.set=function(C,F){F=F===void 0?!0:F;0<=C&&C<52&&Number.isInteger(C)&&this.data[C]!==F&&(this.data[C]=F,this.cachedPackedInt52=-1)};
FyE.prototype.get=function(C){return!!this.data[C]};
var GUu=function(C){C.cachedPackedInt52===-1&&(C.cachedPackedInt52=C.data.reduce(function(F,G,V){return F+(G?Math.pow(2,V):0)},0));
return C.cachedPackedInt52};var I8T=function(C){var F=VjP;C=C===void 0?_.mN("yt.ads.biscotti.lastId_")||"":C;var G=Object,V=G.assign,J={};J.dt=FpE;J.flash="0";a:{try{var b=F.JSC$10501_win_.top.location.href}catch(C9){b=2;break a}b=b?b===F.doc_.location.href?0:1:2}J=(J.frm=b,J);try{J.u_tz=-(new Date).getTimezoneOffset();try{var z=x8.history.length}catch(C9){z=0}J.u_his=z;var Q;J.u_h=(Q=x8.screen)==null?void 0:Q.height;var E;J.u_w=(E=x8.screen)==null?void 0:E.width;var t;J.u_ah=(t=x8.screen)==null?void 0:t.availHeight;var k;J.u_aw=
(k=x8.screen)==null?void 0:k.availWidth;var U;J.u_cd=(U=x8.screen)==null?void 0:U.colorDepth}catch(C9){}z=F.JSC$10501_win_;try{var H=z.screenX;var l=z.screenY}catch(C9){}try{var N=z.outerWidth;var S=z.outerHeight}catch(C9){}try{var f=z.innerWidth;var c=z.innerHeight}catch(C9){}try{var A=z.screenLeft;var T=z.screenTop}catch(C9){}try{f=z.innerWidth,c=z.innerHeight}catch(C9){}try{var P=z.screen.availWidth;var g=z.screen.availTop}catch(C9){}H=[A,T,H,l,P,g,N,S,f,c];l=XkE(!1,F.JSC$10501_win_.top);N={};
var r=r===void 0?_.VT:r;S=new FyE;"SVGElement"in r&&"createElementNS"in r.document&&S.set(0);f=maG();f["allow-top-navigation-by-user-activation"]&&S.set(1);f["allow-popups-to-escape-sandbox"]&&S.set(2);r.crypto&&r.crypto.subtle&&S.set(3);"TextDecoder"in r&&"TextEncoder"in r&&S.set(4);r=GUu(S);F=(N.bc=r,N.bih=l.height,N.biw=l.width,N.brdim=H.join(),N.vis=aNo(F.doc_),N.wgl=!!x8.WebGLRenderingContext,N);G=V.call(G,J,F);G.ca_type="image";C&&(G.bid=C);return G},VjP=new function(){var C=window.document;
this.JSC$10501_win_=window;this.doc_=C};
_.zn("yt.ads_.signals_.getAdSignalsString",function(C){return q5A(I8T(C))});_.gp();navigator.userAgent.indexOf(" (CrKey ");var Vj9="XMLHttpRequest"in _.VT?function(){return new XMLHttpRequest}:null;var ilO="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),J3O=[].concat(_.da(ilO),["client_dev_set_cookie"]);var QQs={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"},$V5="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(_.da(ilO)),y3I=!1,nBw=_.EBw,UVw=zRi;var RI5=[{messageFn:function(C){return"Cannot read property '"+C.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(C){return"Cannot call '"+C.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(C){return C.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var $Vy={messageWeights:[],callbackWeights:[{callback:XA5,weight:500},{callback:wAf,weight:500}]};var blu=function(){this.callbackWeights=[];this.messageWeights=[]},nBl,gJA=function(){if(!nBl){var C=nBl=new blu;
C.messageWeights.length=0;C.callbackWeights.length=0;$TE(C,$Vy)}return nBl},$TE=function(C,F){F.messageWeights&&C.messageWeights.push.apply(C.messageWeights,F.messageWeights);
F.callbackWeights&&C.callbackWeights.push.apply(C.callbackWeights,F.callbackWeights)};_.RE(_.SP,_.hV);_.SP.prototype.subscribe=function(C,F,G){var V=this.topics_[C];V||(V=this.topics_[C]=[]);var J=this.JSC$10525_key_;this.subscriptions_[J]=C;this.subscriptions_[J+1]=F;this.subscriptions_[J+2]=G;this.JSC$10525_key_=J+3;V.push(J);return J};
var uIE=function(C){var F=rMA,G=!1,V=F.subscribe("handleError",function(J){G||(G=!0,this.unsubscribeByKey(V),C.apply(void 0,arguments))},F)};
_.SP.prototype.unsubscribe=function(C,F,G){if(C=this.topics_[C]){var V=this.subscriptions_;if(C=C.find(function(J){return V[J+1]==F&&V[J+2]==G}))return this.unsubscribeByKey(C)}return!1};
_.SP.prototype.unsubscribeByKey=function(C){var F=this.subscriptions_[C];if(F){var G=this.topics_[F];this.publishDepth_!=0?(this.pendingKeys_.push(C),this.subscriptions_[C+1]=function(){}):(G&&_.qf(G,C),delete this.subscriptions_[C],delete this.subscriptions_[C+1],delete this.subscriptions_[C+2])}return!!F};
_.SP.prototype.publish=function(C,F){var G=this.topics_[C];if(G){var V=Array(arguments.length-1),J=arguments.length,b;for(b=1;b<J;b++)V[b-1]=arguments[b];if(this.async_)for(b=0;b<G.length;b++)J=G[b],zRS(this.subscriptions_[J+1],this.subscriptions_[J+2],V);else{this.publishDepth_++;try{for(b=0,J=G.length;b<J&&!this.isDisposed();b++){var z=G[b];this.subscriptions_[z+1].apply(this.subscriptions_[z+2],V)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;G=this.pendingKeys_.pop();)this.unsubscribeByKey(G)}}return b!=
0}return!1};
var zRS=function(C,F,G){_.Zf(function(){C.apply(F,G)})};
_.SP.prototype.clear=function(C){if(C){var F=this.topics_[C];F&&(F.forEach(this.unsubscribeByKey,this),delete this.topics_[C])}else this.subscriptions_.length=0,this.topics_={}};
_.SP.prototype.getCount=function(C){if(C){var F=this.topics_[C];return F?F.length:0}C=0;for(F in this.topics_)C+=this.getCount(F);return C};
_.SP.prototype.disposeInternal=function(){_.SP.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var rMA=new _.SP;var Hg=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Hg,_.b0);Hg.prototype.getColdHashData=function(){return _.a3(this,3)};
Hg.prototype.getHotHashData=function(){return _.a3(this,5)};
Hg.prototype.setHotHashData=function(C){return _.fA(this,5,C)};var sAA=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(sAA,_.b0);var W2B=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(W2B,_.b0);_.n=W2B.prototype;_.n.getDeviceId=function(){return _.a3(this,6)};
_.n.getExperimentIds=function(C){var F=_.Dr(this,9,_.nt,3,!0);mfW(F,C);return F[C]};
_.n.getPlayerType=function(){return _.kL(this,36)};
_.n.setHomeGroupInfo=function(C){return _.OL(this,81,C)};
_.n.clearLocationPlayabilityToken=function(){return _.Ut(this,89)};var wD=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(wD,_.b0);wD.prototype.setKey=function(C){return _.fA(this,1,C)};
wD.prototype.getValue=function(){return lg(this,2,aHq)};
var aHq=[2,3,4,5,6];var QQO=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(QQO,_.b0);QQO.prototype.setTrackingParams=function(C){return _.Ut(this,1,_.fP(C,!1))};var tnI=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(tnI,_.b0);var g2T=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(g2T,_.b0);g2T.prototype.getExperimentIds=function(C){var F=_.Dr(this,5,_.luA,3,!0);mfW(F,C);return F[C]};var B8=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(B8,_.b0);B8.prototype.getToken=function(){return _.wG(this,2)};
B8.prototype.setToken=function(C){return _.fA(this,2,C)};var SQ=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(SQ,_.b0);SQ.prototype.setSafetyMode=function(C){return _.kx(this,5,C)};var XP=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(XP,_.b0);XP.prototype.setClient=function(C){return _.OL(this,1,C)};var PKi={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 q3o;_.Ld=function(){var C=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.VT.addEventListener("beforeinstallprompt",function(F){F.preventDefault();C.deferredInstallPrompt=F});
_.VT.addEventListener("appinstalled",function(){C.appInstalledEventFired=!0},{once:!0})};
q3o=function(){if(!_.VT.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.VT.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.VT.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.VT.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.VT.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(C){return"WEB_DISPLAY_MODE_UNKNOWN"}};var TdT=function(){this.syncHeaders=!0},o2T=function(C){var F={},G=[];
"USER_SESSION_ID"in _.RD&&G.push({key:"u",value:_.TF("USER_SESSION_ID")});if(G=_.WmW(G))F.Authorization=G,G=C=C==null?void 0:C.sessionIndex,G===void 0&&(G=Number(_.TF("SESSION_INDEX",0)),G=isNaN(G)?0:G),_.y("voice_search_auth_header_removal")||(F["X-Goog-AuthUser"]=G.toString()),"INNERTUBE_HOST_OVERRIDE"in _.RD||(F["X-Origin"]=window.location.origin),C===void 0&&"DELEGATED_SESSION_ID"in _.RD&&(F["X-Goog-PageId"]=_.TF("DELEGATED_SESSION_ID"));return F};var I8r={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var F2=_.mN("ytglobal.prefsUserPrefsPrefs_")||{},EBl;_.zn("ytglobal.prefsUserPrefsPrefs_",F2);_.G$=function(){this.cookieName=_.TF("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.TF("ALT_PREF_COOKIE_DOMAIN","youtube.com");var C=_.BD.get(this.cookieName,void 0);C&&this.parse(C)};
_.bQ=function(){EBl||(EBl=new _.G$);return EBl};
_.G$.prototype.get=function(C,F){Wyr(C);tjG(C);C=F2[C]!==void 0?F2[C].toString():null;return C!=null?C:F?F:""};
_.G$.prototype.set=function(C,F){Wyr(C);tjG(C);if(F==null)throw Error("Mc");F2[C]=F.toString()};
_.G$.prototype.getFlag=function(C){return!!((a8S("f"+(Math.floor(C/31)+1))||0)&1<<C%31)};
_.nl=function(C,F,G){C="f"+(Math.floor(F/31)+1);F=1<<F%31;var V=a8S(C)||0;V=G?V|F:V&~F;V===0?delete F2[C]:(G=V.toString(16),F2[C]=G.toString())};
_.G$.prototype.remove=function(C){Wyr(C);tjG(C);delete F2[C]};
_.G$.prototype.save=function(){var C=!0;_.y("web_secure_pref_cookie_killswitch")&&(C=!1);_.vD(this.cookieName,this.dump(),63072E3,this.cookieDomain,C)};
_.G$.prototype.clear=function(){_.xf.clear(F2)};
_.G$.prototype.dump=function(){var C=[],F;for(F in F2)F2.hasOwnProperty(F)&&C.push(F+"="+encodeURIComponent(String(F2[F])));return C.join("&")};
var tjG=function(C){if(/^f([1-9][0-9]*)$/.test(C))throw Error("Nc`"+C);},Wyr=function(C){if(!/^\w+$/.test(C))throw Error("Oc`"+C);
},a8S=function(C){C=F2[C]!==void 0?F2[C].toString():null;
return C!=null&&/^[A-Fa-f0-9]+$/.test(C)?parseInt(C,16):null};
_.G$.prototype.parse=function(C){C=decodeURIComponent(C).split("&");for(var F=0;F<C.length;F++){var G=C[F].split("="),V=G[0];(G=G[1])&&(F2[V]=G.toString())}};var A3T={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"},ROA={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},Y3w={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},dVW={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var oP;_.VC=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.c8=function(C,F,G){return C.addJob(F,0,G)};
_.VC.prototype.addLowPriorityJob=function(C,F){return this.addJob(C,1,F)};
_.Iy=function(C,F,G){return C.addJob(F,2,G)};
_.FD=function(C,F,G){return C.addJob(F,3,G)};
_.rQ=function(C,F,G){return C.addJob(F,4,G)};
oP=function(C){var F=_.mN("yt.scheduler.instance.addImmediateJob");F?F(C):C()};
_.VC.prototype.debounce=function(C,F,G){var V=this,J=0,b=function(){J&&V.cancelJob(J);J=V.addJob(C,F,G);V.cancelDebouncedJobMap.set(b,J)};
return b};
_.VC.prototype.cancelThrottle=function(C){(C=this.cancelThrottledJobMap.get(C))&&C()};var ie=function(){_.VC.apply(this,arguments)};
_.O(ie,_.VC);_.Ws=function(){ie.instance||(ie.instance=new ie);return ie.instance};
ie.prototype.addJob=function(C,F,G){G!==void 0&&Number.isNaN(Number(G))&&(G=void 0);var V=_.mN("yt.scheduler.instance.addJob");return V?V(C,F,G):G===void 0?(C(),NaN):_.lH(C,G||0)};
ie.prototype.cancelJob=function(C){if(C===void 0||!Number.isNaN(Number(C))){var F=_.mN("yt.scheduler.instance.cancelJob");F?F(C):_.Ow(C)}};
ie.prototype.start=function(){var C=_.mN("yt.scheduler.instance.start");C&&C()};
ie.prototype.pause=function(){var C=_.mN("yt.scheduler.instance.pause");C&&C()};
_.gT=_.Ws();_.eP.prototype.set=function(C,F){F===void 0?this.mechanism.remove(C):this.mechanism.set(C,(0,_.MX)(F))};
_.eP.prototype.get=function(C){try{var F=this.mechanism.get(C)}catch(G){return}if(F!==null)try{return JSON.parse(F)}catch(G){throw"Storage: Invalid value was encountered";}};
_.eP.prototype.remove=function(C){this.mechanism.remove(C)};var JB=function(C){this.mechanism=C};
_.RE(JB,_.eP);var kUO=function(C){this.data=C},UVl=function(C){return C===void 0||C instanceof kUO?C:new kUO(C)};
JB.prototype.set=function(C,F){JB.superClass_.set.call(this,C,UVl(F))};
JB.prototype.getWrapper=function(C){C=JB.superClass_.get.call(this,C);if(C===void 0||C instanceof Object)return C;throw"Storage: Invalid value was encountered";};
JB.prototype.get=function(C){if(C=this.getWrapper(C)){if(C=C.data,C===void 0)throw"Storage: Invalid value was encountered";}else C=void 0;return C};_.RE(dj,JB);_.Hll=function(C){var F=C.creation;C=C.expiration;return!!C&&C<_.gp()||!!F&&F>_.gp()};
dj.prototype.set=function(C,F,G){if(F=UVl(F)){if(G){if(G<_.gp()){dj.prototype.remove.call(this,C);return}F.expiration=G}F.creation=_.gp()}dj.superClass_.set.call(this,C,F)};
dj.prototype.getWrapper=function(C,F){var G=dj.superClass_.getWrapper.call(this,C);if(G)if(!F&&_.Hll(G))dj.prototype.remove.call(this,C);else return G};var $p=function(){};
$p.prototype.next=function(){return be};
var be={done:!0,value:void 0},nx=function(C){return{value:C,done:!1}};
$p.prototype.__iterator__=function(){return this};
_.l8P=function(C){if(C instanceof $p)return C;if(typeof C.__iterator__=="function")return C.__iterator__(!1);if(_.gI(C)){var F=0,G=new $p;G.next=function(){for(;;){if(F>=C.length)return be;if(F in C)return nx(C[F++]);F++}};
return G}throw Error("Pc");};var y32=function(C){if(C instanceof ue||C instanceof z$||C instanceof QC)return C;if(typeof C.next=="function")return new ue(function(){return C});
if(typeof C[Symbol.iterator]=="function")return new ue(function(){return C[Symbol.iterator]()});
if(typeof C.__iterator__=="function")return new ue(function(){return C.__iterator__()});
throw Error("Qc");},ue=function(C){this.func_=C};
ue.prototype.__iterator__=function(){return new z$(this.func_())};
ue.prototype[Symbol.iterator]=function(){return new QC(this.func_())};
ue.prototype.toEs6=function(){return new QC(this.func_())};
var z$=function(C){this.JSC$10609_iter_=C};
_.O(z$,$p);z$.prototype.next=function(){return this.JSC$10609_iter_.next()};
z$.prototype[Symbol.iterator]=function(){return new QC(this.JSC$10609_iter_)};
z$.prototype.toEs6=function(){return new QC(this.JSC$10609_iter_)};
var QC=function(C){ue.call(this,function(){return C});
this.JSC$10612_iter_=C};
_.O(QC,ue);QC.prototype.next=function(){return this.JSC$10612_iter_.next()};var ZlO=function(){};var Is=function(){};
_.RE(Is,ZlO);Is.prototype.getCount=function(){for(var C=0,F=_.u(this),G=F.next();!G.done;G=F.next())C++;return C};
Is.prototype[Symbol.iterator]=function(){return y32(this.__iterator__(!0)).toEs6()};
Is.prototype.clear=function(){var C=Array.from(this);C=_.u(C);for(var F=C.next();!F.done;F=C.next())this.remove(F.value)};_.RE(xU,Is);_.n=xU.prototype;_.n.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var C=this.storage_;if(C)try{C.setItem("__sak","1");C.removeItem("__sak");var F=!0}catch(G){F=G instanceof DOMException&&(G.name==="QuotaExceededError"||G.code===22||G.code===1014||G.name==="NS_ERROR_DOM_QUOTA_REACHED")&&C&&C.length!==0}else F=!1;this.cachedIsStorageAvailable_=F}return this.cachedIsStorageAvailable_};
_.n.set=function(C,F){Ek(this);try{this.storage_.setItem(C,F)}catch(G){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.n.get=function(C){Ek(this);C=this.storage_.getItem(C);if(typeof C!=="string"&&C!==null)throw"Storage mechanism: Invalid value was encountered";return C};
_.n.remove=function(C){Ek(this);this.storage_.removeItem(C)};
_.n.getCount=function(){Ek(this);return this.storage_.length};
_.n.__iterator__=function(C){Ek(this);var F=0,G=this.storage_,V=new $p;V.next=function(){if(F>=G.length)return be;var J=G.key(F++);if(C)return nx(J);J=G.getItem(J);if(typeof J!=="string")throw"Storage mechanism: Invalid value was encountered";return nx(J)};
return V};
_.n.clear=function(){Ek(this);this.storage_.clear()};
_.n.key=function(C){Ek(this);return this.storage_.key(C)};
var Ek=function(C){if(C.storage_==null)throw Error("Rc");C.isAvailable()||iZ(Error("Rc"))};_.RE(sQ5,xU);_.RE(qZ9,xU);_.RE(sw,Is);sw.prototype.set=function(C,F){this.mechanism_.set(this.JSC$10627_prefix_+C,F)};
sw.prototype.get=function(C){return this.mechanism_.get(this.JSC$10627_prefix_+C)};
sw.prototype.remove=function(C){this.mechanism_.remove(this.JSC$10627_prefix_+C)};
sw.prototype.__iterator__=function(C){var F=this.mechanism_[Symbol.iterator](),G=this,V=new $p;V.next=function(){var J=F.next();if(J.done)return J;for(J=J.value;J.slice(0,G.JSC$10627_prefix_.length)!=G.JSC$10627_prefix_;){J=F.next();if(J.done)return J;J=J.value}return nx(C?J.slice(G.JSC$10627_prefix_.length):G.mechanism_.get(J))};
return V};_.rT=function(C){this.expiringStorage_=(C=_.PQI(C))?new dj(C):null;this.JSC$10631_domain_=document.domain||window.location.hostname};
_.n=_.rT.prototype;_.n.hasLocalStorage=function(){return!!this.expiringStorage_};
_.n.set=function(C,F,G,V){G=G||31104E3;this.remove(C);if(this.hasLocalStorage())try{this.expiringStorage_.set(C,F,Date.now()+G*1E3);return}catch(b){}var J="";if(V)try{J=escape((0,_.MX)(F))}catch(b){return}else J=escape(F);_.vD(C,J,G,this.JSC$10631_domain_)};
_.n.get=function(C,F){var G=void 0,V=!this.hasLocalStorage();if(!V)try{G=this.expiringStorage_.get(C)}catch(J){V=!0}if(V&&(G=_.BD.get(C,void 0))&&(G=unescape(G),F))try{G=JSON.parse(G)}catch(J){this.remove(C),G=void 0}return G};
_.n.remove=function(C){this.hasLocalStorage()&&this.expiringStorage_.remove(C);_.f8w(C,"/",this.JSC$10631_domain_)};
_.n.getCreationTime=function(C){return this.hasLocalStorage()&&(C=(this.expiringStorage_.getWrapper(C)||{}).creation,typeof C==="number")?C:null};var RRI=function(){var C;return function(){C||(C=new _.rT("ytidb"));return C}}();var Ths;_.PD=[];Ths=!1;var zOB=oBI||r3o;var Wa={},Nhu=(Wa.AUTH_INVALID="No user identifier specified.",Wa.EXPLICIT_ABORT="Transaction was explicitly aborted.",Wa.IDB_NOT_SUPPORTED="IndexedDB is not supported.",Wa.MISSING_INDEX="Index not created.",Wa.MISSING_OBJECT_STORES="Object stores not created.",Wa.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",Wa.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",Wa.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",Wa.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",Wa.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",Wa.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",Wa.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",Wa),tB={},Oly=(tB.AUTH_INVALID="ERROR",tB.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",tB.EXPLICIT_ABORT="IGNORED",
tB.IDB_NOT_SUPPORTED="ERROR",tB.MISSING_INDEX="WARNING",tB.MISSING_OBJECT_STORES="ERROR",tB.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",tB.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",tB.QUOTA_EXCEEDED="WARNING",tB.QUOTA_MAYBE_EXCEEDED="WARNING",tB.UNKNOWN_ABORT="WARNING",tB.INCOMPATIBLE_DB_VERSION="WARNING",tB),as={},XAy=(as.AUTH_INVALID=!1,as.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,as.EXPLICIT_ABORT=!1,as.IDB_NOT_SUPPORTED=!1,as.MISSING_INDEX=!1,as.MISSING_OBJECT_STORES=!1,as.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,as.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,as.QUOTA_EXCEEDED=!1,as.QUOTA_MAYBE_EXCEEDED=!0,as.UNKNOWN_ABORT=!0,as.INCOMPATIBLE_DB_VERSION=!1,as),rj=function(C,F,G,V,J){F=F===void 0?{}:F;G=G===void 0?Nhu[C]:G;V=V===void 0?Oly[C]:V;J=J===void 0?XAy[C]:J;_.Ay.call(this,G,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:C},F));this.type=C;this.message=G;this.level=V;this.retryable=J;Object.setPrototypeOf(this,rj.prototype)};
_.O(rj,_.Ay);var wAo=function(C,F){rj.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:F,foundObjectStores:C},Nhu.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,wAo.prototype)};
_.O(wAo,rj);var DVf=function(C,F){var G=Error.call(this);this.message=G.message;"stack"in G&&(this.stack=G.stack);this.index=C;this.objectStore=F;Object.setPrototypeOf(this,DVf.prototype)};
_.O(DVf,Error);var pA9=["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 mx=function(C){this.executor=C},pD=function(C){var F=this;
this.state={status:"PENDING"};this.JSC$10659_onFulfilled=[];this.JSC$10659_onRejected=[];C=C.executor;var G=function(J){if(F.state.status==="PENDING"){F.state={status:"FULFILLED",value:J};J=_.u(F.JSC$10659_onFulfilled);for(var b=J.next();!b.done;b=J.next())b=b.value,b()}},V=function(J){if(F.state.status==="PENDING"){F.state={status:"REJECTED",
reason:J};J=_.u(F.JSC$10659_onRejected);for(var b=J.next();!b.done;b=J.next())b=b.value,b()}};
try{C(G,V)}catch(J){V(J)}};
pD.all=function(C){return new pD(new mx(function(F,G){var V=[],J=C.length;J===0&&F(V);for(var b={i$jscomp$468:0};b.i$jscomp$468<C.length;b={i$jscomp$468:b.i$jscomp$468},++b.i$jscomp$468)pD.resolve(C[b.i$jscomp$468]).then(function(z){return function(Q){V[z.i$jscomp$468]=Q;J--;J===0&&F(V)}}(b)).catch(function(z){G(z)})}))};
pD.resolve=function(C){return new pD(new mx(function(F,G){C instanceof pD?C.then(F,G):F(C)}))};
pD.reject=function(C){return new pD(new mx(function(F,G){G(C)}))};
pD.prototype.then=function(C,F){var G=this,V=C!=null?C:jAW,J=F!=null?F:CKq;return new pD(new mx(function(b,z){G.state.status==="PENDING"?(G.JSC$10659_onFulfilled.push(function(){Mju(G,G,V,b,z)}),G.JSC$10659_onRejected.push(function(){SZm(G,G,J,b,z)})):G.state.status==="FULFILLED"?Mju(G,G,V,b,z):G.state.status==="REJECTED"&&SZm(G,G,J,b,z)}))};
pD.prototype.catch=function(C){return this.then(void 0,C)};
var Mju=function(C,F,G,V,J){try{if(C.state.status!=="FULFILLED")throw Error("Uc");var b=G(C.state.value);b instanceof pD?LyO(C,F,b,V,J):V(b)}catch(z){J(z)}},SZm=function(C,F,G,V,J){try{if(C.state.status!=="REJECTED")throw Error("Vc");
var b=G(C.state.reason);b instanceof pD?LyO(C,F,b,V,J):V(b)}catch(z){J(z)}},LyO=function(C,F,G,V,J){F===G?J(new TypeError("Wc")):G.then(function(b){b instanceof pD?LyO(C,F,b,V,J):V(b)},function(b){J(b)})};var kp;kp=window;_.Et=kp.ytcsi&&kp.ytcsi.now?kp.ytcsi.now:kp.performance&&kp.performance.timing&&kp.performance.now&&kp.performance.timing.navigationStart?function(){return kp.performance.timing.navigationStart+kp.performance.now()}:function(){return(new Date).getTime()};var jM=function(C,F){this.JSC$10671_wrapped=C;this.options=F;this.transactionCount=0;this.startedMs=Math.round((0,_.Et)());this.hasUnknownAbortedTransaction=!1},Uk=function(){return _.y("idb_immediate_commit")},f8l,hRr,yC,eRu;
jM.prototype.add=function(C,F,G){return _.Jn(this,[C],{mode:"readwrite",enableRetries:!0,commit:Uk()},function(V){return V.objectStore(C).add(F,G)})};
jM.prototype.clear=function(C){return _.Jn(this,[C],{mode:"readwrite",enableRetries:!0},function(F){return F.objectStore(C).clear()})};
jM.prototype.close=function(){this.JSC$10671_wrapped.close();var C;((C=this.options)==null?0:C.closed)&&this.options.closed()};
jM.prototype.count=function(C,F){return _.Jn(this,[C],{mode:"readonly",enableRetries:!0,commit:Uk()},function(G){return G.objectStore(C).count(F)})};
var Ds=function(C,F,G){C=C.JSC$10671_wrapped.createObjectStore(F,G);return new Ha(C)};
jM.prototype.delete=function(C,F){return _.Jn(this,[C],{mode:"readwrite",enableRetries:!0,commit:Uk()&&!(F instanceof IDBKeyRange)},function(G){return G.objectStore(C).delete(F)})};
var BhE=function(C,F){return _.Jn(C,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(G){return G.objectStore("ResponseStore").index("byInterface").delete(F)})};
jM.prototype.get=function(C,F){return _.Jn(this,[C],{mode:"readonly",enableRetries:!0,commit:Uk()},function(G){return G.objectStore(C).get(F)})};
jM.prototype.getAll=function(C,F,G){return _.Jn(this,[C],{mode:"readonly",enableRetries:!0},function(V){return V.objectStore(C).getAll(F,G)})};
jM.prototype.put=function(C,F,G){return _.Jn(this,[C],{mode:"readwrite",enableRetries:!0,commit:Uk()},function(V){return V.objectStore(C).put(F,G)})};
jM.prototype.objectStoreNames=function(){return Array.from(this.JSC$10671_wrapped.objectStoreNames)};
_.Jn=function(C,F,G,V){var J,b,z,Q,E,t,k,U,H,l,N,S;return _.I(function(f){switch(f.nextAddress){case 1:var c={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof G==="string"?c.mode=G:Object.assign(c,G);J=c;C.transactionCount++;b=J.enableRetries?3:1;z=0;case 2:if(Q){f.jumpTo(4);break}z++;E=Math.round((0,_.Et)());_.yy(f,5);t=C.JSC$10671_wrapped.transaction(F,J.mode);c=f.yield;var A=!!J.commit;var T=new FT(t);A=vBS(T,V,A);return c.call(f,A,7);case 7:return k=f.yieldResult,U=Math.round((0,_.Et)()),
f8l(C,E,U,z,void 0,F.join(),J),f.return(k);case 5:H=_.wa(f);l=Math.round((0,_.Et)());N=mVW(H,C.JSC$10671_wrapped.name,F.join(),C.JSC$10671_wrapped.version);if((S=N instanceof rj&&!N.retryable)||z>=b)f8l(C,E,l,z,N,F.join(),J),Q=N;f.jumpTo(2);break;case 4:return f.return(Promise.reject(Q))}})};
f8l=function(C,F,G,V,J,b,z){F=G-F;J?(J instanceof rj&&(J.type==="QUOTA_EXCEEDED"||J.type==="QUOTA_MAYBE_EXCEEDED")&&R8("QUOTA_EXCEEDED",{dbName:TN(C.JSC$10671_wrapped.name),objectStoreNames:b,transactionCount:C.transactionCount,transactionMode:z.mode}),J instanceof rj&&J.type==="UNKNOWN_ABORT"&&(G-=C.startedMs,G<0&&G>=2147483648&&(G=0),R8("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:b,transactionDuration:F,transactionCount:C.transactionCount,dbDuration:G}),C.hasUnknownAbortedTransaction=!0),
hRr(C,!1,V,b,F,z.tag),_.gj(J)):hRr(C,!0,V,b,F,z.tag)};
hRr=function(C,F,G,V,J,b){R8("TRANSACTION_ENDED",{objectStoreNames:V,connectionHasUnknownAbortedTransaction:C.hasUnknownAbortedTransaction,duration:J,isSuccessful:F,tryCount:G,tag:b===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":b})};
jM.prototype.getName=function(){return this.JSC$10671_wrapped.name};
var Ha=function(C){this.JSC$10686_wrapped=C};
Ha.prototype.add=function(C,F){return CO(this.JSC$10686_wrapped.add(C,F))};
Ha.prototype.autoIncrement=function(){return this.JSC$10686_wrapped.autoIncrement};
Ha.prototype.clear=function(){return CO(this.JSC$10686_wrapped.clear()).then(function(){})};
var pO=function(C,F,G){C.JSC$10686_wrapped.createIndex(F,G,{unique:!1})};
Ha.prototype.count=function(C){return CO(this.JSC$10686_wrapped.count(C))};
var c3E=function(C,F){return bw(C,{query:F},function(G){return G.delete().then(function(){return G.continue()})}).then(function(){})};
Ha.prototype.delete=function(C){return C instanceof IDBKeyRange?c3E(this,C):CO(this.JSC$10686_wrapped.delete(C))};
Ha.prototype.get=function(C){return CO(this.JSC$10686_wrapped.get(C))};
Ha.prototype.getAll=function(C,F){return"getAll"in IDBObjectStore.prototype?CO(this.JSC$10686_wrapped.getAll(C,F)):A3r(this,C,F)};
var A3r=function(C,F,G){var V=[];return bw(C,{query:F},function(J){if(!(G!==void 0&&V.length>=G))return V.push(J.getValue()),J.continue()}).then(function(){return V})};
Ha.prototype.index=function(C){try{return new le(this.JSC$10686_wrapped.index(C))}catch(F){if(F instanceof Error&&F.name==="NotFoundError")throw new DVf(C,this.JSC$10686_wrapped.name);throw F;}};
Ha.prototype.getName=function(){return this.JSC$10686_wrapped.name};
Ha.prototype.keyPath=function(){return this.JSC$10686_wrapped.keyPath};
Ha.prototype.put=function(C,F){return CO(this.JSC$10686_wrapped.put(C,F))};
var bw=function(C,F,G){C=C.JSC$10686_wrapped.openCursor(F.query,F.direction);return eRu(C).then(function(V){return VNo(V,G)})},FT=function(C){var F=this;
this.JSC$10694_wrapped=C;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(G,V){F.JSC$10694_wrapped.addEventListener("complete",function(){G()});
F.JSC$10694_wrapped.addEventListener("error",function(J){J.currentTarget===J.target&&V(F.JSC$10694_wrapped.error)});
F.JSC$10694_wrapped.addEventListener("abort",function(){var J=F.JSC$10694_wrapped.error;if(J)V(J);else if(!F.aborted){J=rj;for(var b=F.JSC$10694_wrapped.objectStoreNames,z=[],Q=0;Q<b.length;Q++){var E=b.item(Q);if(E===null)throw Error("Xc");z.push(E)}J=new J("UNKNOWN_ABORT",{objectStoreNames:z.join(),dbName:F.JSC$10694_wrapped.db.name,mode:F.JSC$10694_wrapped.mode});V(J)}})})},vBS=function(C,F,G){var V=new Promise(function(J,b){try{var z=F(C);
G&&C.commit();z.then(function(Q){J(Q)}).catch(b)}catch(Q){b(Q),C.abort()}});
return Promise.all([V,C.done]).then(function(J){return _.u(J).next().value})};
FT.prototype.abort=function(){this.JSC$10694_wrapped.abort();this.aborted=!0;throw new rj("EXPLICIT_ABORT");};
FT.prototype.commit=function(){if(!this.aborted){var C,F;(F=(C=this.JSC$10694_wrapped).commit)==null||F.call(C)}};
FT.prototype.objectStore=function(C){C=this.JSC$10694_wrapped.objectStore(C);var F=this.objectStoreCache.get(C);F||(F=new Ha(C),this.objectStoreCache.set(C,F));return F};
var le=function(C){this.JSC$10696_wrapped=C};
le.prototype.count=function(C){return CO(this.JSC$10696_wrapped.count(C))};
le.prototype.delete=function(C){return _.Wg(this,{query:C},function(F){return F.delete().then(function(){return F.continue()})})};
le.prototype.get=function(C){return CO(this.JSC$10696_wrapped.get(C))};
le.prototype.getAll=function(C,F){return"getAll"in IDBIndex.prototype?CO(this.JSC$10696_wrapped.getAll(C,F)):dV$(this,C,F)};
var dV$=function(C,F,G){var V=[];return _.Wg(C,{query:F},function(J){if(!(G!==void 0&&V.length>=G))return V.push(J.getValue()),J.continue()}).then(function(){return V})};
le.prototype.keyPath=function(){return this.JSC$10696_wrapped.keyPath};
le.prototype.unique=function(){return this.JSC$10696_wrapped.unique};
_.Wg=function(C,F,G){C=C.JSC$10696_wrapped.openCursor(F.query===void 0?null:F.query,F.direction===void 0?"next":F.direction);return eRu(C).then(function(V){return VNo(V,G)})};
yC=function(C,F){this.request=C;this.cursor=F};
eRu=function(C){return CO(C).then(function(F){return F?new yC(C,F):null})};
yC.prototype.continue=function(C){this.cursor.continue(C);return eRu(this.request)};
yC.prototype.delete=function(){return CO(this.cursor.delete()).then(function(){})};
yC.prototype.getValue=function(){return this.cursor.value};
yC.prototype.update=function(C){return CO(this.cursor.update(C))};var Zh=function(C,F){this.name=C;this.options=F;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},xVO;
Zh.prototype.openDb=function(C,F,G){G=G===void 0?{}:G;return J4I(C,F,G)};
Zh.prototype.delete=function(C){C=C===void 0?{}:C;return _.Vn(this.name,C)};
xVO=function(C,F){return new rj("INCOMPATIBLE_DB_VERSION",{dbName:C.name,oldVersion:C.options.version,newVersion:F})};
_.iw=function(C,F){if(!F)throw D9("openWithToken",TN(C.name));return C.open()};
Zh.prototype.open=function(){var C=this;if(!this.isCompatible)throw xVO(this);if(this.connectionPromise)return this.connectionPromise;var F,G=function(){C.connectionPromise===F&&(C.connectionPromise=void 0)},V={blocking:function(b){b.close()},
closed:G,terminated:G,upgrade:this.options.upgrade},J=function(){var b,z,Q,E,t,k,U,H,l,N;return _.I(function(S){switch(S.nextAddress){case 1:return z=(b=Error().stack)!=null?b:"",_.yy(S,2),S.yield(C.openDb(C.name,C.options.version,V),4);case 4:for(var f=Q=S.yieldResult,c=C.options,A=[],T=_.u(Object.keys(c.objectStores)),P=T.next();!P.done;P=T.next()){P=P.value;var g=c.objectStores[P],r=g.removedAtVersion===void 0?Number.MAX_VALUE:g.removedAtVersion;!(f.JSC$10671_wrapped.version>=g.addedAtVersion)||
f.JSC$10671_wrapped.version>=r||f.JSC$10671_wrapped.objectStoreNames.contains(P)||A.push(P)}E=A;if(E.length===0){S.jumpTo(5);break}t=Object.keys(C.options.objectStores);k=Q.objectStoreNames();if(C.timesReopenedToFixMissingObjectStore<_.a8("ytidb_reopen_db_retries",0))return C.timesReopenedToFixMissingObjectStore++,Q.close(),_.gj(new rj("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:C.name,expectedObjectStores:t,foundObjectStores:k})),S.return(J());if(!(C.timesDeletedToFixMissingObjectStore<_.a8("ytidb_remake_db_retries",
1))){S.jumpTo(6);break}C.timesDeletedToFixMissingObjectStore++;return S.yield(C.delete(),7);case 7:return _.gj(new rj("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:C.name,expectedObjectStores:t,foundObjectStores:k})),S.return(J());case 6:throw new wAo(k,t);case 5:return S.return(Q);case 2:U=_.wa(S);if(U instanceof DOMException?U.name!=="VersionError":"DOMError"in self&&U instanceof DOMError?U.name!=="VersionError":!(U instanceof Object&&"message"in U)||U.message!=="An attempt was made to open a database using a lower version than the existing version."){S.jumpTo(8);
break}return S.yield(C.openDb(C.name,void 0,Object.assign({},V,{upgrade:void 0})),9);case 9:H=S.yieldResult;l=H.JSC$10671_wrapped.version;if(C.options.version!==void 0&&l>C.options.version+1)throw H.close(),C.isCompatible=!1,xVO(C,l);return S.return(H);case 8:throw G(),U instanceof Error&&!_.y("ytidb_async_stack_killswitch")&&(U.stack=U.stack+"\n"+z.substring(z.indexOf("\n")+1)),mVW(U,C.name,"",(N=C.options.version)!=null?N:-1);}})};
return this.connectionPromise=F=J()};var $WA=new Zh("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(C,F){F(1)&&Ds(C,"databases",{keyPath:"actualName"})}});var E2q,QAq=new function(){}(new function(){});new _.Cd;var sQy=function(C,F){Zh.call(this,C,F);this.options=F;YU(C)};
_.O(sQy,Zh);var NdW=function(C,F){var G;return function(){G||(G=new sQy(C,F));return G}};
sQy.prototype.openDb=function(C,F,G){G=G===void 0?{}:G;return(this.options.shared?UWS:kcS)(C,F,Object.assign({},G))};
sQy.prototype.delete=function(C){C=C===void 0?{}:C;return(this.options.shared?Z7q:H7T)(this.name,C)};var qZP={},O7A=Ia("ytGcfConfig",{objectStores:(qZP.coldConfigStore={addedAtVersion:1},qZP.hotConfigStore={addedAtVersion:1},qZP),shared:!1,upgrade:function(C,F){F(1)&&(pO(Ds(C,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),pO(Ds(C,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var PQ2=function(){_.hV.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var C=_.mN("yt.gcf.config.hotUpdateCallbacks");C?(this.localHotConfigJobQueue=[].concat(_.da(C)),this.sharedHotConfigJobQueue=C):(this.sharedHotConfigJobQueue=[],_.zn("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.O(PQ2,_.hV);PQ2.prototype.disposeInternal=function(){for(var C=_.u(this.localHotConfigJobQueue),F=C.next();!F.done;F=C.next()){var G=this.sharedHotConfigJobQueue;F=G.indexOf(F.value);F>=0&&G.splice(F,1)}this.localHotConfigJobQueue.length=0;_.hV.prototype.disposeInternal.call(this)};var A5=function(){var C=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new PQ2;this.TEST_ONLY={initializeConfigDb:function(){C.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return C.coldGlobalConfigGroup},
setHotConfigGroup:function(F){gB2(C,F)},
setHotHashData:function(F){C.setHotHashData(F)},
setColdConfigGroup:function(F){RR2(C,F)},
getColdHashData:function(){return C.coldHashData},
getHotHashData:function(){return C.hotHashData},
getHotConfigGroup:function(){return C.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return YZu()},
getExportedHotConfigGroup:function(){return Nq()},
getExportedColdHashData:function(){return _.mN("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.mN("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){ThO(C)},
resetInstance:function(){C.setHotHashData(void 0);oB2(C);delete A5.instance},
setDebounceTimer:function(F){C.debounceTimer=F},
getDebounceTimer:function(){return C.debounceTimer}}},r3u=function(){if(!A5.instance){var C=new A5;
A5.instance=C}return A5.instance},pAP=function(C){var F;
_.I(function(G){if(G.nextAddress==1)return _.y("start_client_gcf")||_.y("delete_gcf_config_db")?_.y("start_client_gcf")?G.yield(_.Qn(),3):G.jumpTo(2):G.return();G.nextAddress!=2&&((F=G.yieldResult)&&_.cD()&&!_.y("delete_gcf_config_db")?(C.isConfigDbInitialized=!0,ThO(C)):(Ky2(C),DVo(C)));return _.y("delete_gcf_config_db")?G.yield(Bd9(),0):G.jumpTo(0)})},eQ=function(){var C;
return(C=Nq())!=null?C:_.TF("RAW_HOT_CONFIG_GROUP")},mV$=function(C){var F,G,V,J,b,z;
return _.I(function(Q){switch(Q.nextAddress){case 1:if(C.hotGlobalConfigGroup)return Q.return(Nq());if(!C.isConfigDbInitialized)return F=D9("getHotConfig IDB not initialized"),_.CD(F),Q.return(Promise.reject(F));G=uw();V=_.TF("TIME_CREATED_MS");if(!G){J=D9("getHotConfig token error");_.CD(J);Q.jumpTo(2);break}return Q.yield(LDo(G),3);case 3:if((b=Q.yieldResult)&&b.timestamp>V)return gB2(C,b.config),C.setHotHashData(b.hashData),Q.return(Nq());case 2:DVo(C);if(!(G&&C.hotGlobalConfigGroup&&C.hotHashData)){Q.jumpTo(4);
break}return Q.yield(wYo(C.hotGlobalConfigGroup,C.hotHashData,G,V),4);case 4:return C.hotGlobalConfigGroup?Q.return(Nq()):(z=new _.Ay("Config not available in ytConfig"),_.CD(z),Q.return(Promise.reject(z)))}})},jA$=function(C){var F,G,V,J,b,z;
return _.I(function(Q){switch(Q.nextAddress){case 1:if(C.coldGlobalConfigGroup)return Q.return(YZu());if(!C.isConfigDbInitialized)return F=D9("getColdConfig IDB not initialized"),_.CD(F),Q.return(Promise.reject(F));G=uw();V=_.TF("TIME_CREATED_MS");if(!G){J=D9("getColdConfig");_.CD(J);Q.jumpTo(2);break}return Q.yield(S3A(G),3);case 3:if((b=Q.yieldResult)&&b.timestamp>V)return RR2(C,b.config),CKG(C,b.configData),oB2(C,b.hashData),Q.return(YZu());case 2:Ky2(C);if(!(G&&C.coldGlobalConfigGroup&&C.coldHashData&&
C.configData)){Q.jumpTo(4);break}return Q.yield(MNf(C.coldGlobalConfigGroup,C.coldHashData,C.configData,G,V),4);case 4:return C.coldGlobalConfigGroup?Q.return(YZu()):(z=new _.Ay("Config not available in ytConfig"),_.CD(z),Q.return(Promise.reject(z)))}})},ThO=function(C){if(!C.hotGlobalConfigGroup||!C.coldGlobalConfigGroup){if(!uw()){var F=D9("scheduleGetConfigs");
_.CD(F)}C.initJob||(C.initJob=_.gT.addLowPriorityJob(function(){return _.I(function(G){switch(G.nextAddress){case 1:return _.yy(G,2),G.yield(mV$(C),4);case 4:_.Gn(G,3);break;case 2:_.wa(G);case 3:return _.yy(G,5),G.yield(jA$(C),7);case 7:_.Gn(G,6);break;case 5:_.wa(G);case 6:C.initJob&&(C.initJob=0),_.S9(G)}})},100))}},MnS=function(C,F,G){var V,J,b;
return _.I(function(z){switch(z.nextAddress){case 1:if(!_.y("start_client_gcf")){z.jumpTo(0);break}G&&gB2(C,G);C.setHotHashData(F);V=uw();if(!V){z.jumpTo(3);break}if(G){z.jumpTo(4);break}return z.yield(LDo(V),5);case 5:J=z.yieldResult,G=(b=J)==null?void 0:b.config;case 4:return z.yield(wYo(G,F,V),3);case 3:if(G)for(var Q=G,E=_.u(C.configUpdateService.sharedHotConfigJobQueue),t=E.next();!t.done;t=E.next())t=t.value,t(Q);_.S9(z)}})},S4w=function(C,F,G){var V,J,b,z;
return _.I(function(Q){if(Q.nextAddress==1){if(!_.y("start_client_gcf"))return Q.jumpTo(0);oB2(C,F);return(V=uw())?G?Q.jumpTo(4):Q.yield(S3A(V),5):Q.jumpTo(0)}Q.nextAddress!=4&&(J=Q.yieldResult,G=(b=J)==null?void 0:b.config);if(!G)return Q.jumpTo(0);z=G.configData;return Q.yield(MNf(G,F,z,V),0)})},KDA=function(){var C=r3u(),F=(0,_.Et)()-C.debounceTimer;
if(!(C.debounceTimer!==0&&F<_.a8("send_config_hash_timer"))){F=_.mN("yt.gcf.config.coldConfigData");var G=_.mN("yt.gcf.config.hotHashData"),V=_.mN("yt.gcf.config.coldHashData");F&&G&&V&&(C.debounceTimer=(0,_.Et)());return{coldConfigData:F,hotHashData:G,coldHashData:V}}},Ky2=function(C){RR2(C,_.TF("RAW_COLD_CONFIG_GROUP"));
oB2(C,_.TF("SERIALIZED_COLD_HASH_DATA"));var F;CKG(C,(F=C.coldGlobalConfigGroup)==null?void 0:F.configData)},DVo=function(C){gB2(C,_.TF("RAW_HOT_CONFIG_GROUP"));
C.setHotHashData(_.TF("SERIALIZED_HOT_HASH_DATA"))},gB2=function(C,F){C.hotGlobalConfigGroup=F;
_.zn("yt.gcf.config.hotConfigGroup",C.hotGlobalConfigGroup||null)},RR2=function(C,F){C.coldGlobalConfigGroup=F;
_.zn("yt.gcf.config.coldConfigGroup",C.coldGlobalConfigGroup||null)};
A5.prototype.setHotHashData=function(C){this.hotHashData=C;_.zn("yt.gcf.config.hotHashData",this.hotHashData||null)};
var oB2=function(C,F){C.coldHashData=F;_.zn("yt.gcf.config.coldHashData",C.coldHashData||null)},CKG=function(C,F){C.configData=F;
_.zn("yt.gcf.config.coldConfigData",C.configData||null)},Nq=function(){return _.mN("yt.gcf.config.hotConfigGroup")},YZu=function(){return _.mN("yt.gcf.config.coldConfigGroup")};var Ot={},FD7=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";Ot.assign=function(C){for(var F=Array.prototype.slice.call(arguments,1);F.length;){var G=F.shift();if(G){if(typeof G!=="object")throw new TypeError("$c`"+G);for(var V in G)Object.prototype.hasOwnProperty.call(G,V)&&(C[V]=G[V])}}return C};
Ot.shrinkBuf=function(C,F){if(C.length===F)return C;if(C.subarray)return C.subarray(0,F);C.length=F;return C};
var Gcl={arraySet:function(C,F,G,V,J){if(F.subarray&&C.subarray)C.set(F.subarray(G,G+V),J);else for(var b=0;b<V;b++)C[J+b]=F[G+b]},
flattenChunks:function(C){var F,G;var V=G=0;for(F=C.length;V<F;V++)G+=C[V].length;var J=new Uint8Array(G);V=G=0;for(F=C.length;V<F;V++){var b=C[V];J.set(b,G);G+=b.length}return J}},VNu={arraySet:function(C,F,G,V,J){for(var b=0;b<V;b++)C[J+b]=F[G+b]},
flattenChunks:function(C){return[].concat.apply([],C)}};
Ot.setTyped=function(){FD7?(Ot.Buf8=Uint8Array,Ot.Buf16=Uint16Array,Ot.Buf32=Int32Array,Ot.assign(Ot,Gcl)):(Ot.Buf8=Array,Ot.Buf16=Array,Ot.Buf32=Array,Ot.assign(Ot,VNu))};
Ot.setTyped();var i7l=!0;try{new Uint8Array(1)}catch(C){i7l=!1}
var L5W=function(C){var F,G,V=C.length,J=0;for(F=0;F<V;F++){var b=C.charCodeAt(F);if((b&64512)===55296&&F+1<V){var z=C.charCodeAt(F+1);(z&64512)===56320&&(b=65536+(b-55296<<10)+(z-56320),F++)}J+=b<128?1:b<2048?2:b<65536?3:4}var Q=new Ot.Buf8(J);for(F=G=0;G<J;F++)b=C.charCodeAt(F),(b&64512)===55296&&F+1<V&&(z=C.charCodeAt(F+1),(z&64512)===56320&&(b=65536+(b-55296<<10)+(z-56320),F++)),b<128?Q[G++]=b:(b<2048?Q[G++]=192|b>>>6:(b<65536?Q[G++]=224|b>>>12:(Q[G++]=240|b>>>18,Q[G++]=128|b>>>12&63),Q[G++]=
128|b>>>6&63),Q[G++]=128|b&63);return Q};var at9={};at9=function(C,F,G,V){var J=C&65535|0;C=C>>>16&65535|0;for(var b;G!==0;){b=G>2E3?2E3:G;G-=b;do J=J+F[V++]|0,C=C+J|0;while(--b);J%=65521;C%=65521}return J|C<<16|0};for(var dT={},Ok,J42=[],$Wu=0;$Wu<256;$Wu++){Ok=$Wu;for(var b7o=0;b7o<8;b7o++)Ok=Ok&1?3988292384^Ok>>>1:Ok>>>1;J42[$Wu]=Ok}dT=function(C,F,G,V){G=V+G;for(C^=-1;V<G;V++)C=C>>>8^J42[(C^F[V])&255];return C^-1};var SM={};SM={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 JRA=[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],bdT=[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],S6q=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],W5A=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],fO=Array(576);lw(fO);var hn=Array(60);lw(hn);var wT=Array(512);lw(wT);var XT=Array(256);lw(XT);var $zi=Array(29);lw($zi);var nTB=Array(30);lw(nTB);var Xrw,wrW,MvW,OdA=!1;var Pg;
Pg=[new qM(0,0,0,0,function(C,F){var G=65535;for(G>C.pending_buf_size-5&&(G=C.pending_buf_size-5);;){if(C.lookahead<=1){xx(C);if(C.lookahead===0&&F===0)return 1;if(C.lookahead===0)break}C.strstart+=C.lookahead;C.lookahead=0;var V=C.block_start+G;if(C.strstart===0||C.strstart>=V)if(C.lookahead=C.strstart-V,C.strstart=V,cg(C,!1),C.strm.avail_out===0)return 1;if(C.strstart-C.block_start>=C.w_size-262&&(cg(C,!1),C.strm.avail_out===0))return 1}C.insert=0;if(F===4)return cg(C,!0),C.strm.avail_out===0?3:
4;C.strstart>C.block_start&&cg(C,!1);return 1}),
new qM(4,4,8,4,ktq),new qM(4,5,16,8,ktq),new qM(4,6,32,32,ktq),new qM(4,4,16,16,st),new qM(8,16,32,32,st),new qM(8,16,128,128,st),new qM(8,32,128,256,st),new qM(32,128,258,1024,st),new qM(32,258,258,4096,st)];var N7W={};N7W=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 B7E=Object.prototype.toString;
ZdI.prototype.push=function(C,F){var G=this.strm,V=this.options.chunkSize;if(this.ended)return!1;var J=F===~~F?F:F===!0?4:0;typeof C==="string"?G.input=L5W(C):B7E.call(C)==="[object ArrayBuffer]"?G.input=new Uint8Array(C):G.input=C;G.next_in=0;G.avail_in=G.input.length;do{G.avail_out===0&&(G.output=new Ot.Buf8(V),G.next_out=0,G.avail_out=V);C=yRA(G,J);if(C!==1&&C!==0)return n2m(this,C),this.ended=!0,!1;if(G.avail_out===0||G.avail_in===0&&(J===4||J===2))if(this.options.to==="string"){var b=Ot.shrinkBuf(G.output,
G.next_out);F=b;b=b.length;if(b<65537&&(F.subarray&&i7l||!F.subarray))F=String.fromCharCode.apply(null,Ot.shrinkBuf(F,b));else{for(var z="",Q=0;Q<b;Q++)z+=String.fromCharCode(F[Q]);F=z}this.chunks.push(F)}else F=Ot.shrinkBuf(G.output,G.next_out),this.chunks.push(F)}while((G.avail_in>0||G.avail_out===0)&&C!==1);if(J===4)return(G=this.strm)&&G.state?(V=G.state.status,V!==42&&V!==69&&V!==73&&V!==91&&V!==103&&V!==113&&V!==666?C=LO(G,-2):(G.state=null,C=V===113?LO(G,-3):0)):C=-2,n2m(this,C),this.ended=
!0,C===0;J===2&&(n2m(this,0),G.avail_out=0);return!0};
var n2m=function(C,F){F===0&&(C.result=C.options.to==="string"?C.chunks.join(""):Ot.flattenChunks(C.chunks));C.chunks=[];C.err=F;C.msg=C.strm.msg};var u0P=typeof TextEncoder!=="undefined"?new TextEncoder:null,$r5=u0P?function(C){return u0P.encode(C)}:function(C){C=_.ff(C);
for(var F=new Uint8Array(C.length),G=0;G<F.length;G++)F[G]=C[G];return F};var DSf={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},mSf={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var X2=function(C,F){this.version=C;this.args=F};
X2.prototype.serialize=function(){return{version:this.version,args:this.args}};var AR5=function(C,F){this.topic=C;this.dataClass=F};
AR5.prototype.toString=function(){return this.topic};var zOm=_.mN("ytPubsub2Pubsub2Instance")||new _.SP;_.SP.prototype.subscribe=_.SP.prototype.subscribe;_.SP.prototype.unsubscribeByKey=_.SP.prototype.unsubscribeByKey;_.SP.prototype.publish=_.SP.prototype.publish;_.SP.prototype.clear=_.SP.prototype.clear;_.zn("ytPubsub2Pubsub2Instance",zOm);var cRE=_.mN("ytPubsub2Pubsub2SubscribedKeys")||{};_.zn("ytPubsub2Pubsub2SubscribedKeys",cRE);var dzs=_.mN("ytPubsub2Pubsub2TopicToKeys")||{};_.zn("ytPubsub2Pubsub2TopicToKeys",dzs);
var eui=_.mN("ytPubsub2Pubsub2IsAsync")||{};_.zn("ytPubsub2Pubsub2IsAsync",eui);_.zn("ytPubsub2Pubsub2SkipSubKey",null);var rRs=void 0,T7E=void 0;var GpE=_.a8("max_body_size_to_compress",5E5),VrW=_.a8("min_body_size_to_compress",500),Yx=!0,uUf=0,Tn=0,nzE=_.a8("compression_performance_threshold_lr",250),zGo=_.a8("slow_compressions_before_abandon_count",4),prq=!1,mzE=new Map,Jvo=1,i5S=!0;_.RE(oa,Ezs);oa.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 QAG=function(C,F,G){G||(G=0);var V=C.W_;if(typeof F==="string")for(var J=0;J<16;J++)V[J]=F.charCodeAt(G)<<24|F.charCodeAt(G+1)<<16|F.charCodeAt(G+2)<<8|F.charCodeAt(G+3),G+=4;else for(J=0;J<16;J++)V[J]=F[G]<<24|F[G+1]<<16|F[G+2]<<8|F[G+3],G+=4;for(F=16;F<80;F++)G=V[F-3]^V[F-8]^V[F-14]^V[F-16],V[F]=(G<<1|G>>>31)&4294967295;F=C.chain_[0];G=C.chain_[1];J=C.chain_[2];for(var b=C.chain_[3],z=C.chain_[4],Q,E,t=0;t<80;t++)t<40?t<20?(Q=b^G&(J^b),E=1518500249):(Q=G^J^b,E=1859775393):t<60?(Q=G&J|b&(G|J),
E=2400959708):(Q=G^J^b,E=3395469782),Q=(F<<5|F>>>27)+Q+z+E+V[t]&4294967295,z=b,b=J,J=(G<<30|G>>>2)&4294967295,G=F,F=Q;C.chain_[0]=C.chain_[0]+F&4294967295;C.chain_[1]=C.chain_[1]+G&4294967295;C.chain_[2]=C.chain_[2]+J&4294967295;C.chain_[3]=C.chain_[3]+b&4294967295;C.chain_[4]=C.chain_[4]+z&4294967295};
oa.prototype.update=function(C,F){if(C!=null){F===void 0&&(F=C.length);for(var G=F-this.blockSize,V=0,J=this.buf_,b=this.inbuf_;V<F;){if(b==0)for(;V<=G;)QAG(this,C,V),V+=this.blockSize;if(typeof C==="string")for(;V<F;){if(J[b]=C.charCodeAt(V),++b,++V,b==this.blockSize){QAG(this,J);b=0;break}}else for(;V<F;)if(J[b]=C[V],++b,++V,b==this.blockSize){QAG(this,J);b=0;break}}this.inbuf_=b;this.total_+=F}};
oa.prototype.digest=function(){var C=[],F=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var G=this.blockSize-1;G>=56;G--)this.buf_[G]=F&255,F/=256;QAG(this,this.buf_);for(G=F=0;G<5;G++)for(var V=24;V>=0;V-=8)C[F]=this.chain_[G]>>V&255,++F;return C};var a5I;var Mq=function(C){var F=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(k){F.databaseToken=k},
triggerThrottle:function(){F.throttledSend()},
cancelThrottle:function(){F.cancelThrottledSend()},
immediateSend:function(k){return _.I(function(U){return U.yield(F.immediateSend(k),0)})},
requestWithinAgeLimit:function(k,U){return F.requestWithinAgeLimit(k,U)},
retryQueuedRequests:function(){F.retryQueuedRequests()}};
var G;this.throttleTimeout=(G=C.throttleTimeout)!=null?G:100;var V;this.retryMaxAttempts=(V=C.retryMaxAttempts)!=null?V:1;var J;this.requestAgeLimitMs=(J=C.requestAgeLimitMs)!=null?J:2592E6;var b;this.queuedRequestAgeLimitMs=(b=C.queuedRequestAgeLimitMs)!=null?b:12E4;var z;this.retryDelayMs=(z=C.retryDelayMs)!=null?z:5E3;var Q;this.databaseToken=(Q=C.databaseToken)!=null?Q:void 0;this.enableCleaning=!!C.enableCleaning;var E;this.cleaningRate=(E=C.cleaningRate)!=null?E:.1;var t;this.potentialEsfErrorLimit=
(t=C.potentialEsfErrorLimit)!=null?t:10;C.handleError&&(this.handleError=C.handleError);C.handleWarning&&(this.handleWarning=C.handleWarning);C.disableYtIdbTransactions&&(this.disableYtIdbTransactions=C.disableYtIdbTransactions);C.bypassDbTokenDependency&&(this.bypassDbTokenDependency=C.bypassDbTokenDependency);this.getBooleanFlag=C.getBooleanFlag;this.jobManager=C.jobManager;this.logsStore=C.logsStore;this.networkManager=C.networkManager;this.sendFn=C.sendFn;this.onlineEvent=C.onlineEvent;this.offlineEvent=
C.offlineEvent;wV(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&IbP(this)},IbP=function(C){wV(C)&&!C.disableYtIdbTransactions&&(C.initialized=!0,C.enableCleaning&&Math.random()<=C.cleaningRate&&C.logsStore.cleanLogsStore(C.databaseToken),C.retryQueuedRequests(),C.networkManager.isNetworkAvailable()&&C.throttledSend(),C.networkManager.listen(C.onlineEvent,C.throttledSend.bind(C)),C.networkManager.listen(C.offlineEvent,C.cancelThrottledSend.bind(C)))};
_.n=Mq.prototype;_.n.writeThenSend=function(C,F){var G=this;F=F===void 0?{}:F;if(wV(this)&&this.initialized){var V={url:C,options:F,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(V,this.databaseToken).then(function(J){V.id=J;G.networkManager.isNetworkAvailable()&&G.immediateSend(V)}).catch(function(J){G.immediateSend(V);
E2G(G,J)})}else this.sendFn(C,F)};
_.n.sendThenWrite=function(C,F,G){var V=this;F=F===void 0?{}:F;if(wV(this)&&this.initialized){var J={url:C,options:F,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(J.skipRetry=G);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!J.skipRetry){if(!J.skipRetry){var b=F.onError?F.onError:function(){};
F.onError=function(z,Q){return _.I(function(E){if(E.nextAddress==1)return E.yield(V.logsStore.set(J,V.databaseToken).catch(function(t){E2G(V,t)}),2);
b(z,Q);_.S9(E)})}}this.sendFn(C,F,J.skipRetry)}else this.logsStore.set(J,this.databaseToken).catch(function(z){V.sendFn(C,F,J.skipRetry);
E2G(V,z)})}else this.sendFn(C,F,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&G)};
_.n.sendAndWrite=function(C,F){var G=this;F=F===void 0?{}:F;if(wV(this)&&this.initialized){var V={url:C,options:F,timestamp:this.now(),status:"NEW",sendCount:0},J=!1,b=F.onSuccess?F.onSuccess:function(){};
V.options.onSuccess=function(z,Q){V.id!==void 0?G.logsStore.deleteRequest(V.id,G.databaseToken):J=!0;G.networkManager.networkStatusHint&&G.getBooleanFlag&&G.getBooleanFlag("vss_network_hint")&&G.networkManager.networkStatusHint(!0);b(z,Q)};
this.sendFn(V.url,V.options,void 0,!0);this.logsStore.set(V,this.databaseToken).then(function(z){V.id=z;J&&G.logsStore.deleteRequest(V.id,G.databaseToken)}).catch(function(z){E2G(G,z)})}else this.sendFn(C,F,void 0,!0)};
_.n.throttledSend=function(){var C=this;if(!wV(this))throw Error("cd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var F;return _.I(function(G){if(G.nextAddress==1)return G.yield(C.logsStore.getMostRecentByStatus("NEW",C.databaseToken),2);if(G.nextAddress!=3)return F=G.yieldResult,F?G.yield(C.immediateSend(F),3):(C.cancelThrottledSend(),G.return());C.intervalJob&&(C.intervalJob=0,C.throttledSend());_.S9(G)})},this.throttleTimeout))};
_.n.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.n.immediateSend=function(C){var F=this,G;return _.I(function(V){switch(V.nextAddress){case 1:if(!wV(F))throw Error("dd");if(C.id===void 0){V.jumpTo(2);break}return V.yield(F.logsStore.markAsQueued(C.id,F.databaseToken),3);case 3:(G=V.yieldResult)||F.handleWarning(Error("ed"));case 2:if(F.requestWithinAgeLimit(C,F.requestAgeLimitMs)){V.jumpTo(4);break}F.handleWarning(Error("fd"));if(C.id===void 0){V.jumpTo(5);break}return V.yield(F.logsStore.deleteRequest(C.id,F.databaseToken),5);case 5:return V.return();
case 4:C.skipRetry||(C=WDl(F,C));if(!C){V.jumpTo(0);break}if(!C.skipRetry||C.id===void 0){V.jumpTo(8);break}return V.yield(F.logsStore.deleteRequest(C.id,F.databaseToken),8);case 8:F.sendFn(C.url,C.options,!!C.skipRetry),_.S9(V)}})};
var WDl=function(C,F){if(!wV(C))throw Error("gd");var G=F.options.onError?F.options.onError:function(){};
F.options.onError=function(J,b){var z,Q,E,t;return _.I(function(k){switch(k.nextAddress){case 1:z=yvW(b);(Q=Z5w(b))&&C.getBooleanFlag&&C.getBooleanFlag("web_enable_error_204")&&C.handleError(Error("hd"),F.url,b);if(!(C.getBooleanFlag&&C.getBooleanFlag("nwl_consider_error_code")&&z||C.getBooleanFlag&&!C.getBooleanFlag("nwl_consider_error_code")&&C.potentialEsfErrorCounter<=C.potentialEsfErrorLimit)){k.jumpTo(2);break}if(!C.networkManager.sendNetworkCheckRequest){k.jumpTo(3);break}return k.yield(C.networkManager.sendNetworkCheckRequest(),
3);case 3:if(C.networkManager.isNetworkAvailable()){k.jumpTo(2);break}G(J,b);if(!C.getBooleanFlag||!C.getBooleanFlag("nwl_consider_error_code")||((E=F)==null?void 0:E.id)===void 0){k.jumpTo(6);break}return k.yield(C.logsStore.resetRequest(F.id,C.databaseToken,!1),6);case 6:return k.return();case 2:if(C.getBooleanFlag&&C.getBooleanFlag("nwl_consider_error_code")&&!z&&C.potentialEsfErrorCounter>C.potentialEsfErrorLimit)return k.return();C.potentialEsfErrorCounter++;if(((t=F)==null?void 0:t.id)===void 0){k.jumpTo(8);
break}return F.sendCount<C.retryMaxAttempts?k.yield(C.logsStore.resetRequest(F.id,C.databaseToken,!0,Q?!1:void 0),12):k.yield(C.logsStore.deleteRequest(F.id,C.databaseToken),8);case 12:C.jobManager.addLowPriorityJob(function(){C.networkManager.isNetworkAvailable()&&C.throttledSend()},C.retryDelayMs);
case 8:G(J,b),_.S9(k)}})};
var V=F.options.onSuccess?F.options.onSuccess:function(){};
F.options.onSuccess=function(J,b){var z;return _.I(function(Q){if(Q.nextAddress==1)return((z=F)==null?void 0:z.id)===void 0?Q.jumpTo(2):Q.yield(C.logsStore.deleteRequest(F.id,C.databaseToken),2);C.networkManager.networkStatusHint&&C.getBooleanFlag&&C.getBooleanFlag("vss_network_hint")&&C.networkManager.networkStatusHint(!0);V(J,b);_.S9(Q)})};
return F};
Mq.prototype.requestWithinAgeLimit=function(C,F){C=C.timestamp;return this.now()-C>=F?!1:!0};
Mq.prototype.retryQueuedRequests=function(){var C=this;if(!wV(this))throw Error("id");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(F){F&&!C.requestWithinAgeLimit(F,C.queuedRequestAgeLimitMs)?C.jobManager.addLowPriorityJob(function(){return _.I(function(G){if(G.nextAddress==1)return F.id===void 0?G.jumpTo(2):G.yield(C.logsStore.resetRequest(F.id,C.databaseToken),2);C.retryQueuedRequests();_.S9(G)})}):C.networkManager.isNetworkAvailable()&&C.throttledSend()})};
var E2G=function(C,F){C.writeError&&!C.networkManager.isNetworkAvailable()?C.writeError(F):C.handleError(F)},wV=function(C){return!!C.databaseToken||C.bypassDbTokenDependency};var NkW;var vJw={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,
visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,
spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,
vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,
buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,
buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,
transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,
outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,
ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,
watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,
deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,
ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,
watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,
tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,
tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,
activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,
browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,
gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,
sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,
musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,
embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,
getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,
unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,
connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529};var tNr={},hGB=Ia("ServiceWorkerLogsDatabase",{objectStores:(tNr.SWHealthLog={addedAtVersion:1},tNr),shared:!0,upgrade:function(C,F){F(1)&&pO(Ds(C,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var PPA={},qA9=0;var TkB;var Sh=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},Gf=function(){if(!Sh.instance){var C=_.mN("yt.networkRequestMonitor.instance")||new Sh;
_.zn("yt.networkRequestMonitor.instance",C);Sh.instance=C}return Sh.instance};
Sh.prototype.requestComplete=function(C,F){F&&(this.anyRequestHasSucceeded=!0);C=this.removeParams(C);this.requestMap.get(C)||this.requestMap.set(C,F)};
Sh.prototype.isEndpointCFR=function(C){C=this.removeParams(C);return(C=this.requestMap.get(C))?!1:C===!1&&this.anyRequestHasSucceeded?!0:null};
Sh.prototype.removeParams=function(C){return C.split("?")[0]};
Sh.prototype.removeParams=Sh.prototype.removeParams;Sh.prototype.isEndpointCFR=Sh.prototype.isEndpointCFR;Sh.prototype.requestComplete=Sh.prototype.requestComplete;Sh.getInstance=Gf;var Lx=function(C){_.lT.call(this);var F=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=C!=null?C:{addLowPriorityJob:function(J,b){return setTimeout(J,b)},
cancelJob:function(J){clearTimeout(J)}};
var G,V;this.isOnline=(V=(G=window.navigator)==null?void 0:G.onLine)!=null?V:!0;this.onNavigatorChange=function(){return _.I(function(J){return J.yield(ab$(F),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||kcE(this)};
_.O(Lx,_.lT);Lx.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete Lx.instance};
Lx.prototype.isNetworkAvailable=function(){return this.isOnline};
var kcE=function(C){C.pollingJob=C.jobManager.addLowPriorityJob(function(){var F;return _.I(function(G){if(G.nextAddress==1)return C.isOnline?((F=window.navigator)==null?0:F.onLine)?G.jumpTo(3):G.yield(ab$(C),3):G.yield(ab$(C),3);kcE(C);_.S9(G)})},3E4)},ab$=function(C,F){return C.networkRequestPromise?C.networkRequestPromise:C.networkRequestPromise=new Promise(function(G){var V,J,b,z;
return _.I(function(Q){switch(Q.nextAddress){case 1:return V=window.AbortController?new window.AbortController:void 0,b=(J=V)==null?void 0:J.signal,z=!1,_.yy(Q,2,3),V&&(C.abortTimeoutKey=C.jobManager.addLowPriorityJob(function(){V.abort()},F||2E4)),Q.yield(fetch("/generate_204",{method:"HEAD",
signal:b}),5);case 5:z=!0;case 3:_.Na(Q);C.networkRequestPromise=void 0;C.abortTimeoutKey&&(C.jobManager.cancelJob(C.abortTimeoutKey),C.abortTimeoutKey=0);z!==C.isOnline&&(C.isOnline=z,C.isOnline?C.dispatchEvent("networkstatus-online"):C.dispatchEvent("networkstatus-offline"));G(z);_.XG(Q,0);break;case 2:_.wa(Q),z=!1,Q.jumpTo(3)}})})};var Ba=function(){_.lT.call(this);var C=this;this.shouldFlushErrors=!1;Lx.instance||(Lx.instance=new Lx(_.gT));this.sharedNetworkStatusManager=Lx.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(C.shouldFlushErrors&&_.y("offline_error_handling")){var F=oz5().get("errors",!0);if(F){for(var G in F)if(F[G]){var V=new _.Ay(G,"sent via offline_errors");V.name=F[G].name;V.stack=F[G].stack;V.level=F[G].level;_.ri(V)}oz5().set("errors",{},2592E3,!0)}}})};
_.O(Ba,_.lT);var UWE=function(){if(!Ba.instance){var C=_.mN("yt.networkStatusManager.instance")||new Ba;_.zn("yt.networkStatusManager.instance",C);Ba.instance=C}return Ba.instance};
_.n=Ba.prototype;_.n.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.n.networkStatusHint=function(C){this.sharedNetworkStatusManager.isOnline=C};
_.n.getWindowStatus=function(){var C=window.navigator.onLine;return C===void 0?!0:C};
_.n.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.n.listen=function(C,F){return this.sharedNetworkStatusManager.listen(C,F)};
_.n.sendNetworkCheckRequest=function(C){C=ab$(this.sharedNetworkStatusManager,C);C.then(function(F){_.y("use_cfr_monitor")&&Gf().requestComplete("generate_204",F)});
return C};
Ba.prototype.sendNetworkCheckRequest=Ba.prototype.sendNetworkCheckRequest;Ba.prototype.listen=Ba.prototype.listen;Ba.prototype.enableErrorFlushing=Ba.prototype.enableErrorFlushing;Ba.prototype.getWindowStatus=Ba.prototype.getWindowStatus;Ba.prototype.networkStatusHint=Ba.prototype.networkStatusHint;Ba.prototype.isNetworkAvailable=Ba.prototype.isNetworkAvailable;Ba.getInstance=UWE;_.FP=function(C){C=C===void 0?{}:C;_.lT.call(this);var F=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=UWE();var G=_.mN("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);G&&(C.rateLimit?(this.rateLimit=C.rateLimit,G("networkstatus-online",function(){H7r(F,"publicytnetworkstatus-online")}),G("networkstatus-offline",function(){H7r(F,"publicytnetworkstatus-offline")})):(G("networkstatus-online",function(){F.dispatchEvent("publicytnetworkstatus-online")}),G("networkstatus-offline",
function(){F.dispatchEvent("publicytnetworkstatus-offline")})))};
_.O(_.FP,_.lT);_.FP.prototype.isNetworkAvailable=function(){var C=_.mN("yt.networkStatusManager.instance.isNetworkAvailable");return C?C.bind(this.nsmInstance)():!0};
_.FP.prototype.networkStatusHint=function(C){var F=_.mN("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);F&&F(C)};
_.FP.prototype.sendNetworkCheckRequest=function(C){var F=this,G;return _.I(function(V){G=_.mN("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(F.nsmInstance);return _.y("skip_network_check_if_cfr")&&Gf().isEndpointCFR("generate_204")?V.return(new Promise(function(J){var b;F.networkStatusHint(((b=window.navigator)==null?void 0:b.onLine)||!0);J(F.isNetworkAvailable())})):G?V.return(G(C)):V.return(!0)})};
var H7r=function(C,F){C.rateLimit?C.lastJobTime?(_.gT.cancelJob(C.schedulerJob),C.schedulerJob=_.gT.addLowPriorityJob(function(){C.lastPublicSignalSent!==F&&(C.dispatchEvent(F),C.lastPublicSignalSent=F,C.lastJobTime=(0,_.Et)())},C.rateLimit-((0,_.Et)()-C.lastJobTime))):(C.dispatchEvent(F),C.lastPublicSignalSent=F,C.lastJobTime=(0,_.Et)()):C.dispatchEvent(F)};var mrT,va=function(){Mq.call(this,{logsStore:{cleanLogsStore:vzZ,deleteRequest:BkB,getMostRecentByStatus:Mrf,markAsQueued:SAA,resetRequest:Lm5,set:wbW},networkManager:_.Caq(),handleError:function(C,F,G){var V,J=G==null?void 0:(V=G.error)==null?void 0:V.code;if(J===400||J===415){var b;C=new _.Ay(C.message,F,G==null?void 0:(b=G.error)==null?void 0:b.code);_.CD(C,void 0,void 0,void 0,!0)}else _.ri(C)},
handleWarning:_.CD,sendFn:Dro,now:_.Et,writeError:rvS,jobManager:_.Ws(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.a8("potential_esf_error_limit",10),getBooleanFlag:_.y,disableYtIdbTransactions:!(_.cD()&&_.jPw())});this.initializationPromise=new _.Cd;_.y("networkless_immediately_drop_all_requests")&&f5Z();Z7q("LogsDatabaseV2")};
_.O(va,Mq);_.y4S=function(){var C=_.mN("yt.networklessRequestController.instance");C||(C=new va,_.zn("yt.networklessRequestController.instance",C),_.y("networkless_logging")&&_.Qn().then(function(F){C.databaseToken=F;IbP(C);C.initializationPromise.resolve();C.enableCleaning&&Math.random()<=C.cleaningRate&&C.databaseToken&&AvT(C.databaseToken);_.y("networkless_immediately_drop_sw_health_store")&&lb$(C)}));
return C};
va.prototype.writeThenSend=function(C,F){F||(F={});F=pb5(C,F);_.cD()||(this.initialized=!1);Mq.prototype.writeThenSend.call(this,C,F)};
va.prototype.sendThenWrite=function(C,F,G){F||(F={});F=pb5(C,F);_.cD()||(this.initialized=!1);Mq.prototype.sendThenWrite.call(this,C,F,G)};
va.prototype.sendAndWrite=function(C,F){F||(F={});F=pb5(C,F);_.cD()||(this.initialized=!1);Mq.prototype.sendAndWrite.call(this,C,F)};
va.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var lb$=function(C){var F;_.I(function(G){if(!C.databaseToken)throw F=D9("clearSWHealthLogsDb"),F;return G.return(eGZ(C.databaseToken).catch(function(V){C.handleError(V)}))})};_.GSB=!1;_.Fr5=_.VT.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.GSB};_.zn("ytNetworklessLoggingInitializationOptions",_.Fr5);var s1=function(C){var F=this;this.config_=null;C?this.config_=C:v2w()&&(this.config_=_.tn());_.c8(_.gT,function(){l5q(F)},5E3)};
s1.prototype.isReady=function(){!this.config_&&v2w()&&(this.config_=_.tn());return!!this.config_};
var H5Z=function(C,F,G,V){!_.TF("VISITOR_DATA")&&F!=="visitor_id"&&Math.random()<.01&&_.CD(new _.Ay("Missing VISITOR_DATA when sending innertube request.",F,G,V));if(!C.isReady()){var J=new _.Ay("innertube xhrclient not ready",F,G,V);_.ri(J);throw J;}var b={headers:V.headers||{},method:"POST",postParams:G,postBody:V.postBody,postBodyFormat:V.postBodyFormat||"JSON",onTimeout:function(){V.onTimeout()},
onFetchTimeout:V.onTimeout,onSuccess:function(U,H){if(V.onSuccess)V.onSuccess(H)},
onFetchSuccess:function(U){if(V.onSuccess)V.onSuccess(U)},
onProgress:function(U){if(V.onProgress)V.onProgress(U)},
onError:function(U,H){if(V.onError)V.onError(H)},
onFetchError:function(U){if(V.onError)V.onError(U)},
timeout:V.timeout,withCredentials:!0,compress:V.compress};b.headers["Content-Type"]||(b.headers["Content-Type"]="application/json");var z="";(J=C.config_.innertubeHostOverride)&&(z=J);var Q=C.config_.innertubeUseThirdPartyAuth||!1,E=_.r4i(Q,z,V);Object.assign(b.headers,E);b.headers.Authorization&&!z&&Q&&(b.headers["x-origin"]=window.location.origin);var t=_.iH(z+("/youtubei/"+C.config_.innertubeApiVersion+"/"+F),{alt:"json"}),k=function(U){U=U===void 0?!1:U;var H;if(V.retry&&z!="www.youtube-nocookie.com"&&
(U||_.y("skip_ls_gel_retry")||b.headers["Content-Type"]!=="application/json"||(H=kpf(F,G,E,Q)),H)){var l=b.onSuccess,N=b.onFetchSuccess;b.onSuccess=function(c,A){UrB(H);l(c,A)};
G.onFetchSuccess=function(c,A){UrB(H);N(c,A)}}try{if(U&&V.retry&&!V.networklessOptions.bypassNetworkless)b.method="POST",V.networklessOptions.writeThenSend?_.y4S().writeThenSend(t,b):_.y4S().sendAndWrite(t,b);
else if(V.compress){var S=!V.networklessOptions.writeThenSend;if(b.postBody){var f=b.postBody;typeof f!=="string"&&(f=JSON.stringify(b.postBody));b59(t,f,b,_.wj,S)}else b59(t,JSON.stringify(b.postParams),b,WyT,S)}else _.y("web_all_payloads_via_jspb")?_.wj(t,b):WyT(t,b)}catch(c){if(c.name==="InvalidAccessError")H&&(UrB(H),H=0),_.CD(Error("jd"));else throw c;}H&&_.c8(_.gT,function(){l5q(C)},5E3)};
_.VRT()?WDw().then(function(U){k(U)}):k(!1)};var OHB=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(OHB,_.b0);var Z7G=0,JCS=_.Do?"webkit":_.KV?"moz":_.rp?"ms":h5r?"o":"";_.zn("ytDomDomGetNextId",_.mN("ytDomDomGetNextId")||function(){return++Z7G});var Nd$={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},n1=function(C){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(C=
C||window.event){this.event=C;for(var F in C)F in Nd$||(this[F]=C[F]);this.scale=C.scale;this.rotation=C.rotation;var G=C.target||C.srcElement;G&&G.nodeType==3&&(G=G.parentNode);this.target=G;var V=C.relatedTarget;if(V)try{V=V.nodeName?V:null}catch(J){V=null}else this.type=="mouseover"?V=C.fromElement:this.type=="mouseout"&&(V=C.toElement);this.relatedTarget=V;this.clientX=C.clientX!=void 0?C.clientX:C.pageX;this.clientY=C.clientY!=void 0?C.clientY:C.pageY;this.keyCode=C.keyCode?C.keyCode:C.which;
this.charCode=C.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=C.altKey;this.ctrlKey=C.ctrlKey;this.shiftKey=C.shiftKey;this.metaKey=C.metaKey;this.pageX_=C.pageX;this.pageY_=C.pageY}}catch(J){}},O7u=function(C){if(document.body&&document.documentElement){var F=document.body.scrollTop+document.documentElement.scrollTop;
C.pageX_=C.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);C.pageY_=C.clientY+F}};
n1.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
n1.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
n1.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var bS=_.VT.ytEventsEventsListeners||{};_.zn("ytEventsEventsListeners",bS);var QPW=_.VT.ytEventsEventsCounter||{count:0};_.zn("ytEventsEventsCounter",QPW);var IDS=_.aF(function(){var C=!1;try{var F=Object.defineProperty({},"capture",{get:function(){C=!0}});
window.addEventListener("test",null,F)}catch(G){}return C});_.RE(zf,_.hV);zf.prototype.onMouseMove_=function(C){C.pageX_===void 0&&O7u(C);var F=C.pageX_;C.pageY_===void 0&&O7u(C);this.position_=new _.ql(F,C.pageY_)};
zf.prototype.checkPosition_=function(){if(this.position_){var C=(0,_.Et)();if(this.previousTime_!=0){var F=this.previousPosition_,G=this.position_,V=F.x-G.x;F=F.y-G.y;V=Math.sqrt(V*V+F*F)/(C-this.previousTime_);this.cycles_[this.index_]=Math.abs((V-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(G=F=0;G<4;G++)F+=this.cycles_[G]||0;F>=3&&this.callback_();this.previousVelocity_=V}this.previousTime_=C;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
zf.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.Ees(this.mouseListenerKey_)};var UDi={};var wBZ=new _.Cx("rawColdConfigGroup");var XBB=new _.Cx("rawHotConfigGroup");var XYE=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(XYE,_.b0);var Nfs=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Nfs,_.b0);var h5=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C,500)};
_.O(h5,_.b0);h5.prototype.getPayloadCase=function(){return _.ug(this,wYu)};
h5.prototype.getContext=function(){return _.aa(this,Nfs,33)};
var wYu=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529];var HZS=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(HZS,_.b0);var KrE=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(KrE,_.b0);KrE.prototype.setVideoId=function(C){return O1(this,1,DDo,N3(C))};
KrE.prototype.getPlaylistId=function(){return _.wG(this,L1(this,DDo,2))};
var DDo=[1,2];var EJ5=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(EJ5,_.b0);EJ5.prototype.getContext=function(){return _.aa(this,XP,1)};
EJ5.prototype.getTier=function(){return _.kL(this,7)};var MNo,W8,t5;MNo=_.VT.ytPubsubPubsubInstance||new _.SP;W8=_.VT.ytPubsubPubsubSubscribedKeys||{};t5=_.VT.ytPubsubPubsubTopicToKeys||{};_.Hyq=_.VT.ytPubsubPubsubIsSynchronous||{};_.SP.prototype.subscribe=_.SP.prototype.subscribe;_.SP.prototype.unsubscribeByKey=_.SP.prototype.unsubscribeByKey;_.SP.prototype.publish=_.SP.prototype.publish;_.SP.prototype.clear=_.SP.prototype.clear;_.zn("ytPubsubPubsubInstance",MNo);_.zn("ytPubsubPubsubTopicToKeys",t5);_.zn("ytPubsubPubsubIsSynchronous",_.Hyq);
_.zn("ytPubsubPubsubSubscribedKeys",W8);var U1=window;var fx=_.y("web_enable_lifecycle_monitoring")&&Oyo()!==0,S3u=_.y("web_enable_lifecycle_monitoring");var LDu=function(C){var F=this;var G=G===void 0?0:G;var V=V===void 0?_.Ws():V;this.JSC$10893_defaultPriority=G;this.scheduler=V;this.completedResolver=new _.Cd;this.scheduledPayloads=C;for(C={i$jscomp$492:0};C.i$jscomp$492<this.scheduledPayloads.length;C={payload$jscomp$20:void 0,i$jscomp$492:C.i$jscomp$492},C.i$jscomp$492++)C.payload$jscomp$20=this.scheduledPayloads[C.i$jscomp$492],G=function(J){return function(){J.payload$jscomp$20.job();F.scheduledPayloads[J.i$jscomp$492].processed=!0;F.scheduledPayloads.every(function(b){return b.processed===
!0})&&F.completedResolver.resolve()}}(C),V=this.getPriority(C.payload$jscomp$20),V=this.scheduler.addJob(G,V),this.scheduledPayloads[C.i$jscomp$492]=Object.assign({},C.payload$jscomp$20,{job:G,
jobId:V})};
LDu.prototype.flushJobs=function(){var C=this,F=Array.from(this.scheduledPayloads.keys()).sort(function(V,J){return C.getPriority(C.scheduledPayloads[J])-C.getPriority(C.scheduledPayloads[V])});
F=_.u(F);for(var G=F.next();!G.done;G=F.next())G=this.scheduledPayloads[G.value],G.jobId===void 0||G.processed||(this.scheduler.cancelJob(G.jobId),this.scheduler.addJob(G.job,10))};
LDu.prototype.cancel=function(){for(var C=_.u(this.scheduledPayloads),F=C.next();!F.done;F=C.next())F=F.value,F.jobId===void 0||F.processed||this.scheduler.cancelJob(F.jobId),F.processed=!0;this.completedResolver.resolve()};
LDu.prototype.getPriority=function(C){var F;return(F=C.priority)!=null?F:this.JSC$10893_defaultPriority};var hB=function(C){this.state=C;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};fx&&X65(this.state)};
hB.prototype.install=function(C){this.plugins.push(C);return this};
hB.prototype.uninstall=function(){var C=this;_.Rn.apply(0,arguments).forEach(function(F){F=C.plugins.indexOf(F);F>-1&&C.plugins.splice(F,1)})};
hB.prototype.transition=function(C,F){var G=this;fx&&w69(this.state);var V=this.transitions.find(function(b){return Array.isArray(b.from)?b.from.find(function(z){return z===G.state&&b.to===C}):b.from===G.state&&b.to===C});
if(V){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);BdP(this,C,F);this.state=C;fx&&X65(this.state);V=V.action.bind(this);var J=this.plugins.filter(function(b){return b[C]}).map(function(b){return b[C]});
V(v2l(this,J),F)}else throw Error("kd`"+this.state+"`"+C);};
var v2l=function(C,F){var G=F.filter(function(J){return fbm(C,J)===10}),V=F.filter(function(J){return fbm(C,J)!==10});
return C.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var J=_.Rn.apply(0,arguments);return _.I(function(b){if(b.nextAddress==1)return b.yield(C.runImmediateJobsAsync.apply(C,[G].concat(_.da(J))),2);C.setJobSetWithScheduledJobs.apply(C,[V].concat(_.da(J)));_.S9(b)})}:function(){var J=_.Rn.apply(0,arguments);
C.runImmediateJobsSync.apply(C,[G].concat(_.da(J)));C.setJobSetWithScheduledJobs.apply(C,[V].concat(_.da(J)))}};
hB.prototype.runImmediateJobsSync=function(C){var F=_.Rn.apply(1,arguments);_.Ws();for(var G=_.u(C),V=G.next(),J={};!V.done;J={lifecycle$jscomp$2:void 0},V=G.next())J.lifecycle$jscomp$2=V.value,oP(function(b){return function(){hOP(b.lifecycle$jscomp$2.name);S9E(function(){return b.lifecycle$jscomp$2.callback.apply(b.lifecycle$jscomp$2,_.da(F))});
ca(b.lifecycle$jscomp$2.name)}}(J))};
hB.prototype.runImmediateJobsAsync=function(C){var F=_.Rn.apply(1,arguments),G,V,J,b;return _.I(function(z){z.nextAddress==1&&(_.Ws(),G=_.u(C),V=G.next(),J={});if(z.nextAddress!=3){if(V.done)return z.jumpTo(0);J.lifecycle$jscomp$3=V.value;J.asyncJobCompletion=void 0;b=function(Q){return function(){hOP(Q.lifecycle$jscomp$3.name);var E=S9E(function(){return Q.lifecycle$jscomp$3.callback.apply(Q.lifecycle$jscomp$3,_.da(F))});
Qlm(E)?Q.asyncJobCompletion=_.y("web_lifecycle_error_handling_killswitch")?E.then(function(){ca(Q.lifecycle$jscomp$3.name)}):E.then(function(){ca(Q.lifecycle$jscomp$3.name)},function(t){MR9(t);
ca(Q.lifecycle$jscomp$3.name)}):ca(Q.lifecycle$jscomp$3.name)}}(J);
oP(b);return J.asyncJobCompletion?z.yield(J.asyncJobCompletion,3):z.jumpTo(3)}J={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};V=G.next();return z.jumpTo(2)})};
hB.prototype.setJobSetWithScheduledJobs=function(C){var F=_.Rn.apply(1,arguments),G=this,V=C.map(function(J){return{job:function(){hOP(J.name);S9E(function(){return J.callback.apply(J,_.da(F))});
ca(J.name)},
priority:fbm(G,J)}});
V.length&&(this.jobSet=new LDu(V))};
var fbm=function(C,F){var G,V;return(V=(G=C.overridePriority)!=null?G:F.priority)!=null?V:0},hOP=function(C){fx&&C&&X65(C)},ca=function(C){fx&&C&&w69(C)},BdP=function(C,F,G){S3u&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+C.constructor.name+"] '"+C.state+"' to '"+F+"'"),console.log("with message: ",G),console.groupEnd())};
_.I6.Object.defineProperties(hB.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var c4G=function(C){hB.call(this,C===void 0?"none":C);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(){}}]},A48;
_.O(c4G,hB);c4G.prototype.runApplicationNavigationBegin=function(C,F){var G=this;this.navigationTimer=_.c8(_.gT,function(){G.currentState==="application_navigating"&&G.transition("none")},5E3);
C(F==null?void 0:F.event)};
c4G.prototype.runApplicationNavigationEnd=function(C,F){this.navigationTimer&&(_.gT.cancelJob(this.navigationTimer),this.navigationTimer=null);C(F==null?void 0:F.event)};
_.OZT=function(){A48||(A48=new c4G);return A48};var NEI=[];_.zn("yt.logging.transport.getScrapedGelPayloads",function(){return NEI});var H8=function(){var C=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return C.totalEntries}}};
H8.prototype.storePayload=function(C,F){C=LrA(C);this.store[C]?this.store[C].push(F):(this.memoizedKeySequences={},this.store[C]=[F]);this.totalEntries++;_.y("more_accurate_gel_parser")&&(F=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(F));return C};
H8.prototype.smartExtractMatchingEntries=function(C){if(!C.keys.length)return[];for(var F=eO2(this,C.keys.splice(0,1)[0]),G=[],V=0;V<F.length;V++)this.store[F[V]]&&C.sizeLimit&&(this.store[F[V]].length<=C.sizeLimit?(G.push.apply(G,_.da(this.store[F[V]])),delete this.store[F[V]]):G.push.apply(G,_.da(this.store[F[V]].splice(0,C.sizeLimit))));this.totalEntries-=G.length;(C==null?0:C.sizeLimit)&&G.length<(C==null?void 0:C.sizeLimit)&&(C.sizeLimit-=G.length,G.push.apply(G,_.da(this.smartExtractMatchingEntries(C))));
return G};
H8.prototype.extractMatchingEntries=function(C){C=eO2(this,C);for(var F=[],G=0;G<C.length;G++)this.store[C[G]]&&(F.push.apply(F,_.da(this.store[C[G]])),delete this.store[C[G]]);this.totalEntries-=F.length;return F};
H8.prototype.getSequenceCount=function(C){C=eO2(this,C);for(var F=0,G=0;G<C.length;G++){var V=void 0;F+=((V=this.store[C[G]])==null?void 0:V.length)||0}return F};
var eO2=function(C,F){var G=LrA(F);if(C.memoizedKeySequences[G])return C.memoizedKeySequences[G];var V=Object.keys(C.store)||[];if(V.length<=1&&LrA(F)===V[0])return V;for(var J=[],b=0;b<V.length;b++){var z=V[b].split("/");if(dWy(F.auth,z[0])){var Q=F.isJspb;dWy(Q===void 0?"undefined":Q?"true":"false",z[1])&&dWy(F.cttAuthInfo,z[2])&&(Q=F.tier,Q=Q===void 0?"undefined":JSON.stringify(Q),dWy(Q,z[3])&&J.push(V[b]))}}return C.memoizedKeySequences[G]=J},dWy=function(C,F){return C===void 0||C==="undefined"?
!0:C===F};
H8.prototype.getSequenceCount=H8.prototype.getSequenceCount;H8.prototype.extractMatchingEntries=H8.prototype.extractMatchingEntries;H8.prototype.smartExtractMatchingEntries=H8.prototype.smartExtractMatchingEntries;H8.prototype.storePayload=H8.prototype.storePayload;var JMi,Vnf,$GA,ZU,xWo,BEE,L25,Gbs,F2o,RtS,iZZ,yMW,mDS;JMi=_.a8("initial_gel_batch_timeout",2E3);Vnf=_.a8("gel_queue_timeout_max_ms",6E4);$GA=_.a8("gel_min_batch_size",5);ZU=void 0;xWo=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
BEE=new xWo;L25=new xWo;Gbs=new xWo;F2o=new xWo;iZZ=!0;yMW=1;_.lHS=new Map;mDS=_.VT.ytLoggingTransportTokensToCttTargetIds_||{};_.zn("ytLoggingTransportTokensToCttTargetIds_",mDS);var p65=_.VT.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.zn("ytLoggingTransportTokensToJspbCttTargetIds_",p65);var y2={};var dD=_.VT.ytLoggingGelSequenceIdObj_||{};_.zn("ytLoggingGelSequenceIdObj_",dD);var hIZ=[];var TEi=new Set,xGT=0,DGW=0,K2q=0,q4I=[],seA=[],pBZ=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var zNE=function(){};
zNE.prototype.getUrl=function(C,F){F=F===void 0?!1:F;return C.hasOwnProperty("shareEndpoint")?null:_.FeZ(C,null,F)};
var lVB=function(C,F,G){C={endpoint:F,actions:[]};G=(G.path?G.path[0]:G.target).icon||"";F=G.indexOf(":");F>0&&(G=G.substr(F+1));G&&C.actions.push(G);return C};var bYI=/Command$/,$hS=/Endpoint$/,VVS=new Map;var sAu,q3u;sAu=1;_.FV=function(){this.actionRoutingMap=new Map};
_.FV.prototype.triggerAction=function(C){var F=new GL9(C,!1,_.Rn.apply(1,arguments));this.handleAction(F);return F.returnValue};
_.FV.prototype.triggerOptionalAction=function(C){var F=new GL9(C,!0,_.Rn.apply(1,arguments));this.handleAction(F);return F.returnValue};
_.AB=function(C,F,G){F.forEach(function(V){var J=JmZ(V);J&&C.triggerOptionalAction(J,V,G,void 0)})};
_.FV.prototype.handleAction=function(C){var F=this.actionRoutingMap.get(C.actionName);F&&q3u(C,F);C.optionalAction||C.returnValue.length!==0||(C=new _.Ay("Unhandled action",C.actionName),_.CD(C))};
q3u=function(C,F){F.forEach(function(G){var V=null;G?V=G.apply(null,C.args):(G=Error("ld"),G.params=C.actionName,_.ri(G));C.returnValue.push(V)})};
_.GA=function(C,F,G){G||(G=sAu++);for(var V=_.u(Object.keys(F)),J=V.next();!J.done;J=V.next()){J=J.value;var b=C.actionRoutingMap.get(J);b||(b=new Map,C.actionRoutingMap.set(J,b));C.registerActionHandler(G,J,F[J],b)}return G};
_.FV.prototype.registerActionHandler=function(C,F,G,V){V.set(C,_.pW(G))};
_.V3=function(C,F,G){F=_.u(Object.keys(F));for(var V=F.next();!V.done;V=F.next())(V=C.actionRoutingMap.get(V.value))&&V.delete(G)};
_.Ps(_.FV);var Ebi=function(C,F){var G=_.FV.getInstance();_.q4(function(){var V={},J=_.GA(G,(V[C]=F,V));_.q0(function(){var b={};_.V3(G,(b[C]="",b),J)})})};var Ozs=Symbol("nd");kHI=pSW;var Leq=new Set(["For","If","Match","Watch"]),PKS={},g2r=(PKS[DB.default]=function(){return ziw},PKS.style=function(){return ziw},PKS),ROu;
for(ROu in g2r)zl.attributes[ROu]=g2r[ROu](zl.attributes[ROu]);var E8=new _.jh("VISIBILITY_OBSERVER");var syI={retrieve:function(C){return this.id.\u0275prov.token===C.\u0275prov.token?this.contextValue:this?_.bb(this,this.id):knI}};var gEB=function(C,F,G){if(C!==u9)return!1;C=NvA(document.createElement("div"),function(){var V=tg(!1);try{G[0]()}finally{tg(V)}});
C=Array.from(C.childNodes);C.length===1&&(C=C[0]);return C};var Y3l=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(C){}var Tdr=typeof WeakRef==="function";var o2r=function(C){this.value=C};
o2r.prototype.deref=function(){return this.value};
var r4S=Tdr?WeakRef:o2r,KDu=function(C){this.newKeyHandler=C;this.map=new WeakMap};
KDu.prototype.add=function(C,F){this.map.has(C)||(this.newKeyHandler(C),this.map.set(C,[]));this.map.get(C).push(new r4S(F))};
KDu.prototype.get=function(C){var F=this;return function V(){var J,b,z,Q,E,t,k,U,H,l,N;return _.DF(V,function(S){switch(S.nextAddress){case 1:_.Oa(S,2);J=F.map.get(C);if(!J)return S.return();b=0;z=_.u(J);Q=z.next();case 4:if(Q.done){S.jumpTo(6);break}E=Q.value;t=E.deref();if(!t){S.jumpTo(5);break}b++;k=_.p3;return S.yield(t,8);case 8:k(S.yieldResult);case 5:Q=z.next();S.jumpTo(4);break;case 6:if(2*b<J.length){U=0;H=_.u(J);for(l=H.next();!l.done;l=H.next())N=l.value,N.deref()&&(J[U++]=N);J.length=
U}case 2:_.Na(S),_.XG(S,0)}})}()};var DW7=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},obZ=new KDu(function(C){C.addEventListener("abort",Kew,{once:!0})}),TvZ=new WeakMap,pYu=function(C){C=C===void 0?eh:C;
this.signal=new C};
pYu.prototype.abort=function(C){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=C,C=new Event("abort"),this.signal.dispatchEvent(C))};
var eh=function(){this.target=DW7();this.aborted=!1;this.onabort=null};
eh.prototype.throwIfAborted=function(){YIA.call(this)};
eh.prototype.addEventListener=function(C,F,G){this.target.addEventListener(C,F,G)};
eh.prototype.removeEventListener=function(C,F,G){this.target.removeEventListener(C,F,G)};
eh.prototype.dispatchEvent=function(C){if(this.onabort&&C.type==="abort")this.onabort(C);return this.target.dispatchEvent(C)};
eh.abort=RNE;eh.timeout=DhZ;eh.any=rm5;var gbq=Y3l?AbortController:pYu,dV=Y3l?AbortSignal:eh;typeof dV.abort!=="function"&&(dV.abort=RNE);typeof dV.prototype.throwIfAborted!=="function"&&(dV.prototype.throwIfAborted=YIA);typeof dV.any!=="function"&&(dV.any=rm5);typeof dV.timeout!=="function"&&(dV.timeout=DhZ);var tt=null,mhB=new Map;var mWr=function(C){C=C.clone();Uw7(C);lx(C,"dg",null);lx(C,"d","0");WOy(C,null);tWm(C,null);return C},CEy=!0,jto=function(C,F,G){var V=G===void 0?{}:G;
G=V.cssRowKey===void 0?void 0:V.cssRowKey;var J=V.combinedSignature===void 0?void 0:V.combinedSignature;var b=V.extraEdges===void 0?void 0:V.extraEdges;V=V.callback===void 0?void 0:V.callback;lx(C,"m",F.join(","));b&&kA2(C,b);G&&(lx(C,"ck",G),J?lx(C,"rs",J):CEy&&(CEy=!1));if(V){if(V!=null&&!ytE.test(V))throw Error("Xa`"+V);lx(C,"cb",V)}C=C.toString();_.Js(C,"/")&&(C=DlG(document.location.href)+C);return _.LT(C)};var Gto=function(C){return F5O(C).then(function(F){return JSON.parse(F.responseText)})},F5O=function(C){var F={},G=F.xmlHttpFactory?F.xmlHttpFactory.createInstance():Agl.createInstance();
return(new _.N1(function(V,J){var b;try{G.open("GET",C,!0)}catch(E){J(new xp("Error opening XHR: "+E.message,C,G))}G.onreadystatechange=function(){if(G.readyState==4){_.VT.clearTimeout(b);var E;!(E=cgE(G.status))&&(E=G.status===0)&&(E=Kir(C),E=!(E=="http"||E=="https"||E==""));E?V(G):J(new VvP(G.status,C,G))}};
G.onerror=function(){J(new xp("Network error",C,G))};
if(F.headers)for(var z in F.headers){var Q=F.headers[z];Q!=null&&G.setRequestHeader(z,Q)}F.withCredentials&&(G.withCredentials=F.withCredentials);F.responseType&&(G.responseType=F.responseType);F.mimeType&&G.overrideMimeType(F.mimeType);F.timeoutMs>0&&(b=_.VT.setTimeout(function(){G.onreadystatechange=function(){};
G.abort();J(new idP(C,G))},F.timeoutMs));
try{G.send(null)}catch(E){G.onreadystatechange=function(){},_.VT.clearTimeout(b),J(new xp("Error sending XHR: "+E.message,C,G))}})).thenCatch(function(V){V instanceof _.Op&&G.abort();
throw V;})},xp=function(C,F,G){_.FS.call(this,C+", url="+F);
this.url=F;this.xhr=G};
_.RE(xp,_.FS);xp.prototype.name="XhrError";var VvP=function(C,F,G){xp.call(this,"Request Failed, status="+C,F,G);this.status=C};
_.RE(VvP,xp);VvP.prototype.name="XhrHttpError";var idP=function(C,F){xp.call(this,"Request timed out",C,F)};
_.RE(idP,xp);idP.prototype.name="XhrTimeoutError";qb=qb||{};var sk=function(){_.hV.call(this)};
_.RE(sk,_.hV);sk.prototype.initialize=function(){};var JRu=function(C,F){this.fn_=C;this.handler_=F};
JRu.prototype.execute=function(C){this.fn_&&(this.fn_.call(this.handler_||null,C),this.fn_=this.handler_=null)};
JRu.prototype.abort=function(){this.handler_=this.fn_=null};var qq=function(C,F){_.hV.call(this);this.deps_=C;this.JSC$11048_id_=F;this.onloadCallbacks_=[];this.onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.RE(qq,_.hV);qq.prototype.moduleConstructor_=sk;qq.prototype.module_=null;qq.prototype.getId=function(){return this.JSC$11048_id_};
qq.prototype.registerCallback=function(C,F){return Pa(this.onloadCallbacks_,C,F)};
var $zS=function(C,F){Pa(C.onErrorCallbacks_,F)},Pa=function(C,F,G){F=new JRu(F,G);
C.push(F);return F};
qq.prototype.isLoaded=function(){return!!this.module_};
qq.prototype.onLoad=function(C){var F=new this.moduleConstructor_;F.initialize(C());this.module_=F;F=(F=bdr(this.earlyOnloadCallbacks_,C()))||bdr(this.onloadCallbacks_,C());F||(this.onErrorCallbacks_.length=0);return F};
qq.prototype.onError=function(C){(C=bdr(this.onErrorCallbacks_,C))&&iZ(Error("sd`"+C));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var bdr=function(C,F){for(var G=[],V=0;V<C.length;V++)try{C[V].execute(F)}catch(J){iZ(J),G.push(J)}C.length=0;return G.length?G:null};
qq.prototype.disposeInternal=function(){qq.superClass_.disposeInternal.call(this);_.uz(this.module_)};var nTm,W5u,Ito,ETr,zu8,Qt7,Hd8,ktG,Uz8;
_.ky=function(C,F,G,V,J){V=V===void 0?!1:V;J=J===void 0?!1:J;var b=b===void 0?!0:b;this.scsReferenceUrl_=sas(_.vh(C).toString(),b);this.cssRowKey_=F;this.combinedSignature_=G;this.useNegativeLoading_=V;this.requestedModuleMap_={};this.JSC$11051_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(C=He(this.scsReferenceUrl_,"excm"))?C.split(","):[];this.shouldScanForCss_=J;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;qtE();_.gV(this,aeE(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
nTm=function(C,F){if(F.href||F.getAttribute("data-href"))if(F=F.href||F.getAttribute("data-href"),AnT(F)&&!sas(F).urlPrefix_.endsWith("_/js/")){F=aeE(sas(F));F=_.u(F);for(var G=F.next();!G.done;G=F.next())G=G.value,C.loadedCssModuleList_.includes(G)||C.loadedCssModuleList_.push(G)}};
_.ky.prototype.JSC$11053_loadModules=function(C,F,G){var V=G===void 0?{}:G;G=V.extraEdges;var J=V.onError;var b=V.onSuccess;V=V.forceReload;this.JSC$11051_moduleInfoMap_=F;if(!C)throw Error("td");if(this.shouldScanForCss_){F=_.u(document.getElementsByTagName("style"));for(var z=F.next();!z.done;z=F.next())nTm(this,z.value);F=_.u(document.getElementsByTagName("link"));for(z=F.next();!z.done;z=F.next())nTm(this,z.value)}upS(this,zu8(this,C),G,J,b,V)};
var upS=function(C,F,G,V,J,b){V=V===void 0?function(){}:V;
J=J===void 0?function(){}:J;
b=b===void 0?!1:b;Qt7(C,F,function(z,Q,E){E=E===void 0?Q:E;C.enableFallbackFetch&&b?C.loadWithFetch(z,Q,V,J,E):C.load(z,Q,V,J,E,G)},G)||V(-1)};
_.ky.prototype.loadWithFetch=function(){_.I(function(){throw Error("ud");})};
_.ky.prototype.maybeSetAdditionalFields=function(){};
W5u=function(C,F,G){if(C.useNegativeLoading_){var V=C.scsReferenceUrl_;C={cssRowKey:C.cssRowKey_,combinedSignature:C.combinedSignature_,extraEdges:G,requestedModuleIds:Ito(C),requestedCssModuleIds:ETr(C)};var J=C===void 0?{}:C;C=J.requestedModuleIds===void 0?[]:J.requestedModuleIds;G=J.requestedCssModuleIds===void 0?[]:J.requestedCssModuleIds;var b=J.cssRowKey===void 0?void 0:J.cssRowKey;var z=J.combinedSignature===void 0?void 0:J.combinedSignature;var Q=J.extraEdges===void 0?void 0:J.extraEdges;
J=J.callback===void 0?void 0:J.callback;V=mWr(V);lx(V,"d","1");WOy(V,C);tWm(V,G);F=jto(V,F,{cssRowKey:b,combinedSignature:z,extraEdges:Q,callback:J})}else V=C.scsReferenceUrl_,C={cssRowKey:C.cssRowKey_,combinedSignature:C.combinedSignature_,requestedModuleIds:Ito(C),requestedCssModuleIds:ETr(C)},Q=C===void 0?{}:C,C=Q.requestedCssModuleIds===void 0?[]:Q.requestedCssModuleIds,G=Q.cssRowKey===void 0?void 0:Q.cssRowKey,b=Q.combinedSignature===void 0?void 0:Q.combinedSignature,z=Q.extraEdges===void 0?
void 0:Q.extraEdges,Q=Q.callback===void 0?void 0:Q.callback,V=mWr(V),tWm(V,C),F=jto(V,F,{cssRowKey:G,combinedSignature:b,extraEdges:z,callback:Q});return F};
_.gV=function(C,F){for(var G=!1,V=[],J=0;J<F.length;++J){var b=F[J];C.requestedModuleMap_[b]||(C.requestedModuleMap_[b]=!0,C.requestedModuleList_.push(b),G=!0,V.push(b))}G&&(C.requestedModuleListSorted_=!1)};
_.Rs=function(C,F){for(var G=[],V=0;V<F.length;++V){var J=F[V];C.requestedModuleMap_[J]&&(delete C.requestedModuleMap_[J],_.qf(C.requestedModuleList_,J),G.push(J))}};
_.ky.prototype.load=function(C,F,G,V,J){J=J===void 0?F:J;_.vh(C);var b=this.useCors_,z=this.corsMode_,Q=this.fetchPriority,E=_.Md("SCRIPT");_.JW(E,C);b&&(E.crossOrigin=z);E.async=!1;Q&&E.setAttribute("fetchpriority",Q);_.gV(this,F);_.tvO(this,C,E,F,G,V,J)};
_.tvO=function(C,F,G,V,J,b,z){z=z===void 0?V:z;C.lastScript_=G;C.insertPos.insertBefore(G,C.insertPos.firstChild);_.atP(G,V,function(){G.parentElement.removeChild(G);C.lastScript_==G&&(C.lastScript_=null);var Q=new Set;V.map(function(t){return Q.add(t)});
for(var E in C.JSC$11051_moduleInfoMap_)C.JSC$11051_moduleInfoMap_[E].isLoaded()&&Q.add(E);Array.from(Q);b()},function(Q){G.parentElement.removeChild(G);
C.lastScript_==G&&(C.lastScript_=null);_.Rs(C,Q);C.pendingModuleGraphUpdate_?C.pendingModuleGraphUpdate_.then(function(){J(-1,F)}):J(-1,F)},z)};
_.atP=function(C,F,G,V,J){J=J===void 0?F:J;var b=F.length,z=function(){b=0;C.onload=null;C.onerror=null;Q=function(){}},Q=function(){z();
var t=J.filter(function(k){return!sD().getModuleInfo(k).isLoaded()});
t.length!==0?V(t,"Response was successful but was missing module(s) "+t+"."):G()},E=function(){b--;
b==0&&Q()};
F.forEach(function(t){t=sD().getModuleInfo(t);t.isLoaded()?E():(Pa(t.earlyOnloadCallbacks_,E),$zS(t,E))});
C.onload=function(){return Q()};
C.onerror=function(){z();V(F)}};
Ito=function(C){C.requestedModuleListSorted_||(C.requestedModuleListSorted_=!0,C.requestedModuleList_.sort());return C.requestedModuleList_};
ETr=function(C){C=C.loadedCssModuleList_;C.sort();return C};
zu8=function(C,F){return F.filter(function(G){return!C.requestedModuleMap_[G]})};
Qt7=function(C,F,G,V){if(C.pendingModuleGraphUpdate_)return C.pendingModuleGraphUpdate_.then(function(){Qt7(C,F,G,V)}),!0;
if(!C.useNegativeLoading_){var J=[],b=Object.assign({},C.requestedModuleMap_);ktG(C,F,function(k){J.push(k.getId())},V,function(k){return!k.isLoaded()},b);
F=J}for(b=0;b<F.length;){for(var z=F.length-b,Q=b==0?F:F.slice(b,F.length),E=W5u(C,Q,V),t=_.vh(E).toString();t.length>C.urlMaxLength;)if(z>1)z-=Math.ceil((t.length-C.urlMaxLength)/6),z=Math.max(z,1),Q=F.slice(b,b+z),E=W5u(C,Q,V),t=_.vh(E).toString();else return C.useNegativeLoading_?(C.useNegativeLoading_=!1,C.pendingModuleGraphUpdate_=Uz8(C).then(function(k){Hd8(C,k,V)}),Qt7(C,F.slice(b),G,V)):!1;
b+=z;C.useNegativeLoading_?G(E,Q):G(E,Q,b===F.length?F:[])}return!0};
Hd8=function(C,F,G){sD().setAllModuleInfoString((F||{}).moduleGraph);ktG(C,Ito(C),function(V){_.gV(C,[V.getId()])},G);
C.pendingModuleGraphUpdate_=null};
ktG=function(C,F,G,V,J,b){b=b===void 0?{}:b;var z=sD();F=_.u(F);for(var Q=F.next();!Q.done;Q=F.next()){Q=Q.value;var E=z.getModuleInfo(Q);if(!(b[Q]||J&&!J(E))){b[Q]=!0;var t=E.deps_||[];if(V){var k=[];V[Q]&&(k=Object.keys(V[Q]));t=t.concat(k)}ktG(C,t,G,V,J,b);G(E)}}};
Uz8=function(C){C=C.scsReferenceUrl_.clone();Uw7(C);lx(C,"dg",null);lx(C,"md","1");return Gto(C.toString())};var jv5=new Uint8Array(123);var lt7=[];var yRu=function(){this.JSC$10053_loader_=null};
_.n=yRu.prototype;_.n.setBatchModeEnabled=function(){};
_.n.setAllModuleInfoString=function(){};
_.n.addExtraEdge=function(){throw Error("vd");};
_.n.removeExtraEdge=function(){throw Error("wd");};
_.n.getModuleContext=function(){return null};
_.n.isActive=function(){return!1};
_.n.isUserActive=function(){return!1};
_.n.registerInitializationCallback=function(){};
_.n.registerCallback=function(){};var Yp=function(C,F,G,V,J){var b=Error.call(this);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.name="ModuleLoadFailure";this.type=C;this.status=F;this.requestedModuleIds=G;this.url=V;this.cause=J;this.message=this.toString()};
_.O(Yp,Error);Yp.prototype.toString=function(){return Zd2(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var Zd2=function(C){switch(C.type){case Yp.Type.UNAUTHORIZED:return"Unauthorized";case Yp.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case Yp.Type.TIMEOUT:return"Timed out";case Yp.Type.OLD_CODE_GONE:return"Out of date module id";case Yp.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+C.type}};
qb.ModuleLoadFailure=Yp;qb.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var T$=function(){this.moduleIds_=this.JSC$10053_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11066_extraEdges_={};this.JSC$11066_callbackMap_={};this.JSC$11066_currentlyLoadingModule_=this.baseModuleInfo_=new qq([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new Y8;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.RE(T$,yRu);var N7$=function(C,F){_.FS.call(this,"Error loading "+C+": "+F)};
_.RE(N7$,_.FS);T$.prototype.setBatchModeEnabled=function(C){this.batchModeEnabled_=C};
T$.prototype.setAllModuleInfoString=function(C,F){if(!(this instanceof T$))this.setAllModuleInfoString(C,F);else if(typeof C==="string"){if(C.startsWith("d$")){C=C.substring(2);for(var G=[],V=0,J=C.indexOf("/"),b=0,z=!1,Q=0;;){var E=z?C.substring(b):C.substring(b,J);if(E.length===0)V++,b="sy"+V.toString(36),E=[];else{var t=E.indexOf(":");if(t<0)b=E,E=[];else if(t===E.length-1)b=E.substring(0,t),E=Array(G[Q-1]);else{b=E.substring(0,t);E=E.substring(t+1).split(",");t=Q;for(var k=0;k<E.length;k++)t-=
E[k].length===0?1:Number(E[k]),E[k]=G[t]}t=0;if(b.length===0)t=1;else if(b.charAt(0)==="+"||b.charAt(0)==="-")t=Number(b);t!==0&&(V+=t,b="sy"+V.toString(36))}G.push(b);Odu(this,b,E);if(z)break;b=J+1;J=C.indexOf("/",b);J===-1&&(z=!0);Q++}this.moduleIds_=G}else if(C.startsWith("p$"))Xrl(this,C);else{C=C.split("/");G=[];for(V=0;V<C.length;V++){Q=C[V].split(":");J=Q[0];z=[];if(Q[1])for(z=Q[1].split(","),Q=0;Q<z.length;Q++)z[Q]=G[parseInt(z[Q],36)];G.push(J);Odu(this,J,z)}this.moduleIds_=G}F&&F.length?
(_.Rw(this.loadingModuleIds_,F),this.lastInitialModuleId_=_.hs(F)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11066_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11066_currentlyLoadingModule_=null,(F=this.baseModuleInfo_.onLoad((0,_.ck)(this.getModuleContext,this)))&&F.length&&wr$(this,new qb.ModuleLoadFailure(qb.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,F[0])),rV(this))}};
var Xrl=function(C,F){var G=F.substring(2);for(F=0;F<64;F++)jv5["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(F)]=F;var V={buf:G,pos:0};ax(V);var J=ax(V),b=ax(V)+1;F=Array(J);var z=Array(J),Q=Array(J);b=Array(b);var E=0,t=0,k=V.pos,U=V.buf.indexOf("|",V.pos);V.pos=U+1;for(U=0;U<J;U++){var H=ax(V),l=H&2,N=H&1;H>>>=2;N?(E+=H>>>1^-(H&1),H="sy"+E.toString(36)):(N=k,k+=H,H=G.substring(N,k));F[U]=H;l&&(b[t++]=H)}b[t]="";V.pos++;t=J&-2;G=J&1;for(E=0;E<t;E+=2)k=F8q(V),Q[E]=
k&7,Q[E+1]=k>>>3&7;G&&(G=F8q(V),Q[t]=G&7);V.pos++;for(t=0;t<J;t++)Q[t]===7&&(Q[t]=ax(V));V.pos++;for(G=t=0;G<J;G++){E=Q[G];k=E===0?lt7:Array(E);z[G]=k;U=t;for(l=0;l<E;l++)U-=ax(V),k[l]=b[U];b[t]===F[G]&&t++}for(V=0;V<F.length;V++)Odu(C,F[V],z[V]);C.moduleIds_=F};
_.n=T$.prototype;_.n.getModuleInfo=function(C){return this.moduleInfoMap[C]};
_.n.addExtraEdge=function(C,F){var G=this.getModuleInfo(C);G&&G.isLoaded()?this.load(F):(this.JSC$11066_extraEdges_[C]||(this.JSC$11066_extraEdges_[C]={}),this.JSC$11066_extraEdges_[C][F]=!0)};
_.n.removeExtraEdge=function(C,F){if(this.JSC$11066_extraEdges_[C]){delete this.JSC$11066_extraEdges_[C][F];for(var G in this.JSC$11066_extraEdges_[C])return;delete this.JSC$11066_extraEdges_[C]}};
_.n.isActive=function(){return this.loadingModuleIds_.length>0};
_.n.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var rV=function(C){var F=C.lastActive_,G=C.isActive();G!=F&&(C.executeCallbacks_(G?"active":"idle"),C.lastActive_=G);F=C.isUserActive();F!=C.userLastActive_&&(C.executeCallbacks_(F?"userActive":"userIdle"),C.userLastActive_=F)},Odu=function(C,F,G){C.moduleInfoMap[F]?(C=C.moduleInfoMap[F].deps_,C!=G&&C.splice.apply(C,[0,
C.length].concat(_.da(G)))):C.moduleInfoMap[F]=new qq(G,F)},S6G=function(C,F,G){var V=[];
h5T(F,V);F=[];for(var J={},b=0;b<V.length;b++){var z=V[b],Q=C.getModuleInfo(z);if(!Q)throw Error("xd`"+z);var E=new Y8;J[z]=E;Q.isLoaded()?E.callback(null):(Mv$(C,z,Q,!!G,E),C.isModuleLoading(z)||F.push(z))}F.length>0&&(C.loadingModuleIds_.length===0?C.loadModules_(F):(C.requestedModuleIdsQueue_.push(F),rV(C)));return J},Mv$=function(C,F,G,V,J){G.registerCallback(J.callback,J);
$zS(G,function(b){J.errback(new N7$(F,b))});
C.isModuleLoading(F)?V&&(L5$(C,F),rV(C)):V&&L5$(C,F)};
T$.prototype.loadModules_=function(C,F,G){var V=this;F||(this.consecutiveFailures_=0);var J=B77(this,C);this.loadingModuleIds_=J;this.requestedLoadingModuleIds_=this.batchModeEnabled_?C:_.Po(J);rV(this);if(J.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,J);C=this.JSC$10053_loader_;if(!C)throw Error("yd");if(Object.keys(this.JSC$11066_extraEdges_).length>0&&!C.supportsExtraEdges)throw Error("zd");G=(0,_.ck)(C.JSC$11053_loadModules,C,_.Po(J),this.moduleInfoMap,{extraEdges:this.JSC$11066_extraEdges_,
forceReload:!!G,onError:function(b,z){var Q=V.requestedLoadingModuleIds_;b=b!=null?b:void 0;V.consecutiveFailures_++;var E=_.Po(J);V.requestedLoadingModuleIds_=Q;J.forEach(_.$B(_.qf,V.requestedModuleIds_),V);b==401?(wr$(V,new qb.ModuleLoadFailure(qb.ModuleLoadFailure.Type.UNAUTHORIZED,b)),V.requestedModuleIdsQueue_.length=0):b==410?(vTu(V,new qb.ModuleLoadFailure(qb.ModuleLoadFailure.Type.OLD_CODE_GONE,b)),ftu(V)):V.consecutiveFailures_>=3?(vTu(V,new qb.ModuleLoadFailure(qb.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
b,E,z)),ftu(V)):V.loadModules_(V.requestedLoadingModuleIds_,!0,b==8001||!1)},
onTimeout:(0,_.ck)(this.handleLoadTimeout_,this)});(C=Math.pow(this.consecutiveFailures_,2)*5E3)?_.VT.setTimeout(G,C):G()}};
var B77=function(C,F){F=F.filter(function(J){return C.moduleInfoMap[J].isLoaded()?(_.VT.setTimeout(function(){return Error("Ad`"+J)},0),!1):!0});
for(var G=[],V=0;V<F.length;V++)G=G.concat(hum(C,F[V]));h5T(G);return!C.batchModeEnabled_&&G.length>1?(F=G.shift(),C.requestedModuleIdsQueue_=G.map(function(J){return[J]}).concat(C.requestedModuleIdsQueue_),[F]):G},hum=function(C,F){var G=_.xf.createSet(C.requestedModuleIds_),V=[];
G[F]||V.push(F);F=[F];for(var J=0;J<F.length;J++)for(var b=C.getModuleInfo(F[J]).deps_,z=b.length-1;z>=0;z--){var Q=b[z];C.getModuleInfo(Q).isLoaded()||G[Q]||(V.push(Q),F.push(Q))}V.reverse();h5T(V);return V};
T$.prototype.JSC$11061_setLoaded=function(){if(this.JSC$11066_currentlyLoadingModule_){var C=this.JSC$11066_currentlyLoadingModule_.getId(),F=[];if(this.JSC$11066_extraEdges_[C]){for(var G=_.u(Object.keys(this.JSC$11066_extraEdges_[C])),V=G.next();!V.done;V=G.next()){V=V.value;var J=this.getModuleInfo(V);J&&!J.isLoaded()&&(this.removeExtraEdge(C,V),F.push(V))}this.loadMultiple(F)}this.isDisposed()||((F=this.moduleInfoMap[C].onLoad((0,_.ck)(this.getModuleContext,this)))&&F.length&&wr$(this,new qb.ModuleLoadFailure(qb.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,F[0])),_.qf(this.userInitiatedLoadingModuleIds_,C),_.qf(this.loadingModuleIds_,C),this.loadingModuleIds_.length===0&&ftu(this),this.lastInitialModuleId_&&C==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),rV(this),this.JSC$11066_currentlyLoadingModule_=null)}};
T$.prototype.isModuleLoading=function(C){if(_.sB(this.loadingModuleIds_,C))return!0;for(var F=0;F<this.requestedModuleIdsQueue_.length;F++)if(_.sB(this.requestedModuleIdsQueue_[F],C))return!0;return!1};
T$.prototype.load=function(C,F){return S6G(this,[C],F)[C]};
T$.prototype.loadMultiple=function(C){return S6G(this,C)};
var L5$=function(C,F){_.sB(C.userInitiatedLoadingModuleIds_,F)||C.userInitiatedLoadingModuleIds_.push(F)};
T$.prototype.beforeLoadModuleCode=function(C){var F=this;this.JSC$11066_currentlyLoadingModule_&&this.JSC$11066_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11061_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[C]&&cR7(this,this.moduleInfoMap[C].deps_||[],function(G){G.module_=new sk;_.qf(F.loadingModuleIds_,G.getId())},function(G){return!G.isLoaded()});
this.JSC$11066_currentlyLoadingModule_=this.getModuleInfo(C)};
T$.prototype.registerInitializationCallback=function(C){this.JSC$11066_currentlyLoadingModule_||(this.moduleInfoMap.synthetic_module_overhead=new qq([],"synthetic_module_overhead"),this.JSC$11066_currentlyLoadingModule_=this.moduleInfoMap.synthetic_module_overhead);Pa(this.JSC$11066_currentlyLoadingModule_.earlyOnloadCallbacks_,C)};
T$.prototype.handleLoadTimeout_=function(){vTu(this,new qb.ModuleLoadFailure(qb.ModuleLoadFailure.Type.TIMEOUT));ftu(this)};
var vTu=function(C,F){C.requestedLoadingModuleIds_.length>1?C.requestedModuleIdsQueue_=C.requestedLoadingModuleIds_.map(function(G){return[G]}).concat(C.requestedModuleIdsQueue_):wr$(C,F)},wr$=function(C,F){var G=C.requestedLoadingModuleIds_;
C.loadingModuleIds_.length=0;for(var V=[],J=0;J<C.requestedModuleIdsQueue_.length;J++){var b=C.requestedModuleIdsQueue_[J].filter(function(E){var t=hum(this,E);return V2(G,function(k){return _.sB(t,k)})},C);
_.Rw(V,b)}for(J=0;J<G.length;J++)_.LWi(V,G[J]);for(J=0;J<V.length;J++){for(b=0;b<C.requestedModuleIdsQueue_.length;b++)_.qf(C.requestedModuleIdsQueue_[b],V[J]);_.qf(C.userInitiatedLoadingModuleIds_,V[J])}if(J=C.JSC$11066_callbackMap_.error)for(b=0;b<J.length;b++)for(var z=J[b],Q=0;Q<V.length;Q++)z("error",V[Q],F);for(V=0;V<G.length;V++)if(C.moduleInfoMap[G[V]])C.moduleInfoMap[G[V]].onError(F);C.requestedLoadingModuleIds_.length=0;rV(C)},ftu=function(C){for(;C.requestedModuleIdsQueue_.length;){var F=
C.requestedModuleIdsQueue_.shift().filter(function(G){return!this.getModuleInfo(G).isLoaded()},C);
if(F.length>0){C.loadModules_(F);return}}rV(C)};
T$.prototype.registerCallback=function(C,F){Array.isArray(C)||(C=[C]);for(var G=0;G<C.length;G++){var V=C[G],J=F,b=this.JSC$11066_callbackMap_;b[V]||(b[V]=[]);b[V].push(J)}};
T$.prototype.executeCallbacks_=function(C){for(var F=this.JSC$11066_callbackMap_[C],G=0;F&&G<F.length;G++)F[G](C)};
var cR7=function(C,F,G,V,J){V=V===void 0?function(){return!0}:V;
J=J===void 0?{}:J;F=_.u(F);for(var b=F.next();!b.done;b=F.next()){b=b.value;var z=C.getModuleInfo(b);!J[b]&&V(z)&&(J[b]=!0,cR7(C,z.deps_||[],G,V,J),G(z))}};
T$.prototype.dispose=function(){_.zI(_.xf.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11066_callbackMap_={};this.isDisposed_=!0};
T$.prototype.isDisposed=function(){return this.isDisposed_};
_.xd=function(){return new T$};var ARy=[5E3,2E4],wyS=function(){this.JSC$10053_loader_=null;this.JSC$11074_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11074_queue_=[];this.JSC$11074_extraEdges_=Object.create(null);this.JSC$11074_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.O(wyS,yRu);_.n=wyS.prototype;_.n.setAllModuleInfoString=function(){this.JSC$11074_currentlyLoadingModule_&&this.JSC$11074_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11061_setLoaded()};
_.n.getModuleInfo=function(C){var F=this.JSC$11074_moduleInfoMap_[C];F||(F=new qq([],C),this.JSC$11074_moduleInfoMap_[C]=F);return F};
_.n.addExtraEdge=function(C,F){this.getModuleInfo(C).isLoaded()?this.load(F):(this.JSC$11074_extraEdges_[C]||(this.JSC$11074_extraEdges_[C]={}),this.JSC$11074_extraEdges_[C][F]=!0)};
_.n.removeExtraEdge=function(C,F){if(this.JSC$11074_extraEdges_[C]){delete this.JSC$11074_extraEdges_[C][F];for(var G in this.JSC$11074_extraEdges_[C])return;delete this.JSC$11074_extraEdges_[C]}};
_.n.isModuleLoading=function(C){return!!this.loadingModules_[C]};
_.n.load=function(C){euS(this,[C]);return dzO(this,C)};
_.n.loadMultiple=function(C){var F=this,G=Object.create(null),V=[];C.forEach(function(J){G[J]||(G[J]=dzO(F,J),V.push(J))});
euS(this,V);return G};
_.n.beforeLoadModuleCode=function(C){var F;((F=this.JSC$11074_currentlyLoadingModule_)==null?void 0:F.getId())==="synthetic_module_overhead"&&this.JSC$11061_setLoaded();var G,V;xz2(this,(V=(G=this.JSC$11074_moduleInfoMap_[C])==null?void 0:G.deps_)!=null?V:[],function(J){J.module_=new sk},function(J){return!J.isLoaded()});
this.JSC$11074_currentlyLoadingModule_=this.getModuleInfo(C)};
_.n.JSC$11061_setLoaded=function(){if(this.JSC$11074_currentlyLoadingModule_){var C=this.JSC$11074_currentlyLoadingModule_.getId(),F=[];if(this.JSC$11074_extraEdges_[C]){for(var G=_.u(Object.keys(this.JSC$11074_extraEdges_[C])),V=G.next();!V.done;V=G.next())V=V.value,this.getModuleInfo(V).isLoaded()||(this.removeExtraEdge(C,V),F.push(V));this.loadMultiple(F)}this.JSC$11074_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11074_currentlyLoadingModule_=null;(!this.isModuleLoading(C)&&/^sy[0-9a-z]{0,4}$/.test(C)||C==="synthetic_module_overhead")&&delete this.JSC$11074_moduleInfoMap_[C];this.unsetModulesAsLoading(C)}};
_.n.registerInitializationCallback=function(C){this.JSC$11074_currentlyLoadingModule_||(this.JSC$11074_moduleInfoMap_.synthetic_module_overhead=new qq([],"synthetic_module_overhead"),this.JSC$11074_currentlyLoadingModule_=this.JSC$11074_moduleInfoMap_.synthetic_module_overhead);Pa(this.JSC$11074_currentlyLoadingModule_.earlyOnloadCallbacks_,C)};
_.n.setModulesAsLoading=function(){var C=this;_.Rn.apply(0,arguments).forEach(function(F){C.loadingModules_[F]=!0})};
_.n.unsetModulesAsLoading=function(){var C=this;_.Rn.apply(0,arguments).forEach(function(F){delete C.loadingModules_[F]})};
var dzO=function(C,F){return new _.N1(function(G,V){var J=C.getModuleInfo(F);J.isLoaded()?G(null):(J.registerCallback(function(){G(null)}),$zS(J,function(b){var z="Error loading "+F+": "+b;
b instanceof qb.ModuleLoadFailure&&b.url&&(z=z+", requested url: "+b.url.toString());V(Error(z))}))})},euS=function(C,F){F=F.filter(function(G){return!C.isModuleLoading(G)&&!C.getModuleInfo(G).isLoaded()});
F.length>0&&(C.setModulesAsLoading.apply(C,_.da(F)),C.JSC$11074_queue_.push(F),st8(C))},st8=function(C){for(var F={};C.activeLoads_<Infinity&&C.JSC$11074_queue_.length>0;F={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})F.ids$jscomp$36=C.JSC$11074_queue_.shift().filter(function(G){return!C.getModuleInfo(G).isLoaded()}),F.ids$jscomp$36.length>0&&(C.activeLoads_++,F.finishLoad=function(G){return function(){C.activeLoads_--;
st8(C);G.finishLoad=function(){}}}(F),_.NX(F.ids$jscomp$36.map(function(G){return dzO(C,G)})).then(function(G){return function(){(0,G.finishLoad)()}}(F)),F.attempt$jscomp$6=0,F.load$jscomp$1=function(G){return function(){if(Object.keys(C.JSC$11074_extraEdges_).length>0&&!C.JSC$10053_loader_.supportsExtraEdges)throw Error("zd");
C.JSC$10053_loader_.JSC$11053_loadModules(G.ids$jscomp$36,C.JSC$11074_moduleInfoMap_,{extraEdges:C.JSC$11074_extraEdges_,onError:function(V,J){var b=ARy[G.attempt$jscomp$6++];b!==void 0?setTimeout(function(){(0,G.load$jscomp$1)()},b):(C.unsetModulesAsLoading.apply(C,_.da(G.ids$jscomp$36)),(0,G.finishLoad)(),G.ids$jscomp$36.forEach(function(z){z=C.getModuleInfo(z);
if(!z.isLoaded())z.onError(new qb.ModuleLoadFailure(qb.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,V,G.ids$jscomp$36,J))}))}})}}(F),(0,F.load$jscomp$1)())},xz2=function(C,F,G,V,J){V=V===void 0?function(){return!0}:V;
J=J===void 0?{}:J;F=_.u(F);for(var b=F.next();!b.done;b=F.next()){b=b.value;var z=C.getModuleInfo(b);!J[b]&&V(z)&&(J[b]=!0,xz2(C,z.deps_||[],G,V,J),G(z))}};var q68=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var Jkw=Symbol("Cd");window.JSCompiler_renameProperty=function(C){return C};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var PEP=!q68||HTMLElement.es5Shimmed||_.VT.Reflect===void 0||_.VT.customElements===void 0||_.VT.customElements.polyfillWrapFlushCallback||!1,gTl,eoA=function(){var C=HTMLElement;if(PEP)return C;if(gTl!==void 0)return gTl;var F=_.VT.Reflect,G=function(){return F.construct(C,[],this.constructor)};
G.prototype=C.prototype;G.prototype.constructor=G;G.es5Shimmed=!0;Object.setPrototypeOf(G,C);return gTl=G},RuP=!1;PEP||RuP||(RuP=!0,_.VT.HTMLElement=eoA());/*

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 z19=/(url\()([^)]*)(\))/g,nZS=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,ucw,U8;var mO=!window.ShadyDOM||!window.ShadyDOM.inUse,Y6S=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),T77=!window.customElements.polyfillWrapFlushCallback,oTr;if(oTr=mO&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var rRO=new CSSStyleSheet;rRO.replaceSync("");var K5G=document.createElement("div");K5G.attachShadow({mode:"open"});K5G.shadowRoot.adoptedStyleSheets=[rRO];oTr=K5G.shadowRoot.adoptedStyleSheets[0]===rRO}catch(C){oTr=!1}
var Dzu=oTr,prG=window.Polymer&&window.Polymer.rootPath||IFB(document.baseURI||window.location.href),fc=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,loT=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,GH=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,mz7=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,pc=window.Polymer&&window.Polymer.legacyOptimizations||!1,FL=window.Polymer&&window.Polymer.legacyWarnings||!1,CPm=window.Polymer&&window.Polymer.syncInitialRender||
!1,cv=window.Polymer&&window.Polymer.legacyUndefined||!1,jNr=window.Polymer&&window.Polymer.orderedComputed||!1,Kx=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Dh=window.Polymer&&window.Polymer.fastDomIf||!1,px=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,Fm$=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,Gp7=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var mH={},Vr$={},eW=function(){return HTMLElement.apply(this,arguments)||this};
_.O(eW,HTMLElement);eW.import=function(C,F){return C?(C=mH[C]||Vr$[C.toLowerCase()])&&F?C.querySelector(F):C:null};
eW.prototype.attributeChangedCallback=function(C,F,G){F!==G&&this.register()};
eW.prototype.register=function(C){if(C=C||this.id){if(GH&&(mH[C]||Vr$[C.toLowerCase()])!==void 0)throw mH[C]=Vr$[C.toLowerCase()]=null,Error("Dd`"+C);this.id=C;mH[C]=Vr$[C.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.I6.Object.defineProperties(eW.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var C=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;C=_.Hv(this.getAttribute("assetpath")||"",C.baseURI);this.__assetpath=IFB(C)}return this.__assetpath}}});
_.I6.Object.defineProperties(eW,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
eW["import"]=eW.import;eW.prototype.modules=mH;customElements.define("dom-module",eW);var i5E=0,W8I=0,l9=[],Jvu=0,EZT=!1,$ry=document.createTextNode(""),b5P,ox;(new window.MutationObserver(tZ5)).observe($ry,{characterData:!0});_.Ca={after:function(C){return{run:function(F){return window.setTimeout(F,C)},
cancel:function(F){window.clearTimeout(F)}}},
run:function(C,F){return window.setTimeout(C,F)},
cancel:function(C){window.clearTimeout(C)}};
_.E9={run:function(C){return window.requestAnimationFrame(C)},
cancel:function(C){window.cancelAnimationFrame(C)}};
b5P={run:function(C){return window.requestIdleCallback?window.requestIdleCallback(C):window.setTimeout(C,16)},
cancel:function(C){window.cancelIdleCallback?window.cancelIdleCallback(C):window.clearTimeout(C)}};
ox={run:function(C){EZT||(EZT=!0,$ry.textContent=Jvu++);l9.push(C);return i5E++},
cancel:function(C){var F=C-W8I;if(F>=0){if(!l9[F])throw Error("Ed`"+C);l9[F]=null}}};var nz7=0,j$=function(C){var F=C.__mixinApplications;F||(F=new WeakMap,C.__mixinApplications=F);var G=nz7++;return function(V){var J=V.__mixinSet;if(J&&J[G])return V;var b=F,z=b.get(V);z||(z=C(V),b.set(V,z),V=Object.create(z.__mixinSet||J||null),V[G]=!0,z.__mixinSet=V);return z}};_.vv=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(C){return ShadyDOM.patch(C)}:function(C){return C};var uUo=j$(function(C){var F=function(){var G=C.call(this)||this;G.__dataEnabled=!1;G.__dataReady=!1;G.__dataInvalid=!1;G.__data={};G.__dataPending=null;G.__dataOld=null;G.__dataInstanceProps=null;G.__dataCounter=0;G.__serializing=!1;G._initializeProperties();return G};
_.O(F,C);F.createProperties=function(G){var V=this.prototype,J;for(J in G)J in V||V._createPropertyAccessor(J)};
F.attributeNameForProperty=function(G){return G.toLowerCase()};
F.typeForProperty=function(){};
F.prototype._createPropertyAccessor=function(G,V){this._addPropertyToAttributeMap(G);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[G]||(this.__dataHasAccessor[G]=!0,this._definePropertyAccessor(G,V))};
F.prototype._addPropertyToAttributeMap=function(G){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var V=this.__dataAttributes[G];V||(V=this.constructor.attributeNameForProperty(G),this.__dataAttributes[V]=G);return V};
F.prototype._definePropertyAccessor=function(G,V){Object.defineProperty(this,G,{get:function(){return this.__data[G]},
set:V?function(){}:function(J){this._setPendingProperty(G,J,!0)&&this._invalidateProperties()}})};
F.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
F.prototype._initializeProperties=function(){for(var G in this.__dataHasAccessor)this.hasOwnProperty(G)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[G]=this[G],delete this[G])};
F.prototype._initializeInstanceProperties=function(G){Object.assign(this,G)};
F.prototype._setProperty=function(G,V){this._setPendingProperty(G,V)&&this._invalidateProperties()};
F.prototype._getProperty=function(G){return this.__data[G]};
F.prototype._setPendingProperty=function(G,V){var J=this.__data[G],b=this._shouldPropertyChange(G,V,J);b&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||G in this.__dataOld||(this.__dataOld[G]=J),this.__data[G]=V,this.__dataPending[G]=V);return b};
F.prototype._isPropertyPending=function(G){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(G))};
F.prototype._invalidateProperties=function(){var G=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,ox.run(function(){G.__dataInvalid&&(G.__dataInvalid=!1,G._flushProperties())}))};
F.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
F.prototype._flushProperties=function(){this.__dataCounter++;var G=this.__data,V=this.__dataPending,J=this.__dataOld;this._shouldPropertiesChange(G,V,J)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(G,V,J));this.__dataCounter--};
F.prototype._shouldPropertiesChange=function(G,V){return!!V};
F.prototype._propertiesChanged=function(){};
F.prototype._shouldPropertyChange=function(G,V,J){return J!==V&&(J===J||V===V)};
F.prototype.attributeChangedCallback=function(G,V,J,b){V!==J&&this._attributeToProperty(G,J);C.prototype.attributeChangedCallback&&C.prototype.attributeChangedCallback.call(this,G,V,J,b)};
F.prototype._attributeToProperty=function(G,V,J){if(!this.__serializing){var b=this.__dataAttributes;G=b&&b[G]||G;this[G]=this._deserializeValue(V,J||this.constructor.typeForProperty(G))}};
F.prototype._propertyToAttribute=function(G,V,J){this.__serializing=!0;J=arguments.length<3?this[G]:J;this._valueToNodeAttribute(this,J,V||this.constructor.attributeNameForProperty(G));this.__serializing=!1};
F.prototype._valueToNodeAttribute=function(G,V,J){V=this._serializeValue(V);if(J==="class"||J==="name"||J==="slot")G=(0,_.vv)(G);V===void 0?G.removeAttribute(J):G.setAttribute(J,V===""&&window.trustedTypes?window.trustedTypes.emptyScript:V)};
F.prototype._serializeValue=function(G){switch(typeof G){case "boolean":return G?"":void 0;default:return G!=null?G.toString():void 0}};
F.prototype._deserializeValue=function(G,V){switch(V){case Boolean:return G!==null;case Number:return Number(G);default:return G}};
return F});var zGu=0,aFE=[];var QNl=j$(function(C){function F(b){b=Object.getPrototypeOf(b);return b.prototype instanceof J?b:null}
function G(b){if(!b.hasOwnProperty("__ownProperties")){var z=null;if(b.hasOwnProperty("properties")){var Q=b.properties;if(Q){z={};for(var E in Q){var t=Q[E];z[E]=typeof t==="function"?{type:t}:t}}}b.__ownProperties=z}return b.__ownProperties}
var V=uUo(C),J=function(){return V.apply(this,arguments)||this};
_.O(J,V);J.finalize=function(){if(!this.hasOwnProperty("__finalized")){var b=F(this);b&&b.finalize();this.__finalized=!0;this._finalizeClass()}};
J._finalizeClass=function(){var b=G(this);b&&this.createProperties(b)};
J.typeForProperty=function(b){return(b=this._properties[b])&&b.type};
J.prototype._initializeProperties=function(){zGu++;this.constructor.finalize();V.prototype._initializeProperties.call(this)};
J.prototype.connectedCallback=function(){V.prototype.connectedCallback&&V.prototype.connectedCallback.call(this);this._enableProperties()};
J.prototype.disconnectedCallback=function(){V.prototype.disconnectedCallback&&V.prototype.disconnectedCallback.call(this)};
_.I6.Object.defineProperties(J,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var b=this;if(!this.hasOwnProperty("__observedAttributes")){kZT(this.prototype);var z=this._properties;this.__observedAttributes=z?Object.keys(z).map(function(Q){return b.prototype._addPropertyToAttributeMap(Q)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var b=F(this);this.__properties=Object.assign({},b&&b._properties,G(this))}return this.__properties}}});
return J});var UxT={},H3w=/-[a-z]/g,lFT=/([A-Z])/g;for(var I5S={},EzO=HTMLElement.prototype;EzO;){for(var Wm$=Object.getOwnPropertyNames(EzO),trl=0;trl<Wm$.length;trl++)I5S[Wm$[trl]]=!0;EzO=Object.getPrototypeOf(EzO)}var a52=window.trustedTypes?function(C){return trustedTypes.isHTML(C)||trustedTypes.isScript(C)||trustedTypes.isScriptURL(C)}:function(){return!1},kpo=j$(function(C){var F=uUo(C);
C=function(){return F.apply(this,arguments)||this};
_.O(C,F);C.createPropertiesForAttributes=function(){for(var G=this.observedAttributes,V=0;V<G.length;V++)this.prototype._createPropertyAccessor(y3(G[V]))};
C.attributeNameForProperty=function(G){return Ze(G)};
C.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);F.prototype._initializeProperties.call(this)};
C.prototype._initializeProtoProperties=function(G){for(var V in G)this._setProperty(V,G[V])};
C.prototype._ensureAttribute=function(G,V){this.hasAttribute(G)||this._valueToNodeAttribute(this,V,G)};
C.prototype._serializeValue=function(G){switch(typeof G){case "object":if(G instanceof Date)return G.toString();if(G){if(a52(G))return G;try{return JSON.stringify(G)}catch(V){return""}}default:return F.prototype._serializeValue.call(this,G)}};
C.prototype._deserializeValue=function(G,V){switch(V){case Object:try{var J=JSON.parse(G)}catch(b){J=G}break;case Array:try{J=JSON.parse(G)}catch(b){J=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+G)}break;case Date:J=isNaN(G)?String(G):Number(G);J=new Date(J);break;default:J=F.prototype._deserializeValue.call(this,G,V)}return J};
C.prototype._definePropertyAccessor=function(G,V){if(!I5S[G]){var J=this[G];J!==void 0&&(this.__data?this._setPendingProperty(G,J):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[G]=J))}F.prototype._definePropertyAccessor.call(this,G,V)};
C.prototype._hasAccessor=function(G){return this.__dataHasAccessor&&this.__dataHasAccessor[G]};
C.prototype._isPropertyPending=function(G){return!!(this.__dataPending&&G in this.__dataPending)};
return C});var Urm={"dom-if":!0,"dom-repeat":!0},H58=!1,l5G=!1,yv$=function(){var C=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(F){return F}});
return function(F,G,V){G=G.getAttribute(V);C&&V.startsWith("on-")?F.setAttribute(V,C.createScript(G,V)):F.setAttribute(V,G)}}(),Z5l=j$(function(C){var F=function(){return C.apply(this,arguments)||this};
_.O(F,C);F._parseTemplate=function(G,V){if(!G._templateInfo){var J=G._templateInfo={};J.nodeInfoList=[];J.nestedTemplate=!!V;J.stripWhiteSpace=V&&V.stripWhiteSpace||G.hasAttribute&&G.hasAttribute("strip-whitespace");this._parseTemplateContent(G,J,{parent:null})}return G._templateInfo};
F._parseTemplateContent=function(G,V,J){return this._parseTemplateNode(G.content,V,J)};
F._parseTemplateNode=function(G,V,J){var b=!1;G.localName!="template"||G.hasAttribute("preserve-content")?G.localName==="slot"&&(V.hasInsertionPoint=!0):b=this._parseTemplateNestedTemplate(G,V,J)||b;if(!H58){H58=!0;var z=document.createElement("textarea");z.placeholder="a";l5G=z.placeholder===z.textContent}l5G&&G.localName==="textarea"&&G.placeholder&&G.placeholder===G.textContent&&(G.textContent=null);G.firstChild&&this._parseTemplateChildNodes(G,V,J);G.hasAttributes&&G.hasAttributes()&&(b=this._parseTemplateNodeAttributes(G,
V,J)||b);return b||J.noted};
F._parseTemplateChildNodes=function(G,V,J){if(G.localName!=="script"&&G.localName!=="style")for(var b=G.firstChild,z=0,Q;b;b=Q){if(b.localName=="template"){var E=b.getAttribute("is");if(E&&Urm[E])for(Q=b,Q.removeAttribute("is"),b=Q.ownerDocument.createElement(E),Q.parentNode.replaceChild(b,Q),b.appendChild(Q);Q.attributes.length;)E=Q.attributes[0].name,yv$(b,Q,E),Q.removeAttribute(E)}Q=b.nextSibling;if(b.nodeType===Node.TEXT_NODE){for(E=Q;E&&E.nodeType===Node.TEXT_NODE;)b.textContent+=E.textContent,
Q=E.nextSibling,G.removeChild(E),E=Q;if(V.stripWhiteSpace&&!b.textContent.trim()){G.removeChild(b);continue}}E={parentIndex:z,parentInfo:J};this._parseTemplateNode(b,V,E)&&(E.infoIndex=V.nodeInfoList.push(E)-1);b.parentNode&&z++}};
F._parseTemplateNestedTemplate=function(G,V,J){V=this._parseTemplate(G,V);(V.content=G.content.ownerDocument.createDocumentFragment()).appendChild(G.content);J.templateInfo=V;return!0};
F._parseTemplateNodeAttributes=function(G,V,J){for(var b=!1,z=Array.from(G.attributes),Q=z.length-1,E;E=z[Q];Q--)b=this._parseTemplateNodeAttribute(G,V,J,E.name,E.value)||b;return b};
F._parseTemplateNodeAttribute=function(G,V,J,b,z){return b.slice(0,3)==="on-"?(G.removeAttribute(b),J.events=J.events||[],J.events.push({name:b.slice(3),value:z}),!0):b==="id"?(J.id=z,!0):!1};
F._contentForTemplate=function(G){var V=G._templateInfo;return V&&V.content||G.content};
F.prototype._stampTemplate=function(G,V){G&&!G.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(G);V=V||this.constructor._parseTemplate(G);var J=V.nodeInfoList;G=document.importNode(V.content||G.content,!0);G.__noInsertionPoint=!V.hasInsertionPoint;var b=G.nodeList=Array(J.length);G.$={};for(var z=0,Q=J.length,E=void 0;z<Q&&(E=J[z]);z++){var t=b[z]=ykI(G,E);E.id&&(G.$[E.id]=t);var k=t,U=E,H=V;U.templateInfo&&(k._templateInfo=U.templateInfo,k._parentTemplateInfo=
H);if(E.events&&E.events.length)for(k=0,U=E.events,H=void 0;k<U.length&&(H=U[k]);k++)this._addMethodEventListenerToNode(t,H.name,H.value,this)}return G};
F.prototype._addMethodEventListenerToNode=function(G,V,J,b){J=Z3s(b||G,J);this._addEventListenerToNode(G,V,J);return J};
F.prototype._addEventListenerToNode=function(G,V,J){G.addEventListener(V,J)};
F.prototype._removeEventListenerFromNode=function(G,V,J){G.removeEventListener(V,J)};
return F});var Lc=0,ht=[],Nk$={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},O5P=/[A-Z]/,XbE=function(C,F,G,V,J){var b=J?O8(C):C;if(F=F[b])for(b=0;b<F.length;b++){var z=F[b];if(z.info.lastRun!==Lc&&(!J||SpT(C,z.trigger))){z.info.lastRun=Lc;z=z.info;for(var Q=G,E=V,t=0,k=Q.length-1,U=-1;t<=k;){var H=t+k>>1,l=E.get(Q[H].methodInfo)-E.get(z.methodInfo);if(l<0)t=H+1;else if(l>0)k=H-1;else{U=H;break}}U<
0&&(U=k+1);Q.splice(U,0,z)}}},R1o=[],wb$=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"),GT=j$(function(C){var F=Z5l(kpo(C));
C=function(){var G=F.call(this)||this;G.__isPropertyEffectsClient=!0;return G};
_.O(C,F);C.prototype._initializeProperties=function(){F.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};
C.prototype._registerHost=function(){if(Ft.length){var G=Ft[Ft.length-1];G._enqueueClient(this);this.__dataHost=G}};
C.prototype._initializeProtoProperties=function(G){this.__data=Object.create(G);this.__dataPending=Object.create(G);this.__dataOld={}};
C.prototype._initializeInstanceProperties=function(G){var V=this.__readOnly,J;for(J in G)V&&V[J]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[J]=this.__dataPending[J]=G[J])};
C.prototype._addPropertyEffect=function(G,V,J){this._createPropertyAccessor(G,V=="__readOnly");var b=MZA(this,V,!0)[G];b||(b=this[V][G]=[]);b.push(J)};
C.prototype._removePropertyEffect=function(G,V,J){G=MZA(this,V,!0)[G];J=G.indexOf(J);J>=0&&G.splice(J,1)};
C.prototype._hasPropertyEffect=function(G,V){V=this[V];return!(!V||!V[G])};
C.prototype._hasReadOnlyEffect=function(G){return this._hasPropertyEffect(G,"__readOnly")};
C.prototype._hasNotifyEffect=function(G){return this._hasPropertyEffect(G,"__notifyEffects")};
C.prototype._hasReflectEffect=function(G){return this._hasPropertyEffect(G,"__reflectEffects")};
C.prototype._hasComputedEffect=function(G){return this._hasPropertyEffect(G,"__computeEffects")};
C.prototype._setPendingPropertyOrPath=function(G,V,J,b){if(b||O8(Array.isArray(G)?G[0]:G)!==G){if(!b&&(b=SW(this,G),G=wxo(this,G,V),!G||!F.prototype._shouldPropertyChange.call(this,G,V,b)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(G,V,J)){if(J=this.__dataLinkedPaths)for(var z in J)b=J[z],XV(z,G)?(b=wR(z,b,G),this._setPendingPropertyOrPath(b,V,!0,!0)):XV(b,G)&&(b=wR(b,z,G),this._setPendingPropertyOrPath(b,V,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[G])return this._setPendingProperty(G,
V,J);this[G]=V}return!1};
C.prototype._setUnmanagedPropertyToNode=function(G,V,J){if(J!==G[V]||typeof J=="object")V==="className"&&(G=(0,_.vv)(G)),G[V]=J};
C.prototype._setPendingProperty=function(G,V,J){var b=this.__dataHasPaths&&Nw(G);if(this._shouldPropertyChange(G,V,(b?this.__dataTemp:this.__data)[G])){this.__dataPending||(this.__dataPending={},this.__dataOld={});G in this.__dataOld||(this.__dataOld[G]=this.__data[G]);b?this.__dataTemp[G]=V:this.__data[G]=V;this.__dataPending[G]=V;if(b||this.__notifyEffects&&this.__notifyEffects[G])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[G]=J;return!0}return!1};
C.prototype._setProperty=function(G,V){this._setPendingProperty(G,V,!0)&&this._invalidateProperties()};
C.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
C.prototype._enqueueClient=function(G){this.__dataPendingClients=this.__dataPendingClients||[];G!==this&&this.__dataPendingClients.push(G)};
C.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
C.prototype.__enableOrFlushClients=function(){var G=this.__dataPendingClients;if(G){this.__dataPendingClients=null;for(var V=0;V<G.length;V++){var J=G[V];J.__dataEnabled?J.__dataPending&&J._flushProperties():J._enableProperties()}}};
C.prototype._readyClients=function(){this.__enableOrFlushClients()};
C.prototype.setProperties=function(G,V){for(var J in G)!V&&this.__readOnly&&this.__readOnly[J]||this._setPendingPropertyOrPath(J,G[J],!0);this._invalidateProperties()};
C.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
C.prototype._propertiesChanged=function(G,V,J){G=this.__dataHasPaths;this.__dataHasPaths=!1;var b;if(b=this.__computeEffects)if(jNr){Lc++;var z=ckT(this),Q=[],E;for(E in V)XbE(E,b,Q,z,G);for(;E=Q.shift();)e1w(this,"",V,J,E)&&XbE(E.methodInfo,b,Q,z,G);Object.assign(J,this.__dataOld);Object.assign(V,this.__dataPending);this.__dataPending=null}else for(z=V;Bv(this,b,z,J,G);)Object.assign(J,this.__dataOld),Object.assign(V,this.__dataPending),z=this.__dataPending,this.__dataPending=null;b=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(V,J,G);this._flushClients();Bv(this,this.__reflectEffects,V,J,G);Bv(this,this.__observeEffects,V,J,G);if(b){z=this.__notifyEffects;Q=Lc++;for(var t in b)if(b[t]){if(E=z){var k=z;E=Q;var U=t,H=V,l=J,N=G,S=!1,f=N?O8(U):U;if(k=k[f]){f=0;for(var c=k.length,A=void 0;f<c&&(A=k[f]);f++)A.info&&A.info.lastRun===E||N&&!SpT(U,A.trigger)||(A.info&&(A.info.lastRun=E),A.fn(this,U,H,l,A.info,N,void 0),S=!0)}E=S}if(E)var T=!0;else{if(E=G)E=t,U=V,H=O8(E),H!==
E?(H=Ze(H)+"-changed",BJ9(this,H,U[E],E),E=!0):E=!1;E&&(T=!0)}}var P;T&&(P=this.__dataHost)&&P._invalidateProperties&&P._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
C.prototype._propagatePropertyChanges=function(G,V,J){this.__propagateEffects&&Bv(this,this.__propagateEffects,G,V,J);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,G,V,J)};
C.prototype._runEffectsForTemplate=function(G,V,J,b){var z=this,Q=function(E,t){Bv(z,G.propertyEffects,E,J,t,G.nodeList);for(var k=G.firstChild;k;k=k.nextSibling)z._runEffectsForTemplate(k,E,J,t)};
G.runEffects?G.runEffects(Q,V,b):Q(V,b)};
C.prototype.linkPaths=function(G,V){G=Mw(G);V=Mw(V);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[G]=V};
C.prototype.unlinkPaths=function(G){G=Mw(G);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[G]};
C.prototype.notifySplices=function(G,V){var J={path:""};G=SW(this,G,J);rkT(this,G,J.path,V)};
C.prototype.get=function(G,V){return SW(V||this,G)};
C.prototype.set=function(G,V,J){J?wxo(J,G,V):this.__readOnly&&this.__readOnly[G]||this._setPendingPropertyOrPath(G,V,!0)&&this._invalidateProperties()};
C.prototype.push=function(G){var V=_.Rn.apply(1,arguments),J={path:""},b=SW(this,G,J),z=b.length,Q=b.push.apply(b,_.da(V));V.length&&At(this,b,J.path,z,V.length,[]);return Q};
C.prototype.pop=function(G){var V={path:""};G=SW(this,G,V);var J=!!G.length,b=G.pop();J&&At(this,G,V.path,G.length,0,[b]);return b};
C.prototype.splice=function(G,V,J){var b=_.Rn.apply(3,arguments),z={path:""},Q=SW(this,G,z);V<0?V=Q.length-Math.floor(-V):V&&(V=Math.floor(V));var E=arguments.length===2?Q.splice(V):Q.splice.apply(Q,[V,J].concat(_.da(b)));(b.length||E.length)&&At(this,Q,z.path,V,b.length,E);return E};
C.prototype.shift=function(G){var V={path:""};G=SW(this,G,V);var J=!!G.length,b=G.shift();J&&At(this,G,V.path,0,0,[b]);return b};
C.prototype.unshift=function(G){var V=_.Rn.apply(1,arguments),J={path:""},b=SW(this,G,J),z=b.unshift.apply(b,_.da(V));V.length&&At(this,b,J.path,0,V.length,[]);return z};
C.prototype.notifyPath=function(G,V){if(arguments.length==1){var J={path:""};V=SW(this,G,J);J=J.path}else J=Array.isArray(G)?Mw(G):G;this._setPendingPropertyOrPath(J,V,!0,!0)&&this._invalidateProperties()};
C.prototype._createReadOnlyProperty=function(G,V){this._addPropertyEffect(G,"__readOnly");V&&(this["_set"+(G[0].toUpperCase()+G.substring(1))]=function(J){this._setProperty(G,J)})};
C.prototype._createPropertyObserver=function(G,V,J){var b={property:G,method:V,dynamicFn:!!J};this._addPropertyEffect(G,"__observeEffects",{fn:L8i,info:b,trigger:{name:G}});J&&this._addPropertyEffect(V,"__observeEffects",{fn:L8i,info:b,trigger:{name:V}})};
C.prototype._createMethodObserver=function(G,V){var J=TJE(G);if(!J)throw Error("Fd`"+G);Pdo(this,J,"__observeEffects",Ak5,null,V)};
C.prototype._createNotifyingProperty=function(G){this._addPropertyEffect(G,"__notifyEffects",{fn:vZ5,info:{eventName:Ze(G)+"-changed",property:G}})};
C.prototype._createReflectedProperty=function(G){var V=this.constructor.attributeNameForProperty(G);V[0]==="-"?console.warn("Property "+G+" cannot be reflected to attribute "+V+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(G,"__reflectEffects",{fn:fFf,info:{attrName:V}})};
C.prototype._createComputedProperty=function(G,V,J){var b=TJE(V);if(!b)throw Error("Gd`"+V);V=Pdo(this,b,"__computeEffects",e1w,G,J);MZA(this,"__computeInfo")[G]=V};
C.prototype._marshalArgs=function(G,V,J){for(var b=this.__data,z=[],Q=0,E=G.length;Q<E;Q++){var t=G[Q],k=t.name,U=t.structured,H=t.wildcard,l=t.value;t.literal||(H?(t=XV(k,V),U=oZS(b,J,t?V:k),l={path:t?V:k,value:U,base:t?SW(b,k):U}):l=U?oZS(b,J,k):b[k]);if(cv&&!this._overrideLegacyUndefined&&l===void 0&&G.length>1)return ht;z[Q]=l}return z};
C.addPropertyEffect=function(G,V,J){this.prototype._addPropertyEffect(G,V,J)};
C.createPropertyObserver=function(G,V,J){this.prototype._createPropertyObserver(G,V,J)};
C.createMethodObserver=function(G,V){this.prototype._createMethodObserver(G,V)};
C.createNotifyingProperty=function(G){this.prototype._createNotifyingProperty(G)};
C.createReadOnlyProperty=function(G,V){this.prototype._createReadOnlyProperty(G,V)};
C.createReflectedProperty=function(G){this.prototype._createReflectedProperty(G)};
C.createComputedProperty=function(G,V,J){this.prototype._createComputedProperty(G,V,J)};
C.bindTemplate=function(G){return this.prototype._bindTemplate(G)};
C.prototype._bindTemplate=function(G,V){var J=this.constructor._parseTemplate(G),b=this.__preBoundTemplateInfo==J;if(!b)for(var z in J.propertyEffects)this._createPropertyAccessor(z);V?(J=Object.create(J),J.wasPreBound=b,this.__templateInfo?(G=G._parentTemplateInfo||this.__templateInfo,V=G.lastChild,J.parent=G,G.lastChild=J,(J.previousSibling=V)?V.nextSibling=J:G.firstChild=J):this.__templateInfo=J):this.__preBoundTemplateInfo=J;return J};
C._addTemplatePropertyEffect=function(G,V,J){(G.hostProps=G.hostProps||{})[V]=!0;G=G.propertyEffects=G.propertyEffects||{};(G[V]=G[V]||[]).push(J)};
C.prototype._stampTemplate=function(G,V){V=V||this._bindTemplate(G,!0);Ft.push(this);G=F.prototype._stampTemplate.call(this,G,V);Ft.pop();V.nodeList=G.nodeList;if(!V.wasPreBound)for(var J=V.childNodes=[],b=G.firstChild;b;b=b.nextSibling)J.push(b);G.templateInfo=V;J=V.nodeList;b=V.nodeInfoList;if(b.length)for(var z=0;z<b.length;z++){var Q=J[z],E=b[z].bindings;if(E)for(var t=0;t<E.length;t++){var k=E[t],U=Q,H=k;if(H.isCompound){for(var l=U.__dataCompoundStorage||(U.__dataCompoundStorage={}),N=H.parts,
S=Array(N.length),f=0;f<N.length;f++)S[f]=N[f].literal;N=H.target;l[N]=S;H.literal&&H.kind=="property"&&(N==="className"&&(U=(0,_.vv)(U)),U[N]=H.literal)}qpw(Q,this,k)}Q.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(V,this.__data,null,!1),this._flushClients());return G};
C.prototype._removeBoundDom=function(G){G=G.templateInfo;var V=G.previousSibling,J=G.nextSibling,b=G.parent;V?V.nextSibling=J:b&&(b.firstChild=J);J?J.previousSibling=V:b&&(b.lastChild=V);G.nextSibling=G.previousSibling=null;G=G.childNodes;for(V=0;V<G.length;V++)J=G[V],(0,_.vv)((0,_.vv)(J).parentNode).removeChild(J)};
C._parseTemplateNode=function(G,V,J){var b=F._parseTemplateNode.call(this,G,V,J);if(G.nodeType===Node.TEXT_NODE){var z=this._parseBindings(G.textContent,V);z&&(G.textContent=gZI(z)||" ",svi(this,V,J,"text","textContent",z),b=!0)}return b};
C._parseTemplateNodeAttribute=function(G,V,J,b,z){var Q=this._parseBindings(z,V);if(Q){z=b;var E="property";O5P.test(b)?E="attribute":b[b.length-1]=="$"&&(b=b.slice(0,-1),E="attribute");var t=gZI(Q);t&&E=="attribute"&&(b=="class"&&G.hasAttribute("class")&&(t+=" "+G.getAttribute(b)),G.setAttribute(b,t));E=="attribute"&&z=="disable-upgrade$"&&G.setAttribute(b,"");G.localName==="input"&&z==="value"&&G.setAttribute(z,"");G.removeAttribute(z);E==="property"&&(b=y3(b));svi(this,V,J,E,b,Q,t);return!0}return F._parseTemplateNodeAttribute.call(this,
G,V,J,b,z)};
C._parseTemplateNestedTemplate=function(G,V,J){var b=F._parseTemplateNestedTemplate.call(this,G,V,J),z=G.parentNode,Q=J.templateInfo,E=z.localName==="dom-if",t=z.localName==="dom-repeat";Kx&&(E||t)&&(z.removeChild(G),J=J.parentInfo,J.templateInfo=Q,J.noted=!0,b=!1);G=Q.hostProps;if(Dh&&E)G&&(V.hostProps=Object.assign(V.hostProps||{},G),Kx||(J.parentInfo.noted=!0));else for(var k in G)svi(this,V,J,"property","_host_"+k,[{mode:"{",source:k,dependencies:[k],hostProp:!0}]);return b};
C._parseBindings=function(G,V){for(var J=[],b=0,z;(z=wb$.exec(G))!==null;){z.index>b&&J.push({literal:G.slice(b,z.index)});b=z[1][0];var Q=!!z[2];z=z[3].trim();var E=!1,t="",k=-1;b=="{"&&(k=z.indexOf("::"))>0&&(t=z.substring(k+2),z=z.substring(0,k),E=!0);k=TJE(z);var U=[];if(k){var H=k,l=H.args;H=H.methodName;for(var N=0;N<l.length;N++){var S=l[N];S.literal||U.push(S)}if((l=V.dynamicFns)&&l[H]||k.static)U.push(H),k.dynamicFn=!0}else U.push(z);J.push({source:z,mode:b,negate:Q,customEvent:E,signature:k,
dependencies:U,event:t});b=wb$.lastIndex}b&&b<G.length&&(G=G.substring(b))&&J.push({literal:G});return J.length?J:null};
C._evaluateBinding=function(G,V,J,b,z,Q){G=V.signature?Ak5(G,J,b,z,V.signature):J!=V.source?SW(G,V.source):Q&&Nw(J)?SW(G,J):G.__data[J];V.negate&&(G=!G);return G};
_.I6.Object.defineProperties(C.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return Nk$}}});
return C}),Ft=[];var Mro=window.ShadyCSS&&window.ShadyCSS.cssBuild,Vq=j$(function(C){function F(V,J,b,z){if(!Mro){for(var Q=J.content.querySelectorAll("style"),E=mxT(J),t=CVo(b),k=J.content.firstElementChild,U=0;U<t.length;U++){var H=t[U];H.textContent=V._processStyleText(H.textContent,z);J.content.insertBefore(H,k)}for(k=t=0;k<E.length;k++)U=E[k],H=Q[t],H!==U?(U=U.cloneNode(!0),H.parentNode.insertBefore(U,H)):t++,U.textContent=V._processStyleText(U.textContent,z)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(J,
b);if(Gp7&&Mro&&Dzu&&(J=J.content.querySelectorAll("style"))){var l="";Array.from(J).forEach(function(N){l+=N.textContent;N.parentNode.removeChild(N)});
V._styleSheet=new CSSStyleSheet;V._styleSheet.replaceSync(l)}}
var G=QNl(GT(C));C=function(){return G.call(this)||this};
_.O(C,G);C._finalizeClass=function(){G._finalizeClass.call(this);var V;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(V=this.__ownObservers)&&this.createObservers(V,this._properties);this._prepareTemplate()};
C._prepareTemplate=function(){var V=this.template;V&&(typeof V==="string"?(console.error("template getter must return HTMLTemplateElement"),V=null):pc||(V=V.cloneNode(!0)));this.prototype._template=V};
C.createProperties=function(V){for(var J in V){var b=this.prototype,z=J,Q=V[J],E=V;Q.computed&&(Q.readOnly=!0);Q.computed&&(b._hasReadOnlyEffect(z)?console.warn("Cannot redefine computed property '"+z+"'."):b._createComputedProperty(z,Q.computed,E));Q.readOnly&&!b._hasReadOnlyEffect(z)?b._createReadOnlyProperty(z,!Q.computed):Q.readOnly===!1&&b._hasReadOnlyEffect(z)&&console.warn("Cannot make readOnly property '"+z+"' non-readOnly.");Q.reflectToAttribute&&!b._hasReflectEffect(z)?b._createReflectedProperty(z):
Q.reflectToAttribute===!1&&b._hasReflectEffect(z)&&console.warn("Cannot make reflected property '"+z+"' non-reflected.");Q.notify&&!b._hasNotifyEffect(z)?b._createNotifyingProperty(z):Q.notify===!1&&b._hasNotifyEffect(z)&&console.warn("Cannot make notify property '"+z+"' non-notify.");Q.observer&&b._createPropertyObserver(z,Q.observer,E[Q.observer]);b._addPropertyToAttributeMap(z)}};
C.createObservers=function(V,J){for(var b=this.prototype,z=0;z<V.length;z++)b._createMethodObserver(V[z],J)};
C.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);G.prototype._initializeProperties.call(this);this.rootPath=prG;this.importPath=this.constructor.importPath;var V=this.constructor;if(!V.hasOwnProperty("__propertyDefaults")){V.__propertyDefaults=null;var J=V._properties,b;for(b in J){var z=J[b];"value"in z&&(V.__propertyDefaults=V.__propertyDefaults||{},V.__propertyDefaults[b]=z)}}if(V=V.__propertyDefaults)for(var Q in V)J=V[Q],
this._canApplyPropertyDefault(Q)&&(J=typeof J.value=="function"?J.value.call(this):J.value,this._hasAccessor(Q)?this._setPendingProperty(Q,J,!0):this[Q]=J)};
C.prototype._canApplyPropertyDefault=function(V){return!this.hasOwnProperty(V)};
C._processStyleText=function(V,J){return Qvs(V,J)};
C._finalizeTemplate=function(V){var J=this.prototype._template;if(J&&!J.__polymerFinalized){J.__polymerFinalized=!0;var b=this.importPath;b=b?_.Hv(b):"";F(this,J,V,b);this.prototype._bindTemplate(J)}};
C.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);G.prototype.connectedCallback.call(this)};
C.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);G.prototype.ready.call(this)};
C.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));G.prototype._readyClients.call(this)};
C.prototype._attachDom=function(V){var J=(0,_.vv)(this);if(J.attachShadow)return V?(J.shadowRoot||(J.attachShadow({mode:"open",shadyUpgradeFragment:V}),J.shadowRoot.appendChild(V),this.constructor._styleSheet&&(J.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),CPm&&window.ShadyDOM&&window.ShadyDOM.flushInitial(J.shadowRoot),J.shadowRoot):null;throw Error("Id");};
C.prototype.updateStyles=function(V){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,V)};
C.prototype.resolveUrl=function(V,J){!J&&this.importPath&&(J=_.Hv(this.importPath));return _.Hv(V,J)};
C._parseTemplateContent=function(V,J,b){J.dynamicFns=J.dynamicFns||this._properties;return G._parseTemplateContent.call(this,V,J,b)};
C._addTemplatePropertyEffect=function(V,J,b){!FL||J in this._properties||b.info.part.signature&&b.info.part.signature.static||b.info.part.hostProp||V.nestedTemplate||console.warn("Property '"+J+"' used in template but not declared in 'properties'; attribute will not be observed.");return G._addTemplatePropertyEffect.call(this,V,J,b)};
_.I6.Object.defineProperties(C,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var V=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof V==="function"&&(V=V());if(V===void 0){if(V=this.hasOwnProperty("is")){V=this.is;var J=null;if(V&&(!GH||mz7)&&(J=eW.import(V,"template"),GH&&!J))throw Error("Hd`"+V);V=J}V=V||Object.getPrototypeOf(this.prototype).constructor.template}this._template=V}return this._template},
set:function(V){this._template=V}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var V=this.importMeta;V?this._importPath=IFB(V.url):this._importPath=(V=eW.import(this.is))&&V.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return C});var SAu=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(C){return C}}),$bo=function(C,F){Lmy(C,F);
this.value=F.reduce(function(G,V,J){return G+bVf(V)+C[J+1]},C[0]).toString()},Lmy;
$bo.prototype.toString=function(){return this.value};
_.Bkm=function(C){var F=_.Rn.apply(1,arguments);Lmy(C,F);var G=document.createElement("template");F=F.reduce(function(V,J,b){if(J instanceof HTMLTemplateElement)J=J.innerHTML;else if(J instanceof $bo)J=bVf(J);else throw Error("Kd`"+J);return V+J+C[b+1]},C[0]);
SAu&&(F=SAu.createHTML(F));G.innerHTML=F;return G};
Lmy=function(C,F){if(!Array.isArray(C)||!Array.isArray(C.raw)||F.length!==C.length-1)throw new TypeError("Ld");};var iN=Vq(HTMLElement);var vz8=j$(function(C){var F=Vq(C);C=function(){var G=F.call(this)||this;G.__lastItems=null;G.__lastMulti=null;G.__selectedMap=null;return G};
_.O(C,F);C.prototype.__updateSelection=function(G,V){var J=V.path;J=="items"?(V=V.base||[],J=this.__lastItems,G!==this.__lastMulti&&this.clearSelection(),J&&(J=J6I(V,J),this.__applySplices(J)),this.__lastItems=V,this.__lastMulti=G):V.path=="items.splices"?this.__applySplices(V.value.indexSplices):(G=J.slice(6),V=parseInt(G,10),G.indexOf(".")<0&&G==V&&this.__deselectChangedIdx(V))};
C.prototype.__applySplices=function(G){for(var V=this,J=this.__selectedMap,b={},z=0;z<G.length;b={s$jscomp$109:void 0},z++){b.s$jscomp$109=G[z];J.forEach(function(k){return function(U,H){U<k.s$jscomp$109.index||(U>=k.s$jscomp$109.index+k.s$jscomp$109.removed.length?J.set(H,U+k.s$jscomp$109.addedCount-k.s$jscomp$109.removed.length):J.set(H,-1))}}(b));
for(var Q=0;Q<b.s$jscomp$109.addedCount;Q++){var E=b.s$jscomp$109.index+Q;J.has(this.items[E])&&J.set(this.items[E],E)}}this.__updateLinks();var t=0;J.forEach(function(k,U){k<0?(V.multi?V.splice("selected",t,1):V.selected=V.selectedItem=null,J.delete(U)):t++})};
C.prototype.__updateLinks=function(){var G=this;this.__dataLinkedPaths={};if(this.multi){var V=0;this.__selectedMap.forEach(function(J){J>=0&&G.linkPaths("items."+J,"selected."+V++)})}else this.__selectedMap.forEach(function(J){G.linkPaths("selected","items."+J);
G.linkPaths("selectedItem","items."+J)})};
C.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
C.prototype.isSelected=function(G){return this.__selectedMap.has(G)};
C.prototype.isIndexSelected=function(G){return this.isSelected(this.items[G])};
C.prototype.__deselectChangedIdx=function(G){var V=this,J=this.__selectedIndexForItemIndex(G);if(J>=0){var b=0;this.__selectedMap.forEach(function(z,Q){J==b++&&V.deselect(Q)})}};
C.prototype.__selectedIndexForItemIndex=function(G){if(G=this.__dataLinkedPaths["items."+G])return parseInt(G.slice(9),10)};
C.prototype.deselect=function(G){var V=this.__selectedMap.get(G);if(V>=0){this.__selectedMap.delete(G);var J;this.multi&&(J=this.__selectedIndexForItemIndex(V));this.__updateLinks();this.multi?this.splice("selected",J,1):this.selected=this.selectedItem=null}};
C.prototype.deselectIndex=function(G){this.deselect(this.items[G])};
C.prototype.select=function(G){this.selectIndex(this.items.indexOf(G))};
C.prototype.selectIndex=function(G){var V=this.items[G];this.isSelected(V)?this.toggle&&this.deselectIndex(G):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(V,G),this.__updateLinks(),this.multi?this.push("selected",V):this.selected=this.selectedItem=V)};
_.I6.Object.defineProperties(C,{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 C}),f58=vz8(iN),JL=function(){return f58.apply(this,arguments)||this};
_.O(JL,f58);_.I6.Object.defineProperties(JL,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(JL.is,JL);var hGm=window.Polymer;window.Polymer=function(C){return window.Polymer._polymerFn(C)};
hGm&&Object.assign(Polymer,hGm);Polymer._polymerFn=function(){throw Error("Md");};/*

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:Qvs,resolveUrl:_.Hv,pathFromUrl:IFB};Polymer.DomModule=eW;Polymer.Async={timeOut:_.Ca,animationFrame:_.E9,idlePeriod:b5P,microTask:ox};Polymer.dedupingMixin=j$;Polymer.wrap=_.vv;Polymer.PropertiesChanged=uUo;Polymer.telemetry={instanceCount:zGu,incrementInstanceCount:function(){zGu++},
registrations:aFE,register:kZT,dumpRegistrations:function(){aFE.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=QNl;Polymer.CaseMap={dashToCamelCase:y3,camelToDashCase:Ze};Polymer.PropertyAccessors=kpo;Polymer.TemplateStamp=Z5l;Polymer.Path={isPath:Nw,root:O8,isAncestor:NJs,isDescendant:XV,translate:wR,matches:O35,normalize:Mw,split:Xx9,get:SW,set:wxo,isDeep:Nw};Polymer.Settings={useShadow:mO,useNativeCSSProperties:Y6S,useNativeCustomElements:T77,get rootPath(){return prG},setRootPath:function(C){prG=C},
get sanitizeDOMValue(){return fc},setSanitizeDOMValue:function(C){fc=C},
get passiveTouchGestures(){return loT},setPassiveTouchGestures:function(C){loT=C},
get strictTemplatePolicy(){return GH},setStrictTemplatePolicy:function(C){GH=C},
get allowTemplateFromDomModule(){return mz7},setAllowTemplateFromDomModule:function(C){mz7=C},
get legacyOptimizations(){return pc},setLegacyOptimizations:function(C){pc=C},
get syncInitialRender(){return CPm},setSyncInitialRender:function(C){CPm=C},
get legacyUndefined(){return cv},setLegacyUndefined:function(C){cv=C},
get legacyWarnings(){return FL},setLegacyWarnings:function(C){FL=C},
get orderedComputed(){return jNr},setOrderedComputed:function(C){jNr=C},
get fastDomIf(){return Dh},setFastDomIf:function(C){Dh=C},
get removeNestedTemplates(){return Kx},setRemoveNestedTemplates:function(C){Kx=C},
get suppressTemplateNotifications(){return px},setSuppressTemplateNotifications:px};Polymer.rootPath!==void 0&&(prG=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(fc=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(loT=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(GH=Polymer.strictTemplatePolicy);mz7=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(pc=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(CPm=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(cv=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(FL=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(jNr=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(Dh=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(Kx=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(px=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return fc},
set:function(C){fc=C}});Polymer.PropertyEffects=GT;Polymer.StyleGather={stylesFromModules:pxf,stylesFromModule:DxW,stylesFromTemplate:mxT,stylesFromModuleImports:CVo,cssFromModules:F4E,cssFromModule:jE9,cssFromTemplate:GCi,cssFromModuleImports:function(C){return(C=eW.import(C))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(C):""}};Polymer.ElementMixin=Vq;Polymer.updateStyles=function(C){window.ShadyCSS&&window.ShadyCSS.styleDocument(C)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:J6I};Polymer.html=_.Bkm;Polymer.htmlLiteral=function(C){return new $bo(C,_.Rn.apply(1,arguments))};Polymer.Element=iN;Polymer.ArraySelectorMixin=vz8;Polymer.ArraySelector=JL;var cvE=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Avr=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,qjS=/@media\s(.*)/;var QEB=null,zTT=window.HTMLImports&&window.HTMLImports.whenReady||null,IoE;var eG8=null,$r=null,bN=function(){this.customStyles=[];this.enqueued=!1;ECZ(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},dry=function(C){!C.enqueued&&$r&&(C.enqueued=!0,ECZ($r))};
bN.prototype.addCustomStyle=function(C){C.__seenByShadyCSS||(C.__seenByShadyCSS=!0,this.customStyles.push(C),dry(this))};
bN.prototype.getStyleForCustomStyle=function(C){if(C.__shadyCSSCachedStyle)return C.__shadyCSSCachedStyle;var F;C.getStyle?F=C.getStyle():F=C;return F};
bN.prototype.processStyles=function(){for(var C=this.customStyles,F=0;F<C.length;F++){var G=C[F];if(!G.__shadyCSSCachedStyle){var V=this.getStyleForCustomStyle(G);V&&(V=V.__appliedElement||V,eG8&&eG8(V),G.__shadyCSSCachedStyle=V)}}return C};
bN.prototype.addCustomStyle=bN.prototype.addCustomStyle;bN.prototype.getStyleForCustomStyle=bN.prototype.getStyleForCustomStyle;bN.prototype.processStyles=bN.prototype.processStyles;Object.defineProperties(bN.prototype,{transformCallback:{get:function(){return eG8},
set:function(C){eG8=C}},
validateCallback:{get:function(){return $r},
set:function(C){var F=!1;$r||(F=!0);$r=C;F&&dry(this)}}});var tuA=!(window.ShadyDOM&&window.ShadyDOM.inUse),W4q,Q9;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(Q9=window.ShadyCSS.cssBuild);var xrP=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?W4q=window.ShadyCSS.nativeCss:window.ShadyCSS?(aoq(window.ShadyCSS),window.ShadyCSS=void 0):aoq(window.WebComponents&&window.WebComponents.flags);var d5B=W4q;var sNu=new bN;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(C,F){sNu.processStyles();nCB(C,F)},
styleElement:function(){sNu.processStyles()},
styleDocument:function(C){sNu.processStyles();nCB(document.body,C)},
getComputedStyleValue:function(C,F){return uDZ(C,F)},
flushCustomStyles:function(){},
nativeCss:d5B,nativeShadow:tuA,cssBuild:Q9,disableRuntime:xrP});window.ShadyCSS.CustomStyleInterface=sNu;var qAP=window.ShadyCSS.CustomStyleInterface,na=function(){var C=HTMLElement.call(this)||this;C._style=null;qAP.addCustomStyle(C);return C};
_.O(na,HTMLElement);na.prototype.getStyle=function(){if(this._style)return this._style;var C=this.querySelector("style");if(!C)return null;this._style=C;var F=C.getAttribute("include");F&&(C.removeAttribute("include"),C.textContent=F4E(F)+C.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
na.prototype.getStyle=na.prototype.getStyle;window.customElements.define("custom-style",na);Polymer.CustomStyle=na;var uN=function(){this._timer=this._callback=this._asyncModule=null},zT,gzy;
uN.prototype.setConfig=function(C,F){var G=this;this._asyncModule=C;this._callback=F;this._timer=this._asyncModule.run(function(){G._timer=null;zT.delete(G);G._callback()})};
uN.prototype.cancel=function(){this.isActive()&&(PPu(this),zT.delete(this))};
var PPu=function(C){C.isActive()&&(C._asyncModule.cancel(C._timer),C._timer=null)};
uN.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
uN.prototype.isActive=function(){return this._timer!=null};
_.Qq=function(C,F,G){C instanceof uN?PPu(C):C=new uN;C.setConfig(F,G);return C};
zT=new Set;_.I4=function(C){zT.add(C)};
gzy=function(){var C=!!zT.size;zT.forEach(function(F){try{F.flush()}catch(G){setTimeout(function(){throw G;})}});
return C};var UbW=typeof document.head.style.touchAction==="string",kCZ=["mousedown","mousemove","mouseup","click"],Muw=[0,1,4,2],RGG;try{RGG=(new MouseEvent("test",{buttons:1})).buttons===1}catch(C){RGG=!1}var wss=RGG,HVZ=!1;(function(){try{var C=Object.defineProperty({},"passive",{get:function(){HVZ=!0}});
window.addEventListener("test",null,C);window.removeEventListener("test",null,C)}catch(F){}})();
var ZVs=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),NpT=[],YAu={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},sEo={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},OVZ=function(C){var F=C.sourceCapabilities;if(!F||F.firesTouchEvents)if(C.__polymerGesturesHandled={skip:!0},C.type==="click"){F=!1;for(var G=vCW(C),V=0;V<G.length;V++){if(G[V].nodeType===Node.ELEMENT_NODE)if(G[V].localName==="label")NpT.push(G[V]);
else if(YAu[G[V].localName]){var J=G[V];var b=Array.prototype.slice.call(J.labels||[]);if(!b.length){b=[];try{var z=J.getRootNode();if(J.id){var Q=z.querySelectorAll("label[for = '"+J.id+"']");for(J=0;J<Q.length;J++)b.push(Q[J])}}catch(E){}}for(J=0;J<b.length;J++)F=F||NpT.indexOf(b[J])>-1}if(G[V]===Tkm)return}F||(C.preventDefault(),C.stopPropagation())}},Tkm=null,Ez=null,hTW=0,c6o=0,fos=-1,A6T=!1;
document.addEventListener("touchend",function(C){Ez||Xsf(!0);Tkm=vCW(C)[0];Ez=_.Qq(Ez,_.Ca.after(2500),function(){Xsf();Ez=Tkm=null})},HVZ?{passive:!0}:!1);
var vCW=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(C){return C.composedPath&&C.composedPath()||[]},gR={},qw=[];
eTS({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){s8(this.info)},
mousedown:function(C){if(xy(C)){var F=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(C),G=this;L4o(this.info,function(V){xy(V)||(De("up",F,V),s8(G.info))},function(V){xy(V)&&De("up",F,V);
s8(G.info)});
De("down",F,C)}},
touchstart:function(C){De("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(C),C.changedTouches[0],C)},
touchend:function(C){De("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(C),C.changedTouches[0],C)}});
eTS({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(C){this.moves.length>2&&this.moves.shift();this.moves.push(C)},
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;s8(this.info)},
mousedown:function(C){if(xy(C)){var F=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(C),G=this,V=function(J){var b=J.clientX,z=J.clientY;dbW(G.info,b,z)&&(G.info.state=G.info.started?J.type==="mouseup"?"end":"track":"start",G.info.state==="start"&&Pv("tap"),G.info.addMove({x:b,y:z}),xy(J)||(G.info.state="end",s8(G.info)),F&&xbT(G.info,F,J),G.info.started=!0)};
L4o(this.info,V,function(J){G.info.started&&V(J);s8(G.info)});
this.info.x=C.clientX;this.info.y=C.clientY}},
touchstart:function(C){C=C.changedTouches[0];this.info.x=C.clientX;this.info.y=C.clientY},
touchmove:function(C){var F=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(C);C=C.changedTouches[0];var G=C.clientX,V=C.clientY;dbW(this.info,G,V)&&(this.info.state==="start"&&Pv("tap"),this.info.addMove({x:G,y:V}),xbT(this.info,F,C),this.info.state="track",this.info.started=!0)},
touchend:function(C){var F=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(C);C=C.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:C.clientX,y:C.clientY}),xbT(this.info,F,C))}});
eTS({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(C){xy(C)&&(this.info.x=C.clientX,this.info.y=C.clientY)},
click:function(C){xy(C)&&qdw(this.info,C)},
touchstart:function(C){C=C.changedTouches[0];this.info.x=C.clientX;this.info.y=C.clientY},
touchend:function(C){qdw(this.info,C.changedTouches[0],C)}});var ozy=j$(function(C){var F=function(){return C.apply(this,arguments)||this};
_.O(F,C);F.prototype._addEventListenerToNode=function(G,V,J){Rx(G,V,J)||C.prototype._addEventListenerToNode.call(this,G,V,J)};
F.prototype._removeEventListenerFromNode=function(G,V,J){Yy(G,V,J)||C.prototype._removeEventListenerFromNode.call(this,G,V,J)};
return F});var W3=j$(function(C){var F=function(){return C.apply(this,arguments)||this};
_.O(F,C);F.prototype._shouldPropertyChange=function(G,V,J){return PVB(this,G,V,J,!0)};
return F}),rvE=j$(function(C){var F=function(){return C.apply(this,arguments)||this};
_.O(F,C);F.prototype._shouldPropertyChange=function(G,V,J){return PVB(this,G,V,J,this.mutableData)};
_.I6.Object.defineProperties(F,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return F});
W3._mutablePropertyChange=PVB;var gCs=!1;var Kmu=ozy(rvE(GT(HTMLElement))),tL=function(){var C=Kmu.call(this)||this;if(GH)throw Error("Nd");C.root=null;C.$=null;C.__children=null;return C};
_.O(tL,Kmu);_.n=tL.prototype;_.n.attributeChangedCallback=function(){this.mutableData=!0};
_.n.connectedCallback=function(){RTS()||(this.style.display="none");this.render()};
_.n.disconnectedCallback=function(){this.__removeChildren()};
_.n.__insertChildren=function(){(0,_.vv)((0,_.vv)(this).parentNode).insertBefore(this.root,this)};
_.n.__removeChildren=function(){if(this.__children)for(var C=0;C<this.__children.length;C++)this.root.appendChild(this.__children[C])};
_.n.render=function(){var C=this;if(!this.__children){var F=F||this.querySelector("template");if(!F){var G=new MutationObserver(function(){if(F=C.querySelector("template"))G.disconnect(),C.render();else throw Error("Od");});
G.observe(this,{childList:!0});return}this.root=this._stampTemplate(F);this.$=this.root.$;this.__children=[];for(var V=this.root.firstChild;V;V=V.nextSibling)this.__children[this.__children.length]=V;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.I6.Object.defineProperties(tL,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",tL);Polymer.Debouncer=uN;Polymer.Gestures={gestures:gR,recognizers:qw,deepTargetFind:Bp9,addListener:Rx,removeListener:Yy,register:eTS,setTouchAction:_.TA,prevent:Pv,resetMouseCanceller:function(){Ez&&Ez.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:Rx,remove:Yy};Polymer.GestureEventListeners=ozy;Polymer.MutableData=W3;Polymer.OptionalMutableData=rvE;Polymer.DomBind=tL;_.a4=function(){do{var C=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var F=gzy()}while(C||F)};var YdB=null;TpE.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:TpE,writable:!0}});var j3I=GT(TpE),Cg9=W3(j3I),Dru=GT(function(){}),C_=function(C){var F=Dru.call(this)||this;
F._configureProperties(C);F.root=F._stampTemplate(F.__dataHost);var G=[];F.children=G;for(var V=F.root.firstChild;V;V=V.nextSibling)G.push(V),V.__templatizeInstance=F;F.__templatizeOwner&&F.__templatizeOwner.__hideTemplateChildren__&&F._showHideChildren(!0);G=F.__templatizeOptions;(C&&G.instanceProps||!G.instanceProps)&&F._enableProperties();return F};
_.O(C_,Dru);_.n=C_.prototype;_.n._configureProperties=function(C){if(this.__templatizeOptions.forwardHostProp)for(var F in this.__hostProps)this._setPendingProperty(F,this.__dataHost["_host_"+F]);for(var G in C)this._setPendingProperty(G,C[G])};
_.n.forwardHostProp=function(C,F){this._setPendingPropertyOrPath(C,F,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.n._addEventListenerToNode=function(C,F,G){var V=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(C,F,function(b){b.model=V;G(b)});
else{var J=this.__dataHost.__dataHost;J&&J._addEventListenerToNode(C,F,G)}};
_.n._showHideChildren=function(C){r6B(C,this.children)};
_.n._setUnmanagedPropertyToNode=function(C,F,G){C.__hideTemplateChildren__&&C.nodeType==Node.TEXT_NODE&&F=="textContent"?C.__polymerTextContent__=G:Dru.prototype._setUnmanagedPropertyToNode.call(this,C,F,G)};
_.n.dispatchEvent=function(){return!0};
_.I6.Object.defineProperties(C_.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var C=this.__parentModel;if(!C){var F;C=this;do C=C.__dataHost.__dataHost;while((F=C.__templatizeOptions)&&!F.parentModel);this.__parentModel=C}return C}}});
var DbT=W3(C_);var kr=function(){var C=iN.call(this)||this;C.__renderDebouncer=null;C._lastIf=!1;C.__hideTemplateChildren__=!1;return C};
_.O(kr,iN);_.n=kr.prototype;_.n.__debounceRender=function(){var C=this;this.__renderDebouncer=_.Qq(this.__renderDebouncer,ox,function(){return C.__render()});
_.I4(this.__renderDebouncer)};
_.n.disconnectedCallback=function(){iN.prototype.disconnectedCallback.call(this);var C=(0,_.vv)(this).parentNode;C&&(C.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.vv)(C).host)||this.__teardownInstance()};
_.n.connectedCallback=function(){iN.prototype.connectedCallback.call(this);RTS()||(this.style.display="none");this.if&&this.__debounceRender()};
_.n.__ensureTemplate=function(){var C=this;if(!this.__template){var F=this._templateInfo?this:(0,_.vv)(this).querySelector("template");if(!F){var G=new MutationObserver(function(){if((0,_.vv)(C).querySelector("template"))G.disconnect(),C.__render();else throw Error("Rd");});
G.observe(this,{childList:!0});return!1}this.__template=F}return!0};
_.n.__ensureInstance=function(){var C=(0,_.vv)(this).parentNode;if(this.__hasInstance()){var F=this.__getInstanceNodes();if(F&&F.length&&(0,_.vv)(this).previousSibling!==F[F.length-1])for(var G=0,V=void 0;G<F.length&&(V=F[G]);G++)(0,_.vv)(C).insertBefore(V,this)}else{if(!C||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(C)}return!0};
_.n.render=function(){_.a4()};
_.n.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();px&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.n.__hasInstance=function(){};
_.n.__getInstanceNodes=function(){};
_.n.__createAndInsertInstance=function(){};
_.n.__teardownInstance=function(){};
_.n._showHideChildren=function(){};
_.I6.Object.defineProperties(kr,{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:kr.prototype.__debounceRender},restamp:{type:Boolean,observer:kr.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var pby=function(){var C=kr.call(this)||this;C.__instance=null;C.__syncInfo=null;return C};
_.O(pby,kr);_.n=pby.prototype;_.n.__hasInstance=function(){return!!this.__instance};
_.n.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.n.__createAndInsertInstance=function(C){var F=this,G=this.__dataHost||this;if(GH&&!this.__dataHost)throw Error("Pd");var V=G._bindTemplate(this.__template,!0);V.runEffects=function(J,b,z){var Q=F.__syncInfo;if(F.if)Q&&(F.__syncInfo=null,F._showHideChildren(),b=Object.assign(Q.changedProps,b)),J(b,z);else if(F.__instance)if(Q||(Q=F.__syncInfo={runEffects:J,changedProps:{}}),z)for(var E in b)J=O8(E),Q.changedProps[J]=F.__dataHost[J];else Object.assign(Q.changedProps,b)};
this.__instance=G._stampTemplate(this.__template,V);(0,_.vv)(C).insertBefore(this.__instance,this)};
_.n.__syncHostProperties=function(){var C=this.__syncInfo;C&&(this.__syncInfo=null,C.runEffects(C.changedProps,!1))};
_.n.__teardownInstance=function(){var C=this.__dataHost||this;this.__instance&&(C._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.n._showHideChildren=function(){var C=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==C&&(this.__instance.__hidden=C,r6B(C,this.__instance.templateInfo.childNodes));C||this.__syncHostProperties()};
var mrr=function(){var C=kr.call(this)||this;C.__ctor=null;C.__instance=null;C.__invalidProps=null;return C};
_.O(mrr,kr);_.n=mrr.prototype;_.n.__hasInstance=function(){return!!this.__instance};
_.n.__getInstanceNodes=function(){return this.__instance.children};
_.n.__createAndInsertInstance=function(C){this.__ctor||(this.__ctor=j3(this.__template,this,{mutableData:!0,forwardHostProp:function(F,G){this.__instance&&(this.if?this.__instance.forwardHostProp(F,G):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[O8(F)]=!0))}}));
this.__instance=new this.__ctor;(0,_.vv)(C).insertBefore(this.__instance.root,this)};
_.n.__teardownInstance=function(){if(this.__instance){var C=this.__instance.children;if(C&&C.length){var F=(0,_.vv)(C[0]).parentNode;if(F){F=(0,_.vv)(F);for(var G=0,V=void 0;G<C.length&&(V=C[G]);G++)F.removeChild(V)}}this.__instance=this.__invalidProps=null}};
_.n.__syncHostProperties=function(){var C=this.__invalidProps;if(C){this.__invalidProps=null;for(var F in C)this.__instance._setPendingProperty(F,this.__dataHost[F]);this.__instance._flushProperties()}};
_.n._showHideChildren=function(){var C=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==C&&(this.__instance.__hidden=C,this.__instance._showHideChildren(C));C||this.__syncHostProperties()};
_.Hb=Dh?pby:mrr;customElements.define(_.Hb.is,_.Hb);Polymer.enqueueDebouncer=_.I4;Polymer.flush=_.a4;Polymer.Templatize={templatize:j3,modelForElement:$5I};Polymer.TemplateInstanceBase=C_;Polymer.DomIf=_.Hb;var CaG=rvE(iN),UA=function(){var C=CaG.call(this)||this;C.__instances=[];C.__renderDebouncer=null;C.__itemsIdxToInstIdx={};C.__chunkCount=null;C.__renderStartTime=null;C.__itemsArrayChanged=!1;C.__shouldMeasureChunk=!1;C.__shouldContinueChunking=!1;C.__chunkingId=0;C.__sortFn=null;C.__filterFn=null;C.__observePaths=null;C.__ctor=null;C.__isDetached=!0;C.template=null;return C};
_.O(UA,CaG);_.n=UA.prototype;_.n.disconnectedCallback=function(){CaG.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var C=0;C<this.__instances.length;C++)this.__detachInstance(C);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.n.connectedCallback=function(){CaG.prototype.connectedCallback.call(this);RTS()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var C=(0,_.vv)((0,_.vv)(this).parentNode),F=0;F<this.__instances.length;F++)this.__attachInstance(F,C);this.__chunkingId&&this.__render()}};
_.n.__ensureTemplatized=function(){var C=this;if(!this.__ctor){var F=this.template=this._templateInfo?this:this.querySelector("template");if(!F){var G=new MutationObserver(function(){if(C.querySelector("template"))G.disconnect(),C.__render();else throw Error("Sd");});
G.observe(this,{childList:!0});return!1}var V={};V[this.as]=!0;V[this.indexAs]=!0;V[this.itemsIndexAs]=!0;this.__ctor=j3(F,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:V,forwardHostProp:function(J,b){for(var z=this.__instances,Q=0,E=void 0;Q<z.length&&(E=z[Q]);Q++)E.forwardHostProp(J,b)},
notifyInstanceProp:function(J,b,z){O35(this.as,b)&&(J=J[this.itemsIndexAs],b==this.as&&(this.items[J]=z),b=wR(this.as,"items."+J,b),this.notifyPath(b,z))}})}return!0};
_.n.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.n.__functionFromPropertyValue=function(C){if(typeof C==="string"){var F=this.__getMethodHost();return function(){return F[C].apply(F,arguments)}}return C};
_.n.__sortChanged=function(C){this.__sortFn=this.__functionFromPropertyValue(C);this.items&&this.__debounceRender(this.__render)};
_.n.__filterChanged=function(C){this.__filterFn=this.__functionFromPropertyValue(C);this.items&&this.__debounceRender(this.__render)};
_.n.__computeFrameTime=function(C){return Math.ceil(1E3/C)};
_.n.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.n.__handleObservedPaths=function(C){if(this.__sortFn||this.__filterFn)if(!C)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var F=this.__observePaths,G=0;G<F.length;G++)C.indexOf(F[G])===0&&this.__debounceRender(this.__render,this.delay)};
_.n.__itemsChanged=function(C){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(C.path,C.value)||(C.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.n.__debounceRender=function(C,F){F=F===void 0?0:F;this.__renderDebouncer=_.Qq(this.__renderDebouncer,F>0?_.Ca.after(F):ox,C.bind(this));_.I4(this.__renderDebouncer)};
_.n.render=function(){this.__debounceRender(this.__render);_.a4()};
_.n.__render=function(){var C=this;if(this.__ensureTemplatized()){var F=this.items||[],G=this.__sortAndFilterItems(F),V=this.__calculateLimit(G.length);this.__updateInstances(F,V,G);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){C.__chunkingId=null;C.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);px&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.n.__sortAndFilterItems=function(C){for(var F=this,G=Array(C.length),V=0;V<C.length;V++)G[V]=V;this.__filterFn&&(G=G.filter(function(J,b,z){return F.__filterFn(C[J],b,z)}));
this.__sortFn&&G.sort(function(J,b){return F.__sortFn(C[J],C[b])});
return G};
_.n.__calculateLimit=function(C){var F=C,G=this.__instances.length;if(this.initialCount){var V;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(F=Math.min(C,this.initialCount),this.__chunkCount=(V=Math.max(F-G,0))||1):(V=Math.min(Math.max(C-G,0),this.__chunkCount),F=Math.min(G+V,C));this.__shouldMeasureChunk=V===this.__chunkCount;this.__shouldContinueChunking=F<C;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return F};
_.n.__continueChunking=function(){if(this.__shouldMeasureChunk){var C=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/C*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.n.__updateInstances=function(C,F,G){var V=this.__itemsIdxToInstIdx={},J;for(J=0;J<F;J++){var b=this.__instances[J],z=G[J],Q=C[z];V[z]=J;b?(b._setPendingProperty(this.as,Q),b._setPendingProperty(this.indexAs,J),b._setPendingProperty(this.itemsIndexAs,z),b._flushProperties()):this.__insertInstance(Q,J,z)}for(C=this.__instances.length-1;C>=J;C--)this.__detachAndRemoveInstance(C)};
_.n.__detachInstance=function(C){C=this.__instances[C];for(var F=(0,_.vv)(C.root),G=0;G<C.children.length;G++)F.appendChild(C.children[G]);return C};
_.n.__attachInstance=function(C,F){F.insertBefore(this.__instances[C].root,this)};
_.n.__detachAndRemoveInstance=function(C){this.__detachInstance(C);this.__instances.splice(C,1)};
_.n.__stampInstance=function(C,F,G){var V={};V[this.as]=C;V[this.indexAs]=F;V[this.itemsIndexAs]=G;return new this.__ctor(V)};
_.n.__insertInstance=function(C,F,G){C=this.__stampInstance(C,F,G);G=(G=this.__instances[F+1])?G.children[0]:this;(0,_.vv)((0,_.vv)(this).parentNode).insertBefore(C.root,G);return this.__instances[F]=C};
_.n._showHideChildren=function(C){for(var F=0;F<this.__instances.length;F++)this.__instances[F]._showHideChildren(C)};
_.n.__handleItemPath=function(C,F){var G=C.slice(6),V=G.indexOf(".");C=V<0?G:G.substring(0,V);if(C==parseInt(C,10)){G=V<0?"":G.substring(V+1);this.__handleObservedPaths(G);if(C=this.__instances[this.__itemsIdxToInstIdx[C]])C._setPendingPropertyOrPath(this.as+(G?"."+G:""),F,!1,!0),C._flushProperties();return!0}};
_.n.itemForElement=function(C){return(C=this.modelForElement(C))&&C[this.as]};
_.n.indexForElement=function(C){return(C=this.modelForElement(C))&&C[this.indexAs]};
_.n.modelForElement=function(C){return $5I(this.template,C)};
_.I6.Object.defineProperties(UA,{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:UA.prototype.__sortChanged},filter:{type:Function,observer:UA.prototype.__filterChanged},observe:{type:String,observer:UA.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!px,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.*)"]}}});
UA.prototype._setRenderedItemCount=function(){};
customElements.define(UA.is,UA);Polymer.DomRepeat=UA;var jPl=function(C,F){var G=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=C;this.callback=F;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){G._schedule()};
this.connect();this._schedule()},Fry=function(C){var F=(0,_.vv)(C);
if(V9(C))return F.assignedNodes({flatten:!0});C=[];for(var G=0;G<F.childNodes.length;G++){var V=F.childNodes[G];V9(V)?C.push.apply(C,_.da((0,_.vv)(V).assignedNodes({flatten:!0}))):C.push(V)}return C};
_.n=jPl.prototype;_.n.connect=function(){var C=this;V9(this._target)?this._listenSlots([this._target]):(0,_.vv)(this._target).children&&(this._listenSlots((0,_.vv)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(F){C._processMutations(F)}):(this._nativeChildrenObserver=new MutationObserver(function(F){C._processMutations(F)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.n.disconnect=function(){V9(this._target)?this._unlistenSlots([this._target]):(0,_.vv)(this._target).children&&(this._unlistenSlots((0,_.vv)(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};
_.n._schedule=function(){var C=this;this._scheduled||(this._scheduled=!0,ox.run(function(){return C.flush()}))};
_.n._processMutations=function(C){this._processSlotMutations(C);this.flush()};
_.n._processSlotMutations=function(C){if(C)for(var F=0;F<C.length;F++){var G=C[F];G.addedNodes&&this._listenSlots(G.addedNodes);G.removedNodes&&this._unlistenSlots(G.removedNodes)}};
_.n.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 C={target:this._target,addedNodes:[],removedNodes:[]},F=Fry(this._target),G=J6I(F,this._effectiveNodes),V=0,J=void 0;V<G.length&&(J=G[V]);V++)for(var b=0,z=void 0;b<J.removed.length&&(z=J.removed[b]);b++)C.removedNodes.push(z);
V=0;for(J=void 0;V<G.length&&(J=G[V]);V++)for(b=J.index;b<J.index+J.addedCount;b++)C.addedNodes.push(F[b]);this._effectiveNodes=F;F=!1;if(C.addedNodes.length||C.removedNodes.length)F=!0,this.callback.call(this._target,C);return F};
_.n._listenSlots=function(C){for(var F=0;F<C.length;F++){var G=C[F];V9(G)&&G.addEventListener("slotchange",this._boundSchedule)}};
_.n._unlistenSlots=function(C){for(var F=0;F<C.length;F++){var G=C[F];V9(G)&&G.removeEventListener("slotchange",this._boundSchedule)}};var Uz=Element.prototype,GSm=Uz.matches||Uz.matchesSelector||Uz.mozMatchesSelector||Uz.msMatchesSelector||Uz.oMatchesSelector||Uz.webkitMatchesSelector,VRr=function(C,F){return GSm.call(C,F)},Ju=function(C){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(C);
this.node=C},byu;
_.n=Ju.prototype;_.n.observeNodes=function(C){return new jPl(this.node,C)};
_.n.unobserveNodes=function(C){C.disconnect()};
_.n.notifyObserver=function(){};
_.n.deepContains=function(C){if((0,_.vv)(this.node).contains(C))return!0;var F=C;for(C=C.ownerDocument;F&&F!==C&&F!==this.node;)F=(0,_.vv)(F).parentNode||(0,_.vv)(F).host;return F===this.node};
_.n.getOwnerRoot=function(){return(0,_.vv)(this.node).getRootNode()};
_.n.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.vv)(this.node).assignedNodes({flatten:!0}):[]};
_.n.getDestinationInsertionPoints=function(){for(var C=[],F=(0,_.vv)(this.node).assignedSlot;F;)C.push(F),F=(0,_.vv)(F).assignedSlot;return C};
_.n.importNode=function(C,F){return(0,_.vv)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(C,F)};
_.n.getEffectiveChildNodes=function(){return Fry(this.node)};
_.n.queryDistributedElements=function(C){for(var F=this.getEffectiveChildNodes(),G=[],V=0,J=F.length,b=void 0;V<J&&(b=F[V]);V++)b.nodeType===Node.ELEMENT_NODE&&VRr(b,C)&&G.push(b);return G};
_.I6.Object.defineProperties(Ju.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var C=this.node;return C._activeElement!==void 0?C._activeElement:C.activeElement}}});
var H3=function(C){this.event=C};
_.I6.Object.defineProperties(H3.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 iyo=Ju;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var JCE=window.ShadyDOM.Wrapper,$Du=function(){return JCE.apply(this,arguments)||this};
_.O($Du,JCE);Object.getOwnPropertyNames(Ju.prototype).forEach(function(C){C!="activeElement"&&C!="constructor"&&($Du.prototype[C]=Ju.prototype[C])});
nLs($Du.prototype,["classList"]);iyo=$Du;Object.defineProperties(H3.prototype,{localTarget:{get:function(){var C=this.event.currentTarget;C=C&&_.E5(C).getOwnerRoot();for(var F=this.path,G=0;G<F.length;G++){var V=F[G];if(_.E5(V).getOwnerRoot()===C)return V}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else b2s(),nLs(Ju.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),uhS();byu=iyo;_.E5=function(C){C=C||document;if(C instanceof iyo)return C;if(C instanceof H3)return C;var F=C.__domApi;F||(C instanceof Event?F=new H3(C):F=new iyo(C),C.__domApi=F);return F};var ne$=/:host\(:dir\((ltr|rtl)\)\)/g,u12=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,zt8=/:dir\((?:ltr|rtl)\)/,QP$=!(!window.ShadyDOM||!window.ShadyDOM.inUse),bn=[],lN=null,$v="",IDE=j$(function(C){QP$||lN||($v=document.documentElement.getAttribute("dir"),lN=new MutationObserver(zqB),lN.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var F=kpo(C);C=function(){var G=F.call(this)||this;G.__autoDirOptOut=!1;return G};
_.O(C,F);C._processStyleText=function(G,V){G=F._processStyleText.call(this,G,V);!QP$&&zt8.test(G)&&(G=this._replaceDirInCssText(G),this.__activateDir=!0);return G};
C._replaceDirInCssText=function(G){G=G.replace(ne$,':host([dir="$1"])');return G=G.replace(u12,':host([dir="$2"]) $1')};
C.prototype.ready=function(){F.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
C.prototype.connectedCallback=function(){F.prototype.connectedCallback&&F.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(lN&&lN.takeRecords().length&&zqB(),bn.push(this),this.__autoDirOptOut||this.setAttribute("dir",$v))};
C.prototype.disconnectedCallback=function(){F.prototype.disconnectedCallback&&F.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var G=bn.indexOf(this);G>-1&&bn.splice(G,1)}};
C.__activateDir=!1;return C});var EeO=function(C){for(;C;){var F=Object.getOwnPropertyDescriptor(C,"observedAttributes");if(F)return F.get;C=Object.getPrototypeOf(C.prototype).constructor}return function(){return[]}};
j$(function(C){var F=Vq(C),G=EeO(F);C=function(){return F.call(this)||this};
_.O(C,F);C.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:F.prototype._initializeProperties.call(this)};
C.prototype._enableProperties=function(){this.__isUpgradeDisabled||F.prototype._enableProperties.call(this)};
C.prototype._canApplyPropertyDefault=function(V){return F.prototype._canApplyPropertyDefault.call(this,V)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(V))};
C.prototype.attributeChangedCallback=function(V,J,b,z){V=="disable-upgrade"?this.__isUpgradeDisabled&&b==null&&(F.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.vv)(this).isConnected&&F.prototype.connectedCallback.call(this)):F.prototype.attributeChangedCallback.call(this,V,J,b,z)};
C.prototype.connectedCallback=function(){this.__isUpgradeDisabled||F.prototype.connectedCallback.call(this)};
C.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||F.prototype.disconnectedCallback.call(this)};
_.I6.Object.defineProperties(C,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return G.call(this).concat("disable-upgrade")}}});
return C});var n_=!1,IWA=[],un=[];var aWI=window.ShadyDOM,kGS=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",H2I):document.readyState==="interactive"||document.readyState==="complete"?H2I():window.addEventListener("DOMContentLoaded",H2I);var Z2B=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=""},lW9=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,yi9=/@import[^;]*;/gim,Sjq=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,L7s=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,Bni=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,vLW=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,wcw=/^@[^\s]*keyframes/,
Xc5=/\s+/g;var fW5={};var AiI=Promise.resolve();var WrE=new Set;var tR7=/;\s*/m,aDG=/^\s*(initial)|(inherit)\s*$/,kSr=/\s*!important/,UDS=function(){this._map={}};
UDS.prototype.set=function(C,F){C=C.trim();this._map[C]={properties:F,dependants:{}}};
UDS.prototype.get=function(C){C=C.trim();return this._map[C]||null};
var HyG=null,yq=function(){this._measureElement=this._currentElement=null;this._map=new UDS};
_.n=yq.prototype;_.n.detectMixin=function(C){C=Avr.test(C)||cvE.test(C);Avr.lastIndex=0;cvE.lastIndex=0;return C};
_.n.transformTemplate=function(C,F){if(C._gatheredStyle===void 0){var G=[];for(var V=C.content.querySelectorAll("style"),J=0;J<V.length;J++){var b=V[J];if(b.hasAttribute("shady-unscoped")){if(!tuA){var z=b.textContent;if(!WrE.has(z)){WrE.add(z);var Q=document.createElement("style");Q.setAttribute("shady-unscoped","");Q.textContent=z;document.head.appendChild(Q)}b.parentNode.removeChild(b)}}else G.push(b.textContent),b.parentNode.removeChild(b)}(G=G.join("").trim())?(V=document.createElement("style"),
V.textContent=G,C.content.insertBefore(V,C.content.firstChild),G=V):G=null;C._gatheredStyle=G}return(C=C._gatheredStyle)?this.JSC$11274_transformStyle(C,F):null};
_.n.JSC$11274_transformStyle=function(C,F){F=F===void 0?"":F;var G=s39(C);this.transformRules(G,F);C.textContent=x5I(G);return G};
_.n.transformCustomStyle=function(C){var F=this,G=s39(C);PgZ(G,function(V){V.selector===":root"&&(V.selector="html");F.transformRule(V)});
C.textContent=x5I(G);return G};
_.n.transformRules=function(C,F){var G=this;this._currentElement=F;PgZ(C,function(V){G.transformRule(V)});
this._currentElement=null};
_.n.transformRule=function(C){C.cssText=lD8(this,C.parsedCssText,C);C.selector===":root"&&(C.selector=":host > *")};
var lD8=function(C,F,G){F=F.replace(cvE,function(V,J,b,z){return C._produceCssProperties(V,J,b,z,G)});
return C._consumeCssProperties(F,G)};
_.n=yq.prototype;_.n._getInitialValueForProperty=function(C){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(C)};
_.n._fallbacksFromPreviousRules=function(C){for(var F=this,G=C;G.parent;)G=G.parent;var V={},J=!1;PgZ(G,function(b){(J=J||b===C)||b.selector===C.selector&&Object.assign(V,F._cssTextToMap(b.parsedCssText))});
return V};
_.n._consumeCssProperties=function(C,F){for(var G;G=Avr.exec(C);){var V=G[0],J=G[1];G=G.index;var b=G+V.indexOf("@apply"),z=G+V.length;V=C.slice(0,b);C=C.slice(z);b=F?this._fallbacksFromPreviousRules(F):{};Object.assign(b,this._cssTextToMap(V));J=this._atApplyToCssProperties(J,b);C=V+J+C;Avr.lastIndex=G+J.length}return C};
_.n._atApplyToCssProperties=function(C,F){C=C.replace(tR7,"");var G=[],V=this._map.get(C);V||(this._map.set(C,{}),V=this._map.get(C));if(V){this._currentElement&&(V.dependants[this._currentElement]=!0);var J,b=V.properties;for(J in b){var z=F&&F[J];V=[J,": var(",C,"_-_",J];z&&V.push(",",z.replace(kSr,""));V.push(")");kSr.test(b[J])&&V.push(" !important");G.push(V.join(""))}}return G.join("; ")};
_.n._replaceInitialOrInherit=function(C,F){var G=aDG.exec(F);G&&(F=G[1]?this._getInitialValueForProperty(C):"apply-shim-inherit");return F};
_.n._cssTextToMap=function(C,F){F=F===void 0?!1:F;C=C.split(";");for(var G,V,J={},b=0;b<C.length;b++)if(G=C[b])V=G.split(":"),V.length>1&&(G=V[0].trim(),V=V.slice(1).join(":"),F&&(V=this._replaceInitialOrInherit(G,V)),J[G]=V);return J};
_.n._invalidateMixinEntry=function(C){if(HyG)for(var F in C.dependants)F!==this._currentElement&&HyG(F)};
_.n._produceCssProperties=function(C,F,G,V,J){var b=this;G&&gLo(G,function(N,S){S&&b._map.get(S)&&(V="@apply "+S+";")});
if(!V)return C;var z=this._consumeCssProperties(""+V,J);J=C.slice(0,C.indexOf("--"));var Q=z=this._cssTextToMap(z,!0),E=this._map.get(F),t=E&&E.properties;t?Q=Object.assign(Object.create(t),z):this._map.set(F,Q);var k=[],U,H=!1;for(U in Q){var l=z[U];l===void 0&&(l="initial");!t||U in t||(H=!0);k.push(F+"_-_"+U+": "+l)}H&&this._invalidateMixinEntry(E);E&&(E.properties=Q);G&&(J=C+";"+J);return J+k.join("; ")+";"};
yq.prototype.detectMixin=yq.prototype.detectMixin;yq.prototype.transformStyle=yq.prototype.JSC$11274_transformStyle;yq.prototype.transformCustomStyle=yq.prototype.transformCustomStyle;yq.prototype.transformRules=yq.prototype.transformRules;yq.prototype.transformRule=yq.prototype.transformRule;yq.prototype.transformTemplate=yq.prototype.transformTemplate;yq.prototype._separator="_-_";Object.defineProperty(yq.prototype,"invalidCallback",{get:function(){return HyG},
set:function(C){HyG=C}});var ZE=new yq,yCE=function(){this.customStyleInterface=null;ZE.invalidCallback=hqS},Ni=function(C){!C.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(C.customStyleInterface=window.ShadyCSS.CustomStyleInterface,C.customStyleInterface.transformCallback=function(F){ZE.transformCustomStyle(F)},C.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){C.customStyleInterface.enqueued&&C.flushCustomStyles()})})};
_.n=yCE.prototype;_.n.prepareTemplate=function(C,F){Ni(this);Rqi(C)===""&&(fW5[F]=C,F=ZE.transformTemplate(C,F),C._styleAst=F)};
_.n.flushCustomStyles=function(){Ni(this);if(this.customStyleInterface){var C=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var F=0;F<C.length;F++){var G=this.customStyleInterface.getStyleForCustomStyle(C[F]);G&&ZE.transformCustomStyle(G)}this.customStyleInterface.enqueued=!1}}};
_.n.styleSubtree=function(C,F){Ni(this);F&&nCB(C,F);if(C.shadowRoot)for(this.styleElement(C),C=C.shadowRoot.children||C.shadowRoot.childNodes,F=0;F<C.length;F++)this.styleSubtree(C[F]);else for(C=C.children||C.childNodes,F=0;F<C.length;F++)this.styleSubtree(C[F])};
_.n.styleElement=function(C){Ni(this);var F=C.localName,G;F?F.indexOf("-")>-1?G=F:G=C.getAttribute&&C.getAttribute("is")||"":G=C.is;F=fW5[G];if(!(F&&Rqi(F)!==""||!F||ciq(F))){if(ciq(F)||F._applyShimValidatingVersion!==F._applyShimNextVersion)this.prepareTemplate(F,G),eqA(F);if(C=C.shadowRoot)if(C=C.querySelector("style"))C.__cssRules=F._styleAst,C.textContent=x5I(F._styleAst)}};
_.n.styleDocument=function(C){Ni(this);this.styleSubtree(document.body,C)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var Oz=new yCE,Zy$=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(C,F){Oz.flushCustomStyles();Oz.prepareTemplate(C,F)},
prepareTemplateStyles:function(C,F,G){window.ShadyCSS.prepareTemplate(C,F,G)},
prepareTemplateDom:function(){},
styleSubtree:function(C,F){Oz.flushCustomStyles();Oz.styleSubtree(C,F)},
styleElement:function(C){Oz.flushCustomStyles();Oz.styleElement(C)},
styleDocument:function(C){Oz.flushCustomStyles();Oz.styleDocument(C)},
getComputedStyleValue:function(C,F){return uDZ(C,F)},
flushCustomStyles:function(){Oz.flushCustomStyles()},
nativeCss:d5B,nativeShadow:tuA,cssBuild:Q9,disableRuntime:xrP};Zy$&&(window.ShadyCSS.CustomStyleInterface=Zy$)}window.ShadyCSS.ApplyShim=ZE;var NQO;NQO=window.ShadyCSS;_.Xt=j$(function(C){C=ozy(Vq(C));var F=Mro?C:IDE(C),G=EeO(F),V={x:"pan-x",y:"pan-y",none:"none",all:"auto"};C=function(){return F.call(this)||this};
_.O(C,F);C.prototype.created=function(){};
C.prototype.__attributeReaction=function(J,b,z){(this.__dataAttributes&&this.__dataAttributes[J]||J==="disable-upgrade")&&this.attributeChangedCallback(J,b,z,null)};
C.prototype.setAttribute=function(J,b){if(Fm$&&!this._legacyForceObservedAttributes){var z=this.getAttribute(J);F.prototype.setAttribute.call(this,J,b);this.__attributeReaction(J,z,String(b))}else F.prototype.setAttribute.call(this,J,b)};
C.prototype.removeAttribute=function(J){if(Fm$&&!this._legacyForceObservedAttributes){var b=this.getAttribute(J);F.prototype.removeAttribute.call(this,J);this.__attributeReaction(J,b,null)}else F.prototype.removeAttribute.call(this,J)};
C.prototype._enableProperties=function(){this.__isUpgradeDisabled||F.prototype._enableProperties.call(this)};
C.prototype._canApplyPropertyDefault=function(J){return F.prototype._canApplyPropertyDefault.call(this,J)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(J))};
C.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(F.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
C.prototype.attached=function(){};
C.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(F.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
C.prototype.detached=function(){};
C.prototype.attributeChangedCallback=function(J,b,z,Q){b!==z&&(J=="disable-upgrade"?this.__isUpgradeDisabled&&z==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.vv)(this).isConnected&&this.connectedCallback()):(F.prototype.attributeChangedCallback.call(this,J,b,z,Q),this.attributeChanged(J,b,z)))};
C.prototype.attributeChanged=function(){};
C.prototype._initializeProperties=function(){if(pc&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var J=Object.getPrototypeOf(this);J.hasOwnProperty("__hasRegisterFinished")||(this._registered(),J.__hasRegisterFinished=!0);F.prototype._initializeProperties.call(this);this.root=this;this.created();Fm$&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
C.prototype._takeAttributes=function(){for(var J=this.attributes,b=0,z=J.length;b<z;b++){var Q=J[b];this.__attributeReaction(Q.name,null,Q.value)}};
C.prototype._registered=function(){};
C.prototype.ready=function(){this._ensureAttributes();F.prototype.ready.call(this)};
C.prototype._ensureAttributes=function(){};
C.prototype._applyListeners=function(){};
C.prototype.serialize=function(J){return this._serializeValue(J)};
C.prototype.deserialize=function(J,b){return this._deserializeValue(J,b)};
C.prototype.reflectPropertyToAttribute=function(J,b,z){this._propertyToAttribute(J,b,z)};
C.prototype.serializeValueToAttribute=function(J,b,z){this._valueToNodeAttribute(z||this,J,b)};
C.prototype.extend=function(J,b){if(!J||!b)return J||b;for(var z=Object.getOwnPropertyNames(b),Q=0,E=void 0;Q<z.length&&(E=z[Q]);Q++){var t=Object.getOwnPropertyDescriptor(b,E);t&&Object.defineProperty(J,E,t)}return J};
C.prototype.mixin=function(J,b){for(var z in b)J[z]=b[z];return J};
C.prototype.chainObject=function(J,b){J&&b&&J!==b&&(J.__proto__=b);return J};
C.prototype.instanceTemplate=function(J){J=this.constructor._contentForTemplate(J);return document.importNode(J,!0)};
C.prototype.fire=function(J,b,z){z=z||{};b=b===null||b===void 0?{}:b;J=new Event(J,{bubbles:z.bubbles===void 0?!0:z.bubbles,cancelable:!!z.cancelable,composed:z.composed===void 0?!0:z.composed});J.detail=b;(0,_.vv)(z.node||this).dispatchEvent(J);return J};
C.prototype.listen=function(J,b,z){J=J||this;var Q=this.__boundListeners||(this.__boundListeners=new WeakMap),E=Q.get(J);E||(E={},Q.set(J,E));Q=b+z;E[Q]||(E[Q]=this._addMethodEventListenerToNode(J,b,z,this))};
C.prototype.unlisten=function(J,b,z){J=J||this;var Q=this.__boundListeners&&this.__boundListeners.get(J);z=b+z;var E=Q&&Q[z];E&&(this._removeEventListenerFromNode(J,b,E),Q[z]=null)};
C.prototype.setScrollDirection=function(J,b){_.TA(b||this,V[J]||"auto")};
C.prototype.$$=function(J){return this.root.querySelector(J)};
C.prototype.distributeContent=function(){var J=_.E5(this);window.ShadyDOM&&J.shadowRoot&&ShadyDOM.flush()};
C.prototype.getEffectiveChildNodes=function(){return _.E5(this).getEffectiveChildNodes()};
C.prototype.queryDistributedElements=function(J){return _.E5(this).queryDistributedElements(J)};
C.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(J){return J.nodeType===Node.ELEMENT_NODE})};
C.prototype.getEffectiveTextContent=function(){for(var J=this.getEffectiveChildNodes(),b=[],z=0,Q;Q=J[z];z++)Q.nodeType!==Node.COMMENT_NODE&&b.push(Q.textContent);return b.join("")};
C.prototype.queryEffectiveChildren=function(J){return(J=this.queryDistributedElements(J))&&J[0]};
C.prototype.queryAllEffectiveChildren=function(J){return this.queryDistributedElements(J)};
C.prototype.getContentChildNodes=function(J){return(J=this.root.querySelector(J||"slot"))?_.E5(J).getDistributedNodes():[]};
C.prototype.getContentChildren=function(J){return this.getContentChildNodes(J).filter(function(b){return b.nodeType===Node.ELEMENT_NODE})};
C.prototype.isLightDescendant=function(J){return this!==J&&(0,_.vv)(this).contains(J)&&(0,_.vv)(this).getRootNode()===(0,_.vv)(J).getRootNode()};
C.prototype.isLocalDescendant=function(J){return this.root===(0,_.vv)(J).getRootNode()};
C.prototype.scopeSubtree=function(J,b){return U5o(J,b===void 0?!1:b)};
C.prototype.getComputedStyleValue=function(J){return NQO.getComputedStyleValue(this,J)};
C.prototype.debounce=function(J,b,z){this._debouncers=this._debouncers||{};return this._debouncers[J]=_.Qq(this._debouncers[J],z>0?_.Ca.after(z):ox,b.bind(this))};
C.prototype.isDebouncerActive=function(J){this._debouncers=this._debouncers||{};J=this._debouncers[J];return!(!J||!J.isActive())};
C.prototype.flushDebouncer=function(J){this._debouncers=this._debouncers||{};(J=this._debouncers[J])&&J.flush()};
C.prototype.cancelDebouncer=function(J){this._debouncers=this._debouncers||{};(J=this._debouncers[J])&&J.cancel()};
C.prototype.async=function(J,b){return b>0?_.Ca.run(J.bind(this),b):~ox.run(J.bind(this))};
C.prototype.cancelAsync=function(J){J<0?ox.cancel(~J):_.Ca.cancel(J)};
C.prototype.create=function(J,b){J=document.createElement(J);if(b)if(J.setProperties)J.setProperties(b);else for(var z in b)J[z]=b[z];return J};
C.prototype.elementMatches=function(J,b){return VRr(b||this,J)};
C.prototype.toggleAttribute=function(J,b){var z=this;arguments.length===3&&(z=arguments[2]);arguments.length==1&&(b=!z.hasAttribute(J));if(b)return(0,_.vv)(z).setAttribute(J,""),!0;(0,_.vv)(z).removeAttribute(J);return!1};
C.prototype.toggleClass=function(J,b,z){z=z||this;arguments.length==1&&(b=!z.classList.contains(J));b?z.classList.add(J):z.classList.remove(J)};
C.prototype.transform=function(J,b){b=b||this;b.style.webkitTransform=J;b.style.transform=J};
C.prototype.translate3d=function(J,b,z,Q){this.transform("translate3d("+J+","+b+","+z+")",Q||this)};
C.prototype.arrayDelete=function(J,b){if(Array.isArray(J)){if(b=J.indexOf(b),b>=0)return J.splice(b,1)}else if(b=SW(this,J).indexOf(b),b>=0)return this.splice(J,b,1);return null};
C.prototype._logger=function(J,b){Array.isArray(b)&&b.length===1&&Array.isArray(b[0])&&(b=b[0]);switch(J){case "log":case "warn":case "error":console[J].apply(console,_.da(b))}};
C.prototype._log=function(){this._logger("log",_.Rn.apply(0,arguments))};
C.prototype._warn=function(){this._logger("warn",_.Rn.apply(0,arguments))};
C.prototype._error=function(){this._logger("error",_.Rn.apply(0,arguments))};
C.prototype._logf=function(J){return["[%s::%s]",this.is,J].concat(_.da(_.Rn.apply(1,arguments)))};
_.I6.Object.defineProperties(C.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var J=(0,_.vv)(this).getRootNode();return J instanceof DocumentFragment?J.host:J}}});
_.I6.Object.defineProperties(C,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Fm$&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],kZT(this.prototype)),this.__observedAttributes):G.call(this).concat("disable-upgrade")}}});
C.prototype.is="";return C});Polymer.FlattenedNodesObserver=jPl;Polymer.DomApi=byu;Polymer.EventApi=H3;Polymer.dom=_.E5;Polymer.dom.matchesSelector=VRr;Polymer.dom.flush=_.a4;Polymer.dom.addDebouncer=_.I4;Polymer.DirMixin=IDE;Polymer.RenderStatus={beforeNextRender:_.tXq,afterNextRender:_.zH,flush:function(){for(;IWA.length||un.length;)Q3A(IWA),Q3A(un);n_=!1}};Polymer.LegacyElementMixin=_.Xt;var Oyu;Oyu=W3._mutablePropertyChange;var X6y={properties:{mutableData:Boolean},_shouldPropertyChange:function(C,F,G){return Oyu(this,C,F,G,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(C,F,G){return Oyu(this,C,F,G,!0)}};
Polymer.OptionalMutableDataBehavior=X6y;var Yjo={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},D5q={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},K7f=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},D5q),w6P=(0,_.Xt)(HTMLElement),RCq=function(C,F){C||console.warn("Polymer.Class requires `info` argument");F=F?F(w6P):w6P;F=pcI(C,F,C.behaviors);F.is=F.prototype.is=
C.is;return F};Polymer.Class=RCq;Polymer.mixinBehaviors=function(C,F){return pcI({},(0,_.Xt)(F),C)};
Polymer.GenerateClassFromInfo=pcI;_.kz=function(C){var F=typeof C==="function"?C:_.kz.Class(C);C._legacyForceObservedAttributes&&(F.prototype._legacyForceObservedAttributes=C._legacyForceObservedAttributes);customElements.define(F.is,F);return F};
_.kz.Class=RCq;Polymer._polymerFn=_.kz;var MRP=window.onLegacyPolymerFunctionDefinedCallback;MRP&&MRP();var T4i={templatize:function(C,F){this._templatizerTemplate=C;this.ctor=j3(C,this,{mutableData:!!F,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(C){return new this.ctor(C)},
modelForElement:function(C){return $5I(this._templatizerTemplate,C)}};Polymer.Templatizer=T4i;_.w3=(0,_.Xt)(HTMLElement).prototype;Polymer.Base=_.w3;var CGE=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.EH=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.O(_.EH,PolymerFakeBaseClass);var WS=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.O(WS,PolymerFakeBaseClass);var jF5=Symbol("Td"),nkI=[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 S97=S97||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},Lru;(function(C){function F(P,g,r){var C9=T.get(P);if(!C9){if(!r)return;C9=new c;T.set(P,C9)}P=C9.get(g);if(!P){if(!r)return;P=new c;C9.set(g,P)}return P}
function G(P,g,r){if(V(P,g,r))return!0;g=H(g);return g!==null?G(P,g,r):!1}
function V(P,g,r){g=F(g,r,!1);return g===void 0?!1:!!g.has(P)}
function J(P,g,r){if(V(P,g,r))return b(P,g,r);g=H(g);if(g!==null)return J(P,g,r)}
function b(P,g,r){g=F(g,r,!1);if(g!==void 0)return g.get(P)}
function z(P,g){var r=Q(P,g);P=H(P);if(P===null)return r;var C9=z(P,g);if(C9.length<=0)return r;if(r.length<=0)return C9;g=new A;P=[];r=_.u(r);for(var Wo=r.next();!Wo.done;Wo=r.next())Wo=Wo.value,g.has(Wo)||(g.add(Wo),P.push(Wo));r=_.u(C9);for(C9=r.next();!C9.done;C9=r.next())C9=C9.value,g.has(C9)||(g.add(C9),P.push(C9));return P}
function Q(P,g){P=F(P,g,!1);var r=[];P&&P.forEach(function(C9,Wo){return r.push(Wo)});
return r}
function E(P){return P===void 0}
function t(P){return typeof P==="object"?P!==null:typeof P==="function"}
function k(P){return typeof P==="function"}
function U(P){return typeof P==="symbol"?P:String(P)}
function H(P){var g=Object.getPrototypeOf(P);if(typeof P!=="function"||P===f||g!==f)return g;var r=Object.getPrototypeOf(P.prototype);if(r==null||r===Object.prototype)return g;r=r.constructor;return typeof r!=="function"||r===P?g:r}
function l(){function P(){this._keys=[];this._values=[];this._cache=g}
var g={};P.prototype={get size(){return this._keys.length},has:function(r){return r===this._cache?!0:this._find(r)>=0?(this._cache=r,!0):!1},
get:function(r){var C9=this._find(r);if(C9>=0)return this._cache=r,this._values[C9]},
set:function(r,C9){this.delete(r);this._keys.push(r);this._values.push(C9);this._cache=r;return this},
delete:function(r){r=this._find(r);return r>=0?(this._keys.splice(r,1),this._values.splice(r,1),this._cache=g,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=g},
forEach:function(r){for(var C9=this.size,Wo=0;Wo<C9;++Wo){var EB=this._keys[Wo],L9=this._values[Wo];this._cache=EB;r.call(this,L9,EB,this)}},
_find:function(r){for(var C9=this._keys,Wo=C9.length,EB=0;EB<Wo;++EB)if(C9[EB]===r)return EB;return-1}};
return P}
function N(){function P(){this._map=new c}
P.prototype={get size(){return this._map.length},has:function(g){return this._map.has(g)},
add:function(g){this._map.set(g,g);return this},
delete:function(g){return this._map.delete(g)},
clear:function(){this._map.clear()},
forEach:function(g,r){this._map.forEach(g,r)}};
return P}
function S(){function P(){this._key=r()}
function g(lZ,eq){for(var OB=0;OB<eq;++OB)lZ[OB]=Math.random()*255|0}
function r(){do{if(Wo)var lZ=Wo.randomBytes(16);else typeof Uint8Array==="function"?(lZ=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(lZ):g(lZ,16)):(lZ=Array(16),g(lZ,16));lZ[6]=lZ[6]&79|64;lZ[8]=lZ[8]&191|128;for(var eq="",OB=0;OB<16;++OB){var yr=lZ[OB];if(OB===4||OB===6||OB===8)eq+="-";yr<16&&(eq+="0");eq+=yr.toString(16).toLowerCase()}lZ="@@WeakMap@@"+eq}while(EB.call(L9,lZ));L9[lZ]=!0;return lZ}
function C9(lZ,eq){if(!EB.call(lZ,ki)){if(!eq)return;Object.defineProperty(lZ,ki,{value:Object.create(null)})}return lZ[ki]}
var Wo=typeof global!=="undefined"&&typeof S97==="object"&&typeof require==="function"&&require("crypto"),EB=Object.prototype.hasOwnProperty,L9={},ki=r();P.prototype={has:function(lZ){return(lZ=C9(lZ,!1))?this._key in lZ:!1},
get:function(lZ){if(lZ=C9(lZ,!1))return lZ[this._key]},
set:function(lZ,eq){C9(lZ,!0)[this._key]=eq;return this},
delete:function(lZ){return(lZ=C9(lZ,!1))&&this._key in lZ?delete lZ[this._key]:!1},
clear:function(){this._key=r()}};
return P}
var f=Object.getPrototypeOf(Function),c=typeof Map==="function"?Map:l(),A=typeof Set==="function"?Set:N(),T=new (typeof WeakMap==="function"?WeakMap:S());C.decorate=function(P,g,r,C9){if(E(C9)){if(E(r)){if(!Array.isArray(P))throw new TypeError;if(!k(g))throw new TypeError;for(r=P.length-1;r>=0;--r)if(C9=(0,P[r])(g),!E(C9)){if(!k(C9))throw new TypeError;g=C9}return g}if(!Array.isArray(P))throw new TypeError;if(!t(g))throw new TypeError;r=U(r);for(C9=P.length-1;C9>=0;--C9)(0,P[C9])(g,r)}else{if(Array.isArray(P))if(t(g)){if(E(r))throw new TypeError;
if(!t(C9))throw new TypeError;}else throw new TypeError;else throw new TypeError;r=U(r);for(var Wo=P.length-1;Wo>=0;--Wo){var EB=(0,P[Wo])(g,r,C9);if(!E(EB)){if(!t(EB))throw new TypeError;C9=EB}}return C9}};
C.metadata=function(P,g){return function(r,C9){if(E(C9)){if(!k(r))throw new TypeError;F(r,void 0,!0).set(P,g)}else{if(!t(r))throw new TypeError;C9=U(C9);F(r,C9,!0).set(P,g)}}};
C.defineMetadata=function(P,g){var r;if(t(g))E(r)||(r=U(r));else throw new TypeError;F(g,r,!0).set("parameters",P)};
C.hasMetadata=function(P,g,r){if(t(g))E(r)||(r=U(r));else throw new TypeError;return G(P,g,r)};
C.hasOwnMetadata=function(P,g,r){if(t(g))E(r)||(r=U(r));else throw new TypeError;return V(P,g,r)};
C.getMetadata=function(P,g,r){if(t(g))E(r)||(r=U(r));else throw new TypeError;return J(P,g,r)};
C.getOwnMetadata=function(P,g,r){if(t(g))E(r)||(r=U(r));else throw new TypeError;return b(P,g,r)};
C.getMetadataKeys=function(P,g){if(t(P))E(g)||(g=U(g));else throw new TypeError;return z(P,g)};
C.getOwnMetadataKeys=function(P,g){if(t(P))E(g)||(g=U(g));else throw new TypeError;return Q(P,g)};
C.deleteMetadata=function(P,g,r){if(t(g))E(r)||(r=U(r));else throw new TypeError;var C9=F(g,r,!1);if(!E(C9)){if(!C9.delete(P))return!1;if(C9.size>0)return!0;P=T.get(g);P.delete(r);if(P.size>0)return!0;T.delete(g);return!0}};
(function(P){if(typeof P.Reflect!=="undefined"){if(P.Reflect!==C)for(var g in C)P.Reflect[g]=C[g]}else P.Reflect=C})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(Lru||(Lru={}));var Zp9=self;var BQm=[0,_.Ai,_.xL,_.Ai];var veo=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(veo,_.b0);var fDm=_.kl(veo,[0,_.YL,_.gn,BQm,_.xL,_.o3]);var cC$=[0,_.TG,-3,_.o3,_.YL,_.Ai,_.n_r,_.TG,zx$,Jll,vc,_.eX,_.Ai,function(){return htO},
_.xL],htO=[0,_.gn,function(){return cC$},
_.YL,14,_.TG];_.RE(_.tu,_.hV);_.n=_.tu.prototype;_.n.start=function(){this.stop();this.usingListeners_=!1;var C=ACG(this),F=etS(this);C&&!F&&this.JSC$11317_win_.mozRequestAnimationFrame?(this.JSC$11317_id_=_.IP(this.JSC$11317_win_,"MozBeforePaint",this.callback_),this.JSC$11317_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11317_id_=C&&F?C.call(this.JSC$11317_win_,this.callback_):this.JSC$11317_win_.setTimeout(Lbm(this.callback_),20)};
_.n.stop=function(){if(this.isActive()){var C=ACG(this),F=etS(this);C&&!F&&this.JSC$11317_win_.mozRequestAnimationFrame?ua(this.JSC$11317_id_):C&&F?F.call(this.JSC$11317_win_,this.JSC$11317_id_):this.JSC$11317_win_.clearTimeout(this.JSC$11317_id_)}this.JSC$11317_id_=null};
_.n.fire=function(){this.stop();this.JSC$11319_doAction_()};
_.n.isActive=function(){return this.JSC$11317_id_!=null};
_.n.JSC$11319_doAction_=function(){this.usingListeners_&&this.JSC$11317_id_&&ua(this.JSC$11317_id_);this.JSC$11317_id_=null;this.JSC$11317_listener_.call(this.handler_,_.gp())};
_.n.disposeInternal=function(){this.stop();_.tu.superClass_.disposeInternal.call(this)};
var ACG=function(C){C=C.JSC$11317_win_;return C.requestAnimationFrame||C.webkitRequestAnimationFrame||C.mozRequestAnimationFrame||C.oRequestAnimationFrame||C.msRequestAnimationFrame||null},etS=function(C){C=C.JSC$11317_win_;
return C.cancelAnimationFrame||C.cancelRequestAnimationFrame||C.webkitCancelRequestAnimationFrame||C.mozCancelRequestAnimationFrame||C.oCancelRequestAnimationFrame||C.msCancelRequestAnimationFrame||null};_.FX=function(C,F,G){_.hV.call(this);this.JSC$11320_listener_=G!=null?C.bind(G):C;this.JSC$11320_interval_=F;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11320_timer_=null};
_.O(_.FX,_.hV);_.n=_.FX.prototype;_.n.fire=function(C){this.args_=arguments;this.JSC$11320_timer_||this.pauseCount_?this.shouldFire_=!0:dD7(this)};
_.n.stop=function(){this.JSC$11320_timer_&&(_.VT.clearTimeout(this.JSC$11320_timer_),this.JSC$11320_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.n.pause=function(){this.pauseCount_++};
_.n.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11320_timer_||(this.shouldFire_=!1,dD7(this))};
_.n.disposeInternal=function(){_.hV.prototype.disposeInternal.call(this);this.stop()};
var dD7=function(C){C.JSC$11320_timer_=X3(function(){C.JSC$11320_timer_=null;C.shouldFire_&&!C.pauseCount_&&(C.shouldFire_=!1,dD7(C))},C.JSC$11320_interval_);
var F=C.args_;C.args_=null;C.JSC$11320_listener_.apply(null,F)};var xDu=function(C,F){this.childIterator_=C[_.VT.Symbol.iterator]();this.mapFn_=F};
xDu.prototype[Symbol.iterator]=function(){return this};
xDu.prototype.next=function(){var C=this.childIterator_.next();return{value:C.done?void 0:this.mapFn_.call(void 0,C.value),done:C.done}};
var sPS=function(C,F){return new xDu(C,F)};var q9u={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 bGw=function(C){var F=Pa8(C);if(!F)throw Error("Xd`"+C);return F},Pa8=function(C){var F={};
C=String(C);var G=C.charAt(0)=="#"?C:"#"+C;if(geE.test(G))return F.hex=FzI(G),F.type="hex",F;G=QuT(C);return G.length?(F.hex=sO5(G[0],G[1],G[2]),F.type="rgb",F):q9u&&(C=q9u[C.toLowerCase()])?(F.hex=C,F.type="named",F):null},RtE=/#(.)(.)(.)/,FzI=function(C){if(!geE.test(C))throw Error("Zd`"+C);
C.length==4&&(C=C.replace(RtE,"#$1$1$2$2$3$3"));return C.toLowerCase()},nR9=function(C){C=FzI(C);
C=parseInt(C.slice(1),16);return[C>>16,C>>8&255,C&255]},sO5=function(C,F,G){C=Number(C);
F=Number(F);G=Number(G);if(C!=(C&255)||F!=(F&255)||G!=(G&255))throw Error("$d`"+C+"`"+F+"`"+G);F=C<<16|F<<8|G;return C<16?"#"+(16777216|F).toString(16).slice(1):"#"+F.toString(16)},geE=/^#(?:[0-9a-f]{3}){1,2}$/i,Y9$=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,QuT=function(C){var F=C.match(Y9$);
if(F){C=Number(F[1]);var G=Number(F[2]);F=Number(F[3]);if(C>=0&&C<=255&&G>=0&&G<=255&&F>=0&&F<=255)return[C,G,F]}return[]};var TQy={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},C3=TQy;C3=TQy;var j9w,oeP,rC$;j9w=function(C,F){switch(F){case 1:return C%4!=0||C%100==0&&C%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
oeP=function(C,F,G,V,J){C=new Date(C,F,G);J=J||0;return C.valueOf()+(((V!==void 0?V:3)-J+7)%7-((C.getDay()+6)%7-J+7)%7)*864E5};
_.Mi=function(C,F,G){typeof C==="number"?(this.date=rC$(C,F||0,G||1),Kr7(this,G||1)):_.TE(C)?(this.date=rC$(C.getFullYear(),C.getMonth(),C.getDate()),Kr7(this,C.getDate())):(this.date=new Date(_.gp()),C=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),Kr7(this,C))};
rC$=function(C,F,G){F=new Date(C,F,G);C>=0&&C<100&&F.setFullYear(F.getFullYear()-1900);return F};
_.n=_.Mi.prototype;_.n.firstDayOfWeek_=C3.FIRSTDAYOFWEEK;_.n.firstWeekCutOffDay_=C3.FIRSTWEEKCUTOFFDAY;_.n.clone=function(){var C=new _.Mi(this.date);C.firstDayOfWeek_=this.firstDayOfWeek_;C.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return C};
_.n.getFullYear=function(){return this.date.getFullYear()};
_.n.getYear=function(){return this.getFullYear()};
_.n.getMonth=function(){return this.date.getMonth()};
_.n.getDate=function(){return this.date.getDate()};
_.n.getTime=function(){return this.date.getTime()};
_.n.getDay=function(){return this.date.getDay()};
_.n.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.n.getUTCMonth=function(){return this.date.getUTCMonth()};
_.n.getUTCDate=function(){return this.date.getUTCDate()};
_.n.getUTCDay=function(){return this.date.getDay()};
_.n.getUTCHours=function(){return this.date.getUTCHours()};
_.n.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.n.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.n.set=function(C){this.date=new Date(C.getFullYear(),C.getMonth(),C.getDate())};
_.n.setFullYear=function(C){this.date.setFullYear(C)};
_.n.setYear=function(C){this.setFullYear(C)};
_.n.setMonth=function(C){this.date.setMonth(C)};
_.n.setDate=function(C){this.date.setDate(C)};
_.n.setTime=function(C){this.date.setTime(C)};
_.n.setUTCFullYear=function(C){this.date.setUTCFullYear(C)};
_.n.setUTCMonth=function(C){this.date.setUTCMonth(C)};
_.n.setUTCDate=function(C){this.date.setUTCDate(C)};
_.n.add=function(C){if(C.years||C.months){var F=this.getMonth()+C.months+C.years*12,G=this.getYear()+Math.floor(F/12);F%=12;F<0&&(F+=12);var V=Math.min(j9w(G,F),this.getDate());this.setDate(1);this.setFullYear(G);this.setMonth(F);this.setDate(V)}C.days&&(G=this.getYear(),F=G>=0&&G<=99?-1900:0,C=new Date((new Date(G,this.getMonth(),this.getDate(),12)).getTime()+C.days*864E5),this.setDate(1),this.setFullYear(C.getFullYear()+F),this.setMonth(C.getMonth()),this.setDate(C.getDate()),Kr7(this,C.getDate()))};
_.n.JSC$11333_toIsoString=function(C){var F=this.getFullYear(),G=F<0?"-":F>=1E4?"+":"";return[G+_.jI(Math.abs(F),G?6:4),_.jI(this.getMonth()+1,2),_.jI(this.getDate(),2)].join(C?"-":"")};
_.n.equals=function(C){return!(!C||this.getYear()!=C.getYear()||this.getMonth()!=C.getMonth()||this.getDate()!=C.getDate())};
_.n.toString=function(){return this.JSC$11333_toIsoString()};
var Kr7=function(C,F){C.getDate()!=F&&C.date.setUTCHours(C.date.getUTCHours()+(C.getDate()<F?1:-1))};
_.Mi.prototype.valueOf=function(){return this.date.valueOf()};var La=function(C,F,G,V,J){this.reversed=!!F;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!G;C&&S$(this,C,V);this.depth=J!=void 0?J:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.RE(La,$p);var S$=function(C,F,G,V){if(C.node=F)C.tagType=typeof G==="number"?G:C.node.nodeType!=1?0:C.reversed?-1:1;typeof V==="number"&&(C.depth=V)};
_.n=La.prototype;_.n.JSC$11348_copyFrom=function(C){this.node=C.node;this.tagType=C.tagType;this.depth=C.depth;this.reversed=C.reversed;this.constrained=C.constrained};
_.n.clone=function(){return new La(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.n.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return be;var C=this.node;var F=this.reversed?-1:1;if(this.tagType==F){var G=this.reversed?C.lastChild:C.firstChild;G?S$(this,G):S$(this,C,F*-1)}else(G=this.reversed?C.previousSibling:C.nextSibling)?S$(this,G):S$(this,C.parentNode,F*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(C=this.node)?nx(C):be};
_.n.equals=function(C){return C.node==this.node&&(!this.node||C.tagType==this.tagType)};
_.n.splice=function(C){var F=this.node,G=this.reversed?1:-1;this.tagType==G&&(this.tagType=G*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;La.prototype.next.call(this);this.reversed=!this.reversed;G=_.gI(arguments[0])?arguments[0]:arguments;for(var V=G.length-1;V>=0;V--)_.SI(G[V],F);_.So(F)};var DDu=function(){},B3=function(C){for(var F=[],G=C.getTextRangeCount(),V=0;V<G;V++)F.push(C.getTextRange(V));
return F};
DDu.prototype.isReversed=function(){return!1};
DDu.prototype.getWindow=function(){return Pj(_.gS(this.JSC$11350_getStartNode()))};
var p6y=function(C,F){La.call(this,C,F,!0)};
_.RE(p6y,La);var v3=function(C,F,G,V,J){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!J;if(C){this.startNode_=C;this.startOffset_=F;this.endNode_=G;this.endOffset_=V;if(C.nodeType==1&&C.tagName!="BR")if(C=C.childNodes,F=C[F])this.startNode_=F,this.startOffset_=0;else{C.length&&(this.startNode_=_.hs(C));var b=!0}G.nodeType==1&&((this.endNode_=G.childNodes[V])?this.endOffset_=0:this.endNode_=G)}La.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);b&&this.next()};
_.RE(v3,p6y);_.n=v3.prototype;_.n.JSC$11356_getStartNode=function(){return this.startNode_};
_.n.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)};
_.n.next=function(){return this.isLast()?be:v3.superClass_.next.call(this)};
_.n.JSC$11348_copyFrom=function(C){this.startNode_=C.startNode_;this.endNode_=C.endNode_;this.startOffset_=C.startOffset_;this.endOffset_=C.endOffset_;this.isReversed_=C.isReversed_;v3.superClass_.JSC$11348_copyFrom.call(this,C)};
_.n.clone=function(){var C=new v3(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);C.JSC$11348_copyFrom(this);return C};var mDE=function(){};
mDE.prototype.__iterator__=function(){return new v3(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var fa=function(C){this.range_=C};
_.RE(fa,mDE);var C52=function(C){var F=_.gS(C).createRange();if(C.nodeType==3)F.setStart(C,0),F.setEnd(C,C.length);else if(Xd(C)||C.nodeType==3){for(var G,V=C;(G=V.firstChild)&&(Xd(G)||G.nodeType==3);)V=G;F.setStart(V,0);for(V=C;(G=V.lastChild)&&(Xd(G)||G.nodeType==3);)V=G;F.setEnd(V,V.nodeType==1?V.childNodes.length:V.length)}else G=C.parentNode,C=Array.prototype.indexOf.call(G.childNodes,C),F.setStart(G,C),F.setEnd(G,C+1);return F},je8=function(C,F,G,V){var J=_.gS(C).createRange();
J.setStart(C,F);J.setEnd(G,V);return J};
_.n=fa.prototype;_.n.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.n.getContainer=function(){return this.range_.commonAncestorContainer};
_.n.compareBrowserRangeEndpoints=function(C,F,G){return this.range_.compareBoundaryPoints(G==1?F==1?_.VT.Range.START_TO_START:_.VT.Range.START_TO_END:F==1?_.VT.Range.END_TO_START:_.VT.Range.END_TO_END,C)};
_.n.isCollapsed=function(){return this.range_.collapsed};
_.n.select=function(C){this.selectInternal(Pj(_.gS(this.range_.startContainer)).getSelection(),C)};
_.n.selectInternal=function(C){C.removeAllRanges();C.addRange(this.range_)};
_.n.insertNode=function(C,F){var G=this.range_.cloneRange();G.collapse(F);G.insertNode(C);G.detach();return C};
_.n.collapse=function(C){this.range_.collapse(C)};_.RE(a6,fa);a6.prototype.selectInternal=function(C,F){!F||this.isCollapsed()?a6.superClass_.selectInternal.call(this,C,F):(C.collapse(this.range_.endContainer,this.range_.endOffset),C.extend(this.range_.startContainer,this.range_.startOffset))};_.RE(kv,fa);kv.prototype.compareBrowserRangeEndpoints=function(C,F,G){return kv.superClass_.compareBrowserRangeEndpoints.call(this,C,F,G)};
kv.prototype.selectInternal=function(C,F){F?C.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):C.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var F2u=function(C){return _.Do?new kv(C):_.KV?new a6(C):new fa(C)};var hL=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},GbO;
_.RE(hL,DDu);GbO=function(C,F){var G=new hL;G.browserRangeWrapper_=C;G.isReversed_=!!F;return G};
_.Vno=function(C){C=_.Do?new kv(C52(C)):_.KV?new a6(C52(C)):new fa(C52(C));return GbO(C)};
_.c3=function(C,F,G,V){var J=new hL;J.isReversed_=iZ8(C,F,G,V);if(_.$w(C)&&!Xd(C)){var b=C.parentNode;F=Array.prototype.indexOf.call(b.childNodes,C);C=b}_.$w(G)&&!Xd(G)&&(b=G.parentNode,V=Array.prototype.indexOf.call(b.childNodes,G),G=b);J.isReversed_?(J.startNode_=G,J.startOffset_=V,J.endNode_=C,J.endOffset_=F):(J.startNode_=C,J.startOffset_=F,J.endNode_=G,J.endOffset_=V);return J};
_.n=hL.prototype;_.n.clone=function(){var C=new hL;C.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();C.startNode_=this.startNode_;C.startOffset_=this.startOffset_;C.endNode_=this.endNode_;C.endOffset_=this.endOffset_;C.isReversed_=this.isReversed_;return C};
_.n.JSC$11350_getType=function(){return"text"};
_.n.getBrowserRangeObject=function(){return AL(this).range_};
_.n.getTextRangeCount=function(){return 1};
_.n.getTextRange=function(){return this};
var AL=function(C){var F;if(!(F=C.browserRangeWrapper_)){F=C.JSC$11350_getStartNode();var G=C.JSC$11350_getStartOffset(),V=C.JSC$11350_getEndNode(),J=C.JSC$11350_getEndOffset();F=_.Do?new kv(je8(F,G,V,J)):_.KV?new a6(je8(F,G,V,J)):new fa(je8(F,G,V,J));F=C.browserRangeWrapper_=F}return F};
_.n=hL.prototype;_.n.getContainer=function(){return AL(this).getContainer()};
_.n.JSC$11350_getStartNode=function(){return this.startNode_||(this.startNode_=AL(this).range_.startContainer)};
_.n.JSC$11350_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=AL(this).range_.startOffset};
_.n.JSC$11350_getEndNode=function(){return this.endNode_||(this.endNode_=AL(this).range_.endContainer)};
_.n.JSC$11350_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=AL(this).range_.endOffset};
_.n.isReversed=function(){return this.isReversed_};
_.n.JSC$11350_containsRange=function(C,F){if(C.JSC$11350_getType()=="text"){var G=AL(this);C=AL(C);F=F&&!C.isCollapsed();C=C.range_;G=F?G.compareBrowserRangeEndpoints(C,0,1)>=0&&G.compareBrowserRangeEndpoints(C,1,0)<=0:G.compareBrowserRangeEndpoints(C,0,0)>=0&&G.compareBrowserRangeEndpoints(C,1,1)<=0}else G=!1;return G};
_.n.isCollapsed=function(){return AL(this).isCollapsed()};
_.n.JSC$11350_getText=function(){return AL(this).range_.toString()};
_.n.__iterator__=function(){return new v3(this.JSC$11350_getStartNode(),this.JSC$11350_getStartOffset(),this.JSC$11350_getEndNode(),this.JSC$11350_getEndOffset())};
_.n.select=function(){AL(this).select(this.isReversed_)};
_.n.JSC$11350_removeContents=function(){var C=AL(this).range_;C.extractContents();if(C.startContainer.hasChildNodes()&&(C=C.startContainer.childNodes[C.startOffset])){var F=C.previousSibling;Xj8(C)==""&&_.So(C);F&&Xj8(F)==""&&_.So(F)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.n.insertNode=function(C,F){C=AL(this).insertNode(C,F);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return C};
_.n.collapse=function(C){C=this.isReversed()?!C:C;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(C);C?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var JMS=function(){};
_.RE(JMS,DDu);JMS.prototype.JSC$11350_containsRange=function(C,F){var G=B3(this);C=B3(C);return(F?V2:_.qGq)(C,function(V){return V2(G,function(J){return J.JSC$11350_containsRange(V,F)})})};
JMS.prototype.insertNode=function(C,F){F?_.ME(C,this.JSC$11350_getStartNode()):_.SI(C,this.JSC$11350_getEndNode());return C};var $Gu,bZm=vj().JSC$9325_document_.documentElement;$Gu=bZm.requestFullscreen?"fullscreenchange":bZm.webkitRequestFullscreen?"webkitfullscreenchange":bZm.mozRequestFullScreen?"mozfullscreenchange":bZm.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var nJO=function(){var C=vj().JSC$9325_document_;return!!(C.webkitIsFullScreen||C.mozFullScreen||C.msFullscreenElement||C.fullscreenElement)};var e$=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.RE(e$,JMS);_.n=e$.prototype;_.n.clone=function(){var C=new e$;C.browserRanges_=_.Po(this.browserRanges_);return C};
_.n.JSC$11350_getType=function(){return"mutli"};
_.n.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.n.getTextRangeCount=function(){return this.browserRanges_.length};
_.n.getTextRange=function(C){this.ranges_[C]||(this.ranges_[C]=GbO(F2u(this.browserRanges_[C])));return this.ranges_[C]};
_.n.getContainer=function(){if(!this.container_){for(var C=[],F=this.getTextRangeCount(),G=0;G<F;G++)C.push(this.getTextRange(G).getContainer());this.container_=Ull.apply(null,C)}return this.container_};
var d3=function(C){C.sortedRanges_||(C.sortedRanges_=B3(C),C.sortedRanges_.sort(function(F,G){var V=F.JSC$11350_getStartNode();F=F.JSC$11350_getStartOffset();var J=G.JSC$11350_getStartNode();G=G.JSC$11350_getStartOffset();return V==J&&F==G?0:iZ8(V,F,J,G)?1:-1}));
return C.sortedRanges_};
_.n=e$.prototype;_.n.JSC$11350_getStartNode=function(){return d3(this)[0].JSC$11350_getStartNode()};
_.n.JSC$11350_getStartOffset=function(){return d3(this)[0].JSC$11350_getStartOffset()};
_.n.JSC$11350_getEndNode=function(){return _.hs(d3(this)).JSC$11350_getEndNode()};
_.n.JSC$11350_getEndOffset=function(){return _.hs(d3(this)).JSC$11350_getEndOffset()};
_.n.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.n.JSC$11350_getText=function(){return B3(this).map(function(C){return C.JSC$11350_getText()}).join("")};
_.n.__iterator__=function(){return new xr(this)};
_.n.select=function(){var C=this.getWindow().getSelection();C.removeAllRanges();for(var F=this.getTextRangeCount(),G=0;G<F;G++)C.addRange(this.getTextRange(G).getBrowserRangeObject())};
_.n.JSC$11350_removeContents=function(){B3(this).forEach(function(C){C.JSC$11350_removeContents()})};
_.n.collapse=function(C){if(!this.isCollapsed()){var F=C?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;F.collapse(C);this.ranges_=[F];this.sortedRanges_=[F];this.browserRanges_=[F.getBrowserRangeObject()]}};
var xr=function(C){this.iterators_=null;this.currentIdx_=0;C&&(this.iterators_=d3(C).map(function(F){return _.l8P(F)}));
La.call(this,C?this.JSC$11356_getStartNode():null,!1,!0)};
_.RE(xr,p6y);_.n=xr.prototype;_.n.JSC$11356_getStartNode=function(){return this.iterators_[0].JSC$11356_getStartNode()};
_.n.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.n.next=function(){for(;this.currentIdx_<this.iterators_.length;){var C=this.iterators_[this.currentIdx_],F=C.next();if(F.done)this.currentIdx_++;else return S$(this,C.node,C.tagType,C.depth),F}return be};
_.n.JSC$11348_copyFrom=function(C){this.iterators_=_.Po(C.iterators_);xr.superClass_.JSC$11348_copyFrom.call(this,C)};
_.n.clone=function(){var C=new xr(null);C.JSC$11348_copyFrom(this);return C};var uX7,iZ8;_.rv=function(){var C=window.getSelection();return C&&uX7(C)};
uX7=function(C){var F=!1;if(C.createRange)try{var G=C.createRange()}catch(J){return null}else if(C.rangeCount){if(C.rangeCount>1){G=new e$;F=C.rangeCount;for(var V=0;V<F;V++)G.browserRanges_.push(C.getRangeAt(V));return G}G=C.getRangeAt(0);F=iZ8(C.anchorNode,C.anchorOffset,C.focusNode,C.focusOffset)}else return null;return GbO(F2u(G),F)};
_.sz=function(C,F){return _.c3(C,F,C,F)};
_.qi=function(C,F,G,V){return _.c3(C,F,G,V)};
iZ8=function(C,F,G,V){if(C==G)return V<F;var J;if(C.nodeType==1&&F)if(J=C.childNodes[F])C=J,F=0;else if(_.Kf(C,G))return!0;if(G.nodeType==1&&V)if(J=G.childNodes[V])G=J,V=0;else if(_.Kf(G,C))return!1;return(kkm(C,G)||F-V)>0};var P3=function(){_.lT.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.ck)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.ck)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.ck)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.ck)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.ck)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.ck)(this.dispatchProgressEvent_,this)};
_.RE(P3,_.lT);P3.prototype.abort=function(){try{this.reader_.abort()}catch(C){throw new X9G(C,"aborting read");}};
P3.prototype.getError=function(){return this.reader_.error&&new X9G(this.reader_.error,"reading file")};
P3.prototype.dispatchProgressEvent_=function(C){this.dispatchEvent(new w9r(C,this))};
P3.prototype.disposeInternal=function(){P3.superClass_.disposeInternal.call(this);delete this.reader_};
var Qeo=function(C){var F=new P3,G=zIo(F);F.reader_.readAsArrayBuffer(C);return G},IHO=function(C){var F=new P3,G=zIo(F);
F.reader_.readAsDataURL(C);return G},zIo=function(C){var F=new Y8;
C.listen("loadend",_.$B(function(G,V){var J=V.reader_.result,b=V.getError();J==null||b?G.errback(b):G.callback(J);V.dispose()},F,C));
return F};var g3=function(){_.lT.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11390_eventHandler_=new _.ln(this);this.JSC$11390_isInitialized_=!1};
_.RE(g3,_.lT);var EJy=new _.EW("d"),W2m=new _.EW("beforedragstart"),tn2=new _.EW("dragstart"),aHG=new _.EW("beforedragmove"),kbP=new _.EW("dragmove"),UGl=new _.EW("beforedragend"),HZE=new _.EW("dragend"),lHE=new _.EW("e");g3.prototype.isDragging=function(){return!!this.JSC$11390_dragger_};
var yM$=function(C,F){F.dlgGrowthDirection_=0;F.dlgDragHoverClass_=void 0;F.dlgDragPermission=0;C.dragLists_.push(F)},ZZ2=function(C,F){C.getHandleForDragItem_=F};
g3.prototype.init=function(){if(!this.JSC$11390_isInitialized_){for(var C=this.dragLists_.length,F=0;F<C;F++)for(var G=_.Lk(this.dragLists_[F]),V=G.length,J=0;J<V;++J){var b=G[J],z=this.getHandleForDragItem_(b),Q=_.rI(z);this.dragItemForHandle_[Q]=b;this.dragItemHoverClasses_&&(this.JSC$11390_eventHandler_.listen(b,"mouseover",this.handleDragItemMouseover_),this.JSC$11390_eventHandler_.listen(b,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11390_eventHandler_.listen(z,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11390_eventHandler_.listen(z,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(b);this.JSC$11390_eventHandler_.listen(z,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11390_isInitialized_=!0}};
g3.prototype.disposeInternal=function(){this.JSC$11390_eventHandler_.dispose();for(var C=this.dragLists_.length,F=0;F<C;F++){var G=this.dragLists_[F];G.dlgGrowthDirection_=void 0;G.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;NE2(this);g3.superClass_.disposeInternal.call(this)};
var OZr=function(C,F){for(var G=C.dragLists_.length,V=0;V<G;V++){var J=C.dragLists_[V];J.dlgBounds_=WSw(J)}G=C.dragItems_.length;for(V=0;V<G;V++)J=C.dragItems_[V],J!=F&&(J.dlgBounds_=WSw(J))};
_.n=g3.prototype;
_.n.handlePotentialDragStart_=function(C){var F=_.rI(C.currentTarget);F=this.dragItemForHandle_[F];if(F.parentElement.dlgDragPermission!=2){this.currDragItem_=F;a:{F=this.currDragItem_;for(var G=F.cloneNode(!0),V=Lf("TEXTAREA",F),J=Lf("TEXTAREA",G),b=0;b<V.length;b++)J[b].value=V[b].value;switch(F.tagName){case "TR":F=_.NE("TABLE",null,_.NE("TBODY",null,G));break a;case "TD":case "TH":F=_.NE("TABLE",null,_.NE("TBODY",null,_.NE("TR",null,G)));break a;case "TEXTAREA":G.value=F.value;default:F=G;break a}F=
void 0}this.draggerEl_=F;this.draggerElClasses_&&g1(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.gS(this.currDragItem_).body.appendChild(this.draggerEl_);G=_.RR(this.currDragItem_);F=this.draggerEl_;V=_.RR(F);if(G instanceof _.ql){var z=G.y;G=G.x}cN(F,F.offsetLeft+(G-V.x),F.offsetTop+(Number(z)-V.y));this.JSC$11390_dragger_=new _.Ac(this.draggerEl_);_.O_2(this.JSC$11390_dragger_,this.hysteresisDistance_);
_.IP(this.JSC$11390_dragger_,"start",this.handleDragStart_,!1,this);_.IP(this.JSC$11390_dragger_,"end",this.handleDragEnd_,!1,this);_.IP(this.JSC$11390_dragger_,"earlycancel",this.JSC$11392_cleanup_,!1,this);this.dispatchEvent(new R4(EJy,this,C,this.currDragItem_,this.draggerEl_,this.JSC$11390_dragger_));this.JSC$11390_dragger_.startDrag(C)}};
_.n.handleDragStart_=function(C){if(this.dispatchEvent(new R4(W2m,this,C.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.Wiu(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?g1(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var F=vfP(this.draggerEl_);this.draggerEl_.halfWidth=F.width/2;this.draggerEl_.halfHeight=F.height/2;F=this.draggerEl_.getBoundingClientRect();
var G=C.clientY,V=XSE(this.JSC$11390_dragger_,C.clientX);if(V>F.right){var J=this.currDragItem_.getBoundingClientRect();this.JSC$11390_dragger_.deltaX=V-(V-J.left)/J.width*F.width}G=wSG(this.JSC$11390_dragger_,G);G>F.bottom&&(this.JSC$11390_dragger_.deltaY+=G-F.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";OZr(this,this.currDragItem_);this.currDragItem_.style.display="";_.IP(this.JSC$11390_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new R4(tn2,
this,C.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11390_dragger_))}else C.preventDefault(),this.JSC$11392_cleanup_()};
_.n.handleDragMove_=function(C){var F=_.RR(this.draggerEl_);F=new _.ql(F.x+this.draggerEl_.halfWidth,F.y+this.draggerEl_.halfHeight);a:{var G=null;if(this.currDragItem_.style.display!="none"){G=this.currDragItem_.parentNode;var V=WSw(G);if(XBm(F,V))break a}V=this.dragLists_.length;for(var J=0;J<V;J++){var b=this.dragLists_[J];if(b!=G&&XBm(F,b.dlgBounds_)){G=b;break a}}G=null}if(G){if(G==null)throw Error("ae");V=0;J=!1;b=void 0;switch(G.dlgGrowthDirection_){case 0:V=F.y;var z=wB8;var Q=MnE;break;case 4:J=
!0;case 2:V=F.x;z=S4l;Q=MnE;break;case 5:J=!0;case 3:V=F.x,z=L2y,Q=BE7}for(var E=null,t,k=_.Lk(G),U=k.length,H=0;H<U;H++){var l=k[H];if(l!=this.currDragItem_){var N=z(l.dlgBounds_);if(J){var S=vJl(l,F);b===void 0&&(b=S);Q(V,N)&&(t==void 0||S<b||S==b&&(Q(N,t)||N==t))&&(E=l,t=N);S<b&&(b=S)}else Q(V,N)&&(t==void 0||Q(N,t))&&(E=l,t=N)}}z=E!==null&&vJl(E,F)>b?null:E}else z=null;if(!this.dispatchEvent(new R4(aHG,this,C,this.currDragItem_,this.draggerEl_,this.JSC$11390_dragger_,F,G,z)))return!1;if(G&&G.dlgDragPermission!=
1)this.currDragItem_.parentNode==G&&_.Wiu(this.currDragItem_)==z||G.insertBefore(this.currDragItem_,z),this.currDragItem_.style.display="",G.dlgDragHoverClass_&&_.eR(G,G.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",Q=this.dragLists_.length,t=0;t<Q;t++)V=this.dragLists_[t],V.dlgDragHoverClass_&&_.c6(V,V.dlgDragHoverClass_);G!=this.currHoverList_&&(this.currHoverList_=G,OZr(this,this.currDragItem_));this.dispatchEvent(new R4(kbP,this,C,this.currDragItem_,this.draggerEl_,this.JSC$11390_dragger_,
F,G,z));return!1};
_.n.JSC$11392_cleanup_=function(){NE2(this);this.JSC$11390_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var C=this.dragLists_.length,F=0;F<C;F++)this.dragLists_[F].dlgBounds_=null;C=this.dragItems_.length;for(F=0;F<C;F++)this.dragItems_[F].dlgBounds_=null};
_.n.handleDragEnd_=function(C){if(!this.dispatchEvent(new R4(UGl,this,C,this.currDragItem_,this.draggerEl_,this.JSC$11390_dragger_)))return!1;NE2(this);this.dispatchEvent(new R4(HZE,this,C,this.currDragItem_,this.draggerEl_,this.JSC$11390_dragger_));this.JSC$11392_cleanup_();return!0};
var NE2=function(C){_.uz(C.JSC$11390_dragger_);var F=C.draggerEl_&&C.draggerEl_.parentElement;C.draggerEl_&&_.So(C.draggerEl_);C.currDragItem_&&C.currDragItem_.style.display=="none"&&(C.origList_.insertBefore(C.currDragItem_,C.origNextItem_),C.currDragItem_.style.display="");C.currDragItemClasses_&&C.currDragItem_?ZOu(C.currDragItem_,C.currDragItemClasses_||[]):C.currDragItem_&&(C.currDragItem_.style.visibility="");for(var G=C.dragLists_.length,V=0;V<G;V++){var J=C.dragLists_[V];J.dlgDragHoverClass_&&
_.c6(J,J.dlgDragHoverClass_)}F&&C.dispatchEvent(new R4(lHE,C,null,C.currDragItem_,C.draggerEl_,C.JSC$11390_dragger_))};
_.n=g3.prototype;_.n.getHandleForDragItem_=function(C){return C};
_.n.handleDragItemMouseover_=function(C){g1(C.currentTarget,this.dragItemHoverClasses_||[])};
_.n.handleDragItemMouseout_=function(C){ZOu(C.currentTarget,this.dragItemHoverClasses_||[])};
_.n.handleDragItemHandleMouseover_=function(C){g1(C.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.n.handleDragItemHandleMouseout_=function(C){ZOu(C.currentTarget,this.dragItemHandleHoverClasses_||[])};
var XBm=function(C,F){return C.x>F.left&&C.x<F.left+F.width&&C.y>F.top&&C.y<F.top+F.height},vJl=function(C,F){C=C.dlgBounds_;
return Math.abs(F.y-(C.top+(C.height-1)/2))},wB8=function(C){return C.top+C.height-1},S4l=function(C){return C.left+C.width-1},L2y=function(C){return C.left||0},MnE=function(C,F){return C<F},BE7=function(C,F){return C>F},R4=function(C,F,G,V,J,b){_.tP.call(this,C);
this.event=G;this.currDragItem=V;this.draggerEl=J;this.JSC$11394_dragger=b};
_.RE(R4,_.tP);_.RE(y9,_.hV);var fH7=new _.ql(0,0);y9.prototype.JSC$11398_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
y9.prototype.JSC$11398_onMouseMove=function(C){var F=this.containerIsActuallyContent_?fH7:Bj(vj(this.containerNode_)),G=this.horizontalScrolling_?this.calculateScrollDelta(C.clientX+F.x,this.scrollBounds_.left,this.scrollBounds_.width):0,V=this.calculateScrollDelta(C.clientY+F.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=G;this.scrollDelta_.y=V;!(G=!G&&!V)&&(G=this.constrainScroll_)&&(G=C.clientX+F.x,C=C.clientY+F.y,F=this.containerBounds_,G=!(F.left<=G&&F.left+F.width>=
G&&F.top<=C&&F.top+F.height>=C));G?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
y9.prototype.calculateScrollDelta=function(C,F,G){var V=0;C<F?V=-8:C>F+G&&(V=8);return V};
y9.prototype.disposeInternal=function(){y9.superClass_.disposeInternal.call(this);this.JSC$11396_eventHandler_.dispose();this.scrollTimer_.dispose()};var hI8={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"}}},Yr=hI8;Yr=hI8;var TT={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 cMu=function(){},cY=function(C){if(typeof C=="number"){var F=new cMu;
F.standardOffset_=C;var G=C;if(G==0)G="Etc/GMT";else{var V=["Etc/GMT",G<0?"-":"+"];G=Math.abs(G);V.push(Math.floor(G/60)%100);G%=60;G!=0&&V.push(":",_.jI(G,2));G=V.join("")}F.timeZoneId_=G;G=C;G==0?G="UTC":(V=["UTC",G<0?"+":"-"],G=Math.abs(G),V.push(Math.floor(G/60)%100),G%=60,G!=0&&V.push(":",G),G=V.join(""));C=AM8(C);F.tzNames_=[G,G];F.tzNamesExt_={STD_LONG_NAME_GMT:C,STD_GENERIC_LOCATION:C};F.transitions_=[];return F}F=new cMu;F.timeZoneId_=C.id;F.standardOffset_=-C.std_offset;F.tzNames_=C.names;
F.tzNamesExt_=C.names_ext;F.transitions_=C.transitions;return F},AM8=function(C){var F=["GMT"];
F.push(C<=0?"+":"-");C=Math.abs(C);F.push(_.jI(Math.floor(C/60)%100,2),":",_.jI(C%60,2));return F.join("")},eIP=function(C,F){F=Date.UTC(F.getUTCFullYear(),F.getUTCMonth(),F.getUTCDate(),F.getUTCHours(),F.getUTCMinutes())/36E5;
for(var G=0;G<C.transitions_.length&&F>=C.transitions_[G];)G+=2;return G==0?0:C.transitions_[G-1]},dGP=function(C,F){C=C.standardOffset_-eIP(C,F);
return C===-1440?0:C};var A4=function(C,F){this.patternParts_=[];this.JSC$11409_dateTimeSymbols_=F||C3;typeof C=="number"?xGr(this,C):seu(this,C)},q42=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],o4=function(C){return C.getHours?C.getHours():0},seu=function(C,F){for(Dmw&&(F=F.replace(/\u200f/g,""));F;){for(var G=F,V=0;V<q42.length;++V){var J=F.match(q42[V]);
if(J){var b=J[0];F=F.substring(b.length);V==0&&(b=="''"?b="'":(b=b.substring(1,J[1]=="'"?b.length-1:b.length),b=b.replace(/''/g,"'")));C.patternParts_.push({text:b,type:V});break}}if(G===F)throw Error("be`"+F);}};
A4.prototype.format=function(C,F){if(!C)throw Error("ce");var G=F?(C.getTimezoneOffset()-dGP(F,C))*6E4:0,V=G?new Date(C.getTime()+G):C,J=V;F&&V.getTimezoneOffset()!=C.getTimezoneOffset()&&(V=new Date(V.getTime()+(V.getTimezoneOffset()-C.getTimezoneOffset())*6E4),J=new Date(C.getTime()+(G+(G>0?-864E5:864E5))));G=[];for(var b=0;b<this.patternParts_.length;++b){var z=this.patternParts_[b].text;1==this.patternParts_[b].type?G.push(P58(this,z,C,V,J,F)):G.push(z)}return G.join("")};
var xGr=function(C,F){if(F<4)var G=C.JSC$11409_dateTimeSymbols_.DATEFORMATS[F];else if(F<8)G=C.JSC$11409_dateTimeSymbols_.TIMEFORMATS[F-4];else if(F<12)G=C.JSC$11409_dateTimeSymbols_.DATETIMEFORMATS[F-8],G=G.replace("{1}",C.JSC$11409_dateTimeSymbols_.DATEFORMATS[F-8]),G=G.replace("{0}",C.JSC$11409_dateTimeSymbols_.TIMEFORMATS[F-8]);else if(F===12)G=C.JSC$11409_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(F===13)G=C.JSC$11409_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{xGr(C,10);return}seu(C,G)},r3=function(C,F){F=String(F);
C=C.JSC$11409_dateTimeSymbols_||C3;if(C.ZERODIGIT!==void 0&&!KMB){for(var G=[],V=0;V<F.length;V++){var J=F.charCodeAt(V);G.push(48<=J&&J<=57?String.fromCharCode(C.ZERODIGIT+J-48):F.charAt(V))}F=G.join("")}return F},KMB=!1,Dmw=!1,RIy=function(C,F,G,V){G=G.getFullYear();
G<=0&&V&&(G=1-G);return r3(C,gJu(G,F))},gJu=function(C,F){F==2&&(C%=100);
C<0&&F++;return _.jI(C,F)},Ka=function(C){if(!(C.getHours&&C.getSeconds&&C.getMinutes))throw Error("de");
},Y4l=function(C,F){Ka(F);
F=o4(F);return C.JSC$11409_dateTimeSymbols_.AMPMS[F>=12&&F<24?1:0]},P58=function(C,F,G,V,J,b){var z=F.length;
switch(F.charAt(0)){case "G":return G=V.getFullYear()>0?1:0,z>=4?C.JSC$11409_dateTimeSymbols_.ERANAMES[G]:C.JSC$11409_dateTimeSymbols_.ERAS[G];case "y":return RIy(C,z,V,!0);case "Y":return G=(new Date(oeP(V.getFullYear(),V.getMonth(),V.getDate(),C.JSC$11409_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,C.JSC$11409_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),z==2&&(G%=100),r3(C,gJu(G,z));case "u":return RIy(C,z,V,!1);case "M":a:switch(G=V.getMonth(),z){case 5:z=C.JSC$11409_dateTimeSymbols_.NARROWMONTHS[G];
break a;case 4:z=C.JSC$11409_dateTimeSymbols_.MONTHS[G];break a;case 3:z=C.JSC$11409_dateTimeSymbols_.SHORTMONTHS[G];break a;default:z=r3(C,_.jI(G+1,z))}return z;case "k":return Ka(J),r3(C,_.jI(o4(J)||24,z));case "S":return r3(C,(J.getMilliseconds()/1E3).toFixed(Math.min(3,z)).slice(2)+(z>3?_.jI(0,z-3):""));case "E":return G=V.getDay(),z>=4?C.JSC$11409_dateTimeSymbols_.WEEKDAYS[G]:C.JSC$11409_dateTimeSymbols_.SHORTWEEKDAYS[G];case "a":return Y4l(C,J);case "b":return Y4l(C,J);case "B":return Y4l(C,
J);case "h":return Ka(J),r3(C,_.jI(o4(J)%12||12,z));case "K":return Ka(J),r3(C,_.jI(o4(J)%12,z));case "H":return Ka(J),r3(C,_.jI(o4(J),z));case "c":a:switch(G=V.getDay(),z){case 5:z=C.JSC$11409_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[G];break a;case 4:z=C.JSC$11409_dateTimeSymbols_.STANDALONEWEEKDAYS[G];break a;case 3:z=C.JSC$11409_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[G];break a;default:z=r3(C,_.jI(G,1))}return z;case "L":a:switch(G=V.getMonth(),z){case 5:z=C.JSC$11409_dateTimeSymbols_.STANDALONENARROWMONTHS[G];
break a;case 4:z=C.JSC$11409_dateTimeSymbols_.STANDALONEMONTHS[G];break a;case 3:z=C.JSC$11409_dateTimeSymbols_.STANDALONESHORTMONTHS[G];break a;default:z=r3(C,_.jI(G+1,z))}return z;case "Q":return G=Math.floor(V.getMonth()/3),z<4?C.JSC$11409_dateTimeSymbols_.SHORTQUARTERS[G]:C.JSC$11409_dateTimeSymbols_.QUARTERS[G];case "d":return r3(C,_.jI(V.getDate(),z));case "m":return Ka(J),r3(C,_.jI(J.getMinutes?J.getMinutes():0,z));case "s":return Ka(J),r3(C,_.jI(J.getSeconds(),z));case "v":return(b||cY(G.getTimezoneOffset())).timeZoneId_;
case "V":return C=b||cY(G.getTimezoneOffset()),z<=2?C.timeZoneId_:eIP(C,G)>0?C.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?C.tzNamesExt_.DST_GENERIC_LOCATION:C.tzNamesExt_.DST_GENERIC_LOCATION:C.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?C.tzNamesExt_.STD_GENERIC_LOCATION:C.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return G=oeP(J.getFullYear(),J.getMonth(),J.getDate(),C.JSC$11409_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,C.JSC$11409_dateTimeSymbols_.FIRSTDAYOFWEEK),r3(C,_.jI(Math.floor(Math.round((G-(new Date((new Date(G)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,z));case "z":return C=b||cY(G.getTimezoneOffset()),z<4?C.tzNames_[eIP(C,G)>0?2:0]:C.tzNames_[eIP(C,G)>0?3:1];case "Z":return F=b||cY(G.getTimezoneOffset()),z<4?(z=-dGP(F,G),C=[z<0?"-":"+"],z=Math.abs(z),C.push(_.jI(Math.floor(z/60)%100,2),_.jI(z%60,2)),z=C.join("")):z=r3(C,AM8(dGP(F,G))),z;default:return""}};var TES=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,oJG=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,XGq=function(C){this.patternParts_=[];this.JSC$11418_dateTimeSymbols_=C3;if(typeof C=="number"){C>11&&(C=10);if(C<4)var F=this.JSC$11418_dateTimeSymbols_.DATEFORMATS[C];else C<8?F=this.JSC$11418_dateTimeSymbols_.TIMEFORMATS[C-4]:(F=this.JSC$11418_dateTimeSymbols_.DATETIMEFORMATS[C-8],F=F.replace("{1}",this.JSC$11418_dateTimeSymbols_.DATEFORMATS[C-8]),F=F.replace("{0}",this.JSC$11418_dateTimeSymbols_.TIMEFORMATS[C-
8]));rMu(this,F)}else rMu(this,C)},rMu=function(C,F){for(var G=!1,V="",J=0;J<F.length;J++){var b=F.charAt(J);
if(TES.test(b))for(V.length>0&&(C.patternParts_.push({text:V,count:0,abutStart:!1,numeric:!1}),V=""),C.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});J<F.length-1&&F.charAt(J+1)==" ";)J++;else if(G)b=="'"?J+1<F.length&&F.charAt(J+1)=="'"?(V+="'",J++):G=!1:V+=b;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(b)>=0){V.length>0&&(C.patternParts_.push({text:V,count:0,abutStart:!1,numeric:!1}),V="");for(var z=F.charAt(J),Q=J+1;Q<F.length&&F.charAt(Q)==z;)Q++;z=Q-J;z<=0?Q=!1:(Q="MydhHmsSDkK".indexOf(b),
Q=Q>0||Q==0&&z<3);C.patternParts_.push({text:b,count:z,abutStart:!1,numeric:Q});J+=z-1}else b=="'"?J+1<F.length&&F.charAt(J+1)=="'"?(V+="'",J++):G=!0:V+=b}V.length>0&&C.patternParts_.push({text:V,count:0,abutStart:!1,numeric:!1});F=!1;for(G=0;G<C.patternParts_.length;G++)C.patternParts_[G].numeric?!F&&G+1<C.patternParts_.length&&C.patternParts_[G+1].numeric&&(F=!0,C.patternParts_[G].abutStart=!0):F=!1};
XGq.prototype.parse=function(C,F,G){var V=!1,J=!1;G&&(V=G.predictive||!1,J=G.validate||!1);if(V)for(G=0;G<this.patternParts_.length;G++){var b=this.patternParts_[G];if(b.count>0&&("abBhHkKm".indexOf(b.text.charAt(0))<0||b.count>2||b.abutStart))throw Error("ee`"+b.text.charAt(0));}b=new K2G;G=[0];b.dayPeriodIndex=-1;for(var z=0;z<this.patternParts_.length&&!(V&&G[0]>=C.length);z++){if(this.patternParts_[z].count==0){a:{var Q=C;var E=G,t=this.patternParts_[z],k=V;if(t.text.match(TES)!=null){if(t=E[0],
DG$(Q,E),E[0]>t){Q=!0;break a}}else{if(Q.indexOf(t.text,E[0])==E[0]){E[0]+=t.text.length;Q=!0;break a}if(k&&t.text.indexOf(Q.substring(E[0]))==0){E[0]+=Q.length-E[0];Q=!0;break a}}Q=!1}if(Q)continue;return 0}if(this.patternParts_[z].abutStart){a:{E=C;t=G;k=z;var U=t[0],H=0;for(Q=k;Q<this.patternParts_.length;Q++){var l=this.patternParts_[Q],N=l.count;if(N===0)break;if(Q==k&&(N-=H,H++,N==0)){Q=0;break a}var S=Q>k&&l.numeric,f=t[0];if(!pB8(this,E,t,l,N,b,!1)||S&&t[0]-f<N)Q=k-1,t[0]=U}Q-=k}if(Q<=0)return 0;
z+=Q-1}else if(!pB8(this,C,G,this.patternParts_[z],0,b,V))return 0}a:{C=J;if(F==null)throw Error("fe");b.era!=void 0&&b.year!=void 0&&b.era==0&&b.year>0&&(b.year=-(b.year-1));b.year!=void 0&&F.setFullYear(b.year);V=F.getDate();F.setDate(1);b.month!=void 0&&F.setMonth(b.month);b.day!=void 0?F.setDate(b.day):(J=j9w(F.getFullYear(),F.getMonth()),F.setDate(V>J?J:V));typeof F.setHours==="function"&&(b.hours==void 0&&(b.hours=F.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)),F.setHours(b.hours));typeof F.setMinutes==="function"&&b.minutes!=void 0&&F.setMinutes(b.minutes);typeof F.setSeconds==="function"&&b.seconds!=void 0&&F.setSeconds(b.seconds);typeof F.setMilliseconds==="function"&&b.milliseconds!=void 0&&F.setMilliseconds(b.milliseconds);if(C&&(b.year&&b.year!=F.getFullYear()||b.month&&b.month!=
F.getMonth()||b.day&&b.day!=F.getDate()||b.hours&&b.hours>=24||b.minutes&&b.minutes>=60||b.seconds&&b.seconds>=60||b.milliseconds&&b.milliseconds>=1E3))F=!1;else{b.tzOffset!=void 0&&F.setTime(F.getTime()+(b.tzOffset-F.getTimezoneOffset())*60*1E3);b.ambiguousYear&&(C=new Date,C.setFullYear(C.getFullYear()-80),F.getTime()<C.getTime()&&F.setFullYear(C.getFullYear()+100));if(b.dayOfWeek!=void 0)if(b.day==void 0)b=(7+b.dayOfWeek-F.getDay())%7,b>3&&(b-=7),C=F.getMonth(),F.setDate(F.getDate()+b),F.getMonth()!=
C&&F.setDate(F.getDate()+(b>0?-7:7));else if(b.dayOfWeek!=F.getDay()){F=!1;break a}F=!0}}return F?G[0]:0};
var pB8=function(C,F,G,V,J,b,z){DG$(F,G);if(V.numeric&&J>0&&G[0]+J>F.length)return!1;switch(V.text.charAt(0)){case "G":return DE(F,G,[C.JSC$11418_dateTimeSymbols_.ERAS],function(Q){return b.era=Q}),!0;
case "M":case "L":return mGu(C,F,G,J,V,b);case "E":return DE(F,G,[C.JSC$11418_dateTimeSymbols_.WEEKDAYS,C.JSC$11418_dateTimeSymbols_.SHORTWEEKDAYS],function(Q){return b.dayOfWeek=Q});
case "B":case "b":return J=[],C=[[].concat(C.JSC$11418_dateTimeSymbols_.AMPMS)],J.push("isAm"),J.push("isPm"),F=DE(F,G,C,function(Q){return b.dayPeriodIndex=Q},z),b.dayPeriodName=J[b.dayPeriodIndex],z?F:!0;
case "a":return F=DE(F,G,[C.JSC$11418_dateTimeSymbols_.AMPMS],function(Q){return b.ampm=Q},z),z?F:!0;
case "y":return CCy(C,F,G,V,J,b);case "Q":return DE(F,G,[C.JSC$11418_dateTimeSymbols_.QUARTERS,C.JSC$11418_dateTimeSymbols_.SHORTQUARTERS],function(Q){b.month=Q*3;b.day=1});
case "d":return pa(C,F,G,V,J,function(Q){b.day=Q}),!0;
case "S":return jy7(C,F,G,J,b);case "h":case "K":case "H":case "k":return F=pa(C,F,G,V,J,function(Q){b.hours=V.text.charAt(0)==="h"&&Q===12?0:Q},z),z?F:!0;
case "m":return F=pa(C,F,G,V,J,function(Q){b.minutes=Q},z),z?F:!0;
case "s":return pa(C,F,G,V,J,function(Q){b.seconds=Q}),!0;
case "z":case "Z":case "v":return Fe8(C,F,G,b);default:return!1}},CCy=function(C,F,G,V,J,b){var z=G[0];
J=mF(C,F,G,J);J===null&&(J=mF(C,F,G,0,!0));if(J===null)return!1;J>=0&&G[0]-z==2&&V.count==2?(C=J,F=(new Date).getFullYear()-80,G=F%100,b.ambiguousYear=C==G,C+=Math.floor(F/100)*100+(C<G?100:0),b.year=C):b.year=J;return!0},mGu=function(C,F,G,V,J,b){return J.numeric&&pa(C,F,G,J,V,function(z){b.month=z-1})?!0:DE(F,G,[C.JSC$11418_dateTimeSymbols_.MONTHS,
C.JSC$11418_dateTimeSymbols_.STANDALONEMONTHS,C.JSC$11418_dateTimeSymbols_.SHORTMONTHS,C.JSC$11418_dateTimeSymbols_.STANDALONESHORTMONTHS],function(z){b.month=z})},jy7=function(C,F,G,V,J){var b=G[0];
C=mF(C,F,G,V);if(C===null)return!1;G=G[0]-b;J.milliseconds=G<3?C*Math.pow(10,3-G):Math.round(C/Math.pow(10,G-3));return!0},Fe8=function(C,F,G,V){F.indexOf("GMT",G[0])==G[0]&&(G[0]+=3);
if(G[0]>=F.length)return V.tzOffset=0,!0;var J=G[0],b=mF(C,F,G,0,!0);if(b===null)return!1;if(G[0]<F.length&&F.charAt(G[0])==":"){var z=b*60;G[0]++;b=mF(C,F,G,0);if(b===null)return!1;z+=b}else z=b,z=z<24&&G[0]-J<=3?z*60:z%100+z/100*60;V.tzOffset=-z;return!0},pa=function(C,F,G,V,J,b,z){z=z||!1;
var Q=G[0];C=mF(C,F,G,J);if(C===null)return!1;if(z&&G[0]-Q<V.count){if(G[0]<F.length)return!1;C*=Math.pow(10,V.count-(G[0]-Q))}b(C);return!0},DE=function(C,F,G,V,J){J=J||!1;
for(var b,z=0;z<G.length;z++){b=F;for(var Q=G[z],E=J,t=0,k=null,U=C.substring(b[0]).toLowerCase(),H=0;H<Q.length;H++){var l=Q[H].toLowerCase();if(E&&l.indexOf(U)==0){t=U.length;k=H;break}Q[H].length>t&&U.indexOf(l)==0&&(t=Q[H].length,k=H)}k!==null&&(b[0]+=t);b=k;if(b!==null)return V(b),!0}return!1},DG$=function(C,F){(C=C.substring(F[0]).match(oJG))&&(F[0]+=C[0].length)},mF=function(C,F,G,V,J){F=V>0?F.substring(0,G[0]+V):F;
J=J||!1;if(C.JSC$11418_dateTimeSymbols_.ZERODIGIT){V=[];for(var b=G[0];b<F.length;b++){var z=F.charCodeAt(b)-C.JSC$11418_dateTimeSymbols_.ZERODIGIT;V.push(0<=z&&z<=9?String.fromCharCode(z+48):F.charAt(b))}F=V.join("")}else F=F.substring(G[0]);C=F.match(new RegExp("^"+(J?"[+-]?":"")+"\\d+"));if(!C)return null;G[0]+=C[0].length;return parseInt(C[0],10)},K2G=function(){};
K2G.prototype.ambiguousYear=!1;var G3l;
G3l={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 VVE={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}"]};
VVE={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 iYu=function(){var C={type:"unit",style:"narrow"};this.listType_=C&&C.type?C.type:"conjunction";this.listStyle_=C&&C.style?C.style:"long";this.listSymbols_=VVE;C=0;switch(this.listStyle_){case "short":C=1;break;case "narrow":C=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[C];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[C];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[C];this.listEndPattern_=
this.listSymbols_.AND_END[C];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[C];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[C];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[C];this.listEndPattern_=this.listSymbols_.OR_END[C];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[C],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[C],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[C],this.listEndPattern_=this.listSymbols_.UNIT_END[C]}};
iYu.prototype.format=function(C){return Jm8(this,C)};
var Jm8=function(C,F){var G=F.length;switch(G){case 0:return"";case 1:return String(F[0]);case 2:return C.listTwoPattern_.replace("{0}",String(F[0])).replace("{1}",String(F[1]))}for(var V=C.listStartPattern_.replace("{0}",String(F[0])).replace("{1}",String(F[1])),J=2;J<G-1;++J)V=C.listMiddlePattern_.replace("{0}",V).replace("{1}",String(F[J]));return C.listEndPattern_.replace("{0}",V).replace("{1}",String(F[G-1]))};var $hE={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"},bY2=$hE,nb8=$hE;nb8=bY2=$hE;var zN7,Cq,Fs,FJB,jH,uN7;
_.vY=function(C,F,G,V){var J;if(J=F){a:if(F&&F.length===3){for(J=0;J<3;J++){var b=F[J];if(b<"A"||b>"Z"&&b<"a"||b>"z"){J=!1;break a}}J=!0}else J=!1;J=!J}if(J)throw new TypeError("ge");this.intlCurrencyCode_=F?F.toUpperCase():null;this.currencyStyle_=G||0;this.overrideNumberFormatSymbols_=V||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_=Cq(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof C==="number")switch(C){case 1:jH(this,Cq(this).DECIMAL_PATTERN);break;case 2:jH(this,Cq(this).SCIENTIFIC_PATTERN);break;case 3:jH(this,Cq(this).PERCENT_PATTERN);break;case 4:C=Cq(this).CURRENCY_PATTERN;F=["0"];if(G=
TT[Fs(this)]){G=G[0]&7;if(G>0)for(F.push("."),V=0;V<G;V++)F.push("0");C=C.replace(/0.00/g,F.join(""))}jH(this,C);break;case 5:uN7(this,1);break;case 6:uN7(this,2);break;default:throw Error("je");}else jH(this,C)};
zN7=!1;Cq=function(C){return C.overrideNumberFormatSymbols_||(zN7?nb8:bY2)};
Fs=function(C){return C.intlCurrencyCode_||Cq(C).DEF_CURRENCY_CODE};
FJB=function(C,F){if(F>308)throw Error("ie`"+F);C.maximumFractionDigits_=F;return C};
jH=function(C,F){var G=[0];C.positivePrefix_=QyG(C,F,G);for(var V=G[0],J=-1,b=0,z=0,Q=0,E=-1,t=F.length,k=!0;G[0]<t&&k;G[0]++)switch(F.charAt(G[0])){case "#":z>0?Q++:b++;E>=0&&J<0&&E++;break;case "0":if(Q>0)throw Error("pe`"+F);z++;E>=0&&J<0&&E++;break;case ",":E>0&&C.groupingArray_.push(E);E=0;break;case ".":if(J>=0)throw Error("qe`"+F);J=b+z+Q;break;case "E":if(C.useExponentialNotation_)throw Error("re`"+F);C.useExponentialNotation_=!0;C.minExponentDigits_=0;G[0]+1<t&&F.charAt(G[0]+1)=="+"&&(G[0]++,
C.useSignForPositiveExponent_=!0);for(;G[0]+1<t&&F.charAt(G[0]+1)=="0";)G[0]++,C.minExponentDigits_++;if(b+z<1||C.minExponentDigits_<1)throw Error("se`"+F);k=!1;break;default:G[0]--,k=!1}z==0&&b>0&&J>=0&&(z=J,z==0&&z++,Q=b-z,b=z-1,z=1);if(J<0&&Q>0||J>=0&&(J<b||J>b+z)||E==0)throw Error("te`"+F);Q=b+z+Q;C.maximumFractionDigits_=J>=0?Q-J:0;J>=0&&(C.minimumFractionDigits_=b+z-J,C.minimumFractionDigits_<0&&(C.minimumFractionDigits_=0));C.minimumIntegerDigits_=(J>=0?J:Q)-b;C.useExponentialNotation_&&(C.maximumIntegerDigits_=
b+C.minimumIntegerDigits_,C.maximumFractionDigits_==0&&C.minimumIntegerDigits_==0&&(C.minimumIntegerDigits_=1));C.groupingArray_.push(Math.max(0,E));C.decimalSeparatorAlwaysShown_=J==0||J==Q;V=G[0]-V;C.positiveSuffix_=QyG(C,F,G);G[0]<F.length&&F.charAt(G[0])==";"?(G[0]++,C.multiplier_!=1&&(C.negativePercentSignExpected_=!0),C.negativePrefix_=QyG(C,F,G),G[0]+=V,C.negativeSuffix_=QyG(C,F,G)):(C.negativePrefix_+=C.positivePrefix_,C.negativeSuffix_+=C.positiveSuffix_)};
uN7=function(C,F){C.compactStyle_=F;jH(C,Cq(C).DECIMAL_PATTERN);C.minimumFractionDigits_=0;FJB(C,2);if(C.minimumFractionDigits_>0)throw Error("he");C.significantDigits_=2};
_.vY.prototype.parse=function(C,F){F=F||[0];if(this.compactStyle_!==0)throw Error("ke");C=C.replace(/ |\u202f/g,"\u00a0");var G=C.indexOf(this.positivePrefix_,F[0])==F[0],V=C.indexOf(this.negativePrefix_,F[0])==F[0];G&&V&&(this.positivePrefix_.length>this.negativePrefix_.length?V=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(G=!1));G?F[0]+=this.positivePrefix_.length:V&&(F[0]+=this.negativePrefix_.length);if(C.indexOf(Cq(this).INFINITY,F[0])==F[0]){F[0]+=Cq(this).INFINITY.length;var J=
Infinity}else{J=C;var b=!1,z=!1,Q=!1,E=-1,t=1,k=Cq(this).DECIMAL_SEP,U=Cq(this).GROUP_SEP,H=Cq(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("le");U=U.replace(/\u202f/g,"\u00a0");for(var l="";F[0]<J.length;F[0]++){var N=J.charAt(F[0]),S=IRu(this,N);if(S>=0&&S<=9)l+=S,Q=!0;else if(N==k.charAt(0)){if(b||z)break;l+=".";b=!0}else if(N==U.charAt(0)&&("\u00a0"!=U.charAt(0)||F[0]+1<J.length&&IRu(this,J.charAt(F[0]+1))>=0)){if(b||z)break}else if(N==H.charAt(0)){if(z)break;l+="E";z=!0;E=F[0]}else if(N==
"+"||N=="-"){if(Q&&E!=F[0]-1)break;l+=N}else if(this.multiplier_==1&&N==Cq(this).PERCENT.charAt(0)){if(t!=1)break;t=100;if(Q){F[0]++;break}}else if(this.multiplier_==1&&N==Cq(this).PERMILL.charAt(0)){if(t!=1)break;t=1E3;if(Q){F[0]++;break}}else break}this.multiplier_!=1&&(t=this.multiplier_);J=parseFloat(l)/t}if(G){if(C.indexOf(this.positiveSuffix_,F[0])!=F[0])return NaN;F[0]+=this.positiveSuffix_.length}else if(V){if(C.indexOf(this.negativeSuffix_,F[0])!=F[0])return NaN;F[0]+=this.negativeSuffix_.length}return V?
-J:J};
_.vY.prototype.format=function(C){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("me");if(isNaN(C))return Cq(this).NAN;var F=[];var G=C;if(this.compactStyle_==0)G=GD;else{G=Math.abs(G);var V=EbS(this,G<=1?0:Weu(G)).divisorBase;G=EbS(this,V+Weu(tVy(this,V_(G,-V)).intValue))}C=V_(C,-G.divisorBase);(V=C<0||C==0&&1/C<0)?G.negative_prefix?F.push(G.negative_prefix):(F.push(G.prefix),F.push(this.negativePrefix_)):(F.push(G.prefix),F.push(this.positivePrefix_));if(isFinite(C))if(C*=
V?-1:1,C*=this.multiplier_,this.useExponentialNotation_){var J=C;if(J==0)aR$(this,J,this.minimumIntegerDigits_,F),k32(this,0,F);else{var b=Math.floor(Math.log(J)/Math.log(10)+2E-15);J=V_(J,-b);var z=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(z=b%this.maximumIntegerDigits_,z<0&&(z=this.maximumIntegerDigits_+z),J=V_(J,z),b-=z,z=1):this.minimumIntegerDigits_<1?(b++,J=V_(J,-1)):(b-=this.minimumIntegerDigits_-1,J=V_(J,this.minimumIntegerDigits_-
1));aR$(this,J,z,F);k32(this,b,F)}}else aR$(this,C,this.minimumIntegerDigits_,F);else F.push(Cq(this).INFINITY);V?G.negative_suffix?F.push(G.negative_suffix):(isFinite(C)&&F.push(G.suffix),F.push(this.negativeSuffix_)):(isFinite(C)&&F.push(G.suffix),F.push(this.positiveSuffix_));return F.join("")};
var tVy=function(C,F){var G=V_(F,C.maximumFractionDigits_);C.significantDigits_>0&&(G=Uhr(G,C.significantDigits_,C.maximumFractionDigits_));G=Math.round(G);if(isFinite(G)){var V=Math.floor(V_(G,-C.maximumFractionDigits_));G=Math.floor(G-V_(V,C.maximumFractionDigits_));if(G<0||G>=V_(1,C.maximumFractionDigits_))V=Math.round(F),G=0}else V=F,G=0;return{intValue:V,fracValue:G}},aR$=function(C,F,G,V){if(C.minimumFractionDigits_>C.maximumFractionDigits_)throw Error("me");
V||(V=[]);F=tVy(C,F);var J=F.intValue,b=F.fracValue,z=C.minimumFractionDigits_>0||b>0||!1;F=C.minimumFractionDigits_;z&&(F=C.minimumFractionDigits_);for(var Q="",E=J;E>1E20;)Q="0"+Q,E=Math.round(V_(E,-1));Q=E+Q;var t=Cq(C).DECIMAL_SEP;E=Cq(C).ZERO_DIGIT.codePointAt(0);var k=Q.length,U=0;if(J>0||G>0){for(J=k;J<G;J++)V.push(String.fromCodePoint(E));if(C.groupingArray_.length>=2)for(G=1;G<C.groupingArray_.length;G++)U+=C.groupingArray_[G];G=k-U;if(G>0){J=C.groupingArray_;U=k=0;for(var H,l=Cq(C).GROUP_SEP,
N=Q.length,S=0;S<N;S++)if(V.push(String.fromCodePoint(E+Number(Q.charAt(S)))),N-S>1)if(H=J[U],S<G){var f=G-S;(H===1||H>0&&f%H===1)&&V.push(l)}else U<J.length&&(S===G?U+=1:H===S-G-k+1&&(V.push(l),k+=H,U+=1))}else{G=Q;Q=C.groupingArray_;J=Cq(C).GROUP_SEP;H=G.length;l=[];for(k=Q.length-1;k>=0&&H>0;k--){U=Q[k];for(N=0;N<U&&H-N-1>=0;N++)l.push(String.fromCodePoint(E+Number(G.charAt(H-N-1))));H-=U;H>0&&l.push(J)}V.push.apply(V,l.reverse())}}else z||V.push(String.fromCodePoint(E));(C.decimalSeparatorAlwaysShown_||
z)&&V.push(t);b=String(b);z=b.split("e+");z.length==2&&(b=String(Uhr(parseFloat(z[0]),C.significantDigits_,1)),b=b.replace(".",""),b+=(0,_.Ci7)("0",parseInt(z[1],10)-b.length+1));C.maximumFractionDigits_+1>b.length&&(b="1"+(0,_.Ci7)("0",C.maximumFractionDigits_-b.length)+b);for(C=b.length;b.charAt(C-1)=="0"&&C>F+1;)C--;for(F=1;F<C;F++)V.push(String.fromCodePoint(E+Number(b.charAt(F))))},k32=function(C,F,G){G.push(Cq(C).EXP_SYMBOL);
F<0?(F=-F,G.push(Cq(C).MINUS_SIGN)):C.useSignForPositiveExponent_&&G.push(Cq(C).PLUS_SIGN);F=""+F;for(var V=Cq(C).ZERO_DIGIT,J=F.length;J<C.minExponentDigits_;J++)G.push(V);C=V.codePointAt(0)-HY8;for(V=0;V<F.length;V++)G.push(String.fromCodePoint(C+F.codePointAt(V)))},IRu=function(C,F){F=F.codePointAt(0);
if(48<=F&&F<58)return F-48;C=Cq(C).ZERO_DIGIT.codePointAt(0);return C<=F&&F<C+10?F-C:-1},HY8="0".codePointAt(0),QyG=function(C,F,G){for(var V="",J=!1,b=F.length;G[0]<b;G[0]++){var z=F.charAt(G[0]);
if(z=="'")G[0]+1<b&&F.charAt(G[0]+1)=="'"?(G[0]++,V+="'"):J=!J;else if(J)V+=z;else switch(z){case "#":case "0":case ",":case ".":case ";":return V;case "\u00a4":if(G[0]+1<b&&F.charAt(G[0]+1)=="\u00a4")G[0]++,V+=Fs(C);else switch(C.currencyStyle_){case 0:z=Fs(C);V+=z in TT?TT[z][1]:z;break;case 2:z=Fs(C);var Q=TT[z];V+=Q?z==Q[1]?z:z+" "+Q[1]:z;break;case 1:z=Fs(C),V+=z in TT?TT[z][2]:z}break;case "%":if(!C.negativePercentSignExpected_&&C.multiplier_!=1)throw Error("ne");if(C.negativePercentSignExpected_&&
C.multiplier_!=100)throw Error("oe");C.multiplier_=100;C.negativePercentSignExpected_=!1;V+=Cq(C).PERCENT;break;case "\u2030":if(!C.negativePercentSignExpected_&&C.multiplier_!=1)throw Error("ne");if(C.negativePercentSignExpected_&&C.multiplier_!=1E3)throw Error("oe");C.multiplier_=1E3;C.negativePercentSignExpected_=!1;V+=Cq(C).PERMILL;break;default:V+=z}}return V},GD={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},EbS=function(C,F){C=C.compactStyle_==1?Yr.COMPACT_DECIMAL_SHORT_PATTERN:Yr.COMPACT_DECIMAL_LONG_PATTERN;C==null&&(C=Yr.COMPACT_DECIMAL_SHORT_PATTERN);if(F<3)return GD;F=Math.min(14,F);var G=C[V_(1,F)];for(--F;!G&&F>=3;)G=C[V_(1,F)],F--;if(!G)return GD;G=G.other;var V=C="",J=G.indexOf(";");J>=0&&(G=G.substring(0,J),J=G.substring(J+1))&&(V=/([^0]*)(0+)(.*)/.exec(J),C=V[1],V=V[3]);return G&&G!="0"?(G=/([^0]*)(0+)(.*)/.exec(G))?{divisorBase:F+
1-(G[2].length-1),negative_prefix:C,negative_suffix:V,prefix:G[1],suffix:G[3]}:GD:GD},Weu=function(C){if(!isFinite(C))return C>0?C:0;
for(var F=0;(C/=10)>=1;)F++;return F},V_=function(C,F){if(!C||!isFinite(C)||F==0)return C;
C=String(C).split("e");return parseFloat(C[0]+"e"+(parseInt(C[1]||0,10)+F))},lRl=function(C,F){return C&&isFinite(C)?V_(Math.round(V_(C,F)),-F):C},Uhr=function(C,F,G){if(!C)return C;
F=F-Weu(C)-1;return F<-G?lRl(C,-G):lRl(C,F)};var ymo=function(C){return C%10==1&&C%100!=11?"one":C%10==2&&C%100!=12?"two":C%10==3&&C%100!=13?"few":"other"},ZYl=ymo;
ZYl=ymo;var Nvu=function(C,F){var G=C|0;if(void 0===F){F=Math;var V=F.min,J=C+"",b=J.indexOf(".");F=V.call(F,b===-1?0:J.length-b-1,3)}V=Math.pow(10,F);C={v:F,f:(C*V|0)%V};return G==1&&C.v==0?"one":"other"},BY=Nvu;
BY=Nvu;var MVE=function(C){this.JSC$11461_pattern_=C;this.parsedPattern_=this.literals_=this.initialLiterals_=null;C=bY2;var F=Yr;if(OYr!==C||Xlm!==F)OYr=C,Xlm=F,wly=new _.vY(1);this.numberFormatter_=wly},OYr=null,Xlm=null,wly=null,SIu=RegExp("'([{}#].*?)'","g"),LeG=RegExp("''","g");
MVE.prototype.format=function(C){if(this.JSC$11461_pattern_){this.initialLiterals_=[];var F=BvP(this,this.JSC$11461_pattern_);this.parsedPattern_=vbO(this,F);this.JSC$11461_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.Po(this.initialLiterals_),F=[],fRS(this,this.parsedPattern_,C,!1,F),C=F.join("");this.literals_.length>0;)C=C.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else C="";return C};
var fRS=function(C,F,G,V,J){for(var b=0;b<F.length;b++)switch(F[b].type){case 4:J.push(F[b].value);break;case 3:var z=F[b].value;var Q=C,E=J,t=G[z];t===void 0?E.push("Undefined parameter - "+z):(Q.literals_.push(t),E.push(Q.buildPlaceholder_(Q.literals_)));break;case 2:z=F[b].value;Q=C;E=G;t=V;var k=J,U=z.argumentIndex;E[U]===void 0?k.push("Undefined parameter - "+U):(U=z[E[U]],U===void 0&&(U=z.other),fRS(Q,U,E,t,k));break;case 0:z=F[b].value;hNP(C,z,G,BY,V,J);break;case 1:z=F[b].value,hNP(C,z,G,
ZYl,V,J)}},hNP=function(C,F,G,V,J,b){var z=F.argumentIndex,Q=F.argumentOffset,E=+G[z];
isNaN(E)?b.push("Undefined or invalid parameter - "+z):(Q=E-Q,z=F[G[z]],z===void 0&&(V=V(Math.abs(Q)),z=F[V],z===void 0&&(z=F.other)),F=[],fRS(C,z,G,J,F),G=F.join(""),J?b.push(G):(C=C.numberFormatter_.format(Q),b.push(G.replace(/#/g,C))))},BvP=function(C,F){var G=C.initialLiterals_,V=C.buildPlaceholder_.bind(C);
F=F.replace(LeG,function(){G.push("'");return V(G)});
return F=F.replace(SIu,function(J,b){G.push(b);return V(G)})},cm7=function(C){var F=0,G=[],V=[],J=/[{}]/g;
J.lastIndex=0;for(var b;b=J.exec(C);){var z=b.index;b[0]=="}"?(G.pop(),G.length==0&&(b={type:1},b.value=C.substring(F,z),V.push(b),F=z+1)):(G.length==0&&(F=C.substring(F,z),F!=""&&V.push({type:0,value:F}),F=z+1),G.push("{"))}C=C.substring(F);C!=""&&V.push({type:0,value:C});return V},AmP=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,eNP=/^\s*(\w+)\s*,\s*selectordinal\s*,/,dhu=/^\s*(\w+)\s*,\s*select\s*,/,vbO=function(C,F){var G=[];
F=cm7(F);for(var V=0;V<F.length;V++){var J={};if(0==F[V].type)J.type=4,J.value=F[V].value;else if(1==F[V].type){var b=F[V].value;switch(AmP.test(b)?0:eNP.test(b)?1:dhu.test(b)?2:/^\s*\w+\s*/.test(b)?3:5){case 2:J.type=2;J.value=xh7(C,F[V].value);break;case 0:J.type=0;J.value=sy2(C,F[V].value);break;case 1:J.type=1;J.value=qIm(C,F[V].value);break;case 3:J.type=3,J.value=F[V].value}}G.push(J)}return G},xh7=function(C,F){var G="";
F=F.replace(dhu,function(Q,E){G=E;return""});
var V={};V.argumentIndex=G;F=cm7(F);for(var J=0;J<F.length;){var b=F[J].value;J++;var z=void 0;1==F[J].type&&(z=vbO(C,F[J].value));V[b.replace(/\s/g,"")]=z;J++}return V},sy2=function(C,F){var G="",V=0;
F=F.replace(AmP,function(E,t,k){G=t;k&&(V=parseInt(k,10));return""});
var J={};J.argumentIndex=G;J.argumentOffset=V;F=cm7(F);for(var b=0;b<F.length;){var z=F[b].value;b++;var Q=void 0;1==F[b].type&&(Q=vbO(C,F[b].value));J[z.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=Q;b++}return J},qIm=function(C,F){var G="";
F=F.replace(eNP,function(Q,E){G=E;return""});
var V={};V.argumentIndex=G;V.argumentOffset=0;F=cm7(F);for(var J=0;J<F.length;){var b=F[J].value;J++;var z=void 0;1==F[J].type&&(z=vbO(C,F[J].value));V[b.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=z;J++}return V};
MVE.prototype.buildPlaceholder_=function(C){return"\ufddf_"+(C.length-1).toString(10)+"_"};var $mA=function(){var C={style:1},F=PCS;this.style_=(C==null?void 0:C.style)||0;this.durationSymbols_=F||G3l},gbG=function(C,F){switch(F){default:case "years":return C.durationSymbols_.YEAR;
case "months":return C.durationSymbols_.MONTH;case "weeks":return C.durationSymbols_.WEEK;case "days":return C.durationSymbols_.DAY;case "hours":return C.durationSymbols_.HOUR;case "minutes":return C.durationSymbols_.MINUTE;case "seconds":return C.durationSymbols_.SECOND}},iJ=function(C,F,G){a:{G=gbG(C,G);
switch(C.style_){case 1:if(G.LONG!=void 0){C=G.LONG;break a}case 2:if(G.NARROW!=void 0){C=G.NARROW;break a}default:C=G.SHORT;break a}C=void 0}return C?(new MVE("{DURATION_VALUE,plural,"+C+"}")).format({DURATION_VALUE:F}):""};
$mA.prototype.format=function(C){var F=[],G=C.years,V=C.months,J=C.weeks,b=C.days,z=C.hours,Q=C.minutes;C=C.seconds;G!=null&&F.push(iJ(this,G,"years"));V!=null&&F.push(iJ(this,V,"months"));J!=null&&F.push(iJ(this,J,"weeks"));b!=null&&F.push(iJ(this,b,"days"));z!=null&&F.push(iJ(this,z,"hours"));Q!=null&&F.push(iJ(this,Q,"minutes"));C!=null&&F.push(iJ(this,C,"seconds"));return(new iYu).format(F)};var RN7;
RN7={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 mmq=function(){this.rdtfSymbols_=YIu||RN7;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
mmq.prototype.format=function(C,F){a:{F=Tv8(this,F);switch(this.style_){case 2:if(F.NARROW!=void 0){F=F.NARROW;break a}case 1:if(F.SHORT!=void 0){F=F.SHORT;break a}default:F=F.LONG;break a}F=void 0}if(!this.alwaysNumeric_&&F&&F.R&&F.R[""+C])C=F.R[""+C];else if(F){var G=Math.abs(C);C=(new MVE("{N,plural,"+(C>0||C==0&&1/C==Infinity?F.F:F.P)+"}")).format({N:G})}else C="";return C};
var Tv8=function(C,F){switch(F){default:case 0:return C.rdtfSymbols_.YEAR;case 1:return C.rdtfSymbols_.QUARTER;case 2:return C.rdtfSymbols_.MONTH;case 3:return C.rdtfSymbols_.WEEK;case 4:return C.rdtfSymbols_.DAY;case 5:return C.rdtfSymbols_.HOUR;case 6:return C.rdtfSymbols_.MINUTE;case 7:return C.rdtfSymbols_.SECOND}};var ob8=function(C,F,G,V,J,b,z,Q){this.x0=C;this.y0=F;this.x1=G;this.y1=V;this.x2=J;this.y2=b;this.x3=z;this.y3=Q};
ob8.prototype.clone=function(){return new ob8(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
ob8.prototype.equals=function(C){return this.x0==C.x0&&this.y0==C.y0&&this.x1==C.x1&&this.y1==C.y1&&this.x2==C.x2&&this.y2==C.y2&&this.x3==C.x3&&this.y3==C.y3};
var rmy=function(C,F){if(F==0)return C.x0;if(F==1)return C.x3;var G=HN(C.x0,C.x1,F),V=HN(C.x1,C.x2,F);C=HN(C.x2,C.x3,F);G=HN(G,V,F);V=HN(V,C,F);return HN(G,V,F)},Kel=function(C,F){var G=(F-C.x0)/(C.x3-C.x0);
if(G<=0)return 0;if(G>=1)return 1;for(var V=0,J=1,b=0,z=0;z<8;z++){b=rmy(C,G);var Q=(rmy(C,G+1E-6)-b)/1E-6;if(Math.abs(b-F)<1E-6)return G;if(Math.abs(Q)<1E-6)break;else b<F?V=G:J=G,G-=(b-F)/Q}for(z=0;Math.abs(b-F)>1E-6&&z<8;z++)b<F?(V=G,G=(G+J)/2):(J=G,G=(G+V)/2),b=rmy(C,G);return G};var JY=function(){_.lT.call(this);this.JSC$11482_name_="closure_frame"+Dh8++;this.iframesForDisposal_=[];plo[this.JSC$11482_name_]=this},$H;
_.RE(JY,_.lT);var plo={},Dh8=0,mhm=function(C,F){var G=vj(C);VQu(F,function(V,J){Array.isArray(V)||(V=[V]);_.F$(V,function(b){b=G.JSC$9327_createDom("INPUT",{type:"hidden",name:J,value:b});C.appendChild(b)})})};
_.n=JY.prototype;_.n.JSC$11484_form_=null;_.n.JSC$11484_iframe_=null;_.n.iframeName_=null;_.n.nextIframeId_=0;_.n.JSC$11484_active_=!1;_.n.complete_=!1;_.n.success_=!1;_.n.lastContent_=null;_.n.JSC$11484_lastErrorCode_=0;_.n.iframeDisposalTimer_=null;
_.n.send=function(C,F,G,V){if(this.JSC$11484_active_)throw Error("ue");C=new _.dz(C);F=F?F.toUpperCase():"GET";G&&_.bx(C);$H||($H=_.NE("FORM"),$H.acceptCharset="utf-8",G=$H.style,G.position="absolute",G.visibility="hidden",G.top=G.left="-10px",G.width=G.height="10px",G.overflow="hidden",document.body.appendChild($H));this.JSC$11484_form_=$H;F=="GET"&&mhm(this.JSC$11484_form_,C.JSC$10031_queryData_);V&&mhm(this.JSC$11484_form_,V);G=C.toString();G=PHT(G);V=this.JSC$11484_form_;G=_.Yl(ch(G));G!==void 0&&
(V.action=G);this.JSC$11484_form_.method=F;Cdr(this);jvy(this)};
_.n.abort=function(C){if(this.JSC$11484_active_){var F=bJ(this);if(F)if(k8(F))F.removeAllListeners(void 0);else if(F=UW(F)){var G=0,V;for(V in F.listeners)for(var J=F.listeners[V].concat(),b=0;b<J.length;++b)ua(J[b])&&++G}this.success_=this.JSC$11484_active_=this.complete_=!1;this.JSC$11484_lastErrorCode_=C||7;this.dispatchEvent("abort");F8G(this)}};
_.n.disposeInternal=function(){this.JSC$11484_active_&&this.abort();JY.superClass_.disposeInternal.call(this);this.JSC$11484_iframe_&&GZ8(this);jvy(this);this.JSC$11484_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11484_form_=null;this.JSC$11484_lastErrorCode_=0;delete plo[this.JSC$11482_name_]};
_.n.isComplete=function(){return this.complete_};
_.n.isSuccess=function(){return this.success_};
_.n.isActive=function(){return this.JSC$11484_active_};
_.n.getResponseText=function(){return this.lastContent_};
_.n.getLastError=function(){return _.h7S(this.JSC$11484_lastErrorCode_)};
var Cdr=function(C){C.JSC$11484_active_=!0;C.complete_=!1;C.JSC$11484_lastErrorCode_=0;C.iframeName_=C.JSC$11482_name_+"_"+(C.nextIframeId_++).toString(36);C.JSC$11484_iframe_=vj(C.JSC$11484_form_).JSC$9327_createDom("IFRAME",{name:C.iframeName_,id:C.iframeName_});var F=C.JSC$11484_iframe_.style;F.visibility="hidden";F.width=F.height="10px";F.display="none";_.Do?F.marginTop=F.marginLeft="-10px":(F.position="absolute",F.top=F.left="-10px");vj(C.JSC$11484_form_).JSC$9325_document_.body.appendChild(C.JSC$11484_iframe_);
F=C.iframeName_+"_inner";var G=HAP(C.JSC$11484_iframe_);if(document.baseURI){var V=pZ(F);V='<head><base href="'+pZ(document.baseURI)+'"></head><body><iframe id="'+V+'" name="'+V+'"></iframe>';V=D0(V)}else V=pZ(F),V=D0('<body><iframe id="'+V+'" name="'+V+'"></iframe>');G.write(pT(V));_.IP(G.getElementById(F),"load",C.onIframeLoaded_,!1,C);V=Lf("TEXTAREA",C.JSC$11484_form_);for(var J=0,b=V.length;J<b;J++){var z=V[J].value;Xj8(V[J])!=z&&(_.BN(V[J],z),V[J].value=z)}V=G.importNode(C.JSC$11484_form_,!0);
V.target=F;V.action=C.JSC$11484_form_.action;G.body.appendChild(V);J=Lf("SELECT",C.JSC$11484_form_);b=Lf("SELECT",V);z=0;for(var Q=J.length;z<Q;z++)for(var E=Lf("OPTION",J[z]),t=Lf("OPTION",b[z]),k=0,U=E.length;k<U;k++)t[k].selected=E[k].selected;J=Lf("INPUT",C.JSC$11484_form_);b=Lf("INPUT",V);z=0;for(Q=J.length;z<Q;z++)if(J[z].type=="file"&&J[z].value!=b[z].value){C.JSC$11484_form_.target=F;V=C.JSC$11484_form_;break}try{C.errorHandled_=!1,V.submit(),G.close(),_.KV&&setTimeout(C.testForFirefoxSilentError_.bind(C),
250)}catch(H){_.Hd(G.getElementById(F),"load",C.onIframeLoaded_,!1,C),G.close(),nq(C,2)}};
JY.prototype.onIframeLoaded_=function(){_.Hd(bJ(this),"load",this.onIframeLoaded_,!1,this);try{var C=this.JSC$11484_iframe_?HAP(bJ(this)):null;this.complete_=!0;this.JSC$11484_active_=!1;try{var F=C.body;this.lastContent_=F.textContent||F.innerText}catch(J){var G=1}var V;G||typeof this.errorChecker_!="function"||(V=this.errorChecker_(C))&&(G=4);G?nq(this,G):(this.success_=!0,this.JSC$11484_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),F8G(this))}catch(J){nq(this,1)}};
var nq=function(C,F){C.errorHandled_||(C.success_=!1,C.JSC$11484_active_=!1,C.complete_=!0,C.JSC$11484_lastErrorCode_=F,C.dispatchEvent("complete"),C.dispatchEvent("error"),F8G(C),C.errorHandled_=!0)},F8G=function(C){GZ8(C);
jvy(C);C.JSC$11484_form_=null;C.dispatchEvent("ready")},GZ8=function(C){var F=C.JSC$11484_iframe_;
F&&(F.onreadystatechange=null,F.onload=null,F.onerror=null,C.iframesForDisposal_.push(F));C.iframeDisposalTimer_&&(clearTimeout(C.iframeDisposalTimer_),C.iframeDisposalTimer_=null);_.KV?C.iframeDisposalTimer_=setTimeout(C.disposeIframes_.bind(C),2E3):C.disposeIframes_();C.JSC$11484_iframe_=null;C.iframeName_=null};
JY.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var C=this.iframesForDisposal_.pop();_.So(C)}};
var jvy=function(C){C.JSC$11484_form_&&C.JSC$11484_form_==$H&&_.w8(C.JSC$11484_form_)},bJ=function(C){return C.JSC$11484_iframe_?HAP(C.JSC$11484_iframe_).getElementById(C.iframeName_+"_inner"):null};
JY.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11484_active_){var C=this.JSC$11484_iframe_?HAP(bJ(this)):null;C&&!cG5(C,"documentUri")?(_.Hd(bJ(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?nq(this,3):nq(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.uJ=function(C){return C=="\r"||C=="\n"||C==" "||C=="\t"};var VZO;_.zD=function(C){this.errorMessage_=null;this.result_=[];this.JSC$11486_buffer_="";this.stack_=[];this.JSC$11486_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!C||!C.deliverMessageAsRawString)};
VZO={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};_.zD.prototype.isInputValid=function(){return this.streamState_!=3};
_.zD.prototype.done=function(){return this.streamState_===2};
var Q_=function(C,F,G){C.streamState_=3;C.errorMessage_="The stream is broken @"+C.JSC$11486_pos_+"/"+G+". With input:\n"+F;throw Error(C.errorMessage_);};
_.zD.prototype.acceptsBinaryInput=function(){return!1};
_.zD.prototype.parse=function(C){function F(){for(;H<C.length;)if(_.uJ(C[H]))H++,b.JSC$11486_pos_++;else break;return H<t}
function G(){for(var N;;){N=C[H++];if(!N)break;b.JSC$11486_pos_++;switch(b.state_){case E.INIT:N==="{"?b.state_=E.OBJECT_OPEN:N==="["?b.state_=E.ARRAY_OPEN:_.uJ(N)||Q_(b,C,H);continue;case E.KEY_START:case E.OBJECT_OPEN:if(_.uJ(N))continue;if(b.state_===E.KEY_START)z.push(E.KEY_END);else if(N==="}"){J("{}");b.state_=V();continue}else z.push(E.OBJECT_END);N==='"'?b.state_=E.STRING:Q_(b,C,H);continue;case E.KEY_END:case E.OBJECT_END:if(_.uJ(N))continue;N===":"?(b.state_===E.OBJECT_END&&(z.push(E.OBJECT_END),
b.depth_++),b.state_=E.VALUE):N==="}"?(b.depth_--,J(),b.state_=V()):N===","?(b.state_===E.OBJECT_END&&z.push(E.OBJECT_END),b.state_=E.KEY_START):Q_(b,C,H);continue;case E.ARRAY_OPEN:case E.VALUE:if(_.uJ(N))continue;if(b.state_===E.ARRAY_OPEN)if(b.depth_++,b.state_=E.VALUE,N==="]"){b.depth_--;if(b.depth_===0){b.state_=E.ARRAY_END;return}J("[]");b.state_=V();continue}else z.push(E.ARRAY_END);N==='"'?b.state_=E.STRING:N==="{"?b.state_=E.OBJECT_OPEN:N==="["?b.state_=E.ARRAY_OPEN:N==="t"?b.state_=E.TRUE1:
N==="f"?b.state_=E.FALSE1:N==="n"?b.state_=E.NULL1:N!=="-"&&("0123456789".indexOf(N)!==-1?b.state_=E.NUM_DIGIT:Q_(b,C,H));continue;case E.ARRAY_END:if(N===",")z.push(E.ARRAY_END),b.state_=E.VALUE,b.depth_===1&&(U=H);else if(N==="]"){b.depth_--;if(b.depth_===0)return;J();b.state_=V()}else if(_.uJ(N))continue;else Q_(b,C,H);continue;case E.STRING:var S=H;a:for(;;){for(;b.unicodeCount_>0;)if(N=C[H++],b.unicodeCount_===4?b.unicodeCount_=0:b.unicodeCount_++,!N)break a;if(N==='"'&&!b.slashed_){b.state_=
V();break}if(N==="\\"&&!b.slashed_&&(b.slashed_=!0,N=C[H++],!N))break;if(b.slashed_)if(b.slashed_=!1,N==="u"&&(b.unicodeCount_=1),N=C[H++])continue;else break;Q.lastIndex=H;N=Q.exec(C);if(!N){H=C.length+1;break}H=N.index+1;N=C[N.index];if(!N)break}b.JSC$11486_pos_+=H-S;continue;case E.TRUE1:if(!N)continue;N==="r"?b.state_=E.TRUE2:Q_(b,C,H);continue;case E.TRUE2:if(!N)continue;N==="u"?b.state_=E.TRUE3:Q_(b,C,H);continue;case E.TRUE3:if(!N)continue;N==="e"?b.state_=V():Q_(b,C,H);continue;case E.FALSE1:if(!N)continue;
N==="a"?b.state_=E.FALSE2:Q_(b,C,H);continue;case E.FALSE2:if(!N)continue;N==="l"?b.state_=E.FALSE3:Q_(b,C,H);continue;case E.FALSE3:if(!N)continue;N==="s"?b.state_=E.FALSE4:Q_(b,C,H);continue;case E.FALSE4:if(!N)continue;N==="e"?b.state_=V():Q_(b,C,H);continue;case E.NULL1:if(!N)continue;N==="u"?b.state_=E.NULL2:Q_(b,C,H);continue;case E.NULL2:if(!N)continue;N==="l"?b.state_=E.NULL3:Q_(b,C,H);continue;case E.NULL3:if(!N)continue;N==="l"?b.state_=V():Q_(b,C,H);continue;case E.NUM_DECIMAL_POINT:N===
"."?b.state_=E.NUM_DIGIT:Q_(b,C,H);continue;case E.NUM_DIGIT:if("0123456789.eE+-".indexOf(N)!==-1)continue;else H--,b.JSC$11486_pos_--,b.state_=V();continue;default:Q_(b,C,H)}}}
function V(){var N=z.pop();return N!=null?N:E.VALUE}
function J(N){b.depth_>1||(N||(N=U===-1?b.JSC$11486_buffer_+C.substring(k,H):C.substring(U,H)),b.deliverMessageAsRawString_?b.result_.push(N):b.result_.push(JSON.parse(N)),U=H)}
for(var b=this,z=b.stack_,Q=b.stringInputPattern_,E=VZO,t=C.length,k=0,U=-1,H=0;H<t;)switch(b.streamState_){case 3:return Q_(b,C,H),null;case 2:return F()&&Q_(b,C,H),null;case 0:if(F()){var l=C[H++];b.JSC$11486_pos_++;if(l==="["){b.streamState_=1;k=H;b.state_=E.ARRAY_OPEN;continue}else Q_(b,C,H)}return null;case 1:return G(),b.depth_===0&&b.state_==E.ARRAY_END?(b.streamState_=2,b.JSC$11486_buffer_=C.substring(H)):b.JSC$11486_buffer_=U===-1?b.JSC$11486_buffer_+C.substring(k):C.substring(U),b.result_.length>
0?(l=b.result_,b.result_=[],l):null}return null};_.RE(_.Zc,dj);Nk.prototype.getValue=function(){return this.JSC$11494_value_};
Nk.prototype.clone=function(){return new Nk(this.JSC$11494_key_,this.JSC$11494_value_)};var IY=function(C){this.nodes_=[];if(C)a:{if(C instanceof IY){var F=C.getKeys();C=C.getValues();if(this.getCount()<=0){for(var G=this.nodes_,V=0;V<F.length;V++)G.push(new Nk(F[V],C[V]));break a}}else F=_.xf.getKeys(C),C=_.xf.getValues(C);for(G=0;G<F.length;G++)this.insert(F[G],C[G])}};
_.n=IY.prototype;_.n.insert=function(C,F){var G=this.nodes_;G.push(new Nk(C,F));C=G.length-1;F=this.nodes_;for(G=F[C];C>0;){var V=C-1>>1;if(F[V].JSC$11494_key_>G.JSC$11494_key_)F[C]=F[V],C=V;else break}F[C]=G};
_.n.remove=function(){var C=this.nodes_,F=C.length,G=C[0];if(!(F<=0)){if(F==1)C.length=0;else{C[0]=C.pop();C=0;F=this.nodes_;for(var V=F.length,J=F[C];C<V>>1;){var b=C*2+1,z=C*2+2;b=z<V&&F[z].JSC$11494_key_<F[b].JSC$11494_key_?z:b;if(F[b].JSC$11494_key_>J.JSC$11494_key_)break;F[C]=F[b];C=b}F[C]=J}return G.getValue()}};
_.n.peek=function(){var C=this.nodes_;if(C.length!=0)return C[0].getValue()};
_.n.getValues=function(){for(var C=this.nodes_,F=[],G=C.length,V=0;V<G;V++)F.push(C[V].getValue());return F};
_.n.getKeys=function(){for(var C=this.nodes_,F=[],G=C.length,V=0;V<G;V++)F.push(C[V].JSC$11494_key_);return F};
_.n.containsValue=function(C){return this.nodes_.some(function(F){return F.getValue()==C})};
_.n.containsKey=function(C){return this.nodes_.some(function(F){return F.JSC$11494_key_==C})};
_.n.clone=function(){return new IY(this)};
_.n.getCount=function(){return this.nodes_.length};
_.n.isEmpty=function(){return this.nodes_.length===0};
_.n.clear=function(){this.nodes_.length=0};_.EX=function(C,F){this.JSC$11500_map_={};this.JSC$11500_keys_=[];this.version_=this.size=0;var G=arguments.length;if(G>1){if(G%2)throw Error("ma");for(var V=0;V<G;V+=2)this.set(arguments[V],arguments[V+1])}else C&&this.addAll(C)};
_.n=_.EX.prototype;_.n.getCount=function(){return this.size};
_.n.getValues=function(){WP(this);for(var C=[],F=0;F<this.JSC$11500_keys_.length;F++)C.push(this.JSC$11500_map_[this.JSC$11500_keys_[F]]);return C};
_.n.getKeys=function(){WP(this);return this.JSC$11500_keys_.concat()};
_.n.containsKey=function(C){return this.has(C)};
_.n.has=function(C){return tY(this.JSC$11500_map_,C)};
_.n.containsValue=function(C){for(var F=0;F<this.JSC$11500_keys_.length;F++){var G=this.JSC$11500_keys_[F];if(tY(this.JSC$11500_map_,G)&&this.JSC$11500_map_[G]==C)return!0}return!1};
_.n.equals=function(C,F){if(this===C)return!0;if(this.size!=C.getCount())return!1;F=F||i3u;WP(this);for(var G,V=0;G=this.JSC$11500_keys_[V];V++)if(!F(this.get(G),C.get(G)))return!1;return!0};
var i3u=function(C,F){return C===F};
_.EX.prototype.isEmpty=function(){return this.size==0};
_.EX.prototype.clear=function(){this.JSC$11500_map_={};this.version_=this.size=this.JSC$11500_keys_.length=0};
_.EX.prototype.remove=function(C){return this.delete(C)};
_.EX.prototype.delete=function(C){return tY(this.JSC$11500_map_,C)?(delete this.JSC$11500_map_[C],--this.size,this.version_++,this.JSC$11500_keys_.length>2*this.size&&WP(this),!0):!1};
var WP=function(C){if(C.size!=C.JSC$11500_keys_.length){for(var F=0,G=0;F<C.JSC$11500_keys_.length;){var V=C.JSC$11500_keys_[F];tY(C.JSC$11500_map_,V)&&(C.JSC$11500_keys_[G++]=V);F++}C.JSC$11500_keys_.length=G}if(C.size!=C.JSC$11500_keys_.length){F={};for(V=G=0;G<C.JSC$11500_keys_.length;){var J=C.JSC$11500_keys_[G];tY(F,J)||(C.JSC$11500_keys_[V++]=J,F[J]=1);G++}C.JSC$11500_keys_.length=V}};
_.n=_.EX.prototype;_.n.get=function(C,F){return tY(this.JSC$11500_map_,C)?this.JSC$11500_map_[C]:F};
_.n.set=function(C,F){tY(this.JSC$11500_map_,C)||(this.size+=1,this.JSC$11500_keys_.push(C),this.version_++);this.JSC$11500_map_[C]=F};
_.n.addAll=function(C){if(C instanceof _.EX)for(var F=C.getKeys(),G=0;G<F.length;G++)this.set(F[G],C.get(F[G]));else for(F in C)this.set(F,C[F])};
_.n.forEach=function(C,F){for(var G=this.getKeys(),V=0;V<G.length;V++){var J=G[V],b=this.get(J);C.call(F,b,J,this)}};
_.n.clone=function(){return new _.EX(this)};
_.n.transpose=function(){for(var C=new _.EX,F=0;F<this.JSC$11500_keys_.length;F++){var G=this.JSC$11500_keys_[F];C.set(this.JSC$11500_map_[G],G)}return C};
_.n.keys=function(){return y32(this.__iterator__(!0)).toEs6()};
_.n.values=function(){return y32(this.__iterator__(!1)).toEs6()};
_.n.entries=function(){var C=this;return sPS(this.keys(),function(F){return[F,C.get(F)]})};
_.n.__iterator__=function(C){WP(this);var F=0,G=this.version_,V=this,J=new $p;J.next=function(){if(G!=V.version_)throw Error("ve");if(F>=V.JSC$11500_keys_.length)return be;var b=V.JSC$11500_keys_[F++];return nx(C?b:V.JSC$11500_map_[b])};
return J};
var tY=function(C,F){return Object.prototype.hasOwnProperty.call(C,F)};var $xE=function(){this.JSC$11503_map_=new _.EX;this.JSC$11503_head_=new Jkl("");this.JSC$11503_head_.next=this.JSC$11503_head_.prev=this.JSC$11503_head_},b3y=function(C,F){if(F=C.JSC$11503_map_.get(F))F.remove(),C.insert_(F);
return F};
_.n=$xE.prototype;_.n.get=function(C,F){return(C=b3y(this,C))?C.value:F};
_.n.set=function(C,F){var G=b3y(this,C);G?G.value=F:(G=new Jkl(C,F),this.JSC$11503_map_.set(C,G),this.insert_(G))};
_.n.peek=function(){return this.JSC$11503_head_.next.value};
_.n.shift=function(){return nZE(this,this.JSC$11503_head_.next)};
_.n.pop=function(){return nZE(this,this.JSC$11503_head_.prev)};
_.n.remove=function(C){return(C=this.JSC$11503_map_.get(C))?(this.removeNode(C),!0):!1};
_.n.removeNode=function(C){C.remove();this.JSC$11503_map_.remove(C.key)};
_.n.getCount=function(){return this.JSC$11503_map_.getCount()};
_.n.isEmpty=function(){return this.JSC$11503_map_.isEmpty()};
_.n.getKeys=function(){return this.map(function(C,F){return F})};
_.n.getValues=function(){return this.map(function(C){return C})};
_.n.contains=function(C){return this.some(function(F){return F==C})};
_.n.containsKey=function(C){return this.JSC$11503_map_.containsKey(C)};
_.n.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11503_head_.prev)};
_.n.forEach=function(C,F){for(var G=this.JSC$11503_head_.next;G!=this.JSC$11503_head_;G=G.next)C.call(F,G.value,G.key,this)};
_.n.map=function(C,F){for(var G=[],V=this.JSC$11503_head_.next;V!=this.JSC$11503_head_;V=V.next)G.push(C.call(F,V.value,V.key,this));return G};
_.n.some=function(C,F){for(var G=this.JSC$11503_head_.next;G!=this.JSC$11503_head_;G=G.next)if(C.call(F,G.value,G.key,this))return!0;return!1};
_.n.every=function(C,F){for(var G=this.JSC$11503_head_.next;G!=this.JSC$11503_head_;G=G.next)if(!C.call(F,G.value,G.key,this))return!1;return!0};
_.n.insert_=function(C){C.next=this.JSC$11503_head_.next;C.prev=this.JSC$11503_head_;this.JSC$11503_head_.next=C;for(C.next.prev=C;this.getCount()>100;)this.removeNode(this.JSC$11503_head_.prev)};
var nZE=function(C,F){C.JSC$11503_head_!=F&&C.removeNode(F);return F.value},Jkl=function(C,F){this.key=C;
this.value=F};
Jkl.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var ucl=function(){IY.apply(this,arguments)};
_.O(ucl,IY);ucl.prototype.enqueue=function(C,F){this.insert(C,F)};var z1P=function(){var C=Error();C.name="SecurityError";throw C;},NrS=function(){return{get opener(){return null},
get closed(){return!0},get location(){z1P()},get document(){z1P()},postMessage:function(){},
close:function(){},
focus:function(){}}};var tI9={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 UEB={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 QvO={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(UEB).join("|");var IFm=function(){function C(Q){Q.substr(-1)!==";"&&(Q+=";");return z(Q)}
for(var F=Object.keys(QvO).sort(kiB),G=Object.keys(UEB).sort(kiB),V=0,J=0;V<G.length;V++)F[J]===G[V]?(G[V]+=";?",J++):G[V]+=";";var b=new RegExp("&(?:"+G.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),z=Hkw();return function(Q){return String(Q).replace(b,C)}}();/*

 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 EZr={};var W82=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"),tZy=/[\\&]/,aF7=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),kZr=RegExp('[&<>"]',"g"),Uxr=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),H3l=function(C){return C.charCodeAt(0)===92?C.charAt(1):IFm(C)},lFr=function(C){return tZy.test(C)?C.replace(aF7,H3l):C},yk2=function(C){try{var F,G="";
if(typeof J!=="string"){var V=J;var J=";/?:@&=+$,-_.!~*'()#"}typeof V==="undefined"&&(V=!0);var b,z=EZr[J];if(z)var Q=z;else{z=EZr[J]=[];for(b=0;b<128;b++){var E=String.fromCharCode(b);/^[0-9a-z]$/i.test(E)?z.push(E):z.push("%"+("0"+b.toString(16).toUpperCase()).slice(-2))}for(b=0;b<J.length;b++)z[J.charCodeAt(b)]=J[b];Q=z}var t=0;for(F=C.length;t<F;t++){var k=C.charCodeAt(t);if(V&&k===37&&t+2<F&&/^[0-9a-f]{2}$/i.test(C.slice(t+1,t+3)))G+=C.slice(t,t+3),t+=2;else if(k<128)G+=Q[k];else if(k>=55296&&
k<=57343){if(k>=55296&&k<=56319&&t+1<F){var U=C.charCodeAt(t+1);if(U>=56320&&U<=57343){G+=encodeURIComponent(C[t]+C[t+1]);t++;continue}}G+="%EF%BF%BD"}else G+=encodeURIComponent(C[t])}return G}catch(H){return C}},Z3O=function(C){switch(C){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return C}},aY=function(C,F){return kZr.test(C)?F?C.replace(Uxr,Z3O):C.replace(kZr,Z3O):C};/*

 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 kH;if(String.fromCodePoint)kH=function(C){try{return String.fromCodePoint(C)}catch(F){if(F instanceof RangeError)return String.fromCharCode(65533);throw F;}};
else{var NJO=String.fromCharCode,O3y=Math.floor;kH=function(){var C=[],F=-1,G=arguments.length;if(!G)return"";for(var V="";++F<G;){var J=Number(arguments[F]);if(!isFinite(J)||J<0||J>1114111||O3y(J)!==J)return String.fromCharCode(65533);if(J<=65535)C.push(J);else{J-=65536;var b=(J>>10)+55296;J=J%1024+56320;C.push(b,J)}if(F+1===G||C.length>16384)V+=NJO.apply(null,C),C.length=0}return V}};var XxP=function(C){this.root=this.current=C;this.entering=!0};
XxP.prototype.next=function(){var C=this.current,F=this.entering;if(C===null)return null;a:switch(C._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 G=!0;break a;default:G=!1}F&&G?C._firstChild?(this.current=C._firstChild,this.entering=!0):this.entering=!1:C===this.root?this.current=null:C._next===null?(this.current=
C._parent,this.entering=!1):(this.current=C._next,this.entering=!0);return{entering:F,node:C}};
var Mk=function(C,F){this._type=C;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=F;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};
Mk.prototype.appendChild=function(C){C.unlink();C._parent=this;this._lastChild?(this._lastChild._next=C,C._prev=this._lastChild):this._firstChild=C;this._lastChild=C};
Mk.prototype.unlink=function(){this._prev?this._prev._next=this._next:this._parent&&(this._parent._firstChild=this._next);this._next?this._next._prev=this._prev:this._parent&&(this._parent._lastChild=this._prev);this._prev=this._next=this._parent=null};
var wxu=function(C,F){F.unlink();F._next=C._next;F._next&&(F._next._prev=F);F._prev=C;C._next=F;F._parent=C._parent;F._next||(F._parent._lastChild=F)};
Mk.prototype.insertBefore=function(C){C.unlink();C._prev=this._prev;C._prev&&(C._prev._next=C);C._next=this;this._prev=C;C._parent=this._parent;C._prev||(C._parent._firstChild=C)};
_.I6.Object.defineProperties(Mk.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(C){this._literal=C}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(C){this._destination=C}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(C){this._title=C}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(C){this._info=C}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(C){this._level=C}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(C){this._listData.type=C}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(C){this._listData.tight=C}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(C){this._listData.start=C}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(C){this._onEnter=C}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(C){this._onExit=C}}});var ln9=/[ \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,
y8B={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 MZu=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]/),
Spr=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),L8S=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),BJP=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),vZy=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),fFo=/`+/,h18=/^`+/,ckr=/\.\.\./g,Aky=/--+/g,e1l=/^<([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])?)*)>/,
dxo=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,xxr=/^ *(?:\n *)?/,svS=/^[ \t\n\x0b\x0c\x0d]/,qpl=/[ \t\n\x0b\x0c\x0d]+/g,Pdu=/^\s/,gZ2=/ *$/,R1u=/^ */,Ypm=/^ *(?:\n|$)/,TJ7=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),oZE=/^[^\n`\[\]\\!<&*_'"]+/m,HP=function(C){var F=new Mk("text");F._literal=C;return F},lJ=function(C){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=C||{}};
lJ.prototype.match=function(C){C=C.exec(this.subject.slice(this.pos));if(C===null)return null;this.pos+=C.index+C[0].length;return C[0]};
lJ.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var y_=function(C){C.match(xxr);return!0},rkr=function(C,F,G){var V=0;
var J=C.pos;if(F===39||F===34)V++,C.pos++;else for(;C.peek()===F;)V++,C.pos++;if(V===0)V=null;else{var b=J===0?"\n":C.subject.charAt(J-1);var z=C.peek();z=z===-1?"\n":kH(z);var Q=Pdu.test(z);z=MZu.test(z);var E=Pdu.test(b);var t=MZu.test(b);b=!Q&&!(z&&!E&&!t);Q=!E&&!(t&&!Q&&!z);F===95?(E=b&&(!Q||t),z=Q&&(!b||z)):(E=F===39||F===34?b&&!Q:b,z=Q);C.pos=J;V={numdelims:V,can_open:E,can_close:z}}if(!V)return!1;J=V.numdelims;z=C.pos;C.pos+=J;z=F===39?"\u2019":F===34?"\u201c":C.subject.slice(z,C.pos);z=HP(z);
G.appendChild(z);C.delimiters={cc:F,numdelims:J,origdelims:J,node:z,previous:C.delimiters,next:null,can_open:V.can_open,can_close:V.can_close};C.delimiters.previous!==null&&(C.delimiters.previous.next=C.delimiters);return!0},K8m=function(C,F){F.previous!==null&&(F.previous.next=F.next);
F.next===null?C.delimiters=F.previous:F.next.previous=F.previous},Dx$=function(C,F){var G,V,J=[],b=!1;
J[95]=F;J[42]=F;J[39]=F;J[34]=F;for(G=C.delimiters;G!==null&&G.previous!==F;)G=G.previous;for(;G!==null;){var z=G.cc;if(G.can_close){var Q=G.previous;for(V=!1;Q!==null&&Q!==F&&Q!==J[z];){b=(G.can_open||Q.can_close)&&(Q.origdelims+G.origdelims)%3===0;if(Q.cc===G.cc&&Q.can_open&&!b){V=!0;break}Q=Q.previous}var E=G;if(z===42||z===95)if(V){var t=G.numdelims>=2&&Q.numdelims>=2?2:1;var k=Q.node;var U=G.node;Q.numdelims-=t;G.numdelims-=t;k._literal=k._literal.slice(0,k._literal.length-t);U._literal=U._literal.slice(0,
U._literal.length-t);var H=new Mk(t===1?"emph":"strong");for(t=k._next;t&&t!==U;){var l=t._next;t.unlink();H.appendChild(t);t=l}wxu(k,H);t=Q;l=G;t.next!==l&&(t.next=l,l.previous=t);Q.numdelims===0&&(k.unlink(),K8m(C,Q));G.numdelims===0&&(U.unlink(),Q=G.next,K8m(C,G),G=Q)}else G=G.next;else z===39?(G.node._literal="\u2019",V&&(Q.node._literal="\u2018"),G=G.next):z===34&&(G.node._literal="\u201d",V&&(Q.node.literal="\u201c"),G=G.next);V||b||(J[z]=E.previous,E.can_open||K8m(C,E))}else G=G.next}for(;C.delimiters!==
null&&C.delimiters!==F;)K8m(C,C.delimiters)},pxo=function(C){C=C.match(Spr);
return C===null?null:lFr(C.substr(1,C.length-2))},mxr=function(C){var F=C.match(L8S);
if(F===null){F=C.pos;for(var G=0,V;(V=C.peek())!==-1;)if(V===92)C.pos+=1,C.peek()!==-1&&(C.pos+=1);else if(V===40)C.pos+=1,G+=1;else if(V===41)if(G<1)break;else C.pos+=1,--G;else if(svS.exec(kH(V))!==null)break;else C.pos+=1;F=C.subject.substr(F,C.pos-F);return yk2(lFr(F))}return yk2(lFr(F.substr(1,F.length-2)))},CVu=function(C){C=C.match(TJ7);
return C===null||C.length>1001?0:C.length},jEP=function(C,F,G,V){C.brackets!==null&&(C.brackets.bracketAfter=!0);
C.brackets={node:F,previous:C.brackets,previousDelimiter:C.delimiters,index:G,image:V,active:!0}},F47=function(C,F){var G;
return(G=C.match(oZE))?(C.options.smart?F.appendChild(HP(G.replace(ckr,"\u2026").replace(Aky,function(V){var J=0,b=0;V.length%3===0?b=V.length/3:V.length%2===0?J=V.length/2:V.length%3===2?(J=1,b=(V.length-2)/3):(J=2,b=(V.length-4)/3);V="";var z;for(z=0;z<b;z++)V+="\u2014";for(z=0;z<J;z++)V+="\u2013";return V}))):F.appendChild(HP(G)),!0):!1},GCS=function(C,F,G){C.subject=F;
C.pos=0;F=C.pos;var V=CVu(C);if(V===0)return 0;var J=C.subject.substr(0,V);if(C.peek()===58)C.pos++;else return C.pos=F,0;y_(C);V=mxr(C);if(V===null||V.length===0)return C.pos=F,0;var b=C.pos;y_(C);var z=pxo(C);z===null&&(z="",C.pos=b);var Q=!0;C.match(Ypm)===null&&(z===""?Q=!1:(z="",C.pos=b,Q=C.match(Ypm)!==null));if(!Q)return C.pos=F,0;J=ZkE(J);if(J==="")return C.pos=F,0;G[J]||(G[J]={destination:V,title:z});return C.pos-F},Vu7=function(C,F){var G,V=C.peek();
if(V===-1)return!1;switch(V){case 10:C.pos+=1;if((G=F._lastChild)&&G.type==="text"&&G._literal[G._literal.length-1]===" "){var J=G._literal[G._literal.length-2]===" ";G._literal=G._literal.replace(gZ2,"");F.appendChild(new Mk(J?"linebreak":"softbreak"))}else F.appendChild(new Mk("softbreak"));C.match(R1u);G=!0;break;case 92:G=C.subject;C.pos+=1;C.peek()===10?(C.pos+=1,G=new Mk("linebreak"),F.appendChild(G)):BJP.test(G.charAt(C.pos))?(F.appendChild(HP(G.charAt(C.pos))),C.pos+=1):F.appendChild(HP("\\"));
G=!0;break;case 96:a:if(G=C.match(h18),G===null)G=!1;else{J=C.pos;for(var b;(b=C.match(fFo))!==null;)if(b===G){b=new Mk("code");b._literal=C.subject.slice(J,C.pos-G.length).trim().replace(qpl," ");F.appendChild(b);G=!0;break a}C.pos=J;F.appendChild(HP(G));G=!0}break;case 42:case 95:G=rkr(C,V,F);break;case 39:case 34:G=C.options.smart&&rkr(C,V,F);break;case 91:G=C.pos;C.pos+=1;J=HP("[");F.appendChild(J);jEP(C,J,G,!1);G=!0;break;case 33:G=C.pos;C.pos+=1;C.peek()===91?(C.pos+=1,J=HP("!["),F.appendChild(J),
jEP(C,J,G+1,!0)):F.appendChild(HP("!"));G=!0;break;case 93:var z,Q=!1,E;C.pos+=1;var t=C.pos;J=C.brackets;if(J===null)F.appendChild(HP("]"));else if(J.active){G=J.image;var k=C.pos;C.peek()===40&&(C.pos++,y_(C)&&(b=mxr(C))!==null&&y_(C)&&(svS.test(C.subject.charAt(C.pos-1))&&(z=pxo(C)),1)&&y_(C)&&C.peek()===41?(C.pos+=1,Q=!0):C.pos=k);if(!Q){var U=C.pos,H=CVu(C);H>2?E=C.subject.slice(U,U+H):J.bracketAfter||(E=C.subject.slice(J.index,t));H===0&&(C.pos=k);E&&(E=C.refmap[ZkE(E)])&&(b=E.destination,z=
E.title,Q=!0)}if(Q){t=new Mk(G?"image":"link");t._destination=b;t._title=z||"";for(b=J.node._next;b;)z=b._next,b.unlink(),t.appendChild(b),b=z;F.appendChild(t);Dx$(C,J.previousDelimiter);C.brackets=C.brackets.previous;J.node.unlink();if(!G)for(J=C.brackets;J!==null;)J.image||(J.active=!1),J=J.previous}else C.brackets=C.brackets.previous,C.pos=t,F.appendChild(HP("]"))}else F.appendChild(HP("]")),C.brackets=C.brackets.previous;G=!0;break;case 60:(G=C.match(e1l))?(G=G.slice(1,G.length-1),J=new Mk("link"),
J._destination=yk2("mailto:"+G),J._title="",J.appendChild(HP(G)),F.appendChild(J),G=!0):(G=C.match(dxo))?(G=G.slice(1,G.length-1),J=new Mk("link"),J._destination=yk2(G),J._title="",J.appendChild(HP(G)),F.appendChild(J),G=!0):G=!1;G||(G=C.match(W82),G===null?G=!1:(J=new Mk("html_inline"),J._literal=G,F.appendChild(J),G=!0));break;case 38:(G=C.match(vZy))?(F.appendChild(HP(IFm(G))),G=!0):G=!1;break;default:G=F47(C,F)}G||(C.pos+=1,F.appendChild(HP(kH(V))));return!0};
lJ.prototype.parseInlines=function(C){this.subject=C._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;Vu7(this,C););C._string_content=null;Dx$(this,null)};
lJ.prototype.parse=lJ.prototype.parseInlines;var iVS=[/./,/^<(?: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")],J62=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],$bu=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,bVo=/^[#`~*+_=<>0-9-\|]|\|/,nCm=/[^ \t\f\v\r\n]/,uD8=/^[*+-]/,zTr=/^(\d{1,9})([.)])/,QEm=/^#{1,6}(?:[ \t]+|$)/,Io7=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,EC8=/^(?:`{3,}|~{3,})(?= *$)/,W4G=/^(?:=+|-+)[ \t]*$/,tuu=/\r\n|\n|\r/,Okq=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,XNs=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,aoG={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(C){return C!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(C,F){for(C=F._firstChild;C;){if(N8o(C)&&C._next){F._listData.tight=!1;break}for(var G=C._firstChild;G;){if(N8o(G)&&(C._next||G._next)){F._listData.tight=!1;break}G=G._next}C=C._next}},
canContain:function(C){return C==="item"},
acceptsLines:!1},block_quote:{continue:function(C){var F=C.currentLine;if(C.indented||XL(F,C.nextNonspace)!==62)return 1;Zw(C);N7(C,1,!1);OH(XL(F,C.offset))&&N7(C,1,!0);return 0},
finalize:function(){},
canContain:function(C){return C!=="item"},
acceptsLines:!1},item:{continue:function(C,F){if(C.blank){if(F._firstChild==null)return 1;Zw(C)}else if(C.indent>=F._listData.markerOffset+F._listData.padding)N7(C,F._listData.markerOffset+F._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(C){return C!=="item"&&!wNi(C)},
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(C,F){var G=C.currentLine,V=C.indent;if(F._isFenced){if((V=V<=3&&G.charAt(C.nextNonspace)===F._fenceChar&&G.slice(C.nextNonspace).match(EC8))&&V[0].length>=F._fenceLength)return C.finalize(F,C.lineNumber),2;for(F=F._fenceOffset;F>0&&OH(XL(G,C.offset));)N7(C,1,!0),F--}else if(V>=4)N7(C,4,!0);else if(C.blank)Zw(C);else return 1;return 0},
finalize:function(C,F){if(F._isFenced){var G=F._string_content,V=G.indexOf("\n");C=G.slice(0,V);G=G.slice(V+1);F.info=lFr(C.trim());F._literal=G}else F._literal=F._string_content.replace(/(\n *)+$/,"\n");F._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(C,F){return!C.blank||F._htmlBlockType!==6&&F._htmlBlockType!==7?0:1},
finalize:function(C,F){F._literal=F._string_content.replace(/(\n *)+$/,"");F._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(C){return C.blank?1:0},
finalize:function(C,F){for(var G,V=!1;XL(F._string_content,0)===91&&(G=GCS(C.inlineParser,F._string_content,C.refmap));)F._string_content=F._string_content.slice(G),V=!0;V&&!nCm.test(F._string_content)&&F.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(C){return wt(C.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(C){return C=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(C,F){if(!F._rowIsDelimiter){C=F._isHeader?"th":"td";for(var G=F._parent._tableColumns,V=F._string_content,J=0,b="",z,Q=F._sourcepos[0][0];J<V.length;){switch(V[J]){case "|":z&&(z._string_content=b.trim(),b="",z=null,G--,G<=0&&(J=V.length));break;default:if(!z){z=new Mk(C,[[Q,J],[Q,J]]);var E=F._parent._columnAlignment,t=F._parent._tableColumns-G;E&&t<=E.length&&t>=0&&(z._alignment=E[t]);F.appendChild(z)}b+=V[J];z._sourcepos[1][1]=J}J++}z&&(z._string_content=b.trim());F._string_content=
""}},
canContain:function(C){return C!=="row"},
acceptsLines:!1}},kC8=[function(C){if(C.indented||XL(C.currentLine,C.nextNonspace)!==62)return 0;Zw(C);N7(C,1,!1);OH(XL(C.currentLine,C.offset))&&N7(C,1,!0);OX(C);C.addChild("block_quote",C.nextNonspace);return 1},
function(C){var F;if(!C.indented&&(F=C.currentLine.slice(C.nextNonspace).match(QEm))){Zw(C);N7(C,F[0].length,!1);OX(C);var G=C.addChild("heading",C.nextNonspace);G.level=F[0].trim().length;G._string_content=C.currentLine.slice(C.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");N7(C,C.currentLine.length-C.offset);return 2}return 0},
function(C){var F;if(!C.indented&&(F=C.currentLine.slice(C.nextNonspace).match(Io7))){var G=F[0].length;OX(C);var V=C.addChild("code_block",C.nextNonspace);V._isFenced=!0;V._fenceLength=G;V._fenceChar=F[0][0];V._fenceOffset=C.indent;Zw(C);N7(C,G,!1);return 2}return 0},
function(C,F){if(!C.indented&&XL(C.currentLine,C.nextNonspace)===60){var G=C.currentLine.slice(C.nextNonspace),V;for(V=1;V<=7;V++)if(iVS[V].test(G)&&(V<7||F.type!=="paragraph"))return OX(C),C.addChild("html_block",C.offset)._htmlBlockType=V,2}return 0},
function(C,F){var G;if(!C.indented&&F.type==="paragraph"&&(G=C.currentLine.slice(C.nextNonspace).match(W4G))){OX(C);var V=new Mk("heading",F.sourcepos);V.level=G[0][0]==="="?1:2;V._string_content=F._string_content;wxu(F,V);F.unlink();C.tip=V;N7(C,C.currentLine.length-C.offset,!1);return 2}return 0},
function(C){return!C.indented&&$bu.test(C.currentLine.slice(C.nextNonspace))?(OX(C),C.addChild("thematic_break",C.nextNonspace),N7(C,C.currentLine.length-C.offset,!1),2):0},
function(C,F){var G,V;if(!(V=C.indented&&F.type!=="list")){a:{var J=F,b=C.currentLine.slice(C.nextNonspace);V={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:C.indent};if(G=b.match(uD8))V.type="bullet",V.bulletChar=G[0][0];else{if(!(G=b.match(zTr))||J.type==="paragraph"&&G[1]!=="1"){G=null;break a}V.type="ordered";V.start=parseInt(G[1],10);V.delimiter=G[2]}var z=XL(C.currentLine,C.nextNonspace+G[0].length);if(z!==-1&&z!==9&&z!==32||J.type==="paragraph"&&!C.currentLine.slice(C.nextNonspace+
G[0].length).match(nCm))G=null;else{Zw(C);N7(C,G[0].length,!0);J=C.column;b=C.offset;do N7(C,1,!0),z=XL(C.currentLine,C.offset);while(C.column-J<5&&OH(z));z=XL(C.currentLine,C.offset)===-1;var Q=C.column-J;Q>=5||Q<1||z?(V.padding=G[0].length+1,C.column=J,C.offset=b,OH(XL(C.currentLine,C.offset))&&N7(C,1,!0)):V.padding=G[0].length+Q;G=V}}V=!G}if(V)return 0;OX(C);(V=C.tip.type!=="list")||(F=F._listData,V=!(F.type===G.type&&F.delimiter===G.delimiter&&F.bulletChar===G.bulletChar));V&&(F=C.addChild("list",
C.nextNonspace),F._listData=G);F=C.addChild("item",C.nextNonspace);F._listData=G;return 1},
function(C){var F;return((F=C.options.shouldParseIndentAsCodeBlock)!=null?F:1)&&C.indented&&C.tip.type!=="paragraph"&&!C.blank?(N7(C,4,!0),OX(C),C.addChild("code_block",C.offset),2):0},
function(C,F){var G=wt(C.currentLine),V=wt(C.lookahead);if(G!==0&&V<0&&Math.abs(G)==Math.abs(V)&&!wNi(F.type)){OX(C);F=C.addChild("table",C.nextNonspace);F._tableRows=1;F._tableColumns=Math.abs(G);G=C.lookahead;if(XNs.test(G)){V=[];for(var J=0,b=!1,z=0,Q=void 0;J<G.length;){var E=z>=3;switch(G[J]){case "-":z++;break;case "|":b&&(V.push(Q),Q=void 0,z=0);b=!0;break;case ":":Q||E||(Q="left"),!Q&&E&&(Q="right"),Q==="left"&&E&&(Q="center")}J++}G=V}else G=void 0;F._columnAlignment=G;F=C.addChild("row",
C.nextNonspace);F._isHeader=!0;N7(C,C.currentLine.length-C.offset,!1);F._string_content=C.currentLine;return 1}return 0},
function(C,F){if(F.type=="table"&&wt(C.currentLine)!==0){OX(C);var G=F;F=C.addChild("row",C.nextNonspace);wt(C.currentLine)<0?F._rowIsDelimiter=!0:G._tableRows+=1;N7(C,C.currentLine.length-C.offset,!1);F._string_content=C.currentLine;return 2}return 0}],kJf=function(){var C={shouldParseIndentAsCodeBlock:!1};
C=C===void 0?{}:C;this.lastMatchedContainer=this.doc=MIZ();this.refmap={};this.lastLineLength=0;this.inlineParser=new lJ(C);this.options=C;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=aoG;this.blockStarts=kC8},Ub$=function(C){C.partiallyConsumedTab&&(C.offset+=1,C.tip._string_content+=" ".repeat(4-C.column%
4));
C.tip._string_content+=C.currentLine.slice(C.offset)+"\n"};
kJf.prototype.addChild=function(C,F){for(;!this.blocks[this.tip.type].canContain(C);)this.finalize(this.tip,this.lineNumber-1);C=new Mk(C,[[this.lineNumber,F+1],[0,0]]);C._string_content="";this.tip.appendChild(C);return this.tip=C};
var OX=function(C){if(!C.allClosed){for(;C.oldtip!==C.lastMatchedContainer;){var F=C.oldtip._parent;C.finalize(C.oldtip,C.lineNumber-1);C.oldtip=F}C.allClosed=!0}},N7=function(C,F,G){for(var V=C.currentLine,J,b;F>0&&(b=V[C.offset]);)b==="\t"?(J=4-C.column%4,G?(C.partiallyConsumedTab=J>F,J=J>F?F:J,C.column+=J,C.offset+=C.partiallyConsumedTab?0:1,F-=J):(C.partiallyConsumedTab=!1,C.column+=J,C.offset+=1,--F)):(C.partiallyConsumedTab=!1,C.offset+=1,C.column+=1,--F)},Zw=function(C){C.offset=C.nextNonspace;
C.column=C.nextNonspaceColumn;C.partiallyConsumedTab=!1},HV8=function(C){for(var F=C.currentLine,G=C.offset,V=C.column,J;(J=F.charAt(G))!=="";)if(J===" ")G++,V++;
else if(J==="\t")G++,V+=4-V%4;else break;C.blank=J==="\n"||J==="\r"||J==="";C.nextNonspace=G;C.nextNonspaceColumn=V;C.indent=C.nextNonspaceColumn-C.column;C.indented=C.indent>=4};
kJf.prototype.finalize=function(C,F){var G=C._parent;C._open=!1;C.sourcepos[1]=[F,this.lastLineLength];this.blocks[C.type].finalize(this,C);this.tip=G};
kJf.prototype.parse=function(C){this.tip=this.doc=MIZ();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!C)return this.doc;this.options.time&&console.time("preparing input");var F=C.split(tuu),G=F.length;C.charCodeAt(C.length-1)===10&&--G;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(C=0;C<G;C++)a:{var V=void 0,J=F[C],b=F[C+1],z=!0,Q=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;J.indexOf("\x00")!==-1&&(J=J.replace(/\0/g,"\ufffd"));this.currentLine=J;for(this.lookahead=b;(V=Q._lastChild)&&V._open;){Q=V;HV8(this);switch(this.blocks[Q.type].continue(this,Q)){case 0:break;case 1:z=!1;break;case 2:this.lastLineLength=J.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!z){Q=Q._parent;break}}this.allClosed=Q===this.oldtip;this.lastMatchedContainer=
Q;V=Q.type!=="paragraph"&&aoG[Q.type].acceptsLines;b=this.blockStarts;for(z=b.length;!V;){HV8(this);if(!this.indented&&!bVo.test(J.slice(this.nextNonspace))){Zw(this);break}for(var E=0;E<z;){var t=b[E](this,Q);if(t===1){Q=this.tip;break}else if(t===2){Q=this.tip;V=!0;break}else E++}if(E===z){Zw(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){OX(this);this.blank&&Q.lastChild&&(Q.lastChild._lastLineBlank=!0);V=Q.type;b=this.blank&&!(V==="block_quote"||V==="code_block"&&Q._isFenced||
V==="item"&&!Q._firstChild&&Q.sourcepos[0][0]===this.lineNumber);for(z=Q;z;)z._lastLineBlank=b,z=z._parent;this.blocks[V].acceptsLines?(Ub$(this),V==="html_block"&&Q._htmlBlockType>=1&&Q._htmlBlockType<=5&&J62[Q._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(Q,this.lineNumber)):this.offset<J.length&&!this.blank&&(this.addChild("paragraph",this.offset),Zw(this),Ub$(this))}else Ub$(this);this.lastLineLength=J.length}for(;this.tip;)this.finalize(this.tip,G);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");J=new XxP(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;G=J.next();)F=G.node,C=F.type,G.entering||C!=="paragraph"&&C!=="heading"&&C!=="th"&&C!="td"||this.inlineParser.parse(F);this.options.time&&console.timeEnd("inline parsing");return this.doc};SVA.prototype.render=function(C){C=new XxP(C);var F;this.buffer="";for(this.lastOut="\n";F=C.next();){var G=F.node.type;if(this[G])this[G](F.node,F.entering)}return this.buffer};
SVA.prototype.out=function(C){Xs(this,C)};
var Xs=function(C,F){C.buffer+=F;C.lastOut=F};
SVA.prototype.cr=function(){this.lastOut!=="\n"&&Xs(this,"\n")};var lor=/^javascript:|vbscript:|file:|data:/i,y6u=/^data:image\/(?:png|gif|jpeg|webp)/i,ZVO=function(C){return lor.test(C)&&!y6u.test(C)};
S3.prototype=Object.create(SVA.prototype);_.n=S3.prototype;_.n.text=function(C){this.out(C.literal)};
_.n.html_inline=function(C){this.options.safe?Xs(this,"\x3c!-- raw HTML omitted --\x3e"):Xs(this,C.literal)};
_.n.html_block=function(C){this.cr();this.options.safe?Xs(this,"\x3c!-- raw HTML omitted --\x3e"):Xs(this,C.literal);this.cr()};
_.n.softbreak=function(){Xs(this,this.options.softbreak)};
_.n.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.n.link=function(C,F){var G=this.attrs(C);F?(this.options.safe&&ZVO(C.destination)||G.push(["href",aY(C.destination,!0)]),C.title&&G.push(["title",aY(C.title,!0)]),this.tag("a",G)):this.tag("/a")};
_.n.image=function(C,F){F?(this.disableTags===0&&(this.options.safe&&ZVO(C.destination)?Xs(this,'<img src="" alt="'):Xs(this,'<img src="'+aY(C.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(C.title&&Xs(this,'" title="'+aY(C.title,!0)),Xs(this,'" />')))};
_.n.emph=function(C,F){this.tag(F?"em":"/em")};
_.n.strong=function(C,F){this.tag(F?"strong":"/strong")};
_.n.paragraph=function(C,F){var G=C.parent.parent;C=this.attrs(C);G!==null&&G.type==="list"&&G.listTight||(F?(this.cr(),this.tag("p",C)):(this.tag("/p"),this.cr()))};
_.n.heading=function(C,F){var G="h"+C.level;C=this.attrs(C);F?(this.cr(),this.tag(G,C)):(this.tag("/"+G),this.cr())};
_.n.code=function(C){this.tag("code");this.out(C.literal);this.tag("/code")};
_.n.code_block=function(C){var F=C.info?C.info.split(/\s+/):[],G=this.attrs(C);F.length>0&&F[0].length>0&&G.push(["class","language-"+aY(F[0],!0)]);this.cr();this.tag("pre");this.tag("code",G);this.out(C.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.n.thematic_break=function(C){C=this.attrs(C);this.cr();this.tag("hr",C,!0);this.cr()};
_.n.block_quote=function(C,F){C=this.attrs(C);F?(this.cr(),this.tag("blockquote",C)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.n.list=function(C,F){var G=C.listType==="bullet"?"ul":"ol",V=this.attrs(C);F?(C=C.listStart,C!==null&&C!==1&&V.push(["start",C.toString()]),this.cr(),this.tag(G,V)):(this.cr(),this.tag("/"+G));this.cr()};
_.n.item=function(C,F){C=this.attrs(C);F?this.tag("li",C):(this.tag("/li"),this.cr())};
_.n.custom_inline=function(C,F){F&&C.onEnter?Xs(this,C.onEnter):!F&&C.onExit&&Xs(this,C.onExit)};
_.n.custom_block=function(C,F){this.cr();F&&C.onEnter?Xs(this,C.onEnter):!F&&C.onExit&&Xs(this,C.onExit);this.cr()};
_.n.table=function(C,F){C=this.attrs(C);F?(this.cr(),this.tag("table",C)):(this.tag("/table"),this.cr())};
_.n.row=function(C,F){C._rowIsDelimiter||(C=this.attrs(C),F?this.tag("tr",C):this.tag("/tr"))};
_.n.td=function(C,F){var G=this.attrs(C);C._alignment&&G.push(["align",C._alignment]);F?this.tag("td",G):this.tag("/td")};
_.n.th=function(C,F){var G=this.attrs(C);C._alignment&&G.push(["align",C._alignment]);F?this.tag("th",G):this.tag("/th")};
_.n.out=function(C){Xs(this,aY(C,!1))};
_.n.tag=function(C,F,G){if(!(this.disableTags>0)){this.buffer+="<"+C;if(F&&F.length>0){C=0;for(var V;(V=F[C])!==void 0;)this.buffer+=" "+V[0]+'="'+V[1]+'"',C++}G&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.n.attrs=function(C){var F=[];this.options.sourcepos&&(C=C.sourcepos)&&F.push(["data-sourcepos",String(C[0][0])+":"+String(C[0][1])+"-"+String(C[1][0])+":"+String(C[1][1])]);return F};
S3.prototype.text=S3.prototype.text;S3.prototype.html_inline=S3.prototype.html_inline;S3.prototype.html_block=S3.prototype.html_block;S3.prototype.softbreak=S3.prototype.softbreak;S3.prototype.linebreak=S3.prototype.linebreak;S3.prototype.link=S3.prototype.link;S3.prototype.image=S3.prototype.image;S3.prototype.emph=S3.prototype.emph;S3.prototype.strong=S3.prototype.strong;S3.prototype.paragraph=S3.prototype.paragraph;S3.prototype.heading=S3.prototype.heading;S3.prototype.code=S3.prototype.code;
S3.prototype.code_block=S3.prototype.code_block;S3.prototype.thematic_break=S3.prototype.thematic_break;S3.prototype.block_quote=S3.prototype.block_quote;S3.prototype.list=S3.prototype.list;S3.prototype.item=S3.prototype.item;S3.prototype.custom_inline=S3.prototype.custom_inline;S3.prototype.custom_block=S3.prototype.custom_block;S3.prototype.table=S3.prototype.table;S3.prototype.row=S3.prototype.row;S3.prototype.td=S3.prototype.td;S3.prototype.th=S3.prototype.th;S3.prototype.out=S3.prototype.out;
S3.prototype.tag=S3.prototype.tag;S3.prototype.attrs=S3.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 Npr,OV8,zAi;(function(){function C(h,v){return h<v?-1:h>v?1:h>=v?0:NaN}
function F(h){return function(v,x){return C(h(v),x)}}
function G(){for(var h=0,v=arguments.length,x={},jq;h<v;++h){if(!(jq=arguments[h]+"")||jq in x)throw Error("xe`"+jq);x[jq]=[]}return new V(x)}
function V(h){this._=h}
function J(h,v){return h.trim().split(/^|\s+/).map(function(x){var jq="",n9=x.indexOf(".");n9>=0&&(jq=x.slice(n9+1),x=x.slice(0,n9));if(x&&!v.hasOwnProperty(x))throw Error("ye`"+x);return{type:x,name:jq}})}
function b(h,v,x){for(var jq=0,n9=h.length;jq<n9;++jq)if(h[jq].name===v){h[jq]=k6r;h=h.slice(0,jq).concat(h.slice(jq+1));break}x!=null&&h.push({name:v,value:x});return h}
function z(h){var v=h,x=v.indexOf(":");x>=0&&(v=h.slice(0,x))!=="xmlns"&&(h=h.slice(x+1));return YZ.hasOwnProperty(v)?{space:YZ[v],local:h}:h}
function Q(h){return function(){var v=this.ownerDocument,x=this.namespaceURI;return x==="http://www.w3.org/1999/xhtml"&&v.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?v.createElement(h):v.createElementNS(x,h)}}
function E(h){return function(){return this.ownerDocument.createElementNS(h.space,h.local)}}
function t(h){h=z(h);return(h.local?E:Q)(h)}
function k(){}
function U(h){return h==null?k:function(){return this.querySelector(h)}}
function H(h){return Array(h.length)}
function l(h,v){this.ownerDocument=h.ownerDocument;this.namespaceURI=h.namespaceURI;this._next=null;this._parent=h;this.__data__=v}
function N(h){return function(){return h}}
function S(h,v,x,jq,n9,aw){for(var Nf=0,f9,i8=v.length,mW=aw.length;Nf<mW;++Nf)(f9=v[Nf])?(f9.__data__=aw[Nf],jq[Nf]=f9):x[Nf]=new l(h,aw[Nf]);for(;Nf<i8;++Nf)if(f9=v[Nf])n9[Nf]=f9}
function f(h,v,x,jq,n9,aw,Nf){var f9,i8,mW={},$S=v.length,Wu=aw.length,ol=Array($S),ft;for(f9=0;f9<$S;++f9)if(i8=v[f9])ol[f9]=ft="$"+Nf.call(i8,i8.__data__,f9,v),ft in mW?n9[f9]=i8:mW[ft]=i8;for(f9=0;f9<Wu;++f9)ft="$"+Nf.call(h,aw[f9],f9,aw),(i8=mW[ft])?(jq[f9]=i8,i8.__data__=aw[f9],mW[ft]=null):x[f9]=new l(h,aw[f9]);for(f9=0;f9<$S;++f9)(i8=v[f9])&&mW[ol[f9]]===i8&&(n9[f9]=i8)}
function c(h,v){return h<v?-1:h>v?1:h>=v?0:NaN}
function A(h){return function(){this.removeAttribute(h)}}
function T(h){return function(){this.removeAttributeNS(h.space,h.local)}}
function P(h,v){return function(){this.setAttribute(h,v)}}
function g(h,v){return function(){this.setAttributeNS(h.space,h.local,v)}}
function r(h,v){return function(){var x=v.apply(this,arguments);x==null?this.removeAttribute(h):this.setAttribute(h,x)}}
function C9(h,v){return function(){var x=v.apply(this,arguments);x==null?this.removeAttributeNS(h.space,h.local):this.setAttributeNS(h.space,h.local,x)}}
function Wo(h){return function(){this.style.removeProperty(h)}}
function EB(h,v,x){return function(){this.style.setProperty(h,v,x)}}
function L9(h,v,x){return function(){var jq=v.apply(this,arguments);jq==null?this.style.removeProperty(h):this.style.setProperty(h,jq,x)}}
function ki(h,v){return h.style.getPropertyValue(v)||(h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView).getComputedStyle(h,null).getPropertyValue(v)}
function lZ(h){return function(){delete this[h]}}
function eq(h,v){return function(){this[h]=v}}
function OB(h,v){return function(){var x=v.apply(this,arguments);x==null?delete this[h]:this[h]=x}}
function yr(){this.textContent=""}
function Rl(h){return function(){this.textContent=h}}
function w2(h){return function(){var v=h.apply(this,arguments);this.textContent=v==null?"":v}}
function jG(){this.innerHTML=""}
function Il(h){return function(){this.innerHTML=h}}
function Bu(h){return function(){var v=h.apply(this,arguments);this.innerHTML=v==null?"":v}}
function vu(){return null}
function Zr(){var h=this.parentNode;h&&h.removeChild(this)}
function k_(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function $i(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function Vr(h,v,x){h=Um(h,v,x);return function(jq){var n9=jq.relatedTarget;n9&&(n9===this||n9.compareDocumentPosition(this)&8)||h.call(this,jq)}}
function Um(h,v,x){return function(){h.call(this,this.__data__,v,x)}}
function V8(h){return h.trim().split(/^|\s+/).map(function(v){var x="",jq=v.indexOf(".");jq>=0&&(x=v.slice(jq+1),v=v.slice(0,jq));return{type:v,name:x}})}
function Hu(h){return function(){var v=this.__on;if(v){for(var x=0,jq=-1,n9=v.length,aw;x<n9;++x)(aw=v[x],h.type&&aw.type!==h.type||aw.name!==h.name)?v[++jq]=aw:this.removeEventListener(aw.type,aw.listener,aw.capture);++jq?v.length=jq:delete this.__on}}}
function Gh(h,v,x){var jq=BKl.hasOwnProperty(h.type)?Vr:Um;return function(n9,aw,Nf){n9=this.__on;var f9;aw=jq(v,aw,Nf);if(n9){Nf=0;for(var i8=n9.length;Nf<i8;++Nf)if((f9=n9[Nf]).type===h.type&&f9.name===h.name){this.removeEventListener(f9.type,f9.listener,f9.capture);this.addEventListener(f9.type,f9.listener=aw,f9.capture=x);f9.value=v;return}}this.addEventListener(h.type,aw,x);f9={type:h.type,name:h.name,value:v,listener:aw,capture:x};n9?n9.push(f9):this.__on=[f9]}}
function hW(h,v,x){var jq=h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView,n9=jq.CustomEvent;typeof n9==="function"?n9=new n9(v,x):(n9=jq.document.createEvent("Event"),x?(n9.initEvent(v,x.bubbles,x.cancelable),n9.detail=x.detail):n9.initEvent(v,!1,!1));h.dispatchEvent(n9)}
function YS(h,v){return function(){return hW(this,h,v)}}
function Em(h,v){return function(){return hW(this,h,v.apply(this,arguments))}}
function Qr(h,v){this._groups=h;this._parents=v}
function FM(){return new Qr([[document.documentElement]],Ums)}
function ow(){this._="@"+(++HKl).toString(36)}
function kS(h,v,x){h.prototype=v.prototype=x;x.constructor=h}
function HV(h,v){h=Object.create(h.prototype);for(var x in v)h[x]=v[x];return h}
function r9(){}
function BV(h){var v;h=(h+"").trim().toLowerCase();return(v=lLM.exec(h))?(v=parseInt(v[1],16),new XM(v>>8&15|v>>4&240,v>>4&15|v&240,(v&15)<<4|v&15,1)):(v=yT_.exec(h))?qa(parseInt(v[1],16)):(v=ZKV.exec(h))?new XM(v[1],v[2],v[3],1):(v=NKs.exec(h))?new XM(v[1]*255/100,v[2]*255/100,v[3]*255/100,1):(v=OKt.exec(h))?mh(v[1],v[2],v[3],v[4]):(v=XLd.exec(h))?mh(v[1]*255/100,v[2]*255/100,v[3]*255/100,v[4]):(v=wLU.exec(h))?nf(v[1],v[2]/100,v[3]/100,1):(v=Mi3.exec(h))?nf(v[1],v[2]/100,v[3]/100,v[4]):vPr.hasOwnProperty(h)?
qa(vPr[h]):h==="transparent"?new XM(NaN,NaN,NaN,0):null}
function qa(h){return new XM(h>>16&255,h>>8&255,h&255,1)}
function mh(h,v,x,jq){jq<=0&&(h=v=x=NaN);return new XM(h,v,x,jq)}
function nA(h){h instanceof r9||(h=BV(h));if(!h)return new XM;h=h.rgb();return new XM(h.r,h.g,h.b,h.opacity)}
function pP(h,v,x,jq){return arguments.length===1?nA(h):new XM(h,v,x,jq==null?1:jq)}
function XM(h,v,x,jq){this.r=+h;this.g=+v;this.b=+x;this.opacity=+jq}
function is(h){h=Math.max(0,Math.min(255,Math.round(h)||0));return(h<16?"0":"")+h.toString(16)}
function nf(h,v,x,jq){jq<=0?h=v=x=NaN:x<=0||x>=1?h=v=NaN:v<=0&&(h=NaN);return new A2(h,v,x,jq)}
function jo(h){if(h instanceof A2)return new A2(h.h,h.s,h.l,h.opacity);h instanceof r9||(h=BV(h));if(!h)return new A2;if(h instanceof A2)return h;h=h.rgb();var v=h.r/255,x=h.g/255,jq=h.b/255,n9=Math.min(v,x,jq),aw=Math.max(v,x,jq),Nf=NaN,f9=aw-n9,i8=(aw+n9)/2;f9?(Nf=v===aw?(x-jq)/f9+(x<jq)*6:x===aw?(jq-v)/f9+2:(v-x)/f9+4,f9/=i8<.5?aw+n9:2-aw-n9,Nf*=60):f9=i8>0&&i8<1?0:Nf;return new A2(Nf,f9,i8,h.opacity)}
function oR(h,v,x,jq){return arguments.length===1?jo(h):new A2(h,v,x,jq==null?1:jq)}
function A2(h,v,x,jq){this.h=+h;this.s=+v;this.l=+x;this.opacity=+jq}
function li(h,v,x){return(h<60?v+(x-v)*h/60:h<180?x:h<240?v+(x-v)*(240-h)/60:v)*255}
function HS(h){if(h instanceof Sq)return new Sq(h.l,h.a,h.b,h.opacity);if(h instanceof Om){if(isNaN(h.h))return new Sq(h.l,0,0,h.opacity);var v=h.h*fLy;return new Sq(h.l,Math.cos(v)*h.c,Math.sin(v)*h.c,h.opacity)}h instanceof XM||(h=nA(h));var x=ls(h.r),jq=ls(h.g),n9=ls(h.b);v=xi(.2225045*x+.7168786*jq+.0606169*n9);if(x===jq&&jq===n9)var aw=x=v;else aw=xi((.4360747*x+.3850649*jq+.1430804*n9)/.96422),x=xi((.0139322*x+.0971045*jq+.7141733*n9)/.82521);return new Sq(116*v-16,500*(aw-v),200*(v-x),h.opacity)}
function Sq(h,v,x,jq){this.l=+h;this.a=+v;this.b=+x;this.opacity=+jq}
function xi(h){return h>SMd?Math.pow(h,1/3):h/hJP+cTS}
function Yi(h){return h>jO?h*h*h:hJP*(h-cTS)}
function Zu(h){return 255*(h<=.0031308?12.92*h:1.055*Math.pow(h,1/2.4)-.055)}
function ls(h){return(h/=255)<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}
function Bh(h){if(h instanceof Om)return new Om(h.h,h.c,h.l,h.opacity);h instanceof Sq||(h=HS(h));if(h.a===0&&h.b===0)return new Om(NaN,0,h.l,h.opacity);var v=Math.atan2(h.b,h.a)*ATu;return new Om(v<0?v+360:v,Math.sqrt(h.a*h.a+h.b*h.b),h.l,h.opacity)}
function vV(h,v,x,jq){return arguments.length===1?Bh(h):new Om(h,v,x,jq==null?1:jq)}
function Om(h,v,x,jq){this.h=+h;this.c=+v;this.l=+x;this.opacity=+jq}
function No(h,v,x,jq){if(arguments.length===1){var n9=h;if(n9 instanceof dW)n9=new dW(n9.h,n9.s,n9.l,n9.opacity);else{n9 instanceof XM||(n9=nA(n9));var aw=n9.g/255,Nf=n9.b/255,f9=(eJE*Nf+n9.r/255*-1.7884503806-3.5172982438*aw)/(eJE+-1.7884503806-3.5172982438);Nf-=f9;var i8=(1.97294*(aw-f9)- -.29227*Nf)/-.90649;Nf=(aw=Math.sqrt(i8*i8+Nf*Nf)/(1.97294*f9*(1-f9)))?Math.atan2(i8,Nf)*ATu-120:NaN;n9=new dW(Nf<0?Nf+360:Nf,aw,f9,n9.opacity)}}else n9=new dW(h,v,x,jq==null?1:jq);return n9}
function dW(h,v,x,jq){this.h=+h;this.s=+v;this.l=+x;this.opacity=+jq}
function UL(h,v,x,jq,n9){var aw=h*h,Nf=aw*h;return((1-3*h+3*aw-Nf)*v+(4-6*aw+3*Nf)*x+(1+3*h+3*aw-3*Nf)*jq+Nf*n9)/6}
function al(h){return function(){return h}}
function Sy(h,v){return function(x){return h+x*v}}
function eE(h,v,x){return h=Math.pow(h,x),v=Math.pow(v,x)-h,x=1/x,function(jq){return Math.pow(h+jq*v,x)}}
function xl(h,v){var x=v-h;return x?Sy(h,x>180||x<-180?x-360*Math.round(x/360):x):al(isNaN(h)?v:h)}
function KB(h){return(h=+h)===1?Cc:function(v,x){return x-v?eE(v,x,h):al(isNaN(v)?x:v)}}
function Cc(h,v){var x=v-h;return x?Sy(h,x):al(isNaN(h)?v:h)}
function Hc(h){return function(v){var x=v.length,jq=Array(x),n9=Array(x),aw=Array(x),Nf;for(Nf=0;Nf<x;++Nf){var f9=pP(v[Nf]);jq[Nf]=f9.r||0;n9[Nf]=f9.g||0;aw[Nf]=f9.b||0}jq=h(jq);n9=h(n9);aw=h(aw);f9.opacity=1;return function(i8){f9.r=jq(i8);f9.g=n9(i8);f9.b=aw(i8);return f9+""}}}
function lh(h,v){return h=+h,v-=h,function(x){return h+v*x}}
function Wd(h){return function(){return h}}
function GP(h){return function(v){return h(v)+""}}
function DA(h,v){var x=ulw.lastIndex=zJE.lastIndex=0,jq,n9,aw,Nf=-1,f9=[],i8=[];h+="";for(v+="";(jq=ulw.exec(h))&&(n9=zJE.exec(v));)(aw=n9.index)>x&&(aw=v.slice(x,aw),f9[Nf]?f9[Nf]+=aw:f9[++Nf]=aw),(jq=jq[0])===(n9=n9[0])?f9[Nf]?f9[Nf]+=n9:f9[++Nf]=n9:(f9[++Nf]=null,i8.push({i:Nf,x:lh(jq,n9)})),x=zJE.lastIndex;x<v.length&&(aw=v.slice(x),f9[Nf]?f9[Nf]+=aw:f9[++Nf]=aw);return f9.length<2?i8[0]?GP(i8[0].x):Wd(v):(v=i8.length,function(mW){for(var $S=0,Wu;$S<v;++$S)f9[(Wu=i8[$S]).i]=Wu.x(mW);return f9.join("")})}
function wW(h,v,x,jq,n9,aw){var Nf,f9,i8;if(Nf=Math.sqrt(h*h+v*v))h/=Nf,v/=Nf;if(i8=h*x+v*jq)x-=h*i8,jq-=v*i8;if(f9=Math.sqrt(x*x+jq*jq))x/=f9,jq/=f9,i8/=f9;h*jq<v*x&&(h=-h,v=-v,i8=-i8,Nf=-Nf);return{translateX:n9,translateY:aw,rotate:Math.atan2(v,h)*dmE,skewX:Math.atan(i8)*dmE,scaleX:Nf,scaleY:f9}}
function WV(h,v,x,jq){function n9(mW){return mW.length?mW.pop()+" ":""}
function aw(mW,$S,Wu,ol,ft,yF){mW!==Wu||$S!==ol?(ft=ft.push("translate(",null,v,null,x),yF.push({i:ft-4,x:lh(mW,Wu)},{i:ft-2,x:lh($S,ol)})):(Wu||ol)&&ft.push("translate("+Wu+v+ol+x)}
function Nf(mW,$S,Wu,ol){mW!==$S?(mW-$S>180?$S+=360:$S-mW>180&&(mW+=360),ol.push({i:Wu.push(n9(Wu)+"rotate(",null,jq)-2,x:lh(mW,$S)})):$S&&Wu.push(n9(Wu)+"rotate("+$S+jq)}
function f9(mW,$S,Wu,ol){mW!==$S?ol.push({i:Wu.push(n9(Wu)+"skewX(",null,jq)-2,x:lh(mW,$S)}):$S&&Wu.push(n9(Wu)+"skewX("+$S+jq)}
function i8(mW,$S,Wu,ol,ft,yF){mW!==Wu||$S!==ol?(ft=ft.push(n9(ft)+"scale(",null,",",null,")"),yF.push({i:ft-4,x:lh(mW,Wu)},{i:ft-2,x:lh($S,ol)})):Wu===1&&ol===1||ft.push(n9(ft)+"scale("+Wu+","+ol+")")}
return function(mW,$S){var Wu=[],ol=[];mW=h(mW);$S=h($S);aw(mW.translateX,mW.translateY,$S.translateX,$S.translateY,Wu,ol);Nf(mW.rotate,$S.rotate,Wu,ol);f9(mW.skewX,$S.skewX,Wu,ol);i8(mW.scaleX,mW.scaleY,$S.scaleX,$S.scaleY,Wu,ol);mW=$S=null;return function(ft){for(var yF=-1,YO=ol.length,Ma;++yF<YO;)Wu[(Ma=ol[yF]).i]=Ma.x(ft);return Wu.join("")}}}
function us(h){return function(v,x){var jq=h((v=oR(v)).h,(x=oR(x)).h),n9=Cc(v.s,x.s),aw=Cc(v.l,x.l),Nf=Cc(v.opacity,x.opacity);return function(f9){v.h=jq(f9);v.s=n9(f9);v.l=aw(f9);v.opacity=Nf(f9);return v+""}}}
function Es(h){return function(v,x){var jq=h((v=vV(v)).h,(x=vV(x)).h),n9=Cc(v.c,x.c),aw=Cc(v.l,x.l),Nf=Cc(v.opacity,x.opacity);return function(f9){v.h=jq(f9);v.c=n9(f9);v.l=aw(f9);v.opacity=Nf(f9);return v+""}}}
function rS(h){return function jq(x){function n9(aw,Nf){var f9=h((aw=No(aw)).h,(Nf=No(Nf)).h),i8=Cc(aw.s,Nf.s),mW=Cc(aw.l,Nf.l),$S=Cc(aw.opacity,Nf.opacity);return function(Wu){aw.h=f9(Wu);aw.s=i8(Wu);aw.l=mW(Math.pow(Wu,x));aw.opacity=$S(Wu);return aw+""}}
x=+x;n9.gamma=jq;return n9}(1)}
function Yd(){return XY||(xmS(JC),XY=sl.now()+H1w)}
function JC(){XY=0}
function xJ(){this._call=this._time=this._next=null}
function BG(h,v,x){var jq=new xJ;jq.restart(h,v,x);return jq}
function vG(){XY=(lUI=sl.now())+H1w;Fg=qN=0;try{Yd();++Fg;for(var h=y59,v;h;)(v=XY-h._time)>=0&&h._call.call(null,v),h=h._next;--Fg}finally{Fg=0;h=y59;for(var x=Infinity;h;)if(h._call){x>h._time&&(x=h._time);var jq=h;h=h._next}else v=h._next,h._next=null,h=jq?jq._next=v:y59=v;PU=jq;f8(x);XY=0}}
function FlZ(){var h=sl.now(),v=h-lUI;v>1E3&&(H1w-=v,lUI=h)}
function f8(h){Fg||(qN&&(qN=clearTimeout(qN)),h-XY>24?(h<Infinity&&(qN=setTimeout(vG,h-sl.now()-H1w)),gH&&(gH=clearInterval(gH))):(gH||(lUI=sl.now(),gH=setInterval(FlZ,1E3)),Fg=1,xmS(vG)))}
function srS(h,v,x){var jq=new xJ;v=v==null?0:+v;jq.restart(function(n9){jq.stop();h(n9+v)},v,x);
return jq}
function QrS(h,v,x,jq,n9,aw){var Nf=h.__transition;if(!Nf)h.__transition={};else if(x in Nf)return;LMr(h,x,{name:v,index:jq,group:n9,on:BKL,tween:vP8,time:aw.time,delay:aw.delay,duration:aw.duration,ease:aw.ease,timer:null,state:0})}
function ILf(h,v){h=qX(h,v);if(h.state>0)throw Error("ze");return h}
function wM(h,v){h=qX(h,v);if(h.state>2)throw Error("Ae");return h}
function qX(h,v){h=h.__transition;if(!h||!(h=h[v]))throw Error("Be");return h}
function LMr(h,v,x){function jq(i8){var mW,$S;if(x.state!==1)return aw();for(ol in Nf){var Wu=Nf[ol];if(Wu.name===x.name){if(Wu.state===3)return srS(jq);Wu.state===4?(Wu.state=6,Wu.timer.stop(),Wu.on.call("interrupt",h,h.__data__,Wu.index,Wu.group),delete Nf[ol]):+ol<v&&(Wu.state=6,Wu.timer.stop(),delete Nf[ol])}}srS(function(){x.state===3&&(x.state=4,x.timer.restart(n9,x.delay,x.time),n9(i8))});
x.state=2;x.on.call("start",h,h.__data__,x.index,x.group);if(x.state===2){x.state=3;f9=Array($S=x.tween.length);var ol=0;for(mW=-1;ol<$S;++ol)if(Wu=x.tween[ol].value.call(h,h.__data__,x.index,x.group))f9[++mW]=Wu;f9.length=mW+1}}
function n9(i8){i8=i8<x.duration?x.ease.call(null,i8/x.duration):(x.timer.restart(aw),x.state=5,1);for(var mW=-1,$S=f9.length;++mW<$S;)f9[mW].call(null,i8);x.state===5&&(x.on.call("end",h,h.__data__,x.index,x.group),aw())}
function aw(){x.state=6;x.timer.stop();delete Nf[v];for(var i8 in Nf)return;delete h.__transition}
var Nf=h.__transition,f9;Nf[v]=x;x.timer=BG(function(i8){x.state=1;x.timer.restart(jq,x.delay,x.time);x.delay<=i8&&jq(i8-x.delay)},0,x.time)}
function fLx(h,v){var x,jq;return function(){var n9=wM(this,h),aw=n9.tween;if(aw!==x){jq=x=aw;aw=0;for(var Nf=jq.length;aw<Nf;++aw)if(jq[aw].name===v){jq=jq.slice();jq.splice(aw,1);break}}n9.tween=jq}}
function hJt(h,v,x){var jq,n9;if(typeof x!=="function")throw Error();return function(){var aw=wM(this,h),Nf=aw.tween;if(Nf!==jq){n9=(jq=Nf).slice();Nf={name:v,value:x};for(var f9=0,i8=n9.length;f9<i8;++f9)if(n9[f9].name===v){n9[f9]=Nf;break}f9===i8&&n9.push(Nf)}aw.tween=n9}}
function EPw(h,v,x){var jq=h._id;h.each(function(){var n9=wM(this,jq);(n9.value||(n9.value={}))[v]=x.apply(this,arguments)});
return function(n9){return qX(n9,jq).value[v]}}
function qMy(h,v){var x;return(typeof v==="number"?lh:v instanceof BV?PFE:(x=BV(v))?(v=x,PFE):DA)(h,v)}
function cT_(h){return function(){this.removeAttribute(h)}}
function ATV(h){return function(){this.removeAttributeNS(h.space,h.local)}}
function eJM(h,v,x){var jq,n9;return function(){var aw=this.getAttribute(h);return aw===x?null:aw===jq?n9:n9=v(jq=aw,x)}}
function dmM(h,v,x){var jq,n9;return function(){var aw=this.getAttributeNS(h.space,h.local);return aw===x?null:aw===jq?n9:n9=v(jq=aw,x)}}
function xm_(h,v,x){var jq,n9,aw;return function(){var Nf=x(this);if(Nf==null)return void this.removeAttribute(h);var f9=this.getAttribute(h);return f9===Nf?null:f9===jq&&Nf===n9?aw:aw=v(jq=f9,n9=Nf)}}
function sr_(h,v,x){var jq,n9,aw;return function(){var Nf=x(this);if(Nf==null)return void this.removeAttributeNS(h.space,h.local);var f9=this.getAttributeNS(h.space,h.local);return f9===Nf?null:f9===jq&&Nf===n9?aw:aw=v(jq=f9,n9=Nf)}}
function qMx(h,v){function x(){var jq=this,n9=v.apply(jq,arguments);return n9&&function(aw){jq.setAttributeNS(h.space,h.local,n9(aw))}}
x._value=v;return x}
function PFM(h,v){function x(){var jq=this,n9=v.apply(jq,arguments);return n9&&function(aw){jq.setAttribute(h,n9(aw))}}
x._value=v;return x}
function gPs(h,v){return function(){ILf(this,h).delay=+v.apply(this,arguments)}}
function RJL(h,v){return v=+v,function(){ILf(this,h).delay=v}}
function YMs(h,v){return function(){wM(this,h).duration=+v.apply(this,arguments)}}
function TKr(h,v){return v=+v,function(){wM(this,h).duration=v}}
function oP8(h,v){if(typeof v!=="function")throw Error();return function(){wM(this,h).ease=v}}
function rT8(h){return(h+"").trim().split(/^|\s+/).every(function(v){var x=v.indexOf(".");x>=0&&(v=v.slice(0,x));return!v||v==="start"})}
function KMr(h,v,x){var jq,n9,aw=rT8(v)?ILf:wM;return function(){var Nf=aw(this,h),f9=Nf.on;if(f9!==jq)(n9=(jq=f9).copy()).on(v,x);Nf.on=n9}}
function DmL(h){return function(){var v=this.parentNode,x;for(x in this.__transition)if(+x!==h)return;v&&v.removeChild(this)}}
function pL8(h,v){var x,jq,n9;return function(){var aw=ki(this,h),Nf=(this.style.removeProperty(h),ki(this,h));return aw===Nf?null:aw===x&&Nf===jq?n9:n9=v(x=aw,jq=Nf)}}
function mmU(h){return function(){this.style.removeProperty(h)}}
function CYl(h,v,x){var jq,n9;return function(){var aw=ki(this,h);return aw===x?null:aw===jq?n9:n9=v(jq=aw,x)}}
function jfr(h,v,x){var jq,n9,aw;return function(){var Nf=ki(this,h),f9=x(this);f9==null&&(f9=(this.style.removeProperty(h),ki(this,h)));return Nf===f9?null:Nf===jq&&f9===n9?aw:aw=v(jq=Nf,n9=f9)}}
function Fk8(h,v,x){function jq(){var n9=this,aw=v.apply(n9,arguments);return aw&&function(Nf){n9.style.setProperty(h,aw(Nf),x)}}
jq._value=v;return jq}
function GRL(h){return function(){this.textContent=h}}
function Vt3(h){return function(){var v=h(this);this.textContent=v==null?"":v}}
function Ub(h,v,x,jq){this._groups=h;this._parents=v;this._name=x;this._id=jq}
function WMo(h){return{type:h}}
function tiW(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function Z1T(){}
function gP8(h,v){var x=new Z1T;if(h instanceof Z1T)h.each(function(Nf,f9){x.set(f9,Nf)});
else if(Array.isArray(h)){var jq=-1,n9=h.length,aw;if(v==null)for(;++jq<n9;)x.set(jq,h[jq]);else for(;++jq<n9;)x.set(v(aw=h[jq],jq,h),aw)}else if(h)for(jq in h)x.set(jq,h[jq]);return x}
function NDW(){}
function RJl(h){return function(v){for(var x={},jq=0;jq<h.length;jq++)x[h[jq]]=v[jq]||"";return x}}
function iRV(h,v){var x=RJl(h);return function(jq,n9){return v(x(jq),n9,h)}}
function JJr(h){var v=Object.create(null),x=[];h.forEach(function(jq){for(var n9 in jq)n9 in v||x.push(v[n9]=n9)});
return x}
function YM8(h){function v(Nf,f9){function i8(){if(yF)return aLW;if(YO)return YO=!1,TKm;var $y,mv=Wu,lQ;if(Nf.charCodeAt(mv)===34){for(;Wu++<$S&&Nf.charCodeAt(Wu)!==34||Nf.charCodeAt(++Wu)===34;);($y=Wu)>=$S?yF=!0:(lQ=Nf.charCodeAt(Wu++))===10?YO=!0:lQ===13&&(YO=!0,Nf.charCodeAt(Wu)===10&&++Wu);return Nf.slice(mv+1,$y-1).replace(/""/g,'"')}for(;Wu<$S;){if((lQ=Nf.charCodeAt($y=Wu++))===10)YO=!0;else if(lQ===13)YO=!0,Nf.charCodeAt(Wu)===10&&++Wu;else if(lQ!==aw)continue;return Nf.slice(mv,$y)}return yF=
!0,Nf.slice(mv,$S)}
var mW=[],$S=Nf.length,Wu=0,ol=0,ft,yF=$S<=0,YO=!1;Nf.charCodeAt($S-1)===10&&--$S;for(Nf.charCodeAt($S-1)===13&&--$S;(ft=i8())!==aLW;){for(var Ma=[];ft!==TKm&&ft!==aLW;)Ma.push(ft),ft=i8();f9&&(Ma=f9(Ma,ol++))==null||mW.push(Ma)}return mW}
function x(Nf){return Nf.map(jq).join(h)}
function jq(Nf){return Nf==null?"":n9.test(Nf)?'"'+Nf.replace(/"/g,'""')+'"':Nf}
var n9=new RegExp('["'+h+"\n\r]"),aw=h.charCodeAt(0);return{parse:function(Nf,f9){var i8,mW;Nf=v(Nf,function($S,Wu){if(i8)return i8($S,Wu-1);mW=$S;i8=f9?iRV($S,f9):RJl($S)});
Nf.columns=mW||[];return Nf},
parseRows:v,format:function(Nf,f9){f9==null&&(f9=JJr(Nf));return[f9.map(jq).join(h)].concat(Nf.map(function(i8){return f9.map(function(mW){return jq(i8[mW])}).join(h)})).join("\n")},
formatRows:function(Nf){return Nf.map(x).join("\n")}}}
function $jV(h){if(!h.ok)throw Error("Ce`"+h.status+"`"+h.statusText);return h.text()}
function oPr(h){return function(v,x,jq){arguments.length===2&&typeof x==="function"&&(jq=x,x=void 0);return fetch(v,x).then($jV).then(function(n9){return h(n9,jq)})}}
function rTr(h,v,x,jq){if(isNaN(v)||isNaN(x))return h;var n9,aw=h._root;jq={data:jq};var Nf=h._x0,f9=h._y0,i8=h._x1,mW=h._y1,$S,Wu,ol,ft,yF;if(!aw)return h._root=jq,h;for(;aw.length;)if((ol=v>=($S=(Nf+i8)/2))?Nf=$S:i8=$S,(ft=x>=(Wu=(f9+mW)/2))?f9=Wu:mW=Wu,n9=aw,!(aw=aw[yF=ft<<1|ol]))return n9[yF]=jq,h;var YO=+h._x.call(null,aw.data);var Ma=+h._y.call(null,aw.data);if(v===YO&&x===Ma)return jq.next=aw,n9?n9[yF]=jq:h._root=jq,h;do n9=n9?n9[yF]=Array(4):h._root=Array(4),(ol=v>=($S=(Nf+i8)/2))?Nf=$S:i8=
$S,(ft=x>=(Wu=(f9+mW)/2))?f9=Wu:mW=Wu;while((yF=ft<<1|ol)===(ol=(Ma>=Wu)<<1|YO>=$S));return n9[ol]=aw,n9[yF]=jq,h}
function Kd(h,v,x,jq,n9){this.node=h;this.x0=v;this.y0=x;this.x1=jq;this.y1=n9}
function bRr(h){return h[0]}
function nW_(h){return h[1]}
function k6B(h,v,x,jq,n9,aw){this._x=h;this._y=v;this._x0=x;this._y0=jq;this._x1=n9;this._y1=aw;this._root=void 0}
function KMm(h){for(var v={data:h.data},x=v;h=h.next;)x=x.next={data:h.data};return v}
function O1s(h,v){if((v=(h=v?h.toExponential(v-1):h.toExponential()).indexOf("e"))<0)return null;var x=h.slice(0,v);return[x.length>1?x[0]+x.slice(2):x,+h.slice(v+1)]}
function ui8(h){return h=O1s(Math.abs(h)),h?h[1]:NaN}
function zv_(h,v){return function(x,jq){for(var n9=x.length,aw=[],Nf=0,f9=h[0],i8=0;n9>0&&f9>0;){i8+f9+1>jq&&(f9=Math.max(1,jq-i8));aw.push(x.substring(n9-=f9,n9+f9));if((i8+=f9+1)>jq)break;f9=h[Nf=(Nf+1)%h.length]}return aw.reverse().join(v)}}
function Qfr(h){return function(v){return v.replace(/[0-9]/g,function(x){return h[+x]})}}
function UmZ(h){return new HKs(h)}
function HKs(h){if(!(v=I2V.exec(h)))throw Error("De`"+h);var v;this.fill=v[1]||" ";this.align=v[2]||">";this.sign=v[3]||"-";this.symbol=v[4]||"";this.zero=!!v[5];this.width=v[6]&&+v[6];this.comma=!!v[7];this.precision=v[8]&&+v[8].slice(1);this.trim=!!v[9];this.type=v[10]||""}
function Dml(h,v){v=O1s(h,v);if(!v)return h+"";h=v[0];v=v[1];return v<0?"0."+Array(-v).join("0")+h:h.length>v+1?h.slice(0,v+1)+"."+h.slice(v+1):h+Array(v-h.length+2).join("0")}
function pLr(h){return h}
function EWV(h){function v(f9){function i8(KT){var kw=lQ,Th=iC,l0,zB;if(mv==="c")Th=CW(KT)+Th,KT="";else{KT=+KT;var cV=KT<0;KT=CW(Math.abs(KT),Ma);if($y){var KW=KT.length,rR=1,b9=-1;a:for(;rR<KW;++rR)switch(KT[rR]){case ".":b9=l0=rR;break;case "0":b9===0&&(b9=rR);l0=rR;break;default:if(!+KT[rR])break a;b9>0&&(b9=0)}KT=b9>0?KT.slice(0,b9)+KT.slice(l0+1):KT}cV&&+KT===0&&(cV=!1);kw=(cV?Wu==="("?Wu:"-":Wu==="-"||Wu==="("?"":Wu)+kw;Th=(mv==="s"?mmG[8+CYO/3]:"")+Th+(cV&&Wu==="("?")":"");if(yf)for(cV=-1,
l0=KT.length;++cV<l0;)if(zB=KT.charCodeAt(cV),48>zB||zB>57){Th=(zB===46?n9+KT.slice(cV+1):KT.slice(cV))+Th;KT=KT.slice(0,cV);break}}YO&&!ft&&(KT=x(KT,Infinity));zB=kw.length+KT.length+Th.length;cV=zB<yF?Array(yF-zB+1).join(mW):"";YO&&ft&&(KT=x(cV+KT,cV.length?yF-Th.length:Infinity),cV="");switch($S){case "<":KT=kw+KT+Th+cV;break;case "=":KT=kw+cV+KT+Th;break;case "^":KT=cV.slice(0,zB=cV.length>>1)+kw+KT+Th+cV.slice(zB);break;default:KT=cV+kw+KT+Th}return aw(KT)}
f9=UmZ(f9);var mW=f9.fill,$S=f9.align,Wu=f9.sign,ol=f9.symbol,ft=f9.zero,yF=f9.width,YO=f9.comma,Ma=f9.precision,$y=f9.trim,mv=f9.type;mv==="n"?(YO=!0,mv="g"):jfm[mv]||(Ma==null&&(Ma=12),$y=!0,mv="g");if(ft||mW==="0"&&$S==="=")ft=!0,mW="0",$S="=";var lQ=ol==="$"?jq[0]:ol==="#"&&/[boxX]/.test(mv)?"0"+mv.toLowerCase():"",iC=ol==="$"?jq[1]:/[%p]/.test(mv)?Nf:"",CW=jfm[mv],yf=/[defgprs%]/.test(mv);Ma=Ma==null?6:/[gprs]/.test(mv)?Math.max(1,Math.min(21,Ma)):Math.max(0,Math.min(20,Ma));i8.toString=function(){return f9+
""};
return i8}
var x=h.grouping&&h.thousands?zv_(h.grouping,h.thousands):pLr,jq=h.currency,n9=h.decimal,aw=h.numerals?Qfr(h.numerals):pLr,Nf=h.percent||"%";return{format:v,formatPrefix:function(f9,i8){var mW=v((f9=UmZ(f9),f9.type="f",f9));f9=Math.max(-8,Math.min(8,Math.floor(ui8(i8)/3)))*3;var $S=Math.pow(10,-f9),Wu=mmG[8+f9/3];return function(ol){return mW($S*ol)+Wu}}}}
function sj(){this.reset()}
function Fkr(h,v,x){var jq=h.s=v+x,n9=jq-v;h.t=v-(jq-n9)+(x-n9)}
function X8i(h){return h>1?TZ:h<-1?-TZ:Math.asin(h)}
function Wkt(){}
function GRl(h){var v=h[0];h=h[1];var x=ov(h);return[x*ov(v),x*L7(v),L7(h)]}
function Vto(h,v){return[h[1]*v[2]-h[2]*v[1],h[2]*v[0]-h[0]*v[2],h[0]*v[1]-h[1]*v[0]]}
function iRu(h){var v=w8w(h[0]*h[0]+h[1]*h[1]+h[2]*h[2]);h[0]/=v;h[1]/=v;h[2]/=v}
function ttr(){var h=[],v;return{point:function(x,jq){v.push([x,jq])},
lineStart:function(){h.push(v=[])},
lineEnd:Wkt,rejoin:function(){h.length>1&&h.push(h.pop().concat(h.shift()))},
result:function(){var x=h;h=[];v=null;return x}}}
function MQB(h,v,x,jq){this.x=h;this.z=v;this.o=x;this.e=jq;this.v=!1;this.n=this.p=null}
function a2_(h,v,x,jq,n9){var aw=[],Nf=[];h.forEach(function(Wu){if(!((ol=Wu.length-1)<=0)){var ol,ft=Wu[0],yF=Wu[ol],YO=ft;if(Hn(YO[0]-yF[0])<1E-6&&Hn(YO[1]-yF[1])<1E-6){n9.lineStart();for(f9=0;f9<ol;++f9)n9.point((ft=Wu[f9])[0],ft[1]);n9.lineEnd()}else aw.push(ol=new MQB(ft,Wu,null,!0)),Nf.push(ol.o=new MQB(ft,null,ol,!1)),aw.push(ol=new MQB(yF,Wu,null,!1)),Nf.push(ol.o=new MQB(yF,null,ol,!0))}});
if(aw.length){Nf.sort(v);JJu(aw);JJu(Nf);var f9=0;for(h=Nf.length;f9<h;++f9)Nf[f9].e=x=!x;x=aw[0];for(var i8;;){for(var mW=x,$S=!0;mW.v;)if((mW=mW.n)===x)return;v=mW.z;n9.lineStart();do{mW.v=mW.o.v=!0;if(mW.e){if($S)for(f9=0,h=v.length;f9<h;++f9)n9.point((i8=v[f9])[0],i8[1]);else jq(mW.x,mW.n.x,1,n9);mW=mW.n}else{if($S)for(v=mW.p.z,f9=v.length-1;f9>=0;--f9)n9.point((i8=v[f9])[0],i8[1]);else jq(mW.x,mW.p.x,-1,n9);mW=mW.p}mW=mW.o;v=mW.z;$S=!$S}while(!mW.v);n9.lineEnd()}}}
function JJu(h){if(v=h.length){for(var v,x=0,jq=h[0],n9;++x<v;)jq.n=n9=h[x],n9.p=jq,jq=n9;jq.n=n9=h[0];n9.p=jq}}
function kRd(h){return h.length>1}
function Ujr(h,v){return((h=h.x)[0]<0?h[1]-TZ-1E-6:TZ-h[1])-((v=v.x)[0]<0?v[1]-TZ-1E-6:TZ-v[1])}
function lLS(){}
function $ju(h){return function(v,x){var jq=ov(v),n9=ov(x);jq=h(jq*n9);return[jq*n9*L7(v),jq*L7(x)]}}
function RV(h){return function(v,x){var jq=w8w(v*v+x*x),n9=h(jq),aw=L7(n9);n9=ov(n9);return[bRm(v*aw,jq*n9),X8i(jq&&x*aw/jq)]}}
function HRW(h){var v=0,x=h.children,jq=x&&x.length;if(jq)for(;--jq>=0;)v+=x[jq].value;else v=1;h.value=v}
function nWS(h,v){var x=new Y$(h);h=+h.value&&(x.value=h.value);var jq,n9=[x],aw,Nf,f9,i8;for(v==null&&(v=l28);jq=n9.pop();)if(h&&(jq.value=+jq.data.value),(Nf=v(jq.data))&&(i8=Nf.length))for(jq.children=Array(i8),f9=i8-1;f9>=0;--f9)n9.push(aw=jq.children[f9]=new Y$(Nf[f9])),aw.parent=jq,aw.depth=jq.depth+1;return x.eachBefore(yJd)}
function l28(h){return h.children}
function ZRs(h){h.data=h.data.data}
function yJd(h){var v=0;do h.height=v;while((h=h.parent)&&h.height<++v)}
function Y$(h){this.data=h;this.depth=this.height=0;this.parent=null}
function yz(h,v,x,jq){function n9(aw){return h(aw=new Date(+aw)),aw}
n9.floor=n9;n9.ceil=function(aw){return h(aw=new Date(aw-1)),v(aw,1),h(aw),aw};
n9.round=function(aw){var Nf=n9(aw),f9=n9.ceil(aw);return aw-Nf<f9-aw?Nf:f9};
n9.offset=function(aw,Nf){return v(aw=new Date(+aw),Nf==null?1:Math.floor(Nf)),aw};
n9.range=function(aw,Nf,f9){var i8=[],mW;aw=n9.ceil(aw);f9=f9==null?1:Math.floor(f9);if(!(aw<Nf&&f9>0))return i8;do i8.push(mW=new Date(+aw)),v(aw,f9),h(aw);while(mW<aw&&aw<Nf);return i8};
n9.filter=function(aw){return yz(function(Nf){if(Nf>=Nf)for(;h(Nf),!aw(Nf);)Nf.setTime(Nf-1)},function(Nf,f9){if(Nf>=Nf)if(f9<0)for(;++f9<=0;)for(;v(Nf,-1),!aw(Nf););
else for(;--f9>=0;)for(;v(Nf,1),!aw(Nf););})};
x&&(n9.count=function(aw,Nf){yTi.setTime(+aw);ZKo.setTime(+Nf);h(yTi);h(ZKo);return Math.floor(x(yTi,ZKo))},n9.every=function(aw){aw=Math.floor(aw);
return isFinite(aw)&&aw>0?aw>1?n9.filter(jq?function(Nf){return jq(Nf)%aw===0}:function(Nf){return n9.count(0,Nf)%aw===0}):n9:null});
return n9}
function MO(h){return yz(function(v){v.setDate(v.getDate()-(v.getDay()+7-h)%7);v.setHours(0,0,0,0)},function(v,x){v.setDate(v.getDate()+x*7)},function(v,x){return(x-v-(x.getTimezoneOffset()-v.getTimezoneOffset())*6E4)/6048E5})}
function Sz(h){return yz(function(v){v.setUTCDate(v.getUTCDate()-(v.getUTCDay()+7-h)%7);v.setUTCHours(0,0,0,0)},function(v,x){v.setUTCDate(v.getUTCDate()+x*7)},function(v,x){return(x-v)/6048E5})}
function NBM(h){if(0<=h.y&&h.y<100){var v=new Date(-1,h.m,h.d,h.H,h.M,h.S,h.L);v.setFullYear(h.y);return v}return new Date(h.y,h.m,h.d,h.H,h.M,h.S,h.L)}
function S15(h){if(0<=h.y&&h.y<100){var v=new Date(Date.UTC(-1,h.m,h.d,h.H,h.M,h.S,h.L));v.setUTCFullYear(h.y);return v}return new Date(Date.UTC(h.y,h.m,h.d,h.H,h.M,h.S,h.L))}
function T4(h){return{y:h,m:0,d:1,H:0,M:0,S:0,L:0}}
function ORU(h){function v(Th,l0){return function(zB){var cV=[],KW=-1,rR=0,b9=Th.length,Ne,UX;for(zB instanceof Date||(zB=new Date(+zB));++KW<b9;)if(Th.charCodeAt(KW)===37){cV.push(Th.slice(rR,KW));(rR=uir[Ne=Th.charAt(++KW)])!=null?Ne=Th.charAt(++KW):rR=Ne==="e"?" ":"0";if(UX=l0[Ne])Ne=UX(zB,rR);cV.push(Ne);rR=KW+1}cV.push(Th.slice(rR,KW));return cV.join("")}}
function x(Th,l0){return function(zB){var cV=T4(1900);if(jq(cV,Th,zB,0)!=zB.length)return null;if("Q"in cV)return new Date(cV.Q);"p"in cV&&(cV.H=cV.H%12+cV.p*12);if("V"in cV){if(cV.V<1||cV.V>53)return null;"w"in cV||(cV.w=1);if("Z"in cV){zB=S15(T4(cV.y));var KW=zB.getUTCDay();zB=KW>4||KW===0?NKZ.ceil(zB):NKZ(zB);zB=zvS.offset(zB,(cV.V-1)*7);cV.y=zB.getUTCFullYear();cV.m=zB.getUTCMonth();cV.d=zB.getUTCDate()+(cV.w+6)%7}else zB=l0(T4(cV.y)),KW=zB.getDay(),zB=KW>4||KW===0?OK9.ceil(zB):OK9(zB),zB=Qfu.offset(zB,
(cV.V-1)*7),cV.y=zB.getFullYear(),cV.m=zB.getMonth(),cV.d=zB.getDate()+(cV.w+6)%7}else if("W"in cV||"U"in cV)"w"in cV||(cV.w="u"in cV?cV.u%7:"W"in cV?1:0),KW="Z"in cV?S15(T4(cV.y)).getUTCDay():l0(T4(cV.y)).getDay(),cV.m=0,cV.d="W"in cV?(cV.w+6)%7+cV.W*7-(KW+5)%7:cV.w+cV.U*7-(KW+6)%7;return"Z"in cV?(cV.H+=cV.Z/100|0,cV.M+=cV.Z%100,S15(cV)):l0(cV)}}
function jq(Th,l0,zB,cV){for(var KW=0,rR=l0.length,b9=zB.length,Ne;KW<rR;){if(cV>=b9)return-1;Ne=l0.charCodeAt(KW++);if(Ne===37){if(Ne=l0.charAt(KW++),Ne=kw[Ne in uir?l0.charAt(KW++):Ne],!Ne||(cV=Ne(Th,zB,cV))<0)return-1}else if(Ne!=zB.charCodeAt(cV++))return-1}return cV}
var n9=h.dateTime,aw=h.date,Nf=h.time,f9=h.periods,i8=h.days,mW=h.shortDays,$S=h.months,Wu=h.shortMonths,ol=oV(f9),ft=rH(f9),yF=oV(i8),YO=rH(i8),Ma=oV(mW),$y=rH(mW),mv=oV($S),lQ=rH($S),iC=oV(Wu),CW=rH(Wu),yf={a:function(Th){return mW[Th.getDay()]},
A:function(Th){return i8[Th.getDay()]},
b:function(Th){return Wu[Th.getMonth()]},
B:function(Th){return $S[Th.getMonth()]},
c:null,d:I2u,e:I2u,f:XZs,H:wZL,I:Mtr,j:SYr,L:EWu,m:LkL,M:BBt,p:function(Th){return f9[+(Th.getHours()>=12)]},
Q:WkP,s:ttm,S:vWr,u:f28,U:hvW,V:cJV,w:AJl,W:evt,x:null,X:null,y:djW,Y:xj8,Z:sf_,"%":a2S},KT={a:function(Th){return mW[Th.getUTCDay()]},
A:function(Th){return i8[Th.getUTCDay()]},
b:function(Th){return Wu[Th.getUTCMonth()]},
B:function(Th){return $S[Th.getUTCMonth()]},
c:null,d:kR$,e:kR$,f:qYd,H:PYU,I:gWt,j:RvV,L:Ujm,m:YYW,M:TBs,p:function(Th){return f9[+(Th.getUTCHours()>=12)]},
Q:WkP,s:ttm,S:oW_,u:rJh,U:Kkl,V:Dj_,w:pZr,W:mjt,x:null,X:null,y:Cpx,Y:j78,Z:F1r,"%":a2S},kw={a:function(Th,l0,zB){return(l0=Ma.exec(l0.slice(zB)))?(Th.w=$y[l0[0].toLowerCase()],zB+l0[0].length):-1},
A:function(Th,l0,zB){return(l0=yF.exec(l0.slice(zB)))?(Th.w=YO[l0[0].toLowerCase()],zB+l0[0].length):-1},
b:function(Th,l0,zB){return(l0=iC.exec(l0.slice(zB)))?(Th.m=CW[l0[0].toLowerCase()],zB+l0[0].length):-1},
B:function(Th,l0,zB){return(l0=mv.exec(l0.slice(zB)))?(Th.m=lQ[l0[0].toLowerCase()],zB+l0[0].length):-1},
c:function(Th,l0,zB){return jq(Th,n9,l0,zB)},
d:HR2,e:HR2,f:GvU,H:l2r,I:l2r,j:VC_,L:iEL,m:J9h,M:$sL,p:function(Th,l0,zB){return(l0=ol.exec(l0.slice(zB)))?(Th.p=ft[l0[0].toLowerCase()],zB+l0[0].length):-1},
Q:bEr,s:n9r,S:uCd,u:z2x,U:Q7_,V:IOr,w:E9h,W:W1l,x:function(Th,l0,zB){return jq(Th,aw,l0,zB)},
X:function(Th,l0,zB){return jq(Th,Nf,l0,zB)},
y:tCM,Y:aOr,Z:kvx,"%":Usd};yf.x=v(aw,yf);yf.X=v(Nf,yf);yf.c=v(n9,yf);KT.x=v(aw,KT);KT.X=v(Nf,KT);KT.c=v(n9,KT);return{format:function(Th){var l0=v(Th,yf);l0.toString=function(){return Th};
return l0},
parse:function(Th){var l0=x(Th,NBM);l0.toString=function(){return Th};
return l0},
utcFormat:function(Th){var l0=v(Th,KT);l0.toString=function(){return Th};
return l0},
utcParse:function(Th){var l0=x(Th,S15);l0.toString=function(){return Th};
return l0}}}
function HQ(h,v,x){var jq=h<0?"-":"";h=(jq?-h:h)+"";var n9=h.length;return jq+(n9<x?Array(x-n9+1).join(v)+h:h)}
function HE8(h){return h.replace(lOx,"\\$&")}
function oV(h){return new RegExp("^(?:"+h.map(HE8).join("|")+")","i")}
function rH(h){for(var v={},x=-1,jq=h.length;++x<jq;)v[h[x].toLowerCase()]=x;return v}
function E9h(h,v,x){return(v=yO.exec(v.slice(x,x+1)))?(h.w=+v[0],x+v[0].length):-1}
function z2x(h,v,x){return(v=yO.exec(v.slice(x,x+1)))?(h.u=+v[0],x+v[0].length):-1}
function Q7_(h,v,x){return(v=yO.exec(v.slice(x,x+2)))?(h.U=+v[0],x+v[0].length):-1}
function IOr(h,v,x){return(v=yO.exec(v.slice(x,x+2)))?(h.V=+v[0],x+v[0].length):-1}
function W1l(h,v,x){return(v=yO.exec(v.slice(x,x+2)))?(h.W=+v[0],x+v[0].length):-1}
function aOr(h,v,x){return(v=yO.exec(v.slice(x,x+4)))?(h.y=+v[0],x+v[0].length):-1}
function tCM(h,v,x){return(v=yO.exec(v.slice(x,x+2)))?(h.y=+v[0]+(+v[0]>68?1900:2E3),x+v[0].length):-1}
function kvx(h,v,x){return(v=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(v.slice(x,x+6)))?(h.Z=v[1]?0:-(v[2]+(v[3]||"00")),x+v[0].length):-1}
function J9h(h,v,x){return(v=yO.exec(v.slice(x,x+2)))?(h.m=v[0]-1,x+v[0].length):-1}
function HR2(h,v,x){return(v=yO.exec(v.slice(x,x+2)))?(h.d=+v[0],x+v[0].length):-1}
function VC_(h,v,x){return(v=yO.exec(v.slice(x,x+3)))?(h.m=0,h.d=+v[0],x+v[0].length):-1}
function l2r(h,v,x){return(v=yO.exec(v.slice(x,x+2)))?(h.H=+v[0],x+v[0].length):-1}
function $sL(h,v,x){return(v=yO.exec(v.slice(x,x+2)))?(h.M=+v[0],x+v[0].length):-1}
function uCd(h,v,x){return(v=yO.exec(v.slice(x,x+2)))?(h.S=+v[0],x+v[0].length):-1}
function iEL(h,v,x){return(v=yO.exec(v.slice(x,x+3)))?(h.L=+v[0],x+v[0].length):-1}
function GvU(h,v,x){return(v=yO.exec(v.slice(x,x+6)))?(h.L=Math.floor(v[0]/1E3),x+v[0].length):-1}
function Usd(h,v,x){return(h=y9t.exec(v.slice(x,x+1)))?x+h[0].length:-1}
function bEr(h,v,x){return(v=yO.exec(v.slice(x)))?(h.Q=+v[0],x+v[0].length):-1}
function n9r(h,v,x){return(v=yO.exec(v.slice(x)))?(h.Q=+v[0]*1E3,x+v[0].length):-1}
function I2u(h,v){return HQ(h.getDate(),v,2)}
function wZL(h,v){return HQ(h.getHours(),v,2)}
function Mtr(h,v){return HQ(h.getHours()%12||12,v,2)}
function SYr(h,v){return HQ(1+Qfu.count(Gr(h),h),v,3)}
function EWu(h,v){return HQ(h.getMilliseconds(),v,3)}
function XZs(h,v){return EWu(h,v)+"000"}
function LkL(h,v){return HQ(h.getMonth()+1,v,2)}
function BBt(h,v){return HQ(h.getMinutes(),v,2)}
function vWr(h,v){return HQ(h.getSeconds(),v,2)}
function f28(h){h=h.getDay();return h===0?7:h}
function hvW(h,v){return HQ(ZEr.count(Gr(h),h),v,2)}
function cJV(h,v){var x=h.getDay();h=x>=4||x===0?XLW(h):XLW.ceil(h);return HQ(XLW.count(Gr(h),h)+(Gr(h).getDay()===4),v,2)}
function AJl(h){return h.getDay()}
function evt(h,v){return HQ(OK9.count(Gr(h),h),v,2)}
function djW(h,v){return HQ(h.getFullYear()%100,v,2)}
function xj8(h,v){return HQ(h.getFullYear()%1E4,v,4)}
function sf_(h){h=h.getTimezoneOffset();return(h>0?"-":(h*=-1,"+"))+HQ(h/60|0,"0",2)+HQ(h%60,"0",2)}
function kR$(h,v){return HQ(h.getUTCDate(),v,2)}
function PYU(h,v){return HQ(h.getUTCHours(),v,2)}
function gWt(h,v){return HQ(h.getUTCHours()%12||12,v,2)}
function RvV(h,v){return HQ(1+zvS.count(Vv(h),h),v,3)}
function Ujm(h,v){return HQ(h.getUTCMilliseconds(),v,3)}
function qYd(h,v){return Ujm(h,v)+"000"}
function YYW(h,v){return HQ(h.getUTCMonth()+1,v,2)}
function TBs(h,v){return HQ(h.getUTCMinutes(),v,2)}
function oW_(h,v){return HQ(h.getUTCSeconds(),v,2)}
function rJh(h){h=h.getUTCDay();return h===0?7:h}
function Kkl(h,v){return HQ(N$r.count(Vv(h),h),v,2)}
function Dj_(h,v){var x=h.getUTCDay();h=x>=4||x===0?wLq(h):wLq.ceil(h);return HQ(wLq.count(Vv(h),h)+(Vv(h).getUTCDay()===4),v,2)}
function pZr(h){return h.getUTCDay()}
function mjt(h,v){return HQ(NKZ.count(Vv(h),h),v,2)}
function Cpx(h,v){return HQ(h.getUTCFullYear()%100,v,2)}
function j78(h,v){return HQ(h.getUTCFullYear()%1E4,v,4)}
function F1r(){return"+0000"}
function a2S(){return"%"}
function WkP(h){return+h}
function ttm(h){return Math.floor(+h/1E3)}
function tG(h){for(var v=h.length/6|0,x=Array(v),jq=0;jq<v;)x[jq]="#"+h.slice(jq*6,++jq*6);return x}
function DN(h){return OEW(h[h.length-1])}
function Lh9(h){var v=h.length;return function(x){return h[Math.max(0,Math.min(v-1,Math.floor(x*v)))]}}
function yJ$(h){this._context=h}
function ZR8(h){this._curve=h}
function NBE(h,v,x){var jq=h._x1-h._x0;v-=h._x1;var n9=(h._y1-h._y0)/(jq||v<0&&-0);h=(x-h._y1)/(v||jq<0&&-0);return((n9<0?-1:1)+(h<0?-1:1))*Math.min(Math.abs(n9),Math.abs(h),.5*Math.abs((n9*v+h*jq)/(jq+v)))||0}
function ORG(h,v){var x=h._x1-h._x0;return x?(3*(h._y1-h._y0)/x-v)/2:v}
function Mif(h,v,x){var jq=h._x0,n9=h._x1,aw=h._y1,Nf=(n9-jq)/3;h._context.bezierCurveTo(jq+Nf,h._y0+Nf*v,n9-Nf,aw-Nf*x,n9,aw)}
function SMW(h){this._context=h}
function XZ8(h){this._context=h}
function Kb(h,v,x){this.k=h;this.x=v;this.y=x}
(function(h){h.length===1&&(h=F(h));return{left:function(v,x,jq,n9){jq==null&&(jq=0);n9==null&&(n9=v.length);for(;jq<n9;){var aw=jq+n9>>>1;h(v[aw],x)<0?jq=aw+1:n9=aw}return jq},
right:function(v,x,jq,n9){jq==null&&(jq=0);n9==null&&(n9=v.length);for(;jq<n9;){var aw=jq+n9>>>1;h(v[aw],x)>0?n9=aw:jq=aw+1}return jq}}})(C);
var k6r={value:function(){}};
V.prototype=G.prototype={constructor:V,on:function(h,v){var x=this._,jq=J(h+"",x),n9,aw=-1,Nf=jq.length;if(arguments.length<2)for(;++aw<Nf;){var f9;if(f9=n9=(h=jq[aw]).type){a:{f9=x[n9];for(var i8=0,mW=f9.length;i8<mW;++i8)if((n9=f9[i8]).name===h.name){n9=n9.value;break a}n9=void 0}f9=n9}if(f9)return n9}else{if(v!=null&&typeof v!=="function")throw Error("Ee`"+v);for(;++aw<Nf;)if(n9=(h=jq[aw]).type)x[n9]=b(x[n9],h.name,v);else if(v==null)for(n9 in x)x[n9]=b(x[n9],h.name,null);return this}},
copy:function(){var h={},v=this._,x;for(x in v)h[x]=v[x].slice();return new V(h)},
call:function(h,v){if((n9=arguments.length-2)>0)for(var x=Array(n9),jq=0,n9,aw;jq<n9;++jq)x[jq]=arguments[jq+2];if(!this._.hasOwnProperty(h))throw Error("ye`"+h);aw=this._[h];jq=0;for(n9=aw.length;jq<n9;++jq)aw[jq].value.apply(v,x)},
apply:function(h,v,x){if(!this._.hasOwnProperty(h))throw Error("ye`"+h);h=this._[h];for(var jq=0,n9=h.length;jq<n9;++jq)h[jq].value.apply(v,x)}};
var YZ={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/"},wZl=function(h){return function(){return this.matches(h)}};
if(typeof document!=="undefined"){var D$=document.documentElement;if(!D$.matches){var XW8=D$.webkitMatchesSelector||D$.msMatchesSelector||D$.mozMatchesSelector||D$.oMatchesSelector;wZl=function(h){return function(){return XW8.call(this,h)}}}}var Mtu=wZl;
l.prototype={constructor:l,appendChild:function(h){return this._parent.insertBefore(h,this._next)},
insertBefore:function(h,v){return this._parent.insertBefore(h,v)},
querySelector:function(h){return this._parent.querySelector(h)},
querySelectorAll:function(h){return this._parent.querySelectorAll(h)}};
var BKl={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(BKl={mouseenter:"mouseover",mouseleave:"mouseout"}));var Ums=[null];Qr.prototype=FM.prototype={constructor:Qr,select:function(h){typeof h!=="function"&&(h=U(h));for(var v=this._groups,x=v.length,jq=Array(x),n9=0;n9<x;++n9)for(var aw=v[n9],Nf=aw.length,f9=jq[n9]=Array(Nf),i8,mW,$S=0;$S<Nf;++$S)(i8=aw[$S])&&(mW=h.call(i8,i8.__data__,$S,aw))&&("__data__"in i8&&(mW.__data__=i8.__data__),f9[$S]=mW);return new Qr(jq,
this._parents)},
filter:function(h){typeof h!=="function"&&(h=Mtu(h));for(var v=this._groups,x=v.length,jq=Array(x),n9=0;n9<x;++n9)for(var aw=v[n9],Nf=aw.length,f9=jq[n9]=[],i8,mW=0;mW<Nf;++mW)(i8=aw[mW])&&h.call(i8,i8.__data__,mW,aw)&&f9.push(i8);return new Qr(jq,this._parents)},
data:function(h,v){if(!h)return ft=Array(this.size()),mW=-1,this.each(function(mv){ft[++mW]=mv}),ft;
var x=v?f:S,jq=this._parents,n9=this._groups;typeof h!=="function"&&(h=N(h));for(var aw=n9.length,Nf=Array(aw),f9=Array(aw),i8=Array(aw),mW=0;mW<aw;++mW){var $S=jq[mW],Wu=n9[mW],ol=Wu.length,ft=h.call($S,$S&&$S.__data__,mW,jq),yF=ft.length,YO=f9[mW]=Array(yF),Ma=Nf[mW]=Array(yF);ol=i8[mW]=Array(ol);x($S,Wu,YO,Ma,ol,ft,v);Wu=$S=0;for(var $y;$S<yF;++$S)if(ol=YO[$S]){for($S>=Wu&&(Wu=$S+1);!($y=Ma[Wu])&&++Wu<yF;);ol._next=$y||null}}Nf=new Qr(Nf,jq);Nf._enter=f9;Nf._exit=i8;return Nf},
enter:function(){return new Qr(this._enter||this._groups.map(H),this._parents)},
exit:function(){return new Qr(this._exit||this._groups.map(H),this._parents)},
merge:function(h){var v=this._groups;h=h._groups;for(var x=v.length,jq=Math.min(x,h.length),n9=Array(x),aw=0;aw<jq;++aw)for(var Nf=v[aw],f9=h[aw],i8=Nf.length,mW=n9[aw]=Array(i8),$S,Wu=0;Wu<i8;++Wu)if($S=Nf[Wu]||f9[Wu])mW[Wu]=$S;for(;aw<x;++aw)n9[aw]=v[aw];return new Qr(n9,this._parents)},
order:function(){for(var h=this._groups,v=-1,x=h.length;++v<x;)for(var jq=h[v],n9=jq.length-1,aw=jq[n9],Nf;--n9>=0;)if(Nf=jq[n9])aw&&aw!==Nf.nextSibling&&aw.parentNode.insertBefore(Nf,aw),aw=Nf;return this},
sort:function(h){function v(Wu,ol){return Wu&&ol?h(Wu.__data__,ol.__data__):!Wu-!ol}
h||(h=c);for(var x=this._groups,jq=x.length,n9=Array(jq),aw=0;aw<jq;++aw){for(var Nf=x[aw],f9=Nf.length,i8=n9[aw]=Array(f9),mW,$S=0;$S<f9;++$S)if(mW=Nf[$S])i8[$S]=mW;i8.sort(v)}return(new Qr(n9,this._parents)).order()},
call:function(){var h=arguments[0];arguments[0]=this;h.apply(null,arguments);return this},
nodes:function(){var h=Array(this.size()),v=-1;this.each(function(){h[++v]=this});
return h},
node:function(){for(var h=this._groups,v=0,x=h.length;v<x;++v)for(var jq=h[v],n9=0,aw=jq.length;n9<aw;++n9){var Nf=jq[n9];if(Nf)return Nf}return null},
size:function(){var h=0;this.each(function(){++h});
return h},
empty:function(){return!this.node()},
each:function(h){for(var v=this._groups,x=0,jq=v.length;x<jq;++x)for(var n9=v[x],aw=0,Nf=n9.length,f9;aw<Nf;++aw)(f9=n9[aw])&&h.call(f9,f9.__data__,aw,n9);return this},
attr:function(h,v){var x=z(h);if(arguments.length<2){var jq=this.node();return x.local?jq.getAttributeNS(x.space,x.local):jq.getAttribute(x)}return this.each((v==null?x.local?T:A:typeof v==="function"?x.local?C9:r:x.local?g:P)(x,v))},
style:function(h,v,x){return arguments.length>1?this.each((v==null?Wo:typeof v==="function"?L9:EB)(h,v,x==null?"":x)):ki(this.node(),h)},
property:function(h,v){return arguments.length>1?this.each((v==null?lZ:typeof v==="function"?OB:eq)(h,v)):this.node()[h]},
text:function(h){return arguments.length?this.each(h==null?yr:(typeof h==="function"?w2:Rl)(h)):this.node().textContent},
html:function(h){return arguments.length?this.each(h==null?jG:(typeof h==="function"?Bu:Il)(h)):this.node().innerHTML},
append:function(h){var v=typeof h==="function"?h:t(h);return this.select(function(){return this.appendChild(v.apply(this,arguments))})},
insert:function(h,v){var x=typeof h==="function"?h:t(h),jq=v==null?vu:typeof v==="function"?v:U(v);return this.select(function(){return this.insertBefore(x.apply(this,arguments),jq.apply(this,arguments)||null)})},
remove:function(){return this.each(Zr)},
clone:function(h){return this.select(h?$i:k_)},
datum:function(h){return arguments.length?this.property("__data__",h):this.node().__data__},
on:function(h,v,x){var jq=V8(h+""),n9=jq.length,aw;if(arguments.length<2){var Nf=this.node().__on;if(Nf)for(var f9=0,i8=Nf.length,mW;f9<i8;++f9){var $S=0;for(mW=Nf[f9];$S<n9;++$S)if((aw=jq[$S]).type===mW.type&&aw.name===mW.name)return mW.value}}else{Nf=v?Gh:Hu;x==null&&(x=!1);for($S=0;$S<n9;++$S)this.each(Nf(jq[$S],v,x));return this}},
dispatch:function(h,v){return this.each((typeof v==="function"?Em:YS)(h,v))}};
var HKl=0;ow.prototype=function(){return new ow}.prototype={constructor:ow,
get:function(h){for(var v=this._;!(v in h);)if(!(h=h.parentNode))return;return h[v]},
set:function(h,v){return h[this._]=v},
remove:function(h){return this._ in h&&delete h[this._]},
toString:function(){return this._}};
var iA=1/.7,lLM=/^#([0-9a-f]{3})$/,yT_=/^#([0-9a-f]{6})$/,ZKV=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),NKs=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),OKt=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),XLd=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*\\)$"),
wLU=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Mi3=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*\\)$"),vPr={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};
kS(r9,BV,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
kS(XM,pP,HV(r9,{brighter:function(h){h=h==null?iA:Math.pow(iA,h);return new XM(this.r*h,this.g*h,this.b*h,this.opacity)},
darker:function(h){h=h==null?.7:Math.pow(.7,h);return new XM(this.r*h,this.g*h,this.b*h,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"#"+is(this.r)+is(this.g)+is(this.b)},
toString:function(){var h=this.opacity;h=isNaN(h)?1:Math.max(0,Math.min(1,h));return(h===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))+(h===1?")":", "+h+")")}}));
kS(A2,oR,HV(r9,{brighter:function(h){h=h==null?iA:Math.pow(iA,h);return new A2(this.h,this.s,this.l*h,this.opacity)},
darker:function(h){h=h==null?.7:Math.pow(.7,h);return new A2(this.h,this.s,this.l*h,this.opacity)},
rgb:function(){var h=this.h%360+(this.h<0)*360,v=this.l,x=v+(v<.5?v:1-v)*(isNaN(h)||isNaN(this.s)?0:this.s);v=2*v-x;return new XM(li(h>=240?h-240:h+120,v,x),li(h,v,x),li(h<120?h+240:h-120,v,x),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 fLy=Math.PI/180,ATu=180/Math.PI,cTS=4/29,jO=6/29,hJP=3*jO*jO,SMd=jO*jO*jO;kS(Sq,function(h,v,x,jq){return arguments.length===1?HS(h):new Sq(h,v,x,jq==null?1:jq)},HV(r9,{brighter:function(h){return new Sq(this.l+18*(h==null?1:h),this.a,this.b,this.opacity)},
darker:function(h){return new Sq(this.l-18*(h==null?1:h),this.a,this.b,this.opacity)},
rgb:function(){var h=(this.l+16)/116,v=isNaN(this.a)?h:h+this.a/500,x=isNaN(this.b)?h:h-this.b/200;v=.96422*Yi(v);h=1*Yi(h);x=.82521*Yi(x);return new XM(Zu(3.1338561*v-1.6168667*h-.4906146*x),Zu(-.9787684*v+1.9161415*h+.033454*x),Zu(.0719453*v-.2289914*h+1.4052427*x),this.opacity)}}));
kS(Om,vV,HV(r9,{brighter:function(h){return new Om(this.h,this.c,this.l+18*(h==null?1:h),this.opacity)},
darker:function(h){return new Om(this.h,this.c,this.l-18*(h==null?1:h),this.opacity)},
rgb:function(){return HS(this).rgb()}}));
var eJE=1.78277*-.29227-.1347134789;kS(dW,No,HV(r9,{brighter:function(h){h=h==null?iA:Math.pow(iA,h);return new dW(this.h,this.s,this.l*h,this.opacity)},
darker:function(h){h=h==null?.7:Math.pow(.7,h);return new dW(this.h,this.s,this.l*h,this.opacity)},
rgb:function(){var h=isNaN(this.h)?0:(this.h+120)*fLy,v=+this.l,x=isNaN(this.s)?0:this.s*v*(1-v),jq=Math.cos(h);h=Math.sin(h);return new XM(255*(v+x*(-.14861*jq+1.78277*h)),255*(v+x*(-.29227*jq+-.90649*h)),255*(v+1.97294*jq*x),this.opacity)}}));
var PFE=function x(v){function jq(aw,Nf){var f9=n9((aw=pP(aw)).r,(Nf=pP(Nf)).r),i8=n9(aw.g,Nf.g),mW=n9(aw.b,Nf.b),$S=Cc(aw.opacity,Nf.opacity);return function(Wu){aw.r=f9(Wu);aw.g=i8(Wu);aw.b=mW(Wu);aw.opacity=$S(Wu);return aw+""}}
var n9=KB(v);jq.gamma=x;return jq}(1),OEW=Hc(function(v){var x=v.length-1;
return function(jq){var n9=jq<=0?jq=0:jq>=1?(jq=1,x-1):Math.floor(jq*x),aw=v[n9],Nf=v[n9+1];return UL((jq-n9/x)*x,n9>0?v[n9-1]:2*aw-Nf,aw,Nf,n9<x-1?v[n9+2]:2*Nf-aw)}});
Hc(function(v){var x=v.length;return function(jq){var n9=Math.floor(((jq%=1)<0?++jq:jq)*x);return UL((jq-n9/x)*x,v[(n9+x-1)%x],v[n9%x],v[(n9+1)%x],v[(n9+2)%x])}});
var ulw=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,zJE=new RegExp(ulw.source,"g"),dmE=180/Math.PI,LMB={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},pb,BKw,SYm,BDT,wW8=WV(function(v){if(v==="none")return LMB;pb||(pb=document.createElement("DIV"),BKw=document.documentElement,SYm=document.defaultView);pb.style.transform=v;v=SYm.getComputedStyle(BKw.appendChild(pb),null).getPropertyValue("transform");BKw.removeChild(pb);v=v.slice(7,-1).split(",");return wW(+v[0],+v[1],+v[2],+v[3],
+v[4],+v[5])},"px, ","px)","deg)"),MCh=WV(function(v){if(v==null)return LMB;
BDT||(BDT=document.createElementNS("http://www.w3.org/2000/svg","g"));BDT.setAttribute("transform",v);if(!(v=BDT.transform.baseVal.consolidate()))return LMB;v=v.matrix;return wW(v.a,v.b,v.c,v.d,v.e,v.f)},", ",")",")");
us(xl);us(Cc);Es(xl);Es(Cc);rS(xl);var vPT=rS(Cc),Fg=0,qN=0,gH=0,y59,PU,lUI=0,XY=0,H1w=0,sl=typeof performance==="object"&&performance.now?performance:Date,xmS=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(v){setTimeout(v,17)};
xJ.prototype=BG.prototype={constructor:xJ,restart:function(v,x,jq){if(typeof v!=="function")throw new TypeError("Fe");jq=(jq==null?Yd():+jq)+(x==null?0:+x);this._next||PU===this||(PU?PU._next=this:y59=this,PU=this);this._call=v;this._time=jq;f8()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,f8())}};
var BKL=G("start","end","interrupt"),vP8=[],Sn8=FM.prototype.constructor,Lkl=0,Je=FM.prototype;Ub.prototype=function(v){return FM().transition(v)}.prototype={constructor:Ub,
select:function(v){var x=this._name,jq=this._id;typeof v!=="function"&&(v=U(v));for(var n9=this._groups,aw=n9.length,Nf=Array(aw),f9=0;f9<aw;++f9)for(var i8=n9[f9],mW=i8.length,$S=Nf[f9]=Array(mW),Wu,ol,ft=0;ft<mW;++ft)(Wu=i8[ft])&&(ol=v.call(Wu,Wu.__data__,ft,i8))&&("__data__"in Wu&&(ol.__data__=Wu.__data__),$S[ft]=ol,QrS($S[ft],x,jq,ft,$S,qX(Wu,jq)));return new Ub(Nf,this._parents,x,jq)},
filter:function(v){typeof v!=="function"&&(v=Mtu(v));for(var x=this._groups,jq=x.length,n9=Array(jq),aw=0;aw<jq;++aw)for(var Nf=x[aw],f9=Nf.length,i8=n9[aw]=[],mW,$S=0;$S<f9;++$S)(mW=Nf[$S])&&v.call(mW,mW.__data__,$S,Nf)&&i8.push(mW);return new Ub(n9,this._parents,this._name,this._id)},
merge:function(v){if(v._id!==this._id)throw Error();var x=this._groups;v=v._groups;for(var jq=x.length,n9=Math.min(jq,v.length),aw=Array(jq),Nf=0;Nf<n9;++Nf)for(var f9=x[Nf],i8=v[Nf],mW=f9.length,$S=aw[Nf]=Array(mW),Wu,ol=0;ol<mW;++ol)if(Wu=f9[ol]||i8[ol])$S[ol]=Wu;for(;Nf<jq;++Nf)aw[Nf]=x[Nf];return new Ub(aw,this._parents,this._name,this._id)},
selection:function(){return new Sn8(this._groups,this._parents)},
transition:function(){for(var v=this._name,x=this._id,jq=++Lkl,n9=this._groups,aw=n9.length,Nf=0;Nf<aw;++Nf)for(var f9=n9[Nf],i8=f9.length,mW,$S=0;$S<i8;++$S)if(mW=f9[$S]){var Wu=qX(mW,x);QrS(mW,v,jq,$S,f9,{time:Wu.time+Wu.delay+Wu.duration,delay:0,duration:Wu.duration,ease:Wu.ease})}return new Ub(n9,this._parents,v,jq)},
call:Je.call,nodes:Je.nodes,node:Je.node,size:Je.size,empty:Je.empty,each:Je.each,on:function(v,x){var jq=this._id;return arguments.length<2?qX(this.node(),jq).on.on(v):this.each(KMr(jq,v,x))},
attr:function(v,x){var jq=z(v),n9=jq==="transform"?MCh:qMy;return this.attrTween(v,typeof x==="function"?(jq.local?sr_:xm_)(jq,n9,EPw(this,"attr."+v,x)):x==null?(jq.local?ATV:cT_)(jq):(jq.local?dmM:eJM)(jq,n9,x+""))},
attrTween:function(v,x){var jq="attr."+v;if(arguments.length<2)return(jq=this.tween(jq))&&jq._value;if(x==null)return this.tween(jq,null);if(typeof x!=="function")throw Error();var n9=z(v);return this.tween(jq,(n9.local?qMx:PFM)(n9,x))},
style:function(v,x,jq){var n9=v==="transform"?wW8:qMy;return x==null?this.styleTween(v,pL8(v,n9)).on("end.style."+v,mmU(v)):this.styleTween(v,typeof x==="function"?jfr(v,n9,EPw(this,"style."+v,x)):CYl(v,n9,x+""),jq)},
styleTween:function(v,x,jq){var n9="style."+v;if(arguments.length<2)return(n9=this.tween(n9))&&n9._value;if(x==null)return this.tween(n9,null);if(typeof x!=="function")throw Error();return this.tween(n9,Fk8(v,x,jq==null?"":jq))},
text:function(v){return this.tween("text",typeof v==="function"?Vt3(EPw(this,"text",v)):GRL(v==null?"":v+""))},
remove:function(){return this.on("end.remove",DmL(this._id))},
tween:function(v,x){var jq=this._id;if(arguments.length<2){jq=qX(this.node(),jq).tween;for(var n9=0,aw=jq.length,Nf;n9<aw;++n9)if((Nf=jq[n9]).name===v)return Nf.value;return null}return this.each((x==null?fLx:hJt)(jq,v,x))},
delay:function(v){var x=this._id;return arguments.length?this.each((typeof v==="function"?gPs:RJL)(x,v)):qX(this.node(),x).delay},
duration:function(v){var x=this._id;return arguments.length?this.each((typeof v==="function"?YMs:TKr)(x,v)):qX(this.node(),x).duration},
ease:function(v){var x=this._id;return arguments.length?this.each(oP8(x,v)):qX(this.node(),x).ease}};
var fL5={time:null,delay:0,duration:250,ease:function(v){return((v*=2)<=1?v*v*v:(v-=2)*v*v+2)/2}};
FM.prototype.transition=function(v){var x;if(v instanceof Ub){var jq=v._id;v=v._name}else jq=++Lkl,(x=fL5).time=Yd(),v=v==null?null:v+"";for(var n9=this._groups,aw=n9.length,Nf=0;Nf<aw;++Nf)for(var f9=n9[Nf],i8=f9.length,mW,$S=0;$S<i8;++$S)if(mW=f9[$S]){var Wu=mW,ol=v,ft=jq,yF=$S,YO=f9,Ma;if(!(Ma=x))a:{Ma=void 0;for(var $y=jq;!(Ma=mW.__transition)||!(Ma=Ma[$y]);)if(!(mW=mW.parentNode)){Ma=(fL5.time=Yd(),fL5);break a}}QrS(Wu,ol,ft,yF,YO,Ma)}return new Ub(n9,this._parents,v,jq)};
["e","w"].map(WMo);["n","s"].map(WMo);"n e s w nw ne se sw".split(" ").map(WMo);tiW.prototype=function(){return new tiW}.prototype={constructor:tiW,
moveTo:function(v,x){this._+="M"+(this._x0=this._x1=+v)+","+(this._y0=this._y1=+x)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(v,x){this._+="L"+(this._x1=+v)+","+(this._y1=+x)},
bezierCurveTo:function(v,x,jq,n9,aw,Nf){this._+="C"+ +v+","+ +x+","+ +jq+","+ +n9+","+(this._x1=+aw)+","+(this._y1=+Nf)},
rect:function(v,x,jq,n9){this._+="M"+(this._x0=this._x1=+v)+","+(this._y0=this._y1=+x)+"h"+ +jq+"v"+ +n9+"h"+-jq+"Z"},
toString:function(){return this._}};
Z1T.prototype=gP8.prototype={constructor:Z1T,has:function(v){return" "+v in this},
get:function(v){return this[" "+v]},
set:function(v,x){this[" "+v]=x;return this},
remove:function(v){v=" "+v;return v in this&&delete this[v]},
clear:function(){for(var v in this)v[0]===" "&&delete this[v]},
keys:function(){var v=[],x;for(x in this)x[0]===" "&&v.push(x.slice(1));return v},
values:function(){var v=[],x;for(x in this)x[0]===" "&&v.push(this[x]);return v},
entries:function(){var v=[],x;for(x in this)x[0]===" "&&v.push({key:x.slice(1),value:this[x]});return v},
size:function(){var v=0,x;for(x in this)x[0]===" "&&++v;return v},
empty:function(){for(var v in this)if(v[0]===" ")return!1;return!0},
each:function(v){for(var x in this)x[0]===" "&&v(this[x],x.slice(1),this)}};
var L$=gP8.prototype;NDW.prototype=function(v,x){var jq=new NDW;if(v instanceof NDW)v.each(function(Nf){jq.add(Nf)});
else if(v){var n9=-1,aw=v.length;if(x==null)for(;++n9<aw;)jq.add(v[n9]);else for(;++n9<aw;)jq.add(x(v[n9],n9,v))}return jq}.prototype={constructor:NDW,
has:L$.has,add:function(v){this[" "+v]=v;return this},
remove:L$.remove,clear:L$.clear,values:L$.keys,size:L$.size,empty:L$.empty,each:L$.each};var TKm={},aLW={},L1h=YM8(",").parse,B$s=YM8("\t").parse;oPr(L1h);oPr(B$s);var Dt=function(v,x,jq){x=new k6B(x==null?bRr:x,jq==null?nW_:jq,NaN,NaN,NaN,NaN);return v==null?x:x.addAll(v)}.prototype=k6B.prototype;
Dt.copy=function(){var v=new k6B(this._x,this._y,this._x0,this._y0,this._x1,this._y1),x=this._root,jq,n9;if(!x)return v;if(!x.length)return v._root=KMm(x),v;for(jq=[{source:x,target:v._root=Array(4)}];x=jq.pop();)for(var aw=0;aw<4;++aw)if(n9=x.source[aw])n9.length?jq.push({source:n9,target:x.target[aw]=Array(4)}):x.target[aw]=KMm(n9);return v};
Dt.add=function(v){var x=+this._x.call(null,v),jq=+this._y.call(null,v);return rTr(this.cover(x,jq),x,jq,v)};
Dt.addAll=function(v){var x,jq,n9=v.length,aw,Nf,f9=Array(n9),i8=Array(n9),mW=Infinity,$S=Infinity,Wu=-Infinity,ol=-Infinity;for(jq=0;jq<n9;++jq)isNaN(aw=+this._x.call(null,x=v[jq]))||isNaN(Nf=+this._y.call(null,x))||(f9[jq]=aw,i8[jq]=Nf,aw<mW&&(mW=aw),aw>Wu&&(Wu=aw),Nf<$S&&($S=Nf),Nf>ol&&(ol=Nf));Wu<mW&&(mW=this._x0,Wu=this._x1);ol<$S&&($S=this._y0,ol=this._y1);this.cover(mW,$S).cover(Wu,ol);for(jq=0;jq<n9;++jq)rTr(this,f9[jq],i8[jq],v[jq]);return this};
Dt.cover=function(v,x){if(isNaN(v=+v)||isNaN(x=+x))return this;var jq=this._x0,n9=this._y0,aw=this._x1,Nf=this._y1;if(isNaN(jq))aw=(jq=Math.floor(v))+1,Nf=(n9=Math.floor(x))+1;else if(jq>v||v>aw||n9>x||x>Nf){var f9=aw-jq,i8=this._root,mW;switch(mW=(x<(n9+Nf)/2)<<1|v<(jq+aw)/2){case 0:do{var $S=Array(4);$S[mW]=i8;i8=$S}while(f9*=2,aw=jq+f9,Nf=n9+f9,v>aw||x>Nf);break;case 1:do $S=Array(4),$S[mW]=i8,i8=$S;while(f9*=2,jq=aw-f9,Nf=n9+f9,jq>v||x>Nf);break;case 2:do $S=Array(4),$S[mW]=i8,i8=$S;while(f9*=
2,aw=jq+f9,n9=Nf-f9,v>aw||n9>x);break;case 3:do $S=Array(4),$S[mW]=i8,i8=$S;while(f9*=2,jq=aw-f9,n9=Nf-f9,jq>v||n9>x)}this._root&&this._root.length&&(this._root=i8)}else return this;this._x0=jq;this._y0=n9;this._x1=aw;this._y1=Nf;return this};
Dt.data=function(){var v=[];this.visit(function(x){if(!x.length){do v.push(x.data);while(x=x.next)}});
return v};
Dt.extent=function(v){return arguments.length?this.cover(+v[0][0],+v[0][1]).cover(+v[1][0],+v[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
Dt.find=function(v,x,jq){var n9=this._x0,aw=this._y0,Nf,f9,i8,mW,$S=this._x1,Wu=this._y1,ol=[],ft=this._root,yF;ft&&ol.push(new Kd(ft,n9,aw,$S,Wu));jq==null?jq=Infinity:(n9=v-jq,aw=x-jq,$S=v+jq,Wu=x+jq,jq*=jq);for(;yF=ol.pop();)if(!(!(ft=yF.node)||(Nf=yF.x0)>$S||(f9=yF.y0)>Wu||(i8=yF.x1)<n9||(mW=yF.y1)<aw))if(ft.length){yF=(Nf+i8)/2;var YO=(f9+mW)/2;ol.push(new Kd(ft[3],yF,YO,i8,mW),new Kd(ft[2],Nf,YO,yF,mW),new Kd(ft[1],yF,f9,i8,YO),new Kd(ft[0],Nf,f9,yF,YO));if(ft=(x>=YO)<<1|v>=yF)yF=ol[ol.length-
1],ol[ol.length-1]=ol[ol.length-1-ft],ol[ol.length-1-ft]=yF}else if(yF=v-+this._x.call(null,ft.data),YO=x-+this._y.call(null,ft.data),yF=yF*yF+YO*YO,yF<jq){var Ma=Math.sqrt(jq=yF);n9=v-Ma;aw=x-Ma;$S=v+Ma;Wu=x+Ma;Ma=ft.data}return Ma};
Dt.remove=function(v){if(isNaN(mW=+this._x.call(null,v))||isNaN($S=+this._y.call(null,v)))return this;var x,jq=this._root,n9,aw=this._x0,Nf=this._y0,f9=this._x1,i8=this._y1,mW,$S,Wu,ol,ft,yF,YO;if(!jq)return this;if(jq.length)for(;;){(ft=mW>=(Wu=(aw+f9)/2))?aw=Wu:f9=Wu;(yF=$S>=(ol=(Nf+i8)/2))?Nf=ol:i8=ol;if(!(x=jq,jq=jq[YO=yF<<1|ft]))return this;if(!jq.length)break;if(x[YO+1&3]||x[YO+2&3]||x[YO+3&3]){var Ma=x;var $y=YO}}for(;jq.data!==v;)if(!(n9=jq,jq=jq.next))return this;(v=jq.next)&&delete jq.next;
if(n9)return v?n9.next=v:delete n9.next,this;if(!x)return this._root=v,this;v?x[YO]=v:delete x[YO];(jq=x[0]||x[1]||x[2]||x[3])&&jq===(x[3]||x[2]||x[1]||x[0])&&!jq.length&&(Ma?Ma[$y]=jq:this._root=jq);return this};
Dt.removeAll=function(v){for(var x=0,jq=v.length;x<jq;++x)this.remove(v[x]);return this};
Dt.root=function(){return this._root};
Dt.size=function(){var v=0;this.visit(function(x){if(!x.length){do++v;while(x=x.next)}});
return v};
Dt.visit=function(v){var x=[],jq,n9=this._root,aw,Nf,f9,i8,mW;for(n9&&x.push(new Kd(n9,this._x0,this._y0,this._x1,this._y1));jq=x.pop();)if(!v(n9=jq.node,Nf=jq.x0,f9=jq.y0,i8=jq.x1,mW=jq.y1)&&n9.length){jq=(Nf+i8)/2;var $S=(f9+mW)/2;(aw=n9[3])&&x.push(new Kd(aw,jq,$S,i8,mW));(aw=n9[2])&&x.push(new Kd(aw,Nf,$S,jq,mW));(aw=n9[1])&&x.push(new Kd(aw,jq,f9,i8,$S));(aw=n9[0])&&x.push(new Kd(aw,Nf,f9,jq,$S))}};
Dt.visitAfter=function(v){var x=[],jq=[],n9;for(this._root&&x.push(new Kd(this._root,this._x0,this._y0,this._x1,this._y1));n9=x.pop();){var aw=n9.node;if(aw.length){var Nf,f9=n9.x0,i8=n9.y0,mW=n9.x1,$S=n9.y1,Wu=(f9+mW)/2,ol=(i8+$S)/2;(Nf=aw[0])&&x.push(new Kd(Nf,f9,i8,Wu,ol));(Nf=aw[1])&&x.push(new Kd(Nf,Wu,i8,mW,ol));(Nf=aw[2])&&x.push(new Kd(Nf,f9,ol,Wu,$S));(Nf=aw[3])&&x.push(new Kd(Nf,Wu,ol,mW,$S))}jq.push(n9)}for(;n9=jq.pop();)v(n9.node,n9.x0,n9.y0,n9.x1,n9.y1);return this};
Dt.x=function(v){return arguments.length?(this._x=v,this):this._x};
Dt.y=function(v){return arguments.length?(this._y=v,this):this._y};
var I2V=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;UmZ.prototype=HKs.prototype;HKs.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 CYO,jfm={"%":function(v,x){return(v*100).toFixed(x)},
b:function(v){return Math.round(v).toString(2)},
c:function(v){return v+""},
d:function(v){return Math.round(v).toString(10)},
e:function(v,x){return v.toExponential(x)},
f:function(v,x){return v.toFixed(x)},
g:function(v,x){return v.toPrecision(x)},
o:function(v){return Math.round(v).toString(8)},
p:function(v,x){return Dml(v*100,x)},
r:Dml,s:function(v,x){var jq=O1s(v,x);if(!jq)return v+"";var n9=jq[0];jq=jq[1];jq=jq-(CYO=Math.max(-8,Math.min(8,Math.floor(jq/3)))*3)+1;var aw=n9.length;return jq===aw?n9:jq>aw?n9+Array(jq-aw+1).join("0"):jq>0?n9.slice(0,jq)+"."+n9.slice(jq):"0."+Array(1-jq).join("0")+O1s(v,Math.max(0,x+jq-1))[0]},
X:function(v){return Math.round(v).toString(16).toUpperCase()},
x:function(v){return Math.round(v).toString(16)}},mmG="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),v9_;
(function(v){return v9_=EWV(v)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});sj.prototype={constructor:sj,reset:function(){this.s=this.t=0},
add:function(v){Fkr(vw5,v,this.t);Fkr(this,vw5.s,this.s);this.s?this.t+=vw5.t:this.s=vw5.t},
valueOf:function(){return this.s}};
var vw5=new sj,Kc=Math.PI,TZ=Kc/2,BBP=Kc/4,fO_=Kc*2,hJ9=Kc/180,Hn=Math.abs,cTi=Math.atan,bRm=Math.atan2,ov=Math.cos,L7=Math.sin,w8w=Math.sqrt;new sj;new sj;new sj;var ATo=new sj;(function(v,x,jq,n9){return function(aw){function Nf(CW,yf){v(CW,yf)&&aw.point(CW,yf)}
function f9(CW,yf){ft.point(CW,yf)}
function i8(){iC.point=f9;ft.lineStart()}
function mW(){iC.point=Nf;ft.lineEnd()}
function $S(CW,yf){lQ.push([CW,yf]);YO.point(CW,yf)}
function Wu(){YO.lineStart();lQ=[]}
function ol(){$S(lQ[0][0],lQ[0][1]);YO.lineEnd();var CW=YO.clean(),yf=yF.result(),KT=yf.length,kw;lQ.pop();$y.push(lQ);lQ=null;if(KT)if(CW&1){if(KT=yf[0],(yf=KT.length-1)>0){Ma||(aw.polygonStart(),Ma=!0);aw.lineStart();for(CW=0;CW<yf;++CW)aw.point((kw=KT[CW])[0],kw[1]);aw.lineEnd()}}else KT>1&&CW&2&&yf.push(yf.pop().concat(yf.shift())),mv.push(yf.filter(kRd))}
var ft=x(aw),yF=ttr(),YO=x(yF),Ma=!1,$y,mv,lQ,iC={point:Nf,lineStart:i8,lineEnd:mW,polygonStart:function(){iC.point=$S;iC.lineStart=Wu;iC.lineEnd=ol;mv=[];$y=[]},
polygonEnd:function(){iC.point=Nf;iC.lineStart=i8;iC.lineEnd=mW;var CW=mv,yf=CW.length;var KT=-1;for(var kw=0,Th,l0;++KT<yf;)kw+=CW[KT].length;for(Th=Array(kw);--yf>=0;)for(l0=CW[yf],KT=l0.length;--KT>=0;)Th[--kw]=l0[KT];mv=Th;CW=$y;yf=n9[0];kw=n9[1];var zB=L7(kw);KT=[L7(yf),-ov(yf),0];l0=Th=0;ATo.reset();zB===1?kw=TZ+1E-6:zB===-1&&(kw=-TZ-1E-6);zB=0;for(var cV=CW.length;zB<cV;++zB)if(rR=(KW=CW[zB]).length){var KW,rR,b9=KW[rR-1],Ne=b9[0],UX=b9[1]/2+BBP,fUE=L7(UX),vWu=ov(UX);for(UX=0;UX<rR;++UX,Ne=
eJS,fUE=f2r,vWu=mJ,b9=hKI){var hKI=KW[UX],eJS=hKI[0];mJ=hKI[1]/2+BBP;var f2r=L7(mJ),mJ=ov(mJ),$o=eJS-Ne,dmS=$o>=0?1:-1,xmi=dmS*$o,c5o=xmi>Kc;fUE*=f2r;ATo.add(bRm(fUE*dmS*L7(xmi),vWu*mJ+fUE*ov(xmi)));Th+=c5o?$o+dmS*fO_:$o;c5o^Ne>=yf^eJS>=yf&&(b9=Vto(GRl(b9),GRl(hKI)),iRu(b9),Ne=Vto(KT,b9),iRu(Ne),Ne=(c5o^$o>=0?-1:1)*X8i(Ne[2]),kw>Ne||kw===Ne&&(b9[0]||b9[1]))&&(l0+=c5o^$o>=0?1:-1)}}CW=(Th<-1E-6||Th<1E-6&&ATo<-1E-6)^l0&1;mv.length?(Ma||(aw.polygonStart(),Ma=!0),a2_(mv,Ujr,CW,jq,aw)):CW&&(Ma||(aw.polygonStart(),
Ma=!0),aw.lineStart(),jq(null,null,1,aw),aw.lineEnd());Ma&&(aw.polygonEnd(),Ma=!1);mv=$y=null},
sphere:function(){aw.polygonStart();aw.lineStart();jq(null,null,1,aw);aw.lineEnd();aw.polygonEnd()}};
return iC}})(function(){return!0},function(v){var x=NaN,jq=NaN,n9=NaN,aw;
return{lineStart:function(){v.lineStart();aw=1},
point:function(Nf,f9){var i8=Nf>0?Kc:-Kc,mW=Hn(Nf-x);if(Hn(mW-Kc)<1E-6)v.point(x,jq=(jq+f9)/2>0?TZ:-TZ),v.point(n9,jq),v.lineEnd(),v.lineStart(),v.point(i8,jq),v.point(Nf,jq),aw=0;else if(n9!==i8&&mW>=Kc){Hn(x-n9)<1E-6&&(x-=n9*1E-6);Hn(Nf-i8)<1E-6&&(Nf-=i8*1E-6);mW=x;var $S=jq,Wu=Nf,ol,ft,yF=L7(mW-Wu);jq=Hn(yF)>1E-6?cTi((L7($S)*(ft=ov(f9))*L7(Wu)-L7(f9)*(ol=ov($S))*L7(mW))/(ol*ft*yF)):($S+f9)/2;v.point(n9,jq);v.lineEnd();v.lineStart();v.point(i8,jq);aw=0}v.point(x=Nf,jq=f9);n9=i8},
lineEnd:function(){v.lineEnd();x=jq=NaN},
clean:function(){return 2-aw}}},function(v,x,jq,n9){v==null?(jq*=TZ,n9.point(-Kc,jq),n9.point(0,jq),n9.point(Kc,jq),n9.point(Kc,0),n9.point(Kc,-jq),n9.point(0,-jq),n9.point(-Kc,-jq),n9.point(-Kc,0),n9.point(-Kc,jq)):Hn(v[0]-x[0])>1E-6?(v=v[0]<x[0]?Kc:-Kc,jq=jq*v/2,n9.point(-v,jq),n9.point(0,jq),n9.point(v,jq)):n9.point(x[0],x[1])},[-Kc,
-TZ]);new sj;new sj;new sj;new sj;lLS.prototype={constructor:lLS,point:function(v,x){this.stream.point(v,x)},
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()}};
ov(30*hJ9);(function(v){return function(x){var jq=new lLS,n9;for(n9 in v)jq[n9]=v[n9];jq.stream=x;return jq}})({point:function(v,x){this.stream.point(v*hJ9,x*hJ9)}});
$ju(function(v){return w8w(2/(1+v))}).invert=RV(function(v){return 2*X8i(v/2)});
$ju(function(v){return(v=v>1?0:v<-1?Kc:Math.acos(v))&&v/L7(v)}).invert=RV(function(v){return v});
w8w(3);RV(cTi);RV(X8i);RV(function(v){return 2*cTi(v)});
Y$.prototype=nWS.prototype={constructor:Y$,count:function(){return this.eachAfter(HRW)},
each:function(v){var x,jq=[this],n9;do{var aw=jq.reverse();for(jq=[];x=aw.pop();)if(v(x),x=x.children){var Nf=0;for(n9=x.length;Nf<n9;++Nf)jq.push(x[Nf])}}while(jq.length);return this},
eachAfter:function(v){for(var x,jq=[this],n9=[],aw,Nf;x=jq.pop();)if(n9.push(x),x=x.children)for(aw=0,Nf=x.length;aw<Nf;++aw)jq.push(x[aw]);for(;x=n9.pop();)v(x);return this},
eachBefore:function(v){for(var x,jq=[this],n9;x=jq.pop();)if(v(x),x=x.children)for(n9=x.length-1;n9>=0;--n9)jq.push(x[n9]);return this},
sum:function(v){return this.eachAfter(function(x){for(var jq=+v(x.data)||0,n9=x.children,aw=n9&&n9.length;--aw>=0;)jq+=n9[aw].value;x.value=jq})},
sort:function(v){return this.eachBefore(function(x){x.children&&x.children.sort(v)})},
path:function(v){var x=this;var jq=x;var n9=v;if(jq!==n9){var aw=jq.ancestors(),Nf=n9.ancestors(),f9=null;jq=aw.pop();for(n9=Nf.pop();jq===n9;)f9=jq,jq=aw.pop(),n9=Nf.pop();jq=f9}for(n9=[x];x!==jq;)x=x.parent,n9.push(x);for(x=n9.length;v!==jq;)n9.splice(x,0,v),v=v.parent;return n9},
ancestors:function(){for(var v=this,x=[v];v=v.parent;)x.push(v);return x},
links:function(){var v=this,x=[];v.each(function(jq){jq!==v&&x.push({source:jq.parent,target:jq})});
return x},
copy:function(){return nWS(this).eachBefore(ZRs)}};
(function(v,x){this._=v;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=x}).prototype=Object.create(Y$.prototype);
var yTi=new Date,ZKo=new Date,hv2=yz(function(){},function(v,x){v.setTime(+v+x)},function(v,x){return x-v});
hv2.every=function(v){v=Math.floor(v);return isFinite(v)&&v>0?v>1?yz(function(x){x.setTime(Math.floor(x/v)*v)},function(x,jq){x.setTime(+x+jq*v)},function(x,jq){return(jq-x)/v}):hv2:null};
yz(function(v){v.setTime(Math.floor(v/1E3)*1E3)},function(v,x){v.setTime(+v+x*1E3)},function(v,x){return(x-v)/1E3},function(v){return v.getUTCSeconds()});
yz(function(v){v.setTime(Math.floor(v/6E4)*6E4)},function(v,x){v.setTime(+v+x*6E4)},function(v,x){return(x-v)/6E4},function(v){return v.getMinutes()});
yz(function(v){var x=v.getTimezoneOffset()*6E4%36E5;x<0&&(x+=36E5);v.setTime(Math.floor((+v-x)/36E5)*36E5+x)},function(v,x){v.setTime(+v+x*36E5)},function(v,x){return(x-v)/36E5},function(v){return v.getHours()});
var Qfu=yz(function(v){v.setHours(0,0,0,0)},function(v,x){v.setDate(v.getDate()+x)},function(v,x){return(x-v-(x.getTimezoneOffset()-v.getTimezoneOffset())*6E4)/864E5},function(v){return v.getDate()-1}),ZEr=MO(0),OK9=MO(1);
MO(2);MO(3);var XLW=MO(4);MO(5);MO(6);yz(function(v){v.setDate(1);v.setHours(0,0,0,0)},function(v,x){v.setMonth(v.getMonth()+x)},function(v,x){return x.getMonth()-v.getMonth()+(x.getFullYear()-v.getFullYear())*12},function(v){return v.getMonth()});
var Gr=yz(function(v){v.setMonth(0,1);v.setHours(0,0,0,0)},function(v,x){v.setFullYear(v.getFullYear()+x)},function(v,x){return x.getFullYear()-v.getFullYear()},function(v){return v.getFullYear()});
Gr.every=function(v){return isFinite(v=Math.floor(v))&&v>0?yz(function(x){x.setFullYear(Math.floor(x.getFullYear()/v)*v);x.setMonth(0,1);x.setHours(0,0,0,0)},function(x,jq){x.setFullYear(x.getFullYear()+jq*v)}):null};
yz(function(v){v.setUTCSeconds(0,0)},function(v,x){v.setTime(+v+x*6E4)},function(v,x){return(x-v)/6E4},function(v){return v.getUTCMinutes()});
yz(function(v){v.setUTCMinutes(0,0,0)},function(v,x){v.setTime(+v+x*36E5)},function(v,x){return(x-v)/36E5},function(v){return v.getUTCHours()});
var zvS=yz(function(v){v.setUTCHours(0,0,0,0)},function(v,x){v.setUTCDate(v.getUTCDate()+x)},function(v,x){return(x-v)/864E5},function(v){return v.getUTCDate()-1}),N$r=Sz(0),NKZ=Sz(1);
Sz(2);Sz(3);var wLq=Sz(4);Sz(5);Sz(6);yz(function(v){v.setUTCDate(1);v.setUTCHours(0,0,0,0)},function(v,x){v.setUTCMonth(v.getUTCMonth()+x)},function(v,x){return x.getUTCMonth()-v.getUTCMonth()+(x.getUTCFullYear()-v.getUTCFullYear())*12},function(v){return v.getUTCMonth()});
var Vv=yz(function(v){v.setUTCMonth(0,1);v.setUTCHours(0,0,0,0)},function(v,x){v.setUTCFullYear(v.getUTCFullYear()+x)},function(v,x){return x.getUTCFullYear()-v.getUTCFullYear()},function(v){return v.getUTCFullYear()});
Vv.every=function(v){return isFinite(v=Math.floor(v))&&v>0?yz(function(x){x.setUTCFullYear(Math.floor(x.getUTCFullYear()/v)*v);x.setUTCMonth(0,1);x.setUTCHours(0,0,0,0)},function(x,jq){x.setUTCFullYear(x.getUTCFullYear()+jq*v)}):null};
var uir={"-":"",_:" ",0:"0"},yO=/^\s*\d+/,y9t=/^%/,lOx=/[\\^$*+?|[\]().{}]/g,A5Z;(function(v){A5Z=ORU(v);Npr=A5Z.utcFormat;OV8=A5Z.utcParse;return A5Z})({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||Npr("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||OV8("%Y-%m-%dT%H:%M:%S.%LZ");tG("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
tG("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");tG("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");tG("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");tG("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");tG("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");tG("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
tG("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");tG("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");tG("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");tG("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");tG("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var h2d=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(tG);DN(h2d);var c9x=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(tG);DN(c9x);var A9d=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(tG);DN(A9d);var e2s=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(tG);
DN(e2s);var ds8=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(tG);DN(ds8);var xsM=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(tG);DN(xsM);var s7W=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(tG);DN(s7W);var qnl=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(tG);DN(qnl);var Ppr=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(tG);DN(Ppr);var g9l=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(tG);DN(g9l);var R2r=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(tG);DN(R2r);var Ynx=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(tG);DN(Ynx);var T$h=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(tG);DN(T$h);var o98=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(tG);DN(o98);var r9d=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(tG);DN(r9d);var K1U=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(tG);DN(K1U);var Ds8=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(tG);DN(Ds8);var pWx=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(tG);DN(pWx);var msV=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(tG);DN(msV);var C7x=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(tG);DN(C7x);var jOl=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(tG);DN(jOl);var Fux=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(tG);DN(Fux);var GsU=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(tG);DN(GsU);var VKW=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(tG);DN(VKW);var ipW=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(tG);DN(ipW);var JZW=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(tG);DN(JZW);var $Rl=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(tG);DN($Rl);vPT(No(300,.5,0),No(-240,.5,1));vPT(No(-100,.75,.35),No(80,1.5,.8));vPT(No(260,.75,.35),No(80,1.5,.8));No();pP();Lh9(tG("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
Lh9(tG("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
Lh9(tG("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
Lh9(tG("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
yJ$.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(v,x){v=+v;x=+x;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(v,x):this._context.moveTo(v,x);break;case 1:this._point=2;default:this._context.lineTo(v,x)}}};
(function(v){function x(jq){return new ZR8(v(jq))}
x._curve=v;return x})(function(v){return new yJ$(v)});
ZR8.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(v,x){this._curve.point(x*Math.sin(v),x*-Math.cos(v))}};
SMW.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:Mif(this,this._t0,ORG(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(v,x){var jq=NaN;v=+v;x=+x;if(v!==this._x1||x!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(v,x):this._context.moveTo(v,x);break;case 1:this._point=2;break;case 2:this._point=3;Mif(this,ORG(this,jq=NBE(this,v,x)),jq);break;default:Mif(this,this._t0,jq=NBE(this,v,x))}this._x0=this._x1;this._x1=v;this._y0=this._y1;this._y1=x;this._t0=jq}}};
(function(v){this._context=new XZ8(v)}.prototype=Object.create(SMW.prototype)).point=function(v,x){SMW.prototype.point.call(this,x,v)};
XZ8.prototype={moveTo:function(v,x){this._context.moveTo(x,v)},
closePath:function(){this._context.closePath()},
lineTo:function(v,x){this._context.lineTo(x,v)},
bezierCurveTo:function(v,x,jq,n9,aw,Nf){this._context.bezierCurveTo(x,v,n9,jq,Nf,aw)}};
Kb.prototype={constructor:Kb,scale:function(v){return v===1?this:new Kb(this.k*v,this.x,this.y)},
translate:function(v,x){return v===0&x===0?this:new Kb(this.k,this.x+this.k*v,this.y+this.k*x)},
apply:function(v){return[v[0]*this.k+this.x,v[1]*this.k+this.y]},
invert:function(v){return[(v[0]-this.x)/this.k,(v[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new Kb(1,0,0);zAi=BV;YZ.svg=YZ.svg;YZ.xhtml=YZ.xhtml;YZ.xlink=YZ.xlink;YZ.xml=YZ.xml;YZ.xmlns=YZ.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 Xso="hammer_"+(Math.random()*1E6|0),wsO=function(){var C=document||document;if(!C[Xso]){var F=function(){(function(G,V,J,b){function z(Sq,xi,Yi){return setTimeout(H(Sq,Yi),xi)}
function Q(Sq,xi,Yi){return Array.isArray(Sq)?(E(Sq,Yi[xi],Yi),!0):!1}
function E(Sq,xi,Yi){var Zu;if(Sq)if(Sq.forEach)Sq.forEach(xi,Yi);else if(Sq.length!==b){var ls=0;for(Zu=Sq.length;ls<Zu;ls++)xi.call(Yi,Sq[ls],ls,Sq)}else for(ls in Sq)Sq.hasOwnProperty(ls)&&xi.call(Yi,Sq[ls],ls,Sq)}
function t(Sq,xi,Yi){for(var Zu=Object.keys(xi),ls=0,Bh=Zu.length;ls<Bh;ls++)if(!Yi||Yi&&Sq[Zu[ls]]===b)Sq[Zu[ls]]=xi[Zu[ls]];return Sq}
function k(Sq,xi){return t(Sq,xi,!0)}
function U(Sq,xi,Yi){xi=xi.prototype;var Zu=Sq.prototype=Object.create(xi);Zu.constructor=Sq;Zu._super=xi;Yi&&t(Zu,Yi)}
function H(Sq,xi){return function(){return Sq.apply(xi,arguments)}}
function l(Sq,xi){return typeof Sq=="function"?Sq.apply(xi?xi[0]||b:b,xi):Sq}
function N(Sq,xi,Yi){E(f(xi),function(Zu){Sq.addEventListener(Zu,Yi,!1)})}
function S(Sq,xi,Yi){E(f(xi),function(Zu){Sq.removeEventListener(Zu,Yi,!1)})}
function f(Sq){return Sq.trim().split(/\s+/g)}
function c(Sq,xi,Yi){if(Sq.indexOf&&!Yi)return Sq.indexOf(xi);for(var Zu=0,ls=Sq.length;Zu<ls;Zu++)if(Yi&&Sq[Zu][Yi]==xi||!Yi&&Sq[Zu]===xi)return Zu;return-1}
function A(Sq,xi,Yi){for(var Zu=[],ls=[],Bh=0,vV=Sq.length;Bh<vV;Bh++){var Om=xi?Sq[Bh][xi]:Sq[Bh];c(ls,Om)<0&&Zu.push(Sq[Bh]);ls[Bh]=Om}Yi&&(Zu=xi?Zu.sort(function(No,dW){return No[xi]>dW[xi]}):Zu.sort());
return Zu}
function T(Sq,xi){for(var Yi,Zu=xi[0].toUpperCase()+xi.slice(1),ls=0,Bh=Em.length;ls<Bh;ls++)if(Yi=(Yi=Em[ls])?Yi+Zu:xi,Yi in Sq)return Yi;return b}
function P(Sq,xi){var Yi=this;this.manager=Sq;this.callback=xi;this.element=Sq.element;this.target=Sq.options.inputTarget;this.domHandler=function(Zu){l(Sq.options.enable,[Sq])&&Yi.handler(Zu)};
this.evEl&&N(this.element,this.evEl,this.domHandler);this.evTarget&&N(this.target,this.evTarget,this.domHandler);this.evWin&&N(G,this.evWin,this.domHandler)}
function g(Sq){var xi;qa?xi=eq:mh?xi=OB:BV?xi=yr:xi=lZ;return new xi(Sq,r)}
function r(Sq,xi,Yi){var Zu=Yi.pointers.length,ls=Yi.changedPointers.length,Bh=xi&1&&Zu-ls===0;Yi.isFirst=!!Bh;Yi.isFinal=!!(xi&12&&Zu-ls===0);Bh&&(Sq.session={});Yi.eventType=xi;xi=Sq.session;Zu=Yi.pointers;ls=Zu.length;xi.firstInput||(xi.firstInput=C9(Yi));ls>1&&!xi.firstMultiple?xi.firstMultiple=C9(Yi):ls===1&&(xi.firstMultiple=!1);Bh=xi.firstInput;var vV=(ls=xi.firstMultiple)?ls.center:Bh.center,Om=Yi.center=Wo(Zu);Yi.timeStamp=kS();Yi.deltaTime=Yi.timeStamp-Bh.timeStamp;Yi.angle=ki(vV,Om);Yi.distance=
L9(vV,Om);Bh=Yi.center;vV=xi.offsetDelta||{};Om=xi.prevDelta||{};var No=xi.prevInput||{};if(Yi.eventType===1||No.eventType===4)Om=xi.prevDelta={x:No.deltaX||0,y:No.deltaY||0},vV=xi.offsetDelta={x:Bh.x,y:Bh.y};Yi.deltaX=Om.x+(Bh.x-vV.x);Yi.deltaY=Om.y+(Bh.y-vV.y);Yi.offsetDirection=EB(Yi.deltaX,Yi.deltaY);ls?(Bh=ls.pointers,Bh=L9(Zu[0],Zu[1],pP)/L9(Bh[0],Bh[1],pP)):Bh=1;Yi.scale=Bh;ls?(ls=ls.pointers,Zu=ki(Zu[1],Zu[0],pP)-ki(ls[1],ls[0],pP)):Zu=0;Yi.rotation=Zu;vV=xi.lastInterval||Yi;Zu=Yi.timeStamp-
vV.timeStamp;Yi.eventType!=8&&(Zu>25||vV.velocity===b)?(Bh=vV.deltaX-Yi.deltaX,vV=vV.deltaY-Yi.deltaY,Om=Bh/Zu||0,No=vV/Zu||0,Zu=Om,ls=No,Om=ow(Om)>ow(No)?Om:No,Bh=EB(Bh,vV),xi.lastInterval=Yi):(Om=vV.velocity,Zu=vV.velocityX,ls=vV.velocityY,Bh=vV.direction);Yi.velocity=Om;Yi.velocityX=Zu;Yi.velocityY=ls;Yi.direction=Bh;xi=Sq.element;a:{for(Zu=Yi.srcEvent.target;Zu;){if(Zu==xi){Zu=!0;break a}Zu=Zu.parentNode}Zu=!1}Zu&&(xi=Yi.srcEvent.target);Yi.target=xi;Sq.emit("hammer.input",Yi);Sq.recognize(Yi);
Sq.session.prevInput=Yi}
function C9(Sq){for(var xi=[],Yi=0;Yi<Sq.pointers.length;Yi++)xi[Yi]={clientX:FM(Sq.pointers[Yi].clientX),clientY:FM(Sq.pointers[Yi].clientY)};return{timeStamp:kS(),pointers:xi,center:Wo(xi),deltaX:Sq.deltaX,deltaY:Sq.deltaY}}
function Wo(Sq){var xi=Sq.length;if(xi===1)return{x:FM(Sq[0].clientX),y:FM(Sq[0].clientY)};for(var Yi=0,Zu=0,ls=0;ls<xi;ls++)Yi+=Sq[ls].clientX,Zu+=Sq[ls].clientY;return{x:FM(Yi/xi),y:FM(Zu/xi)}}
function EB(Sq,xi){return Sq===xi?1:ow(Sq)>=ow(xi)?Sq>0?2:4:xi>0?8:16}
function L9(Sq,xi,Yi){Yi||(Yi=nA);var Zu=xi[Yi[0]]-Sq[Yi[0]];Sq=xi[Yi[1]]-Sq[Yi[1]];return Math.sqrt(Zu*Zu+Sq*Sq)}
function ki(Sq,xi,Yi){Yi||(Yi=nA);return Math.atan2(xi[Yi[1]]-Sq[Yi[1]],xi[Yi[0]]-Sq[Yi[0]])*180/Math.PI}
function lZ(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;P.apply(this,arguments)}
function eq(){this.evEl=jo;this.evWin=oR;P.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function OB(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};P.apply(this,arguments)}
function yr(){P.apply(this,arguments);var Sq=H(this.handler,this);this.touch=new OB(this.manager,Sq);this.mouse=new lZ(this.manager,Sq)}
function Rl(Sq,xi){this.manager=Sq;this.set(xi)}
function w2(Sq){if(Sq.indexOf("none")>-1)return"none";var xi=Sq.indexOf("pan-x")>-1,Yi=Sq.indexOf("pan-y")>-1;return xi&&Yi?"pan-x pan-y":xi||Yi?xi?"pan-x":"pan-y":Sq.indexOf("manipulation")>-1?"manipulation":"auto"}
function jG(Sq){this.id=HV++;this.manager=null;this.options=k(Sq||{},this.defaults);Sq=this.options.enable;this.options.enable=Sq===b?!0:Sq;this.state=1;this.simultaneous={};this.requireFail=[]}
function Il(Sq){return Sq==16?"down":Sq==8?"up":Sq==2?"left":Sq==4?"right":""}
function Bu(Sq,xi){return(xi=xi.manager)?xi.get(Sq):Sq}
function vu(){jG.apply(this,arguments)}
function Zr(){vu.apply(this,arguments);this.pY=this.pX=null}
function k_(){vu.apply(this,arguments)}
function $i(){jG.apply(this,arguments);this._input=this._timer=null}
function Vr(){vu.apply(this,arguments)}
function Um(){vu.apply(this,arguments)}
function V8(){jG.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function Hu(Sq,xi){xi=xi||{};var Yi=xi.recognizers;xi.recognizers=Yi===b?Hu.defaults.preset:Yi;return new Gh(Sq,xi)}
function Gh(Sq,xi){xi=xi||{};this.options=k(xi,Hu.defaults);this.options.inputTarget=this.options.inputTarget||Sq;this.handlers={};this.session={};this.recognizers=[];this.element=Sq;this.input=g(this);this.touchAction=new Rl(this,this.options.touchAction);hW(this,!0);E(xi.recognizers,function(Yi){var Zu=this.add(new Yi[0](Yi[1]));Yi[2]&&Zu.recognizeWith(Yi[2]);Yi[3]&&Zu.requireFailure(Yi[2])},this)}
function hW(Sq,xi){var Yi=Sq.element;E(Sq.options.cssProps,function(Zu,ls){Yi.style[T(Yi.style,ls)]=xi?Zu:""})}
function YS(Sq,xi){var Yi=V.createEvent("Event");Yi.initEvent(Sq,!0,!0);Yi.gesture=xi;xi.target.dispatchEvent(Yi)}
var Em=" webkit moz MS ms o".split(" "),Qr=V.createElement("div"),FM=Math.round,ow=Math.abs,kS=Date.now,HV=1,r9=/mobile|tablet|ip(ad|hone|od)|android/i,BV="ontouchstart"in G,qa=T(G,"PointerEvent")!==b,mh=BV&&r9.test(navigator.userAgent),nA=["x","y"],pP=["clientX","clientY"];P.prototype={handler:function(){},
destroy:function(){this.evEl&&S(this.element,this.evEl,this.domHandler);this.evTarget&&S(this.target,this.evTarget,this.domHandler);this.evWin&&S(G,this.evWin,this.domHandler)}};
var XM={mousedown:1,mousemove:2,mouseup:4};U(lZ,P,{handler:function(Sq){var xi=XM[Sq.type];xi&1&&Sq.button===0&&(this.pressed=!0);xi&2&&Sq.which!==1&&(xi=4);this.pressed&&this.allow&&(xi&4&&(this.pressed=!1),this.callback(this.manager,xi,{pointers:[Sq],changedPointers:[Sq],pointerType:"mouse",srcEvent:Sq}))}});
var is={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},nf={2:"touch",3:"pen",4:"mouse",5:"kinect"},jo="pointerdown",oR="pointermove pointerup pointercancel";G.MSPointerEvent&&(jo="MSPointerDown",oR="MSPointerMove MSPointerUp MSPointerCancel");U(eq,P,{handler:function(Sq){var xi=this.store,Yi=!1,Zu=Sq.type.toLowerCase().replace("ms","");Zu=is[Zu];var ls=nf[Sq.pointerType]||Sq.pointerType;Zu&1&&(Sq.button===0||ls=="touch")?xi.push(Sq):Zu&12&&(Yi=!0);var Bh=c(xi,Sq.pointerId,"pointerId");
Bh<0||(xi[Bh]=Sq,this.callback(this.manager,Zu,{pointers:xi,changedPointers:[Sq],pointerType:ls,srcEvent:Sq}),Yi&&xi.splice(Bh,1))}});
var A2={touchstart:1,touchmove:2,touchend:4,touchcancel:8};U(OB,P,{handler:function(Sq){var xi=A2[Sq.type];var Yi=Array.prototype.slice.call(Sq.touches,0);var Zu=this.targetIds;if(xi&3&&Yi.length===1)Zu[Yi[0].identifier]=!0,Zu=[Yi,Yi];else{var ls,Bh=Array.prototype.slice.call(Sq.targetTouches,0),vV=Array.prototype.slice.call(Sq.changedTouches,0),Om=[];if(xi===1)for(Yi=0,ls=Bh.length;Yi<ls;Yi++)Zu[Bh[Yi].identifier]=!0;Yi=0;for(ls=vV.length;Yi<ls;Yi++)Zu[vV[Yi].identifier]&&Om.push(vV[Yi]),xi&12&&
delete Zu[vV[Yi].identifier];Zu=Om.length?[A(Bh.concat(Om),"identifier",!0),Om]:void 0}Zu&&this.callback(this.manager,xi,{pointers:Zu[0],changedPointers:Zu[1],pointerType:"touch",srcEvent:Sq})}});
U(yr,P,{handler:function(Sq,xi,Yi){var Zu=Yi.pointerType=="mouse";if(Yi.pointerType=="touch")this.mouse.allow=!1;else if(Zu&&!this.mouse.allow)return;xi&12&&(this.mouse.allow=!0);this.callback(Sq,xi,Yi)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var li=T(Qr.style,"touchAction"),HS=li!==b;Rl.prototype={set:function(Sq){Sq=="compute"&&(Sq=this.compute());HS&&(this.manager.element.style[li]=Sq);this.actions=Sq.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var Sq=[];E(this.manager.recognizers,function(xi){l(xi.options.enable,[xi])&&(Sq=Sq.concat(xi.getTouchAction()))});
return w2(Sq.join(" "))},
preventDefaults:function(Sq){if(!HS){var xi=Sq.srcEvent;Sq=Sq.offsetDirection;if(this.manager.session.prevented)xi.preventDefault();else{var Yi=this.actions,Zu=Yi.indexOf("none")>-1,ls=Yi.indexOf("pan-y")>-1;Yi=Yi.indexOf("pan-x")>-1;if(Zu||ls&&Yi||ls&&Sq&6||Yi&&Sq&24)return this.preventSrc(xi)}}},
preventSrc:function(Sq){this.manager.session.prevented=!0;Sq.preventDefault()}};
jG.prototype={defaults:{},set:function(Sq){t(this.options,Sq);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(Sq){if(Q(Sq,"recognizeWith",this))return this;var xi=this.simultaneous;Sq=Bu(Sq,this);xi[Sq.id]||(xi[Sq.id]=Sq,Sq.recognizeWith(this));return this},
dropRecognizeWith:function(Sq){if(Q(Sq,"dropRecognizeWith",this))return this;Sq=Bu(Sq,this);delete this.simultaneous[Sq.id];return this},
requireFailure:function(Sq){if(Q(Sq,"requireFailure",this))return this;var xi=this.requireFail;Sq=Bu(Sq,this);c(xi,Sq)===-1&&(xi.push(Sq),Sq.requireFailure(this));return this},
dropRequireFailure:function(Sq){if(Q(Sq,"dropRequireFailure",this))return this;Sq=Bu(Sq,this);Sq=c(this.requireFail,Sq);Sq>-1&&this.requireFail.splice(Sq,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(Sq){return!!this.simultaneous[Sq.id]},
emit:function(Sq){function xi(ls){Yi.manager.emit(Yi.options.event+(ls?Zu&16?"cancel":Zu&8?"end":Zu&4?"move":Zu&2?"start":"":""),Sq)}
var Yi=this,Zu=this.state;Zu<8&&xi(!0);xi();Zu>=8&&xi(!0)},
tryEmit:function(Sq){if(this.canEmit())return this.emit(Sq);this.state=32},
canEmit:function(){for(var Sq=0;Sq<this.requireFail.length;Sq++)if(!(this.requireFail[Sq].state&33))return!1;return!0},
recognize:function(Sq){Sq=t({},Sq);l(this.options.enable,[this,Sq])?(this.state&56&&(this.state=1),this.state=this.process(Sq),this.state&30&&this.tryEmit(Sq)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
U(vu,jG,{defaults:{pointers:1},attrTest:function(Sq){var xi=this.options.pointers;return xi===0||Sq.pointers.length===xi},
process:function(Sq){var xi=this.state,Yi=Sq.eventType,Zu=xi&6;Sq=this.attrTest(Sq);return Zu&&(Yi&8||!Sq)?xi|16:Zu||Sq?Yi&4?xi|8:xi&2?xi|4:2:32}});
U(Zr,vu,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var Sq=this.options.direction;if(Sq===30)return["none"];var xi=[];Sq&6&&xi.push("pan-y");Sq&24&&xi.push("pan-x");return xi},
directionTest:function(Sq){var xi=this.options,Yi=!0,Zu=Sq.distance,ls=Sq.direction,Bh=Sq.deltaX,vV=Sq.deltaY;ls&xi.direction||(xi.direction&6?(ls=Bh===0?1:Bh<0?2:4,Yi=Bh!=this.pX,Zu=Math.abs(Sq.deltaX)):(ls=vV===0?1:vV<0?8:16,Yi=vV!=this.pY,Zu=Math.abs(Sq.deltaY)));Sq.direction=ls;return Yi&&Zu>xi.threshold&&ls&xi.direction},
attrTest:function(Sq){return vu.prototype.attrTest.call(this,Sq)&&(this.state&2||!(this.state&2)&&this.directionTest(Sq))},
emit:function(Sq){this.pX=Sq.deltaX;this.pY=Sq.deltaY;var xi=Il(Sq.direction);xi&&this.manager.emit(this.options.event+xi,Sq);this._super.emit.call(this,Sq)}});
U(k_,vu,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Sq){return this._super.attrTest.call(this,Sq)&&(Math.abs(Sq.scale-1)>this.options.threshold||this.state&2)},
emit:function(Sq){this._super.emit.call(this,Sq);Sq.scale!==1&&this.manager.emit(this.options.event+(Sq.scale<1?"in":"out"),Sq)}});
U($i,jG,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(Sq){var xi=this.options,Yi=Sq.pointers.length===xi.pointers,Zu=Sq.distance<xi.threshold,ls=Sq.deltaTime>xi.time;this._input=Sq;if(!Zu||!Yi||Sq.eventType&12&&!ls)this.reset();else if(Sq.eventType&1)this.reset(),this._timer=z(function(){this.state=8;this.tryEmit()},xi.time,this);
else if(Sq.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(Sq){this.state===8&&(Sq&&Sq.eventType&4?this.manager.emit(this.options.event+"up",Sq):(this._input.timeStamp=kS(),this.manager.emit(this.options.event,this._input)))}});
U(Vr,vu,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Sq){return this._super.attrTest.call(this,Sq)&&(Math.abs(Sq.rotation)>this.options.threshold||this.state&2)}});
U(Um,vu,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return Zr.prototype.getTouchAction.call(this)},
attrTest:function(Sq){var xi=this.options.direction;if(xi&30)var Yi=Sq.velocity;else xi&6?Yi=Sq.velocityX:xi&24&&(Yi=Sq.velocityY);return this._super.attrTest.call(this,Sq)&&xi&Sq.direction&&ow(Yi)>this.options.velocity&&Sq.eventType&4},
emit:function(Sq){var xi=Il(Sq.direction);xi&&this.manager.emit(this.options.event+xi,Sq);this.manager.emit(this.options.event,Sq)}});
U(V8,jG,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(Sq){var xi=this.options,Yi=Sq.pointers.length===xi.pointers,Zu=Sq.distance<xi.threshold,ls=Sq.deltaTime<xi.time;this.reset();if(Sq.eventType&1&&this.count===0)return this.failTimeout();if(Zu&&ls&&Yi){if(Sq.eventType!=4)return this.failTimeout();Yi=this.pTime?Sq.timeStamp-this.pTime<xi.interval:!0;Zu=!this.pCenter||L9(this.pCenter,Sq.center)<xi.posThreshold;this.pTime=Sq.timeStamp;this.pCenter=Sq.center;Zu&&Yi?this.count+=1:this.count=1;this._input=Sq;if(this.count%xi.taps===0)return this.hasRequireFailures()?
(this._timer=z(function(){this.state=8;this.tryEmit()},xi.interval,this),2):8}return 32},
failTimeout:function(){this._timer=z(function(){this.state=32},this.options.interval,this);
return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(){this.state==8&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});
Hu.VERSION="2.0.2";Hu.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[Vr,{enable:!1}],[k_,{enable:!1},["rotate"]],[Um,{direction:6}],[Zr,{direction:6},["swipe"]],[V8],[V8,{event:"doubletap",taps:2},["tap"]],[$i]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};Gh.prototype={set:function(Sq){t(this.options,Sq);return this},
stop:function(Sq){this.session.stopped=Sq?2:1},
recognize:function(Sq){var xi=this.session;if(!xi.stopped){this.touchAction.preventDefaults(Sq);var Yi=this.recognizers,Zu=xi.curRecognizer;if(!Zu||Zu&&Zu.state&8)Zu=xi.curRecognizer=null;for(var ls=0,Bh=Yi.length;ls<Bh;ls++){var vV=Yi[ls];xi.stopped===2||Zu&&vV!=Zu&&!vV.canRecognizeWith(Zu)?vV.reset():vV.recognize(Sq);!Zu&&vV.state&14&&(Zu=xi.curRecognizer=vV)}}},
get:function(Sq){if(Sq instanceof jG)return Sq;for(var xi=this.recognizers,Yi=0;Yi<xi.length;Yi++)if(xi[Yi].options.event==Sq)return xi[Yi];return null},
add:function(Sq){if(Q(Sq,"add",this))return this;var xi=this.get(Sq.options.event);xi&&this.remove(xi);this.recognizers.push(Sq);Sq.manager=this;this.touchAction.update();return Sq},
remove:function(Sq){if(Q(Sq,"remove",this))return this;var xi=this.recognizers;Sq=this.get(Sq);xi.splice(c(xi,Sq),1);this.touchAction.update();return this},
on:function(Sq,xi){var Yi=this.handlers;E(f(Sq),function(Zu){Yi[Zu]=Yi[Zu]||[];Yi[Zu].push(xi)});
return this},
off:function(Sq,xi){var Yi=this.handlers;E(f(Sq),function(Zu){xi?Yi[Zu].splice(c(Yi[Zu],xi),1):delete Yi[Zu]});
return this},
emit:function(Sq,xi){this.options.domEvents&&YS(Sq,xi);var Yi=this.handlers[Sq]&&this.handlers[Sq].slice();if(Yi&&Yi.length){xi.type=Sq;xi.preventDefault=function(){xi.srcEvent.preventDefault()};
Sq=0;for(var Zu=Yi.length;Sq<Zu;Sq++)Yi[Sq](xi)}},
destroy:function(){this.element&&hW(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
t(Hu,{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:Gh,Input:P,TouchAction:Rl,Recognizer:jG,AttrRecognizer:vu,Tap:V8,Pan:Zr,Swipe:Um,Pinch:k_,Rotate:Vr,Press:$i,on:N,off:S,each:E,merge:k,extend:t,inherit:U,bindFn:H,prefixed:T});
G[J]=Hu})(window,document,"Hammer");
return window.Hammer}.call({});
F.DOCUMENT=C;C[Xso]=F}return C[Xso]};/*

 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 Mul=function(C,F){if(C.length!==F.length)return!1;for(var G=0;G<C.length;++G)if(C[G]!==F[G])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var Sd2=_.u(["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"]),L4u=Sd2.next();!L4u.done;L4u=Sd2.next()){var BpP=L4u.value,vC$=document.createElement("link");vC$.rel="stylesheet";vC$.href=BpP;document.head.appendChild(vC$)};var c8W,eXo,xEB,vkB,A8q,fnT,LSA,B8f;c8W={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};eXo={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:"*"};xEB={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};vkB=/[a-z0-9*]/;A8q=/U\+/;fnT=/^arrow/;LSA=/^space(bar)?/;B8f=/^escape$/;_.wg={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(C,F){this._imperativeKeyBindings[C]=F;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(C,F){F=qVo(F);for(var G=0;G<F.length;++G)if(dEi(F[G],C))return!0;return!1},
_collectKeyBindings:function(){var C=this.behaviors.map(function(F){return F.keyBindings});
C.indexOf(this.keyBindings)===-1&&C.push(this.keyBindings);return C},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(G){for(var V in G)this._addKeyBinding(V,G[V])},this);
for(var C in this._imperativeKeyBindings)this._addKeyBinding(C,this._imperativeKeyBindings[C]);for(var F in this._keyBindings)this._keyBindings[F].sort(function(G,V){G=G[0].hasModifiers;return G===V[0].hasModifiers?0:G?-1:1})},
_addKeyBinding:function(C,F){qVo(C).forEach(function(G){this._keyBindings[G.event]=this._keyBindings[G.event]||[];this._keyBindings[G.event].push([G,F])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(C){var F=this._onKeyBindingEvent.bind(this,this._keyBindings[C]);this._boundKeyHandlers.push([this.keyEventTarget,C,F]);this.keyEventTarget.addEventListener(C,F)},this)},
_unlistenKeyEventListeners:function(){for(var C,F,G;this._boundKeyHandlers.length;)C=this._boundKeyHandlers.pop(),F=C[0],G=C[1],C=C[2],F.removeEventListener(G,C)},
_onKeyBindingEvent:function(C,F){this.stopKeyboardEventPropagation&&F.stopPropagation();if(!F.defaultPrevented)for(var G=0;G<C.length;G++){var V=C[G][0],J=C[G][1];if(dEi(V,F)&&(this._triggerKeyHandler(V,J,F),F.defaultPrevented))break}},
_triggerKeyHandler:function(C,F,G){var V=Object.create(C);V.keyboardEvent=G;C=new CustomEvent(C.event,{detail:V,cancelable:!0});this[F].call(this,C);C.defaultPrevented&&G.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
*/
_.kz({is:"iron-a11y-keys",_template:null,behaviors:[_.wg],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(C){this.keyEventTarget=C},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(C){this.fire("keys-pressed",C.detail,{})}});_.M7={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(C){this._setFocused(C.type==="focus")},
_disabledChanged:function(C){this.setAttribute("aria-disabled",C?"true":"false");this.style.pointerEvents=C?"none":"";C?(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 SH={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(C){this._detectKeyboardFocus(C);C||this._setPressed(!1)},
_detectKeyboardFocus:function(C){this._setReceivedFocusFromKeyboard(!this.pointerDown&&C)},
_userActivate:function(C){this.active!==C&&(this.active=C,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(C){C=C.detail.keyboardEvent;var F=_.E5(C).localTarget;this.isLightDescendant(F)||(C.preventDefault(),C.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(C){C=_.E5(C.detail.keyboardEvent).localTarget;this.isLightDescendant(C)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(C,F){F&&F!=C&&this.hasAttribute(F)&&this.removeAttribute(F)},
_activeChanged:function(C){this.toggles?this.setAttribute(this.ariaActiveAttribute,C?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},foO=[_.wg,
SH];_.Lq={IronButtonState:foO,IronButtonStateImpl:SH};_.BP={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.vP=function(C){_.vP[" "](C);this.type=C&&C.type||"default";this.key=C&&C.key;C&&"value"in C&&(this.value=C.value)};
_.vP.prototype.byKey=function(C){this.key=C;return this.value};
_.I6.Object.defineProperties(_.vP.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var C=this.type,F=this.key;if(C&&F)return fq[C]&&fq[C][F]},
set:function(C){var F=this.type,G=this.key;F&&G&&(F=fq[F]=fq[F]||{},C==null?delete F[G]:F[G]=C)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var C=fq[this.type];return C?Object.keys(C).map(function(F){return fq[this.type][F]},this):[]}}});
_.vP[" "]=function(){};
var fq={};_.kz({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(C,F,G){C=new _.vP({type:C,key:F});G!==void 0&&G!==C.value?C.value=G:this.value!==C.value&&(this.value=C.value);return C},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(C){C&&(this.value=this)},
byKey:function(C){return(new _.vP({type:this.type,key:C})).value}});var hT$;hT$=null;_.hY={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){hT$=new _.vP({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return hT$&&hT$.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(C){this.invalid=C===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(C);return!this.invalid},
_getValidity:function(C){return this.hasValidator()?this._validator.validate(C):!0}};var c6u={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"}},A6r=[_.BP,
_.hY,c6u];_.kz({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 _.vP({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(C){return this.name+":"+C},this)},
applyIcon:function(C,F){this.removeIcon(C);if(F=this._cloneIcon(F,this.rtlMirroring&&this._targetIsRTL(C))){var G=_.E5(C.root||C);G.insertBefore(F,G.childNodes[0]);return C._svgIcon=F}return null},
removeIcon:function(C){C._svgIcon&&(_.E5(C.root||C).removeChild(C._svgIcon),C._svgIcon=null)},
_targetIsRTL:function(C){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(C&&C.nodeType!==Node.ELEMENT_NODE&&(C=C.host),this.__targetIsRTL=C&&window.getComputedStyle(C).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 C=Object.create(null);_.E5(this).querySelectorAll("[id]").forEach(function(F){C[F.id]=F});
return C},
_cloneIcon:function(C,F){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[C],this.size,F)},
_prepareSvgClone:function(C,F,G){if(C){C=C.cloneNode(!0);var V=document.createElementNS("http://www.w3.org/2000/svg","svg");F=C.getAttribute("viewBox")||"0 0 "+F+" "+F;var J="pointer-events: none; display: block; width: 100%; height: 100%;";G&&C.hasAttribute("mirror-in-rtl")&&(J+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");V.setAttribute("viewBox",F);V.setAttribute("preserveAspectRatio","xMidYMid meet");V.setAttribute("focusable","false");V.style&&(V.style.cssText=
J);V.appendChild(C).removeAttribute("id");return V}return null}});var eTE=function(C){this.multi=!1;this.selection=[];this.selectCallback=C};
_.n=eTE.prototype;_.n.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.n.clear=function(C){this.selection.slice().forEach(function(F){(!C||C.indexOf(F)<0)&&this.setItemSelected(F,!1)},this)};
_.n.isSelected=function(C){return this.selection.indexOf(C)>=0};
_.n.setItemSelected=function(C,F){if(C!=null&&F!==this.isSelected(C)){if(F)this.selection.push(C);else{var G=this.selection.indexOf(C);G>=0&&this.selection.splice(G,1)}this.selectCallback&&this.selectCallback(C,F)}};
_.n.select=function(C){this.multi?this.toggle(C):this.get()!==C&&(this.setItemSelected(this.get(),!1),this.setItemSelected(C,!0))};
_.n.toggle=function(C){this.setItemSelected(C,!this.isSelected(C))};_.f5={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 eTE(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.E5(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(C){return this.items?this.items.indexOf(C):-1},
select:function(C){this.selected=C},
selectPrevious:function(){var C=this.items.length,F=C-1;this.selected!==void 0&&(F=(Number(this._valueToIndex(this.selected))-1+C)%C);this.selected=this._indexToValue(F)},
selectNext:function(){var C=0;this.selected!==void 0&&(C=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(C)},
selectIndex:function(C){this.select(this._indexToValue(C))},
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(C){this.listen(this,C,"_activateHandler")},
_removeListener:function(C){this.unlisten(this,C,"_activateHandler")},
_activateEventChanged:function(C,F){this._removeListener(F);this._addListener(C)},
_updateItems:function(){var C=_.E5(this).queryDistributedElements(this.selectable||"*");C=Array.prototype.filter.call(C,this._bindFilterItem);this._setItems(C)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var C=this._valueToItem(this.selected);C?this._selection.select(C):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(C){return!this._excludedLocalNames[C.localName]},
_valueToItem:function(C){return C==null?null:this.items[this._valueToIndex(C)]},
_valueToIndex:function(C){if(this.attrForSelected)for(var F=0,G;G=this.items[F];F++){if(this._valueForItem(G)==C)return F}else return Number(C)},
_indexToValue:function(C){if(this.attrForSelected){if(C=this.items[C])return this._valueForItem(C)}else return C},
_valueForItem:function(C){if(!C)return null;if(!this.attrForSelected)return C=this.indexOf(C),C===-1?null:C;var F=C[y3(this.attrForSelected)];return F!=void 0?F:C.getAttribute(this.attrForSelected)},
_applySelection:function(C,F){this.selectedClass&&this.toggleClass(this.selectedClass,F,C);this.selectedAttribute&&this.toggleAttribute.call(C,this.selectedAttribute,F);this._selectionChange();this.fire("iron-"+(F?"select":"deselect"),{item:C})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(C){return _.E5(C).observeNodes(function(F){this._updateItems();this._updateSelected();this.fire("iron-items-changed",F,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(C){C=C.target;for(var F=this.items;C&&C!=this;){var G=F.indexOf(C);if(G>=0){F=this._indexToValue(G);this._itemActivate(F,C);break}C=C.parentNode}},
_itemActivate:function(C,F){this.fire("iron-activate",{selected:C,item:F},{cancelable:!0}).defaultPrevented||this.select(C)}};var db$={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(C){this.multi?this._toggleSelected(C):this.selected=C},
multiChanged:function(C){this._selection.multi=C;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(C){return this._indexToValue(this.indexOf(C))},this).filter(function(C){return C!=null},this)):_.f5._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(C){C=C||[];C=(this._valuesToItems(C)||[]).filter(function(G){return G!==null&&G!==void 0});
this._selection.clear(C);for(var F=0;F<C.length;F++)this._selection.setItemSelected(C[F],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var C=this._selection.get();this.multi?(this._setSelectedItems(C),this._setSelectedItem(C.length?C[0]:null)):C!==null&&C!==void 0?(this._setSelectedItems([C]),this._setSelectedItem(C)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(C){var F=this.selectedValues.indexOf(C);F<0?this.push("selectedValues",C):this.splice("selectedValues",F,1)},
_valuesToItems:function(C){return C==null?null:C.map(function(F){return this._valueToItem(F)},this)}},xbr=[_.f5,
db$];var sEu;
_.cP={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(C){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var F=this._valueToItem(C);F&&F.hasAttribute("disabled")||(this._setFocusedItem(F),db$.select.apply(this,arguments))},
_resetTabindices:function(){var C=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(F){F.setAttribute("tabindex",F===C?"0":"-1");F.setAttribute("aria-selected",this._selection.isSelected(F))},this)},
_updateMultiselectable:function(C){C?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(C){if(this._MODIFIER_KEYS.indexOf(C.key)===-1){this.cancelDebouncer("_clearSearchText");var F=this._searchText||"";F+=(C.key&&C.key.length==1?C.key:String.fromCharCode(C.keyCode)).toLocaleLowerCase();C=F.length;for(var G=0,V;V=this.items[G];G++)if(!V.hasAttribute("disabled")){var J=this.attrForItemTitle||"textContent";J=(V[J]||V.getAttribute(J)||"").trim();if(!(J.length<C)&&J.slice(0,C).toLocaleLowerCase()==F){this._setFocusedItem(V);break}}this._searchText=F;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var C=this.items.length,F=Number(this.indexOf(this.focusedItem)),G=1;G<C+1;G++){var V=this.items[(F-G+C)%C];if(!V.hasAttribute("disabled")){var J=_.E5(V).getOwnerRoot()||document;this._setFocusedItem(V);if(_.E5(J).activeElement==V)break}}},
_focusNext:function(){for(var C=this.items.length,F=Number(this.indexOf(this.focusedItem)),G=1;G<C+1;G++){var V=this.items[(F+G)%C];if(!V.hasAttribute("disabled")){var J=_.E5(V).getOwnerRoot()||document;this._setFocusedItem(V);if(_.E5(J).activeElement==V)break}}},
_applySelection:function(C,F){F?C.setAttribute("aria-selected","true"):C.setAttribute("aria-selected","false");_.f5._applySelection.apply(this,arguments)},
_focusedItemChanged:function(C,F){F&&F.setAttribute("tabindex","-1");!C||C.hasAttribute("disabled")||this.disabled||(C.setAttribute("tabindex","0"),C.focus())},
_onIronItemsChanged:function(C){C.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var C=this.getAttribute("tabindex");_.cP._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",C);_.cP._shiftTabPressed=!1},1)},
_onFocus:function(C){!_.cP._shiftTabPressed&&(C=_.E5(C).rootTarget,C===this||typeof C.tabIndex==="undefined"||this.isLightDescendant(C))&&(this._defaultFocusAsync=this.async(function(){var F=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);F?this._setFocusedItem(F):this.items[0]&&this._focusNext()}))},
_onUpKey:function(C){this._focusPrevious();C.detail.keyboardEvent.preventDefault()},
_onDownKey:function(C){this._focusNext();C.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var C=this.focusedItem;C&&C.blur()},
_onKeydown:function(C){this.keyboardEventMatchesKeys(C,"up down esc")||this._focusWithKeyboardEvent(C);C.stopPropagation()},
_activateHandler:function(C){_.f5._activateHandler.call(this,C);C.stopPropagation()},
_disabledChanged:function(C){C?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};sEu=[xbr,_.wg,_.cP];_.qdl={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(C){this.focusedItem&&(this.focusedItem.click(),C.detail.keyboardEvent.preventDefault())},
_onDownKey:function(C){this.focusedItem&&(this.focusedItem.click(),C.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(C){return C.ctrlKey||C.shiftKey||C.altKey||C.metaKey},
_onLeftKey:function(C){this._isSpecialKey(C.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),C.detail.keyboardEvent.preventDefault())},
_onRightKey:function(C){this._isSpecialKey(C.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),C.detail.keyboardEvent.preventDefault())},
_onKeydown:function(C){this.keyboardEventMatchesKeys(C,"up down left right esc")||this._focusWithKeyboardEvent(C)}};
_.PVm=[sEu,_.qdl];var gCO;gCO=new Set;_.AY={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):(gCO.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(C){this.resizerShouldNotify(C)&&this._notifyDescendant(C)},this),this._fireResize())},
assignParentResizable:function(C){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=C)&&C._interestedResizables.indexOf(this)===-1&&(C._interestedResizables.push(this),C._subscribeIronResize(this))},
stopResizeNotificationsFor:function(C){var F=this._interestedResizables.indexOf(C);F>-1&&(this._interestedResizables.splice(F,1),this._unsubscribeIronResize(C))},
_subscribeIronResize:function(C){C.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(C){C.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(C){this._notifyingDescendant?C.stopPropagation():mO||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(C){var F=_.E5(C).rootTarget;F!==this&&(F.assignParentResizable(this),this._notifyDescendant(F),C.stopPropagation())},
_parentResizableChanged:function(C){C&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(C){this.isAttached&&(this._notifyingDescendant=!0,C.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var C=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function G(){document.removeEventListener("readystatechange",G);C()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(F){F!==this&&F._findParent()},this):(gCO.forEach(function(F){F!==this&&F._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?gCO.delete(this):gCO.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
*/
_.RTE={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(C,F){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);F&&(C==="document"?this.scrollTarget=this._doc:typeof C==="string"?this.scrollTarget=(F=this.domHost)&&F.$?F.$[C]:_.E5(this.ownerDocument).querySelector("#"+C):this._isValidScrollTarget()&&(this._oldScrollTarget=C,this._toggleScrollListener(this._shouldHaveListener,C)))},
_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(C){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,C):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
C)},set _scrollLeft(C){this.scrollTarget===this._doc?window.scrollTo(C,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=C)},scroll:function(C,F){if(typeof C==="object"){var G=C.left;F=C.top}else G=C;G=G||0;F=F||0;this.scrollTarget===this._doc?window.scrollTo(G,F):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=G,this.scrollTarget.scrollTop=F)},
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(C,F){F=F===this._doc?window:F;C?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),F.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(F.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(C){this._shouldHaveListener=C;this._toggleScrollListener(C,this.scrollTarget)}};_.kz({is:"iron-selector",_template:null,behaviors:[xbr]});var eH={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(C){if(C.timing)for(var F in C.timing)this.animationTiming[F]=C.timing[F];return this.animationTiming},
setPrefixedProperty:function(C,F,G){for(var V={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[F],J,b=0;J=V[b];b++)C.style[J]=G;C.style[F]=G},
complete:function(){}};_.kz({is:"fade-in-animation",_template:null,behaviors:[eH],configure:function(C){return this._effect=new KeyframeEffect(C.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(C))}});_.kz({is:"fade-out-animation",_template:null,behaviors:[eH],configure:function(C){return this._effect=new KeyframeEffect(C.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(C))}});var Ydm=[{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(C,F){for(var G in F)C[G]=F[G]},
_cloneConfig:function(C){var F={isClone:!0};this._copyProperties(F,C);return F},
_getAnimationConfigRecursive:function(C,F,G){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 V=C?this.animationConfig[C]:this.animationConfig;Array.isArray(V)||(V=[V]);if(V)for(var J,b=0;J=V[b];b++)if(J.animatable)J.animatable._getAnimationConfigRecursive(J.type||C,F,G);else if(J.id){var z=F[J.id];
z?(z.isClone||(F[J.id]=this._cloneConfig(z),z=F[J.id]),this._copyProperties(z,J)):F[J.id]=J}else G.push(J)}},
getAnimationConfig:function(C){var F={},G=[];this._getAnimationConfigRecursive(C,F,G);for(var V in F)G.push(F[V]);return G}},
{_configureAnimations:function(C){var F=[],G=[];if(C.length>0)for(var V,J=0;V=C[J];J++){var b=document.createElement(V.name);if(b.isNeonAnimation){var z=null;b.configure||(b.configure=function(){return null});
z=b.configure(V);G.push({result:z,config:V})}else console.warn(this.is+":",V.name,"not found!")}for(C=0;C<G.length;C++){z=G[C].result;V=G[C].config;try{typeof z.cancel!="function"&&(z=document.timeline.play(z))}catch(Q){z=null,console.warn("Couldnt play","(",V.name,").",Q)}z&&F.push({neonAnimation:b,config:V,animation:z})}return F},
_shouldComplete:function(C){for(var F=!0,G=0;G<C.length;G++)if(C[G].animation.playState!="finished"){F=!1;break}return F},
_complete:function(C){for(var F=0;F<C.length;F++)C[F].neonAnimation.complete(C[F].config);for(F=0;F<C.length;F++)C[F].animation.cancel()},
playAnimation:function(C,F){var G=this.getAnimationConfig(C);if(G){this._active=this._active||{};this._active[C]&&(this._complete(this._active[C]),delete this._active[C]);var V=this._configureAnimations(G);if(V.length==0)this.fire("neon-animation-finish",F,{bubbles:!1});else for(this._active[C]=V,G=0;G<V.length;G++)V[G].animation.onfinish=function(){this._shouldComplete(V)&&(this._complete(V),delete this._active[C],this.fire("neon-animation-finish",F,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var C in this._active){var F=this._active[C],G;for(G in F)F[G].animation&&F[G].animation.cancel&&F[G].animation.cancel()}this._active={}}}];var L_=function(C,F){C=Error.call(this,C);this.message=C.message;"stack"in C&&(this.stack=C.stack);this.arg=F;this.name=this.constructor.name;this.constructor=L_;this.__proto__=L_.prototype};
_.O(L_,Error);var Tp7=j$(function(C){var F=function(){return C.apply(this,arguments)||this};
_.O(F,C);F.prototype._marshalArgs=function(G,V,J){V=C.prototype._marshalArgs.call(this,G,V,J);if(this._legacyUndefinedCheck&&V.length>1)for(J=0;J<V.length;J++)if(V[J]===void 0||G[J].wildcard&&V[J].base===void 0)throw G=G[J].name,new L_("Argument '"+G+"' is undefined.",G);return V};
F.prototype._addPropertyEffect=function(G,V,J){return C.prototype._addPropertyEffect.call(this,G,V,PGZ(J,J&&J.info&&J.info.methodName))};
F._addTemplatePropertyEffect=function(G,V,J){return C._addTemplatePropertyEffect.call(this,G,V,PGZ(J))};
return F}),oCS=_.kz.Class;
_.kz.Class=function(C,F){return oCS(C,function(G){return F?F(Tp7(G)):Tp7(G)})};
var r6m=j$(function(C){var F=Tp7(C);C=function(){return F.apply(this,arguments)||this};
_.O(C,F);_.I6.Object.defineProperties(C.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return C}),K4O=j3.mixin;
j3.mixin=K4O?function(C){return r6m(K4O(C))}:r6m;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.dg=_.Lq.IronButtonState;var YCB=pc;_.gk5="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");var r89=function(){return Math.random().toString(36).substring(7).split("").join(".")},oki="@@redux/INIT"+r89(),pN9="@@redux/REPLACE"+r89();var mEB=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Dbr=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var ps2="top right bottom left width height size weight".split(" "),mby=typeof MutationObserver!=="undefined",CgP=Dbr&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,j32=function(){this.mutationEventsAdded_=this.JSC$11759_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=CTB(this.refresh.bind(this))},F7o=function(C,
F){var G=C.observers_;
F=G.indexOf(F);~F&&G.splice(F,1);!G.length&&C.JSC$11759_connected_&&Dbr&&C.JSC$11759_connected_&&(document.removeEventListener("transitionend",C.onTransitionEnd_),window.removeEventListener("resize",C.refresh),C.mutationsObserver_&&(C.mutationsObserver_.disconnect(),CgP&&(HTMLElement.prototype.attachShadow=CgP)),C.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",C.refresh),C.mutationsObserver_=null,C.mutationEventsAdded_=!1,C.JSC$11759_connected_=!1)};
j32.prototype.refresh=function(){GG8(this)&&this.refresh()};
var GG8=function(C){C=C.observers_.filter(function(F){return VXS(F),F.activeObservations_.length>0});
C.forEach(function(F){return i2E(F)});
return C.length>0},Jiu=function(C){if(Dbr&&!C.JSC$11759_connected_){document.addEventListener("transitionend",C.onTransitionEnd_);
window.addEventListener("resize",C.refresh);if(mby){C.mutationsObserver_=new MutationObserver(C.refresh);var F={attributes:!0,childList:!0,characterData:!0,subtree:!0};C.mutationsObserver_.observe(document,F);CgP&&(function J(V){var b=V.shadowRoot;b&&(C.mutationsObserver_.observe(b,F),J(b));for(V=V.firstElementChild;V;)J(V),V=V.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var V=CgP.apply(this,_.Rn.apply(0,arguments));
C.mutationsObserver_.observe(V,F);return V})}else document.addEventListener("DOMSubtreeModified",C.refresh),C.mutationEventsAdded_=!0;
C.JSC$11759_connected_=!0}};
j32.prototype.onTransitionEnd_=function(C){var F=C.propertyName===void 0?"":C.propertyName;ps2.some(function(G){return!!~F.indexOf(G)})&&this.refresh()};
var $52=null;var b2O=function(C,F){for(var G=_.u(Object.keys(F)),V=G.next();!V.done;V=G.next())V=V.value,Object.defineProperty(C,V,{value:F[V],enumerable:!1,writable:!1,configurable:!0})};var xH=function(C){var F;return(C==null?void 0:(F=C.ownerDocument)==null?void 0:F.defaultView)||globalThis};var nLO={x:0,y:0,width:0,height:0},uhE=typeof SVGGraphicsElement!=="undefined"?function(C){return C instanceof xH(C).SVGGraphicsElement}:function(C){return C instanceof xH(C).SVGElement&&typeof C.getBBox==="function"};var zqm=function(C){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=C};
zqm.prototype.isActive=function(){var C=this.target;if(Dbr)if(uhE(C)){var F=C.getBBox();F={x:0,y:0,width:F.width,height:F.height}}else{var G=C.clientWidth,V=C.clientHeight;if(G||V){var J=xH(C).getComputedStyle(C);F=vS(J["padding-top"]);var b=vS(J["padding-left"]),z=b+vS(J["padding-right"]),Q=F+vS(J["padding-bottom"]),E=vS(J.width),t=vS(J.height);J.boxSizing==="border-box"&&(Math.round(E+z)!==G&&(E-=j5f(J,"left","right")+z),Math.round(t+Q)!==V&&(t-=j5f(J,"top","bottom")+Q));C!==xH(C).document.documentElement&&
(C=Math.round(E+z)-G,V=Math.round(t+Q)-V,Math.abs(C)!==1&&(E-=C),Math.abs(V)!==1&&(t-=V));F={x:b,y:F,width:E,height:t}}else F=nLO}else F=nLO;this.contentRect_=F;return F.width!==this.broadcastWidth||F.height!==this.broadcastHeight};var Q3u=function(C,F){var G=F.x;var V=F.y;var J=F.width;F=F.height;var b=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);b2O(b,{x:G,y:V,width:J,height:F,top:V,right:G+J,bottom:F+V,left:G});b2O(this,{target:C,contentRect:b})};var IWu=function(C,F){var G=$52;this.activeObservations_=[];this.observations_=new Map;if(typeof C!=="function")throw new TypeError("We");this.callback_=C;this.controller_=G;this.callbackCtx_=F};
IWu.prototype.observe=function(C){if(C===void 0)throw new TypeError("Xe");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(C instanceof xH(C).Element))throw new TypeError("Ye");var F=this.observations_;F.has(C)||(F.set(C,new zqm(C)),C=this.controller_,~C.observers_.indexOf(this)||C.observers_.push(this),C.JSC$11759_connected_||Jiu(C),this.controller_.refresh())}};
IWu.prototype.unobserve=function(C){if(C===void 0)throw new TypeError("Xe");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(C instanceof xH(C).Element))throw new TypeError("Ye");var F=this.observations_;F.has(C)&&(F.delete(C),F.size||F7o(this.controller_,this))}};
IWu.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();F7o(this.controller_,this)};
var VXS=function(C){C.activeObservations_.splice(0);C.observations_.forEach(function(F){F.isActive()&&C.activeObservations_.push(F)})},i2E=function(C){if(C.activeObservations_.length>0){var F=C.callbackCtx_,G=C.activeObservations_.map(function(V){var J=V.target,b=V.contentRect_;
V.broadcastWidth=b.width;V.broadcastHeight=b.height;return new Q3u(J,b)});
C.callback_.call(F,G,F);C.activeObservations_.splice(0)}};var sX=function(C){if(!(this instanceof sX))throw new TypeError("Ze");if(!arguments.length)throw new TypeError("Xe");$52||($52=new j32);this.observer_=new IWu(C,this)};
sX.prototype.observe=function(C){this.observer_.observe(C)};
sX.prototype.unobserve=function(C){this.observer_.unobserve(C)};
sX.prototype.disconnect=function(){this.observer_.disconnect()};var XF9=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:sX;var m9={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchMove_Departed:8,TouchEnd:9,TouchCancel:10,0:"MouseUp",1:"MouseDown",2:"Click",3:"ContextMenu",4:"DblClick",5:"Focus",6:"Blur",7:"TouchStart",8:"TouchMove_Departed",9:"TouchEnd",10:"TouchCancel"},Fw={"2D":0,WebGL:1,WebGL2:2};Fw[Fw["2D"]]="2D";Fw[1]="WebGL";Fw[2]="WebGL2";var GYA={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},VL5={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},FAB={},JP5={},$XA={},sH=function(C){return f_("Node",C,"childNodes")},xv=function(C){return f_("Node",C,"parentNode")},qk=function(C){return f_("Node",C,"parentElement")},qWq=function(C){return f_("Node",C,
"textContent")},Gei=function(C){return bCf(C,"getRootNode")()},cS=function(C){return C&&"host"in C?f_("ShadowRoot",C,"host"):null},Au=function(C){return C&&"shadowRoot"in C?f_("Element",C,"shadowRoot"):null};var Yv=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
Yv.prototype.getId=function(C){if(!C)return-1;var F,G;return(G=(F=this.nodeMetaMap.get(C)||null)==null?void 0:F.id)!=null?G:-1};
Yv.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())};
var ELE=function(C,F){var G=C.getId(F);C.idNodeMap.delete(G);F.childNodes&&F.childNodes.forEach(function(V){return ELE(C,V)})};
Yv.prototype.has=function(C){return this.idNodeMap.has(C)};
Yv.prototype.add=function(C,F){this.idNodeMap.set(F.id,C);this.nodeMetaMap.set(C,F)};
Yv.prototype.replace=function(C,F){var G=this.idNodeMap.get(C)||null;G&&(G=this.nodeMetaMap.get(G))&&this.nodeMetaMap.set(F,G);this.idNodeMap.set(C,F)};
Yv.prototype.reset=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
var af9=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,kYT=/^(?:[a-z+]+:)?\/\//i,UXo=/^www\..*/i,HCi=/^(data:)([^,]*),(.*)/i;var ZCB=1,OC5=RegExp("[^a-z0-9-_:]"),PS,g8q,MLE=/^[^ \t\n\r\u000c]+/,wdA=/^[, \t\n\r\u000c]+/,v8o=new WeakMap;var G_,p_=function(C){return G_?function(){var F=_.Rn.apply(0,arguments);try{return C.apply(null,_.da(F))}catch(G){if(!G_||G_(G)!==!0)throw G;}}:C};var q7=function(C){this.generateIdFn=C;this.iframeIdToRemoteIdMap=new WeakMap;this.iframeRemoteIdToIdMap=new WeakMap};
q7.prototype.getId=function(C,F,G,V){G=G||W7G(this,C);C=V||tXG(this,C);V=G.get(F);V||(V=this.generateIdFn(),G.set(F,V),C.set(V,F));return V};
q7.prototype.getIds=function(C,F){var G=this,V=W7G(this,C),J=tXG(this,C);return F.map(function(b){return G.getId(C,b,V,J)})};
q7.prototype.reset=function(C){C?(this.iframeIdToRemoteIdMap.delete(C),this.iframeRemoteIdToIdMap.delete(C)):(this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap)};
var W7G=function(C,F){var G=C.iframeIdToRemoteIdMap.get(F);G||(G=new Map,C.iframeIdToRemoteIdMap.set(F,G));return G},tXG=function(C,F){var G=C.iframeRemoteIdToIdMap.get(F);
G||(G=new Map,C.iframeRemoteIdToIdMap.set(F,G));return G};var Yv9=function(C){this.iframes=new WeakMap;this.crossOriginIframeMap=new WeakMap;this.crossOriginIframeMirror=new q7(N1E);this.crossOriginIframeRootIdMap=new WeakMap;this.mutationCb=C.mutationCb;this.wrappedEmit=C.wrappedEmit;this.stylesheetManager=C.stylesheetManager;this.recordCrossOriginIframes=C.recordCrossOriginIframes;this.crossOriginIframeStyleMirror=new q7(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror));this.mirror=C.mirror;this.recordCrossOriginIframes&&
window.addEventListener("message",this.JSC$11823_handleMessage.bind(this))},DYI=function(C,F){C.iframes.set(F,!0);
F.contentWindow&&C.crossOriginIframeMap.set(F.contentWindow,F)},G$T=function(C,F){C.loadListener=F},Ceq=function(C,F,G){C.mutationCb({adds:[{parentId:C.mirror.getId(F),
nextId:null,node:G}],removes:[],texts:[],attributes:[],isAttachIframe:!0});if(C.recordCrossOriginIframes){var V;(V=F.contentWindow)==null||V.addEventListener("message",C.JSC$11823_handleMessage.bind(C))}var J;(J=C.loadListener)==null||J.call(C,F);F.contentDocument&&F.contentDocument.adoptedStyleSheets&&F.contentDocument.adoptedStyleSheets.length>0&&O4w(C.stylesheetManager,F.contentDocument.adoptedStyleSheets,C.mirror.getId(F.contentDocument))};
Yv9.prototype.JSC$11823_handleMessage=function(C){if(C.data.type==="rrweb"&&C.origin===C.data.origin&&C.source){var F=this.crossOriginIframeMap.get(C.source);F&&(F=aW2(this,F,C.data.event))&&this.wrappedEmit(F,C.data.isCheckout)}};
var aW2=function(C,F,G){switch(G.type){case 2:C.crossOriginIframeMirror.reset(F);C.crossOriginIframeStyleMirror.reset(F);kGE(C,G.data.node,F);var V=G.data.node.id;C.crossOriginIframeRootIdMap.set(F,V);U5u(C,G.data.node,V);return{timestamp:G.timestamp,type:3,data:{source:0,adds:[{parentId:C.mirror.getId(F),nextId:null,node:G.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case 6:return G;case 5:return PP(C,G.data.payload,F,["id","parentId","previousId","nextId"]),G;case 3:switch(G.data.source){case 0:return G.data.adds.forEach(function(J){PP(C,
J,F,["parentId","nextId","previousId"]);kGE(C,J.node,F);var b=C.crossOriginIframeRootIdMap.get(F);b&&U5u(C,J.node,b)}),G.data.removes.forEach(function(J){PP(C,J,F,["parentId",
"id"])}),G.data.attributes.forEach(function(J){PP(C,J,F,["id"])}),G.data.texts.forEach(function(J){PP(C,J,F,["id"])}),G;
case 12:case 6:case 1:return G.data.positions.forEach(function(J){PP(C,J,F,["id"])}),G;
case 7:case 2:case 3:case 9:case 5:return PP(C,G.data,F,["id"]),G;case 8:case 13:return PP(C,G.data,F,["id"]),H22(C,G.data,F,["styleId"]),G;case 10:return G;case 14:return G.data.ranges.forEach(function(J){PP(C,J,F,["start","end"])}),G;
case 15:return PP(C,G.data,F,["id"]),H22(C,G.data,F,["styleIds"]),(V=G.data.styles)==null||V.forEach(function(J){H22(C,J,F,["styleId"])}),G}}return!1};
Yv9.prototype.replace=function(C,F,G,V){V=_.u(V);for(var J=V.next();!J.done;J=V.next())if(J=J.value,Array.isArray(F[J])||typeof F[J]==="number")Array.isArray(F[J])?F[J]=C.getIds(G,F[J]):F[J]=C.getId(G,F[J]);return F};
var PP=function(C,F,G,V){C.replace(C.crossOriginIframeMirror,F,G,V)},H22=function(C,F,G,V){C.replace(C.crossOriginIframeStyleMirror,F,G,V)},kGE=function(C,F,G){PP(C,F,G,["id",
"rootId"]);"childNodes"in F&&F.childNodes.forEach(function(V){kGE(C,V,G)})},U5u=function(C,F,G){F.type===0||F.rootId||(F.rootId=G);
"childNodes"in F&&F.childNodes.forEach(function(V){U5u(C,V,G)})};var Idi=/[1-9][0-9]{12}/.test(Date.now().toString())?Date.now:function(){return(new Date).getTime()},lWP=function(){this.id=1;
this.styleIDMap=new WeakMap;this.idStyleMap=new Map};
_.n=lWP.prototype;_.n.getId=function(C){var F;return(F=this.styleIDMap.get(C))!=null?F:-1};
_.n.has=function(C){return this.styleIDMap.has(C)};
_.n.add=function(C,F){if(this.has(C))return this.getId(C);F=F===void 0?this.id++:F;this.styleIDMap.set(C,F);this.idStyleMap.set(F,C);return F};
_.n.getStyle=function(C){return this.idStyleMap.get(C)||null};
_.n.reset=function(){this.styleIDMap=new WeakMap;this.idStyleMap=new Map;this.id=1};
_.n.generateId=function(){return this.id++};var yiP=function(){this.length=0;this.tail=this.head=null};
yiP.prototype.get=function(C){if(C>=this.length)throw Error("$e");for(var F=this.head,G=0;G<C;G++){var V=void 0;F=((V=F)==null?void 0:V.next)||null}return F};
var Z2m=function(C,F){var G={value:F,previous:null,next:null};F.__ln=G;if(F.previousSibling&&"__ln"in F.previousSibling){var V=F.previousSibling.__ln.next;G.next=V;G.previous=F.previousSibling.__ln;F.previousSibling.__ln.next=G;V&&(V.previous=G)}else F.nextSibling&&"__ln"in F.nextSibling&&F.nextSibling.__ln.previous?(V=F.nextSibling.__ln.previous,G.previous=V,G.next=F.nextSibling.__ln,F.nextSibling.__ln.previous=G,V&&(V.next=G)):(C.head&&(C.head.previous=G),G.next=C.head,C.head=G);G.next===null&&
(C.tail=G);C.length++};
yiP.prototype.removeNode=function(C){var F=C.__ln;this.head&&(F.previous?(F.previous.next=F.next)?F.next.previous=F.previous:this.tail=F.previous:(this.head=F.next)?this.head.previous=null:this.tail=null,C.__ln&&delete C.__ln,this.length--)};
var NnO=function(C,F){return C+"@"+F},zmI=function(){var C=this;
this.locked=this.JSC$11854_frozen=!1;this.texts=[];this.attributes=[];this.attributeMap=new WeakMap;this.removes=[];this.mapRemoves=[];this.movedMap={};this.addedSet=new Set;this.movedSet=new Set;this.droppedSet=new Set;this.removesSubTreeCache=new Set;this.processMutations=function(F){F.forEach(C.JSC$11854_processMutation);C.emit()};
this.emit=function(){if(!C.JSC$11854_frozen&&!C.locked){for(var F=[],G=new Set,V=new yiP,J=function(U){for(var H=-2;H===-2;)H=(U=U&&U.nextSibling)&&C.mirror.getId(U);return H},b=function(U){var H=xv(U);
if(H&&i4q(U)){var l=!1;if(U.nodeType===Node.TEXT_NODE){var N=H.tagName;if(N==="TEXTAREA")return;N==="STYLE"&&C.addedSet.has(H)&&(l=!0)}H=e3(H)?C.mirror.getId(VBT(U)):C.mirror.getId(H);N=J(U);if(H===-1||N===-1)return Z2m(V,U);if(l=R6(U,{doc:C.doc,mirror:C.mirror,blockClass:C.blockClass,blockSelector:C.blockSelector,maskTextClass:C.maskTextClass,maskTextSelector:C.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:C.inlineStylesheet,maskInputOptions:C.maskInputOptions,maskTextFn:C.maskTextFn,
maskInputFn:C.maskInputFn,slimDOMOptions:C.slimDOMOptions,dataURLOptions:C.dataURLOptions,recordCanvas:C.recordCanvas,inlineImages:C.inlineImages,onSerialize:function(S){S.nodeName==="IFRAME"&&C.mirror.nodeMetaMap.get(S)&&DYI(C.iframeManager,S);jqo(S,C.mirror)&&peq(C.stylesheetManager,S);U&&Au(U)&&mYB(C.shadowDomManager,Au(U),C.doc)},
onIframeLoad:function(S,f){Ceq(C.iframeManager,S,f);S.contentWindow&&S.contentDocument&&jso(C.shadowDomManager,S.contentWindow.Element,S.contentDocument)},
onStylesheetLoad:function(S,f){FHB(C.stylesheetManager,S,f)},
cssCaptured:l}))F.push({parentId:H,nextId:N,node:l}),G.add(l.id)}};C.mapRemoves.length;)ELE(C.mirror,C.mapRemoves.shift());
for(var z=_.u(C.movedSet),Q=z.next();!Q.done;Q=z.next())Q=Q.value,b49(C.removesSubTreeCache,Q)&&!C.movedSet.has(xv(Q))||b(Q);z=_.u(C.addedSet);for(Q=z.next();!Q.done;Q=z.next())Q=Q.value,u4E(C.droppedSet,Q)||b49(C.removesSubTreeCache,Q)?u4E(C.movedSet,Q)?b(Q):C.droppedSet.add(Q):b(Q);for(Q=null;V.length;){z=null;if(Q){var E=C.mirror.getId(xv(Q.value)),t=J(Q.value);E!==-1&&t!==-1&&(z=Q)}if(!z)for(Q=V.tail;Q;){var k=Q;Q=Q.previous;if(k&&(E=C.mirror.getId(xv(k.value)),J(k.value)!==-1))if(E!==-1){z=k;
break}else if((E=xv(k.value))&&E.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(E=cS(E),C.mirror.getId(E)!==-1)){z=k;break}}if(!z){for(;V.head;)V.removeNode(V.head.value);break}Q=z.previous;V.removeNode(z.value);b(z.value)}b={texts:C.texts.map(function(U){var H=U.node,l=xv(H);l&&l.tagName==="TEXTAREA"&&C.genTextAreaValueMutation(l);return{id:C.mirror.getId(H),value:U.value}}).filter(function(U){return!G.has(U.id)}).filter(function(U){return C.mirror.has(U.id)}),
attributes:C.attributes.map(function(U){var H=U.attributes;if(typeof H.style==="string"){var l=JSON.stringify(U.styleDiff),N=JSON.stringify(U._unchangedStyles);l.length<H.style.length&&(l+N).split("var(").length===H.style.split("var(").length&&(H.style=U.styleDiff)}return{id:C.mirror.getId(U.node),attributes:H}}).filter(function(U){return!G.has(U.id)}).filter(function(U){return C.mirror.has(U.id)}),
removes:C.removes,adds:F};if(b.texts.length||b.attributes.length||b.removes.length||b.adds.length)C.texts=[],C.attributes=[],C.attributeMap=new WeakMap,C.removes=[],C.addedSet=new Set,C.movedSet=new Set,C.droppedSet=new Set,C.removesSubTreeCache=new Set,C.movedMap={},C.mutationCb(b)}};
this.genTextAreaValueMutation=function(F){var G=C.attributeMap.get(F);G||(G={node:F,attributes:{},styleDiff:{},_unchangedStyles:{}},C.attributes.push(G),C.attributeMap.set(F,G));var V=Array.from(sH(F),function(J){return qWq(J)||""}).join("");
G.attributes.value=Ifq({element:F,maskInputOptions:C.maskInputOptions,tagName:F.tagName,type:WAE(F),value:V,maskInputFn:C.maskInputFn})};
this.JSC$11854_processMutation=function(F){if(!pdB(F.target,C.mirror,C.slimDOMOptions))switch(F.type){case "characterData":var G=qWq(F.target);rt(F.target,C.blockClass,C.blockSelector,!1)||G===F.oldValue||C.texts.push({value:ePf(F.target,C.maskTextClass,C.maskTextSelector,!0)&&G?C.maskTextFn?C.maskTextFn(G,DXi(F.target)):G.replace(/[\S]/g,"*"):G,node:F.target});break;case "attributes":G=F.target;var V=F.attributeName,J=F.target.getAttribute(V);if(V==="value"){var b=WAE(G);J=Ifq({element:G,maskInputOptions:C.maskInputOptions,
tagName:G.tagName,type:b,value:J,maskInputFn:C.maskInputFn})}if(rt(F.target,C.blockClass,C.blockSelector,!1)||J===F.oldValue)break;b=C.attributeMap.get(F.target);if(G.tagName==="IFRAME"&&V==="src"&&!C.keepIframeSrcFn(J))if(G.contentDocument)break;else V="rr_src";b||(b={node:F.target,attributes:{},styleDiff:{},_unchangedStyles:{}},C.attributes.push(b),C.attributeMap.set(F.target,b));V==="type"&&G.tagName==="INPUT"&&(F.oldValue||"").toLowerCase()==="password"&&G.setAttribute("data-rr-is-password","true");
if(!hPT(G.tagName,V))if(b.attributes[V]=ffq(C.doc,G.tagName.toLowerCase(),V.toLowerCase(),J),V==="style"){if(!C.unattachedDoc)try{C.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){C.unattachedDoc=C.doc}V=C.unattachedDoc.createElement("span");F.oldValue&&V.setAttribute("style",F.oldValue);J=_.u(Array.from(G.style));for(var z=J.next();!z.done;z=J.next()){z=z.value;var Q=G.style.getPropertyValue(z),E=G.style.getPropertyPriority(z);Q!==V.style.getPropertyValue(z)||E!==V.style.getPropertyPriority(z)?
b.styleDiff[z]=E===""?Q:[Q,E]:b._unchangedStyles[z]=[Q,E]}V=_.u(Array.from(V.style));for(J=V.next();!J.done;J=V.next())J=J.value,G.style.getPropertyValue(J)===""&&(b.styleDiff[J]=!1)}else V==="open"&&G.tagName==="DIALOG"&&(G.matches("dialog:modal")?b.attributes.rr_open_mode="modal":b.attributes.rr_open_mode="non-modal");break;case "childList":rt(F.target,C.blockClass,C.blockSelector,!0)||(F.target.tagName==="TEXTAREA"?C.genTextAreaValueMutation(F.target):(F.addedNodes.forEach(function(t){return C.genAdds(t,
F.target)}),F.removedNodes.forEach(function(t){var k=C.mirror.getId(t),U=e3(F.target)?C.mirror.getId(cS(F.target)):C.mirror.getId(F.target);
rt(F.target,C.blockClass,C.blockSelector,!1)||pdB(t,C.mirror,C.slimDOMOptions)||C.mirror.getId(t)===-1||(C.addedSet.has(t)?(JcE(C.addedSet,t),C.droppedSet.add(t)):C.addedSet.has(F.target)&&k===-1||mXE(F.target,C.mirror)||(C.movedSet.has(t)&&C.movedMap[k+"@"+U]?JcE(C.movedSet,t):(C.removes.push({parentId:U,id:k,isShadow:e3(F.target)&&dt(F.target)?!0:void 0}),$YT(t,C.removesSubTreeCache))),C.mapRemoves.push(t))})))}};
this.genAdds=function(F,G){if(!O2P(C.processedNodeManager,F,C)&&!C.addedSet.has(F)&&!C.movedSet.has(F)){if(C.mirror.nodeMetaMap.has(F)){if(pdB(F,C.mirror,C.slimDOMOptions))return;C.movedSet.add(F);var V=null;G&&C.mirror.nodeMetaMap.has(G)&&(V=C.mirror.getId(G));V&&V!==-1&&(C.movedMap[NnO(C.mirror.getId(F),V)]=!0)}else C.addedSet.add(F),C.droppedSet.delete(F);rt(F,C.blockClass,C.blockSelector,!1)||(sH(F).forEach(function(J){return C.genAdds(J)}),F&&Au(F)&&sH(Au(F)).forEach(function(J){C.processedNodeManager.add(J,
C);
C.genAdds(J,F)}))}}};
_.n=zmI.prototype;_.n.init=function(C){var F=this;"mutationCb blockClass blockSelector maskTextClass maskTextSelector inlineStylesheet maskInputOptions maskTextFn maskInputFn keepIframeSrcFn recordCanvas inlineImages slimDOMOptions dataURLOptions doc mirror iframeManager stylesheetManager shadowDomManager canvasManager processedNodeManager".split(" ").forEach(function(G){F[G]=C[G]})};
_.n.freeze=function(){this.JSC$11854_frozen=!0;this.canvasManager.freeze()};
_.n.unfreeze=function(){this.JSC$11854_frozen=!1;this.canvasManager.unfreeze();this.emit()};
_.n.isFrozen=function(){return this.JSC$11854_frozen};
_.n.lock=function(){this.locked=!0;this.canvasManager.lock()};
_.n.unlock=function(){this.locked=!1;this.canvasManager.unlock();this.emit()};
_.n.reset=function(){this.shadowDomManager.reset();this.canvasManager.reset()};var Dc=[],jT=window.Proxy,keZ=["INPUT","TEXTAREA","SELECT"],UYS=new WeakMap;var Xcy=new Map,emW=function(C,F,G){if(C&&(Aco(C,F)||typeof C==="object")){F=C.constructor.name;var V=Xcy.get(G);V||(V=new Map,Xcy.set(G,V));V.has(F)||V.set(F,[]);G=V.get(F);F=G.indexOf(C);F===-1&&(F=G.length,G.push(C));return F}},dY5=function(C,F,G){return C.map(function(V){return cco(V,F,G)})},Aco=function(C,F){return!!"WebGLActiveInfo WebGLBuffer WebGLFramebuffer WebGLProgram WebGLRenderbuffer WebGLShader WebGLShaderPrecisionFormat WebGLTexture WebGLUniformLocation WebGLVertexArrayObject WebGLVertexArrayObjectOES".split(" ").filter(function(G){return typeof F[G]===
"function"}).find(function(G){return C instanceof F[G]})};var wcl=fV(["\nfunction encode(buffer: ArrayBuffer) {\n  const bytes = new Uint8Array(buffer);\n  \n  let binary = '';\n  for (let i = 0; i < bytes.byteLength; i++) {\n      binary += String.fromCharCode(bytes[i]);\n  }\n  \n  return btoa(binary);\n}\n\nconst lastBlobMap: Map<number, string> = new Map();\nconst transparentBlobMap: Map<string, string> = new Map();\n\ninterface ImageBitmapDataURLResponseWorker {\n  onmessage:\n    | null\n    | ((message: MessageEvent<ImageBitmapDataURLWorkerParams>) => void);\n  postMessage(e: ImageBitmapDataURLWorkerResponse): void;\n}\n\nasync function getTransparentBlobFor(\n  width: number,\n  height: number,\n  dataURLOptions: any,\n): Promise<string> {\n  const id = `${width}-${height}`;\n  if ('OffscreenCanvas' in globalThis) {\n    if (transparentBlobMap.has(id)) return transparentBlobMap.get(id)!;\n    const offscreen = new OffscreenCanvas(width, height);\n    offscreen.getContext('2d'); // creates rendering context for `converToBlobs`\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n    transparentBlobMap.set(id, base64);\n    return base64;\n  } else {\n    return '';\n  }\n}\n\n// `as any` because: https://github.com/Microsoft/TypeScript/issues/20595\nconst worker: ImageBitmapDataURLResponseWorker = self;\n\n// eslint-disable-next-line @typescript-eslint/no-misused-promises\nworker.onmessage = async function (e) {\n  if ('OffscreenCanvas' in globalThis) {\n    const { id, bitmap, width, height, dataURLOptions } = e.data;\n\n    const transparentBase64 = getTransparentBlobFor(\n      width,\n      height,\n      dataURLOptions,\n    );\n\n    const offscreen = new OffscreenCanvas(width, height);\n    const ctx = offscreen.getContext('2d')!;\n\n    ctx.drawImage(bitmap, 0, 0);\n    bitmap.close();\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const type = blob.type;\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n\n    // on first try we should check if canvas is transparent,\n    // no need to save it's contents in that case\n    if (!lastBlobMap.has(id) && (await transparentBase64) === base64) {\n      lastBlobMap.set(id, base64);\n      return worker.postMessage({ id });\n    }\n\n    if (lastBlobMap.get(id) === base64) return worker.postMessage({ id }); // unchanged\n    worker.postMessage({\n      id,\n      type,\n      base64,\n      width,\n      height,\n    });\n    lastBlobMap.set(id, base64);\n  } else {\n    return worker.postMessage({ id: e.data.id });\n  }\n};\n"],
["\nfunction encode(buffer: ArrayBuffer) {\n  const bytes = new Uint8Array(buffer);\n  \n  let binary = '';\n  for (let i = 0; i < bytes.byteLength; i++) {\n      binary += String.fromCharCode(bytes[i]);\n  }\n  \n  return btoa(binary);\n}\n\nconst lastBlobMap: Map<number, string> = new Map();\nconst transparentBlobMap: Map<string, string> = new Map();\n\ninterface ImageBitmapDataURLResponseWorker {\n  onmessage:\n    | null\n    | ((message: MessageEvent<ImageBitmapDataURLWorkerParams>) => void);\n  postMessage(e: ImageBitmapDataURLWorkerResponse): void;\n}\n\nasync function getTransparentBlobFor(\n  width: number,\n  height: number,\n  dataURLOptions: any,\n): Promise<string> {\n  const id = \\`\\${width}-\\${height}\\`;\n  if ('OffscreenCanvas' in globalThis) {\n    if (transparentBlobMap.has(id)) return transparentBlobMap.get(id)!;\n    const offscreen = new OffscreenCanvas(width, height);\n    offscreen.getContext('2d'); // creates rendering context for \\`converToBlobs\\`\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n    transparentBlobMap.set(id, base64);\n    return base64;\n  } else {\n    return '';\n  }\n}\n\n// \\`as any\\` because: https://github.com/Microsoft/TypeScript/issues/20595\nconst worker: ImageBitmapDataURLResponseWorker = self;\n\n// eslint-disable-next-line @typescript-eslint/no-misused-promises\nworker.onmessage = async function (e) {\n  if ('OffscreenCanvas' in globalThis) {\n    const { id, bitmap, width, height, dataURLOptions } = e.data;\n\n    const transparentBase64 = getTransparentBlobFor(\n      width,\n      height,\n      dataURLOptions,\n    );\n\n    const offscreen = new OffscreenCanvas(width, height);\n    const ctx = offscreen.getContext('2d')!;\n\n    ctx.drawImage(bitmap, 0, 0);\n    bitmap.close();\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const type = blob.type;\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n\n    // on first try we should check if canvas is transparent,\n    // no need to save it's contents in that case\n    if (!lastBlobMap.has(id) && (await transparentBase64) === base64) {\n      lastBlobMap.set(id, base64);\n      return worker.postMessage({ id });\n    }\n\n    if (lastBlobMap.get(id) === base64) return worker.postMessage({ id }); // unchanged\n    worker.postMessage({\n      id,\n      type,\n      base64,\n      width,\n      height,\n    });\n    lastBlobMap.set(id, base64);\n  } else {\n    return worker.postMessage({ id: e.data.id });\n  }\n};\n"]),
R0f=_.GO(wcl.join(""));var rci=function(C){var F=this;this.pendingCanvasMutations=new Map;this.rafStamps={latestId:0,invokeId:null};this.locked=this.JSC$11896_frozen=!1;this.JSC$11896_processMutation=function(E,t){if(F.rafStamps.invokeId&&F.rafStamps.latestId!==F.rafStamps.invokeId||!F.rafStamps.invokeId)F.rafStamps.invokeId=F.rafStamps.latestId;F.pendingCanvasMutations.has(E)||F.pendingCanvasMutations.set(E,[]);F.pendingCanvasMutations.get(E).push(t)};
var G=C.sampling===void 0?"all":C.sampling,V=C.win,J=C.blockClass,b=C.blockSelector,z=C.recordCanvas,Q=C.dataURLOptions;this.mutationCb=C.mutationCb;this.mirror=C.mirror;z&&G==="all"&&MX$(this,V,J,b);z&&typeof G==="number"&&SjG(this,G,V,J,b,{dataURLOptions:Q})};
_.n=rci.prototype;_.n.reset=function(){this.pendingCanvasMutations.clear();this.resetObservers&&this.resetObservers()};
_.n.freeze=function(){this.JSC$11896_frozen=!0};
_.n.unfreeze=function(){this.JSC$11896_frozen=!1};
_.n.lock=function(){this.locked=!0};
_.n.unlock=function(){this.locked=!1};
var SjG=function(C,F,G,V,J,b){var z=sqq(G,V,J,!0),Q=new Map,E=UaS(Ys5());E.onmessage=function(N){var S=N.data.id;Q.set(S,!1);"base64"in N.data&&(N=N.data,C.mutationCb({id:S,type:Fw["2D"],commands:[{property:"clearRect",args:[0,0,N.width,N.height]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:N.base64}],type:N.type}]},0,0]}]}))};
var t=1E3/F,k=0,U=function(){var N=[];G.document.querySelectorAll("canvas").forEach(function(S){rt(S,V,J,!0)||N.push(S)});
return N},H=function(N){k&&N-k<t||(k=N,U().forEach(function(S){var f,c,A,T,P;
return _.I(function(g){if(g.nextAddress==1){f=C.mirror.getId(S);if(Q.get(f)||S.width===0||S.height===0)return g.return();Q.set(f,!0);["webgl","webgl2"].includes(S.__context)&&(c=S.getContext(S.__context),((A=c)==null?void 0:(T=A.getContextAttributes())==null?void 0:T.preserveDrawingBuffer)===!1&&c.clear(c.COLOR_BUFFER_BIT));return g.yield(createImageBitmap(S),2)}P=g.yieldResult;E.postMessage({id:f,bitmap:P,width:S.width,height:S.height,dataURLOptions:b.dataURLOptions},[P]);_.S9(g)})}));
l=requestAnimationFrame(H)};
var l=requestAnimationFrame(H);C.resetObservers=function(){z();cancelAnimationFrame(l)}},MX$=function(C,F,G,V){L7O(C);
BnS(C);var J=sqq(F,G,V,!1),b=xYE(C.JSC$11896_processMutation.bind(C),F,G,V),z=PxW(C.JSC$11896_processMutation.bind(C),F,G,V);C.resetObservers=function(){J();b();z()}},BnS=function(C){requestAnimationFrame(function(){return vL$(C)})},L7O=function(C){var F=function(G){C.rafStamps.latestId=G;
requestAnimationFrame(F)};
requestAnimationFrame(F)},vL$=function(C){C.pendingCanvasMutations.forEach(function(F,G){var V=C.mirror.getId(G);
fWy(C,G,V)});
requestAnimationFrame(function(){return vL$(C)})},fWy=function(C,F,G){if(!C.JSC$11896_frozen&&!C.locked){var V=C.pendingCanvasMutations.get(F);
if(V&&G!==-1){var J=V.map(function(b){b=Object.assign({},b);return delete b.type,b});
C.mutationCb({id:G,type:V[0].type,commands:J});C.pendingCanvasMutations.delete(F)}}};var Tcs=function(){this.nodeMap=new WeakMap;this.active=!1},O2P=function(C,F,G){return(C=C.nodeMap.get(F))&&Array.from(C).some(function(V){return V!==G})};
Tcs.prototype.add=function(C,F){var G=this;this.active||(this.active=!0,requestAnimationFrame(function(){G.nodeMap=new WeakMap;G.active=!1}));
this.nodeMap.set(C,(this.nodeMap.get(C)||new Set).add(F))};
Tcs.prototype.destroy=function(){};var Kls=function(C){this.shadowDoms=new WeakSet;this.restoreHandlers=[];this.mutationCb=C.mutationCb;this.scrollCb=C.scrollCb;this.bypassOptions=C.bypassOptions;this.mirror=C.mirror;this.init()};
Kls.prototype.init=function(){this.reset();jso(this,Element,document)};
var mYB=function(C,F,G){if(dt(F)&&!C.shadowDoms.has(F)){C.shadowDoms.add(F);var V=Qq5(Object.assign({},C.bypassOptions,{doc:G,mutationCb:C.mutationCb,mirror:C.mirror,shadowDomManager:C}),F);C.restoreHandlers.push(function(){return V.disconnect()});
C.restoreHandlers.push(tBI(Object.assign({},C.bypassOptions,{scrollCb:C.scrollCb,doc:F,mirror:C.mirror})));setTimeout(function(){F.adoptedStyleSheets&&F.adoptedStyleSheets.length>0&&O4w(C.bypassOptions.stylesheetManager,F.adoptedStyleSheets,C.mirror.getId(cS(F)));C.restoreHandlers.push(XeT({mirror:C.mirror,stylesheetManager:C.bypassOptions.stylesheetManager},F))},0)}},jso=function(C,F,G){C.restoreHandlers.push(hu(F.prototype,"attachShadow",function(V){return function(J){J=V.call(this,J);
var b=Au(this);b&&i4q(this)&&mYB(C,b,G);return J}}))};
Kls.prototype.reset=function(){this.restoreHandlers.forEach(function(C){try{C()}catch(F){}});
this.restoreHandlers=[];this.shadowDoms=new WeakSet};var RmT=function(C){this.trackedLinkElements=new WeakSet;this.styleMirror=new lWP;this.mutationCb=C.mutationCb;this.adoptedStyleSheetCb=C.adoptedStyleSheetCb},FHB=function(C,F,G){"_cssText"in G.attributes&&C.mutationCb({adds:[],
removes:[],texts:[],attributes:[{id:G.id,attributes:G.attributes}]});peq(C,F)},peq=function(C,F){C.trackedLinkElements.has(F)||C.trackedLinkElements.add(F)},O4w=function(C,F,G){if(F.length!==0){G={id:G,
styleIds:[]};var V=[];F=_.u(F);for(var J=F.next(),b={};!J.done;b={sheet$jscomp$3:void 0},J=F.next())b.sheet$jscomp$3=J.value,J=void 0,C.styleMirror.has(b.sheet$jscomp$3)?J=C.styleMirror.getId(b.sheet$jscomp$3):(J=C.styleMirror.add(b.sheet$jscomp$3),V.push({styleId:J,rules:Array.from(b.sheet$jscomp$3.rules||CSSRule,function(z){return function(Q,E){return{rule:u3Z(Q,z.sheet$jscomp$3.href),index:E}}}(b))})),G.styleIds.push(J);
V.length>0&&(G.styles=V);C.adoptedStyleSheetCb(G)}};
RmT.prototype.reset=function(){this.styleMirror.reset();this.trackedLinkElements=new WeakSet};var im,g0S,o0s;try{if(Array.from([1],function(C){return C*2})[0]!==2){var hqE=document.createElement("iframe");
document.body.appendChild(hqE);var ciG;Array.from=((ciG=hqE.contentWindow)==null?void 0:ciG.Array.from)||Array.from;document.body.removeChild(hqE)}}catch(C){console.debug("Unable to override Array.from",C)}var Vz=new Yv;var QsW="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(" "),zw5={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},u2o=null,ixI=null;var IhW={},Ep5=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 lhI={text:1},ahi={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var Ai2=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,equ={CONSTANT:{isUnwrappable:function(C){return C instanceof o1},
unwrap:Fir},JAVASCRIPT:{isUnwrappable:function(C){return C instanceof _.FG},
unwrap:Vy},HTML:{isUnwrappable:function(C){return C instanceof on},
unwrap:function(C){return pT(C)}},
RESOURCE_URL:{isUnwrappable:function(C){return C instanceof SS},
unwrap:_.vh},STRING:{isUnwrappable:function(C){return C instanceof Object},
unwrap:function(C){return String(C)}},
STYLE:{isUnwrappable:function(C){return typeof C==="string"},
unwrap:function(C){return C}},
URL:{isUnwrappable:function(C){return Az(C)},
unwrap:_.eS}},d5m={CONSTANT:yBT,JAVASCRIPT:yBT,HTML:function(C){C=C instanceof on?C:D0(String(C).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return pT(C)},
RESOURCE_URL:yBT,STRING:String,STYLE:yBT,URL:function(C,F){C=Ai2.test(C)?C:void 0;return C===void 0?F:C}};var fho=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,ZxT=/[\t\n\f\r ]+/,OxE=/[\t\n\f\r ,]+/g,waW=function(C,F,G){return G},nX={},x52=function(){var C=function(){var V={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",V):V}(),F=C.createHTML(""),G=C.createScript("");
C=C.createScriptURL("");return{INNOCUOUS_STRING:F,INNOCUOUS_SCRIPT:G,INNOCUOUS_URL:C}}(),bm=x52.INNOCUOUS_STRING,vpT=x52.INNOCUOUS_SCRIPT,BVq=x52.INNOCUOUS_URL;var s3P=function(C){var F=hwB(C);return function(G,V,J,b){return b?F(b,V,J,G):bm}}({reportHandler:function(C,F){if(C)try{throw Error(F);
}catch(G){_.gD(G)}},
safeTypesBridge:function(C,F,G){var V=equ[F];return V.isUnwrappable(C)&&(V=V.unwrap(C,G),V!==G)?V:(0,d5m[F])(String(C),G)},
allowedIdentifierPrefixes:[""]});if(fc!==void 0)throw Error("bf");fc=s3P;if(fc!==s3P)throw Error("cf");um("Injectable",[]);var $iZ=um("Inject",[["token",void 0]]),nrw=um("Optional",[]);um("Injectable",[]);var uti=um("Self",[]),zSi=um("SkipSelf",[]);um("Host",[]);var qjE={},Pg8=function(){};
Pg8.prototype.resolve=function(){throw Error("ef");};
Pg8.prototype.addProvider=function(){throw Error("ef");};var iaI=Function;var gLu=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,RqS=function(){this._reflect=window.Reflect};
_.n=RqS.prototype;_.n.factory=function(C){return function(){return new (Function.prototype.bind.apply(C,[null].concat(_.da(_.Rn.apply(0,arguments)))))}};
_.n._zipTypesAndAnnotations=function(C,F){var G=typeof C==="undefined"?Array(F.length):Array(C.length);for(var V=0;V<G.length;V++)G[V]=typeof C==="undefined"?[]:C[V]!=Object?[C[V]]:[],F&&ABE(F[V])&&(G[V]=G[V].concat(F[V]));return G};
_.n._ownParameters=function(C,F){if(gLu.exec(C.toString()))return null;if(C.parameters&&C.parameters!==F.parameters)return C.parameters;var G=C.ctorParameters;return G&&G!==F.ctorParameters?(F=typeof G==="function"?G():G,C=F.map(function(V){return V&&V.type}),F=F.map(function(V){return V&&dq9(V.decorators)}),this._zipTypesAndAnnotations(C,F)):ABE(this._reflect)&&ABE(this._reflect.getOwnMetadata)&&(F=this._reflect.getOwnMetadata("parameters",C),(G=this._reflect.getOwnMetadata("design:paramtypes",C))||
F)?this._zipTypesAndAnnotations(G,F):Array(C.length).fill(void 0)};
_.n.parameters=function(C){if(!C.prototype)return[];var F=Object.getPrototypeOf(C.prototype).constructor;(C=this._ownParameters(C,F))||F===Object||(C=this.parameters(F));return C||[]};
_.n._ownAnnotations=function(C,F){if(C.annotations&&C.annotations!==F.annotations)return C=C.annotations,typeof C==="function"&&C.annotations&&(C=C.annotations),C;if(C.decorators&&C.decorators!==F.decorators)return dq9(C.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",C)};
_.n.annotations=function(C){var F=Object.getPrototypeOf(C.prototype).constructor;C=this._ownAnnotations(C,F)||[];return(F!==Object?this.annotations(F):[]).concat(C)};
_.n._ownPropMetadata=function(C,F){if(C.propMetadata&&C.propMetadata!==F.propMetadata)return C=C.propMetadata,typeof C==="function"&&C.propMetadata&&(C=C.propMetadata),C;if(C.propDecorators&&C.propDecorators!==F.propDecorators){var G=C.propDecorators,V={};Object.keys(G).forEach(function(J){V[J]=dq9(G[J])});
return V}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",C)};
_.n.propMetadata=function(C){var F=Object.getPrototypeOf(C.prototype).constructor,G={};if(F!==Object){var V=this.propMetadata(F);Object.keys(V).forEach(function(b){G[b]=V[b]})}var J=this._ownPropMetadata(C,F);
J&&Object.keys(J).forEach(function(b){var z=[];G.hasOwnProperty(b)&&z.push.apply(z,_.da(G[b]));z.push.apply(z,_.da(J[b]));G[b]=z});
return G};
_.n.getter=function(C){return function(F){return F[C]}};
_.n.setter=function(C){return function(F,G){return F[C]=G}};
_.n.method=function(C){return function(F,G){if(!F[C])throw Error("ff`"+C);return F[C].apply(F,G)}};var Yju=function(){};var Tno=function(C){this.reflectionCapabilities=C};
_.O(Tno,Yju);_.n=Tno.prototype;_.n.factory=function(C){return this.reflectionCapabilities.factory(C)};
_.n.parameters=function(C){return this.reflectionCapabilities.parameters(C)};
_.n.annotations=function(C){return this.reflectionCapabilities.annotations(C)};
_.n.propMetadata=function(C){return this.reflectionCapabilities.propMetadata(C)};
_.n.getter=function(C){return this.reflectionCapabilities.getter(C)};
_.n.setter=function(C){return this.reflectionCapabilities.setter(C)};
_.n.method=function(C){return this.reflectionCapabilities.method(C)};var opq=new Tno(new RqS);var gg=function(C,F){this.token=C;this.id=F;if(C===void 0||C===null)throw Error("lf");};
_.I6.Object.defineProperties(gg.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return z_(this.token)}}});
_.I6.Object.defineProperties(gg,{JSC$11952_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return Io.JSC$11956_numberOfKeys}}});
var oLl=function(){this._allKeys=new Map};
oLl.prototype.get=function(C){if(C instanceof gg)return C;if(this._allKeys.has(C))return this._allKeys.get(C);var F=new gg(C,gg.JSC$11952_numberOfKeys);this._allKeys.set(C,F);return F};
_.I6.Object.defineProperties(oLl.prototype,{JSC$11956_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var Io=new oLl;var Q4I=function(C,F,G){this.key=C;this.optional=F;this.visibility=G},KHW=function(C){return new Q4I(C,!1,null)},pa5=[],j4o=function(C,F,G){this.key=C;
this.resolvedFactories=F;this.multiProvider=G},mqi=function(C,F,G,V){this.factory=C;
this.dependencies=F;this.providerClass=G;this.providerValue=V};var RY={},YH=function(C,F){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=F===void 0?null:F;C=_.u(C);for(F=C.next();!F.done;F=C.next())this.addProvider(F.value)};
_.n=YH.prototype;_.n.addProvider=function(C){this.keyIdToIndex.set(C.key.id,this.keyIds.length);this.providers.push(C);this.keyIds.push(C.key.id);this.objs.push(RY)};
_.n.resolve=function(C,F){F=F===void 0?qjE:F;return this._getByKey(Io.get(Qz(C)),null,F)};
_.n._new=function(C){if(this.constructedKeyIds[C.key.id])throw Rwf(this,C.key);this.constructedKeyIds[C.key.id]=!0;return this._instantiateProvider(C)};
_.n._instantiateProvider=function(C){if(C.multiProvider){for(var F=Array(C.resolvedFactories.length),G=0;G<C.resolvedFactories.length;++G)F[G]=this._instantiate(C,C.resolvedFactories[G]);return F}return this._instantiate(C,C.resolvedFactories[0])};
_.n._instantiate=function(C,F){var G=this,V=F.factory;try{var J=F.dependencies.map(function(z){return G._getByReflectiveDependency(z)})}catch(z){throw z.addKey&&z.addKey(this,C.key),z;
}try{var b=V.apply(null,_.da(J))}catch(z){throw YkW(this,z,C.key);}return b};
_.n._getByReflectiveDependency=function(C){return this._getByKey(C.key,C.visibility,C.optional?null:qjE)};
_.n._getByKey=function(C,F,G){return C===ri7?this:F instanceof uti?this._getByKeySelf(C,G):this._getByKeyDefault(C,G,F)};
_.n._getObjByKeyId=function(C){for(var F=0;F<this.keyIds.length;F++)if(this.keyIds[F]===C)return this.objs[F]===RY&&(this.objs[F]=this._new(this.providers[F])),this.objs[F];return RY};
_.n._throwOrNull=function(C,F){if(F!==qjE)return F;throw gpB(this,C);};
_.n._getByKeySelf=function(C,F){var G=this._getObjByKeyId(C.id);return G!==RY?G:this._throwOrNull(C,F)};
_.n._getByKeyDefault=function(C,F,G){for(var V=G=G instanceof zSi?this.parent:this;G instanceof YH;){var J=G._getObjByKeyId(C.id);if(J!==RY)return J;G=G.parent}J=void 0;if(G!==null)try{var b=G.resolve(C.token,F);if(b!==RY)return b}catch(z){J=z}if(!(V instanceof YH&&Ers(C.token))){if(J)throw J;return this._throwOrNull(C,F)}for(b=V;b.parent instanceof YH;)b=b.parent;b.addProvider(FFf({provide:C.token,useClass:C.token}));return b.resolve(C.token,F)};
_.n.toString=function(){return this.displayName};
_.I6.Object.defineProperties(YH.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+IE5(this,function(C){return' "'+C.key.displayName+'" '}).join(", ")+"])"}}});
var ri7=Io.get(Qz(Pg8));(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,m,n){if(e==Array.prototype||e==Object.prototype)return e;e[m]=n.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 m=0;m<e.length;++m){var n=e[m];if(n&&n.Math==Math)return n}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$";var JSCompiler_inline_result$jscomp$0,classes$jscomp$inline_5="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");$jscomp.global.BigInt64Array&&(classes$jscomp$inline_5.push("BigInt64"),
classes$jscomp$inline_5.push("BigUint64"));JSCompiler_inline_result$jscomp$0=classes$jscomp$inline_5;$jscomp.TYPED_ARRAY_CLASSES=JSCompiler_inline_result$jscomp$0;$jscomp.polyfillTypedArrayMethod=function(e,m,n,b){if(m)for(var q=0;q<$jscomp.TYPED_ARRAY_CLASSES.length;q++){var t=$jscomp.TYPED_ARRAY_CLASSES[q]+"Array.prototype."+e;$jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(t,m,n,b):$jscomp.polyfillUnisolated(t,m,n,b)}};
$jscomp.polyfill=function(e,m,n,b){m&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(e,m,n,b):$jscomp.polyfillUnisolated(e,m,n,b))};
$jscomp.polyfillUnisolated=function(e,m){var n=$jscomp.global;e=e.split(".");for(var b=0;b<e.length-1;b++){var q=e[b];if(!(q in n))return;n=n[q]}e=e[e.length-1];b=n[e];m=m(b);m!=b&&m!=null&&$jscomp.defineProperty(n,e,{configurable:!0,writable:!0,value:m})};
$jscomp.polyfillIsolated=function(e,m,n){var b=e.split("."),q=b.length===1;e=b[0];e=!q&&e in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var t=0;t<b.length-1;t++){var u=b[t];if(!(u in e))return;e=e[u]}b=b[b.length-1];n=$jscomp.IS_SYMBOL_NATIVE&&n==="es6"?e[b]:null;m=m(n);m!=null&&(q?$jscomp.defineProperty($jscomp.polyfills,b,{configurable:!0,writable:!0,value:m}):m!==n&&($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:m})))};
$jscomp.checkEs6ConformanceViaProxy=function(){try{var e={},m=Object.create(new $jscomp.global.Proxy(e,{get:function(n,b,q){return n==e&&b=="q"&&q==m}}));
return m.q===!0}catch(n){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 m=0;return function(){return m<e.length?{done:!1,value:e[m++]}:{done:!0}}};
$jscomp.arrayIterator=function(e){return{next:$jscomp.arrayIteratorImpl(e)}};
$jscomp.initSymbol=function(){};
$jscomp.polyfill("Symbol",function(e){if(e)return e;var m=function(t,u){this.$jscomp$symbol$id_=t;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:u})};
m.prototype.toString=function(){return this.$jscomp$symbol$id_};
e=Math.random()*1E9>>>0;var n="jscomp_symbol_"+e+"_",b=0,q=function(t){if(this instanceof q)throw new TypeError("Symbol is not a constructor");return new m(n+(t||"")+"_"+b++,t)};
return q},"es6","es3");
$jscomp.polyfill("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");$jscomp.defineProperty(Array.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 m=typeof Symbol!="undefined"&&Symbol.iterator&&e[Symbol.iterator];if(m)return m.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,m){return Object.prototype.hasOwnProperty.call(e,m)};
$jscomp.polyfill("WeakMap",function(e){function m(){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 n(){}
function b(f){var h=typeof f;return h==="object"&&f!==null||h==="function"}
function q(f){if(!$jscomp.owns(f,u)){var h=new n;$jscomp.defineProperty(f,u,{value:h})}}
function t(f){if(!$jscomp.ISOLATE_POLYFILLS){var h=Object[f];h&&(Object[f]=function(k){if(k instanceof n)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(m())return e;var u="$jscomp_hidden_"+Math.random();t("freeze");t("preventExtensions");t("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,u))throw Error("WeakMap key fail: "+f);f[u][this.id_]=h;return this};
d.prototype.get=function(f){return b(f)&&$jscomp.owns(f,u)?f[u][this.id_]:void 0};
d.prototype.has=function(f){return b(f)&&$jscomp.owns(f,u)&&$jscomp.owns(f[u],this.id_)};
d.prototype.delete=function(f){return b(f)&&$jscomp.owns(f,u)&&$jscomp.owns(f[u],this.id_)?delete f[u][this.id_]:!1};
return d},"es6","es3");
$jscomp.MapEntry=function(){};
$jscomp.polyfill("Map",function(e){function m(){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(m())return e;var n=new WeakMap,b=function(d){this[0]={};this[1]=u();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=u();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 t(this,function(d){return[d.key,d.value]})};
b.prototype.keys=function(){return t(this,function(d){return d.key})};
b.prototype.values=function(){return t(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"?n.has(h)?h=n.get(h):(k=""+ ++A,n.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}},t=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}})},u=function(){var d={};
return d.previous=d.next=d.head=d},A=0;
return b},"es6","es3");
$jscomp.polyfill("Set",function(e){function m(){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 t=q.entries(),u=t.next();if(u.done||u.value[0]!=b||u.value[1]!=b)return!1;u=t.next();return u.done||u.value[0]==b||u.value[0].x!=4||u.value[1]!=u.value[0]?!1:t.next().done}catch(A){return!1}}
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&$jscomp.ES6_CONFORMANCE)return e}else if(m())return e;var n=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};
n.prototype.add=function(b){b=b===0?0:b;this.map_.set(b,b);this.size=this.map_.size;return this};
n.prototype.delete=function(b){b=this.map_.delete(b);this.size=this.map_.size;return b};
n.prototype.clear=function(){this.map_.clear();this.size=0};
n.prototype.has=function(b){return this.map_.has(b)};
n.prototype.entries=function(){return this.map_.entries()};
n.prototype.values=function(){return this.map_.values()};
n.prototype.keys=n.prototype.values;n.prototype[Symbol.iterator]=n.prototype.values;n.prototype.forEach=function(b,q){var t=this;this.map_.forEach(function(u){return b.call(q,u,u,t)})};
return n},"es6","es3");
$jscomp.polyfill("Set.prototype.union",function(e){function m(n){$jscomp.checkIsSetInstance(this);$jscomp.checkIsSetLike(n);var b=new Set(this);n=$jscomp.checkIsValidIterator(n.keys());for(var q=n.next();!q.done;)b.add(q.value),q=n.next();return b}
return e?e:m},"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,m){return e.size<=m.size?{smallerSetIterator:e.keys(),largerSet:m}:{smallerSetIterator:$jscomp.checkIsValidIterator(m.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 m=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:this;m.XRegExp=e()}})(function(){return function q(m,n,b){function t(d,f){if(!n[d]){if(!m[d]){var h=typeof require=="function"&&require;
if(!f&&h)return h(d,!0);if(u)return u(d,!0);f=Error("Cannot find module '"+d+"'");throw f.code="MODULE_NOT_FOUND",f;}f=n[d]={exports:{}};m[d][0].call(f.exports,function(k){var r=m[d][1][k];return t(r?r:k)},f,f.exports,q,m,n,b)}return n[d].exports}
for(var u=typeof require=="function"&&require,A=0;A<b.length;A++)t(b[A]);return t}({1:[function(m,n){n.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 t(d,f){f=f?"x":"";return b.isRegExp(d)?d.xregexp&&d.xregexp.captureNames?d:b(d.source,f):b(d,f)}
var u=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g,A=b.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,u],"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 v={},B;for(B in f)f.hasOwnProperty(B)&&(r=t(f[B],k),v[B]={pattern:q(r.source),names:r.xregexp.captureNames||[]});d=t(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(!v.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+v[L].pattern.replace(u,function(T,U,O){if(U){if(M=v[L].names[C-D],++C,M)return"(?<"+M+">"}else if(O)return P=+O-1,v[L].names[P]?"\\k<"+v[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(m,n){n.exports=function(b){function q(t,u,A,d){return{name:t,value:u,start:A,end:d}}
b.matchRecursive=function(t,u,A,d,f){d=d||"";f=f||{};var h=d.indexOf("g")>-1,k=d.indexOf("y")>-1,r=d.replace(/y/g,""),v=f.escapeChar;f=f.valueNames;var B=[],C=0,D=0,p=0,I=0;u=b(u,r);A=b(A,r);if(v){if(v.length>1)throw Error("Cannot use more than one escape character");v=b.escape(v);var E=new RegExp("(?:"+v+"[\\S\\s]|(?:(?!"+b.union([u,A],"",{conjunction:"or"}).source+")[^"+v+"])+)+",d.replace(/[^imu]+/g,""))}for(;;){v&&(p+=(b.exec(t,E,p,"sticky")||[""])[0].length);d=b.exec(t,u,p);r=b.exec(t,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],t.slice(I,F),I,F)),f[1]&&B.push(q(f[1],t.slice(F,J),F,J)),f[2]&&B.push(q(f[2],t.slice(J,D),J,D)),f[3]&&B.push(q(f[3],t.slice(D,p),D,p))):B.push(t.slice(J,D)),I=p,!h))break}else throw Error("Unbalanced delimiter found in string");D===p&&++p}h&&!k&&f&&f[0]&&t.length>I&&B.push(q(f[0],t.slice(I),I,t.length));
return B}}},
{}],3:[function(m,n){n.exports=function(b){function q(k){return k.replace(/[- _]+/g,"").toLowerCase()}
function t(k){var r=/^\\[xu](.+)/.exec(k);return r?d(r[1]):k.charCodeAt(k.charAt(0)==="\\"?1:0)}
function u(k){var r="",v=-1;b.forEach(k,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(B){var C=t(B[1]);C>v+1&&(r+="\\u"+h(f(v+1)),C>v+2&&(r+="-\\u"+h(f(C-1))));v=t(B[2]||B[1])});
v<65535&&(r+="\\u"+h(f(v+1)),v<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,v){var B=k[1]==="P"||!!k[2],C=v.indexOf("A")>-1;v=q(k[4]||k[3]);var D=A[v];if(k[1]==="P"&&k[2])throw new SyntaxError("Invalid double negation "+k[0]);if(!A.hasOwnProperty(v))throw new SyntaxError("Unknown Unicode token "+k[0]);if(D.inverseOf){v=q(D.inverseOf);if(!A.hasOwnProperty(v))throw new ReferenceError("Unicode token missing data "+k[0]+" -> "+D.inverseOf);D=A[v];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[v][k])||(r=A[v],v=A[v],C="",v.bmp&&!v.isBmpLast&&(C="["+v.bmp+"]"+(v.astral?"|":"")),v.astral&&(C+=v.astral),v.isBmpLast&&v.bmp&&(C+=(v.astral?"|":"")+"["+v.bmp+"]"),B=B?"(?:(?!"+C+")(?:[\ud800-\udbff][\udc00-\udfff]|[\x00-\uffff]))":"(?:"+C+")",r=r[k]=B);return B=r}return B=r==="class"?B?A[v]["b!"]||(A[v]["b!"]=u(A[v].bmp)):D.bmp:(B?"[^":"[")+D.bmp+"]"},{scope:"all",
optionalFlags:"A",leadChar:"\\"});b.addUnicodeData=function(k){for(var r,v=0;v<k.length;++v){r=k[v];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(m,n){n.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(m,n){n.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(m,n){n.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(m,n){n.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(m,n){var b=m("./xregexp");m("./addons/build")(b);m("./addons/matchrecursive")(b);m("./addons/unicode-base")(b);m("./addons/unicode-blocks")(b);m("./addons/unicode-categories")(b);m("./addons/unicode-properties")(b);m("./addons/unicode-scripts")(b);n.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(m,n){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 t(a){return E.replace.call(a,/([\s\S])(?=[\s\S]*\1)/g,"")}
function u(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=t(l+x));c.isInternalOnly||(g.source!==void 0&&(w=g.source),g.flags!=null&&(y=x?t(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 v(a,c){var g;if(t(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=t(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 u(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=v(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=t;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:u(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]=u(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]=u(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]=u(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=u(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:"("});n.exports=p},
{}]},{},[8])(8)})}).call(globalThis);var K7o=window.XRegExp;var D5G=-1,pc2=function(C){addEventListener("pageshow",function(F){F.persisted&&(D5G=F.timeStamp,C(F))},!0)};var CG7=function(C,F,G){var V=m5r,J,b;return function(z){if(F.value>=0&&(z||G)){var Q;if((b=F.value-((Q=J)!=null?Q:0))||J===void 0)J=F.value,F.delta=b,z=F.value,F.rating=z>V[1]?"poor":z>V[0]?"needs-improvement":"good",C(F)}}};var jFy=function(C){requestAnimationFrame(function(){return requestAnimationFrame(function(){return C()})})};var FSS=function(){var C=performance.getEntriesByType("navigation")[0];if(C&&C.responseStart>0&&C.responseStart<performance.now())return C};var Giy=function(){var C,F;return(F=(C=FSS())==null?void 0:C.activationStart)!=null?F:0};var TD=-1,VIr=new Set,iku=function(C){if(document.visibilityState==="hidden"){if(C.type==="visibilitychange")for(var F=_.u(VIr),G=F.next();!G.done;G=F.next())G=G.value,G();isFinite(TD)||(TD=C.type==="visibilitychange"?C.timeStamp:0,removeEventListener("prerenderingchange",iku,!0))}},J8r=function(){if(TD<0){var C=Giy(),F,G;
TD=(G=document.prerendering?void 0:(F=globalThis.performance.getEntriesByType("visibility-state").filter(function(V){return V.name==="hidden"&&V.startTime>C})[0])==null?void 0:F.startTime)!=null?G:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
addEventListener("visibilitychange",iku,!0);addEventListener("prerenderingchange",iku,!0);pc2(function(){setTimeout(function(){TD=document.visibilityState!=="hidden"||document.prerendering?Infinity:0})})}return{get firstHiddenTime(){return TD},
onHidden:function(V){VIr.add(V)}}};var $EP=function(){var C=C===void 0?-1:C;var F=FSS(),G="navigate";D5G>=0?G="back-forward-cache":F&&(document.prerendering||Giy()>0?G="prerender":document.wasDiscarded?G="restore":F.type&&(G=F.type.replace(/_/g,"-")));return{name:"LCP",value:C,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:G}};var t$E=new WeakMap;var bkO=function(C){var F=F===void 0?{}:F;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var G=new PerformanceObserver(function(V){Promise.resolve().then(function(){C(V.getEntries())})});
G.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},F));return G}}catch(V){}};var nk2=function(C){var F=!1;return function(){F||(C(),F=!0)}};var udu=function(C){document.prerendering?addEventListener("prerenderingchange",function(){return C()},!0):C()};var zXE=function(C){var F=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?C():(C=nk2(C),addEventListener("visibilitychange",C,{once:!0,capture:!0}),F(function(){C();removeEventListener("visibilitychange",C,{capture:!0})}))};var WFW=function(){};
WFW.prototype._processEntry=function(C){var F;(F=this._onBeforeProcessingEntry)==null||F.call(this,C)};var m5r=[2500,4E3],FsS=function(C){var F=F===void 0?{}:F;udu(function(){var G=J8r(),V=$EP(),J=aEB(F),b=function(H){F.reportAllChanges||(H=H.slice(-1));H=_.u(H);for(var l=H.next();!l.done;l=H.next())l=l.value,J._processEntry(l),l.startTime<G.firstHiddenTime&&(V.value=Math.max(l.startTime-Giy(),0),V.entries=[l],Q())},z=bkO(b);
if(z){var Q=CG7(C,V,F.reportAllChanges);for(var E=nk2(function(){b(z.takeRecords());z.disconnect();Q(!0)}),t=function(H){H.isTrusted&&(zXE(E),removeEventListener(H.type,t,{capture:!0}))},k=_.u(["keydown",
"click","visibilitychange"]),U=k.next();!U.done;U=k.next())addEventListener(U.value,t,{capture:!0});pc2(function(H){V=$EP();Q=CG7(C,V,F.reportAllChanges);jFy(function(){V.value=performance.now()-H.timeStamp;Q(!0)})})}})};var QFm;var Inl;_.K=function(){return Inl!==void 0?Inl:Inl=document.createElement("template")};
document.head.appendChild(_.K().content);var EkP;_.kz({_template:function(){if(EkP!==void 0)return EkP;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);
var F=C.content,G=F.insertBefore;QFm===void 0&&(QFm=document.createElement("template"));var V=QFm;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return EkP=C},
is:"tp-yt-app-toolbar"});var WSl;var tIP;_.oY=function(){};
_.oY=_.kz({_template:function(){if(tIP!==void 0)return tIP;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;WSl===void 0&&(WSl=document.createElement("template"));var V=WSl;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return tIP=C},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.oY.instance||(_.oY.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(C){this._text===C&&(C+="\u00a0");this._text="";this.async(function(){this._text=C},this.timeout)},
_onIronAnnounce:function(C){C.detail&&C.detail.text&&this.announce(C.detail.text)}});
_.oY.instance=null;_.oY.requestAvailability=function(){_.oY.instance||(_.oY.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.oY.instance):document.addEventListener("load",function(){document.body.appendChild(_.oY.instance)})};var ano;var kim;/*

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

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 rg,OkG,XNO;rg=Element.prototype;OkG=rg.matches||rg.matchesSelector||rg.mozMatchesSelector||rg.msMatchesSelector||rg.oMatchesSelector||rg.webkitMatchesSelector;XNO=function(){};
_.MI8=function(C){var F=wNS,G=[];return F._collectTabbableNodes(C,G)?F._sortByTabIndex(G):G};
_.n=XNO.prototype;_.n.isFocusable=function(C){return OkG.call(C,"input, select, textarea, button, object")?OkG.call(C,":not([disabled])"):OkG.call(C,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.n._normalizedTabIndex=function(C){return this.isFocusable(C)?(C=C.getAttribute("tabindex")||0,Number(C)):-1};
_.n._collectTabbableNodes=function(C,F){if(C.nodeType!==Node.ELEMENT_NODE||!this._isVisible(C))return!1;var G=this._normalizedTabIndex(C),V=G>0;G>=0&&F.push(C);if(C.localName==="content"||C.localName==="slot")G=_.E5(C).getDistributedNodes();else{var J;G=((J=_.E5(C).shadowRoot)!=null?J:_.E5(C.root||C)).children}for(C=0;C<G.length;C++)V=this._collectTabbableNodes(G[C],F)||V;return V};
_.n._isVisible=function(C){var F=C.style;return F.visibility!=="hidden"&&F.display!=="none"?(F=window.getComputedStyle(C),F.visibility!=="hidden"&&F.display!=="none"):!1};
_.n._sortByTabIndex=function(C){var F=C.length;if(F<2)return C;var G=Math.ceil(F/2);F=this._sortByTabIndex(C.slice(0,G));C=this._sortByTabIndex(C.slice(G));return this._mergeSortByTabIndex(F,C)};
_.n._mergeSortByTabIndex=function(C,F){for(var G=[];C.length>0&&F.length>0;)this._hasLowerTabOrder(C[0],F[0])?G.push(F.shift()):G.push(C.shift());return G.concat(C,F)};
_.n._hasLowerTabOrder=function(C,F){C=Math.max(C.tabIndex,0);F=Math.max(F.tabIndex,0);return C===0||F===0?F>C:C>F};
var wNS=new XNO;var SVu;var LSu;_.kz({_template:function(){if(LSu!==void 0)return LSu;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;SVu===void 0&&(SVu=document.createElement("template"));var V=SVu;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return LSu=C},
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&&_.E5(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.E5(this.parentNode).removeChild(this)},
_onTransitionend:function(C){C&&C.target===this&&this.complete()},
_openedChanged:function(C){C?this.prepare():(C=window.getComputedStyle(this),C.transitionDuration!=="0s"&&C.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 Kq=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;Rx(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)};
Kq.prototype._bringOverlayAtIndexToFront=function(C){var F=this._overlays[C];if(F){var G=this._overlays.length-1,V=this._overlays[G];V&&this._shouldBeBehindOverlay(F,V)&&G--;if(!(C>=G)){V=Math.max(this._getZ(_.B8o(this)),this._minimumZ);for(this._getZ(F)<=V&&this._applyOverlayZ(F,V);C<G;)this._overlays[C]=this._overlays[C+1],C++;this._overlays[G]=F}}};
Kq.prototype.addOverlay=function(C){var F=this._overlays.indexOf(C);if(F>=0)this._bringOverlayAtIndexToFront(F);else{F=this._overlays.length;var G=this._overlays[F-1],V=Math.max(this._getZ(G),this._minimumZ),J=this._getZ(C);G&&this._shouldBeBehindOverlay(C,G)&&(this._applyOverlayZ(G,V),F--,V=Math.max(this._getZ(this._overlays[F-1]),this._minimumZ));J<=V&&this._applyOverlayZ(C,V);this._overlays.splice(F,0,C)}this.trackBackdrop()};
Kq.prototype.removeOverlay=function(C){C=this._overlays.indexOf(C);C!==-1&&(this._overlays.splice(C,1),this.trackBackdrop())};
_.B8o=function(C){return C._overlays[C._overlays.length-1]};
_.n=Kq.prototype;_.n.trackBackdrop=function(){var C=this._overlayWithBackdrop();if(C||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(C)-1,this.backdropElement.opened=!!C,this.backdropElement.prepare()};
_.n._overlayWithBackdrop=function(){for(var C=this._overlays.length-1;C>=0;C--)if(this._overlays[C].withBackdrop)return this._overlays[C]};
_.n._getZ=function(C){var F=this._minimumZ;if(C){var G,V,J=Number(((G=C.hostElement)!=null?G:C).style.zIndex||window.getComputedStyle((V=C.hostElement)!=null?V:C).zIndex);J===J&&(F=J)}return F};
_.n._setZ=function(C,F){var G;((G=C.hostElement)!=null?G:C).style.zIndex=F};
_.n._applyOverlayZ=function(C,F){this._setZ(C,F+2)};
_.n._overlayInPath=function(C){C=C||[];for(var F=0;F<C.length;F++){var G=void 0;if(((G=C[F].polymerController)!=null?G:C[F])._manager===this)return C[F]}};
_.n._onCaptureClick=function(C){var F=this._overlays.length-1;if(F!==-1)for(var G=_.E5(C).path,V,J;(V=this._overlays[F])&&this._overlayInPath(G)!==((J=V.hostElement)!=null?J:V);)if(V._onCaptureClick(C),V.allowClickThrough)F--;else break};
_.n._onCaptureFocus=function(C){var F=_.B8o(this);F&&F._onCaptureFocus(C)};
_.n._onCaptureKeyDown=function(C){var F=_.B8o(this);F&&(_.wg.keyboardEventMatchesKeys(C,"esc")?F._onCaptureEsc(C):_.wg.keyboardEventMatchesKeys(C,"tab")&&F._onCaptureTab(C))};
_.n._shouldBeBehindOverlay=function(C,F){return!C.alwaysOnTop&&F.alwaysOnTop&&!F.contains(C)};
_.I6.Object.defineProperties(Kq.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 C=document.activeElement;C&&C instanceof Element!==!1||(C=document.body);for(;C.root&&_.E5(C.root).activeElement;)C=_.E5(C.root).activeElement;return C}}});
_.Dw=new Kq;var kTE=0,UiB=0,HaZ=null,lEE=[],W9=["wheel","mousewheel","DOMMouseScroll"],yLA;_.y("web_no_lock_on_touchstart_killswitch")&&(W9.push("touchstart"),W9.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;_.pq={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:_.Dw},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var C;return this._focusedChild||_.E5((C=this.hostElement)!=null?C:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var C;return _.MI8((C=this.hostElement)!=null?C: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 C;this._observer=_.E5((C=this.hostElement)!=null?C:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var C;_.E5((C=this.hostElement)!=null?C:this).unobserveNodes(this._observer)}this._observer=null;for(var F in this.__rafs)this.__rafs[F]!==null&&cancelAnimationFrame(this.__rafs[F]);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(C){this.fire("iron-overlay-canceled",C,{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 C;((C=this.hostElement)!=null?C:this).style.outline="none";var F;((F=this.hostElement)!=null?F:this).style.display="none"}},
_openedChanged:function(C){if(C){var F;((F=this.hostElement)!=null?F:this).removeAttribute("aria-hidden")}else{var G;((G=this.hostElement)!=null?G: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 C;if(this.withBackdrop&&!((C=this.hostElement)!=null?C:this).hasAttribute("tabindex")){var F;((F=this.hostElement)!=null?F:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var G;((G=this.hostElement)!=null?G: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 C;((C=this.hostElement)!=null?C:this).style.display="none";var F;((F=this.hostElement)!=null?F:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var C,F;((C=this.hostElement)!=null?C:this).style.transition=((F=this.hostElement)!=null?F:this).style.webkitTransition="none";var G,V;((G=this.hostElement)!=null?G:this).style.transform=((V=this.hostElement)!=null?V:this).style.webkitTransform="none";var J;((J=this.hostElement)!=null?J:this).style.display=""},
_finishPositioning:function(){var C;((C=this.hostElement)!=null?C:this).style.display="none";this.scrollTop=this.scrollTop;var F,G;((F=this.hostElement)!=null?F:this).style.transition=((G=this.hostElement)!=null?G:this).style.webkitTransition="";var V,J;((V=this.hostElement)!=null?V:this).style.transform=((J=this.hostElement)!=null?J: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 C=this._manager.deepActiveElement,F;if(!(F=C===document.body))a:{for(;C;C=C.assignedSlot||C.parentNode||C.host)if(C===this){F=!0;break a}F=!1}F&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(C){this.noCancelOnOutsideClick||this.cancel(C)},
_onCaptureFocus:function(C){if(this.withBackdrop){var F=_.E5(C).path;F.indexOf(this)===-1?(C.stopPropagation(),this._applyFocus()):this._focusedChild=F[0]}},
_onCaptureEsc:function(C){this.noCancelOnEscKey||this.cancel(C)},
_onCaptureTab:function(C){if(this.withBackdrop){this.__ensureFirstLastFocusables();var F=C.shiftKey,G=F?this.__firstFocusableNode:this.__lastFocusableNode;F=F?this.__lastFocusableNode:this.__firstFocusableNode;if(G===F)G=!0;else{var V=this._manager.deepActiveElement;G=V===G||V===this}G&&(C.preventDefault(),this._focusedChild=F,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 C=this._focusableNodes;this.__firstFocusableNode=C[0];this.__lastFocusableNode=C[C.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(C,F){var G=this.__rafs;G[C]!==null&&cancelAnimationFrame(G[C]);G[C]=requestAnimationFrame(function(){G[C]=null;F.call(this)}.bind(this))},
__updateScrollObservers:function(C,F,G){C&&F&&this.__isValidScrollAction(G)?(G==="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),yLA=_._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()):(C=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),C!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(C,1),yLA=_._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(mO)for(var C=this;C;)C.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&C.host&&this.__rootNodes.push(C),C=C.host||C.assignedSlot||C.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(F){F.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(C){C.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(C){return C==="lock"||C==="refit"||C==="cancel"},
__onCaptureScroll:function(C){if(!(this.__isAnimating||_.E5(C).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(C)}},
__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)}};
_.mw=[N8u,_.AY,_.pq];_.kz({_template:function(){if(y8m!==void 0)return y8m;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;lnP===void 0&&(lnP=document.createElement("template"));var V=lnP;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return y8m=C},
is:"tp-yt-iron-dropdown",behaviors:[_.M7,_.wg,_.mw,Ydm],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 C=_.E5(this.$.content).getDistributedNodes(),F=0,G=C.length;F<G;F++)if(C[F].nodeType===Node.ELEMENT_NODE)return C[F]},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(),_.pq._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.pq._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.pq._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var C=this.containedElement,F=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),G=0;G<F.length;G++)F[G].node=C;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(C){this._readied&&(C?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var C=this.focusTarget||this.containedElement;C&&this.opened&&!this.noAutoFocus?C.focus():_.pq._applyFocus.apply(this,arguments)}});var vkm;var fnr;/*

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 hXm=new _.vP({type:"iconset"});
_.kz({_template:function(){if(fnr!==void 0)return fnr;var C=document.createElement("template");_.X(C,"\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");C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;vkm===void 0&&(vkm=document.createElement("template"));
var V=vkm;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return fnr=C},
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(C){C=(C||"").split(":");this._iconName=C.pop();this._iconsetName=C.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&&_.E5(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=hXm.byKey(this._iconsetName)){var C=this._iconset.applyIcon(this,this._iconName,this.theme);C&&C.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,_.E5(this.root).appendChild(this._img)}});var c8$;var A8G;_.kz({_template:function(){if(A8G!==void 0)return A8G;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);
var F=C.content,G=F.insertBefore;c8$===void 0&&(c8$=document.createElement("template"));var V=c8$;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return A8G=C},
is:"tp-yt-iron-input",behaviors:[_.hY],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(){_.oY.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.E5(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.E5(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 C=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":C=/[0-9.,e-]/}return C},_bindValueChanged:function(C,F){F&&(C===void 0?F.value=null:C!==F.value&&(this.inputElement.value=C),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:C}))},
_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(C){var F=C.keyCode==19||C.keyCode==20||C.keyCode==45||C.keyCode==46||C.keyCode==144||C.keyCode==145||C.keyCode>32&&C.keyCode<41||C.keyCode>111&&C.keyCode<124;return!(C.keyCode==8||C.keyCode==9||C.keyCode==13||C.keyCode==27)&&!(C.charCode==0&&F)},
_onKeypress:function(C){if(this.allowedPattern||this.inputElement.type==="number"){var F=this._patternRegExp;if(F&&!(C.metaKey||C.ctrlKey||C.altKey)){this._patternAlreadyChecked=!0;var G=String.fromCharCode(C.charCode);this._isPrintable(C)&&!F.test(G)&&(C.preventDefault(),this._announceInvalidCharacter("Invalid character "+G+" not entered."))}}},
_checkPatternValidity:function(){var C=this._patternRegExp;if(!C)return!0;for(var F=0;F<this.inputElement.value.length;F++)if(!C.test(this.inputElement.value[F]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var C=this.inputElement.checkValidity();C&&(this.required&&this.bindValue===""?C=!1:this.hasValidator()&&(C=_.hY.validate.call(this,this.bindValue)));this.invalid=!C;this.fire("iron-input-validate");return C},
_announceInvalidCharacter:function(C){this.fire("iron-announce",{text:C})},
_computeValue:function(C){return C}});var eXu;var dES;var xEm=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),sFy=xEm&&xEm[1]>=8;
_.kz({_template:function(){if(dES!==void 0)return dES;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;eXu===void 0&&(eXu=document.createElement("template"));var V=eXu;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return dES=C},
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:[T4i,_.AY,_.RTE,X6y],_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 _.E5(_.E5(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var C=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,C-this._physicalCount)},set _virtualStart(C){C=this._clamp(C,0,this._maxVirtualStart);this.grid&&(C-=C%this._itemsPerRow);this._virtualStartVal=C},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(C){C%=this._physicalCount;C<0&&(C=this._physicalCount+C);this.grid&&(C-=C%this._itemsPerRow);this._physicalStartVal=C},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(C){this._physicalCountVal=C},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 C=this._firstVisibleIndexVal;if(C==null){var F=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
C=this._iterateItems(function(G,V){F+=this._getPhysicalSizeIncrement(G);if(F>this._scrollPosition)return this.grid?V-V%this._itemsPerRow:V;if(this.grid&&this._virtualCount-1===V)return V-V%this._itemsPerRow})||0}return C},
get lastVisibleIndex(){var C=this._lastVisibleIndexVal;if(C==null){if(this.grid)C=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var F=this._physicalTop+this._scrollOffset;this._iterateItems(function(G,V){F<this._scrollBottom&&(C=V);F+=this._getPhysicalSizeIncrement(G)})}this._lastVisibleIndexVal=C}return C},
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,_.E9);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(C){this.style.webkitOverflowScrolling=C===this?"touch":"";this.style.overflowY=C===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.E9)},
updateViewportBoundaries:function(){var C=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(C["padding-top"],10);this._isRTL=C.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var C=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),F=C-this._scrollPosition,G=F>=0;this._scrollPosition=C;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(F)>this._physicalSize&&this._physicalSize>0?(F-=this._scrollOffset,G=Math.round(F/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=G,this._physicalStart+=G,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(C=this._getReusables(G),G?(this._physicalTop=C.physicalTop,this._virtualStart+=C.indexes.length,this._physicalStart+=C.indexes.length):(this._virtualStart=this._virtualStart-C.indexes.length,this._physicalStart=this._physicalStart-C.indexes.length),this._update(C.indexes,G?null:C.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),ox))},
_getReusables:function(C){var F=[],G=this._hiddenContentSize*this._ratio,V=this._virtualStart,J=this._virtualEnd,b=this._physicalCount,z=this._physicalTop+this._scrollOffset;var Q=this._physicalBottom+this._scrollOffset;var E=this._scrollPosition,t=this._scrollBottom;if(C){var k=this._physicalStart;Q=E-z}else k=this._physicalEnd,Q-=t;for(;;){var U=this._getPhysicalSizeIncrement(k);Q-=U;if(F.length>=b||Q<=G)break;if(C){if(J+F.length+1>=this._virtualCount)break;if(z+U>=E-this._scrollOffset)break;F.push(k);
z+=U;k=(k+1)%b}else{if(V-F.length<=0)break;if(z+this._physicalSize-U<=t)break;F.push(k);z-=U;k=k===0?b-1:k-1}}return{indexes:F,physicalTop:z-this._scrollOffset}},
_update:function(C,F){if(!(C&&C.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(C);this._updateMetrics(C);if(F)for(;F.length;)C=F.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(C);this._positionItems();this._updateScrollerSize()}},
_createPool:function(C){this._ensureTemplatized();var F,G=Array(C);for(F=0;F<C;F++){var V=this.stamp(null);G[F]=V.root.querySelector("*");this._itemsParent.appendChild(V.root)}return G},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(C){C=this._clamp(this._physicalCount+C,3,this._virtualCount-this._virtualStart);C=this._convertIndexToCompleteRow(C);if(this.grid){var F=C%this._itemsPerRow;F&&C-F<=this._physicalCount&&(C+=this._itemsPerRow);C-=F}C-=this._physicalCount;F=Math.round(this._physicalCount*.5);if(!(C<0)){if(C>0){F=window.performance.now();[].push.apply(this._physicalItems,this._createPool(C));for(var G=0;G<C;G++)this._physicalSizes.push(0);this._physicalCount+=C;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=C);this._update();this._templateCost=(window.performance.now()-F)/C;F=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||F===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,F)),b5P):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,F),ox))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var C=this._getReusables(!0);this._physicalTop=C.physicalTop;this._virtualStart+=C.indexes.length;this._physicalStart+=C.indexes.length;this._update(C.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 C={__key__:!0};C[this.as]=!0;C[this.indexAs]=!0;C[this.selectedAs]=!0;C.tabIndex=!0;this._instanceProps=C;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(C,F){typeof F!=="undefined"&&(this.notifyResize(),_.a4(),C&&this._updateGridMetrics())},
_itemsChanged:function(C){if(C.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,
_.E9);else if(C.path==="items.splices"){this._adjustVirtualIndex(C.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(C.value.indexSplices.some(function(G){return G.addedCount>0||G.removed.length>0})){var F=this._getActiveElement();
this.contains(F)&&F.blur()}C=C.value.indexSplices.some(function(G){return G.index+G.addedCount>=this._virtualStart&&G.index<=this._virtualEnd},this);
this._isClientFull()&&!C||this._debounce("_render",this._render,_.E9)}else C.path!=="items.length"&&this._forwardItemPath(C.path,C.value)},
_forwardItemPath:function(C,F){C=C.slice(6);var G=C.indexOf(".");G===-1&&(G=C.length);var V,J=this.modelForElement(this._offscreenFocusedItem),b=parseInt(C.substring(0,G),10);if(V=this._isIndexRendered(b)){var z=this._getPhysicalIndex(b);var Q=this.modelForElement(this._physicalItems[z])}else J&&(Q=J);Q&&Q[this.indexAs]===b&&(C=C.substring(G+1),C=this.as+(C?"."+C:""),Q._setPendingPropertyOrPath(C,F,!1,!0),Q._flushProperties&&Q._flushProperties(),V&&(this._updateMetrics([z]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(C){C.forEach(function(F){F.removed.forEach(this._removeItem,this);F.index<this._virtualStart&&(F=Math.max(F.addedCount-F.removed.length,F.index-this._virtualStart),this._virtualStart+=F,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=F))},this)},
_removeItem:function(C){this.$.selector.deselect(C);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===C&&this._removeFocusedItem()},
_iterateItems:function(C,F){var G,V;if(arguments.length===2&&F)for(V=0;V<F.length;V++){var J=F[V];var b=this._computeVidx(J);if((G=C.call(this,J,b))!=null)return G}else{J=this._physicalStart;for(b=this._virtualStart;J<this._physicalCount;J++,b++)if((G=C.call(this,J,b))!=null)return G;for(J=0;J<this._physicalStart;J++,b++)if((G=C.call(this,J,b))!=null)return G}},
_computeVidx:function(C){return C>=this._physicalStart?this._virtualStart+(C-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+C},
_assignModels:function(C){this._iterateItems(function(F,G){var V=this._physicalItems[F],J=this.items&&this.items[G];if(J!=null){var b=this.modelForElement(V);b.__key__=null;this._forwardProperty(b,this.as,J);this._forwardProperty(b,this.selectedAs,this.$.selector.isSelected(J));this._forwardProperty(b,this.indexAs,G);this._forwardProperty(b,"tabIndex",this._focusedVirtualIndex===G?0:-1);this._physicalIndexForKey[b.__key__]=F;b._flushProperties&&b._flushProperties(!0);V.removeAttribute("hidden")}else V.setAttribute("hidden",
"")},C)},
_updateMetrics:function(C){_.a4();var F=0,G=0,V=this._physicalAverageCount,J=this._physicalAverage;this._iterateItems(function(b){G+=this._physicalSizes[b];this._physicalSizes[b]=this._physicalItems[b].offsetHeight;F+=this._physicalSizes[b];this._physicalAverageCount+=this._physicalSizes[b]?1:0},C);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(G=this._itemsPerRow===1?G:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+F-G,this._itemsPerRow=1);this._physicalAverageCount!==V&&(this._physicalAverage=Math.round((J*V+F)/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 C=this._physicalTop;if(this.grid){var F=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(G,V){var J=Math.floor(V%this._itemsPerRow*this._itemWidth+F);this._isRTL&&(J*=-1);this.translate3d(J+"px",C+"px",0,this._physicalItems[G]);this._shouldRenderNextRow(V)&&(C+=this._rowHeight)})}else this._iterateItems(function(G){this.translate3d(0,C+"px",0,this._physicalItems[G]);
C+=this._physicalSizes[G]})},
_getPhysicalSizeIncrement:function(C){return this.grid?this._computeVidx(C)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[C]},
_shouldRenderNextRow:function(C){return C%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var C=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(C!==0){this._physicalTop=this._physicalTop-C;var F=this._scrollPosition;!sFy&&F>0&&this._resetScrollPosition(F-C)}},
_resetScrollPosition:function(C){this.scrollTarget&&C>=0&&(this._scrollPosition=this._scrollTop=C)},
_updateScrollerSize:function(C){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((C=(C=(C=C||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(C){return this.scrollToIndex(this.items.indexOf(C))},
scrollToIndex:function(C){if(!(typeof C!=="number"||C<0||C>this.items.length-1)&&(_.a4(),this._physicalCount!==0)){C=this._clamp(C,0,this._virtualCount-1);if(!this._isIndexRendered(C)||C>=this._maxVirtualStart)this._virtualStart=this.grid?C-this._itemsPerRow*2:C-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var F=this._physicalStart,G=this._virtualStart,V=0,J=this._hiddenContentSize;G<C&&
V<=J;)V+=this._getPhysicalSizeIncrement(F),F=(F+1)%this._physicalCount,G++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+V);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)},_.E9)},
selectItem:function(C){return this.selectIndex(this.items.indexOf(C))},
selectIndex:function(C){if(!(C<0||C>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(C)){var F=this.modelForElement(this._physicalItems[this._getPhysicalIndex(C)]);F&&(F[this.selectedAs]=!0);this.updateSizeForIndex(C)}this.$.selector.selectIndex(C)}},
deselectItem:function(C){return this.deselectIndex(this.items.indexOf(C))},
deselectIndex:function(C){C<0||C>=this._virtualCount||(this._isIndexRendered(C)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(C)])[this.selectedAs]=!1,this.updateSizeForIndex(C)),this.$.selector.deselectIndex(C))},
toggleSelectionForItem:function(C){return this.toggleSelectionForIndex(this.items.indexOf(C))},
toggleSelectionForIndex:function(C){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(C):this.$.selector.isSelected(this.items[C]))?this.deselectIndex(C):this.selectIndex(C)},
clearSelection:function(){this._iterateItems(function(C){this.modelForElement(this._physicalItems[C])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(C){(C?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(C){var F=this.modelForElement(C.target);if(F){var G=_.E5(C).path[0];C=this._getActiveElement();var V=this._physicalItems[this._getPhysicalIndex(F[this.indexAs])];if(G.localName!=="input"&&G.localName!=="button"&&G.localName!=="select"){G=F.tabIndex;F.tabIndex=-100;var J=C?C.tabIndex:-1;F.tabIndex=G;C&&V!==C&&V.contains(C)&&J!==-100||this.toggleSelectionForItem(F[this.as])}}},
_multiSelectionChanged:function(C){this.clearSelection();this.$.selector.multi=C},
updateSizeForItem:function(C){return this.updateSizeForIndex(this.items.indexOf(C))},
updateSizeForIndex:function(C){if(!this._isIndexRendered(C))return null;this._updateMetrics([this._getPhysicalIndex(C)]);this._positionItems();return null},
_manageFocus:function(){var C=this._focusedVirtualIndex;C>=0&&C<this._virtualCount?this._isIndexRendered(C)?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(C){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(C/this._itemsPerRow)*this._itemsPerRow:C},
_isIndexRendered:function(C){return C>=this._virtualStart&&C<=this._virtualEnd},
_isIndexVisible:function(C){return C>=this.firstVisibleIndex&&C<=this.lastVisibleIndex},
_getPhysicalIndex:function(C){return(this._physicalStart+(C-this._virtualStart))%this._physicalCount},
focusItem:function(C){this._focusPhysicalItem(C)},
_focusPhysicalItem:function(C){if(!(C<0||C>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(C)||this.scrollToIndex(C);var F=this._physicalItems[this._getPhysicalIndex(C)],G=this.modelForElement(F),V;G.tabIndex=-100;F.tabIndex===-100&&(V=F);V||(V=_.E5(F).querySelector('[tabindex="-100"]'));G.tabIndex=0;this._focusedVirtualIndex=C;V&&V.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 C=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var F=this.stamp(null);this._focusBackfillItem=F.root.querySelector("*");this._itemsParent.appendChild(F.root)}this._offscreenFocusedItem=this._physicalItems[C];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[C]=this._focusBackfillItem;this._focusedPhysicalIndex=C;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var C=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),F=this._physicalItems[C];if(F){var G=this.modelForElement(F),V=this.modelForElement(this._offscreenFocusedItem);G[this.as]===V[this.as]?(this._focusBackfillItem=F,G.tabIndex=-1,this._physicalItems[C]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(C){C=this.modelForElement(C.target);var F=this.modelForElement(this._focusedItem),G=this._offscreenFocusedItem!==null,V=this._focusedVirtualIndex;C&&(F===C?this._isIndexVisible(V)||this.scrollToIndex(V):(this._restoreFocusedItem(),F&&(F.tabIndex=-1),C.tabIndex=0,this._focusedVirtualIndex=V=C[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(V),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],G&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(C){switch(C.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&C.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&&C.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(C)}},
_clamp:function(C,F,G){return Math.min(G,Math.max(F,C))},
_debounce:function(C,F,G){this._debouncers=this._debouncers||{};this._debouncers[C]=_.Qq(this._debouncers[C],G,F.bind(this));_.I4(this._debouncers[C])},
_forwardProperty:function(C,F,G){C._setPendingProperty(F,G)},
_forwardHostPropV2:function(C,F){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(G){G&&this.modelForElement(G).forwardHostProp(C,F)},this)},
_notifyInstancePropV2:function(C,F,G){O35(this.as,F)&&(C=C[this.indexAs],F==this.as&&(this.items[C]=G),this.notifyPath(wR(this.as,"items."+C,F),G))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(C,F,G){F.indexOf(this.as+".")===0&&this.notifyPath("items."+C.__key__+"."+F.slice(this.as.length+1),G)},
_forwardParentPath:function(C,F){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(G){G&&this.modelForElement(G).notifyPath(C,F)},this)},
_forwardParentProp:function(C,F){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(G){G&&(this.modelForElement(G)[C]=F)},this)},
_getActiveElement:function(){var C=this._itemsParent.node.domHost;return _.E5(C?C.root:document).activeElement},
_scrollTargetChanged:function(C,F){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(F)if(C==="document")this.scrollTarget=this._doc;else if(typeof C==="string"){var G,V;this.scrollTarget=(F=(V=(G=this.domHost)==null?void 0:G.polymerController)!=null?V:this.domHost)&&F.$?F.$[C]:_.E5(this.ownerDocument).querySelector("#"+C)}else this._isValidScrollTarget()&&(this._oldScrollTarget=C,this._toggleScrollListener(this._shouldHaveListener,C))}});var qVu;var PG8;var gky=function(C,F,G,V){C-=G;F-=V;return Math.sqrt(C*C+F*F)},RX2=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
ZaI.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var N3w=function(C){C.maxRadius=0;C.mouseDownStart=0;C.mouseUpStart=0;C.xStart=0;C.yStart=0;C.xEnd=0;C.yEnd=0;C.containerMetrics=new ZaI(C.element)};
Oa9.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var C=RX2()-this.mouseDownStart;this.mouseUpStart&&(C-=this.mouseUpElapsed);return C},get mouseUpElapsed(){return this.mouseUpStart?RX2()-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 C=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(C*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-C/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity===0&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var C=this.radius/(this.containerMetrics.size/2);var F=this.xNow-this.containerMetrics.width/2;var G=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+F+"px, "+G+"px)";this.waveContainer.style.transform="translate3d("+F+"px, "+G+"px, 0)";this.wave.style.webkitTransform="scale("+C+","+C+")";this.wave.style.transform="scale3d("+C+","+C+",1)"},
downAction:function(C){var F=this.containerMetrics.width/2,G=this.containerMetrics.height/2;N3w(this);this.mouseDownStart=RX2();this.center?(this.xStart=F,this.yStart=G):(this.xStart=C?C.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=C?C.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=F,this.yEnd=G);C=this.containerMetrics;F=this.xStart;G=this.yStart;this.maxRadius=Math.max(gky(F,G,0,0),gky(F,G,
C.width,0),gky(F,G,0,C.height),gky(F,G,C.width,C.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=RX2())},
remove:function(){_.E5(_.E5(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.kz({_template:function(){if(PG8!==void 0)return PG8;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;qVu===void 0&&(qVu=document.createElement("template"));var V=qVu;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return PG8=C},
is:"tp-yt-paper-ripple",behaviors:[_.wg],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(){_.E5(this).parentNode.nodeType==11?this.keyEventTarget=_.E5(this).getOwnerRoot().host:this.keyEventTarget=_.E5(this).parentNode;var C=this.keyEventTarget;this.listen(C,"up","uiUpAction");this.listen(C,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(C){C.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var C=0;C<this.ripples.length;++C)if(!this.ripples[C].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(C){this.noink||this.downAction(C)},
downAction:function(C){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(C),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(C){this.noink||this.upAction(C)},
upAction:function(C){this.holdDown||(this.ripples.forEach(function(F){F.upAction(C)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var C=0;C<this.ripples.length;++C){var F=this.ripples[C];F.isOpacityFullyDecayed&&!F.isRestingAtMaxRadius&&this.removeRipple(F)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var C=new Oa9(this);_.E5(this.$.waves).appendChild(C.waveContainer);this.$.background.style.backgroundColor=C.color;this.ripples.push(C);this._setAnimating(!0);return C},
removeRipple:function(C){var F=this.ripples.indexOf(C);F<0||(this.ripples.splice(F,1),C.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var C;for(C=0;C<this.ripples.length;++C){var F=this.ripples[C];F.draw();this.$.background.style.opacity=F.outerOpacity;F.isOpacityFullyDecayed&&!F.isRestingAtMaxRadius&&this.removeRipple(F)}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(C,F){F!==void 0&&(C?this.downAction():this.upAction())}});var CH={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(C){SH._downHandler.call(this,C);this.pressed&&this.ensureRipple(C)},
ensureRipple:function(C){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var F=this._rippleContainer||this.root;F&&_.E5(F).appendChild(this._ripple);if(C){F=_.E5(this._rippleContainer||this);var G=_.E5(C).rootTarget;F.deepContains(G)&&this._ripple.uiDownAction(C)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(C){this.hasRipple()&&(this._ripple.noink=C)}};var YV$={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 C=1;this.disabled?C=0:this.active||this.pressed?C=4:this.receivedFocusFromKeyboard&&(C=3);this._setElevation(C)},
_computeKeyboardClass:function(C){this.toggleClass("keyboard-focus",C)},
_spaceKeyDownHandler:function(C){SH._spaceKeyDownHandler.call(this,C);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(C){SH._spaceKeyUpHandler.call(this,C);this.hasRipple()&&this._ripple.uiUpAction()}},T8E=[foO,
_.M7,CH,YV$];_.okS={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(C){C&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=C)},
_createRipple:function(){var C=CH._createRipple();C.id="ink";C.setAttribute("center","");C.classList.add("circle");return C}};
_.r8P=[foO,_.M7,CH,_.okS];_.KSu=[_.r8P,A6r,{_checkedChanged:function(){c6u._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){CH._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var DE8;var pNP;var mEm=function(){};
_.n=mEm.prototype;_.n.registered=function(){};
_.n.addOwnKeyBinding=function(){};
_.n.removeOwnKeyBindings=function(){};
_.n.keyboardEventMatchesKeys=function(){};
_.n._collectKeyBindings=function(){};
_.n._prepKeyBindings=function(){};
_.n._addKeyBinding=function(){};
_.n._resetKeyEventListeners=function(){};
_.n._listenKeyEventListeners=function(){};
_.n._unlistenKeyEventListeners=function(){};
_.n._onKeyBindingEvent=function(){};
_.n._triggerKeyHandler=function(){};
_.n._tapHandler=function(){};
_.n._focusChanged=function(){};
_.n._detectKeyboardFocus=function(){};
_.n._userActivate=function(){};
_.n._upHandler=function(){};
_.n._asyncClick=function(){};
_.n._pressedChanged=function(){};
_.n._ariaActiveAttributeChanged=function(){};
_.n._activeChanged=function(){};
_.n._controlStateChanged=function(){};
_.n._changedButtonState=function(){};
_.n._focusBlurHandler=function(){};
_.n._disabledChanged=function(){};
_.n._changedControlState=function(){};
_.n._buttonStateChanged=function(){};
_.n._downHandler=function(){};
_.n.ensureRipple=function(){};
_.n.getRipple=function(){};
_.n.hasRipple=function(){};
_.n._createRipple=function(){};
_.n._noinkChanged=function(){};
_.n._computeKeyboardClass=function(){};
_.n._spaceKeyDownHandler=function(){};
_.n._spaceKeyUpHandler=function(){};
_.n._setPressed=function(){};
_.n._setPointerDown=function(){};
_.n._setReceivedFocusFromKeyboard=function(){};
_.n._setFocused=function(){};
_.n._setElevation=function(){};
mEm=_.kz({_template:function(){if(pNP!==void 0)return pNP;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);
var F=C.content,G=F.insertBefore;DE8===void 0&&(DE8=document.createElement("template"));var V=DE8;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return pNP=C},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[T8E],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?YV$._calculateElevation.apply(this):this._setElevation(0)}});var CTm;var j5o;var FAm={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},isAriaModal:{type:Boolean,value:!1},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)","isAriaModalChanged(isAriaModal)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(C){_.y("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(C)},
_onDialogClickWrapped:function(C){_.y("dialog_behavior_no_tap_killswitch")||this._onDialogClick(C)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(C,F){F&&(C?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
isAriaModalChanged:function(C){if(C){var F;((F=this.hostElement)!=null?F:this).setAttribute("aria-modal","true")}else{var G;((G=this.hostElement)!=null?G:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(C){this.closingReason=this.closingReason||{};this.closingReason.confirmed=C},
_onDialogClick:function(C){for(var F=_.E5(C).path,G=0,V,J=F.indexOf((V=this.hostElement)!=null?V:this);G<J;G++)if(V=F[G],V.hasAttribute&&(V.hasAttribute("dialog-dismiss")||V.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(V.hasAttribute("dialog-confirm"));this.close();C.stopPropagation();break}}},GYu=[_.mw,
FAm];var VLy=document.createElement("template");_.X(VLy,'<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(VLy.content);var iC2=document.createElement("template");_.X(iC2,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(iC2.content);_.kz({_template:function(){if(j5o!==void 0)return j5o;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);
var F=C.content,G=F.insertBefore;CTm===void 0&&(CTm=document.createElement("template"));var V=CTm;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return j5o=C},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[GYu,Ydm],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 JPy;var $Xu;_.kz({_template:function(){if($Xu!==void 0)return $Xu;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;JPy===void 0&&(JPy=document.createElement("template"));var V=JPy;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return $Xu=C},
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 C,F,G;if(((C=window.ShadyDOM)==null?void 0:C.noPatch)!==!0&&((F=window.ShadyDOM)==null?void 0:F.noPatch)!=="on-demand"||((G=this.__shady_parentNode)==null?void 0:G.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(FAm)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var bCo=_.h6(['<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>']),n8S=_.Bkm(bCo);n8S.setAttribute("style","display: none;");document.head.appendChild(n8S.content);var u38;var zPG;var Q52;var IfG;_.kz({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[eH],configure:function(C){var F=C.node,G=F.getBoundingClientRect().height;return this._effect=new KeyframeEffect(F,[{height:G/2+"px"},{height:G+"px"}],this.timingFromConfig(C))}});
_.kz({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[eH],configure:function(C){var F=C.node,G=F.getBoundingClientRect().width;return this._effect=new KeyframeEffect(F,[{width:G/2+"px"},{width:G+"px"}],this.timingFromConfig(C))}});
_.kz({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[eH],configure:function(C){var F=C.node,G=F.getBoundingClientRect().width;return this._effect=new KeyframeEffect(F,[{width:G+"px"},{width:G-G/20+"px"}],this.timingFromConfig(C))}});
_.kz({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[eH],configure:function(C){var F=C.node,G=F.getBoundingClientRect().height;this.setPrefixedProperty(F,"transformOrigin","0 0");return this._effect=new KeyframeEffect(F,[{height:G+"px",transform:"translateY(0)"},{height:G/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(C))}});var j6={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},E87=function(){};
_.n=E87.prototype;_.n.registered=function(){};
_.n.addOwnKeyBinding=function(){};
_.n.removeOwnKeyBindings=function(){};
_.n.keyboardEventMatchesKeys=function(){};
_.n._collectKeyBindings=function(){};
_.n._prepKeyBindings=function(){};
_.n._addKeyBinding=function(){};
_.n._resetKeyEventListeners=function(){};
_.n._listenKeyEventListeners=function(){};
_.n._unlistenKeyEventListeners=function(){};
_.n._onKeyBindingEvent=function(){};
_.n._triggerKeyHandler=function(){};
_.n._focusBlurHandler=function(){};
_.n._changedControlState=function(){};
_.n._setFocused=function(){};
E87=_.kz({_template:function(){if(IfG!==void 0)return IfG;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;Q52===void 0&&(Q52=document.createElement("template"));var V=Q52;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return IfG=C},
is:"tp-yt-paper-menu-button",behaviors:[_.wg,_.M7],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:j6.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:j6.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:j6.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 C=_.E5(this.$.content).getDistributedNodes(),F=0,G=C.length;F<G;F++)if(C[F].nodeType===Node.ELEMENT_NODE)return C[F]},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(C,F){C?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):F!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(C){_.M7._disabledChanged.apply(this,arguments);C&&this.opened&&this.close()},
__onIronOverlayCanceled:function(C){var F=this.$.trigger;_.E5(C.detail).path.indexOf(F)>-1&&C.preventDefault()}});
Object.keys(j6).forEach(function(C){E87[C]=j6[C]});var WA7=_.Lq.IronButtonState,tL8=(0,_.Xt)(HTMLElement);
_.kz({_template:function(){if(zPG!==void 0)return zPG;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;u38===void 0&&(u38=document.createElement("template"));var V=u38;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return zPG=C},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[WA7,_.M7,CH,_.BP,_.hY],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(C){var F=(0,_.vv)(this);F.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:C});F.shadowRoot.appendChild(C);return tL8.prototype._attachDom.call(this,C)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var C=this.contentElement;C&&C.selectedItem&&this._setSelectedItem(C.selectedItem)},
get contentElement(){for(var C=_.E5(this.$.content).getDistributedNodes(),F=0,G=C.length;F<G;F++)if(C[F].nodeType===Node.ELEMENT_NODE)return C[F]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(C){this._setSelectedItem(C.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(C){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(C)===this&&this.open()},
_selectedItemChanged:function(C){var F="";C?F=C.label||C.getAttribute("label")||C.textContent.trim():F="";this.value=F;this._setSelectedItemLabel(F)},
_computeMenuVerticalOffset:function(C,F){return F?F:C?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var C=this.opened?"true":"false",F=this.contentElement;F&&F.setAttribute("aria-expanded",C)},
_computeLabelClass:function(C,F,G){var V="label";if(C)G&&(V+=" label-is-hidden");else if(G||F)V+=" label-is-floating";return V},
_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 afP;var kYr;_.kz({is:"tp-yt-paper-icon-button",_template:function(){if(kYr!==void 0)return kYr;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;afP===void 0&&(afP=document.createElement("template"));var V=afP;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return kYr=C},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.r8P],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(C,F){var G=this.getAttribute("aria-label");G&&F!=G||this.setAttribute("aria-label",C)}});var UXu;var HCS;_.F9=[foO,_.M7,{hostAttributes:{role:"option",tabindex:"0"}}];_.kz({_template:function(){if(HCS!==void 0)return HCS;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;UXu===void 0&&(UXu=document.createElement("template"));var V=UXu;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return HCS=C},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.F9]});var lfS;var yPr;var ZCm={attached:function(){this.fire("addon-attached")},
update:function(){}};var N17=1,OCy=1,XdS=1,wdu=[_.M7,_.wg,{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();!iN&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(C,F){C?C=C+" "+F:C=F;return C},
_onAddonAttached:function(C){C=_.E5(C).rootTarget;if(C.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,C.id);else{var F="paper-input-add-on-"+OCy++;C.id=F;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,F)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(C){_.M7._focusBlurHandler.call(this,C);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var C=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",C);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(C){try{var F=this.inputElement.selectionStart;this.value=C;this.inputElement.selectionStart=F;this.inputElement.selectionEnd=F}catch(G){this.value=C}},
_computeAlwaysFloatLabel:function(C,F){return F||C},
_updateAriaLabelledBy:function(){var C=_.E5(this.root).querySelector("label");if(C){if(C.id)var F=C.id;else F="paper-input-label-"+N17++,C.id=F;this._ariaLabelledBy=F}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+XdS++)},
_onChange:function(C){this.shadowRoot&&this.fire(C.type,{sourceEvent:C},{node:this,bubbles:C.bubbles,cancelable:C.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var C=document.activeElement;C instanceof HTMLElement&&C!==document.body&&C!==document.documentElement||this._focusableElement.focus()}}}];var ML7;var SWE;_.kz({_template:function(){if(SWE!==void 0)return SWE;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;ML7===void 0&&(ML7=document.createElement("template"));var V=ML7;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return SWE=C},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[ZCm],properties:{_charCounterStr:{type:String,value:"0"}},update:function(C){if(C.inputElement){C.value=C.value||"";var F=C.value.toString().length.toString();C.inputElement.hasAttribute("maxlength")&&(F+="/"+C.inputElement.getAttribute("maxlength"));this._charCounterStr=F}}});var LAu;var B1S;_.kz({_template:function(){if(B1S!==void 0)return B1S;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;LAu===void 0&&(LAu=document.createElement("template"));var V=LAu;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return B1S=C},
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 y3(this.attrForValue)},get _inputElement(){return _.E5(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(C){this._addons||(this._addons=[]);C=C.target;this._addons.indexOf(C)===-1&&(this._addons.push(C),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(C){this._handleValueAndAutoValidate(C.target)},
_onValueChanged:function(C){var F=C.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,F.value===void 0||F.value===""))return;this._handleValueAndAutoValidate(C.target)},
_handleValue:function(C){var F=this._inputElementValue;F||F===0||C.type==="number"&&!C.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:C,value:F,invalid:this.invalid})},
_handleValueAndAutoValidate:function(C){this.autoValidate&&C&&(this.invalid=!(C.validate?C.validate(this._inputElementValue):C.checkValidity()));this._handleValue(C)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(C){if(this._addons)for(var F,G=0;F=this._addons[G];G++)F.update(C)},
_computeInputContentClass:function(C,F,G,V,J){var b="input-content";C?(J&&(b+=" label-is-hidden"),V&&!this.noUnfloatedLabelError&&(b+=" is-invalid")):(C=this.querySelector("label"),F||J?(b+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",V?b+=" is-invalid":G&&(b+=" label-is-highlighted")):(C&&(this.$.labelAndInputContainer.style.position="relative"),V&&!this.noUnfloatedLabelError&&(b+=" is-invalid")));G&&(b+=" focused");return b},
_computeUnderlineClass:function(C,F){var G="underline";F?G+=" is-invalid":C&&(G+=" is-highlighted");return G},
_computeAddOnContentClass:function(C,F){var G="add-on-content";F?G+=" is-invalid":C&&(G+=" is-highlighted");return G}});var v8u;var ffG;_.kz({_template:function(){if(ffG!==void 0)return ffG;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;v8u===void 0&&(v8u=document.createElement("template"));var V=v8u;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return ffG=C},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[ZCm],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(C){this._setInvalid(C.invalid)}});_.kz({is:"tp-yt-paper-input",_template:function(){if(yPr!==void 0)return yPr;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;lfS===void 0&&(lfS=document.createElement("template"));var V=lfS;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return yPr=C},
behaviors:[wdu,_.BP],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 hPr;var cP7;_.kz({_template:function(){if(cP7!==void 0)return cP7;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=
C.content,G=F.insertBefore;hPr===void 0&&(hPr=document.createElement("template"));var V=hPr;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return cP7=C},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.F9]});var APS;var ePo;_.kz({_template:function(){if(ePo!==void 0)return ePo;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);
var F=C.content,G=F.insertBefore;APS===void 0&&(APS=document.createElement("template"));var V=APS;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return ePo=C},
is:"tp-yt-paper-item-body"});var dXy;var xXl;var s5G=function(){};
_.n=s5G.prototype;_.n.indexOf=function(){};
_.n.selectPrevious=function(){};
_.n.selectNext=function(){};
_.n.selectIndex=function(){};
_.n.forceSynchronousItemUpdate=function(){};
_.n._checkFallback=function(){};
_.n._addListener=function(){};
_.n._removeListener=function(){};
_.n._activateEventChanged=function(){};
_.n._updateItems=function(){};
_.n._selectSelected=function(){};
_.n._filterItem=function(){};
_.n._valueToItem=function(){};
_.n._valueToIndex=function(){};
_.n._indexToValue=function(){};
_.n._valueForItem=function(){};
_.n._observeItems=function(){};
_.n._itemActivate=function(){};
_.n.multiChanged=function(){};
_.n._updateAttrForSelected=function(){};
_.n._updateSelected=function(){};
_.n._selectMulti=function(){};
_.n._selectionChange=function(){};
_.n._toggleSelected=function(){};
_.n._valuesToItems=function(){};
_.n.registered=function(){};
_.n.addOwnKeyBinding=function(){};
_.n.removeOwnKeyBindings=function(){};
_.n.keyboardEventMatchesKeys=function(){};
_.n._collectKeyBindings=function(){};
_.n._prepKeyBindings=function(){};
_.n._addKeyBinding=function(){};
_.n._resetKeyEventListeners=function(){};
_.n._listenKeyEventListeners=function(){};
_.n._unlistenKeyEventListeners=function(){};
_.n._onKeyBindingEvent=function(){};
_.n._triggerKeyHandler=function(){};
_.n.select=function(){};
_.n._resetTabindices=function(){};
_.n._updateMultiselectable=function(){};
_.n._focusWithKeyboardEvent=function(){};
_.n._clearSearchText=function(){};
_.n._focusPrevious=function(){};
_.n._focusNext=function(){};
_.n._applySelection=function(){};
_.n._focusedItemChanged=function(){};
_.n._onIronItemsChanged=function(){};
_.n._onShiftTabDown=function(){};
_.n._onFocus=function(){};
_.n._onUpKey=function(){};
_.n._onDownKey=function(){};
_.n._onEscKey=function(){};
_.n._onKeydown=function(){};
_.n._activateHandler=function(){};
_.n._disabledChanged=function(){};
_.n._setSelectedItem=function(){};
_.n._setItems=function(){};
_.n._setSelectedItems=function(){};
_.n._setFocusedItem=function(){};
s5G=_.kz({_template:function(){if(xXl!==void 0)return xXl;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);
var F=C.content,G=F.insertBefore;dXy===void 0&&(dXy=document.createElement("template"));var V=dXy;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return xXl=C},
is:"tp-yt-paper-listbox",behaviors:[sEu],hostAttributes:{role:"listbox"}});var qWG;var PT8;var g8G={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(C,F){return[C||F?"active":"",F?"cooldown":""].join(" ")},
__activeChanged:function(C,F){this.__setAriaHidden(!C);this.__coolingDown=!C&&F},
__altChanged:function(C){this.setAttribute("aria-label",C||"loading")},
__setAriaHidden:function(C){C?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.kz({_template:function(){if(PT8!==void 0)return PT8;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;qWG===void 0&&(qWG=document.createElement("template"));var V=qWG;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return PT8=C},
is:"tp-yt-paper-spinner",behaviors:[g8G]});var RPO;var YWl;_.kz({_template:function(){if(YWl!==void 0)return YWl;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;RPO===void 0&&(RPO=document.createElement("template"));var V=RPO;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return YWl=C},
is:"tp-yt-paper-spinner-lite",behaviors:[g8G]});var T1u;var o88;_.kz({_template:function(){if(o88!==void 0)return o88;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;T1u===void 0&&(T1u=document.createElement("template"));var V=T1u;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return o88=C},
is:"tp-yt-paper-tab",behaviors:[_.M7,_.Lq.IronButtonState,CH],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 C=_.E5(this).parentNode;return!!C&&!!C.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(C){if(this.link){var F=this.queryEffectiveChildren("a");F&&C.target!==F&&F.click()}}});var rPE;var KAo;var DXS=_.h6(['<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>']),pdm=_.Bkm(DXS);document.head.appendChild(pdm.content);_.kz({_template:function(){if(KAo!==void 0)return KAo;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;rPE===void 0&&(rPE=document.createElement("template"));var V=rPE;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return KAo=C},
is:"tp-yt-paper-tabs",behaviors:[_.AY,_.PVm],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(C){_.E5(this).querySelectorAll("tp-yt-paper-tab").forEach(C?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(C){C.setAttribute("noink","")},
_removeNoinkAttribute:function(C){C.removeAttribute("noink")},
_computeScrollButtonClass:function(C,F,G,V){return!F||G?"hidden":C?V?"hidden":"not-visible":""},
_computeTabsContentClass:function(C,F){var G="tabs-content";C&&(G+=" scrollable");if(!C||F)G+=" fit-container";return G},
_computeSelectionBarClass:function(C,F){var G="selection-bar";C?G+=" hidden":F&&(G+=" align-bottom");return G},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(C){return""+C},
_onIronSelect:function(C){this._tabChanged(C.detail.item,this._previousTab);this._previousTab=C.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();_.cP._activateHandler.apply(this,arguments)},
_scheduleActivation:function(C,F){this._pendingActivationItem=C;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,F)},
_delayedActivationHandler:function(){var C=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;C.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(C){C.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(C,F){this.scrollable&&this._affectScroll(F&&-F.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(C){this.$.tabsContainer.scrollLeft+=C;C=this.$.tabsContainer.scrollLeft;this._leftHidden=C===0||this.hideScrollButtons;this._rightHidden=C===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(C,F){if(C){var G=this.$.tabsContent.getBoundingClientRect(),V=G.width,J=C.getBoundingClientRect();G=J.left-G.left;this._pos={width:this._calcPercent(J.width,V),left:this._calcPercent(G,V)};if(this.noSlide||F==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var b=F.getBoundingClientRect();F=this.items.indexOf(F);C=this.items.indexOf(C);this.$.selectionBar.classList.add("expand");
C=F<C;this._isRTL&&(C=!C);C?this._positionBar(this._calcPercent(J.left+J.width-b.left,V)-5,this._left):this._positionBar(this._calcPercent(b.left+b.width-J.left,V)-5,this._calcPercent(G,V)+5);this.scrollable&&this._scrollToSelectedIfNeeded(J.width,G)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(C,F){F-=this.$.tabsContainer.scrollLeft;F<0?this.$.tabsContainer.scrollLeft+=F:(F+=C-this.$.tabsContainer.offsetWidth,F>0&&(this.$.tabsContainer.scrollLeft+=F))},
_calcPercent:function(C,F){return 100*C/F},
_positionBar:function(C,F){C=C||0;F=F||0;this._width=C;this._left=F;this.transform("translateX("+F+"%) scaleX("+C/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var C=this.$.selectionBar.classList;C.contains("expand")?(C.remove("expand"),C.add("contract"),this._positionBar(this._pos.width,this._pos.left)):C.contains("contract")&&C.remove("contract")}});var mX7;var Cxy;_.kz({_template:function(){if(Cxy!==void 0)return Cxy;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;mX7===void 0&&(mX7=document.createElement("template"));var V=mX7;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return Cxy=C},
is:"tp-yt-paper-textarea",behaviors:[wdu,_.BP],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(C){this.$.input.textarea.selectionStart=C},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(C){this.$.input.textarea.selectionEnd=C},_ariaLabelledByChanged:function(C){this._focusableElement.setAttribute("aria-labelledby",C)},
_ariaDescribedByChanged:function(C){this._focusableElement.setAttribute("aria-describedby",C)},
get _focusableElement(){return this.inputElement.textarea}});var jqu;var Fl8;/*

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 GeS=function(){};
_.n=GeS.prototype;_.n.addOwnKeyBinding=function(){};
_.n.removeOwnKeyBindings=function(){};
_.n.keyboardEventMatchesKeys=function(){};
_.n._collectKeyBindings=function(){};
_.n._prepKeyBindings=function(){};
_.n._addKeyBinding=function(){};
_.n._resetKeyEventListeners=function(){};
_.n._listenKeyEventListeners=function(){};
_.n._unlistenKeyEventListeners=function(){};
_.n._onKeyBindingEvent=function(){};
_.n._triggerKeyHandler=function(){};
_.n._tapHandler=function(){};
_.n._focusChanged=function(){};
_.n._detectKeyboardFocus=function(){};
_.n._userActivate=function(){};
_.n._upHandler=function(){};
_.n._spaceKeyDownHandler=function(){};
_.n._spaceKeyUpHandler=function(){};
_.n._asyncClick=function(){};
_.n._pressedChanged=function(){};
_.n._ariaActiveAttributeChanged=function(){};
_.n._activeChanged=function(){};
_.n._controlStateChanged=function(){};
_.n._changedButtonState=function(){};
_.n._focusBlurHandler=function(){};
_.n._disabledChanged=function(){};
_.n._changedControlState=function(){};
_.n._downHandler=function(){};
_.n.ensureRipple=function(){};
_.n.getRipple=function(){};
_.n.hasRipple=function(){};
_.n._noinkChanged=function(){};
_.n._focusedChanged=function(){};
_.n.registered=function(){};
_.n._invalidChanged=function(){};
_.n.hasValidator=function(){};
_.n.validate=function(){};
_.n._getValidity=function(){};
_.n._requiredChanged=function(){};
_.n._valueChanged=function(){};
_.n._checkedChanged=function(){};
_.n._buttonStateChanged=function(){};
_.n._setPressed=function(){};
_.n._setPointerDown=function(){};
_.n._setReceivedFocusFromKeyboard=function(){};
_.n._setFocused=function(){};
GeS=_.kz({is:"tp-yt-paper-toggle-button",_template:function(){if(Fl8!==void 0)return Fl8;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;jqu===void 0&&(jqu=document.createElement("template"));var V=jqu;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return Fl8=C},
behaviors:[_.KSu],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");_.zH(this,function(){_.TA(this,"pan-y")})},
_ontrack:function(C){C=C.detail;C.state==="start"?this._trackStart(C):C.state==="track"?this._trackMove(C):C.state==="end"&&this._trackEnd(C)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(C){C=C.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+C:C)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+C:C));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 C=CH._createRipple();C.id="ink";C.setAttribute("recenters","");C.classList.add("circle","toggle-ink");return C}});var VBr;var i4G;_.kz({_template:function(){if(i4G!==void 0)return i4G;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;VBr===void 0&&(VBr=document.createElement("template"));var V=VBr;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return i4G=C},
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 C=_.E5(this).parentNode,F=_.E5(this).getOwnerRoot(),G;this.for?G=_.E5(F).querySelector("#"+this.for):G=C.nodeType==Node.DOCUMENT_FRAGMENT_NODE?F.host:C;return G},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(C){C==="entry"?this.show():C==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.E5(this).textContent.trim()===""){for(var C=!0,F=_.E5(this).getEffectiveChildNodes(),G=0;G<F.length;G++)if(F[G].textContent.trim()!==""){C=!1;break}if(C)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 C=this.offset;this.marginTop!=14&&this.offset==14&&(C=this.marginTop);var F=this.offsetParent.getBoundingClientRect(),G=this._target.getBoundingClientRect(),V=this.getBoundingClientRect(),J=(G.width-V.width)/2,b=(G.height-V.height)/2,z=G.left-F.left,Q=G.top-F.top;switch(this.position){case "top":var E=z+J;var t=Q-V.height-C;break;case "bottom":E=z+J;t=Q+G.height+C;break;case "left":E=z-V.width-C;t=Q+b;break;case "right":E=z+G.width+
C,t=Q+b}this.fitToVisibleBounds?(F.left+E+V.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,E)+"px",this.style.right="auto"),F.top+t+V.height>window.innerHeight?(this.style.bottom=F.height+"px",this.style.top="auto"):(this.style.top=Math.max(-F.top,t)+"px",this.style.bottom="auto")):(this.style.left=E+"px",this.style.top=t+"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(C){C!==500&&this.updateStyles({"--paper-tooltip-delay-in":C+"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(C){if(C==="entry"&&this.animationEntry!=="")return this.animationEntry;if(C==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[C]&&typeof this.animationConfig[C][0].name==="string"){if(this.animationConfig[C][0].timing&&this.animationConfig[C][0].timing.delay&&this.animationConfig[C][0].timing.delay!==0){var F=this.animationConfig[C][0].timing.delay;C==="entry"?this.updateStyles({"--paper-tooltip-delay-in":F+"ms"}):C==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":F+
"ms"})}return this.animationConfig[C][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 Jc7=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Jc7,_.b0);var $Yr=_.kl(Jc7,[0,_.o3]);var GL=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(GL,_.b0);var b4P=[3,4],n08=[5,6];var u47=[0,b4P,n08,_.Dn,-1,_.R3,_.pk,-1,U3P,HtG];var zm2=_.kl(GL,u47),Qqy=_.Hh(u47);var IdS=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(IdS,_.b0);var E0E=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(E0E,_.b0);var WlP=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(WlP,_.b0);var tB2=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(tB2,_.b0);var adu=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(adu,_.b0);var Vl=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Vl,_.b0);Vl.prototype.getSource=function(){return _.kL(this,1)};
Vl.prototype.getMessage=function(){return _.a3(this,4)};
Vl.prototype.getData=function(){return _.aa(this,adu,8)};var ke8=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(ke8,_.b0);var iu=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(iu,_.b0);var Ja=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Ja,_.b0);var $D=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O($D,_.b0);$D.prototype.getUrl=function(){return _.a3(this,1)};
$D.prototype.setUrl=function(C){return _.fA(this,1,C)};
$D.prototype.hasUrl=function(){return _.Or(_.ig(this,1))!=null};var UYE=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(UYE,_.b0);var H4P=[3];var ld7=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(ld7,_.b0);var bu=function(C){var F=new ld7;return _.kx(F,2,C)};
ld7.prototype.getLanguage=function(){return lg(this,4,nH)};
var ycS=function(C){var F=bu(1);return _.X6(F,6,nH,C)},nH=[3,
4,5,6];var Z48=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Z48,_.b0);var uu=function(C){var F=new Z48;return _.kx(F,1,C)},zL=function(C,F){return _.X6(C,2,Ncy,F)},Ncy=[2,
3,4,5];var O4l=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(O4l,_.b0);var Ql=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Ql,_.b0);var Xer=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Xer,_.b0);var weG=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(weG,_.b0);var MBm=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(MBm,_.b0);var Svu=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Svu,_.b0);var LlS=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(LlS,_.b0);var Id=function(C){return _.aa(C,Ja,5)};var Bcu=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Bcu,_.b0);Bcu.prototype.getValue=function(){return Wc(this,1)};var v0u=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(v0u,_.b0);var ER=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(ER,_.b0);ER.prototype.getMetadata=function(){return _.yZ(this,MBm,7,Wf)};
ER.prototype.hasMetadata=function(){return _.$L(this,MBm,7,Wf)};
var fd7=_.T9B(ER),Wf=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var ta=function(C){this.JSC$12176_name_=C;this.files_=[];this.directories_=[];this.directoryMap_={}};
ta.prototype.getName=function(){return this.JSC$12176_name_};var kD=function(C,F){this.callback_=F;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new ta("");hm$(this,C,this.rootDirectory_);ad(this)},hm$=function(C,F,G){for(var V=0;V<F.length;V++){var J=F[V];
J.isFile?(C.fileOps_++,J.file((0,_.ck)(C.handleFileSuccess_,C,G),(0,_.ck)(C.handleFileError_,C))):C.unscannedDirectories_.push(new ccu(J,G))}},ad=function(C){if(C.unscannedDirectories_.length>0&&C.directoryOps_<5&&!C.hasError_){C.directoryOps_++;
var F=C.unscannedDirectories_.shift(),G=F.entry,V=new ta(G.name);F=F.parent;F.directoryMap_[V.getName()]=V;F.directories_.push(V);G=G.createReader();G.readEntries((0,_.ck)(C.handleDirectorySuccess_,C,G,V),(0,_.ck)(C.handleDirectoryError_,C))}C.directoryOps_!=0||C.fileOps_!=0||C.unscannedDirectories_.length!=0&&!C.hasError_||C.callback_(C.rootDirectory_.files_,C.rootDirectory_.directories_,C.hasError_)};
kD.prototype.handleDirectorySuccess_=function(C,F,G){hm$(this,G,F);G.length==0?(this.directoryOps_--,ad(this)):C.readEntries((0,_.ck)(this.handleDirectorySuccess_,this,C,F),(0,_.ck)(this.handleDirectoryError_,this))};
kD.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;ad(this)};
kD.prototype.handleFileSuccess_=function(C,F){C.files_.push(F);this.fileOps_--;ad(this)};
kD.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;ad(this)};
var ccu=function(C,F){this.entry=C;this.parent=F};var UR=function(C){_.lT.call(this);_.IP(C,"drop",this.onObjectsDropped_,!1,this);_.IP(C,"dragenter",this.onFilesDragged_,!1,this);_.IP(C,"dragover",this.onFilesDragged_,!1,this);_.IP(C,"dragleave",this.onDragLeave_,!1,this);_.IP(C,"dragend",this.onDragLeave_,!1,this)};
_.RE(UR,_.lT);var Acu=function(C,F){_.tP.call(this,"f");this.files=C;this.directories=F};
_.RE(Acu,_.tP);var em$=function(){_.tP.call(this,"h")};
_.RE(em$,_.tP);var dYy=function(){_.tP.call(this,"i")};
_.RE(dYy,_.tP);var xY7=function(){_.tP.call(this,"g")};
_.RE(xY7,_.tP);UR.prototype.onObjectsDropped_=function(C){var F=this;C.preventDefault();var G=C.event_.dataTransfer;if((C=G&&G.items)&&C.length>0&&C[0].webkitGetAsEntry){G=[];for(var V=[],J=0;J<C.length;J++){var b=C[J].webkitGetAsEntry();b?G.push(b):V.push(C[J])}new kD(G,function(z,Q,E){E?F.dispatchEvent(new xY7("Error occurred while reading from the file system.")):F.dispatchEvent(new Acu(z,Q,V))})}else(C=G&&G.files)&&this.dispatchEvent(new Acu(Array.from(C),[]))};
UR.prototype.onFilesDragged_=function(C){C.type==="dragenter"&&this.dispatchEvent(new em$);C.preventDefault()};
UR.prototype.onDragLeave_=function(){this.dispatchEvent(new dYy)};var sqG=function(C,F){this.JSC$12199_name_=C;this.inputElement_=F};
sqG.prototype.getName=function(){return this.JSC$12199_name_};
sqG.prototype.getInputElement=function(){return this.inputElement_};var Hf=function(C,F,G){F=F===void 0?"single_file":F;G=G===void 0?[]:G;_.lT.call(this);this.overlayTarget_=C;this.parentOverlay_=C!=null?C.parentNode:_.Md("scotty-overlay-parent");this.selectorType_=F;this.acceptTypes_=G;this.overlay_=qvl(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.O(Hf,_.lT);
var qvl=function(C,F,G,V){var J=document.createElement("input");J.setAttribute("type","file");J.setAttribute("name","Filedata");_.IP(J,"change",C.onFilesSelected_,!1,C);G==="multiple_file"&&(J.multiple="true");G==="single_directory"&&(J.webkitdirectory="true");V.length>0&&J.setAttribute("accept",V.join(","));J.style.position="absolute";J.style.overflow="hidden";J.style.height="0px";J.style.width="0px";J.style.opacity="0";J.setAttribute("aria-hidden","true");J.setAttribute("tabIndex",-1);if(C.overlayTarget_!=
null)return J.style.height=F.offsetHeight+"px",J.style.width=F.offsetWidth+"px",C.parentOverlay_&&(C.parentOverlay_.style.position="relative"),_.SI(J,F),cN(J,new _.ql(F.offsetLeft,F.offsetTop)),J;C.parentOverlay_.appendChild(J);return J};
Hf.prototype.click=function(){this.overlay_.click()};
Hf.prototype.onFilesSelected_=function(C){a:{try{var F=(new XMLHttpRequest).upload!==void 0;break a}catch(t){}F=!1}if(F){var G;C=Array.from((G=C.target.files)!=null?G:[]);G=[];if(this.selectorType_==="single_directory"&&(_.Do||nO||_.KV)){G=new ta("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(F=0;F<C.length;F++)for(var V=C[F],J=V.webkitRelativePath.split("/"),b=G,z=0;z<J.length;z++){var Q=J[z];if(z==J.length-1){Q!="."&&b.files_.push(V);break}var E=b.directoryMap_[Q];E==void 0&&(Q=
E=new ta(Q),b.directoryMap_[Q.getName()]=Q,b.directories_.push(Q));b=E}G=G.directories_}this.dispatchEvent(new Px$(C,G,null))}else C=C.target.value,C.match(/^c:\\fakepath\\/i)&&(C=C.substring(12)),this.dispatchEvent(new Px$([],[],new sqG(C,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=qvl(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var Px$=function(C,F){_.tP.call(this,"j");this.files=C;this.directories=F};
_.O(Px$,_.tP);var g0E=function(C){this.uploadUrl_=C};var Rmr=function(){_.lT.call(this)};
_.RE(Rmr,_.lT);var lu=function(C){_.tP.call(this,C)};
_.RE(lu,_.tP);var yl=function(C){_.tP.call(this,C)};
_.RE(yl,_.tP);var YvP=function(C,F,G,V,J){_.lT.call(this);G=document.createElement("form");G.setAttribute("method",F);G.setAttribute("enctype","multipart/form-data");G.setAttribute("encoding","multipart/form-data");F=document.createElement("input");F.setAttribute("type","hidden");F.setAttribute("name","metadata");F.setAttribute("value",J);G.appendChild(F);G.appendChild(V);this.JSC$12216_form_=G;C=new _.dz(C);_.jE(C,"upload_protocol","multipart");this.JSC$12216_url_=C.toString();this.JSC$12216_request_=new JY;this.state_=
"Ready";this.JSC$12216_errorDescription_=null;this.JSC$12216_eventHandler_=new _.ln(this);_.Nd(this,this.JSC$12216_eventHandler_);this.JSC$12216_eventHandler_.listen(this.JSC$12216_request_,"success",this.onTransferSuccess_);this.JSC$12216_eventHandler_.listen(this.JSC$12216_request_,"error",this.onTransferError_)};
_.O(YvP,Rmr);_.n=YvP.prototype;_.n.run=function(){this.state_="Transferring";var C=this.JSC$12216_request_,F=this.JSC$12216_form_;if(C.JSC$11484_active_)throw Error("ue");var G=new _.dz(this.JSC$12216_url_||F.action);C.JSC$11484_form_=F;F=C.JSC$11484_form_;G=_.Yl(G.toString());G!==void 0&&(F.action=G);Cdr(C)};
_.n.getResponseCode=function(){return null};
_.n.getResponseText=function(){return this.JSC$12216_request_&&this.JSC$12216_request_.getResponseText()||null};
_.n.JSC$29736_getErrorDescription=function(){return this.JSC$12216_errorDescription_};
_.n.cancel=function(){this.JSC$12216_request_&&this.JSC$12216_request_.abort();this.state_="Cancelled";this.dispatchEvent(new lu("o"))};
_.n.pause=function(){};
_.n.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new lu("l"))};
_.n.onTransferError_=function(){this.JSC$12216_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new lu("n"))};var ZY=function(){_.SL.call(this)};
_.O(ZY,_.SL);ZY.prototype.createXhr=function(){var C=_.SL.prototype.createXhr.call(this);C.upload&&(C.upload.onprogress=(0,_.ck)(this.onProgress_,this));return C};
ZY.prototype.onProgress_=function(C){this.dispatchEvent(C)};var TcO=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},rcS=function(C,F){var G=C.attempt_+1;
if(C.maxAttempts_>0&&G>C.maxAttempts_)return!1;G==0?F():C.delayCallId_=X3(function(){C.delayCallId_=null;F()},o0O(C),C);
C.attempt_=G;return!0};
TcO.prototype.reset=function(){this.delayCallId_&&_.VT.clearTimeout(this.delayCallId_);this.attempt_=-1};
var o0O=function(C){var F=250*Math.pow(2,C.attempt_);C.maxDelayMs_>=0&&(F=Math.min(F,C.maxDelayMs_));return F};var w3f=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var NS=function(){_.lT.call(this);this.JSC$12226_request_=this.state_=null;this.JSC$12226_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12226_bytesTransferred_=0;this.retryIterator_=new TcO;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12226_errorDescription_=null;this.JSC$12226_eventHandler_=new _.ln(this);_.Nd(this,this.JSC$12226_eventHandler_);this.JSC$12226_url_=this.blob_=null;this.JSC$12226_method_=void 0;this.chunkSize_=this.JSC$12226_metadata_=
this.JSC$12226_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12226_responseText_=this.JSC$12226_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.RE(NS,Rmr);_.n=NS.prototype;_.n.run=function(){OR(this)};
_.n.getResponseCode=function(){return this.JSC$12226_responseCode_};
_.n.getResponseText=function(){return this.JSC$12226_responseText_};
_.n.JSC$29736_getErrorDescription=function(){return this.JSC$12226_errorDescription_};
_.n.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12226_eventHandler_.removeAll();this.JSC$12226_request_&&this.JSC$12226_request_.abort();this.retryIterator_.reset();var C=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(C==="Upload"||C==="Query")C=new ZY,C.JSC$9795_withCredentials_=this.JSC$12226_withCredentials_,C.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12226_bytesTransferred_=
0;this.dispatchEvent(new lu("o"))}};
_.n.pause=function(){this.pauseRequested_=!0};
var OR=function(C){var F=C.state_;C.pauseRequested_?(C.pauseRequested_=!1,C.stateAfterUnpausing_=F,C.state_="Paused"):rcS(C.retryIterator_,function(){switch(C.state_){case "Start":C.JSC$12226_request_=new ZY;var G=_.xf.clone(C.JSC$12226_headers_);C.blob_.size!=null&&(G["Content-Length"]=C.blob_.size);G=M$o(G);G["X-Goog-Upload-Protocol"]="resumable";G["X-Goog-Upload-Command"]="start";C.JSC$12226_eventHandler_.removeAll();C.JSC$12226_eventHandler_.listen(C.JSC$12226_request_,"complete",C.onStartComplete_);
C.JSC$12226_request_.JSC$9795_withCredentials_=C.JSC$12226_withCredentials_;C.JSC$12226_request_.send(C.JSC$12226_url_,C.JSC$12226_method_,C.JSC$12226_metadata_,G);C.lastCommandResponseCode_=null;C.dispatchEvent(new yl("q"));break;case "Upload":G=C.transferHandle_.uploadUrl_;var V=C.blob_.size;if(S5S()){var J=C.chunkSize_;var b=C.offset_+J>=V;V=MT8(C.blob_,C.offset_,b?V:C.offset_+J)}else C.offset_=0,V=C.blob_,b=!0;C.JSC$12226_request_=new ZY;C.JSC$12226_request_.JSC$9795_withCredentials_=C.JSC$12226_withCredentials_;
C.JSC$12226_eventHandler_.removeAll();C.JSC$12226_eventHandler_.listen(C.JSC$12226_request_,"progress",C.onUploadProgress_);J=(0,_.ck)(C.JSC$12228_onUploadComplete_,C,C.offset_+V.size,b);C.JSC$12226_eventHandler_.listen(C.JSC$12226_request_,"complete",J);C.lastCommandResponseCode_=null;C.dispatchEvent(new yl("q"));b=Object.assign({},C.JSC$12226_headers_||{},{"X-Goog-Upload-Command":"upload"+(b?", finalize":""),"X-Goog-Upload-Offset":C.offset_});C.JSC$12226_request_.send(G,"POST",V,b);break;case "Query":C.JSC$12226_request_=
new ZY;C.JSC$12226_eventHandler_.removeAll();C.JSC$12226_eventHandler_.listen(C.JSC$12226_request_,"complete",C.onQueryComplete_);G=Object.assign({},C.JSC$12226_headers_||{},{"X-Goog-Upload-Command":"query"});C.JSC$12226_request_.send(C.transferHandle_.uploadUrl_,"POST","",G);C.lastCommandResponseCode_=null;C.dispatchEvent(new yl("q"));break;default:throw Error("mf");}})||X9(C,"Transfer encountered too many consecutive failures.")},X9=function(C,F){C.state_="Error";
C.JSC$12226_errorDescription_=F;C.dispatchEvent(new lu("n"))};
NS.prototype.onStartComplete_=function(C){var F=C.target;this.lastCommandResponseCode_=F.getStatus();this.dispatchEvent(new yl("r"));if(KlO(F))DY2(this,F);else if(peG(F)){C=ib(C.target.getAllResponseHeaders());for(var G in C)_.Js(G.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new lu("m"));G=tr(C,"X-Goog-Upload-URL");C=(C=tr(C,"X-Goog-Upload-Chunk-Granularity"))?parseInt(C,10):1;G===void 0||isNaN(C)||C<=0?X9(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
C)*C,this.transferHandle_=new g0E(G),this.dispatchEvent(new lu("p")),this.state_="Upload",this.retryIterator_.reset(),OR(this))}else OR(this)};
NS.prototype.onUploadProgress_=function(C){this.JSC$12226_bytesTransferred_=this.offset_+C.loaded;this.dispatchEvent(new lu("k"))};
NS.prototype.JSC$12228_onUploadComplete_=function(C,F,G){var V=this,J,b;return _.I(function(z){switch(z.nextAddress){case 1:J=G.target;V.lastCommandResponseCode_=J.getStatus();V.dispatchEvent(new yl("r"));if(mYm(J)||J.getStatus()==404)return V.JSC$12226_bytesTransferred_=C,DY2(V,J),z.return();if(peG(J)){z.jumpTo(2);break}if(!(b=V.detectCorruptedBlobEnabled_)){z.jumpTo(3);break}return z.yield(CeG(V),4);case 4:b=z.yieldResult;case 3:if(b)return X9(V,"Blob has been modified or corrupted."),z.return();
V.requireUploadRequestModification_=J.getStatus()==400;V.state_="Query";OR(V);return z.return();case 2:if(F)return X9(V,"Got a non-final success response after issuing a finalize command."),z.return();V.JSC$12226_bytesTransferred_=C;V.offset_=C;V.retryIterator_.reset();OR(V);return z.return()}})};
NS.prototype.onQueryComplete_=function(C){var F=C.target;this.lastCommandResponseCode_=F.getStatus();this.dispatchEvent(new yl("r"));KlO(F)?(F.getStatus()===200&&(this.JSC$12226_bytesTransferred_=this.blob_.size),DY2(this,F)):peG(F)?(C=ib(C.target.getAllResponseHeaders()),C=parseInt(tr(C,"X-Goog-Upload-Size-Received"),10),isNaN(C)?X9(this,"Server did not respond with current offset."):C<this.offset_?X9(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
C+"."):this.requireUploadRequestModification_&&this.offset_===C?X9(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<C&&this.retryIterator_.reset(),this.offset_=this.JSC$12226_bytesTransferred_=C,this.state_="Upload",OR(this))):OR(this)};
var DY2=function(C,F){C.JSC$12226_responseCode_=F.getStatus();var G=ib(F.getAllResponseHeaders());Sz5(G);C.JSC$12226_responseText_=F.getResponseText();C.state_="Response received";C.dispatchEvent(new lu("l"))},peG=function(C){var F=C.getStatus();
C=ib(C.getAllResponseHeaders());C=tr(C,"X-Goog-Upload-Status");return F===200&&C==="active"},mYm=function(C){C=ib(C.getAllResponseHeaders());
return tr(C,"X-Goog-Upload-Status")==="final"},KlO=function(C){if(mYm(C))return!0;
C=C.getStatus();return C>=400&&C<500},CeG=function(C){var F;
return _.I(function(G){if(G.nextAddress==1){if(!C.blob_||C.originalBlobSize_<=0)return G.return(!1);if(C.blob_.size!==C.originalBlobSize_)return G.return(!0);_.yy(G,2);if(F=MT8(C.blob_,0,1)){var V=G.yield,J=new P3,b=zIo(J);J.reader_.readAsBinaryString(F);G=V.call(G,b,4)}else G=G.return(!0);return G}if(G.nextAddress!=2)return G.return(C.blob_.size!==C.originalBlobSize_);_.wa(G);return G.return(!0)})};var jsu=function(C,F,G,V,J,b){_.lT.call(this);this.payload_=V;this.JSC$12229_url_=C;this.JSC$12229_method_=F;this.JSC$12229_headers_=G;this.JSC$12229_metadata_=J;this.encoding_=b||"binary";C=new _.Mi;this.boundary_="uploader-"+pf()+"-"+C.JSC$11333_toIsoString();this.JSC$12229_responseText_=this.JSC$12229_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12229_errorDescription_=null;this.JSC$12229_eventHandler_=new _.ln(this);_.Nd(this,this.JSC$12229_eventHandler_)};
_.O(jsu,Rmr);_.n=jsu.prototype;
_.n.run=function(){var C=_.xf.clone(this.JSC$12229_headers_);this.payload_.length!=null&&(C["Content-Length"]=this.payload_.length);C=M$o(C);C["X-Goog-Upload-Protocol"]="multipart";C["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new ZY;this.JSC$12229_eventHandler_.removeAll();this.JSC$12229_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12229_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12229_url_,this.JSC$12229_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12229_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",C)};
_.n.getResponseCode=function(){return this.JSC$12229_responseCode_};
_.n.getResponseText=function(){return this.JSC$12229_responseText_};
_.n.JSC$29736_getErrorDescription=function(){return this.JSC$12229_errorDescription_};
_.n.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12229_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new lu("o")))};
_.n.pause=function(){};
_.n.onTransferProgress_=function(){this.dispatchEvent(new lu("k"))};
_.n.onTransferComplete_=function(C){var F=C.target.getStatus();F===void 0||F===-1?(this.JSC$12229_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new lu("n"))):(this.JSC$12229_responseCode_=F,C=C.target,F=ib(C.getAllResponseHeaders()),Sz5(F),this.JSC$12229_responseText_=C.getResponseText(),this.state_="Complete",this.dispatchEvent(new lu("l")))};_.FHm=function(C,F,G,V){V=V===void 0?!1:V;if(G instanceof sqG)return new YvP(C,"POST",F,G.getInputElement(),"");if(typeof G==="string"||G instanceof String)return new jsu(C,"POST",F,G,"");var J=new NS(void 0);J.JSC$12226_url_=C;J.JSC$12226_method_="POST";J.JSC$12226_headers_=F;J.blob_=G;J.originalBlobSize_=G.size;J.JSC$12226_metadata_="";V&&(J.JSC$12226_withCredentials_=V);J.state_="Start";return J};var wf=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(wf,_.b0);_.n=wf.prototype;_.n.getEnableSsEngine=function(){return _.Ej(this,2)};
_.n.getEnableAwr=function(){return _.Ej(this,3)};
_.n.getAlohaAutoGaRollout=function(){return _.Ej(this,5)};
_.n.getEnableConfigurator=function(){return _.Ej(this,6)};
_.n.getEnableMweb=function(){return _.Ej(this,7)};
var VhG=function(){var C=G$r();return _.k6(C,7,!0)};
wf.prototype.getEnableCtlConsentCheckbox=function(){return _.Ej(this,8)};
wf.prototype.getEnableIframe=function(){return _.Ej(this,9)};
var G$r=function(){var C=new wf;C=_.k6(C,5,!0);C=_.k6(C,2,!0);C=_.k6(C,4,!1);C=_.k6(C,8,!0);return _.k6(C,9,!0)};
wf.prototype.getEnableScreenshotNudge=function(){return _.Ej(this,10)};
var ix2=function(){var C=VhG();return _.k6(C,10,!0)};
wf.prototype.getEnableWebStartupConfigEndpoint=function(){return _.Ej(this,11)};
wf.prototype.getEnableJunkNudge=function(){return _.Ej(this,12)};
var rLB=function(){var C=ix2();return _.k6(C,12,!0)};
_.n=wf.prototype;_.n.getEnableConfiguratorLocale=function(){return _.Ej(this,13)};
_.n.getEnableTinyNoPointer=function(){return _.Ej(this,14)};
_.n.getEnableSupportSessionLogging=function(){return _.Ej(this,15)};
_.n.getEnableFileUploadForScreenshot=function(){return _.Ej(this,16)};
_.n.getEnableDirectDeflectionForSingleCategory=function(){return _.Ej(this,17)};
_.n.getEnableImageSanitization=function(){return _.Ej(this,18)};
_.n.getEnableAlohaBinarySplit=function(){return _.Ej(this,19)};
_.n.getEnableDbFeedbackIntents=function(){return _.Ej(this,20)};
_.n.getEnableMarkMandatoryFieldsWithRequired=function(){return _.Ej(this,21)};
_.n.getEnableFeedbackCategoryCustomUi=function(){return _.Ej(this,22)};
_.n.getEnableRealtimeCtl=function(){return _.Ej(this,23)};var orI=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(orI,_.b0);var LFf=[/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 vrW="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 fEW=_.h6(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),hSA=_.h6(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var ALw,xi5,eST,s49;var JBP,$qG;
JBP=function(C,F,G){C.timeOfStartCall=(new Date).getTime();var V=G||_.VT,J=V.document,b=C.nonce||_.j9(V.document);b&&!C.nonce&&(C.nonce=b);if(C.flow=="help"){var z=_.mN("document.location.href",V);!C.helpCenterContext&&z&&(C.helpCenterContext=z.substring(0,1200));z=!0;if(F&&JSON&&JSON.stringify){var Q=JSON.stringify(F);(z=Q.length<=1200)&&(C.psdJson=Q)}z||(F={invalidPsd:!0})}F=[C,F,G];V.GOOGLE_FEEDBACK_START_ARGUMENTS=F;G=C.feedbackServerUri||"//www.google.com/tools/feedback";if(z=V.GOOGLE_FEEDBACK_START)z.apply(V,F);
else{V=G+"/load.js?";for(var E in C)F=C[E],F==null||_.TE(F)||(V+=encodeURIComponent(E)+"="+encodeURIComponent(F)+"&");C=vj(J).createElement("SCRIPT");b&&C.setAttribute("nonce",b);_.JW(C,_.LT(V));J.body.appendChild(C)}};
$qG=function(C,F,G,V){var J,b;_.I(function(z){J=G||_.VT;var Q=C.serverEnvironment==="DEV",E=G||_.VT;E=C.nonce||_.j9(E.document);Q={integrationKeys:{productId:C.productId,feedbackBucket:C.bucket,triggerId:C.triggerId},callbacks:{onClose:C.callback,onLoad:C.onLoadCallback},formContent:{locale:C.locale,disableScreenshot:C.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:C.abuseLink,additionalDataConsent:C.additionalDataConsent},initializationData:{isLocalServer:Q,nonce:E,useNightlyRelease:Q,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:C.feedbackServerUri,colorScheme:C.colorScheme},extraData:{productVersion:C.productVersion,authUser:C.authuser,configuratorId:C.configuratorId,customZIndex:C.customZIndex,tinyNoPointer:C.tinyNoPointer,
allowNonLoggedInFeedback:C.allowNonLoggedInFeedback,enableAnonymousFeedback:C.enableAnonymousFeedback}};F&&(E=new Map(Object.entries(F)),Q.extraData.productSpecificData=E);b=Q;return z.yield(RSw(b,V,J),0)})};
_.bx$=function(C,F,G){try{if(C.flow==="help"){var V=C.helpCenterPath.replace(/^\//,"");_.Cv(G||window,"https://support.google.com/"+V)}else C.flow==="submit"?JBP(C,F,G):KFI(C.productId,C.feedbackServerUri).then(function(J){J=_.aa(J,wf,1);var b=!AsG||(J==null?void 0:J.getEnableMweb()),z=!C.tinyNoPointer||(J==null?void 0:J.getEnableTinyNoPointer());!J||J.getAlohaAutoGaRollout()&&b&&z?$qG(C,F,G,J):JBP(C,F,G)},function(J){J&&J.name!=="DuplicateFormError"&&JBP(C,F,G)})}catch(J){$qG(C,F,G,null)}};
_.zn("userfeedback.api.startFeedback",_.bx$);var DiZ=/https?:\/\/\S+\.\S+/,p35=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],miA=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var v$S=function(C){var F=C.split(""),G=[-263237435,15,F,function(V,J,b){var z=J.length;b.forEach(function(Q,E,t){this.push(t[E]=J[(J.indexOf(Q)-J.indexOf(this[E])+E+z--)%J.length])},V.split(""))},
function(V,J){V=(V%J.length+J.length)%J.length;J.splice(-V).reverse().forEach(function(b){J.unshift(b)})},
"response",function(){for(var V=64,J=[];++V-J.length-32;){switch(V){case 58:V-=14;case 91:case 92:case 93:continue;case 123:V=47;case 94:case 95:case 96:continue;case 46:V=95}J.push(String.fromCharCode(V))}return J},
null,12,1540023973,65941107,null,F,function(V,J){for(V=(V%J.length+J.length)%J.length;V--;)J.unshift(J.pop())},
695603893,function(V){for(var J=V.length;J;)V.push(V.splice(--J,1)[0])},
"'[;'[(",function(V,J){V.push(J)},
null,function(V,J,b,z,Q){return J(b,z,Q)},
"continuation",F,function(V,J){if(V.length!=0){J=(J%V.length+V.length)%V.length;var b=V[0];V[0]=V[J];V[J]=b}},
function(){for(var V=64,J=[];++V-J.length-32;){switch(V){case 91:V=44;continue;case 123:V=65;break;case 65:V-=18;continue;case 58:V=96;continue;case 46:V=95}J.push(String.fromCharCode(V))}return J},
'"),/]];'];G[7]=G;G[11]=G;G[18]=G;try{(((0,G[15])(G[21]),G[22])(G[11],G[9]),G[22])(G[new Date("1970-01-01T04:30:12.000+04:30")/1E3],G[1]),((0,G[22])(G[11],G[23]),G[4])(G[10],G[18]),(0,G[20])(G[21],G[14])<<(0,G[17])(G[18],G[1]),(0,G[4])(G[8],G[21]),(0,G[19])((0,G[19])((0,G[17])(G[7],G[9]),G[3],G[20],(0,G[6])(),G[2]),G[3],G[5],(0,G[15])(),G[2])}catch(V){return"aTlOUOubTO4AP____8P_"+C}return F.join("")};_.npS=new _.Cx("runAttestationCommand");var u2u=new _.Cx("verifyCommand");_.$Z=new _.Cx("accessibilityContext");var zwy=new _.Cx("accessibilityData");var Qs$=new _.Cx("profileCardCommand");var MaB=new _.Cx("signInEndpoint");var wtE=new _.Cx("signOutEndpoint");var Epy;_.Ih$=new _.Cx("accountItemSectionRenderer");Epy=new _.Cx("accountItemRenderer");_.WH$=new _.Cx("saveCommandToSessionStorageAction");var thy=new _.Cx("crossAccountChannelTransferEndpoint");var HiB=new _.Cx("getAccountMenuEndpoint");_.lyi=new _.Cx("getAccountSwitcherEndpoint");var Ugi=new _.Cx("getAccountsListEndpoint");var ahS=new _.Cx("getAccountsListInnertubeEndpoint");_.k$7=new _.Cx("addToToastAction");var UqO=new _.Cx("hideEnclosingAction");_.MS=new _.Cx("replaceEnclosingAction");var Hx2=new _.Cx("buttonRefreshAction");var lh2=new _.Cx("adsControlFlowOpportunityReceivedCommand");var yBr=new _.Cx("openAdAllowlistInstructionCommand");var Zxr=new _.Cx("videoMastheadAdPrimaryVideoRenderer");var NVu=new _.Cx("displayAdRenderer");_.Ox7=new _.Cx("inFeedAdLayoutRenderer");var Xa$=new _.Cx("sequenceItemInPlayerAdLayoutRenderer");_.wa$=new _.Cx("adSlotRenderer");var Mhl=new _.Cx("adAvatarViewModel");var SkP=new _.Cx("adBadgeViewModel");var LH2=new _.Cx("adButtonViewModel");var BVG=new _.Cx("adImageViewModel");var Tls=new _.Cx("reelsAdCardButtonedViewModel");var vpr=new _.Cx("reelsPlayerOverlayLayoutViewModel");var fhu=new _.Cx("updateConversationIdCommand");var hwm=new _.Cx("showSchedulingPanelCommand");var cBo=new _.Cx("backstageCommentsRenderer");var AB7=new _.Cx("backstageImageRenderer");var ewP=new _.Cx("backstagePostRenderer");var dqP=new _.Cx("backstageZeroStateRenderer");var xqO=new _.Cx("postRenderer");var ssl=new _.Cx("sharedPostRenderer");var qk2=new _.Cx("createBackstagePostEndpoint");var Pey=new _.Cx("getPostVideoPreviewEndpoint");var gpm=new _.Cx("updateBackstagePostEndpoint");var Rwo=new _.Cx("filterChipTransformCommand");var Yk$=new _.Cx("insertRichSectionCommand");var JHI=new _.Cx("talkToRecsDeselectCommand");var nti=new _.Cx("talkToRecsNextCommand");var ihw=new _.Cx("talkToRecsSelectCommand");var TVE=new _.Cx("talkToRecsUpdateTextCommand");_.iE=new _.Cx("browseEndpoint");_.opG=new _.Cx("confirmDialogEndpoint");var rB2=new _.Cx("expandOnHoverCardRenderer");var KH$=new _.Cx("lumiereShelfDetailsRenderer");var Dql=new _.Cx("revealBusinessEmailCommand");var pay=new _.Cx("validateChannelHandleCommand");var mqS=new _.Cx("channelCreationFormEndpoint");var CN8=new _.Cx("aboutChannelViewModel");var j4u=new _.Cx("channelThumbnailWithLinkRenderer");var FFo=new _.Cx("channelCreationServiceEndpoint");var GT$=new _.Cx("updateChannelPageSettingsEndpoint");var S6=function(C){this.delegate=C},LH=function(){S6.apply(this,arguments)};
_.O(LH,S6);_.I6.Object.defineProperties(LH.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(C){this.delegate.entityMetadata=C}}});var V$r=function(){LH.apply(this,arguments)};
_.O(V$r,LH);V$r.prototype.getAssociations=function(){return[]};
V$r.prototype.getTypeName=function(){return"channelHandle"};var Zzf=new _.Cx("webThumbnailDetailsExtensionData");var KtZ=new _.Cx("commandContext");var ia2=new _.Cx("addVideoLinkAction");var JLm=new _.Cx("banAuthorAction");var $i8=new _.Cx("createCommentAction");var ba$=new _.Cx("createCommentReplyAction");var nrl=new _.Cx("createPollAction");var utS=new _.Cx("hideIdentityChipAction");var zSS=new _.Cx("openUpdateCommentDialogAction");var Q42=new _.Cx("pinCommentAction");var IEy=new _.Cx("removeCommentAction");var ErO=new _.Cx("unpinCommentAction");var Bf=new _.Cx("updateBackstagePollAction");var WF$=new _.Cx("updateCommentVoteAction");var t$7=new _.Cx("commentThreadRenderer");var aEm=function(){LH.apply(this,arguments)};
_.O(aEm,LH);aEm.prototype.getAssociations=function(){return[]};
aEm.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var kT7=function(){LH.apply(this,arguments)};
_.O(kT7,LH);kT7.prototype.getAssociations=function(){return[]};
kT7.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.Uim=new _.Cx("commentDialogRenderer");var Ha8=new _.Cx("reloadCommentsCommand");var lE7=new _.Cx("updateCommentsSettingsEndpoint");var yLu=new _.Cx("commentViewModel");var Za2=new _.Cx("triStateButtonViewModel");var N3l=new _.Cx("voiceReplyContainerViewModel");_.Cl=new _.Cx("commandExecutorCommand");var H6=new _.Cx("emoji");var OaP=new _.Cx("updateCreatorChannelInnertubeCommand");_.X3$=new _.Cx("appendContinuationItemsAction");_.w3o=new _.Cx("changeEngagementPanelVisibilityAction");_.O4=new _.Cx("continuationCommand");var M$u=new _.Cx("hideReportedCommentAction");var Szy=new _.Cx("listMutationCommand");_.vf=new _.Cx("openPopupAction");var LFo=new _.Cx("persistSubscriptionsDisplayPreferencesCommand");var diG;_.B38=new _.Cx("playlistRemoveVideosAction");_.vr$=new _.Cx("updatePlaylistAction");_.fE$=new _.Cx("addToPlaylistCommand");_.hSu=new _.Cx("endPlaylistCommand");_.cLo=new _.Cx("recoverPlaylistCommand");_.ALl=new _.Cx("refreshPlaylistCommand");_.eSr=new _.Cx("refreshFormCommand");diG=new _.Cx("openOnePickAddVideoModalCommand");_.w5W=new _.Cx("reloadContinuationItemsCommand");_.xiy=new _.Cx("scrollToEngagementPanelCommand");var s4P=new _.Cx("selectCountryCommand");var qzE=new _.Cx("showReloadUiCommand");var PNG=new _.Cx("undoFeedbackAction");var grl=new _.Cx("updateButtonAction");var RSl=new _.Cx("updateSubscribeButtonAction");var Yzo=new _.Cx("updateToggleAction");var T3E=new _.Cx("webNativeShareCommand");_.GU=new _.Cx("webCommandMetadata");_.fH=new _.Cx("webHandleServiceEndpointExtension");var U9W=new _.Cx("webNavigationEndpointData");var or2=new _.Cx("backgroundAudioPlaybackCommand");var rLm=new _.Cx("copyLinkCommand");var KF2=new _.Cx("playlistVotingRefreshPopupCommand");var Di8=new _.Cx("selectChipCommand");var p3y=new _.Cx("setCookieCommand");var miu=new _.Cx("setLocalStorageCommand");var CJO=new _.Cx("setPrefStorageEntryCommand");var VH8;_.jYu=new _.Cx("settingsUpdateCheckboxCommand");_.FwG=new _.Cx("settingsUpdateTextCommand");_.GD7=new _.Cx("settingsUpdateOptionsCommand");VH8=new _.Cx("settingsUpdateSwitchCommand");_.iqP=new _.Cx("settingsUpdateConnectedAppRendererCommand");var JY7=new _.Cx("showCreatorChatbotEngagementPanelCommand");var $7o=new _.Cx("updateTextInputFormFieldRendererCommand");var bqG=new _.Cx("updateToggleButtonStateCommand");var nH8=new _.Cx("updateUrlParamCommand");var us$=new _.Cx("webSubmitFormCommand");var zaO=new _.Cx("channelSwitcherPageRenderer"),QYy=new _.Cx("updateChannelSwitcherPageAction");_.eZ=new _.Cx("continuationItemRenderer");_.ha=new _.Cx("richItemRenderer");var Iw8=new _.Cx("richSectionRenderer");_.EHE=new _.Cx("richShelfRenderer");_.Wwu=new _.Cx("metadataBadgeRenderer");_.tHE=new _.Cx("multiPageMenuNotificationSectionRenderer");_.aw$=new _.Cx("playlistLoopButtonStateRenderer");var kDo=new _.Cx("claimLegacyYoutubeChannelEndpoint");var U7$=new _.Cx("getNotificationMenuEndpoint");var HqE=new _.Cx("getSearchInVideoCommand");_.lwu=new _.Cx("getTranscriptEndpoint");_.FI=new _.Cx("signalServiceEndpoint");var yYu=new _.Cx("verifyAgeEndpoint");var coo=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(coo,_.b0);coo.prototype.getPath=function(){return _.a3(this,1)};
coo.prototype.getValue=function(){return _.a3(this,2)};var Zq$=[0,_.xL,-1];var Ngm=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Ngm,_.b0);var hri=_.kl(Ngm,[0,_.gn,Zq$]);var Oq8=new _.Cx("dismissalEndpoint");var XPO=new _.Cx("elementsCommand");_.yp=new _.Cx("innertubeCommand");var wPu=new _.Cx("multipleInlinePlaybackCommand");var GP5=new _.Cx("loggingDirectives");var MHu=new _.Cx("acknowledgeChannelTouStrikeCommand");var SXm=function(){LH.apply(this,arguments)};
_.O(SXm,LH);SXm.prototype.getAssociations=function(){return[]};
SXm.prototype.getTypeName=function(){return"booleanEntity"};var Lwu=function(){LH.apply(this,arguments)};
_.O(Lwu,LH);Lwu.prototype.getAssociations=function(){return[]};
Lwu.prototype.getTypeName=function(){return"stringEntity"};var AM=new _.Cx("entityBatchUpdate");_.bhA=new _.Cx("entityUpdateCommand");var Bg2=function(){LH.apply(this,arguments)};
_.O(Bg2,LH);Bg2.prototype.getAssociations=function(){var C=[];this.delegate.alternateChannel&&C.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&C.push.apply(C,_.da(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&C.push(this.delegate.oneofChannelEntity);return[].concat(_.da(new Set(C)))};
Bg2.prototype.getTypeName=function(){return"fakeChannel"};var vH7=function(){LH.apply(this,arguments)};
_.O(vH7,LH);vH7.prototype.getAssociations=function(){var C=[];this.delegate.entryCollection&&C.push(this.delegate.entryCollection);return[].concat(_.da(new Set(C)))};
vH7.prototype.getTypeName=function(){return"fakePlaylist"};
var fwr=function(){LH.apply(this,arguments)};
_.O(fwr,LH);fwr.prototype.getAssociations=function(){var C=[];this.delegate.parentPlaylist&&C.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var F=_.u(this.delegate.entries),G=F.next();!G.done;G=F.next())C.push.apply(C,_.da((new ham(G.value)).getAssociations()));return[].concat(_.da(new Set(C)))};
fwr.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var ham=function(){S6.apply(this,arguments)};
_.O(ham,S6);ham.prototype.getAssociations=function(){var C=[];this.delegate.video&&C.push(this.delegate.video);return[].concat(_.da(new Set(C)))};var cYo=function(){LH.apply(this,arguments)};
_.O(cYo,LH);cYo.prototype.getAssociations=function(){var C=[];this.delegate.descriptionEntity&&C.push(this.delegate.descriptionEntity);this.delegate.creators&&C.push.apply(C,_.da(this.delegate.creators));this.delegate.theBiggestFan&&C.push(this.delegate.theBiggestFan);return[].concat(_.da(new Set(C)))};
cYo.prototype.getTypeName=function(){return"fakeVideo"};
var AY8=function(){LH.apply(this,arguments)};
_.O(AY8,LH);AY8.prototype.getAssociations=function(){return[]};
AY8.prototype.getTypeName=function(){return"fakeVideoDescription"};var eaG=new _.Cx("fantasyRosterViewModel");var d78=new _.Cx("addFollowUpSurveyCommand");var x7P=new _.Cx("getSurveyCommand");var sYG=new _.Cx("ratingSurveyOptionRenderer");_.Ud=new _.Cx("feedbackEndpoint");var qX$=new _.Cx("reportHistoryTableCellRenderer"),PJy=new _.Cx("reportHistoryTableTextCellRenderer"),gHP=new _.Cx("reportHistoryTableReasonCellRenderer");_.Ra$=new _.Cx("flagEndpoint");_.YXy=new _.Cx("flowNextStepCommand");_.TgO=new _.Cx("flowPrevStepCommand");var oHu=new _.Cx("getFlowCommand");var rY2=new _.Cx("submitFormWithValidationFlowCommand");_.Kwm=new _.Cx("updateFlowCommand");var D7o=function(){LH.apply(this,arguments)};
_.O(D7o,LH);D7o.prototype.getAssociations=function(){return[]};
D7o.prototype.getTypeName=function(){return"flowStateEntity"};var pPr=new _.Cx("flowFormState");_.cf=new _.Cx("flowStepRenderer");var m7l=new _.Cx("gameCardRenderer");var Cum=new _.Cx("accountLinkingStateChangedCommand");var jd8=function(){LH.apply(this,arguments)};
_.O(jd8,LH);jd8.prototype.getAssociations=function(){return[]};
jd8.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var FVG=new _.Cx("changeMiniAppPlayStateCommand");var GLP=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(GLP,_.b0);var Aa=[1,2,3];var V62=[0,Aa,tUE,_.Pc,bt$];var iHO=_.kl(GLP,V62),JaO=_.Hh(V62);var $Sl=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O($Sl,_.b0);var bHO=[0,_.f2,_.xL];var nDr=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(nDr,_.b0);var u9G=[0,_.xL,_.f2,-1];var e6=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(e6,_.b0);var zb2=_.Hh([0,1,bHO,_.o3,u9G]);var Qd$=new _.Cx("miniAppScoreChallengeViewModel");var IYO=new _.Cx("miniGameCardViewModel");var EDr=new _.Cx("teaserCardViewModel");var WV2=function(){LH.apply(this,arguments)};
_.O(WV2,LH);WV2.prototype.getAssociations=function(){return[]};
WV2.prototype.getTypeName=function(){return"logoEntity"};var t6l=new _.Cx("feedbackItemRenderer");var aY8=function(){LH.apply(this,arguments)};
_.O(aY8,LH);aY8.prototype.getAssociations=function(){return[]};
aY8.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.kLl=new _.Cx("playerInterstitialRenderer");var USE=new _.Cx("getKidsBlocklistPickerCommand");_.HH7=new _.Cx("updateKidsBlacklistEndpoint");_.Nx=new _.Cx("likeEndpoint");var lYE,yar,ZH7;lYE=new _.Cx("addChatItemAction");yar=new _.Cx("removeChatItemAction");ZH7=new _.Cx("markChatItemAsDeletedAction");_.NfO=new _.Cx("setLiveChatCollapsedStateAction");var OHm=function(){LH.apply(this,arguments)};
_.O(OHm,LH);OHm.prototype.getAssociations=function(){return[]};
OHm.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var Xf$=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Xf$,_.b0);Xf$.prototype.getPayloadCase=function(){return _.ug(this,wfS)};
var wfS=[3,4];var M6G=[0,_.gn,[0,[1,2],_.Pc,_.R3,[0,_.q5,1,_.q5]]];var SRP=[0,_.xL,-1];var LVE=[0,[1],_.Pc];var df=[0,[1,2],_.Pc,_.R3,[0,_.o3]];var xD=[0,_.xL];var BfS=[0,[0,_.eX,_.Ai,[0,_.q5,_.rn,_.q5]],1,[0,_.eX]];var vDu=[0,hi];var fYE=[0,hi];var hbr=[0,fYE,vDu];var caP=[0,_.gn,[0,[1,2],_.Pc,-1],_.eX];var AaS=[0,[2],1,_.R3,[0,_.q5,-1,caP]];var eb2=[0,[1],_.R3,[0,_.q5,_.xL,_.rn,1,caP]];var dSP=[0,_.Ai,-1,$38,_.o3];var xSG=[0,[0,vc,-3],-4];var sR=[0,_.eX,-3,_.xL,_.eX,_.Dn,_.eX,M6G,_.eX,-2];var qS=[0,_.gn,[0,[1,2],_.Pc,-1],_.eX,_.xL];var sdO=[0,[3],df,[0,[2,3,4],lrS,_.Pc,-2],_.R3,[0,_.xL],_.f2];var qR2=[0,[3,5],_.xL,_.cc,_.R3,[0,1,_.f2,_.o3],_.o3,_.R3,[0,_.o3,_.f2]];var Pul=[0,2,_.cc,_.xL,-1];var gD8=[0,E_G];var Rb8=[0,[3,4],2,uMu,_.Pc,_.xL];var YRm=[0,_.o3,-2,1,_.xL];var Tfl=[0,_.xL,-1,_.o3];var oD7=[0,xD,function(){return Pf},
xD,_.xL],raG=[0,_.o3,xD,df,function(){return Pf},
_.xL],Pf=[-160,{},[101,103,104,105,106,107,108,109,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,144,146,147,148,149,150,151,152,153,154,155,156,157,158,159],xD,_.cc,[0,_.eX,1,_.eX,1,_.eX,1,_.o3,-1,xD],[0,1,_.eX,2,_.eX,_.o3,_.eX],1,_.cc,-1,_.xL,_.cc,2,vc,[0,vc,_.cc],_.xL,1,BfS,1,df,_.Dn,1,[0,[0,_.gn,[0,_.xL,_.eX,_.o3]]],[0,_.eX,[0,_.f2,[0,_.rn]],_.f2,1,[0,QLO,-1]],_.xL,[0,1,_.xL],76,_.R3,[0,df,qS,BfS,1,[0,_.gn,qS]],1,_.R3,[0,df,_.xL,_.eX],
_.R3,[0,df,LVE],_.R3,[0,df,LVE,_.cc],_.R3,[0,df,LVE],_.R3,[0,df,_.gn,xD,df,ar8],_.R3,[0,df,xD,_.xL],_.R3,[0,df,_.eX,sR,-1,_.eX],4,_.R3,[0,df,_.eX,_.cc,sR,_.eX],_.R3,[0,[4,9],df,_.o3,_.cc,_.Pc,qS,1,BfS,_.xL,_.Pc,YRm],_.R3,[0,df,xD,df,_.o3,_.xL],_.R3,[0,_.eX,df,sR,_.eX,_.xL],_.R3,[0,df,xD,df,_.o3,_.xL],1,_.R3,[0,df,_.o3,_.xL,sR],_.R3,[0,df,_.o3,[0,_.xL,_.cc],_.xL,_.cc,_.xL,_.TG,-2,3,Tfl,_.gn,Tfl,Tfl,YRm],_.R3,[0,df,_.o3,eb2,_.gn,[0,fYE,AaS],xD,_.gn,hbr,_.xL,1,_.o3,dSP,xSG,Jll,-1],_.R3,[0,df,[0,_.rn,
-1,eb2,_.gn,[0,fYE,AaS,vDu],[0,_.pk],1,_.q5],xD,_.xL],_.R3,[0,df,qS,_.xL,[0,_.Ai]],_.R3,function(){return raG},
_.R3,[0,df,_.cc,_.xL,-1,_.eX],_.R3,[0,[6,7],df,_.gn,Pul,_.o3,qS,1,_.R3,Rb8,_.R3,gD8],_.R3,[0,_.gn,Pul,_.o3,_.eX],_.R3,[0,_.xL,tME,-1],_.R3,[0,xD,_.gn,hbr,_.xL],_.R3,[0,df,xD,_.xL],_.R3,[0,_.TG,_.xL],_.R3,[0,SRP],_.R3,[0,SRP],_.R3,[0,qS],_.R3,[0,xD,qS],_.R3,function(){return oD7},
_.R3,[0,xD,_.xL],_.R3,[0,xD,_.xL],1,_.R3,[0,_.eX,df,sR,_.eX,sR],_.R3,[0,_.pk],1,_.R3,[0],1,_.R3,[0,xD,_.o3,df,_.o3],_.R3,[0,[1,2],_.R3,Rb8,_.R3,gD8,_.cc],_.R3,[0,_.pk,qS,qR2,_.xL,_.cc],_.R3,[0,qR2,_.xL,_.cc],_.R3,[0,dSP,qS,_.eX,xSG],_.R3,sdO,_.R3,[0],_.R3,[0,_.xL,-1,_.f2],_.R3,[0,xD,_.xL],_.R3,[0,sdO,_.f2,_.xL],_.R3,[0,df,sR,_.eX],_.R3,[0,df,sR,_.eX],_.R3,[0,dSP,xSG,qS,_.Dn,_.eX,Jll,-1],_.R3,[0,df,sR,_.eX]];var KVr=[0,_.gn,Pf];var DSo=_.kl(Xf$,[0,wfS,1,_.f2,_.R3,[0,[18,22,24],KVr,3,[0,KVr],1,_.f2,[0,_.gn,[0,_.cc,vc],_.cc],1,Pf,-1,[0,_.dn,-2,_.Dn,_.dn,-1,_.Dn,_.dn,M6G,_.dn,-2],VU$,[!0,_.xL,[0,LVE,2,_.xL,_.cc,_.eX,2,_.xL,_.TG]],[0,[1,2,3],[5,6],_.R3,[0,_.q5],_.R3,[0,_.q5,-1],_.R3,[0,_.q5],1,_.R3,SRP,_.R3,[0,_.xL]],[0,Pf,-1],_.pk,Pf,_.R3,Pf,[0,KVr],_.f2,Pf,_.R3,Pf,_.xL,_.R3,Pf],_.R3,htO,_.f2]);var pfl=new _.Cx("liveChatEndpoint");var mSo=new _.Cx("liveChatItemContextMenuEndpoint");var CWO=new _.Cx("liveChatReplayEndpoint");_.jj8=new _.Cx("emojiPickerRenderer");var Fo8=new _.Cx("liveChatAuthorBadgeViewModel");var GzE=new _.Cx("deleteLiveChatMessageCommand");var VlG=new _.Cx("liveChatActionEndpoint");var iQS=new _.Cx("createLiveChatPollEndpoint");var JKr=new _.Cx("manageLiveChatUserEndpoint");var $JO=new _.Cx("moderateLiveChatEndpoint");_.bQo=new _.Cx("sendLiveChatMessageEndpoint");var nXl=new _.Cx("sendLiveChatVoteEndpoint");var uu7=new _.Cx("clearLocationCommand");var z$$=new _.Cx("resolveLocationCommand");var Qju=new _.Cx("interactionLoggingCommandMetadata");var Ipl=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Ipl,_.b0);var EXE=function(C,F){return _.UD(C,1,F)};var WoE=[0,_.eX];var tlu=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(tlu,_.b0);var ap8=function(C,F){return M1(C,1,Ipl,F)};tlu.prototype.JSC$12323_serializeBinary=YLT([0,_.gn,WoE]);var lwo={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 kzO={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"},
UJo={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 jl9={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT"};_.gRE=new _.Cx("logFlowLoggingEventCommand");_.$e=new _.Cx("loggingContext");var HQm=new _.Cx("audioTrackSelectActionCommand");var lpS=new _.Cx("captionLanguageSelectActionCommand");var yKl=new _.Cx("showAudioTrackPickerActionCommand");var ZQP=new _.Cx("showCaptionLanguageSelectActionCommand");var Nol=new _.Cx("dismissDialogEndpoint");var OQl=new _.Cx("dismissPlayerOverlayCommand");var X0P=new _.Cx("hideItemSectionVideosByIdCommand");var w07=new _.Cx("showMiniplayerCommand");var MlE=function(){LH.apply(this,arguments)};
_.O(MlE,LH);MlE.prototype.getAssociations=function(){return[]};
MlE.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var Sfr=function(){LH.apply(this,arguments)};
_.O(Sfr,LH);Sfr.prototype.getAssociations=function(){return[]};
Sfr.prototype.getTypeName=function(){return"downloadStatusEntity"};var Lo$=function(){LH.apply(this,arguments)};
_.O(Lo$,LH);Lo$.prototype.getAssociations=function(){return[]};
Lo$.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var BoP=function(){LH.apply(this,arguments)};
_.O(BoP,LH);BoP.prototype.getAssociations=function(){var C=[];this.delegate.downloadsList&&C.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&C.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&C.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&C.push(this.delegate.refresh);return[].concat(_.da(new Set(C)))};
BoP.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var vXr=function(){LH.apply(this,arguments)};
_.O(vXr,LH);vXr.prototype.getAssociations=function(){var C=[];this.delegate.refresh&&C.push(this.delegate.refresh);if(this.delegate.downloads)for(var F=_.u(this.delegate.downloads),G=F.next();!G.done;G=F.next())C.push.apply(C,_.da((new fpO(G.value)).getAssociations()));return[].concat(_.da(new Set(C)))};
vXr.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var fpO=function(){S6.apply(this,arguments)};
_.O(fpO,S6);fpO.prototype.getAssociations=function(){var C=[];this.delegate.video&&C.push(this.delegate.video);this.delegate.playlist&&C.push(this.delegate.playlist);this.delegate.videoItem&&C.push(this.delegate.videoItem);this.delegate.playlistItem&&C.push(this.delegate.playlistItem);return[].concat(_.da(new Set(C)))};var h$$=function(){LH.apply(this,arguments)};
_.O(h$$,LH);h$$.prototype.getAssociations=function(){var C=[];this.delegate.localImageEntities&&C.push.apply(C,_.da(this.delegate.localImageEntities));return[].concat(_.da(new Set(C)))};
h$$.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var cKy=function(){LH.apply(this,arguments)};
_.O(cKy,LH);cKy.prototype.getAssociations=function(){var C=[];this.delegate.playbackData&&C.push(this.delegate.playbackData);this.delegate.localImageEntities&&C.push.apply(C,_.da(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&C.push(this.delegate.videoDownloadContextEntity);return[].concat(_.da(new Set(C)))};
cKy.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var AK2=function(){LH.apply(this,arguments)};
_.O(AK2,LH);AK2.prototype.getAssociations=function(){return[]};
AK2.prototype.getTypeName=function(){return"offlineabilityEntity"};var e$8=function(){LH.apply(this,arguments)};
_.O(e$8,LH);e$8.prototype.getAssociations=function(){var C=[];this.delegate.fakeChildren&&C.push.apply(C,_.da(this.delegate.fakeChildren));return[].concat(_.da(new Set(C)))};
e$8.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var dJG=function(){LH.apply(this,arguments)};
_.O(dJG,LH);dJG.prototype.getAssociations=function(){var C=[];this.delegate.video&&C.push(this.delegate.video);this.delegate.playbackData&&C.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&C.push(this.delegate.offlineVideoPolicy);return[].concat(_.da(new Set(C)))};
dJG.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var xJ7=function(){LH.apply(this,arguments)};
_.O(xJ7,LH);xJ7.prototype.getAssociations=function(){return[]};
xJ7.prototype.getTypeName=function(){return"continuationTokenEntity"};var sj$=function(){LH.apply(this,arguments)};
_.O(sj$,LH);sj$.prototype.getAssociations=function(){var C=[];this.delegate.channelOwner&&C.push(this.delegate.channelOwner);this.delegate.videos&&C.push.apply(C,_.da(this.delegate.videos));this.delegate.collaboratorChannels&&C.push.apply(C,_.da(this.delegate.collaboratorChannels));this.delegate.downloadState&&C.push(this.delegate.downloadState);this.delegate.refresh&&C.push(this.delegate.refresh);return[].concat(_.da(new Set(C)))};
sj$.prototype.getTypeName=function(){return"mainPlaylistEntity"};var qf$=function(){LH.apply(this,arguments)};
_.O(qf$,LH);qf$.prototype.getAssociations=function(){var C=[];this.delegate.video&&C.push(this.delegate.video);this.delegate.channelContributor&&C.push(this.delegate.channelContributor);return[].concat(_.da(new Set(C)))};
qf$.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var PWu=function(){S6.apply(this,arguments)};
_.O(PWu,S6);PWu.prototype.getAssociations=function(){var C=[];this.delegate.recommendedVideoMetadata&&C.push.apply(C,_.da((new gXG(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.da(new Set(C)))};
var gXG=function(){S6.apply(this,arguments)};
_.O(gXG,S6);gXG.prototype.getAssociations=function(){var C=[];this.delegate.localImageEntities&&C.push.apply(C,_.da(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&C.push(this.delegate.videoDownloadContextEntity);return[].concat(_.da(new Set(C)))};var R$l=function(){S6.apply(this,arguments)};
_.O(R$l,S6);R$l.prototype.getAssociations=function(){var C=[];this.delegate.playbackPosition&&C.push(this.delegate.playbackPosition);return[].concat(_.da(new Set(C)))};var YfO=function(){LH.apply(this,arguments)};
_.O(YfO,LH);YfO.prototype.getAssociations=function(){var C=[];this.delegate.owner&&C.push(this.delegate.owner);this.delegate.downloadState&&C.push(this.delegate.downloadState);this.delegate.userState&&C.push.apply(C,_.da((new R$l(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&C.push.apply(C,_.da((new PWu(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.da(new Set(C)))};
YfO.prototype.getTypeName=function(){return"mainVideoEntity"};var ToO=function(){LH.apply(this,arguments)};
_.O(ToO,LH);ToO.prototype.getAssociations=function(){var C=[];this.delegate.userChannelDetails&&C.push(this.delegate.userChannelDetails);return[].concat(_.da(new Set(C)))};
ToO.prototype.getTypeName=function(){return"ytMainChannelEntity"};var oXE=function(){LH.apply(this,arguments)};
_.O(oXE,LH);oXE.prototype.getAssociations=function(){var C=[];this.delegate.channelOwner&&C.push(this.delegate.channelOwner);this.delegate.playbackPosition&&C.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&C.push.apply(C,_.da(this.delegate.localImageEntities));this.delegate.downloadStatus&&C.push(this.delegate.downloadStatus);return[].concat(_.da(new Set(C)))};
oXE.prototype.getTypeName=function(){return"ytMainVideoEntity"};var a79=new _.Cx("downloadsPageSmartDownloadsOptInBannerParams");var l7I=new _.Cx("downloadsPageUpsellBannerParams");var rK2=function(){LH.apply(this,arguments)};
_.O(rK2,LH);rK2.prototype.getAssociations=function(){return[]};
rK2.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var KoG=function(){LH.apply(this,arguments)};
_.O(KoG,LH);KoG.prototype.getAssociations=function(){return[]};
KoG.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var DJm=function(){LH.apply(this,arguments)};
_.O(DJm,LH);DJm.prototype.getAssociations=function(){return[]};
DJm.prototype.getTypeName=function(){return"macroMarkerEntity"};var p07=function(){LH.apply(this,arguments)};
_.O(p07,LH);p07.prototype.getAssociations=function(){return[]};
p07.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var mJ7=function(){LH.apply(this,arguments)};
_.O(mJ7,LH);mJ7.prototype.getAssociations=function(){return[]};
mJ7.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var CM8=function(){LH.apply(this,arguments)};
_.O(CM8,LH);CM8.prototype.getAssociations=function(){return[]};
CM8.prototype.getTypeName=function(){return"playerStateEntity"};var jmE=function(){LH.apply(this,arguments)};
_.O(jmE,LH);jmE.prototype.getAssociations=function(){return[]};
jmE.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var Fnu=function(){LH.apply(this,arguments)};
_.O(Fnu,LH);Fnu.prototype.getAssociations=function(){return[]};
Fnu.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var GW7=function(){LH.apply(this,arguments)};
_.O(GW7,LH);GW7.prototype.getAssociations=function(){return[]};
GW7.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.gf=new _.Cx("dislikeButtonViewModel");_.Rd=new _.Cx("likeButtonViewModel");var V8$=new _.Cx("videoSummaryContentViewModel");var iSO=new _.Cx("videoSummaryParagraphViewModel");var Jh2=new _.Cx("changeTimelyActionVisibilityCommand");var $Zy=new _.Cx("hideEngagementPanelEndpoint");var bS$=new _.Cx("refreshPanelEndpoint");var ns7=new _.Cx("scrollToSectionEndpoint");var uxl=new _.Cx("seekToVideoTimestampCommand");_.kC=new _.Cx("showEngagementPanelEndpoint");var zFO=new _.Cx("showTransientPlayerScrimOverlayCommand");var Qmy=new _.Cx("toggleEngagementPanelCommand");_.ISS=new _.Cx("createBroadcastCommand");var Esu=new _.Cx("metadataUpdateCommand");var Wnm=function(){LH.apply(this,arguments)};
_.O(Wnm,LH);Wnm.prototype.getAssociations=function(){return[]};
Wnm.prototype.getTypeName=function(){return"featuredProductsEntity"};var t8E=function(){LH.apply(this,arguments)};
_.O(t8E,LH);t8E.prototype.getAssociations=function(){return[]};
t8E.prototype.getTypeName=function(){return"pinnedProductEntity"};var aSy=function(){LH.apply(this,arguments)};
_.O(aSy,LH);aSy.prototype.getAssociations=function(){return[]};
aSy.prototype.getTypeName=function(){return"trendingOfferEntity"};_.kWu=new _.Cx("merchandiseShelfRenderer");var UZl=new _.Cx("shoppingContentLineItemViewModel");var HSl=new _.Cx("gridMovieRenderer");_.lSO=new _.Cx("movieRenderer");var yhO=function(){LH.apply(this,arguments)};
_.O(yhO,LH);yhO.prototype.getAssociations=function(){return[]};
yhO.prototype.getTypeName=function(){return"compositeSourceEntity"};var ZS7=function(){LH.apply(this,arguments)};
_.O(ZS7,LH);ZS7.prototype.getAssociations=function(){var C=[];this.delegate.compositeSourceKeys&&C.push.apply(C,_.da(this.delegate.compositeSourceKeys));return[].concat(_.da(new Set(C)))};
ZS7.prototype.getTypeName=function(){return"multiviewStagingEntity"};var N6m=function(){LH.apply(this,arguments)};
_.O(N6m,LH);N6m.prototype.getAssociations=function(){var C=[];this.delegate.trackDownloadMetadatas&&C.push.apply(C,_.da(this.delegate.trackDownloadMetadatas));return[].concat(_.da(new Set(C)))};
N6m.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var OSm=function(){LH.apply(this,arguments)};
_.O(OSm,LH);
OSm.prototype.getAssociations=function(){var C=[];this.delegate.downloadedTracks&&C.push.apply(C,_.da(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&C.push.apply(C,_.da(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&C.push.apply(C,_.da(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&C.push.apply(C,_.da(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&C.push.apply(C,_.da(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
C.push.apply(C,_.da(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&C.push.apply(C,_.da(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&C.push.apply(C,_.da(this.delegate.metadataOnlyTracks));return[].concat(_.da(new Set(C)))};
OSm.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var X$S=function(){LH.apply(this,arguments)};
_.O(X$S,LH);X$S.prototype.getAssociations=function(){var C=[];this.delegate.trackDownloadMetadatas&&C.push.apply(C,_.da(this.delegate.trackDownloadMetadatas));return[].concat(_.da(new Set(C)))};
X$S.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var w$7=function(){LH.apply(this,arguments)};
_.O(w$7,LH);w$7.prototype.getAssociations=function(){var C=[];this.delegate.playbackData&&C.push(this.delegate.playbackData);this.delegate.localImageEntities&&C.push.apply(C,_.da(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&C.push(this.delegate.videoDownloadContextEntity);return[].concat(_.da(new Set(C)))};
w$7.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var M8m=function(){LH.apply(this,arguments)};
_.O(M8m,LH);
M8m.prototype.getAssociations=function(){var C=[];this.delegate.musicLibraryStatusEntity&&C.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&C.push.apply(C,_.da(this.delegate.primaryArtists));this.delegate.details&&C.push(this.delegate.details);this.delegate.userDetails&&C.push(this.delegate.userDetails);this.delegate.tracks&&C.push.apply(C,_.da(this.delegate.tracks));this.delegate.share&&C.push(this.delegate.share);this.delegate.downloadMetadata&&C.push(this.delegate.downloadMetadata);this.delegate.refresh&&
C.push(this.delegate.refresh);return[].concat(_.da(new Set(C)))};
M8m.prototype.getTypeName=function(){return"musicAlbumRelease"};
var SiE=function(){LH.apply(this,arguments)};
_.O(SiE,LH);SiE.prototype.getAssociations=function(){var C=[];this.delegate.albumRelease&&C.push(this.delegate.albumRelease);this.delegate.tracks&&C.push.apply(C,_.da(this.delegate.tracks));return[].concat(_.da(new Set(C)))};
SiE.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var Lno=function(){LH.apply(this,arguments)};
_.O(Lno,LH);Lno.prototype.getAssociations=function(){var C=[];this.delegate.albumRelease&&C.push(this.delegate.albumRelease);return[].concat(_.da(new Set(C)))};
Lno.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var B6E=function(){LH.apply(this,arguments)};
_.O(B6E,LH);B6E.prototype.getAssociations=function(){var C=[];this.delegate.details&&C.push(this.delegate.details);this.delegate.userDetails&&C.push(this.delegate.userDetails);return[].concat(_.da(new Set(C)))};
B6E.prototype.getTypeName=function(){return"musicArtist"};
var vsr=function(){LH.apply(this,arguments)};
_.O(vsr,LH);vsr.prototype.getAssociations=function(){var C=[];this.delegate.parentArtist&&C.push(this.delegate.parentArtist);return[].concat(_.da(new Set(C)))};
vsr.prototype.getTypeName=function(){return"musicArtistDetail"};
var fSu=function(){LH.apply(this,arguments)};
_.O(fSu,LH);fSu.prototype.getAssociations=function(){var C=[];this.delegate.parentArtist&&C.push(this.delegate.parentArtist);return[].concat(_.da(new Set(C)))};
fSu.prototype.getTypeName=function(){return"musicArtistUserDetail"};var hFr=function(){LH.apply(this,arguments)};
_.O(hFr,LH);hFr.prototype.getAssociations=function(){return[]};
hFr.prototype.getTypeName=function(){return"musicLibraryEdit"};var chO=function(){LH.apply(this,arguments)};
_.O(chO,LH);chO.prototype.getAssociations=function(){return[]};
chO.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var Ahr=function(){LH.apply(this,arguments)};
_.O(Ahr,LH);
Ahr.prototype.getAssociations=function(){var C=[];this.delegate.tracks&&C.push.apply(C,_.da(this.delegate.tracks));this.delegate.refresh&&C.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&C.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&C.push(this.delegate.details);this.delegate.downloadMetadata&&C.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&C.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&C.push(this.delegate.userDetails);this.delegate.entryCollection&&
C.push(this.delegate.entryCollection);this.delegate.share&&C.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&C.push.apply(C,_.da((new eFG(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.da(new Set(C)))};
Ahr.prototype.getTypeName=function(){return"musicPlaylist"};
var eFG=function(){S6.apply(this,arguments)};
_.O(eFG,S6);eFG.prototype.getAssociations=function(){var C=[];this.delegate.creatorEntity&&C.push(this.delegate.creatorEntity);return[].concat(_.da(new Set(C)))};var dZu=function(){LH.apply(this,arguments)};
_.O(dZu,LH);dZu.prototype.getAssociations=function(){return[]};
dZu.prototype.getTypeName=function(){return"musicShare"};var xZr=function(){LH.apply(this,arguments)};
_.O(xZr,LH);
xZr.prototype.getAssociations=function(){var C=[];this.delegate.musicLibraryStatusEntity&&C.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&C.push.apply(C,_.da(this.delegate.artists));this.delegate.audioModeVersion&&C.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&C.push(this.delegate.videoModeVersion);this.delegate.userDetails&&C.push(this.delegate.userDetails);this.delegate.details&&C.push(this.delegate.details);this.delegate.albumRelease&&C.push(this.delegate.albumRelease);this.delegate.share&&
C.push(this.delegate.share);this.delegate.libraryEdit&&C.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&C.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&C.push(this.delegate.playbackPosition);this.delegate.lyrics&&C.push(this.delegate.lyrics);return[].concat(_.da(new Set(C)))};
xZr.prototype.getTypeName=function(){return"musicTrack"};
var sm8=function(){LH.apply(this,arguments)};
_.O(sm8,LH);sm8.prototype.getAssociations=function(){var C=[];this.delegate.parentTrack&&C.push(this.delegate.parentTrack);return[].concat(_.da(new Set(C)))};
sm8.prototype.getTypeName=function(){return"musicTrackDetail"};
var qi8=function(){LH.apply(this,arguments)};
_.O(qi8,LH);qi8.prototype.getAssociations=function(){var C=[];this.delegate.parentTrack&&C.push(this.delegate.parentTrack);return[].concat(_.da(new Set(C)))};
qi8.prototype.getTypeName=function(){return"musicTrackUserDetail"};var hk=new _.Cx("musicResponsiveListItemRenderer");var BuT=new _.Cx("addToPlaylistEndpoint");var PMr=new _.Cx("captionPickerEndpoint");var gs$=new _.Cx("suggestStats");var RFy=new _.Cx("backstageImageUploadEndpoint");var Yir=new _.Cx("createBackstagePostDialogEndpoint");_.T6u=new _.Cx("createCommentReplyDialogEndpoint");_.osO=new _.Cx("updateCommentDialogEndpoint");_.rhy=new _.Cx("updateCommentReplyDialogEndpoint");var KnP=new _.Cx("menuEndpoint");var t45=new _.Cx("modalEndpoint");var DZl=new _.Cx("playlistEditorEndpoint");var p$G=new _.Cx("copyTextEndpoint");var mZ7,CcE;mZ7=new _.Cx("shareEndpoint");CcE=new _.Cx("shareEntityEndpoint");_.jkE=new _.Cx("shareEntityServiceEndpoint");_.y_I=new _.Cx("userFeedbackEndpoint");_.eT=new _.Cx("watchEndpoint");var JZI=new _.Cx("watchPlaylistEndpoint");var FPu=new _.Cx("addUpcomingEventReminderEndpoint");_.YD=new _.Cx("getCommentsFromInboxCommand");var GVo=new _.Cx("notificationOptOutEndpoint");var Vpl=new _.Cx("recordNotificationInteractionsEndpoint");var iJl=new _.Cx("removeUpcomingEventReminderEndpoint");var SFA=new _.Cx("getDownloadActionCommand");_.JS2=new _.Cx("offlineOrchestrationActionCommand");var $Q8=function(){LH.apply(this,arguments)};
_.O($Q8,LH);$Q8.prototype.getAssociations=function(){return[]};
$Q8.prototype.getTypeName=function(){return"captionTrack"};var bJr=function(){LH.apply(this,arguments)};
_.O(bJr,LH);bJr.prototype.getAssociations=function(){return[]};
bJr.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var nar=function(){LH.apply(this,arguments)};
_.O(nar,LH);nar.prototype.getAssociations=function(){return[]};
nar.prototype.getTypeName=function(){return"offlineVideoPolicy"};var uel=function(){LH.apply(this,arguments)};
_.O(uel,LH);uel.prototype.getAssociations=function(){return[]};
uel.prototype.getTypeName=function(){return"offlineVideoStreams"};var zhO=function(){LH.apply(this,arguments)};
_.O(zhO,LH);zhO.prototype.getAssociations=function(){var C=[];this.delegate.transfer&&C.push(this.delegate.transfer);this.delegate.adsPlaybackData&&C.push.apply(C,_.da(this.delegate.adsPlaybackData));this.delegate.drmLicense&&C.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&C.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&C.push(this.delegate.videoDownloadContextEntity);return[].concat(_.da(new Set(C)))};
zhO.prototype.getTypeName=function(){return"playbackData"};var Qk7=function(){LH.apply(this,arguments)};
_.O(Qk7,LH);Qk7.prototype.getAssociations=function(){return[]};
Qk7.prototype.getTypeName=function(){return"refresh"};var I7S=function(){LH.apply(this,arguments)};
_.O(I7S,LH);I7S.prototype.getAssociations=function(){var C=[];this.delegate.offlineVideoStreams&&C.push.apply(C,_.da(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&C.push.apply(C,_.da(this.delegate.captionTrack));return[].concat(_.da(new Set(C)))};
I7S.prototype.getTypeName=function(){return"transfer"};var EaP=function(){LH.apply(this,arguments)};
_.O(EaP,LH);EaP.prototype.getAssociations=function(){return[]};
EaP.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var WPl=new _.Cx("showMoreDrawerCommand");var tp7=new _.Cx("updateEngagementPanelContentCommand");var a7P=new _.Cx("getPdgBuyFlowCommand");var kVE=new _.Cx("liveChatPurchaseMessageEndpoint");var UQo=new _.Cx("openSuperStickerBuyFlowCommand");var HJu=new _.Cx("updatePdgFeatureEnablementCommand");var l72=function(){LH.apply(this,arguments)};
_.O(l72,LH);l72.prototype.getAssociations=function(){return[]};
l72.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var ySE=function(){LH.apply(this,arguments)};
_.O(ySE,LH);ySE.prototype.getAssociations=function(){return[]};
ySE.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.ZJo=new _.Cx("pdgCommentChipRenderer");_.Nql=new _.Cx("permissionRoleBottomBarRenderer");_.OJS=new _.Cx("updatePermissionRoleCommand");var Xnl=new _.Cx("prefetchWatchCommand");var wnS=new _.Cx("updatePlayerErrorMessageCommand");var yUE=new _.Cx("toggleCaptionsVisibilityCommand");_.Mpl=new _.Cx("quickActionsViewModel");var Sbu=new _.Cx("playerResponse");var LPu=new _.Cx("playlistRenderer");_.Bq2=new _.Cx("playlistVideoListRenderer");_.TL=new _.Cx("playlistEditEndpoint");var vaS=new _.Cx("createImagePollCommand");var f78=new _.Cx("createQuizCommand");var hh7=new _.Cx("quizRenderer");var cSS=new _.Cx("uploadedVideoRenderer");var AS8=new _.Cx("decorateMessageEndpoint");var eho=new _.Cx("lpOfferCardOptionViewModel");var dQu=new _.Cx("sfvAudioItemPlaybackCommand");var xQm=function(){LH.apply(this,arguments)};
_.O(xQm,LH);xQm.prototype.getAssociations=function(){return[]};
xQm.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.od=new _.Cx("reelNonVideoContentEndpoint");_.nd=new _.Cx("reelWatchEndpoint");_.rf=new _.Cx("reelItemRenderer");var skm=new _.Cx("reelMetapanelViewModel");_.KH=new _.Cx("reelNonVideoContentRenderer");_.qbl=new _.Cx("reelPlayerOverlayRenderer");var Pc2=new _.Cx("shortsLockupViewModel");var gaS=new _.Cx("sponsorButtonViewModel");var Rhy=new _.Cx("reelItemWatchResponse");var YbS=new _.Cx("textBadgeRenderer");_.DY=new _.Cx("buttonRenderer");_.pH=new _.Cx("toggleButtonRenderer");var e4B=new _.Cx("switchButtonViewModel");_.Tqu=new _.Cx("confirmDialogRenderer");var oaP;oaP=new _.Cx("menuRenderer");_.rSE=new _.Cx("menuFlexibleItemRenderer");var KPm=new _.Cx("pollRenderer");_.DQy=new _.Cx("backgroundPromoRenderer");var mQ$;_.pn8=new _.Cx("chipCloudRenderer");mQ$=new _.Cx("chipCloudChipRenderer");var CFu=new _.Cx("dropdownRenderer");var jrS=new _.Cx("gridVideoRenderer");_.FMm=new _.Cx("itemSectionRenderer");_.G6S=new _.Cx("messageRenderer");var Vi7=new _.Cx("sortFilterHeaderRenderer");_.mV=new _.Cx("videoRenderer");var iKG=new _.Cx("resolveUrlCommandMetadata");var JT8=function(){LH.apply(this,arguments)};
_.O(JT8,LH);JT8.prototype.getAssociations=function(){return[]};
JT8.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.$mu=new _.Cx("getAnswerCommand");_.JR=new _.Cx("searchEndpoint");var bKu=new _.Cx("genAiRichTextViewModel");var Msw=new _.Cx("overviewAnswerViewModel");var nPG=new _.Cx("videoOverviewViewModel");var ull=new _.Cx("addToPlaylistServiceEndpoint");var zJ7=new _.Cx("clearSearchHistoryEndpoint");var QrE=new _.Cx("clearWatchHistoryEndpoint");var ILo=new _.Cx("webSerializedServiceEndpointExtension");_.EPl=new _.Cx("createCommentEndpoint");var WMu=new _.Cx("createCommentReplyEndpoint");var ti$=new _.Cx("performCommentActionEndpoint");var aL$=new _.Cx("updateCommentEndpoint");var k6m=new _.Cx("updateCommentReplyEndpoint");_.CQ=new _.Cx("createPlaylistServiceEndpoint");var Um8=new _.Cx("deletePlaylistEndpoint");var HKO=new _.Cx("deleteVideoEndpoint");var LLi=new _.Cx("getReportFormEndpoint");var lLE=new _.Cx("modifyChannelNotificationPreferenceEndpoint");var qyT;_.Jm=new _.Cx("offlinePlaylistEndpoint");qyT={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 PtW;_.VJ=new _.Cx("offlineVideoEndpoint");PtW={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 yTS=new _.Cx("pingingEndpoint");_.ZKu=new _.Cx("selectActiveIdentityEndpoint");var NK8=new _.Cx("setSettingEndpoint");var $2s=new _.Cx("undoFeedbackEndpoint");var OKP=new _.Cx("unsubscribeEndpoint");_.XL$=new _.Cx("updatedMetadataEndpoint");var wLG=function(){LH.apply(this,arguments)};
_.O(wLG,LH);wLG.prototype.getAssociations=function(){return[]};
wLG.prototype.getTypeName=function(){return"settingEntity"};_.Mio=new _.Cx("updateLocalAppSettingCommand");var SM$=new _.Cx("saveImageToDeviceEndpoint");var LMm=new _.Cx("shareImageCommand");var cJu=new _.Cx("sharingProviderDataCommand");var AJO=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(AJO,_.b0);var evP=[0,_.xL,-1];AJO.prototype.JSC$12530_serializeBinary=YLT(evP);var dj2=_.Hh(evP);var xjr=new _.Cx("userMentionSuggestionRenderer");var sfS=new _.Cx("liveChatTunnelCommand");var qY$=new _.Cx("showSponsorshipsGiftOfferDialogCommand");var PYG=new _.Cx("sponsorshipsScrollableShelfViewModel");var gWP=new _.Cx("updateUpcomingEventReminderButtonStateCommand");var Rvu=new _.Cx("upcomingEventReminderButtonStateRenderer");var YY2=new _.Cx("subscribeEndpoint");var TB8=new _.Cx("registerTasksCommand");var oWS=new _.Cx("hideSheetCommand");var rJ7=new _.Cx("hideSnackbarCommand");var KkO=new _.Cx("showDialogCommand");_.nhq=new _.Cx("showSheetCommand");var DjS=new _.Cx("showSnackbarCommand");var pZm=function(){LH.apply(this,arguments)};
_.O(pZm,LH);pZm.prototype.getAssociations=function(){return[]};
pZm.prototype.getTypeName=function(){return"chipEntity"};var mjP=function(){LH.apply(this,arguments)};
_.O(mjP,LH);mjP.prototype.getAssociations=function(){return[]};
mjP.prototype.getTypeName=function(){return"dismissState"};_.yJ=new _.Cx("avatarViewModel");var Cpy=new _.Cx("badgeViewModel");_.jl=new _.Cx("buttonViewModel");_.Fu=new _.Cx("chipViewModel");var GJf=new _.Cx("collectionThumbnailViewModel");var j7r=new _.Cx("contentPreviewImageViewModel");var F1m=new _.Cx("decoratedAvatarViewModel");_.DNA=new _.Cx("engagementBarViewModel");_.GvG=new _.Cx("imageBannerViewModel");var VCS=new _.Cx("lockupContentMetadataRowExtension");_.iEl=new _.Cx("lockupMetadataViewModel");_.J97=new _.Cx("lockupViewModel");var $sl=new _.Cx("avatarStackViewModel");_.bEu=new _.Cx("contentMetadataViewModel");var n9m=function(){LH.apply(this,arguments)};
_.O(n9m,LH);n9m.prototype.getAssociations=function(){return[]};
n9m.prototype.getTypeName=function(){return"pageHeaderEntity"};_.uC$=new _.Cx("pageHeaderViewModel");var z2y=new _.Cx("snackbarViewModel");var Q7S=new _.Cx("thumbnailHoverOverlayToggleActionsViewModel");_.Gz=new _.Cx("toggleButtonViewModel");var IOm=function(){LH.apply(this,arguments)};
_.O(IOm,LH);IOm.prototype.getAssociations=function(){return[]};
IOm.prototype.getTypeName=function(){return"votingEntity"};_.pUT=new _.Cx("votingViewModel");var E97=new _.Cx("sectionHeaderViewModel");var W1O=new _.Cx("notifyDropdownOptionSelectedCommand");var ujZ=new _.Cx("listViewModel");_.QJ=new _.Cx("listItemViewModel");var Fq5=new _.Cx("toggleableListItemViewModel");var tCE=new _.Cx("dialogHeaderViewModel");var aOu=function(){LH.apply(this,arguments)};
_.O(aOu,LH);aOu.prototype.getAssociations=function(){return[]};
aOu.prototype.getTypeName=function(){return"dataFreshnessEntity"};var lq9=new _.Cx("suspenseViewModel");var kvy=function(){LH.apply(this,arguments)};
_.O(kvy,LH);kvy.prototype.getAssociations=function(){return[]};
kvy.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var Us$=function(){LH.apply(this,arguments)};
_.O(Us$,LH);Us$.prototype.getAssociations=function(){return[]};
Us$.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var HEr=function(){LH.apply(this,arguments)};
_.O(HEr,LH);HEr.prototype.getAssociations=function(){return[]};
HEr.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.lOy=new _.Cx("transcriptSubmitCaptionCorrectionCommand");var y9P=function(){LH.apply(this,arguments)};
_.O(y9P,LH);y9P.prototype.getAssociations=function(){return[]};
y9P.prototype.getTypeName=function(){return"buttonEntity"};var V4f=new _.Cx("unpluggedStringRunImage");var ZEu=new _.Cx("tabViewModel");var N$m=new _.Cx("tabbedViewModel");var OE2=function(){LH.apply(this,arguments)};
_.O(OE2,LH);OE2.prototype.getAssociations=function(){return[]};
OE2.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.XWr=new _.Cx("updateDescriptionAction");var wWr=new _.Cx("updateToggleButtonTextAction");var MC7=new _.Cx("showFullscreenPlayerControlsCommand");var Snr=new _.Cx("updateVideoMetadataCommand");_.L17=new _.Cx("autoplaySwitchButtonRenderer");var y7;_.B$8=new _.Cx("multiMarkersPlayerBarRenderer");y7=new _.Cx("chapterRenderer");var v9S=new _.Cx("heatMarkerRenderer");var HhB=new _.Cx("heatmapRenderer");var fOS=new _.Cx("smartSkipPlayerScrimOverlayRenderer");var h2$=new _.Cx("timedMarkerDecorationRenderer");var A0T=new _.Cx("postWebToNativeMessageCommand");var Hx=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Hx,_.b0);Hx.prototype.getMethodName=function(){return _.a3(this,1)};var c9y=[0,_.xL,-2];Hx.prototype.JSC$12552_serializeBinary=YLT(c9y);var A9$=_.kl(Hx,c9y);var e28=new _.Cx("whitelistEditEndpoint");var dsr=new _.Cx("clearUrlParamCommand");var xsE=new _.Cx("commerceActionCommand");_.s72=new _.Cx("getPaymentInstrumentsParamsCommand");var qnO=new _.Cx("getPaymentsClientTokenCommand");var Ppu=new _.Cx("googlePaymentBillingCommand");var g9O=new _.Cx("googlePaymentPurchaseManagerCommand");_.R2m=new _.Cx("logGtmCommand");var Yny=new _.Cx("updateCardItemOnClickCommand");_.T$7=new _.Cx("ypcPauseSubscriptionCommand");_.o9r=new _.Cx("ypcResumeSubscriptionCommand");var r9$=function(){LH.apply(this,arguments)};
_.O(r9$,LH);r9$.prototype.getAssociations=function(){return[]};
r9$.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var K1G=function(){LH.apply(this,arguments)};
_.O(K1G,LH);K1G.prototype.getAssociations=function(){return[]};
K1G.prototype.getTypeName=function(){return"commerceCartListEntity"};var Dsr=function(){LH.apply(this,arguments)};
_.O(Dsr,LH);Dsr.prototype.getAssociations=function(){return[]};
Dsr.prototype.getTypeName=function(){return"iconBadgeEntity"};var pWy=function(){LH.apply(this,arguments)};
_.O(pWy,LH);pWy.prototype.getAssociations=function(){return[]};
pWy.prototype.getTypeName=function(){return"pdpStateEntity"};var msu=function(){LH.apply(this,arguments)};
_.O(msu,LH);msu.prototype.getAssociations=function(){return[]};
msu.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var Ut5=new _.Cx("ypcOffersEndpoint");var C7y=new _.Cx("cardItemRenderer"),jOO=new _.Cx("cardItemTextRenderer");var Fuy=new _.Cx("commerceCartItemQuantityPickerRenderer");var GsG=new _.Cx("linkCardRenderer");var S_o=new _.Cx("quantityIncrementerButtonViewModel");var VK2=new _.Cx("quantityIncrementerViewModel");var ip2=new _.Cx("themedImageViewModel");_.JZ2=new _.Cx("ypcCancelRecurrenceEndpoint");var $RO=new _.Cx("ypcCompleteTransactionEndpoint");_.bpy=new _.Cx("ypcGetCartEndpoint");_.hm=new _.Cx("ypcGetOffersEndpoint");_.Vs=new _.Cx("ypcHandleTransactionEndpoint");var nV2=new _.Cx("ypcLogWalletAnalyticDataEndpoint");_.uAP=new _.Cx("ypcRedeemCodeEndpoint");var z3P=new _.Cx("ypcUpdateFopEndpoint");zL(uu(1),bu(4));KdS((new MessageChannel).port2);var QO8=function(){this.register=new Map},ZqW=function(C,F,G){C=C+"_"+F;
iW.register.has(C)?G=iW.register.get(C):(G=G(),iW.register.set(C,G));return G},IMS=function(C){C=_.u(C.register.values());
for(var F=C.next();!F.done;F=C.next())_.CV(F.value,"ABORTED")};
QO8.prototype.clear=function(){IMS(this);this.register.clear()};
var iW=new QO8;var GDE=Date.now().toString();var JYE=iq9();var EHS={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 EV7,H9;EV7=1;H9=function(C){this.veData=C};
_.zS=function(C){return new H9({trackingParams:C})};
_.m2=function(C,F,G,V,J,b){var z=EV7++;return new H9({veType:C,veCounter:z,elementIndex:G,dataElement:F,youtubeData:V,jspbYoutubeData:J,loggingDirectives:b})};
_.n=H9.prototype;
_.n.getAsJson=function(){var C={};this.veData.trackingParams!==void 0?C.trackingParams=this.veData.trackingParams:(C.veType=this.veData.veType,this.veData.veCounter!==void 0&&(C.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(C.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(C.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(C.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(C.isCounterfactual=!0);
return C};
_.n.getAsJspb=function(){var C=new QQO;this.veData.trackingParams!==void 0?C.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.ZW(C,2,this.veData.veType),this.veData.veCounter!==void 0&&_.ZW(C,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.ZW(C,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.UD(C,5,!0));if(this.veData.dataElement!==void 0){var F=this.veData.dataElement.getAsJspb();_.OL(C,7,F)}this.veData.youtubeData!==void 0&&_.OL(C,8,this.veData.jspbYoutubeData);
return C};
_.n.toString=function(){return JSON.stringify(this.getAsJson())};
_.n.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.n.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.zn("yt_logging_screen.getRootVeType",zas);_.zn("yt_logging_screen.getCurrentCsn",_.ZQ);_.zn("yt_logging_screen.getCttAuthInfo",NU);_.zn("yt_logging_screen.setCurrentScreen",_.O5);var Wuu=function(){this.events=new Map},tKy=function(C){var F=[];
C=_.u(C.events.values());for(var G=C.next();!G.done;G=C.next())F.push(G.value);return F};
Wuu.prototype.clear=function(){this.events.clear()};var kso=function(){this.logTransport=new aMG;this.loggedEventRegister=new Wuu;this.unloggedEventRegister=new Wuu;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12589_flushTimer=new _.UH(this.flushInterval);this.JSC$12589_flushTimer.listen("tick",this.flush,!1,this)};
kso.prototype.flush=function(){if(this.eventsCount){var C={loggedEvents:tKy(this.loggedEventRegister),unloggedEvents:tKy(this.unloggedEventRegister)};if(_.y("export_player_version_to_ytconfig")){var F;(F=_.TF("PLAYER_CLIENT_VERSION"))?(F=F.split("-")[0].replace(/\./g,""),F=isNaN(Number(F))?"0":F):F="";var G=_.TF("PLAYER_CLIENT_VERSION");if(G){G=G.split("-");var V="";G.length>1&&(V=G[G.length-1]);G=Fwq(V.startsWith("canary_experiment")?"canary":V.startsWith("canary_control")?"control":"none")}else G=
"CLIENT_CANARY_STATE_UNKNOWN";C.dimensions={playerClientVersion:F,playerCanaryState:G}}this.logTransport.flush(C);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12589_flushTimer.enabled&&this.JSC$12589_flushTimer.stop()}};
var URu=function(C){JK==null&&(JK=new kso);var F=JK;var G=F.loggedEventRegister;C.dimensions=C.dimensions||{};C.dimensions.csn=_.ZQ()||"";var V=awW(C.dimensions).join(";");if(C.records!=null)if(G.events.has(V)){var J;(J=G.events.get(V).records)==null||J.push.apply(J,_.da(C.records))}else G.events.set(V,C);F.JSC$12589_flushTimer.enabled||F.JSC$12589_flushTimer.start();F.eventsCount++;F.eventsCount>=100&&F.flush()};var aMG=function(){};
aMG.prototype.flush=function(C,F){_.y("enable_client_sli_logging")&&_.q1("sliEventBatch",C,{sendIsolatedPayload:!!F})};var JK;var lMG;lMG=function(C){var F=HpO;C=C===void 0?{}:C;F=F.name;var G=yYA("SUCCESS");URu({dimensions:C,records:[{name:F,state:"SLI_STATE_END",status:G}]})};
_.NgB=function(C,F,G,V){this.name=C;this.sliId=F;this.timeoutMs=G;this.statusOnTimeout=V;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.NgB.prototype.getId=function(){return this.sliId};
_.m8=function(C,F){F=F===void 0?{}:F;C.ongoing||(C.ongoing=!0,C.dimensions=F,C.logSliId=RXI(),URu({dimensions:C.dimensions,records:[{name:C.name,state:"SLI_STATE_START",sliId:C.logSliId}]}),C.timeoutMs>0&&(C.timeoutHandle=setTimeout(function(){_.CV(C,C.statusOnTimeout)},C.timeoutMs)))};
_.CV=function(C,F){C.ongoing&&(C.timeoutMs>0&&clearTimeout(C.timeoutHandle),C.ongoing=!1,F={dimensions:C.dimensions,records:[{name:C.name,status:yYA(F),state:"SLI_STATE_END",sliId:C.logSliId}]},iW.register.delete(C.name+"_"+C.sliId),URu(F))};var HpO=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var yZE=function(){LH.apply(this,arguments)};
_.O(yZE,LH);yZE.prototype.getAssociations=function(){return[]};
yZE.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var sBZ=new _.Cx("highlightTextDecoratorColorMapExtension");var d99=new _.Cx("styleRunColorMapExtension");var BgI=_.h6(["data-"]),haB={};var AYZ={};var $X=function(C){this.wrappedPromise_=C===void 0?null:C;this.state_=0;this.JSC$12620_value_=null};
$X.prototype.then=function(C,F,G){return this.wrappedPromise_?this.wrappedPromise_.then(C,F,G):this.state_===1&&C?(C=C.call(G,this.JSC$12620_value_))&&typeof C.then==="function"?C:_.bW(C):this.state_===2&&F?(C=F.call(G,this.JSC$12620_value_))&&typeof C.then==="function"?C:_.ZpP(C):this};
$X.prototype.getValue=function(){return this.JSC$12620_value_};
$X.prototype.isRejected=function(){return this.state_==2};
nnu($X);_.ZpP=function(C){var F=new $X;C=C===void 0?null:C;F.state_=2;F.JSC$12620_value_=C===void 0?null:C;return F};
_.bW=function(C){var F=new $X;C=C===void 0?null:C;F.state_=1;F.JSC$12620_value_=C===void 0?null:C;return F};var pPT="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var NPS=["load","abort","error"],nQ=function(C,F,G){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12640_maxAspectRatio_=C;this.disableAnimation_=F===void 0?!1:F;this.disableExifRotation_=G===void 0?!1:G;this.JSC$12640_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12640_reject_=this.resolve_=null};
nQ.prototype.transform=function(C){var F=this;this.mime_=C.type;o5(IHO(C),this.dataUrlRead_,this.readError_,this);o5(Qeo(C.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(G,V){F.resolve_=G;F.JSC$12640_reject_=V})};
nQ.prototype.dataUrlRead_=function(C){this.dataUrl_=C;this.angle_!=null&&Opo(this)};
nQ.prototype.exifRead_=function(C){if(this.disableExifRotation_)this.angle_=0;else{a:if(C=new DataView(C),C.byteLength<2||C.getUint16(0)!==65496)C=-2;else{for(var F=2,G=C.byteLength;F<G;){var V=C.getUint16(F),J=C.getUint16(F+2);if(V===65505){F+=4;V=C.getUint32(F);J=C.getUint16(F+4);if(V!==1165519206||J!==0)break;F+=6;V=C.getUint16(F)===18761;F+=C.getUint32(F+4,V);J=C.getUint16(F,V);F+=2;for(var b=0;b<J;b++){if(C.getUint16(F,V)===274){F+=8;C=C.getUint16(F,V);break a}F+=12}}else if(V>>8!==255)break;
else F+=J+2}C=-1}switch(C){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&&Opo(this)};
nQ.prototype.readError_=function(){this.JSC$12640_reject_()};
var Opo=function(C){ny(C.JSC$12640_image_,NPS,C.completeTransform_,!1,C);C.JSC$12640_image_.src=_.Ph(C.dataUrl_).toString();C.JSC$12640_image_.src!=q_.toString()&&C.JSC$12640_image_.src.substr(0,11)==="data:image/"||C.JSC$12640_reject_()};
nQ.prototype.completeTransform_=function(){if(this.JSC$12640_image_.src!=q_.toString()){var C=_.Ph(this.dataUrl_),F=this.JSC$12640_image_.naturalHeight?this.JSC$12640_image_.naturalWidth/this.JSC$12640_image_.naturalHeight:null;this.invalidAspectRatio=F>this.JSC$12640_maxAspectRatio_||F<1/this.JSC$12640_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var G=this.JSC$12640_image_.naturalWidth,V=this.JSC$12640_image_.naturalHeight,J=F=0,b=this.JSC$12640_image_.naturalHeight?this.JSC$12640_image_.naturalWidth/
this.JSC$12640_image_.naturalHeight:null;b>this.JSC$12640_maxAspectRatio_?(G=this.JSC$12640_maxAspectRatio_*V,F=(G-this.JSC$12640_image_.naturalWidth)/2,this.cropped=!0):b<1/this.JSC$12640_maxAspectRatio_?(V=this.JSC$12640_maxAspectRatio_*G,J=(V-this.JSC$12640_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)b=G,G=V,V=b,b=F,F=J,J=b;switch(this.angle_){case 90:J-=G;break;case 180:F-=G;J-=V;break;case 270:F-=
V}this.cropped||this.angle_%360!==0?(C=document.createElement("canvas"),C.width=G||1,C.height=V||1,this.JSC$12640_image_.naturalWidth&&this.JSC$12640_image_.naturalHeight&&(G=C.getContext("2d"),G.rotate(Math.PI/180*this.angle_),G.drawImage(this.JSC$12640_image_,F,J,this.JSC$12640_image_.naturalWidth,this.JSC$12640_image_.naturalHeight)),this.transformedData=_.Ph(C.toDataURL(this.mime_))):this.transformedData=C}else this.transformedData=C;this.resolve_(this)}};var uW=function(C,F){_.tP.call(this,C);this.value=F};
_.O(uW,_.tP);
var zz=function(C,F,G,V,J,b,z){z=z===void 0?!1:z;_.lT.call(this);var Q=this;this.JSC$12645_url_=C;this.channelId_=F;this.maxFileSizeMb_=G;this.JSC$12645_maxAspectRatio_=V;this.dropZoneEl_=J;this.rejectInvalidAspectRatio_=z;this.selectButtonEl_=b;this.JSC$12645_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new UR(this.dropZoneEl_);this.selectOverlay_=new Hf(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12645_image_=this.transfer_=null;this.handler_=new _.ln(this);_.Nd(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(){Q.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.O(zz,_.lT);zz.prototype.disposeInternal=function(){for(var C=this.selectButtonEl_.nextSibling;C&&C.parentNode&&C.tagName=="INPUT";)C.parentNode.removeChild(C),C=this.selectButtonEl_.nextSibling;this.cancel();_.lT.prototype.disposeInternal.call(this)};
zz.prototype.uploadPromise=function(){if(this.JSC$12645_image_==null)return null;this.uploadPromise_||XIu(this);return this.uploadPromise_};
zz.prototype.cancel=function(){wIu(this);this.JSC$12645_image_=null};
var wIu=function(C){C.transfer_&&C.transfer_.cancel();C.transfer_=null;C.uploadPromise_=null;C.resolve_=null;C.JSC$12645_reject_=null},XIu=function(C){wIu(C);
C.transfer_=_.FHm(C.JSC$12645_url_,{"X-YouTube-ChannelId":C.channelId_},C.JSC$12645_image_);C.handler_.listenOnce(C.transfer_,"l",C.JSC$12647_onUploadComplete_);C.handler_.listenOnce(C.transfer_,"n",C.onUploadError_);C.transfer_.run();C.uploadPromise_=new Promise(function(F,G){C.resolve_=F;C.JSC$12645_reject_=G})};
_.n=zz.prototype;_.n.onChange_=function(C){C.files.length&&(this.JSC$12645_image_=C.files[0],this.JSC$12645_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12645_image_=null,this.dispatchEvent(new uW("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(XIu(this),(new nQ(this.JSC$12645_maxAspectRatio_)).transform(this.JSC$12645_image_).then((0,_.ck)(this.onPreview_,this),(0,_.ck)(this.onPreviewError_,this))))};
_.n.onPreview_=function(C){if(C.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12645_image_=null),this.dispatchEvent(new uW("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;C.cropped&&this.dispatchEvent(new uW("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new uW("yt.comments.ImageUploadOverlay.CHANGE_EVENT",C.transformedData))};
_.n.onPreviewError_=function(){this.JSC$12645_image_=null;this.dispatchEvent(new uW("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.n.onHover_=function(C){C.stopPropagation();C.preventDefault();if(C.type==="dragover")C=!0;else if(C.type==="dragleave")C=!1;else return;this.dispatchEvent(new uW("yt.comments.ImageUploadOverlay.HOVER_EVENT",C))};
_.n.JSC$12647_onUploadComplete_=function(){var C=(0,_.fNS)(this.transfer_.getResponseText());this.resolve_(C.encryptedBlobId)};
_.n.onUploadError_=function(){this.JSC$12645_reject_();wIu(this)};var MKr=function(C){C=C||{};var F={},G={};this.url=C.url||"";this.args=C.args||_.xf.clone(F);this.assets=C.assets||{};this.attrs=C.attrs||_.xf.clone(G);this.fallback=C.fallback||null;this.fallbackMessage=C.fallbackMessage||null;this.html5=!!C.html5;this.disable=C.disable||{};this.loaded=!!C.loaded;this.messages=C.messages||{}};
MKr.prototype.clone=function(){var C=new MKr,F;for(F in this)if(this.hasOwnProperty(F)){var G=this[F];_.m$(G)=="object"?C[F]=_.xf.clone(G):C[F]=G}return C};var SGu,Luu,BP$,f3,fMu,h3r,cZ$,AZu,e32,dRr,xR$,sOy,qGG,P7m,gVE,R37,YGS,TPG,oVS,rZE,Kur,DRu,pIS,mR2,CLo,jhy,F_G,G1$,Vz$,THA,i$$,Jwo,$Ou,b$l,nNS,uY8,zUE,Qhm,IZ7,EN8,YlB,W_l,tzP,aZ8,k1O,UOO,H$E,lZO,yw$,Z$O,NMG,O$o,X1o,w1$,MzO,ShG,Qs,L_o,BMu,vNP,fZ7,hUo,cwu,AwG,eUG,dOr,xOO,shu,qh$,PL2,gN2,RUO,Yho,TMl,oNo,rwl,g$W,K_S,DOo,p1o,mOP,Cfu,j_G,F0y,Goy,V7$,ieo,JE7,$n7,be2,nF$,uHy,zCm,Q_u,IjO,EF7,W0u,t7$,ajy,ko2,UnE,HeG;SGu=["account/accounts_list"];Luu=["acknowledge_channel_tou_strike"];BP$=["notification/add_upcoming_event_reminder"];
_.vVS=["att/get"];f3=["browse","music/browse","unplugged/browse"];fMu=["channel/claim_legacy_youtube_channel"];h3r=["history/clear_search_history"];cZ$=["history/clear_watch_history"];AZu=["comment/perform_comment_action"];e32=["comment/get_comment_replies"];dRr=["ypc/commerce_action"];xR$=["backstage/create_post"];sOy=["live/create_broadcast"];qGG=["channel/create_channel"];P7m=["comment/create_comment_reply"];gVE=["comment/create_comment"];R37=["live_chat/create_poll"];YGS=["playlist/create"];
TPG=["decorate_message"];oVS=["live_chat/delete_message"];rZE=["playlist/delete"];Kur=["video/delete"];DRu=["like/dislike"];pIS=["dismissal/dismiss"];mR2=["flag/flag"];CLo=["flow"];jhy=["account/account_menu"];F_G=["playlist/get_add_to_playlist"];G1$=["get_answer"];Vz$=["channel/get_channel_creation_form"];THA=["offline/get_download_action"];i$$=["kids/get_kids_blocklist_picker"];Jwo=["live_chat/get_item_context_menu"];$Ou=["live_chat/get_live_chat_message_buy_flow"];b$l=["live_chat/get_live_chat_replay"];
nNS=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];uY8=["live_chat/get_live_chat_super_sticker_buy_flow"];zUE=["notification/get_notification_menu"];Qhm=["playlist/get_settings_editor"];IZ7=["backstage/get_post_video_preview"];EN8=["account/get_profile_card"];YlB=["share/get_share_panel"];W_l=["share/get_sharing_provider_data"];tzP=["get_survey"];aZ8=["notification/get_unseen_count"];k1O=["get_user_mention_suggestions"];UOO=["get_watch"];H$E=["guide"];
lZO=["feedback"];yw$=["kids/update_blacklist"];Z$O=["like/like"];NMG=["live_chat/live_chat_action"];O$o=["live_chat/manage_user"];X1o=["video_manager/metadata_update"];w1$=["live_chat/moderate"];MzO=["notification/modify_channel_preference"];ShG=["notification/opt_out"];Qs=["get_panel","get_posts_by_host_panel"];L_o=["player"];BMu=["browse/edit_playlist"];vNP=["notification/record_interactions"];fZ7=["reel/reel_item_watch"];hUo=["reel/reel_watch_sequence"];cwu=["like/removelike"];AwG=["notification/remove_upcoming_event_reminder"];
eUG=["flag/get_form"];dOr=["miniapp/report_value"];xOO=["navigation/resolve_url"];shu=["channel/reveal_business_email"];qh$=["in_video/search"];PL2=["search","sfv/search","unplugged/search"];gN2=["live_chat/send_message"];RUO=["live_chat/send_live_chat_vote"];Yho=["account/set_setting"];TMl=["submit_caption_correction"];oNo=["submit_form"];rwl=["subscription/subscribe"];g$W=["get_transcript"];K_S=["resolve_location","unplugged/resolve_location"];DOo=["subscription/unsubscribe"];p1o=["backstage/update_post"];
mOP=["channel_edit/update_channel_page_settings"];Cfu=["comment/update_comment_reply"];j_G=["comment/update_comment"];F0y=["comment/update_comments_settings"];Goy=["creator/update_creator_channel"];V7$=["pdg/update_enablement"];ieo=["updated_metadata"];JE7=["channel_edit/validate_channel_handle"];$n7=["verify_age"];be2=["next","unplugged/watch_next"];nF$=["whitelist/edit"];uHy=["ypc/cancel_recurrence"];zCm=["ypc/complete_transaction"];Q_u=["ypc/get_cart"];IjO=["ypc/get_fix_instrument_params"];
EF7=["ypc/get_offers"];W0u=["ypc/get_payment_instruments_params"];t7$=["ypc/handle_transaction"];ajy=["ypc/log_payment_server_analytics"];ko2=["ypc/pause_subscription"];UnE=["ypc/redeem_code"];HeG=["ypc/resume_subscription"];var ljE=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,276243,93911,274188,276651,106531,257234,252598,252597,252600,252599,252596,225031,
177843,27259,27262,27263,21759,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,
74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,276200,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,
235234,162712,80357,243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,273905,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,
156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,
45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,271884,222932,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,
18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,278926,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,
54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,
196075,194768,252201,194769,191885,233634,265810,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,275810,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,278306,277848,173191,173192,173193,101951,171502,196043,
198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,
111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,271622,271813,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,273960,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,
223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,275869,271673,274637,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,273646,273647,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,
130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,275782,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,
102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,273232,82039];var VO=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.zn("yt.msgs_",VO);var Ij=new _.jh("ACTION_ROUTER_TOKEN");_.Ef=function(){this.autonavState_=_.y("kevlar_is_pupi_enabled")?2:u9q()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.Ef.prototype.getState=function(){return this.autonavState_};
_.Ef.prototype.pause=function(C){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=C):this.autonavState_==1&&(this.disabledAutonavPauseReason_=C)};
_.Ef.prototype.setState=function(C,F,G){F&&(this.autoplayChangedByUser=!0);F=this.autonavState_===3||C===3;this.autonavState_!=C&&(this.autonavState_=C,C!=3&&_.zbI(C==2),C=_.y("kevlar_is_pupi_enabled")?G||F:!0,_.FV.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,C,G))};
_.Ef.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.Ps(_.Ef);var W0=function(){this.hasRun=!1};var tK={},yaT=(tK.auto_search="LATENCY_ACTION_AUTO_SEARCH",tK.ad_to_ad="LATENCY_ACTION_AD_TO_AD",tK.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",tK.app_startup="LATENCY_ACTION_APP_STARTUP",tK.browse="LATENCY_ACTION_BROWSE",tK.cast_splash="LATENCY_ACTION_CAST_SPLASH",tK.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",tK.channels="LATENCY_ACTION_CHANNELS",tK.chips="LATENCY_ACTION_CHIPS",tK.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",tK.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
tK.editor="LATENCY_ACTION_EDITOR",tK.embed="LATENCY_ACTION_EMBED",tK.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",tK.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",tK.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",tK.explore="LATENCY_ACTION_EXPLORE",tK.favorites="LATENCY_ACTION_FAVORITES",tK.home="LATENCY_ACTION_HOME",tK.inboarding="LATENCY_ACTION_INBOARDING",tK.landing="LATENCY_ACTION_LANDING",tK.learning="LATENCY_ACTION_LEARNING",
tK.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",tK.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",tK.library="LATENCY_ACTION_LIBRARY",tK.live="LATENCY_ACTION_LIVE",tK.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",tK.management="LATENCY_ACTION_MANAGEMENT",tK.mini_app="LATENCY_ACTION_MINI_APP_PLAY",tK.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",tK.onboarding="LATENCY_ACTION_ONBOARDING",tK.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
tK.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",tK.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",tK.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",tK.prebuffer="LATENCY_ACTION_PREBUFFER",tK.prefetch="LATENCY_ACTION_PREFETCH",tK.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",tK.profile_switcher="LATENCY_ACTION_LOGIN",tK.projects="LATENCY_ACTION_PROJECTS",tK.reel_watch="LATENCY_ACTION_REEL_WATCH",tK.results="LATENCY_ACTION_RESULTS",tK.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
tK.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",tK.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",tK.review="LATENCY_ACTION_REVIEW",tK.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",tK.search_ui="LATENCY_ACTION_SEARCH_UI",tK.search_suggest="LATENCY_ACTION_SUGGEST",tK.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",tK.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",tK.seek="LATENCY_ACTION_PLAYER_SEEK",tK.settings="LATENCY_ACTION_SETTINGS",tK.store="LATENCY_ACTION_STORE",
tK.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",tK.tenx="LATENCY_ACTION_TENX",tK.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",tK.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",tK.watch="LATENCY_ACTION_WATCH",tK.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",tK["watch,watch7"]="LATENCY_ACTION_WATCH",tK["watch,watch7_html5"]="LATENCY_ACTION_WATCH",tK["watch,watch7ad"]="LATENCY_ACTION_WATCH",tK["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",tK.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
tK.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",tK.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",tK.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",tK.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",tK.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",tK.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",tK.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",tK),ebI=0;var gDZ=function(C,F){X2.call(this,1,arguments);this.timer=F};
_.O(gDZ,X2);var Puw=new AR5("aft-recorded",gDZ);var XfW=_.VT.ytLoggingGelSequenceIdObj_||{};_.zn("ytLoggingGelSequenceIdObj_",XfW);var aj=_.VT.ytLoggingLatencyUsageStats_||{};_.zn("ytLoggingLatencyUsageStats_",aj);var kX=function(){this.cleanupJob=0},SR9=function(){kX.instance||(kX.instance=new kX);
return kX.instance};
_.n=kX.prototype;_.n.baseline=function(C,F,G){Uf(this,"baseline_"+C)||_.q1("latencyActionBaselined",{clientActionNonce:C},{timestamp:F,cttAuthInfo:G})};
_.n.tick=function(C,F,G,V){Uf(this,"tick_"+C+"_"+F)||_.q1("latencyActionTicked",{tickName:C,clientActionNonce:F},{timestamp:G,cttAuthInfo:V})};
_.n.info=function(C,F,G){var V=Object.keys(C).join("");Uf(this,"info_"+V+"_"+F)||(C=Object.assign({},C),C.clientActionNonce=F,_.q1("latencyActionInfo",C,{cttAuthInfo:G}))};
_.n.jspbInfo=function(C,F,G){for(var V="",J=0;J<x_(C).length;J++)x_(C)[J]!==void 0&&(V=J===0?V.concat(""+J):V.concat("_"+J));Uf(this,"info_"+V+"_"+F)||(_.fA(C,2,F),F={cttAuthInfo:G},G=_.y("jspb_sparse_encoded_pivot")?new h5([{}]):new h5,_.X6(G,7,wYu,C),wfi("latencyActionInfo",G,F))};
_.n.span=function(C,F,G){var V=Object.keys(C).join("");Uf(this,"span_"+V+"_"+F)||(C.clientActionNonce=F,_.q1("latencyActionSpan",C,{cttAuthInfo:G}))};
var Uf=function(C,F){aj[F]=aj[F]||{count:0};var G=aj[F];G.count++;G.time=(0,_.Et)();C.cleanupJob||(C.cleanupJob=_.c8(_.gT,function(){var V=(0,_.Et)(),J;for(J in aj)aj[J]&&V-aj[J].time>6E4&&delete aj[J];C&&(C.cleanupJob=0)},5E3));
return G.count>5?(G.count===6&&Math.random()*1E5<1&&(G=new _.Ay("CSI data exceeded logging limit with key",F.split("_")),F.indexOf("plev")>=0||_.Yw(G)),!0):!1};var yES,Zem;yES=window;Zem=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.IQ=yES.performance||yES.mozPerformance||yES.msPerformance||yES.webkitPerformance||new Zem;var qRI=!1,Bfi=!1,RbZ=(0,_.ck)(_.IQ.clearResourceTimings||_.IQ.webkitClearResourceTimings||_.IQ.mozClearResourceTimings||_.IQ.msClearResourceTimings||_.IQ.oClearResourceTimings||_.t8,_.IQ);var N4E=window;N4E.ytcsi&&(N4E.ytcsi.infoGel=_.UZ,N4E.ytcsi.tick=_.NV);var FoZ=function(C){X2.call(this,1,arguments);this.csn=C};
_.O(FoZ,X2);var q6Z=new AR5("screen-created",FoZ),kzs=[],jjZ=apZ,UJf=0,Sj=new Map,GzS=new Map,Vlq=new Map;var duZ=Symbol("Ef"),sZ=new WeakMap;var H0=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},ba=function(){H0.instance||(H0.instance=new H0);
return H0.instance};
_.n=H0.prototype;_.n.setClient=function(C){this.client=C};
_.n.JSC$12726_newScreen=function(){this.clear();this.csn=_.ZQ()};
_.n.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.n.reportShown=function(C,F,G){var V=this.JSC$12726_getTrackingParams(C),J=C.visualElement?C.visualElement:V;F=this.shownElements.has(J);var b=this.visibleState.get(J);this.shownElements.add(J);this.visibleState.set(J,!0);C.impressionLog&&!F&&C.impressionLog();if(V||C.visualElement)if(G=Oeo(this,C,G))if(J=XXE(this,C),lW(this,C)||J){V=C.visualElement?C.visualElement:_.zS(V);var z=C.interactionLoggingClientData;J||F?lW(this,C)&4?b||Qjo(this.client,G,V,z):lW(this,C)&1&&!F&&nXw(this.client,G,V,z):nXw(this.client,
G,V,z)}};
_.n.reportHidden=function(C,F,G){var V=this.JSC$12726_getTrackingParams(C),J=C.visualElement?C.visualElement:V;F=this.hiddenElements.has(J);var b=this.visibleState.get(J);this.hiddenElements.add(J);this.visibleState.set(J,!1);if(b===!1)return!0;if(!V&&!C.visualElement)return!1;G=Oeo(this,C,G);if(!G||!lW(this,C)&&XXE(this,C))return!1;V=C.visualElement?C.visualElement:_.zS(V);lW(this,C)&8?Ipw(this.client,G,V):lW(this,C)&2&&!F&&(C=this.client,F=MV({cttAuthInfo:NU(G)||void 0},G),V={csn:G,ve:V.getAsJson(),
eventType:2},G==="UNDEFINED_CSN"?BA("visualElementHidden",F,V):C?xw("visualElementHidden",V,C,F):_.q1("visualElementHidden",V,F));return!0};
_.n.JSC$12726_getTrackingParams=function(C){var F=this.getData(C),G,V;if(_.y("il_use_view_model_logging_context")&&(F==null?0:(G=F.context)==null?0:(V=G.loggingContext)==null?0:V.loggingDirectives))return F.context.loggingContext.loggingDirectives.trackingParams||"";var J,b;if(F==null?0:(J=F.rendererContext)==null?0:(b=J.loggingContext)==null?0:b.loggingDirectives)return F.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(F==null?0:F.loggingDirectives)return F.loggingDirectives.trackingParams||
"";var z;return((z=C.veContainer)==null?0:z.trackingParams)?C.veContainer.trackingParams:(F==null?void 0:F.trackingParams)||""};
_.n.JSC$12726_elementShouldLogGesture=function(C,F){C=this.getData(C);return!!((Math.floor(Number(C&&C.loggingDirectives&&C.loggingDirectives.gestures&&C.loggingDirectives.gestures.types||""))||0)&F)};
_.n.JSC$12726_getNearestParentVe=function(C){var F=this.JSC$12726_getTrackingParams(C);return C.visualElement?C.visualElement:F?_.zS(F):C.parentElement?this.JSC$12726_getNearestParentVe(C.parentElement):null};
var Oeo=function(C,F,G){var V=_.ZQ(G);return C.csn===null||V===C.csn||G?V:(C=new _.Ay("VisibilityLogger called before newScreen",{caller:F.tagName,previous_csn:C.csn,current_csn:V}),_.Yw(C),null)};
H0.prototype.getData=function(C){var F,G=C.data||((F=C.props)==null?void 0:F.data);if(!G||C.isWebComponentWrapper){var V;G=(V=sZ.get(C))==null?void 0:V[duZ]}return G};
var XXE=function(C,F){var G;return!((G=C.getData(F))==null||!G.loggingDirectives)},lW=function(C,F){C=C.getData(F);
return Math.floor(Number(C&&C.loggingDirectives&&C.loggingDirectives.visibility&&C.loggingDirectives.visibility.types||""))||1};var ys;ys=function(){};
_.GS=function(){ys.instance||(ys.instance=new ys);return ys.instance};
ys.prototype.setClient=function(C){_.pW(ba().setClient).bind(ba())(C)};
_.wXy=function(){_.GS();_.pW(ba().JSC$12726_newScreen).bind(ba())()};
ys.prototype.clear=function(){_.pW(ba().clear).bind(ba())()};
ys.prototype.reportShown=function(C,F,G){_.pW(ba().reportShown).bind(ba())(C,F,G)};
ys.prototype.reportHidden=function(C,F,G){return _.pW(ba().reportHidden).bind(ba())(C,F,G)};
var xBS=function(C,F){return _.pW(ba().JSC$12726_getTrackingParams).bind(ba())(F)},xuf=function(C,F){return _.pW(ba().JSC$12726_getNearestParentVe).bind(ba())(F)};var Zp,M7P;Zp=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};
_.ia=function(){Zp.instance||(Zp.instance=new Zp);return Zp.instance};
Zp.prototype.setClient=function(C){this.client=C};
M7P=function(C,F,G){G=G===void 0?{}:G;_.pW(function(){var V,J,b,z=((V=_.Z(F==null?void 0:F.commandMetadata,_.GU))==null?void 0:V.rootVe)||((J=_.Z(F==null?void 0:F.commandMetadata,Qju))==null?void 0:(b=J.screenVisualElement)==null?void 0:b.uiType);if(z){V=_.Z(F==null?void 0:F.commandMetadata,iKG);if(V==null?0:V.parentTrackingParams){var Q=_.zS(V.parentTrackingParams);if(V.parentCsn)var E=V.parentCsn}else G.clickedVisualElement?Q=G.clickedVisualElement:F.clickTrackingParams&&(Q=_.zS(F.clickTrackingParams));
a:{V=_.Z(F,_.eT);J=_.Z(F,JZI);if(V){if(J=QdW(V,"VIDEO")){V={token:J,videoId:V.videoId};break a}}else if(J&&(V=QdW(J,"PLAYLIST"))){V={token:V,playlistId:J.playlistId};break a}V=void 0}G=Object.assign({},{cttAuthInfo:V,parentCsn:E},G);if(_.y("expectation_logging")){var t;G.loggingExpectations=((t=_.Z(F==null?void 0:F.commandMetadata,Qju))==null?void 0:t.loggingExpectations)||void 0}_.NJ(C,z,Q,G)}else _.Yw(new _.Ay("Error: Trying to create a new screen without a rootVeType",F))})()};
_.NJ=function(C,F,G,V){V=V===void 0?{}:V;_.pW(function(){ljE.includes(F)||(_.Yw(new _.Ay("createClientScreen() called with a non-page VE",F)),F=83769);V.isHistoryNavigation||(C.forwardHistoryStack=[],C.backHistoryStack.push({rootVe:F,key:V.key||""}));C.graftQueue=[];C.stateChangedQueue=[];V.dataPromises?SCG(C,F,G,V):L0O(C,F,G,V)})()};
_.B4G=function(C,F,G){G=G===void 0?0:G;_.pW(function(){F.then(function(V){C.pendingScreenCreation.has(G)&&C.pendingScreenFn&&C.pendingScreenFn();var J=_.ZQ(G),b=_.lm(G);if(J&&b){var z={automatedLogEventSource:3},Q;(V==null?0:(Q=V.response)==null?0:Q.trackingParams)&&Ll(C.client,J,b,_.zS(V.response.trackingParams),!1,z);var E;(V==null?0:(E=V.playerResponse)==null?0:E.trackingParams)&&Ll(C.client,J,b,_.zS(V.playerResponse.trackingParams),!1,z)}})})()};
Zp.prototype.graftServerVe=function(C,F,G){var V=this;return _.pW(function(){var J=_.zS(C);_.Of(V,J,F,G);return J})()};
_.sGs=function(C,F,G,V){return _.y("enable_client_ve_spec")&&F.clientVeSpec?(F=_.m2(F.clientVeSpec.uiType,void 0,F.clientVeSpec.elementIndex,F.clientVeSpec.clientYoutubeData,void 0,F),_.Of(C,F,G,V)?F:null):F.trackingParams?C.graftServerVe(F.trackingParams,G,V):null};
_.Vp=function(C,F,G,V){return _.pW(function(){if(!F.veType)return _.R1(new _.Ay("Error: Trying to graft a client VE without a veType.")),null;if(F.visibilityTypes){var J=F.visibilityTypes.reduce(function(b,z){return b|z});
J={visibility:{types:String(J)}}}J=_.m2(F.veType,F.visualElement,F.elementIndex,F.clientYouTubeData,void 0,J);return _.Of(C,J,G,V)?J:null})()};
_.Of=function(C,F,G,V){V=V===void 0?0:V;return _.pW(function(){if(C.pendingScreenCreation.has(V))return C.graftQueue.push([F,G]),!0;var J=_.ZQ(V),b=G||_.lm(V);if(J&&b){if(_.y("combine_ve_grafts")){var z=C.cachedVisualElements.get(b.toString());z?z.push(F):(C.cachedRootVisualElements.set(b.toString(),b),C.cachedVisualElements.set(b.toString(),[F]));C.attachTimeout||(C.attachTimeout=_.c8(_.gT,function(){vFy(C,J)},1200))}else Ll(C.client,J,b,F);
return!0}return!1})()};
_.Xu=function(C,F,G){G=G===void 0?0:G;var V=C.recurringGrafts.get(G)||new Map;if(_.y("smarter_ve_dedupping"))for(var J=Array.from(V.keys()),b=0;b<J.length;b++){var z=void 0,Q=void 0;var E=F;var t=J[b];t.isClientVe()&&E.isClientVe()?(z=E.getAsJson(),Q=t.getAsJson(),E=z.veType!==Q.veType||z.elementIndex!==Q.elementIndex||z.dataElement!==Q.dataElement||E.getLoggingDirectives()!==t.getLoggingDirectives()?!1:!0):E=t.veData.trackingParams!==void 0&&E.veData.trackingParams!==void 0?((Q=E.veData)==null?void 0:
Q.trackingParams)===((z=t.veData)==null?void 0:z.trackingParams):!1;if(E)return}else if(V.has(F))return;V.set(F,void 0);C.recurringGrafts.set(G,V);_.ZQ(G)==="UNDEFINED_CSN"||C.pendingScreenCreation.has(G)||_.Of(C,F,void 0,G)};
_.wo=function(C,F,G,V){V=_.ZQ(V===void 0?0:V);if(!V)return!1;WoS(C.client,V,F,G);return!0};
_.MJ=function(C,F,G,V){if(!F)return!1;V=_.ZQ(V===void 0?0:V);if(!V)return!1;WoS(C.client,V,_.zS(F),G);return!0};
_.LZ=function(C,F){var G=F.getScreenLayer&&F.getScreenLayer();if(F.visualElement)return _.wo(C,F.visualElement,void 0,G);F=xBS(_.GS(),F);return _.MJ(C,F,void 0,G)};
Zp.prototype.clickCommand=function(C,F,G){return _.MJ(this,C.clickTrackingParams,F,G===void 0?0:G)};
Zp.prototype.stateChanged=function(C,F,G){this.visualElementStateChanged(_.zS(C),F,G===void 0?0:G)};
Zp.prototype.visualElementStateChanged=function(C,F,G){G=G===void 0?0:G;G===0&&this.pendingScreenCreation.has(G)?this.stateChangedQueue.push([C,F]):this.logStateChanged(C,F,G)};
Zp.prototype.logStateChanged=function(C,F,G){G=G===void 0?0:G;var V=_.ZQ(G);C=C||_.lm(G);return V&&C?(tlA(this.client,V,C,F),!0):!1};
var SCG=function(C,F,G,V){V=V===void 0?{}:V;C.pendingScreenCreation.add(V.layer||0);C.pendingScreenFn=function(){L0O(C,F,G,V);var z=_.lm(V.layer);if(z){for(var Q=_.u(C.graftQueue),E=Q.next();!E.done;E=Q.next())E=E.value,_.Of(C,E[0],E[1]||z,V.layer);z=_.u(C.stateChangedQueue);for(Q=z.next();!Q.done;Q=z.next())Q=Q.value,C.logStateChanged(Q[0],Q[1])}};
G||_.ZQ(V.layer)||C.pendingScreenFn();if(V.dataPromises)for(var J=_.u(V.dataPromises),b=J.next();!b.done;b=J.next())_.B4G(C,b.value,V.layer);else _.gD(Error("Ff"))},L0O=function(C,F,G,V){V=V===void 0?{}:V;
var J=void 0;V.layer||(V.layer=0);J=V.parentLayer!==void 0?V.parentLayer:V.layer;var b=_.ZQ(J);J=_.lm(J);var z=G||J,Q;z&&(V.parentCsn!==void 0?Q={clientScreenNonce:V.parentCsn,visualElement:z}:b&&b!=="UNDEFINED_CSN"&&(Q={clientScreenNonce:b,visualElement:z}));var E,t=_.TF("EVENT_ID");b==="UNDEFINED_CSN"&&t&&(E={servletData:{serializedServletEventId:t}});_.y("combine_ve_grafts")&&b&&vFy(C,b);_.y("no_client_ve_attach_unless_shown")&&z&&b&&bQf(z,b);try{var k=_.iQi(C.client,F,Q,V.csnToClone,V.cttAuthInfo,
E,V.implicitGestureType,void 0,V.loggingExpectations)}catch(l){_.Tf(l,{rootVeType:F,rootVe:J,parentVisualElement:G,currentCsn:b,parentEl:Q,csnToClone:V.csnToClone});_.gD(l);return}_.O5(k,F,V.layer,V.cttAuthInfo);b&&b!=="UNDEFINED_CSN"&&J&&!WwA(b)&&Ipw(C.client,b,J,!0);C.backHistoryStack[C.backHistoryStack.length-1]&&!C.backHistoryStack[C.backHistoryStack.length-1].csn&&(C.backHistoryStack[C.backHistoryStack.length-1].csn=k||"");_.UZ({clientScreenNonce:k});_.wXy();var U=_.lm(V.layer);b&&b!=="UNDEFINED_CSN"&&
U&&(_.y("web_mark_root_visible")||_.y("music_web_mark_root_visible"))&&_.h3(k,U);C.pendingScreenCreation.delete(V.layer||0);C.pendingScreenFn=void 0;var H;(H=C.recurringGrafts.get(V.layer))==null||H.forEach(function(l,N){l?_.Of(C,N,l,V.layer):U&&_.Of(C,N,U,V.layer)});
fjE(C)},fjE=function(C){for(var F=0;F<C.afterNewScreenOneOffJobs.length;F++){var G=C.afterNewScreenOneOffJobs[F];
try{G()}catch(V){_.gD(V)}}for(F=C.afterNewScreenOneOffJobs.length=0;F<C.afterNewScreenRecurringJobs.length;F++){G=C.afterNewScreenRecurringJobs[F];try{G()}catch(V){_.gD(V)}}},vFy=function(C,F){if(F===void 0)for(var G=IwZ(),V=0;V<G.length;V++)G[V]!==void 0&&vFy(C,G[V]);
else C.cachedVisualElements.forEach(function(J,b){(b=C.cachedRootVisualElements.get(b))&&JKT(C.client,F,b,J)}),C.cachedVisualElements.clear(),C.cachedRootVisualElements.clear(),C.attachTimeout=void 0};var Sl=function(C){C=C===void 0?{layer:0}:C;this.hasRun=!1;this.createScreenConfig=C;C={};this.wOX=(C.response=!1,C.playerResponse=!1,C)};
_.O(Sl,W0);Sl.prototype.validate=function(C){return!(!C.data||!C.data.response&&!C.data.playerResponse)};
Sl.prototype.handle=function(C){var F=_.ia(),G=this.createScreenConfig.layer;C.data.response&&C.data.response.trackingParams&&!this.wOX.response&&(F.graftServerVe(C.data.response.trackingParams,void 0,G),this.wOX.response=!0);C.data.playerResponse&&C.data.playerResponse.trackingParams&&!this.wOX.playerResponse&&(F.graftServerVe(C.data.playerResponse.trackingParams,void 0,G),this.wOX.playerResponse=!0)};var LQ=function(){this.pL=_.hM();this.qr=[];this.tCb=0};
LQ.prototype.processChunk=function(C){if(C){for(var F=_.u(this.qr),G=F.next();!G.done;G=F.next())G=G.value,G.validate(C)&&(G.handle(C),G.hasRun=!0);_.NV("np"+this.tCb);this.tCb++}};var qV={initialized:!1,nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},OQw={rootSpan:function(){return qV.stack[0]}};var cE2=function(){var C=hC8;this.observers=[];this.value=C};
_.n=cE2.prototype;_.n.subscribe=function(C){var F=this;if(C.idx!=null)throw Error("Hf");C.idx=this.observers.length;this.observers.push(C);return function(){var G=F.observers[F.observers.length-1];F.observers[C.idx]=G;G.idx=C.idx;F.observers.pop()}};
_.n.update=function(C){this.value=C(this.value);this.notify()};
_.n.mutate=function(C){C(this.value);this.notify()};
_.n.set=function(C){this.value=C;this.notify()};
_.n.notify=function(){for(var C=_.u(this.observers),F=C.next();!F.done;F=C.next()){F=F.value;try{F(this.value)}catch(G){}}};var uQS,AEo,xnr;_.Cy=function(C,F,G,V,J,b,z,Q){z=z===void 0?[]:z;Q=Q===void 0?[]:Q;this.buildCommandPayload=C;this.navigate=F;this.handleServiceRequest=G;this.sendAction=V;this.JSC$12773_screenManager=J;this.commandResolverMap=b;this.autoLogResolverAllowlist=z;this.metaCommandClickLoggingDenylist=Q;this.pendingCommands=new Set;this.isTracingEnabled=!1;AEo(this)};
uQS=function(C,F,G,V){var J=oEs,b=rAE,z=_.ia(),Q=eCG;G=G===void 0?[]:G;V=V===void 0?[]:V;_.Cy.instance=new _.Cy(C,F,J,b,z,Q,G,V)};
AEo=function(C){if(!C.isTracingEnabled&&ZQ9("command")){var F=C.resolveCommand;C.resolveCommand=function(G,V){a:{for(J in G)if(Object.prototype.hasOwnProperty.call(G,J)){var J={commandType:J};break a}J={}}return X09("command",J,F.bind(this,G,V))};
C.isTracingEnabled=!0}};
xnr=function(C,F,G){if(!C.commandResolverMap)return!1;var V=Bo9(F,C.commandResolverMap);return V?((C.autoLogResolverAllowlist.some(function(J){return!!_.Z(F,J)})||(G==null?0:G.forceClickLogging))&&dn$(C,F,G),V instanceof Promise?V.then(function(J){J.resolve(F,G)}):V.resolve(F,G),!0):!1};
_.Cy.prototype.resolveCommand=function(C,F){var G=this,V=s_S(C);if(xnr(this,C,F))return!0;if(V)return qC2(this,C,F);if(!this.buildCommandPayload)return MlS(C,"Unhandled command by buildCommandPayload"),!1;var J=this.buildCommandPayload(C,F);if(F==null?0:F.commandController)J.commandController=F.commandController;if(J.type===0){if(!this.navigate)return SfT(C,"navigate"),!1;if(!PfS(J.command))return MlS(C,"Page requests need to specify a url"),!1;_.y("logging_avoid_blocking_during_navigation")&&_.OZT().transition("application_navigating");
C=this.navigate(J)||[];t_E(C).then(function(){G.pendingCommands.delete(J.command)});
return!0}if(J.type===1){if(!this.handleServiceRequest)return SfT(C,"handleServiceRequest"),!1;(F==null?0:F.forceClickLogging)&&dn$(this,J.command,F);C=this.handleServiceRequest(J);t_E(C).then(function(){G.pendingCommands.delete(J.command)});
return!0}if(J.type===2){if(!this.sendAction)return SfT(C,"sendAction"),!1;dn$(this,J.command,F);this.sendAction(J);return!0}return!1};
var dn$=function(C,F,G){if((G==null||!G.disableClickTracking)&&C.JSC$12773_screenManager)if(F.clickTrackingParams&&_.y("log_click_with_layer_from_element_in_command_handler")){var V;G=G==null?void 0:(V=G.form)==null?void 0:V.element;C.JSC$12773_screenManager.clickCommand(F,null,G&&G.getScreenLayer&&G.getScreenLayer())}else F.clickTrackingParams?C.JSC$12773_screenManager.clickCommand(F):!_.y("disable_clicked_visual_element_in_command_handler")&&(G==null?0:G.clickedVisualElement)&&_.wo(C.JSC$12773_screenManager,
G.clickedVisualElement)},s_S=function(C){var F=!!_.Z(C,_.Cl),G;
C=((G=_.Z(C,_.FI))==null?void 0:G.signal)==="CLIENT_SIGNAL";return F||C},qC2=function(C,F,G){var V=_.Z(F,_.Cl);
if(V)var J=(V==null?void 0:V.commands)||[];else{var b;if(((b=_.Z(F,_.FI))==null?void 0:b.signal)==="CLIENT_SIGNAL"){var z;J=((z=_.Z(F,_.FI))==null?void 0:z.actions)||[]}}if(J){(V=gFu(C,J))&&dn$(C,F,G);F=_.u(J);for(J=F.next();!J.done;J=F.next()){J=J.value;try{var Q=Object.assign({},G);V&&(Q.disableClickTracking=!0);C.resolveCommand(J,Q)}catch(E){E instanceof Error&&_.gD(E)}}return!0}MlS(F,"Could not handle the meta command");return!1},gFu=function(C,F){return F.every(function(G){return C.metaCommandClickLoggingDenylist.some(function(V){return!!_.Z(G,
V)})})},PfS=function(C){var F;
return!((F=_.Z(C==null?void 0:C.commandMetadata,_.GU))==null||!F.url)};var B0=function(){W0.apply(this,arguments)};
_.O(B0,W0);B0.prototype.validate=function(C){var F,G;return!this.hasRun&&!!((F=C.data.response)==null?0:(G=F.onResponseReceivedEndpoints)==null?0:G.length)};
B0.prototype.handle=function(C){var F=_.Cy.instance;C=_.u(C.data.response.onResponseReceivedEndpoints);for(var G=C.next();!G.done;G=C.next())F.resolveCommand(G.value)};var RCG,YCm,T4S;
RCG=function(){this.companionCanvasActivation=this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.mE();this.navigatingAwayFromWatchDeletedVideo=!1;
this.currentEndpoint=null;this.isVideoPlaying=!1};
_.v0=function(){YCm||(YCm=new RCG);return YCm};
T4S=function(){var C=_.v0();C.miniplayerButtonActivation=!1;C.userActivation=!1;C.playlistWatchPageActivation=!1;C.productDetailsPageActivation=!1;C.miniAppPageActivation=!1;C.playablesDestPageActivation=!1;C.lockupActivation=!1;C.showMiniplayerCommandActivation=!1;C.playlistSuggestionsShelfActivation=!1;C.mediaSessionPipActivation=!1;C.watchPipActivation=!1;C.watchWhileActivation=!1;C.shortsPipActivation=!1;C.companionCanvasActivation=!1};
_.oFu=function(){var C=_.v0(),F=C.mediaSessionPipActivation,G=C.watchPipActivation,V=C.watchWhileActivation,J=C.playlistWatchPageActivation,b=C.lockupActivation,z=C.showMiniplayerCommandActivation,Q=C.navigatingAwayFromWatchDeletedVideo,E=C.shortsPipActivation,t=C.playlistSuggestionsShelfActivation,k=C.productDetailsPageActivation,U=C.miniAppPageActivation,H=C.playablesDestPageActivation,l=C.companionCanvasActivation;return!C.miniplayerButtonActivation&&!J&&!t&&!k&&!U&&!H&&!b&&!z&&!F&&!G&&!V&&!E&&
!l||Q};var PUs;_.fQ=_.gh("FEwhat_to_watch","/",3854);_.gmi=_.gh("FEdownloads","/feed/downloads",42352);PUs=_.gh("FEmusic_offline","browse/FEmusic_offline",42352);var x2=function(C,F){F=F===void 0?[]:F;var G=G===void 0?[]:G;F=YVW.apply(null,[T8S.apply(null,_.da(F))].concat(_.da(G)));this.store=DEZ(C,void 0,F)};
x2.prototype.getState=function(){return this.store.getState()};
x2.prototype.dispatch=function(C){return this.store.dispatch(C)};
x2.prototype.subscribe=function(C){return this.store.subscribe(C)};
x2.prototype.replaceReducer=function(C){return this.store.replaceReducer(C)};
x2.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.hK=function(C,F,G){var V=F(C.getState());return C.subscribe(function(){var J=F(C.getState());if(J!==V){var b=V;V=J;G(J,b)}})};var yhs;_.z3=function(C,F,G){return _.rh({type:"REPLACE_ENTITY",payload:{entityPayload:G,entityType:C,key:F}})};
yhs=function(C){return _.rh({type:"REPLACE_ENTITIES",payload:C})};
_.kZ=function(C,F,G,V){return _.rh({type:"UPDATE_ENTITY",payload:{entityPayload:G,entityType:C,key:F,mergeOption:V}})};var R$w=function(C){var F=this;C=C===void 0?[]:C;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;C.forEach(function(G){F.append(G)})};
_.n=R$w.prototype;_.n.getLength=function(){return this.totalLength};
_.n.append=function(C){var F=this.arrays.length===0?!1:(F=this.arrays[this.arrays.length-1])&&F.buffer===C.buffer&&F.byteOffset+F.length===C.byteOffset;F?(F=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(F.buffer,F.byteOffset,F.length+C.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(C);this.totalLength+=C.length};
_.n.split=function(C){for(var F=new R$w,G=new R$w,V=_.u(this.arrays),J=V.next();!J.done;J=V.next())J=J.value,C>=J.length?(F.append(J),C-=J.length):C?(F.append(new Uint8Array(J.buffer,J.byteOffset,C)),G.append(new Uint8Array(J.buffer,J.byteOffset+C,J.length-C)),C=0):G.append(J);return{headView:F,tailView:G}};
_.n.isFocused=function(C){return C>=this.arrayPos&&C<this.arrayPos+this.arrays[this.arrayIdx].length};
_.n.focus=function(C){if(!this.isFocused(C))for(C<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=C&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var rE$=function(C,F){C.focus(F);return C.arrays[C.arrayIdx][F-C.arrayPos]};(function(){var C=function(V){return new Uint8Array(V)},F=function(V){for(var J=new Uint8Array(V.length),b=0;b<V.length;b++)J[b]=V[b];
return J},G=new Uint8Array([1]);
return G.length===1&&G[0]===1?C:F})();
var dJq=Array(1024),e$Z=window.TextDecoder?new TextDecoder:void 0,sjW=window.TextEncoder?new TextEncoder:void 0;var gXq=function(C){this.arrayView=C;this.pos=0;this.pendingTagAndType=-1},Kl=function(C){var F=rE$(C.arrayView,C.pos);
++C.pos;if(F<128)return F;for(var G=F&127,V=1;F>=128;)F=rE$(C.arrayView,C.pos),++C.pos,V*=128,G+=(F&127)*V;return G},Yfs=function(C,F){var G=C.pendingTagAndType;
for(C.pendingTagAndType=-1;C.pos+1<=C.arrayView.totalLength;){G<0&&(G=Kl(C));var V=G>>3,J=G&7;if(V===F)return!0;if(V>F){C.pendingTagAndType=G;break}G=-1;switch(J){case 0:Kl(C);break;case 1:C.pos+=8;break;case 2:V=Kl(C);C.pos+=V;break;case 5:C.pos+=4}}return!1};var oXS=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=PWA(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},my=function(C,F){F=C.pos+F;
if(!(C.buf.length>=F)){for(var G=C.buf.length*2;G<F;)G*=2;C.buf=PWA(G,C.wasm,C.buf.subarray(0,C.pos));C.view=new DataView(C.buf.buffer,C.buf.byteOffset,C.buf.byteLength)}},pl=function(C,F){if(F>268435455){my(C,4);
for(var G=F&1073741823,V=0;V<4;V++)C.view.setUint8(C.pos,G&127|128),G>>=7,C.pos+=1;F=Math.floor(F/268435456)}for(my(C,4);F>127;)C.view.setUint8(C.pos,F&127|128),F>>=7,C.pos+=1;C.view.setUint8(C.pos,F);C.pos+=1};for(var rKI={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,contextNoteUserRatingEntityPayload:576,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,
emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,
mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,
musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,
suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},Tos={},K02=_.u(Object.entries(rKI)),Dny=K02.next();!Dny.done;Dny=K02.next()){var pX2=_.u(Dny.value),mnE=pX2.next().value,COr=pX2.next().value,jSu=mnE,FZu=COr;FZu&&(Tos[FZu]=jSu)};var DJB=function(C,F){C=C===void 0?{}:C;switch(F.type){case "ENTITY_LOADED":return F.payload.reduce(function(V,J){var b,z=(b=J.options)==null?void 0:b.persistenceOption;if(z&&z!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&z!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return V;if(!J.entityKey)return _.gD(Error("Jf")),V;if(J.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!J.payload)return J=new _.Ay("REPLACE entity mutation is missing a payload",{entityKey:J.entityKey}),_.gD(J),V;var Q=(0,_.xf.getAnyKey)(J.payload);
return mJE(V,Q,J.entityKey,J.payload[Q])}if(J.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{J=J.entityKey;try{var E=_.D8(J).entityType;Q=mJE(V,E,J);break a}catch(U){if(U instanceof Error){J=new _.Ay("Failed to deserialize entity key",{entityKey:J,originalMessage:U.message});_.gD(J);Q=V;break a}throw U;}Q=void 0}return Q}if(J.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!J.payload)return J=new _.Ay("UPDATE entity mutation is missing a payload",{entityKey:J.entityKey}),_.gD(J),V;Q=(0,_.xf.getAnyKey)(J.payload);
var t,k;return CMZ(V,Q,J.entityKey,J.payload[Q],(t=J.fieldMask)==null?void 0:(k=t.mergeOptions)==null?void 0:k.repeatedFieldsMergeOption)}return V},C);
case "REPLACE_ENTITY":var G=F.payload;return mJE(C,G.entityType,G.key,G.entityPayload);case "REPLACE_ENTITIES":return Object.keys(F.payload).reduce(function(V,J){var b=F.payload[J];return Object.keys(b).reduce(function(z,Q){return mJE(z,J,Q,b[Q])},V)},C);
case "UPDATE_ENTITY":return G=F.payload,CMZ(C,G.entityType,G.key,G.entityPayload,G.mergeOption);default:return C}};var jmS;var Gmr=!1,c0,AK,el,xX,sf,V0G=function(C){_.hV.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!Gmr){var F,G=new Uint8Array(256),V=new Uint8Array(256);var J=1;for(F=0;F<256;F++)G[J]=F,V[F]=J,J^=J<<1^(J>>7&&283);c0=new Uint8Array(256);AK=F0(256);el=F0(256);xX=F0(256);sf=F0(256);for(var b=0;b<256;b++){J=b?V[255^G[b]]:0;J^=J<<1^J<<2^J<<3^J<<4;J=J&255^J>>>8^99;c0[b]=J;F=J<<1^(J>>7&&283);var z=F^J;AK[b]=F<<24|J<<16|J<<8|z;el[b]=z<<24|AK[b]>>>8;xX[b]=J<<24|el[b]>>>
8;sf[b]=J<<24|xX[b]>>>8}Gmr=!0}J=F0(44);for(G=0;G<4;G++)J[G]=C[4*G]<<24|C[4*G+1]<<16|C[4*G+2]<<8|C[4*G+3];for(V=1;G<44;G++)C=J[G-1],G%4||(C=(c0[C>>16&255]^V)<<24|c0[C>>8&255]<<16|c0[C&255]<<8|c0[C>>>24],V=V<<1^(V>>7&&283)),J[G]=J[G-4]^C;this.key=J};
_.O(V0G,_.hV);
V0G.prototype.encrypt=function(C){var F=C.length;C=new Uint8Array(C.buffer.slice(C.byteOffset,C.byteOffset+F));for(var G=this.cipherBlock,V=0;V<F&&this.blockOffset<16;)C[V++]^=G[this.blockOffset++];for(var J=F-(F-V)%16;V<J;)i6E(this),C[V++]^=G[0],C[V++]^=G[1],C[V++]^=G[2],C[V++]^=G[3],C[V++]^=G[4],C[V++]^=G[5],C[V++]^=G[6],C[V++]^=G[7],C[V++]^=G[8],C[V++]^=G[9],C[V++]^=G[10],C[V++]^=G[11],C[V++]^=G[12],C[V++]^=G[13],C[V++]^=G[14],C[V++]^=G[15];if(V<F)for(i6E(this),this.blockOffset=0;V<F;)C[V++]^=
G[this.blockOffset++];return C};
var i6E=function(C){for(var F=C.key,G=C.counter[0]^F[0],V=C.counter[1]^F[1],J=C.counter[2]^F[2],b=C.counter[3]^F[3],z=3;z>=0&&!(C.counter[z]=-~C.counter[z]);z--);for(var Q,E,t=4;t<40;)z=AK[G>>>24]^el[V>>16&255]^xX[J>>8&255]^sf[b&255]^F[t++],Q=AK[V>>>24]^el[J>>16&255]^xX[b>>8&255]^sf[G&255]^F[t++],E=AK[J>>>24]^el[b>>16&255]^xX[G>>8&255]^sf[V&255]^F[t++],b=AK[b>>>24]^el[G>>16&255]^xX[V>>8&255]^sf[J&255]^F[t++],G=z,V=Q,J=E;C=C.cipherBlock;z=F[40];C[0]=c0[G>>>24]^z>>>24;C[1]=c0[V>>16&255]^z>>16&255;C[2]=
c0[J>>8&255]^z>>8&255;C[3]=c0[b&255]^z&255;z=F[41];C[4]=c0[V>>>24]^z>>>24;C[5]=c0[J>>16&255]^z>>16&255;C[6]=c0[b>>8&255]^z>>8&255;C[7]=c0[G&255]^z&255;z=F[42];C[8]=c0[J>>>24]^z>>>24;C[9]=c0[b>>16&255]^z>>16&255;C[10]=c0[G>>8&255]^z>>8&255;C[11]=c0[V&255]^z&255;z=F[43];C[12]=c0[b>>>24]^z>>>24;C[13]=c0[G>>16&255]^z>>16&255;C[14]=c0[V>>8&255]^z>>8&255;C[15]=c0[J&255]^z&255};var JpG=!1;(function(){var C=function(V){return new Uint8Array(V)},F=function(V){for(var J=new Uint8Array(V.length),b=0;b<V.length;b++)J[b]=V[b];
return J},G=new Uint8Array([1]);
return G.length===1&&G[0]===1?C:F})();
var qJ;var nju=function(C){a:{if(!JpG&&!nO){if(qJ){var F=qJ;break a}qJ=(F=window.crypto)==null?void 0:F.subtle;var G,V,J;if(((G=qJ)==null?0:G.importKey)&&((V=qJ)==null?0:V.sign)&&((J=qJ)==null?0:J.encrypt)){F=qJ;break a}qJ=void 0}F=void 0}F&&(this.nativeEncryptor=new $AP(C,F));this.encryptorPolyfill=new b6u(C)};
nju.prototype.encrypt=function(C,F){var G=this,V;return _.I(function(J){switch(J.nextAddress){case 1:if(!G.nativeEncryptor){J.jumpTo(2);break}_.yy(J,3);return J.yield(G.nativeEncryptor.encrypt(C,F),5);case 5:return J.return(J.yieldResult);case 3:V=_.wa(J),_.Yw(V),JpG=!0,G.nativeEncryptor=void 0;case 2:return J.return(G.encryptorPolyfill.encrypt(C,F))}})};
nju.prototype.decrypt=function(C,F){return this.encrypt(C,F)};
var $AP=function(C,F){this.JSC$12846_aesKey=C;this.subtleCrypto=F};
$AP.prototype.encrypt=function(C,F){var G=this,V;return _.I(function(J){if(J.nextAddress==1)return _.yy(J,2),J.yield(ubO(G,C,F),4);if(J.nextAddress!=2)return J.return(J.yieldResult);V=_.wa(J);_.Yw(V);JpG=!0;throw V;})};
var ubO=function(C,F,G){var V,J;return _.I(function(b){switch(b.nextAddress){case 1:if(C.cryptoKey){b.jumpTo(2);break}return b.yield(C.subtleCrypto.importKey("raw",C.JSC$12846_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:C.cryptoKey=b.yieldResult;case 2:return V={name:"AES-CTR",counter:G,length:128},b.yield(C.subtleCrypto.encrypt(V,C.cryptoKey,F),4);case 4:return J=b.yieldResult,b.return(new Uint8Array(J))}})},b6u=function(C){this.JSC$12849_aesKey=C};
b6u.prototype.encrypt=function(C,F){this.encryptor||(this.encryptor=new V0G(this.JSC$12849_aesKey));for(var G=this.encryptor,V=0;V<4;V++)G.counter[V]=F[V*4]<<24|F[V*4+1]<<16|F[V*4+2]<<8|F[V*4+3];G.blockOffset=16;return this.encryptor.encrypt(C)};
b6u.prototype.decrypt=function(C,F){return this.encrypt(C,F)};var zju={},V8W=Ia("yt-idb-pref-storage",{objectStores:(zju.prefs={addedAtVersion:1},zju),shared:!1,upgrade:function(C,F){F(1)&&pO(Ds(C,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.P0=function(C){this.token=C};
_.P0.getInstance=function(){return _.I(function(C){return C.return(new Promise(function(F){_.Qn().then(function(G){G?(_.P0.instance||(_.P0.instance=new _.P0(G)),F(_.P0.instance)):F(void 0)})}))})};
_.P0.prototype.get=function(C){var F=this,G,V,J;return _.I(function(b){if(b.nextAddress==1)return b.yield(iSs(F.token),2);if(b.nextAddress!=3)return G=b.yieldResult,b.yield(G.get("prefs",C),3);V=b.yieldResult;if(!V)return b.return();J=(0,_.Et)();return V.expirationTimestampMs<=J?b.return():b.return(V.value)})};
_.P0.prototype.set=function(C,F,G){G=G===void 0?31536E3:G;var V=this,J,b,z;return _.I(function(Q){if(Q.nextAddress==1)return J=(0,_.Et)(),b={key:C,value:F,expirationTimestampMs:J+G*1E3},Q.yield(iSs(V.token),2);z=Q.yieldResult;return Q.yield(z.put("prefs",b),0)})};
_.P0.prototype.remove=function(C){var F=this,G;return _.I(function(V){if(V.nextAddress==1)return V.yield(iSs(F.token),2);G=V.yieldResult;return V.yield(G.delete("prefs",C),0)})};var go={},QS8=(go.INVALID_ENCODER_VERSION="Invalid encoder version",go.KEY_CREATION_FAILED="Failed to create encoder key",go.UNKNOWN_DECODE_ERROR="Failed to decode PES data",go.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",go.WRONG_DATA_TYPE="Encoder cannot process the data type",go),Gc=function(C,F){F=F===void 0?{}:F;_.Ay.call(this,QS8[C],Object.assign({},{name:"PESEncoderError",type:C},F));this.type=C;this.level="WARNING";Object.setPrototypeOf(this,Gc.prototype)};
_.O(Gc,_.Ay);var Rj=function(){};
Rj.prototype.encode=function(C,F){try{return this.encodeImpl(C,F)}catch(G){nsE(G,$Z5)}};
Rj.prototype.decode=function(C,F){try{return this.decodeImpl(C,F)}catch(G){nsE(G,bSW)}};
var IJG=function(C,F,G){var V;return _.I(function(J){if(J.nextAddress==1)return _.yy(J,2),J.yield(C.decodeAsyncImpl(F,G),4);if(J.nextAddress!=2)return J.return(J.yieldResult);V=_.wa(J);nsE(V,bSW);_.S9(J)})};
Rj.prototype.decodeAsyncImpl=function(C,F){return Promise.resolve(this.decodeImpl(C,F))};var YX=function(C,F){this.aesEncryptor=C;this.aesEncryptorAsync=F};
_.O(YX,Rj);YX.prototype.encodeImpl=function(C,F){F=uxw(F);C=(new TextEncoder).encode(JSON.stringify(C));return this.aesEncryptor.encrypt(C,F)};
YX.prototype.decodeImpl=function(C,F){if(!(C instanceof Uint8Array))throw JhI(1);var G=new TextDecoder;F=uxw(F);C=this.aesEncryptor.decrypt(C,F);return JSON.parse(G.decode(C))};
YX.prototype.decodeAsyncImpl=function(C,F){var G=this,V,J,b;return _.I(function(z){if(z.nextAddress==1){if(!(C instanceof Uint8Array))throw JhI(1);V=new TextDecoder;J=uxw(F);return z.yield(G.aesEncryptorAsync.decrypt(C,J),2)}b=z.yieldResult;return z.return(JSON.parse(V.decode(b)))})};var zFs={accountLinkStatusEntity:jd8,booleanEntity:SXm,buttonEntity:y9P,captionTrack:$Q8,channelHandle:V$r,chipEntity:pZm,commerceAcquisitionClientPayloadEntity:r9$,commerceCartListEntity:K1G,compositeSourceEntity:yhO,multiviewStagingEntity:ZS7,contextNoteFeedEntityPayload:aEm,contextNoteUserRatingEntityPayload:kT7,continuationTokenEntity:xJ7,downloadQualityPickerEntity:MlE,downloadsPageRefreshTokenEntity:Lo$,downloadsPageViewConfigurationEntity:rK2,downloadStatusEntity:Sfr,dismissState:mjP,sfvAudioItemCurrentlyPlayingEntity:xQm,
emojiFountainDataEntity:Us$,emojiCustomizationSetEntity:kvy,fakeChannel:Bg2,fakePlaylist:vH7,fakePlaylistEntryCollection:fwr,fakeVideo:cYo,fakeVideoDescription:AY8,featuredProductsEntity:Wnm,flowStateEntity:D7o,iconBadgeEntity:Dsr,interstitialInteractionStateEntity:aY8,likeButtonAnimationEntity:KoG,liveChatPollStateEntity:OHm,dataFreshnessEntity:aOu,liveViewerLeaderboardChatEntryPointStateEntity:l72,liveViewerLeaderboardPointsEntity:ySE,liveReactionsDataEntity:HEr,logoEntity:WV2,macroMarkerEntity:DJm,
mainDownloadsLibraryEntity:BoP,mainDownloadsListEntity:vXr,mainPlaylistDownloadStateEntity:h$$,mainPlaylistEntity:sj$,mainPlaylistVideoEntity:qf$,mainVideoDownloadStateEntity:cKy,mainVideoEntity:YfO,markersEngagementPanelSyncEntity:p07,markersVisibilityOverrideEntity:mJ7,musicAlbumReleaseDetail:SiE,musicAlbumReleaseDownloadMetadataEntity:N6m,musicAlbumRelease:M8m,musicAlbumReleaseUserDetail:Lno,musicArtistDetail:vsr,musicArtist:B6E,musicArtistUserDetail:fSu,musicDownloadsLibraryEntity:OSm,musicLibraryEdit:hFr,
musicLibraryStatusEntity:chO,musicPlaylist:Ahr,musicPlaylistDownloadMetadataEntity:X$S,musicShare:dZu,musicTrackDetail:sm8,musicTrackDownloadMetadataEntity:w$7,musicTrack:xZr,musicTrackUserDetail:qi8,offlineOrchestrationActionWrapperEntity:bJr,offlineVideoPolicy:nar,offlineVideoStreams:uel,offlineabilityEntity:AK2,orchestrationWebSamplingEntity:e$8,pageHeaderEntity:n9m,pdpStateEntity:pWy,pinnedProductEntity:t8E,playbackData:zhO,playerStateEntity:CM8,quantityIncrementerEntity:msu,refresh:Qk7,saveToPlaylistListEntity:JT8,
selectedChipIndexEntityPayload:jmE,settingEntity:wLG,stringEntity:Lwu,suggestedFeedbackChipStateEntity:Fnu,transfer:I7S,trendingOfferEntity:aSy,videoDownloadContextEntity:EaP,videoOverviewAsyncDataEntity:yZE,videoPlaybackPositionEntity:OE2,votingEntity:IOm,ytMainChannelEntity:ToO,youchatPendingResponseEntity:GW7,ytMainDownloadedVideoEntity:dJG,ytMainVideoEntity:oXE};var Eju,t0$,bK,UZw,HSw,UAE,lJS,H6P,kmr;Eju=function(C,F){this.JSC$12868_wrapped=C;this.JSC$12868_encoderRegistry=F;this.changedKeys={}};
t0$=function(C,F){return WZy(C.JSC$12868_encoderRegistry,F.version).decode(F.data,F.key)};
_.aJm=function(C,F,G){return C.JSC$12868_wrapped.objectStore("EntityStore").get(F).then(function(V){if(V){if(G&&V.entityType!==G)throw Error("Kf");return t0$(C,V)}})};
bK=function(C,F,G){return G?(G=G.map(function(V){return _.aJm(C,V,F)}),pD.all(G)):C.JSC$12868_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(F)).then(function(V){return V.map(function(J){return t0$(C,J)})})};
_.kWA=function(C,F,G){var V=Koq(F),J=WZy(C.JSC$12868_encoderRegistry,1),b=Object.assign({},F);return C.JSC$12868_wrapped.objectStore("EntityStore").get(V).then(function(z){if(z){if(z.entityType!==G)throw Error("Kf");b.entityMetadata||(z=t0$(C,z),b.entityMetadata=z.entityMetadata)}}).then(function(){var z={key:V,
entityType:G,data:J.encode(b,V),version:1};return pD.all([C.JSC$12868_wrapped.objectStore("EntityStore").put(z),kmr(C,b,G)])}).then(function(){UAE(C,V,G);
return V})};
UZw=function(C,F){var G=_.D8(F).entityType;return pD.all([C.JSC$12868_wrapped.objectStore("EntityStore").delete(F),H6P(C,F)]).then(function(){UAE(C,F,G)})};
HSw=function(C,F,G,V){var J=WZy(C.JSC$12868_encoderRegistry,1);return _.aJm(C,F,V).then(function(b){if(b){b=AKI(b,G);var z={key:F,entityType:V,data:J.encode(b,F),version:1};return pD.all([C.JSC$12868_wrapped.objectStore("EntityStore").put(z),kmr(C,b,V)])}}).then(function(){UAE(C,F,V);
return F})};
UAE=function(C,F,G){var V=C.changedKeys[G];V||(V=new Set,C.changedKeys[G]=V);V.add(F)};
lJS=function(C,F,G){var V=Koq(F);G=Qm5(G);if(!G)return pD.resolve([]);G=new G(F);C=C.JSC$12868_wrapped.objectStore("EntityAssociationStore");F=[];G=_.u(G.getAssociations());for(var J=G.next();!J.done;J=G.next())F.push(C.put({parentEntityKey:V,childEntityKey:J.value}));return pD.all(F).then(function(b){return b.map(function(z){return z[1]})})};
H6P=function(C,F){return C.JSC$12868_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(F))};
kmr=function(C,F,G){var V=Koq(F);return H6P(C,V).then(function(){return lJS(C,F,G)})};var yp7=function(){};
_.O(yp7,Rj);yp7.prototype.encodeImpl=function(C){return C};
yp7.prototype.decodeImpl=function(C){if(C instanceof Uint8Array)throw JhI(0);return C};var WnB=function(){this.cacheMap={};this.cacheMap[0]=new yp7;if(!_.y("aes_pes_encoder_killswitch")){var C=this.cacheMap;try{var F=_.hy();var G=uxw(F);var V=new YX(new b6u(G),new nju(G))}catch(J){throw C=J instanceof Error?new Gc("KEY_CREATION_FAILED",{originalMessage:J.message}):new Gc("KEY_CREATION_FAILED"),_.gD(C),C;}C[1]=V}},WZy=function(C,F){F=F===void 0?0:F;
C=C.cacheMap[F];if(!C)throw F=new Gc("INVALID_ENCODER_VERSION",{encoderVersion:F}),_.gD(F),F;return C};var iK=function(C,F){_.hV.call(this);this.token=C;this.JSC$12882_encoderRegistry=F;this.observers=[];C=new _.VT.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.hy());C.onmessage=this.JSC$12882_handleMessage.bind(this);this.channel=C};
_.O(iK,_.hV);_.$2=function(C,F,G){var V,J,b,z;return _.I(function(Q){if(Q.nextAddress==1)return Q.yield(GWE(C.token),2);if(Q.nextAddress!=3)return V=Q.yieldResult,Q.yield(_.Jn(V,["EntityStore","EntityAssociationStore"],F,function(E){J=new Eju(E,C.JSC$12882_encoderRegistry);return G(J)}),3);
b=Q.yieldResult;J&&(z=J.changedKeys,Object.keys(z).length>0&&(C.channel.postMessage(z),Z6r(C,z)));return Q.return(b)})};
iK.prototype.observe=function(C){var F=this;this.observers.push(C);return function(){var G=F.observers.indexOf(C);G>=0&&F.observers.splice(G,1)}};
var QCf=function(C){var F;return _.I(function(G){if(G.nextAddress==1)return G.yield(_.$2(C,{mode:"readonly",enableRetries:!0},function(V){return V.JSC$12868_wrapped.objectStore("EntityStore").getAll()}),2);
F=G.yieldResult;return G.return(Promise.all(F.filter(function(V){return!!V}).map(function(V){var J,b;
return _.I(function(z){if(z.nextAddress==1){J=V.key;b=V.entityType;var Q=z.yield;var E=IJG(WZy(C.JSC$12882_encoderRegistry,V.version),V.data,V.key);return Q.call(z,E,2)}return z.return({key:J,entityType:b,data:z.yieldResult})})})))})};
iK.prototype.JSC$12882_handleMessage=function(C){Z6r(this,C.data)};
var Z6r=function(C,F){C=_.u(C.observers);for(var G=C.next();!G.done;G=C.next())G=G.value,G(F)};
iK.prototype.disposeInternal=function(){this.channel.close()};
var ISi;var Tz,O68,xZT;Tz={};_.Nb7=(Tz.mainVideoEntity="mainVideoEntityActionMetadata",Tz.mainPlaylistEntity="mainPlaylistEntityActionMetadata",Tz.musicTrack="musicTrackEntityActionMetadata",Tz.musicPlaylist="musicPlaylistEntityActionMetadata",Tz);O68=new _.jh("DOWNLOADS_ENTITY_TYPE_MAP");_.t4=_.C7("","downloadsPageViewConfigurationEntity");xZT=_.C7("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.UQf=_.C7("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.C7("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.C7("SMART_DOWNLOADS_ENABLED","settingEntity");_.C7("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var OSB=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var vsT=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];_.XqS={isLeaderTab:!0};var $QZ={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var oj=window,SN=oj.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",JTZ=oj.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||BY,qM5=oj.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||C3,YIu=oj.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||RN7,PCS=oj.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||G3l,G4W=oj.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||nb8;var iKq;cY({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 jfB=PFS(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(C){return C}}}),SKw=PFS(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(C){return C}}}),TKB=new Map;var GRw=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],pLT;var wq8=function(C){return _.rh({type:"SET_EPHEMERAL_ACTION",payload:C})};_.M0u={ephemeralAction:null};var SUl=function(C){return _.rh({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:C})};_.LZ7={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var MtA={sharedUi:function(C,F){C=C===void 0?_.LZ7:C;switch(F.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},C,{animatedThumbnailEnabled:F.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},C,{inlinePreviewEnabled:F.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},C,{currentPageType:F.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},C,{currentPageSubType:F.payload});case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},
C,{persistentPanelVisible:F.payload});default:return C}},
a11y:BS({ephemeralAction:function(C,F){C=C===void 0?_.M0u.ephemeralAction:C;switch(F.type){case "SET_EPHEMERAL_ACTION":return F.payload;default:return C}}}),
entities:p0E};_.nWi={playlistId:"",inviteLinkURL:""};_.BbE={continuationCommand:{}};var HRI=BS({continuationCommand:function(C,F){C=C===void 0?_.BbE.continuationCommand:C;switch(F.type){case "SET_CONTINUATION_COMMAND":return F.payload.continuationCommand;default:return C}}});_.zvi={currentFormId:"",commandsMap:{}};var l2T=BS({isLeaderTab:function(C,F){C=C===void 0?_.XqS.isLeaderTab:C;switch(F.type){case "SET_IS_LEADER_TAB":var G,V;return(V=F==null?void 0:(G=F.payload)==null?void 0:G.isLeaderTab)!=null?V:C;default:return C}}});var fJG;_.vjm=function(C){return _.rh({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:C}})};
fJG=function(C){return _.rh({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:C}})};_.ro={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var wZw=BS({isDesktopSmallWidth:function(C,F){C=C===void 0?_.ro.isDesktopSmallWidth:C;switch(F.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return F.payload.isDesktopSmallWidth;default:return C}},
isShortsActive:function(C,F){C=C===void 0?_.ro.isShortsActive:C;switch(F.type){case "SET_IS_SHORTS_ACTIVE":return F.payload.isShortsActive;default:return C}},
isWatchWhileMode:function(C,F){C=C===void 0?_.ro.isWatchWhileMode:C;switch(F.type){case "SET_IS_WATCH_WHILE_MODE":return F.payload.isWatchWhileMode;default:return C}},
playerState:function(C,F){C=C===void 0?_.ro.playerState:C;switch(F.type){case "SET_PLAYER_STATE":return F.payload.playerState;default:return C}},
isFullscreen:function(C,F){C=C===void 0?_.ro.isFullscreen:C;switch(F.type){case "SET_IS_FULLSCREEN":return F.payload.isFullscreen;default:return C}},
isSmallScreenSqueezeback:function(C,F){C=C===void 0?_.ro.isSmallScreenSqueezeback:C;switch(F.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return F.payload.isSmallScreenSqueezeback;default:return C}},
isShortsPipActive:function(C,F){C=C===void 0?_.ro.isShortsPipActive:C;switch(F.type){case "SET_IS_SHORTS_PIP_ACTIVE":return F.payload.isShortsPipActive;default:return C}},
isPlaybackStarted:function(C,F){C=C===void 0?_.ro.isPlaybackStarted:C;switch(F.type){case "SET_IS_PLAYBACK_STARTED":return F.payload.isPlaybackStarted;default:return C}}});_.I2o={currentMode:"canvas-hidden"};var Lkw=function(){return function(C){return function(F){var G=C(F);_.rz(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[F],!0);return G}}};var hjP,f_Z;hjP=new _.Cd;_.rE=new _.jh("WATCH_PLAYER_PROMISE_TOKEN");_.cpP=new _.Cd;_.Apr=new _.jh("SHORTS_PLAYER_PROMISE_TOKEN");f_Z=new _.jh("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var BB9=function(){return function(C){return function(F){F.type==="ENTITY_LOADED"&&_.I8().resolve(_.rE).then(function(G){var V;(V=G.dispatchReduxAction)==null||V.call(G,F)});
return C(F)}}};_.ejm={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var yJW=BS({additionalContext:function(C,F){C=C===void 0?_.ejm.additionalContext:C;switch(F.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var G;return(G=F.payload)!=null?G:"";default:return C}},
impersonatedChannelUrl:function(C,F){C=C===void 0?_.ejm.impersonatedChannelUrl:C;switch(F.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var G;return(G=F.payload)!=null?G:"";default:return C}},
selectedVideoIds:function(C,F){C=C===void 0?_.ejm.selectedVideoIds:C;switch(F.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var G={};return Object.assign({},C,(G[F.payload]=!0,G));case "VIDEO_UNSELECTED":return F=F.payload,C=Object.assign({},C),delete C[F],C;default:return C}}});_.dAE={parentClickTrackingParams:""};var ZRZ=BS({parentClickTrackingParams:function(C,F){C=C===void 0?_.dAE.parentClickTrackingParams:C;switch(F.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return F.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return C}}});var xAO=function(C){return _.rh({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:C})};_.sSm={stepStates:{}};var NBS=BS({stepStates:function(C,F){C=C===void 0?_.sSm.stepStates:C;switch(F.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var G=C,V=F.payload,J,b,z;C={};F={selectionStates:Object.assign({},(z=(J=G[V.stepId])==null?void 0:J.selectionStates)!=null?z:{},(C[V.token]={isSelected:V.isSelected},C)),userQuery:(b=G[V.stepId])==null?void 0:b.userQuery};J={};return Object.assign({},G,(J[V.stepId]=F,J));case "TALK_TO_RECS_UPDATE_USER_QUERY":return J=C,b=F.payload,
z={selectionStates:Object.assign({},(V=(G=J[b.stepId])==null?void 0:G.selectionStates)!=null?V:{}),userQuery:{userQuery:b.userQuery,token:b.userQueryToken}},G={},Object.assign({},J,(G[b.stepId]=z,G));default:return C}}});var qU8,POP,RjG;qU8=function(C){return _.rh({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:C})};
POP=function(C){return _.rh({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:C})};
_.t6=function(C){return _.rh({type:"SET_CURRENT_PAGE_TYPE",payload:C})};
_.gju=function(C){return _.rh({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:C})};
RjG=function(C){return _.rh({type:"SET_CHIP_BAR_IS_STICKY",payload:C})};_.Wk9={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"};_.YUr=function(C){return _.rh({type:"SET_PLAYER_STATE",payload:{playerState:C}})};_.KQ={isWatchActive:!1,isLearningJourneyActive:!1,isSwatcherooActive:!1,isTheaterMode:a2i(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var ORq=BS({isTheaterMode:function(C,F){C=C===void 0?a2i():C;switch(F.type){case "SET_IS_THEATER_MODE":return F.payload.isTheaterMode;default:return C}},
isWatchActive:function(C,F){C=C===void 0?_.KQ.isWatchActive:C;switch(F.type){case "SET_IS_WATCH_ACTIVE":return F.payload.isWatchActive;default:return C}},
isLearningJourneyActive:function(C,F){C=C===void 0?_.KQ.isLearningJourneyActive:C;switch(F.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return F.payload.isLearningJourneyActive;default:return C}},
isWatchFullscreen:function(C,F){C=C===void 0?_.KQ.isWatchFullscreen:C;switch(F.type){case "SET_IS_WATCH_FULLSCREEN":return F.payload.isWatchFullscreen;default:return C}},
isWatchNarrowWidth:function(C,F){C=C===void 0?_.KQ.isWatchNarrowWidth:C;switch(F.type){case "SET_IS_WATCH_NARROW_WIDTH":return F.payload.isWatchNarrowWidth;default:return C}},
isSwatcherooActive:function(C,F){C=C===void 0?_.KQ.isSwatcherooActive:C;switch(F.type){case "SET_IS_SWATCHEROO_ACTIVE":return F.payload.isSwatcherooActive;default:return C}},
isWatchRetroMode:function(C,F){C=C===void 0?_.KQ.isWatchRetroMode:C;switch(F.type){case "SET_IS_WATCH_RETRO_MODE":return F.payload.isWatchRetroMode;default:return C}},
isLiveChatCollapsed:function(C,F){C=C===void 0?_.KQ.isLiveChatCollapsed:C;switch(F.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return F.payload.isLiveChatCollapsed;default:return C}},
openEngagementPanels:function(C,F){C=C===void 0?_.KQ.openEngagementPanels:C;var G=[].concat(_.da(C));switch(F.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return G.push(F.payload.panelToAdd),G;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return G.splice(G.indexOf(F.payload.panelToRemove),1),G;default:return C}},
playerState:function(C,F){C=C===void 0?_.KQ.playerState:C;switch(F.type){case "SET_PLAYER_STATE":return F.payload.playerState;default:return C}},
watchScrollTop:function(C,F){C=C===void 0?_.KQ.watchScrollTop:C;switch(F.type){case "SET_WATCH_SCROLL_TOP":return F.payload.watchScrollTop;default:return C}},
watchWindowSize:function(C,F){C=C===void 0?_.KQ.watchWindowSize:C;switch(F.type){case "SET_WATCH_WINDOW_SIZE":return F.payload.watchWindowSize;default:return C}}});_.Tbo={surveyFeedbackData:{feedbackTokens:[]}};var XZZ=BS({surveyFeedbackData:function(C,F){C=C===void 0?_.Tbo.surveyFeedbackData:C;switch(F.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return F.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},C,F.payload);default:return C}}});_.kRW={};var f2T=void 0;_.y("web_enable_redux_store_on_demand")||(f2T=vWA());var ojm=function(C,F,G){var V=this;this.listId=C;this.JSC$13026_updateCallback=F;this.isOfflineVideoCallback=G;_.s3().subscribe(function(){V.handleUpdate()})};
ojm.prototype.getPlaylistData=function(){var C=_.s3().getState().entities;if(this.listId&&this.listId!=="PPSV"){var F=Kn9(C,this.listId,!0),G=_.C7(this.listId,"mainPlaylistEntity"),V,J;C=C==null?void 0:(V=C.mainPlaylistEntity)==null?void 0:(J=V[G])==null?void 0:J.title;return hvI(F,C,this.listId)}F=_.fSA(OJi(C));C=_.fSA(_.aA(C));C=F.concat(C);return hvI(C)};
ojm.prototype.getPlaylistId=function(){return this.listId};
ojm.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$13026_updateCallback(this.listId,this.getPlaylistData(),{})};var Dp=function(C,F,G,V){V=V===void 0?[]:V;this.JSC$13029_playlistNetworkManager=C;this.listId=F;this.JSC$13029_updateCallback=G;this.videoIds=V;this.pendingUpdates=[];this.currentIndex=0};
Dp.prototype.JSC$13029_setCurrentIndex=function(C){this.currentIndex=C};
Dp.prototype.setListId=function(C){this.listId=C};
var rpP=function(C,F){C.currentCreateRequest&&C.currentCreateRequest.cancel(F);C.currentUpdateRequest&&C.currentUpdateRequest.cancel(F);C.currentRefreshRequest&&C.currentRefreshRequest.cancel(F)};
Dp.prototype.delete=function(){rpP(this,"PROXY DELETED")};
Dp.prototype.addVideos=function(C,F,G){var V=this;G!==void 0?this.videoIds.splice.apply(this.videoIds,[G,0].concat(_.da(C))):this.videoIds.push.apply(this.videoIds,_.da(C));this.listId||this.currentCreateRequest?(C.forEach(function(J,b){J={addedVideoId:J,action:"ACTION_ADD_VIDEO"};G&&(J.addedVideoPosition=G+b);V.pendingUpdates.push(J)}),pQ(this)):KZm(this,F.onCreateListCommand)};
var DAu=function(C,F,G,V,J){dfi(C.videoIds,F,G);F>C.currentIndex&&G<=C.currentIndex?C.JSC$13029_setCurrentIndex(C.currentIndex+1):F===C.currentIndex?C.JSC$13029_setCurrentIndex(G):F<C.currentIndex&&G>=C.currentIndex&&C.JSC$13029_setCurrentIndex(C.currentIndex-1);C.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:V,movedSetVideoIdPredecessor:J});pQ(C)},KZm=function(C,F){rpP(C,"OBSOLETE");
C.currentCreateRequest=pqP(C.JSC$13029_playlistNetworkManager,F,C.videoIds);_.OW(C.currentCreateRequest,function(){C.currentCreateRequest=void 0}).then(function(G){C.setListId(G.playlistId);
C.pendingUpdates.length>0?pQ(C):mA$(C)})},pQ=function(C){if(C.pendingUpdates.length!==0&&(C.currentRefreshRequest&&C.currentRefreshRequest.cancel("OBSOLETE"),!C.currentUpdateRequest&&!C.currentCreateRequest)){var F=C.pendingUpdates.splice(0,C.pendingUpdates.length);
C.currentUpdateRequest=C.JSC$13029_playlistNetworkManager.updatePlaylist(C.listId,F);_.OW(C.currentUpdateRequest,function(){C.currentUpdateRequest=void 0}).then(function(){C.pendingUpdates.length>0?pQ(C):mA$(C)}).thenCatch(function(){C.pendingUpdates.unshift.apply(C.pendingUpdates,_.da(F))})}},mA$=function(C){C.currentRefreshRequest=_.Cr7(C.JSC$13029_playlistNetworkManager,C.listId,C.currentIndex,C.videoIds[C.currentIndex]);
_.OW(C.currentRefreshRequest,function(){C.currentRefreshRequest=void 0}).then(function(F){C.JSC$13029_updateCallback(F.playlistId,F.playlistPanelRenderer,F.autoplayRenderer)})};
Dp.prototype.size=function(){return this.videoIds.length};var jiG=function(C,F,G,V){V=V===void 0?[]:V;Dp.call(this,C,F,G,V);this.JSC$13029_playlistNetworkManager=C;this.listId=F;this.JSC$13029_updateCallback=G;this.videoIds=V};
_.O(jiG,Dp);_.mo=function(C,F,G,V,J,b,z){J=J===void 0?[]:J;z=z===void 0?VW:z;Dp.call(this,C,F,G,J);this.JSC$13029_playlistNetworkManager=C;this.listId=F;this.JSC$13029_updateCallback=G;this.onAuthChange=V;this.videoIds=J;this.storage=b;this.cookieReader=z;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.rQ(_.gT,this.checkLoggedInStatusChange.bind(this),1E3)};
_.O(_.mo,Dp);_.n=_.mo.prototype;_.n.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.rQ(_.gT,this.checkLoggedInStatusChange.bind(this),1E3)};
_.n.JSC$13029_setCurrentIndex=function(C){Dp.prototype.JSC$13029_setCurrentIndex.call(this,C);this.store()};
_.n.delete=function(){_.gT.cancelJob(this.queueSapisIdJob);Dp.prototype.delete.call(this)};
_.n.setListId=function(C){Dp.prototype.setListId.call(this,C);this.store()};
_.n.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var FQ7=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],GQ7=["playerResponse","videoDetails"],Vgo=["response","currentVideoEndpoint","watchEndpoint","videoId"],iw$=["response","currentVideoEndpoint","watchEndpoint","playlistId"],JI7=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],$Ll=["response","contents","twoColumnWatchNextResults","playlist","playlist"],bwl=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
n1u=["response","contents","twoColumnWatchNextResults"];var CS={},xjT=(CS.WEB_UNPLUGGED="^unplugged/",CS.WEB_UNPLUGGED_ONBOARDING="^unplugged/",CS.WEB_UNPLUGGED_OPS="^unplugged/",CS.WEB_UNPLUGGED_PUBLIC="^unplugged/",CS.WEB_CREATOR="^creator/",CS.WEB_KIDS="^kids/",CS.WEB_EXPERIMENTS="^experiments/",CS.WEB_MUSIC="^music/",CS.WEB_REMIX="^music/",CS.WEB_MUSIC_EMBEDDED_PLAYER="^music/",CS.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",CS);var z39,pqP;z39=function(C,F){this.networkManager=C;this.innertubeTransportService=F};
pqP=function(C,F,G){if(!_.Z(F,_.CQ))return _.W6(Error("Of"));_.Z(F,_.CQ).videoIds=G;G={create_playlist_title:_.iQ("QUEUE",void 0,"Queue")};return ev9(_.fZ(C.innertubeTransportService,F,G),cJo)};
_.Cr7=function(C,F,G,V){F={videoId:V,playlistId:F,playlistIndex:G};G=_.qW(be2);return ev9(_.j8(C.innertubeTransportService,F,G),djI)};
z39.prototype.updatePlaylist=function(C,F){return ev9(_.fZ(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:C,actions:F}}),AJs)};var uaG=function(C){this.storage=C},zE7;
uaG.prototype.store=function(C,F){F=F===void 0?0:F;if(this.storage&&C.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",C),this.storage.set("TLPQindex",String(F)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(G){}};
uaG.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
uaG.prototype.getPlaylistId=function(){if(!this.storage)return null;var C=null;try{C=this.storage.get("TLPQplaylist")}catch(F){}return C};var gW9=["navigationEndpoint","watchEndpoint","videoId"],PYq=["nextButtonVideo","watchEndpoint","videoId"];_.zt=new _.jh("NETWORK_TOKEN");_.qG=new _.jh("PAGE_TOKEN");_.Fx=new _.jh("PLAYLIST_TOKEN");var QiS;QiS=new _.jh("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.Qk=new _.jh("INNERTUBE_TRANSPORT_TOKEN");var ITP,GW,WQu,tgE,kQm,ULS;ITP=new Set(["ci","cr","carml"]);GW=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$13076_parkedJobs=new Map;this.parkedProcessors=new Map};
_.Vc=function(){GW.instance||(GW.instance=new GW);return GW.instance};
GW.prototype.onAny=function(C){return _.E1r(this,C,2)};
GW.prototype.parkOrScheduleJob=function(C,F,G,V,J){_.iM(this,G)?_.Ws().addJob(C,F,V):(J&&(C=WQu(C),tgE(this,C,F,G,J)),J=this.JSC$13076_parkedJobs.get(G),J||(this.JSC$13076_parkedJobs.set(G,[]),J=this.JSC$13076_parkedJobs.get(G)),J.push({job:C,priority:F,delay:V}))};
GW.prototype.addListener=function(C,F,G){G&&(F=WQu(F),tgE(this,F,0,C,G));G=this.parkedProcessors.get(C);G||(this.parkedProcessors.set(C,[]),G=this.parkedProcessors.get(C));G.push(F)};
GW.prototype.processSignal=function(C){if(!_.iM(this,C)){this.inProgressSignals.add(C);var F=this.JSC$13076_parkedJobs.get(C);if(F){F=_.u(F);for(var G=F.next();!G.done;G=F.next())G=G.value,_.Ws().addJob(G.job,G.priority,G.delay);this.JSC$13076_parkedJobs.delete(C)}if(F=this.parkedProcessors.get(C)){F=_.u(F);for(G=F.next();!G.done;G=F.next())G=G.value,G();this.parkedProcessors.delete(C)}this.signals.push(C);this.inProgressSignals.delete(C)}};
_.iM=function(C,F){return ITP.has(F)||_.oD("IS_HOMEPAGE_COLD")||_.oD("IS_RESULTS_PAGE_COLD")||_.oD("IS_WATCH_PAGE_COLD")?C.signals.indexOf(F)>=0:!0};
WQu=function(C){var F=!1;return function(){F||(F=!0,C())}};
tgE=function(C,F,G,V,J){if(aTS.has(V))_.Ws().addJob(F,G,J);else{var b=C.compoundSignals.get(V);b&&_.Ws().addJob(function(){_.iM(C,V)||(b.isTimeoutConditionSatisfied?_.Ws().addJob(F,G):b.timeoutConditionObservers.push(function(){_.Ws().addJob(F,G)}))},G,J)}};
_.E1r=function(C,F,G){if(F.length>1){var V=[],J=Object.create(null);F=_.u(F);for(var b=F.next();!b.done;b=F.next())b=b.value,J[b]||(V.push(b),J[b]=!0);F=V}if(F.length===1)return F[0];b=F;V="";J=G===2?"|":"&";b.sort();b=_.u(b);for(var z=b.next();!z.done;z=b.next())V+=z.value+J;if(!C.compoundSignals.get(V)){J=0;b=[];z=_.u(F);for(var Q=z.next();!Q.done;Q=z.next())Q=Q.value,J++,_.iM(C,Q)||b.push(Q);(G=G===2)&&J>b.length||!G&&!b.length?C.signals.push(V):kQm(C,V,G,F,b)}return V};
kQm=function(C,F,G,V,J){var b=J.length,z=function(){G||--b===0?C.processSignal(F):ULS(C,F)};
J=_.u(J);for(var Q=J.next();!Q.done;Q=J.next())C.addListener(Q.value,z);C.compoundSignals.set(F,{signals:V,isOnAny:G,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});ULS(C,F)};
ULS=function(C,F){if(!_.iM(C,F)){var G=C.compoundSignals.get(F);if(G&&!G.isTimeoutConditionSatisfied){for(var V=!1,J=0,b=0,z=_.u(G.signals),Q=z.next();!Q.done;Q=z.next()){var E=Q.value;Q=!_.iM(C,E);aTS.has(E)?V=!0:(E=C.compoundSignals.get(E))?Q&&!E.isTimeoutConditionSatisfied&&(b++,G.isInitialized||E.timeoutConditionObservers.push(function(){ULS(C,F)})):Q&&J++}G.isInitialized=!0;
G.isOnAny?V&&(G.isTimeoutConditionSatisfied=!0):J===0&&b===0&&(G.isTimeoutConditionSatisfied=!0);if(G.isTimeoutConditionSatisfied)for(G=_.u(G.timeoutConditionObservers),V=G.next();!V.done;V=G.next())V=V.value,V()}}};
GW.prototype.processSignal=GW.prototype.processSignal;GW.prototype.parkOrScheduleJob=GW.prototype.parkOrScheduleJob;GW.prototype.onAny=GW.prototype.onAny;_.zn("ytsignals.getInstance",_.Vc);GW.prototype.onAny=GW.prototype.onAny;GW.prototype.parkOrScheduleJob=GW.prototype.parkOrScheduleJob;GW.prototype.processSignal=GW.prototype.processSignal;var aTS=new Set(["eop","eocs","dl","pcl"]);_.Od=new _.jh("MINIPLAYER_SERVICE");var Jh,Hw7,lTr;Jh=function(C,F,G){var V=_.FV.getInstance();if(!zE7){var J=new qZ9;var b=void 0,z=_.TF("ID_TOKEN");z&&J.isAvailable()&&(b=new sw(J,"yt-queue"+z));zE7=new uaG(b)}J=zE7;b=_.Vc();this.JSC$13083_actionRouter=V;this.JSC$13083_pageManager=C;this.playlistManager=F;this.JSC$13083_playlistNetworkManager=G;this.storage=J;this.signals=b;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.$s=function(){if(!Hw7){var C=_.I8(),F=C.resolve(_.Qt(_.qG)),G=C.resolve(_.Qt(_.zt)),V=C.resolve(_.Qt(_.Fx));C=C.resolve(_.Qk);Hw7=new Jh(F,V,new z39(G,C))}return Hw7};
lTr=function(C,F,G){if(G){var V;if(((V=C.responsePlaylistData)==null?void 0:V.playlistId)!==G)return}C.responsePlaylistData&&(G=Kks(F,C.responsePlaylistData),C.responsePlaylistData=(0,_.xf.unsafeClone)(C.responsePlaylistData),pZB(C.responsePlaylistData,G));G=C.temporaryItems.findIndex(function(J){return J.videoId===F});
G>-1&&C.temporaryItems.splice(G,1);_.bM(C,_.nS(C,C.response?C.response.autoplayRenderer:void 0))};
_.yI2=function(C,F){if(C.responsePlaylistData){var G=Dji(F,C.responsePlaylistData);pZB(C.responsePlaylistData,G);if(C.queueProxy){var V=C.queueProxy;G<0||(V.videoIds.splice(G,1),G<V.currentIndex&&V.JSC$13029_setCurrentIndex(V.currentIndex-1),V.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:F}),pQ(V))}}_.bM(C,_.nS(C,C.response?C.response.autoplayRenderer:void 0))};
Jh.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.bM(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
Jh.prototype.setPlaylistData=function(C,F,G){this.temporaryItems=[];this.listId=C;this.responsePlaylistData=F;_.bM(this,_.nS(this,G))};
var Zw7=function(C){return(C==null?0:C.playlistId)?C.playlistId:"PPSV"},NYS=function(C){return C&&C.playlistId?C.playlistId==="PPSV"?!0:oss(_.s3().getState().entities,C.playlistId):!1};
Jh.prototype.isPlayingOfflineVideo=function(){return this.response?NYS(this.response):!1};
Jh.prototype.closeMiniplayer=function(C){var F=this.queueProxy&&this.queueProxy.size()<=1,G=_.I8().resolve(_.Od);if(!this.queueProxy||F)this.queueProxy&&this.clearQueue(),G.close(!0);else{G.pipController.getWindow()&&window.focus();F=this.responsePlaylistData;var V=this.temporaryItems.length+(F&&F.contents?F.contents.length:0);F=_.iQ("QUEUE_CLEARED_UNPLURALIZED")||_.J3("QUEUE_CLEARED",V);F=_.gd(F);G=_.iQ("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");V=_.iQ("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.J3("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",V);var J=_.iQ("MINIPLAYER_CLOSE",void 0,"Close"),b=_.iQ("CANCEL",void 0,"Cancel");_.AB(this.JSC$13083_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.eN(G),dialogMessages:[_.eN(V)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.eN(J),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
F]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.eN(b)}}}}}}],C)}};
_.nS=function(C,F){var G={},V=C.response;G.autoplayRenderer=F;if(!C.responsePlaylistData&&!C.temporaryItems.length)return!V||!V.hasRelatedVideoData&&_.y("kevlar_prefetch_data_augments_network_data")||(G.playerData={rvs:V.relatedVideoArgs,endScreenRenderer:V.endScreenRenderer}),G;G.playerData={};if(C.index===void 0)return _.gD(Error("Qf")),G;G.panel=C.responsePlaylistData?(0,_.xf.unsafeClone)(C.responsePlaylistData):{titleText:_.eN(_.iQ("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
F=G.panel;if(F.contents)for(var J=_.u(C.temporaryItems),b=J.next();!b.done;b=J.next())F.contents.push({playlistPanelVideoRenderer:b.value});C.queueProxy&&V&&V.playingVideo&&V.playingVideoId&&!rJE(V.playingVideoId,G.panel)&&(F=V.playingVideo,J=G.panel,b=C.index,J.contents&&J.contents.splice(b===void 0?0:b,0,{playlistPanelVideoRenderer:F}));V&&V.playingVideoId&&(F=C.index,J=G.panel,F=!J.contents||F>=J.contents.length?void 0:J.contents[F].playlistPanelVideoRenderer,F&&F.videoId===V.playingVideoId||(F=
Kks(V.playingVideoId,G.panel),C.index=F!==-1?F:C.index?C.index-1:0));F=oWi(C.index+1,G.panel);J=void 0;C.index>0&&(J=oWi(C.index-1,G.panel));if(J||F)G.autoplayRenderer=Rvo(F,J,G.autoplayRenderer);!F&&(V==null?0:V.relatedVideoArgs)&&(G.playerData.rvs=V.relatedVideoArgs);V=V?V.playlistIndexOffset:0;C.queueProxy?j7T(G.panel,C.index,V,TBZ,!0,!0,!0):j7T(G.panel,C.index,V);G.playerData.playlistPanelRenderer=G.panel;return G};
Jh.prototype.openToast=function(C){_.I8().resolve(_.Od).openToast(C,_.iQ("ADDED_TO_QUEUE",void 0,"Added to queue"))};
Jh.prototype.isMiniplayerActive=function(){return _.I8().resolve(_.Od).isMiniplayerActive()};
_.bM=function(C,F){C.playlistManager.setAutoplayRenderer(F.autoplayRenderer||null);C.playlistManager.setPlaylistData(F.panel||null);F.playerData&&C.playlistManager.setPlayerPlaybackControlData(F.playerData)};var Gvq="#";var Ow2={},XO7={},wOu={},Mgy={},S27={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:(Ow2.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",Ow2),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:(XO7.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",XO7),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:(wOu.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",wOu),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:(Mgy.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",Mgy),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 xsS=[{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:S27},{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:S27}}];var SnT;_.mD=[[["Zjd6c3k1a2luZCN2cWZ5aWs=","OTRwN3N2YWx1ZSMzeDdzY2lq"],"S0lORF9TVEFSVCN2a3Ftam1oeGFiaHhBRF9QTEFDRU1FTlRf"]];
SnT=[[["N3locHJpbWFyeSN4NWFiNTBvbjc=",null,null],[null,["cy1yZW5kZXJlciNpNzltaDdxMTFyZ3p5dGQtdHdvLWNvbHVtbi1icm93c2UtcmVzdWx0","dHlsZS1zY29wZSN1NXc4YzZsdzVvaDFz"],null],["YXN0aGVhZC1hZCMycnlqeWZuNXJweDFt",["ZC1yZW5kZXJlciNyMTliNTNjMjQycXl5dGQtcmljaC1ncmk="],null],[null,["aWQtcmVuZGVyZXIjMzVmZmJwc2YweW55dGQtcmljaC1ncg==","dHlsZS1zY29wZSM4dHd1bTNsaDB4b2Nz"],null],[null,["by1yZW5kZXJlciNmNHhjdGJ3anpmN3J5dGQtYmFubmVyLXByb20=","dHlsZS1zY29wZSMxM3gxc25lb3JoNDBz"],null],[null,["dC1yZW5kZXJlciNyMXM3enY5cTUwZHp5dGQtYWQtc2xv"],
null]],[["cGxheWVyLWFkcyN2N211cjRsb21wdnY=",null,null]]];_.p7=["bENhbGxiYWNrcyM0eGY4NmdxYWIyMXZnbG9iYQ==","dHlEZXRlY3RlZCNmcTE1YnMza2ZwOHFvbkFibm9ybWFsaQ==","dnlvbkFkU2tpcCNkZHI1NXI1bTU1","cl9yZXNwb25zZSNsYWJ6MG1iNXc5ZmlyYXdfcGxheWU=","a3o2YWRTbG90cyN5aXQ5YzlyNms="];_.uM="bENhbGxiYWNrcyM0eGY4NmdxYWIyMXZnbG9iYQ== dHlEZXRlY3RlZCNmcTE1YnMza2ZwOHFvbkFibm9ybWFsaQ== dnlvbkFkU2tpcCNkZHI1NXI1bTU1 cl9yZXNwb25zZSNsYWJ6MG1iNXc5ZmlyYXdfcGxheWU= ZV9za2lwc19rcyM5ZWN4bmhrd3JmbWl3ZWJfcGxheWxpc3RfcXVldWVfbXVsdGlwbA== ZDlhYl9zYV9lZiN4ZmRyZWFjMXdw a3o2YWRTbG90cyN5aXQ5YzlyNms=".split(" ");var zW;zW=function(C,F,G){this.uCY=C;this.isAsync=F;this.kCS=G};
_.pW5=[new zW("b.f_",!1,0),new zW("j.s_",!1,2),new zW("r.s_",!1,4),new zW("e.h_",!1,6),new zW("i.s_",!0,8),new zW("s.t_",!1,10),new zW("p.h_",!1,12),new zW("s.i_",!1,14),new zW("f.i_",!1,16),new zW("a.b_",!1,18),new zW("a.o_",!1),new zW("g.o_",!1,22),new zW("p.i_",!1,24),new zW("p.m_",!1),new zW("n.k_",!0,20),new zW("i.f_",!1),new zW("a.s_",!0),new zW("m.c_",!1),new zW("n.h_",!1,26),new zW("o.p_",!1),new zW("m.p_",!0,28),new zW("o.a_",!1),new zW("d.p_",!1),new zW("e.i_",!1)].reduce(function(C,F){C[F.uCY]=
F;return C},{});var LQS=function(){};
LQS.prototype.flush=function(C,F){C=C===void 0?[]:C;F=F===void 0?!1:F;if(_.y("enable_client_streamz_web")){C=_.u(C);for(var G=C.next();!G.done;G=C.next())G=J2m(G.value),this.rootSpec&&_.OL(G,2,this.rootSpec),G={serializedIncrementBatch:_.eU(G.JSC$9606_serializeBinary())},_.q1("streamzIncremented",G,{sendIsolatedPayload:F})}};
var bEA=function(){};
_.O(bEA,LQS);var BYo=function(C){var F=new mdm;var G=new Kg8;G=_.fA(G,1,"botguard");C=_.fA(G,2,C);this.rootSpec=_.X6(F,1,CbP,C)};
_.O(BYo,LQS);var rd,v1$=new Map;var fOi,uCW,UsW,IOB,tCS,wWT,c95,OEI;fOi=2;uCW=2;UsW=2;IOB=2;tCS=2;wWT=2;c95=2;OEI=new CwG;var hE$,cIr;hE$=function(){this.ongoingFlowNonces=new Map};
_.Fp=function(){cIr||(cIr=new hE$);return cIr};
_.jv=function(C,F,G){return{eventType:{flowEventNamespace:C,flowEventType:F},metadata:G,statusCode:void 0,csn:void 0,can:void 0}};
_.C75=function(C,F){var G=_.Fp(),V=AIy(G,F,!0);G.logFlowEvent(C,F,V,void 0)};
hE$.prototype.logFlowEvent=function(C,F,G,V){F={flowNonce:G||AIy(this,F),flowType:F,flowEventType:C.eventType};C.metadata&&(F.flowMetadata=C.metadata);C.statusCode!==void 0&&(F.flowEventStatus=C.statusCode);C.csn&&(F.csn=C.csn);C.can&&(F.can=C.can);_.q1("flowEvent",F,V)};
var AIy=function(C,F,G){G=G===void 0?!1:G;var V=C.ongoingFlowNonces.get(F);if(!V||G)V=U5(16),C.ongoingFlowNonces.set(F,V);return V};_.eEo=new meG;var ipI={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch",COMPANION_SURFACE:"companion_surface"};var Qc=function(C,F,G,V,J,b,z){G=G===void 0?!1:G;V=V===void 0?!1:V;b=b===void 0?_.$s():b;this.hasRun=!1;this.nVu=C;this.ysL=F;this.i5j=G;this.fromHistory=V;this.previousVideoId=J;this.ken=b;this.tempData=z;this.hg2=new _.jau};
_.O(Qc,W0);Qc.prototype.validate=function(C){return!(!C.data.playerResponse||C.data.page!=="watch"&&C.data.page!=="learning_journey_watch"&&C.data.page!=="shorts"||this.hasRun)};
Qc.prototype.handle=function(C){var F=this,G=_.Z(C.endpoint,_.eT),V=_.Z(C.endpoint,_.nd);if(_.y("kevlar_continue_playback_without_player_response")&&(G==null?0:G.videoId)&&this.previousVideoId&&(G==null?void 0:G.videoId)===this.previousVideoId&&(G==null?0:G.continuePlayback)&&!this.fromHistory)this.nVu.resolve();else{var J={};G?J.watch_endpoint=G:V&&(J.watch_endpoint=V,V.endTimeSeconds&&(J.end=V.endTimeSeconds));C.data.page==="watch"?(C.data.filler||this.i5j||(_.OZ("cfg"),_.FV.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(J,dLO(this,C.endpoint)),_.y("enable_masthead_quartile_ping_fix")&&Object.assign(J,xLP(this)),Object.assign(J,void 0),C.data.forceExternalPlaylist&&(J.external_list=!0)):C.data.page==="shorts"?_.FV.getInstance().triggerAction("yt-start-loading-shorts"):C.data.page==="learning_journey_watch"&&_.FV.getInstance().triggerAction("yt-start-loading-learning-journey");if(G=this.ysL()){try{G.loadVideoWithPlayerResponse(C.data.playerResponse,J),G.getPlayerPromise().then(this.nVu.resolve)}catch(b){_.gD(b),
this.nVu.resolve()}this.hasRun=!0;G.getPlayerPromise().then(function(b){b.addEventListener("onAbnormalityDetected",function(){var z=C.data.playerResponse,Q=b.getVideoData().cpn;c95=0;_.fTP=Q;if(Q=DsT(z))F.hg2.increment("IN_PLAYER"),_.Gt(5),_.y("ab_st_vid_ks")?b.pauseVideo(!0):b.stopVideo(),z.playabilityStatus=Object.assign({},z.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:Q}}),z.videoDetails=void 0,_.FV.getInstance().triggerOptionalAction("yt-updated-playability-status",
z.playabilityStatus)})})}else _.Yw(Error("Tf"))}};
var dLO=function(C,F){var G=_.Z(F,_.eT);if(F&&G&&G.playlistId&&G.videoId&&(C=C.ken,C.queueProxy?(C=C.queueProxy,G=C.listId===G.playlistId?C.attributionData.get(G.videoId):void 0):G=void 0,G))return{queue_info:G}},xLP=function(C){var F;
if((F=C.tempData)==null?0:F.adpings)return{adpings:C.tempData.adpings}};var Im=function(C,F,G){this.hasRun=!1;this.xix=C;this.coI=F;this.eg5=G};
_.O(Im,W0);Im.prototype.validate=function(C){return!!_.xf.getValueByKeys.apply(null,[C.data].concat(_.da(n1u)))};
Im.prototype.handle=function(C){var F=this;this.xix.promise.then(function(){var G=C.data;var V=_.xf.getValueByKeys.apply(null,[G].concat(_.da(FQ7))),J=_.xf.getValueByKeys.apply(null,[G].concat(_.da($Ll))),b=_.xf.getValueByKeys.apply(null,[G].concat(_.da(Vgo)));var z=(z=_.xf.getValueByKeys.apply(null,[G].concat(_.da(GQ7))))?{videoId:z.videoId,thumbnail:z.thumbnail,title:z.title?_.eN(z.title):void 0,shortBylineText:z.author?_.eN(z.author):void 0}:void 0;var Q=void 0;_.y("web_get_playlist_id_from_current_endpoint_ks")||
(Q=_.xf.getValueByKeys.apply(null,[G].concat(_.da(iw$))));var E=_.xf.getValueByKeys.apply(null,[G].concat(_.da(bwl))),t=_.xf.getValueByKeys.apply(null,[G].concat(_.da(JI7))),k=!!E||!!t&&!!t.results&&t.results.length>0,U=0;J&&J.currentIndex&&J.localCurrentIndex&&(U=J.currentIndex-J.localCurrentIndex);J&&J.playlistId&&(Q=J.playlistId);G={rawResponse:G,autoplayRenderer:V,hasRelatedVideoData:k,playingVideo:z,playingVideoId:b,playlistPanelRenderer:J,playlistId:Q,playlistIndex:J&&J.currentIndex,relatedVideoArgs:E,
endScreenRenderer:t,playlistIndexOffset:U};a:{V=F.eg5;J=F.coI;V.response=G;if(NYS(G))V.downloadPlaylistProxy&&V.downloadPlaylistProxy.getPlaylistId()===Zw7(G)||(V.downloadPlaylistProxy=new ojm(Zw7(G),V.setPlaylistData.bind(V),V.isPlayingOfflineVideo.bind(V))),V.responsePlaylistData=V.downloadPlaylistProxy.getPlaylistData(),V.listId=Zw7(G),V.index=0;else if(G.playlistPanelRenderer&&G.playlistId&&G.autoplayRenderer)G.playlistId.startsWith("TLPQ")?V.queueProxy?V.listId===G.playlistId?(V.index=G.playlistIndex,
V.responsePlaylistData=G.playlistPanelRenderer,V.queueProxy.JSC$13029_setCurrentIndex(V.index)):G.playingVideoId&&V.index!==void 0&&J.clientParams.autoSaveToQueue&&(V.index+=1,V.queueProxy.JSC$13029_setCurrentIndex(V.index),V.queueProxy.addVideos([G.playingVideoId],{},V.index)):(V.queueProxy=new _.mo(V.JSC$13083_playlistNetworkManager,G.playlistId,V.setPlaylistData.bind(V),V.clearQueue.bind(V),_.mj9(G.playlistPanelRenderer),V.storage),V.responsePlaylistData=G.playlistPanelRenderer,V.listId=G.playlistId,
V.index=G.playlistIndex):(V.index=G.playlistIndex,V.listId!==G.playlistId&&V.clearQueue(),V.responsePlaylistData=G.playlistPanelRenderer,V.listId=G.playlistId,V.playlistProxy=new jiG(V.JSC$13083_playlistNetworkManager,G.playlistId,V.setPlaylistData.bind(V),_.mj9(G.playlistPanelRenderer)));else if(!V.queueProxy)V.responsePlaylistData=void 0;else if(G.playingVideoId&&J.clientParams.autoSaveToQueue){if(V.index===void 0){_.gD(Error("Pf"));V.clearQueue();break a}V.queueProxy.videoIds.includes(G.playingVideoId)||
(V.index+=1,V.queueProxy.JSC$13029_setCurrentIndex(V.index),V.queueProxy.addVideos([G.playingVideoId],{},V.index))}_.bM(V,_.nS(V,V.response.autoplayRenderer))}})};var si2=function(C,F){F=F===void 0?_.$s():F;LQ.call(this);this.qr.push(new Im(this.pL,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},F));this.qr.push(new Qc(this.pL,C,!1,!1));_.y("web_response_commands_chunk_processor")&&this.qr.push(new B0)};
_.O(si2,LQ);si2.prototype.processChunk=function(C){C&&C.data.player===void 0&&this.pL.resolve();LQ.prototype.processChunk.call(this,C)};var Ei=function(C,F){C=C===void 0?{layer:0}:C;this.hasRun=!1;this.createScreenConfig=C;this.jf5=F};
_.O(Ei,W0);Ei.prototype.validate=function(C){return!(this.hasRun||!C.endpoint)};
Ei.prototype.handle=function(C){var F=_.ia(),G,V,J=(V=_.Z((G=C.endpoint)==null?void 0:G.commandMetadata,_.GU))==null?void 0:V.rootVe;this.jf5&&J?_.NJ(F,J,this.jf5,this.createScreenConfig):M7P(F,C.endpoint,this.createScreenConfig);this.hasRun=!0};var W$=function(C,F){this.hasRun=!1;this.gXx=C;this.previousVideoId=F};
_.O(W$,W0);W$.prototype.validate=function(C){return _.y("kevlar_continue_playback_without_player_response")&&(C=_.Z(C.endpoint,_.eT),(C==null?0:C.videoId)&&this.previousVideoId&&(C==null?void 0:C.videoId)===this.previousVideoId&&(C==null?0:C.continuePlayback))?!1:this.gXx.tCb===0};
W$.prototype.handle=function(C){_.FV.getInstance().triggerAction("yt-stop-old-player",C.data,!0)};var q2l=function(C){C=C===void 0?{layer:0}:C;LQ.call(this);this.qr.push(new W$(this));this.qr.push(new Ei(C));this.qr.push(new Sl(C))};
_.O(q2l,LQ);var th=function(){W0.apply(this,arguments)};
_.O(th,W0);th.prototype.validate=function(C){return!!C.data.preconnect};
th.prototype.handle=function(C){_.NV("bc");C=_.u(C.data.preconnect);for(var F=C.next();!F.done;F=C.next())F=F.value,(new Image).src=F};var PrO=function(C,F,G,V,J,b,z){G=G===void 0?{layer:0}:G;b=b===void 0?_.$s():b;LQ.call(this);if(V)if(J){J=b;this.qr.push(new Im(this.pL,F,J));this.qr.push(new th);var Q,E;this.qr.push(new Qc(this.pL,C,!1,!((Q=F.clientParams)==null||!Q.fromHistory),(E=F.clientParams)==null?void 0:E.previousVideoId,J,F.tempData));var t;this.qr.push(new W$(this,(t=F.clientParams)==null?void 0:t.previousVideoId));var k;(k=F.clientParams)!=null&&k.fromHistory||(G.layer||(G=Object.assign({},G,{layer:0})),this.qr.push(new Ei(G,
z)),this.qr.push(new Sl(G)))}else this.qr.push(new Im(this.pL,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},b)),this.qr.push(new Qc(this.pL,C,!1,!1));else this.qr.push(new W$(this)),this.qr.push(new Ei(G)),this.qr.push(new Sl(G));_.y("web_response_commands_chunk_processor")&&V&&this.qr.push(new B0)};
_.O(PrO,LQ);PrO.prototype.processChunk=function(C){C&&C.data.player===void 0&&this.pL.resolve();LQ.prototype.processChunk.call(this,C)};var g1u=function(){this.hasRun=this.hasRun=!1};
_.O(g1u,W0);g1u.prototype.validate=function(C){return!this.hasRun&&!(!C.data.csn||!C.data.rootVe)};
g1u.prototype.handle=function(C){this.hasRun=!0;_.O5(C.data.csn,C.data.rootVe,3)};var REO=function(C,F,G){G=G===void 0?{layer:0}:G;LQ.call(this);this.qr.push(new Qc(this.pL,C));this.qr.push(new Ei(G));this.qr.push(new Sl(G))};
_.O(REO,LQ);var Y2$=function(C,F,G,V,J){G=G===void 0?{layer:0}:G;V=V===void 0?_.$s():V;LQ.call(this);var b=!!F&&!!F.clientParams&&!!F.clientParams.miniplayer;b&&this.qr.push(new g1u);this.qr.push(new Im(this.pL,F,V));this.qr.push(new th);var z,Q;this.qr.push(new Qc(this.pL,C,b,!((z=F.clientParams)==null||!z.fromHistory),(Q=F.clientParams)==null?void 0:Q.previousVideoId,V,F.tempData));var E;this.qr.push(new W$(this,(E=F.clientParams)==null?void 0:E.previousVideoId));var t;(t=F.clientParams)!=null&&t.fromHistory||
(G.layer||(G=Object.assign({},G,{layer:b?3:0})),this.qr.push(new Ei(G,J)),this.qr.push(new Sl(G)));_.y("web_response_commands_chunk_processor")&&this.qr.push(new B0)};
_.O(Y2$,LQ);var am,rIu;am={};
_.TYO=(am["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},am["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},am["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},am["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},am["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},am["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},am["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},am);_.ks=new _.rT("yt-edu");_.o1r=function(){this.JSC$13181_eduDisplayedThisLoad_={}};
rIu=function(C){var F=_.o1r.getInstance();var G=_.a8("kevlar_tooltip_impression_cap");F=G&&parseInt(_.ks.get(C+"-impression")||0,10)>=G||_.ks.get(C+"-dismissed")?!1:(G=_.TYO[C])&&!F.JSC$13181_eduDisplayedThisLoad_[G.setKey||C]&&(G.titleText&&_.iQ(G.titleText)||G.bodyText&&_.iQ(G.bodyText))?!0:!1;if(!F)return null;F=_.TYO[C];if(!F)return null;G=F.bodyText?_.iQ(F.bodyText):void 0;var V=F.titleText?_.iQ(F.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:F.position,popup:{bubbleHintRenderer:{text:V?
_.eN(V):void 0,detailsText:G?_.eN(G):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.eN(_.iQ("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:C}}]}}}}}}}},{eduImpressionAction:{key:C}}]};
_.Ps(_.o1r);var jOs=!1;for(var KQS="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),DL7=[],Ui=6;Ui>=1;Ui--)DL7.push({columnCount:Ui,query:Ui==1?0:Ui*2*107-4+32,className:"grid-"+Ui+"-columns",width:Ui*2*107+"px"});_.H$=function(C){this.actionRouter_=C=C===void 0?_.FV.getInstance():C;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.pOo(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.pOo=function(C){var F=C.documentWidth_-(C.miniGuideVisible_?72:0)-(C.guidePersistentAndVisible_?240:0)-(C.persistentPanelVisible_?400:0);return DL7.find(function(G){return F>G.query})};
_.Ps(_.H$);var mLS=function(){var C=this;this.JSC$13193_keyboardInUse=!1;document.addEventListener("keydown",function(){C.onKeydown()});
document.addEventListener("mousedown",function(){C.JSC$13193_keyboardInUse=!1})},C6G;
mLS.prototype.isKeyBoardInUse=function(){return this.JSC$13193_keyboardInUse};
mLS.prototype.onKeydown=function(){this.JSC$13193_keyboardInUse=!0};var jHO,ZS;_.lM=new _.rT("yt-mentions");_.yc=function(){};
jHO=function(C,F){return ZS(F,"drag-to-reorder-edu-displayed")};
ZS=function(C,F,G,V,J,b){G=G===void 0?"OPEN_POPUP_POSITION_TOP":G;if(F){if(_.lM.get(F))return;_.lM.set(F,!0,V)}if(J&&b!==void 0){F=Number(_.lM.get(J)||0);if(F>=b)return;_.lM.set(J,F+1)}return[{openPopupAction:{popupType:"HINT",position:G,popup:{bubbleHintRenderer:{detailsText:C,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.Ps(_.yc);var F37,G8E,VbE;F37=function(C,F,G,V){this.JSC$13203_taskManager_=C;this.onFulfilled_=typeof F==="function"?F:null;this.onRejected_=typeof G==="function"?G:null;this.JSC$13203_context_=V};
G8E=function(C,F){C.onFulfilled_&&_.Iy(C.JSC$13203_taskManager_,function(){C.onFulfilled_.call(C.JSC$13203_context_,F)})};
VbE=function(C,F){C.onRejected_&&_.Iy(C.JSC$13203_taskManager_,function(){C.onRejected_.call(C.JSC$13203_context_,F)})};
_.NZ=function(C){this.JSC$13206_taskManager_=C;this.callbacks_=[]};
_.NZ.prototype.then=function(C,F,G){this.callbacks_.push(new F37(this.JSC$13206_taskManager_,C,F,G));return this};
_.NZ.prototype.onSuccess=function(C){this.callbacks_.forEach(function(F){G8E(F,C)})};
_.NZ.prototype.onFailure=function(C){this.callbacks_.forEach(function(F){VbE(F,C)})};
_.NZ.prototype.cancel=function(){this.callbacks_.length=0};
nnu(_.NZ);_.$Rs=null;_.zb=new _.jh("ACTIVITY_TOKEN");var iFG;_.Q7=new _.jh("PAGE_REQUEST_TOKEN");iFG=new _.jh("FETCH_PBJ_TOKEN");_.J7o=function(C){if(C.validatedFragments_.length==0)return null;if(!C.mergedPrefetchedData_){for(var F=[],G=_.u(C.validatedFragments_),V=G.next();!V.done;V=G.next()){V=_.u(C.fragmentConfiguration_[V.value].graftedKeys);for(var J=V.next();!J.done;J=V.next())(J=C.prefetchedData_[J.value].trackingParams)&&F.push(J)}C.mergedPrefetchedData_={};Object.assign(C.mergedPrefetchedData_,C.prefetchedData_,{clientSideGrafts:F})}return C.mergedPrefetchedData_};var $y$;_.Oi=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
$y$=function(C,F,G){if(_.bp5(F))return C.prefetchCache_.get(_.nVI(F,G))};_.Xx=new _.jh("NAVIGATION_TOKEN");var bFr=function(C){var F=this;var G=G===void 0?QOZ():G;var V=V===void 0?_.I8().resolve(_.Xx):V;this.onePickCommand=C;this.JSC$13278_playlistNetworkManager=G;this.navigationManager=V;this.videoPickerBuilder=_.uA9("yt-addtoplaylist");_.S8o(yrE(ZXE(lQE(this.videoPickerBuilder.setTitle(C.modalTitle).setSize(1E3).addView(Oc7()).addView(NRu())).addView("youtube"),C.selectButtonLabel)),function(J){F.handleAction(J)})};
bFr.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
bFr.prototype.handleAction=function(C){var F=this;if(C&&this.onePickCommand.listId&&C.action==="picked"&&C.docs){var G=[];C.docs.forEach(function(V){G.push({addedVideoId:V.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13278_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,G).then(function(){_.y("playlist_add_video_hard_reload_killswitch")?F.navigationManager.reload():nqy(F.navigationManager)})}};var uvy=function(){if(this.constructor===uvy)throw new TypeError("Vf");};
_.n=uvy.prototype;_.n.dispose=function(){};
_.n.disconnect=function(){};
_.n.reconnect=function(){};
_.n.observe=function(C,F,G){return{element:C,option:G}};
_.n.unobserveByKey=function(){};var IMi=function(C,F){F=F===void 0?0:F;uvy.call(this);this.viewroot=C;this.defaultPrescanHeight=F;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),C?{root:C,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.O(IMi,uvy);_.n=IMi.prototype;_.n.dispose=function(){this.disconnect();this.handlers.clear()};
_.n.disconnect=function(C){this.isConnected=!1;this.pauseObservingUntilReconnect=C===void 0?!1:C;this.observer.disconnect();C=_.u(this.prescanObservers.values());for(var F=C.next();!F.done;F=C.next())F.value.disconnect()};
_.n.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var C=_.u(this.handlers),F=C.next();!F.done;F=C.next()){var G=_.u(F.value);F=G.next().value;var V=G.next().value;G=!1;V=_.u(V.keys());for(var J=V.next();!J.done;J=V.next())if((J=J.value)&&J.state==="prescan"){G=!0;break}G&&zWu(this,F).observe(F);this.observer.observe(F)}}};
_.n.handleObserveEvent=function(C){C=_.u(C);for(var F=C.next();!F.done;F=C.next()){F=F.value;var G=this.handlers.get(F.target);if(G){var V=F.isIntersecting;G=_.u(G);for(var J=G.next();!J.done;J=G.next()){var b=_.u(J.value);J=b.next().value;b=b.next().value;J&&(J.state==="visible"&&V||J.state==="hidden"&&!V)&&(b(F.target,J.state),J.calledOnce&&this.unobserveByKey({element:F.target,option:J}))}}}};
_.n.handlePrescanEvent=function(C){C=_.u(C);for(var F=C.next();!F.done;F=C.next()){F=F.value;var G=this.handlers.get(F.target);if(G&&F.isIntersecting){G=_.u(G);for(var V=G.next();!V.done;V=G.next()){var J=_.u(V.value);V=J.next().value;J=J.next().value;V&&V.state==="prescan"&&(J(F.target,V.state),V.calledOnce&&this.unobserveByKey({element:F.target,option:V}))}}}};
_.n.observe=function(C,F,G){var V=(V=this.handlers.get(C))&&V.has(G)?{element:C,option:G}:void 0;if(V)return V;V={element:C,option:G};this.handlers.has(C)||this.handlers.set(C,new Map);var J=this.handlers.get(C);J&&!J.has(G)&&J.set(G,F);this.pauseObservingUntilReconnect||(G.state==="prescan"&&zWu(this,C).observe(C),this.observer.observe(C));return V};
_.n.unobserveByKey=function(C){var F=this.handlers.get(C.element);if(F&&F.has(C.option)){F.delete(C.option);if(C&&C.option.state==="prescan")for(var G=_.u(this.prescanObservers.values()),V=G.next();!V.done;V=G.next())V.value.unobserve(C.element);F.size===0&&(this.handlers.delete(C.element),this.observer.unobserve(C.element))}};
var zWu=function(C,F){var G=C.defaultPrescanHeight;F.hasAttribute("prescan-height")&&(F=Number(F.getAttribute("prescan-height")),isNaN(F)||(G=F));if(C.prescanObservers.has(G))return C.prescanObservers.get(G);F="-0.1px -0.1px "+G+"px -0.1px";F=new IntersectionObserver(C.handlePrescanEvent.bind(C),C.viewroot?{root:C.viewroot,rootMargin:F}:{rootMargin:F});C.prescanObservers.set(G,F);return F};var QHE=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],I32=function(){var C,F=this;this.JSC$13295_actionRouter=C=C===void 0?_.FV.getInstance():C;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return F.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return F.visibilityObservedElementHandlerKeys}}},EqE,tbu,Uy7;
I32.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.y("kevlar_use_vimio_behavior")&&_.TF("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=EVE())};
I32.prototype.dispose=function(){this.visibilityMonitor&&_.Hd(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
I32.prototype.handleVisibilityRefreshed=function(){for(var C=_.u(this.targetMap.entries()),F=C.next();!F.done;F=C.next()){var G=_.u(F.value);F=G.next().value;G=G.next().value;_.W3u(this,F,G)}};
_.k8o=function(C,F,G){tbu(C,G);var V=_.a3m(C,F);V.element=G;C.targetedElements.set(G,F);_.W3u(C,F,V)};
tbu=function(C,F){var G=C.targetedElements.get(F);if(G){var V=C.targetMap.get(G);V&&(delete V.element,C.targetMap.set(G,V));C.targetedElements.delete(F);C.visibilityObserver&&C.visibilityObservedElementHandlerKeys&&(G=C.visibilityObservedElementHandlerKeys.get(F))&&(C.visibilityObserver.unobserveByKey(G),C.visibilityObservedElementHandlerKeys.delete(F))}};
_.W3u=function(C,F,G){var V=G.action,J=G.element;J&&V&&(QHE.includes(F)||_.TF("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||C.visibilityMonitor&&C.visibilityMonitor.isNodeVisible(J)?Uy7(C,F,G):C.visibilityObserver&&(C.visibilityObservedElementHandlerKeys||(C.visibilityObservedElementHandlerKeys=new WeakMap),V=C.visibilityObserver.observe(J,function(){Uy7(C,F,G);C.visibilityObservedElementHandlerKeys.delete(J)},{calledOnce:!0,
state:"visible"}),C.visibilityObservedElementHandlerKeys.set(J,V)))};
Uy7=function(C,F,G){var V=G.action;(G=G.element)&&V&&(_.AB(C.JSC$13295_actionRouter,[V],G),C.targetMap.delete(F),C.targetedElements.delete(G),C.triggeredTargets.add(F))};
_.a3m=function(C,F){var G=C.targetMap.get(F);G||(G={},C.targetMap.set(F,G));return G};
_.w6=function(){EqE||(EqE=new I32);return EqE};var HFu=document.createElement("div");HFu.style.touchAction="pan-down";var Wuo=HFu.style.touchAction==="pan-down";var l3S,y7O;l3S=function(){this.hammerFn=wsO();this.JSC$13303_screenManager=_.ia();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.m2(83615);_.Xu(this.JSC$13303_screenManager,this.ve);tK5()};
_.MZ=function(){y7O||(y7O=new l3S);return y7O};
l3S.prototype.registerTouchEvents=function(C,F,G){var V=_.Rn.apply(3,arguments),J=this.hammerFn(C,{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}]]});G&&J.set({touchAction:G});this.nodeManagerMapping.set(C,J);var b=
aMq(F);V=_.u(V);for(var z=V.next();!z.done;z=V.next()){z=z.value;if(z.includes("swipe")||z.includes("pinch")||z.includes("pan"))z.includes("swipe")?J.get("swipe").set({enable:!0,direction:b,velocity:.2}):z.includes("pinch")?J.get("pinch").set({enable:!0}):z.includes("pan")&&(J.get("pan").set({enable:!0,direction:b}),J.get("swipe").set({enable:!0,direction:b,velocity:.2}),J.get("swipe").recognizeWith("pan"));ZFP(this,C,J,z)}};
var ZFP=function(C,F,G,V){G.on(V,function(J){if(V.includes("pinch"))C.lastPinchTime=Date.now();else if(V.includes("swipe")&&Date.now()-C.lastPinchTime<400)return;J.pointerType!=="mouse"&&(J=V==="doubletap"?{coordinates:J.center}:V.includes("pan")?J:V.includes("swipe")?{target:J.target}:{},F.dispatchEvent(new CustomEvent(V,{bubbles:!0,composed:!0,detail:J})))})};
l3S.prototype.unregisterTouchEvents=function(C){var F=_.Rn.apply(1,arguments),G=this.nodeManagerMapping.get(C);if(G){F=_.u(F);for(var V=F.next();!V.done;V=F.next())G.off(V.value);this.nodeManagerMapping.delete(C);C.style.touchAction="unset"}};var N_E=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var ksf=null;_.It={getLocalStorage:_.aF(function(){try{var C=new sQ5;var F=C.isAvailable()?C:null}catch(G){return null}return F?new _.Zc(F):null}),
getSessionStorage:_.aF(function(){var C=new qZ9;return C.isAvailable()?new _.Zc(C):null})};var OFl=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},AZo=function(){OFl.instance||(OFl.instance=new OFl);
return OFl.instance},e3I=function(C){var F=C.networkEvents;
C.networkEvents=[];return _.y("enable_network_monitoring")?F:[]};var X4u;X4u={};_.w42=Ia("yt-serviceworker-metadata",{objectStores:(X4u.auth={addedAtVersion:1},X4u["resource-manifest-assets"]={addedAtVersion:2},X4u),shared:!0,upgrade:function(C,F){F(1)&&Ds(C,"resource-manifest-assets");F(2)&&Ds(C,"auth")},
version:2});var NPi=self.location.origin+"/";Opf([/^https:\/\/([\w-]*\.)*youtube\.com.*/,/^https:\/\/([\w-]*\.)*gstatic\.com.*/]);Opf([/\.css$/,/\.js$/,/\.webm$/,/\.png$/]);Opf([/\.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\//]);Opf([/purge_shell=1/]);var MbG=void 0;MbG=MbG===void 0?[]:MbG;
for(var SJu=[],L38=_.u(J3O),B_l=L38.next();!B_l.done;B_l=L38.next())SJu.push({key:B_l.value});for(var vqP=_.u(MbG),f3m=vqP.next();!f3m.done;f3m=vqP.next())SJu.push(f3m.value);var hW7,at=_.VT==null?void 0:(hW7=_.VT.performance)==null?void 0:hW7.memory,MKT=!1,dRT={},BPW={},kT={},U6=navigator;var S8=function(C){this.JSC$13348_expiringStorage=new dj(C)};
S8.prototype.set=function(C,F,G){G=G!==void 0?Date.now()+G:void 0;this.JSC$13348_expiringStorage.set(C,F,G)};
S8.prototype.get=function(C){return this.JSC$13348_expiringStorage.get(C)};
S8.prototype.remove=function(C){this.JSC$13348_expiringStorage.remove(C)};var TPq=_.h6(["https://www.youtube.com/",""]),oVi=_.h6(["https://studio.youtube.com/",""]),mRI="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",KuT=null,VzW;var c72=_.h6(["https://www.youtube.com/iframe_api"]),LS=function(){this.playerResolver_=_.hM();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.t8;this.playbackDurationSeconds_=0},A78=function(C){var F=function(){return window.YT&&typeof window.YT.ready==="function"};
if(F())return _.mE(window.YT);var G=_.hM(),V=_.Md("SCRIPT");V.onload=V.onreadystatechange=function(){V.readyState&&V.readyState!="loaded"&&V.readyState!="complete"||(V.onload=_.t8,V.onreadystatechange=_.t8,V.onerror=_.t8,F()?G.resolve(window.YT):G.reject(new _.Ay("Failed to load the iframe player library","script.onload",V.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
V.onerror=function(J){V.onload=_.t8;V.onreadystatechange=_.t8;V.onerror=_.t8;G.reject(new _.Ay("Failed to load the iframe player library","script.onerror",J&&J.target&&J.target.src))};
_.JW(V,_.kf(c72));C.insertBefore(V,C.firstChild);return G.promise},eWm=function(C,F,G){var V,J;
_.I(function(b){switch(b.nextAddress){case 1:return C.playbackEndedCallback_=G,_.yy(b,2),b.yield(A78(F.parentElement||null),4);case 4:V=b.yieldResult;_.Gn(b,3);break;case 2:return J=_.wa(b),J instanceof _.Ay&&J.args&&J.args[0]=="script.onerror"?_.Yw(J):_.gD(J),b.return();case 3:V.ready(function(){return new V.Player(F,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:C.onPlayerReady_.bind(C),onStateChange:C.onPlayerStateChange_.bind(C),
onCueRangeExit:C.onCueRangeExit_.bind(C)}})}),_.S9(b)}})};
_.n=LS.prototype;_.n.getPlayerPromise=function(){return this.playerPromise_};
_.n.onPlayerReady_=function(C){this.playerResolver_.resolve(C.target)};
_.n.onPlayerStateChange_=function(C){if(C.data==YT.PlayerState.PLAYING){C=C.target;var F=C.getCurrentTime();C.addCueRange("playback",F,F+this.playbackDurationSeconds_)}};
_.n.onCueRangeExit_=function(C){C.data=="playback"&&(C.target.stopVideo(),this.playbackEndedCallback_())};
_.n.stopVideo=function(){this.playerPromise_.then(function(C){C.stopVideo()})};
var dyo=function(C){C.playerVars_&&C.playerPromise_.then(function(F){typeof F.cueVideoByPlayerVars!="function"?_.Yw(new _.Ay("vmh: player API not ready","cueVideoByPlayerVars",typeof F.cueVideoByPlayerVars)):F.cueVideoByPlayerVars(C.playerVars_)})};
LS.prototype.playVideo=function(){var C=this;this.playerVars_&&this.playerPromise_.then(function(F){typeof F.loadVideoByPlayerVars!="function"?(F=new _.Ay("vmh: player API not ready","loadVideoByPlayerVars",typeof F.loadVideoByPlayerVars),_.gD(F)):F.loadVideoByPlayerVars(C.playerVars_)})};
var xyl=function(C,F,G,V,J){F&&(G===void 0&&(G=0),V===void 0&&(V=0),C.playbackDurationSeconds_=V/1E3,C.playerVars_={adformat:"17_8",videoId:F,suggestedQuality:"hd720",startSeconds:G/1E3,player_params:J})};
LS.prototype.mute=function(){this.playerPromise_.then(function(C){C.mute()})};
LS.prototype.unMute=function(){this.playerPromise_.then(function(C){C.unMute()})};var zUS=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var B$;B$=function(){this.tokenJars={};if(this.cookiesEnabled=_.fD()){var C=_.BD.get("CONSISTENCY",void 0);C&&sHE(this,{encryptedTokenJarContents:C})}};
_.IZE=function(){B$.instance||(B$.instance=new B$);return B$.instance};
B$.prototype.handleResponse=function(C,F){if(!F)throw Error("$f");var G,V;F=((G=F.innerTubeRequest.context)==null?void 0:(V=G.request)==null?void 0:V.consistencyTokenJars)||[];var J;(C=(J=C.responseContext)==null?void 0:J.consistencyTokenJar)&&this.replace(F,C)};
B$.prototype.replace=function(C,F){C=_.u(C);for(var G=C.next();!G.done;G=C.next())delete this.tokenJars[G.value.encryptedTokenJarContents];sHE(this,F)};
var sHE=function(C,F){if(F.encryptedTokenJarContents&&(C.tokenJars[F.encryptedTokenJarContents]=F,typeof F.expirationSeconds==="string")){var G=Number(F.expirationSeconds);setTimeout(function(){delete C.tokenJars[F.encryptedTokenJarContents]},G*1E3);
C.cookiesEnabled&&_.vD("CONSISTENCY",F.encryptedTokenJarContents,G,void 0,!0)}};var qJS,v$;qJS=window.location.hostname.split(".").slice(-2).join(".");_.Br=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var C=_.TF("LOCATION_PLAYABILITY_TOKEN");_.TF("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=P6$(this))&&(C=this.localStorage.get("yt-location-playability-token"));C&&(this.locationPlayabilityToken=C,this.mostRecentPosition=void 0)};
_.Br.getInstance=function(){v$=_.mN("yt.clientLocationService.instance");v$||(v$=new _.Br,_.zn("yt.clientLocationService.instance",v$));return v$};
_.Br.prototype.setLocationOnInnerTubeContext=function(C){C.client||(C.client={});if(this.mostRecentPosition)C.client.locationInfo||(C.client.locationInfo={}),C.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),C.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),C.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),C.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)C.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.Br.prototype.handleResponse=function(C){var F;C=(F=C.responseContext)==null?void 0:F.locationPlayabilityToken;C!==void 0&&(this.locationPlayabilityToken=C,this.mostRecentPosition=void 0,_.TF("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=P6$(this))&&this.localStorage.set("yt-location-playability-token",C,15552E3):_.vD("YT_CL",JSON.stringify({loctok:C}),15552E3,qJS,!0))};
var P6$=function(C){return C.localStorage===void 0?new _.rT("yt-client-location"):C.localStorage};
_.Br.prototype.clearLocationPlayabilityToken=function(C){C==="TVHTML5"?(this.localStorage=P6$(this))&&this.localStorage.remove("yt-location-playability-token"):_.f8w("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.Br.prototype.getCurrentPositionFromGeolocation=function(){var C=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("ag"));var F=!1,G=1E4;_.TF("INNERTUBE_CLIENT_NAME")==="MWEB"&&(F=!0,G=15E3);return new Promise(function(V,J){navigator.geolocation.getCurrentPosition(function(b){C.mostRecentPosition=b;V(b)},function(b){J(b)},{enableHighAccuracy:F,
maximumAge:0,timeout:G})})};
_.Br.prototype.createUnpluggedLocationInfo=function(C){var F={};C=C.coords;if(C==null?0:C.latitude)F.latitudeE7=Math.floor(C.latitude*1E7);if(C==null?0:C.longitude)F.longitudeE7=Math.floor(C.longitude*1E7);if(C==null?0:C.accuracy)F.locationRadiusMeters=Math.round(C.accuracy);return F};
_.Br.prototype.createLocationInfo=function(C){var F={};C=C.coords;if(C==null?0:C.latitude)F.latitudeE7=Math.floor(C.latitude*1E7);if(C==null?0:C.longitude)F.longitudeE7=Math.floor(C.longitude*1E7);return F};var gqu=function(C,F){var G=ST();C||(C="unknown");F||(F="unknown");C="MAIN_APP_WEB_PAGE_TYPE_"+C.toUpperCase();C in kzO||(C="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");F="MAIN_APP_WEB_REQUEST_TYPE_"+F.toUpperCase();F in UJo||(F="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.m8(G,{mainAppWeb:{pageType:C,requestType:F,isShellLoad:_.oD("IS_SHELL_LOAD",!1)}})},RW2={start:function(){_.m8(XPs(),{mainAppWeb:_.vr()})},
success:function(){_.CV(XPs(),"SUCCESS")},
failure:function(){_.CV(XPs(),"FAILURE")},
cancelled:function(){_.CV(XPs(),"CANCELLED")}};var YJ7,T_l,k1s;YJ7=_.h6(["/sw.js"]);T_l=_.h6(["/sw.js?0"]);_.oqu=_.kf(YJ7);k1s=_.kf(T_l);var r7E=function(){var C=Error.apply(this,arguments);this.message=C.message;"stack"in C&&(this.stack=C.stack)};
_.O(r7E,Error);_.cr.prototype.load=function(C){this.megabloxUrl_=_.TF("YPC_MB_URL");_.LX(this.megabloxUrl_,(0,_.ck)(function(){C&&C()},this))};
_.c1w=function(C,F,G,V,J,b,z,Q,E,t,k){_.H$S(E);C.load((0,_.ck)(function(){try{var U=b?b:_.TF("HL"),H=_.TF("SESSION_INDEX");_.iHs("client",function(){Is2("59",{helpCenterPath:"/youtube",locale:U,window:window}).JSC$9974_loadChatSupport({authuser:String(H)})})}catch(l){throw fd(10,k,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),J&&J(l),_.gD(l),l;
}K3G(this,F,G,V,J,b,z,Q,E,t,k)},C))};
_.cr.prototype.openFixFlowDialog=function(C,F,G,V){this.load((0,_.ck)(function(){try{DyO(this,_.mN("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(C).withIntegratorCallback(F).load(G,V)}catch(J){throw _.gD(J),J;}},this))};
var DyO=function(C,F,G,V){var J=F.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.y("enable_window_constrained_buy_flow_dialog")&&(J=J.usingPopupStyle(_.mN("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));V&&(J=J.usingCloseCallback(V));F.bootstrap.fromPaymentsUrl(C.megabloxUrl_);C=F.bootstrap.asMashupMode(J);G=G?G:_.TF("HL");C.usingGaiaIndex(_.TF("SESSION_INDEX")).usingLocale(G).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.y("enable_google_payments_buyflow_material2_style_web")?
C.usingStyle(":m2;pc=#444;ac=#065fd4"):C.usingStyle(":md;pc=#444;ac=#065fd4");return C},K3G=function(C,F,G,V,J,b,z,Q,E,t,k){try{var U=_.mN("payments.business.integration");
if(!U)throw new r7E("payments.business.integration is undefined");var H=U.standaloneContextAuthId.forUserId(),l=DyO(C,U,b,function(){ywW(!1);Q&&Q()});
z&&l.usingServerAnalyticsEventHandler(z);var N=l.inStandaloneContext(H).buyFlow(function(S){if(S&&(!S.integratorData||S.integratorData===""||S.error))if(S.error!=null)if(String(S.error)==="-1")_.lZs(E);else{var f=String(S.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";fd(10,k,f,S.debugCode);_.hR(f,E,S.debugCode);f=new _.Ay("PAYMENT_ERROR_MESSAGE::"+S.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+S.internalErrorDetails);
_.gD(f)}else fd(10,k,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.hR("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",E,"EMPTY_INTEGRATOR_DATA"),_.gD(Error("cg"));G&&(ywW(!1),G(S))}).withEncryptedParameters(F);
t&&N.withClientParameters(WW2(_.f$I(t)));N.load(function(){fd(24,k);_.XI("ttc",void 0,"commerce_transaction");HA("commerce_transaction");V&&(V(),ywW(!0))},function(S){if(S==null?0:S.debugCode)var f=S==null?void 0:S.debugCode;
else if(!S||(S==null?0:S.debugCode))f="EMPTY_LOAD_FAILURE_ERROR",_.gD(Error(f));else{f="EMPTY_LOAD_FAILURE_DEBUG_CODE";var c=new _.Ay("LOAD_FAILURE:"+S.message," DEBUG_CODE:"+f);_.gD(c)}fd(10,k,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",f);_.hR("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",E,f);_.gD(S);J&&J(S)})}catch(S){throw S instanceof r7E&&(fd(10,k,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),J&&J(S)),_.gD(S),S;
}};var p4O;p4O=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.vgB=function(C,F){F=F===void 0?!1:F;C=p4O.test(C)?_.LT(C):null;!F&&window.payments||!C?(C=_.hM(),F=C.promise,C.resolve()):F=_.Cno(C,{attributes:{"data-payments-main":"",id:"payment-lib"}});return F};var myy;myy=_.h6(["//www.googletagmanager.com/gtm.js?id=",""]);_.fS=function(C,F){_.YJ(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:F}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.TF("GL")}),F=_.Md("SCRIPT"),F.async=!0,_.JW(F,_.kf(myy,C)),F.id="gtm",C=document.getElementsByTagName("script"),C.length==0?document.head.appendChild(F):(C=C[0],C.parentNode.insertBefore(F,C)))};
_.hh=function(C){if(C=JSON.parse(C))window.dataLayer=window.dataLayer||[],window.dataLayer.push(C)};var Clu,ju$;Clu=_.h6(["https://clients2.google.com/gr/gr_sync.js"]);_.Ljq=function(){};
_.Ljq.prototype.init=function(){if(ju$()){var C=_.hM();C.resolve();return C.promise}return _.Cno(_.kf(Clu)).then(function(){if(!ju$())throw Error("dg");},function(){throw Error("eg");
})};
_.BmT=function(){if(!ju$())return"";var C=window.google.gr;C.init({async:{schedule:"sync"},merchantId:"youtube"});C.start();C=C.finish();return C==null?"":C};
ju$=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.B=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.O(_.B,PolymerFakeBaseClassWithoutHtml);_.n5=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.O(_.n5,PolymerFakeBaseClassWithoutHtml);var Z$s=window.ShadyDOM;var V7W,F05,JEE,$nE,nFW,uH5,c$,Tt;V7W=_.y("enable_shadydom_free_scoped_query_methods");F05=_.y("enable_shadydom_free_scoped_node_methods");JEE=_.y("enable_shadydom_free_scoped_readonly_properties_batch_one");$nE=_.y("enable_shadydom_free_parent_node");nFW=_.y("enable_shadydom_free_children");uH5=_.y("enable_shadydom_free_last_child");c$=window.ShadyDOM;_.C5=c$&&c$.noPatch&&c$.wrap?c$.wrap:c$?function(C){return c$.patch(C)}:function(C){return C};
Tt=function(C){if(C instanceof ShadowRoot)this.host=(0,_.C5)(C.host),this.root=C;else if(C.$$){this.host=(0,_.C5)(C);var F;this.root=(F=C.root)!=null?F:this.host}else if(C.polymerController){this.host=(0,_.C5)(C);var G;this.root=(G=this.host.shadowRoot)!=null?G:this.host}else this.root=this.host=(0,_.C5)(C)};
Go5();ief();zCB();Q_A();beI();var FRo={querySelector:function(C,F){F=O$f(F,xT(C));C=_.s6(C);return qz(C).prototype.querySelector.call(C,F)},
querySelectorAll:function(C,F){F=O$f(F,xT(C));C=_.s6(C);return qz(C).prototype.querySelectorAll.call(C,F)}},Gju={appendChild:function(C,F){var G=xT(C),V=_.d7(F);
return _.CfA(_.s6(C),G?_.g7(F,G,V):F)},
cloneNode:function(C,F){var G=_.d7(C);C=_.s6(C);F=qz(C).prototype.cloneNode.call(C,F);return G?Rt(F,G):F},
contains:function(C,F){var G=xT(C),V=_.d7(F);return G!==V?!1:j_q(C,F)},
insertBefore:function(C,F,G){var V=xT(C),J=_.d7(F);C=_.s6(C);F=V?_.g7(F,V,J):F;return qz(C).prototype.insertBefore.call(C,F,G)},
removeChild:function(C,F){var G=xT(C);C=_.s6(C);F=G?Rt(F,G):F;return qz(C).prototype.removeChild.call(C,F)},
replaceChild:function(C,F,G){var V=xT(C),J=_.d7(F);F=V?_.g7(F,V,J):J?Rt(F,J):F;G=V?Rt(G,V):G;C=_.s6(C);return qz(C).prototype.replaceChild.call(C,F,G)},
getRootNode:function(C,F){F=F===void 0?{composed:!0}:F;var G;if(((G=F)!=null?G:{}).composed)C=Awq(C);else{F=C;for(C=w1W(C);C;)F=C,C=Shq(C);C=F}return C}},EFE=JEE?{firstChild:oNf,
nextSibling:RUs,previousSibling:TMw,firstElementChild:rww,lastElementChild:DOf,nextElementSibling:gNI,previousElementSibling:Yhf,childNodes:p1f}:{};$nE&&(EFE.parentNode=PLI);nFW&&(EFE.children=mO9);uH5&&(EFE.lastChild=K_i);V7W&&Ijs(FRo);F05&&Ijs(Gju);W0A();var t7W=function(C){this.node=C instanceof ShadowRoot?C.host:C};
aj5();koI();var ljS=new WeakMap;var ZeB=Symbol("Cd");var M79=new Set(["tap","track","down","up"]),SCq=_.y("pbcm_fi_query_decorators");var Ah=function(){return _.n5.apply(this,arguments)||this};
_.O(Ah,_.n5);_.n=Ah.prototype;_.n.getState=function(){return this.store.getState()};
_.n.dispatch=function(C){this.store.dispatch(C)};
_.n.beforeRegister=function(){if(this&&typeof this==="object"){var C;var F=!!this.useSignals||!((C=this.polymerController)==null||!C.useSignals)}else F=!1;if(!F&&this.properties)for(F=_.u(Object.keys(this.properties)),C=F.next();!C.done;C=F.next()){var G=C.value;C=this.properties[G];if(C.selector){if(C.computed)throw Error("kg");G=["reduxPropertiesRecomputeTrigger",'"'+G+'"'].concat(_.da(C.selectorArgs||[])).join(",");C.computed="recomputeReduxSelector("+G+")"}}};
_.n.attached=function(){var C=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){C.reduxPropertiesRecomputeTrigger++}));
_.y("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.n.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.n.recomputeReduxSelector=function(C,F){var G=_.Rn.apply(2,arguments),V=this.properties[F].selector;if(!V)throw Error("ig`"+F);return V.apply(null,[this.store.getState()].concat(_.da(G)))};
_.n.select=function(C){var F=_.Rn.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return C.apply(null,[this.store.getState()].concat(_.da(F)))};
_.I6.Object.defineProperties(Ah.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("jg");}}});
Ah.prototype.recomputeReduxSelector=Ah.prototype.recomputeReduxSelector;_.R([_.L(),_.Y("design:type",Number)],Ah.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.R([_.uP()],Ah);var e8=[],fjS={},yG=function(){return WS.apply(this,arguments)||this};
_.O(yG,WS);yG.prototype._addPropertyEffect=function(C,F,G){if(F==="__observeEffects"&&G){var V,J=(V=G.info.method)!=null?V:G.info.methodName;if(J){var b=this[J];this[J]=function(){e8.push(J);try{b==null||b.apply(this,arguments)}finally{e8.pop()}}}}_.w3._addPropertyEffect.apply(this,[C,
F,G])};
yG.prototype._setPendingProperty=function(C,F,G){if(e8.length){var V=e8[e8.length-1],J;(J=fjS[this.is])!=null&&J.has(V)||(hCZ(this.is,V),_.q1("polymerPropertyChangedInObserver",{componentName:this.is,observerName:V}))}return _.w3._setPendingProperty.apply(this,[C,F,G])};
_.R([Gi5()],yG);var cEI=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),eCq,IN={};_.y("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=IN);var tv=function(){return _.n5.apply(this,arguments)||this};
_.O(tv,_.n5);tv.prototype._setUnmanagedPropertyToNode=function(C,F,G){C.loggingStatus&&(C.loggingStatus.isDeclarativeExternal=!0);if(G!==C[F]||typeof G==="object")C[F]=G;C.is&&C.polymerController&&C.polymerController!==C&&EA(C.is,F,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");C.loggingStatus&&(C.loggingStatus.isDeclarativeExternal=!1)};
_.R([_.uP()],tv);AEf()&&(C_.prototype._setUnmanagedPropertyToNode=(new tv)._setUnmanagedPropertyToNode);_.pXI={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(C){},set polymerController(C){}}]};var lP=function(){var C=WS.apply(this,arguments)||this;C.json=function(){};
return C};
_.O(lP,WS);lP.prototype.equals=function(C,F){return C===F};
lP.prototype.isEmpty=function(C){var F;(F=!C)||(F=_.gI(C)&&C.length===0);return F};
_.R([Gi5()],lP);var VdP=function(C){C=V$T(C);YH.call(this,C)};
_.O(VdP,YH);VdP.prototype.addProvider=function(C){C=C.key?C:V$T([C])[0];var F=this.keyIdToIndex.get(C.key.id);if(F){if(Pfi(C,this.providers[F]))throw Error("lg`"+C.key.displayName);}else YH.prototype.addProvider.call(this,C)};
var iGr=new VdP([]);var J$G=!1;var rEW={};J$G||(oFo(),J$G=!0);
rEW.InjectBehavior={initializeInjection:function(){var C=this.provide;try{if((C=C!=null?C:[])&&C.length>0)for(var F=V$T(C),G=_.u(F),V=G.next();!V.done;V=G.next())iGr.addProvider(V.value);var J=new Set;gFA(this.behaviors||[],J);F={};for(var b=_.u(J),z=b.next();!z.done;z=b.next()){var Q=z.value;Q.inject&&Object.assign(F,Q.inject)}this.inject&&Object.assign(F,this.inject);for(var E=_.u(Object.keys(F)),t=E.next();!t.done;t=E.next()){var k=t.value,U=F[k];try{this[k]=iGr.resolve(U)}catch(H){throw H;}}}catch(H){throw Error(H.message);
}}};var Dn5;var mnS=/\bclass\b/.test(function(){}.toString()),FZA=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var $BO=function(C){this.wasDefined=!0;Array.isArray(C)||C instanceof Array?(this.JSC$13506_getImpl=C[0],this.JSC$13506_setImpl=C[1]):this.JSC$13506_getImpl=C};
_.n=$BO.prototype;_.n.getWithPath=function(C){return i6S(this.JSC$13506_getImpl(),C)};
_.n.setWithPath=function(C,F){var G=this;if(C.length)throw Error("mg");if(!this.JSC$13506_setImpl)throw Error("ng");M0(function(){G.JSC$13506_setImpl(F)})};
_.n.notifyPath=function(){throw Error("og");};
_.n.notifySplices=function(){throw Error("pg");};
_.n.getChangeRecordSignal=function(C,F){var G=this;if(C.length)throw Error("qg");return function(){var V=G.getWithPath(C);return{path:F!=null?F:"",base:V,value:V}}};
_.n.getSplicesSignal=function(){throw Error("rg");};
_.n.getPathMutationSignal=function(){throw Error("sg");};
_.n.pop=function(){throw Error("tg");};
_.n.push=function(){throw Error("ug");};
_.n.splice=function(){throw Error("vg");};
_.n.unshift=function(){throw Error("wg");};var d6=function(C){var F=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(C)||C instanceof Array?(this.JSC$13511_getImpl=C[0],this.JSC$13511_setImpl=C[1]):this.JSC$13511_getImpl=C;this.wasDefined=!1;_.lb(function(){F.wasDefined=F.JSC$13511_getImpl()!==void 0})};
d6.prototype.getWithPath=function(C){return i6S(this.JSC$13511_getImpl(),C)};
d6.prototype.setWithPath=function(C,F){var G=this;if(C[C.length-1]!=="*"&&C[C.length-1]!=="splices"){var V=_.lb(function(){return G.getWithPath([])});
if(C.length===0){if(!this.JSC$13511_setImpl)throw Error("xg");if(V===F)return;this.wasDefined||(this.wasDefined=F!==void 0);M0(function(){G.JSC$13511_setImpl(F)})}else{for(var J=0;J<C.length-1;J++){if(!V)return;
V=V[C[J]]}J=C[C.length-1];V&&(V[J]=F);this.wasDefined||(this.wasDefined=C.length>1||F!==void 0)}bGl(this,C,{pathComponents:C,value:F})}};
d6.prototype.notifyPath=function(C,F){C.length===0?F&&this.setWithPath(C,F.value):bGl(this,C,{pathComponents:C,value:F==null?void 0:F.value,fallbackWhenUndefined:F==null?void 0:F.value})};
var bGl=function(C,F,G,V){if(C.setMutationSignal){var J=++C.mutationIndex,b=[C.observedPath],z=C.observedPath,Q;F.length===0&&(Q=z);for(var E=0;E<F.length;E++){var t=z.subPaths[F[E]];if(!t)break;b.push(t);z=t;E===F.length-1&&(Q=t)}for(F=!1;b.length;)z=b.shift(),z.data={index:J,mutation:G,spliceMutationIndex:V},F||(F=z===Q),F&&b.push.apply(b,_.da(Object.values(z.subPaths)));M0(function(){C.setMutationSignal(J)})}};
d6.prototype.notifySplices=function(C,F){var G=this,V=_.lb(function(){return G.getWithPath(C)}),J=[].concat(_.da(C),["splices"]);
bGl(this,J,{pathComponents:J,value:{indexSplices:F}});if(V==null?0:V.length)F=this.mutationIndex,J=[].concat(_.da(C),["length"]),bGl(this,J,{pathComponents:J,value:V.length},F)};
var nRP=function(C,F,G,V,J,b){C.notifySplices(G,[{index:V,addedCount:J,removed:b,object:F,type:"splice"}])},uBO=function(C,F){C=C.observedPath;
for(var G=0;G<F.length;G++){var V=F[G],J=C.subPaths[V];J||(J={pathComponents:F.slice(0,G+1),subPaths:{}},C.subPaths[V]=J);C=J}},Qur=function(C,F,G){uBO(C,F);
if(!C.getMutationSignal){var V=_.u(_.yH(C.mutationIndex,void 0,"sNBMCd"));C.getMutationSignal=V.next().value;C.setMutationSignal=V.next().value}var J=C.getMutationSignal;return _.w0(function(){J();return G(zAS(C,F))},void 0,"zvsXEd")};
d6.prototype.getChangeRecordSignal=function(C,F){var G=this,V=this.mutationIndex,J;return Qur(this,C,function(b){if(b&&b.index>V){var z=b.mutation;V=b.index;J=void 0}b=_.lb(function(){return G.getWithPath(C)});
if(z){var Q=z.pathComponents[z.pathComponents.length-1],E=[].concat(_.da(z.pathComponents));if(Q==="splices"||Q==="length")return{base:b,path:(F?[F].concat(_.da(E)):E).join("."),value:z.value};var t=C.length>E.length?C:E,k;return{base:b!=null?b:z.fallbackWhenUndefined,path:(F?[F].concat(_.da(t)):t).join("."),value:(k=_.lb(function(){return G.getWithPath(t)}))!=null?k:z.fallbackWhenUndefined}}J||(J={base:b,
path:(F?[F].concat(_.da(C)):C).join("."),value:b});return J})};
d6.prototype.getSplicesSignal=function(C){var F=this.mutationIndex,G;return Qur(this,C,function(V){if(V&&V.index>F&&V.spliceMutationIndex!==F){var J=V.mutation;F=V.index;G=void 0}return J&&J.pathComponents[J.pathComponents.length-1]==="splices"?G=V=J.value:G})};
d6.prototype.getPathMutationSignal=function(C){var F=this;uBO(this,C);if(!this.getMutationSignal){var G=_.u(_.yH(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=G.next().value;this.setMutationSignal=G.next().value}var V=this.getMutationSignal,J=this.mutationIndex,b;return _.w0(function(){V();var z=zAS(F,C);if(z&&z.index>J&&z.mutation&&Jpq(z.mutation.pathComponents,C)){var Q=z.mutation;J=z.index}if(!b||J!==b.index){var E,t;z=(t=_.lb(function(){return F.getWithPath(C)}))!=null?t:(E=Q)==null?
void 0:E.fallbackWhenUndefined;
b={index:J,value:z}}return b},void 0,"RXYC9b")};
var zAS=function(C,F){C=C.observedPath;F=_.u(F);for(var G=F.next();!G.done;G=F.next())C=C.subPaths[G.value];return C.data};
d6.prototype.pop=function(C){var F=this,G=_.lb(function(){return F.getWithPath(C)});
if(!(G instanceof Array))throw Error("yg");var V=G.length>0,J=G.pop();V&&nRP(this,G,C,G.length,0,[J]);return J};
d6.prototype.push=function(C){var F=_.Rn.apply(1,arguments),G=this,V=_.lb(function(){return G.getWithPath(C)});
if(!(V instanceof Array))throw Error("zg");var J=V.length,b=V.push.apply(V,_.da(F));F.length&&nRP(this,V,C,J,F.length,[]);return b};
d6.prototype.splice=function(C,F,G){var V=_.Rn.apply(3,arguments),J=this,b=_.lb(function(){return J.getWithPath(C)});
if(!(b instanceof Array))throw Error("Ag");F<0?F=b.length-Math.floor(-F):F&&(F=Math.floor(F));var z=b.splice.apply(b,[F,G].concat(_.da(V)));(V.length||z.length)&&nRP(this,b,C,F,V.length,z);return z};
d6.prototype.unshift=function(C){var F=_.Rn.apply(1,arguments),G=this,V=_.lb(function(){return G.getWithPath(C)});
if(!(V instanceof Array))throw Error("Bg");var J=V.unshift.apply(V,_.da(F));F.length&&nRP(this,V,C,0,F.length,[]);return J};var xs=function(C,F,G){this.model=C;this.unknownSignalResolver=F;this.options=G;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];F=_.u(WZ5());C=F.next().value;F=F.next().value;this.owner=C;this.disposeImpl=F};
xs.prototype.dispose=function(){if(!this.isDisposed){for(var C=_.u(this.childSignalProxies),F=C.next();!F.done;F=C.next())F.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var Iz7=function(C,F){C=_.$K(C.owner);try{F()}finally{_.$K(C)}};
xs.prototype.effect=function(C){Iz7(this,function(){_.RX(C,"g")})};
var ER$=function(C,F){C.options!=null||(C.options={});var G;(G=C.options).immutableProps!=null||(G.immutableProps=new Set);C.options.immutableProps.add(F)},sSB=function(C,F){F=""+F;
WR8(C,F);var G,V;if((G=C.options)==null?0:(V=G.immutableProps)==null?0:V.has(F))return!0;var J;if((J=C.model.__signalCache)==null?0:J.has(F))G=C.model.__signalCache.get(F),Array.isArray(G)&&ER$(C,F);var b,z,Q;return(Q=(b=C.options)==null?void 0:(z=b.immutableProps)==null?void 0:z.has(F))!=null?Q:!1},tdr=function(C,F){var G;
C.unknownSignalResolver&&(G=C.unknownSignalResolver(F));var V,J;((V=C.options)==null?0:(J=V.immutableProps)==null?0:J.has(F))?G!=null||(G=new $BO(_.yH(C.model[F],void 0,"By5iP"))):G!=null||(G=new d6(_.yH(C.model[F],void 0,"CXghNc")));var b=C.model.hostElement;Object.defineProperty(C.model,F,{get:function(){xnT(b,F);return G.getWithPath([])},
set:function(z){Wb(b,F);C.setWithPath([F],z)},
configurable:!0});return G},WR8=function(C,F){var G,V,J;
((G=C.model.__signalCache)==null||!G.has(F))&&((V=C.options)==null?0:(J=V.externalSignalProps)==null?0:J.has(F))&&C.model[F]},XU=function(C,F){F=""+F;
var G=C.signalCache[F];if(G!==void 0)return G;G=!1;WR8(C,F);var V;if((V=C.model.__signalCache)==null?0:V.has(F))if(G=C.model.__signalCache.get(F),Array.isArray(G))G=!0,ER$(C,F);else return C.signalCache[F]=C.model.__signalCache.get(F).signal,C.signalCache[F];var J,b;V=(b=(J=C.options)==null?void 0:J.reactivityMode)!=null?b:0;var z,Q;if(!((z=C.options)==null?0:(Q=z.reactiveProps)==null?0:Q.has(F))&&!G&&V===1)throw Error("Cg`"+F);J=G?azl(C,F):tdr(C,F);return C.signalCache[F]=J},azl=function(C,F){var G=
Object.getOwnPropertyDescriptor(C.model.constructor.prototype,F),V=function(){return C.model[F]};
return new $BO(G&&G.get&&!G.set?V:[V,function(J){C.model[F]=J}])};
xs.prototype.getWithPath=function(C){var F=_.u(C);C=F.next().value;F=VH(F);xnT(this.model.hostElement,""+C);return XU(this,C).getWithPath(F)};
xs.prototype.setWithPath=function(C,F){if(C.length){Wb(this.model.hostElement,C.join("."));var G=_.u(C);C=G.next().value;G=VH(G);XU(this,C).setWithPath(G,F)}};
xs.prototype.getPathMutationSignal=function(C){var F=_.u(C);C=F.next().value;F=VH(F);return XU(this,C).getPathMutationSignal(F)};
xs.prototype.notifyPath=function(C,F){var G=_.u(C);C=G.next().value;G=VH(G);XU(this,C).notifyPath(G,F)};
var kjy=function(C,F){if(F.type==="literal")return function(){return{rootWasDefined:!0,value:F.value}};
var G=Nr(F.path),V=_.u(G),J=V.next().value;V=VH(V);var b,z;if(F.type==="path"&&(G.length===1||((b=C.options)==null?0:(z=b.immutableProps)==null?0:z.has(J))))return function(){var U=C.getWithPath(G.slice(0,1));U=i6S(U,G.slice(1));return{rootWasDefined:XU(C,G[0]).wasDefined,value:U}};
var Q=XU(C,J);if(F.type==="path"){var E=Q.getPathMutationSignal(V);return function(){var U,H=(U=E())==null?void 0:U.value;return{rootWasDefined:Q.wasDefined,value:H}}}if(F.type==="splices"){var t=Q.getSplicesSignal(V);
return function(){var U=t();return{rootWasDefined:Q.wasDefined,value:U}}}var k=Q.getChangeRecordSignal(V,""+J);
return function(){var U=k();return{rootWasDefined:Q.wasDefined,value:U}}},QSZ=function(C,F,G){var V=G.map(function(Q){return kjy(C,Q)}),J=G.length===0,b=[],z=G.length!==1||G[0].type!=="path"?!1:!0;
C.effect(function(){for(var Q=V.length,E=[],t=!!b.length,k=0;k<Q;k++){var U=V[k](),H=U.rootWasDefined;U=U.value;J||(J=H);E[k]=U;z&&(E[k+Q]=t?b[k]:E[k],b[k]=U)}J&&YK(C.owner,function(){return void F.apply(null,_.da(E))})})},$A9=function(C,F,G,V,J){var b=XU(C,F);
J!==void 0&&b.setWithPath([],J);QSZ(C,function(){var z=_.Rn.apply(0,arguments);Wb(C.model.hostElement,F,!0);b.setWithPath([],G.apply(null,_.da(z)))},V)};
xs.prototype.arrayPush=function(C){var F=_.Rn.apply(1,arguments),G=_.u(C),V=G.next().value;G=VH(G);V=XU(this,V);return V.push.apply(V,[G].concat(_.da(F)))};
xs.prototype.arraySplice=function(C,F,G){var V=_.Rn.apply(3,arguments),J=_.u(C),b=J.next().value;J=VH(J);b=XU(this,b);return b.splice.apply(b,[J,F,G].concat(_.da(V)))};
xs.prototype.arrayUnshift=function(C){var F=_.Rn.apply(1,arguments),G=_.u(C),V=G.next().value;G=VH(G);V=XU(this,V);return V.unshift.apply(V,[G].concat(_.da(F)))};
xs.prototype.notifySplices=function(C,F){var G=_.u(C);C=G.next().value;G=VH(G);XU(this,C).notifySplices(G,F)};var UB7=!0,HGP=!1,q2w=!1,lz7=!1,y$r=0;lz7=!1;y$r=0;UB7=!0;HGP=q2w=!1;var lJi=/([^\s]+?)\(([\s\S]*)\)/,kmT=/\.([^.]+)$/,Z6T=/\\,/g,t0W=/&comma;/g,aJB=/\\(.)/g,ypE=[],UAS={"*":"wildcard",splices:"splices"};var fJq=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"),SUw=/[A-Z]/,ZGu=["class","hidden","id","on-dom-change"],cp9=new Set([].concat(_.da(ZGu),
["if","notify-dom-change","restamp"])),ApT=new Set([].concat(_.da(ZGu),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),ejB=new Set(["restamp"]);var eWB=new Set(["className","id"]);var PO9=Symbol(),KZB=window;var Vgf=window;var zEE=0,$Lw=0,wk=[],uaq=0,JIE=!1,n1o=document.createTextNode("");(new window.MutationObserver(bww)).observe(n1o,{characterData:!0});var Sr=new Map,Mr=0,NNm=function(C){this.mappedHandleId=C},IT9=function(C,F,G,V){this.mappedHandleId=C;
var J=this;this.mappedHandleId=C;this.callback=F;this.waitTime=G;this.schedulerPriority=V;this.handleId=_.gT.addJob(function(){J.callback();Sr.delete(J.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.O(IT9,NNm);IT9.prototype.cancel=function(){_.gT.cancelJob(this.handleId);Sr.delete(this.mappedHandleId)};
var E1T=function(C,F){this.mappedHandleId=C;var G=this;this.mappedHandleId=C;this.callback=F;this.handleId=Qii(function(){G.callback();Sr.delete(G.mappedHandleId)})};
_.O(E1T,NNm);E1T.prototype.cancel=function(){var C=this.handleId-$Lw;C<0||wk.length<=C||(wk[C]=null);Sr.delete(this.mappedHandleId)};var kQB=function(){};
kQB.prototype.cancel=function(){this.jobHandle!==void 0&&(WQA(this.jobHandle),this.jobHandle=void 0)};
kQB.prototype.run=function(C,F,G){var V=this;this.cancel();this.callback=C;this.jobHandle=_.L5(function(){C();V.callback=void 0},F,G)};
kQB.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var tgS=new WeakMap;var OG8=j$(function(C){for(var F=C,G=0;G<3;G++)F=Object.getPrototypeOf(F);delete F.prototype.connectedCallback;var V=function(){return C.apply(this,arguments)||this};
_.O(V,C);V.prototype._attachDom=function(J){if(!J)return null;var b=(0,_.C5)(this.hostElement);b.attachShadow({mode:"open",shadyUpgradeFragment:J});b.shadowRoot.appendChild(J);return b.shadowRoot};
V.prototype._takeAttributes=function(){for(var J=this.hostElement.attributes,b=0;b<J.length;b++){var z=J[b],Q=void 0,E=void 0;(E=(Q=this).__attributeReaction)==null||E.call(Q,z.name,null,z.value)}};
V.prototype._readyClients=function(){C.prototype._readyClients.call(this);this.root=this};
V.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);C.prototype.connectedCallback.call(this)};
_.I6.Object.defineProperties(V,{template:{configurable:!0,enumerable:!0,get:function(){return V.prototype._template}}});
return V}),XR$=j$(function(C){var F=function(){return C.apply(this,arguments)||this};
_.O(F,C);F.prototype.created=function(){if(this.__notifyEffects)for(var G=_.u(Object.values(this.__notifyEffects)),V=G.next();!V.done;V=G.next()){V=_.u(V.value);for(var J=V.next();!J.done;J=V.next())J.value.fn=yII}if(this.__reflectEffects)for(G=_.u(Object.values(this.__reflectEffects)),V=G.next();!V.done;V=G.next())for(V=_.u(V.value),J=V.next();!J.done;J=V.next())J.value.fn=ZwE};
F.prototype._addEventListenerToNode=function(G,V,J){G=vb(G);Rx(G,V,J)||C.prototype._addEventListenerToNode.call(this,G,V,J)};
F.prototype._removeEventListenerFromNode=function(G,V,J){G=vb(G);Yy(G,V,J)||C.prototype._removeEventListenerFromNode.call(this,G,V,J)};
F.prototype._propertiesChanged=function(G,V,J){if(this.__dataToNotify&&this.__notifyEffects)for(var b=_.u(Object.keys(this.__dataToNotify)),z=b.next();!z.done;z=b.next()){z=z.value;var Q=lTT(z);this.__notifyEffects[Q]||delete this.__dataToNotify[z]}else this.__dataToNotify=null;C.prototype._propertiesChanged.call(this,G,V,J)};
F.prototype.fire=function(G,V,J){V=V===void 0?{}:V;var b;return _.oo(vb((b=J==null?void 0:J.node)!=null?b:this),G,V,J)};
F.prototype._ensureAttribute=function(G,V){var J=vb(this);J.hasAttribute(G)||OA(J,V,G)};
F.prototype.isLightDescendant=function(G){var V=vb(this);return vb(V)!==G&&_.ot(V).contains(G)&&_.ot(V).getRootNode()===_.ot(G).getRootNode()};
return F});
_.M7.ready=function(){var C;((C=this.hostElement)!=null?C:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var F;((F=this.hostElement)!=null?F:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.AY._subscribeIronResize=function(C){var F;((F=C.hostElement)!=null?F:C).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.AY._unsubscribeIronResize=function(C){var F;((F=C.hostElement)!=null?F:C).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var XOE=[Array,Boolean,Date,Number,Object,String],hv=function(C,F,G,V){this.polySiInfo=C;this.polySiParams=F;this.polySiContext=G;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;V||this instanceof HTMLElement&&(V=this);if(!V)throw Error("Jg");this.allowedProps=F.allowedProps;this.hostElement=V;this.is=C.is;this.upgradeDisabled=!!F.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");C=new Set(F.reactiveSchemas.filter(function(J){return J.type!==
"observe"}).map(function(J){return J.propertyKey}));
this.signalProxy=new xs(this,void 0,{reactiveProps:C,reactivityMode:F.reactivityMode});this.__dataHasAccessor={};F=_.u(F.reactiveSchemas);for(C=F.next();!C.done;C=F.next())C=C.value,C.type==="signal"&&(this.__dataHasAccessor[C.propertyKey]=!0);this.upgradeDisabled||wRy(this)};
hv.prototype.getExtraMethodsToForward=function(){return[]};
var wRy=function(C){C.polySiContext.didRegister||(C.registered(),C.polySiContext.didRegister=!0);C.polySiContext.finalizedTemplate||(C.polySiContext.finalizedTemplate={},C.polySiParams.templateGetter&&(C.polySiContext.finalizedTemplate.processedTemplate=iwW(C.polySiParams.templateGetter,C.polySiParams.is)));Mdr(C);var F=C.hostElement;F.loggingStatus!=null||(F.loggingStatus={});F.loggingStatus.isInitializing=!0;_.lb(function(){return void C.created()});
F.loggingStatus.isInitializing=!1;C.isPolySiElementConnected&&ScP(C)},ScP=function(C){C.didCallReady||(_.lb(function(){return void C.ready()}),C.didCallReady=!0);
C.isAttached=!0;C.attached()};
_.n=hv.prototype;_.n.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||ScP(this)};
_.n.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.n.attributeChangedCallback=function(C,F,G){if(this.upgradeDisabled)C==="disable-upgrade"&&G===null&&(this.upgradeDisabled=!1,wRy(this));else if(F!==G){var V=_.$6(C),J=this.polySiContext.typesForSignals[V];if(J&&(!this.reflecting||_.y("polysi_attribute_changed_serializing_killswitch"))){switch(J){case Object:try{var b=JSON.parse(G)}catch(Q){b=G}break;case Array:try{b=JSON.parse(G)}catch(Q){b=null}break;case Date:b=isNaN(G)?String(G):Number(G);b=new Date(b);break;case Boolean:b=G!==null;break;case Number:b=
Number(G);break;default:b=G}this[V]=b}V=_.u(this.polySiParams.behaviors);for(J=V.next();!J.done;J=V.next())b=void 0,(b=J.value.attributeChanged)==null||b.call(this,C,F,G);var z;(z=this.attributeChanged)==null||z.call(this,C,F,G)}};
_.n.attributeChangedCallbackWrapper=function(C,F,G){this.attributeChangedCallback(C,F,G)};
_.n.setPropertiesFromInitialAttributeValues=function(){for(var C=0;C<this.hostElement.attributes.length;C++){var F=this.hostElement.attributes[C];(F.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(F.name))&&this.attributeChangedCallback(F.name,null,F.value)}};
_.n.created=function(){this.provide=this.polySiParams.provide;var C;(C=this.initializeInjection)==null||C.call(this);C=_.u(this.polySiParams.reactiveSchemas);for(var F=C.next();!F.done;F=C.next())F=F.value,F.type==="signal"&&(this.mutablePropNames.add(F.propertyKey),XU(this.signalProxy,F.propertyKey));OwI(this,this.polySiInfo,this.polySiParams.behaviors);C=_.u(this.polySiParams.reactiveSchemas);for(F=C.next();!F.done;F=C.next())F=F.value,F.type==="signal"&&F.value!==void 0&&(this.signalProxy.model[F.propertyKey]=
typeof F.value==="function"?F.value.call(this):F.value);if(this.polySiParams.signalProperties)for(C=_.u(this.polySiParams.signalProperties),F=C.next();!F.done;F=C.next()){F=F.value;var G=void 0;((G=this.__signalCache)==null?0:G.has(F))||(this.signalProxy.model[F]=void 0)}lz7||LRS(this);NYi(this);C=_.u(this.polySiParams.behaviors);for(F=C.next();!F.done;F=C.next())G=void 0,(G=F.value.created)==null||G.call(this);var V;(V=this.polySiInfo.created)==null||V.call(this)};
_.n.registered=function(){var C=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var F=Object.getPrototypeOf(this);F.addReactiveSchema=function(Q){C.polySiParams.reactiveSchemas.push(Q)};
for(var G=_.u(this.polySiParams.behaviors),V=G.next();!V.done;V=G.next()){var J=void 0;(J=V.value.beforeRegister)==null||J.call(F)}var b;(b=this.polySiInfo.beforeRegister)==null||b.call(F);F.addReactiveSchema=Mg5;G=_.u(this.polySiParams.behaviors);for(V=G.next();!V.done;V=G.next())J=void 0,(J=V.value.registered)==null||J.call(F);var z;(z=this.polySiInfo.registered)==null||z.call(F)};
_.n.ready=function(){var C;(C=this.beforeReady)==null||C.call(this);lz7&&LRS(this);var F;if(C=(F=this.polySiContext.finalizedTemplate)==null?void 0:F.processedTemplate){C=GQE(C.template,C.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:C.hasInsertionPoint,thisCtx:this});F=C.nodesById;C=C.root;var G=this.hostElement;var V=V===void 0?!1:V;G=(0,_.C5)(G);if(!G.attachShadow)throw Error("Id");if(!G.shadowRoot||V)G.attachShadow({mode:"open",shadyUpgradeFragment:C}),G.shadowRoot.appendChild(C);
this.root=G.shadowRoot;this.$=F}BN7(this);V=_.u(this.polySiParams.behaviors);for(F=V.next();!F.done;F=V.next())C=void 0,(C=F.value.ready)==null||C.call(this);var J;(J=this.polySiInfo.ready)==null||J.call(this)};
_.n.attached=function(){for(var C=_.u(this.polySiParams.behaviors),F=C.next();!F.done;F=C.next()){var G=void 0;(G=F.value.attached)==null||G.call(this)}var V;(V=this.polySiInfo.attached)==null||V.call(this)};
_.n.detached=function(){for(var C=_.u(this.polySiParams.behaviors),F=C.next();!F.done;F=C.next()){var G=void 0;(G=F.value.detached)==null||G.call(this)}var V;(V=this.polySiInfo.detached)==null||V.call(this)};
var Mdr=function(C){for(var F=_.u(C.polySiParams.behaviors),G=F.next();!G.done;G=F.next())if(G=G.value,G.listeners)for(var V in G.listeners)FQE(C,C.hostElement,V,G.listeners[V]);if(C.polySiInfo.listeners)for(var J in C.polySiInfo.listeners)FQE(C,C.hostElement,J,C.polySiInfo.listeners[J])},FQE=function(C,F,G,V,J){C=V0q(C,V,J);
Rx(F,G,C)||F.addEventListener(G,C);return C},LRS=function(C){for(var F=_.u(C.polySiParams.reactiveSchemas),G=F.next();!G.done;G=F.next())G=G.value,G.type==="compute"||G.type==="computeWithMethod"?b6o(C.signalProxy,G,C):G.type==="redux"?zjA(C.signalProxy,G,C.store):G.type==="signal"&&G.readOnly&&ubs(C.signalProxy,G)},BN7=function(C){for(var F=_.u(C.polySiParams.reactiveSchemas),G=F.next(),V={};!G.done;V={schema$jscomp$12:void 0},G=F.next())V.schema$jscomp$12=G.value,V.schema$jscomp$12.type==="notify"?
IJq(C.signalProxy,V.schema$jscomp$12,C.hostElement):V.schema$jscomp$12.type==="observe"?Ejo(C.signalProxy,V.schema$jscomp$12,C):V.schema$jscomp$12.type==="reflect"&&C.signalProxy.effect(function(b){return function(){var z=C.signalProxy.getWithPath([b.schema$jscomp$12.propertyKey]);
C.reflecting=!0;O6Z(C.hostElement,b.schema$jscomp$12.propertyKey,z,!0);C.reflecting=!1}}(V));
if(C.reflectedAttributes)for(F=_.u(Object.entries(C.reflectedAttributes)),V=F.next(),G={};!V.done;G={key$jscomp$936:void 0,value$jscomp$9935:void 0},V=F.next()){var J=_.u(V.value);V=J.next().value;J=J.next().value;G.key$jscomp$936=V;G.value$jscomp$9935=J;C.signalProxy.effect(function(b){return function(){C.reflecting=!0;O6Z(C.hostElement,b.key$jscomp$936,(0,b.value$jscomp$9935)(),!0);C.reflecting=!1}}(G))}};
_.n=hv.prototype;_.n._setPendingProperty=function(C,F){this.set(C,F);return!1};
_.n._enableProperties=function(){};
_.n._setPendingPropertyOrPath=function(C,F){this.notifyPath(C,F);return!1};
_.n._addPropertyEffect=function(){};
_.n._stampTemplate=function(){throw Error("Kg");};
_.n.fire=function(C,F,G){F=F===void 0?{}:F;G=G===void 0?{}:G;var V,J,b={bubbles:(V=G.bubbles)!=null?V:!0,cancelable:!!G.cancelable,composed:(J=G.composed)!=null?J:!0},z;return _.oo(S2E((z=G.node)!=null?z:this.hostElement),C,F,b)};
_.n.get=function(C,F){var G=Nr(C);return F?i6S(F,G):C==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(G)};
_.n.linkPaths=function(){};
_.n.listen=function(C,F,G){C=S2E(C);this.boundListeners!=null||(this.boundListeners=new WeakMap);var V=this.boundListeners.get(C);V||(V={},this.boundListeners.set(C,V));var J=F+G;V[J]||(V[J]=FQE(this,C,F,G))};
_.n.notifyPath=function(C,F){this.signalProxy.notifyPath(Nr(C),arguments.length===2?{value:F}:void 0)};
_.n.canNotifyPath=function(C){return this.mutablePropNames.has(C)&&!sSB(this.signalProxy,C)};
_.n.notifySplices=function(C,F){this.signalProxy.notifySplices(Nr(C),F)};
_.n.pop=function(C){var F=this.signalProxy;C=Nr(C);var G=_.u(C);C=G.next().value;G=VH(G);return XU(F,C).pop(G)};
_.n.push=function(C){var F=_.Rn.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[Nr(C)].concat(_.da(F)))};
_.n.set=function(C,F,G){if(G)throw Error("Lg");C==="hidden"?this.hostElement.hidden=!!F:this.signalProxy.setWithPath(Nr(C),F)};
_.n.setProperties=function(C){C=_.u(Object.entries(C));for(var F=C.next();!F.done;F=C.next()){var G=_.u(F.value);F=G.next().value;G=G.next().value;this[F]=G}};
_.n.splice=function(C,F,G){var V=_.Rn.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[Nr(C),F,G].concat(_.da(V)))};
_.n.unlinkPaths=function(){};
_.n.unlisten=function(C,F,G){C=S2E(C);if(this.boundListeners){var V=this.boundListeners.get(C);if(V){G=F+G;var J=V[G];J&&(Yy(C,F,J)||C.removeEventListener(F,J),delete V[G])}}};
_.n.unshift=function(C){var F=_.Rn.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[Nr(C)].concat(_.da(F)))};
_.I6.Object.defineProperties(hv.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 siI=[Array,Boolean,Date,Number,Object,String];var g1A=!1;var si=function(){var C=HTMLElement.apply(this,arguments)||this;C.restamp=!1;C.notifyDomChange=!1;C.JSC$13619_didCallConnected=!1;C.JSC$13619_renderDebouncer=null;C.disableTemplateUpdateSignalImpl=cb()?void 0:_.yH(!1,void 0,"Ofhkwb");var F;C.getDisableTemplateUpdate=(F=C.disableTemplateUpdateSignalImpl)==null?void 0:F[0];var G;C.setDisableTemplateUpdate=(G=C.disableTemplateUpdateSignalImpl)==null?void 0:G[1];return C};
_.O(si,HTMLElement);var vRm=function(C){C.conditionSignalImpl!=null||(C.conditionSignalImpl=new d6(_.yH(!1,void 0,"gE52Fb")));return C.conditionSignalImpl};
_.n=si.prototype;_.n.showHideChildren=function(C){fzl(this,C,this.if)};
_.n.attributeChangedCallback=function(C,F,G){if(this.JSC$13619_didCallConnected)throw Error("Pg`"+C);C==="notify-dom-change"?this.notifyDomChange=G!==null:C==="restamp"&&(this.restamp=G!==null)};
_.n.debounceRender=function(){this.JSC$13619_renderDebouncer=_.Qq(this.JSC$13619_renderDebouncer,ox,this.JSC$13619_renderImpl.bind(this));_.I4(this.JSC$13619_renderDebouncer)};
_.n.disconnectedCallback=function(){var C=(0,_.C5)(this).parentNode;(!C||C.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in C&&!C.host)&&hAo(this)};
_.n.connectedCallback=function(){var C=this;this.JSC$13619_didCallConnected=!0;UB7?REs():this.style.display="none";this.parentSignalProxy.isDisposed&&!_.y("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){vRm(C).getWithPath([]);C.debounceRender()})};
_.n.render=function(){_.a4()};
_.n.JSC$13619_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var C=this.if,F=!1;if(C){this.hasInstance()||(c$P(this),F=!0);a:{var G=(0,_.C5)(this).parentNode;if(this.hasInstance()){var V=this.instance.children;if((V==null?0:V.length)&&(0,_.C5)(this).previousSibling!==V[V.length-1])for(var J=0;J<V.length;J++)(0,_.C5)(G).insertBefore(V[J],this)}else{if(!G){G=!1;break a}A$o(this,G)}G=!0}if(!G)return}else this.restamp&&hAo(this);fzl(this,!1,C);C&&!F&&c$P(this);HGP&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.n.hasInstance=function(){return!!this.instance};
var A$o=function(C,F){var G=C.parentSignalProxy;if(cb()){var V=_.u(_.yH(!0,void 0,"dkzufd"));var J=V.next().value;V=V.next().value;G=C.parentSignalProxy}else{var b;var z=new xs((b=eAu(C))!=null?b:{},function(E){var t=XU(C.parentSignalProxy,E).getChangeRecordSignal([]);E=_.yH(void 0,void 0,"iG8Uwe");var k=new d6(E);z.effect(function(){if(C.getDisableTemplateUpdate&&!C.getDisableTemplateUpdate()){var U=t();k.notifyPath(Nr(U.path),{value:U.value})}});
return k});
C.parentSignalProxy.childSignalProxies.push(z);var Q=G=z}G=GQE(C.templateInfo,C.templateInfo.nodeInfoList,G,{eventListenerHost:C.eventListenerHost,hasInsertionPoint:C.templateInfo.hasInsertionPoint,thisCtx:C.eventListenerHost,enabledSignal:cb()?J:void 0,getModel:function(){return eAu(C)}}).root;
C.instance={root:G,children:[],hidden:!1,signalProxy:Q,getTemplateUpdatesEnabled:J,setTemplateUpdatesEnabled:V};Q=_.u(G.childNodes);for(J=Q.next();!J.done;J=Q.next())C.instance.children.push(J.value);(0,_.C5)(F).insertBefore(C.instance.root,C)},eAu=function(C){if((C=C.parentSignalProxy.model)&&!C.hostElement){var F={},G;
for(G in C)C.hasOwnProperty(G)&&(F[G]=C[G]);return F}},hAo=function(C){if(C.instance){var F=C.instance.children;
if(F.length){var G=(0,_.C5)(F[0]).parentNode;if(G){G=(0,_.C5)(G);for(var V=0;V<F.length;V++)G.removeChild(F[V])}}cb()?C.instance.setTemplateUpdatesEnabled(!1):C.instance.signalProxy.dispose();C.instance=void 0}},fzl=function(C,F,G){F=F||!G;
C.instance&&C.instance.hidden!==F&&(C.instance.hidden=F,Prs(F,C.instance.children))},c$P=function(C){if(cb()){var F=C.instance;
F&&YK(C.parentSignalProxy.owner,function(){return!F.getTemplateUpdatesEnabled()})&&F.setTemplateUpdatesEnabled(!0)}else C.setDisableTemplateUpdate(!1)};
_.I6.Object.defineProperties(si.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var C=this;return YK(this.parentSignalProxy.owner,function(){return vRm(C).getWithPath([])})},
set:function(C){C||(cb()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));vRm(this).setWithPath([],!!C)}}});
_.I6.Object.defineProperties(si,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",si);var dBE=[],qZ=function(){var C=HTMLElement.apply(this,arguments)||this;C.as="item";C.indexAs="index";C.itemsIndexAs="itemsIndex";C.targetFramerate=20;C.notifyDomChange=!1;C.isDetached=!1;C.JSC$13626_renderDebouncer=null;C.instances=[];C.chunkingId=null;C.chunkCount=null;C.shouldMeasureChunk=!1;C.shouldContinueChunking=!1;C.renderStartTime=null;C.JSC$13626_didCallConnected=!1;return C};
_.O(qZ,HTMLElement);var xBE=function(C){C.itemSignalImpl!=null||(C.itemSignalImpl=new d6(_.yH(dBE,void 0,"YBrqgf")));return C.itemSignalImpl},sul=function(C,F){Array.isArray(F)||(F=dBE);
xBE(C).setWithPath([],F)};
_.n=qZ.prototype;_.n.showHideChildren=function(C){for(var F=_.u(this.instances),G=F.next();!G.done;G=F.next())Prs(C,G.value.children)};
_.n.notifyPath=function(C,F){C=Nr(C);C[0]==="items"&&(C.length===1?sul(this,F):xBE(this).setWithPath(C.slice(1),F))};
_.n.canNotifyPath=function(C){return C==="items"};
_.n.attributeChangedCallback=function(C,F,G){if(this.JSC$13626_didCallConnected)throw Error("Qg`"+C);C==="as"?this.as=G:C==="index-as"?this.indexAs=G:C==="items-index-as"?this.itemsIndexAs=G:C==="initial-count"?this.initialCount=Number(G):C==="notify-dom-change"?this.notifyDomChange=G!==null:C==="target-framerate"&&(this.targetFramerate=Number(G))};
_.n.disconnectedCallback=function(){this.isDetached=!0;for(var C=0;C<this.instances.length;C++)qcG(this,C);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.n.connectedCallback=function(){var C=this,F=xBE(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var J=F(),b=Nr(J.path);if(b[0]===void 0||b[0]==="splices"||b[0]==="length")C.debounceRender();else{var z=b[0];if(z=C.instances[typeof z==="string"?Math.floor(Number(z)):z])b=[C.as].concat(_.da(b.slice(1))),z.signalProxy.notifyPath(b,J)}});
this.JSC$13626_didCallConnected=!0;UB7?REs():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var G=(0,_.C5)((0,_.C5)(this).parentNode),V=0;V<this.instances.length;V++)G.insertBefore(this.instances[V].root,this);this.chunkingId&&this.render()}};
_.n.debounceRender=function(){this.JSC$13626_renderDebouncer=_.Qq(this.JSC$13626_renderDebouncer,ox,this.JSC$13626_renderImpl.bind(this));_.I4(this.JSC$13626_renderDebouncer)};
_.n.render=function(){this.debounceRender();_.a4()};
_.n.JSC$13626_renderImpl=function(){var C=this;if(!this.parentSignalProxy.isDisposed){var F=this.items,G=Pl7(this,F.length);gR7(this,F,G);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){C.chunkingId=null;if(C.shouldMeasureChunk){var V=performance.now()-C.renderStartTime;C.chunkCount=Math.round(Math.ceil(1E3/C.targetFramerate)/V*C.chunkCount)||1}C.shouldContinueChunking&&C.debounceRender()}));
HGP&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var Pl7=function(C,F){var G=F,V=C.instances.length;if(C.initialCount){if(C.chunkCount){var J=Math.min(Math.max(F-V,0),C.chunkCount);G=Math.min(V+J,F)}else G=Math.min(F,C.initialCount),J=Math.max(G-V,0),C.chunkCount=J||1;C.shouldMeasureChunk=J===C.chunkCount;C.shouldContinueChunking=G<F;C.renderStartTime=performance.now()}return G},gR7=function(C,F,G){for(var V=0;V<G;V++){var J=C.instances[V],b=F[V];
J?(J.signalProxy.setWithPath([C.as],b),J.signalProxy.setWithPath([C.indexAs],V)):RA$(C,b,V)}for(F=C.instances.length-1;F>=V;F--)G=C,J=F,qcG(G,J),_.u(G.instances.splice(J,1)).next().value.signalProxy.dispose()},qcG=function(C,F){C=C.instances[F];
F=(0,_.C5)(C.root);for(var G=0;G<C.children.length;G++)F.appendChild(C.children[G])},RA$=function(C,F,G){var V={};
F=Object.assign({},Ycu(C),(V[C.as]=F,V[C.indexAs]=G,V[C.itemsIndexAs]=G,V));var J=new xs(F,function(z){if(z!==C.as&&z!==C.indexAs){if(z===C.itemsIndexAs)return XU(J,C.indexAs);var Q=XU(C.parentSignalProxy,z).getChangeRecordSignal([]);z=_.yH(void 0,void 0,"T21Pqc");var E=new d6(z);J.effect(function(){var t=Q();E.notifyPath(Nr(t.path),{value:t.value})});
return E}});
C.parentSignalProxy.childSignalProxies.push(J);V=GQE(C.templateInfo,C.templateInfo.nodeInfoList,J,{eventListenerHost:C.eventListenerHost,getModel:function(){var z={};return Object.assign({},Ycu(C),(z[C.as]=J.model[C.as],z[C.indexAs]=J.model[C.indexAs],z[C.itemsIndexAs]=J.model[C.indexAs],z))},
hasInsertionPoint:C.templateInfo.hasInsertionPoint,thisCtx:C.eventListenerHost,methodInvocationRequirement:y$r,enabledSignal:C.stampingEnabled}).root;F={root:V,children:[],signalProxy:J};V=_.u(V.childNodes);for(var b=V.next();!b.done;b=V.next())F.children.push(b.value);V=(V=C.instances[G+1])?V.children[0]:C;(0,_.C5)((0,_.C5)(C).parentNode).insertBefore(F.root,V);C.instances[G]=F},Ycu=function(C){if((C=C.parentSignalProxy.model)&&!C.hostElement){var F={},G;
for(G in C)C.hasOwnProperty(G)&&(F[G]=C[G]);return F}};
qZ.prototype.itemForElement=function(C){var F=this,G=this.instances.find(function(V){return V.children.includes(C)});
if(G)return YK(this.parentSignalProxy.owner,function(){return G.signalProxy.getWithPath([F.as])})};
qZ.prototype.indexForElement=function(C){var F=this.instances.findIndex(function(G){return G.children.includes(C)});
return F>=0?F:void 0};
_.I6.Object.defineProperties(qZ.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var C=this;return YK(this.parentSignalProxy.owner,function(){return xBE(C).getWithPath([])})},
set:function(C){sul(this,C)}},
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}}});
_.I6.Object.defineProperties(qZ,{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",qZ);var TNl,oRP;_.P$=new _.jh("STATE_STORE_TOKEN");TNl=new _.jh("SELECT_TOKEN");oRP=new _.jh("DISPATCH_TOKEN");var DLE={getSelectFn:function(){var C;return(C=_.I8().resolve(_.Qt(TNl)))!=null?C:Y2W},
getDispatchFn:function(){var C;return(C=_.I8().resolve(_.Qt(oRP)))!=null?C:_.Av().dispatch.bind(_.Av())},
getAppStore:function(){return _.I8().resolve(_.P$)}},TYs,KQi=!1;var jHs,hC8={traceAllComponents:_.y("web_tracing_all_components"),exportToCsi:_.y("web_tracing_export_to_csi"),enabledSpansArray:_.Uw("web_tracing_enabled_spans"),exportToDevTools:_.y("web_tracing_export_to_devtools"),sessionReplayEvents:_.a8("web_tracing_session_replay"),maxBreadcrumbs:_.a8("tel_max_breadcrumbs",0)};jHs=new cE2;var J7f=function(){};var G8S=void 0;var r$8=function(){};
r$8.prototype.hasAttribute=function(C){if(C==="dir")return!1;if(C==="disable-upgrade"){var F,G;return(G=(F=this.hostElement)==null?void 0:F.hasAttribute("disable-upgrade"))!=null?G:!1}throw Error("Rg`"+C);};
r$8.prototype.attributeChangedCallbackWrapper=function(C,F,G){if(C==="disable-upgrade"&&this.__isUpgradeDisabled&&G===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var V;((V=this.hostElement)!=null?V:this).isConnected&&this.connectedCallback()}else F===G||this.__isReflecting||this.attributeChangedCallback(C,F,G)};
r$8.prototype.getExtraMethodsToForward=function(){for(var C=this,F=[],G=_.u(KRl),V=G.next(),J={};!V.done;J={tagName$jscomp$67:void 0,name$jscomp$628:void 0},V=G.next())J.name$jscomp$628=V.value,V=void 0,J.name$jscomp$628==="_setPendingProperty"?(J.tagName$jscomp$67=this.hostElement.tagName.toLowerCase(),V=function(b){return function(z,Q,E){EA(b.tagName$jscomp$67,z,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return C._setPendingProperty(z,Q,E)}}(J)):V=function(b){return function(){return C[b.name$jscomp$628].apply(C,
_.da(_.Rn.apply(0,arguments)))}}(J),F.push([J.name$jscomp$628,
V]);return F};
for(var nq5=XR$(OG8((0,_.Xt)(r$8))),I3I=["disabled","disable-upgrade"],DBo=(0,_.Xt)(function(){}),pRP=new Set(Object.getOwnPropertyNames(DBo.prototype)),k8f=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.da(pRP))),W3o=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),KRl=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),mB7=new Set([].concat(_.da(W3o),_.da(KRl),_.da(pRP))),Cv8=_.u(mB7),jBO=Cv8.next();!jBO.done;jBO=Cv8.next())cEI.add(jBO.value);var a3B={created:function(){NYi(this);this.initializeInjection()}};var w4I=!1,gk=window.ShadyDOM,c7I=["appendChild","insertBefore","removeChild","replaceChild"],hWE=[Node];gk&&hWE.push(gk.Wrapper);var P6W,gqo,T_w={};var RN,Yz=new Set;var juW=new Set("context didCallReady is info params signalProxy".split(" ")),GjA="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),Vd9="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var Fz2=BS({entities:p0E}),GPy=new x2(Fz2);var V4o=function(){return _.n5.apply(this,arguments)||this};
_.O(V4o,_.n5);_.I6.Object.defineProperties(V4o.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return GPy}}});
_.R([_.uP()],V4o);_.g6=[Ah.prototype,V4o.prototype];_.Rm={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var C=this,F={};setTimeout(function(){var G;return _.oo((G=C.hostElement)!=null?G:C,"yt-live-chat-add-tooltip-target",F)},0);
this.handler_=F.handler},
detached:function(){if(this.handler_){var C;this.handler_.removeElementFromSupportingTooltips((C=this.hostElement)!=null?C:this)}this.handler_=null}}};_.mm=new _.jh("ICON_MANAGER_TOKEN");var iL8=[48,20,18,16,15,13,12],XRW=new Map,HG9=new Set,azw=new Set,UBE=new Set,tdT=new Set,kj5=new Set,y$T=new Promise(function(C){var F=!1,G=!1,V=!1,J=[],b=function(z){if("detail"in z)if(z=z.detail,z.name==="yt-icons")lzE(z),F=!0;else if(z.name==="yt-sys-icons")lzE(z),G=!0;else{var Q;((Q=z.name)==null?0:Q.includes("yt-sys-icons"))&&z.size!==24&&(lzE(z,!0),J.push(z.size),J.length===iL8.length&&(V=!0))}F&&G&&V&&(window.removeEventListener("iron-iconset-added",b),C())};
window.addEventListener("iron-iconset-added",b)}),NNB=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"]]);_.Ys={};_.Ys.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.dd,computeHref_:function(C,F){F=F===void 0?!1:F;if(!C||C.commandExecutorCommand)return null;var G=Qyq(C,F);return F||G!==null?G?_.y("enable_polymer_resin")?_.Ph(G).toString():G:null:(_.Yw(new _.Ay("computeHref was null",this.is,C)),null)},
computeOptionalHref_:function(C){return this.computeHref_(C,!0)},
computeNofollow_:function(C){return C?G3w(C)?"nofollow":null:null},
computeIcon_:function(C){return C&&C.iconType?_.p5(C.iconType):""},
resolveCommand:function(C,F,G){F=F===void 0?{}:F;return _.jR(C,this.hostElement,F,G===void 0?!1:G)}};var $9r,TW;_.JQu={};$9r=null;
TW={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_=EVE(this.viewroot));_.L5(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var C=this;this.unobserve_();if(_.y("kevlar_vimio_use_shared_monitor"))BNE(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 F=[];this.visibilityOptionVisible_&&F.push(this.visibilityObserver.observe(this.hostElement,function(){return C.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&F.push(this.visibilityObserver.observe(this.hostElement,function(){return C.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&F.push(this.visibilityObserver.observe(this.hostElement,function(){return C.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=F}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){wR5(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 C=_.Yf(this.parentNode,function(G){var V,J=(V=G.polymerController)!=null?V:G;return!!J.getVisibilityObserverForChild&&J.getVisibilityObserverForChild()},!0);
if(C){var F;this.localVisibilityObserver_=((F=C.polymerController)!=null?F:C).getVisibilityObserverForChild()}else $9r||($9r=EVE()),this.localVisibilityObserver_=$9r;return this.localVisibilityObserver_},visibilityCallback:function(C){C?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.y("kevlar_use_vimio_behavior")||(TW={});TW&&!_.y("kevlar_use_vimio_behavior")&&(delete TW.attached,delete TW.detached);_.JQu.YtVisibilityObserverBehavior=[TW];var bL$={};bL$.YtVisualElementBehavior=[_.JQu.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.y("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.y("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var C=this.getScreenLayer&&this.getScreenLayer(),F=this.getVisibilityLogger();F&&F.reportShown(this,void 0,C)}},
onHidden:function(){if(_.y("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.y("kevlar_vimio_use_shared_monitor")){var C=this.getScreenLayer&&this.getScreenLayer(),F=this.getVisibilityLogger();F&&F.reportHidden(this,void 0,C)}},
getVisibilityLogger:function(){return _.y("kevlar_use_vimio_behavior")?_.GS():null},
shouldSkipLogging:function(){if(_.TF("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var C=this.getParentRenderer&&this.getParentRenderer();if(!C)return!1;var F,G=(F=C.polymerController)!=null?F:C;if(!G.data)return!1;C=this.data.trackingParams;C=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:C;var V;F=(V=G.data)==null?void 0:V.trackingParams;var J,b;F=((J=G.data)==null?0:J.loggingDirectives)?(b=G.data)==null?void 0:b.loggingDirectives.trackingParams:F;return C&&F&&C===
F}}];var hAf=new Map,Qp;var e6f=function(C){this.layer=C},ju=function(C){return C.layer!==void 0?C.layer:C.parent?ju(C.parent):C.layer=0};var suw;_.D={};suw=0;_.D.YtRendererBehavior=[_.Ys.YtComponentBehavior,bL$.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_:_.y("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var C,F;(F=(C=this.monitorScrollElement)!=null?C:this.hostElement)==null||F.removeEventListener("scroll",_.Gp(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();vRB(this.hostElement);tbu(_.w6(),this.hostElement);sZ.delete(this.hostElement)},
registerRenderer:function(C){var F;((F=C.polymerController)!=null?F:C).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(C),this.markDirty())},
unregisterRenderer_:function(C){this.useVimio_||(this.childCache_.delete(C),this.markDirty())},
attached:function(){var C=this,F=this.getParentRenderer();if(F){var G,V,J;(V=(G=(J=F.polymerController)!=null?J:F).registerRenderer)==null||V.call(G,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var b,z;(z=(b=this.monitorScrollElement)!=null?b:this.hostElement)==null||z.addEventListener("scroll",_.Gp(this,this.onScroll))}_.gT.addJob(function(){c$9(C.hostElement)},8);
G=new e6f(this.screenLayer||void 0);(F=sZ.get(F))&&F.layerNode&&(G.parent=F.layerNode);F={};HQB(this.hostElement,(F.isRenderer=!0,F.layerNode=G,F[duZ]=this.data,F))},
getParentRenderer:function(){for(var C=this.hostElement.parentNode,F,G;C&&((F=sZ.get(C))==null||!F.isRenderer)&&!((G=C.polymerController)!=null?G:C).isRenderer_;)C=C.parentNode||C.host;return C},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.y("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.oD("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.y("debug_web_ve_data")&&this.data.trackingParams){var C="";try{C=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(G){_.gD(G)}if(C){var F=SZB(C,1);F!==void 0&&(this.hostElement.dataset.veIndex=String(F));C=SZB(C,2);
C!==void 0&&(this.hostElement.dataset.ve=String(C))}}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,_.y("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.zS(this.data.loggingDirectives.trackingParams)),this.visualElement=_.Vp(_.ia(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var C=this.data.targetId;_.k8o(_.w6(),C,this.hostElement)}else tbu(_.w6(),this.hostElement)},
onScroll:function(){var C=Date.now();C-this.lastHandledScroll_<50||(this.lastHandledScroll_=C,this.markDirty())},
markDirty:function(){_.y("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():qcq(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var C=this.getParentRenderer();if(C&&(C=sZ.get(C))&&C.layerNode)return ju(C.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.da(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var C=0;C<this.data.impressionEndpoints.length;C++)this.sendImpression(this.data.impressionEndpoints[C]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(C){C.clickTrackingParams&&delete C.clickTrackingParams;var F,G;(C==null?0:(F=C.commandMetadata)==null?0:(G=F.webCommandMetadata)==null?0:G.sendPost)?_.DQ(this.hostElement,[C,{impression:!0}]):_.pX(this.hostElement,[C],this.hostElement)},
logExplicitClick:function(C){var F=_.ZQ(this.getScreenLayer());if(F){var G,V=(G=C.polymerController)!=null?G:C;C=V.visualElement;V=V.trackingParams||V.clickTrackingParams;!C&&V&&(C=_.zS(V));C&&_.ej(F,C)}}}];var n5r={},om=function(){return _.n5.apply(this,arguments)||this};
_.O(om,_.n5);om.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
om.prototype.onPdgItemBehaviorClick=om.prototype.onPdgItemBehaviorClick;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],om.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],om.prototype,"data",void 0);_.R([_.VG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],om.prototype,"onPdgItemBehaviorClick",null);_.R([_.uP()],om);n5r.YtPdgLiveChatItemBehavior=[om.prototype,_.D.YtRendererBehavior];var uqP;var zLu;_.r6={};_.r6.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var KS=function(){var C=WS.apply(this,arguments)||this;C.switchTemplateAtRegistration=!1;return C};
_.O(KS,WS);KS.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||YcA(this),_.ULi(this,"doRender"),this.doRender())};
KS.prototype.debounceRender=function(){this.templatingFn&&_.Bb(this,"doRender",this.doRender)};
KS.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.gD(Error("ah"))};
KS.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.R([Gi5()],KS);var QB2=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,DS={},KRw=(DS[1]={filterString:null,isUnwrappable:null,unwrap:null},DS[2]={filterString:function(C,F,G){return pZ(G)},
isUnwrappable:function(C){return C instanceof on},
unwrap:function(C){return pT(C)}},DS[3]={filterString:function(C,F,G){return QB2.test(G)?G:q_.toString()},
isUnwrappable:function(C){return Az(C)},
unwrap:function(C){return _.eS(C)}},DS[4]={filterString:function(){return q_.toString()},
isUnwrappable:function(C){return C instanceof SS},
unwrap:function(C){return _.vh(C).toString()}},DS[5]={filterString:function(C,F,G){return G},
isUnwrappable:function(C){return typeof C==="string"},
unwrap:function(C){return C.toString()}},DS[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(C){return C instanceof _.FG},
unwrap:function(C){return Vy(C)}},DS[8]={filterString:function(C,F,G){G=String(G).toLowerCase();
return S8f(C,F,G)?G:"zClosurez"},
isUnwrappable:null,unwrap:null},DS[10]={filterString:null,isUnwrappable:null,unwrap:null},DS);Q3[DB["default"]]=pR9;var mBE=[];(function(){var C=nW;nW=function(F){C==null||C(F);tC(function(){for(var G=0;G<F.length;G++)CvZ(F[G])})}})();var IvE=function(){var C=_.n5.apply(this,arguments)||this;C.hasUnmounted=!1;return C};
_.O(IvE,_.n5);_.n=IvE.prototype;_.n.beforeRegister=function(){var C=this.doIdomRender;this.templatingFn?_.gD(Error("$g")):(this.templatingFn=C,this.switchTemplateAtRegistration=!0,r$Z(this))};
_.n.attached=function(){};
_.n.detached=function(){CvZ(this.hostElement)};
_.n.renderIdom=function(){throw Error("ch");};
_.n.doIdomRender=function(){var C=this;NvA(this.hostElement,function(){C.renderIdom()})};
_.R([_.uP()],IvE);var E5G=[KS.prototype,IvE.prototype];var Wz7,t4y=function(){return Wz7!==void 0?Wz7:Wz7=document.createElement("template")};
document.head.appendChild(t4y().content);var avu;var kP2,U9$=function(){return kP2!==void 0?kP2:kP2=document.createElement("template")};
document.head.appendChild(U9$().content);var HLm;var lvm=document.head,yQu=lvm.appendChild,ZL2;if(HLm===void 0){var NeS=document.createElement("template");_.X(NeS,"\x3c!--css-build:shady--\x3e");NeS.content.insertBefore(U9$().content.cloneNode(!0),NeS.content.firstChild);HLm=NeS}ZL2=HLm;yQu.call(lvm,ZL2.content);var OLP,XKS=function(){return OLP!==void 0?OLP:OLP=document.createElement("template")};
document.head.appendChild(XKS().content);var wKr;var M4$=document.head,SN8=M4$.appendChild,Lzo;if(wKr===void 0){var Be$=document.createElement("template");_.X(Be$,"\x3c!--css-build:shady--\x3e");Be$.content.insertBefore(XKS().content.cloneNode(!0),Be$.content.firstChild);wKr=Be$}Lzo=wKr;SN8.call(M4$,Lzo.content);var v5o=document.head,fvO=v5o.appendChild,hLu;if(avu===void 0){var cQE=document.createElement("template");_.X(cQE,"\x3c!--css-build:shady--\x3e");cQE.content.insertBefore(t4y().content.cloneNode(!0),cQE.content.firstChild);avu=cQE}hLu=avu;fvO.call(v5o,hLu.content);var AQO,eLE=function(){return AQO!==void 0?AQO:AQO=document.createElement("template")};
document.head.appendChild(eLE().content);var d9P;_.v6=new _.jh("DARK_THEME_TOKEN");var Pv5=new _.Cx("accessibilityProperties");var qNo=new _.Cx("layoutProperties");var g5S=new _.Cx("imageType");var x9r={};if("ytAttributedStringLinkHoverColor"in x9r)throw Error("fh`ytAttributedStringLinkHoverColor");(function(C,F){x9r[C]="value"in F&&"unit"in F?JQA(C,F):function(G){try{return F(G)}catch(V){throw Error("dh`"+C+"`"+V.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var sB8=function(C){var F=this;this.holdTime=C===void 0?500:C;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(G){var V=new CustomEvent("LONG_PRESS"),J;(J=G.changedTouches[0].target)==null||J.dispatchEvent(V)};
this.ontouchstart=function(G){F.longPressTimeout=_.FD(_.gT,function(){F.onlongpress(G);F.longPressOccurred=!0},F.holdTime)};
this.ontouchmove=function(){_.gT.cancelJob(F.longPressTimeout);F.longPressTimeout=NaN;F.longPressOccurred=!1;F.moveOccurred=!0};
this.ontouchend=function(G){if(F.longPressTimeout&&!F.longPressOccurred&&!F.moveOccurred){var V;(V=G.changedTouches[0].target)==null||V.dispatchEvent(new Event("click"))}_.gT.cancelJob(F.longPressTimeout);F.longPressTimeout=NaN;F.longPressOccurred=!1;F.moveOccurred=!1}};var Nei=function(C,F){sB8.call(this,F);var G=this;this.callback=C;this.onlongpress=function(V){var J;(J=G.callback)==null||J.call(G,V)}};
_.O(Nei,sB8);var OL9=function(C,F){var G=Object.assign({},F);C=_.u(new Map([["ontouchstart",C.ontouchstart],["ontouchend",C.ontouchend],["ontouchmove",C.ontouchmove]]));for(var V=C.next(),J={};!V.done;J={eventName$jscomp$103:void 0,eventHandler$jscomp$2:void 0},V=C.next()){var b=_.u(V.value);V=b.next().value;b=b.next().value;J.eventName$jscomp$103=V;J.eventHandler$jscomp$2=b;F[J.eventName$jscomp$103]=function(z){return function(Q){var E;(E=G[z.eventName$jscomp$103])==null||E.call(G,Q);(0,z.eventHandler$jscomp$2)(Q)}}(J)}};_.WD=new _.jh("COMMAND_HANDLER_TOKEN");var bLW=new _.Cx("parallelCommand");var zLo=new _.Cx("performOnceCommand");var uq9=new _.Cx("serialCommand");var QBI=void 0;var qNu=function(){this.data=[];this.consumer=null};
qNu.prototype.push=function(C){this.consumer?this.consumer(C):this.data.push(C)};var fY={};_.yH(fY,void 0,"sgPmTd");_.yH(null,void 0,"jypsq");_.yH(null,void 0,"mWiOof");var fCB=new qNu;var HLB=[d_y,x_l,snl,P0P,qLm,e_m,glE,R_y];var x9T=new _.Cx("bracketTextDecorator");var Ly=new _.Cx("highlightTextDecorator");_.hC=new _.jh("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var hLo=function(){},Pvy;
(Pvy=window.requestIdleCallback)==null||Pvy.bind(window);var AQs={calledOnce:!1,state:"visible"},cQS={calledOnce:!1,state:"hidden"};var g5E=new _.jh("ICON_WIZ_COMPONENT_TOKEN");_.i5=_.d(function(C){var F=C.icon;var G=C.active;var V=C.className;var J=C.style;var b=C.dataSelected;var z=C.dataDisabled;var Q=C.role;var E=C.animateIcon;var t=C.themeOverride;var k=C.ariaHidden;var U=C.ariaExpanded;var H=C.ariaLabel;var l=C.tabindex;var N=C.id;var S=C.size;var f=C.iconFilter;var c=C.gradientColor;var A=C.onKeydown;return _.W(_.a,{cond:F,then:function(){var T=_.I8().resolve(g5E);return _.W(T,{icon:F,dataSelected:b,dataDisabled:z,animateIcon:E,themeOverride:t,ariaExpanded:U,tabindex:l,
id:N,active:G,size:S,role:Q,className:V,ariaHidden:k,ariaLabel:H,style:function(){return J!=null&&J()||S==null||!S()?J==null?void 0:J():"width: "+(S==null?void 0:S())+"px;height: "+((S==null?void 0:S())+"px;")},
iconFilter:f,gradientColor:c,onKeydown:A})}})},"k");
_.i5.idomCompat={callbacks:{onKeydown:!0}};var JxE=window.devicePixelRatio||1;var urT=new Map([["yt_outline_bag_black_24","bag"]]);var pS=function(C){var F=this;this.margin=.1;this.whenInViewportWithMargin=C;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){F.requestScan()});
window.addEventListener("touchend",function(){F.requestScan()});
window.addEventListener("updateui",function(){F.requestScan()});
var G=new _.FX((0,_.ck)(this.requestScan,this),100);window.addEventListener("scroll",function(){G.fire()},!0);
window.addEventListener("resize",(0,_.ck)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){F.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.ck)(this.requestScan,this))};
pS.prototype.observe=function(C){this.observationTargets.includes(C)||this.observationTargets.push(C)};
pS.prototype.unobserve=function(C){this.observationTargets=this.observationTargets.filter(function(F){return F!==C})};
pS.prototype.requestScan=function(){var C=this;this.scanRequested||(tC(function(){RLP(C)}),this.scanRequested=!0)};
var RLP=function(C){var F=(1+C.margin)*(document.documentElement.clientHeight||window.innerHeight);C.observationTargets=C.observationTargets.filter(function(G){var V=G.getBoundingClientRect();(V=F>V.top&&!!V.height)&&C.whenInViewportWithMargin(G);return!V&&G.parentNode});
C.scanRequested=!1};
pS.prototype.disconnect=function(){this.observationTargets=[]};var YNu,o5m;YNu=_.u(_.yH(WI5(),void 0,"O3X2wd"));_.Te7=YNu.next().value;o5m=YNu.next().value;window.addEventListener("resize",function(){o5m(WI5())});var rQG={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},Kzl=void 0,D9m=window.innerWidth,pK2=window.innerHeight;window.addEventListener("resize",function(){Kzl=void 0});var m98;if("IntersectionObserver"in window)m98=kas();else{if(Kzl===void 0){var CoO;CoO="matchMedia"in window?window.matchMedia(rQG.landscape+","+rQG.portrait).matches:void 0;Kzl=CoO!==void 0?CoO:D9m>=930&&pK2>=550||D9m>=550&&pK2>=930}m98=Kzl?{observe:function(C){tC(function(){var F;(F=C.onViewportEntered)==null||F.call(C)})},
unobserve:function(){}}:new pS(function(C){tC(function(){var F;
(F=C.onViewportEntered)==null||F.call(C)})})}var t2S=m98;var jT$=_.d(function(C){var F=!1,G=_.Jt("img",function(V){_.q0(function(){F=!0;V.onload=null})});
_.sq(function(){var V,J=(V=C.data)==null?void 0:V.call(C),b,z=(b=C.getSrc)==null?void 0:b.call(C).cb,Q;V=(Q=C.config)==null?void 0:Q.call(C);if(Q=G.value)if(b=function(t,k){if(!F)return z?z(t,k):t},llI(Q,V),_.y("web_image_dont_reload_same_src")&&Hzs(Q,J,b))_.y("web_image_dont_reload_same_src_simulate_load")&&Q.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var E;U6w(Q,J||null,b,V,(E=C.lazy)==null?void 0:E.call(C))}},"zS0jKb");
return _.W("img",{el:G})},"m");
jT$.idomCompat=!0;_.AC=_.d(function(C){var F=function(){var G,V=C.data(),J,b,z,Q,E,t,k,U,H,l,N,S,f,c,A,T,P,g,r,C9,Wo,EB,L9,ki,lZ,eq,OB,yr,Rl;var w2={contentMode:(J=C.contentMode)==null?void 0:J.call(C),loadedClass:(b=C.loadedClass)==null?void 0:b.call(C),isPreloaded:(z=C.isPreloaded)==null?void 0:z.call(C),notifyOnLoaded:(Q=C.notifyOnLoaded)==null?void 0:Q.call(C),notifyOnUnloaded:(E=C.notifyOnUnloaded)==null?void 0:E.call(C),preferredThumbnail:(t=C.preferredThumbnail)==null?void 0:t.call(C),preserveHeight:(k=C.preserveHeight)==
null?void 0:k.call(C),preserveWidth:(U=C.preserveWidth)==null?void 0:U.call(C),objectPosition:(H=C.objectPosition)==null?void 0:H.call(C),targetWidth:(l=C.targetWidth)==null?void 0:l.call(C),targetHeight:(N=C.targetHeight)==null?void 0:N.call(C),shouldShowPlaceholder:(S=C.shouldShowPlaceholder)==null?void 0:S.call(C),useWidth:(f=C.useWidth)==null?void 0:f.call(C),isToggled:(c=C.isToggled)==null?void 0:c.call(C),alt:(A=C.alt)==null?void 0:A.call(C),className:(T=C.className)==null?void 0:T.call(C),
onerror:C.onerror,onload:C.onload,style$:((P=C.style$)==null?void 0:P.call(C))||((g=C.style)==null?void 0:g.call(C)),color:(r=C.color)==null?void 0:r.call(C),width:(C9=C.width)==null?void 0:C9.call(C),height:(Wo=C.height)==null?void 0:Wo.call(C),"aria-hidden$":(yr=(EB=C["aria-hidden$"])==null?void 0:EB.call(C))!=null?yr:(L9=C.ariaHidden)==null?void 0:L9.call(C),draggable:(ki=C.draggable)==null?void 0:ki.call(C),"data-disabled$":(Rl=(lZ=C["data-disabled$"])==null?void 0:lZ.call(C))!=null?Rl:(eq=C.dataDisabled)==
null?void 0:eq.call(C),size:(OB=C.size)==null?void 0:OB.call(C)};return NL9(V,w2,(G=C.hideOn404)==null?void 0:G.call(C))};
return _.W(_.e_,null,_.W(_.hg,{when:function(){var G;return((G=F())==null?void 0:G.type)==="image"}},function(){return _.W(jT$,{data:function(){return F().image},
getSrc:{cb:function(G,V){var J=F().image.sources,b=F().config.isPreloaded,z=F().config.useWidth,Q=F().config.targetWidth,E=F().config.targetHeight,t=F().config.preferredThumbnail;return _.$6S(V,J,b,z,Q,E,t)||""}},
config:function(){var G=F().config,V;for(V in G)G[V]===void 0&&delete G[V];return G},
lazy:C.renderLazy})}),_.W(_.hg,{when:function(){var G;
return((G=F())==null?void 0:G.type)==="icon"}},function(){return _.W(_.i5,{icon:function(){return F().iconName},
role:function(){return F().config.role},
className:function(){return F().config.className},
style:function(){return F().config.style$+";width: "+(F().config.width+"px;height: ")+(F().config.height+"px;color: ")+(F().config.color+";")},
ariaLabel:function(){return F().config["aria-label$"]},
ariaHidden:function(){return F().config["aria-hidden$"]},
dataDisabled:function(){return F().config["data-disabled$"]},
active:function(){return F().config.isToggled},
size:function(){return F().config.size}})}))},"n");
_.AC.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var FIu=function(C){return function(F){return _.W(qIB,null,function(){var G=F.data(),V=_.g0(F.config);return _.W(u9,null,function(){return void C(G,V)})})}}(SP5),wmI=_.d(function(C){var F=function(J){var b,z=_.dQ(function(l){b=Pp(function(){for(var N=_.u(U()),S=N.next();!S.done;S=N.next()){S=LIw(S.value);
S=typeof S==="string"?document.createTextNode(S):S;if(!(S instanceof Node)){N=new _.Ay("Part is not a node",S,typeof S);_.gD(N);break}l.appendChild(S)}})});
var Q=_.y("web_wiz_attributed_string_skip_empty")?J:xe(function(){return YNo(J())},{isEqual:Xm9});
var E=_.dk(C.config),t=function(){var l,N=Q();return!((l=E())==null||!l.ariaLabel)||!(N.commandRuns&&N.commandRuns.length!==0||N.paragraphStyleRuns&&N.paragraphStyleRuns.length!==0)},k=xe(E,{isEqual:v3s}),U=function(){var l=RL9(Q(),k());
o5B(l,k());return Q().content?Cos(Q().content,l).parts:[]},H=!0;
_.sq(function(){Q();k();if(H)H=!1;else{var l=U();Promise.resolve().then(function(){var N=z.value;if(N){N.innerText="";var S;(S=b)==null||S();b=_.xn(N,function(){return _.W(BLo,{parts:l})},"o")}})}},"S2CIIe");
return _.W("span",{el:z,class:function(){return Q()&&Lzf(Q(),E())},
dir:function(){var l;return((l=E())==null?0:l.userInput)?"auto":void 0},
"aria-label":function(){var l;return t()?(l=E())==null?void 0:l.ariaLabel:void 0},
role:function(){return t()?"text":void 0}})},G=_.y("web_wiz_attributed_string_skip_empty")?xe(function(){var J,b=(J=C.text)==null?void 0:J.call(C);
if(b)return J=YNo(b),(J==null?0:J.content)?J:void 0},{isEqual:Xm9}):C.text,V;
return((V=C.config)==null?0:V.renderedFromFormattedString)?F(G):_.W(_.a,{cond:G,then:F})},"q");
wmI.idomCompat=!0;_.mn=_.d(function(C){var F=_.dk(C.text),G=flT(C);C.renderedFromFormattedString!==void 0&&(G.renderedFromFormattedString=!0);return _.y("attr_string_reactive")?_.W(wmI,{text:F,config:G}):_.W(_.a,{cond:function(){var V;return F()&&((V=YNo(F()))==null?void 0:V.content)},
then:function(){return _.W(FIu,{data:C.text,config:G})},
debugInstance:"Apcuac"})},"r");
_.mn.idomCompat=!0;var sTE="";gvB({beforeVisit:function(C){C.type.TAG_NAME&&(sTE=C.type.TAG_NAME)},
afterRender:function(C,F){var G;sTE=(G=F==null?void 0:F.type)!=null?G:""},
didPatch:function(){sTE=""}});var hoE=function(C,F,G){F=F===void 0?"unknown":F;G=G===void 0?{}:G;_.Ay.call(this,C+" ("+F+")",Object.assign({},{name:"YtWcwError",tagName:F},G));Object.setPrototypeOf(this,this.constructor.prototype)};
_.O(hoE,_.Ay);_.P6=new WeakMap;_.qD=!1;var x6B,qPf,d6I;_.CJ=Symbol("hh");_.s9=Symbol("ih");x6B=Symbol("jh");qPf=new Set(Object.getOwnPropertyNames(Element.prototype));d6I=Symbol("kh");var GaG=_.d(function(C){return _.W("yt-attributed-string",{"aria-label":C.ariaLabel,hidden:C.hidden,id:C.id,class:C.className,"force-default-style":C.forceDefaultStyle},_.W(_.mn,{text:C.data,ariaLabel:C.ariaLabel,ellipsisTruncate:C.ellipsisTruncate,isOverlay:C.isOverlay,linkInheritColor:C.linkInheritColor,noPreWrap:C.noPreWrap,noWrap:C.noWrap,userInput:C.userInput,noEndpoints:C.noEndpoints,headerRuns:C.headerRuns,isHeadline:C.isHeadline}))},"s");
_.y("web_wiz_attributed_string")&&_.gQ(GaG,"yt-attributed-string",{props:{ariaHidden:_.CJ,ariaLabel:_.CJ,className:_.CJ,ellipsisTruncate:_.CJ,isOverlay:_.CJ,linkInheritColor:_.CJ,noEndpoints:_.CJ,noStyleRuns:_.CJ,noLinkColor:_.CJ,noPreWrap:_.CJ,noWrap:_.CJ,skipOnClick:_.CJ,userInput:_.CJ,headerRuns:_.CJ,isHeadline:_.CJ,id:_.CJ,data:_.CJ,hidden:_.CJ,forceDefaultStyle:_.CJ,text:_.s9,disableUpgrade:_.s9,disable:_.s9,slot:_.s9}});var jp=function(){return _.B.apply(this,arguments)||this};
_.O(jp,_.B);jp.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},SP5(this.data,this.config))};
_.R([_.w(E5G),_.Y("design:type",Object)],jp.prototype,"ytIdomTemplatingBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],jp.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],jp.prototype,"ariaLabel",void 0);_.R([_.L(),_.Y("design:type",Boolean)],jp.prototype,"disable",void 0);_.R([_.L(),_.Y("design:type",Boolean)],jp.prototype,"ellipsisTruncate",void 0);_.R([_.L(),_.Y("design:type",Boolean)],jp.prototype,"isOverlay",void 0);
_.R([_.L(),_.Y("design:type",Boolean)],jp.prototype,"linkInheritColor",void 0);_.R([_.L(),_.Y("design:type",Boolean)],jp.prototype,"noPreWrap",void 0);_.R([_.L(),_.Y("design:type",Boolean)],jp.prototype,"noWrap",void 0);_.R([_.L(),_.Y("design:type",Boolean)],jp.prototype,"userInput",void 0);_.R([_.L(),_.Y("design:type",Boolean)],jp.prototype,"noEndpoints",void 0);_.R([_.L(),_.Y("design:type",Array)],jp.prototype,"headerRuns",void 0);
_.R([_.Z5({is:"yt-attributed-string",disableElementRegistration:!0})],jp);
_.y("web_wiz_attributed_string")||_.q(jp,"yt-attributed-string",function(){if(d9P===void 0){var C=document.createElement("template");_.X(C,"\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");C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);
C.content.insertBefore(eLE().content.cloneNode(!0),C.content.firstChild);d9P=C}C=d9P;return C},{mode:2});var V28,iz$,rxi;V28=function(){this.firstThumbnailLoaded=!1};
_.Jx7=function(){iz$||(iz$=new V28);return iz$};
rxi=function(C){var F=_.Jx7();F.firstThumbnailLoaded||(F.firstThumbnailLoaded=!0,_.NV("ftl",C))};
V28.prototype.reset=function(){this.firstThumbnailLoaded=!1};var g3q=0,o3E=new WeakMap,YP5=0,TS=new Set;var $6E,bzP=function(){return $6E!==void 0?$6E:$6E=document.createElement("template")};
document.head.appendChild(bzP().content);var n3S;var m6B,jUq,Fe;_.Ky=_.VT.caches;Fe=function(){};
Fe.prototype.open=function(C){return _.Ky.open(urr(C))};
Fe.prototype.has=function(C){return _.Ky.has(urr(C))};
Fe.prototype.delete=function(C){return _.Ky.delete(urr(C))};
Fe.prototype.match=function(C,F){var G=this,V,J,b,z,Q,E;return _.I(function(t){switch(t.nextAddress){case 1:return t.yield(G.keys(),2);case 2:V=t.yieldResult,J=_.u(V),b=J.next();case 3:if(b.done){t.jumpTo(5);break}z=b.value;return t.yield(G.open(z),6);case 6:return Q=t.yieldResult,t.yield(Q.match(C,F),7);case 7:if(E=t.yieldResult)return t.return(E);b=J.next();t.jumpTo(3);break;case 5:return t.return()}})};
var FGZ=function(){};
_.O(FGZ,Fe);var urr=function(C){if(C.includes(":"))throw Error("nh`"+C);return C+":"+_.hy("CacheStorage get")};
FGZ.prototype.keys=function(){var C,F,G,V,J,b,z,Q,E;return _.I(function(t){if(t.nextAddress==1)return C=[],F=_.hy("CacheStorage keys"),t.yield(_.Ky.keys(),2);G=t.yieldResult;V=_.u(G);for(J=V.next();!J.done;J=V.next())b=J.value,z=_.pmS(b),Q=z.originalName,E=z.datasyncId,E===F&&C.push(Q);return t.return(C)})};var GV=function(){var C=_.B.apply(this,arguments)||this;C.objectURL=null;C.loadTime=Infinity;return C};
_.O(GV,_.B);_.n=GV.prototype;_.n.renderIdom=function(){D6Z(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("qh");this.setConfig();this.config&&yxS(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.n.objectFitToContentMode=function(C){switch(C){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.n.logThumbnailFailureVe=function(){var C=_.m2(197497);_.Of(_.ia(),C);var F=_.ZQ();F&&C&&F&&_.cA(F,[C])};
_.n.loadImageFromCacheIfExists=function(C){var F=this,G=C.target;(G==null?0:G.src)&&VOI(G.src).then(function(V){F.objectURL=_.g9(V).toString();F.setSrc(G,F.objectURL)}).catch(function(){})};
_.n.onError=function(C){var F=this;if(_.y("web_use_cache_for_image_fallback")){var G=C.target;G&&VOI(G.src).then(function(V){F.objectURL=_.g9(V).toString();F.setSrc(G,F.objectURL)}).catch(function(){_.y("kevlar_woffle_log_thumbnail_failure_ve")&&F.logThumbnailFailureVe();
_.y("kevlar_woffle_fallback_image")&&F.setSrc(G,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.n.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.n.setConfig=function(){var C=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(F){C.loadImageFromCacheIfExists(F);C.revokeObjectURL();KIA(C.hostElement)},
onerror:function(F){C.onError(F)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.y("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.n.setSrc=function(C,F){F&&(C.src=F)};
_.R([_.w(E5G),_.Y("design:type",Object)],GV.prototype,"ytIdomTemplatingBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],GV.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",String)],GV.prototype,"alt",void 0);_.R([_.L(),_.Y("design:type",Boolean)],GV.prototype,"ftlEligible",void 0);_.R([_.L(),_.Y("design:type",Number)],GV.prototype,"height",void 0);_.R([_.L(),_.Y("design:type",Boolean)],GV.prototype,"notifyOnLoaded",void 0);
_.R([_.L(),_.Y("design:type",Boolean)],GV.prototype,"notifyOnUnloaded",void 0);_.R([_.L(),_.Y("design:type",String)],GV.prototype,"objectFit",void 0);_.R([_.L(),_.Y("design:type",String)],GV.prototype,"objectPosition",void 0);_.R([_.L(),_.Y("design:type",String)],GV.prototype,"preferredThumbnail",void 0);_.R([_.L(),_.Y("design:type",Boolean)],GV.prototype,"preserveHeight",void 0);_.R([_.L(),_.Y("design:type",Boolean)],GV.prototype,"preserveWidth",void 0);
_.R([_.L({value:!0}),_.Y("design:type",Boolean)],GV.prototype,"useWidth",void 0);_.R([_.L({value:function(){return!_.oD("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.Y("design:type",Boolean)],GV.prototype,"shouldRenderLazy",void 0);_.R([_.L(),_.Y("design:type",Number)],GV.prototype,"width",void 0);_.R([_.Z5({is:"yt-image",disableElementRegistration:!0})],GV);
_.q(GV,"yt-image",function(){if(n3S===void 0){var C=document.createElement("template");_.X(C,"\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");C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);C.content.insertBefore(bzP().content.cloneNode(!0),C.content.firstChild);
n3S=C}C=n3S;return C},{mode:2});var VR=function(){return _.B.apply(this,arguments)||this};
_.O(VR,_.B);VR.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var C=_.ZD(this.data.onVisibleCommand);C&&this.ytComponentBehavior.resolveCommand(C)}};
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],VR.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],VR.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.r6.YtVisibilityBehavior),_.Y("design:type",Object)],VR.prototype,"ytVisibilityBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],VR.prototype,"data",void 0);_.R([_.Z5({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],VR);
_.q(VR,"yt-bumper-user-edu-content-view-model",function(){if(zLu===void 0){var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;uqP===void 0&&(uqP=document.createElement("template"));var V=uqP;G.call(F,V.content.cloneNode(!0),C.content.firstChild);zLu=C}C=zLu;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var zoG;var QTE,Ilr=function(){if(QTE!==void 0)return QTE;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;zoG===void 0&&(zoG=document.createElement("template"));var V=zoG;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return QTE=C};var E3P;_.ic={};E3P=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"]);_.ic.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var C=this.getContext_();return C?C.getTaskManager():_.gT},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var C=_.oo(this.hostElement,"yt-get-context-provider",{});C.detail&&C.detail.contextProvider?this.cachedProviderNode_=C.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return E3P.has(this.hostElement.localName)},
getNetworkManager:function(){var C=this.getContext_();if(C)return C.getNetworkManager()}};var ug5,WIy,al8,t2E;_.JS=function(C){var F=WIy.get(C);if(F&&(F=F.pop()))return t2E++,F;al8++;try{var G=document.createElement(C)}catch(V){throw new _.Ay("ElementPool failed to create element",C,V.message);}return G};
ug5=function(C){var F=C.is;if(F){var G=WIy.get(F);G||(G=[],WIy.set(F,G));var V=_.TF("ELEMENT_POOL_CONFIG")||{};G.length>=(V[F]!==void 0?V[F]:_.TF("ELEMENT_POOL_DEFAULT_CAP",0))||G.push(C)}else _.Yw(new _.Ay("Element pool should only handle custom elements:",C.nodeName))};
WIy=new Map;al8=0;t2E=0;var DD=new WeakMap,noI=new WeakMap;var U6l;_.$a=function(C,F,G){G=G===void 0?_.Ws():G;this.JSC$13892_defaultPriority=C;this.signal=F;this.scheduler=G;this.nextJobDescriptor=0;this.JSC$13892_parkedJobs=[];this.scheduledJobs=new Map};
_.bc=function(C,F){if(F){var G=_.Vc();C.signal&&!_.iM(G,C.signal)?(G.addListener(C.signal,function(){C.processSignal()}),C.JSC$13892_parkedJobs.push({job:F,
priority:void 0})):kaO(C,F)}};
U6l=function(C,F){if(F!==C.JSC$13892_defaultPriority){C.JSC$13892_defaultPriority=F;for(var G=_.u(C.scheduledJobs.values()),V=G.next();!V.done;V=G.next())V=V.value,C.scheduler.cancelJob(V.jobId),V.jobId=C.scheduler.addJob(V.jobWrapper,F)}};
_.$a.prototype.flushJobs=function(){U6l(this,10);this.processSignal()};
_.$a.prototype.cancel=function(){for(var C=_.u(this.scheduledJobs),F=C.next();!F.done;F=C.next()){var G=_.u(F.value);F=G.next().value;G=G.next().value;this.scheduler.cancelJob(G.jobId);this.scheduledJobs.delete(F)}this.JSC$13892_parkedJobs=[]};
_.$a.prototype.processSignal=function(){for(var C=_.u(this.JSC$13892_parkedJobs),F=C.next();!F.done;F=C.next())F=F.value,kaO(this,F.job,F.priority);this.JSC$13892_parkedJobs=[]};
var kaO=function(C,F,G){G=G||C.JSC$13892_defaultPriority;if(G===10)oP(F);else{var V=C.nextJobDescriptor++,J=function(){F();C.scheduledJobs.delete(V)},b=C.scheduler.addJob(J,G);
C.scheduledJobs.set(V,{jobWrapper:J,jobId:b,priority:G})}};var HzO;_.nJ={};HzO={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.nJ.YtRendererstamperBehavior=[_.ic.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 C in this.stampDom){var F=this.stampDom[C];F&&F.id&&this.addReactiveSchema({type:"observe",method:{methodName:JeA(F.id),args:[{type:"wildcard",path:C}]}})}else{(C=(this.constructor.generatedFrom||this).observers)||(C=[]);for(F in this.stampDom){var G=this.stampDom[F];G&&G.id&&C.push(JeA(G.id)+"("+F+".*)")}this.constructor.generatedFrom.observers=C}},
addStampDomObserverFns_:function(){for(var C in this.stampDom){var F=this.stampDom[C];F.id?(this[JeA(F.id)]=this.rendererStamperObserver_.bind(this,C,F.id),this.hasDataPath_[C]=!1):(F=new _.Ay("Bad rendererstamper config",this.is+":"+C),_.gD(F))}},
rendererStamperObserver_:function(C,F,G){if(G.path==C){if(G.value===void 0&&!this.hasDataPath_[C])return;this.hasDataPath_[C]=G.value!==void 0}this.rendererStamperApplyChangeRecord_(C,F,G)},
rendererStamperApplyChangeRecord_:function(C,F,G){var V=this.renderJobsMap_[F],J=null;C==G.path?(G=G.value,_.gI(G)||(G=G===void 0||G===null?[]:[G]),C=this.stampDom[C],C.mapping&&(J=this.stampDomArray_.bind(this,G,F,C.mapping,C.reuseComponents,C.events,C.stamperStableList)),V&&V.cancel(),G=C.usePageScheduler?this.getTaskManager():void 0,V||C.initialRenderPriority==void 0)?C.renderPriority==void 0||V||(V=new _.$a(C.renderPriority,C.waitForSignal,G),this.renderJobsMap_[F]=V):(V=new _.$a(C.initialRenderPriority,
C.waitForSignal,G),this.renderJobsMap_[F]=V,J=function(b,z){b();U6l(z,10)}.bind(this,J,V)):J=C+".splices"==G.path?this.stampDomArraySplices_.bind(this,C,F,G.value):this.forwardRendererStamperChanges_.bind(this,C,F,G);
V?_.bc(V,J):J()},
forwardRendererStamperChanges_:function(C,F,G){var V=G.path.slice(C.length+1),J=this.getStampContainer_(F),b=V.indexOf("."),z=V.substring(0,b),Q=!1,E=0,t=parseInt(z,0);if(z[0]=="#"){Q=parseInt(z.substring(1),0);t=this.get(C);var k=this.get([C,z]);t[Q]==k?E=Q:E=t.indexOf(k);Q=!0}else isNaN(t)||(E=t,Q=!0);Q&&(V=V.substring(z.length+1),b=V.indexOf("."));z=this.polymerDom(J).children[E];var U;if(J=(U=z==null?void 0:z.polymerController)!=null?U:z)V="data"+V.slice(b),typeof J.notifyPath!=="function"?_.Yw(new _.Ay("notifyPath missing",
this.is+": "+C+", "+F)):G.value?J.notifyPath(V,G.value):J.notifyPath(V)},
stampDomArraySplices_:function(C,F,G){if(G&&G.indexSplices){var V=this.getStampContainer_(F);if(V){for(var J=this.polymerDom(V),b=bjI(this.stampDom[C].reuseComponents),z=G.indexSplices.length,Q=0;Q<z;Q++){for(var E=G.indexSplices[Q],t=J.children[E.index],k=E.removed.length;k>0;k--)t&&t.parentElement&&(this.polymerDom(t.parentElement).removeChild(t),b&&ug5(t),t=J.children[E.index]);k=this.stampDom[C].mapping;for(var U=E.index+E.addedCount,H=document.createDocumentFragment(),l=b,N=E.index;N<U;N++){var S=
E.object[N],f=ijw(k,S);if(f){var c=k[f];S=S[f];f=this.getComponentName_(c,S);var A=t?DD.has(t):!1;l&&t&&t.is==f&&A?(f=t,this.telemetry_.reuse++,t=t.nextElementSibling):l&&t&&A?(f=this.createComponent_(c,S,b),A=this.polymerDom(t).nextElementSibling,J.insertBefore(f,A),QUo(this.is,J,t,b),t=A):(l=!1,f=this.createComponent_(c,S,b),H.appendChild(f));this.deferRenderStamperBinding_(f,c,S)}else c=new _.Ay("Unimplemented type",C,F,V.tagName,Object.keys(S)[0]),_.gD(c)}J.insertBefore(H,t)}this.flushRenderStamperComponentBindings_();
this.stampDom[C].events&&_.oo(this.hostElement,"yt-rendererstamper-finished",{container:V})}else C=new _.Ay("Container object not found",F,this.hostElement?this.hostElement.is:""),_.gD(C)}},
stampDomArray_:function(C,F,G,V,J,b){var z=this.getStampContainer_(F);if(z)if(F=this.polymerDom(z),V=bjI(V),C){var Q=0,E=0,t;if(b=b===void 0?_.oD("STAMPER_STABLE_LIST",!1):b||!1)for(t=F.firstElementChild;t&&!DD.has(t)&&C.length>E;){b=C[E];var k=ijw(G,b);if(k){if(this.getComponentName_(G[k],b[k])!=t.is){var U=this.createComponent_(G[k],b[k],V),H=_.E5(t).nextElementSibling;H?F.insertBefore(U,H):F.appendChild(U);QUo(this.is,F,t,V);t=U}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(t,G[k],
b[k]);Q++;E++;t=this.polymerDom(t).nextElementSibling}else E++}IGB(this.is,F,Q,V);Q=t;if(C.length>E){b=document.createDocumentFragment();for(k=C.length;E<k;E++)if(U=C[E],H=ijw(G,U))t=this.createComponent_(G[H],U[H],V),this.deferRenderStamperBinding_(t,G[H],U[H]),b.appendChild(t);Q&&this.polymerDom(Q).parentNode&&t&&!DD.has(t)?F.insertBefore(b,Q):F.appendChild(b)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();J&&_.oo(this.hostElement,"yt-rendererstamper-finished",{container:z})}else IGB(this.is,
F,0,V);else C=new _.Ay("Container object not found",F,this.hostElement?this.hostElement.is:""),_.gD(C)},
polymerDom:function(C){return this.minimizePipBreakages?C:_.E5(C)},
getStampContainer_:function(C){return this.$&&this.$[C]||_.ot(this.hostElement).querySelector("#"+C)},
getComponentName_:function(C,F){return typeof C==="string"?C:C.matcher?C.matcher.call(this,F):C.component},
createComponent_:function(C,F,G){C=this.getComponentName_(C,F);try{var V=Yz.has(C);if(G&&!V){var J=_.JS(C);try{_.jr(J)}catch(b){G="Failed to clear styles for "+C+".",b.message&&(G+=" Original error: "+b.message),_.Yw(new _.Ay(G))}}else J=document.createElement(C)}catch(b){return J="YtRendererStamperBehavior failed to create "+C+".",b.message&&(J+=" Original description: "+b.message),b.message="YtRendererStamperBehavior failed to create element",_.Tf(b,J),HzO.hasOwnProperty(C)?_.Yw(b):_.gD(b),document.createElement("SPAN")}this.telemetry_.create++;
return J},
deferRenderStamperBinding_:function(C,F,G){this.deferredBindingTasks_.push({component:C,typeOrConfig:F,data:G})},
flushRenderStamperComponentBindings_:function(){for(var C=0,F=this.deferredBindingTasks_.length;C<F;C++){var G=this.deferredBindingTasks_[C];if(!G)break;var V=void 0,J=void 0,b=void 0,z=void 0,Q=G.component,E=G.typeOrConfig;G=G.data;var t=(z=Q.polymerController)!=null?z:Q;z=Q.loggingStatus;try{z&&(z.isRendererStamper=!0);if(typeof E!=="string"){for(b in E.attributes)E.attributes[b]===!0?Q.setAttribute(b,""):E.attributes[b]===!1?Q.removeAttribute(b):Q.setAttribute(b,E.attributes[b]);for(J in E.params)t[J]=
E.params[J],Q!==t&&EA(Q.localName,J,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(V in E.properties){var k=E.properties[V];if(k){var U=$I5(k);t[V]=this.get(U);Q!==t&&EA(Q.localName,V,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(V==="on-tap"||V==="on-click"){var H=this.get(U);Q.addEventListener("click",H);noI.set(Q,{property:V,listener:{type:"element",eventName:"click",handler:H}})}}else{var l=new _.Ay("Undefined property binding",V);_.gD(l)}}}if(E.classListBinding){var N=$I5(E.classListBinding),
S=N?this[N]:null;if(S)for(V=0;V<S.length;V++)_.pd(Q,S[V],!0)}t.data=G}finally{z&&(z.isRendererStamper=!1)}if(V=DD.get(Q))Q.hidden=!1,DD.delete(Q),_.gT.cancelJob(V)}this.deferredBindingTasks_.length=0}}];_.gQ(_.d(function(C){function F(){G().seconds&&b(FMB({seconds:Number(G().seconds)-Date.now()/1E3}))}
var G=C.targetTimestamp;C=C.className;var V=_.u(_.yH("",void 0,"U1Q8Ae")),J=V.next().value,b=V.next().value;_.s0(function(){F();var z=setInterval(function(){F()},1E3);
_.q0(function(){clearInterval(z)})});
return _.W("yt-countdown",{class:_.py("ytCountDownHost",C)},_.W("div",null,J))},"u"),"yt-countdown",{props:{targetTimestamp:_.CJ,
className:_.s9}});_.uc=new _.jh("KEY_MANAGER_TOKEN");var lGB={click:"EVENT_SPAN_TYPE_CLICK",dblclick:"EVENT_SPAN_TYPE_DBLCLICK",mousedown:"EVENT_SPAN_TYPE_MOUSEDOWN",mouseup:"EVENT_SPAN_TYPE_MOUSEUP",mouseover:"EVENT_SPAN_TYPE_MOUSEOVER",mouseout:"EVENT_SPAN_TYPE_MOUSEOUT",mouseenter:"EVENT_SPAN_TYPE_MOUSEENTER",mouseleave:"EVENT_SPAN_TYPE_MOUSELEAVE",mousemove:"EVENT_SPAN_TYPE_MOUSEMOVE",contextmenu:"EVENT_SPAN_TYPE_CONTEXTMENU",keydown:"EVENT_SPAN_TYPE_KEYDOWN",keyup:"EVENT_SPAN_TYPE_KEYUP",keypress:"EVENT_SPAN_TYPE_KEYPRESS",touchstart:"EVENT_SPAN_TYPE_TOUCHSTART",
touchend:"EVENT_SPAN_TYPE_TOUCHEND",touchmove:"EVENT_SPAN_TYPE_TOUCHMOVE",touchcancel:"EVENT_SPAN_TYPE_TOUCHCANCEL",pointerdown:"EVENT_SPAN_TYPE_POINTERDOWN",pointerup:"EVENT_SPAN_TYPE_POINTERUP",pointermove:"EVENT_SPAN_TYPE_POINTERMOVE",pointerover:"EVENT_SPAN_TYPE_POINTEROVER",pointerout:"EVENT_SPAN_TYPE_POINTEROUT",pointerenter:"EVENT_SPAN_TYPE_POINTERENTER",pointerleave:"EVENT_SPAN_TYPE_POINTERLEAVE",pointercancel:"EVENT_SPAN_TYPE_POINTERCANCEL",gotpointercapture:"EVENT_SPAN_TYPE_GOTPOINTERCAPTURE",
lostpointercapture:"EVENT_SPAN_TYPE_LOSTPOINTERCAPTURE",submit:"EVENT_SPAN_TYPE_SUBMIT",change:"EVENT_SPAN_TYPE_CHANGE",input:"EVENT_SPAN_TYPE_INPUT",focus:"EVENT_SPAN_TYPE_FOCUS",blur:"EVENT_SPAN_TYPE_BLUR",reset:"EVENT_SPAN_TYPE_RESET",select:"EVENT_SPAN_TYPE_SELECT",invalid:"EVENT_SPAN_TYPE_INVALID",load:"EVENT_SPAN_TYPE_LOAD",unload:"EVENT_SPAN_TYPE_UNLOAD",beforeunload:"EVENT_SPAN_TYPE_BEFOREUNLOAD",domcontentloaded:"EVENT_SPAN_TYPE_DOMCONTENTLOADED",resize:"EVENT_SPAN_TYPE_RESIZE",scroll:"EVENT_SPAN_TYPE_SCROLL",
pageshow:"EVENT_SPAN_TYPE_PAGESHOW",pagehide:"EVENT_SPAN_TYPE_PAGEHIDE",play:"EVENT_SPAN_TYPE_PLAY",pause:"EVENT_SPAN_TYPE_PAUSE",playing:"EVENT_SPAN_TYPE_PLAYING",waiting:"EVENT_SPAN_TYPE_WAITING",seeking:"EVENT_SPAN_TYPE_SEEKING",seeked:"EVENT_SPAN_TYPE_SEEKED",ended:"EVENT_SPAN_TYPE_ENDED",volumechange:"EVENT_SPAN_TYPE_VOLUMECHANGE",timeupdate:"EVENT_SPAN_TYPE_TIMEUPDATE",ratechange:"EVENT_SPAN_TYPE_RATECHANGE",dragstart:"EVENT_SPAN_TYPE_DRAGSTART",drag:"EVENT_SPAN_TYPE_DRAG",dragend:"EVENT_SPAN_TYPE_DRAGEND",
dragenter:"EVENT_SPAN_TYPE_DRAGENTER",dragleave:"EVENT_SPAN_TYPE_DRAGLEAVE",dragover:"EVENT_SPAN_TYPE_DRAGOVER",drop:"EVENT_SPAN_TYPE_DROP",animationstart:"EVENT_SPAN_TYPE_ANIMATIONSTART",animationend:"EVENT_SPAN_TYPE_ANIMATIONEND",animationiteration:"EVENT_SPAN_TYPE_ANIMATIONITERATION",transitionrun:"EVENT_SPAN_TYPE_TRANSITIONRUN",transitionstart:"EVENT_SPAN_TYPE_TRANSITIONSTART",transitionend:"EVENT_SPAN_TYPE_TRANSITIONEND",transitioncancel:"EVENT_SPAN_TYPE_TRANSITIONCANCEL"};_.zV=_.d(function(C){var F=_.Jt("a",C.ref),G=C.aTagConfig?C.aTagConfig:_.w0(function(){var V,J,b,z,Q;var E=(Q=_.ZD((b=C.command)==null?void 0:b.call(C)))!=null?Q:(z=C.command)==null?void 0:z.call(C);return _.O9({innertubeCommand:E,skipOnClick:(V=C.skipOnClick)==null?void 0:V.call(C),defaultTarget:(J=C.target)==null?void 0:J.call(C)})||{}},void 0,"TAvz0");
_.sq(function(){_.y("mweb_get_endpoint_from_atag_command")||(F.value._data=G()._data,F.value.params=G().params)},"dcjvAe");
return _.W("a",{el:F,href:function(){return G().href$},
rel:function(){return G().rel$},
class:function(){var V,J;return(J=G().className)!=null?J:(V=C.className)==null?void 0:V.call(C)},
style:function(){var V;if((V=C.style)==null?0:V.call(C))return C.style();var J;return((J=C.disabled)==null?0:J.call(C))?"pointer-events:none":""},
"aria-haspopup":function(){return!!G()["aria-haspopup$"]},
"force-new-state":jn(function(){return G()["force-new-state$"]}),
title:jn(function(){var V,J;return(J=G().title$)!=null?J:(V=C.title)==null?void 0:V.call(C)}),
role:jn(function(){var V;return((V=C.role)==null?void 0:V.call(C))||G().role$}),
target:jn(function(){return G().target$}),
dir:jn(function(){var V;return((V=C.dir)==null?void 0:V.call(C))||G().dir}),
tabindex:function(){var V;return G().tabindex$?Number(G().tabindex$):(V=C.tabIndex)==null?void 0:V.call(C)},
"aria-hidden":function(){var V,J;return(J=G()["aria-hidden$"])!=null?J:(V=C.ariaHidden)==null?void 0:V.call(C)},
"aria-label":function(){var V,J;return(J=G()["aria-label$"])!=null?J:(V=C.ariaLabel)==null?void 0:V.call(C)},
"aria-current":C.ariaCurrent,"aria-disabled":C.disabled,"aria-labelledby":C.ariaLabelledby,"aria-describedby":C.ariaDescribedby,"aria-selected":C.ariaSelected,"tab-identifier":C.tabIdentifier,"on:pointerdown":_.CZ(function(V){var J,b;return void((b=(J=G()).onpointerdown)==null?void 0:b.call(J,V))}),
"on:click":_.CZ(function(V){var J,b;(b=(J=G()).onclick)==null||b.call(J,V);var z;(z=C.onClick)==null||z.call(C,V)}),
"on:focusin":_.CZ(function(V){var J;(J=C.onFocusin)==null||J.call(C,V)}),
"on:focusout":_.CZ(function(V){var J;(J=C.onFocusout)==null||J.call(C,V)})},C.children)},"w");var SeA={duration:1E3,easing:"ease",fill:"forwards"};MOf.componentType=h2;var voT={duration:1E3,easing:"ease",fill:"forwards"},Zzo=_.d(function(C){var F=_.Jt("animated-rolling-character"),G=void 0,V=function(){var Q,E;return x6((Q=C.character)==null?void 0:Q.call(C))||x6((E=C.previousCharacter)==null?void 0:E.call(C))},J=_.u(_.yH(0,void 0,"CYT8Ob")),b=J.next().value,z=J.next().value;
_.s0(function(){if(window.ResizeObserver&&_.y("web_fix_rolling_numbers_zoom_safari")){var Q=new _.FX(function(){var t,k,U=Math.round(((k=(t=F.value.querySelector("div"))==null?void 0:t.getBoundingClientRect().height)!=null?k:0)*100)/100;U&&z(U)},500),E=new ResizeObserver(function(){Q.fire()});
E.observe(F.value);_.q0(function(){E.disconnect();Q.dispose()})}});
_.sq(function(){var Q=_.y("web_fix_rolling_numbers_zoom_safari")?b:C.marginMultiplier;if(Q()){var E;(E=G)==null||E.cancel();if(V()){var t;E=((t=C.previousCharacter)==null?0:t.call(C))?Number(C.previousCharacter())+10:C.rollUp()?0:30;var k;if((k=C.shouldAnimate)==null||!k.call(C)){var U,H;E-=Bxq((U=C.character)==null?void 0:U.call(C),(H=C.previousCharacter)==null?void 0:H.call(C),C.rollUp(),E)}}else{E=C.rollUp()?0:2;var l;(l=C.shouldAnimate)!=null&&l.call(C)||(t=E,k=C.rollUp()?-1:1,E=t-k)}F.value.style.marginTop=
"-"+E*Q()+"px";var N;if((N=C.shouldAnimate)==null?0:N.call(C)){var S,f;G=fGW(F.value,(S=C.character)==null?void 0:S.call(C),(f=C.previousCharacter)==null?void 0:f.call(C),C.rollUp(),E,V(),Q())}else{var c;F.value.style.display=((c=C.character)==null?0:c.call(C))?"":"none"}}},"CA6Pmf");
return _.W("animated-rolling-character",{el:F,class:"animatedRollingCharacterHost"},_.W(_.a,{cond:V,then:function(){return _.W(ll2,null)},
else:function(){return _.W(yxE,{character:C.character})}}))},"z");
Zzo.idomCompat=!0;var hfw=_.y("web_enable_sink_animated_rolling_character_and_number")?Zzo:MOf,NLP=_.y("web_enable_sink_animated_rolling_character_and_number")?Zzo:LGA(MOf),ll2=_.d(function(){for(var C=[],F=1;F<30;F++)C.push(_.W("div",null,F%10));return _.W(_.WQ,null,_.W("div",null,"\u00a0"),C,_.W("div",null,"\u00a0"))},"A"),yxE=_.d(function(C){var F=C.character;
return _.W(_.WQ,null,_.W("div",null,"\u00a0"),_.W(_.a,{cond:function(){return!(F==null?0:F())||_.uZ(F==null?void 0:F())},
then:function(){return _.W("div",null,"\u00a0")},
else:function(){return _.W("div",null,F)}}),_.W("div",null,"\u00a0"))},"B");ceE.componentType=h2;var OzO=_.d(function(C){var F=void 0,G=void 0,V=function(){var b;return((b=C.fontSizeMultiplier)==null?0:b.call(C))?C.heightPx()*C.fontSizeMultiplier():C.heightPx()},J=_.w0(function(){if(!C.numberText())return[];
var b,z,Q=((b=C.forceRollUp)==null?void 0:b.call(C))||!G||!((z=C.numberValue)==null?0:z.call(C))||G<C.numberValue(),E,t=C.numberText();b=V();z=!((E=C.shouldAnimate)==null||!E.call(C));E=[];var k=0,U=0,H=(F?F.replace(/\D/g,"").length:0)-(t?t.replace(/\D/g,"").length:0),l=F?F.split(/(\d)/).filter(Boolean):[];for(t=t.split(/(\d)/).filter(Boolean);H<0;){var N=t[U];E.push({character:N,rollUp:Q,marginMultiplier:b,shouldAnimate:z});U++;x6(N)&&H++}for(;k<H;)N=l[k],E.push({previousCharacter:N,rollUp:Q,marginMultiplier:b,
shouldAnimate:z}),k++,x6(N)||H++;for(;U<t.length;)H=t[U],N=l[k],x6(H)===x6(N)?(U++,k++):x6(H)?(k++,H=void 0):x6(N)&&(U++,N=void 0),E.push({character:H,previousCharacter:N,rollUp:Q,marginMultiplier:b,shouldAnimate:z});F=C.numberText();var S;G=(S=C.numberValue)==null?void 0:S.call(C);return E},void 0,"kWiBv");
return _.W("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return C.numberText()?["height: "+V()+"px;","line-height: "+C.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.W(_.Ag,{each:J,keyBy:"INDEX"},function(b){return _.W(NLP,{character:function(){return b().character},
previousCharacter:function(){return b().previousCharacter},
marginMultiplier:function(){return b().marginMultiplier},
rollUp:function(){return b().rollUp},
shouldAnimate:function(){return b().shouldAnimate}})}))},"C");
OzO.idomCompat=!0;_.XmP=_.y("web_enable_sink_animated_rolling_character_and_number")?OzO:LGA(ceE);var wm2=function(C,F){this.fillAnimation=new Animation(xIo(C),document.timeline);this.strokeAnimation=new Animation(sUW(F),document.timeline)};
wm2.prototype.play=function(){var C,F;(F=(C=this.fillAnimation).play)==null||F.call(C);var G,V;(V=(G=this.strokeAnimation).play)==null||V.call(G)};
wm2.prototype.cancel=function(){var C,F;(F=(C=this.fillAnimation).cancel)==null||F.call(C);var G,V;(V=(G=this.strokeAnimation).cancel)==null||V.call(G)};_.QR=_.d(function(C){var F=C.model;var G=C.pointerDownEvent;var V=C.pointerUpEvent;var J=C.pointerLeaveEvent;var b=C.hovered;C=_.Jt("yt-touch-feedback-shape");var z=_.Jt("div"),Q=_.Jt("div"),E=_.u(_.Gb(function(){return(V==null?0:V())||(J==null?0:J())?!1:!(G==null||!G())||!1})),t=E.next().value,k=E.next().value,U=void 0,H=function(){!U&&Q.value&&z.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(U=new wm2(Q.value,z.value));
var A;(A=U)==null||A.play()},l=function(){var A;
(A=U)==null||A.cancel()},N=function(){var A;
(A=U)==null||A.cancel()};
_.sq(function(){(V==null?0:V())&&H()},"bg756c");
_.sq(function(){(G==null?0:G())&&l()},"QAes8c");
_.sq(function(){(J==null?0:J())&&N()},"YaFbrc");
E=_.CZ(function(){H();k(!1)});
var S=_.CZ(function(){l();k(!0)}),f=_.CZ(function(){N();
k(!1)});
_.q0(function(){if(U){var A;(A=U)==null||A.cancel();U=void 0}});
var c={};t=_.py("yt-spec-touch-feedback-shape",function(){return qef(F().color)},function(){return PA5(F().thumbnailSize,!!F().isExtended)},(c["yt-spec-touch-feedback-shape--focused"]=function(){return!!F().focused&&!F().disabled},c["yt-spec-touch-feedback-shape--circular"]=function(){return!!F().circular},c["yt-spec-touch-feedback-shape--down"]=t,c["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!F().triggerEvents},c["yt-spec-touch-feedback-shape--hovered"]=function(){return b==
null?void 0:b()},c));
return _.W("yt-touch-feedback-shape",{el:C,class:t,style:_.VA({"margin-top":function(){return F().customTopExtend?"-"+F().customTopExtend+"px":void 0}}),
"on:mousedown":S,"on:mouseup":E,"on:pointerleave":f,"on:touchstart":S,"on:touchend":E,"aria-hidden":!0},_.W(_.a,{cond:function(){return!!F().hoverEffect},
then:function(){return _.W("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.VA({"border-radius":function(){return F().borderRadius},
background:function(){var A;if(A=F().hoverEffect){for(var T=[],P=_.u((A==null?void 0:A.lightingTechniques)||[]),g=P.next();!g.done;g=P.next())switch(g.value){case 2:var r=g=void 0,C9=void 0,Wo=void 0;T.push("linear-gradient(180deg, "+((g=A)==null?void 0:(r=g.palette)==null?void 0:r.keyLight)+", "+((C9=A)==null?void 0:(Wo=C9.palette)==null?void 0:Wo.background)+")")}var EB,L9;T.push((EB=F().hoverEffect)==null?void 0:(L9=EB.palette)==null?void 0:L9.background);A=T.join(", ")}else A=void 0;return A}})})}}),
_.W("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.VA({"border-radius":function(){return F().borderRadius},
"border-color":function(){var A,T;return(A=F().touchEffect)==null?void 0:(T=A.palette)==null?void 0:T.background}}),
el:z}),_.W("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.VA({"border-radius":function(){return F().borderRadius},
"background-color":function(){var A,T;return(A=F().touchEffect)==null?void 0:(T=A.palette)==null?void 0:T.background}}),
el:Q}))},"I");
_.QR.idomCompat=!0;var M2$={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 Ik=_.UB();Ik=Ik.toLowerCase();if(_.zE(Ik,"android")){var SPy=Ik.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);SPy&&parseFloat(SPy[1])<100||Ik.match("("+Object.keys(M2$).join("|")+")")};var LIl=_.d(function(C){return _.W(_.a,{cond:C.aTagConfig,then:function(F){return _.W(_.zV,{aTagConfig:F,disabled:C.disabled,className:C.className,style:C.style,title:C.title,ariaLabel:C.ariaLabel,ariaCurrent:function(){var G,V;return((G=C.toggleable)==null?void 0:G.call(C))&&((V=C.toggled)==null?void 0:V.call(C))},
ref:C.ref},C.children)},
else:function(){return _.W("button",{el:_.dQ(C.ref),"on:click":_.CZ(function(F){var G;return(G=C.onClick)==null?void 0:G.call(C,F)}),
class:C.className,title:C.title,style:C.style,disabled:C.disabled,"aria-pressed":function(){var F,G;return((F=C.toggleable)==null?0:F.call(C))?!((G=C.toggled)==null||!G.call(C)):void 0},
"aria-label":C.ariaLabel,"aria-disabled":C.visiblyDisabled,"aria-hidden":C.ariaHidden,tabindex:C.tabIndex},C.children)}})},"J"),v3O=_.d(function(C){var F=C.data;
var G=C.hasIconLeading;var V=C.hasIconLeadingTrailing;var J=C.hasIconTrailing;var b=C.iconButton;var z=C.iconClassName;var Q=C.secondaryIconClassName;var E=C.icon;var t=C.secondaryIcon;var k=C.textContentClassName;return _.W(Eb,{className:"",style:"display: inherit; justify-content: center"},_.W(_.a,{debugInstance:"V4z1Uc",cond:function(){return E&&(G()||V()||(b==null?void 0:b()))},
then:function(){return _.W(Eb,null,_.W("div",{class:z,"aria-hidden":"true"},E==null?void 0:E()))}}),_.W(_.a,{debugInstance:"ok3btb",
cond:function(){return(F().buttonText||F().animatedTextProps||F().formattedButtonText)&&!(b==null?0:b())},
then:function(){return _.W(Eb,null,_.W(BLu,{className:k,iconPosition:function(){return F().iconPosition},
text:function(){return F().buttonText},
oneOffCustomTextWrap:function(){return F().oneOffCustomTextWrap},
formattedButtonText:function(){return F().formattedButtonText},
animatedTextProps:function(){return F().animatedTextProps}}))}}),_.W(_.a,{debugInstance:"DO5Rz",
cond:J,then:function(){return _.W(Eb,null,_.W("div",{class:z},E==null?void 0:E()))}}),_.W(_.a,{debugInstance:"bnojSc",
cond:V,then:function(){return _.W(Eb,null,_.W("div",{class:Q},t==null?void 0:t()))}}),_.W(_.a,{debugInstance:"HN3kad",
cond:function(){return!F().disabled&&!0},
then:function(){return _.W(_.QR,{model:function(){var U=F();return{color:U.style==="overlay-dark"?4:U.style==="overlay"?U.type==="filled"?4:3:U.type==="filled"||U.style==="call-to-action-inverse"||U.style==="mono-inverse"?2:1}}})}}))},"K"),BLu=_.d(function(C){var F=function(){var G,V;
return((G=C.iconPosition)==null?void 0:G.call(C))==="icon-with-label"||((V=C.oneOffCustomTextWrap)==null?void 0:V.call(C))};
return _.W("div",{class:C.className,"aria-hidden":function(){var G,V,J;return((G=C.ariaHidden)==null?void 0:G.call(C))&&(!((V=C.animatedTextProps)==null||!V.call(C))||!((J=C.formattedButtonText)==null||!J.call(C)))}},_.W(_.e_,null,_.W(_.hg,{when:function(){var G;
return(G=C.animatedTextProps)==null?void 0:G.call(C)}},function(){return _.W(_.XmP,{numberText:function(){return C.animatedTextProps().numberText},
numberValue:function(){return C.animatedTextProps().numberValue},
heightPx:function(){return C.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return C.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return C.animatedTextProps().shouldAnimate},
forceRollUp:function(){return C.animatedTextProps().forceRollUp}})}),_.W(_.hg,{when:function(){var G;
return(G=C.formattedButtonText)==null?void 0:G.call(C)}},function(){return _.W(_.mn,{text:function(){return Object.assign({},C.formattedButtonText(),{lineBreakMode:F()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":C.formattedButtonText().lineBreakMode,
alignment:F()?"TEXT_ALIGNMENT_CENTER":C.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!F()}})}),_.W(_.hg,{when:function(){var G,V;
return((G=C.iconPosition)==null?void 0:G.call(C))==="icon-with-label"&&((V=C.text)==null?void 0:V.call(C))}},function(){return _.W(_.mn,{text:function(){return{content:C.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.W(_.cQ,null,function(){return C.text})))},"L"),flr=_.d(function(C){return _.W(_.a,{debugInstance:"kM7Sgc",
cond:C.hasLabel,then:function(){var F;return _.W("label",{class:C.className},C.children,(F=C.textContent)==null?void 0:F.call(C))},
else:function(){return C.children}})},"M"),Eb=_.d(function(C){return C.children},"N");var ho7=_.d(function(C){var F=_.dQ(),G=_.u(_.yH(void 0,void 0,"Ug77pc")),V=G.next().value,J=G.next().value;G=_.u(_.yH(void 0,void 0,"XGf7Zb"));var b=G.next().value,z=G.next().value;G=_.u(_.yH(0,void 0,"Ygnx7b"));var Q=G.next().value,E=G.next().value;G=_.CZ(function(){switch(Q()){case 1:E(2);break;case 3:var k,U;(U=(k=F.value).hidePopover)==null||U.call(k);E(0);J(void 0);z(void 0)}});
_.sq(function(){if(C.show()){var k;J((k=C.children)==null?void 0:k.call(C));var U;z((U=C.location)==null?void 0:U.call(C));switch(Q()){case 0:var H,l;(l=(H=F.value).showPopover)==null||l.call(H);E(1);break;case 3:E(1);var N,S;(S=(N=F.value).hidePopover)==null||S.call(N);var f,c;(c=(f=F.value).showPopover)==null||c.call(f)}}else switch(Q()){case 2:E(3);break;case 1:var A,T;(T=(A=F.value).hidePopover)==null||T.call(A);J(void 0);z(void 0);E(0)}},"lOyibf");
_.q4(function(){});
var t={};return _.W("yt-popover",{popover:"manual",el:F,style:_.VA({left:function(){var k;return(k=b())==null?void 0:k.left},
top:function(){var k;return(k=b())==null?void 0:k.top},
bottom:function(){var k;return(k=b())==null?void 0:k.bottom},
right:function(){var k;return(k=b())==null?void 0:k.right}}),
class:_.py("ytPopoverComponentHost",C.classNames,(t.ytPopoverComponentHostClosing=function(){return Q()===3},t.ytPopoverComponentHostSeeThrough=function(){var k;
return((k=C.seeThrough)==null?void 0:k.call(C))===!0},t)),
"on:animationend":G},V)},"P");var cxy={left:"0px",right:"auto",top:"0px",bottom:"auto"},AxG=function(){var C=this;this.registerTooltipElement=function(G){var V;C.tooltipElement=(V=G.querySelector("yt-popover"))!=null?V:void 0};
var F=_.u(_.yH(void 0,void 0,"z4iHWd"));this.state=F.next().value;this.setState=F.next().value;F=_.u(_.yH(void 0,void 0,"uKDcaf"));this.schedulerJobID=F.next().value;this.setSchedulerJobID=F.next().value},pEw=function(C,F){var G=$J,V=_.gT.addJob(function(){var J=eou(G,C,F);
G.setState({text:F.text,location:J,anchor:C,offset:F.offset})},4,F.delay);
G.setSchedulerJobID(V)},mIE=function(){var C=$J,F=C.schedulerJobID();
F&&(_.gT.cancelJob(F),C.setSchedulerJobID(void 0));C.setState(void 0)};
AxG.prototype.notify=function(C,F){var G;((G=this.state())==null?void 0:G.anchor)===C&&(G=eou(this,C,F),this.setState({text:F.text,location:G,anchor:C,offset:F.offset}))};
var eou=function(C,F,G){var V=F.getBoundingClientRect();F=window.innerWidth;var J=window.innerHeight,b=G.location,z=G.offset;G=G.text;if(C=C.tooltipElement){var Q=getComputedStyle(C);C=Q.font;var E=JM(Q.lineHeight),t=JM(Q.paddingLeft),k=JM(Q.paddingRight),U=JM(Q.paddingTop);Q=JM(Q.paddingBottom);var H=document.createElement("canvas").getContext("2d");H.font=C;G={width:H.measureText(G).width+t+k,height:E+U+Q}}else G=void 0;C=G;if(!C)return cxy;G=C.width;C=C.height;t=z+C;U=z+G;E=V.top>=t;t=J-V.bottom>=
t;k=V.left>=U;U=F-V.right>=U;Q=b;switch(b){case "top":!E&&t&&(Q="bottom");break;case "bottom":!t&&E&&(Q="top");break;case "left":!k&&U&&(Q="right");break;case "right":!U&&k&&(Q="left")}switch(Q){case "top":b=V.left+V.width/2-G/2;V=V.top-C-z;break;case "bottom":b=V.left+V.width/2-G/2;V=V.bottom+z;break;case "left":b=V.left-G-z;V=V.top+V.height/2-C/2;break;case "right":b=V.right+z;V=V.top+V.height/2-C/2;break;default:b=V.left+V.width/2-G/2,V=V.bottom+z}z=Object.assign({},cxy);b+G>F?(z.right="0px",z.left=
"auto"):(z.left=Math.round(Math.max(0,b)+window.scrollX)+"px",z.right="auto");V+C>J?(z.bottom="0px",z.top="auto"):(z.top=Math.round(Math.max(0,V)+window.scrollY)+"px",z.bottom="auto");return z};var $J;$J=new AxG;_.d62=_.d(function(){var C=_.w0(function(){var G;return(G=$J.state())==null?void 0:G.text},void 0,"jgLmfd"),F=_.w0(function(){var G;
return(G=$J.state())==null?void 0:G.location},void 0,"zV1Udb");
return _.W("yt-tooltip",{class:"ytTooltipContainerHost",el:_.dQ($J.registerTooltipElement),"aria-hidden":"true"},_.W(ho7,{classNames:"ytTooltipContainerContent",location:F,show:function(){return!!C()},
seeThrough:!0},C))},"Q");var Am9=nB("stamper-context");_.Wn=_.d(function(C){var F=C.data;var G=C.icon;var V=C.iconName;var J=C.animateIcon;var b=C.secondaryIcon;var z=C.secondaryIconName;var Q=C.focusedOverride;var E=C.clientOnlyWizTooltipsEnabled;jZT();var t=goS(F),k=t.size,U=t.style;C=t.disabled;var H=t.onTap,l=t.alignByText,N=t.aTagConfig,S=t.customColors,f=t.segmentedPosition,c=t.toggled,A=t.toggleable,T=t.accessibilityLabel,P=t.onToggle,g=t.iconPosition,r=t.oneOffCustomTextWrap,C9=t.disableTextEllipsis,Wo=t.disableBackdropFilter,EB=t.tooltipText,
L9=t.ariaHidden,ki=t.tabIndex,lZ=t.buttonText,eq=t.formattedButtonText,OB=t.animatedTextProps,yr=t.onClickRateLimitMs,Rl=ooZ(F,G,b,V,z,Q,J),w2=Rl.type;G=Rl.shouldFocus;V=Rl.hasIconLeading;J=Rl.hasIconTrailing;var jG=Rl.hasIconLeadingTrailing,Il=Rl.hasIconOnly;b=Rl.hasIconOnly40;var Bu=Rl.hasIconWithLabel;z=Rl.iconButton;var vu=Rl.visiblyDisabled;Q=Rl.overrideSmallSizeIcon;t=Rl.iconToRender;Rl=Rl.secondaryIconToRender;var Zr=_.u(C$B(EB)).next().value,k_=function(Hu){H==null||H(Hu);A()&&(P==null||P(Hu))},
$i=_.w0(function(){return yr==null?void 0:yr()},void 0,"wrF7V"),Vr=_.w0(function(){return $i()?Bao(k_,$i()):k_},void 0,"fG5dyf"),Um={},V8={};
return _.W(flr,{className:_.py("yt-spec-button-shape-with-label",(Um["yt-spec-button-shape-with-label--is-overlay"]=function(){return U()==="overlay"||U()==="overlay-dark"},Um)),
hasLabel:Bu,textContent:function(){return _.W(BLu,{text:lZ,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:r,iconPosition:g,formattedButtonText:eq,animatedTextProps:OB})}},_.W(LIl,{aTagConfig:N,
className:_.py("yt-spec-button-shape-next",function(){return reW(w2())},function(){return vu()?void 0:KG9(U())},function(){return DIA(k())},(V8["yt-spec-button-shape-next--disabled"]=vu,V8["yt-spec-button-shape-next--focused"]=G,V8["yt-spec-button-shape-next--icon-trailing"]=J,V8["yt-spec-button-shape-next--icon-leading"]=V,V8["yt-spec-button-shape-next--icon-leading-trailing"]=jG,V8["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return jG()&&!(lZ()||eq())},V8["yt-spec-button-shape-next--icon-button"]=
function(){return Il()||Bu()},V8["yt-spec-button-shape-next--icon-only-default"]=b,V8["yt-spec-button-shape-next--align-by-text"]=l,V8["yt-spec-button-shape-next--segmented-start"]=function(){return f()==="start"},V8["yt-spec-button-shape-next--segmented-end"]=function(){return f()==="end"},V8["yt-spec-button-shape-next--override-small-size-icon"]=Q,V8["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=r,V8["yt-spec-button-shape-next--disable-text-ellipsis"]=C9,V8["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!Wo()&&!_.y("web_disable_backdrop_filter")},V8)),
style:function(){var Hu=S();if(Hu){var Gh=Hu.color;var hW=Hu.backgroundColor;Hu=Hu.borderColor;var YS="";Gh&&(YS+="color: "+Gh+";");hW&&(YS+="background-color: "+hW+";");Hu&&(YS+="border-color: "+Hu+";");Gh={style:YS}}else Gh={};return Gh.style},
onClick:function(Hu){Vr()(Hu)},
disabled:C,ariaLabel:T,toggleable:A,toggled:c,title:function(){return(E==null?0:E())||!EB()?"":EB()},
visiblyDisabled:vu,ariaHidden:L9,tabIndex:ki,ref:function(Hu){(E==null?0:E())&&Zr(Hu)}},_.W(v3O,{data:F,
hasIconLeading:V,hasIconLeadingTrailing:jG,hasIconTrailing:J,iconButton:z,icon:t,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:Rl})))},"S");
_.Wn.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.tS=_.d(function(C){var F=C.data;var G=C.className;var V=C.style;var J=C.useOutlinedIcon;var b=C.buttonOverrides;var z=C.animatedTextProps;var Q=C.onClick;var E=C.target;var t=_.Jt("button-view-model",function(P){P.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var g=F().targetId;g&&_.k8o(_.w6(),g,P);return function(){tbu(_.w6(),P)}}),k=function(){return F().iconName},U=_.nZ(function(P){a:{var g=F().entityKey,r=F().buttonEntitySelectorType;
if(r&&g)switch(r){case "BUTTON_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":P=(P=_.mr(P,g))?{isHidden:P.adsState==="ADS_STATE_NONE"||P.adsState==="ADS_STATE_UNKNOWN"}:void 0;break a;default:P={isHidden:!1};break a}P=void 0}return P}),H,l=(H=_.I8().resolve(_.Qt(_.v6)))==null?void 0:H(),N=function(){var P=F();
var g=b==null?void 0:b(),r=z==null?void 0:z(),C9=E==null?void 0:E();if(P){var Wo=bIq(P.type);var EB=!!P.title||!!P.titleFormatted;var L9=!(!P.iconName&&!P.iconImage);EB=L9&&!EB?"icon-only":L9?P.iconTrailing||P.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;EB==="icon-only-40"&&(Wo="text");var ki;L9=(ki=g==null?void 0:g.state)!=null?ki:nMB(P.state);var lZ,eq=(lZ=g==null?void 0:g.disabled)!=null?lZ:P.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||P.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.y("web_button_vm_refactor_disabled")){var OB;eq=(OB=g==null?void 0:g.disabled)!=null?OB:L9==="disabled"}r=r&&r.numberText&&!isNaN(Number(r.numberValue))?r:void 0;lZ=Object;OB=lZ.assign;ki=P.title;var yr=P.titleFormatted,Rl=P.accessibilityText,w2=$8Z(P.style),jG=uRI(P.buttonSize);C9=J_i(P,t,eq,Q,C9);eq=eq&&!P.onDisabledTap;var Il=VkB(P,t),Bu=P.customFontColor,vu=P.customBackgroundColor;var Zr=P.customBorderColor;var k_=P.customDarkThemeFontColor,$i=P.customDarkThemeBackgroundColor,Vr=P.customDarkThemeBorderColor;
Bu=l&&k_?k_:Bu;vu=l&&$i?$i:vu;Zr=l&&Vr?Vr:Zr;Zr={color:Bu?_.lE(Bu):void 0,backgroundColor:vu?_.lE(vu):void 0,borderColor:Zr?_.lE(Zr):void 0};P=OB.call(lZ,{},{buttonText:ki,formattedButtonText:yr,animatedTextProps:r,accessibilityLabel:Rl,style:w2,type:Wo,state:L9,size:jG,iconPosition:EB,onTap:C9,disabled:eq,aTagConfig:Il,customColors:Zr,tooltipText:P.tooltip},g)}else P={style:"mono",type:"text",state:"active",size:"M"};P.focused=c();return P},S=function(){return Yes(N(),!!F().iconName)};
C=_.u(_.yH(!1,void 0,"yZ8hab"));H=C.next().value;var f=C.next().value,c=H;C=_.CZ(function(){var P=_.I8().resolve(_.Qt(_.uc));P&&f(P.isKeyBoardInUse());return!1});
H=_.CZ(function(){f(!1);return!1});
_.sq(function(){var P,g=_.Z(F==null?void 0:(P=F())==null?void 0:P.onVisible,_.yp);g&&_.ND(g,{disableClickTracking:!0})},"G9MlKd");
var A=function(){var P;return(F==null?0:(P=F())==null?0:P.iconImage)?{sources:[F().iconImage]}:void 0},T=_.y("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
return _.W("button-view-model",{el:t,class:_.py("ytSpecButtonViewModelHost",G),"on:focusin":C,"on:focusout":H},_.W(_.a,{cond:function(){var P,g;return!((g=F().entityKey&&F().buttonEntitySelectorType&&((P=U())==null?void 0:P.isHidden))!=null&&g)},
then:function(){return _.W(_.a,{cond:A,then:function(P){return _.W(_.Wn,{data:N,icon:function(){return _.W(_.AC,{data:P,alt:"",targetWidth:S,targetHeight:S,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:T})},
else:function(){return _.W(_.Wn,{data:N,icon:function(){return _.W(_.i5,{icon:k,active:function(){return(J==null?0:J())?!1:N().toggled},
animateIcon:function(){var P;return!!(V==null?0:(P=V())==null?0:P.animateIcon)},
size:S})},
clientOnlyWizTooltipsEnabled:T})}})}}))},"U");
_.tS.idomCompat={callbacks:{onClick:!0}};_.gQ(_.d(function(C){return _.W("yt-button-view-model",{id:C.id,class:_.py(C.scopingClassName,C.classes),icon:function(){var F;return(F=C.icon)==null?void 0:F.call(C)},
"dialog-dismiss":function(){var F;return((F=C.dialogDismiss)==null?0:F.call(C))?"":void 0}},_.W(_.tS,{data:function(){var F;
return(F=C.data)==null?void 0:F.call(C)},
className:function(){var F;return(F=C.className)==null?void 0:F.call(C)},
style:function(){var F;return(F=C.style)==null?void 0:F.call(C)},
useOutlinedIcon:function(){var F;return(F=C.useOutlinedIcon)==null?void 0:F.call(C)},
buttonOverrides:function(){var F;return(F=C.buttonOverrides)==null?void 0:F.call(C)},
animatedTextProps:function(){var F;return(F=C.animatedTextProps)==null?void 0:F.call(C)},
onClick:function(F){var G;return(G=C.onClick)==null?void 0:G.call(C,F)}}))},"V"),"yt-button-view-model",{props:{data:_.CJ,
className:_.CJ,style:_.CJ,useOutlinedIcon:_.CJ,buttonOverrides:_.CJ,animatedTextProps:_.CJ,onClick:_.s9,scopingClassName:_.CJ,id:_.CJ,icon:_.CJ,dialogDismiss:_.CJ,classes:_.CJ,target:_.s9}});_.gQ(_.d(function(C){var F=C.data;var G=C.id;var V=C.className;var J=C.iconName;var b=C.animateIcon;var z=C.secondaryIconName;C=_.u(_.yH(!1,void 0,"TtJl8"));var Q=C.next().value,E=C.next().value,t=function(){var U=_.I8().resolve(_.Qt(_.uc));U&&E(U.isKeyBoardInUse())},k=function(){E(!1)};
C=_.Jt("yt-button-shape",function(U){if(_.I8().resolve(_.Qt(_.uc)))return U.addEventListener("focusin",t),U.addEventListener("focusout",k),function(){U.removeEventListener("focusin",t);U.removeEventListener("focusout",k)}});
return _.W("yt-button-shape",{el:C,id:G,class:V},_.W(_.a,{cond:F,then:function(){return _.W(_.Wn,{data:F,iconName:J,secondaryIconName:z,focusedOverride:Q,animateIcon:b})}}))},"W"),"yt-button-shape",{props:{data:_.CJ,
id:_.CJ,className:_.CJ,iconName:_.CJ,animateIcon:_.CJ,secondaryIconName:_.CJ,clientOnlyWizTooltipsEnabled:_.CJ,disableUpgrade:_.CJ},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var ak=function(){var C=_.B.apply(this,arguments)||this;C.isGoalActive=!0;return C};
_.O(ak,_.B);ak.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
ak.prototype.progressBarChanged=function(){var C=_.ot(this.hostElement).querySelector("#progress-bar-progress"),F,G,V,J=(V=Number((F=this.creatorGoalState)==null?void 0:F.currentGoalCount)/Number((G=this.creatorGoalState)==null?void 0:G.totalGoalCount)*100)!=null?V:0,b;C.style.width=((b=Math.min(J,100))!=null?b:0)+"%"};
ak.prototype.goalStateChanged=function(){var C;this.isGoalActive=((C=this.creatorGoalState)==null?void 0:C.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var F;C={"--yt-progress-bar-color":PlE((F=this.creatorGoalState)==null?void 0:F.progressBarColor)};_.jr(this.hostElement,C)};
ak.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.I6.Object.defineProperties(ak.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var C;return this.isGoalActive&&!((C=this.creatorGoalState)==null||!C.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var C;if((C=this.creatorGoalState)==null?0:C.endTimestampMs){var F;C=Number((F=this.creatorGoalState)==null?void 0:F.endTimestampMs)/1E3;return{seconds:String(C)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var C;if((C=this.creatorGoalState)==null?0:C.themedTargetImage){var F;C=_.Z((F=this.creatorGoalState)==null?void 0:F.themedTargetImage,ip2);return this.isAppDarkTheme()?C==null?void 0:C.imageDark:C==null?void 0:C.imageLight}}}});
_.I6.Object.defineProperties(ak,{template:{configurable:!0,enumerable:!0,get:function(){return Ilr()}}});
ak.prototype.goalStateChanged=ak.prototype.goalStateChanged;ak.prototype.progressBarChanged=ak.prototype.progressBarChanged;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],ak.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.g6),_.Y("design:type",Object)],ak.prototype,"ytLiveChatReduxBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ak.prototype,"ytRendererBehavior",void 0);
_.R([_.L({selectorArgs:["data.creatorGoalEntityKey"],selector:function(C,F){return _.jN(C.entities,"creatorGoalEntity",F)}}),
_.Y("design:type",Object)],ak.prototype,"creatorGoalState",void 0);_.R([_.L(),_.Y("design:type",Object)],ak.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],ak.prototype,"isGoalActive",void 0);_.R([_.M("creatorGoalState","isGoalActive"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ak.prototype,"shouldShowCountdown",null);_.R([_.M("creatorGoalState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ak.prototype,"endTimestamp",null);
_.R([_.M("creatorGoalState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ak.prototype,"targetIconThemedImage",null);_.R([_.iP("creatorGoalState.currentGoalCount"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ak.prototype,"progressBarChanged",null);_.R([_.iP("creatorGoalState.creatorGoalState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ak.prototype,"goalStateChanged",null);
_.R([_.Z5({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],ak);_.q(ak,"yt-creator-goal-progress-flow-view-model",function(){return Ilr()},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var x6m;var sT7;var ka=function(){return _.B.apply(this,arguments)||this};
_.O(ka,_.B);ka.prototype.attached=function(){var C,F,G;if(this==null?0:(C=this.data)==null?0:(F=C.pdgPurchasedBumperLoggingDirectives)==null?0:(G=F.loggingDirectives)==null?0:G.trackingParams){var V,J,b;IVB(this==null?void 0:(V=this.data)==null?void 0:(J=V.pdgPurchasedBumperLoggingDirectives)==null?void 0:(b=J.loggingDirectives)==null?void 0:b.trackingParams)}};
ka.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],ka.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],ka.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],ka.prototype,"data",void 0);_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],ka);
_.q(ka,"yt-live-chat-item-bumper-view-model",function(){if(sT7===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;x6m===void 0&&(x6m=document.createElement("template"));var V=x6m;G.call(F,V.content.cloneNode(!0),C.content.firstChild);sT7=C}C=sT7;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var qPo;var PoE;_.en=function(C,F){this.data=C;this.actions=F;this.data=C;this.actions=F};
_.Sn=function(){};_.lc={};_.lc.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(C,F){EM5(this.hostElement,C,F)},
getNavigationEndpointPopupAction:function(C){return WcI(C,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(C,F){tkA(this.hostElement,C,F,this.openPopupConfig)}};var X7W=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.yR={};
_.yR.YtEndpointBehavior=[_.lc.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.TF("openPopupConfig");(this.useClickHandler=_.oD("useClickHandler",!1))?this.hostElement.addEventListener("click",FU(this,this.onEndpointClick_)):(Rx(this.hostElement,"tap",FU(this,this.onEndpointTap_)),Rx(this.hostElement,"touchend",FU(this,this.onEndpointTouchEnd_)));Rx(this.hostElement,"touchstart",FU(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
FU(this,this.onEndpointTapStart_))},
onEndpointClick_:function(C){U8o(this.hostElement,C,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(C){var F=this.hostElement,G=this.openPopupConfig,V=this.disableCommandHandlerOverride;V=V===void 0?!1:V;var J=aV5(C);if(J){J.href&&O6(J.href);var b=C.detail;var z=b.sourceEvent;b=b.preventer;z=z.button!==void 0?z.button===0&&!u5(z):b?!u5(b):!0;J.data&&z&&kgE(F,J,C,G,V)}},
onEndpointTouchEnd_:function(C){u5(C)||aV5(C)&&C.preventDefault()},
onEndpointTapStart_:function(C){NyA(C)}}];_.Z7={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(C){for(var F=_.FV.getInstance(),G=_.u(Object.keys(C)),V=G.next();!V.done;V=G.next()){var J=V.value;V=C[J];if(this&&this[V]){var b=F.actionRoutingMap.get(J);b||(b=new Map,F.actionRoutingMap.set(J,b));F.registerActionHandler(this,J,this[V].bind(this),b)}else J=Error("md"),J.params=V,_.ri(J)}},
unregisterActionMap:function(C){_.V3(_.FV.getInstance(),C,this)}}]};var Ie=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_"+(_.y("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.y("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.y("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["LIKE_DELHI_PLAYER",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v5.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_DELHI_PLAYER",totalFrames:120,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:_.y("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light_v4.json":
"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",pathDarkTheme:_.y("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark_v4.json":"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:_.y("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var QA;var E4=new Map;var vMW=window.matchMedia("(forced-colors: active)").matches;var g3G;var Ro$;var YPy=new _.jh("LOTTIE_LOADER_TOKEN");_.NQ=_.d(function(C){var F=C.data;var G=C.className;var V=C.animationName;var J=C.animationRef;var b=C.elRefForInterop;var z=_.nc("lottie-component"),Q;_.q0(function(){var t;return void((t=Q)==null?void 0:t.destroy())});
var E;_.sq(function(){var t=_.g0(V);if(t!==E){E=t;var k=Object.assign({},{animationName:t,animationRef:_.g0(J)},_.g0(F));try{_.I8().resolve(YPy)().then(function(l){var N;(N=Q)==null||N.destroy();var S,f;N=(f=b==null?void 0:(S=b())==null?void 0:S.value)!=null?f:z.value;S=k.animationRef;f=k.listeners;l=l.loadAnimation(Object.assign({},{container:N},k.animationConfig));S&&(S.lottieEl=l);if(f)for(N=_.u(Object.entries(f)),S=N.next();!S.done;S=N.next())f=_.u(S.value),S=f.next().value,(f=f.next().value)&&
l.addEventListener(S,f);Q=l})}catch(l){t=l;
var U="LottieComponent error.";t.message&&(U+=" Original description: "+t.message);_.Tf(t,U);_.Yw(t);var H;((H=k.listeners)==null?0:H.error)&&k.listeners.error(t)}}},"nrJISd");
return _.W(uw5,{cond:function(){return!(b==null?0:b())},
then:function(){return _.W("lottie-component",{class:_.py("ytLottieComponentHost",G),el:z})}})},"Y");_.gQ(_.d(function(C){return _.W("ytd-lottie-player",{id:C.id,hidden:C.hidden,class:C.className,"aria-label":C.ariaLabel,style:"display: block;"},_.W(_.NQ,{data:C.data,animationName:function(){var F;return((F=C.data().animationConfig)==null?void 0:F.name)||""},
animationRef:function(){return C.data().animationRef}}))},"Z"),"ytd-lottie-player",{props:{data:_.CJ,
id:_.CJ,hidden:_.CJ,className:_.CJ,ariaLabel:_.CJ}});var Ob=function(){var C=_.B.apply(this,arguments)||this;C.animationRef={};C.delhiIconsEnabled=_.y("enable_web_delhi_icons");return C};
_.O(Ob,_.B);_.n=Ob.prototype;
_.n.handlePropertyChange=function(){var C=this.animatedIcon,F=this.active,G=this.isDarkTheme;if(C){var V=this.previousActive!==F;this.previousActive=F;this.animationRef.lottieEl?V&&this.toggleAnimation(F,C.totalFrames):F?this.initializeAnimationAsToggled(C.lottiePlayerProps,C.totalFrames):this.initializeAnimationAsUntoggled(C.lottiePlayerProps);C.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=C.type;this.lottiePlayerProps=this.computeLottiePlayerProps(C,G)}};
_.n.computeLottiePlayerProps=function(C,F){var G=this.deepCloneLottiePlayerProps(C);F?(F=C.nameDarkTheme,C=C.pathDarkTheme):(F=C.name,C=C.path);G.animationConfig.name=F;(F=E4.get(C))?G.animationConfig.animationData=F:G.animationConfig.path=C;return G};
_.n.initializeAnimationAsToggled=function(C,F){C.animationConfig.initialSegment=[F-1,F]};
_.n.initializeAnimationAsUntoggled=function(C){C.animationConfig.initialSegment=void 0};
_.n.toggleAnimation=function(C,F){if(C){var G;(G=this.animationRef.lottieEl)==null||G.playSegments([0,F],!0)}else{var V;(V=this.animationRef.lottieEl)==null||V.playSegments([0,1],!0)}};
_.n.deepCloneLottiePlayerProps=function(C){var F=Object.assign({},C.lottiePlayerProps.animationConfig);C=Object.assign({},C.lottiePlayerProps);C.animationConfig=F;return C};
Ob.prototype.handlePropertyChange=Ob.prototype.handlePropertyChange;_.R([_.L(),_.Y("design:type",Object)],Ob.prototype,"animatedIcon",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],Ob.prototype,"active",void 0);_.R([_.L(),_.Y("design:type",Boolean)],Ob.prototype,"isDarkTheme",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],Ob.prototype,"animatedIconType",void 0);_.R([_.L(),_.Y("design:type",Boolean)],Ob.prototype,"previousActive",void 0);
_.R([_.L(),_.Y("design:type",Object)],Ob.prototype,"lottiePlayerProps",void 0);_.R([_.L(),_.Y("design:type",Object)],Ob.prototype,"animationRef",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Ob.prototype,"delhiIconsEnabled",void 0);_.R([_.iP("animatedIcon","active","isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ob.prototype,"handlePropertyChange",null);_.R([_.Z5({is:"yt-animated-icon",disableElementRegistration:!0})],Ob);
_.q(Ob,"yt-animated-icon",function(){if(Ro$===void 0){var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;g3G===void 0&&(g3G=document.createElement("template"));var V=g3G;G.call(F,V.content.cloneNode(!0),C.content.firstChild);Ro$=C}C=Ro$;return C},{mode:2});var TLm;var o37;var d8s=_.d(function(C){var F=_.nc("span"),G=PQ(function(){return{value:null,cancelled:!1}});
_.q0(function(){G.cancelled=!0});
var V=_.w0(C.data,{equals:function(J,b){return J.iconName===b.iconName&&J.iconStyle===b.iconStyle&&J.iconSize===b.iconSize&&J.iconSetName===b.iconSetName&&J.iconSelected===b.iconSelected}},"AoOoyf");
_.sq(function(){var J,b=(J=C.options)==null?void 0:J.call(C);epo(F,G,V(),b)},"Tie9e");
return _.W("span",{class:"yt-icon-shape",el:F})},"aa");
d8s.idomCompat=!0;var jgS=["youtube_fill","youtube_outline"];var rxS=new _.vP({type:"iconset",value:void 0}),Xe=function(){var C=_.B.apply(this,arguments)||this;C.isDarkTheme=document.documentElement.hasAttribute("dark");C.iconName="";C.iconsetName="yt-icons";C.iconset=null;C.missingIconSet=!1;C.iconType=null;C.iconShapeDataSignal=_.yH(void 0,void 0,"ZwOn2");C.renderingOptionsSignal=_.yH({iconWidth:"100%",iconHeight:"100%",iconFilter:C.iconFilter,iconColor:C.gradientColor},void 0,"UgqF6d");C.wizHasRendered=!1;C.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return C};
_.O(Xe,_.B);Xe.prototype.onDarkModeToggledAction=function(C){C!==this.isDarkTheme&&(this.isDarkTheme=C)};
Xe.prototype.handlePropertyChange=function(){var C=this,F,G,V,J,b,z,Q,E,t,k,U,H,l,N,S,f,c;return _.I(function(A){switch(A.nextAddress){case 1:if(F=!C.icon&&!C.iconName||!C.isAttached)return A.return();G=C;V=G.icon;J=G.size;b=G.defaultToFilled;z=G.active;Q=G.targetContainer;C.toggleContainerClass(Q);_.y("kevlar_use_wil_icons")&&V&&(E=WRZ(V),C.iconType=E.length?E[1]:null);if(V){A.jumpTo(2);break}C.iconsetName="";C.iconName="";return A.yield(C.renderIcon(Q,V),3);case 3:return A.return();case 2:t=KIu(V);
k=WRZ(t);k.length&&(C.iconsetName=k[0],C.iconName=k[1]);if(!_.y("kevlar_use_wil_icons")){A.jumpTo(4);break}U=Xe;H=D68;l=C.iconType;N=C.active;S=C.defaultToFilled;f=C.size;c=C.iconsetName;return A.yield(pmE(),6);case 6:return A.yield(H.call(U,l,N,S,f,c,A.yieldResult),5);case 5:C.iconShapeData=A.yieldResult;case 4:if(C.shouldRenderIconShape(Q)){A.jumpTo(7);break}return A.yield(C.determineIconSet(t,z,b,J,Q),7);case 7:return A.yield(C.renderIcon(Q,V),0)}})};
Xe.prototype.toggleContainerClass=function(C){C?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var KIu=function(C){return!_.y("default_to_innertube_icon")||C.indexOf(":")>0?C:_.p5(C)};
_.n=Xe.prototype;_.n.determineIconSet=function(C,F,G,V){var J=this;return _.I(function(b){return b.nextAddress==1?_.y("kevlar_system_icons")||_.TF("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.TF("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?b.yield(J.switchToYtSysIconset(C,F,G,V),3):b.jumpTo(2):b.nextAddress!=2?b.return():b.yield(J.useYtSysIconsetForMissingIcons(C,F,G,V),0)})};
_.n.switchToYtSysIconset=function(C,F,G,V){var J=this,b,z,Q,E,t,k,U;return _.I(function(H){switch(H.nextAddress){case 1:if(!C||J.iconsetName!=="yt-icons"&&J.iconsetName!=="yt-sys-icons"){H.jumpTo(0);break}b=WRZ(C);z=b[1];z=_.OGZ(z);_.y("enable_polymer_icons_replace_underscores_dash")&&z.includes("_filled")&&(z=z.replace(/_filled/g,"-filled"));return H.yield(D5(z,!0),3);case 3:return Q=H.yieldResult,H.yield(D5(z,!1),4);case 4:if((E=H.yieldResult)||F&&Q)J.iconsetName="yt-sys-icons";J.iconName=J.getIconName(z,
F,G,E,Q);if(V===24){H.jumpTo(0);break}t="yt-sys-icons"+V+":"+J.iconName;return H.yield(D5(t,!1,!0),6);case 6:return k=H.yieldResult,H.yield(D5(t,!0,!0),7);case 7:U=H.yieldResult;J.iconName=J.getIconName(z,F,G,k,U);if(!F&&k||F&&U)J.iconsetName="yt-sys-icons"+V;_.S9(H)}})};
_.n.getIconName=function(C,F,G,V,J){C.includes("-filled")&&(C=C.replace("-filled",""));return J&&(F||G)?C+"-filled":C};
_.n.useYtSysIconsetForMissingIcons=function(C,F,G,V){var J=this,b,z;return _.I(function(Q){if(Q.nextAddress==1)return J.iconsetName!=="yt-icons"?Q.jumpTo(0):Q.yield(D5(J.iconName,!1,!1,!0),3);if(Q.nextAddress!=4)return b=Q.yieldResult,Q.yield(D5(J.iconName,!1),4);z=Q.yieldResult;if(b||!z)return Q.jumpTo(0);J.iconsetName="yt-sys-icons";return Q.yield(J.switchToYtSysIconset(C,F,G,V),0)})};
_.n.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var pmE=function(){return _.I(function(C){try{return C.return(_.I8().resolve(_.mm))}catch(F){return C.return(new Promise(function(G){_.Vc().parkOrScheduleJob(function(){G(_.I8().resolve(_.mm))},2,"ci")}))}})},D68=function(C,F,G,V,J,b){V=V===void 0?24:V;
if(C){C=C.toLowerCase();var z=C.endsWith("_filled")||C.endsWith("-filled");F={iconName:C,iconStyle:(F===void 0?0:F)||(G===void 0?0:G)||z?"youtube_fill":"youtube_outline",iconSize:V,iconSetName:J===void 0?"yt-icons":J};G=!!b.resolveIcon(F);G||(F.iconSize=void 0,G=!!b.resolveIcon(F));!G&&z&&(F.iconName=C.substring(0,C.length-7),F.iconSize=V,G=!!b.resolveIcon(F),G||(F.iconSize=void 0,G=!!b.resolveIcon(F)));G||(F.iconStyle=void 0,G=!!b.resolveIcon(F));G||_.Yw(new _.Ay("Icon not supported",{iconName:F.iconName,
iconStyle:F.iconStyle,iconSize:F.iconSize,iconType:C}));return G?F:void 0}};
_.n=Xe.prototype;_.n.shouldRenderIconShape=function(C){if(!_.y("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;C=this.getContainer(C);return!fV5(C,this.icon)};
_.n.renderIcon=function(C,F){var G=this,V,J,b,z,Q,E,t,k;return _.I(function(U){switch(U.nextAddress){case 1:if(F&&G.icon!==F)return U.return();V=G.getContainer(C);J=fV5(V,G.icon);if(G.shouldRenderIconShape(C)&&G.iconType)return G.applyIconShape(J,V),U.return();G.removeIconShape();if(!V)return U.return();G.iconName===""&&G.iconset&&V&&(G.removeStaticIcon(G.iconset,V),J&&G.removeAnimatedIcon(V));if(G.iconName===""&&G.iconset||!G.iconsetName||!rxS)return U.return();G.iconset=rxS.byKey(G.iconsetName);
if(!G.iconset)return G.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.Gp(G,G.onIconsetAdded)),U.return();G.missingIconSet&&(G.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.Gp(G,G.onIconsetAdded)));z=(b=J||G.isAnimatedIcon?Lc9(G.icon):void 0)&&!b.lazyLoad;E=b&&((Q=b)==null?void 0:Q.lazyLoad)&&(b.lottiePlayerProps.animationConfig.animationData?!0:E4.get(G.isDarkTheme?b.pathDarkTheme:b.path)?!0:!1);if(z||E)return G.applyAnimatedIcon(V,b,G.iconset),U.return();if(E||
(t=b)==null||!t.lazyLoad){U.jumpTo(2);break}k=c_o(b,G.isDarkTheme);G.applyStaticIcon(G.iconset,V,G.iconName,C,J);return U.yield(k,3);case 3:return U.yield(G.renderIcon(G.targetContainer,G.icon),4);case 4:return U.return();case 2:G.applyStaticIcon(G.iconset,V,G.iconName,C,J),_.S9(U)}})};
_.n.getContainer=function(C){var F,G=(F=Awq(this.hostElement))==null?void 0:F.host;F=!!G&&!!G.polymerController;if(!C||F)return C?this.getTargetContainer(C,G):this.hostElement};
_.n.getTargetContainer=function(C,F){var G=_.ot(F).querySelector("#"+C);G||(C=new _.Ay("yt-icon container missing",F.is,C),_.gD(C));return G};
_.n.applyStaticIcon=function(C,F,G,V,J){J&&this.removeAnimatedIcon(F);this.removeIconShape();J=J&&!!this.iconType&&!!this.iconShapeData&&_.y("kevlar_use_wil_icons");try{J?this.applyIconShape(!1,F):C.applyIcon(F,G)}catch(b){this.handleError(b,V,F)}};
_.n.applyIconShape=function(C,F){this.iconset&&F&&(this.removeStaticIcon(this.iconset,F),C&&this.removeAnimatedIcon(F));C={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter,iconColor:this.gradientColor};var G=_.u(this.iconShapeDataSignal);F=G.next().value;G=G.next().value;var V=_.u(this.renderingOptionsSignal),J=V.next().value;V=V.next().value;G(this.iconShapeData);V(C);if(!this.wizHasRendered)for(this.wizHasRendered=!0,C=_.u(x8T(F,J)).next().value;C.firstChild;)_.ot(this.hostElement).appendChild(C.firstChild)};
_.n.removeIconShape=function(){if(_.y("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.n.removeStaticIcon=function(C,F){C.removeIcon(F)};
_.n.applyAnimatedIcon=function(C,F,G){this.removeStaticIcon(G,C);this.removeIconShape();var V;G=this.animatedIconElement&&((V=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:V.type)===F.type;if(this.animatedIconElement&&G){this.animatedIconElement.polymerController.animatedIcon=F;var J;((J=this.animatedIconElement)==null?void 0:J.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(C),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=F,this.animatedIconElement.polymerController.active=this.active,_.y("delhi_modern_web_player_icons")?(F=Bys(C,this.icon)&&C.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=F?F.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.y("kevlar_use_wil_icons")?
C.insertBefore(this.animatedIconElement,C.childNodes[0]):(C=_.ot(C),C.insertBefore(this.animatedIconElement,C.childNodes[0]))};
_.n.removeAnimatedIcon=function(C){_.y("kevlar_use_wil_icons")?this.animatedIconElement&&C.contains(this.animatedIconElement)&&C.removeChild(this.animatedIconElement):(C=_.ot(C),this.animatedIconElement&&C.contains(this.animatedIconElement)&&C.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.n.handleError=function(C,F,G){_.Tf(C,this.iconName,F,G);F=fV5(G,this.icon);var V=!1;window.location.href.includes("JpymaW6Lh2w")?V=!0:G._svgIcon&&(G=(G=G._svgIcon.parentNode)?G.tagName:"unknown",_.Tf(C,G),G==="YT-ICON"&&C.name==="NotFoundError"?V=!0:C.name==="NotFoundError"&&F&&(V=!0));V?_.Yw(C):_.gD(C)};
_.I6.Object.defineProperties(Xe,{template:{configurable:!0,enumerable:!0,get:function(){if(o37===void 0){var C=document.createElement("template");_.X(C,"\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");C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;
TLm===void 0&&(TLm=document.createElement("template"));var V=TLm;G.call(F,V.content.cloneNode(!0),C.content.firstChild);o37=C}C=o37;return C}}});
Xe.prototype.handlePropertyChange=Xe.prototype.handlePropertyChange;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],Xe.prototype,"actionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",String)],Xe.prototype,"icon",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],Xe.prototype,"active",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],Xe.prototype,"defaultToFilled",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],Xe.prototype,"isAnimatedIcon",void 0);
_.R([_.L({value:24}),_.Y("design:type",Number)],Xe.prototype,"size",void 0);_.R([_.L({value:""}),_.Y("design:type",String)],Xe.prototype,"targetContainer",void 0);_.R([_.L(),_.Y("design:type",Object)],Xe.prototype,"animatedIconElement",void 0);_.R([_.L(),_.Y("design:type",Object)],Xe.prototype,"isDarkTheme",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Xe.prototype,"ariaHidden",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],Xe.prototype,"ariaLabel",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],Xe.prototype,"role",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],Xe.prototype,"tabindex",void 0);_.R([_.L(),_.Y("design:type",String)],Xe.prototype,"style",void 0);_.R([_.L(),_.Y("design:type",String)],Xe.prototype,"iconFilter",void 0);_.R([_.L(),_.Y("design:type",String)],Xe.prototype,"gradientColor",void 0);
_.R([_.iP("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme","gradientColor","iconFilter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],Xe.prototype,"handlePropertyChange",null);_.R([_.Z5({is:"yt-icon",noInjection:!0})],Xe);var sZZ="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),P$w=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var m6m={};m6m.YtPlaintextBehavior=[_.wg,{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(C){C.preventDefault();C=C.clipboardData.getData("text/plain");document.execCommand("insertText",!1,C)},
preventRichTextFormatting_:function(C){_.C2&&(C=C.detail.keyboardEvent,C.stopImmediatePropagation(),C.preventDefault())}}];var CA7;var jUG;var wq=function(){var C=_.B.apply(this,arguments)||this;C.ignoreShadyDom=!1;C.hasChange_=!1;C.hasSetTitle_=!1;C.useIOObserverForVisibilityLogging_=_.y("kevlar_use_vimio_behavior")&&_.TF("INNERTUBE_CLIENT_NAME")==="WEB";C.ytFormattedStringObserverHandlerKeys_=void 0;return C};
_.O(wq,_.B);_.n=wq.prototype;_.n.created=function(){this.useIOObserverForVisibilityLogging_=_.y("kevlar_use_vimio_behavior")&&_.TF("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.n.ready=function(){_.TF("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_()};
_.n.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.n.detached=function(){this.unobserveIOObservers_()};
_.n.clearContents_=function(){for(var C=this.getRoot(),F=C.lastChild;F&&F.tagName!=="STYLE";){try{C.removeChild(F)}catch(G){break}F=C.lastChild}};
_.n.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var C=_.u(this.ytFormattedStringObserverHandlerKeys_),F=C.next();!F.done;F=C.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(F.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.n.resetForAttributedString=function(){var C=this.getRoot();!C.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),C.appendChild(this.ytAttributedStringElementRef))};
_.n.resetForFormattedString=function(){var C=this.getRoot(),F=C.querySelector("yt-attributed-string");F&&(this.ytAttributedStringElementRef=C.removeChild(F))};
_.n.textChanged=function(){this.textChanged_(this.text)};
_.n.textChanged_=function(C){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!C||!C.runs&&!C.simpleText;if(_.y("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var F=this.hostElement.firstChild;F&&F.nodeName==="FONT";){var G=F;F=F.nextSibling;this.hostElement.removeChild(G)}F=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
G=C.simpleText;var V;!G&&((V=C.runs)==null?void 0:V.length)===1&&this.isSimpleString_(C.runs[0])&&(G=C.runs[0].text);G!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.TF("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(G!==void 0){try{F.textContent=G}catch(J){}F.textContent||(this.isEmpty=!0)}else C=C.runs,G!==void 0&&(C=[{text:G}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),C&&this.updateText_(C),
F.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.n.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)};
_.n.computeAriaLabel_=function(C){return C};
_.n.computeEllipsisTruncateStyling=function(C,F){return C&&!F};
_.n.computeUseAttributedString=function(C){return _.y("web_replace_formatted_with_attributed_string")&&iLZ(C)&&!this.disableAttributedString&&!this.enableContentEditable};
_.n.setNodeStyle_=function(C,F){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.y("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?F.removeAttribute("dir"):F.setAttribute("dir","auto");F.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");F.style.color="";var G=null;this.noStyles||(C.bold&&(F.classList.add("bold"),G="bold"),C.deemphasize&&(F.classList.add("deemphasize"),G="deemphasize"),C.italics&&F.classList.add("italic"),
C.strikethrough&&F.classList.add("strikethrough"),C.errorUnderline&&(F.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),C.bracket&&F.classList.add("bracket"),C.textColor&&(F.style.color=_.Hr(C.textColor)));G!==F.getAttribute("style-target")&&(G?F.setAttribute("style-target",G):F.removeAttribute("style-target"))};
_.n.setUpVisibilityLogging_=function(C,F){var G=this;this.setNodeTrackingParams_(C,F);var V;((V=F.data)==null?0:V.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(C=this.ytRendererBehavior.visibilityObserver.observe(F,function(J){var b=G.ytRendererBehavior.getVisibilityLogger();b&&b.reportShown(J)},this.ytRendererBehavior.visibilityOptionVisible_),F=this.ytRendererBehavior.visibilityObserver.observe(F,function(J){var b=G.ytRendererBehavior.getVisibilityLogger();
b&&b.reportHidden(J)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(C),this.ytFormattedStringObserverHandlerKeys_.push(F))};
_.n.setNodeTrackingParams_=function(C,F){F.data||(F.data={});if((C=C.loggingDirectives?C.loggingDirectives.trackingParams:null)||F.data.trackingParams)F.data.trackingParams=C};
_.n.computeHasLinkOnly_=function(C){return!(!C||C.length!==1||this.noEndpoints||!C[0].navigationEndpoint)};
_.n.getRoot=function(){var C=this.buildScopeDomOptions();return this.enableContentEditable?_.ot(_.ot(this.hostElement,C).querySelector("[contenteditable]")):_.ot(this.hostElement,C)};
_.n.fixContenteditableScope=function(){var C=function(F){F&&(F.nodeType===1&&F.classList&&(F.classList.add("style-scope"),F.classList.add("yt-formatted-string")),F.childNodes&&F.childNodes.forEach(function(G){C(G)}))};
C(this.getRoot())};
_.n.updateText_=function(C){for(var F=C.length,G=this.getRoot(),V=G.firstChild;V&&V.nodeName==="STYLE";)V=V.nextSibling;for(var J=0;J<F&&V;){var b=C[J],z=_.y("remove_cr_char")&&b.text?b.text.replace("\r",""):b.text;if(this.isSimpleString_(b)&&!this.useMixedDirectionFormattedStrings)if(V.nodeName==="#text"){V.textContent!=z&&(V.textContent=z);J++;V=V.nextSibling;continue}else break;if(_.Z(b,H6))break;else if(!this.noEndpoints&&b.navigationEndpoint){if(V.nodeName!=="A")break;this.setDataOnAnchor_(V,
b.navigationEndpoint)}else if(V.nodeName!=="SPAN")break;this.setNodeStyle_(b,V);this.setUpVisibilityLogging_(b,V);V.textContent!=z&&(V.textContent=z);J++;V=V.nextSibling}if(V)for(b=G.lastChild,V=J?V.previousSibling:null;b&&b!=V;){try{G.removeChild(b)}catch(Q){break}b=G.lastChild}J!==F&&this.addTextNodes_(C,J)};
_.n.addTextNodes_=function(C,F){for(var G=document.createDocumentFragment(),V=C.length;F<V;F++){var J=C[F],b=_.y("remove_cr_char")&&J.text?J.text.replace("\r",""):J.text;if(this.isSimpleString_(J)&&!this.useMixedDirectionFormattedStrings)G.appendChild(document.createTextNode(b));else{var z=_.Z(J,H6);if(z){if(z.image){var Q=document.createElement("img");z.isCustomEmoji||Q.classList.add("small-emoji");Q.classList.add("emoji");z.isCustomEmoji&&(Q.dataset.emojiId=z.emojiId);Q.src=_.RP(z.image.thumbnails,
this.emojiSize);(J=this.get("image.accessibility.accessibilityData.label",z))?Q.alt=J:z.shortcuts&&z.shortcuts.length>0?Q.alt=z.shortcuts[0]:z.emojiId&&(Q.alt=z.emojiId);G.appendChild(Q);this.hasEmoji=!0}}else!this.noEndpoints&&J.navigationEndpoint?(Q=document.createElement("a"),Q.classList.add("yt-simple-endpoint"),Q.setAttribute("spellcheck","false"),this.setDataOnAnchor_(Q,J.navigationEndpoint)):Q=document.createElement("span"),this.setNodeStyle_(J,Q),this.setUpVisibilityLogging_(J,Q),Q.appendChild(document.createTextNode(b)),
G.appendChild(Q)}}this.getRoot().appendChild(G)};
_.n.isSimpleString_=function(C){return(this.noEndpoints||!C.navigationEndpoint)&&!_.Z(C,H6)&&(this.noStyles||!(C.bold||C.deemphasize||C.italics||C.strikethrough||C.errorUnderline||C.bracket||C.textColor))&&!C.loggingDirectives};
_.n.getRawText=function(){return _.dd(this.text)};
_.n.getFirstRunText=function(){var C;if(((C=this.text)==null?0:C.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.n.setFirstRunText=function(C){var F;((F=this.text)==null?0:F.runs)&&this.text.runs[0]&&(this.text.runs[0].text=C,this.textChanged_(this.text))};
_.n.setDataOnAnchor_=function(C,F){var G=this;!_.y("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(F)||this.isSignalServiceEndpoint_(F)?(C.onclick=this.serviceEndpointHandler_(F),TB(C,"#")):jyE({text:this.text,command:F},function(){IRA(C,F,G.target)})};
_.n.isServiceEndpoint_=function(C){var F;return!((F=_.Z(C==null?void 0:C.commandMetadata,_.GU))==null||!F.sendPost)};
_.n.isSignalServiceEndpoint_=function(C){return!!_.Z(C,_.FI)};
_.n.serviceEndpointHandler_=function(C){var F=this;return function(G){_.DQ(F.hostElement,[C]);G.preventDefault()}};
_.n.overrideAriaLabelChanged_=function(){var C=this.getRoot();this.enableContentEditable&&C&&C.setAttribute("aria-label",this.overrideAriaLabel)};
_.n.enableContentEditableChanged_=function(){var C=this,F=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),F=_.ot(this.hostElement,F),!F.lastChild||F.lastChild instanceof HTMLElement&&F.lastChild.id!=="contenteditable-root"){var G=document.createElement("div");G.id="contenteditable-root";G.setAttribute("contenteditable","true");G.setAttribute("dir","auto");G.onfocus=function(){C.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
F.appendChild(G);this.overrideAriaLabel&&G.setAttribute("aria-label",this.overrideAriaLabel)}}else G=_.r7(this.hostElement).firstChild,G instanceof HTMLElement&&G.id==="contenteditable-root"&&_.ot(this.hostElement,F).removeChild(G)};
_.n.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.n.getNodesForVisibilityLogging_=function(){return _.TC(this.getRoot().childNodes,function(C){var F;return!((F=C.data)==null||!F.trackingParams)})};
_.n.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.n.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var C=this.ytRendererBehavior.getVisibilityLogger();C&&this.getNodesForVisibilityLogging_().forEach(function(F){C.reportShown(F)})}};
_.n.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var C=this.ytRendererBehavior.getVisibilityLogger();C&&this.getNodesForVisibilityLogging_().forEach(function(F){C.reportHidden(F)})}};
_.I6.Object.defineProperties(wq.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.y("enable_mixed_direction_formatted_strings")}}});
wq.prototype.enableContentEditableChanged_=wq.prototype.enableContentEditableChanged_;wq.prototype.overrideAriaLabelChanged_=wq.prototype.overrideAriaLabelChanged_;wq.prototype.ellipsisTruncateChanged_=wq.prototype.ellipsisTruncateChanged_;wq.prototype.textChanged=wq.prototype.textChanged;_.R([_.w(m6m.YtPlaintextBehavior),_.Y("design:type",Object)],wq.prototype,"ytPlaintextBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],wq.prototype,"ytComponentBehavior",void 0);
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],wq.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],wq.prototype,"text",void 0);_.R([_.L(),_.Y("design:type",Boolean)],wq.prototype,"noEndpoints",void 0);_.R([_.L(),_.Y("design:type",Boolean)],wq.prototype,"noStyles",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],wq.prototype,"isDarkTheme",void 0);
_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],wq.prototype,"splitLines",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],wq.prototype,"forceDefaultStyle",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],wq.prototype,"ellipsisTruncate",void 0);_.R([_.L(),_.Y("design:type",Object)],wq.prototype,"ignoreShadyDom",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.Y("design:type",Boolean)],wq.prototype,"ellipsisTruncateStyling",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.Y("design:type",String)],wq.prototype,"ariaLabel",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],wq.prototype,"isEmpty",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.Y("design:type",Boolean)],wq.prototype,"hasLinkOnly_",void 0);_.R([_.L(),_.Y("design:type",Boolean)],wq.prototype,"hasEmoji",void 0);_.R([_.L(),_.Y("design:type",Boolean)],wq.prototype,"disableAttributedString",void 0);_.R([_.L(),_.Y("design:type",Boolean)],wq.prototype,"isOverlay",void 0);_.R([_.L(),_.Y("design:type",Boolean)],wq.prototype,"linkInheritColor",void 0);
_.R([_.L(),_.Y("design:type",Boolean)],wq.prototype,"noPreWrap",void 0);_.R([_.L(),_.Y("design:type",Boolean)],wq.prototype,"userInput",void 0);_.R([_.L({value:16}),_.Y("design:type",Number)],wq.prototype,"emojiSize",void 0);_.R([_.L(),_.Y("design:type",String)],wq.prototype,"target",void 0);_.R([_.L(),_.Y("design:type",Boolean)],wq.prototype,"enableContentEditable",void 0);_.R([_.L(),_.Y("design:type",String)],wq.prototype,"overrideAriaLabel",void 0);
_.R([_.L(),_.Y("design:type",Boolean)],wq.prototype,"respectHtmlDir",void 0);_.R([_.L(),_.Y("design:type",Boolean)],wq.prototype,"respectLangDir",void 0);_.R([_.M("plaintextOnly"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],wq.prototype,"useMixedDirectionFormattedStrings",null);_.R([_.L({computed:"computeUseAttributedString(text)"}),_.Y("design:type",Boolean)],wq.prototype,"useYtAttributedString",void 0);
_.R([_.iP("text"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wq.prototype,"textChanged",null);_.R([_.iP("ellipsisTruncate"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wq.prototype,"ellipsisTruncateChanged_",null);_.R([_.iP("overrideAriaLabel"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wq.prototype,"overrideAriaLabelChanged_",null);
_.R([_.iP("enableContentEditable"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wq.prototype,"enableContentEditableChanged_",null);_.R([_.Z5({is:"yt-formatted-string",disableElementRegistration:!0})],wq);
_.q(wq,"yt-formatted-string",function(){if(jUG===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;CA7===void 0&&(CA7=document.createElement("template"));var V=CA7;G.call(F,V.content.cloneNode(!0),C.content.firstChild);jUG=C}C=jUG;return C});var FG8;var Gru;var VO2;var ijl;var MQ=function(){var C=_.B.apply(this,arguments)||this;C.focused=!1;C.disabled=!1;C.isOverlay=!1;return C};
_.O(MQ,_.B);MQ.prototype.triggerDown=function(){if(!this.disabled){_.pd(this.hostElement,"down",!0);var C;(C=this.currentAnimation)==null||C.cancel()}};
MQ.prototype.triggerUp=function(){if(!this.disabled){_.pd(this.hostElement,"down",!1);var C=this.fillElement;var F=this.strokeElement;typeof GroupEffect==="function"?(C=new GroupEffect([xIo(C),sUW(F)]),C=new Animation(C,document.timeline)):C=new wm2(C,F);this.currentAnimation=C;var G;(G=this.currentAnimation)==null||G.play()}};
_.R([_.$z(".stroke"),_.Y("design:type",HTMLElement)],MQ.prototype,"strokeElement",void 0);_.R([_.$z(".fill"),_.Y("design:type",HTMLElement)],MQ.prototype,"fillElement",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],MQ.prototype,"focused",void 0);_.R([_.L(),_.Y("design:type",Object)],MQ.prototype,"disabled",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],MQ.prototype,"isOverlay",void 0);_.R([_.Z5({is:"yt-interaction",disableElementRegistration:!0})],MQ);
_.q(MQ,"yt-interaction",function(){if(ijl===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;VO2===void 0&&(VO2=document.createElement("template"));var V=VO2;G.call(F,V.content.cloneNode(!0),C.content.firstChild);ijl=C}C=ijl;return C},{mode:2});var Sp=function(){return _.B.apply(this,arguments)||this};
_.O(Sp,_.B);_.n=Sp.prototype;_.n.ready=function(){var C=this,F=_.ot(this.hostElement).querySelector("#button");F.addEventListener("focus",function(){C6G||(C6G=new mLS);C.keyboardFocused=C6G.isKeyBoardInUse()});
F.addEventListener("blur",function(){C.keyboardFocused=!1;C.rippleUp_()})};
_.n.computeTabIndex_=function(C){return C?-1:0};
_.n.computeButtonAriaPressed_=function(C){if(this.toggleable)return C?"true":"false"};
_.n.rippleDown_=function(){_.ot(this.hostElement).querySelector("#interaction").triggerDown()};
_.n.rippleUp_=function(){_.ot(this.hostElement).querySelector("#interaction").triggerUp()};
_.n.onPressedChanged_=function(){var C=_.r7(_.ot(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.r7(_.ot(this.hostElement).querySelector("#button")).children[0];C&&(C.active=this.pressed)};
Sp.prototype.onPressedChanged_=Sp.prototype.onPressedChanged_;Sp.prototype.rippleUp_=Sp.prototype.rippleUp_;Sp.prototype.rippleDown_=Sp.prototype.rippleDown_;_.R([_.L(),_.Y("design:type",String)],Sp.prototype,"label",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Sp.prototype,"disabled",void 0);_.R([_.L(),_.Y("design:type",Boolean)],Sp.prototype,"pressed",void 0);_.R([_.L(),_.Y("design:type",Object)],Sp.prototype,"toggleable",void 0);
_.R([_.L(),_.Y("design:type",Boolean)],Sp.prototype,"untabbable",void 0);_.R([_.L(),_.Y("design:type",Boolean)],Sp.prototype,"keyboardFocused",void 0);_.R([_.VG("down"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Sp.prototype,"rippleDown_",null);_.R([_.VG("up"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Sp.prototype,"rippleUp_",null);
_.R([_.iP("pressed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Sp.prototype,"onPressedChanged_",null);_.R([_.Z5({is:"yt-icon-button",disableElementRegistration:!0})],Sp);
_.q(Sp,"yt-icon-button",function(){if(Gru===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;FG8===void 0&&(FG8=document.createElement("template"));var V=FG8;G.call(F,V.content.cloneNode(!0),C.content.firstChild);Gru=C}C=Gru;return C},{mode:2});var Jeu;var $Iy=function(){var C=document.body,F=C.appendChild;if(Jeu===void 0){var G=document.createElement("template");_.X(G,'\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>');
Jeu=G}G=Jeu;F.call(C,G.content)};
document.body?$Iy():window.addEventListener("DOMContentLoaded",$Iy);var bj2=_.h6(["aria-"]),LJ={};LJ.YtRenderButtonBehavior=[_.D.YtRendererBehavior,_.yR.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!!_.I8().resolve(_.Qt(_.uc))&&_.y("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 C=this.computeHref_(this.endpoint,!0);C?TB(this.elements_.endpoint,C):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){C=this.buttonClass.split(" ");C=_.u(C);for(var F=C.next();!F.done;F=C.next())F=F.value,_.pd(this.hostElement,F,!0),this.elements_.button&&_.pd(this.elements_.button,F,!0),this.elements_.text&&_.pd(this.elements_.text,F,!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&&(C=null,this.buttonAccessibility&&(C=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=C:C?_.bi([_.Wj(bj2)],this.elements_.button,"aria-label",C):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var C=_.I8().resolve(_.Qt(_.uc));C&&(this.keyboardFocused=C.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.JS("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,_.E5(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.E5(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(C,F){if(F)for(C=F.split(" "),C=_.u(C),F=C.next();!F.done;F=C.next())F=F.value,_.pd(this.hostElement,F,!1),this.elements_.button&&_.pd(this.elements_.button,F,!1),this.elements_.text&&_.pd(this.elements_.text,F,!1)},
buttonIconChanged_:function(C){this.elements_.icon?C?(this.elements_.icon.icon=C,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.E5(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.m5(this.hostElement,"is-paper-button-with-icon",!1)):C&&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"&&_.E5(this.elements_.button).appendChild(this.elements_.icon):_.E5(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.m5(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(C){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,C){var F=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(C){case "yt_icon_button_with_label":F=!0;_.pd(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();C=_.E5(this.elements_.button).firstElementChild;
this.elements_.icon=C;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.E5(this.elements_.endpoint).appendChild(this.elements_.button);_.E5(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.JS("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;_.E5(this.elements_.button).appendChild(this.elements_.text);_.E5(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":F=!0,this.elements_.button=this.getYtIconButton_(),C=_.E5(this.elements_.button).firstElementChild,this.elements_.icon=C,this.setIconActive_(this.elements_.icon),
_.E5(this.elements_.endpoint).appendChild(this.elements_.button)}_.m5(this.hostElement,"is-icon-button",F);_.m5(this.hostElement,"is-paper-button",!F);_.m5(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 G;_.ot((G=this.container.hostElement)!=null?G:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.E5(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(C){if(C!=void 0||this.disabled)this.disabled=C,this.elements_.button&&(this.elements_.button.disabled=C)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(C){_.y("kevlar_system_icons")&&C&&this.data&&(this.data.isSelected!==void 0?C.active=this.data.isSelected:this.data.isToggled!==void 0&&(C.active=this.data.isToggled))},
observeBasicPalette_:function(C){_.WB(this.hostElement,C)},
disabledChanged_:function(C){this.data&&this.set("data.isDisabled",C)},
onYtButtonTap_:function(C){if(this.disabled)C.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.DQ(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(C=this.disableCommandHandlerOverride,!this.data||!this.data.command||C||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.y("handle_service_request_actions")||_.DQ(this.hostElement,[this.serviceEndpoint]),
_.oo(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.y("handle_service_request_actions")?(C=[],this.serviceEndpoint&&C.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&C.push(this.data.command),C.length&&_.pX(this.hostElement,C,this.hostElement)):this.data&&this.data.command&&(C=this.data.command,C.accountUnlinkCommand||C.accountLinkCommand||C.insertAdCommand||C.insertHighlightMarkerCommand||
C.createLivestreamHighlightClipCommand||C.getVideoUploadFeedbackCommand||C.musicDeletePrivatelyOwnedEntityCommand||C.ypcCancelRecurrenceEndpoint||C.getMultiSelectCommandEndpoint?_.DQ(this.hostElement,[C]):_.pX(this.hostElement,[C],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 C,F=_.ot((C=this.container.hostElement)!=null?C:this.container);F.lastChild&&F.lastChild.tagName!="STYLE";)try{F.removeChild(F.lastChild)}catch(G){break}},
getYtIconButton_:function(){var C=this.reuseEnabled_()?_.JS("yt-icon-button"):document.createElement("yt-icon-button"),F=_.E5(C).firstElementChild;if(F&&F.is!="yt-icon"){for(F=_.E5(C);F.lastChild;)F.removeChild(F.lastChild);F=null}F||(F=this.getIcon_(),this.setIconActive_(F),_.E5(C).appendChild(F));return C},
reuseEnabled_:function(){return _.y("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.JS("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.JS("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.no2={};
_.no2.YtButtonBehavior=[LJ.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var C=this.data;C&&(this._setEndpoint(this.computeEndpoint_(C)),this._setServiceEndpoint(this.computeServiceEndpoint_(C)),this._setCommand(this.computeCommand_(C)),this._setButtonIcon(this.computeButtonIcon_(C)),this._setButtonText(this.computeButtonText_(C,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(C)),this._setButtonTooltip(this.computeTooltip_(C)),this._setButtonClass(this.computeButtonClass_(C)),this._setIconPositionType(this.computeIconPositionType_(C)),this.updateRenderedElements())},
setPressedState:function(C){var F;if((F=this.elements_)==null?0:F.button)this.elements_.button.pressed=!!C},
computeIconPositionType_:function(C){return C&&C.iconPosition||null},
computeEndpoint_:function(C){var F=C&&C.navigationEndpoint,G=this.get("data.command.commandMetadata.webCommandMetadata.url"),V=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return F?F:C&&C.command&&C.command.modalEndpoint?C.command:G&&!V&&C.command?C.command:null},
computeServiceEndpoint_:function(C){var F=C&&C.serviceEndpoint,G=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return F?F:G&&C.command?C.command:null},
computeCommand_:function(C){return C&&C.command||null},
computeButtonIcon_:function(C){return C&&C.icon&&C.icon.iconType?_.p5(C.icon.iconType):null},
computeButtonText_:function(C,F){return!F&&C&&C.text||null},
computeAccessibility_:function(C){return this.get("accessibilityData.accessibilityData",C)||C&&C.accessibility||(C&&C.text?{label:this.getSimpleString(C.text)}:null)},
computeTooltip_:function(C){return C?C.isDisabled&&C.disabledTooltip||C.tooltip||null:null},
computeButtonClass_:function(C){var F=C&&C.style?C.style.toLowerCase().replace(/_/g,"-")+" ":"";F+=C&&C.size?C.size.toLowerCase().replace(/_/g,"-")+" ":"";C.colorData&&C.colorData.basicColorPaletteData&&C.colorData.basicColorPaletteData.borderColor&&(F+="palette-with-border");return F.trim()}}];var tM={};var ugy;var zfO;var QUu,IGm=function(){return QUu!==void 0?QUu:QUu=document.createElement("template")};
document.head.appendChild(IGm().content);var Eoo;var WGO,tOu=function(){return WGO!==void 0?WGO:WGO=document.createElement("template")};
document.head.appendChild(tOu().content);var aGu;var kru,UIu=function(){return kru!==void 0?kru:kru=document.createElement("template")};
document.head.appendChild(UIu().content);var HjO;var lGm=document.head,yeO=lGm.appendChild,ZjE;if(HjO===void 0){var Nx8=document.createElement("template");_.X(Nx8,"\x3c!--css-build:shady--\x3e");Nx8.content.insertBefore(UIu().content.cloneNode(!0),Nx8.content.firstChild);HjO=Nx8}ZjE=HjO;yeO.call(lGm,ZjE.content);var OjO=document.head,XE7=OjO.appendChild,wEy;if(aGu===void 0){var MOo=document.createElement("template");_.X(MOo,"\x3c!--css-build:shady--\x3e");MOo.content.insertBefore(tOu().content.cloneNode(!0),MOo.content.firstChild);aGu=MOo}wEy=aGu;XE7.call(OjO,wEy.content);var Seu=document.head,LGu=Seu.appendChild,BxG;if(Eoo===void 0){var vor=document.createElement("template");_.X(vor,"\x3c!--css-build:shady--\x3e");vor.content.insertBefore(IGm().content.cloneNode(!0),vor.content.firstChild);Eoo=vor}BxG=Eoo;LGu.call(Seu,BxG.content);var fG$;_.ae("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");fG$=_.y("web_button_rework")&&_.oD("BUTTON_REWORK")||_.y("web_button_rework_with_live");_.Bn=function(){return _.B.apply(this,arguments)||this};
_.O(_.Bn,_.B);_.Bn.prototype.created=function(){this.openPopupConfig=_.TF("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.Bn.prototype.onYtNavigate_=function(C){var F=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(C.detail.endpoint);F&&(this.ytOpenPopupBehavior.openPopup(F),C.stopPropagation(),C.preventDefault())};
_.I6.Object.defineProperties(_.Bn,{template:{configurable:!0,enumerable:!0,get:function(){if(zfO===void 0){var C=document.createElement("template");_.X(C,"\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");C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);
var F=C.content,G=F.insertBefore;ugy===void 0&&(ugy=document.createElement("template"));var V=ugy;G.call(F,V.content.cloneNode(!0),C.content.firstChild);zfO=C}C=zfO;return C}}});
_.Bn.prototype.onYtNavigate_=_.Bn.prototype.onYtNavigate_;_.R([_.w(_.lc.YtOpenPopupBehavior),_.Y("design:type",Object)],_.Bn.prototype,"ytOpenPopupBehavior",void 0);_.R([_.w(_.no2.YtButtonBehavior),_.Y("design:type",Object)],_.Bn.prototype,"ytButtonBehavior",void 0);_.R([_.VG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],_.Bn.prototype,"onYtNavigate_",null);
_.R([_.Z5({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:fG$})],_.Bn);var hfl;var ce7=_.y("web_button_rework")&&_.oD("BUTTON_REWORK")||_.y("web_button_rework_with_live"),vn=function(){var C=_.B.apply(this,arguments)||this;C.isPressed=!1;C.forceIconButton=!1;C.forceIconOnly=!1;C.forceModernIconButton=!1;C.skipCommandHandling=!1;C.alignByText=!1;C.fitToVisibleBounds=!0;C.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};C.onTap=function(F){_.oo(C.hostElement,"yt-service-request-sent-button-renderer",F)};
return C};
_.O(vn,_.B);_.n=vn.prototype;_.n.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.n.onClick=function(C){var F,G=this.disabled||((F=this.data)==null?void 0:F.isDisabled);F=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");G&&F&&C.stopPropagation()};
_.n.computeIcon=function(){var C,F,G=(C=this.data)==null?void 0:(F=C.icon)==null?void 0:F.iconType;if(G)return _.p5(G)};
_.n.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.n.handleUpdateButtonAction=function(C){C=_.Z(C,grl);var F=_.Z(C==null?void 0:C.updatedButton,_.DY);if(this.data&&C&&F){var G=this.data;G.targetId&&C.targetId&&G.targetId===C.targetId&&(this.data=F)}};
_.I6.Object.defineProperties(vn.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var C=this;if(this.data){var F=r_T({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.oo(C.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.oo(C.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});F.alignByText=this.alignByText;return F}}}});
_.I6.Object.defineProperties(vn,{template:{configurable:!0,enumerable:!0,get:function(){if(hfl===void 0){var C=document.createElement("template");_.X(C,'\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>');hfl=C}C=hfl;return C}}});
vn.prototype.onClick=vn.prototype.onClick;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],vn.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],vn.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],vn.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],vn.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],vn.prototype,"isPressed",void 0);
_.R([_.L(),_.Y("design:type",Object)],vn.prototype,"forceIconButton",void 0);_.R([_.L(),_.Y("design:type",Object)],vn.prototype,"forceIconOnly",void 0);_.R([_.L(),_.Y("design:type",Object)],vn.prototype,"forceModernIconButton",void 0);_.R([_.L(),_.Y("design:type",Object)],vn.prototype,"skipCommandHandling",void 0);_.R([_.L(),_.Y("design:type",Object)],vn.prototype,"alignByText",void 0);_.R([_.L(),_.Y("design:type",Object)],vn.prototype,"buttonTooltipPosition",void 0);
_.R([_.L(),_.Y("design:type",Object)],vn.prototype,"fitToVisibleBounds",void 0);_.R([_.L({computed:"computeTooltip(data)"}),_.Y("design:type",Object)],vn.prototype,"tooltip",void 0);_.R([_.L(),_.Y("design:type",Object)],vn.prototype,"overrides",void 0);_.R([_.L(),_.Y("design:type",Boolean)],vn.prototype,"disabled",void 0);_.R([_.VG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],vn.prototype,"onClick",null);
_.R([_.M("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vn.prototype,"computedButtonShape",null);_.R([_.Z5({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!ce7,cssBuildOptOut:!0}),_.Z5({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!ce7,cssBuildOptOut:!0})],vn);var AeP;var efO;var fJ=function(){var C=_.B.apply(this,arguments)||this;C.empty_=!0;C.loadTime=Infinity;C.pendingPaint=!1;C.hasChange_=!1;C.oldThumbnail_=null;C.oldDelayedSrc_="";C.objectURL_=null;return C};
_.O(fJ,_.B);_.n=fJ.prototype;_.n.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.n.ready=function(){var C=this.shouldShowPlaceholder_();_.pd(this.hostElement,"no-transition",!0);C&&this.hostElement.classList.add("with-placeholder")};
_.n.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.n.isThumbPreloaded_=function(C){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",C)};
_.n.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||dI8};
_.n.computeThumbnailSrc_=function(C){return C&&C.thumbnails?_.RP(C.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.n.computeAlt_=function(){var C=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&C||""};
_.n.thumbnailChanged_=function(){var C=_.u([this.thumbnail,this.oldThumbnail_]),F=C.next().value;C=C.next().value;this.oldThumbnail_=F;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(C=this.computeThumbnailSrc_(C),this.computeThumbnailSrc_(F)===C))return;_.y("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(F)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):F&&_.oD("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.zH(this,this.onReload_):_.zH(this,this.onShow_):this.resetImage_();F&&(this.hostElement.style.opacity=""+F.opacity)}};
_.n.delayedSrcChanged_=function(){var C=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===C||this.resetImage_()};
_.n.setSrc_=function(C){C?(_.ot(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.ot(this.hostElement).querySelector("#img").src=C):(_.ot(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.n.resetImage_=function(){D6Z(this.hostElement);this.empty_=!0;this.setSrc_(dI8);this.ytRendererBehavior.invalidate(!1)};
_.n.observePlaceholderColor_=function(){var C=this.thumbnail&&this.thumbnail.placeholderColor;C?this.hostElement.style.backgroundColor=_.Hr(C):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.n.onLoad_=function(){_.ot(this.hostElement).querySelector("#img").src&&_.ot(this.hostElement).querySelector("#img").src!==dI8&&(KIA(this.hostElement),this.notifyOnLoaded&&_.oo(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.n.onError_=function(){var C=this;if(_.y("web_use_cache_for_image_fallback"))VOI(_.ot(this.hostElement).querySelector("#img").src).then(function(F){C.objectURL_=_.g9(F).toString();C.setSrc_(C.objectURL_)}).catch(function(){_.y("kevlar_woffle_fallback_image")&&C.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.n.onPrescanVisible=function(){this.onShow_()};
_.n.onVisible=function(){if(_.y("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.n.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var C=this.computeSrc_();C!==_.ot(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(C))}};
_.n.onReload_=function(){this.empty_=!1;var C=this.computeSrc_();C!==_.ot(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(C))};
_.n.shouldShowPlaceholder_=function(){return _.y("kevlar_thumbnail_bg")};
fJ.prototype.observePlaceholderColor_=fJ.prototype.observePlaceholderColor_;fJ.prototype.delayedSrcChanged_=fJ.prototype.delayedSrcChanged_;fJ.prototype.thumbnailChanged_=fJ.prototype.thumbnailChanged_;_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],fJ.prototype,"alt",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],fJ.prototype,"ariaHidden",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],fJ.prototype,"ariaLabel",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],fJ.prototype,"hidden",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],fJ.prototype,"id",void 0);_.R([_.w(_.r6.YtVisibilityBehavior),_.Y("design:type",Object)],fJ.prototype,"ytVisibilityBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],fJ.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",String)],fJ.prototype,"delayedSrc",void 0);
_.R([_.L(),_.Y("design:type",Object)],fJ.prototype,"thumbnail",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],fJ.prototype,"loaded",void 0);_.R([_.L(),_.Y("design:type",Boolean)],fJ.prototype,"notifyOnLoaded",void 0);_.R([_.L(),_.Y("design:type",Number)],fJ.prototype,"height",void 0);_.R([_.L(),_.Y("design:type",Number)],fJ.prototype,"width",void 0);_.R([_.L({value:function(){return"width"}}),
_.Y("design:type",String)],fJ.prototype,"dimension",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],fJ.prototype,"fit",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],fJ.prototype,"fitHeight",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],fJ.prototype,"fitWidth",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],fJ.prototype,"objectFit",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],fJ.prototype,"objectPosition",void 0);_.R([_.L(),_.Y("design:type",String)],fJ.prototype,"preferredThumbnail",void 0);_.R([_.L({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.Y("design:type",String)],fJ.prototype,"alt_",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],fJ.prototype,"sharedTooltipText",void 0);
_.R([_.L(),_.Y("design:type",Boolean)],fJ.prototype,"ftlEligible",void 0);_.R([_.L({value:void 0}),_.Y("design:type",String)],fJ.prototype,"observeHiddenOption",void 0);_.R([_.L({value:"observe_once"}),_.Y("design:type",String)],fJ.prototype,"observePrescanOption",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],fJ.prototype,"roundedContainer",void 0);
_.R([_.zp("thumbnail"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fJ.prototype,"thumbnailChanged_",null);_.R([_.zp("delayedSrc"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fJ.prototype,"delayedSrcChanged_",null);_.R([_.iP("thumbnail.placeholderColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fJ.prototype,"observePlaceholderColor_",null);
_.R([_.Z5({is:"yt-img-shadow",disableElementRegistration:!0})],fJ);var dI8=_.oD("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.Tp()(fJ,"yt-img-shadow",function(){if(efO===void 0){var C=document.createElement("template");_.X(C,'\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">');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;AeP===void 0&&(AeP=document.createElement("template"));var V=AeP;G.call(F,V.content.cloneNode(!0),C.content.firstChild);efO=C}C=efO;return C},{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 C1o;_.hS=new _.jh("SCREEN_MANAGER_TOKEN");C1o=new _.jh("LOG_INITIAL_SCREEN_TOKEN");var xIu=_.U4({entities:{}});_.cn=_.HB(xIu)(xIu.entities,{selectSfvAudioItemPlaybackState:function(C,F){var G,V;C=(V=_.jN(C,"sfvAudioItemCurrentlyPlayingEntity",F))!=null?V:void 0;return(G=C==null?void 0:C.sfvAudioItemPlaybackState)!=null?G:void 0},
playlistLoopStateEntitySelector:p7i,toggleMenuServiceItemEntitySelector:m89});_.AS=_.d(function(C){function F(C9){return _.Z(C9,_.jl)}
function G(){var C9=V().isTogglingDisabled||S()&&V().toggledIsTogglingDisabled,Wo=C9||H()?S():!S();f(Wo);A(!1);if(!C9){var EB;(EB=z)==null||EB(!!Wo)}var L9;((L9=b)==null?0:L9())||_.MJ(_.I8().resolve(_.hS),V().trackingParams);var ki;if(!Wo||!F(V().defaultButtonViewModel)||(ki=b)!=null&&ki()){var lZ;!F(V().toggledButtonViewModel)||((lZ=b)==null?0:lZ())||_.MJ(_.I8().resolve(_.hS),F(V().toggledButtonViewModel).trackingParams)}else _.MJ(_.I8().resolve(_.hS),F(V().defaultButtonViewModel).trackingParams)}
var V=C.data,J=C.buttonShapeOverrides,b=C.disableExplicitClickLogging,z=C.onToggle,Q=C.style,E=C.useOutlinedIcon,t=C.className,k=function(){var C9,Wo;return S()?(C9=C.animatedTextPropsToggled)==null?void 0:C9.call(C):(Wo=C.animatedTextPropsDefault)==null?void 0:Wo.call(C)},U=_.w0(function(){return k()?Object.assign({},k(),{shouldAnimate:c()}):void 0},void 0,"Zp4uoe"),H=function(){var C9;
return((C9=g())==null?void 0:C9.isToggled)!==void 0},l=_.u(_.Gb(function(){var C9,Wo,EB;
return H()?(C9=g())==null?void 0:C9.isToggled:(EB=J==null?void 0:(Wo=J())==null?void 0:Wo.toggled)!=null?EB:V().isToggled})),N=l.next().value;
l=l.next().value;var S=N,f=l;l=_.u(_.Gb(function(){var C9,Wo;return(C9=C.animatedTextPropsToggled)==null?void 0:(Wo=C9.call(C))==null?void 0:Wo.shouldAnimate}));
N=l.next().value;l=l.next().value;var c=N,A=l;N=_.u(_.yH(!1,void 0,"mq3Zfe"));var T=N.next().value,P=N.next().value,g=_.nZ(function(C9){a:{var Wo=V().entityKey,EB=V().toggledStateEntitySelectorType;if(EB)switch(EB){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!Wo)break;C9=_.cn.selectSfvAudioItemPlaybackState(C9,Wo);if(C9==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){C9={isToggled:!0};break a}if(C9){C9={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":C9=
{isToggled:_.FLq(C9).includes("engagement-panel-comments-section")};break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":C9={isToggled:_.FLq(C9).includes("engagement-panel-live-chat-item-section")};break a;default:_.Yw(new _.Ay("Error: entitySelectorType defined but not matched in selector.",C9,EB))}C9=void 0}return C9}),r=function(){return Object.assign({},J==null?void 0:J(),{onToggle:G,
toggleable:!0,toggled:S(),focused:T()})};
return _.W("toggle-button-view-model",{"on:focusin":_.CZ(function(){var C9=_.I8().resolve(_.Qt(_.uc));C9&&P(C9.isKeyBoardInUse());return!1}),
"on:focusout":_.CZ(function(){P(!1);return!1})},_.W(_.a,{cond:function(){return S()?F(V().toggledButtonViewModel):F(V().defaultButtonViewModel)},
then:function(C9){return _.W(_.tS,{data:C9,className:t,style:Q,useOutlinedIcon:E,buttonOverrides:r,animatedTextProps:U})}}))},"ca");
_.AS.idomCompat={callbacks:{onToggle:!0}};_.gQ(_.d(function(C){return _.W("yt-toggle-button-view-model",{class:function(){var F;return(F=C.scopingClassName)==null?void 0:F.call(C)}},_.W(_.AS,{data:function(){var F;
return(F=C.data)==null?void 0:F.call(C)},
buttonShapeOverrides:function(){var F;return(F=C.overrides)==null?void 0:F.call(C)},
animatedTextPropsDefault:function(){var F;return(F=C.animatedTextPropsDefault)==null?void 0:F.call(C)},
animatedTextPropsToggled:function(){var F;return(F=C.animatedTextPropsToggled)==null?void 0:F.call(C)},
disableExplicitClickLogging:function(){var F;return(F=C.disableExplicitClickLogging)==null?void 0:F.call(C)},
onToggle:function(F){var G;return(G=C.onToggle)==null?void 0:G.call(C,F)},
style:function(){var F;return(F=C.style)==null?void 0:F.call(C)},
useOutlinedIcon:function(){var F;return(F=C.useOutlinedIcon)==null?void 0:F.call(C)},
className:function(){var F;return(F=C.className)==null?void 0:F.call(C)}}))},"da"),"yt-toggle-button-view-model",{props:{data:_.CJ,
buttonShapeOverrides:_.CJ,overrides:_.CJ,animatedTextPropsDefault:_.CJ,animatedTextPropsToggled:_.CJ,disableExplicitClickLogging:_.CJ,onToggle:_.s9,style:_.CJ,useOutlinedIcon:_.CJ,className:_.CJ,scopingClassName:_.CJ}});var ep=function(){return _.B.apply(this,arguments)||this};
_.O(ep,_.B);ep.prototype.onTap=function(C){C.stopPropagation();C=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.kZ("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:C})):this.ytLiveChatReduxBehavior.dispatch(_.z3("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:C}))};
_.I6.Object.defineProperties(ep.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.engagementState)==null?void 0:C.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var C=_.Z(this.data.toggleButton,_.Gz),F;if(Number(((F=this.likeCountState)==null?void 0:F.likeCountIfIndifferentNumber)||"0")===0){var G;F=((G=this.data.likeCountPlaceholder)==null?void 0:G.content)||""}else{var V,J,b;F=((V=this.likeCountState)==null?void 0:(J=V.likeCountIfIndifferent)==null?void 0:J.content)||((b=this.data.likeCountPlaceholder)==null?void 0:b.content)||""}var z,Q;G=((z=this.likeCountState)==null?void 0:(Q=
z.likeCountIfLiked)==null?void 0:Q.content)||"1";z=_.Z(C.toggledButtonViewModel,_.jl);return Object.assign({},C,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.Z(C.defaultButtonViewModel,_.jl),{title:F})},toggledButtonViewModel:{buttonViewModel:Object.assign({},z,{title:G})}})}}}});
ep.prototype.onTap=ep.prototype.onTap;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],ep.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ep.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.g6),_.Y("design:type",Object)],ep.prototype,"ytLiveChatReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],ep.prototype,"data",void 0);
_.R([_.L({selectorArgs:["data.likeCountEntityKey"],selector:G9B}),_.Y("design:type",Object)],ep.prototype,"likeCountState",void 0);_.R([_.L({selectorArgs:["data.engagementStateKey"],selector:zps}),_.Y("design:type",Object)],ep.prototype,"engagementState",void 0);_.R([_.M("data","engagementState"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ep.prototype,"isLiked",null);
_.R([_.M("data","likeCountState","isLiked"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ep.prototype,"toggleButton",null);_.R([_.VG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],ep.prototype,"onTap",null);_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],ep);
_.q(ep,"yt-live-chat-like-button-view-model",function(){if(PoE===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;qPo===void 0&&(qPo=document.createElement("template"));var V=qPo;G.call(F,V.content.cloneNode(!0),C.content.firstChild);PoE=C}C=PoE;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var sU$;var qeo;var dq=function(){return _.B.apply(this,arguments)||this};
_.O(dq,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],dq.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],dq.prototype,"data",void 0);_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],dq);
_.q(dq,"yt-live-chat-paid-message-footer-renderer",function(){if(qeo===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;sU$===void 0&&(sU$=document.createElement("template"));var V=sU$;G.call(F,V.content.cloneNode(!0),C.content.firstChild);qeo=C}C=qeo;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var PAy;var goE;var Rfl;var YeO,TxP=function(){if(YeO!==void 0)return YeO;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;Rfl===void 0&&(Rfl=document.createElement("template"));var V=Rfl;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return YeO=C};var xa=function(){return _.B.apply(this,arguments)||this};
_.O(xa,_.B);xa.prototype.onTap=function(C){C.stopPropagation()};
_.I6.Object.defineProperties(xa.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var C=_.Z(this.data.replyButton,_.jl),F,G,V,J,b,z,Q,E=Number(((F=this.replyCountState)==null?void 0:F.replyCountNumber)||"0")===0?(G=this.data)==null?void 0:(V=G.replyCountPlaceholder)==null?void 0:V.content:((J=this.replyCountState)==null?void 0:(b=J.replyCount)==null?void 0:b.content)||((z=this.data)==null?void 0:(Q=z.replyCountPlaceholder)==null?void 0:Q.content)||"",t;return Object.assign({},
C,{title:E,accessibilityText:(t=this.replyCountState)==null?void 0:t.replyButtonAccessibilityText})}}}});
_.I6.Object.defineProperties(xa,{template:{configurable:!0,enumerable:!0,get:function(){return TxP()}}});
xa.prototype.onTap=xa.prototype.onTap;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],xa.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],xa.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.g6),_.Y("design:type",Object)],xa.prototype,"ytLiveChatReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],xa.prototype,"data",void 0);
_.R([_.L({selectorArgs:["data.replyCountEntityKey"],selector:function(C,F){return _.jN(C.entities,"replyCountEntity",F)}}),
_.Y("design:type",Object)],xa.prototype,"replyCountState",void 0);_.R([_.M("data","replyCountState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],xa.prototype,"buttonViewModel",null);_.R([_.VG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],xa.prototype,"onTap",null);_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],xa);
_.q(xa,"yt-live-chat-reply-button-view-model",function(){return TxP()},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var oo8;var re$;var sb=function(){var C=_.B.apply(this,arguments)||this;C.ariaLabel="";return C};
_.O(sb,_.B);
sb.prototype.dataChanged=function(){for(var C=(0,_.C5)(_.ot(this.hostElement).querySelector("#image"));C.firstChild;)C.removeChild(C.firstChild);if(this.data)if(this.data.icon){var F=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(F.polymerController.icon="yt-sys-icons:shield-filled",F.polymerController.defaultToFilled=!0):F.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();C.appendChild(F)}else if(this.data.customThumbnail){F=document.createElement("img");
var G=_.PoS(this.data.customThumbnail.thumbnails,16);G?(F.src=G,C.appendChild(F),F.setAttribute("alt",this.hostElement.ariaLabel||"")):_.Yw(new _.Ay("Could not compute URL for thumbnail",this.data.customThumbnail))}};
sb.prototype.identity=function(C){return C};
sb.prototype.computeType=function(C){return rk(C||void 0)};
sb.prototype.dataChanged=sb.prototype.dataChanged;_.R([_.L(),_.Y("design:type",Object)],sb.prototype,"data",void 0);_.R([_.L({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.Y("design:type",Object)],sb.prototype,"ariaLabel",void 0);_.R([_.L({computed:"computeType(data)",reflectToAttribute:!0}),_.Y("design:type",String)],sb.prototype,"type",void 0);
_.R([_.L({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.Y("design:type",String)],sb.prototype,"sharedTooltipText",void 0);_.R([_.L({reflectToAttribute:!0,value:function(){return _.y("live_chat_enable_new_moderator_badge")}}),
_.Y("design:type",Boolean)],sb.prototype,"enableNewModeratorBadge",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sb.prototype,"dataChanged",null);_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],sb);
_.q(sb,"yt-live-chat-author-badge-renderer",function(){if(re$===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;oo8===void 0&&(oo8=document.createElement("template"));var V=oo8;G.call(F,V.content.cloneNode(!0),C.content.firstChild);re$=C}C=re$;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var KGP;var DIu;var qQ=function(){return _.B.apply(this,arguments)||this};
_.O(qQ,_.B);_.n=qQ.prototype;_.n.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"}}}}};
_.n.computeBadgesInsideChip=function(C){return C?C.filter(function(F){return rk(F.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.n.computeBadgesOutsideChip=function(C){return this.prependChatBadges||!C?[]:C.filter(function(F){F=rk(F.liveChatAuthorBadgeRenderer);return F!=="verified"&&F!=="owner"})};
_.n.computeBadgesBeforeChip=function(C){return this.prependChatBadges&&C?C.filter(function(F){F=rk(F.liveChatAuthorBadgeRenderer);return F!=="verified"&&F!=="owner"}):[]};
_.n.computeIsHighlighted=function(C,F){var G=!!$Bs(C,"owner"),V=!!$Bs(C,"verified");C=!!$Bs(C,"moderator");return(G||V&&!C)&&!F};
_.n.computeAuthorType=function(C){return J$q(C)};
_.n.computeAuthorClass=function(C,F){return F?(C?C+" ":"")+"single-line":C};
_.n.onSeedColorChanged=function(){_.y("live_chat_author_name_color_usernames")||_.y("live_chat_seed_color_usernames")||_.y("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):_.y("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
qQ.prototype.onSeedColorChanged=qQ.prototype.onSeedColorChanged;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],qQ.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],qQ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],qQ.prototype,"authorName",void 0);_.R([_.L(),_.Y("design:type",Array)],qQ.prototype,"authorBadges",void 0);
_.R([_.L({computed:"computeAuthorType(authorBadges)"}),_.Y("design:type",String)],qQ.prototype,"authorType",void 0);_.R([_.L({computed:"computeAuthorClass(authorType, singleLine)"}),_.Y("design:type",String)],qQ.prototype,"authorClass",void 0);_.R([_.L({computed:"computeBadgesInsideChip(authorBadges)"}),_.Y("design:type",Array)],qQ.prototype,"badgesInsideChip",void 0);_.R([_.L({computed:"computeBadgesOutsideChip(authorBadges)"}),_.Y("design:type",Array)],qQ.prototype,"badgesOutsideChip",void 0);
_.R([_.L({computed:"computeBadgesBeforeChip(authorBadges)"}),_.Y("design:type",Array)],qQ.prototype,"badgesBeforeChip",void 0);_.R([_.L({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],qQ.prototype,"isHighlighted",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],qQ.prototype,"singleLine",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],qQ.prototype,"disableHighlighting",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],qQ.prototype,"dashboardMoneyFeed",void 0);_.R([_.L({value:_.y("live_chat_prepend_badges"),reflectToAttribute:!0}),_.Y("design:type",Boolean)],qQ.prototype,"prependChatBadges",void 0);_.R([_.L(),_.Y("design:type",String)],qQ.prototype,"authorNameColor",void 0);_.R([_.$z("#author-name"),_.Y("design:type",HTMLDivElement)],qQ.prototype,"username",void 0);
_.R([_.iP("authorNameColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qQ.prototype,"onSeedColorChanged",null);_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],qQ);
_.q(qQ,"yt-live-chat-author-chip",function(){if(DIu===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;KGP===void 0&&(KGP=document.createElement("template"));var V=KGP;G.call(F,V.content.cloneNode(!0),C.content.firstChild);DIu=C}C=DIu;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var pEl;var mI7;var Pn=function(){var C=_.B.apply(this,arguments)||this;C.debounceCommand=_.kk(function(F){C.ytComponentBehavior.resolveCommand(F)},1500);
return C};
_.O(Pn,_.B);Pn.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var C=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",F,G,V=this.isHearted?(F=this.data)==null?void 0:F.unheartCommand:(G=this.data)==null?void 0:G.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.kZ("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:C}));(C=_.ZD(V))&&this.debounceCommand(C)}};
_.I6.Object.defineProperties(Pn.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var C,F;if(!((C=this.data)==null?0:(F=C.creatorThumbnail)==null?0:F.sources))return{};C={thumbnails:[]};F={};F.url=this.data.creatorThumbnail.sources[0].url;C.thumbnails.push(F);return C}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var C,F;return((C=this.engagementState)==null?void 0:C.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((F=this.engagementState)==null?void 0:F.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var C,F;return((C=this.engagementState)==null?void 0:C.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((F=this.engagementState)==null?void 0:F.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.engagementState)==null?void 0:C.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var C,F,G;return((C=this.engagementState)==null?void 0:C.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((F=this.engagementState)==null?void 0:F.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((G=this.engagementState)==null?void 0:G.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}}});
Pn.prototype.onTap=Pn.prototype.onTap;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Pn.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Pn.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.g6),_.Y("design:type",Object)],Pn.prototype,"ytLiveChatReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Pn.prototype,"data",void 0);
_.R([_.L({selectorArgs:["data.engagementStateKey"],selector:zps}),_.Y("design:type",Object)],Pn.prototype,"engagementState",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Pn.prototype,"thumbnailDetails",null);_.R([_.M("data","engagementState"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Pn.prototype,"isHearted",null);_.R([_.M("data","engagementState"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Pn.prototype,"isEditable",null);
_.R([_.M("data","engagementState"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Pn.prototype,"showCreatorView",null);_.R([_.M("data","engagementState"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Pn.prototype,"showButton",null);_.R([_.M("data","isHearted"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Pn.prototype,"label",null);_.R([_.M("data","isHearted"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Pn.prototype,"heartHoverText",null);
_.R([_.VG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Pn.prototype,"onTap",null);_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],Pn);
_.q(Pn,"yt-live-chat-creator-heart-view-model",function(){if(mI7===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;pEl===void 0&&(pEl=document.createElement("template"));var V=pEl;G.call(F,V.content.cloneNode(!0),C.content.firstChild);mI7=C}C=mI7;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var gq=function(C,F){this.serviceId=new nym(C,F)};
gq.prototype.toString=function(){return this.serviceId.toString()};var C$m=function(){this.internalMap={}};
_.n=C$m.prototype;_.n.contains=function(C){return Object.prototype.hasOwnProperty.call(this.internalMap,C)};
_.n.get=function(C){if(this.contains(C))return this.internalMap[C]};
_.n.set=function(C,F){this.internalMap[C]=F};
_.n.getKeys=function(){return Object.keys(this.internalMap)};
_.n.remove=function(C){delete this.internalMap[C]};var Rk=function(){this.mappings=new C$m;this.errorCallbacks=new Set};
Rk.prototype.getModuleId=function(C){return C.serviceId.getModuleId()};
Rk.prototype.get=function(C){var F=this.mappings.get(C.toString());return jZr(this,F,C)};
Rk.prototype.getMultipleAsync=function(){var C=_.Rn.apply(0,arguments),F=this,G=C.map(function(E){return F.getModuleId(E)}),V=C.map(function(E){return F.mappings.get(E.toString())}).filter(function(E){return E});
if(V.length===C.length)return _.mE(V.map(function(E,t){return jZr(F,E,C[t])}));
var J=sD().loadMultiple(G);V=_.NX(G.map(function(E){return J[E]}));
var b=document.hidden,z=-1,Q=_.a8("get_async_timeout_ms",-1);Q>-1&&(z=setTimeout(function(){_.Yw(new _.Ay("Module timeout.",G,b,document.hidden))},Q));
return _.OW(V.then(function(){return C.map(function(E){return jZr(F,F.mappings.get(E.toString()),E)})}).thenCatch(function(E){for(var t=_.u(F.errorCallbacks),k=t.next();!k.done;k=t.next())k=k.value,k(E);
throw E;}),function(){clearTimeout(z)})};
Rk.prototype.registerService=function(C,F){this.mappings.set(C.toString(),{type:"mapping",value:F});return C};
var jZr=function(C,F,G){switch(F.type){case "mapping":return F.value;case "factory":return F=F.value(),C.mappings.set(G.toString(),{type:"mapping",value:F}),F;default:return _.r2(F)}};
Rk.prototype.onLoadError=function(C){var F=this;this.errorCallbacks.add(C);return function(){F.errorCallbacks.delete(C)}};
_.Ya=new Rk;var Fc7=function(){};
_.n=Fc7.prototype;
_.n.JSC$14167_getRequest=function(C,F,G){F=F===void 0?{}:F;G=G===void 0?I8r:G;var V=F;if(this.isNavigationCommand()){var J,b=(J=_.Z(C==null?void 0:C.commandMetadata,_.GU))==null?void 0:J.url;V=_.ENZ(C.clickTrackingParams,!0,!1,b,this.JSC$14167_getClientScreen(V))}else V=_.ENZ(C.clickTrackingParams,!1,this.includeCsn);V={context:V};if(J=this.getExtension(C))return this.JSC$14167_buildRequest(V,J,F),J=this.getApiUrl(C),b=Object.assign({},{command:C},this.getRequestConfig(C,F)),V={input:J,requestShell:c9(J),
innerTubeRequest:V,config:b},V.config.authStrategy?V.config.authStrategy.identity=G:V.config.authStrategy={identity:G},(C=this.JSC$14167_getRequestKey(C,F))&&!V.config.requestKey&&(V.config.requestKey=C),V;C=new _.Ay("Error: Failed to create Request from Command.",C);_.gD(C)};
_.n.getApiUrl=function(C){var F=_.qW(this.getApiPaths(C)),G;(C=(G=_.Z(C.commandMetadata,_.GU))==null?void 0:G.apiUrl)&&(F=C);return qXW(sYq(F))};
_.n.isNavigationCommand=function(){return!1};
_.n.JSC$14167_getClientScreen=function(){};
_.n.JSC$14167_getRequestKey=function(){};
_.n.getRequestConfig=function(){};
_.I6.Object.defineProperties(Fc7.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var TV=function(){};
_.O(TV,Fc7);TV.prototype.JSC$14174_getStoreKey=function(){};
TV.prototype.JSC$14167_getRequestKey=function(C,F){F=F===void 0?{}:F;return this.JSC$14174_getStoreKey(C,F)};var ok=function(){};
_.O(ok,TV);ok.prototype.JSC$14167_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:c9("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
ok.prototype.getApiPaths=function(){return[]};
ok.prototype.getExtension=function(){};
ok.prototype.JSC$14167_buildRequest=function(){};var Ggy={},Vkm=(Ggy.GET_DATASYNC_IDS=XX(ok),Ggy);var iIP,J_S,$88,IVm,rq,zpO,bIG,uR2,nMm;iIP="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");J_S=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.BB=function(C,F,G,V,J,b,z,Q,E){this.endpointMap=C;this.networkManager=F;this.authService=G;this.responseProcessorMap=V;this.innertubeResponseStore=J;this.contextProcessors=b;this.asyncContextProcessors=z;this.localInnertubeRouter=Q;this.requestSequencer=E;this.inflightRequests=new Map;C.signalEndpointMap||(C.signalEndpointMap={});C.signalEndpointMap=Object.assign({},Vkm,C.signalEndpointMap)};
$88=function(C,F,G,V,J,b,z,Q,E){if(_.BB.instance!==void 0){if(V=_.BB.instance,C=[C!==V.endpointMap,F!==V.networkManager,G!==V.authService,J!==V.innertubeResponseStore,b!==V.contextProcessors,z!==V.asyncContextProcessors,Q!==V.localInnertubeRouter],C.some(function(t){return t}))throw new _.Ay("InnerTubeTransportService is already initialized",C);
}else _.BB.instance=new _.BB(C,F,G,V,J,b,z,Q,E)};
_.fZ=function(C,F,G){var V=V===void 0?I8r:V;var J=bIG(C,F);return J?new _.N1(function(b,z){var Q,E,t,k,U;return _.I(function(H){switch(H.nextAddress){case 1:return H.yield(J,2);case 2:Q=H.yieldResult;E=Q.JSC$14167_getRequest(F,G,V);if(!E){z(new _.Ay("Error: Failed to build request for command.",F));H.jumpTo(0);break}O6(E.input);k=((t=E.requestShell)==null?void 0:t.mode)==="cors"?"cors":void 0;if(C.authService.syncHeaders){U=nMm(E.config,k);H.jumpTo(4);break}return H.yield(uR2(E.config,k),5);case 5:U=
H.yieldResult;case 4:b(zpO(C,E,U)),_.S9(H)}})}):_.W6(new _.Ay("Error: No request builder found for command.",F))};
IVm=function(C,F,G,V){var J=J===void 0?I8r:J;var b,z,Q,E,t,k,U,H,l,N,S,f,c,A,T,P,g,r;return _.I(function(C9){switch(C9.nextAddress){case 1:b=$gw(F,C.endpointMap);if(!b)throw new _.Ay("Error: No streaming request builder found for command",F);z=b.JSC$14167_getRequest(F,G,J);if(!z)throw new _.Ay("Failed to build YtRequest for streaming Command",F);if((Q=C.localInnertubeRouter)==null||!Q.shouldPreferLocalResponse(z.input,z.innerTubeRequest)){C9.jumpTo(2);break}return C9.yield(C.localInnertubeRouter.localInnertubeResponse(z.input,
z.innerTubeRequest),3);case 3:return E=C9.yieldResult,t={},E.playerResponse&&(rq(C,E.playerResponse,z),t.player=E.playerResponse,(k=V)==null||k(t,E)),E.watchNextResponse&&(rq(C,E.watchNextResponse,z),t.content=E.watchNextResponse,(U=V)==null||U(t,E)),C9.return(t);case 2:l=((H=z.requestShell)==null?void 0:H.mode)==="cors"?"cors":void 0;if(C.authService.syncHeaders){N=nMm(z.config,l);C9.jumpTo(4);break}return C9.yield(uR2(z.config,l),5);case 5:N=C9.yieldResult;case 4:return c=(f=(S=z.requestShell)==
null?void 0:S.headers)!=null?f:{},z.requestShell=Object.assign({},z.requestShell,{headers:Object.assign({},c,N)}),A=Object.assign({},z.requestShell),T=JSON.stringify(z.innerTubeRequest),z.requestShell.method==="POST"&&(A=Object.assign({},A,{body:T})),P=function(Wo,EB){rq(C,EB.playerResponse||EB.watchNextResponse||EB.reelItemWatchResponse||EB.reelWatchSequenceResponse,z);V==null||V(Wo,EB)},g={},C9.yield(QZE(C.networkManager,z.input,A,P),6);
case 6:return g=C9.yieldResult,((r=z.config)==null?0:r.responseTick)&&_.NV(z.config.responseTick),C9.return(g)}})};
_.j8=function(C,F,G,V,J){J=J===void 0?{authStrategy:{identity:I8r}}:J;var b=b===void 0?!0:b;var z=function(){};
z=CWs(pfw(G));F.context||(F.context=_.ENZ(V,b));return new _.N1(function(Q){var E,t,k,U,H;return _.I(function(l){if(l.nextAddress==1)return E=sYq(G),t=_.hr(E),C.authService.syncHeaders?(k=nMm(J,t),l.jumpTo(2)):l.yield(uR2(J,t),3);l.nextAddress!=2&&(k=l.yieldResult);U=qXW(sYq(G));H={input:U,requestShell:c9(U),innerTubeRequest:F,config:J};Q(zpO(C,H,k,z));_.S9(l)})})};
rq=function(C,F,G){var V;if(F&&!(F==null?0:(V=F.sequenceMetaData)==null?0:V.skipProcessing)&&C.responseProcessorMap){V=_.u(iIP);for(var J=V.next();!J.done;J=V.next())J=J.value,C.responseProcessorMap[J]&&C.responseProcessorMap[J].handleResponse(F,G)}};
zpO=function(C,F,G,V){V=V===void 0?function(){}:V;
var J,b,z,Q,E,t,k,U,H,l,N,S,f,c,A,T,P,g,r,C9,Wo,EB,L9,ki,lZ,eq,OB,yr,Rl,w2,jG,Il,Bu,vu,Zr,k_,$i,Vr,Um,V8;return _.I(function(Hu){switch(Hu.nextAddress){case 1:z=(J=F.config)==null?void 0:(b=J.storeStrategy)==null?void 0:b.storeKey;if(!(z&&C.innertubeResponseStore&&C.innertubeResponseStore.has(z))||((Q=F.config)==null?0:(E=Q.storeStrategy)==null?0:E.disableCache)){Hu.jumpTo(2);break}return Hu.yield(C.innertubeResponseStore.get(z),3);case 3:if((t=Hu.yieldResult)&&!t.isExpired())return Hu.return(Promise.resolve(_.qx(t)));
case 2:if(!((k=F)==null?0:(U=k.innerTubeRequest)==null?0:U.context)){Hu.jumpTo(4);break}H=F.innerTubeRequest.context;if(!(C.asyncContextProcessors&&C.asyncContextProcessors.length>0)){Hu.jumpTo(5);break}l=[];N=_.u(C.asyncContextProcessors);for(S=N.next();!S.done;S=N.next())f=S.value,c=f.processContext(F),c.wrappedPromise_&&l.push(c.wrappedPromise_);if(!(l.length>0)){Hu.jumpTo(5);break}return Hu.yield(Promise.all(l),5);case 5:A=_.u(C.contextProcessors||[]),T=A.next();case 8:if(T.done){Hu.jumpTo(4);
break}P=T.value;return Hu.yield(P.processContext(H),9);case 9:T=A.next();Hu.jumpTo(8);break;case 4:if((g=C.localInnertubeRouter)==null||!g.shouldPreferLocalResponse(F.input,F.innerTubeRequest)){Hu.jumpTo(12);break}return Hu.yield(C.localInnertubeRouter.localInnertubeResponse(F.input,F.innerTubeRequest),13);case 13:return r=Hu.yieldResult,rq(C,r,F),Hu.return(r);case 12:return(EB=(Wo=F.config)==null?void 0:Wo.requestKey)&&C.inflightRequests.has(EB)?C9=C.inflightRequests.get(EB):(L9=JSON.stringify(F.innerTubeRequest),
eq=(lZ=(ki=F.requestShell)==null?void 0:ki.headers)!=null?lZ:{},F.requestShell=Object.assign({},F.requestShell,{headers:Object.assign({},eq,G)}),OB=Object.assign({},F.requestShell),F.requestShell.method==="POST"&&(OB=Object.assign({},OB,{body:L9})),((yr=F.config)==null?0:yr.requestTick)&&_.NV(F.config.requestTick),Rl=function(){return C.networkManager.fetch(F.input,OB,F.config)},C9=C.requestSequencer?EMy(C.requestSequencer,F,Rl):Rl(),EB&&C.inflightRequests.set(EB,C9)),Hu.yield(C9,14);
case 14:(w2=Hu.yieldResult)&&_.y("web_streaming_player")&&Array.isArray(w2)&&(w2=w2[0].playerResponse);if(w2&&"error"in w2&&((jG=w2)==null?0:(Il=jG.error)==null?0:Il.details))for(Bu=w2.error.details,vu=_.u(Bu),Zr=vu.next();!Zr.done;Zr=vu.next())k_=Zr.value,($i=k_["@type"])&&J_S.indexOf($i)>-1&&(delete k_["@type"],w2=k_);EB&&C.inflightRequests.has(EB)&&C.inflightRequests.delete(EB);((Vr=F.config)==null?0:Vr.responseTick)&&_.NV(F.config.responseTick);if(w2||(Um=C.localInnertubeRouter)==null||!Um.canProvideFallbackResponse(F.input,
F.innerTubeRequest)){Hu.jumpTo(15);break}return Hu.yield(C.localInnertubeRouter.localFallbackInnertubeResponse(F.input,F.innerTubeRequest),16);case 16:w2=Hu.yieldResult;case 15:return rq(C,w2,F),((V8=F.config)==null?0:V8.processorTick)&&_.NV(F.config.processorTick),V(),Hu.return(w2||void 0)}})};
_.vB=function(C,F){return JU5(F,C.endpointMap)};
bIG=function(C,F){C=biq(F,C.endpointMap);if(C!==void 0)return Promise.resolve(C)};
uR2=function(C,F){var G,V,J,b;return _.I(function(z){if(z.nextAddress==1){J=(G=C)==null?void 0:(V=G.authStrategy)==null?void 0:V.sessionIndex;var Q=z.yield;var E=_.mE(o2T({sessionIndex:J}));return Q.call(z,E,2)}b=z.yieldResult;return z.return(Promise.resolve(Object.assign({},nAZ(F),b)))})};
nMm=function(C,F){var G;C=C==null?void 0:(G=C.authStrategy)==null?void 0:G.sessionIndex;G=o2T({sessionIndex:C});return Object.assign({},nAZ(F),G)};var Wc2,tku,aVy,kg7,U8u,HI$,ZIu,Nyu,pJ,OIr,X7$,y_2,w72;Wc2=0;tku=/tone[1-5]/;aVy=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");kg7="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
U8u=Number.MAX_SAFE_INTEGER;HI$=RegExp("\ufe0f","g");_.KJ=function(C){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;C&&_.lVm(this,C)};
_.lVm=function(C,F){try{_.wj(F,{context:C,onSuccess:function(V,J){Array.isArray(J)?C.load(J):(V=new _.Ay("Emoji manager JSON response was not an array!",{response:J}),_.gD(V))},
onError:function(V){V=new _.Ay("Failed to retrieve emoji manager initial JSON data!",{url:F,statusCode:_.HD(V).toString()});_.Yw(V)}})}catch(V){var G=new _.Ay("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:F});
_.Yw(G)}};
_.KJ.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.KJ.prototype.load=function(C,F){if(F)if(C.length)C=C.concat(F.emojis);else{this.emojis=F.emojis;this.emojiMap=F.emojiMap;this.emojiShortcutMap=F.emojiShortcutMap;this.emojiShortcutCharMap=y_2(F);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=F.emojiRegex;return}this.emojis=[].concat(_.da(new Set(this.emojis.concat(C))));this.hasInitializedShortcutCharMap=!1;C=Array(this.emojis.length);for(F=0;F<this.emojis.length;F++){var G=this.emojis[F];if(G.emojiId){this.emojiMap[G.emojiId]=G;this.emojiMap[G.emojiId].index=
F;for(var V=0;G.shortcuts&&V<G.shortcuts.length;V++)this.emojiShortcutMap[G.shortcuts[V].toLocaleLowerCase()]=G;C[F]=G.isCustomEmoji&&G.shortcuts?G.shortcuts[0]:G.emojiId}}C.sort(function(J,b){return b.length-J.length});
if(C.length)try{this.emojiRegex=new RegExp(C.join("|").replace("*","\\*"),"gi")}catch(J){this.emojiRegex=/$./}else this.emojiRegex=/$./};
ZIu=function(C,F){F=_.u(F);for(var G=F.next();!G.done;G=F.next()){var V=G.value;if(V.emojiId&&C.emojiMap[V.emojiId]){G=Object.assign({},C.emojiMap[V.emojiId],V);C.emojiMap[V.emojiId]=G;var J=void 0;G.index&&((J=C.emojis[G.index])==null?void 0:J.emojiId)===V.emojiId&&(C.emojis[G.index]=G);V=void 0;if((V=G.shortcuts)==null?0:V.length)for(C.hasInitializedShortcutCharMap=!1,V=_.u(G.shortcuts),J=V.next();!J.done;J=V.next())C.emojiShortcutMap[J.value.toLocaleLowerCase()]=G}}};
Nyu=function(C){var F,G;_.I(function(V){if(V.nextAddress==1)return V.yield(_.P0.getInstance(),2);if(V.nextAddress!=3)return(F=V.yieldResult)?V.yield(F.get("ytlc-emoji-pref"),3):V.return();(G=V.yieldResult)&&ZIu(C,Object.keys(G).map(function(J){return{emojiId:J,stickyPrefId:G[J]}}).filter(function(J){return!!J.emojiId&&!!J.stickyPrefId}));
_.S9(V)})};
_.D7=function(C,F,G){return(C=C.emojiMap[F])&&(!C.isLocked||G!==void 0&&G)?C:void 0};
pJ=function(C,F,G){G=_.D7(C,F,G===void 0?!1:G);var V=F.match("\u200d");G&&C.skinTone!==0&&(C=(V==null?void 0:V.length)===1?_.D7(C,F.replace("\u200d",aVy[C.skinTone]+"\u200d")):_.D7(C,F+aVy[C.skinTone]))&&(G=C);return G};
OIr=function(C,F){var G=C.emojiMap[F];return(G==null?0:G.stickyPrefId)?C.emojiMap[G.stickyPrefId]:pJ(C,F)};
_.T3=function(C,F){C=C.emojiShortcutMap[F.toLocaleLowerCase()];return!C||C.isLocked?null:C};
X7$=function(C,F,G){return y_2(C,G===void 0?!1:G)[F]||{}};
y_2=function(C,F){F=F===void 0?!1:F;if(!C.hasInitializedShortcutCharMap){C.hasInitializedShortcutCharMap=!0;for(var G=0;G<C.emojis.length;G++){var V=C.emojis[G];if(!(V.isLocked||F&&V.isCustomEmoji&&V.emojiId&&!C.pickerCustomEmojiIds.includes(V.emojiId)))for(var J=0;V.shortcuts&&J<V.shortcuts.length;J++){var b=V.shortcuts[J];b.startsWith(":_")&&V.isCustomEmoji&&(C.emojiShortcutCharMap[":_"]==null&&(C.emojiShortcutCharMap[":_"]=Object.create(null)),C.emojiShortcutCharMap[":_"][b]=V);if(!(b.length<3||
!V.isCustomEmoji&&tku.test(b))){var z=b.substr(0,3).toLocaleLowerCase();C.emojiShortcutCharMap[z]==null&&(C.emojiShortcutCharMap[z]=Object.create(null));C.emojiShortcutCharMap[z][b]=V}}}}return C.emojiShortcutCharMap};
_.KJ.prototype.createEmoji=function(C,F){F=F===void 0?!0:F;var G=document.createElement("img");C.isCustomEmoji||G.classList.add("small-emoji");G.classList.add("emoji");G.classList.add("yt-formatted-string");G.src=C.image?_.RP(C.image.thumbnails,this.emojiSize)||"":"";var V=void 0;C.image&&C.image.accessibility&&C.image.accessibility.accessibilityData&&(V=C.image.accessibility.accessibilityData.label);G.alt=V?V:(C.isCustomEmoji&&C.shortcuts?C.shortcuts[0]:C.emojiId)||"";C.isCustomEmoji&&(G.dataset.emojiId=
C.emojiId);_.rp&&(G.setAttribute("contenteditable","false"),G.setAttribute("unselectable","on"));F&&(C.shortcuts&&C.shortcuts.length&&G.setAttribute("shared-tooltip-text",C.shortcuts[0]),G.id="emoji-"+Wc2++);return G};
_.KJ.prototype.createDocumentFragment=function(C,F,G,V){F=F===void 0?!1:F;G=G===void 0?!0:G;V=V===void 0?!1:V;C=C.replace(HI$,"");for(var J=document.createDocumentFragment(),b=0,z,Q=0;(z=this.emojiRegex.exec(C))!=null;){var E=_.D7(this,z[0])||_.T3(this,z[0]);!E||E.isCustomEmoji&&!F||(E=this.createEmoji(E,G),b!==z.index&&J.appendChild(document.createTextNode(C.substring(b,z.index))),J.appendChild(E),b=z.index+z[0].length,Q++)}if(!V||Q)return J.appendChild(document.createTextNode(C.substr(b))),J};
w72=function(C,F,G){var V,J,b,z,Q,E,t,k,U;return _.I(function(H){if(H.nextAddress==1){if(!F.emojiId||!C.emojiMap[F.emojiId])return H.return();V=Object.assign({},C.emojiMap[F.emojiId],{stickyPrefId:G});C.emojiMap[F.emojiId]=V;F.index&&((J=C.emojis[F.index])==null?void 0:J.emojiId)===F.emojiId&&(C.emojis[F.index]=V);if((b=F.shortcuts)==null?0:b.length)for(C.hasInitializedShortcutCharMap=!1,z=_.u(F.shortcuts),Q=z.next();!Q.done;Q=z.next())E=Q.value,C.emojiShortcutMap[E.toLocaleLowerCase()]=V;return H.yield(_.P0.getInstance(),
2)}if(H.nextAddress!=4)return(t=H.yieldResult)?H.yield(t.get("ytlc-emoji-pref"),4):H.jumpTo(0);U=(k=H.yieldResult)!=null?k:{};U[F.emojiId]=G;return H.yield(t.set("ytlc-emoji-pref",U,U8u),0)})};
_.mP=new _.KJ;var LcP;_.CK={};
LcP={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.y("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:_.y("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 A4(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 C=_.ot(this.hostElement||this).querySelector("#inline-action-button-container");C&&C.setAttribute("aria-hidden","true");this.menuButton=_.ot(this.hostElement).querySelector("#menu-button")},
attached:function(){var C=this.menuButton;C&&(C.addEventListener("focusin",_.Gp(this,this.onMenuButtonFocus_)),C.addEventListener("focusout",_.Gp(this,this.onMenuButtonBlur_)))},
detached:function(){var C=this.menuButton;C&&(C.removeEventListener("focusin",_.Gp(this,this.onMenuButtonFocus_)),C.removeEventListener("focusout",_.Gp(this,this.onMenuButtonBlur_)))},
identity:_.As,truthy:function(C){return!!C},
computeTimestampString:function(C){return C?C.timestampText?this.getSimpleString(C.timestampText):this.TIME_FORMATTER.format(new Date(C.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(C){return C},
computeMenuVisible_:function(C,F){return C||F},
computeHasInlineActionButtons:function(C){if(!C)return!1;var F,G;return!((F=C.inlineActionButtons)==null||!F.length)||!((G=C.additionalInlineActionButtons)==null||!G.length)},
createDocumentFragmentFromString:function(C){var F=_.mP.createDocumentFragment.bind(_.mP),G;if((G=this.participantsManager)==null||!G.viewerRegex)return F(C);G=document.createDocumentFragment();for(var V=0,J;(J=this.participantsManager.viewerRegex.exec(C))!=null;){if(J.index>0){var b=":"+J[0]+":";if((_.D7(_.mP,b)||_.T3(_.mP,b))&&C.indexOf(b)===J.index-1)continue}G.appendChild(F(C.substring(V,J.index)));V=document.createElement("span");V.appendChild(F(J[0]));V.classList.add("mention");G.appendChild(V);
V=J.index+J[0].length}G.appendChild(F(C.substring(V)));return G},
createDocumentFragment:function(C){var F=document.createDocumentFragment();if(C.simpleText)return F.appendChild(this.createDocumentFragmentFromString(C.simpleText)),F;if(!C.runs)return F;for(var G=0;G<C.runs.length;G++){var V=C.runs[G];if(V.emoji)F.appendChild(_.mP.createEmoji(V.emoji));else if(V.text)if(V.navigationEndpoint){var J=document.createElement("a");J.classList.add("yt-simple-endpoint");IRA(J,V.navigationEndpoint);_.ot(J).appendChild(this.createDocumentFragmentFromString(V.text));F.appendChild(J)}else F.appendChild(this.createDocumentFragmentFromString(V.text))}return F},
hasModerationOverlayVisible:function(){var C;return((C=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:C.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(C){C.composedPath().some(function(F){return(F=F instanceof Element?F:null)?F.tagName&&(F.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||F.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.y("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(C)},
colorFromDecimal:function(C){return PlE(C)},
markAsDeleted:function(C,F){this.set("data.deletedStateMessage",C);this.set("data.showOriginalContentMessage",F)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(C){if(this.data.contextMenuEndpoint){var F=_.I8().resolve(_.zt),G=this.data.contextMenuEndpoint,V;(V=_.BB.instance)&&_.vB(V,G)?(F=Mky(F,G),V=_.j8(V,{},F)):V=_.SSE(F,G);V.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);C&&C.stopPropagation()}},
handleGetContextMenuResponse_:function(C){var F=_.BB.instance;F&&_.vB(F,{liveChatEndpoint:{}})||(C=C.response);C.liveChatItemContextMenuSupportedRenderers&&C.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(C.liveChatItemContextMenuSupportedRenderers.menuRenderer);C.actions&&_.rz(this.hostElement,"yt-live-chat-actions",[C.actions])},
handleGetContextMenuError:function(C){if(C instanceof Error||C instanceof Object||C instanceof String)var F=C;_.gD(new _.Ay("Error encountered calling GetLiveChatItemContextMenu",F))},
showContextMenu_:function(C){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:C}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.oo(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.oo(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.CK.YtLiveChatItemBehavior=[LcP,_.Ys.YtComponentBehavior,_.lc.YtOpenPopupBehavior];_.ji=function(){};var ByO;var vM$;var fVy;var hp$;var Fl=function(){var C=_.B.apply(this,arguments)||this;C.active=!1;C.identity=_.As;return C};
_.O(Fl,_.B);Fl.prototype.dataChanged=function(){this.active=!1};
Fl.prototype.onClick=function(){_.oo(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
Fl.prototype.dataChanged=Fl.prototype.dataChanged;_.R([_.L(),_.Y("design:type",Object)],Fl.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Fl.prototype,"active",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fl.prototype,"dataChanged",null);_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],Fl);
_.q(Fl,"yt-live-chat-text-input-field-suggestion",function(){if(hp$===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;fVy===void 0&&(fVy=document.createElement("template"));var V=fVy;G.call(F,V.content.cloneNode(!0),C.content.firstChild);hp$=C}C=hp$;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});_.G6=function(C,F,G){return CustomEvent.call(this,C,{detail:{value:F,path:G}})||this};
_.O(_.G6,CustomEvent);_.VN=function(){var C=_.B.apply(this,arguments)||this;C.viewerName=null;C.actionMap={"yt-live-chat-actions":"onChatMessage_"};C.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];C.PARTICIPANT_TIME_USEC_=3E8;return C};
_.O(_.VN,_.B);_.n=_.VN.prototype;_.n.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.n.addParticipant=function(C){var F=_.Asq(this.participants,C,function(V,J){V=V[Object.keys(V)[0]];J=J[Object.keys(J)[0]];V=String(_.dd(V.authorName)).toLowerCase();J=String(_.dd(J.authorName)).toLowerCase();return V<J?-1:V==J?0:1}.bind(this));
if(F>=0){var G=this.participants[F];G[Object.keys(G)[0]].timestampUsec&&this.splice("participants",F,1,C)}else this.splice("participants",-F-1,0,C);C=C[Object.keys(C)[0]];F=_.dd(C.authorName).toLocaleLowerCase();G=F.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(G)||(this.allParticipantsCharMap_[G]={});this.allParticipantsCharMap_[G][F]=C};
_.n.getAuthorsFromPrefix=function(C){return this.allParticipantsCharMap_.hasOwnProperty(C)?this.allParticipantsCharMap_[C]:null};
_.n.computeViewerRegex_=function(C){if(!C)return null;C=C.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var F=C.indexOf("@")===0&&_.y("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(F+C.replace(/ /g,"\\s*")+"|^"+C.replace(/ /g,"\\s*")+"$|^"+C.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+C.replace(/ /g,"\\s*")+"$|(?<=\\s)"+C.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.n.checkForStaleParticipants_=function(){var C=this;this.trimOldParticipants_();this.asyncHandle_&&WQA(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.L5(function(){C.checkForStaleParticipants_()},3E4))};
_.n.onChatMessage_=function(C){var F=this,G=Date.now()*1E3;C.forEach(function(V){if(V=_.Z(V,lYE)){V=V.item;var J=Object.keys(V)[0];F.SUPPORTED_ITEM_TYPES_.indexOf(J)!=-1&&V[J].timestampUsec>=G-F.PARTICIPANT_TIME_USEC_&&F.addParticipant(V)}},this);
this.checkForStaleParticipants_()};
_.n.trimOldParticipants_=function(){for(var C=Date.now()*1E3,F=this.participants.length-1;F>=0;F--){var G=this.participants[F];G=G[Object.keys(G)[0]];G.timestampUsec&&G.timestampUsec<C-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",F,1)}};
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],_.VN.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],_.VN.prototype,"viewerName",void 0);_.R([_.L({computed:"computeViewerRegex_(viewerName)"}),_.Y("design:type",Object)],_.VN.prototype,"viewerRegex",void 0);_.R([_.L({value:function(){return[]},
notify:!0}),_.Y("design:type",Array)],_.VN.prototype,"participants",void 0);_.R([_.Z5({is:"yt-live-chat-participants-manager",noInjection:!0})],_.VN);var c_u=/.*([:@#].*?)$/,iF=/\u00a0/g,A_2=String.fromCharCode(160),epu={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"},JT=function(){var C=_.B.apply(this,arguments)||this;C.disabled=!1;C.liveChatRichMessageInput=null;C.messageInput=null;C.isValidWithNoInputText=!1;C.suggestions=[];C.emojiManager=_.mP;C.inputMethodEditorActive=
!1;C.suggestionIndex=-1;C.JSC$14225_lastSuggestionRange=null;return C};
_.O(JT,_.B);_.n=JT.prototype;_.n.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.n.attached=function(){_.KV&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.n.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.n.dataChanged=function(){if(!this.ignoreColorMapping){var C=!1,F={},G;for(G in epu)this.data&&this.data.hasOwnProperty(G)&&(F[epu[G]]=this.colorFromDecimal(this.data[G]),C=!0);C&&_.jr(this.hostElement,F)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.n.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.n.colorFromDecimal=function(C){C=Math.floor(Number(C));return"rgba("+[C>>16&255,C>>8&255,C&255,(C>>24&255)/255].join()+")"};
_.n.preventDrag=function(C){C.dataTransfer&&(C.dataTransfer.dropEffect="none");C.preventDefault()};
_.n.preventResize=function(C){C.returnValue=!1};
_.n.onInputChange=function(){var C=this.characterCount,F=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&F&&F.remove();if(!F&&this.characterCount>this.maxCharacterLimit){var G=window.getSelection();if(G){var V=G.getRangeAt(0);G.removeAllRanges();G.addRange(V)}}if(G=this.getCurrentRange())V=this.calculateTextBeforeRange(G),this.completeEmojisInRange(G,V,!0)||this.updateSuggestions(G,V);V=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(V);
_.oo(this.hostElement,"yt-live-chat-message-input-change",V);F&&this.characterCount===0&&F.remove();G&&G.commonAncestorContainer.parentElement.id==="input"&&G.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>C):G&&!G.collapsed&&G.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(C=this.input.childNodes.length-1;C>=0;C--)this.input.childNodes[C].nodeName==="BR"&&this.input.childNodes[C].remove()};
_.n.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.n.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var C=this.getCurrentRange();C&&C.commonAncestorContainer.parentElement.id==="input"&&C.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.n.mergeOverflowText=function(C){if(C){var F=document.createRange();F.selectNodeContents(C);F=F.extractContents();this.input.insertBefore(F,C)}};
_.n.checkRangeAtEndOfInput=function(){var C=this.getCurrentRange();if(C){var F=_.ot(this.hostElement).querySelector("#overflow-text"),G=document.createRange();F&&F.previousSibling?F.previousSibling instanceof HTMLImageElement?G.selectNode(F.previousSibling):G.selectNodeContents(F.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?G.selectNode(this.input.lastChild):G.selectNodeContents(this.input.lastChild));G.collapse(!1);return G.isPointInRange(C.startContainer,
C.startOffset)}return!1};
_.n.handleOverflowText=function(C){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var F=_.ot(this.hostElement).querySelector("#overflow-text"),G=this.getCurrentRange();this.input.normalize();C=this.checkRangeAtEndOfInput()&&C;this.mergeOverflowText(F);for(var V,J=0,b=0,z,Q=this.input.childNodes,E=0;E<Q.length;E++){var t=Q[E];t instanceof Text?(b+=t.textContent.length,b>this.maxCharacterLimit&&(V=t,J=this.maxCharacterLimit+t.textContent.length-b)):t instanceof HTMLImageElement&&
(V=void 0,b=t.dataset.emojiId&&((V=this.data)==null?0:V.emojiCharacterCount)?b+this.data.emojiCharacterCount:b+t.alt.length,V=this.input,J=E);if(b>this.maxCharacterLimit&&V){z=document.createRange();z.collapse(!1);F?(b=this.input.lastChild.previousSibling,b instanceof Text?z.setEnd(this.input.lastChild.previousSibling,b.textContent.length):b instanceof HTMLImageElement&&z.setEnd(this.input,this.input.childNodes.length-1)):z.selectNodeContents(this.input);z.setStart(V,J);break}}z&&(V=!1,G&&(C=z.isPointInRange(G.startContainer,
G.startOffset-1)),F||(F=document.createElement("span"),F.id="overflow-text",F.textContent="",F.setAttribute("contenteditable","true"),_.ot(_.ot(this.hostElement).querySelector("#input")).appendChild(F),V=!0),F&&(G=z.extractContents(),F.insertBefore(G,F.firstChild),C&&F.firstChild&&(G=document.createRange(),V?G.setStartAfter(F.lastChild):G.setStartAfter(F.firstChild),G.collapse(!0),F=window.getSelection(),F.removeAllRanges(),F.addRange(G))))}};
_.n.checkForDuplicateSpans=function(){for(var C=0;C<this.input.childNodes.length;C++){var F=this.input.childNodes[C];if(F.nodeName==="SPAN"){var G=document.createRange();G.selectNodeContents(F);G=G.extractContents();this.input.insertBefore(G,F);F.remove()}}this.handleOverflowText(!0)};
_.n.getCurrentRange=function(){var C=window.getSelection();return C&&C.rangeCount?C.getRangeAt(0).cloneRange():null};
_.n.getInputRange=function(){var C=this.getCurrentRange();if(C){for(var F=C.commonAncestorContainer,G=!1,V=_.ot(this.hostElement).querySelector("#input");F;){if(F===V){G=!0;break}F=F.parentNode}G||(C=null)}C||(C=this.getRangeAtEnd());return C};
_.n.getRangeAtEnd=function(){var C=document.createRange(),F=_.ot(this.hostElement).querySelector("#input").lastChild;!F||F.nodeName!=="#text"&&F.nodeName!=="SPAN"?(C.selectNodeContents(_.ot(this.hostElement).querySelector("#input")),C.collapse(!1)):F.nodeName==="#text"?C.setStart(F,F.textContent.length):C.setStart(F,F.childNodes.length);return C};
_.n.getChatParticipantSuggestions=function(C,F,G,V){var J=_.y("live_chat_enable_handles_web_text_input_update");if(F)for(var b in F)if(b.indexOf(C)===0||J&&b.indexOf(G+C)===0){var z=F[b],Q=_.dd(z.authorName);V.push({suggestion:{author:!0,authorType:G,image:z.authorPhoto,alt:Q,text:Q}});if(V.length>=64)break}};
_.n.getSuggestions=function(C){var F=[],G=C.substring(0,3),V=X7$(_.mP,G,!0);if(V)for(var J in V)if(J.toLocaleLowerCase().indexOf(C)===0){var b=V[J];if(b&&b.emojiId){if(b=OIr(_.mP,b.emojiId)){var z=void 0,Q=void 0,E=void 0,t=void 0,k=((z=b.image)==null?0:(Q=z.accessibility)==null?0:(E=Q.accessibilityData)==null?0:E.label)||b.isCustomEmoji?(t=b.shortcuts)==null?void 0:t[0]:b.emojiId;F.push({suggestion:{emoji:!0,image:b.image,alt:k,text:J,textToInsertWhenSelected:b.isCustomEmoji?J:k}})}if(F.length>=
64)break}}if(!this.participantsManager)return null;if(G.indexOf("@")===0||G.indexOf("#")===0)V=G.charAt(0),C=C.substring(1),J=_.y("live_chat_enable_handles_web_text_input_update"),G.indexOf("@")===0&&J&&(J=this.participantsManager.getAuthorsFromPrefix(G.substring(0,2)),this.getChatParticipantSuggestions(C,J,V,F)),G=G.substring(1),G=this.participantsManager.getAuthorsFromPrefix(G),this.getChatParticipantSuggestions(C,G,V,F);return F?F.sort(function(U,H){return H.suggestion.text<U.suggestion.text?-1:
H.suggestion.text===U.suggestion.text?0:1}):null};
_.n.insertSuggestion=function(C){var F=_.y("live_chat_enable_handles_web_text_input_update"),G=C.authorType;F=C.text.indexOf(G)===0&&F?C.text+A_2:G+C.text+A_2;C.emoji?this.insertTextAtRange(this.JSC$14225_lastSuggestionRange,C.textToInsertWhenSelected||""):C.author&&this.insertTextAtRange(this.JSC$14225_lastSuggestionRange,F)};
_.n.updateSuggestionsAtCaret=function(){var C=this.getCurrentRange();C&&this.updateSuggestions(C,this.calculateTextBeforeRange(C))};
_.n.offsetStartOfRangeBy=function(C,F){for(;F>0;)if(C.startOffset-F>=0){C.setStart(C.startContainer,C.startOffset-F);break}else{F=C.startContainer instanceof HTMLImageElement?F-C.startContainer.alt.length:F-C.startOffset;var G=C.startContainer.previousSibling;if(!G){C.setStart(C.startContainer,0);break}if(_.y("live_chat_require_space_for_autocomplete_emoji")){var V=void 0,J=void 0;C.setStart(G,((V=G)==null?void 0:(J=V.textContent)==null?void 0:J.length)||0)}else C.setStart(G,G.childNodes.length||
0)}};
_.n.updateSuggestions=function(C,F){var G=this;this.JSC$14225_lastSuggestionRange&&(this.JSC$14225_lastSuggestionRange.detach(),this.JSC$14225_lastSuggestionRange=null);if((F=c_u.exec(F))&&F.length&&(F=F[F.length-1].toLocaleLowerCase(),F.length>2&&(this.offsetStartOfRangeBy(C,F.length),this.JSC$14225_lastSuggestionRange=C,(C=this.getSuggestions(F))&&C.length))){this.suggestions=C;_.zH(this,function(){_.ot(G.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(C.length-1);return}this.dropdown.opened=!1};
_.n.completeEmojisInRange=function(C,F,G){var V=F.replace(/[\s\xa0]+$/,"");F=F.length-V.length;V=V.split(" ");V=V[V.length-1].trim().toLocaleLowerCase();var J=V.lastIndexOf(":");if(G&&!F&&J!==V.length-1)return!1;J!==-1&&(G=V.lastIndexOf(":",J-1),G!==-1&&(V=V.substring(G)));if((G=_.T3(_.mP,V))&&G.emojiId){G=OIr(_.mP,G.emojiId)||null;this.offsetStartOfRangeBy(C,V.length+F);var b,z,Q,E;V=(((b=G)==null?0:b.isCustomEmoji)?(z=G)==null?void 0:(Q=z.shortcuts)==null?void 0:Q[0]:(E=G)==null?void 0:E.emojiId)||
"";F&&(V+=A_2);this.insertTextAtRange(C,V);this.dropdown.opened=!1;return!0}return!1};
_.n.onSuggestion=function(C){this.insertSuggestion(C.detail);this.dropdown.opened=!1};
_.n.onKeyPress=function(C){C.keyCode===13&&(C.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.oo(this.hostElement,"yt-live-chat-send-message"))};
_.n.completeEmojis=function(){var C=document.createRange(),F=_.ot(this.hostElement).querySelector("#input").lastChild;F?C.setStart(F,F.childNodes.length):(C.selectNodeContents(_.ot(this.hostElement).querySelector("#input")),C.collapse(!1));this.completeEmojisInRange(C,this.calculateTextBeforeRange(C),_.y("live_chat_require_space_for_autocomplete_emoji"))};
_.n.maybePreventTextFormatting=function(C){!_.C2||!C.ctrlKey&&!C.metaKey||C.keyCode!==66&&C.keyCode!==73||(C.stopImmediatePropagation(),C.preventDefault())};
_.n.onKeyDown=function(C){this.maybePreventTextFormatting(C);if(this.dropdown.opened)switch(C.keyCode){case 27:this.dropdown.opened=!1;C.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;C.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);C.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),C.preventDefault()}};
_.n.onKeyUp=function(C){switch(C.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.rp)this.onInputChange()};
_.n.changeSuggestionIndex=function(C){if(this.dropdown.opened){var F=_.ot(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<F.children.length&&(F.children[this.suggestionIndex].active=!1);var G=this.suggestions.length;this.suggestionIndex=(C+G)%G;C=F.children[this.suggestionIndex];C.active=!0;F.scrollTop=C.offsetTop}};
_.n.onInputPaste=function(C){C.preventDefault();(C=C.clipboardData)&&C.types&&(C=C.getData("text/plain")||"",C=C.replace(/\n/g,""),this.insertText(C));(C=this.getCurrentRange())&&C.commonAncestorContainer.parentElement.id==="input"&&C.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.n.onFocus=function(){this._setFocused(!0)};
_.n.onBlur=function(){this._setFocused(!1)};
_.n.insertText=function(C){this.insertTextAtRange(this.getInputRange(),C)};
_.n.insertTextAtRange=function(C,F){if(C&&(C.collapsed||C.deleteContents(),F=_.mP.createDocumentFragment(F,!0,!1))){for(var G=_.u((F==null?void 0:F.childNodes)||[]),V=G.next();!V.done;V=G.next()){V=V.value;var J=void 0,b=void 0,z=void 0,Q=void 0,E=void 0;(z=(J=window)==null?void 0:(b=J.ShadyCSS)==null?void 0:b.ScopingShim)==null||(E=(Q=z).scopeNode)==null||E.call(Q,V,this.hostElement.localName)}G=F.lastChild;C.insertNode(F);this.focused||this.input.focus();if(this.focused){C=C.cloneRange();C.selectNodeContents(G);
C.collapse(!1);if(F=window.getSelection())F.removeAllRanges(),F.addRange(C);C.commonAncestorContainer.parentElement.id==="input"&&C.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}C=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(C);_.oo(this.hostElement,"yt-live-chat-message-input-change",C)}};
_.n.setLiveChatRichMessageInput=function(C){_.ot(_.ot(this.hostElement).querySelector("#input")).textContent="";if(C&&C.textSegments){for(var F=0;F<C.textSegments.length;F++){var G=C.textSegments[F];G.text?_.ot(_.ot(this.hostElement).querySelector("#input")).appendChild(_.mP.createDocumentFragment(G.text,!0,!1)):G.emojiId&&(G=_.D7(_.mP,G.emojiId))&&_.ot(_.ot(this.hostElement).querySelector("#input")).appendChild(_.mP.createEmoji(G,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.n.setText=function(C){this.setLiveChatRichMessageInput(C?{textSegments:[{text:C}]}:null)};
_.n.calculateTextBeforeRange=function(C){var F="",G=C.startContainer;if(G&&G instanceof Text){var V;F=((V=G.textContent)==null?void 0:V.substring(0,C.startOffset))||"";G=G.previousSibling}for(;G&&G instanceof Text;)F=G.textContent+F,G=G.previousSibling;return F.replace(iF," ")};
_.n.calculateLiveChatRichMessageInput=function(){for(var C=[],F="",G=_.ot(_.ot(this.hostElement).querySelector("#input")).childNodes,V=0;V<G.length;V++){var J=G[V];J instanceof Text?F+=J.textContent:J instanceof HTMLImageElement&&(J.dataset.emojiId?(F&&(C.push({text:F.replace(iF," ")}),F=""),C.push({emojiId:J.dataset.emojiId})):F+=J.alt)}F&&C.push({text:F.replace(iF," ")});if(G=_.ot(this.hostElement).querySelector("#overflow-text")){F="";G=G.childNodes;for(V=0;V<G.length;V++)J=G[V],J instanceof Text?
F+=J.textContent:J instanceof HTMLImageElement&&(J.dataset.emojiId?(F&&(C.push({text:F.replace(iF," ")}),F=""),C.push({emojiId:J.dataset.emojiId})):F+=J.alt);F&&C.push({text:F.replace(iF," ")})}return{textSegments:C}};
_.n.computeCharacterCount=function(C){if(!C||!C.textSegments)return 0;for(var F=0,G=0;G<C.textSegments.length;G++){var V=C.textSegments[G];if(V.text)F+=V.text.length;else if(V.emojiId){var J=void 0;if((J=this.data)==null?0:J.emojiCharacterCount)F+=this.data.emojiCharacterCount;else{var b=J=void 0,z=void 0;F+=((b=_.D7(_.mP,(J=V)==null?void 0:J.emojiId))==null?void 0:(z=b.shortcuts)==null?void 0:z[0].length)||0}}}return F};
_.n.characterCountChanged=function(){_.oo(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.n.focusedChanged=function(){this.hostElement.dispatchEvent(new _.G6("focused-changed",this.focused))};
_.n.focus=function(){this.setFocus(!1)};
_.n.focusAtEnd=function(){this.setFocus(!0)};
_.n.setFocus=function(C){C=C?this.getRangeAtEnd():this.getInputRange();_.ot(this.hostElement).querySelector("#input").focus();var F=window.getSelection();F&&(F.removeAllRanges(),F.addRange(C))};
_.n.insertEmoji=function(C){var F,G=((C==null?0:C.isCustomEmoji)?(F=C.shortcuts)==null?void 0:F[0]:C==null?void 0:C.emojiId)||"";this.insertText(G)};
_.n.computeText=function(C){if(!C||!C.textSegments)return"";for(var F="",G=0;G<C.textSegments.length;G++){var V=C.textSegments[G];if(V.text)F+=V.text;else if(V.emojiId){var J=void 0,b=void 0,z=void 0;F+=((b=_.D7(_.mP,(J=V)==null?void 0:J.emojiId))==null?void 0:(z=b.shortcuts)==null?void 0:z[0])||""}}return F};
_.n.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.I6.Object.defineProperties(JT.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.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}}});
JT.prototype.focusedChanged=JT.prototype.focusedChanged;JT.prototype.characterCountChanged=JT.prototype.characterCountChanged;JT.prototype.onSuggestion=JT.prototype.onSuggestion;JT.prototype.onMessageSet=JT.prototype.onMessageSet;JT.prototype.dataChanged=JT.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],JT.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],JT.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],JT.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],JT.prototype,"disabled",void 0);_.R([_.M("disabled"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],JT.prototype,"inputTabIndex",null);_.R([_.M("data.maxCharacterLimit"),_.L({readOnly:!0,notify:!0}),_.Y("design:type",Number),_.Y("design:paramtypes",[])],JT.prototype,"maxCharacterLimit",null);
_.R([_.M("liveChatRichMessageInput"),_.L({readOnly:!0,notify:!0}),_.Y("design:type",Number),_.Y("design:paramtypes",[])],JT.prototype,"characterCount",null);_.R([_.M("maxCharacterLimit, characterCount"),_.L({readOnly:!0,notify:!0}),_.Y("design:type",Number),_.Y("design:paramtypes",[])],JT.prototype,"remainingCharacterCount",null);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],JT.prototype,"isChatMessageInput",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],JT.prototype,"inputExpanded",void 0);_.R([_.L({readOnly:!0,notify:!0}),_.Y("design:type",Object)],JT.prototype,"liveChatRichMessageInput",void 0);_.R([_.L(),_.Y("design:type",Object)],JT.prototype,"messageInput",void 0);_.R([_.L(),_.Y("design:type",Boolean)],JT.prototype,"ignoreColorMapping",void 0);_.R([_.M("characterCount"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],JT.prototype,"hasText",null);
_.R([_.L(),_.Y("design:type",Object)],JT.prototype,"isValidWithNoInputText",void 0);_.R([_.M("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.L(),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],JT.prototype,"isInputValid",null);_.R([_.L({readOnly:!0,value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],JT.prototype,"focused",void 0);_.R([_.L(),_.Y("design:type",Array)],JT.prototype,"suggestions",void 0);
_.R([_.L(),_.Y("design:type",_.KJ)],JT.prototype,"emojiManager",void 0);_.R([_.L(),_.Y("design:type",_.VN)],JT.prototype,"participantsManager",void 0);_.R([_.L(),_.Y("design:type",Boolean)],JT.prototype,"noUnderline",void 0);_.R([_.L(),_.Y("design:type",Object)],JT.prototype,"inputMethodEditorActive",void 0);_.R([_.$z("#dropdown"),_.Y("design:type",Object)],JT.prototype,"dropdown",void 0);_.R([_.$z("#input"),_.Y("design:type",HTMLElement)],JT.prototype,"input",void 0);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],JT.prototype,"dataChanged",null);_.R([_.iP("messageInput"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],JT.prototype,"onMessageSet",null);_.R([_.VG("yt-live-chat-select-suggestion"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],JT.prototype,"onSuggestion",null);
_.R([_.iP("characterCount"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],JT.prototype,"characterCountChanged",null);_.R([_.iP("focused"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],JT.prototype,"focusedChanged",null);_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],JT);
_.d8O=_.q(JT,"yt-live-chat-text-input-field-renderer",function(){if(vM$===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;ByO===void 0&&(ByO=document.createElement("template"));var V=ByO;G.call(F,V.content.cloneNode(!0),C.content.firstChild);vM$=C}C=vM$;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var $P=function(){var C=_.B.apply(this,arguments)||this;C.buttonOverrides={style:"overlay",type:"filled"};C.allowAnimations=!1;C.modern=_.y("web_button_rework_with_live");C.noPadding=!1;return C};
_.O($P,_.B);_.n=$P.prototype;_.n.shouldSupportInlineActionButtons=function(){return!0};
_.n.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"}}}}};
_.n.ready=function(){var C=document.querySelector("yt-live-chat-app");C&&C.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.n.attached=function(){this.allowAnimations=!1};
_.n.dataChanged=function(){if(this.data){var C={"--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)};_.jr(this.hostElement,C);this.allowAnimations=!0}};
_.n.messageChanged=function(){var C,F=(C=this.data)==null?void 0:C.message;C=_.ot(_.ot(this.hostElement).querySelector("#message"));C.textContent="";F&&C.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(F))};
_.n.computeShowOnlyHeader=function(C,F){return!C||C.pdgLikeButton||C.replyButton||C.buyFlowButton?!1:this.isEmpty(C,F)&&!C.footer};
_.n.computeShowFooterDivider=function(C,F,G){return C?!!C.footer&&!this.isEmpty(C,F)&&!G:!1};
_.n.computeIsUserEditable=function(C){return!!C.inputField};
_.n.computeHasHeartButton=function(C){return(C==null?void 0:C.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(C==null?void 0:C.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(C==null?void 0:C.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.n.computeNoveltyImage=function(C){if(C.headerOverlayImage&&C.headerOverlayImage.thumbnails.length){var F=C.headerOverlayImage.thumbnails[0],G,V;if((G=C.pdgPurchasedNoveltyLoggingDirectives)==null?0:(V=G.loggingDirectives)==null?0:V.trackingParams){var J,b;IVB((J=C.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(b=J.loggingDirectives)==null?void 0:b.trackingParams)}return F.width||0}return 0};
_.n.computeAuthorPhotoSize=function(C){return(C==null?0:C.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.n.inputFocus=function(){var C=_.ot(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");C&&C.focus()};
_.n.inputInsertEmoji=function(C){var F=_.ot(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");F&&F.insertEmoji(C)};
_.n.inputMessage=function(){var C=_.ot(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),F;return C&&((F=this.data)==null?0:F.inputField)?(C.completeEmojis(),_.MG(C.liveChatRichMessageInput)):null};
_.n.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.n.isEmpty=function(C,F){return C?C.empty||!(C.message||C.inputField||F):!0};
_.n.onLowerBuyButtonClick=function(){var C,F=_.Z((C=this.data)==null?void 0:C.buyButton,_.DY);F&&F.trackingParams&&!RAW(F.command)&&(C=_.zS(F.trackingParams))&&(F=_.ZQ())&&_.ej(F,C)};
_.n.shouldSupportWholeItemClick=function(){return!0};
_.I6.Object.defineProperties($P.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?0:C.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
$P.prototype.isDeletedChanged=$P.prototype.isDeletedChanged;$P.prototype.messageChanged=$P.prototype.messageChanged;$P.prototype.dataChanged=$P.prototype.dataChanged;_.R([_.w(n5r.YtPdgLiveChatItemBehavior),_.Y("design:type",Object)],$P.prototype,"ytPdgLiveChatItemBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],$P.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.g6),_.Y("design:type",Object)],$P.prototype,"ytLiveChatReduxBehavior",void 0);
_.R([_.w(_.CK.YtLiveChatItemBehavior),_.Y("design:type",_.ji)],$P.prototype,"ytLiveChatItemBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],$P.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],$P.prototype,"data",void 0);_.R([_.L({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:zps}),_.Y("design:type",Object)],$P.prototype,"engagementState",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.Y("design:type",Boolean)],$P.prototype,"isUserEditable",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.Y("design:type",Boolean)],$P.prototype,"hasHeartButton",void 0);_.R([_.L({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],$P.prototype,"showOnlyHeader",void 0);
_.R([_.L({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],$P.prototype,"showFooterDivider",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Object)],$P.prototype,"allowAnimations",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],$P.prototype,"dashboardMoneyFeed",void 0);_.R([_.L({computed:"computeNoveltyImage(data)"}),_.Y("design:type",Number)],$P.prototype,"noveltyWidth",void 0);
_.R([_.L({computed:"computeAuthorPhotoSize(data)"}),_.Y("design:type",Number)],$P.prototype,"authorPhotoSize",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],$P.prototype,"modern",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],$P.prototype,"noPadding",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$P.prototype,"dataChanged",null);
_.R([_.iP("data.message"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$P.prototype,"messageChanged",null);_.R([_.M("data","dashboardMoneyFeed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],$P.prototype,"hideLowerBumper",null);_.R([_.iP("isDeleted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$P.prototype,"isDeletedChanged",null);
_.R([_.e({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],$P);
_.q($P,"yt-live-chat-paid-message-renderer",function(){if(goE===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;PAy===void 0&&(PAy=document.createElement("template"));var V=PAy;G.call(F,V.content.cloneNode(!0),C.content.firstChild);goE=C}C=goE;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var x8r;var sZ8;var bF=function(){var C=_.n5.apply(this,arguments)||this;C._noAccessors=!0;return C};
_.O(bF,_.n5);bF.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.TF("openPopupConfig")};
_.R([_.w(_.lc.YtOpenPopupBehavior),_.Y("design:type",Object)],bF.prototype,"ytOpenPopupBehavior",void 0);_.R([_.uP()],bF);_.nK=[_.lc.YtOpenPopupBehavior,bF.prototype];var qSm;var cB=[_.iE,mqS,_.TL,_.JR,_.eT,_.lwu,_.nd,_.$mu,_.Ud,SFA];_.y("web_watch_get_updated_metadata_response_processing")&&cB.push(_.XL$);_.y("web_continuation_response_processing")&&cB.push(_.O4);var NUq=new _.jh("RESPONSE_RECEIVED_COMMANDS"),OiZ=new _.jh("RESPONSE_RECEIVED_COMMANDS");var k9s="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),ayo=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],ts5=["GET_UNSEEN_NOTIFICATION_COUNT"];var uF=function(){var C=_.n5.apply(this,arguments)||this;C._noAccessors=!0;C.serviceEndpointHandlers=[];return C};
_.O(uF,_.n5);uF.prototype.created=function(){var C=this;this.endpointHandlerActionMap={"yt-service-request":function(F,G,V,J){var b;return WLI(C.hostElement,F,G,V,J,C.serviceEndpointHandlers,(b=C.onEntitiesUpdated)==null?void 0:b.bind(C))}}};
uF.prototype.attached=function(){_.GA(_.FV.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
uF.prototype.detached=function(){_.V3(_.FV.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.R([_.uP()],uF);_.P$l=[uF.prototype];var gM8,RpG=function(){return gM8!==void 0?gM8:gM8=document.createElement("template")};
document.head.appendChild(RpG().content);var YS7;var Tym=document.head,oME=Tym.appendChild,r_r;if(YS7===void 0){var KcE=document.createElement("template");_.X(KcE,"\x3c!--css-build:shady--\x3e");KcE.content.insertBefore(RpG().content.cloneNode(!0),KcE.content.firstChild);YS7=KcE}r_r=YS7;oME.call(Tym,r_r.content);var D8S,p7S=function(){return D8S!==void 0?D8S:D8S=document.createElement("template")};
document.head.appendChild(p7S().content);var m8P;var C32=document.head,jKu=C32.appendChild,FLG;if(m8P===void 0){var G9m=document.createElement("template");_.X(G9m,"\x3c!--css-build:shady--\x3e");G9m.content.insertBefore(p7S().content.cloneNode(!0),G9m.content.firstChild);m8P=G9m}FLG=m8P;jKu.call(C32,FLG.content);var Vsl;_.ae("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.ae("sharingRendererButtons","buttonRenderer","ytd-button-renderer");Vsl=_.y("web_button_rework")&&_.oD("BUTTON_REWORK")||_.y("web_button_rework_with_live");_.z6=function(){var C=_.B.apply(this,arguments)||this;C.isPressed=!1;C.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return C};
_.O(_.z6,_.B);_.n=_.z6.prototype;_.n.created=function(){this.showTooltips=!0};
_.n.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.n.onHintIdChanged=function(){var C=this,F,G,V=(F=this.ytButtonBehavior.data)==null?void 0:(G=F.hint)==null?void 0:G.hintRenderer;if(V&&V.hintId){F=_.KX(this.hostElement,"yt-get-opened-popups-action");F=(F&&F.length===1?F[0]:[]).length>0;var J=null;V.hintId!=="sponsor-pre-purchase"||F?V.hintId.startsWith("sponsor-post-purchase")&&!F?J=rIu("membership-manage"):V.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!F&&(J=rIu("membership-freebie-join")):J=rIu("membership-join");J&&_.gT.addLowPriorityJob(function(){for(var b=
_.u(J),z=b.next();!z.done;z=b.next())C.ytComponentBehavior.resolveCommand(z.value)})}};
_.n.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.n.onYtNavigate=function(C){var F=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(C.detail.endpoint);F&&(C.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(F))};
_.n.onYtServiceRequestSent=function(C,F){this.handleServiceRequestActions(F);_.oo(this.hostElement,"yt-service-request-sent-button-renderer")};
_.n.onServiceRequestCompleted=function(C,F){this.handleServiceRequestActions(F);_.oo(this.hostElement,"yt-service-request-completed-button-renderer")};
_.n.updateButton=function(C){var F;if(C=(F=_.Z(C,grl))==null?void 0:F.updatedButton)this.ytButtonBehavior.data=_.Z(C,_.DY)};
_.n.handleUpdateButtonAction=function(C){var F=this.ytButtonBehavior.data;F.targetId&&C.updateButtonAction.targetId&&F.targetId===C.updateButtonAction.targetId&&this.updateButton(C)};
_.n.handleServiceRequestActions=function(C){if(C=C.actions)for(var F=0;F<C.length;F++)this.updateButton(C[F])};
_.I6.Object.defineProperties(_.z6,{template:{configurable:!0,enumerable:!0,get:function(){if(qSm===void 0){var C=document.createElement("template");_.X(C,"\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");C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);qSm=C}C=qSm;return C}}});
_.z6.prototype.onServiceRequestCompleted=_.z6.prototype.onServiceRequestCompleted;_.z6.prototype.onYtServiceRequestSent=_.z6.prototype.onYtServiceRequestSent;_.z6.prototype.onYtNavigate=_.z6.prototype.onYtNavigate;_.z6.prototype.onPressedStateChanged=_.z6.prototype.onPressedStateChanged;_.z6.prototype.onHintIdChanged=_.z6.prototype.onHintIdChanged;_.R([_.L(),_.Y("design:type",Object)],_.z6.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],_.z6.prototype,"isPressed",void 0);
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],_.z6.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.no2.YtButtonBehavior),_.Y("design:type",Object)],_.z6.prototype,"ytButtonBehavior",void 0);_.R([_.w(_.nK),_.Y("design:type",Object)],_.z6.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],_.z6.prototype,"ytComponentBehavior",void 0);
_.R([_.w(LJ.YtRenderButtonBehavior),_.Y("design:type",Object)],_.z6.prototype,"ytRenderButtonBehavior",void 0);_.R([_.iP("data.hint.hintRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],_.z6.prototype,"onHintIdChanged",null);_.R([_.iP("isPressed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],_.z6.prototype,"onPressedStateChanged",null);
_.R([_.VG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],_.z6.prototype,"onYtNavigate",null);_.R([_.VG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Sn]),_.Y("design:returntype")],_.z6.prototype,"onYtServiceRequestSent",null);
_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.en]),_.Y("design:returntype")],_.z6.prototype,"onServiceRequestCompleted",null);_.R([_.e({is:"ytd-button-renderer",disableElementRegistration:Vsl})],_.z6);var QN=function(){var C=_.B.apply(this,arguments)||this;C.modern=_.y("web_button_rework_with_live");C.buttonOverrides={style:"overlay",type:"filled"};return C};
_.O(QN,_.B);_.n=QN.prototype;_.n.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"}}}}};
_.n.ready=function(){var C=document.querySelector("yt-live-chat-app");C&&C.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.n.dataChanged=function(){if(this.data&&this.data.sticker){var C=_.RP(this.data.sticker.thumbnails,this.stickerWidth);C||_.vAT(C).thenCatch(function(){_.Yw(new _.Ay("Failed to load Super Sticker with url",C))})}};
_.n.computeAuthorPhotoSize=function(C){return(C==null?0:C.isV2Style)?32:40};
_.n.computeIsV2Style=function(C){return(C==null?0:C.isV2Style)?!0:!1};
_.n.onStickerLoaded=function(C){var F,G,V;(F=_.ev(C))==null||(G=F.parentNode)==null||(V=G.classList)==null||V.add("sticker-loaded")};
_.n.computeNoveltyImageWidth=function(C){var F,G;if(C==null?0:(F=C.headerOverlayImage)==null?0:(G=F.thumbnails)==null?0:G.length){F=C.headerOverlayImage.thumbnails[0];var V,J;if((V=C.pdgPurchasedNoveltyLoggingDirectives)==null?0:(J=V.loggingDirectives)==null?0:J.trackingParams){var b,z;IVB((b=C.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(z=b.loggingDirectives)==null?void 0:z.trackingParams)}return F.width||0}return 0};
_.n.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.n.updateStickerStyles=function(){var C=this.data;C&&(C={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(C.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(C.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(C.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(C.authorNameTextColor)},
_.jr(this.hostElement,C))};
_.n.onBuyButtonClick=function(){var C,F=_.Z((C=this.data)==null?void 0:C.buyButton,_.DY);F&&!RAW(F.command)&&this.ytRendererBehavior.logExplicitClick(F)};
_.n.shouldSupportWholeItemClick=function(){return!0};
_.I6.Object.defineProperties(QN.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 C;return((C=this.data)==null?0:C.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
QN.prototype.updateStickerStyles=QN.prototype.updateStickerStyles;QN.prototype.isDeletedChanged=QN.prototype.isDeletedChanged;QN.prototype.onStickerLoaded=QN.prototype.onStickerLoaded;QN.prototype.dataChanged=QN.prototype.dataChanged;_.R([_.w(n5r.YtPdgLiveChatItemBehavior),_.Y("design:type",Object)],QN.prototype,"ytPdgLiveChatItemBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],QN.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],QN.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.CK.YtLiveChatItemBehavior),_.Y("design:type",_.ji)],QN.prototype,"ytLiveChatItemBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],QN.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],QN.prototype,"data",void 0);
_.R([_.L({computed:"computeAuthorPhotoSize(data)"}),_.Y("design:type",Number)],QN.prototype,"authorPhotoSize",void 0);_.R([_.L(),_.Y("design:type",Boolean)],QN.prototype,"isDeleted",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],QN.prototype,"dashboardMoneyFeed",void 0);_.R([_.L({computed:"computeNoveltyImageWidth(data)"}),_.Y("design:type",Number)],QN.prototype,"noveltyWidth",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],QN.prototype,"modern",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.Y("design:type",Boolean)],QN.prototype,"isV2Style",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],QN.prototype,"dataChanged",null);_.R([_.VG("yt-img-shadow-loaded"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],QN.prototype,"onStickerLoaded",null);
_.R([_.M("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],QN.prototype,"stickerWidth",null);_.R([_.M("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],QN.prototype,"stickerHeight",null);_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],QN.prototype,"hasHeartButton",null);_.R([_.M("data","dashboardMoneyFeed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],QN.prototype,"hideLowerBumper",null);
_.R([_.iP("isDeleted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],QN.prototype,"isDeletedChanged",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],QN.prototype,"updateStickerStyles",null);_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],QN);
_.q(QN,"yt-live-chat-paid-sticker-renderer",function(){if(sZ8===void 0){var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;x8r===void 0&&(x8r=document.createElement("template"));var V=x8r;G.call(F,V.content.cloneNode(!0),C.content.firstChild);sZ8=C}C=sZ8;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var ii8;var JUy;var $gl,biG=function(){return $gl!==void 0?$gl:$gl=document.createElement("template")};
document.head.appendChild(biG().content);var nA8,uOS=function(){return nA8!==void 0?nA8:nA8=document.createElement("template")};
document.head.appendChild(uOS().content);var zMS;var QK8,Iym=function(){return QK8!==void 0?QK8:QK8=document.createElement("template")};
document.head.appendChild(Iym().content);var EAl;var WL2=document.head,tsy=WL2.appendChild,ayu;if(EAl===void 0){var k9O=document.createElement("template");_.X(k9O,"\x3c!--css-build:shady--\x3e");k9O.content.insertBefore(Iym().content.cloneNode(!0),k9O.content.firstChild);EAl=k9O}ayu=EAl;tsy.call(WL2,ayu.content);var UgS=document.head,Him=UgS.appendChild,lyS;if(zMS===void 0){var Ir=document.createElement("template");_.X(Ir,"\x3c!--css-build:shady--\x3e");Ir.content.insertBefore(uOS().content.cloneNode(!0),Ir.content.firstChild);Ir.content.insertBefore(biG().content.cloneNode(!0),Ir.content.firstChild);zMS=Ir}lyS=zMS;Him.call(UgS,lyS.content);var EM=function(){var C=_.n5.apply(this,arguments)||this;C.focusedIndex=0;C.verticalOffset=0;C.verticalAlign="top";C.dynamicAlign=!0;return C};
_.O(EM,_.n5);EM.prototype.emojiUrl=function(C){C=_.D7(this.emojiManager,C);if(!C)return"";var F;C=(F=C.image)==null?void 0:F.thumbnails;return _.RP(C,24)||""};
var yU7=function(C){var F;C.emojiVariants&&(F=C.data)!=null&&F.target&&_.zH(C,function(){C.set("verticalOffset",-1*C.hostElement.clientHeight);var G=_.ot(C.hostElement).querySelector("img");G&&G.focus()})};
_.n=EM.prototype;_.n.onKeyboardEnter=function(){};
_.n.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.n.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.n.onKeyDown=function(C){switch(C.keyCode){case 13:this.onKeyboardEnter();C.preventDefault();break;case 40:this.changeFocus(1);C.preventDefault();break;case 38:this.changeFocus(-1);C.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.n.onYtEmojiSelect=function(C){var F=this,G,V,J,b,z,Q,E,t;return _.I(function(k){if(k.nextAddress==1)return V=(G=F.data)==null?void 0:G.emoji,z=((J=V)==null?void 0:J.stickyPrefId)||((b=V)==null?void 0:b.emojiId),E=(Q=C.detail)==null?void 0:Q.emojiId,z&&E&&z!==E?k.yield((t=F.emojiManager)==null?void 0:w72(t,V,E),2):k.return();_.rz(F.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[V,E]);_.S9(k)})};
_.n.changeFocus=function(C){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+C+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(C=_.ot(this.hostElement).querySelector("#variants"))&&C.children[this.focusedIndex].focus())};
_.I6.Object.defineProperties(EM.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
EM.prototype.onYtEmojiSelect=EM.prototype.onYtEmojiSelect;EM.prototype.onKeyDown=EM.prototype.onKeyDown;EM.prototype.onEmojiVariantsChanged=EM.prototype.onEmojiVariantsChanged;EM.prototype.onVerticalOffsetOrPositionTargetChanged=EM.prototype.onVerticalOffsetOrPositionTargetChanged;_.R([_.w(_.mw),_.Y("design:type",Object)],EM.prototype,"ironOverlayBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],EM.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",_.KJ)],EM.prototype,"emojiManager",void 0);
_.R([_.L(),_.Y("design:type",Object)],EM.prototype,"emojiVariants",void 0);_.R([_.L(),_.Y("design:type",Object)],EM.prototype,"focusedIndex",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],EM.prototype,"positionTarget",null);_.R([_.L({reflectToAttribute:!0}),_.M("verticalOffset","data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],EM.prototype,"isPositioned",null);_.R([_.L(),_.Y("design:type",Object)],EM.prototype,"verticalOffset",void 0);
_.R([_.L(),_.Y("design:type",Object)],EM.prototype,"verticalAlign",void 0);_.R([_.L(),_.Y("design:type",Object)],EM.prototype,"dynamicAlign",void 0);_.R([_.iP("verticalOffset","positionTarget"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],EM.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.R([_.iP("emojiVariants"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],EM.prototype,"onEmojiVariantsChanged",null);
_.R([_.VG("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],EM.prototype,"onKeyDown",null);_.R([_.VG("yt-emoji-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype",Promise)],EM.prototype,"onYtEmojiSelect",null);_.R([_.uP()],EM);var Zi8=[EM.prototype];var Nul;var Oi8;var X5E=/medium-light|medium-dark|light|medium|dark/,w5$=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,Msl=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),WL=function(){var C=_.B.apply(this,arguments)||this;C.userSelection={left:null,right:null};C.scrollAction="lock";C.isEmojiDraftInProgress=!1;return C};
_.O(WL,_.B);_.n=WL.prototype;_.n.onClick=function(C){C=_.ev(C);C instanceof HTMLImageElement&&this.selectOrUpdateEmoji(C)};
_.n.selectOrUpdateEmoji=function(C){var F=C.getAttribute("selection");F&&(F==="default"?_.oo(this.hostElement,"yt-emoji-select",_.D7(this.emojiManager,C.id)):F==="left"?this.userSelection=Object.assign({},this.userSelection,{left:C.src}):F==="right"?this.userSelection=Object.assign({},this.userSelection,{right:C.src}):F==="user"&&this.userSelection.left&&this.userSelection.right&&_.oo(this.hostElement,"yt-emoji-select",_.D7(this.emojiManager,C.id)))};
_.n.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.n.onMultiSelectorThumbnailRowChanged=function(){var C,F,G;((C=this.data)==null?0:(F=C.emoji)==null?0:(G=F.multiSelectorThumbnailRow)==null?0:G.length)&&this.openSelector()};
_.n.getThumbnailFromEmojiRow=function(C){var F,G;return(C==null?void 0:(F=C.thumbnails)==null?void 0:(G=F[0])==null?void 0:G.url)||""};
_.n.getEmojiAltTextForPartialSelector=function(C){var F;return((F=this.getThumbnailFromEmojiRow(C).match(w5$))==null?void 0:F[0])||""};
_.n.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.n.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.n.getRowSelection=function(C){return["left","right"][C]};
_.n.getIdFromComposedEmoji=function(C){return(C==null?void 0:C.emojiId)||""};
_.n.getEmojiFromPartialSelections=function(C,F){if(!C&&!F)return null;var G,V,J=(G=this.data)==null?void 0:(V=G.emoji)==null?void 0:V.variantIds;if(!J||!J.length)return null;var b;C=(b=C.match(X5E))==null?void 0:b[0];var z;F=(z=F.match(X5E))==null?void 0:z[0];if(!C||!F)return null;var Q=Msl.get(C);z=Msl.get(F);if(Q===z){z=Array.from(Msl.values()).filter(function(t){return t!==Q}).join("|");
var E=new RegExp("^((?!("+z+")).)*"+Q+"$")}else E=new RegExp(Q+".*"+z);return(J=J.find(function(t){return E.test(t)}))&&_.D7(this.emojiManager,J)||null};
_.n.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var C,F=this.ytEmojiSelectorBehavior.emojiUrl(((C=this.data.emoji)==null?void 0:C.emojiId)||"");_.ot(this.hostElement).querySelector('[selection="user"]').src.includes(F)||(this.isEmojiDraftInProgress=!0)}};
_.n.onDomChange=function(){yU7(this.ytEmojiSelectorBehavior)};
_.n.getFocusableElements=function(){return _.ot(this.hostElement).querySelectorAll("img").filter(function(C){return C.getAttribute("role")==="option"})};
_.n.changeFocus=function(C){var F=this.getFocusableElements();F!=null&&F.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+C+F.length)%F.length,this.ytEmojiSelectorBehavior.focusedIndex<F.length&&(C=F[this.ytEmojiSelectorBehavior.focusedIndex])&&C.focus())};
_.n.onKeyboardEnter=function(){var C=this.getFocusableElements();C!=null&&C.length&&(C=C[this.ytEmojiSelectorBehavior.focusedIndex])&&C instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(C),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.I6.Object.defineProperties(WL.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var C=this,F,G,V;return this.emojiManager&&((F=this.data)==null?0:(G=F.emoji)==null?0:(V=G.variantIds)==null?0:V.length)?this.data.emoji.variantIds.map(function(J){return!!J&&_.D7(C.emojiManager,J)}).filter(function(J){return!!J}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var C,F=(C=this.userSelection)==null?void 0:C.left,G;C=(G=this.userSelection)==null?void 0:G.right;return F&&C?this.getEmojiFromPartialSelections(F,C):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var C;if((C=this.composedEmojiSelection)==null?0:C.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var F;C=(F=this.userSelection)==null?void 0:F.left;var G;F=(G=this.userSelection)==null?void 0:G.right;if(!C&&!F){var V;return this.ytEmojiSelectorBehavior.emojiUrl(((V=this.data.emoji)==null?void 0:V.emojiId)||"")}return C&&!F?C:!C&&F?F:""}}});
WL.prototype.onMultiSelectorThumbnailRowChanged=WL.prototype.onMultiSelectorThumbnailRowChanged;WL.prototype.onClick=WL.prototype.onClick;_.R([_.w(_.mw),_.Y("design:type",Object)],WL.prototype,"ironOverlayBehavior",void 0);_.R([_.w(Zi8),_.Y("design:type",Object)],WL.prototype,"ytEmojiSelectorBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],WL.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",_.KJ)],WL.prototype,"emojiManager",void 0);
_.R([_.L(),_.Y("design:type",Object)],WL.prototype,"userSelection",void 0);_.R([_.L(),_.Y("design:type",Object)],WL.prototype,"scrollAction",void 0);_.R([_.L(),_.Y("design:type",Object)],WL.prototype,"isEmojiDraftInProgress",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],WL.prototype,"emojiVariants",null);_.R([_.M("data","userSelection"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],WL.prototype,"composedEmojiSelection",null);
_.R([_.VG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[MouseEvent]),_.Y("design:returntype")],WL.prototype,"onClick",null);_.R([_.iP("data.emoji.multiSelectorThumbnailRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WL.prototype,"onMultiSelectorThumbnailRowChanged",null);_.R([_.M("data","userSelection","composedEmojiSelection"),_.Y("design:type",String),_.Y("design:paramtypes",[])],WL.prototype,"draftEmojiUrl",null);
_.R([_.Z5({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],WL);
_.q(WL,"yt-emoji-multi-person-selector",function(){if(Oi8===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;Nul===void 0&&(Nul=document.createElement("template"));var V=Nul;G.call(F,V.content.cloneNode(!0),C.content.firstChild);Oi8=C}C=Oi8;return C},{mode:2});var SFu;var LLS;var tT=function(){var C=_.B.apply(this,arguments)||this;C.tooltip_=null;return C};
_.O(tT,_.B);_.n=tT.prototype;_.n.dataChanged_=function(){var C;if((C=this.data)==null?0:C.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.ot(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.C5)(this.tooltip_).textContent=this.data.tooltip};
_.n.computeTargetId=function(){var C;return((C=this.data)==null?void 0:C.targetId)||""};
_.n.computeId_=function(C){return C};
_.n.computeIcon_=function(C){return _.p5(C)};
_.n.onTap_=function(){this.active=!this.active;_.oo(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.n.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G6("active-changed",this.active))};
_.I6.Object.defineProperties(tT.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var C,F;if((C=this.data)==null?0:(F=C.icon)==null?0:F.iconType)return this.data.icon.iconType==="SUPER_STICKER";var G,V;return((G=this.data)==null?void 0:(V=G.icon)==null?void 0:V.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
tT.prototype.activeChangedForBinding=tT.prototype.activeChangedForBinding;tT.prototype.dataChanged_=tT.prototype.dataChanged_;_.R([_.w(_.Rm.YtLiveChatTooltipTargetingBehavior),_.Y("design:type",Object)],tT.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],tT.prototype,"data",void 0);_.R([_.L({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.Y("design:type",String)],tT.prototype,"id",void 0);
_.R([_.L({computed:"computeTargetId(data.targetId)"}),_.Y("design:type",String)],tT.prototype,"targetId",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],tT.prototype,"active",void 0);_.R([_.L({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.Y("design:type",String)],tT.prototype,"icon",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tT.prototype,"dataChanged_",null);
_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],tT.prototype,"iconFilled",null);_.R([_.iP("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tT.prototype,"activeChangedForBinding",null);_.R([_.Z5({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],tT);
_.q(tT,"yt-emoji-picker-category-button-renderer",function(){if(LLS===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;SFu===void 0&&(SFu=document.createElement("template"));var V=SFu;G.call(F,V.content.cloneNode(!0),C.content.firstChild);LLS=C}C=LLS;return C},{mode:2});var Bur;var vAr;var ar=function(){var C=_.B.apply(this,arguments)||this;C.ariaLabel=null;C.ariaActivedescendant=null;C.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};C.JSC$14290_ignoreNextFocus_=!1;C.longPressTimeoutId=-1;return C};
_.O(ar,_.B);_.n=ar.prototype;_.n.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.n.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.n.emojiChanged_=function(){this.changeFocus_(0,!1);for(var C=_.ia(),F=0;F<this.emoji.length;F++){var G={veType:88013,elementIndex:F},V=this.emoji[F];V.isCustomEmoji&&(V=document.querySelector(("#"+V.emojiId).replace("/","\\/")))&&(G=_.Vp(C,G))&&(V.visualElement=G)}};
_.n.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.n.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.n.emojiSkinToneChanged_=function(C){this.skinTone=C};
_.n.dataChanged=function(){this.data&&this.data.emojiData&&ZIu(this.emojiManager,this.data.emojiData)};
_.n.emojiUrl=function(C){C=this.getEmoji(C);if(!C)return"";var F;C=(F=C.image)==null?void 0:F.thumbnails;return _.RP(C,24)||""};
_.n.emojiAlt=function(C){var F=this.get("image.accessibility.accessibilityData.label",C);return F?F:C.isCustomEmoji?C.shortcuts[0]:C.emojiId};
_.n.emojiAriaLabel=function(C){return C.shortcuts?C.shortcuts[0]:""};
_.n.emojiAriaSelected=function(C,F,G){return C&&G==F?"true":"false"};
_.n.getEmoji=function(C){if(this.emojiManager)return this.shouldUseStickyPreferences?OIr(this.emojiManager,C):pJ(this.emojiManager,C)};
_.n.computeId_=function(C){return C.categoryId||""};
_.n.computeEmoji=function(C){var F=this;return this.emojiManager?C.emojiIds?C.emojiIds.map(function(G){return G?_.D7(F.emojiManager,G):null}).filter(fyq):C.emojiData?C.emojiData.map(function(G){var V=!!G.emojiId&&_.D7(F.emojiManager,G.emojiId);
return V?Object.assign({},V,G):null}).filter(fyq):[]:[]};
_.n.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.n.computeAriaLabel_=function(C){return _.dd(C)};
_.n.computeAriaActivedescendant_=function(C,F){return C&&C[F]?C[F].emojiId||"":""};
_.n.handleLongPressEmojiWithVariants=function(C,F){this.changeFocusToEmoji(C.emojiId,!1);this.openVariantSelector(C,F)};
_.n.onMouseDown=function(C){var F=this;this.hostElement!==document.activeElement&&(this.JSC$14290_ignoreNextFocus_=!0);if(C.button===0){var G=_.ev(C);if(G instanceof HTMLImageElement){var V=_.ot(this.hostElement).querySelector("#repeat").itemForElement(G);this.emojiContainsVariants(V)&&(this.longPressTimeoutId=setTimeout(function(){F.handleLongPressEmojiWithVariants(V,G)},500))}}};
_.n.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.n.onFocus=function(){this.JSC$14290_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14290_ignoreNextFocus_=!1};
_.n.onBlur_=function(){this.showFocus=!1};
_.n.emojiContainsVariants=function(C){return!!(C&&C.variantIds&&C.variantIds.length)};
_.n.onClick=function(C){clearTimeout(this.longPressTimeoutId);C=_.ev(C);if(C instanceof HTMLImageElement){var F=C.id;this.changeFocusToEmoji(F,!1);var G=this.getEmoji(F),V;if(V=this.shouldUseStickyPreferences&&this.emojiContainsVariants(G)){var J;V=!((J=this.emojiManager.emojiMap[F])!=null&&J.stickyPrefId)}V?(J=_.ot(this.hostElement).querySelector("#repeat").itemForElement(C),this.openVariantSelector(J,C)):_.oo(this.hostElement,"yt-emoji-select",G)}};
_.n.isActiveEmojiWithVariants=function(C,F){return C&&F?F.stickyPrefId?C===F.stickyPrefId:C===F.emojiId:!1};
_.n.onCloseEmojiVariantSelector=function(C){this.activeEmojiWithVariantsId===C&&(this.activeEmojiWithVariantsId="")};
_.n.onMouseOver_=function(C){C=_.ev(C);C instanceof HTMLImageElement&&_.oo(this.hostElement,"yt-emoji-hover",_.D7(this.emojiManager,C.id))};
_.n.changeFocus_=function(C,F){this.focusedIndex=(this.focusedIndex+C+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(C=this.emoji[this.focusedIndex],F&&(this.showFocus=!0,_.ot(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.oo(this.hostElement,"yt-emoji-hover",C)))};
_.n.changeFocusToEmoji=function(C,F){if(C){var G=this.emoji.findIndex(function(V){return V.emojiId===C});
G!==-1&&this.changeFocus_(G-this.focusedIndex,F)}};
_.n.onKeyDown_=function(C){switch(C.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var F=this.emoji[this.focusedIndex];if(F&&F.emojiId){if(this.emojiContainsVariants(F)){var G=_.ot(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(F,G)}else _.oo(this.hostElement,"yt-emoji-select",pJ(this.emojiManager,F.emojiId)),this.hostElement.focus();C.preventDefault()}}break;case 40:this.changeFocus_(1,!0);C.preventDefault();break;case 38:this.changeFocus_(-1,!0),
C.preventDefault()}};
_.n.onEmojiStickyPreferenceChanged=function(C,F){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&C.emojiId&&C.variantIds&&C.variantIds.includes(F)&&this.activeEmojiWithVariantsId!==F&&this.setStickyEmojiPreference(C.emojiId,F)};
_.n.openVariantSelector=function(C,F){this.activeEmojiWithVariantsId=C.stickyPrefId||C.emojiId||"";_.oo(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:C,target:F})};
_.n.setStickyEmojiPreference=function(C,F){if(this.data){var G=this.emoji.findIndex(function(J){return J.emojiId===C});
if(G!==-1){var V=this.emoji[G];V.stickyPrefId=F;this.set("emoji."+G,Object.assign({},V));this.activeEmojiWithVariantsId=F}}};
ar.prototype.onKeyDown_=ar.prototype.onKeyDown_;ar.prototype.onMouseOver_=ar.prototype.onMouseOver_;ar.prototype.onClick=ar.prototype.onClick;ar.prototype.onBlur_=ar.prototype.onBlur_;ar.prototype.onFocus=ar.prototype.onFocus;ar.prototype.onMouseUp=ar.prototype.onMouseUp;ar.prototype.onMouseDown=ar.prototype.onMouseDown;ar.prototype.dataChanged=ar.prototype.dataChanged;ar.prototype.disableIncrementalLoadingChanged_=ar.prototype.disableIncrementalLoadingChanged_;ar.prototype.emojiManagerChanged_=ar.prototype.emojiManagerChanged_;
ar.prototype.emojiChanged_=ar.prototype.emojiChanged_;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],ar.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],ar.prototype,"data",void 0);_.R([_.L({computed:"computeId_(data)"}),_.Y("design:type",String)],ar.prototype,"id",void 0);_.R([_.L({computed:"computeEmoji(data)"}),_.Y("design:type",Array)],ar.prototype,"emoji",void 0);_.R([_.L(),_.Y("design:type",Number)],ar.prototype,"skinTone",void 0);
_.R([_.L(),_.Y("design:type",_.KJ)],ar.prototype,"emojiManager",void 0);_.R([_.L(),_.Y("design:type",Boolean)],ar.prototype,"disableIncrementalLoading",void 0);_.R([_.L({value:0}),_.Y("design:type",Number)],ar.prototype,"focusedIndex",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],ar.prototype,"showFocus",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.Y("design:type",Object)],ar.prototype,"ariaLabel",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.Y("design:type",Object)],ar.prototype,"ariaActivedescendant",void 0);_.R([_.L({value:60}),_.Y("design:type",Number)],ar.prototype,"domRepeatTargetFramerate",void 0);_.R([_.L({value:1}),_.Y("design:type",Number)],ar.prototype,"domRepeatInitialCount",void 0);_.R([_.L({value:""}),_.Y("design:type",String)],ar.prototype,"activeEmojiWithVariantsId",void 0);
_.R([_.L({value:!1}),_.Y("design:type",Boolean)],ar.prototype,"shouldUseStickyPreferences",void 0);_.R([_.iP("emoji"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ar.prototype,"emojiChanged_",null);_.R([_.iP("emojiManager"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ar.prototype,"emojiManagerChanged_",null);
_.R([_.iP("disableIncrementalLoading"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ar.prototype,"disableIncrementalLoadingChanged_",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ar.prototype,"dataChanged",null);_.R([_.VG("mousedown"),_.Y("design:type",Function),_.Y("design:paramtypes",[Object]),_.Y("design:returntype")],ar.prototype,"onMouseDown",null);
_.R([_.VG("mouseup"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ar.prototype,"onMouseUp",null);_.R([_.VG("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ar.prototype,"onFocus",null);_.R([_.VG("blur"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ar.prototype,"onBlur_",null);
_.R([_.VG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],ar.prototype,"onClick",null);_.R([_.VG("mouseover"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],ar.prototype,"onMouseOver_",null);_.R([_.VG("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],ar.prototype,"onKeyDown_",null);
_.R([_.Z5({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],ar);
_.q(ar,"yt-emoji-picker-category-renderer",function(){if(vAr===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;Bur===void 0&&(Bur=document.createElement("template"));var V=Bur;G.call(F,V.content.cloneNode(!0),C.content.firstChild);vAr=C}C=vAr;return C},{mode:2});var fyG;var hMo;var cU7;var AUS;var kP=function(){var C=_.B.apply(this,arguments)||this;C.ariaLabel=null;C.ariaActivedescendant=null;C.getFormattedStringRawText=_.dd;C.JSC$14296_ignoreNextFocus_=!1;return C};
_.O(kP,_.B);_.n=kP.prototype;_.n.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")};
_.n.emojiUrl=function(C){var F,G;C=(F=pJ(this.emojiManager,C,!0))==null?void 0:(G=F.image)==null?void 0:G.thumbnails;return _.RP(C,24)||""};
_.n.emojiAlt=function(C){var F=this.get("image.accessibility.accessibilityData.label",C);return F?F:C.isCustomEmoji?C.shortcuts[0]:C.emojiId};
_.n.emojiId=function(C){return"emoji"+C};
_.n.computeId_=function(C){return C.categoryId||""};
_.n.computeAriaActivedescendant_=function(C){return this.emoji&&C<this.emoji.length?this.emojiId(C):""};
_.n.emojiChanged_=function(){this.changeFocus_(0,!1);for(var C=_.ia(),F=0;F<this.emoji.length;F++){var G={veType:88013,elementIndex:F},V=this.emoji[F];V.isCustomEmoji&&(V=document.querySelector(("#"+V.emojiId).replace("/","\\/")))&&(G=_.Vp(C,G))&&(V.visualElement=G)}};
_.n.computeEmoji_=function(C){var F=this;return this.emojiManager?C.emojiIds.map(function(G){return _.D7(F.emojiManager,G,!0)}).filter(hMf):[]};
_.n.titleOffsetChanged_=function(){var C=this.hostElement.getBoundingClientRect(),F=_.ot(this.hostElement).querySelector("#title").getBoundingClientRect();C=Math.max(0,Math.min(this.titleOffset,C.height-F.height));_.ot(this.hostElement).querySelector("#title").style.top=C+"px"};
_.n.onEmojiMouseOver_=function(C){_.oo(this.hostElement,"yt-emoji-hover",C.model.item)};
_.n.onEmojiTap_=function(C){this.data.command&&(C=lVB(_.I8().resolve(_.Qt(p1)),this.data.command,C),_.oo(this.hostElement,"yt-navigate",C))};
_.n.emojiAriaLabel=function(C){return C.shortcuts[0]};
_.n.emojiAriaSelected=function(C,F,G){return C&&G==F?"true":"false"};
_.n.changeFocus_=function(C,F){var G=this.emoji.length;this.focusedIndex=(this.focusedIndex+C+G)%G;C=this.emoji[this.focusedIndex];if(F){var V;(V=_.ot(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||V.scrollIntoView(!1);_.oo(this.hostElement,"yt-emoji-hover",C)}};
_.n.onMouseDown_=function(){this.JSC$14296_ignoreNextFocus_=!0};
_.n.onFocus_=function(){this.JSC$14296_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14296_ignoreNextFocus_=!1};
_.n.onBlur_=function(){this.showFocus=!1};
_.n.onKeyDown_=function(C){switch(C.keyCode){case 13:this.onEmojiTap_(C);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);C.preventDefault();break;case 38:this.changeFocus_(-1,!0),C.preventDefault()}};
kP.prototype.onKeyDown_=kP.prototype.onKeyDown_;kP.prototype.onBlur_=kP.prototype.onBlur_;kP.prototype.onFocus_=kP.prototype.onFocus_;kP.prototype.onMouseDown_=kP.prototype.onMouseDown_;kP.prototype.onEmojiTap_=kP.prototype.onEmojiTap_;kP.prototype.titleOffsetChanged_=kP.prototype.titleOffsetChanged_;kP.prototype.emojiChanged_=kP.prototype.emojiChanged_;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],kP.prototype,"ytComponentBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],kP.prototype,"data",void 0);_.R([_.L({computed:"computeId_(data)"}),_.Y("design:type",String)],kP.prototype,"id",void 0);_.R([_.L({computed:"computeEmoji_(data)"}),_.Y("design:type",Array)],kP.prototype,"emoji",void 0);_.R([_.L({value:0}),_.Y("design:type",Number)],kP.prototype,"titleOffset",void 0);_.R([_.L({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.Y("design:type",Object)],kP.prototype,"ariaLabel",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.Y("design:type",Object)],kP.prototype,"ariaActivedescendant",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],kP.prototype,"showFocus",void 0);_.R([_.L({value:0}),_.Y("design:type",Number)],kP.prototype,"focusedIndex",void 0);_.R([_.L(),_.Y("design:type",_.KJ)],kP.prototype,"emojiManager",void 0);
_.R([_.iP("emoji"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kP.prototype,"emojiChanged_",null);_.R([_.iP("titleOffset"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kP.prototype,"titleOffsetChanged_",null);_.R([_.VG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],kP.prototype,"onEmojiTap_",null);
_.R([_.VG("mousedown"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kP.prototype,"onMouseDown_",null);_.R([_.VG("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kP.prototype,"onFocus_",null);_.R([_.VG("blur"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kP.prototype,"onBlur_",null);
_.R([_.VG("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],kP.prototype,"onKeyDown_",null);_.R([_.Z5({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],kP);
_.q(kP,"yt-emoji-picker-upsell-category-renderer",function(){if(AUS===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;cU7===void 0&&(cU7=document.createElement("template"));var V=cU7;G.call(F,V.content.cloneNode(!0),C.content.firstChild);AUS=C}C=AUS;return C},{mode:2});var eM2;var dgm;var UM=function(){var C=_.B.apply(this,arguments)||this;C.scrollAction="lock";C.verticalAlign="top";return C};
_.O(UM,_.B);_.n=UM.prototype;_.n.onClick=function(C){C=_.ev(C);C instanceof HTMLImageElement&&_.oo(this.hostElement,"yt-emoji-select",_.D7(this.emojiManager,C.id))};
_.n.openSelector=function(){this.ironOverlayBehavior.open()};
_.n.onDomChange=function(){yU7(this.ytEmojiSelectorBehavior)};
_.n.computeIsFamilySelector=function(C){var F;return(C==null?void 0:(F=C.emoji)==null?void 0:F.emojiId)==="\ud83d\udc6a"};
_.n.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var C=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];C&&C.emojiId&&(_.oo(this.hostElement,"yt-emoji-select",_.D7(this.emojiManager,C.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.I6.Object.defineProperties(UM.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var C=this,F,G,V;return this.emojiManager&&((F=this.data)==null?0:(G=F.emoji)==null?0:(V=G.variantIds)==null?0:V.length)?this.data.emoji.variantIds.map(function(J){return!!J&&_.D7(C.emojiManager,J)}).filter(function(J){return!!J}):[]}}});
UM.prototype.onClick=UM.prototype.onClick;_.R([_.w(_.mw),_.Y("design:type",Object)],UM.prototype,"ironOverlayBehavior",void 0);_.R([_.w(Zi8),_.Y("design:type",Object)],UM.prototype,"ytEmojiSelectorBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],UM.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",_.KJ)],UM.prototype,"emojiManager",void 0);_.R([_.L(),_.Y("design:type",Object)],UM.prototype,"scrollAction",void 0);_.R([_.L(),_.Y("design:type",Object)],UM.prototype,"verticalAlign",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.Y("design:type",Boolean)],UM.prototype,"isFamilySelector",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],UM.prototype,"emojiVariants",null);_.R([_.VG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[MouseEvent]),_.Y("design:returntype")],UM.prototype,"onClick",null);_.R([_.Z5({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],UM);
_.q(UM,"yt-emoji-variant-selector",function(){if(dgm===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;eM2===void 0&&(eM2=document.createElement("template"));var V=eM2;G.call(F,V.content.cloneNode(!0),C.content.firstChild);dgm=C}C=dgm;return C},{mode:2});var xgu=/:/g,sKO=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],HL=function(){var C=_.B.apply(this,arguments)||this;C.emojiVariantSelector=null;C.emojiMultiPersonSelector=null;C.identity=_.As;C.lastAnimationTime_=0;C.animationStart_=null;C.animationEnd_=null;return C};
_.O(HL,_.B);_.n=HL.prototype;
_.n.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}}};
_.n.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.mP)};
_.n.attached=function(){_.rp&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&Nyu(this.emojiManager)};
_.n.dataChanged=function(){var C;if((C=this.data)==null?0:C.categories){C=this.emojiManager;var F=this.getCustomEmojiIds();C.pickerCustomEmojiIds=[].concat(_.da(kg7),_.da(F))}};
_.n.getCustomEmojiIds=function(){var C,F=(C=this.data.categories)==null?void 0:C.find(function(b){var z;return((z=b.emojiPickerCategoryRenderer)==null?void 0:z.categoryId)&&sKO.includes(b.emojiPickerCategoryRenderer.categoryId)}),G;
C=(G=this.data.categories)==null?void 0:G.find(function(b){return b.emojiPickerUpsellCategoryRenderer});
var V,J;return[F==null?void 0:(V=F.emojiPickerCategoryRenderer)==null?void 0:V.emojiIds,C==null?void 0:(J=C.emojiPickerUpsellCategoryRenderer)==null?void 0:J.emojiIds].flat().filter(function(b){return!!b})};
_.n.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.n.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.n.updateCategoriesAndPlaceholderInternal=function(C,F){var G=this;C&&F&&(this.categories=C.categories||[],this.categoryButtons=C.categoryButtons||[],this.resetPlaceholder(),this.search="",_.L5(function(){G.updateButtons_()}))};
_.n.computeId_=function(C){return C.id||""};
_.n.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(C){return C.emojiPickerCategoryRenderer&&C.emojiPickerCategoryRenderer.emojiData}):!1};
_.n.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.n.onShowEmojiVariantSelector=function(C){var F=C.detail.emojiData;F.variantIds&&F.variantIds.length&&(F.multiSelectorThumbnailRow&&F.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:F,target:C.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:F,target:C.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.n.onIronOverlayClosed=function(C){var F=OIr(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");F&&C.composedPath&&(C.composedPath().includes(_.ot(this.hostElement).querySelector("#emoji-variant-selector"))||C.composedPath().includes(_.ot(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.rz(this.hostElement,"yt-close-emoji-variant-selector",[F.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.n.onEmojiVariantSelectorMouseup=function(C){var F=C.target.firstChild;this.variantSelectorOpened&&F&&_.L5(function(){F.noCancelOnOutsideClick=!1},100)};
_.n.onEmojiVariantSelectorMousedown=function(C){C=C.target.firstChild;this.variantSelectorOpened&&C&&(C.noCancelOnOutsideClick=!1)};
_.n.onSelectCategory_=function(C){var F=this.search!="";this.search="";for(var G=_.ot(this.hostElement).querySelector("#categories").children,V=0;V<G.length;V++){var J=G[V];if(J.id==C.detail.categoryId){F?(_.ot(this.hostElement).querySelector("#categories").scrollTop=J.offsetTop,this.updateButtons_()):(this.animationStart_=_.ot(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=J.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.n.onEmojiHover_=function(C){this.placeholder=C.detail.shortcuts?C.detail.shortcuts[0]:""};
_.n.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.n.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.n.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.n.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.n.computeSearchCategory_=function(C){C=C.replace(xgu,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();C=C.split(" ");for(var F=[],G=this.emojiManager.emojis,V=0;V<G.length;V++){var J=G[V];if(J.searchTerms)for(var b=0;b<J.searchTerms.length;b++){for(var z=J.searchTerms[b].toLocaleLowerCase(),Q=!1,E=0;E<C.length;E++)if(z.indexOf(C[E])!=-1){Q=!0;break}if(Q&&(!J.isCustomEmoji||!J.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(J.emojiId))){F.push(J.emojiId);
break}}}return{categoryId:-1,emojiIds:F}};
_.n.computeSearchEmptyMessage_=function(C,F){return C&&F&&F.emojiIds&&F.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.n.computeSearching_=function(C){return this.emojiManager&&C.replace(xgu,"").length>1};
_.n.computeSkinToneHidden=function(){var C;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((C=this.data)==null||!C.hideSkinTonePicker)};
_.n.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.n.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.n.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.n.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.n.selectSkinTone_=function(C){C=Number(C.target.getAttribute("tone"));this.set("emojiManager.skinTone",C);_.rz(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[C]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.n.skinToneChanged_=function(){_.ot(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var C=_.ot(this.hostElement).querySelector("#dropdown-content").children,F=0;F<C.length;F++)F===this.skinTone?C[F].setAttribute("selected",""):C[F].removeAttribute("selected")};
_.n.animateScroll_=function(C){this.lastAnimationTime_||(this.lastAnimationTime_=C);C-=this.lastAnimationTime_;C<200?(_.ot(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*C/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.ot(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.n.searchChanged_=function(){this.updateButtons_()};
_.n.updateButtons_=function(){var C=null;if(!this.search)for(var F=_.ot(this.hostElement).querySelector("#categories").scrollTop,G=_.ot(this.hostElement).querySelector("#categories").children,V=0;V<G.length;V++){var J=G[V];J.offsetTop<=F&&(C=J.id)}F=_.ot(this.hostElement).querySelector("#category-buttons").children;for(G=0;G<F.length;G++)V=F[G],V.active=V.id===C};
HL.prototype.searchChanged_=HL.prototype.searchChanged_;HL.prototype.skinToneChanged_=HL.prototype.skinToneChanged_;HL.prototype.onEmojiHover_=HL.prototype.onEmojiHover_;HL.prototype.onSelectCategory_=HL.prototype.onSelectCategory_;HL.prototype.onShowEmojiVariantSelector=HL.prototype.onShowEmojiVariantSelector;HL.prototype.updateCategoriesAndPlaceholder_=HL.prototype.updateCategoriesAndPlaceholder_;HL.prototype.dataChanged=HL.prototype.dataChanged;
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],HL.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],HL.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],HL.prototype,"data",void 0);_.R([_.L({value:function(){return[]}}),
_.Y("design:type",Array)],HL.prototype,"categories",void 0);_.R([_.L({value:function(){return[]}}),
_.Y("design:type",Array)],HL.prototype,"categoryButtons",void 0);_.R([_.L({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],HL.prototype,"disableScroll",void 0);_.R([_.L({computed:"computeId_(data)",reflectToAttribute:!0}),_.Y("design:type",String)],HL.prototype,"id",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],HL.prototype,"selected",void 0);
_.R([_.L({value:!1}),_.Y("design:type",Boolean)],HL.prototype,"disableIncrementalLoading",void 0);_.R([_.L(),_.Y("design:type",String)],HL.prototype,"placeholder",void 0);_.R([_.L({value:""}),_.Y("design:type",String)],HL.prototype,"search",void 0);_.R([_.L({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],HL.prototype,"searching",void 0);_.R([_.L({computed:"computeSearchCategory_(search)"}),_.Y("design:type",Object)],HL.prototype,"searchCategory",void 0);
_.R([_.L({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.Y("design:type",Object)],HL.prototype,"searchEmptyMessage",void 0);_.R([_.L({computed:"identity(emojiManager.skinTone)"}),_.Y("design:type",Number)],HL.prototype,"skinTone",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],HL.prototype,"skinToneOpened",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],HL.prototype,"variantSelectorOpened",void 0);
_.R([_.L({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.Y("design:type",Boolean)],HL.prototype,"skinToneHidden",void 0);_.R([_.L(),_.Y("design:type",_.KJ)],HL.prototype,"emojiManager",void 0);_.R([_.L(),_.Y("design:type",Object)],HL.prototype,"emojiVariantSelector",void 0);_.R([_.L(),_.Y("design:type",Object)],HL.prototype,"emojiMultiPersonSelector",void 0);
_.R([_.L({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.Y("design:type",Boolean)],HL.prototype,"shouldUseStickyPreferences",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],HL.prototype,"dataChanged",null);_.R([_.iP("data","selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],HL.prototype,"updateCategoriesAndPlaceholder_",null);
_.R([_.VG("yt-show-emoji-variant-selector"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],HL.prototype,"onShowEmojiVariantSelector",null);_.R([_.VG("yt-emoji-picker-select-category"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],HL.prototype,"onSelectCategory_",null);_.R([_.VG("yt-emoji-hover"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],HL.prototype,"onEmojiHover_",null);
_.R([_.iP("skinTone"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],HL.prototype,"skinToneChanged_",null);_.R([_.iP("search"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],HL.prototype,"searchChanged_",null);_.R([_.Z5({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],HL);
_.q(HL,"yt-emoji-picker-renderer",function(){if(hMo===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;fyG===void 0&&(fyG=document.createElement("template"));var V=fyG;G.call(F,V.content.cloneNode(!0),C.content.firstChild);hMo=C}C=hMo;return C},{mode:2});var lF=function(){var C=_.B.apply(this,arguments)||this;C.emojiManager=_.mP;C.isDarkTheme=document.documentElement.hasAttribute("dark");C.selectedIndex=1;C.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return C};
_.O(lF,_.B);_.n=lF.prototype;_.n.handleEmojiCustomizationVisible=function(C){this.emojiPickerRenderer.selected=C;this.selectedIndex=1;C?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.n.emojiCustomizationSetChanged=function(){var C;(C=this.data)!=null&&C.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.K9(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.n.updateSaveButtonState=function(C){var F;(F=this.data)!=null&&F.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.z3("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:C}))};
_.n.emojiUrl=function(C){C=_.D7(this.emojiManager,C);if(!C)return"";var F;C=(F=C.image)==null?void 0:F.thumbnails;return _.RP(C,24)||""};
_.n.emojiAlt=function(C){var F=_.D7(this.emojiManager,C);if(!F)return C;var G,V,J,b=(F==null?void 0:(G=F.image)==null?void 0:(V=G.accessibility)==null?void 0:(J=V.accessibilityData)==null?void 0:J.label)||"";return b?b:F.isCustomEmoji?F.shortcuts[0]:F.emojiId||C};
_.n.emojiAriaLabel=function(C){var F,G;return((F=_.D7(this.emojiManager,C))==null?void 0:(G=F.shortcuts)==null?void 0:G[0])||C};
_.n.onEmojiClick=function(C){C.model.index!==0&&(this.selectedIndex=C.model.index)};
_.n.onEmojiSelect=function(C){C=C.detail;var F,G;((F=this.data)==null?0:F.emojiCustomizationSetEntityKey)&&((G=this.emojiCustomizationSet)==null?0:G.emojiId)&&C.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,C.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.z3("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,C.emojiId,this.selectedIndex)}))};
_.n.canEditEmoji=function(C,F,G){C=C.indexOf(F);return C===G||C===0||G===0?!1:!0};
_.n.getUpdatedEmojiIdList=function(C,F,G){var V=C.indexOf(F);C=[].concat(_.da(C));V>=0&&(C[V]=C[G]);C[G]=F;return C};
_.I6.Object.defineProperties(lF,{template:{configurable:!0,enumerable:!0,get:function(){if(JUy===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;ii8===void 0&&(ii8=document.createElement("template"));var V=ii8;G.call(F,V.content.cloneNode(!0),C.content.firstChild);JUy=C}C=JUy;return C}}});
lF.prototype.onEmojiSelect=lF.prototype.onEmojiSelect;_.R([_.w(_.g6),_.Y("design:type",Object)],lF.prototype,"ytLiveChatReduxBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],lF.prototype,"ytActionHandlerBehavior",void 0);_.R([_.$z("yt-emoji-picker-renderer"),_.Y("design:type",Object)],lF.prototype,"emojiPickerRenderer",void 0);
_.R([_.L({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(C,F){return _.jN(C.entities,"emojiCustomizationSetEntity",F)},
observer:"emojiCustomizationSetChanged"}),_.Y("design:type",Object)],lF.prototype,"emojiCustomizationSet",void 0);_.R([_.L(),_.Y("design:type",Object)],lF.prototype,"originalEmojiSet",void 0);_.R([_.L(),_.Y("design:type",_.KJ)],lF.prototype,"emojiManager",void 0);_.R([_.L(),_.Y("design:type",Object)],lF.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],lF.prototype,"isDarkTheme",void 0);_.R([_.L(),_.Y("design:type",Object)],lF.prototype,"selectedIndex",void 0);
_.R([_.VG("yt-emoji-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],lF.prototype,"onEmojiSelect",null);_.R([_.Z5({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],lF);var qFo;var P3u;var gAo;var RM7;var yN=function(){var C=_.B.apply(this,arguments)||this;C.authorBadges=[];return C};
_.O(yN,_.B);_.n=yN.prototype;_.n.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.n.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]]"}}}}}};
_.n.dataChanged=function(){var C=J$q(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",C)};
_.n.updateMessage=function(){var C=this.data.message,F=_.ot(_.ot(this.hostElement).querySelector("#message"));F.textContent="";C&&F.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(C))};
_.n.shouldSupportWholeItemClick=function(){return!0};
_.n.onShowOriginalClick=function(C){C.preventDefault();this.showOriginal=!0};
_.n.computeShowBar=function(C,F,G){return C&&F||G};
_.n.computeAuthorBadges=function(C){return C.authorBadges||[]};
_.n.computeAuthorIsOwner=function(C){return!!$Bs(C.authorBadges,"owner")};
_.n.computeAuthorNameColor=function(C){var F;if(_.y("live_chat_author_name_color_usernames")&&(C==null?0:(F=C.authorName)==null?0:F.simpleText))return _.IzE(_.ERW(C.authorName.simpleText));if(_.y("live_chat_seed_color_usernames")&&(C==null?0:C.authorSeedColorArgb))return _.IzE(_.K5(C.authorSeedColorArgb));if(_.y("live_chat_colored_usernames"))return"#cc0000";var G;return _.y("live_chat_simple_color_usernames")&&(C==null?0:(G=C.authorName)==null?0:G.simpleText)&&(C==null?0:C.authorUsernameColorLight)&&
(C==null?0:C.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.K5(C.authorUsernameColorDark):_.K5(C.authorUsernameColorLight):""};
yN.prototype.updateMessage=yN.prototype.updateMessage;yN.prototype.dataChanged=yN.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],yN.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.CK.YtLiveChatItemBehavior),_.Y("design:type",_.ji)],yN.prototype,"ytLiveChatItemBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],yN.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],yN.prototype,"data",void 0);
_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],yN.prototype,"showOriginal",void 0);_.R([_.L({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],yN.prototype,"isDimmed",void 0);_.R([_.L({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],yN.prototype,"showBar",void 0);
_.R([_.L({computed:"computeAuthorBadges(data)"}),_.Y("design:type",Array)],yN.prototype,"authorBadges",void 0);_.R([_.L({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],yN.prototype,"authorIsOwner",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],yN.prototype,"inCollapsedBanner",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],yN.prototype,"inBanner",void 0);
_.R([_.L({value:_.y("live_chat_hide_avatars"),reflectToAttribute:!0}),_.Y("design:type",Boolean)],yN.prototype,"avatarHidden",void 0);_.R([_.L({computed:"computeAuthorNameColor(data)"}),_.Y("design:type",String)],yN.prototype,"authorNameColor",void 0);_.R([_.L(),_.Y("design:type",_.VN)],yN.prototype,"participantsManager",void 0);_.R([_.L({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.Y("design:type",Object)],yN.prototype,"filledButtonOverrides",void 0);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yN.prototype,"dataChanged",null);_.R([_.iP("data.message"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yN.prototype,"updateMessage",null);_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],yN);
_.q(yN,"yt-live-chat-text-message-renderer",function(){if(RM7===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;gAo===void 0&&(gAo=document.createElement("template"));var V=gAo;G.call(F,V.content.cloneNode(!0),C.content.firstChild);RM7=C}C=RM7;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var ZL=function(){var C=_.B.apply(this,arguments)||this;C.tonalButtonOverrides={type:"tonal",style:"overlay"};return C};
_.O(ZL,_.B);
ZL.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]]"}}}}}};
ZL.prototype.shouldSupportInlineActionButtons=function(){return!0};
ZL.prototype.shouldSupportWholeItemClick=function(){return!0};
_.I6.Object.defineProperties(ZL.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ZL.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.CK.YtLiveChatItemBehavior),_.Y("design:type",_.ji)],ZL.prototype,"ytLiveChatItemBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],ZL.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],ZL.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",_.VN)],ZL.prototype,"participantsManager",void 0);
_.R([_.L(),_.Y("design:type",Object)],ZL.prototype,"tonalButtonOverrides",void 0);_.R([_.L({reflectToAttribute:!0}),_.M("data.infoDialogButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ZL.prototype,"hasInfoDialogButton",null);_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],ZL);
_.q(ZL,"yt-live-chat-auto-mod-message-renderer",function(){if(P3u===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;qFo===void 0&&(qFo=document.createElement("template"));var V=qFo;G.call(F,V.content.cloneNode(!0),C.content.firstChild);P3u=C}C=P3u;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var YFG;var Tuu;var oAP;var rU8=function(){return _.B.apply(this,arguments)||this};
_.O(rU8,_.B);_.R([_.L(),_.Y("design:type",Object)],rU8.prototype,"data",void 0);_.R([_.e({is:"ytd-factoid-renderer",disableElementRegistration:!0})],rU8);
_.q(rU8,"ytd-factoid-renderer",function(){if(oAP!==void 0)return oAP;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return oAP=C},{mode:1});var Nm=function(){return _.B.apply(this,arguments)||this};
_.O(Nm,_.B);Nm.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.R([_.L(),_.Y("design:type",Object)],Nm.prototype,"data",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Nm.prototype,"ytRendererstamperBehavior",void 0);_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],Nm);
_.q(Nm,"yt-live-chat-channel-activity-reputation-renderer",function(){if(Tuu===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;YFG===void 0&&(YFG=document.createElement("template"));var V=YFG;G.call(F,V.content.cloneNode(!0),C.content.firstChild);Tuu=C}C=Tuu;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var KLu;var Dgl;var OM=function(){return _.B.apply(this,arguments)||this};
_.O(OM,_.B);OM.prototype.ready=function(){var C=document.querySelector("yt-live-chat-app");C&&C.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],OM.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Boolean)],OM.prototype,"menuFocused",void 0);_.R([_.L(),_.Y("design:type",Object)],OM.prototype,"data",void 0);_.R([_.w(_.CK.YtLiveChatItemBehavior),_.Y("design:type",_.ji)],OM.prototype,"ytLiveChatItemBehavior",void 0);_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],OM);
_.q(OM,"yt-live-chat-donation-announcement-renderer",function(){if(Dgl===void 0){var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;KLu===void 0&&(KLu=document.createElement("template"));var V=KLu;G.call(F,V.content.cloneNode(!0),C.content.firstChild);Dgl=C}C=Dgl;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var p5m;var mgE,Ctr=function(){if(mgE!==void 0)return mgE;var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;p5m===void 0&&(p5m=document.createElement("template"));var V=p5m;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return mgE=C};var Xl=function(){return _.B.apply(this,arguments)||this};
_.O(Xl,_.B);_.I6.Object.defineProperties(Xl,{template:{configurable:!0,enumerable:!0,get:function(){return Ctr()}}});
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Xl.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Xl.prototype,"data",void 0);_.R([_.Z5({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],Xl);_.q(Xl,"yt-live-chat-empty-feed-view-model",function(){return Ctr()},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var jbS;var FKl;var wK=function(){return _.B.apply(this,arguments)||this};
_.O(wK,_.B);wK.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"}}}}}};
_.I6.Object.defineProperties(wK.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var C,F;return{runs:[{text:(C=this.data)==null?void 0:(F=C.channelName)==null?void 0:F.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var C=[],F;if((F=this.data)==null||!F.channelBadges)return C;var G;F=_.u((G=this.data)==null?void 0:G.channelBadges);for(G=F.next();!G.done;G=F.next()){G=_.Z(G.value,Fo8);var V=void 0,J=void 0;if((V=G)==null?0:(J=V.badgeImage)==null?0:J.sources)V=void 0,J={liveChatAuthorBadgeRenderer:{tooltip:G.tooltip,accessibility:{accessibilityData:{label:(V=_.Z(G.rendererContext,_.$Z))==null?void 0:V.label}}}},G.badgeImage.sources[0].clientResource?J.liveChatAuthorBadgeRenderer.icon=
{iconType:G.badgeImage.sources[0].clientResource.imageName}:J.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:G.badgeImage.sources},C.push(J)}return C}}});
_.R([_.L(),_.Y("design:type",Object)],wK.prototype,"data",void 0);_.R([_.M("data.channelName"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],wK.prototype,"channelName",null);_.R([_.M("data.channelBadges"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],wK.prototype,"channelBadges",null);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],wK.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],wK);
_.q(wK,"yt-live-chat-identity-view-model",function(){if(FKl===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;jbS===void 0&&(jbS=document.createElement("template"));var V=jbS;G.call(F,V.content.cloneNode(!0),C.content.firstChild);FKl=C}C=FKl;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var G0r;var Va8;var iN8;var JN8;var Mm=function(){var C=_.B.apply(this,arguments)||this;C.hidden=!1;C.supportsInlineActionButtons=!0;return C};
_.O(Mm,_.B);Mm.prototype.ready=function(){var C;((C=document.querySelector("yt-live-chat-app"))==null?0:C.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
Mm.prototype.dataChanged=function(C){var F=(0,_.C5)(_.ot(this.hostElement).querySelector("#detail-text"));F.textContent="";(C==null?0:C.detailText)&&F.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(C.detailText))};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Mm.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.CK.YtLiveChatItemBehavior),_.Y("design:type",_.ji)],Mm.prototype,"ytLiveChatItemBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Mm.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L({observer:"dataChanged"}),_.Y("design:type",Object)],Mm.prototype,"data",void 0);
_.R([_.L({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.Y("design:type",Object)],Mm.prototype,"hidden",void 0);_.R([_.e({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],Mm);
_.q(Mm,"yt-live-chat-legacy-paid-message-renderer",function(){if(JN8===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;iN8===void 0&&(iN8=document.createElement("template"));var V=iN8;G.call(F,V.content.cloneNode(!0),C.content.firstChild);JN8=C}C=JN8;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var $FS;var bNG;var nuu={},Si=function(){return _.n5.apply(this,arguments)||this};
_.O(Si,_.n5);Si.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Si.prototype.onLiveChatMembershipItemBehaviorClick=Si.prototype.onLiveChatMembershipItemBehaviorClick;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Si.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Si.prototype,"data",void 0);_.R([_.VG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Si.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.R([_.uP()],Si);
nuu.YtLiveChatMembershipItemBehavior=[Si.prototype,_.D.YtRendererBehavior];var LK=function(){var C=_.B.apply(this,arguments)||this;C.supportsInlineActionButtons=!0;C.hasPrimaryHeaderText=!1;C.showOnlyHeader=!1;C.authorBadges=[];C.modern=_.y("web_button_rework_with_live");C.buttonOverrides={style:"overlay",type:"filled"};return C};
_.O(LK,_.B);_.n=LK.prototype;_.n.shouldSupportInlineActionButtons=function(){return!0};
_.n.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.n.ready=function(){var C=document.querySelector("yt-live-chat-app");C&&C.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.n.messageChanged=function(){var C=this.data.message,F=(0,_.C5)(_.ot(this.hostElement).querySelector("#message"));F.textContent="";C&&F.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(C))};
_.n.computeHasPrimaryHeaderText=function(C){return!(!C||!C.headerPrimaryText)};
_.n.computeShowOnlyHeader=function(C,F){return this.isMessageEmpty(C,F)};
_.n.computeAuthorBadges=function(C){return C.authorBadges||[]};
_.n.isMessageEmpty=function(C,F){return!C||C.empty?!0:!C.message&&!C.inputField&&!F};
_.n.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.n.getInputElement=function(){return _.ot(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.n.inputFocus=function(){var C=this.getInputElement();C&&C.focus()};
_.n.inputInsertEmoji=function(C){var F=this.getInputElement();F&&F.insertEmoji(C)};
_.n.inputMessage=function(){var C=this.getInputElement();return C&&this.data.inputField?(C.completeEmojis(),_.MG(C.liveChatRichMessageInput)):null};
_.n.onFooterButtonClick=function(){this.data.footerButton&&_.oo(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.n.shouldSupportWholeItemClick=function(){return!0};
LK.prototype.isDeletedChanged=LK.prototype.isDeletedChanged;LK.prototype.messageChanged=LK.prototype.messageChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],LK.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.CK.YtLiveChatItemBehavior),_.Y("design:type",_.ji)],LK.prototype,"ytLiveChatItemBehavior",void 0);_.R([_.w(nuu.YtLiveChatMembershipItemBehavior),_.Y("design:type",Object)],LK.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],LK.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],LK.prototype,"data",void 0);_.R([_.L({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],LK.prototype,"hasPrimaryHeaderText",void 0);_.R([_.L({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.Y("design:type",Object)],LK.prototype,"showOnlyHeader",void 0);
_.R([_.L({computed:"computeAuthorBadges(data)"}),_.Y("design:type",Array)],LK.prototype,"authorBadges",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],LK.prototype,"modern",void 0);_.R([_.iP("data.message"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],LK.prototype,"messageChanged",null);_.R([_.iP("isDeleted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],LK.prototype,"isDeletedChanged",null);
_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],LK);
_.q(LK,"yt-live-chat-membership-item-renderer",function(){if(bNG===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;$FS===void 0&&($FS=document.createElement("template"));var V=$FS;G.call(F,V.content.cloneNode(!0),C.content.firstChild);bNG=C}C=bNG;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var u87;var zzO;var BL=function(){return _.B.apply(this,arguments)||this};
_.O(BL,_.B);BL.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],BL.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],BL.prototype,"data",void 0);_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],BL);
_.q(BL,"yt-live-chat-mode-change-message-renderer",function(){if(zzO===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;u87===void 0&&(u87=document.createElement("template"));var V=u87;G.call(F,V.content.cloneNode(!0),C.content.firstChild);zzO=C}C=zzO;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var Qbm;var I_m;var vL=function(){return _.B.apply(this,arguments)||this};
_.O(vL,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],vL.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.CK.YtLiveChatItemBehavior),_.Y("design:type",_.ji)],vL.prototype,"ytLiveChatItemBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],vL.prototype,"data",void 0);_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],vL);
_.q(vL,"yt-live-chat-moderation-message-renderer",function(){if(I_m===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;Qbm===void 0&&(Qbm=document.createElement("template"));var V=Qbm;G.call(F,V.content.cloneNode(!0),C.content.firstChild);I_m=C}C=I_m;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var EuP;var WKm;var fK=function(){var C=_.B.apply(this,arguments)||this;C.modern=_.y("web_button_rework");return C};
_.O(fK,_.B);fK.prototype.onClick=function(){var C;if((C=this.data)!=null&&C.onClickCommand){var F;_.Cy.instance.resolveCommand((F=this.data)==null?void 0:F.onClickCommand)}};
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],fK.prototype,"modern",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],fK.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.g6),_.Y("design:type",Object)],fK.prototype,"ytLiveChatReduxBehavior",void 0);_.R([_.w(_.CK.YtLiveChatItemBehavior),_.Y("design:type",_.ji)],fK.prototype,"ytLiveChatItemBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],fK.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],fK.prototype,"data",void 0);_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],fK);
_.q(fK,"yt-live-chat-offer-click-count-message-renderer",function(){if(WKm===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;EuP===void 0&&(EuP=document.createElement("template"));var V=EuP;G.call(F,V.content.cloneNode(!0),C.content.firstChild);WKm=C}C=WKm;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var tal;var a_r=function(){return _.B.apply(this,arguments)||this};
_.O(a_r,_.B);_.R([_.L(),_.Y("design:type",Object)],a_r.prototype,"data",void 0);_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],a_r);
_.q(a_r,"yt-live-chat-placeholder-item-renderer",function(){if(tal===void 0){var C=document.createElement("template");_.X(C,"\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");C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);tal=C}C=tal;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var k0r;var UFE;var HNu=new A4(7),hT=function(){var C=_.B.apply(this,arguments)||this;C.data={};return C};
_.O(hT,_.B);hT.prototype.dataChanged=function(){var C;((C=this.data)==null?0:C.class)&&_.pd(this.hostElement,this.data.class,!0);var F;((F=this.oldData)==null?0:F.class)&&_.pd(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
hT.prototype.computeTimestampString=function(C){return HNu.format(new Date(C/1E3))};
hT.prototype.dataChanged=hT.prototype.dataChanged;_.R([_.L(),_.Y("design:type",Object)],hT.prototype,"data",void 0);_.R([_.L({computed:"computeTimestampString(data.timestampUsec)"}),_.Y("design:type",String)],hT.prototype,"timestampString",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hT.prototype,"dataChanged",null);_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],hT);
_.q(hT,"yt-live-chat-server-error-message",function(){if(UFE===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;k0r===void 0&&(k0r=document.createElement("template"));var V=k0r;G.call(F,V.content.cloneNode(!0),C.content.firstChild);UFE=C}C=UFE;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var l_u;var yNG;var cL=function(){var C=_.B.apply(this,arguments)||this;C.defaultToFilledIcon=!1;return C};
_.O(cL,_.B);cL.prototype.computeHasPrimaryColorIcon=function(C){return C==="SPARK"||C==="SPONSORSHIP_STAR"};
cL.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],cL.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.CK.YtLiveChatItemBehavior),_.Y("design:type",_.ji)],cL.prototype,"ytLiveChatItemBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],cL.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],cL.prototype,"defaultToFilledIcon",void 0);_.R([_.L(),_.Y("design:type",Object)],cL.prototype,"data",void 0);
_.R([_.L({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],cL.prototype,"hasPrimaryColorIcon",void 0);_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],cL);
_.q(cL,"yt-live-chat-viewer-engagement-message-renderer",function(){if(yNG===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;l_u===void 0&&(l_u=document.createElement("template"));var V=l_u;G.call(F,V.content.cloneNode(!0),C.content.firstChild);yNG=C}C=yNG;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var ZNG;var AT=function(){var C=_.B.apply(this,arguments)||this;C.modernUpdate=!1;C.buttonStyle="overlay";C.buttonType="filled";return C};
_.O(AT,_.B);AT.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
AT.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],AT.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],AT.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],AT.prototype,"modernUpdate",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],AT.prototype,"buttonStyle",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],AT.prototype,"buttonType",void 0);
_.R([_.e({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],AT);
_.q(AT,"ytd-ad-hover-text-button-renderer",function(){if(ZNG!==void 0)return ZNG;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return ZNG=C},{mode:1});var NrE;var ei=function(){var C=_.B.apply(this,arguments)||this;C.buttonOverrides={size:"XS"};C.modern=_.y("web_button_rework");return C};
_.O(ei,_.B);ei.prototype.onHelpTap=function(C){this.data&&this.data.informationDialog&&(_.oo(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),C.preventDefault(),C.stopPropagation())};
_.R([_.L(),_.Y("design:type",Object)],ei.prototype,"buttonOverrides",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],ei.prototype,"modern",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ei.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],ei.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],ei);
_.q(ei,"ytd-live-chat-purchased-product-message-renderer",function(){if(NrE!==void 0)return NrE;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return NrE=C},{mode:1});var ONG;var XtG;var dK=function(){var C=_.B.apply(this,arguments)||this;C.isContainerDeleted=!1;return C};
_.O(dK,_.B);dK.prototype.onContextMenuClick=function(C){this.ytLiveChatItemBehavior.showContextMenu(C)};
dK.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))};
dK.prototype.isContainerDeletedChanged=dK.prototype.isContainerDeletedChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],dK.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.CK.YtLiveChatItemBehavior),_.Y("design:type",_.ji)],dK.prototype,"ytLiveChatItemBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],dK.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],dK.prototype,"isContainerDeleted",void 0);
_.R([_.L(),_.Y("design:type",String)],dK.prototype,"deletedStateMessage",void 0);_.R([_.iP("isContainerDeleted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dK.prototype,"isContainerDeletedChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],dK);
_.q(dK,"ytd-sponsorships-live-chat-header-renderer",function(){if(XtG!==void 0)return XtG;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return XtG=C},{mode:1});var xP=function(){var C=_.B.apply(this,arguments)||this;C.modern=_.y("web_button_rework_with_live");C.buttonOverrides={style:"overlay",type:"filled"};return C};
_.O(xP,_.B);xP.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]]"}}}}}};
xP.prototype.onCtaButtonClick=function(){var C,F=_.Z((C=this.data)==null?void 0:C.optInPrompt,_.DY);if(C=this.maybeGetButtonCommand(F)){var G;(G=_.ia())==null||G.clickCommand(C)}};
xP.prototype.maybeGetButtonCommand=function(C){return!C||!C.command||_.Z(C.command,qY$)===void 0&&_.Z(C.command,sfS)===void 0?null:C.command};
xP.prototype.shouldHideOptinPrompt=function(C,F){return!C||F};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],xP.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.CK.YtLiveChatItemBehavior),_.Y("design:type",_.ji)],xP.prototype,"ytLiveChatItemBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],xP.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],xP.prototype,"modern",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],xP);
_.q(xP,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(ONG!==void 0)return ONG;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return ONG=C},{mode:1});var wt7;var sM=function(){return _.B.apply(this,arguments)||this};
_.O(sM,_.B);sM.prototype.onContextMenuClick=function(C){this.ytLiveChatItemBehavior.showContextMenu(C)};
sM.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))};
sM.prototype.isDeletedChanged=sM.prototype.isDeletedChanged;_.R([_.w(_.CK.YtLiveChatItemBehavior),_.Y("design:type",_.ji)],sM.prototype,"ytLiveChatItemBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],sM.prototype,"data",void 0);_.R([_.iP("isDeleted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sM.prototype,"isDeletedChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],sM);
_.q(sM,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(wt7!==void 0)return wt7;var C=document.createElement("template");_.X(C,'\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="star_circle_ribbon" 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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return wt7=C},{mode:1});var qm=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return C};
_.O(qm,_.B);_.n=qm.prototype;
_.n.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"}}}};
_.n.handleLiveChatAction=function(C){_.Z(C,ZH7)?this.handleMarkChatItemAsDeletedAction(_.Z(C,ZH7)):_.Z(C,yar)&&this.handleRemoveChatItemAction(_.Z(C,yar))};
_.n.handleLiveChatActions=function(C){C.forEach(this.handleLiveChatAction,this)};
_.n.handleMarkChatItemAsDeletedAction=function(C){var F=this,G;((G=this.data)==null?0:G.items)&&this.data.items.forEach(function(V,J){var b=Object.keys(V)[0];Object.values(V)[0].id===C.targetItemId&&F.markAsDeleted("data.items",J,b,C.deletedStateMessage,C.showOriginalContentMessage)})};
_.n.handleRemoveChatItemAction=function(C){var F=this,G;((G=this.data)==null?0:G.items)&&this.data.items.forEach(function(V,J){Object.values(V)[0].id===C.targetItemId&&F.splice("data.items",J,1)})};
_.n.markAsDeleted=function(C,F,G,V,J){C=[C,F,G].join(".");this.set(C+".deletedStateMessage",V);this.set(C+".showOriginalContentMessage",J)};
_.R([_.L(),_.Y("design:type",Object)],qm.prototype,"data",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],qm.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],qm.prototype,"ytActionHandlerBehavior",void 0);_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],qm);
_.q(qm,"yt-live-chat-item-display-list-renderer",function(){if(Va8===void 0){var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;G0r===void 0&&(G0r=document.createElement("template"));var V=G0r;G.call(F,V.content.cloneNode(!0),C.content.firstChild);Va8=C}C=Va8;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var Mam;var Sy2,LKG=function(){if(Sy2!==void 0)return Sy2;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;Mam===void 0&&(Mam=document.createElement("template"));var V=Mam;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return Sy2=C};var PL=function(){var C=_.B.apply(this,arguments)||this;C.isHeader=!1;return C};
_.O(PL,_.B);PL.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.I6.Object.defineProperties(PL,{template:{configurable:!0,enumerable:!0,get:function(){return LKG()}}});
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],PL.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],PL.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],PL.prototype,"isHeader",void 0);_.R([_.Z5({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],PL);_.q(PL,"yt-live-chat-item-display-renderer",function(){return LKG()},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var BrE,vuy,ezm,ANl;
BrE={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}};vuy={home:"eohps",search:"eosps",watch:"eowps"};_.f_8=["watch","search","home"];
_.gK=function(){this.JSC$14407_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14407_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.TF("PRECONSTRUCTION_DELAY",0);this.signals_=_.Vc();this.targetPage_=""};
_.gK.prototype.init=function(C,F){C=C===void 0?"":C;F=F===void 0?null:F;if(this.JSC$14407_isInitialized_)this.abort();else if(this.JSC$14407_isInitialized_=!0,C&&_.hzr(this,C),F){var G=_.iM(this.signals_,"pcl")?0:10,V=function(){for(var J=0,b;b=_.f_8[J++];)b!=C&&b!=F&&this.pendingPages_.push(b);_.cN7(this)}.bind(this);
this.signals_.parkOrScheduleJob(V,G,"pcl")}};
_.gK.prototype.abort=function(){this.fragmentJobId_&&(_.gT.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);ANl(this)};
_.hzr=function(C,F){C.JSC$14407_isInitialized_&&!C.targetPage_&&(C.targetPage_=F,ezm(C,F),C.isInitialPass_=!1,ezm(C,F),C.signals_.processSignal(vuy[C.targetPage_]),ANl(C),_.cN7(C))};
_.cN7=function(C){C.pendingPages_.length&&!C.pagePreparerJobId_&&(C.pagePreparerJobId_=_.c8(_.gT,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.hzr(this,this.pendingPages_.shift())}.bind(C),C.DEFAULT_DELAY_))};
ezm=function(C,F){if(F=BrE[F])for(var G in F){var V=!1,J=G;G.charAt(0)=="~"&&(V=!0,J=G.substring(1));var b=F[G];b=typeof b=="object"?b:{count:b};F[G]=b;b.componentName=J;b.count>0&&(C.isInitialPass_?V||C.isSeenDuringInitialPass_[J]||(C.JSC$14407_queue_.push({componentName:J,count:1,signals:b.signals}),C.isSeenDuringInitialPass_[J]=!0,b.count--):C.JSC$14407_queue_.push(b))}};
ANl=function(C){C.JSC$14407_queue_.length=0;C.targetPage_="";C.isInitialPass_=!0;C.signals_.processSignal("eop")};
_.gK.getInstance=function(){return _.xZ(_.gK)};var dFr=function(){this.signals=_.Vc();this.init()};
dFr.prototype.startPreconstruction=function(){_.gK.getInstance().init(_.oD("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
dFr.prototype.init=function(){xF8(this);window.Polymer&&p98&&Fu5();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var C=_.VT.ytcsi;if(C&&C.gt&&(C=C.gt())&&C.tick&&(C.tick.aft>0||C.tick.pbs>0)&&(_.oD("IS_HOMEPAGE_COLD")||_.oD("IS_RESULTS_PAGE_COLD")||_.oD("IS_WATCH_PAGE_COLD"))){sb2(this);break a}xzI(Puw,this.onNotifications,this)}};
var xF8=function(C){var F=function(){C.signals.processSignal("dl")};
document.readyState==="complete"?(_.CD(Error("th"),"WARNING"),F()):_.WrS(window,"load",F)};
dFr.prototype.onNotifications=function(C){C.timer||(_.oD("IS_HOMEPAGE_COLD")||_.oD("IS_RESULTS_PAGE_COLD")||_.oD("IS_WATCH_PAGE_COLD"))&&sb2(this)};
var sb2=function(C){C.signals.parkOrScheduleJob(function(){C.signals.processSignal("eocs")},10,"eor")};
new dFr;var qyr=function(){return _.n5.apply(this,arguments)||this};
_.O(qyr,_.n5);_.I6.Object.defineProperties(qyr.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.y("enable_entity_store_from_dependency_injection")?_.Av():_.s3()}}});
_.R([_.uP()],qyr);_.Rr=[Ah.prototype,qyr.prototype];var Pt$=["ytd-rich-shelf-renderer"],YP=function(){var C=_.n5.apply(this,arguments)||this;C._noAccessors=!0;C.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";C.followUpDialogPromise=null;C.followUpDialogPromiseResolve=null;C.followUpDialogPromiseReject=null;return C};
_.O(YP,_.n5);_.n=YP.prototype;_.n.dismissibleItemIsDismissedChanged_=function(C){_.y("kevlar_fluid_dismiss")&&(C?_.oo(this.hostElement,"yt-dismissible-item-dismissed"):_.oo(this.hostElement,"yt-dismissible-item-undismissed"))};
_.n.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.n.dismissibleItemReset_=function(){var C=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 _.N1(function(F,G){C.followUpDialogPromiseResolve=F;C.followUpDialogPromiseReject=G});
_.oo(this.hostElement,"yt-enable-lockup-interaction")};
_.n.dismissibleItemOnYtServiceRequestSent_=function(C,F){F.actions&&this.dismissibleItemProcessActions(F.actions,C)};
_.n.dismissibleItemOnRequestSent=function(C){if(_.y("web_button_rework"))for(var F=_.u(C.detail),G=F.next();!G.done;G=F.next()){var V=void 0;(G=(V=_.Z(G.value,_.FI))==null?void 0:V.actions)&&this.dismissibleItemProcessActions(G,C)}};
_.n.dismissibleItemOnCommandSent=function(C,F){F&&this.dismissibleItemProcessActions(F,C)};
_.n.setAndGetDismissedContentId=function(C){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+C};
_.n.replayDismissAction=function(C){this.dismissibleItemProcessActions([C])};
_.n.dismissibleItemProcessActions=function(C,F){for(var G=0;G<C.length;G++){var V=C[G],J=void 0;((J=_.Z(V,_.Cl))==null?0:J.commands)&&this.dismissibleItemProcessActions(_.Z(V,_.Cl).commands,F);if(_.Z(V,_.MS)){if(J=_.Z(V,_.MS),!J.replaceParentSection||Pt$.includes(this.hostElement.nodeName.toLowerCase()))J.groupDismissal&&cUE(this,J.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(J),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.z3("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:V})),V=void 0,(V=F)==null||V.stopPropagation()}else if(_.Z(V,UqO))this.dismissibleItemHandleHideEnclosingAction_(),V=void 0,(V=F)==null||V.stopPropagation();else if(_.Z(V,PNG))V=_.Z(V,PNG),J=void 0,((J=V)==null?0:J.targetGroupId)&&cUE(this,{targetGroupId:V.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.z3("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
V=void 0,(V=F)==null||V.stopPropagation();else if(_.Z(V,_.FI))(V=_.Z(V,_.FI).actions)&&_.pX(this.hostElement,V,this.hostElement),V=void 0,(V=F)==null||V.stopPropagation();else{var b=J=void 0;((J=_.Z(V,_.DU))==null?void 0:J.signal)!=="TELL_US_WHY"||((b=_.Z(V,_.DU))==null?0:b.targetId)&&_.y("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),V=void 0,(V=F)==null||V.stopPropagation())}}};
_.n.dismissibleItemOnYtServiceRequestCompleted_=function(C,F){var G=this.get("feedbackResponses.0.followUpDialog",F.data);G?this.followUpDialogPromiseResolve(G):F.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(F.actions,C)};
_.n.dismissibleItemHandleReplaceEnclosingAction_=function(C){this.dismissedRenderer=C.item;this.isDismissed=!0;var F=null;(F=_.ot(this.hostElement).querySelector("#dismissed"))&&_.zH(this,function(){_.J5(F)});
_.oo(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.n.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.n.dismissibleItemHandleUndoFeedbackAction_=function(){_.oo(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.n.dismissibleItemHandleTellUsWhySignalAction_=function(){var C=this;this.followUpDialogPromise.then(function(F){C.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:F}})})};
YP.prototype.dismissibleItemOnYtServiceRequestCompleted_=YP.prototype.dismissibleItemOnYtServiceRequestCompleted_;YP.prototype.dismissibleItemOnCommandSent=YP.prototype.dismissibleItemOnCommandSent;YP.prototype.dismissibleItemOnRequestSent=YP.prototype.dismissibleItemOnRequestSent;YP.prototype.dismissibleItemOnYtServiceRequestSent_=YP.prototype.dismissibleItemOnYtServiceRequestSent_;YP.prototype.dismissibleItemDataChanged_=YP.prototype.dismissibleItemDataChanged_;
YP.prototype.dismissibleItemIsDismissedChanged_=YP.prototype.dismissibleItemIsDismissedChanged_;_.R([_.w(_.nK),_.Y("design:type",Object)],YP.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],YP.prototype,"ytdReduxBehavior",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],YP.prototype,"isDismissed",void 0);_.R([_.L(),_.Y("design:type",Object)],YP.prototype,"dismissedRenderer",void 0);
_.R([_.iP("isDismissed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Boolean]),_.Y("design:returntype")],YP.prototype,"dismissibleItemIsDismissedChanged_",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YP.prototype,"dismissibleItemDataChanged_",null);
_.R([_.VG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Sn]),_.Y("design:returntype")],YP.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.R([_.VG("yt-service-request-sent-button-renderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],YP.prototype,"dismissibleItemOnRequestSent",null);
_.R([_.VG("yt-dismissible-item-action"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Array]),_.Y("design:returntype")],YP.prototype,"dismissibleItemOnCommandSent",null);_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.en]),_.Y("design:returntype")],YP.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.R([_.uP()],YP);_.T6=[_.nK,_.Rr,YP.prototype];var or=function(){var C=_.n5.apply(this,arguments)||this;C.disableGridStateAware=!1;C.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};C.currentGridClass="";return C};
_.O(or,_.n5);or.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.zH(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var C=this.gridStateAwareGetElement();_.pd(C,"grid",!0)}};
or.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
or.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.ot(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
or.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var C="grid-disabled";else{C=_.H$.getInstance();var F=this.get("pageSubtype");C=F&&KQS.includes(F)?"grid-disabled":C.currentSnapState_?C.currentSnapState_.className:null}(F=this.gridStateAwareGetElement())&&C!==this.currentGridClass&&(C&&_.pd(F,C,!0),this.currentGridClass&&_.pd(F,this.currentGridClass,!1),this.currentGridClass=C)};
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],or.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",String)],or.prototype,"gridStateAwareSizingElementSelector",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],or.prototype,"disableGridStateAware",void 0);_.R([_.uP()],or);_.rK=[or.prototype,_.Z7.YtActionHandlerBehavior];_.KK=new _.jh("GUIDE_TOKEN");var pK;_.DL={};pK=function(){var C=_.n5.apply(this,arguments)||this;C.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 C};
_.O(pK,_.n5);_.n=pK.prototype;_.n.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.n.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var C=_.I8().resolve(_.Qt(_.KK));C&&(this.guidePersistentAndVisible=C.getGuidePersistentAndVisible(),this.activeEndpoint=C.getActiveEndpoint(),this.guideOpened=C.getGuideOpened(),this.miniGuideVisible=C.getMiniGuideVisible())};
_.n.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.n.handleGuideStateAction=function(C){this.guidePersistentAndVisible=C};
_.n.handleMiniGuideStateAction=function(C){this.miniGuideVisible=C};
_.n.handleGuideOpenedAction=function(C){this.guideOpened=C};
_.n.handleActiveEndpointAction=function(C){this.activeEndpoint=C};
pK.prototype.onActiveEndpointChange=pK.prototype.onActiveEndpointChange;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],pK.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],pK.prototype,"guidePersistentAndVisible",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],pK.prototype,"miniGuideVisible",void 0);_.R([_.L(),_.Y("design:type",Object)],pK.prototype,"activeEndpoint",void 0);
_.R([_.iP("activeEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pK.prototype,"onActiveEndpointChange",null);_.R([_.L(),_.Y("design:type",Boolean)],pK.prototype,"guideOpened",void 0);_.R([_.uP()],pK);_.DL.YtdGuideStateAwareBehavior=[];_.DL.YtdGuideStateAwareBehavior.push(pK.prototype,_.Z7.YtActionHandlerBehavior);var gul=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],mM=function(){var C=_.n5.apply(this,arguments)||this;C.hoverJobId=0;C.JSC$14434_touched=!1;return C};
_.O(mM,_.n5);_.n=mM.prototype;_.n.created=function(){this.useExpandableTooltip=!gul.includes(this.is)};
_.n.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.n.detached=function(){this.useExpandableTooltip=!1};
_.n.lockupOnDown=function(C){this.interactionElement&&!_.dE(_.AR(C),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.n.lockupOnUp=function(C){this.interactionElement&&!_.dE(_.AR(C),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.n.onTouchStart=function(){this.JSC$14434_touched=!0};
_.n.lockupOnMouseEnter=function(){var C=this,F=_.a8("kevlar_lockup_hover_delay",-1);this.JSC$14434_touched&&F>=0?(_.gT.cancelJob(this.hoverJobId),this.hoverJobId=_.gT.addJob(function(){C.lockupIsHovered=!0},8,F),this.JSC$14434_touched=!1):this.lockupIsHovered=!0};
_.n.lockupOnMouseLeave=function(){this.hoverJobId&&(_.gT.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.n.lockupOnPopupClosed=function(C,F){var G;((G=F.popupRenderer)==null?void 0:G.is)==="ytd-menu-popup-renderer"&&(C=F.popupRenderer.veData,F=_.ZQ(),C&&F&&_.A3(F,[C]))};
_.n.lockupOnLockupRequested=function(C){var F=C.detail.videoIds[0],G;C.detail&&F===((G=this.data)==null?void 0:G.videoId)&&(C.detail.returnValue=[this.data])};
_.n.lockupOnYtServiceRequestSent=function(C,F){if(C=F.actions)for(var G=0;G<C.length;G++){var V=C[G];if(V.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&F.ajaxPromise){var J=void 0,b=(J=_.Z(F.endpoint,_.TL))==null?void 0:J.playlistId;J=void 0;V=(J=V.removedVideoId)!=null?J:"";lTr(_.$s(),V,b)}else V.action==="ACTION_REMOVE_VIDEO"&&F.ajaxPromise&&(b=void 0,V=(b=V.setVideoId)!=null?b:"",_.yI2(_.$s(),V))}};
_.n.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.n.lockupOnLockupEnabled=function(){if(!this.$){var C=_.I8().resolve(_.qG).getCurrentPage(),F=this.getParentRenderer?this.getParentRenderer():void 0;_.Yw(new _.Ay("component not ready",this.is,this.isAttached,C==null?void 0:C.is,F==null?void 0:F.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
mM.prototype.lockupOnLockupEnabled=mM.prototype.lockupOnLockupEnabled;mM.prototype.lockupOnLockupDisabled=mM.prototype.lockupOnLockupDisabled;mM.prototype.lockupOnYtServiceRequestSent=mM.prototype.lockupOnYtServiceRequestSent;mM.prototype.lockupOnLockupRequested=mM.prototype.lockupOnLockupRequested;mM.prototype.lockupOnPopupClosed=mM.prototype.lockupOnPopupClosed;mM.prototype.lockupOnMouseLeave=mM.prototype.lockupOnMouseLeave;mM.prototype.lockupOnMouseEnter=mM.prototype.lockupOnMouseEnter;
mM.prototype.onTouchStart=mM.prototype.onTouchStart;mM.prototype.lockupOnUp=mM.prototype.lockupOnUp;mM.prototype.lockupOnDown=mM.prototype.lockupOnDown;_.R([_.L(),_.Y("design:type",Object)],mM.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Boolean)],mM.prototype,"lockupIsHovered",void 0);_.R([_.L(),_.Y("design:type",Boolean)],mM.prototype,"lockupTouchTriggered",void 0);_.R([_.L(),_.Y("design:type",Boolean)],mM.prototype,"useExpandableTooltip",void 0);
_.R([_.$z("#interaction"),_.Y("design:type",Object)],mM.prototype,"interactionElement",void 0);_.R([_.VG("down"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],mM.prototype,"lockupOnDown",null);_.R([_.VG("up"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],mM.prototype,"lockupOnUp",null);
_.R([_.VG("touchstart"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mM.prototype,"onTouchStart",null);_.R([_.VG("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mM.prototype,"lockupOnMouseEnter",null);_.R([_.VG("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mM.prototype,"lockupOnMouseLeave",null);
_.R([_.VG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],mM.prototype,"lockupOnPopupClosed",null);_.R([_.VG("yt-lockup-requested"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],mM.prototype,"lockupOnLockupRequested",null);
_.R([_.VG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Sn]),_.Y("design:returntype")],mM.prototype,"lockupOnYtServiceRequestSent",null);_.R([_.VG("yt-disable-lockup-interaction"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mM.prototype,"lockupOnLockupDisabled",null);
_.R([_.VG("yt-enable-lockup-interaction"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mM.prototype,"lockupOnLockupEnabled",null);_.R([_.uP()],mM);_.CR=[mM.prototype];_.Rzm={YtdReduxBehavior:[]};_.Rzm.YtdReduxBehavior.push.apply(_.Rzm.YtdReduxBehavior,_.Rr);var jt=function(){var C=_.n5.apply(this,arguments)||this;C._noAccessors=!0;C.disableNowPlaying=!1;C.disableTooltips=!1;C.useHoveredProperty=!1;C.hovered=!1;C.isThumbnailHovered_=!1;C.addBackground=_.y("kevlar_thumbnail_bg");C.nowPlaying=!1;C.disableRounding=!1;C.size="small";return C};
_.O(jt,_.n5);_.n=jt.prototype;_.n.computeThumbnailOverlaySidePanelWidth_=function(C,F){return C-F};
_.n.computeSize=function(C,F){if(!this.disableRounding){if(!C&&!F)return"small";C=Math.max(C||0,F||0);return C>=256?"large":C>=96?"medium":"small"}};
_.n.computeFinalHoveredState_=function(C,F,G){return this.nowPlaying?!1:_.y("kevlar_thumbnail_fluid")&&C?F:G};
_.n.computeHoverOverlays_=function(C,F){return C&&F?F:void 0};
_.n.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.n.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.n.checkMiniplayer_=function(){var C;if(((C=this.data)==null?0:C.playlistSetVideoId)&&_.y("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{C=_.v0();var F=C.currentEndpoint;!this.disableNowPlaying&&F&&_.Z(F,_.eT)&&this.data?(F=_.Z(F,_.eT),this.nowPlaying=this.data.playlistId?F.playlistId===this.data.playlistId:F.videoId===this.data.videoId,this.isVideoPlaying=C==null?void 0:C.isVideoPlaying):this.nowPlaying=!1}};
jt.prototype.checkMiniplayer_=jt.prototype.checkMiniplayer_;jt.prototype.onMouseLeave_=jt.prototype.onMouseLeave_;jt.prototype.onMouseEnter_=jt.prototype.onMouseEnter_;jt.prototype.computeHoverOverlays_=jt.prototype.computeHoverOverlays_;jt.prototype.computeFinalHoveredState_=jt.prototype.computeFinalHoveredState_;jt.prototype.computeSize=jt.prototype.computeSize;jt.prototype.computeThumbnailOverlaySidePanelWidth_=jt.prototype.computeThumbnailOverlaySidePanelWidth_;
_.R([_.w(_.Rr),_.Y("design:type",Object)],jt.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],jt.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Number)],jt.prototype,"height",void 0);_.R([_.L(),_.Y("design:type",Boolean)],jt.prototype,"bottomSidePanel",void 0);_.R([_.L(),_.Y("design:type",Number)],jt.prototype,"width",void 0);_.R([_.L(),_.Y("design:type",Object)],jt.prototype,"disableNowPlaying",void 0);
_.R([_.L({selector:_.yj}),_.Y("design:type",Boolean)],jt.prototype,"miniplayerIsActive",void 0);_.R([_.L(),_.Y("design:type",Object)],jt.prototype,"disableTooltips",void 0);_.R([_.L(),_.Y("design:type",Object)],jt.prototype,"useHoveredProperty",void 0);_.R([_.L(),_.Y("design:type",Object)],jt.prototype,"hovered",void 0);_.R([_.L(),_.Y("design:type",Object)],jt.prototype,"isThumbnailHovered_",void 0);
_.R([_.L({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.Y("design:type",Boolean)],jt.prototype,"finalHoveredState_",void 0);_.R([_.L({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.Y("design:type",Number)],jt.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],jt.prototype,"addBackground",void 0);
_.R([_.L({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.Y("design:type",Object)],jt.prototype,"hoverOverlays_",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],jt.prototype,"nowPlaying",void 0);_.R([_.L(),_.Y("design:type",Boolean)],jt.prototype,"isVideoPlaying",void 0);_.R([_.L(),_.Y("design:type",Object)],jt.prototype,"disableRounding",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.Y("design:type",Object)],jt.prototype,"size",void 0);_.R([_.VG("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jt.prototype,"onMouseEnter_",null);_.R([_.VG("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jt.prototype,"onMouseLeave_",null);
_.R([_.iP("data","disableNowPlaying","miniplayerIsActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jt.prototype,"checkMiniplayer_",null);_.R([_.uP()],jt);var Yyo=[jt.prototype];_.Fi={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(C,F){return C+":"+_.rI(F)},
getPlayerListener_:function(C,F,G){C=this.getPlayerListenerKey_(C,F);F=this.playerListeners_.get(C);G&&this.playerListeners_.delete(C);return F},
savePlayerListener_:function(C,F){var G=F.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(C,F),G);return G},
listenToPlayerEvent:function(C,F,G){G=this.savePlayerListener_(F,G);C.addEventListener(F,G)},
listenToPlayerEvents:function(C,F){F.forEach(function(G,V){this.listenToPlayerEvent(C,V,G)}.bind(this))},
unlistenFromPlayerEvent:function(C,F,G){G=this.getPlayerListener_(F,G,!0);C.removeEventListener(F,G)},
unlistenFromPlayerEvents:function(C,F){F.forEach(function(G,V){this.unlistenFromPlayerEvent(C,V,G)}.bind(this))}}};
_.GR=function(){};_.Trm=new _.jh("PLAYER_API_TOKEN");var xgo=!1,gAf,qFf=!1,YFq;var Tb=function(C,F,G,V,J){_.hV.call(this);var b=this;this.playerId=F;this.webPlayerContextConfig=V;this.niq=J;this.dOl=!1;this.api={};this.c4C=this.xrt=null;this.fqG=new _.SP;this.g5={};this.cYI=this.icu=this.elementId=this.zLK=this.config=null;this.t6v=!1;this.ea=this.nyG=null;this.fHi={};this.iIq=["onReady"];this.lastError=null;this.s7P=NaN;this.g91={};this.tES=0;this.wG=this.targetElement=C;_.Nd(this,this.fqG);ouS(this);G?this.tES=setTimeout(function(){b.loadNewVideoConfig(G)},0):V&&(rN8(this),
KKP(this))};
_.O(Tb,_.hV);Tb.prototype.getId=function(){return this.playerId};
Tb.prototype.loadNewVideoConfig=function(C){if(!this.isDisposed()){this.tES&&(clearTimeout(this.tES),this.tES=0);var F=C||{};F instanceof MKr||(F=new MKr(F));this.config=F;this.setConfig(C);KKP(this);this.isReady()&&DF8(this)}};
var rN8=function(C){var F;C.webPlayerContextConfig?F=C.webPlayerContextConfig.rootElementId:F=C.config.attrs.id;C.elementId=F||C.elementId;C.elementId==="video-player"&&(C.elementId=C.playerId,C.webPlayerContextConfig?C.webPlayerContextConfig.rootElementId=C.playerId:C.config.attrs.id=C.playerId);var G;((G=C.wG)==null?void 0:G.id)===C.elementId&&(C.elementId+="-player",C.webPlayerContextConfig?C.webPlayerContextConfig.rootElementId=C.elementId:C.config.attrs.id=C.elementId)};
Tb.prototype.setConfig=function(C){this.zLK=C;this.config=ptS(C);rN8(this);if(!this.icu){var F;this.icu=mF2(this,((F=this.config.args)==null?void 0:F.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var G;if((G=this.config)==null?0:G.attrs)C=this.config.attrs,(F=C.width)&&this.wG&&(this.wG.style.width=h8(Number(F)||F,!0)),(C=C.height)&&this.wG&&(this.wG.style.height=h8(Number(C)||C,!0))};
Tb.prototype.getConfig=function(){return this.zLK};
var DF8=function(C){if(C.config&&C.config.loaded!==!0)if(C.config.loaded=!0,!C.config.args||C.config.args.autoplay!=="0"&&C.config.args.autoplay!==0&&C.config.args.autoplay!==!1){var F;C.api.loadVideoByPlayerVars((F=C.config.args)!=null?F:null)}else C.api.cueVideoByPlayerVars(C.config.args)},jcO=function(C){var F=!0,G=C.getPlayerElement();
G&&C.config&&(F=G.dataset.version===C2u(C));return F&&!!_.mN("yt.player.Application.create")},KKP=function(C){if(!C.isDisposed()&&!C.t6v){var F=jcO(C);
if(F&&(C.getPlayerElement()?"html5":null)==="html5")C.cYI="html5",C.isReady()||FUr(C);else if(Guu(C),C.cYI="html5",F&&C.ea&&C.targetElement)C.targetElement.appendChild(C.ea),FUr(C);else{C.config&&(C.config.loaded=!0);var G=!1;C.nyG=function(){G=!0;var V=V1G(C,"player_bootstrap_method")?_.mN("yt.player.Application.createAlternate")||_.mN("yt.player.Application.create"):_.mN("yt.player.Application.create");var J=C.config?ptS(C.config):void 0;V&&V(C.targetElement,J,C.webPlayerContextConfig,C.niq);FUr(C)};
C.t6v=!0;F?C.nyG():(_.LX(C2u(C),C.nyG),(F=iu7(C))&&nDT(F||""),JDG(C)&&!G&&_.zn("yt.player.Application.create",null))}}};
Tb.prototype.getPlayerElement=function(){var C=_.YJ(document,this.elementId);!C&&this.wG&&this.wG.querySelector&&(C=this.wG.querySelector("#"+this.elementId));return C};
var FUr=function(C){if(!C.isDisposed()){var F=C.getPlayerElement(),G=!1;F&&F.getApiInterface&&F.getApiInterface()&&(G=!0);if(G){C.t6v=!1;if(!V1G(C,"html5_remove_not_servable_check_killswitch")){var V;if((F==null?0:F.isNotServable)&&C.config&&(F==null?0:F.isNotServable((V=C.config.args)==null?void 0:V.video_id)))return}$vu(C)}else C.s7P=setTimeout(function(){FUr(C)},50)}},$vu=function(C){ouS(C);
C.dOl=!0;var F=C.getPlayerElement();if(F){C.xrt=bur(C,F,"addEventListener");C.c4C=bur(C,F,"removeEventListener");var G=F.getApiInterface();G=G.concat(F.getInternalApiInterface());for(var V=C.api,J=0;J<G.length;J++){var b=G[J];V[b]||(V[b]=bur(C,F,b))}}for(var z in C.g5)C.g5.hasOwnProperty(z)&&C.xrt&&C.xrt(z,C.g5[z]);DF8(C);C.icu&&C.icu(C.api);C.fqG.publish("onReady",C.api)},bur=function(C,F,G){var V=F[G];
return function(){var J=_.Rn.apply(0,arguments);try{return C.lastError=null,V.apply(F,J)}catch(b){if(G!=="sendAbandonmentPing")throw b.params=G,C.lastError=b,J=new _.Ay("PlayerProxy error in method call",{error:b,method:G,playerId:C.playerId}),J.level="WARNING",J;}}},ouS=function(C){C.dOl=!1;
if(C.c4C)for(var F in C.g5)C.g5.hasOwnProperty(F)&&C.c4C(F,C.g5[F]);for(var G in C.g91)C.g91.hasOwnProperty(G)&&clearTimeout(Number(G));C.g91={};C.xrt=null;C.c4C=null;F=C.api;for(var V in F)F.hasOwnProperty(V)&&(F[V]=null);F.addEventListener=function(J,b){C.addEventListener(J,b)};
F.removeEventListener=function(J,b){C.removeEventListener(J,b)};
F.destroy=function(){C.dispose()};
F.getLastError=function(){return C.getLastError()};
F.getPlayerType=function(){return C.getPlayerType()};
F.getCurrentVideoConfig=function(){return C.getConfig()};
F.loadNewVideoConfig=function(J){C.loadNewVideoConfig(J)};
F.isReady=function(){return C.isReady()}};
Tb.prototype.isReady=function(){return this.dOl};
Tb.prototype.addEventListener=function(C,F){var G=this;this.isDisposed();var V=mF2(this,F);V&&(_.sB(this.iIq,C)||this.g5[C]||(F=nQm(this,C),this.xrt&&this.xrt(C,F)),this.fqG.subscribe(C,V),C==="onReady"&&this.isReady()&&setTimeout(function(){V(G.api)},0))};
Tb.prototype.removeEventListener=function(C,F){this.isDisposed()||(F=mF2(this,F))&&this.fqG.unsubscribe(C,F)};
var mF2=function(C,F){var G=F;if(typeof F==="string"){if(C.fHi[F])return C.fHi[F];G=function(){var V=_.Rn.apply(0,arguments),J=_.mN(F);if(J)try{J.apply(_.VT,V)}catch(b){throw V=new _.Ay("PlayerProxy error when executing callback",{error:b}),V.level="ERROR",V;}};
C.fHi[F]=G}return G?G:null},nQm=function(C,F){var G=function(V){var J=function(){C.isDisposed();
if(!C.isDisposed())try{C.fqG.publish(F,V!=null?V:void 0)}catch(Q){var z=new _.Ay("PlayerProxy error when creating global callback",{error:Q.message,event:F,playerId:C.playerId,data:V,originalStack:Q.stack,componentStack:Q.componentStack});z.level="WARNING";throw z;}};
if(V1G(C,"web_player_publish_events_immediately"))J();else{var b=setTimeout(function(){J();_.xf.remove(C.g91,String(b))},0);
_.xf.add(C.g91,String(b),!0)}};
return C.g5[F]=G};
Tb.prototype.getPlayerType=function(){return this.cYI||(this.getPlayerElement()?"html5":null)};
Tb.prototype.getLastError=function(){return this.lastError};
var Guu=function(C){C.cancel();ouS(C);C.cYI=null;C.config&&(C.config.loaded=!1);var F=C.getPlayerElement();F&&(jcO(C)||!JDG(C)?C.ea=F:(F&&F.destroy&&F.destroy(),C.ea=null));C.targetElement&&_.w8(C.targetElement)};
Tb.prototype.cancel=function(){this.nyG&&_.eaq(C2u(this),this.nyG);clearTimeout(this.s7P);this.t6v=!1};
Tb.prototype.disposeInternal=function(){Guu(this);if(this.ea&&this.config&&this.ea.destroy)try{this.ea.destroy()}catch(F){var C=new _.Ay("PlayerProxy error during disposal",{error:F});C.level="ERROR";throw C;}this.fHi=null;for(C in this.g5)this.g5.hasOwnProperty(C)&&delete this.g5[C];this.zLK=this.config=this.api=null;delete this.targetElement;delete this.wG;_.hV.prototype.disposeInternal.call(this)};
var JDG=function(C){var F,G;C=(F=C.config)==null?void 0:(G=F.args)==null?void 0:G.fflags;return!!C&&C.indexOf("player_destroy_old_version=true")!==-1},C2u=function(C){return C.webPlayerContextConfig?C.webPlayerContextConfig.jsUrl:(C=C.config.assets)?C.js:""},iu7=function(C){return C.webPlayerContextConfig?C.webPlayerContextConfig.cssUrl:(C=C.config.assets)?C.css:""},V1G=function(C,F){if(C.webPlayerContextConfig)var G=C.webPlayerContextConfig.serializedExperimentFlags;
else{var V;if((V=C.config)==null?0:V.args)G=C.config.args.fflags}return(G||"").split("&").includes(F+"=true")},ptS=function(C){for(var F={},G=_.u(Object.keys(C)),V=G.next();!V.done;V=G.next()){V=V.value;
var J=C[V];F[V]=typeof J==="object"?_.xf.clone(J):J}return F};var Dgw={},KLo="player_uid_"+(Math.random()*1E9>>>0);var VU=function(C,F,G,V,J,b){F=F===void 0?document.createElement("div"):F;this.webPlayerContextConfig=C;this.container=F;this.commandResolver=G;this.apiResolver=CtT();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.Cd;V||b?uKO(this):zVo(this);this.pendingPlayerResponse=V;this.pendingWatchNextResponse=J;this.pendingPlayerVars=b;Qc7(this)};
VU.prototype.loadVideoWithPlayerResponse=function(C,F,G){this.loadVideo(C,F,G)};
VU.prototype.loadVideoWithPlayerVars=function(C){return this.loadVideo(void 0,void 0,C)};
VU.prototype.destroy=function(C){if(C=_.YJ(document,C))C=KLo+"_"+_.rI(C),(C=Dgw[C])&&C.dispose()};
var EQy=function(C,F){var G;_.I(function(V){if(V.nextAddress==1)return C.pendingWatchNextResponse=F,C.synchronousApi?(G=C.synchronousApi,V.jumpTo(2)):V.yield(C.api,3);V.nextAddress!=2&&(G=V.yieldResult);if(!IkS(C,G))return V.return();C.pendingWatchNextResponse&&(G.updateVideoData({raw_watch_next_response:C.pendingWatchNextResponse}),C.pendingWatchNextResponse=void 0);_.S9(V)})},IkS=function(C,F){var G;
if(!(F==null?0:(G=F.isReady)==null?0:G.call(F))){var V;_.Yw(new _.Ay("playerApi is falsey",{synchronousApi:C.synchronousApi,apiResolved:C.apiResolver.resolved,playerApiUndefined:F===void 0,playerApiNull:F===null,playerApiReady:(F==null?void 0:(V=F.isReady)==null?void 0:V.call(F))===!0,playerApiMethods:F?Object.keys(F):[]}));return!1}return!0},WUu=function(C,F){if(typeof C[F]==="function")return C[F]()},t1G=function(C){var F=window,G,V=(G=F.ytplayer)==null?void 0:G.bootstrapPlayerContainer;
if((G=V==null?void 0:V.firstElementChild)&&_.Pd(G,"html5-video-player")){var J,b,z=(J=F.ytplayer)==null?void 0:(b=J.bootstrapWebPlayerContextConfig)==null?void 0:b.contextId;J=C.webPlayerContextConfig.contextId;if(z&&z===J){V!==C.container&&(V=!1,WUu(G,"getPlayerState")===2&&(V=!0),C.container.appendChild(G),V||WUu(G,"playVideo"));var Q;if((Q=F.ytplayer)==null?0:Q.bootstrapPlayerResponse)C.bootstrapPlayerResponse=F.ytplayer.bootstrapPlayerResponse}}},Qc7=function(C){var F,G,V,J,b;
_.I(function(z){if(z.nextAddress==1)return C.pageReadyOrDataAvailable?z.jumpTo(2):z.yield(C.pageReadyOrDataAvailableResolver.promise,2);if(z.nextAddress!=4)return!_.y("kevlar_player_unified_player_loading")||sKs()&&P3A()?z.jumpTo(4):z.yield(oA9(),4);t1G(C);if(C.pendingPlayerResponse||C.pendingPlayerVars)F=rUZ(C.pendingPlayerResponse,C.pendingWatchNextResponse,C.pendingPlayerVars),C.pendingPlayerResponse&&C.pendingPlayerResponse===C.bootstrapPlayerResponse&&(F.loaded=!0),C.bootstrapPlayerResponse=
void 0;G=mgS(C.container,F,C.webPlayerContextConfig);((V=F)==null?0:V.loaded)&&C.pendingWatchNextResponse?(EQy(C,C.pendingWatchNextResponse),C.pendingPlayerResponse=void 0,C.pendingPlayerVars=void 0):ak2(C);J=function(Q){G.removeEventListener("onReady",J);C.synchronousApi=Q;C.apiResolver.resolve(Q)};
G.addEventListener("onReady",J);C.commandResolver!==void 0&&(b=C.commandResolver,G.addEventListener("innertubeCommand",function(Q){b(Q)}));
_.S9(z)})};
VU.prototype.loadVideo=function(C,F,G){var V=this,J,b,z,Q,E,t,k,U,H;return _.I(function(l){if(l.nextAddress==1)return V.pendingPlayerResponse=C,V.pendingWatchNextResponse=F,V.pendingPlayerVars=G,uKO(V),V.synchronousApi?(J=V.synchronousApi,l.jumpTo(2)):l.yield(V.api,3);l.nextAddress!=2&&(J=l.yieldResult);if(!IkS(V,J))return l.return(new Promise(function(){}));
z=new Promise(function(N){b=N});
Q=function(){var N=J.getPlayerResponse();N&&(J.removeEventListener("onVideoDataChange",Q),b(N))};
J.addEventListener("onVideoDataChange",Q);if(V.pendingPlayerResponse||V.pendingPlayerVars)V.pendingPlayerResponse&&V.pendingPlayerResponse===V.bootstrapPlayerResponse?(b(V.pendingPlayerResponse),V.pendingWatchNextResponse&&EQy(V,V.pendingWatchNextResponse)):(E=rUZ(V.pendingPlayerResponse,V.pendingWatchNextResponse,V.pendingPlayerVars),(H=(t=V.pendingPlayerResponse)==null?void 0:(k=t.playerConfig)==null?void 0:(U=k.playbackStartConfig)==null?void 0:U.startPaused)?J.cueVideoByPlayerVars(E.args):J.loadVideoByPlayerVars(E.args)),
ak2(V),V.bootstrapPlayerResponse=void 0;return l.return(z)})};
var zVo=function(C){if(document.readyState==="complete"||document.readyState==="interactive")uKO(C);else{var F=function(){document.removeEventListener("DOMContentLoaded",F);uKO(C)};
document.addEventListener("DOMContentLoaded",F)}},uKO=function(C){C.pageReadyOrDataAvailable=!0;
C.pageReadyOrDataAvailableResolver.resolve()},ak2=function(C){C.pendingPlayerResponse=void 0;
C.pendingWatchNextResponse=void 0;C.pendingPlayerVars=void 0};
_.I6.Object.defineProperties(VU.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var iY=function(C){hB.call(this,C===void 0?"document_active":C);var F=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(G){F.transition("document_disposed",{event:G})});
window.addEventListener("beforeunload",function(G){F.transition("document_disposed_preventable",{event:G})});
window.addEventListener("unload",function(G){F.transition("document_disposed",{event:G});F.hasRun=new Map})};
_.O(iY,hB);
iY.prototype.runPreventableDispose=function(C,F){if(!this.hasRun.get("document_disposed_preventable")){C(F==null?void 0:F.event);var G,V;if((F==null?0:(G=F.event)==null?0:G.defaultPrevented)||(F==null?0:(V=F.event)==null?0:V.returnValue)){F.event.returnValue||(F.event.returnValue=!0);F.event.defaultPrevented||F.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")};
iY.prototype.runDispose=function(C,F){this.hasRun.get("document_disposed")?this.transition("document_active"):(C(F==null?void 0:F.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
iY.prototype.runFlush=function(C,F){C(F==null?void 0:F.event);this.transition("document_active")};
iY.prototype.runActive=function(){};var JJ=function(C){hB.call(this,C===void 0?"document_visibility_unknown":C);var F=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(G){document.visibilityState==="visible"?F.transition("document_visible",{event:G}):F.transition("document_hidden",
{event:G})});
_.y("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(G){F.transition("document_backgrounded",{event:G})}),window.addEventListener("focus",function(G){F.transition("document_foregrounded",{event:G})}))};
_.O(JJ,hB);JJ.prototype.runVisible=function(C,F){C(F==null?void 0:F.event);_.y("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
JJ.prototype.runHidden=function(C,F){C(F==null?void 0:F.event);_.y("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
JJ.prototype.runBackgrounded=function(C,F){C(F==null?void 0:F.event)};
JJ.prototype.runForegrounded=function(C,F){C(F==null?void 0:F.event)};var $W=function(){this.teardownLifecycle=new iY;this.visibilityLifecycle=new JJ};
$W.prototype.install=function(){var C=_.Rn.apply(0,arguments),F=this;C.forEach(function(G){F.teardownLifecycle.install(G)});
C.forEach(function(G){F.visibilityLifecycle.install(G)})};var bY=function(){$W.call(this);var C={};this.install((C.document_disposed={callback:this.abortSlisAndFlush},C));_.y("combine_ve_grafts")&&(C={},this.install((C.document_disposed={callback:this.flushInteractionLoggingAttachVes},C)));C={};this.install((C.flush_logs={callback:this.logFinalPayload},C));_.y("web_log_cfg_cee_ks")||_.c8(_.gT,ku8)};
_.O(bY,$W);var jbi=function(){bY.loggingInstance||(bY.loggingInstance=new bY);return bY.loggingInstance};
bY.prototype.logFinalPayload=function(){if(_.y("web_fp_via_jspb")){var C=new XYE,F=_.ZQ();F&&_.fA(C,1,F);F=_.y("jspb_sparse_encoded_pivot")?new h5([{}]):new h5;_.X6(F,380,wYu,C);wfi("finalPayload",F);_.y("web_fp_via_jspb_and_json")&&_.q1("finalPayload",{csn:_.ZQ()})}else _.q1("finalPayload",{csn:_.ZQ()})};
bY.prototype.abortSlisAndFlush=function(){IMS(iW);JK!=null&&JK.flush()};
bY.prototype.flushInteractionLoggingAttachVes=function(){vFy(_.ia())};
var ku8=function(){var C=_.TF("CLIENT_EXPERIMENT_EVENTS");if(C){var F=F$Z();C=_.u(C);for(var G=C.next();!G.done;G=C.next())G=G.value,F(G)&&_.q1("genericClientExperimentEvent",{eventType:G});delete _.RD.CLIENT_EXPERIMENT_EVENTS}};var UvS={};
UvS.YtPlayerBehavior=[_.Fi.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 C=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.Cd;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;FKw(function(){C.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.TA(this,"pan-down"),_.y("kevlar_pinch_fullscreen")&&_.MZ().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.y("kevlar_pinch_fullscreen")&&_.MZ().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(C,F,G){var V=this;oe(this.useUnifiedPlayer_());if(this.mainAppPlayer_)oe(!1,"MainAppPlayer already created.");else{var J=_.y("kevlar_player_container_query_killswitch")?this.$.container:_.ot(this.hostElement).querySelector("#container");this.mainAppPlayer_=new VU(this.getWebPlayerContextConfig_(),J,function(b){return _.jR(b,V.hostElement)},C,F,G);
this.mainAppPlayer_.api.then(function(b){V.player_=b;V.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&hjP.resolve(b)})}},
loadVideoWithPlayerResponse:function(C,F){var G=this;if(this.useUnifiedPlayer_()){var V=this.watchNextData,J,b=(J=C.videoDetails)==null?void 0:J.videoId,z,Q,E;(J=(z=this.watchNextData)==null?void 0:(Q=z.currentVideoEndpoint)==null?void 0:(E=Q.watchEndpoint)==null?void 0:E.videoId)&&b!=J&&(V=void 0,_.y("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(C,V,F):this.createMainAppPlayer_(C,V,F);this.mainAppPlayer_.api.then(function(){_.oo(G.hostElement,
"yt-player-updated")})}else this.update(AUi(C,F))},
loadVideoWithPlayerVars:function(C){var F=this;this.useUnifiedPlayer_()?(_.y("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(C):this.createMainAppPlayer_(void 0,void 0,C),this.mainAppPlayer_.api.then(function(){_.oo(F.hostElement,"yt-player-updated")})):this.update({args:C})},
update:function(C){var F=this;if(this.useUnifiedPlayer_())oe(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(C);var G=Tgs(C.args);G&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==G&&Object.assign(C.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(C).then(function(V){_.oo(F.hostElement,"yt-player-updated",_.y("kevlar_player_updated_obsolete_player_killswitch")?
V:void 0)})}_.R1(new _.Ay("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(C){var F=this,G;return _.I(function(V){if(V.nextAddress==1)return V.yield(F.getPlayerPromise(),2);G=V.yieldResult;if(!G)throw Error("vh");C&&F.updatePlayerPlaylist_(C);_.S9(V)})},
acquireApi_:function(C){var F=this;if(this.useUnifiedPlayer_())oe(!1,"Invalid method call in kevlar_unified_player.");else return _.gT.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(oe(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(G){F.shouldAutoplay_(C)?G.loadVideoByPlayerVars(C.args):G.cueVideoByPlayerVars(C.args)})):this.initPlayerPromise_=this.initPlayerContainer_(C),this.initPlayerPromise_},
initPlayerContainer_:function(C){var F=this;if(this.useUnifiedPlayer_())oe(!1,"Invalid method call in kevlar_unified_player.");else return oe(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.Yw(Error("wh")),oe(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.y("kevlar_player_container_query_killswitch")?this.$.container:_.ot(this.hostElement).querySelector("#container"),oA9().then(function(){var G=F.initPlayer_(C);F.playerResolver_.resolve(G);
return G})},
onPlayerReady_:function(C,F){this.useUnifiedPlayer_()?oe(!1,"Invalid method call in kevlar_unified_player."):(C.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&hjP.resolve(C),F(C))},
maybeCallApiMethodOnElement_:function(C,F){if(typeof C[F]==="function")return C[F]()},
maybeAdoptBootstrapPlayer_:function(){var C=window,F,G=(F=C.ytplayer)==null?void 0:F.bootstrapPlayerContainer;if((F=G==null?void 0:G.firstElementChild)&&F.classList.contains("html5-video-player")){var V,J,b=(V=C.ytplayer)==null?void 0:(J=V.bootstrapWebPlayerContextConfig)==null?void 0:J.contextId;V=this.getWebPlayerContextConfig_().contextId;if(b&&b===V){G!==this.playerContainer_&&(G=!1,this.maybeCallApiMethodOnElement_(F,"getPlayerState")===2&&(G=!0),this.playerContainer_.appendChild(F),G||this.maybeCallApiMethodOnElement_(F,
"playVideo"));var z;if((z=C.ytplayer)==null?0:z.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=C.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(C){var F=this;if(this.useUnifiedPlayer_())oe(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(G){F.maybeAdoptBootstrapPlayer_();var V=C?eMI(C):void 0;V&&V==F.bootstrapPlayerResponse_&&(C.loaded=!0);V=F.playerContainer_;var J=F.getWebPlayerContextConfig_();V=mgS(V,C,J);F.player_=V;F.onPlayerReadyEvent_=F.onPlayerReady_.bind(F,F.player_,G);F.player_.addEventListener("onReady",F.onPlayerReadyEvent_);F.player_.addEventListener("innertubeCommand",
F.onPlayerInnerTubeCommand_.bind(F))})},
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(C){C.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(C){C.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var C=_.I8().resolve(_.qG).getCurrentPage();C&&C.getScrollTop()<=0?_.TA(this,"pan-down"):_.TA(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(C){C.isFullscreen()||C.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(C){C.isFullscreen()&&C.toggleFullscreen()})},
updatePlayerPlaylist_:function(C){var F=this,G,V,J;return _.I(function(b){if(b.nextAddress==1)return G=_.I8().resolve(_.Qt(_.Fx)),V=!!(G&&G.playlistComponent&&G.playlistComponent.loopOn),b.yield(F.getPlayerPromise(),2);var z=J=b.yieldResult,Q=z.updatePlaylist,E=[];if(_.y("kevlar_player_playlist_use_local_index")){var t,k;var U=(k=(t=C.localCurrentIndex)!=null?t:C.currentIndex)!=null?k:0}else{var H;U=(H=C.currentIndex)!=null?H:0}if(C.contents)for(t=0;t<C.contents.length;t++)if((k=C.contents[t])&&k.playlistPanelVideoRenderer)if(YYI(k)){k=
k.playlistPanelVideoRenderer;H="";k.shortBylineText&&(H=_.dd(k.shortBylineText));var l="";k.title?l=_.dd(k.title):k.unplayableText&&(l=_.dd(k.unplayableText));E.push({author:H,title:l,encrypted_id:k.videoId})}else t<U&&--U;Q.call(z,{index:U,list:C.playlistId?C.playlistId:"",loop:V,playlist_title:C.title,playlist_length:E.length,video:E,fetch:0,external_list:"1",title:C.title?C.title:"",playlist_author:C.ownerName?_.dd(C.ownerName):void 0});_.S9(b)})},
focusOnPlayer:function(){_.zH(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var C=this.playerContainer_.querySelector(".html5-video-player");C&&(_.nR(_.I8().resolve(_.zb)),C.focus())}})},
preparePlayer:function(){var C=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(F){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")F();else{var G=function(){document.removeEventListener("DOMContentLoaded",G);F()};
document.addEventListener("DOMContentLoaded",G)}})).then(function(){return oA9()}).then(function(){C.initPlayerPromise_||C.preparePlayerJobId_||(C.preparePlayerJobId_=_.c8(_.gT,function(){C.initPlayerPromise_||(C.initPlayerPromise_=C.initPlayerContainer_())}))}):_.R1(new _.Ay("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(C){this.useUnifiedPlayer_()?oe(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(C)||(C.args.autoplay="0")},
shouldAutoplay_:function(C){if(this.useUnifiedPlayer_())oe(!1,"Invalid method call in kevlar_unified_player.");else{var F=this.get("args.el",C);return F&&F!="detailpage"&&this.isMiniplayerActive_()||F&&(F=="sponsorshipsoffer"||F=="handlesclaiming")&&this.get("args.autoplay",C)=="0"?!1:(C=eMI(C))&&this.get("playerConfig.playbackStartConfig.startPaused",C)?!1:!0}},
isMiniplayerActive_:function(){return _.I8().resolve(_.Od).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var C=this.getPlayer();if(C){var F=C.getPlayerState();_.y("kevlar_player_check_ad_state_on_stop")&&(F=C.getPlayerState(C.getPresentingPlayerType()));F!=5&&C.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(C,F,G){G=G===void 0?!1:G;var V=this,J,b,z,Q;return _.I(function(E){if(E.nextAddress==1)return F||(F=V.hostElement),J=V.useUnifiedPlayer_()?!!V.mainAppPlayer_:!!V.initPlayerPromise_,J?E.yield(V.getPlayerPromise(),2):(G?C.insertBefore(F,C.firstChild):C.appendChild(F),E.return());b=E.yieldResult;z=b.getPlayerState(b.getPresentingPlayerType());Q=!1;if(z==-1||z==1||z==3)Q=!0;G?C.insertBefore(F,C.firstChild):C.appendChild(F);Q&&b.playVideo();b.setSize(NaN,NaN);_.S9(E)})},
watchNextDataChanged_:function(C){var F=this;C&&(this.useUnifiedPlayer_()&&_.y("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&EQy(this.mainAppPlayer_,C):this.getPlayerPromise().then(function(G){G.updateVideoData(F.computeWatchNextPlayerVars_(C))}))},
computeWatchNextPlayerVars_:function(C){if(this.useUnifiedPlayer_()&&_.y("kevlar_unified_player_update_watch_next_killswitch"))oe(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:C}},
maybeSendAbandonmentPing_:function(){var C=this.getPlayer();C&&C.getPlayerState()!=5&&C.getPlayerState()!=0&&C.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var C=_.TF("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(C=Object.assign({},C),C.rootElementId=this.playerId);C.serializedExperimentIds&&C.serializedExperimentFlags||_.Yw(Error("xh"));return C},
hasWebPlayerContextConfig_:function(){return!!_.TF("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(C){this.useUnifiedPlayer_()?oe(!1,"Invalid method call in kevlar_unified_player."):_.jR(C,this.hostElement)},
useUnifiedPlayer_:function(){var C=_.y("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.y("kevlar_unified_player")||C}}];var Hu7={};Hu7.YtPlaylistPanelBehavior=[_.D.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(C){C=C.detail;if(C.actions.loop!=void 0||C.actions["yt-icons:loop"]!=void 0)this.loopOn=C.actions.loop||C.actions["yt-icons:loop"];if(C.actions.shuffle!=void 0||C.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=C.actions.shuffle||C.actions["yt-icons:shuffle"]},
setMenuData_:function(C){if(!C||!C.playlistButtons||C.isInfinite)return null;for(var F=C.playlistButtons.menuRenderer.topLevelButtons,G=F.length,V=0;V<G;V++)if(F[V].toggleButtonRenderer){var J=F[V].toggleButtonRenderer;J.defaultIcon.iconType=="LOOP"&&this.loopOn?J.isToggled=this.loopOn:J.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(J.isToggled=this.shuffleOn)}return C.playlistButtons}}];_.uY={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(C,F,G){var V=this.getClickTarget_(F);if(V&&this.isClickAllowed_(V)){F.preventDefault();C=(0,_.xf.unsafeClone)(C);var J=this.getContainerBoundingRect();F=this.getRelativeClickXy_(F,J);this.expandEndpointUrlMacros_(C,{NX:F[0],NY:F[1],NB:V.code});G&&this.truncateWebCommendMetadataUrl_(C);_.oo(this.hostElement,"yt-navigate",{endpoint:C})}},
getClickTarget_:function(C){if(!this.clickTargetMap)return null;C=_.AR(C)||[];C=_.u(C);for(var F=C.next();!F.done;F=C.next()){F=F.value;if(F===_.ot(this.hostElement).querySelector("#menu"))break;if(F=this.clickTargetMap.get(F.id))return F}return null},
getRelativeClickXy_:function(C,F){var G=Math.round(C.detail.x-F.left);C=Math.round(C.detail.y-F.top);return G<0||C<0?[null,null]:[G,C]},
getContainerBoundingRect:function(){return _.ot(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(C,F){for(var G=_.u(C.loggingUrls||[]),V=G.next();!V.done;V=G.next())V=V.value,V.baseUrl&&(V.baseUrl=QXW(V.baseUrl,F));C.urlEndpoint&&C.urlEndpoint.url&&(C.urlEndpoint.url=QXW(C.urlEndpoint.url,F));C.commandMetadata&&C.commandMetadata.webCommandMetadata&&C.commandMetadata.webCommandMetadata.url&&(C.commandMetadata.webCommandMetadata.url=QXW(C.commandMetadata.webCommandMetadata.url,F))},
truncateWebCommendMetadataUrl_:function(C){if(C.commandMetadata&&C.commandMetadata.webCommandMetadata&&C.commandMetadata.webCommandMetadata.url){var F=C.commandMetadata.webCommandMetadata.url,G=F.indexOf("&pp=");if(G>0){var V=F.indexOf("&",G+1);C.commandMetadata.webCommandMetadata.url=V>G&&V<F.length?F.slice(0,G)+F.slice(V):F.slice(0,G)}}},
configureClickTargets:function(C,F,G){this.containerId=C;this.clickTargetMap=new Map;C=_.u(F);for(F=C.next();!F.done;F=C.next())if(F=F.value,F.location){var V=G.get(F.location);V&&(_.pd(_.ot(this.hostElement).querySelector("#"+V),"yt-simple-endpoint",this.isClickAllowed_(F)),this.clickTargetMap.set(V,F))}},
isClickAllowed_:function(C){return C.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||C.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||C.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||C.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.zR={};
_.zR.YtLazyListBehavior=[_.ic.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 C=(this.constructor.generatedFrom||this).observers;C||(C=[]);C.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
C}},
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 C=this.renderElementsOutsideVisibleArea_;C&&(U6l(C,4),C.processSignal())},
deepLazyListObserver_:function(C){var F=this;if(C){var G=C.value||[];if(this.itemsPath==C.path){var V=this.nonDeferredItemCount;C=0;V>-1&&G.length>V&&(C=_.TF("REMAINING_DOVA_DEFERRED_CHUNKS",-1));C>0?(V>0&&(V=G.slice(0,V),this.setInitialItemsOnDataChanged(V)),(V=this.renderElementsOutsideVisibleArea_)?V.cancel():(V=this.renderElementsOutsideVisibleArea_=new _.$a(2,"eocs"),_.WrS(window,"scroll",function(){return F.renderDeferredElements()})),_.bc(V,function(){F.setInitialItemsOnDataChanged(G)}),_.Yn("REMAINING_DOVA_DEFERRED_CHUNKS",
C-1)):this.setInitialItemsOnDataChanged(G)}else if(this.itemsPath+".splices"==C.path)this.onItemsUpdated_(G);
else V="shownItems"+C.path.substr(this.itemsPath.length),this.useSignals&&V==="shownItems.length"||this.notifyPath(V,C.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(C){C&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(C),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(C){C=C.indexSplices;for(var F=0,G=C.length;F<G;F++){var V=C[F];if(V.index<this.shownCount&&(V.removed&&this.splice("shownItems",V.index,V.removed.length),V.addedCount)){var J=V.object.slice(V.index,V.index+V.addedCount);V=["shownItems",V.index,0];V.push.apply(V,J);this.splice.apply(this,V)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(C){this.cancelPendingTasks_();C||(C=[]);this.items_=C;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&&(_.oD("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.zH(this,this.tryRenderChunk_)))},
fillRange_:function(C,F){this.canShowMore&&this.items_&&(C=this.items_.slice(C,F),C.unshift("shownItems"),this.push.apply(this,C),this.shownCount=F,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var C=this;this.canShowMore&&_.Bb(this,"renderChunk",function(){C.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.oD("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.Iy(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var C=this.renderElementsOutsideVisibleArea_;C&&(C.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var C=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(C-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=C;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(C){return Math.ceil(1E3/C)},
onCanShowMoreUpdated_:function(C){this.data&&this.items_!==null&&(C?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(C){!this.shouldUseTaskManager()&&this.data&&(!C&&this.canShowMore?(_.ULi(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):C&&this.partiallyRenderedItems_.has(this.items_)&&(_.y("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var EY;_.QU={};
EY=function(){var C=_.n5.apply(this,arguments)||this;C.atStart=!0;C.atEnd=!0;C.startIndex=0;C.endIndex=0;C.scrollCount=0;C.initialStartIndex=0;C.disableScrollEventListener=!1;C.useFloorScrolling=!1;C.isSearch=!1;C.dragging=!1;C.dragMouseStart=0;C.dragOffsetStart=0;C.disableWheelScroll=!1;C.centerListItems=!1;C.offset=0;C.minComponentWidth=0;C.marginWidthRight=0;C.marginWidthLeft=0;C.setButtonsStateRequested=!1;C.itemsVisibilityObserver=null;C.fullyVisibleItemsIndices=[];C.JSC$14496_onWheelScroll=function(F){if(C.isSearch&&
!C.disableWheelScroll&&_.y("desktop_enable_dmpanel_wheel_scroll")){var G=F.shiftKey?Math.abs(F.deltaY)>Math.abs(F.deltaX)?F.deltaY:F.deltaX:F.deltaX;G!==0&&(F.preventDefault(),C.ytLazyListBehavior.fillRemainingListItems(),C.offset+=G,If(C),C.reposition_())}};
C.onPointerDown=function(F){lkS(C)&&(C.dragMouseStart=F.clientX,C.dragOffsetStart=C.offset,C.dragging=!0)};
C.onPointerMove=function(F){lkS(C)&&C.dragging&&(C.ytLazyListBehavior.fillRemainingListItems(),C.offset=C.dragOffsetStart-(F.clientX-C.dragMouseStart),If(C),C.reposition_())};
C.onPointerUp=function(){lkS(C)&&(C.dragging=!1)};
return C};
_.O(EY,_.n5);var yDP=function(C){var F=_.ot(C.hostElement).querySelector("#items").children;if(!F)return 0;var G=0;C=_.u(C.fullyVisibleItemsIndices);for(var V=C.next();!V.done;V=C.next())G+=F[V.value].clientWidth;return G},lkS=function(C){return C.isSearch&&_.y("desktop_enable_dmpanel_click_drag_scroll")};
EY.prototype.created=function(){this.cachedViewportWidth=_.TF("initialInnerWidth")||window.innerWidth;this.JSC$14496_cachedViewportHeight=_.TF("initialInnerHeight")||window.innerHeight;_.TF("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.Yn("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
EY.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.y("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();ZuP(this)};
EY.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.y("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var C;(C=this.itemsVisibilityObserver)==null||C.disconnect();this.itemsVisibilityObserver=null;var F;(F=this.itemsObserver)==null||F.disconnect()};
var ZuP=function(C){var F=_.ot(C.hostElement).querySelector("#scroll-container");if(F){if(!C.itemsVisibilityObserver){var G=window.getComputedStyle(F).marginRight;C.itemsVisibilityObserver=new IntersectionObserver(function(V){N5l(C,V)},{root:F,
rootMargin:G,threshold:.98})}if(F=_.ot(C.hostElement).querySelector("#items"))C.itemsObserver=new jPl(F,function(V){Ou2(C,V)})}},Ou2=function(C,F){X22(C)&&(Array.from(F.addedNodes).filter(function(G){return G.nodeType===Node.ELEMENT_NODE}).forEach(function(G){C.itemsVisibilityObserver&&C.itemsVisibilityObserver.observe(G)}),Array.from(F.removedNodes).filter(function(G){return G.nodeType===Node.ELEMENT_NODE}).forEach(function(G){C.itemsVisibilityObserver&&C.itemsVisibilityObserver.unobserve(G)}))},
N5l=function(C,F){var G=new Set(C.fullyVisibleItemsIndices);
F=_.u(F);for(var V=F.next();!V.done;V=F.next()){V=V.value;var J=V.target.parentElement;J?(J=Array.from(J.children).indexOf(V.target),V.isIntersecting?G.add(J):G.has(J)&&G.delete(J)):_.Yw(new _.Ay("Parent element not found",V.target.nodeName))}C.fullyVisibleItemsIndices=Array.from(G).sort(function(b,z){return b-z});
G.size===0?_.Yw(new _.Ay("No visible entries in horizontal list")):(C.startIndex=C.fullyVisibleItemsIndices[0],C.endIndex=C.fullyVisibleItemsIndices[C.fullyVisibleItemsIndices.length-1])},X22=function(C){C.data?C=(C=C.data)&&C.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===C.itemSizeConstraint:!1:C=!1;
return C};
_.n=EY.prototype;_.n.addScrollEventListeners=function(){var C=_.ot(this.hostElement).querySelector("#scroll-container");C.style.touchAction="pan-y";C.addEventListener("wheel",this.JSC$14496_onWheelScroll);C.addEventListener("pointerdown",this.onPointerDown);C.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.n.removeScrollEventListeners=function(){var C=_.ot(this.hostElement).querySelector("#scroll-container");C.removeEventListener("wheel",this.JSC$14496_onWheelScroll);C.removeEventListener("pointerdown",this.onPointerDown);C.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.n.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.zH(this,this.setStartIndex,[this.initialStartIndex])};
_.n.reposition_=function(){var C=_.TF("HTML_DIR")=="rtl"?"":"-",F=_.ot(this.hostElement).querySelector("#items");F&&(F.style.transform="translateX("+C+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.n.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.zH(this,this.setButtonsState_))};
_.n.setButtonsState_=function(){this.setButtonsStateRequested=!1;var C=_.ot(this.hostElement).querySelector("#items").firstElementChild;if(C){this.minComponentWidth||(this.minComponentWidth=w2S(this,C));C=_.ot(this.hostElement).querySelector("#scroll-container").clientWidth;var F=_.ot(this.hostElement).querySelector("#items");F=_.y("kevlar_horizontal_list_scroll_width_killswitch")?F.clientWidth:F.scrollWidth;var G=this.get(this.ytLazyListBehavior.itemsPath,this);if(G){var V=Math.round(C/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+V,G.length)-1)}this.ytLazyListBehavior.canShowMore?F+this.minComponentWidth>=this.offset+C&&(this.atEnd=!1):this.atEnd=this.offset+C>=F-20?!0:!1;this.atStart=this.offset<=20}};
_.n.setStartIndex=function(C){if(!this.minComponentWidth){var F=_.ot(this.hostElement).querySelector("#items").firstElementChild;if(!F)return;this.minComponentWidth=w2S(this,F)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*C;If(this);this.reposition_()};
_.n.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.a4();var C=_.ot(this.hostElement).querySelector("#scroll-container").clientWidth;_.y("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=w2S(this,_.ot(this.hostElement).querySelector("#items").firstElementChild));C=this.useFloorScrolling?Math.floor(C/this.minComponentWidth)||1:Math.round(C/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&M17(this);this.offset+=X22(this)?
yDP(this):C*this.minComponentWidth;If(this);this.reposition_();this.scrollCount++};
_.n.prevClick_=function(){var C=_.ot(this.hostElement).querySelector("#scroll-container").clientWidth;C=this.useFloorScrolling?Math.floor(C/this.minComponentWidth)||1:Math.round(C/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=X22(this)?yDP(this):this.minComponentWidth*this.scrollCount-1):this.offset-=X22(this)?yDP(this):C*this.minComponentWidth;this.centerListItems&&M17(this);If(this);this.reposition_()};
_.n.onIronResize_=function(){this.resizeSupportEnabled&&_.zH(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.n.onItemsTransitionEnd_=function(C){_.ev(C)===_.ot(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.n.onChildElementFocus_=function(C){C=C.target.closest("#items > *");var F=_.ot(this.hostElement).querySelector("#scroll-container");if(F.contains(C)){if(_.y("web_horizontal_list_behavior_focus_killswitch"))if(C.offsetLeft<this.offset)this.offset=Math.abs(C.offsetLeft)<C.clientWidth?0:C.offsetLeft;else if(C.offsetLeft+C.clientWidth>this.offset+F.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.a4(),this.offset=C.offsetLeft+C.clientWidth-F.clientWidth;else return;else{var G=_.ot(this.hostElement).querySelector("#items"),
V=_.TF("HTML_DIR")==="rtl",J=V?G.clientWidth-C.offsetLeft:C.offsetLeft;G=V?G.clientWidth-(C.offsetLeft+C.clientWidth):C.offsetLeft+C.clientWidth;var b=V?J>this.offset+F.clientWidth:J<this.offset,z=V?G<this.offset:G>this.offset+F.clientWidth,Q=V?b:z;if(V?z:b)F=V?G:J,this.offset=Math.abs(F)<C.clientWidth?0:F;else if(Q)this.ytLazyListBehavior.fillRemainingListItems(),_.a4(),this.offset=(V?J:G)-F.clientWidth;else return}If(this);this.reposition_()}};
_.n.observeShownItems_=function(){this.reset()};
_.n.checkComponentWidthResize=function(){var C=_.ot(this.hostElement).querySelector("#items").firstElementChild;C&&(C=w2S(this,C),this.centerListItems||C!==this.minComponentWidth)&&(this.minComponentWidth=C,this.offset=C*this.scrollCount,this.centerListItems&&M17(this),If(this),this.reposition_())};
var w2S=function(C,F){var G=window.getComputedStyle(F).marginRight;G=Math.floor(Number(G.replace("px","")));var V=window.getComputedStyle(F).marginLeft;V=Math.floor(Number(V.replace("px","")));C.centerListItems&&!C.marginWidthRight&&(C.marginWidthRight=G,C.marginWidthLeft=V);return C.resizeSupportEnabled?F.getBoundingClientRect().width+G:F.offsetWidth+G},If=function(C){var F=_.ot(C.hostElement).querySelector("#scroll-container").clientWidth,G=_.ot(C.hostElement).querySelector("#items").clientWidth;
C.offset<0?C.offset=0:C.offset+F>=G&&(C.offset=G-F)},M17=function(C){C.offset-=(_.ot(C.hostElement).querySelector("#scroll-container").clientWidth+C.marginWidthRight-C.minComponentWidth)/2-C.marginWidthLeft};
_.I6.Object.defineProperties(EY.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var C=_.TF("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(C==-1)C=this.JSC$14496_cachedViewportHeight,C=C>1320?5:C>1020?4:C>730?3:C>430?2:1;else if(C==0)return 0;_.Yn("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",C-1);C=_.TF("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(C>-1)return C;C=this.cachedViewportWidth;C=C>1600?6:C>1400?5:C>1300?4:C>1090?5:C>870?4:C>660?3:2;_.Yn("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
C);return C},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.y("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
EY.prototype.observeShownItems_=EY.prototype.observeShownItems_;EY.prototype.onChildElementFocus_=EY.prototype.onChildElementFocus_;EY.prototype.onItemsTransitionEnd_=EY.prototype.onItemsTransitionEnd_;EY.prototype.onIronResize_=EY.prototype.onIronResize_;EY.prototype.prevClick_=EY.prototype.prevClick_;EY.prototype.nextClick_=EY.prototype.nextClick_;EY.prototype.setButtonsState_=EY.prototype.setButtonsState_;EY.prototype.requestButtonsStateUpdate_=EY.prototype.requestButtonsStateUpdate_;
EY.prototype.reposition_=EY.prototype.reposition_;EY.prototype.reset=EY.prototype.reset;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],EY.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.zR.YtLazyListBehavior),_.Y("design:type",Object)],EY.prototype,"ytLazyListBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],EY.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],EY.prototype,"atStart",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],EY.prototype,"atEnd",void 0);_.R([_.L(),_.Y("design:type",Object)],EY.prototype,"startIndex",void 0);_.R([_.L(),_.Y("design:type",Object)],EY.prototype,"endIndex",void 0);_.R([_.L({value:6}),_.Y("design:type",Number)],EY.prototype,"initialCount",void 0);_.R([_.L(),_.Y("design:type",Object)],EY.prototype,"scrollCount",void 0);_.R([_.L(),_.Y("design:type",Object)],EY.prototype,"initialStartIndex",void 0);
_.R([_.L(),_.Y("design:type",Object)],EY.prototype,"disableScrollEventListener",void 0);_.R([_.L(),_.Y("design:type",Object)],EY.prototype,"supportComponentResize",void 0);_.R([_.L({value:function(){var C=this;return function(){return C.prevClick_()}}}),
_.Y("design:type",Function)],EY.prototype,"boundPrevClick",void 0);_.R([_.L({value:function(){var C=this;return function(){return C.nextClick_()}}}),
_.Y("design:type",Function)],EY.prototype,"boundNextClick",void 0);_.R([_.L(),_.Y("design:type",Object)],EY.prototype,"useFloorScrolling",void 0);_.R([_.L(),_.Y("design:type",Object)],EY.prototype,"isSearch",void 0);_.R([_.L(),_.Y("design:type",Object)],EY.prototype,"dragging",void 0);_.R([_.L(),_.Y("design:type",Object)],EY.prototype,"dragMouseStart",void 0);_.R([_.L(),_.Y("design:type",Object)],EY.prototype,"dragOffsetStart",void 0);
_.R([_.L(),_.Y("design:type",Object)],EY.prototype,"disableWheelScroll",void 0);_.R([_.L(),_.Y("design:type",Object)],EY.prototype,"centerListItems",void 0);_.R([_.VG("iron-resize"),_.iP("guideOpened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],EY.prototype,"onIronResize_",null);_.R([_.VG("transitionend"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],EY.prototype,"onItemsTransitionEnd_",null);
_.R([_.VG("focusin"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],EY.prototype,"onChildElementFocus_",null);_.R([_.iP("shownItems"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],EY.prototype,"observeShownItems_",null);_.R([_.uP()],EY);_.QU.YtdHorizontalListBehavior=[];_.QU.YtdHorizontalListBehavior.push(_.AY,_.D.YtRendererBehavior,_.zR.YtLazyListBehavior,_.DL.YtdGuideStateAwareBehavior,EY.prototype);var VaZ=["APP_STATE","PI"];var WZ,tJ=function(C){this.hostElement=C},af=function(C,F){if(F&&(bNq(F.viewableCommands)||bNq(F.endOfSessionCommands))){var G=u8E(F.viewableCommands);
F=u8E(F.endOfSessionCommands);if(!WZ){var V=_.a8("custom_active_view_tos_timeout_ms");WZ=V>0&&V!==36E5?new AFo(nuA(),V):new AFo(nuA())}dtA(WZ,C.hostElement);xt5(WZ,C.hostElement,G,F)}},kW=function(C){WZ&&dtA(WZ,C.hostElement)};var SOS=_.h6(["about:blank"]),LU2={pushState:window.history.pushState,replaceState:window.history.replaceState};var UY=function(C){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=C;this.internalPushState=C.pushState.bind(C);this.internalReplaceState=C.replaceState.bind(C)};
UY.prototype.init=function(){this.initialized=!0};
UY.prototype.pushState=function(C,F){this.initialized||this.init();this.internalPushState&&this.internalPushState(C,"",F)};
UY.prototype.replaceState=function(C,F){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(C,"",F)};
UY.prototype.getState=function(){return this.history&&this.history.state};var B5$=function(C){var F=function(){var G=C.apply(this,arguments)||this;G.boundHistoryPushState=!1;G.boundHistoryReplaceState=!1;G.debugInfo={};return G};
_.O(F,C);F.prototype.init=function(){var G=_.Md("IFRAME");_.mY(G,_.kf(SOS));G.sandbox="allow-same-origin";G.style.display="none";this.iframe=G;document.body.appendChild(G);this.bindHistoryStateFunctions();C.prototype.init.call(this)};
F.prototype.bindHistoryStateFunctions=function(){var G=this,V=[],J;this.iframe&&((J=this.iframe.contentWindow)==null?0:J.history)&&(J=this.iframe.contentWindow.history)&&(V.push(J),Object.getPrototypeOf(J)&&V.push(Object.getPrototypeOf(J)));window.history&&V.push(window.history);J=window.history;Object.getPrototypeOf(J)&&V.push(Object.getPrototypeOf(J));V.push(LU2);J=function(z){for(var Q=null,E=0;E<V.length;E++){var t=V[E][z];if(typeof t==="function"){Q=t.bind(window.history);G.debugInfo[z]=E;break}}return Q};
if(!this.boundHistoryReplaceState){var b=J("replaceState");b&&(this.internalReplaceState=b,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(J=J("pushState"))&&(this.internalPushState=J,this.boundHistoryPushState=!0)};
return F}(UY),vQl=function(){return B5$.call(this,window.history)||this};
_.O(vQl,B5$);vQl.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var HZ=function(C){this.browserHistory=C;this.initialized=!1};
HZ.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
HZ.prototype.pushState=function(C,F){this.initialized||this.init();this.browserHistory.pushState(C,F)};
HZ.prototype.replaceState=function(C,F){this.initialized||this.init();this.browserHistory.replaceState(C,F)};
HZ.prototype.handlePopstate=function(C){return C.state};_.fkm=function(C,F,G,V,J){this.endpoint=C;this.forward=F;this.historyEntry=G;this.JSC$30427_savedComponentState=V;this.legacyBorder=J===void 0?!1:J};var hVl=function(C,F){this.rootData=C;this.scrollTop=F};_.lY=new _.jh("EPHEMERAL_STORE_TOKEN");_.yU=function(C){this.data=Object.assign({},C);var F;(F=this.data.innertubeResponse)==null||delete F.frameworkUpdates};
_.yU.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.Et)()};
_.qx=function(C){return Object.assign({},C.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var cDm=function(){this.maxSize=100;this.timeToDataCache=new Map};
cDm.prototype.get=function(C){var F=this.timeToDataCache.get(C);F&&(this.timeToDataCache.delete(C),this.timeToDataCache.set(C,F));if(F&&F.rootData&&(_.y("web_use_response_store_for_history_cache")||_.y("mweb_use_new_history_manager"))){var G=_.I8().resolve(_.lY),V=ADl(F),J=!!V;if(V){if(V.content){var b=Z2(G,V.content);J&&b?F.rootData.response=_.qx(b):J=!1}V.player&&(b=Z2(G,V.player),J&&b?F.rootData.playerResponse=_.qx(b):J=!1);V.reelSequence&&(G=Z2(G,V.reelSequence),J&&G?F.rootData.reelWatchSequenceResponse=
_.qx(G):J=!1)}J||(this.timeToDataCache.delete(C),F=void 0)}return F};
cDm.prototype.set=function(C,F){if(F.rootData&&(_.y("web_use_response_store_for_history_cache")||_.y("mweb_use_new_history_manager"))){var G=ADl(F),V=Object.assign({},F.rootData);G&&(G.content&&F.rootData.response&&(eVG(this,G.content,F.rootData.response),V.response=null),G.player&&F.rootData.playerResponse&&(eVG(this,G.player,F.rootData.playerResponse),V.playerResponse=null),G.reelSequence&&F.rootData.reelWatchSequenceResponse&&(eVG(this,G.reelSequence,F.rootData.reelWatchSequenceResponse),V.reelWatchSequenceResponse=
null));F=new hVl(V,F.scrollTop)}this.timeToDataCache.has(C)?this.timeToDataCache.delete(C):this.timeToDataCache.size>=this.maxSize&&(G=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(G.value));this.maxSize!==0&&this.timeToDataCache.set(C,F)};
cDm.prototype.clear=function(){this.timeToDataCache.clear()};
var ADl=function(C){var F=_.I8().resolve(_.Qt(_.Q7)),G;if((G=C.rootData)==null?0:G.endpoint)return F==null?void 0:kwB(F,C.rootData.endpoint);var V;_.Yw(new _.Ay("History snapshot response data does not contain endpoint",(V=C.rootData)==null?void 0:V.url));return null},eVG=function(C,F,G){if(C.maxSize>0){var V;
(C=(V=G.responseContext)==null?void 0:V.maxAgeSeconds)&&Number(C)>0&&(V=_.I8().resolve(_.lY),G=DH(G,C),V.put(F,new _.yU(G)))}};var dvo=function(C,F,G){this.endpoint=F;this.JSC$30433_savedComponentState=G===void 0?null:G;this.entryTime=C};var I_B=1;var Nj=function(C){var F=function(){var G=C.apply(this,[].concat(_.da(_.Rn.apply(0,arguments))))||this;G.historyEntryTime=0;G.historySnapshotCache=G.createHistoryCache();return G};
_.O(F,C);F.prototype.createHistoryCache=function(){return new cDm};
F.prototype.saveAndReplace=function(G,V,J){var b=window.location.href;var z=z===void 0?{}:z;var Q=(Q=this.browserHistory.getState())&&Q.entryTime?Q.entryTime:Eu9();G=this.createNewHistoryEntry(G,z,Q);this.saveSnapshot(Q,V,J);this.replaceState(G,b||window.location.href)};
F.prototype.saveAndPush=function(G,V,J,b,z){z=z===void 0?{}:z;this.saveSnapshot(this.historyEntryTime,J,b);J=this.historySnapshotCache;b=this.historyEntryTime;var Q=J.timeToDataCache.keys();Q=_.u(Q);for(var E=Q.next();!E.done;E=Q.next())E=E.value,E>b&&J.timeToDataCache.delete(E);V=this.createNewHistoryEntry(V,z);this.pushState(V,G)};
F.prototype.saveSnapshot=function(G,V,J){this.historySnapshotCache.set(G,new hVl(V,J))};
F.prototype.createNewHistoryEntry=function(G,V,J){J=J===void 0?Eu9():J;return new dvo(J,G,V)};
F.prototype.handlePopstate=function(G){var V=C.prototype.handlePopstate.call(this,G),J=null,b=null,z=!1,Q=null;V&&V.entryTime&&(Q=this.historySnapshotCache.get(V.entryTime)||null,z=V.entryTime>this.historyEntryTime,this.historyEntryTime=V.entryTime,J=V.endpoint,b=V.JSC$30433_savedComponentState);this.handleHistoryCacheLoad(new _.fkm(J,z,Q,b),G);return V};
F.prototype.pushState=function(G,V){Number(G==null?void 0:G.entryTime)>=0&&(this.historyEntryTime=G.entryTime);C.prototype.pushState.call(this,G,V)};
F.prototype.replaceState=function(G,V){Number(G==null?void 0:G.entryTime)>=0&&(this.historyEntryTime=G.entryTime);C.prototype.replaceState.call(this,G,V)};
F.prototype.handleHistoryCacheLoad=function(){};
return F}(HZ),xvG=function(){var C=Nj.call(this,new vQl)||this;
C.dispatchElement=null;C.entryIndex=0;return C};
_.O(xvG,Nj);_.n=xvG.prototype;_.n.init=function(C){C=C===void 0?!0:C;Nj.prototype.init.call(this);this.initialized||(C||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.n.handlePopstate=function(C){var F=null;C.state||(F="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return Nj.prototype.handlePopstate.call(this,C);var G=new CustomEvent("yt-history-pop",{cancelable:!0});_.rz(this.dispatchElement,"yt-history-pop",[G,{errorMsg:F}]);_.KX(this.dispatchElement,"yt-close-all-popups-action");if(!G.defaultPrevented){G=_.I8().resolve(_.qG);F=G.getCurrentData();var V=G.getCurrentPage();G=0;V?(V=_.rz(this.dispatchElement,"yt-get-page-offset",
[V]),V.length>0&&(G=V[0])):_.Yw(new _.Ay("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:F?F.page:"undefined"}));F&&(F.csn=_.ZQ());this.saveSnapshot(this.historyEntryTime,F,G)}return Nj.prototype.handlePopstate.call(this,C)};
_.n.handleHistoryCacheLoad=function(C,F){C.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.u(_.KX(this.dispatchElement,"yt-history-will-navigate",[F])).next().value||_.rz(this.dispatchElement,"yt-history-load",[F,C]))};
_.n.pushState=function(C,F){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var G=new _.Ay("history.pushState is not a function",this.getDebugString());_.gD(G)}Nj.prototype.pushState.call(this,C,F)};
_.n.replaceState=function(C,F){if(!this.browserHistory.boundHistoryReplaceState){var G=new _.Ay("history.replaceState is not a function",this.getDebugString());_.gD(G)}Nj.prototype.replaceState.call(this,C,F)};
_.n.saveAndPush=function(C,F,G,V,J){J=J===void 0?{}:J;G&&(G.csn=_.ZQ());Nj.prototype.saveAndPush.call(this,C,F,G,V,J)};
_.n.getDebugString=function(){var C=[];this.initialized&&C.push("i");this.browserHistory.boundHistoryReplaceState&&C.push("bhr");this.browserHistory.boundHistoryPushState&&C.push("bhs");"replaceState"in this.browserHistory.debugInfo&&C.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&C.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&C.push("ei:"+String(this.entryIndex));return C.join(",")};
_.OY=function(C,F){C.init(!0);var G=C.browserHistory.getState();C.replaceState(G,KZ(F))};
xvG.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.Xi=new _.jh("DESKTOP_HISTORY_MANAGER_TOKEN");var scr=[10,20,30,40,50,60],wB=function(){this.currentPartitionIndex=0},qOo=function(C){lMG({mainAppWeb:_.vr(),
survivalSli:{partitionMinute:C,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},P2P=function(C){lMG({mainAppWeb:_.vr(),
survivalSli:{partitionMinute:C,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},gQm=function(C){return C.currentPartitionIndex>=0&&C.currentPartitionIndex<scr.length?scr[C.currentPartitionIndex]:-1},RV$=function(C){return C.currentPartitionIndex>0&&C.currentPartitionIndex-1<scr.length?scr[C.currentPartitionIndex-1]:-1};
wB.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var C=RV$(this);C>0&&P2P(C);C=gQm(this);C>0&&qOo(C);YO8(this)}};
var YO8=function(C){var F=gQm(C);if(F>0){var G=RV$(C);G<0&&(G=0);C.intervalId=_.gT.addJob(function(){var V=RV$(C);V>0&&P2P(V);V=gQm(C);V>0&&qOo(V);YO8(C)},3,(F-G)*6E4);
C.currentPartitionIndex+=1}else C.currentPartitionIndex=-1};var T5r=function(C){y9.call(this,C,132);this.isDocument=C===document.documentElement};
_.O(T5r,y9);T5r.prototype.calculateScrollDelta=function(C,F,G){var V=0;C<F?V=C<F-100?-48:-8:C>F+G&&(V=C>F+G+100?48:8);return V};
T5r.prototype.JSC$11398_onMouseMove=function(C){this.isDocument||(C.clientX=C.event_.pageX,C.clientY=C.event_.pageY);y9.prototype.JSC$11398_onMouseMove.call(this,C)};_.oQS=function(C,F){var G=this;this.scrollElement=document.documentElement;this.dragScrollSupport=this.JSC$14550_dragListGroup=null;this.onDraggerCreated=function(V){var J=V.JSC$11394_dragger;J.scrollTarget_=G.scrollElement;V=V.draggerEl;J&&V.menuOpened&&J.setEnabled(!1)};
this.onDragStart=function(V){var J=V.draggerEl;V=V.currDragItem;var b=Object.assign({},V==null?void 0:V.data);b.trackingParams=void 0;J.data=b;J.style.position="absolute";J.style.width=(V==null?void 0:V.clientWidth)+"px";J.style.zIndex="2030";J.onDrag&&J.onDrag();V=_.gS(J);(b=V.querySelector("ytd-app"))?_.ot(b).appendChild(J):V.body.appendChild(J);G.dragScrollSupport=new T5r(G.scrollElement);G.dragScrollSupport.horizontalScrolling_=!1;J=G.dragScrollSupport;J.constrainScroll_=!!J.margin_&&!1};
this.onDrop=function(V){G.handleDrop(V);G.dragScrollSupport&&(_.uz(G.dragScrollSupport),G.dragScrollSupport=null)};
this.onReorderableScroll=function(){if(G.JSC$14550_dragListGroup){var V=G.JSC$14550_dragListGroup;OZr(V,V.currDragItem_)}};
this.handleDrop=F};
_.Mj=function(C){C.JSC$14550_dragListGroup&&(_.Hd(C.JSC$14550_dragListGroup,tn2,C.onDragStart),_.Hd(C.JSC$14550_dragListGroup,HZE,C.onDragStart),C.JSC$14550_dragListGroup.dispose(),C.JSC$14550_dragListGroup=null);C.dragScrollSupport&&(_.uz(C.dragScrollSupport),C.dragScrollSupport=null);C.scrollElement.removeEventListener("scroll",C.onReorderableScroll)};
_.rDu=function(C,F,G,V){V=V===void 0?"":V;_.Mj(C);G&&(C.scrollElement=G);C.JSC$14550_dragListGroup=new g3;C.JSC$14550_dragListGroup.hysteresisDistance_=2;yM$(C.JSC$14550_dragListGroup,F);C.JSC$14550_dragListGroup.draggerElClasses_=Iw("dragging").split(" ");V&&ZZ2(C.JSC$14550_dragListGroup,function(J){var b=J||document,z=null;b.getElementsByClassName?z=b.getElementsByClassName(V)[0]:z=Gko("*",V,J);return z||J});
_.IP(C.JSC$14550_dragListGroup,EJy,C.onDraggerCreated);_.IP(C.JSC$14550_dragListGroup,tn2,C.onDragStart);_.IP(C.JSC$14550_dragListGroup,HZE,C.onDrop);C.JSC$14550_dragListGroup.init();C.scrollElement.addEventListener("scroll",C.onReorderableScroll,{passive:!0})};
_.I6.Object.defineProperties(_.oQS.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var KUl=function(){this.skipNextNavigation=!1},DvO=function(C,F,G){if(!F)return!1;
if(C.skipNextNavigation)return C.skipNextNavigation=!1;if(_.Z(G,_.jW))return!1;var V,J,b;if((V=_.Z(G,_.iE))==null?0:(J=V.browseEndpointContextSupportedConfigs)==null?0:(b=J.browseEndpointContextMainConfig)==null?0:b.skipConfirmation)return!1;var z;return((z=_.Z(F.commandMetadata,_.GU))==null?void 0:z.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
KUl.prototype.showConfirmationDialog=function(C,F){this.navigateParams=F;this.customConfirmationCommand?_.I8().resolve(_.WD).resolveCommand(this.customConfirmationCommand):(F={openPopupAction:{popup:{confirmDialogRenderer:{title:_.eN(_.iQ("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.eN(_.iQ("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.eN(_.iQ("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.eN(_.iQ("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.FV.getInstance().triggerAction("yt-open-popup-action",F,C))};
KUl.prototype.cancelPendingNavigation=function(){var C;((C=this.navigateParams)==null?void 0:C.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var p2r=function(){},CqE=function(C,F,G,V,J,b,z){G=G===void 0?{}:G;
z=z===void 0?{}:z;var Q=_.I8().resolve(_.Q7),E,t=(E=_.Z(F,_.jW))==null?void 0:E.url;return t?pHI(Q,t,G,window.location.href,function(k,U){mvr(C,k,U,!1,!0,G,b,V)},function(){return!1}):Mb(Q,F,G,window.location.href,$T(F),function(k,U){mvr(C,k,U,!1,!0,G,b,V)},J,z)},mvr=function(C,F,G,V,J,b,z,Q){if(!C.JSC$14565_chunkHandler)if(G.page==="learning_journey_watch"&&_.y("web_enable_canvas_on_learning_journey")){var E=!_.Z(Q,_.iE);
J=J||V;if(E)if(J){if(_.y("kevlar_continue_playback_without_player_response")){var t;var k=(t=_.Z(Q,_.eT))==null?void 0:t.videoId}V={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:V,previousVideoId:k},tempData:b}}else V={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else V={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};C.JSC$14565_chunkHandler=new PrO(_.gE,V,z,E,J)}else if(G.page==="watch"||G.page==="learning_journey_watch")if(J||V){if(_.y("kevlar_continue_playback_without_player_response")){var U;
E=(U=_.Z(Q,_.eT))==null?void 0:U.videoId}C.JSC$14565_chunkHandler=new Y2$(_.gE,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:V,previousVideoId:E},tempData:b},z)}else C.JSC$14565_chunkHandler=new si2(_.gE);else G.page==="shorts"&&J&&!V?C.JSC$14565_chunkHandler=new REO(_.gE,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:b},z):C.JSC$14565_chunkHandler=new q2l(z);C.JSC$14565_chunkHandler.processChunk({endpoint:F,data:G});return C.JSC$14565_chunkHandler.pL.promise},
j08=function(C,F,G,V,J){(G=_.J7o(G))&&mvr(C,F,G,!1,!0,V,void 0,J)};_.FtE=new _.jh("NAVIGATION_SERVICE_TOKEN");var G5E=function(){this.pendingNavigationPromise=null};
_.n=G5E.prototype;_.n.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.n.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.n.addEventListener=function(){throw Error("yh");};
_.n.dispatchEvent=function(){throw Error("yh");};
_.n.removeEventListener=function(){throw Error("yh");};var VA$=new _.jh("APP_ROOT");var taw=null;var isu=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],St=function(){_.lT.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];JX$(this)};
_.O(St,_.lT);St.prototype.verifyUser=function(){var C=JX$(this),F=C.logout;if(!C.sessionChange)return!0;this.dispatchEvent("ytsessionchange");F&&this.dispatchEvent("ytuserinvalid");return!1};
var JX$=function(C){var F=isu.map(function(J){var b;return(b=_.BD.get(J))!=null?b:""}),G=F.some(function(J,b){return C.sessionCookies&&C.sessionCookies[b]!==""&&J===""}),V=F.some(function(J,b){return C.sessionCookies&&C.sessionCookies[b]!==J});
C.sessionCookies=F;return{logout:G,sessionChange:V}};
St.prototype.clearTimeout=function(){this.scheduledJobId&&(_.gT.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var yNq=new _.jh("POSTMESSAGE_TUNNEL_TOKEN");var UFS=["/parent_tools","/file_download","/artist_roster"],ONq=[d_y,x_l,snl,P0P,qLm,e_m,glE,R_y];var LR=new _.jh("NAVIGATION_CONFIRMATION_SERVICE");var $c8="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /contribute-notes /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),bsP=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"},{url:"/companion_canvas",expFlag:"enable_ai_companion"}],BZ=function(C,F){this.pendingNavigationPromise=null;this.JSC$14588_clientRoot=C;this.historyManager=F;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 p2r;this.debugString=C.is;C={"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};_.GA(_.FV.getInstance(),C,this.JSC$14588_clientRoot)},IPS,Ehy,Wt2,tAl,Q0$;
_.O(BZ,G5E);BZ.prototype.reload=function(){_.Xp(window.location.href)};
var nqy=function(C){C.currentEndpoint&&_.Z(C.currentEndpoint,_.nd)?C.reload():C.currentEndpoint&&C.navigate(C.currentEndpoint,!0,void 0,{disableCache:!0})};
BZ.prototype.navigate=function(C,F,G,V,J,b,z,Q){F=F===void 0?!1:F;G=G===void 0?{}:G;V=V===void 0?{}:V;var E=_.I8().resolve(LR),t;if(!z&&DvO(E,(t=this.currentEndpoint)!=null?t:void 0,C))return E.showConfirmationDialog(this.JSC$14588_clientRoot.parentElement,{endpoint:C,reload:F,params:G,tempData:V,requestType:J,createScreenConfig:b}),!1;var k=_.Vc();_.iM(k,"eocs")||k.parkOrScheduleJob(function(){k.processSignal("eocs")},10,"eor");
a_T();z=$T(C);E=V.autonav==="1";t=_.ZQ();St.instance||(St.instance=new St);var U=St.instance.verifyUser(),H;if(_.y("enable_dark_theme_only_on_shorts")){var l=document.documentElement.hasAttribute("dark"),N=_.Mz(!0)==="USER_INTERFACE_THEME_DARK";if(z==="shorts"){if(!l)if(_.y("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var S;_.Xp((S=_.Z(C==null?void 0:C.commandMetadata,_.GU))==null?void 0:S.url,void 0,void 0,window.top)}}else{var f;_.Xp(_.iH((f=_.Z(C==
null?void 0:C.commandMetadata,_.GU))==null?void 0:f.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.y("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!l){var c;_.Xp(_.iH((c=_.Z(C==null?void 0:C.commandMetadata,_.GU))==null?void 0:c.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(N!==l){var A;_.Xp(_.iH((A=_.Z(C==null?void 0:C.commandMetadata,_.GU))==null?void 0:A.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(z==="watch"){if(nhG(_.I8().resolve(_.Od),
C)&&(U||_.y("fix_miniplayer_navigation_killswitch")))return!1;_.y("block_all_player_prefetch_requests")||(H=$y$(_.xZ(_.Oi),C,E))}else{var T,P=(T=_.Z(this.currentEndpoint,_.eT))==null?void 0:T.videoId;P&&_.P0.getInstance().then(function(eq){eq&&eq.set("yt-miniplayer-shown-video-id",P)})}H&&(G.frags=H.missingFragments_.join(","));
S=null;var g;f=(g=_.Z(C==null?void 0:C.commandMetadata,_.GU))==null?void 0:g.ignoreNavigation;if(!f)if(_.y("kevlar_command_url")){var r;S=(r=_.Z(C==null?void 0:C.commandMetadata,_.GU))==null?void 0:r.url}else S=_.FeZ(C,G);if(S&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&S==this.lastNavigationUrl)return _.UZ({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.CV(ST(),"CANCELLED")}S&&(this.lastNavigationUrl=S);mso();_.Yn("IS_HOMEPAGE_COLD",
!1);_.Yn("IS_RESULTS_PAGE_COLD",!1);_.Yn("IS_WATCH_PAGE_COLD",!1);C.loggingUrls&&C.loggingUrls.forEach(function(eq){eq.baseUrl&&_.C1(eq.baseUrl)});
_.SyI(C,b?b.layer:0)&&_.y("kevlar_flush_logs_on_away_navigation")&&_.P8();if(Xtq(C))return!1;gqu(z,J);if(!S)return f||_.Yw(new _.Ay("Can't construct url for endpoint",C)),_.CV(ST(),"FAILURE"),!1;_.k0T();g=C&&_.Z(C,_.iE)&&_.Z(C,_.iE).browseId.startsWith("UC");G=(r=_.y("enable_dark_theme_only_on_shorts")&&z==="shorts"?!1:_.Sv()&&document.documentElement.hasAttribute("dark")!==_.w7())?{themeRefresh:1}:{};r&&!_.fD()&&_.Mz()==="USER_INTERFACE_THEME_DARK"&&(G.theme="dark");g=r||uj8(S)&&!g&&!_.y("kevlar_disable_url_allowlist");
U||(g=!0);if(g||_.TF("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var C9;var Wo=(C9=window.top)==null?void 0:C9.location.href}catch(eq){var EB;Wo=(EB=eq)==null?void 0:EB.message}_.Yw(new _.Ay("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:Wo}))}C=_.y("kevlar_redirect_on_window_killswitch")?window.top:window;O6(S);_.Xp(_.iH(S,G),void 0,void 0,C);_.CV(ST(),"ABORTED");return!1}_.y("kevlar_early_popup_close")&&_.rz(this.JSC$14588_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14565_chunkHandler=void 0;var L9;Wo=$T((L9=this.currentEndpoint)!=null?L9:void 0);(L9=z==="shorts"&&Wo==="shorts")||_.Tfw();_.pW(vDA)("nr",void 0);E&&_.UZ({webInfo:{navigationReason:"an"}});C.clickTrackingParams&&(V.itct=C.clickTrackingParams,V.csn=t);pIi(V);V.endpoint=JSON.stringify(C);_.y("enable_unknown_lact_fix_on_html5")&&(_.I8().resolve(_.zb),V.lact=_.I1());_.xf.isEmpty(V)||_.qU(S,V);!_.y("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(b=Object.assign({},{layer:0},b,{parentLayer:3}));this.pendingNavigationPromise=b=CqE(this.pageFetcher,C,V,this.currentEndpoint,this.JSC$14588_isNetworkPromiseStale.bind(this),b,Q);b=b.then(this.handleNavigateSuccess.bind(this,b,C,H,V),this.handleNavigateFail.bind(this,b,C));_.v0().navigationFinishPromise=b;F={endpoint:C,pageType:z,url:KZ(S),reload:!!F,noProgressBar:L9};J&&(F.type=J);var ki;J=_.Vk((ki=this.currentEndpoint)!=null?ki:null);ki=_.Vk(C!=null?C:null);this.fireEvent("yt-navigate-start",
F);var lZ;(lZ=_.I8().resolve(_.Qt(_.FtE)))==null||lZ.publish("navigation-start",{sourcePageSubtype:J,destinationPageSubtype:ki});H&&j08(this.pageFetcher,C,H,V,this.currentEndpoint);return!0};
BZ.prototype.JSC$14588_isNetworkPromiseStale=function(C){return C!=this.pendingNavigationPromise};
var zZr=function(C,F,G,V,J){var b=$T(F);F={endpoint:F,pageType:b};J&&(F.errorMessage=J);_.Yw(G);F.navigationDoneMs=_.NV("nd");F.navigationErrorReason=V;C.fireEvent("yt-navigate-error",F)};
BZ.prototype.handleNavigateFail=function(C,F,G){var V=void 0;G instanceof _.Op&&(V=G,CC5(G));if(this.JSC$14588_isNetworkPromiseStale(C))return _.W6(V);_.CV(ST(),"FAILURE");zZr(this,F,G,"101");return _.W6(G)};
BZ.prototype.handleNavigateSuccess=function(C,F,G,V,J){if(this.JSC$14588_isNetworkPromiseStale(C))return _.mE();this.pendingNavigationPromise=null;if(!J)return F=new _.Ay("Missing data in response for navigation endpoint",F),_.W6(F);if(J.reload)return window.location.reload(!0),_.mE();G&&(C={},_.xf.extend(C,_.J7o(G),J),J=C);var b,z;G=(b=J)==null?void 0:(z=b.timing)==null?void 0:z.responseStart;G!=null&&_.NV("srt",G);_.NV("pdc");var Q,E;b=(Q=J)==null?void 0:(E=Q.timing)==null?void 0:E.info;b!=null&&
(Q=_.pW(_.Aai)(b),_.UZ(Q));_.CV(ST(),"SUCCESS");Q0$(this,F,J,1,V);return _.mE()};
var uj8=function(C){var F=C;_.y("kevlar_no_redirect_to_classic_2_ks")||(F=(new _.dz(C)).getPath());if(F==="/"||F==="/red")return!1;var G=!0;$c8.forEach(function(V){C.indexOf(V)===0&&(G=!1)});
bsP.forEach(function(V){var J=V.url;_.y(V.expFlag)&&C.indexOf(J)===0&&(G=!1)});
return G};
BZ.prototype.publishPageData=function(C){this.fireEvent("yt-page-data-fetched",{pageData:C})};
IPS=function(C,F,G,V,J,b){var z=null;F.page!=="watch"&&F.page!=="learning_journey_watch"||V?F.filler||_.rz(C.JSC$14588_clientRoot,"yt-stop-old-player",[F]):z=mvr(C.pageFetcher,J,F,G,!1,b,void 0,C.currentEndpoint);if(z)return z.then(C.publishPageData.bind(C,F));C.publishPageData(F);return _.mE()};
Ehy=function(C,F,G){var V=null;if(!G)return V=new _.Ay("Empty data",C.debugString,F);var J=G.response;if(!J)return V;var b={endpointType:$T(F)||"unknown"};J.responseContext?(J=J.responseContext.errors)&&(V=new _.Ay("Errors in response context",C.debugString,F,J,b)):V=J.error||J.errorMetadata?new _.Ay("Errors in response",C.debugString,F,J.error,J.errorMetadata,b):new _.Ay("responseContext missing",C.debugString,F,Object.keys(J).sort().join(","),b);var z,Q,E,t;if(C=G==null?void 0:(z=G.response)==null?
void 0:(Q=z.responseContext)==null?void 0:(E=Q.webResponseContextExtensionData)==null?void 0:(t=E.webResponseContextDebugData)==null?void 0:t.debugErrorMessages)for(z=0;z<C.length;z++);return V};
Wt2=function(C){var F,G,V,J;return C==null?void 0:(F=C.response)==null?void 0:(G=F.responseContext)==null?void 0:(V=G.errors)==null?void 0:(J=V.error)==null?void 0:J["0"]};
tAl=function(C,F){var G;if(G=F.url&&!F.url.startsWith("/clip"))G=F.url,G=!_.y("webfe_parse_debug_param_in_resolveurl_service")&&C.searchDebugUrlMatcher.test(G)||blo(G)?!0:!1;if(G)blo(F.url)&&_.Vt(window.location.href).themeRefresh?(F=_.P9(F.url,"themeRefresh"),_.OY(C.historyManager,F)):F.url&&!zzs(F.url)&&_.OY(C.historyManager,F.url);else if(F.endpoint){var V,J,b;(G=(V=F.endpoint)==null?void 0:(J=V.commandMetadata)==null?void 0:(b=J.webCommandMetadata)==null?void 0:b.url)&&!zzs(G)&&_.OY(C.historyManager,
G);G&&F.url&&G!=F.url&&!F.url.match("playnext=1")&&new _.Ay("Response url mismatch in response data",C.debugString,G,F.url)}};
_.aPO=function(C,F,G,V,J,b,z,Q){b=b===void 0?!1:b;var E=_.I8().resolve(LR),t;if(!Q&&DvO(E,(t=C.currentEndpoint)!=null?t:void 0,F))return E.showConfirmationDialog(C.JSC$14588_clientRoot.parentElement,{endpoint:F,data:G,navigationType:V,tempData:J,isMiniplayer:b,isForwardHistoryNavigation:z==null?void 0:z.forward}),_.mE();C.pageFetcher.JSC$14565_chunkHandler=void 0;return Q0$(C,F,G,V,J,b)};
Q0$=function(C,F,G,V,J,b){b=b===void 0?!1:b;C.isMiniplayerExpansion=b;var z=V===2;C.currentEndpoint=F;C.numNavigations++;C.numNavigations&&(dRT.navigationCount=C.numNavigations);_.Yn("NUM_NAV",C.numNavigations);var Q=Ehy(C,F,G);if(Q)return zZr(C,F,Q,"102",Wt2(G)),_.W6(Q);var E,t,k,U;Q=G.rootVe||(G==null?void 0:(E=G.response)==null?void 0:(t=E.responseContext)==null?void 0:(k=t.webResponseContextExtensionData)==null?void 0:(U=k.ytConfigData)==null?void 0:U.rootVisualElementType);!z&&G&&tAl(C,G);var H,
l;E=G==null?void 0:(H=G.response)==null?void 0:(l=H.responseContext)==null?void 0:l.maxAgeSeconds;if(!z&&!isNaN(E)){var N;_.y("kevlar_use_response_ttl_to_invalidate_cache")?N=(0,_.Et)()+1E3*E:_.y("kevlar_always_invalidate_cache")&&(N=0);isNaN(N)||(G.expirationTime=N)}_.xZ(_.Oi).prefetchCache_.clear();z||G.page!=="watch"||G.type!=="reduced"&&V!==1?V=IPS(C,G,z,!!b,F,J):(C.publishPageData(G),V=_.mE());J=V.then(function(){var S=$T(F);S={endpoint:F,pageType:S,fromHistory:z,response:G};S.navigationDoneMs=
_.NV("nd");C.fireEvent("yt-navigate-finish",S);var f;(f=_.I8().resolve(_.Qt(_.FtE)))==null||f.publish("navigation-end")});
G.csn&&Q&&G.clientSideGrafts&&V.then(C.attachClientSideGrafts.bind(C,G,_.lm()));return J};
_.n=BZ.prototype;_.n.attachClientSideGrafts=function(C,F){C.clientSideGrafts&&F&&C.clientSideGrafts.forEach(function(G){if(F&&G){var V=_.zS(G);_.y("combine_ve_grafts")?_.ia().graftServerVe(G,F):_.vA(C.csn,F,V)}})};
_.n.handleSignalActionHistoryBack=function(){window.history.back()};
_.n.handleSignalActionCloseWindow=function(){window.close()};
_.n.handleSignalActionReloadPage=function(){this.reload()};
_.n.handleSignalActionSoftReloadPage=function(){nqy(this)};
_.n.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.n.fireEvent=function(C,F){C=new CustomEvent(C,{bubbles:!0,cancelable:!1,composed:!0,detail:F});this.dispatchEvent(C)};
_.n.addEventListener=function(C,F){this.JSC$14588_clientRoot.addEventListener(C,F)};
_.n.dispatchEvent=function(C){return this.JSC$14588_clientRoot.dispatchEvent(C)};
_.n.removeEventListener=function(C,F){this.JSC$14588_clientRoot.removeEventListener(C,F)};
BZ[Ew]=[VA$,_.Xi];_.Gwq=new gq("browse","h8y2qb");_.VeB=new gq("search","JzFVk");_.irq=new gq("shorts","xwEKAe");_.JbZ=new gq("watchFixie","nmfa2d");_.$H9=new gq("watchFlexy","CF909");_.br5=new gq("watchGrid","Tm0L3c");_.ncT=new gq("watchLearningJourney","L3n37");var k5u;var UcO=function(){return _.B.apply(this,arguments)||this};
_.O(UcO,_.B);_.I6.Object.defineProperties(UcO,{template:{configurable:!0,enumerable:!0,get:function(){if(k5u===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);k5u=C}C=k5u;return C}}});
_.R([_.w(UvS.YtPlayerBehavior),_.Y("design:type",Object)],UcO.prototype,"ytPlayerBehavior",void 0);_.R([_.e({is:"ytd-player"})],UcO);var HsE;var lPl;var yXy;var vZ=function(){var C=_.B.apply(this,arguments)||this;C.forceModernIconButton=!1;C.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return C};
_.O(vZ,_.B);vZ.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]]"}}}}}};
vZ.prototype.handleAccountLinkingStateChangedCommand=function(C){if(C=_.Z(C,Cum)){var F,G=(F=this.data)==null?void 0:F.providerKey;F=C.providerKey;G&&F&&G.id===F.id&&G.subject===F.subject&&(C=C.linked,C!==void 0&&(this.set("data.linked",C),this.notifyPath("data.linked"),_.y("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(C)))}};
vZ.prototype.setPlayerAccountLinkState=function(C){var F=new tlu;ap8(F,EXE(new Ipl,C));var G=_.gE();G&&G.getPlayerPromise().then(function(V){V.setAccountLinkState(_.eU(F.JSC$12323_serializeBinary(),4));V.updateAccountLinkingConfig(C)})};
vZ.prototype.handleShowAccountLinkDialog=function(){var C=this.get("button.buttonRenderer.command");C&&_.jj([C],this.hostElement)};
_.I6.Object.defineProperties(vZ.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}}}});
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],vZ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],vZ.prototype,"ytRendererBehavior",void 0);_.R([_.w([_.Z7.YtActionHandlerBehavior]),_.Y("design:type",Object)],vZ.prototype,"actionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],vZ.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],vZ.prototype,"overrides",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],vZ.prototype,"forceModernIconButton",void 0);_.R([_.L({value:"bottom"}),_.Y("design:type",String)],vZ.prototype,"buttonTooltipPosition",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],vZ.prototype,"forceIconButton",void 0);_.R([_.L(),_.Y("design:type",Boolean)],vZ.prototype,"disableTextTransform",void 0);
_.R([_.M("data","data.linked","data.isWarning"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vZ.prototype,"button",null);_.R([_.e({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],vZ);
_.q(vZ,"ytd-account-link-button-renderer",function(){if(yXy!==void 0)return yXy;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return yXy=C},{mode:1});var Zs2;var NXE=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],fR=function(){return _.B.apply(this,arguments)||this};
_.O(fR,_.B);fR.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
fR.prototype.updateButtonActiveState=function(){var C=this,F=!!NXE.find(function(G){return C.currentState===G});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.y("enable_web_delhi_icons")&&(F=!1);this.button&&(this.button.isPressed=F)};
_.I6.Object.defineProperties(fR.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var C,F;return((C=this.playlistLoopStateEntity)==null?void 0:C.state)||((F=this.data)==null?void 0:F.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var C=void 0,F;if(this.currentState&&((F=this.data)==null?0:F.states)){F=_.u(this.data.states);for(var G=F.next();!G.done;G=F.next()){G=_.Z(G.value,_.aw$);var V=void 0;if(((V=G)==null?void 0:V.state)===this.currentState){C=G;break}}}return C}}});
fR.prototype.updateButtonActiveState=fR.prototype.updateButtonActiveState;_.R([_.w(_.Rr),_.Y("design:type",Object)],fR.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],fR.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],fR.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.L({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.cn.playlistLoopStateEntitySelector}),_.Y("design:type",Object)],fR.prototype,"playlistLoopStateEntity",void 0);_.R([_.L(),_.Y("design:type",Object)],fR.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Boolean)],fR.prototype,"forceIconOnly",void 0);_.R([_.$z("ytd-button-renderer"),_.Y("design:type",_.z6)],fR.prototype,"button",void 0);
_.R([_.M("data","playlistLoopStateEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],fR.prototype,"currentState",null);_.R([_.iP("currentButtonStateRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fR.prototype,"updateButtonActiveState",null);_.R([_.M("currentState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],fR.prototype,"currentButtonStateRenderer",null);
_.R([_.e({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],fR);
_.q(fR,"ytd-playlist-loop-button-renderer",function(){if(Zs2!==void 0)return Zs2;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Zs2=C},
{mode:1});var OsO;var XJO=_.iQ("DOWNLOAD",{},"Download"),wJ8=_.iQ("DOWNLOADING",{},"Downloading"),MAy=_.iQ("DOWNLOADED",{},"Downloaded"),SKl=_.iQ("RETRY",{},"Retry"),hJ=function(){var C=_.B.apply(this,arguments)||this;C.forceIconButton=!1;C.forceIconOnly=!1;C.overrides=!1;C.buttonTooltipPosition=!1;C.styleActionButton=!1;C.disableTextTransform=!1;C.downloadProgress=0;C.isDownloadComplete=!1;C.isHidden=!0;C.transferState="TRANSFER_STATE_UNKNOWN";C.isVideoDeletedByUser=!1;C.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return C};
_.O(hJ,_.B);_.n=hJ.prototype;_.n.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.n.dataChanged=function(){var C;(C=this.data)!=null&&C.text||(C=_.O3(_.s3().getState(),this.videoId),this.updateButtonState(C))};
_.n.computeVideoId=function(C){return C};
_.n.computePlayerStateEntityKey=function(C){return C};
_.n.showHideButton=function(){this.updateButtonVisibility()};
_.n.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var C;((C=this.playerStateEntity)==null?void 0:C.adsState)==="ADS_STATE_PLAYING"?this.isHidden=!0:this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.n.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.n.updateButtonState=function(C){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==wJ8||!_.uK(C))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(C){case "TRANSFER_STATE_UNKNOWN":C=XJO;var F="OFFLINE_DOWNLOAD";var G="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":C=SKl;F="OFFLINE_DOWNLOAD";G="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":C=MAy;F="OFFLINE_PIN";G="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":C=
wJ8;F="OFFLINE_DOWNLOADING_ZERO";G="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":C=SKl;F="OFFLINE_DOWNLOAD";G="ACTION_RETRY";break;default:C=XJO,F="OFFLINE_DOWNLOAD",G="ACTION_ADD"}this.isVideoDeletedByUser&&(C=XJO,F="OFFLINE_DOWNLOAD",G="ACTION_ADD");var V=Object.assign({},this.data);V.text=_.eN(C);V.tooltip=C;V.icon={iconType:F};V.size="SIZE_DEFAULT";V.style="STYLE_DEFAULT";_.Z(V.command,_.VJ)&&(_.Z(V.command,_.VJ).action=G);this.set("data",V)}};
_.n.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var C="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?C="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?C="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?C="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?C="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?C="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(C="OFFLINE_PIN",this.isDownloadComplete=!0);var F;C!==((F=this.data.icon)==null?void 0:F.iconType)&&(F=Object.assign({},this.data),F.text=_.eN(wJ8),F.tooltip=wJ8,F.icon={iconType:C},_.Z(F.command,_.VJ)&&(_.Z(F.command,_.VJ).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",F))}};
hJ.prototype.updateProgress=hJ.prototype.updateProgress;hJ.prototype.onTransferStateChanged=hJ.prototype.onTransferStateChanged;hJ.prototype.showHideButton=hJ.prototype.showHideButton;hJ.prototype.dataChanged=hJ.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],hJ.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],hJ.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],hJ.prototype,"forceIconButton",void 0);
_.R([_.L(),_.Y("design:type",Object)],hJ.prototype,"forceIconOnly",void 0);_.R([_.L(),_.Y("design:type",Object)],hJ.prototype,"overrides",void 0);_.R([_.L(),_.Y("design:type",Object)],hJ.prototype,"buttonTooltipPosition",void 0);_.R([_.L(),_.Y("design:type",Object)],hJ.prototype,"styleActionButton",void 0);_.R([_.L(),_.Y("design:type",Object)],hJ.prototype,"disableTextTransform",void 0);
_.R([_.L({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.Y("design:type",String)],hJ.prototype,"videoId",void 0);_.R([_.L({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.Y("design:type",String)],hJ.prototype,"playerStateEntityKey",void 0);_.R([_.L(),_.Y("design:type",Object)],hJ.prototype,"data",void 0);_.R([_.L({selector:wd,selectorArgs:["videoId"]}),_.Y("design:type",Object)],hJ.prototype,"downloadProgress",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],hJ.prototype,"isDownloadComplete",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],hJ.prototype,"isHidden",void 0);_.R([_.L({selector:_.O3,selectorArgs:["videoId"]}),_.Y("design:type",String)],hJ.prototype,"transferState",void 0);_.R([_.L({selector:_.DQ5,selectorArgs:["videoId"]}),_.Y("design:type",Object)],hJ.prototype,"isVideoDeletedByUser",void 0);
_.R([_.L({selector:Rh5,selectorArgs:["videoId"]}),_.Y("design:type",Object)],hJ.prototype,"offlineabilityState",void 0);_.R([_.L({selector:_.mr,selectorArgs:["playerStateEntityKey"]}),_.Y("design:type",Object)],hJ.prototype,"playerStateEntity",void 0);_.R([_.L({value:!0}),_.Y("design:type",Boolean)],hJ.prototype,"showTooltips",void 0);_.R([_.L({value:!0}),_.Y("design:type",Boolean)],hJ.prototype,"sendCommandWhenDisabled",void 0);
_.R([_.L({value:!1}),_.Y("design:type",Boolean)],hJ.prototype,"disabled",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hJ.prototype,"dataChanged",null);_.R([_.zp("offlineabilityState","playerStateEntity"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hJ.prototype,"showHideButton",null);
_.R([_.zp("transferState","isVideoDeletedByUser"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hJ.prototype,"onTransferStateChanged",null);_.R([_.zp("downloadProgress"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hJ.prototype,"updateProgress",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],hJ);
_.q(hJ,"ytd-download-button-renderer",function(){if(OsO!==void 0)return OsO;var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return OsO=C},{mode:2});var Ltm;var BXP,vh7=function(){if(BXP!==void 0)return BXP;var C=document.createElement("template");_.X(C,'\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 BXP=C};var fPy=_.y("web_button_rework")&&_.oD("BUTTON_REWORK")||_.y("web_button_rework_with_live"),hZ2=_.a8("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,cZ=function(){var C=_.B.apply(this,arguments)||this;C.isPressed=!1;C.forceIconButton=!1;C.forceIconOnly=!1;C.forceModernIconButton=!1;C.alignByText=!1;C.isShorts=!1;C.animatedText=!1;C.shouldAnimate=!1;C.JSC$14626_browserSupportsAnimation=_.y("web_supports_animations_api");C.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};C.onTap=function(){var F;if((F=C.data)==null||!F.defaultNavigationEndpoint){var G;F=!((G=C.data)==null?0:G.isToggled);var V;if((V=C.data)==null||!V.preventAutoToggle){C.shouldAnimate=!1;C.disableTextUpdateJobId&&_.gT.cancelJob(C.disableTextUpdateJobId);C.disableTextUpdateJobId=_.gT.addLowPriorityJob(function(){C.disableTextUpdateJobId=void 0},hZ2);
var J;C.set("data.isToggled",!((J=C.data)==null?0:J.isToggled));G=C.getInnertubeIcon();V={toggled:F,actions:{}};G&&(V.actions[G.toLowerCase()]=F);_.oo(C.hostElement,"yt-toggle-button",V)}}};
return C};
_.O(cZ,_.B);_.n=cZ.prototype;_.n.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.gT.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.n.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.n.toggle=function(C){var F;this.set("data.isToggled",C!==void 0?C:!((F=this.data)==null?0:F.isToggled))};
_.n.handleUpdateToggleButtonStateCommand=function(C){if(this.data){C=_.Z(C,bqG);var F,G,V,J=(F=this.data)==null?void 0:(G=F.toggleButtonSupportedData)==null?void 0:(V=G.toggleButtonIdData)==null?void 0:V.id;J&&C&&J===(C==null?void 0:C.buttonId)&&this.set("data.isToggled",C.toggled)}};
_.n.handleUpdateToggleButtonTextAction=function(C){if(this.data){C=_.Z(C,wWr);var F,G,V,J=(F=this.data)==null?void 0:(G=F.toggleButtonSupportedData)==null?void 0:(V=G.toggleButtonIdData)==null?void 0:V.id;J&&C&&J===(C==null?void 0:C.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=C.defaultNumericalValue,this.set("data.defaultText",C.defaultText),this.set("data.toggledText",C.toggledText),this.shouldAnimate=!1)}};
_.n.getInnertubeIcon=function(){var C=this.data;if(C){var F,G,V=((F=C.defaultIcon)==null?0:F.iconType)?(G=C.defaultIcon)==null?void 0:G.iconType:null,J,b;F=((J=C.toggledIcon)==null?0:J.iconType)?(b=C.toggledIcon)==null?void 0:b.iconType:V;return C.isToggled?F:V}};
_.n.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.I6.Object.defineProperties(cZ.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var C={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$14626_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var F=C.renderer;var G=C.element;var V=C.toggled;var J=C.onTapCallback;var b=C.commandClientArgs;var z=C.overrides;var Q=C.forceIcon;var E=C.forceModernIconButton;var t=C.forceDisabled;var k=C.useAnimatedText;var U=C.animatedTextProps;C=vu5(F,V);Q=!F.defaultIcon||!Q&&F.defaultText?F.defaultIcon?"leading":void 0:E?"icon-only":"icon-only-40";Q==="icon-only-40"&&(C.type="text");var H;E=Object;var l=E.assign,N;a:switch((N=
F.style)==null?void 0:N.styleType){case "STYLE_COMPACT_GRAY":N={size:"S"};break a;default:N={size:"M"}}var S=!!V;var f=(f=V&&F.toggledText||F.defaultText)?_.U9(f):void 0;k?(k=_.dd(V&&F.toggledText||F.defaultText))&&U&&!isNaN(Number(U.numberValue))?(U.numberText=k,V&&(U.numberValue+=1),k=U):k=void 0:k=void 0;var c,A,T,P;var g=(U=((A=V?F.toggledAccessibilityData||((g=F.toggledText)==null?void 0:g.accessibility):F.accessibilityData||((c=F.defaultText)==null?void 0:c.accessibility))==null?void 0:(T=A.accessibilityData)==
null?void 0:T.label)||((P=F.accessibility)==null?void 0:P.label))?U:_.dd(V&&F.toggledText||F.defaultText);t=t===void 0?F.isDisabled:t;G=BrS(F,V,J,G,b);V=LKq(F,V);V!=null&&V.length?(V=_.O9({innertubeCommand:kPI(V),forceNewState:!0}),V=X1(V)?V:void 0):V=void 0;F=l.call(E,{},C,N,{iconPosition:Q},z,{focused:!1,toggled:S,toggleable:!0,formattedButtonText:f,animatedTextProps:k,accessibilityLabel:g,disabled:t,onTap:G,aTagConfig:V},gMZ((H=F.colorData)==null?void 0:H.basicColorPaletteData));F.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(F.type="filled");return F}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var C=this.getInnertubeIcon();if(C)return _.p5(C)}}});
cZ.prototype.resetAnimation=cZ.prototype.resetAnimation;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],cZ.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],cZ.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],cZ.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],cZ.prototype,"data",void 0);
_.R([_.L(),_.Y("design:type",Object)],cZ.prototype,"isPressed",void 0);_.R([_.L(),_.Y("design:type",Object)],cZ.prototype,"forceIconButton",void 0);_.R([_.L(),_.Y("design:type",Object)],cZ.prototype,"forceIconOnly",void 0);_.R([_.L(),_.Y("design:type",Object)],cZ.prototype,"forceModernIconButton",void 0);_.R([_.L(),_.Y("design:type",Object)],cZ.prototype,"alignByText",void 0);_.R([_.L(),_.Y("design:type",Object)],cZ.prototype,"overrides",void 0);
_.R([_.L(),_.Y("design:type",Boolean)],cZ.prototype,"disabled",void 0);_.R([_.L(),_.Y("design:type",Object)],cZ.prototype,"isShorts",void 0);_.R([_.L(),_.Y("design:type",Object)],cZ.prototype,"buttonTooltipPosition",void 0);_.R([_.L(),_.Y("design:type",Object)],cZ.prototype,"animatedText",void 0);_.R([_.L(),_.Y("design:type",String)],cZ.prototype,"textNumberValue",void 0);_.R([_.L({computed:"computeTooltip(data, data.isToggled)"}),_.Y("design:type",Object)],cZ.prototype,"tooltip",void 0);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cZ.prototype,"resetAnimation",null);_.R([_.M("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],cZ.prototype,"computedButtonShape",null);_.R([_.M("data.*"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],cZ.prototype,"computedIcon",null);
_.R([_.e({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],cZ);fPy&&_.q(cZ,"ytd-toggle-button-renderer",vh7,{mode:_.oN("kevlar_poly_si_batch_j081")?1:2});var cXl=_.d(function(C){function F(t){var k;return _.I(function(U){if(U.nextAddress==1)return(k=!hzT(t,Q())||!Q().enabled)?U.jumpTo(2):U.yield(xFZ(),3);U.nextAddress!=2&&(k=U.yieldResult);if(k)return U.return();G();setTimeout(function(){z(!1)},1500);
_.S9(U)})}
function G(){setTimeout(function(){z(!0);var t;(t=V.lottieEl)==null||t.goToAndPlay(0)},150)}
var V=_.FN(),J=_.u(_.yH(!1,void 0,"UfUosc")),b=J.next().value,z=J.next().value,Q=_.dk(C.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.q4(function(){var t,k;((t=C.settings)==null?void 0:(k=t.call(C))==null?void 0:k.uniqueId)==="this is not intended behavior"&&_.Yw(new _.Ay("Smartimation Settings is undefined"))});
_.sq(function(){Q().experimentEnabled&&(Q().enabled?cNE(F):(z(!1),ANw(F)),_.q0(function(){ANw(F)}))},"IHhVmc");
_.sq(function(){Q().timings.join("");Q().experimentEnabled&&(ezB(Q()),_.q0(function(){dFT(Q())}))},"fsfhOe");
var E=_.w0(function(){var t=V,k=Q().uniqueId+"-border",U,H;var l="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((H=(U=_.I8().resolve(_.Qt(_.v6)))==null?void 0:U())!=null&&H?"dark":"light")+"_v2.json";return{animationRef:t,animationConfig:{name:k,autoplay:!1,loop:!1,path:l}}},void 0,"UWvUGe");
J={};return _.W("yt-smartimation",{class:_.py(C.className,"smartimation",(J["smartimation--experiment-enabled"]=function(){return Q().experimentEnabled},J["smartimation--active-border"]=b,J["smartimation--enable-masking"]=sbI(),J))},_.W(_.a,{cond:function(){return Q().experimentEnabled},
then:function(){return _.W("div",{class:"smartimation__border"},_.W(_.NQ,{className:"smartimation__border-gradient",data:E,animationName:function(){return E().animationConfig.name}}))}}),_.W("div",{class:"smartimation__content"},C.children))},"ga");
cXl.idomCompat=!0;_.gQ(cXl,"yt-smartimation",{props:{className:_.CJ,settings:_.CJ}});var AJ=function(){var C=_.B.apply(this,arguments)||this;C.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};C.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};C.shouldEnableSmartimation=!1;return C};
_.O(AJ,_.B);AJ.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
AJ.prototype.onDataChanged=function(){var C,F;this.shouldEnableSmartimation=(((C=this.data)==null?void 0:(F=C.timedAnimationData)==null?void 0:F.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
AJ.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var C=_.Z(this.data.likeButton,_.pH),F=_.Z(this.data.dislikeButton,_.pH);return!!((C==null?0:C.isToggled)||(F==null?0:F.isToggled))};
AJ.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]]"}}}}}};
_.I6.Object.defineProperties(AJ.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var C,F,G=((C=this.data)==null?void 0:(F=C.timedAnimationData)==null?void 0:F.animationTiming)||[];return{uniqueId:"like-dislike",timings:G,enabled:this.shouldEnableSmartimation,experimentEnabled:G.length>0}}}});
AJ.prototype.onDataChanged=AJ.prototype.onDataChanged;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],AJ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],AJ.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],AJ.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],AJ.prototype,"likeButtonOverride",void 0);_.R([_.L(),_.Y("design:type",Object)],AJ.prototype,"dislikeButtonOverride",void 0);
_.R([_.M("shouldEnableSmartimation"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],AJ.prototype,"smartimationSettings",null);_.R([_.iP("data"),_.VG("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AJ.prototype,"onDataChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],AJ);
_.q(AJ,"ytd-segmented-like-dislike-button-renderer",function(){if(Ltm!==void 0)return Ltm;var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Ltm=C},{mode:1});var AX8;var eZP;(eZP=document.body)==null||eZP.setAttribute("rounded-container","");var dcP={};dcP.YtToggleButtonBehavior=[_.Z7.YtActionHandlerBehavior,LJ.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 C=this.data.isToggled;if(!this.isModal_(C)){if(!this.data.preventAutoToggle){this.toggle();var F={toggled:this.data.isToggled,actions:{}};F.actions[this.buttonIcon]=this.data.isToggled;_.oo(this.hostElement,"yt-toggle-button",F)}F=this.data.defaultServiceEndpoint||null;var G=this.data.toggledServiceEndpoint||null;if(F&&G||F&&this.data.preventAutoToggle)C=C?G:F,F=this.disableCommandHandlerOverride,_.y("killswitch_toggle_button_behavior_resolve_command")||F?_.DQ(this.hostElement,
[C]):_.jR(C,this.hostElement),_.oo(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:C})}},
stateChanged_:function(){var C=this.data;if(C){var F=C.isToggled;this._setEndpoint(this.computeEndpoint_(C));this._setServiceEndpoint(this.computeServiceEndpoint_(C));this._setButtonIcon(this.computeButtonIcon_(C,F));this._setButtonText(this.computeButtonText_(C,F));this._setButtonAccessibility(this.computeAccessibility_(C,F));this._setButtonTooltip(this.computeTooltip_(C,F));this._setButtonClass(this.computeButtonClass_(C,F));this._setIconPositionType(this.computeIconPositionType_(C));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=F):this.elements_.button.setAttribute("aria-pressed",F));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=F)}},
shouldSetIconActiveState_:function(){return _.y("kevlar_system_icons")},
toggle:function(C){this.set("data.isToggled",C!==void 0?C:!this.data.isToggled);_.y("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(C){if(C){var F,G;return!!((F=this.data)==null?0:(G=F.toggledServiceEndpoint)==null?0:G.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(C){return C&&C.defaultNavigationEndpoint||null},
computeButtonIcon_:function(C,F){var G=C&&C.defaultIcon?_.p5(C.defaultIcon.iconType):null;C=C&&C.toggledIcon?_.p5(C.toggledIcon.iconType):G;return F?C:G},
handleUpdateToggleButtonStateCommand_:function(C){C=C.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==C.buttonId&&this.toggle(C.toggled)},
computeButtonText_:function(C,F){return C?F&&C.toggledText||C.defaultText||null:null},
computeAccessibility_:function(C,F){return C?(F?this.get("toggledAccessibilityData.accessibilityData",C):this.get("accessibilityData.accessibilityData",C))||C.accessibility||null:null},
computeTooltip_:function(C,F){return C?F&&C.toggledTooltip||C.defaultTooltip||null:null},
computeButtonClass_:function(C,F){if(!C)return"";var G="",V=C.toggledStyle||C.style;if(F=F?V:C.style){F.styleType&&(F=F.styleType);try{G+=F.toLowerCase().replace(/_/g,"-")+" "}catch(J){_.Tf(J,F,typeof F),_.Yw(J)}}if(C=C.size){C.sizeType&&(C=C.sizeType);try{G+=C.toLowerCase().replace(/_/g,"-")+" "}catch(J){_.Tf(J,C,typeof C),_.Yw(J)}}return G.trim()},
computeIconPositionType_:function(C){return C&&C.iconPosition||null},
computeServiceEndpoint_:function(C){var F=C&&C.serviceEndpoint,G=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return F?F:G&&C.command?C.command:null},
handleUpdateToggleButtonTextAction_:function(C){C=C.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==C.buttonId&&(this.set("data.defaultText",C.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",C.toggledText),this.notifyPath("data.toggledText"))}}];_.ae("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var xc7=_.y("web_button_rework")&&_.oD("BUTTON_REWORK")||_.y("web_button_rework_with_live"),et=function(){var C=_.B.apply(this,arguments)||this;C.systemIcons=_.y("kevlar_system_icons");C.roundedContainer=!0;return C};
_.O(et,_.B);et.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
et.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var C=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var F={toggled:!!this.data.isToggled,actions:{}};F.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var G,V;F.actions.playlistId=(G=this.data.defaultServiceEndpoint)==null?void 0:(V=G.playlistEditEndpoint)==null?void 0:V.playlistId;_.oo(this.hostElement,"yt-toggle-button",F)}(C=C?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(C)}};
et.prototype.onYtNavigate=function(C){var F=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(C.detail.endpoint);F&&(C.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(F))};
_.I6.Object.defineProperties(et,{template:{configurable:!0,enumerable:!0,get:function(){if(AX8===void 0){var C=document.createElement("template");_.X(C,"\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");C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);AX8=C}C=AX8;return C}}});
et.prototype.onYtNavigate=et.prototype.onYtNavigate;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],et.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],et.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nK),_.Y("design:type",Object)],et.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.w(dcP.YtToggleButtonBehavior),_.Y("design:type",Object)],et.prototype,"ytToggleButtonBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],et.prototype,"data",void 0);_.R([_.L({value:!0}),_.Y("design:type",Boolean)],et.prototype,"showTooltips",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],et.prototype,"systemIcons",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],et.prototype,"roundedContainer",void 0);_.R([_.VG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],et.prototype,"onYtNavigate",null);
_.R([_.e({is:"ytd-toggle-button-renderer",disableElementRegistration:xc7})],et);var s02,qKm;_.dB=new _.jh("PANEL_CONTROLLER_TOKEN");_.xW=new _.jh("SHEET_CONTROLLER_TOKEN");_.sY=new _.jh("DIALOG_CONTROLLER_TOKEN");s02=new _.jh("DIALOG_CONTAINER_TOKEN");qKm=new _.jh("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.qj=new _.jh("PERSISTENT_PANEL_CONTROLLER_TOKEN");var KK9=_.iQ("DOWNLOAD",{},"Download"),DFZ=_.iQ("DOWNLOADING",{},"Downloading"),pti=_.iQ("DOWNLOADED",{},"Downloaded"),mFI=_.iQ("RETRY",{},"Retry");var PqE=_.d(function(C){var F=V1q,G=function(){return""},V=C2A(C.data),J=jcs(C.data),b=FUT(C.data),z=Guo(C.data);
F=function(){var Q=C.data(),E=oui(Q,V(),J(),b(),z()),t=!!Q.videoId,k=E.text;return{title:t?k:void 0,tooltip:t?void 0:k,accessibilityText:k,onTap:E.onTap,iconName:E.iconType,style:Q.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:E.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:Q.buttonSize}};
G={};G=_.py("ytDownloadButtonViewModelHost",(G.ytDownloadButtonViewModelIsHidden=function(){var Q=C.data(),E=z();return Q.playlistId||E()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||E()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},G));
return _.W("download-button-view-model",{class:G},_.W(_.tS,{data:F}))},"ha");
PqE.idomCompat=!0;var Iki=new _.jh("SUBMIT_API_SERVICE_TOKEN");var uKs,zVf,EQ5={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var B5W=new _.jh("RENDERER_LOGGER_TOKEN");var w2i=new _.jh("RENDERER_STAMPER_OPTIONS_TOKEN");var t1q;_.nY=new $xE;t1q=new Map;var M1E="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),LUI=["notificationTextRenderer","notificationMultiActionRenderer"],
SOi="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),X2I=akI(function(C){return _.g0(C==null?void 0:C.targetId)}).useUpdatableData;var OuI=0;_.uC.debugName="EjJbCe";var ghu=_.d(function(C){var F=C.data;C=C.className;_.s0(function(){F().formId||_.gD(Error("Ch"))});
var G=_.nQB(function(){return F().formId},function(){return F().beforeSubmitCommand},function(){return F().afterSubmitCommand}),V=G.submitForm,J=G.isValid,b=G.isSubmitting,z=function(){return{state:F().isDisabled||!J()||b()?"disabled":"active"}};
return _.W("yt-submit-button-view-model",{class:_.py("ytSubmitButtonViewModelHost",C)},_.W(_.uC,{data:function(){return F().button}},{buttonViewModel:function(Q){return _.W(_.tS,{data:Q.data,
buttonOverrides:z,onClick:V})}}))},"ka");var YKr=_.d(function(C){var F=C.backgroundLottieRef;var G=C.foregroundLottieRef;var V=C.children;var J=C.wrapperClass;var b=C.disableAnimation;C=function(){return(_.y("web_animated_actions")||_.y("web_animated_actions_v2"))&&!(b==null?0:b())};
return _.W("yt-animated-action",{class:_.py("ytAnimatedActionHost",J)},_.W("div",{class:"ytAnimatedActionContentWithBackground"},_.W(_.a,{cond:C,then:function(){return _.W(RZE,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:F==null?void 0:F(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(vQw()?"dark":"light")+"_v5.json"}}}})}}),V),_.W(_.a,{cond:C,
then:function(){return _.W(RZE,{lottiePlayerProps:function(){return{animationRef:G==null?void 0:G(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(vQw()?"dark":"light")+"_v4.json"}}}})}}))},"la");
YKr.idomCompat=!0;var RZE=_.d(function(C){var F=C.wrapperClass;var G=C.lottieClass;var V=C.lottiePlayerProps;return _.W("div",{class:_.py("ytAnimatedActionLottie",F),"aria-hidden":"true"},_.W(_.NQ,{className:G,data:V,animationName:function(){return V().animationConfig.name}}))},"ma");var fkB={isOpen:!1};var cDB={isAllowed:!1};var eVq={errorMessage:"",title:"",privacy:"",isDisabled:!0};var xvq={isOpen:!1};var qOf={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var TXy={response:void 0};var gQB=function(C,F){C=C===void 0?TXy:C;switch(F.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},C,{response:F.payload});default:return C}};var oh7={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var RVW=function(C,F){C=C===void 0?oh7:C;switch(F.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},C,{nextDisabled:F.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},C,{nextCommand:F.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},C,{footerSubmissionData:F.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},C,{isImpersonationValid:F.payload});default:return C}};var rXl={reportFormData:void 0,reportDetailsFormData:void 0};var YOZ=function(C,F){C=C===void 0?rXl:C;switch(F.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},C,{reportFormData:F.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},C,{reportDetailsFormData:F.payload});default:return C}};var Kt8=void 0;_.y("mweb_enable_redux_store_on_demand")||(Kt8=new x2(T5T()));var PZ=_.y("enable_web_delhi_icons");var Dcu=_.d(function(C){C=_.xz(C,{themeOverride:void 0,animationRef:{}});var F=C.animatedIconType,G=C.active,V=C.themeOverride,J=C.animationRef;C=C.staticIconFn;var b=_.u(_.yH(void 0,void 0,"l48agc")),z=b.next().value,Q=b.next().value,E=function(){a:{var f=F();var c=V==null?void 0:V();var A;c=(c==null?void 0:c.useDarkTheme)||((A=_.I8().resolve(_.Qt(_.v6)))==null?void 0:A());switch(f){case "LIKE":Kt8||(Kt8=new x2(T5T()));f=(f=Hjs(Kt8.getState()))&&f.animationLightUrl&&f.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:c?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:c?f.animationDarkUrl:f.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(f){c=f;break a}c="animated_like_icon_"+(c?"dark":"light")+"_"+(PZ?"v5":"v4");c={lottiePlayerProps:{animationConfig:{name:c,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+c+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(PZ?" animated-like-icon-delhi":"")}}},totalFrames:PZ?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":c={lottiePlayerProps:{animationConfig:{name:c?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(c?"dark":"light")+(PZ?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(PZ?" animated-subscribe-icon-delhi":"")}}},totalFrames:PZ?120:79,lazyLoad:!1};break a}c=
void 0}return c},t=function(){var f,c;
return(c=(f=E())==null?void 0:f.lottiePlayerProps.animationConfig.name)!=null?c:""},k=function(){if(E()){var f=E().lottiePlayerProps.animationConfig.path;
return E4.get(f)||z()}};
b=_.u(_.yH(!1,void 0,"sDrGId"));var U=b.next().value;b=b.next().value;var H=rDo(b),l=function(){var f=E(),c,A,T;return(T=f==null?void 0:(c=f.lottiePlayerProps.animationConfig)==null?void 0:(A=c.rendererSettings)==null?void 0:A.className)!=null?T:""},N=void 0,S=void 0;
_.sq(function(){var f=E(),c=t(),A=k(),T=U(),P=G();if(f&&(S!==c&&(S=c,N=P,c=J(),H.animationConfig=f.lottiePlayerProps.animationConfig,H.animationRef=c,A&&(H.animationConfig.animationData=A,H.animationConfig.path=void 0),c=f.lottiePlayerProps.animationConfig.path,!E4.get(c)&&f.lazyLoad&&c&&oQi(c,Q)),!(T||f.lazyLoad&&!A))){if(A=!J().lottieEl)P?(T=f.totalFrames,H.animationConfig.initialSegment=[T-1,T]):H.animationConfig.initialSegment=void 0;if(N!==P&&!A)if(A=J(),P){var g;(g=A.lottieEl)==null||g.playSegments([0,
f.totalFrames],!0)}else{var r;(r=A.lottieEl)==null||r.playSegments([0,1],!0)}N=P}},"RQVZ1d");
return _.W("animated-icon",{class:"ytAnimatedIconHost"},_.W(_.a,{cond:function(){var f,c;return!((f=E())==null||!f.lottiePlayerProps.animationConfig.path||((c=E())==null?0:c.lazyLoad)&&!k()||U())},
then:function(){return _.W(_.NQ,{data:H,animationName:t,className:l,animationRef:J})},
else:C}))},"oa");_.gB=_.d(function(C){var F=_.Jt("yt-subscribe-button-view-model"),G=_.Jt("div"),V=_.Jt("div"),J=_.FN(),b=_.FN(),z=_.FN(),Q=_.$b(mvT,function(){return C.data().stateEntityStoreKey}),E=_.$b(CqS,function(){var jG,Il;
return(Il=(jG=C.data().notificationStateEntityStoreKeys)==null?void 0:jG.subsNotificationStateKey)!=null?Il:""}),t=function(){return!C.data().enableSubscribeButtonPostClickAnimation},k=_.u(_.yH(0,void 0,"YtsSKb")),U=k.next().value,H=k.next().value;
k=_.u(_.yH(0,void 0,"V6JxRe"));var l=k.next().value,N=k.next().value;k=_.u(_.yH(!1,void 0,"JUCSZ"));var S=k.next().value,f=k.next().value;k=_.u(_.yH(!1,void 0,"oV6jwf"));var c=k.next().value,A=k.next().value;k=_.u(_.yH(!1,void 0,"hK1Whe"));var T=k.next().value,P=k.next().value,g;k=_.u(_.yH(!1,void 0,"Asaolf"));var r=k.next().value,C9=k.next().value,Wo=function(){A(!0);_.Iy(_.gT,function(){A(!1)},1500)};
_.sq(function(){var jG=c();_.lb(function(){jG&&!t()&&Q()&&Eh5(J,b,z)})},"Qq6Hsf");
_.sq(function(){var jG=Q();_.lb(function(){if(!t()&&jG){var Il;((Il=C.animateWidth)==null?0:Il.call(C))&&IPi(F.value,!!jG.subscribed,U(),l());var Bu,vu;((Bu=g)==null?0:Bu.subscribed)||!jG.subscribed||jG.key!==((vu=g)==null?void 0:vu.key)||Wo();g=jG}})},"hog8te");
k=_.w0(function(){var jG,Il,Bu,vu=C.data(),Zr=!((jG=Q())==null||!jG.subscribed);jG=!((Il=C.isOverlay)==null||!Il.call(C));Il=S()?F:void 0;var k_=(Bu=E())==null?void 0:Bu.state;Bu=r();Q0W(vu,k_);return p2T({model:vu,subscribed:Zr,isOverlay:jG,element:Il,notificationState:k_,disableTextEllipsis:!0,focused:Bu})},void 0,"hc1PRd");
var EB=function(){var jG;if(!t()&&((jG=C.animateWidth)==null?0:jG.call(C))&&(G==null?0:G.value)&&(V==null?0:V.value)&&!T()){jG=Q();var Il=_.u((jG==null?0:jG.subscribed)?[G,V]:[V,G]),Bu=Il.next().value;Il=Il.next().value;Bu=Math.ceil(Bu.value.getBoundingClientRect().width);Il=Math.ceil(Il.value.getBoundingClientRect().width);H(Bu);N(Il);IPi(F.value,!(jG==null||!jG.subscribed),Bu,Il);P(!0)}},L9=_.CZ(function(jG){EB();
var Il=Q();Il&&(jG.detail.endpoint.subscribeEndpoint||jG.detail.endpoint.unsubscribeEndpoint)&&bs9(F.value,!Il.subscribed,Il)}),ki=function(){var jG=_.I8().resolve(_.Qt(_.uc));
jG&&C9(jG.isKeyBoardInUse())},lZ=function(){C9(!1)};
_.i9("yt-player-subscribe",function(jG){var Il=Q();Il&&jG===C.data().channelId&&bs9(F.value,!0,Il)});
_.i9("yt-player-unsubscribe",function(jG){var Il=Q();Il&&jG===C.data().channelId&&bs9(F.value,!1,Il)});
_.i9("yt-update-subscribe-button-action",function(jG){jG=_.Z(jG,RSl);var Il=Q();Il&&jG&&jG.channelId===C.data().channelId&&bs9(F.value,!!jG.subscribed,Il)});
_.q4(function(){F.value&&(F.value.addEventListener("focusin",ki),F.value.addEventListener("focusout",lZ));var jG=_.c8(_.gT,function(){EB()});
f(!0);_.q0(function(){_.gT.cancelJob(jG);F.value&&(F.value.removeEventListener("focusin",ki),F.value.removeEventListener("focusout",lZ))})});
var eq=function(){var jG,Il,Bu;if(Bu=!((jG=Q())==null||!jG.subscribed))jG=!!C.data().disableNotificationBell,Bu=(Il=E())==null?void 0:Il.state,Bu=!jG&&!!Bu;return Bu},OB=function(){var jG;
return!((jG=Q())==null?0:jG.subscribed)},yr=function(){var jG,Il;
if(Il=OB()){Il=!!C.data().disableNotificationBell;var Bu=(jG=E())==null?void 0:jG.state;Il=!Il&&!!Bu}return Il},Rl={},w2={};
return _.W("yt-subscribe-button-view-model",{class:_.py(C.className,"ytSubscribeButtonViewModelHost",(Rl.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var jG,Il;return!((jG=Q())==null||!jG.subscribed)&&((Il=C.animateWidth)==null?void 0:Il.call(C))&&c()},Rl.ytSubscribeButtonViewModelHostHidden=function(){var jG;
return!((jG=Q())==null?0:jG.subscribed)&&C.data().hideWhenUnsubscribed},Rl)),
el:F,"on:yt-service-request-sent":L9},_.W(YKr,{backgroundLottieRef:J,foregroundLottieRef:b,wrapperClass:_.py("ytSubscribeButtonViewModelAnimatedActionWrapper",(w2.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var jG;return((jG=C.animateWidth)==null?void 0:jG.call(C))&&c()},w2.ytSubscribeButtonViewModelStaticWidth=function(){var jG;
return!((jG=C.animateWidth)==null?0:jG.call(C))},w2)),
disableAnimation:t},_.W("div",{el:G,class:"ytSubscribeButtonViewModelContainer"},_.W(_.Wn,{data:k,icon:function(){return _.W(_.a,{cond:eq,then:function(){var jG=function(){var Il;return $cZ((Il=E())==null?void 0:Il.state)};
return _.W(_.a,{cond:function(){return t()||jG()!=="NOTIFICATIONS_NONE"},
then:function(){return _.W(_.i5,{icon:jG})},
else:function(){return _.W(Dcu,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:z})}})}})},
secondaryIconName:function(){return eq()?"EXPAND":void 0}}))),_.W("div",{el:V,
class:"ytSubscribeButtonViewModelInvisible"},_.W(_.a,{cond:function(){var jG;return((jG=C.animateWidth)==null?void 0:jG.call(C))&&!t()&&!T()},
then:function(){return _.W(_.Wn,{data:_.w0(function(){var jG;return p2T({model:C.data(),subscribed:OB(),isOverlay:!((jG=C.isOverlay)==null||!jG.call(C)),element:F,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var jG;return yr()?$cZ((jG=E())==null?void 0:jG.state):void 0},
secondaryIconName:function(){return yr()?"EXPAND":void 0}})}})))},"ra");
_.gB.idomCompat=!0;var pJ7=_.d(function(C){var F=C.data;var G=_.$b(mvT,function(){return F().subscriptionStateEntityKey});
return _.W(_.a,{cond:function(){var V=F(),J=G();return!V.hideWhenUnsubscribed||(J==null?0:J.subscribed)?_.Z(F().button,_.jl):void 0},
then:function(V){return _.W("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.W(_.tS,{data:V,buttonOverrides:function(){return{toggled:!0}}}))}})},"sa");
pJ7.idomCompat=!0;var mc2,Rf;mc2=_.d(function(C){return _.W(_.uC,{data:function(){return C.actionRow().actions}},{buttonViewModel:function(F){var G=F.data;
return _.W(Rf,{isRow:C.isRow,isIconOnlyButton:function(){return WtI(G())},
useIntrinsicWidth:C.useIntrinsicWidth},_.W(_.tS,{data:G}))},
subscribeButtonViewModel:function(F){return _.W(Rf,{isRow:C.isRow},_.W(_.gB,{data:F.data,isOverlay:!1,animateWidth:function(){return!C.isRow()}}))},
downloadButtonViewModel:function(F){var G=F.data;return _.W(Rf,{isRow:C.isRow,isIconOnlyButton:function(){return!!G().playlistId}},_.W(PqE,{data:G}))},
submitButtonViewModel:function(F){var G=F.data;return _.W(Rf,{isRow:C.isRow,isIconOnlyButton:function(){var V=G();return WtI(_.Z(V==null?void 0:V.button,_.jl))}},_.W(ghu,{data:G}))},
toggleButtonViewModel:function(F){var G=F.data;return _.W(Rf,{isRow:C.isRow,isIconOnlyButton:function(){var V=G();return WtI(_.Z(V.isToggled?V.toggledButtonViewModel:V.defaultButtonViewModel,_.jl))}},_.W(_.AS,{data:G}))},
subscribePlusButtonViewModel:function(F){return _.W(Rf,{isRow:C.isRow},_.W(pJ7,{data:F.data}))}})},"ta");
Rf=_.d(function(C){var F={};return _.W("div",{class:_.py("ytFlexibleActionsViewModelAction",(F.ytFlexibleActionsViewModelActionRowAction=C.isRow,F.ytFlexibleActionsViewModelActionIntrinsicWidth=C.useIntrinsicWidth,F.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,F.ytFlexibleActionsViewModelActionIconOnlyButton=C.isIconOnlyButton,F))},C.children)},"ua");
_.YW=_.d(function(C){var F=function(){var V;return((V=C.layout)==null?void 0:V.call(C))===1},G={};
return _.W("yt-flexible-actions-view-model",{class:_.py("ytFlexibleActionsViewModelHost",C.className,(G.ytFlexibleActionsViewModelInline=function(){return!F()},G.ytFlexibleActionsViewModelScrollable=function(){return C.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},G))},_.W(_.Ag,{each:function(){return C.data().actionsRows||[]}},function(V){return _.W(_.a,{cond:F,
then:function(){return _.W("div",{class:"ytFlexibleActionsViewModelActionRow"},_.W(mc2,{actionRow:V,isRow:F,useIntrinsicWidth:function(){return!!C.data().respectActionIntrinsicWidth}}))},
else:function(){return _.W(mc2,{actionRow:V,isRow:F})}})}))},"va");_.gQ(_.YW,"yt-flexible-actions-view-model",{props:{data:_.CJ,layout:_.CJ,justifyContentOverride:_.CJ,className:_.CJ}});_.TR=_.d(function(C){var F=_.$b(NG,function(){var J;return(J=C.data().dislikeEntityKey)!=null?J:""}),G=_.w0(function(){var J=F();
return J?J.likeStatus==="DISLIKE":_.Z(C.data().toggleButtonViewModel,_.Gz).isToggled},void 0,"fNr9he"),V=_.w0(function(){return Object.assign({},_.Z(C.data().toggleButtonViewModel,_.Gz),{isToggled:G()})},void 0,"AezoCc");
return _.W("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.W(_.AS,{data:V,buttonShapeOverrides:C.buttonShapeOverrideables,onToggle:function(J){var b=F();b&&J!==(b.likeStatus==="DISLIKE")&&b.key&&_.er(_.kZ("likeStatusEntity",b.key,{likeStatus:J?"DISLIKE":"INDIFFERENT",hadUserInteraction:J}))}}))},"wa");
_.TR.idomCompat=!0;_.of=_.d(function(C){var F=_.y("web_supports_animations_api"),G=xe(function(H){var l=t();if(!H){var N,S;return{numberText:(S=l==null?void 0:(N=l.likeCountIfIndifferent)==null?void 0:N.content)!=null?S:"",numberValue:Number(l==null?void 0:l.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var f;N=(l==null?void 0:(f=l.likeCountIfIndifferent)==null?void 0:f.content)!==H.numberText;if(Q()||!N)return H;var c;return{numberText:(l==null?void 0:(c=l.likeCountIfIndifferent)==null?void 0:c.content)||
"",numberValue:Number(l==null?void 0:l.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!l}}),V=xe(function(H){var l=t();
if(!H){var N,S;return{numberText:(S=l==null?void 0:(N=l.likeCountIfLiked)==null?void 0:N.content)!=null?S:"",numberValue:Number(l==null?void 0:l.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var f;N=(l==null?void 0:(f=l.likeCountIfIndifferent)==null?void 0:f.content)!==H.numberText;if(Q()||!N)return H;var c;return{numberText:(l==null?void 0:(c=l.likeCountIfLiked)==null?void 0:c.content)||"",numberValue:Number(l==null?void 0:l.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!l}}),J=_.u(_.yH(void 0,
void 0,"xldjge")),b=J.next().value,z=J.next().value,Q=b,E=_.$b(NG,function(){var H,l;
return(l=(H=C.data())==null?void 0:H.likeStatusEntityKey)!=null?l:""}),t=_.$b(G9B,function(){var H,l;
return((H=C.likeCountEntity)==null?void 0:(l=H.call(C))==null?void 0:l.key)||""}),k=_.w0(function(){var H;
return((H=E())==null?void 0:H.likeStatus)==="LIKE"},void 0,"B3od5e"),U=function(){var H;
return F&&!((H=C.likeCountEntity)==null||!H.call(C))};
return _.W("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.W(_.AS,{data:function(){var H=Object,l=H.assign,N;var S=_.Z((N=C.data())==null?void 0:N.toggleButtonViewModel,_.Gz);return l.call(H,{},S||{},{isToggled:k()})},
buttonShapeOverrides:C.buttonShapeOverrideables,animatedTextPropsDefault:function(){return U()?G():void 0},
animatedTextPropsToggled:function(){return U()?V():void 0},
onToggle:function(H){tAw(H,E(),Q(),z)},
style:function(){var H;return((H=C.disableIconAnimation)==null?0:H.call(C))?void 0:{animateIcon:"true"}}}))},"xa");
_.of.idomCompat=!0;var C_u=_.d(function(C){var F=function(){return _.Z(C.data().likeButtonViewModel,_.Rd)},G=function(){var J;
return((J=F())==null?void 0:J.likeStatusEntityKey)||""},V=_.w0(function(){var J,b;
var z=(b=_.$b(NG,G)())!=null?b:(J=F())==null?void 0:J.likeStatusEntity;J=C.data();var Q;J=(J==null?void 0:(Q=J.timedAnimationData)==null?void 0:Q.animationTiming)||[];return{uniqueId:"like-dislike",timings:J,enabled:(z==null?void 0:z.likeStatus)==="INDIFFERENT"&&J.length>0,experimentEnabled:J.length>0}},void 0,"zZ3GQb");
return _.W("segmented-like-dislike-button-view-model",{class:_.py("ytSegmentedLikeDislikeButtonViewModelHost",C.className),"button-renderer":!0},_.W(cXl,{settings:V},_.W("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.W(_.a,{cond:F,then:function(J){return _.W(_.of,{data:J,likeCountEntity:function(){return C.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.y("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.W(_.a,{cond:function(){return _.Z(C.data().dislikeButtonViewModel,_.gf)},
then:function(J){return _.W(_.TR,{data:J,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"ya");
C_u.idomCompat=!0;_.gQ(C_u,"segmented-like-dislike-button-view-model",{props:{data:_.CJ,className:_.CJ}});var jJu=_.d(function(C){var F=C.data;var G=C.className;var V=C.setMinWidth;var J=C.forceIconOnly;var b=_.Jt("account-link-button-view-model"),z=_.$b(_.aPs,function(){var H;return(H=F().accountLinkStatusEntityKey)!=null?H:""}),Q=_.$b(_.aPs,function(){var H;
return(H=F().accountLinkStatusSecondaryEntityKey)!=null?H:""}),E=function(){if(!_.y("web_account_link_secondary_killswitch")){var H,l;
return((H=z())==null?void 0:H.linked)||((l=Q())==null?void 0:l.linked)}var N;return(N=z())==null?void 0:N.linked};
_.sq(function(){var H=z();if(H){var l=ap8(new tlu,EXE(new Ipl,!!H.linked));_.CY().then(function(N){N&&(N.setAccountLinkState(_.eU(l.JSC$12323_serializeBinary(),4)),N.updateAccountLinkingConfig(!!H.linked))})}},"IvZF7");
var t=function(){return _.Z(F().toggleButtonViewModel,_.Gz)};
_.i9("yt-signal-action-show-account-link-dialog",function(){if(t()){var H=E()?t().toggledButtonViewModel:t().defaultButtonViewModel;H=_.Z(H,_.jl);var l;if((l=z())==null?0:l.isWarning){l=_.Z(F().warningButtonViewModel,_.jl);if(!l){_.CD(Error("Dh"));return}H=l}var N;(l=_.ZD((N=H)==null?void 0:N.onTap))&&_.jj([l],b.value)}else _.CD(Error("Eh"))});
var k=function(){var H=t();return Object.assign({},H,{isToggled:E()})},U=function(){return(J==null?0:J())?{iconPosition:"icon-only"}:{}};
return _.W("account-link-button-view-model",{class:_.py("ytwAccountLinkButtonViewModelHost",G,function(){return(V==null?0:V())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:b,"button-renderer":!0},_.W("div",null,_.W(_.a,{cond:function(){var H;if((H=z())==null?0:H.isWarning)return(H=_.Z(F().warningButtonViewModel,_.jl))||_.CD(Error("Dh")),H},
then:function(H){return _.W(_.tS,{data:H,buttonOverrides:U})},
else:function(){return _.W(_.AS,{data:k,buttonShapeOverrides:U})}})))},"Aa");_.gQ(jJu,"account-link-button-view-model",{props:{data:_.CJ,className:_.s9,setMinWidth:_.s9,forceIconOnly:_.s9}});_.ae("menuRenderer","menuRenderer","ytd-menu-renderer");
var Ffl={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"}},
GyP=_.y("web_fix_missing_action_buttons")?100:200,rB=function(){var C=_.B.apply(this,arguments)||this;C.safeArea=!_.y("kevlar_flex_menu_safe_area_killswitch");C.tonalOverride=!1;C.threeDotSize="M";C.isOverlay=!1;C.useOverlayDark=!1;C.topLevelIconsOnly=!1;C.JSC$14759_lastWidth=0;C.maybeUpdateFlexibleMenu=function(){_.y("web_fix_missing_action_buttons")?requestAnimationFrame(C.maybeUpdateFlexibleMenuImpl):C.maybeUpdateFlexibleMenuImpl()};
C.maybeUpdateFlexibleMenuImpl=function(){var F;if((F=C.data)!=null&&F.flexibleItems){C.maybeFlushDebouncer();F=C.hostElement.clientWidth;var G=F>C.JSC$14759_lastWidth,V,J=((V=C.topLevelButtonsContainer)==null?void 0:V.scrollHeight)||0,b;V=((b=C.flexibleItemButtonsContainer)==null?void 0:b.scrollHeight)||0;b=C.hostElement.scrollHeight>Math.max(J,V)+8;G?(C.resetFlexibleItems(),C.JSC$14759_lastWidth=C.hostElement.clientWidth,C.maybeUpdateFlexibleMenu()):b&&(C.shrinkFlexibleMenu(),C.JSC$14759_lastWidth=
F)}};
C.computeThreeDotButtonShape=function(){if(C.tonalOverride)return Object.assign({},{onTap:function(){C.onOverflowTap()},
iconPosition:"icon-only",style:C.isOverlay?C.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:C.threeDotSize,state:"active",accessibilityLabel:C.computeAccessibilityLabel(C.data)},C.threeDotButtonOverride)};
C.onOverflowTap=function(){if(C.data.fetchMenuCommand)_.I8().resolve(_.WD).resolveCommand(C.data.fetchMenuCommand,{form:{element:C.hostElement}});else if(C.data.isDisabled&&C.data.disabledCommand)_.jR(C.data.disabledCommand,C.hostElement);else{var F=C.createMenuRendererVe(),G={items:C.items};C.data.menuPopupAccessibility&&(G.menuPopupAccessibility=C.data.menuPopupAccessibility);C.data.footer&&(G.footer=C.data.footer);F={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:G},veData:F}};
_.I8().resolve(_.xW).openSheet({openPopupActionCommand:F},C.hostElement)}};
return C};
_.O(rB,_.B);_.n=rB.prototype;_.n.updateButtonOverrides=function(){if(!_.y("menu_renderer_label_update_upkillswitch")){var C=_.ot(this.hostElement).querySelector("yt-button-view-model");C&&(C.buttonOverrides=this.buttonOverrides)}};
_.n.computeHasItems=function(){var C;return((C=this.topLevelButtonData)==null?void 0:C.length)||this.hasFlexibleItems};
_.n.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.n.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.jr(this.hostElement,{"--ytd-menu-renderer-button-color":_.Hr(this.data.iconColor)}))};
_.n.onStamperFinished=function(){this.JSC$14759_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.n.setupFlexibleMenu=function(){var C=this,F;(F=this.data)!=null&&F.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.FX(this.maybeUpdateFlexibleMenu,GyP,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){C.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))};
_.n.maybeFlushDebouncer=function(){if(_.y("web_replace_formatted_with_attributed_string")){var C;(C=this.topLevelButtons)==null||C.forEach(function(G){var V;(G=(V=G.getElementsByTagName("yt-attributed-string"))==null?void 0:V[0])&&HwE(G)});
var F;(F=this.flexibleItemButtons)==null||F.forEach(function(G){var V;(G=(V=G.getElementsByTagName("yt-attributed-string"))==null?void 0:V[0])&&HwE(G)})}};
_.n.resetFlexibleItems=function(){var C;if((C=this.data)!=null&&C.flexibleItems){_.y("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var F;this.flexAsTopLevelButtons=(F=this.data.flexibleItems)==null?void 0:F.map(function(G){return _.Z(G,_.rSE).topLevelButton});
_.y("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.n.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.n.shrinkFlexibleMenu=function(){var C;(C=this.flexAsTopLevelButtons)!=null&&C.length&&(this.flexAsTopLevelButtons=[].concat(_.da(this.flexAsTopLevelButtons.slice(0,-1))))};
_.n.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:Ffl,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:Ffl,events:!0}}};
_.n.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.n.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.n.detached=function(){this.icon="MORE_VERT"};
_.n.computeTopLevelButtonData=function(C){if(!C)return[];var F;C=(F=C==null?void 0:C.topLevelButtons)!=null?F:[];return _.xf.unsafeClone([].concat(_.da(C)))};
_.n.computeItems=function(C,F){if(!C)return[];var G=[];if(F){var V=(C.flexibleItems||[]).map(function(z){return _.Z(z,_.rSE)});
V=_.u(V);for(var J=V.next();!J.done;J=V.next())J=J.value,F.includes(J.topLevelButton)||(J=J.menuItem)&&G.push(J)}var b;C=(b=C==null?void 0:C.items)!=null?b:[];return[].concat(_.da(G),_.da(C))};
_.n.computeMenuActive=function(C,F){return C||F};
_.n.onPopupOpened=function(){this.overlayOpen=!0;_.oo(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.n.onPopupClosed=function(){this.overlayOpen=!1;_.oo(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.n.onPopupCanceled=function(){this.overlayOpen=!1;_.oo(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.n.computeAccessibilityLabel=function(C){return this.get("accessibility.accessibilityData.label",C)};
_.n.isHidden=function(C,F){return this.tonalOverride||!C?!0:C.fetchMenuCommand||C.isDisabled&&C.disabledCommand?!1:!(F==null?0:F.length)};
_.n.isModernOverflowHidden=function(C,F){return this.tonalOverride&&C?C.fetchMenuCommand?!1:!(F==null?0:F.length):!0};
_.n.createMenuRendererVe=function(){var C=this.data.trackingParams,F=_.ZQ(),G=_.lm();return C&&F&&G?(C=_.zS(C),G=_.m2(7591),_.y("combine_ve_grafts")?_.Of(_.ia(),G,C):_.vA(F,C,G),G):null};
_.I6.Object.defineProperties(rB.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.flexAsTopLevelButtons)==null||!C.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
rB.prototype.onPopupCanceled=rB.prototype.onPopupCanceled;rB.prototype.onPopupClosed=rB.prototype.onPopupClosed;rB.prototype.onPopupOpened=rB.prototype.onPopupOpened;rB.prototype.tonalOverrideChanged=rB.prototype.tonalOverrideChanged;rB.prototype.resetFlexibleItems=rB.prototype.resetFlexibleItems;rB.prototype.setupFlexibleMenu=rB.prototype.setupFlexibleMenu;rB.prototype.iconButtonColorChanged=rB.prototype.iconButtonColorChanged;rB.prototype.updateButtonOverrides=rB.prototype.updateButtonOverrides;
_.R([_.w(_.nK),_.Y("design:type",Object)],rB.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],rB.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],rB.prototype,"ytRendererstamperBehavior",void 0);_.R([_.$z("#button-shape"),_.Y("design:type",HTMLElement)],rB.prototype,"buttonShape",void 0);_.R([_.$z("#button"),_.Y("design:type",Object)],rB.prototype,"button",void 0);
_.R([_.L(),_.Y("design:type",Object)],rB.prototype,"data",void 0);_.R([_.L({computed:"computeTopLevelButtonData(data)"}),_.Y("design:type",Array)],rB.prototype,"topLevelButtonData",void 0);_.R([_.L(),_.Y("design:type",Array)],rB.prototype,"flexAsTopLevelButtons",void 0);_.R([_.L({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.Y("design:type",Array)],rB.prototype,"items",void 0);_.R([_.L({value:"MORE_VERT"}),_.Y("design:type",String)],rB.prototype,"icon",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],rB.prototype,"safeArea",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.Y("design:type",Boolean)],rB.prototype,"menuActive",void 0);_.R([_.L(),_.Y("design:type",Boolean)],rB.prototype,"menuFocused",void 0);_.R([_.L({value:"bottom"}),_.Y("design:type",String)],rB.prototype,"buttonTooltipPosition",void 0);_.R([_.L(),_.Y("design:type",Boolean)],rB.prototype,"overlayOpen",void 0);
_.R([_.L({value:!0}),_.Y("design:type",Boolean)],rB.prototype,"forceIconButton",void 0);_.R([_.L(),_.Y("design:type",Boolean)],rB.prototype,"styleActionButton",void 0);_.R([_.L(),_.Y("design:type",Boolean)],rB.prototype,"disableTextTransformOnButtons",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],rB.prototype,"tonalOverride",void 0);_.R([_.L(),_.Y("design:type",Object)],rB.prototype,"threeDotSize",void 0);
_.R([_.L(),_.Y("design:type",Object)],rB.prototype,"threeDotButtonOverride",void 0);_.R([_.L(),_.Y("design:type",Object)],rB.prototype,"isOverlay",void 0);_.R([_.L(),_.Y("design:type",Object)],rB.prototype,"useOverlayDark",void 0);_.R([_.L({computed:"computeButtonOverride(tonalOverride)"}),_.Y("design:type",Object)],rB.prototype,"buttonOverride",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],rB.prototype,"hasCustomIconColor",void 0);
_.R([_.L({reflectToAttribute:!0}),_.M("flexAsTopLevelButtons"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],rB.prototype,"hasFlexibleItems",null);_.R([_.L({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.Y("design:type",Boolean)],rB.prototype,"hasItems",void 0);_.R([_.L(),_.Y("design:type",Object)],rB.prototype,"topLevelIconsOnly",void 0);
_.R([_.iP("topLevelIconsOnly"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rB.prototype,"updateButtonOverrides",null);_.R([_.M("topLevelIconsOnly"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],rB.prototype,"buttonOverrides",null);_.R([_.$z("#top-level-buttons-computed"),_.Y("design:type",HTMLElement)],rB.prototype,"topLevelButtonsContainer",void 0);_.R([_.bP(".top-level-buttons > *"),_.Y("design:type",Array)],rB.prototype,"topLevelButtons",void 0);
_.R([_.$z("#flexible-item-buttons"),_.Y("design:type",HTMLElement)],rB.prototype,"flexibleItemButtonsContainer",void 0);_.R([_.bP("#flexible-item-buttons > *"),_.Y("design:type",Array)],rB.prototype,"flexibleItemButtons",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rB.prototype,"iconButtonColorChanged",null);
_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rB.prototype,"setupFlexibleMenu",null);_.R([_.zp("topLevelIconsOnly"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rB.prototype,"resetFlexibleItems",null);_.R([_.iP("tonalOverride"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rB.prototype,"tonalOverrideChanged",null);
_.R([_.VG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rB.prototype,"onPopupOpened",null);_.R([_.VG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rB.prototype,"onPopupClosed",null);_.R([_.VG("yt-popup-canceled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rB.prototype,"onPopupCanceled",null);
_.q(rB,"ytd-menu-renderer",function(){if(lPl===void 0){var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);lPl=C}C=lPl;return C},{mode:2});var Vwy;var iUP;_.KR=_.d(function(C){var F=C.data;var G=function(){if(F().icon)a:{var V={iconName:F().icon};for(var J=_.I8().resolve(_.mm),b=_.u([12,24]),z=b.next();!z.done;z=b.next()){var Q=z.value;z=Object.assign({},V,{iconStyle:"youtube_fill",iconSize:Q});Q=Object.assign({},V,{iconStyle:"youtube_outline",iconSize:Q});if(J.resolveIcon(z)){V=z;break a}if(J.resolveIcon(Q)){V=Q;break a}}V=void 0}else V=void 0;return V};
C={};return _.W("badge-shape",{class:_.py("yt-badge-shape",function(){return ZsI(F().type)},(C["yt-badge-shape--overlay"]=function(){return F().isOverlay},C["yt-badge-shape--ads-include-dot"]=function(){return F().adsIncludeDot},C["yt-badge-shape--thumbnail-badge"]=function(){a:switch(F().type){case 17:case 18:case 19:var V=!0;
break a;default:V=!1}return V},C["yt-badge-shape--status-badge"]=function(){a:switch(F().type){case 12:case 13:case 14:case 15:case 16:var V=!0;
break a;default:V=!1}return V},C["yt-badge-shape--no-text"]=function(){return!F().text},C["yt-badge-shape--modern"]=function(){return F().modern||_.y("web_modern_badge_shape")},C)),
style:_.VA({"background-color":function(){var V;return(V=F().customColors)==null?void 0:V.backgroundColor}}),
role:function(){return F().accessibilityText?"img":void 0},
"aria-label":function(){return F().accessibilityText}},_.W(_.a,{cond:function(){return F().animation},
then:function(V){return _.W(_.NQ,{className:"yt-badge-shape__icon",data:V,animationName:function(){return V().animationConfig.name||""}})}}),_.W(_.a,{cond:function(){var V;
return G()&&!((V=F())==null?0:V.animation)},
then:function(){return _.W("div",{class:"yt-badge-shape__icon"},_.W(d8s,{data:function(){return G()}}))}}),_.W("div",{class:"yt-badge-shape__text"},function(){var V;
return(V=F())==null?void 0:V.text}))},"Ba");
_.KR.idomCompat=!0;_.gQ(_.KR,"badge-shape",{props:{data:_.CJ}});var D2=function(){var C=_.B.apply(this,arguments)||this;C.systemIcons=_.y("kevlar_system_icons");C.animated=_.y("animated_live_badge_icon");C.useBadgeShape=_.y("web_badge_shape_defrag");return C};
_.O(D2,_.B);_.n=D2.prototype;_.n.addTooltips=function(){for(var C=_.ot(this.hostElement).querySelectorAll(".badge"),F=0,G;G=C[F++];){var V=this.repeatElement.itemForElement(G);G=_.ot(G);G.lastChild&&G.lastChild.is==="tp-yt-paper-tooltip"&&G.removeChild(G.lastChild);if(V=V.metadataBadgeRenderer&&V.metadataBadgeRenderer.tooltip){var J=_.JS("tp-yt-paper-tooltip");(0,_.C5)(J).textContent=V;J.setAttribute("position","top");J.setAttribute("aria-hidden","true");G.appendChild(J)}}};
_.n.badgesChanged=function(){var C=this;_.Vc().parkOrScheduleJob(function(){C.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.n.standaloneRoundedBadgeChanged=function(){var C=this.useRoundedBadge?this.useRoundedBadge:void 0;C&&(this.useRoundedBadge=C)};
_.n.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.n.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.n.computeStyle=function(C){_.y("enable_html5_teal_ad_badge")&&C==="BADGE_STYLE_TYPE_AD"&&(C="badge-style-type-ad-alternate");_.y("kevlar_ytb_live_badges")&&C==="BADGE_STYLE_TYPE_LIVE_NOW"&&(C="badge-style-type-live-now-alternate");return C?C.toLowerCase().replace(/_/g,"-"):""};
_.n.computeRole=function(C){return this.computeAriaLabel(C)?"img":"status"};
_.n.computeAriaLabel=function(C){var F;return(C==null?void 0:(F=C.accessibilityData)==null?void 0:F.label)||(C==null?void 0:C.label)};
_.n.computeBadgeShape=function(C){if(C){var F,G;var V=lPw(C.style);var J=yX5(C.style),b=C.label,z=((F=C.accessibilityData)==null?void 0:F.label)||C.label;a:switch(C.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":F=!0;break a;default:F=!1}var Q=(G=C.icon)==null?void 0:G.iconType;a:switch(C.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":C=!0;break a;default:C=!1}V={type:V,brNzRatingBadgeType:J,text:b,accessibilityText:z,
isOverlay:F,icon:Q!=="PREMIUM"?Q:void 0,modern:_.y("web_modern_badge_view_model"),adsIncludeDot:C}}else V={};return V};
_.n.updateComputedBadges=function(C,F,G){var V=this;(F=F?[F]:G?[G]:void 0)?this.computedBadges=F:this.computedBadges=C==null?void 0:C.filter(function(J){var b;if((b=J.metadataBadgeRenderer)==null?0:b.groups){b=!1;J=_.u(J.metadataBadgeRenderer.groups);for(var z=J.next();!z.done;z=J.next()){z=z.value;var Q=void 0;b=b||((Q=V.hiddenBadgeGroups)==null?void 0:Q.includes(z))}return!b}return!0})};
_.n.useFilledIcons=function(C){return _.y("kevlar_system_icons")&&(C==="AUDIO_BADGE"||C==="CHECK_CIRCLE_THICK"||C==="OFFICIAL_ARTIST_BADGE"||C==="SPONSORSHIP_STAR"||C==="PERSON_RADAR_FILLED"||C==="PERSON_RADAR")};
_.n.computeBadgeShapeStyle=function(C){return this.useBadgeShape?C==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||C==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":C==="BADGE_STYLE_TYPE_SIMPLE_STRIKETHROUGH"?"badge-shape-style-type-strikethrough":"":""};
_.n.computeIcon=function(C){var F,G;C=C==null?void 0:(F=C.metadataBadgeRenderer)==null?void 0:(G=F.icon)==null?void 0:G.iconType;if(C!=="PREMIUM"&&C)return _.p5(C)};
_.n.computeStandaloneBadge=function(C){var F;C=C==null?void 0:(F=C.icon)==null?void 0:F.iconType;return C==="PREMIUM_STANDALONE"||C==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
D2.prototype.hiddenBadgeGroupsChanged=D2.prototype.hiddenBadgeGroupsChanged;D2.prototype.standaloneBadgeChanged=D2.prototype.standaloneBadgeChanged;D2.prototype.standaloneRoundedBadgeChanged=D2.prototype.standaloneRoundedBadgeChanged;D2.prototype.badgesChanged=D2.prototype.badgesChanged;_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],D2.prototype,"hidden",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],D2.prototype,"componentBehavior",void 0);
_.R([_.L(),_.Y("design:type",Array)],D2.prototype,"badges",void 0);_.R([_.L(),_.Y("design:type",Object)],D2.prototype,"topStandaloneBadge",void 0);_.R([_.L(),_.Y("design:type",Object)],D2.prototype,"bottomStandaloneBadge",void 0);_.R([_.L(),_.Y("design:type",Object)],D2.prototype,"computedBadges",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],D2.prototype,"mediumFontAdBadge",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],D2.prototype,"useRoundedBadge",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],D2.prototype,"largeFontAdBadge",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],D2.prototype,"overlayAd",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],D2.prototype,"overlayPremium",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],D2.prototype,"noDotAdBadge",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],D2.prototype,"collectionTruncate",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],D2.prototype,"isThumbnailBadge",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],D2.prototype,"wrapBadges",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Number)],D2.prototype,"numBadgesInRow",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],D2.prototype,"systemIcons",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],D2.prototype,"animated",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],D2.prototype,"useBadgeShape",void 0);_.R([_.L({value:[]}),_.Y("design:type",Array)],D2.prototype,"hiddenBadgeGroups",void 0);_.R([_.$z("#repeat"),_.Y("design:type",UA)],D2.prototype,"repeatElement",void 0);_.R([_.zp("badges"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],D2.prototype,"badgesChanged",null);
_.R([_.zp("useRoundedBadge"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],D2.prototype,"standaloneRoundedBadgeChanged",null);_.R([_.zp("topStandaloneBadge","bottomStandaloneBadge"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],D2.prototype,"standaloneBadgeChanged",null);_.R([_.zp("hiddenBadgeGroups"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],D2.prototype,"hiddenBadgeGroupsChanged",null);
_.R([_.e({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],D2);
var JjS=_.Tp()(D2,"ytd-badge-supported-renderer",function(){if(iUP===void 0){var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge-shape [[computeBadgeShapeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></div></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);iUP=C}C=iUP;return C},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.oN("kevlar_poly_si_batch_j053")?1:2});var pR=function(){var C=_.B.apply(this,arguments)||this;C.iconType="STAR";C.standardizeIconSize=_.y("kevlar_system_icons");C.mediaHoverOverlayInitialVisibility=_.y("enable_top_landscape_image_button_command_web");C.noBottomMargin=!1;C.thumbnailObjectFit="CONTAIN";C.thumbnailFitHeight=!0;C.actionMap={"yt-mute-ad-action":"handleMuteAd"};return C};
_.O(pR,_.B);_.n=pR.prototype;_.n.created=function(){this.activeView=new tJ(this.hostElement)};
_.n.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"}}}};
_.n.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",pR.JSC$14771_DEFAULT_CLICK_LOCATION_BEHAVIOR,pR.JSC$14771_CLICK_LOCATION_ID_MAP))};
_.n.onTap=function(C){this.onTapOrClick(C)};
_.n.onTapOrClick=function(C){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,C,!1)};
_.n.updateMediaBackgroundImage=function(){var C=this.get("data.image.thumbnail.thumbnails");C&&(C=_.RP(C,0))&&_.jr(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+C+")"})};
_.n.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var C=0;C<this.data.impressionEndpoints.length;C++){var F=this.data.impressionEndpoints[C];F.clickTrackingParams&&delete F.clickTrackingParams;_.I8().resolve(_.WD).resolveCommand(F,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var G;((G=this.data)==null?0:G.activeView)&&af(this.activeView,this.data.activeView)}};
_.n.handleMuteAd=function(){};
_.n.attached=function(){var C=this;_.y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&kW(C.activeView)})};
_.n.detached=function(){_.y("stop_av_measurement_on_detach")&&kW(this.activeView)};
_.I6.Object.defineProperties(pR.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var C;if((C=this.data)==null||!C.titleText)return"";var F;return _.iQ("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((F=this.data)==null?void 0:F.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?0:C.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?0:C.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?0:C.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?0:C.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?0:C.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 C;return!((C=this.data)==null||!C.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"}}});
pR.prototype.onTap=pR.prototype.onTap;pR.prototype.dataChanged=pR.prototype.dataChanged;
pR.JSC$14771_CLICK_LOCATION_ID_MAP=_.y("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"]]);
pR.JSC$14771_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.y("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"}];_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],pR.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],pR.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.w(_.T6),_.Y("design:type",Object)],pR.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],pR.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.uY.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],pR.prototype,"ytSparklesClickLocationBehavior",void 0);_.R([_.w([_.Z7.YtActionHandlerBehavior]),_.Y("design:type",Object)],pR.prototype,"actionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],pR.prototype,"data",void 0);
_.R([_.L(),_.Y("design:type",Object)],pR.prototype,"clickCommand",void 0);_.R([_.L({reflectToAttribute:!0,selector:_.HY}),_.Y("design:type",Boolean)],pR.prototype,"miniMode",void 0);_.R([_.L(),_.Y("design:type",String)],pR.prototype,"iconType",void 0);_.R([_.M("data.titleText"),_.Y("design:type",String),_.Y("design:paramtypes",[])],pR.prototype,"titleAriaLabel",null);_.R([_.M("data.rating"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],pR.prototype,"getRating",null);
_.R([_.M("data.price"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],pR.prototype,"getPrice",null);_.R([_.M("data.thirdLine"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],pR.prototype,"getThirdLine",null);_.R([_.M("data.fourthLine"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],pR.prototype,"getFourthLine",null);_.R([_.M("data.fifthLine"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],pR.prototype,"getFifthLine",null);
_.R([_.M("getRating"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],pR.prototype,"computeRatingHidden",null);_.R([_.M("getPrice"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],pR.prototype,"computePriceHidden",null);_.R([_.M("getThirdLine"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],pR.prototype,"computeThirdLineHidden",null);_.R([_.M("getFourthLine"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],pR.prototype,"computeFourthLineHidden",null);
_.R([_.M("getFifthLine"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],pR.prototype,"computeFifthLineHidden",null);_.R([_.L({reflectToAttribute:!0}),_.M("data.energyIcon"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],pR.prototype,"hasEnergyIcon",null);_.R([_.M("computePriceHidden","computeRatingHidden"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],pR.prototype,"computeSecondaryTextHidden",null);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],pR.prototype,"standardizeIconSize",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],pR.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],pR.prototype,"noBottomMargin",void 0);_.R([_.L({reflectToAttribute:!0}),_.M("data.layout"),_.Y("design:type",String),_.Y("design:paramtypes",[])],pR.prototype,"layout",null);
_.R([_.M("data.layout"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],pR.prototype,"mediaThumbnailWidth",null);_.R([_.M("layout"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],pR.prototype,"useRoundedBadge",null);_.R([_.L(),_.Y("design:type",String)],pR.prototype,"thumbnailObjectFit",void 0);_.R([_.L(),_.Y("design:type",Object)],pR.prototype,"thumbnailFitHeight",void 0);
_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pR.prototype,"dataChanged",null);_.R([_.VG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],pR.prototype,"onTap",null);_.R([_.e({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],pR);
_.q(pR,"ytd-display-ad-renderer",function(){if(Vwy!==void 0)return Vwy;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Vwy=C},{mode:1});var $KS;var bUG;var nYl;var NXS=new Map;var uW2=!1;var mk=function(){var C=_.B.apply(this,arguments)||this;C.DEFAULT_TOOLTIP_OFFSET="10";C.TOOLTIP_OFFSET_NO_BANNER="-8";C.badges=null;C.noEndpoints=!1;C.wrapText=!1;C.forceVerified=!1;C.tooltipPosition="top";C.compactStyle=!1;C.height=0;C.lineHeight=0;return C};
_.O(mk,_.B);_.n=mk.prototype;_.n.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.n.attached=function(){var C=this;this.observer=new MutationObserver(function(F,G){C.handleResized();G.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.n.detached=function(){this.observer&&this.observer.disconnect()};
_.n.logTooltipEvent=function(){_.y("kevlar_wiz_tooltip_event_killswitch")||uW2||(_.Oss("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),uW2=!0)};
_.n.handleWindowResized=function(){this.handleResized()};
_.n.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")))};
_.n.onHeightChanged=function(){if(this.verified){var C=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.TF("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=C:this.textContainerEl.style.marginRight=C}};
_.n.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.TF("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.n.handleResized=function(){var C=this;this.verified&&_.gT.addLowPriorityJob(function(){C.fitBackgroundToText();var F=getComputedStyle(C.hostElement).lineHeight;F&&(F=F.match(/\d+/))&&F.length&&(C.lineHeight=Number(F[0]));C.height=C.lineHeight&&!C.wrapText?C.lineHeight:C.textEl.offsetHeight})};
_.n.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var C=document.createRange(),F=_.ot(this.textEl).children;F.length>0?C.selectNodeContents(F[0]):C.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(C.getBoundingClientRect().width)+"px"}};
_.n.computeChannelBadgeStyle=function(C){var F;if((C==null?0:(F=C.runs)==null?0:F.length)&&C.runs[0].textColor)return"--ytd-badge-icon-color:"+_.Hr(C.runs[0].textColor)+";"};
_.I6.Object.defineProperties(mk.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"?_.eN(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var C=this.get("badges.0.metadataBadgeRenderer.tooltip");if(C)return C}return _.dd(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
mk.prototype.onLineHeightChanged=mk.prototype.onLineHeightChanged;mk.prototype.onHeightChanged=mk.prototype.onHeightChanged;mk.prototype.onChannelNameChanged=mk.prototype.onChannelNameChanged;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],mk.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],mk.prototype,"badges",void 0);_.R([_.L(),_.Y("design:type",Object)],mk.prototype,"channelName",void 0);
_.R([_.L(),_.Y("design:type",Object)],mk.prototype,"noEndpoints",void 0);_.R([_.L(),_.Y("design:type",Object)],mk.prototype,"wrapText",void 0);_.R([_.L(),_.Y("design:type",Object)],mk.prototype,"forceVerified",void 0);_.R([_.L(),_.Y("design:type",Object)],mk.prototype,"tooltipPosition",void 0);_.R([_.L(),_.Y("design:type",String)],mk.prototype,"tooltip",void 0);_.R([_.L(),_.Y("design:type",Boolean)],mk.prototype,"hasChannelArt",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],mk.prototype,"compactStyle",void 0);_.R([_.$z("#text-container"),_.Y("design:type",HTMLElement)],mk.prototype,"textContainerEl",void 0);_.R([_.$z("#text"),_.Y("design:type",Object)],mk.prototype,"textEl",void 0);_.R([_.$z("#verified-tooltip"),_.Y("design:type",HTMLElement)],mk.prototype,"verifiedTooltip",void 0);_.R([_.L(),_.Y("design:type",Object)],mk.prototype,"height",void 0);
_.R([_.L(),_.Y("design:type",Object)],mk.prototype,"lineHeight",void 0);_.R([_.L({reflectToAttribute:!0}),_.M("badges","forceVerified"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],mk.prototype,"verified",null);_.R([_.M("badges","verified"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],mk.prototype,"hideBadges",null);_.R([_.M("channelName"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],mk.prototype,"formattedName",null);
_.R([_.M("badges","verified","formattedName"),_.Y("design:type",String),_.Y("design:paramtypes",[])],mk.prototype,"tooltipText",null);_.R([_.M("hasChannelArt"),_.Y("design:type",String),_.Y("design:paramtypes",[])],mk.prototype,"tooltipOffset",null);_.R([_.iP("channelName"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mk.prototype,"onChannelNameChanged",null);
_.R([_.iP("height"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mk.prototype,"onHeightChanged",null);_.R([_.iP("lineHeight","height"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mk.prototype,"onLineHeightChanged",null);_.R([_.e({is:"ytd-channel-name",disableElementRegistration:!0})],mk);
_.q(mk,"ytd-channel-name",function(){if(nYl!==void 0)return nYl;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip aria-hidden="true" fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return nYl=C},{mode:_.oN("kevlar_poly_si_batch_j036")?1:2});var CE=function(){var C=_.B.apply(this,arguments)||this;C.standardizeIconSize=_.y("kevlar_system_icons");return C};
_.O(CE,_.B);CE.prototype.basicPaletteChanged=function(){var C;(C=this.data.color)!=null&&C.basicColorPaletteData&&_.WB(this.hostElement,this.data.color.basicColorPaletteData)};
CE.prototype.useFilledIcons=function(C){return _.y("kevlar_system_icons")&&(C==="CHECK_CIRCLE_THICK"||C==="OFFICIAL_ARTIST_BADGE")};
_.I6.Object.defineProperties(CE.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var C,F,G;return this.data.authorCreator||((C=this.data)==null?void 0:(F=C.color)==null?void 0:(G=F.basicColorPaletteData)==null?void 0:G.backgroundColor)}}});
CE.prototype.basicPaletteChanged=CE.prototype.basicPaletteChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],CE.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],CE.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],CE.prototype,"standardizeIconSize",void 0);_.R([_.L({reflectToAttribute:!0}),_.M("data.authorUnifiedVerified"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],CE.prototype,"verified",null);
_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],CE.prototype,"creator",null);_.R([_.iP("data.color.basicColorPaletteData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],CE.prototype,"basicPaletteChanged",null);_.R([_.e({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],CE);
_.q(CE,"ytd-author-comment-badge-renderer",function(){if(bUG!==void 0)return bUG;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return bUG=C},{mode:1});var ze8;var jC=function(){return _.B.apply(this,arguments)||this};
_.O(jC,_.B);jC.prototype.computeThumbnailWidth=function(C){if(C==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],jC.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],jC.prototype,"data",void 0);_.R([_.L({computed:"computeIcon_(data.icon)"}),_.Y("design:type",String)],jC.prototype,"icon",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],jC.prototype,"surface",void 0);
_.R([_.L({reflectToAttribute:!0,value:_.y("enable_shrink_image_size_on_web_posts_singleton")}),_.Y("design:type",Boolean)],jC.prototype,"searchSxsUx",void 0);_.R([_.L({reflectToAttribute:!0,value:_.y("enable_community_page_on_desktop")}),_.Y("design:type",Boolean)],jC.prototype,"useSmallerPostImageAttachments",void 0);_.R([_.e({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],jC);
_.q(jC,"ytd-backstage-image-renderer",function(){if(ze8!==void 0)return ze8;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return ze8=C},{mode:1});var QJm;var FC=function(){var C=_.B.apply(this,arguments)||this;C.isLoading=!1;C.selectedItemIndex=-1;return C};
_.O(FC,_.B);_.n=FC.prototype;_.n.computeIsChannelOwner=function(C){if(!C)return!0;C=C[0];return!(C&&(C.signinEndpoint||C.selectServiceEndpoint))};
_.n.computeIsImagePoll=function(C){return(C==null?void 0:C.type)==="POLL_TYPE_IMAGE"};
_.n.computeIsTotalVotesDisabled=function(C){return!(C==null?0:C.totalVotes)};
_.n.thumbnailSrc=function(C){var F,G,V,J;return(C==null?0:(F=C.thumbnails)==null?0:(G=F[0])==null?0:G.url)?_.Ph((V=C.thumbnails)==null?void 0:(J=V[0])==null?void 0:J.url):void 0};
_.n.progressWidth=function(C){return"width:"+(C?C*100:0)+"%;"};
_.n.textAreaWidth=function(C){return this.isImagePoll?null:"width:"+(C?C*100:0)+"%;"};
_.n.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.n.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var C=this.data.choices,F=0;F<C.length;F++)if(C[F].selected){this.selectedItemIndex=F;break}};
_.n.onPopupClosed=function(C,F){C=Number(this.pollVotes.selected);F.confirmed&&(this.selectChoice(C,!1),_.rz(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.n.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.n.onYtCommentPollRevert=function(C,F){F&&(this.selectChoice(F.selectedChoiceIndex,!0),this.set("data.totalVotes",F.totalVotes))};
_.n.onYtServiceRequestSent=function(C,F){if(F.actions)for(C=0;C<F.actions.length;C++){var G=F.actions[C];_.Z(G,Bf)&&this.set("data.totalVotes",_.Z(G,Bf).totalVotes)}};
_.n.onYtServiceRequestCompleted=function(C){var F=this.get("detail.data.actionResults.0.feedback",C);C=this.get("detail.data.actionResults.0.status",C);if(F==="FEEDBACK_DESELECT"||F==="FEEDBACK_SELECT")this.isLoading=!1,C==="STATUS_FAILED"?_.oo(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.n.getEndpoint=function(C,F){return F===C?this.data.choices[F].deselectServiceEndpoint||null:this.data.choices[C].selectServiceEndpoint||null};
_.n.selectChoice=function(C,F){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var G=0;G<this.data.choices.length;G++){var V;if(C===this.selectedItemIndex){var J=!1;var b=V=null}else V=(J=G===C)?this.data.choices[G].voteRatioIfSelected:this.data.choices[G].voteRatioIfNotSelected,b=J?this.data.choices[G].votePercentageIfSelected:this.data.choices[G].votePercentageIfNotSelected;this.set("data.choices."+G+".voteRatio",V);
this.set("data.choices."+G+".votePercentage",b);this.set("data.choices."+G+".selected",J)}F||(this.isLoading=!0,(F=this.getEndpoint(C,this.selectedItemIndex))&&_.I8().resolve(_.WD).resolveCommand(F,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===C?-1:C};
_.I6.Object.defineProperties(FC.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
FC.prototype.onYtServiceRequestCompleted=FC.prototype.onYtServiceRequestCompleted;FC.prototype.onYtServiceRequestSent=FC.prototype.onYtServiceRequestSent;FC.prototype.onYtCommentPollRevert=FC.prototype.onYtCommentPollRevert;FC.prototype.onPopupClosed=FC.prototype.onPopupClosed;FC.prototype.dataChanged=FC.prototype.dataChanged;_.R([_.w(_.F9),_.Y("design:type",Object)],FC.prototype,"paperItemBehavior",void 0);
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],FC.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nK),_.Y("design:type",Object)],FC.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],FC.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],FC.prototype,"isLoading",void 0);_.R([_.L({computed:"computeIsChannelOwner(data.choices)"}),_.Y("design:type",Boolean)],FC.prototype,"isChannelOwner",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.Y("design:type",Boolean)],FC.prototype,"isImagePoll",void 0);_.R([_.L({computed:"computeIsTotalVotesDisabled(data)"}),_.Y("design:type",Boolean)],FC.prototype,"isTotalVotesDisabled",void 0);_.R([_.L(),_.Y("design:type",Object)],FC.prototype,"previousPollInfo",void 0);_.R([_.L(),_.Y("design:type",Object)],FC.prototype,"selectedItemIndex",void 0);_.R([_.$z("#poll-votes"),_.Y("design:type",Object)],FC.prototype,"pollVotes",void 0);
_.R([_.M("isChannelOwner"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],FC.prototype,"endpointStyle",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],FC.prototype,"dataChanged",null);_.R([_.VG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],FC.prototype,"onPopupClosed",null);
_.R([_.VG("yt-comment-poll-revert"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],FC.prototype,"onYtCommentPollRevert",null);_.R([_.VG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Sn]),_.Y("design:returntype")],FC.prototype,"onYtServiceRequestSent",null);
_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],FC.prototype,"onYtServiceRequestCompleted",null);_.R([_.e({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],FC);
_.q(FC,"ytd-backstage-poll-renderer",function(){if(QJm!==void 0)return QJm;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return QJm=C},{mode:2});var IKS;var EYu={autoplay:!1,loop:!1},Wf$={simpleText:""},Gv=function(){var C=_.B.apply(this,arguments)||this;C.isLoading=!1;C.usesPanelLockup=!1;C.selectedItemIndex=-1;C.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},EYu,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});C.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},EYu,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});C.correctnessAnimationProps=[];C.correctnessAnimationRefs=[];return C};
_.O(Gv,_.B);_.n=Gv.prototype;_.n.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.n.computeIsChannelOwner=function(C){if(!C)return!0;C=C[0];return!(C&&(C.signinEndpoint||C.selectServiceEndpoint))};
_.n.computeIsTotalVotesDisabled=function(C){return!(C==null?0:C.totalVotes)};
_.n.computeIsImageQuiz=function(C){return(C==null?void 0:C.type)==="POLL_TYPE_IMAGE"};
_.n.onExplanationChanged=function(){this.expander.reset()};
_.n.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var C=this.data.choices;if(C){this.maybeInitializeQuizLotties(C);for(var F=0;F<C.length;F++)if(C[F].isSelected||this.isChannelOwner&&C[F].isCorrect){this.selectedItemIndex=F;return}this.selectedItemIndex=-1}}};
_.n.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var C=this.selectedItemIndex,F=Number(this.quizVotes.selected);this.selectChoice(F);this.sendVoteAction(F,C);this.quizVotes.selected=-1;var G;C=!((G=this.data)==null?0:G.enableAnimation);this.maybePlayAnswerAnimations(C)}};
_.n.onYtCommentPollRevert=function(C,F){F&&(this.selectChoice(F.selectedChoiceIndex),this.set("data.totalVotes",F.totalVotes))};
_.n.onYtServiceRequestSent=function(C,F){if(F.actions)for(C=_.u(F.actions),F=C.next();!F.done;F=C.next())(F=_.Z(F.value,Bf))&&this.set("data.totalVotes",F.totalVotes)};
_.n.onYtServiceRequestCompleted=function(C){var F=this.get("detail.data.actionResults.0.feedback",C);C=this.get("detail.data.actionResults.0.status",C);if(F==="FEEDBACK_DESELECT"||F==="FEEDBACK_SELECT")this.isLoading=!1,C==="STATUS_FAILED"?_.oo(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.n.getAnimationPropsForChoiceIndex=function(C,F){return F[C]};
_.n.maybePlayAnswerAnimations=function(C){C=C===void 0?!1:C;var F;if((F=this.data)!=null&&F.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){F=_.u(this.correctnessAnimationRefs);for(var G=F.next();!G.done;G=F.next()){var V=void 0,J=void 0;(V=G.value)==null||(J=V.lottieEl)==null||J.stop()}if(!(this.selectedItemIndex<0)){F=0;C&&(F=this.isCorrect?37:25);var b,z;(b=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(z=b.lottieEl)==null||z.goToAndPlay(C?F:0,!0);if(!(this.isCorrect||
(b=this.data.choices.findIndex(function(k){return k.isCorrect}),b<0))){var Q,E;
(E=(Q=this.correctnessAnimationRefs[b])==null?void 0:Q.lottieEl)==null||E.goToAndPlay(37,!0);var t;Q=(t=this.fadeContainers)==null?void 0:t.item(b);!C&&Q&&this.fadeIn(Q)}}}};
_.n.thumbnailSrc=function(C){var F,G,V,J;return(C==null?0:(F=C.thumbnails)==null?0:(G=F[0])==null?0:G.url)?_.Ph((V=C.thumbnails)==null?void 0:(J=V[0])==null?void 0:J.url):void 0};
_.n.a11yVotedText=function(C,F){var G,V,J=((G=this.data)==null?void 0:(V=G.correctVotedText)==null?void 0:V.simpleText)||"",b,z;G=((b=this.data)==null?void 0:(z=b.votedText)==null?void 0:z.simpleText)||"";if(!F)return"";var Q,E;if((Q=this.data)==null?0:(E=Q.choices)==null?0:E[C].isCorrect)return J;var t,k;return((t=this.data)==null?0:(k=t.choices)==null?0:k[C].isSelected)?G:""};
_.n.getEndpoint=function(C,F){return F===C?this.data.choices[C].deselectServiceEndpoint||null:this.data.choices[C].selectServiceEndpoint||null};
_.n.sendVoteAction=function(C,F){if(C=this.getEndpoint(C,F))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(C)};
_.n.selectChoice=function(C){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var F=0;F<this.data.choices.length;F++)this.set("data.choices."+F+".isSelected",C===this.selectedItemIndex?!1:F===C);this.selectedItemIndex=this.selectedItemIndex===C?-1:C};
_.n.maybeInitializeQuizLotties=function(C){var F=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=C.map(function(G){return{animationConfig:G.isCorrect?F.baseCorrectLottiePlayerAnimationConfig:F.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){F.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(G){return G.animationRef||{}})};
_.n.fadeIn=function(C){C.classList.add("fade-in");_.rQ(_.gT,function(){C.classList.remove("fade-in")},900)};
_.I6.Object.defineProperties(Gv.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.y("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.dd(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 C,F;return((C=this.data)==null?void 0:(F=C.choices)==null?void 0:F.some(function(G){return G.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)==null||!C.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?Wf$:this.data.choices[this.selectedItemIndex].explanation||Wf$}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)==null||!C.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
Gv.prototype.onYtServiceRequestCompleted=Gv.prototype.onYtServiceRequestCompleted;Gv.prototype.onYtServiceRequestSent=Gv.prototype.onYtServiceRequestSent;Gv.prototype.onYtCommentPollRevert=Gv.prototype.onYtCommentPollRevert;Gv.prototype.dataChanged=Gv.prototype.dataChanged;Gv.prototype.onExplanationChanged=Gv.prototype.onExplanationChanged;_.R([_.w(_.F9),_.Y("design:type",Object)],Gv.prototype,"paperItemBehavior",void 0);
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Gv.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Gv.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.ic.YtTaskEmitterBehavior),_.Y("design:type",Object)],Gv.prototype,"ytTaskEmitterBehavior",void 0);_.R([_.w(_.nK),_.Y("design:type",Object)],Gv.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Gv.prototype,"data",void 0);
_.R([_.L(),_.Y("design:type",Object)],Gv.prototype,"isLoading",void 0);_.R([_.L(),_.Y("design:type",Object)],Gv.prototype,"usesPanelLockup",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.Y("design:type",Boolean)],Gv.prototype,"isChannelOwner",void 0);_.R([_.L({computed:"computeIsTotalVotesDisabled(data)"}),_.Y("design:type",Boolean)],Gv.prototype,"isTotalVotesDisabled",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.Y("design:type",Boolean)],Gv.prototype,"isImageQuiz",void 0);_.R([_.L(),_.Y("design:type",Object)],Gv.prototype,"previousQuizInfo",void 0);_.R([_.L(),_.Y("design:type",Object)],Gv.prototype,"selectedItemIndex",void 0);_.R([_.L({reflectToAttribute:!0}),_.M("data","usesPanelLockup"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Gv.prototype,"shouldUseModernUi",null);
_.R([_.bP(".fade-container"),_.Y("design:type",Object)],Gv.prototype,"fadeContainers",void 0);_.R([_.L(),_.Y("design:type",Array)],Gv.prototype,"correctnessAnimationProps",void 0);_.R([_.M("explanation","showCorrectAnswer"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Gv.prototype,"showExplanation",null);_.R([_.M("isChannelOwner","isAttempted"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Gv.prototype,"showCorrectAnswer",null);
_.R([_.M("isChannelOwner","isAttempted","data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Gv.prototype,"isQuizAnsweringDisabled",null);_.R([_.M("isQuizAnsweringDisabled"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Gv.prototype,"endpointStyle",null);_.R([_.M("data","selectedItemIndex"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Gv.prototype,"isAttempted",null);
_.R([_.M("data","selectedItemIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Gv.prototype,"explanation",null);_.R([_.M("data","selectedItemIndex"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Gv.prototype,"isCorrect",null);_.R([_.$z("ytd-expander"),_.Y("design:type",Object)],Gv.prototype,"expander",void 0);_.R([_.$z("#quiz-votes"),_.Y("design:type",Object)],Gv.prototype,"quizVotes",void 0);
_.R([_.iP("explanation"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Gv.prototype,"onExplanationChanged",null);_.R([_.iP("data","isChannelOwner"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Gv.prototype,"dataChanged",null);_.R([_.VG("yt-comment-quiz-revert"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],Gv.prototype,"onYtCommentPollRevert",null);
_.R([_.VG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Sn]),_.Y("design:returntype")],Gv.prototype,"onYtServiceRequestSent",null);_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Gv.prototype,"onYtServiceRequestCompleted",null);_.R([_.e({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],Gv);
_.q(Gv,"ytd-backstage-quiz-renderer",function(){if(IKS!==void 0)return IKS;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return IKS=C},{mode:1});var twy;var VE=function(){return _.B.apply(this,arguments)||this};
_.O(VE,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],VE.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],VE.prototype,"data",void 0);_.R([_.e({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],VE);
_.q(VE,"ytd-post-uploaded-video-renderer",function(){if(twy!==void 0)return twy;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return twy=C},{mode:1});var aKG;var ip=function(){return _.B.apply(this,arguments)||this};
_.O(ip,_.B);ip.prototype.useFilledIcons=function(C){return C==="SPONSORSHIP_STAR"};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ip.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],ip.prototype,"data",void 0);_.R([_.e({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],ip);
var kyG=_.Tp()(ip,"ytd-sponsors-only-badge-renderer",function(){if(aKG===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);aKG=C}C=aKG;return C},{allowedProps:["data"],
mode:1});var UK8;var J9=function(){return _.B.apply(this,arguments)||this};
_.O(J9,_.B);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],J9.prototype,"componentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],J9.prototype,"data",void 0);_.R([_.e({is:"ytd-child-video-renderer",disableElementRegistration:!0})],J9);
_.q(J9,"ytd-child-video-renderer",function(){if(UK8!==void 0)return UK8;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return UK8=C},{mode:1});var HUO;var lK2;var $9=function(){var C=_.B.apply(this,arguments)||this;C.size=0;C.fallbackImageSize={height:void 0,width:9999};C.webModernCollections=!1;return C};
_.O($9,_.B);_.n=$9.prototype;_.n.computeBlurredImageSize=function(C){return C?{height:C*2,width:C*2}:this.fallbackImageSize};
_.n.computeImageSize=function(C){return C?{height:C,width:C}:this.fallbackImageSize};
_.n.computeObjectFit=function(C){return C?"FILL":"CONTAIN"};
_.n.computePreserve=function(C){return C?!0:!1};
_.n.setBackground=function(){var C,F;if((C=this.data)==null?0:(F=C.thumbnail)==null?0:F.sampledThumbnailColor)C=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+C.red+","+C.green+","+C.blue+",1)"};
$9.prototype.setBackground=$9.prototype.setBackground;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],$9.prototype,"ytRendererBehavior",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],$9.prototype,"watchFeedThumbnail",void 0);_.R([_.L(),_.Y("design:type",Object)],$9.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],$9.prototype,"size",void 0);
_.R([_.L({computed:"computeBlurredImageSize(size)"}),_.Y("design:type",Object)],$9.prototype,"blurredImageSize",void 0);_.R([_.L({computed:"computeImageSize(size)"}),_.Y("design:type",Object)],$9.prototype,"imageSize",void 0);_.R([_.L({computed:"computePreserve(size)"}),_.Y("design:type",String)],$9.prototype,"preserve",void 0);_.R([_.L({computed:"computeObjectFit(size)"}),_.Y("design:type",String)],$9.prototype,"objectFit",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],$9.prototype,"webModernCollections",void 0);_.R([_.iP("data.thumbnail.sampledThumbnailColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$9.prototype,"setBackground",null);_.R([_.e({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],$9);
_.q($9,"ytd-playlist-custom-thumbnail-renderer",function(){if(lK2!==void 0)return lK2;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return lK2=C},{mode:1});var yjr;var bp=function(){return _.B.apply(this,arguments)||this};
_.O(bp,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],bp.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],bp.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Number)],bp.prototype,"width",void 0);_.R([_.e({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],bp);
_.q(bp,"ytd-playlist-video-thumbnail-renderer",function(){if(yjr!==void 0)return yjr;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return yjr=C},{mode:1});var ZU2;var nE=function(){return _.B.apply(this,arguments)||this};
_.O(nE,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],nE.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],nE.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Number)],nE.prototype,"width",void 0);_.R([_.e({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],nE);
_.q(nE,"ytd-show-custom-thumbnail-renderer",function(){if(ZU2!==void 0)return ZU2;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return ZU2=C},{mode:1});var Ns7;var up=function(){return _.B.apply(this,arguments)||this};
_.O(up,_.B);up.prototype.useFilledIcons=function(C){return C==="MUSIC"||C==="COURSE"};
up.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=yk(this.overlayColor,"0.8");else if(this.overlayColor){var C=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+C.red+","+C.green+","+C.blue+",0.8)"}};
_.I6.Object.defineProperties(up.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)}}});
up.prototype.overlayColorChanged=up.prototype.overlayColorChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],up.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],up.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],up.prototype,"overlayColor",void 0);_.R([_.L({reflectToAttribute:!0}),_.M("data.icon","data.text"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],up.prototype,"overlayStyle",null);
_.R([_.L({reflectToAttribute:!0}),_.M("data.icon","data.text"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],up.prototype,"overlayTextStyle",null);_.R([_.iP("overlayColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],up.prototype,"overlayColorChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],up);
_.q(up,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(Ns7!==void 0)return Ns7;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Ns7=C},{mode:1});var OUE;var zv=function(){var C=_.B.apply(this,arguments)||this;C.active=!1;return C};
_.O(zv,_.B);zv.prototype.computeIsSpinnerHidden=function(C){return(C==null?void 0:C.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
zv.prototype.computeOverlayIcon=function(C){return(C==null?void 0:C.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(C==null?void 0:C.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],zv.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],zv.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],zv.prototype,"active",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],zv);
_.q(zv,"ytd-thumbnail-overlay-downloading-renderer",function(){if(OUE!==void 0)return OUE;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return OUE=C},{mode:1});var XTS;var QE=function(){return _.B.apply(this,arguments)||this};
_.O(QE,_.B);_.I6.Object.defineProperties(QE.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],QE.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],QE.prototype,"data",void 0);_.R([_.M("data.text"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],QE.prototype,"text",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],QE);
_.q(QE,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(XTS!==void 0)return XTS;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return XTS=C},{mode:1});var wT8,MwE=function(){if(wT8!==void 0)return wT8;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return wT8=C};var I7=function(){return _.B.apply(this,arguments)||this};
_.O(I7,_.B);_.I6.Object.defineProperties(I7,{template:{configurable:!0,enumerable:!0,get:function(){return MwE()}}});
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],I7.prototype,"animateEqualizer",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],I7);_.Tp()(I7,"ytd-thumbnail-overlay-equalizer",function(){return MwE()},{allowedProps:["animateEqualizer"],
mode:1});var SEm;var En=function(){var C=_.B.apply(this,arguments)||this;C.nowPlayingBadge=_.y("web_now_playing_badge");C.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return C};
_.O(En,_.B);En.prototype.activeChanged=function(){var C=this;_.y("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.zH(this,function(){_.oo(C.hostElement,"yt-playlist-lockup-now-playing-active",C)})};
En.prototype.onMiniplayerPlayStateChanged=function(C){var F,G=(F=_.Z(_.v0().currentEndpoint,_.eT))==null?void 0:F.videoId;this.isVideoPlaying=C&&(_.y("web_limit_now_playing_animation_killswitch")||this.videoId===G)};
En.prototype.activeChanged=En.prototype.activeChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],En.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],En.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],En.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Boolean)],En.prototype,"isVideoPlaying",void 0);_.R([_.L(),_.Y("design:type",String)],En.prototype,"videoId",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],En.prototype,"equalizerOnly",void 0);_.R([_.L(),_.Y("design:type",Boolean)],En.prototype,"isActive",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],En.prototype,"nowPlayingBadge",void 0);_.R([_.iP("isActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],En.prototype,"activeChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],En);
_.q(En,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(SEm!==void 0)return SEm;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return SEm=C},{mode:1});var Lf8;var WW=function(){return _.B.apply(this,arguments)||this};
_.O(WW,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],WW.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],WW.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],WW);
_.q(WW,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(Lf8!==void 0)return Lf8;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Lf8=C},{mode:_.oN("kevlar_poly_si_batch_j025")?1:2});var BsP;var t9=function(){return _.B.apply(this,arguments)||this};
_.O(t9,_.B);t9.prototype.onDurationChanged=function(){var C,F;_.ot(this.hostElement).querySelector("#progress").style.width=((F=(C=this.data)==null?void 0:C.percentDurationWatched)!=null?F:0)+"%"};
t9.prototype.onDurationChanged=t9.prototype.onDurationChanged;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],t9.prototype,"componentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],t9.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],t9.prototype,"isLive",void 0);_.R([_.iP("data.percentDurationWatched"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],t9.prototype,"onDurationChanged",null);
_.R([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],t9);
_.q(t9,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(BsP!==void 0)return BsP;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return BsP=C},{mode:1});var vYr;var a7=function(){var C=_.B.apply(this,arguments)||this;C.bottomPanel=!1;C.richGridOverlay=!1;C.watchFeedOverlay=!1;C.isCompact=!1;return C};
_.O(a7,_.B);a7.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.I6.Object.defineProperties(a7.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var C,F;return((C=this.data)==null?void 0:(F=C.icon)==null?void 0:F.iconType)==="PLAY_ALL"&&_.y("kevlar_system_icons")}}});
a7.prototype.widthChanged=a7.prototype.widthChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],a7.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],a7.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Number)],a7.prototype,"width",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],a7.prototype,"bottomPanel",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],a7.prototype,"richGridOverlay",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],a7.prototype,"watchFeedOverlay",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],a7.prototype,"isCompact",void 0);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],a7.prototype,"isIconFilled",null);_.R([_.iP("width","watchFeedOverlay"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],a7.prototype,"widthChanged",null);
_.R([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],a7);
_.q(a7,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(vYr!==void 0)return vYr;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return vYr=C},{mode:1});var fKo;var hel=["CLIP","SHORTS"],k9=function(){var C=_.B.apply(this,arguments)||this;C.animated=_.y("animated_live_badge_icon");C.hasIcon=!1;C.updateTimerIntervalId=0;C.timeSinceLive=0;return C};
_.O(k9,_.B);_.n=k9.prototype;_.n.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.n.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.n.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.n.hasIconOrText=function(){var C,F;return!!(((C=this.data)==null?0:C.icon)||((F=this.data)==null?0:F.text))};
_.n.initializeLiveBadgeTimer=function(){var C=this,F,G=(F=this.liveBadgeData)==null?void 0:F.startTimestampSec;if(G&&this.canShowLiveBadgeTimer()){var V;F=Number((V=this.liveBadgeData)==null?void 0:V.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(G);this.updateTimerIntervalId=_.Z9(function(){C.canShowLiveBadgeTimer()?C.timeSinceLive++:(C.timeSinceLive=0,window.clearInterval(C.updateTimerIntervalId))},F)}else this.timeSinceLive=0};
_.n.canShowLiveBadgeTimer=function(){var C=Date.now(),F,G;return C<(Number((F=this.liveBadgeData)==null?void 0:F.endTimestampSec)-1)*1E3&&C>Number((G=this.liveBadgeData)==null?void 0:G.startTimestampSec)*1E3};
_.I6.Object.defineProperties(k9.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){return this.data?_.XJs(this.data,this.timeSinceLive):{}}},
hideBadgeShape:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.hasIconOrText()||this.overlayType==="OPEN_IN_NEW_TAB"}},
overlayStyle:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.style)return this.data.style}},
liveBadgeData:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)==null?void 0:C.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 hel.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
k9.prototype.initializeLiveBadgeTimer=k9.prototype.initializeLiveBadgeTimer;k9.prototype.dataChanged=k9.prototype.dataChanged;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],k9.prototype,"componentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],k9.prototype,"data",void 0);_.R([_.L({computed:"computeIcon_(data.icon)"}),_.Y("design:type",String)],k9.prototype,"icon",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],k9.prototype,"animated",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.Y("design:type",Boolean)],k9.prototype,"hideTimeStatus",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],k9.prototype,"hasIcon",void 0);_.R([_.L(),_.Y("design:type",Object)],k9.prototype,"timeSinceLive",void 0);_.R([_.M("data","timeSinceLive"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],k9.prototype,"badgeShapeData",null);
_.R([_.M("data","overlayType"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],k9.prototype,"hideBadgeShape",null);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],k9.prototype,"dataChanged",null);_.R([_.L({reflectToAttribute:!0}),_.M("data.style"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],k9.prototype,"overlayStyle",null);
_.R([_.M("data.liveBadgeData"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],k9.prototype,"liveBadgeData",null);_.R([_.L({reflectToAttribute:!0}),_.M("data.type"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],k9.prototype,"overlayType",null);_.R([_.M("overlayType","overlayStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],k9.prototype,"useFilledIcon",null);
_.R([_.zp("liveBadgeData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],k9.prototype,"initializeLiveBadgeTimer",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],k9);
_.q(k9,"ytd-thumbnail-overlay-time-status-renderer",function(){if(fKo!==void 0)return fKo;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return fKo=C},{mode:_.oN("kevlar_poly_si_batch_j035")?1:2});var cj8;var Un=function(){return _.B.apply(this,arguments)||this};
_.O(Un,_.B);Un.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"}}}}};
Un.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(C){if(this.hasPlaybackProgressBar)return{percentDurationWatched:C.percentDurationWatched}};
Un.prototype.computeHasPlaybackProgressBar=function(C){return!!C.percentDurationWatched&&C.percentDurationWatched>0};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Un.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Un.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Un.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.Y("design:type",Boolean)],Un.prototype,"hasPlaybackProgressBar",void 0);
_.R([_.e({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],Un);
_.q(Un,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(cj8!==void 0)return cj8;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return cj8=C},{mode:1});var Ajy;var eel=_.d(function(C){var F=C.data;var G=C.children;var V=function(){return!!F().doubleStack},J=function(){return!!F().includeStackHeight};
return _.W("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!F().experimentEnabled}},_.W(_.a,{cond:F,
then:function(){var b={};return _.W(_.WQ,null,_.W(_.a,{cond:J,then:function(){var z={};return _.W("div",{class:_.py("ytCollectionsStackSpacer",(z.ytCollectionsStackSpacerDoubleStack=V,z))})}}),_.W("div",{class:_.py((b.ytCollectionsStackRelativeStack=J,b))},_.W(_.a,{cond:V,
then:function(){var z={};return _.W("div",{class:_.py("ytCollectionsStackCollectionStack2",function(){return F().customClassName2ndStack},(z.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return F().enableResponsiveMode},z)),
style:_.VA({"background-color":function(){return MA5(F())}})})}}),_.W("div",{class:_.py("ytCollectionsStackCollectionStack1",function(){return F().customClassName1stStack},function(){return wJZ(F().thumbnailSize?F().thumbnailSize:"medium")}),
style:_.VA({"background-color":function(){return MA5(F())}})}),G))}}))},"Ca");_.gQ(eel,"yt-collections-stack",{props:{data:_.CJ}});var HW=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};C.webModernCollections=!1;C.isSearch=!1;C.isDoubleStack=!1;C.thumbnailSize="medium";return C};
_.O(HW,_.B);_.n=HW.prototype;
_.n.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]]"}}}}}};
_.n.getThumbnailDetails=function(C){if(C!=null&&C.thumbnailRenderer){var F=C.thumbnailRenderer,G;if((G=F.playlistVideoThumbnailRenderer)==null?0:G.thumbnail)return F.playlistVideoThumbnailRenderer.thumbnail;var V;if((V=F.playlistCustomThumbnailRenderer)==null?0:V.thumbnail)return F.playlistCustomThumbnailRenderer.thumbnail;C=C.thumbnailRenderer;var J;if((J=C.showCustomThumbnailRenderer)==null?0:J.thumbnail)return C.showCustomThumbnailRenderer.thumbnail}};
_.n.computeOverlayColor=function(C){var F,G;if((F=this.getThumbnailDetails(C))==null?0:(G=F.darkColorPalette)==null?0:G.section2Color)return this.getThumbnailDetails(C).darkColorPalette.section2Color;var V;return(V=this.getThumbnailDetails(C))==null?void 0:V.sampledThumbnailColor};
_.n.computeWebModernCollections=function(C){if(C==null||!C.thumbnailOverlays)return!1;C=_.u(C.thumbnailOverlays);for(var F=C.next();!F.done;F=C.next()){var G=void 0;if((G=F.value)==null?0:G.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.n.computeNavigationEndpoint=function(C){return h$W(C==null?void 0:C.navigationEndpoint)};
_.I6.Object.defineProperties(HW.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var C=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:C==null?void 0:C.sampledThumbnailColor,vibrantColorPalette:C==null?void 0:C.vibrantColorPalette,darkColorPalette:C==null?void 0:C.darkColorPalette,experimentEnabled:!0}}}});
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],HW.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],HW.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(Yyo),_.Y("design:type",Object)],HW.prototype,"ytdThumbnailBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],HW.prototype,"componentBehavior",void 0);
_.R([_.L({value:!1}),_.Y("design:type",Boolean)],HW.prototype,"watchFeedThumbnail",void 0);_.R([_.L(),_.Y("design:type",Number)],HW.prototype,"customThumbnailSize",void 0);_.R([_.L({value:!0}),_.Y("design:type",Boolean)],HW.prototype,"hideAria",void 0);_.R([_.L(),_.Y("design:type",Object)],HW.prototype,"data",void 0);_.R([_.L({computed:"computeOverlayColor(data)"}),_.Y("design:type",Object)],HW.prototype,"overlayColor",void 0);
_.R([_.L({computed:"computeWebModernCollections(data)"}),_.Y("design:type",Object)],HW.prototype,"webModernCollections",void 0);_.R([_.L({computed:"computeNavigationEndpoint(data)"}),_.Y("design:type",Object)],HW.prototype,"computedNavigationEndpoint",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],HW.prototype,"isSearch",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],HW.prototype,"isDoubleStack",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],HW.prototype,"thumbnailSize",void 0);_.R([_.M("data","isDoubleStack","thumbnailSize"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],HW.prototype,"collectionStack",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],HW);
_.q(HW,"ytd-playlist-thumbnail",function(){if(Ajy!==void 0)return Ajy;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Ajy=C},{mode:_.oN("kevlar_poly_si_batch_j025")?1:2});var dK7;_.gQ(_.d(function(C){return _.W("yt-text-view-model",{class:_.py("ytTextViewModelHost")},_.W(_.mn,{text:function(){return C.data().text}}))},"Da"),"yt-text-view-model",{props:{data:_.CJ}});var lp=function(){var C=_.B.apply(this,arguments)||this;C.noEndpoints=!1;C.amsterdamPostMvp=_.y("web_amsterdam_post_mvp_playlists");C.badges=[];C.transferState="TRANSFER_STATE_UNKNOWN";return C};
_.O(lp,_.B);_.n=lp.prototype;_.n.configureRendererStamper=function(){return{"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.n.getMetadata=function(C){if(!C)return[];var F=[],G=C.shortViewCountText||C.viewCountText;G&&F.push(_.dd(G));C.publishedTimeText&&F.push(_.dd(C.publishedTimeText));C.upcomingEventData&&C.upcomingEventData.upcomingEventText&&F.push(_.EI(_.dd(C.upcomingEventData.upcomingEventText),Number(C.upcomingEventData.startTime)));return F};
_.n.observeDataForBylineSeparator=function(){this.data&&_.pd(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.n.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.Hr(this.metadataColor)};
_.n.getSimpleString=function(C){return _.dd(C)};
_.n.isBylineHidden=function(C){return this.noByline||!((C==null?0:C.longBylineText)||(C==null?0:C.shortBylineText))};
_.n.isMetadataHidden=function(C){var F;return((F=this.getMetadata(C))==null?void 0:F.length)===0};
_.n.isBylineMetadataSeparatorHidden=function(C){return this.isMetadataHidden(C)||!this.shouldShowVideoInfo};
_.n.isLongByline=function(C,F){return F&&!(C==null||!C.longBylineText)};
_.I6.Object.defineProperties(lp.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var C;return this.amsterdamPostMvp&&!((C=this.data)==null||!C.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}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.attributedBylineText)}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.y("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
lp.prototype.metadataColorChanged=lp.prototype.metadataColorChanged;lp.prototype.observeDataForBylineSeparator=lp.prototype.observeDataForBylineSeparator;_.R([_.w(_.Rr),_.Y("design:type",Object)],lp.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],lp.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],lp.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],lp.prototype,"noEndpoints",void 0);
_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],lp.prototype,"isSlimShort",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],lp.prototype,"radioMeta",void 0);_.R([_.L({selector:_.ZH}),_.Y("design:type",Object)],lp.prototype,"isGridViewEnabled",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],lp.prototype,"richMeta",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],lp.prototype,"amsterdamPostMvp",void 0);
_.R([_.L(),_.Y("design:type",Boolean)],lp.prototype,"noByline",void 0);_.R([_.L({computed:"isLongByline(data, radioMeta)"}),_.Y("design:type",Boolean)],lp.prototype,"longByline",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],lp.prototype,"truncateMetadataLine",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],lp.prototype,"miniMode",void 0);_.R([_.L(),_.Y("design:type",Number)],lp.prototype,"metadataColor",void 0);
_.R([_.L(),_.Y("design:type",Array)],lp.prototype,"badges",void 0);_.R([_.L({selector:_.O3,selectorArgs:["data.videoId"]}),_.Y("design:type",String)],lp.prototype,"transferState",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],lp.prototype,"isDownloading",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],lp.prototype,"typographyBump",void 0);_.R([_.$z("#metadata-line"),_.Y("design:type",HTMLElement)],lp.prototype,"metadataLine",void 0);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lp.prototype,"observeDataForBylineSeparator",null);_.R([_.iP("metadataColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lp.prototype,"metadataColorChanged",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],lp.prototype,"shouldShowVideoInfo",null);
_.R([_.M("badges"),_.Y("design:type",String),_.Y("design:paramtypes",[])],lp.prototype,"inlineBadgeClass",null);_.R([_.M("longByline"),_.Y("design:type",String),_.Y("design:paramtypes",[])],lp.prototype,"longBylineClass",null);_.R([_.M("data","longByline"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],lp.prototype,"bylineText",null);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],lp.prototype,"hasAttributedBylineText",null);
_.R([_.M("isGridViewEnabled","data"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],lp.prototype,"watchFeedBigThumbs",null);_.R([_.e({is:"ytd-video-meta-block",disableElementRegistration:!0})],lp);
_.q(lp,"ytd-video-meta-block",function(){if(dK7!==void 0)return dK7;var C=document.createElement("template");_.X(C,'\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    <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-meta-block"></div>\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[hasAttributedBylineText]]" 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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return dK7=C},{mode:_.oN("kevlar_poly_si_batch_j080")?1:2});_.ae("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var yE=function(){var C=_.B.apply(this,arguments)||this;C.displayItemCount=2;C.isBackstagePlaylist=!1;C.isPostCompactPlaylist=!1;C.shouldShowChannelThumbnail=!1;return C};
_.O(yE,_.B);_.n=yE.prototype;_.n.computeFirstVideos=function(C,F){return C===void 0||F===void 0?[]:C.slice(0,F)};
_.n.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var C=this.data.thumbnailRenderer;C.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",C.playlistVideoThumbnailRenderer.thumbnail);C.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",C.playlistCustomThumbnailRenderer.thumbnail)}};
_.n.computeThumbnailHeight=function(C,F,G,V,J){return V?J==="BIG"?280:J==="MASSIVE"?337:234:G?240:F?72:C?118:138};
_.n.computeThumbnailWidth=function(C,F,G,V,J){return V?J==="MEDIUM"?450:J==="BIG"?500:J==="MASSIVE"?600:420:G?360:F?128:C?210:246};
_.n.computeUseBiggerThumbs=function(C){return C&&_.y("enable_desktop_search_bigger_thumbs")};
_.n.computeShouldShowChannelThumbnail=function(C,F){return C&&!(F==null||!F.channelThumbnail)};
_.I6.Object.defineProperties(yE.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
yE.prototype.dataChanged=yE.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],yE.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.CR),_.Y("design:type",Object)],yE.prototype,"ytdLockupBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],yE.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],yE.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],yE.prototype,"displayItemCount",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],yE.prototype,"isBackstagePlaylist",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],yE.prototype,"isPostCompactPlaylist",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],yE.prototype,"isSearch",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.Y("design:type",Boolean)],yE.prototype,"useBiggerThumbs",void 0);_.R([_.L({reflectToAttribute:!0,value:function(){return _.kU("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],yE.prototype,"biggerThumbsStyle",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],yE.prototype,"isDownloads",void 0);_.R([_.L({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.Y("design:type",Object)],yE.prototype,"shouldShowChannelThumbnail",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yE.prototype,"dataChanged",null);
_.R([_.M("isSearch"),_.Y("design:type",String),_.Y("design:paramtypes",[])],yE.prototype,"stackThumbnailSize",null);_.R([_.e({is:"ytd-playlist-renderer",disableElementRegistration:!0})],yE);
_.q(yE,"ytd-playlist-renderer",function(){if(HUO===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);HUO=C}C=HUO;return C},{mode:1});var xKu;var sJE;var ZO=function(){var C=_.B.apply(this,arguments)||this;C.startX=0;return C};
_.O(ZO,_.B);ZO.prototype.onEndpointMouseDown=function(C){this.startX=C.clientX};
ZO.prototype.onEndpointClick=function(C){this.startX!==C.clientX&&(C.preventDefault(),C.stopPropagation())};
ZO.prototype.computeObjectFit=function(C){return C==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||C==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||C==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
ZO.prototype.computeCardStyle=function(C){return C?C.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.I6.Object.defineProperties(ZO.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var C,F;return((C=this.data)==null?void 0:(F=C.searchRefinementCardRendererStyle)==null?void 0:F.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ZO.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],ZO.prototype,"data",void 0);_.R([_.L({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.Y("design:type",Number)],ZO.prototype,"objectFit",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.Y("design:type",String)],ZO.prototype,"cardStyle",void 0);
_.R([_.L({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],ZO.prototype,"roundContainer",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ZO.prototype,"isAlbumCard",null);_.R([_.M("data","isAlbumCard"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ZO.prototype,"collectionStack",null);_.R([_.e({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],ZO);
_.q(ZO,"ytd-search-refinement-card-renderer",function(){if(sJE!==void 0)return sJE;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return sJE=C},{mode:1});var qE8;var Ns=function(){var C=_.B.apply(this,arguments)||this;C.isRichGrid=!1;return C};
_.O(Ns,_.B);_.R([_.L(),_.Y("design:type",Object)],Ns.prototype,"data",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Ns.prototype,"componentBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],Ns.prototype,"ytdReduxBehavior",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Ns.prototype,"isRichGrid",void 0);_.R([_.L({reflectToAttribute:!0,selector:_.HY}),_.Y("design:type",Boolean)],Ns.prototype,"miniMode",void 0);
_.R([_.e({is:"ytd-game-details-renderer",disableElementRegistration:!0})],Ns);
_.q(Ns,"ytd-game-details-renderer",function(){if(qE8!==void 0)return qE8;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return qE8=C},{mode:1});var P_O;var gYu;var On=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return C};
_.O(On,_.B);_.n=On.prototype;_.n.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.n.currentStateData=function(C){var F=C||this.data;return F&&F.states&&F.currentStateId!=null?F.states.find(function(G){return G.stateId===F.currentStateId})||null:null};
_.n.currentStateRendererData=function(C){return(C=this.currentStateData(C))&&C.state&&C.state.buttonRenderer?C.state.buttonRenderer:null};
_.n.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())};
_.n.computeButtonIcon=function(C){C=this.currentStateRendererData(C);var F;return(C==null?0:(F=C.icon)==null?0:F.iconType)?C.icon.iconType.toLowerCase():null};
_.n.computeAccessibility=function(C){return(C=this.currentStateRendererData(C))&&C.accessibilityData?C.accessibilityData.accessibilityData||null:null};
_.n.computeButtonClass=function(C){var F=this.currentStateRendererData(C);if(!F)return"";C="";var G=F.style;G&&(C+=G.toLowerCase().replace(/_/g,"-")+" ");(F=F.size)&&(C+=F.toLowerCase().replace(/_/g,"-")+" ");return C.trim()};
_.n.computeServiceEndpoint=function(C){if(!C)return null;var F=C&&C.serviceEndpoint,G=this.get("command.commandMetadata.webCommandMetadata.sendPost",C);return F?F:G&&C.command?C.command:null};
_.n.computeBellMenuItemParams=function(C){var F;C=(F=_.Z(C==null?void 0:C.command,_.Cl))==null?void 0:F.commands;if(!C||C.length===0)return null;F=_.Z(C[0],_.vf);var G,V;return(F==null?0:(G=F.popup)==null?0:(V=G.menuPopupRenderer)==null?0:V.items)?F.popup.menuPopupRenderer.items.map(function(J){return J.menuServiceItemRenderer.trackingParams}):null};
_.n.handleBellMenuOpenSelectedAction=function(C){var F=C.trackingParams,G=this.computeBellMenuItemParams(this.data);this.data&&F&&G&&G.includes(F)&&this.ytRenderButtonBehavior._setButtonIcon(C.icon.iconType.toLowerCase())};
_.n.onYtServiceRequestCompleted=function(C,F){(C=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",F))&&this.set("data",C)};
_.n.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.n.resetState=function(){this.set("data.currentStateId",3)};
_.n.onYtButtonTapHandler=function(){if(this.data){var C=this.currentStateRendererData(this.data);C&&this.ytRendererBehavior.logExplicitClick(C)}};
On.prototype.onYtServiceRequestError=On.prototype.onYtServiceRequestError;On.prototype.onYtServiceRequestCompleted=On.prototype.onYtServiceRequestCompleted;On.prototype.stateChanged=On.prototype.stateChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],On.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],On.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.w(LJ.YtRenderButtonBehavior),_.Y("design:type",Object)],On.prototype,"ytRenderButtonBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],On.prototype,"data",void 0);_.R([_.zp("data","data.currentStateId"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],On.prototype,"stateChanged",null);
_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.en]),_.Y("design:returntype")],On.prototype,"onYtServiceRequestCompleted",null);_.R([_.VG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],On.prototype,"onYtServiceRequestError",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],On);
_.q(On,"ytd-subscription-notification-toggle-button-renderer",function(){if(gYu!==void 0)return gYu;var C=document.createElement("template");_.X(C,"\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");C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return gYu=C},{mode:1});var ReE;var XC=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};C.tapHandler=function(){if(C.data){var F=C.currentStateRendererData();F&&C.ytRendererBehavior.logExplicitClick(F)}};
return C};
_.O(XC,_.B);_.n=XC.prototype;_.n.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.n.currentStateData=function(){var C=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(F){return F.stateId===C.data.currentStateId})||null:null};
_.n.currentStateRendererData=function(){var C=this.currentStateData();return C&&C.state&&C.state.buttonRenderer?C.state.buttonRenderer:null};
_.n.computeAccessibilityLabel=function(){var C,F,G;return(C=this.currentStateRendererData())==null?void 0:(F=C.accessibilityData)==null?void 0:(G=F.accessibilityData)==null?void 0:G.label};
_.n.computeBellMenuItemParams=function(){var C,F,G=(F=_.Z((C=this.data)==null?void 0:C.command,_.Cl))==null?void 0:F.commands;if(!G||G.length===0)return null;C=_.Z(G[0],_.vf);var V,J;return(C==null?0:(V=C.popup)==null?0:(J=V.menuPopupRenderer)==null?0:J.items)?C.popup.menuPopupRenderer.items.map(function(b){return b.menuServiceItemRenderer.trackingParams}):null};
_.n.handleBellMenuOpenSelectedAction=function(C){var F=C.trackingParams,G=this.computeBellMenuItemParams();if(this.data&&F&&G&&G.includes(F)&&(C==null||!C.isDisabled)){var V;((V=_.Z(C.serviceEndpoint,_.FI))==null?void 0:V.signal)!=="CLIENT_SIGNAL"&&(this.icon=C.icon.iconType)}};
_.n.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.n.onYtServiceRequestCompleted=function(C,F){if(C=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",F))this.icon=void 0,this.set("data",C)};
_.n.onYtServiceRequestError=function(){this.icon=void 0};
_.I6.Object.defineProperties(XC.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var C=this.data,F=this.textLabel,G=this.hostElement,V=this.computeAccessibilityLabel(),J=this.tapHandler,b=this.isOverlay?"overlay":"mono",z=(C==null?0:C.disableButton)?"disabled":"active";F=F?_.U9(F):void 0;return{style:b,type:"tonal",state:z,size:"M",focused:!1,formattedButtonText:F,iconPosition:"leading-trailing",onTap:LtB(C,J,G),accessibilityLabel:V}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var C=this.currentStateRendererData(),F,G,V=(G=this.icon)!=null?G:C==null?void 0:(F=C.icon)==null?void 0:F.iconType;if(V)return _.p5(V)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var C,F,G=(C=this.data)==null?void 0:(F=C.secondaryIcon)==null?void 0:F.iconType;if(G)return _.p5(G)}}});
XC.prototype.onYtServiceRequestError=XC.prototype.onYtServiceRequestError;XC.prototype.onYtServiceRequestCompleted=XC.prototype.onYtServiceRequestCompleted;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],XC.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],XC.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],XC.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],XC.prototype,"textLabel",void 0);
_.R([_.L(),_.Y("design:type",String)],XC.prototype,"icon",void 0);_.R([_.L(),_.Y("design:type",Boolean)],XC.prototype,"isOverlay",void 0);_.R([_.M("data.*","textLabel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],XC.prototype,"computedButtonShape",null);_.R([_.M("data.*","icon"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],XC.prototype,"computedIcon",null);_.R([_.M("computedIcon"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],XC.prototype,"computedAnimateIcon",null);
_.R([_.M("data.*"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],XC.prototype,"computedSecondaryIcon",null);_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.en]),_.Y("design:returntype")],XC.prototype,"onYtServiceRequestCompleted",null);_.R([_.VG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],XC.prototype,"onYtServiceRequestError",null);
_.R([_.e({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],XC);
_.q(XC,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(ReE!==void 0)return ReE;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e<yt-button-shape animate-icon="[[computedAnimateIcon]]" data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return ReE=C},{mode:_.oN("kevlar_poly_si_batch_j081")?1:2});var YEr;_.gQ(YKr,"yt-animated-action",{props:{backgroundLottieRef:_.CJ,foregroundLottieRef:_.CJ,wrapperClass:_.CJ,disableAnimation:_.CJ},unsafeExternallySettableAttributes:new Set(["key"])});var w$=function(){var C=_.B.apply(this,arguments)||this;C.animatedActionEnabled=_.y("web_animated_actions");C.foregroundLottieRef={};C.backgroundLottieRef={};C.forceIconOnly=!1;C.showTextWhileAnimating=!1;C.keyboardFocused=!1;C.isAnimating=!1;C.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return C};
_.O(w$,_.B);_.n=w$.prototype;_.n.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.n.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]]"}}}}}};
_.n.attached=function(){this.keyboardFocused=!1};
_.n.onYtServiceRequestSent=function(C,F){(this.get("endpoint.subscribeEndpoint",F)||this.get("endpoint.unsubscribeEndpoint",F))&&this.updateSubscriptionState(!this.subscribed)};
_.n.onYtServiceRequestCompleted=function(C,F){(C=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",F.data))&&this.bellButton&&(this.bellButton.data=C)};
_.n.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.jr(this.hostElement)};
_.n.onPlayerSubscribe=function(C){this.isCompactRed()||C!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.n.onPlayerUnsubscribe=function(C){this.isCompactRed()||C!==this.data.channelId||this.updateSubscriptionState(!1)};
_.n.handleUpdateSubscribeButtonAction=function(C){C=_.Z(C,RSl);var F;C&&C.channelId===((F=this.data)==null?void 0:F.channelId)&&this.updateSubscriptionState(!!C.subscribed)};
_.n.computeButtonStyle=function(C){return this.get("style.styleType",C)||null};
_.n.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.n.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.n.updateSubscriptionState=function(C){if(C!==this.subscribed){this.set("data.subscribed",C);var F,G=(F=this.data)==null?void 0:F.subscribedEntityKey;G&&this.ytdReduxBehavior.dispatch(_.z3("subscriptionStateEntity",G,{key:G,subscribed:C}));this.isCompactRed()||_.oo(this.hostElement,"yt-subscription-changed",C);C||(_.rz(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!C),C&&this.hasBellButton&&this.startAnimation())}};
_.n.startAnimation=function(){var C=this;if(!this.isAnimating){var F=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var G;(G=this.backgroundLottieRef.lottieEl)==null||G.goToAndPlay(0);var V;(V=this.foregroundLottieRef.lottieEl)==null||V.goToAndPlay(0);_.gT.addJob(function(){C.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.gT.addJob(function(){C.updateContainerToFitContent(!!C.subscribed,!0)},2,1500);
_.gT.addJob(function(){C.isAnimating=!1},2,F)}};
_.n.maybeAnimateBellIcon=function(){var C=_.r7(this.hostElement).querySelector("yt-animated-icon");if(C){var F;(F=C.animationRef.lottieEl)==null||F.goToAndPlay(0)}};
_.n.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.n.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.n.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var C;this.unsubscribedWidth=(C=this.subscribeButtonShape)==null?void 0:C.getBoundingClientRect().width}var F;this.subscribedWidth=(F=this.bellButton)==null?void 0:F.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.n.updateContainerToFitContent=function(C,F){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(C?(C=this.subscribedWidth,F=this.isAnimating&&!F,this.subscribedIconOnlyWidth===void 0||F||(C=this.subscribedIconOnlyWidth),this.hostElement.style.width=C+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.n.clearContainerSize=function(){this.hostElement.style.width=""};
_.n.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.n.maybeSetSubscribedButtonIconOnlyWidth=function(){var C=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 F;C.subscribedIconOnlyWidth=(F=C.bellButton)==null?void 0:F.getBoundingClientRect().width;requestAnimationFrame(function(){if(C.bellButton){var G;C.bellButton.textLabel=
(G=C.data)==null?void 0:G.subscribedButtonText}})})))};
_.I6.Object.defineProperties(w$.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 C;return(C=this.data)==null?void 0:C.subscribedButtonText}var F;return this.forceIconOnly?void 0:(F=this.data)==null?void 0:F.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var C,F,G=((C=this.data)==null?void 0:(F=C.timedAnimationData)==null?void 0:F.animationTiming)||[];return{uniqueId:"subscribe",timings:G,enabled:G.length>0&&!this.subscribed,experimentEnabled:G.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var C;return!this.subscribed&&((C=this.data)==null?void 0:C.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 C={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var F=C.renderer;var G=C.element;var V=C.subscribed;var J=C.commandController;var b=C.isOverlay;C=C.stopPropagation;var z=hZI(F,V);b&&(z.style="overlay");b=Object;var Q=b.assign,E;a:switch((E=F.style)==null?void 0:E.styleType){case "COMPACT_GRAY":case "COMPACT_RED":E={size:"S"};break a;default:E={size:"M"}}var t=fP5(F,
V);var k=(k=V?F.subscribedButtonText:F.unsubscribedButtonText)?_.U9(k):void 0;return Q.call(b,{},z,E,{focused:!1,toggled:V,accessibilityLabel:t,formattedButtonText:k,onTap:vhE(F,V,G,J,C)})}}}});
w$.prototype.onMouseDown=w$.prototype.onMouseDown;w$.prototype.onDataChanged=w$.prototype.onDataChanged;w$.prototype.observedSubscribed=w$.prototype.observedSubscribed;w$.prototype.onYtServiceRequestCompleted=w$.prototype.onYtServiceRequestCompleted;w$.prototype.onYtServiceRequestSent=w$.prototype.onYtServiceRequestSent;w$.prototype.maybeUpdateBellButtonText=w$.prototype.maybeUpdateBellButtonText;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],w$.prototype,"ytComponentBehavior",void 0);
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],w$.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],w$.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],w$.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],w$.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],w$.prototype,"data",void 0);
_.R([_.L({selectorArgs:["data.subscribedEntityKey"],selector:mvT}),_.Y("design:type",Object)],w$.prototype,"subscriptionStateEntity",void 0);_.R([_.L({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],w$.prototype,"subscribed",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],w$.prototype,"branded",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],w$.prototype,"animatedActionEnabled",void 0);
_.R([_.L(),_.Y("design:type",Object)],w$.prototype,"foregroundLottieRef",void 0);_.R([_.L(),_.Y("design:type",Object)],w$.prototype,"backgroundLottieRef",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],w$.prototype,"overlayButton",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.Y("design:type",Object)],w$.prototype,"buttonStyle",void 0);_.R([_.L(),_.Y("design:type",Object)],w$.prototype,"forceIconOnly",void 0);
_.R([_.L(),_.Y("design:type",Object)],w$.prototype,"showTextWhileAnimating",void 0);_.R([_.L({value:function(){return!!_.I8().resolve(_.Qt(_.uc))&&_.y("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.Y("design:type",Boolean)],w$.prototype,"useKeyboardFocused",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],w$.prototype,"keyboardFocused",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],w$.prototype,"isAnimating",void 0);_.R([_.M("data.notificationPreferenceButton.*"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],w$.prototype,"hasBellButton",null);
_.R([_.iP("subscribedButtonText"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],w$.prototype,"maybeUpdateBellButtonText",null);_.R([_.M("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],w$.prototype,"subscribedButtonText",null);_.R([_.M("data.timedAnimationData.animationTiming","subscribed"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],w$.prototype,"smartimationSettings",null);
_.R([_.L({reflectToAttribute:!0}),_.M("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],w$.prototype,"subscribeButtonHidden",null);_.R([_.L({reflectToAttribute:!0}),_.M("subscribed","hasBellButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],w$.prototype,"subscribeButtonInvisible",null);
_.R([_.L({reflectToAttribute:!0}),_.M("subscribed"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],w$.prototype,"unsubscribeButtonHidden",null);_.R([_.$z("ytd-subscription-notification-toggle-button-renderer-next"),_.Y("design:type",Object)],w$.prototype,"bellButton",void 0);_.R([_.$z("#subscribe-button-shape"),_.Y("design:type",HTMLElement)],w$.prototype,"subscribeButtonShape",void 0);
_.R([_.M("overlayButton","subscribed","data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],w$.prototype,"buttonShape",null);_.R([_.VG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Sn]),_.Y("design:returntype")],w$.prototype,"onYtServiceRequestSent",null);_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.en]),_.Y("design:returntype")],w$.prototype,"onYtServiceRequestCompleted",null);
_.R([_.iP("subscribed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],w$.prototype,"observedSubscribed",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],w$.prototype,"onDataChanged",null);_.R([_.VG("mousedown"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],w$.prototype,"onMouseDown",null);
_.R([_.e({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],w$);
_.q(w$,"ytd-subscribe-button-renderer",function(){if(YEr!==void 0)return YEr;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return YEr=C},{mode:1});var Ms=function(){var C=_.B.apply(this,arguments)||this;C.isRichGrid=!1;return C};
_.O(Ms,_.B);Ms.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"}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Ms.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Ms.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Ms.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Ms.prototype,"isRichGrid",void 0);_.R([_.e({is:"ytd-game-card-renderer",disableElementRegistration:!0})],Ms);
_.q(Ms,"ytd-game-card-renderer",function(){if(P_O!==void 0)return P_O;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return P_O=C},{mode:1});var SC={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.y("defer_menus")&&!N_E?0:void 0,waitForSignal:"eocs"};var TsP;var oYy;var LE=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return C};
_.O(LE,_.B);_.n=LE.prototype;_.n.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.n.onSeriesReminderStateEntityChange=function(){var C,F,G;((C=this.eventReminderStateEntity)==null?0:C.key)&&((F=this.seriesReminderStateEntity)==null?void 0:F.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((G=this.eventReminderStateEntity)==null?void 0:G.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.z3("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.n.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.n.onYtServiceRequestError=function(){var C;this.updateReminderStateEntitiesFromButtonState((C=this.data)==null?void 0:C.currentState)};
_.n.handleUpdateUpcomingEventReminderButtonStateCommand=function(C){if(C=_.Z(C,gWP)){var F,G=(F=this.data)==null?void 0:F.targetId;G&&C.targetId===G&&_.L5(this.updateReminderStateEntitiesFromButtonState.bind(this,C.state))}};
_.n.getButtonStateFromReminderState=function(){var C;if(((C=this.seriesReminderStateEntity)==null?void 0:C.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var F;if(((F=this.eventReminderStateEntity)==null?void 0:F.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var G,V;if(((G=this.seriesReminderStateEntity)==null?void 0:G.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((V=this.eventReminderStateEntity)==
null?void 0:V.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var J;return(J=this.data)==null?void 0:J.currentState};
_.n.updateReminderStateEntitiesFromButtonState=function(C){if(C){switch(C){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":C="UPCOMING_EVENT_REMINDER_STATE_NONE";var F="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":C="UPCOMING_EVENT_REMINDER_STATE_SINGLE";F="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":C="UPCOMING_EVENT_REMINDER_STATE_NONE";F="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var G;
((G=this.eventReminderStateEntity)==null?0:G.key)&&this.ytdReduxBehavior.dispatch(_.z3("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:C})));var V;((V=this.seriesReminderStateEntity)==null?0:V.key)&&this.ytdReduxBehavior.dispatch(_.z3("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:F})))}};
_.I6.Object.defineProperties(LE.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var C=this.getButtonStateFromReminderState(),F,G;if(C&&((F=this.data)==null?0:(G=F.states)==null?0:G.length))for(F=_.u(this.data.states),G=F.next();!G.done;G=F.next()){G=G.value;var V=void 0;if(((V=_.Z(G,Rvu))==null?void 0:V.state)===C)return _.Z(G,Rvu)}}}});
LE.prototype.onYtServiceRequestError=LE.prototype.onYtServiceRequestError;LE.prototype.onYtServiceRequestCompleted=LE.prototype.onYtServiceRequestCompleted;LE.prototype.onSeriesReminderStateEntityChange=LE.prototype.onSeriesReminderStateEntityChange;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],LE.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],LE.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],LE.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],LE.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],LE.prototype,"data",void 0);_.R([_.L({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:j0Z}),_.Y("design:type",Object)],LE.prototype,"eventReminderStateEntity",void 0);
_.R([_.L({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(C,F){return _.jN(C.entities,"sportsSeriesReminderStateEntity",F)}}),
_.Y("design:type",Object)],LE.prototype,"seriesReminderStateEntity",void 0);_.R([_.M("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],LE.prototype,"currentButtonStateRenderer",null);_.R([_.iP("seriesReminderStateEntity"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],LE.prototype,"onSeriesReminderStateEntityChange",null);
_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],LE.prototype,"onYtServiceRequestCompleted",null);_.R([_.VG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],LE.prototype,"onYtServiceRequestError",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],LE);
_.q(LE,"ytd-upcoming-event-reminder-button-renderer",function(){if(oYy!==void 0)return oYy;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);
return oYy=C},{mode:1});var rjr;var BW=function(){return _.B.apply(this,arguments)||this};
_.O(BW,_.B);BW.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.I6.Object.defineProperties(BW.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(_.y("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],BW.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],BW.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],BW.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],BW.prototype,"shelfDismissal",void 0);_.R([_.M("data.responseText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],BW.prototype,"text",null);
_.R([_.M("data.responseText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],BW.prototype,"textAriaLabel",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],BW);
_.q(BW,"ytd-notification-multi-action-renderer",function(){if(rjr!==void 0)return rjr;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return rjr=C},{mode:1});var Kfy;var vW=function(){return _.B.apply(this,arguments)||this};
_.O(vW,_.B);vW.prototype.ready=function(){var C=this;_.ot(this.hostElement).querySelector("#undo").addEventListener("tap",function(){C.onUndoTap()})};
vW.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.I8().resolve(_.WD).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],vW.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],vW.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],vW);
_.q(vW,"ytd-notification-text-renderer",function(){if(Kfy!==void 0)return Kfy;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Kfy=C},{mode:1});var DKr;var fE=function(){var C=_.B.apply(this,arguments)||this;C.mouseOverDelayJobId=0;C.fadeInImageDelayJobId=0;C.startTimeMs=-1;C.loadingStartTimeMs=-1;C.loadingEndTimeMs=-1;C.hasVideoPreview=!1;return C};
_.O(fE,_.B);_.n=fE.prototype;_.n.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.n.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.n.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.n.showThumbnail=function(){var C=this;this.csn=_.ZQ();_.OZ("fmth");_.gT.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.rQ(_.gT,function(){C.loadingStartTimeMs=(0,_.Et)();var F=_.ot(C.hostElement).querySelector("#thumbnail");F.complete?C.displayMouseOverImage():F.addEventListener("load",_.Gp(C,C.displayMouseOverImage))},150):_.pd(_.ot(this.hostElement).querySelector("#play"),"show",!0)};
_.n.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.n.onTap=function(){this.removeVideoPreview()};
_.n.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var C=this.videoId,F=this.csn,G=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,V=this.startTimeMs,J=this.hasVideoPreview,b=_.zS(this.trackingParams),z={isMovingThumbnail:J};J&&V>0&&(G>0&&(z.movingThumbnailLoadingDurationMs=Math.round(G)),z.durationHoveredMs=Math.round((0,_.Et)()-V));C&&(z.videoId=C);_.dh(F,b,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:z});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.n.removeVideoPreview=function(){_.gT.cancelJob(this.mouseOverDelayJobId);_.gT.cancelJob(this.fadeInImageDelayJobId);var C=_.ot(this.hostElement).querySelector("#thumbnail");_.pd(C,"fade-in",!1);C.removeEventListener("load",_.Gp(this,this.displayMouseOverImage));C=_.ot(this.hostElement).querySelector("#play");_.pd(C,"fade-in",!1);_.pd(C,"show",!1)};
_.n.displayMouseOverImage=function(){var C=_.ot(this.hostElement).querySelector("#thumbnail"),F=_.ot(this.hostElement).querySelector("#play");this.isImageAvailable(C)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.Et)(),this.startTimeMs=(0,_.Et)(),this.fadeInImageDelayJobId=_.rQ(_.gT,function(){_.pd(C,"fade-in",!0)},50)):_.pd(F,"fade-in",!0)};
_.n.computeThumbnail=function(C,F){var G;C&&C.movingThumbnailDetails&&C.movingThumbnailDetails.thumbnails&&F?G=_.RP(C.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):G=F?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(G)return _.Ph(G)};
_.n.isImageAvailable=function(C){return!(!C.src||C.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||C.naturalWidth===120)};
fE.prototype.onTap=fE.prototype.onTap;fE.prototype.dataChanged=fE.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],fE.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],fE.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],fE.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],fE.prototype,"csn",void 0);_.R([_.L(),_.Y("design:type",Object)],fE.prototype,"trackingParams",void 0);
_.R([_.L(),_.Y("design:type",String)],fE.prototype,"videoId",void 0);_.R([_.L(),_.Y("design:type",Boolean)],fE.prototype,"isAttachedAndDataSet",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fE.prototype,"dataChanged",null);_.R([_.VG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fE.prototype,"onTap",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],fE);
_.q(fE,"ytd-moving-thumbnail-renderer",function(){if(DKr!==void 0)return DKr;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return DKr=C},{mode:1});var pTE;_.K3=function(C){this.hostElement=C;this.eventSink=null;this.eventList=[]};
_.K3.prototype.shouldForward=function(){var C,F;return(F=(C=this.eventSink)==null?void 0:C.isConnected)!=null?F:document.body.contains(this.eventSink)};
_.K3.prototype.start=function(C,F){this.eventSink&&this.stop();for(var G=0;G<C.length;G++)this.hostElement.addEventListener(C[G],_.Gp(this,this.forwardEvent));var V;this.eventSink=(V=F.hostElement)!=null?V:F;this.eventList=C};
_.K3.prototype.stop=function(){for(var C=0;C<this.eventList.length;C++)this.hostElement.removeEventListener(this.eventList[C],_.Gp(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.K3.prototype.forwardEvent=function(C,F){this.shouldForward()&&(C.stopPropagation(),this.eventSink instanceof Element?_.oo(this.eventSink,C.type,F):_.Yw(new _.Ay("eventSink is not an element")))};_.h9={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.K3(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(C,F){this.forwarder_.start(C,F)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var cW=function(){return _.B.apply(this,arguments)||this};
_.O(cW,_.B);_.n=cW.prototype;_.n.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=_.TF("HTML_DIR")==="rtl"?"right":"left"};
_.n.dataChanged=function(){this.popupOpen=!1};
_.n.computeAriaLabel=function(C){return _.Z(C,zwy).label};
_.n.onTap=function(C){C.stopPropagation();C.preventDefault();this.data.command&&_.I8().resolve(_.WD).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.n.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.n.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
cW.prototype.onPopupClosed=cW.prototype.onPopupClosed;cW.prototype.onPopupOpened=cW.prototype.onPopupOpened;cW.prototype.onTap=cW.prototype.onTap;cW.prototype.dataChanged=cW.prototype.dataChanged;_.R([_.w(_.h9.YtEventForwardingBehavior),_.Y("design:type",Object)],cW.prototype,"eventForwardingBehavior",void 0);_.R([_.w(_.dg),_.Y("design:type",Object)],cW.prototype,"ironButtonState",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],cW.prototype,"componentBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],cW.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,value:-1}),_.Y("design:type",Number)],cW.prototype,"tabindex",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.Y("design:type",Object)],cW.prototype,"ariaLabel",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],cW.prototype,"disableTooltips",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],cW.prototype,"popupOpen",void 0);
_.R([_.L(),_.Y("design:type",Element)],cW.prototype,"eventSink",void 0);_.R([_.$z("#tooltip"),_.Y("design:type",Object)],cW.prototype,"tooltip",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cW.prototype,"dataChanged",null);_.R([_.VG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],cW.prototype,"onTap",null);
_.R([_.VG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cW.prototype,"onPopupOpened",null);_.R([_.VG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cW.prototype,"onPopupClosed",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],cW);
_.q(cW,"ytd-thumbnail-overlay-button-renderer",function(){if(pTE!==void 0)return pTE;var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return pTE=C},{mode:1});var mKy;var A9=function(){return _.B.apply(this,arguments)||this};
_.O(A9,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],A9.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],A9.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],A9.prototype,"disableAnimation",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],A9.prototype,"rounded",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],A9.prototype,"transparentBackground",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],A9.prototype,"noPadding",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],A9);
_.q(A9,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(mKy!==void 0)return mKy;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return mKy=C},{mode:1});var C4m;var eC=function(){return _.B.apply(this,arguments)||this};
_.O(eC,_.B);eC.prototype.computeIconPosition=function(C){return this.get("iconPosition",C)||null};
eC.prototype.computeIconStyle=function(C){return this.get("iconStyle",C)||null};
eC.prototype.computeIsIconStyleFilled=function(C){if(!C)return!1;var F;return C.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((F=C.icon)==null?void 0:F.iconType)==="ERROR_BLACK"};
_.R([_.L(),_.Y("design:type",Object)],eC.prototype,"data",void 0);_.R([_.L({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],eC.prototype,"iconPosition",void 0);_.R([_.L({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],eC.prototype,"iconStyle",void 0);_.R([_.L({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],eC.prototype,"iconStyleFilled",void 0);
_.R([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],eC);
_.q(eC,"ytd-thumbnail-overlay-icon-renderer",function(){if(C4m!==void 0)return C4m;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return C4m=C},{mode:1});var j$8;var d$=function(){return _.B.apply(this,arguments)||this};
_.O(d$,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],d$.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],d$.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],d$);
_.q(d$,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(j$8!==void 0)return j$8;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return j$8=C},{mode:1});var FTP;var x9=function(){var C=_.B.apply(this,arguments)||this;C.isPreviewLoading=!1;return C};
_.O(x9,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],x9.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],x9.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],x9.prototype,"isPreviewLoading",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],x9);
_.q(x9,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(FTP!==void 0)return FTP;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return FTP=C},{mode:1});var GMP;var sn=function(){return _.B.apply(this,arguments)||this};
_.O(sn,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],sn.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],sn.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],sn);
_.q(sn,"ytd-thumbnail-overlay-pinking-renderer",function(){if(GMP!==void 0)return GMP;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return GMP=C},{mode:1});var VY8;var qs=function(){var C=_.B.apply(this,arguments)||this;C.disableTooltips=!1;C.isLoading=!1;C.useExpandableTooltip=!1;C.toggled=!1;C.hovered=!1;C.mouseoverDelayJobId=0;C.toggleDelayJobId=0;C.expandAnimationDelayJobId=0;return C};
_.O(qs,_.B);_.n=qs.prototype;_.n.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");_.ot(this.hostElement).querySelector("#tooltip").position=_.TF("HTML_DIR")==="rtl"?"right":"left"};
_.n.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.gT.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.gT.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.gT.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.n.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.gT.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.gT.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.gT.cancelJob(this.expandAnimationDelayJobId)};
_.n.computeIcon=function(C,F,G){return(C=G?F:C)&&C.iconType?_.p5(C.iconType):void 0};
_.n.computeAriaLabel=function(C,F,G){return _.Z(G?F:C,zwy).label};
_.n.computeTooltip=function(C,F,G){return G?F:C};
_.n.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.n.computeIconOnHover=function(C,F){if((C==null?0:C.iconType)&&!F)return _.p5(C.iconType)};
_.n.onTap=function(C){var F=this;C.stopPropagation();C.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(C=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(C),this.useExpandableTooltip&&(this.toggleDelayJobId=_.rQ(_.gT,function(){F.hovered=!1;F.data&&!F.data.toggledServiceEndpoint&&(F.expandAnimationDelayJobId=_.rQ(_.gT,function(){F.set("data.isToggled",
!1)},200))},2E3))};
_.n.onMouseenter=function(){var C=this;this.mouseoverDelayJobId=_.rQ(_.gT,function(){C.hovered=!0},300)};
_.n.onMouseleave=function(){_.gT.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.n.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.n.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.n.onServiceRequestCompleted=function(C,F){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(F)||this.set("data.isToggled",!this.data.isToggled)};
_.n.serviceRequestWasSuccessful=function(C){return _.Z(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.TL)?C.data.status==="STATUS_SUCCEEDED":!0};
qs.prototype.onServiceRequestCompleted=qs.prototype.onServiceRequestCompleted;qs.prototype.onPopupClosed=qs.prototype.onPopupClosed;qs.prototype.onPopupOpened=qs.prototype.onPopupOpened;qs.prototype.onMouseleave=qs.prototype.onMouseleave;qs.prototype.dataChanged=qs.prototype.dataChanged;_.R([_.w(_.dg),_.Y("design:type",Object)],qs.prototype,"ironButtonState",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],qs.prototype,"ytComponentBehavior",void 0);
_.R([_.w(_.h9.YtEventForwardingBehavior),_.Y("design:type",Object)],qs.prototype,"ytEventForwardingBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],qs.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.Y("design:type",Object)],qs.prototype,"ariaLabel",void 0);_.R([_.L(),_.Y("design:type",Object)],qs.prototype,"disableTooltips",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],qs.prototype,"popupOpen",void 0);_.R([_.L(),_.Y("design:type",Object)],qs.prototype,"isLoading",void 0);_.R([_.L(),_.Y("design:type",Element)],qs.prototype,"eventSink",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],qs.prototype,"useExpandableTooltip",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.Y("design:type",Object)],qs.prototype,"toggled",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],qs.prototype,"hovered",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.Y("design:type",Object)],qs.prototype,"iconOnHover",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qs.prototype,"dataChanged",null);
_.R([_.VG("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qs.prototype,"onMouseleave",null);_.R([_.VG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qs.prototype,"onPopupOpened",null);_.R([_.VG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qs.prototype,"onPopupClosed",null);
_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.en]),_.Y("design:returntype")],qs.prototype,"onServiceRequestCompleted",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],qs);
_.q(qs,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(VY8!==void 0)return VY8;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return VY8=C},{mode:_.oN("kevlar_poly_si_batch_j053")?1:2});var ioy;var JFu=_.d(function(C){var F=C.data;var G=C.thumbnailSize;var V=function(){return F().enableSegmentView};
return _.W("yt-thumbnail-overlay-progress-bar-view-model",{class:_.py("ytThumbnailOverlayProgressBarHost",function(){return cXw(G==null?void 0:G())})},_.W(_.a,{cond:V,
then:function(){return _.W("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.W("div",{class:_.tm("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+F().startPercent+"%"}}),_.W("div",{class:_.tm("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+F().segmentDurationPercent+"%"}},_.W("div",{class:_.tm("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.W("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.W("div",null," ",function(){return F().segmentLabel})),_.W("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.W("div",{class:_.tm("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.W(_.a,{cond:function(){return!V()&&F().startPercent},
then:function(){var J={};return _.W("div",{class:_.tm("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(J.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.y("web_enable_modern_progress_bar_overlay"),J))},_.W("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+F().startPercent+"%"}}))}}))},"Ea");
JFu.idomCompat=!0;var $ty=_.d(function(C){var F=_.FN(),G=_.nZ(function(J){var b,z,Q;a:{var E=(b=C.data())==null?void 0:b.animationActivationTargetId;b=((z=C.data())==null?void 0:z.animationActivationEntityKey)||"";z=(Q=C.data())==null?void 0:Q.animationActivationEntitySelectorType;if(b&&E)switch(z){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":J=_.mr(J,b);Q=_.I8().resolve(_.Qt(_.Od));E=!!(J&&J.videoId===E&&(Q==null?0:Q.isMiniplayerActive()));E={activated:E,playAnimation:E&&J.playerState==="PLAYER_STATE_PLAYING"};
break a}E=void 0}return E});
_.sq(function(){var J;if((J=G())==null?0:J.activated){var b;if((b=G())==null?0:b.playAnimation){var z;(z=F.lottieEl)==null||z.goToAndPlay(0)}else{var Q;(Q=F.lottieEl)==null||Q.goToAndStop(0)}}},"DbQiXd");
var V=function(){var J,b=!((J=G())==null||!J.activated);if(C.data()){J=C.data();var z=void 0;J.icon&&(z=_.V2Z(J.icon),z=zoq(z));var Q=void 0,E;if((E=J.backgroundColor)==null?0:E.lightTheme){var t;Q={backgroundColor:yk((t=J.backgroundColor)==null?void 0:t.lightTheme,"0.8")}}if(J.text||z||b){if(b&&J.lottieData&&F){t=J.lottieData;var k,U,H;E={animationConfig:{name:t.url,path:t.url,autoplay:(k=t.settings)==null?void 0:k.autoplay,loop:(H=(U=t.settings)==null?void 0:U.loop)!=null?H:!0},animationRef:F}}else E=
void 0;if(b)k=17;else b:switch(J.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":k=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":k=19;break b;default:k=17}b={type:k,text:b&&J.animatedText?J.animatedText:J.text,icon:z,customColors:Q,animation:E}}else b=void 0}else b=void 0;return b};
return _.W("yt-thumbnail-badge-view-model",{class:_.py("ytThumbnailBadgeViewModelHost",C.class)},_.W(_.a,{cond:V,then:function(){return _.W(_.KR,{data:function(){return V()}})}}))},"Ga");var boE=_.d(function(C){var F={},G={};return _.W("yt-thumbnail-bottom-overlay-view-model",{class:_.py("ytThumbnailBottomOverlayViewModelHost",(F.ytThumbnailBottomOverlayViewModelHostBackground=function(){return C.data().enableGradientBackground},F))},_.W(_.uC,{data:function(){return C.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(V){return _.W(JFu,{data:V.data,
thumbnailSize:C.thumbnailSize})}}),_.W("div",{class:_.py("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var V;
return AXZ((V=C.thumbnailSize)==null?void 0:V.call(C))},(G.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var V;
return(V=C.isClip)==null?void 0:V.call(C)},G.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var V;
return!_.y("web_enable_modern_progress_bar_overlay")&&((V=C.thumbnailSize)==null?void 0:V.call(C))==="small"},G))},_.W(_.uC,{data:function(){return C.data().badge}},{thumbnailBadgeViewModel:function(V){return _.W($ty,{data:V.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.W(_.uC,{data:function(){return C.data().badges}},{thumbnailBadgeViewModel:function(V){return _.W($ty,{data:V.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Ha");
boE.idomCompat=!0;_.gQ(boE,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.s9,thumbnailSize:_.s9,isClip:_.s9}});var TX5={calledOnce:!1,state:"visible"},ohE={calledOnce:!1,state:"hidden"};var PW=_.d(function(C){var F=C.data;var G=C.className;C=C.alwaysShow;var V=_.xcE(),J={};return _.W("thumbnail-hover-overlay-view-model",{el:_.dQ(_.lC(function(){return F().rendererContext})),
class:_.py("ytThumbnailHoverOverlayViewModelHost",G,(J.ytThumbnailHoverOverlayViewModelHostForceHover=C,J)),"aria-label":function(){var b;return(b=_.Z(F().rendererContext,_.$Z))==null?void 0:b.label},
role:function(){return _.UI(F().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.UI(F().rendererContext)!==void 0?0:void 0},
"on:keypress":V},_.W("div",{class:_.py("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(F().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var b="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:b="ytThumbnailHoverOverlayViewModelStyleCover"}return b})},_.W(_.a,{cond:function(){return F().icon},
then:function(b){return _.W(_.AC,{data:b,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.W(_.a,{cond:function(){return F().text},
then:function(b){return _.W(_.mn,{text:b,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ja");
PW.idomCompat=!0;var nIG=_.d(function(C){var F=C.data;return _.W(_.uC,{data:function(){return F==null?void 0:F().overlays}},{thumbnailHoverOverlayViewModel:PW})},"Ka");
nIG.idomCompat=!0;var uyo={};var zYO=_.d(function(C){var F=C.data;var G=C.image;var V=C.state;var J=C.iconType;var b=C.overlays;var z=C.isOverlay;var Q=_.nc("div");C=_.u(_.yH(!0,void 0,"AA4e7b"));var E=C.next().value,t=C.next().value,k=function(){return!!F().onTap},U=_.dk(J,"LIVE");
_.sq(function(){var l=F();requestAnimationFrame(function(){if(Q.value===null)var N=!0;else{var S=Q.value;N=l.badgeText;var f=DcA(l.size);N in uyo?S=uyo[N]:(S=S.clientWidth,uyo[N]=S);(N=S>f)?Q.value.style.display="none":Q.value.style.visibility="visible"}t(N)})},"vNdN8b");
var H=function(){var l={};return l["yt-spec-avatar-shape__image"]=!0,l["yt-spec-avatar-shape__image--ads-app"]=F().type===1,l["yt-spec-avatar-shape__image--inscribed-square"]=F().type===2,l};
return _.W("yt-avatar-shape",null,_.W("div",{el:_.dQ(mcI(k,{keydown:function(l){if(l.key==="Enter"){var N;(N=l.currentTarget)==null||N.click()}},
click:function(l){var N,S;return void((S=(N=F()).onTap)==null?void 0:S.call(N,l))}})),
class:function(){var l={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},N=F();l=(l[N.clusterLayoutConfig?Ffw(N.clusterLayoutConfig):Gy9(N.size)]=!0,l["yt-spec-avatar-shape__button--tappable"]=k(),l);(N=F().avatarButtonCustomClassName)&&(l[N]=!0);return _.tm(l)},
"aria-label":function(){return k()?F().accessibilityText:""},
role:function(){return k()?"button":void 0},
tabindex:function(){return k()?0:void 0}},_.W("div",{class:function(){var l,N=F(),S=V==null?void 0:V(),f=z==null?void 0:z(),c=!((l=N.decorations)==null||!l.includes(2)||N.size!=="medium"&&N.size!=="large"),A=N.size==="tiny"||N.size==="extra-small",T,P,g,r,C9={};
l=(C9["yt-spec-avatar-shape--live-ring"]=!!(((T=N.decorations)==null?0:T.includes(0))&&iU9(N.size)),C9["yt-spec-avatar-shape--stories-watched"]=c&&!(S==null||!S.storiesWatched),C9["yt-spec-avatar-shape--stories-unwatched"]=c&&!(S==null?0:S.storiesWatched),C9["yt-spec-avatar-shape--background-border"]=Jji(N.decorations)&&!A,C9["yt-spec-avatar-shape--background-border-thin"]=Jji(N.decorations)&&A,C9["yt-spec-avatar-shape__on-select-border"]=!((P=N.decorations)==null||!P.includes(4)),C9["yt-spec-avatar-shape__white-border"]=
!((g=N.decorations)==null||!g.includes(5)),C9["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((r=N.decorations)==null?0:r.includes(5))&&A),C9["yt-spec-avatar-shape--is-overlay"]=!!f,C9);return _.tm(l)},
style:function(){a:{var l=F().clusterLayoutConfig;if(l){b:{var N=l.numAvatarsInCluster;var S=l.avatarIndex;if(S!==N-1){switch(l.clusterSize){case "small":l="32";break;case "medium":l="36";break;case "40":l="40";break;default:N=void 0;break b}N="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+l+"x"+l+"_avatars_"+N+"_index_"+S+".svg"}else N=void 0}if(N){N=_.VA({"-webkit-mask-image":"url("+N+")","mask-image":"url("+N+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}N=void 0}return N}},_.W("div",{class:function(){var l={};
var N=F();l=(l[N.clusterLayoutConfig?C_A(N.clusterLayoutConfig):jJo(N.size)]=!0,l["yt-spec-avatar-shape--no-margin"]=Jji(F().decorations),l["yt-spec-avatar-shape--square"]=F().type===2,l);return _.tm(l)}},_.W(_.AC,{data:G,
alt:function(){return!k()&&F().accessibilityText?F().accessibilityText:""},
targetWidth:function(){return Vw5(F().size)},
targetHeight:function(){return Vw5(F().size)},
className:function(){return _.tm(H())}}),_.W(_.a,{cond:function(){var l;
return((l=F().decorations)==null?void 0:l.includes(0))&&iU9(F().size)},
then:function(){return _.W("div",{class:function(){var l={};l=(l["yt-spec-avatar-shape__live-badge"]=!0,l["yt-spec-avatar-shape__live-badge--badge-small"]=F().size==="small",l["yt-spec-avatar-shape__live-badge--badge-medium"]=F().size==="medium"||F().size==="48",l["yt-spec-avatar-shape__live-badge--badge-large"]=F().size==="large",l["yt-spec-avatar-shape__live-badge--badge-extra-large"]=F().size==="extra-large"||F().size==="extra-extra-large"||F().size==="giant",l);return _.tm(l)}},_.W(_.a,{cond:function(){return F().badgeText},
then:function(l){return _.W("div",{class:"yt-spec-avatar-shape__badge-text",el:Q},l)}}),_.W(_.a,{cond:E,
then:function(){return _.W("div",{class:"yt-spec-avatar-shape__badge-icon"},_.W(_.i5,{icon:U,size:function(){a:switch(F().size){case "extra-large":var l=16;break a;default:l=13}return l}}))}}))}}),_.W(_.a,{cond:function(){var l,N;
return((l=F().decorations)==null?void 0:l.includes(1))||((N=F().decorations)==null?void 0:N.includes(0))&&!iU9(F().size)},
then:function(){return _.W("div",{class:function(){var l=F(),N,S,f={};var c=(f["yt-spec-avatar-shape__live-dot"]=!((N=l.decorations)==null||!N.includes(0)||iU9(l.size)),f["yt-spec-avatar-shape__new-content"]=!((S=l.decorations)==null||!S.includes(1)),f);return _.tm(c)}})}}),_.W(_.a,{cond:function(){return!!b},
then:function(){return _.W("div",{class:function(){var l={};l=Object.assign((l["yt-spec-avatar-shape__image-overlays"]=!0,l),H());return _.tm(l)}},b==null?void 0:b())}})))))},"Na");
zYO.idomCompat={callbacks:{overlays:!0}};_.g$=_.d(function(C){function F(){G().endpoint&&_.wQ(G().endpoint)}
var G=C.data;var V=C.decorations;var J=C.avatarButtonCustomClassName;var b=C.isOverlay;var z=C.clusterLayoutConfig;return _.W("avatar-view-model",null,_.W(_.a,{cond:function(){return G().image},
then:function(Q){return _.W(zYO,{data:function(){return bUq({data:G(),onTap:G().endpoint?F:void 0,decorations:V==null?void 0:V(),badgeText:void 0,accessibilityText:G().accessibilityText,avatarButtonCustomClassName:J==null?void 0:J(),clusterLayoutConfig:z==null?void 0:z()})},
image:Q,iconType:"RADAR_LIVE",overlays:function(){return _.W(nIG,{data:G})},
isOverlay:b})}}))},"Oa");
_.g$.idomCompat=!0;_.R7=_.d(function(C){var F=C.data;C=C.className;var G=_.nc("yt-decorated-avatar-view-model"),V=function(){return _.Z(F().avatar,_.yJ)},J=_.w0(function(){var b,z=F(),Q=V(),E=_.UI(F().rendererContext),t=(b=G.value)!=null?b:void 0,k;
if(Q){t={data:z,avatar:Q,onTap:E,element:t};b=t.data;z=t.avatar;Q=t.onTap;E=t.element;t=t.commandController;Q=Q?QJB(Q,E,t):void 0;E=[];b.liveData&&E.push(0);var U;t=(U=b.liveData)==null?void 0:U.liveBadgeText;U=(k=_.Z(b.rendererContext,_.$Z))==null?void 0:k.label;k=bUq({data:z,onTap:Q,decorations:E,badgeText:t,accessibilityText:U?U:b.a11yLabel})}else k={size:"medium"};return k},void 0,"c00kWd");
return _.W("yt-decorated-avatar-view-model",{class:_.py("ytDecoratedAvatarViewModelHost",C),el:G},_.W(_.a,{cond:function(){var b;return(b=V())==null?void 0:b.image},
then:function(b){return _.W(zYO,{data:J,image:b,iconType:"RADAR_LIVE",overlays:function(){return _.W(nIG,{data:V})}})}}))},"Pa");
_.R7.idomCompat=!0;_.Y9=_.d(function(C){var F=function(){var Q;return Object.assign({},C.data(),(Q=C.overrides)==null?void 0:Q.call(C))},G=function(){return _.Hl(F().rendererContext)},V=function(){var Q=F().avatars,E,t;
return(t=(E=(Q==null?0:Q[0])?_.Z(Q[0],_.yJ):void 0)==null?void 0:E.avatarImageSize)!=null?t:"AVATAR_SIZE_UNKNOWN"},J=function(){return zeZ(F())},b=function(){if(F().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var Q=void 0;
else if((Q=C.decorations)==null?0:Q.call(C))Q=C.decorations();else{Q=F();var E=0;Q.avatars&&(E+=Q.avatars.length);Q.decoratedText&&(E+=1);Q=E>1?[3]:[]}return Q},z={};
return _.W("yt-avatar-stack-view-model",{el:_.dQ(_.lC(function(){return F().rendererContext})),
class:_.py("yt-avatar-stack-view-model",C.className,(z["yt-avatar-stack-view-model--tappable"]=G,z["yt-avatar-stack-view-model--is-overlay"]=C.isOverlay,z["yt-avatar-stack-view-model--medium-text"]=C.useMediumText,z)),tabindex:function(){return G()?0:void 0},
role:function(){return G()?"link":void 0},
"aria-label":function(){var Q,E;return(E=(Q=_.Z(F().rendererContext,_.$Z))==null?void 0:Q.label)!=null?E:""}},_.W(_.a,{cond:function(){var Q;
return F().avatars&&!((Q=C.hideAvatar)==null?0:Q.call(C))},
then:function(){return _.W("div",{class:"yt-avatar-stack-view-model__avatars"},_.W(_.a,{cond:function(){return F().decoratedText},
then:function(Q){var E={};return _.W("div",{class:_.py("yt-avatar-stack-view-model__text-container",(E["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return V()==="AVATAR_SIZE_XXS"||V()==="AVATAR_SIZE_XS"},E["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var t;
return((t=C.isOverlay)==null?void 0:t.call(C))&&(V()==="AVATAR_SIZE_XXS"||V()==="AVATAR_SIZE_XS")},E)),
style:_.VA({width:function(){return J().avatarSizeInPx+"px"},
height:function(){return J().avatarSizeInPx+"px"}})},_.W(_.mn,{text:Q,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.W("div",{style:function(){return _.VA(J().avatarStackStyle)()},
class:function(){return J().avatarStackClass}},_.W(_.uC,{data:function(){return J().avatars.reverse()}},{avatarViewModel:function(Q,E){return _.W("div",{style:function(){var t,k;
return _.VA((k=(t=J()).avatarStyle)==null?void 0:k.call(t,E()))()},
class:function(){return J().avatarClass}},_.W(_.g$,{data:Q.data,
decorations:b,avatarButtonCustomClassName:function(){return J().avatarButtonCustomClassName},
isOverlay:C.isOverlay,clusterLayoutConfig:function(){var t,k;return(k=(t=J()).clusterLayoutConfig)==null?void 0:k.call(t,E())}}))},
decoratedAvatarViewModel:function(Q,E){return _.W("div",{style:function(){var t,k;return _.VA((k=(t=J()).avatarStyle)==null?void 0:k.call(t,E()))()},
class:function(){return J().avatarClass}},_.W(_.R7,{data:Q.data}))}})))}}),_.W(_.a,{cond:function(){return F().text},
then:function(Q){return _.W(_.mn,{text:Q,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Qa");
_.Y9.idomCompat=!0;_.gQ(_.d(function(C){var F=C.data;var G=C.thumbnailSize;return _.W("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.W("div",{class:_.py("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return IKi(G==null?void 0:G())})},_.W(_.uC,{data:function(){return F().avatarStack}},{avatarStackViewModel:function(V){return _.W(_.Y9,{data:V.data,
decorations:[5]})}})))},"Ra"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.CJ,
thumbnailSize:_.CJ}});var Q$S=_.d(function(C){C=_.xz(C,{hidden:!1});var F=C.data;C=C.hidden;return _.W("yt-thumbnail-overlay-title-view-model",{class:_.py("ytThumbnailOverlayTitleViewModelHost",function(){a:switch(F().position){case "THUMBNAIL_OVERLAY_TITLE_POSITION_BOTTOM":var G="ytThumbnailOverlayTitleViewModelPositionBottom";break a;default:G="ytThumbnailOverlayTitleViewModelPositionTop"}return G}),
hidden:C},_.W(_.a,{cond:function(){return F().leadingContent},
then:function(G){return _.W("div",{class:"ytThumbnailOverlayTitleViewModelLeadingContent"},_.W(_.uC,{data:G},{decoratedAvatarViewModel:_.R7}))}}),_.W("div",null,_.W(_.mn,{text:function(){return F().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.W(_.a,{cond:function(){return F().subtitle},
then:function(){return _.W(_.mn,{text:function(){return F().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}})))},"Sa");
Q$S.idomCompat=!0;_.gQ(Q$S,"yt-thumbnail-overlay-title-view-model",{props:{data:_.CJ,hidden:_.CJ}});_.Iqr=_.d(function(C){C=_.xz(C,{isClip:!1});var F=C.data,G=C.thumbnailSize,V={};return _.W("yt-thumbnail-overlay-badge-view-model",{class:_.py("yt-thumbnail-overlay-badge-view-model",function(){a:switch(F().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var J="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:J="yt-thumbnail-overlay-badge-view-model--bottom-end"}return J},function(){return EYA(G==null?void 0:G())},(V["yt-thumbnail-overlay-badge-view-model--clip"]=C.isClip,
V))},_.W(_.uC,{data:function(){return F().thumbnailBadges}},{thumbnailBadgeViewModel:function(J){return _.W($ty,{data:J.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Ta");
_.Iqr.idomCompat=!0;_.gQ(_.Iqr,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.CJ,thumbnailSize:_.CJ,isClip:_.CJ}});var EIm=_.d(function(C){var F=C.data;C=C.hidden;var G=_.w0(function(){return F().indicatorCount||0},void 0,"AbKnMc"),V={};
return _.W("yt-page-indicator-view-model",{class:_.py("ytPageIndicatorViewModelHost",(V.ytPageIndicatorViewModelIndicatorHidden=function(){return!F().indicatorCount},V)),
hidden:C},_.W(_.Ag,{each:function(){return Array(G())}},function(J,b){var z={};
return _.W("div",{class:_.py("ytPageIndicatorViewModelIndicator",(z.ytPageIndicatorViewModelIndicatorSelected=function(){return F().selectedIndex===b()},z))})}))},"Ua");
EIm.idomCompat=!0;_.gQ(EIm,"yt-page-indicator-view-model",{props:{data:_.CJ,hidden:_.CJ}});var Tv=function(){var C=_.B.apply(this,arguments)||this;C.eventSink=function(){return C};
C.disableInteraction=!1;C.noRoundedCorners=!1;C.isPreviewLoading=!1;C.isOriginalAspectRatio=!1;C.computedObjectFit=!1;C.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return C};
_.O(Tv,_.B);_.n=Tv.prototype;
_.n.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:_.y("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"}}};
_.n.onImageLoaded=function(){this.loaded=!0};
_.n.onImageUnloaded=function(){this.loaded=!1};
_.n.computeRichThumbnail=function(C,F,G,V){if(C&&F&&!V&&!_.y("disable_moving_thumbs_handling")&&!G)return F};
_.n.computeImageWidth=function(C,F){return F||9999};
_.n.computeIsOriginalAspectRatio=function(C){return C};
_.n.computeIsLive=function(C){if(C==null?0:C.badges)for(var F=0;F<C.badges.length;F++){var G=C.badges[F];if(G.metadataBadgeRenderer&&G.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(C==null?0:C.thumbnailOverlays)for(F=0;F<C.thumbnailOverlays.length;F++)if(G=C.thumbnailOverlays[F],G.thumbnailOverlayTimeStatusRenderer&&G.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.n.computeObjectFit=function(C,F){return F||(C?"CONTAIN":"")};
_.n.computeNavigationEndpoint=function(C,F,G){return C?F:G};
_.n.computeHasClip=function(C){C=_.u(C||[]);for(var F=C.next();!F.done;F=C.next())if(F.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.n.computeOverlayColor=function(C){var F;return(C==null?0:(F=C.darkColorPalette)==null?0:F.section2Color)?C.darkColorPalette.section2Color:C==null?void 0:C.sampledThumbnailColor};
_.I6.Object.defineProperties(Tv.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return efs(this.width)}}});
Tv.prototype.onImageUnloaded=Tv.prototype.onImageUnloaded;Tv.prototype.onImageLoaded=Tv.prototype.onImageLoaded;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],Tv.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Tv.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(Yyo),_.Y("design:type",Object)],Tv.prototype,"ytdThumbnailBehavior",void 0);
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Tv.prototype,"componentBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],Tv.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Tv.prototype,"data",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],Tv.prototype,"circular",void 0);
_.R([_.L({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.Y("design:type",Object)],Tv.prototype,"richThumbnail",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.Y("design:type",Boolean)],Tv.prototype,"hasClip",void 0);_.R([_.L(),_.Y("design:type",Object)],Tv.prototype,"eventSink",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Tv.prototype,"queued",void 0);
_.R([_.L({value:!1}),_.Y("design:type",Boolean)],Tv.prototype,"richGridThumbnail",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],Tv.prototype,"useExpandableTooltip",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],Tv.prototype,"useUntranslatedNavigationEndpoint",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Tv.prototype,"disableInteraction",void 0);
_.R([_.L({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.Y("design:type",Object)],Tv.prototype,"computedNavigationEndpoint",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Tv.prototype,"nowPlayingEqualizerOnly",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Tv.prototype,"hidePlaybackStatus",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],Tv.prototype,"objectFit",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Tv.prototype,"noRoundedCorners",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],Tv.prototype,"watchFeedThumbnail",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Tv.prototype,"isPreviewLoading",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.Y("design:type",Object)],Tv.prototype,"isOriginalAspectRatio",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.Y("design:type",Object)],Tv.prototype,"computedObjectFit",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.Y("design:type",Boolean)],Tv.prototype,"isLiveVideo",void 0);
_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Tv.prototype,"loaded",void 0);_.R([_.L({computed:"computeOverlayColor(data.thumbnail)"}),_.Y("design:type",Object)],Tv.prototype,"overlayColor",void 0);_.R([_.L({selector:_.f7Z}),_.Y("design:type",Boolean)],Tv.prototype,"inlinePreviewIsEnabled",void 0);_.R([_.L(),_.Y("design:type",Number)],Tv.prototype,"width",void 0);
_.R([_.M("inlinePreviewIsEnabled"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Tv.prototype,"isPreviewDisabled",null);_.R([_.M("width"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Tv.prototype,"thumbnailSize",null);_.R([_.VG("image-loaded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Tv.prototype,"onImageLoaded",null);
_.R([_.VG("image-unloaded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Tv.prototype,"onImageUnloaded",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-thumbnail"})],Tv);
var WTE=_.Tp()(Tv,"ytd-thumbnail",function(){if(ioy===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);ioy=C}C=ioy;return C},{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 aKq=function(C){var F=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$15031_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$15031_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(G){tYO(F,G)};
this.onLockupMouseLeaveFn=function(G){G=G.relatedTarget;var V,J;((V=document.getElementsByTagName("ytd-video-preview"))==null?0:(J=V.item(0))==null?0:J.contains(G))||(F.terminateVideoPreview(),o7(F))};
this.onThumbnailMouseDownFn=function(){F.terminateVideoPreview();o7(F)};
this.onTouchStart=function(){F.JSC$15031_touched=!0};
this.mediaRenderer=C.mediaRenderer;this.thumbnailElement=C.thumbnailElement;this.lockupElement=C.lockupElement;this.videoPreviewOptsInput=C.videoPreviewOpts;aqS(this);r$(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)):
_.Yw(Error("Fh")):_.Yw(Error("Gh")):kMy(this)},Ak=function(C){kMy(C);
var F;(F=C.lockupElement)==null||F.removeEventListener("mouseenter",C.onMouseMoveFn);var G;(G=C.lockupElement)==null||G.removeEventListener("mouseleave",C.onLockupMouseLeaveFn);var V;(V=C.lockupElement)==null||V.removeEventListener("touchstart",C.onTouchStart);var J;(J=C.thumbnailElement)==null||J.removeEventListener("mousedown",C.onThumbnailMouseDownFn);o7(C)},aqS=function(C){C.inlinePreviewIsEnabledForUser=_.s3().getState().ui.inlinePreviewIsEnabled;
C.unsubscribeFromInlinePreviewIsEnabled=_.hK(_.s3(),_.f7Z,function(F){(C.inlinePreviewIsEnabledForUser=F)||o7(C)});
C.JSC$15031_unsubscribeFromInlinePreviewIsActive=_.hK(_.s3(),_.vai,function(F){(C.inlinePreviewIsActive=F)||o7(C)})},kMy=function(C){C.unsubscribeFromInlinePreviewIsEnabled();
C.unsubscribeFromInlinePreviewIsEnabled=function(){};
C.JSC$15031_unsubscribeFromInlinePreviewIsActive();C.JSC$15031_unsubscribeFromInlinePreviewIsActive=function(){}},tYO=function(C,F){F.buttons>0||(F=_.a8("kevlar_lockup_hover_delay",-1),C.JSC$15031_touched&&F>=0?(_.gT.cancelJob(C.videoPreviewJobId),C.videoPreviewJobId=_.rQ(_.gT,function(){Uty(C)},F),C.JSC$15031_touched=!1):Uty(C))},b0Z=function(C){C.videoPreviewJobId=_.rQ(_.gT,function(){return _.I(function(F){return F.yield(Ho$(C,{isAutoplay:!0}),0)})})},Uty=function(C){!C.previewTriggered&&r$(C)&&
(C.inlinePreviewIsActive&&C.terminateVideoPreview(),C.previewTriggered=!0,C.mediaRenderer.isInlinePreviewTriggered=!0,_.gT.cancelJob(C.videoPreviewJobId),C.videoPreviewJobId=_.rQ(_.gT,function(){return _.I(function(F){return F.yield(Ho$(C),0)})}))},Ho$=function(C,F){F=F===void 0?{}:F;
var G=F.isAutoplay===void 0?!1:F.isAutoplay;var V,J,b,z;return _.I(function(Q){if(Q.nextAddress==1){if(!r$(C))return Q.return();V=C.getVideoPreviewOpts();if(!V)return Q.return();G&&(V.isAutoplay=!0);return(b=(J=_.KX(C.mediaRenderer.hostElement,"yt-open-video-preview-action",[V]))&&J[0])?Q.yield(J[0],3):Q.jumpTo(2)}Q.nextAddress!=2&&(b=Q.yieldResult===1);if(b){var E=(z=C.mediaRenderer)==null?void 0:z.data;E&&(tw5(E)?delete E.inlinePlayerData:"inlinePlaybackEndpoint"in E&&delete E.inlinePlaybackEndpoint)}_.S9(Q)})};
aKq.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var C,F;if((F=(C=this.videoPreviewOptsInput)==null?void 0:C.videoPreviewData)!=null)C=F;else if(C=this.mediaRenderer.data)if(tw5(C))C={inlinePlaybackEndpoint:_.ZD(C.inlinePlayerData.onVisible),navigationEndpoint:_.ZD(C.onTap),thumbnail:"image"in C?C.image:C.thumbnail,thumbnailOverlays:void 0,accessibilityText:WfW(C)};else if("multipleInlinePlaybackEndpoint"in C){var G=_.Z(_.Z(C.multipleInlinePlaybackEndpoint,XPO),wPu);if(G!=
null&&G.playerDescriptors){F=[];G=_.u(G.playerDescriptors);for(var V=G.next();!V.done;V=G.next())V=V.value,F.push({inlinePlaybackEndpoint:V.inlinePlaybackEndpoint,navigationEndpoint:V.navigationEndpoint,thumbnail:V.thumbnail,thumbnailOverlays:V.thumbnailOverlays,accessibilityText:WfW(C)});C=F}else C=void 0}else C={inlinePlaybackEndpoint:C.inlinePlaybackEndpoint,navigationEndpoint:C.navigationEndpoint,thumbnail:C.thumbnail,thumbnailOverlays:C.thumbnailOverlays,accessibilityText:WfW(C)};else C=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:C,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var r$=function(C){var F;if(F=C.inlinePreviewIsEnabledForUser)F=(C=C.mediaRenderer.data)?"inlinePlaybackEndpoint"in C&&C.inlinePlaybackEndpoint||tw5(C)&&C.inlinePlayerData||"multipleInlinePlaybackEndpoint"in C&&C.multipleInlinePlaybackEndpoint?!0:!1:!1;return F};
aKq.prototype.terminateVideoPreview=function(){_.rz(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var o7=function(C){_.gT.cancelJob(C.videoPreviewJobId);C.inlinePreviewIsActive=!1;C.previewTriggered=!1;C.mediaRenderer.isInlinePreviewTriggered=!1};var lqP=_.h6(["#"]),KE=function(){var C=_.B.apply(this,arguments)||this;C.isDisabled=!1;return C};
_.O(KE,_.B);_.n=KE.prototype;
_.n.configureRendererStamper=function(){return{"data.menu":SC,"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.n.attached=function(){this.updateInlinePreviewHoverListeners()};
_.n.detached=function(){this.clearInlinePreviewHoverListeners()};
_.n.getMetadata=function(C){var F=[];if(C.metadataText&&Object.keys(C.metadataText).length>0){var G=this.ytRendererBehavior.getSimpleString(C.metadataText);C.upcomingEventData&&C.upcomingEventData.upcomingEventText&&(G=_.EI(G,Number(C.upcomingEventData.startTime)));F.push(G)}else C.shortViewCountText&&F.push(this.ytRendererBehavior.getSimpleString(C.shortViewCountText)),C.publishedTimeText&&F.push(this.ytRendererBehavior.getSimpleString(C.publishedTimeText)),C.upcomingEventData&&C.upcomingEventData.upcomingEventText&&
(G=this.ytRendererBehavior.getSimpleString(C.upcomingEventData.upcomingEventText),F.push(_.EI(G,Number(C.upcomingEventData.startTime))));return F};
_.n.calculateBylineText=function(C){return C.shortBylineText?C.shortBylineText:C.bylineText?C.bylineText:null};
_.n.calculateIsDisabled=function(C){return!!C.isDisabled};
_.n.computeHrefWithDefault=function(C){return this.ytComponentBehavior.computeHref_(C)||_.$aI(lqP)};
_.n.onDetailsTap=function(C){var F=this.data&&this.data.navigationEndpoint;F&&!_.dE(_.AR(C)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.y("kevlar_grid_video_renderer_killswitch")?_.oo(this.hostElement,"yt-navigate",{endpoint:F}):this.ytComponentBehavior.resolveCommand(F))};
_.n.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.n.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15038_inlinePreviewHoverListener=ZR({mediaRenderer:this,lockupElement:_.ot(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.ot(this.hostElement).querySelector("ytd-thumbnail")})};
_.n.clearInlinePreviewHoverListeners=function(){var C;(C=this.JSC$15038_inlinePreviewHoverListener)==null||Ak(C)};
_.n.computeThumbnailWidth=function(C,F){return F&&F>0?F:C?360:210};
_.n.computeNumBadgesInRow=function(C){var F;return((F=C.badges)==null?void 0:F.length)||0};
_.n.computeShowChannelThumbnail=function(C,F){var G;return F&&!!(C==null?0:(G=C.channelThumbnailSupportedRenderers)==null?0:G.channelThumbnailWithLinkRenderer)};
_.I6.Object.defineProperties(KE.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.JSC$15038_inlinePreviewHoverListener)==null?0:r$(C))&&!!this.ytdLockupBehavior.lockupIsHovered}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.attributedBylineText)}},
showBylineText:{configurable:!0,enumerable:!0,get:function(){return!!this.bylineText&&!this.hasAttributedBylineText}}});
KE.prototype.dataChanged=KE.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],KE.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],KE.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],KE.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.T6),_.Y("design:type",Object)],KE.prototype,"ytdDismissibleItemBehavior",void 0);
_.R([_.w(_.CR),_.Y("design:type",Object)],KE.prototype,"ytdLockupBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],KE.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],KE.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Boolean)],KE.prototype,"noEndpoints",void 0);_.R([_.L({computed:"calculateBylineText(data)"}),_.Y("design:type",Object)],KE.prototype,"bylineText",void 0);
_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],KE.prototype,"isSearch",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],KE.prototype,"isDownloading",void 0);_.R([_.L({reflectToAttribute:!0,value:0}),_.Y("design:type",Number)],KE.prototype,"width",void 0);_.R([_.L({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.Y("design:type",Object)],KE.prototype,"isDisabled",void 0);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],KE.prototype,"dataChanged",null);_.R([_.M("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],KE.prototype,"isHovered",null);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],KE.prototype,"hasAttributedBylineText",null);
_.R([_.M("bylineText","hasAttributedBylineText"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],KE.prototype,"showBylineText",null);_.R([_.e({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],KE);
_.q(KE,"ytd-grid-video-renderer",function(){if(TsP!==void 0)return TsP;var C=document.createElement("template");_.X(C,'\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" class="style-scope ytd-grid-video-renderer"><div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-grid-video-renderer"></div><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[!showBylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" num-badges-in-row="[[computeNumBadgesInRow(data)]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return TsP=C},{mode:_.oN("kevlar_poly_si_batch_j047")?1:2});var yFu;var DO=function(){var C=_.B.apply(this,arguments)||this;C.roundedContainer=!0;C.skipRoundingTop=!1;C.disableTopPadding=!1;C.amsterdamEnabled=_.y("enable_desktop_amsterdam_info_panels");C.extractOverlay=!1;return C};
_.O(DO,_.B);DO.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
DO.prototype.onClick=function(C){var F,G=(F=this.data)==null?void 0:F.sourceEndpoint;!_.dE(_.AR(C),this.hostElement,["A".toString()])&&G&&_.oo(this.hostElement,"yt-navigate",{endpoint:G})};
_.I6.Object.defineProperties(DO.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 C;return!((C=this.data)==null||!C.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var C,F;return(F=(C=this.data)==null?void 0:C.paragraphMaxLines)!=null?F:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],DO.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],DO.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],DO.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],DO.prototype,"showVerticalDividers",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],DO.prototype,"roundedContainer",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],DO.prototype,"skipRoundingTop",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],DO.prototype,"disableTopPadding",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],DO.prototype,"amsterdamEnabled",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],DO.prototype,"extractOverlay",void 0);
_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DO.prototype,"showMetadataAtTop",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DO.prototype,"showMetadataBelowTitle",null);_.R([_.L({reflectToAttribute:!0}),_.M("data.menu"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DO.prototype,"hasMenu",null);
_.R([_.L({reflectToAttribute:!0}),_.M("data.truncateParagraphs"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DO.prototype,"truncateParagraphs",null);_.R([_.L({reflectToAttribute:!0}),_.M("data.paragraphMaxLines"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],DO.prototype,"paragraphMaxLines",null);
_.R([_.L({type:_.y("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.M("data.background"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DO.prototype,"background",null);_.R([_.e({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],DO);
_.q(DO,"ytd-info-panel-content-renderer",function(){if(yFu!==void 0)return yFu;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return yFu=C},{mode:_.oN("kevlar_poly_si_batch_j076")?1:2});var ZoE;var NlE;var Ool;var X_$;var pE=function(){return _.B.apply(this,arguments)||this};
_.O(pE,_.B);pE.prototype.computeStyle=function(C){return C};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],pE.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],pE.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],pE.prototype,"style_",void 0);_.R([_.Z5({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],pE);
_.q(pE,"yt-channel-thumbnail-with-link-renderer",function(){if(X_$===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;Ool===void 0&&(Ool=document.createElement("template"));var V=Ool;G.call(F,V.content.cloneNode(!0),C.content.firstChild);X_$=C}C=X_$;return C},{mode:2});var m1=function(){return _.B.apply(this,arguments)||this};
_.O(m1,_.B);m1.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"}}}};
m1.prototype.computeTitleStyle=function(C){return C||null};
m1.prototype.computeAvatarStyle=function(C){return C||null};
m1.prototype.computeShowNavigationButton=function(C,F){return!(C==null||!C.navigationButton||F)};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],m1.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],m1.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],m1.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.Y("design:type",String)],m1.prototype,"titleStyle",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.Y("design:type",String)],m1.prototype,"avatarStyle",void 0);_.R([_.L(),_.Y("design:type",Boolean)],m1.prototype,"hideNavigationButton",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],m1.prototype,"isModernSd",void 0);_.R([_.e({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],m1);
_.q(m1,"ytd-rich-list-header-renderer",function(){if(NlE!==void 0)return NlE;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return NlE=C},{mode:_.oN("kevlar_poly_si_batch_j058")?1:2});var Cp=function(){return _.B.apply(this,arguments)||this};
_.O(Cp,_.B);Cp.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]]"}}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Cp.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Cp.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Cp.prototype,"data",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],Cp.prototype,"isSearch",void 0);_.R([_.e({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],Cp);
_.q(Cp,"ytd-preview-card-renderer",function(){if(ZoE!==void 0)return ZoE;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return ZoE=C},{mode:1});var w_y;var jK=function(){return _.B.apply(this,arguments)||this};
_.O(jK,_.B);jK.prototype.configureRendererStamper=function(){return{"data.menu":SC}};
jK.prototype.dataChanged=function(){var C=this.get("colorExtractionPalette.section1Color",this.data);C=_.Hr(C);_.jr(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":C})};
jK.prototype.computeCardStyle=function(C){return this.get("style.value",C)||null};
jK.prototype.dataChanged=jK.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],jK.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],jK.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.T6),_.Y("design:type",Object)],jK.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],jK.prototype,"data",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.Y("design:type",String)],jK.prototype,"cardStyle",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jK.prototype,"dataChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],jK);
_.q(jK,"ytd-compact-channel-recommendation-card-renderer",function(){if(w_y!==void 0)return w_y;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return w_y=C},{mode:1});var MYy;var S7r;var FA=function(){var C=_.B.apply(this,arguments)||this;C.alignAuto=!1;C.collapsed=!0;C.isToggled=!1;C.alwaysCollapsed=!1;C.canToggle=!0;C.collapsedHeight=80;C.disableToggle=!1;C.alwaysToggleable=!1;C.reversed=!1;C.shouldUseNumberOfLines=!1;C.recomputeOnResize=!1;C.canToggleJobId=0;C.lastReversed=!1;return C};
_.O(FA,_.B);_.n=FA.prototype;_.n.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.n.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.n.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var C=_.ot(this.hostElement),F=C.childNodes,G=document.createDocumentFragment(),V=C.childNodes.length-1;V>=0;V--)_.ot(G).appendChild(F[V]);_.y("enable_shadydom_free_scoped_node_methods")?_.r7(this.hostElement).appendChild(G):C.appendChild(G)}};
_.n.ready=function(){var C=this;_.L5(function(){C.initChildrenObserver()},1)};
_.n.attached=function(){var C;(C=this.resizeObserver)==null||C.observe(this.content)};
_.n.detached=function(){this.detachObserver()};
_.n.toggle=function(C,F){this.canToggle&&(this.isToggled=F,_.oo(this.hostElement,"yt-refit"),C&&C.stopPropagation())};
_.n.reset=function(){this.childrenChanged()};
_.n.onIronResize=function(){this.recomputeOnResize&&!_.y("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.n.computeIsMoreVisible=function(C,F){return C&&!F};
_.n.computeShouldUseNumberOfLines=function(C){try{return!!C&&window.CSS.supports("-webkit-line-clamp","1")}catch(F){}return!1};
_.n.computeIsLessVisible=function(C,F){return C&&F};
_.n.observeCollapsedHeightAndMaxLines=function(){var C=this.collapsedHeight,F=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.jr(this.hostElement,{"--ytd-expander-max-lines":""+F,"--ytd-expander-collapsed-height":""}):_.jr(this.hostElement,{"--ytd-expander-collapsed-height":C+"px","--ytd-expander-max-lines":""})};
_.n.handleMoreTap=function(C){this.disableToggle||(_.oo(this.hostElement,"yt-expander-more-tapped"),this.toggle(C,!0))};
_.n.handleLessTap=function(C){_.oo(this.hostElement,"yt-expander-less-tapped");this.toggle(C,!1)};
_.n.initChildrenObserver=function(){var C=this;this.observer=new MutationObserver(function(){C.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.y("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.FX(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var F;(F=C.resizeThrottle)==null||F.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.n.childrenChanged=function(){var C=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){oP(function(){C.canToggleJobId=0;C.calculateCanCollapse()})}))};
_.n.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};
_.n.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.n.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G6("collapsed-changed",this.collapsed))};
_.n.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G6("is-toggled-changed",this.isToggled))};
_.n.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G6("can-toggle-changed",this.canToggle))};
_.I6.Object.defineProperties(FA.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
FA.prototype.canToggleChangedForBinding=FA.prototype.canToggleChangedForBinding;FA.prototype.isToggledChangedForBinding=FA.prototype.isToggledChangedForBinding;FA.prototype.collapsedChangedForBinding=FA.prototype.collapsedChangedForBinding;FA.prototype.observeCollapsedHeightAndMaxLines=FA.prototype.observeCollapsedHeightAndMaxLines;FA.prototype.onIronResize=FA.prototype.onIronResize;FA.prototype.reversedChanged=FA.prototype.reversedChanged;FA.prototype.toggledChanged=FA.prototype.toggledChanged;
FA.prototype.alwaysToggleableChanged=FA.prototype.alwaysToggleableChanged;_.R([_.w(_.AY),_.Y("design:type",Object)],FA.prototype,"ironResizableBehavior",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],FA.prototype,"alignAuto",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],FA.prototype,"collapsed",void 0);_.R([_.L(),_.Y("design:type",Object)],FA.prototype,"isToggled",void 0);_.R([_.L(),_.Y("design:type",Object)],FA.prototype,"alwaysCollapsed",void 0);
_.R([_.L(),_.Y("design:type",Object)],FA.prototype,"canToggle",void 0);_.R([_.L(),_.Y("design:type",Object)],FA.prototype,"collapsedHeight",void 0);_.R([_.L(),_.Y("design:type",Object)],FA.prototype,"disableToggle",void 0);_.R([_.L(),_.Y("design:type",Object)],FA.prototype,"alwaysToggleable",void 0);_.R([_.L(),_.Y("design:type",Object)],FA.prototype,"reversed",void 0);_.R([_.L(),_.Y("design:type",Number)],FA.prototype,"maxNumberOfLines",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.Y("design:type",Object)],FA.prototype,"shouldUseNumberOfLines",void 0);_.R([_.L(),_.Y("design:type",Object)],FA.prototype,"recomputeOnResize",void 0);_.R([_.$z("#content"),_.Y("design:type",HTMLDivElement)],FA.prototype,"content",void 0);_.R([_.zp("alwaysToggleable"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],FA.prototype,"alwaysToggleableChanged",null);
_.R([_.zp("isToggled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],FA.prototype,"toggledChanged",null);_.R([_.M("canToggleJobId"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],FA.prototype,"isResetting",null);_.R([_.iP("reversed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],FA.prototype,"reversedChanged",null);
_.R([_.VG("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],FA.prototype,"onIronResize",null);_.R([_.iP("maxNumberOfLines","collapsedHeight"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],FA.prototype,"observeCollapsedHeightAndMaxLines",null);_.R([_.iP("collapsed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],FA.prototype,"collapsedChangedForBinding",null);
_.R([_.iP("isToggled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],FA.prototype,"isToggledChangedForBinding",null);_.R([_.iP("canToggle"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],FA.prototype,"canToggleChangedForBinding",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-expander"})],FA);
_.q(FA,"ytd-expander",function(){if(S7r!==void 0)return S7r;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return S7r=C},{mode:1});var Gs=function(){return _.B.apply(this,arguments)||this};
_.O(Gs,_.B);Gs.prototype.computeIsCarousel=function(C){return!!C.isCarousel};
Gs.prototype.observeLightsourcePalette=function(){var C,F=(C=this.data)==null?void 0:C.vibrantsourceColorPaletteData;F&&_.WB(this.hostElement,F)};
Gs.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Gs.prototype.observeLightsourcePalette=Gs.prototype.observeLightsourcePalette;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Gs.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Gs.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Gs.prototype,"data",void 0);_.R([_.L({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Gs.prototype,"isCarousel",void 0);
_.R([_.iP("data.vibrantsourceColorPaletteData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Gs.prototype,"observeLightsourcePalette",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],Gs);
_.q(Gs,"ytd-media-upsell-renderer",function(){if(MYy!==void 0)return MYy;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="EXPAND" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="COLLAPSE" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return MYy=C},{mode:2});var LT7;var Vm=function(){var C=_.B.apply(this,arguments)||this;C.JSC$15065_playerEvents=new Map;C.listeningToPlayer=!1;C.startX=0;C.active=!1;C.shouldShowButtons=_.y("web_buttons_hidden_killswitch");C.isHighlighted=!1;C.useHighlightStyling=_.y("web_enable_deeper_metadata_highlight_styling");C.modern=_.y("kevlar_modern_sd");C.enableProblemWalkthrough=_.y("problem_walkthrough_sd");return C};
_.O(Vm,_.B);_.n=Vm.prototype;
_.n.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}}}}}};
_.n.created=function(){this.JSC$15065_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.n.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.Gp(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.Gp(this,this.onActiveUpdate))};
_.n.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.Gp(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.Gp(this,this.onActiveUpdate))};
_.n.onDataChanged=function(){this.removePlayerListeners()};
_.n.onColorPaletteChange=function(){var C={},F;if(_.Mz()==="USER_INTERFACE_THEME_DARK"&&((F=this.data)==null?0:F.darkColorPalette)){var G=this.data.darkColorPalette;C["--ytd-macro-markers-list-item-background-color"]=_.lE(this.get("section2Color",G))}else{var V;_.Mz()==="USER_INTERFACE_THEME_LIGHT"&&((V=this.data)==null?0:V.lightColorPalette)&&(G=this.data.lightColorPalette,C["--ytd-macro-markers-list-item-background-color"]=_.lE(this.get("section3Color",G)))}G?(C["--ytd-macro-markers-list-item-title-color"]=
_.lE(this.get("primaryTitleColor",G)),C["--ytd-macro-markers-list-item-secondary-color"]=_.lE(this.get("secondaryTitleColor",G)),C["--ytd-macro-markers-list-item-timestamp-background-color"]=_.lE(this.get("section1Color",G)),this.customButtonProperties={customColors:{color:_.lE(this.get("primaryTitleColor",G))}},this.useColorSampling=!0):(C["--ytd-macro-markers-list-item-background-color"]="initial",C["--ytd-macro-markers-list-item-title-color"]="initial",C["--ytd-macro-markers-list-item-secondary-color"]=
"initial",C["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.jr(this.hostElement,C)};
_.n.onEndpointMouseDown=function(C){this.startX=C.clientX};
_.n.onEndpointClick=function(C){var F=this,G,V,J;return _.I(function(b){if(b.nextAddress==1){if(F.startX!==C.clientX)return C.preventDefault(),b.return();F.data&&F.ytRendererBehavior.logExplicitClick(F.data);if(!F.seekWithAnimationOnClick)return b.jumpTo(0);if(C.button!==0||C.shiftKey||C.altKey||C.metaKey||C.ctrlKey||_.dE(_.AR(C),F.hostElement,["BUTTON".toString()]))return b.return();C.stopPropagation();C.preventDefault();return F.data?b.yield(_.Re().getPlayerPromise(),3):b.return()}G=b.yieldResult;
J=(V=_.Z(F.data.onTap,_.eT))==null?void 0:V.startTimeSeconds;J!==void 0&&G.seekToTimeWithAnimation(J*1E3,_.dd(F.data.title));_.S9(b)})};
_.n.computeLayout=function(C){return C};
_.n.computeIsHighlighted=function(C){return!!C};
_.n.computeCarouselType=function(C){return C};
_.n.hideModernCarousel=function(C){return this.modern&&this.hideThumbnail(C)};
_.n.hideThumbnail=function(C){return this.enableProblemWalkthrough&&C!==null&&C==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.n.onRepeatButtonToggle=function(C){var F=this;C.detail.toggled&&_.Re().getPlayerPromise().then(function(G){F.ytPlayerListenerBehavior.listenToPlayerEvents(G,F.JSC$15065_playerEvents);F.listeningToPlayer=!0})};
_.n.onLoopRangeChange=function(C){var F=_.ot(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(F){var G=F.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",F.polymerController.data);if(G){var V=Number(G.endTimeMs);if(Number(G.startTimeMs)!==(C==null?void 0:C.startTimeMs)||V!==(C==null?void 0:C.endTimeMs))F.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.n.removePlayerListeners=function(){var C=this;this.listeningToPlayer&&_.Re().getPlayerPromise().then(function(F){C.ytPlayerListenerBehavior.unlistenFromPlayerEvents(F,C.JSC$15065_playerEvents);C.listeningToPlayer=!1})};
_.n.onActiveUpdate=function(C){this.active=C.detail.active};
Vm.prototype.onColorPaletteChange=Vm.prototype.onColorPaletteChange;Vm.prototype.onDataChanged=Vm.prototype.onDataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Vm.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Vm.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Fi.YtPlayerListenerBehavior),_.Y("design:type",_.GR)],Vm.prototype,"ytPlayerListenerBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],Vm.prototype,"data",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Vm.prototype,"useCustomColors",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Vm.prototype,"active",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Vm.prototype,"shouldShowButtons",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.Y("design:type",String)],Vm.prototype,"layout",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.Y("design:type",Object)],Vm.prototype,"isHighlighted",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Vm.prototype,"useHighlightStyling",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Vm.prototype,"modern",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Vm.prototype,"enableProblemWalkthrough",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.Y("design:type",String)],Vm.prototype,"carouselType",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Vm.prototype,"useColorSampling",void 0);_.R([_.L(),_.Y("design:type",Boolean)],Vm.prototype,"seekWithAnimationOnClick",void 0);_.R([_.L(),_.Y("design:type",Object)],Vm.prototype,"customButtonProperties",void 0);
_.R([_.$z("#repeat-button"),_.Y("design:type",HTMLElement)],Vm.prototype,"repeatButton",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Vm.prototype,"onDataChanged",null);_.R([_.iP("data.lightColorPalette","data.darkColorPalette"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Vm.prototype,"onColorPaletteChange",null);_.R([_.e({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],Vm);
_.q(Vm,"ytd-macro-markers-list-item-renderer",function(){if(LT7!==void 0)return LT7;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return LT7=C},{mode:1});var Blu;var vI7;var i7=function(){return _.B.apply(this,arguments)||this};
_.O(i7,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],i7.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],i7.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],i7);
_.q(i7,"ytd-title-and-button-list-header-renderer",function(){if(vI7!==void 0)return vI7;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return vI7=C},{mode:1});var fqm;var hYu=new _.jh("BUTTON_RENDERER_WIZ_TOKEN"),cFu=new _.jh("BUTTON_RENDERER_TOKEN");_.JZ=_.d(function(C){var F=_.I8().resolve(_.Qt(hYu));if(F)return _.W(F,Object.assign({},C,{overrides:C.buttonOverrides}));var G=_.I8().resolve(cFu);return G?_.W(qIB,null,function(){return _.W(u9,null,function(){var V,J,b,z,Q,E,t,k,U,H,l,N;return void G(C.data(),{onButtonClickCallback:C.onButtonClickCallback,shouldShowIcons:(V=C.shouldShowIcons)==null?void 0:V.call(C),icon:(J=C.icon)==null?void 0:J.call(C),processAllEndpoints:(b=C.processAllEndpoints)==null?void 0:b.call(C),preventDefault:(z=C.preventDefault)==
null?void 0:z.call(C),stopPropagation:(Q=C.stopPropagation)==null?void 0:Q.call(C),disableButtonRendererClickHandling:(E=C.disableButtonRendererClickHandling)==null?void 0:E.call(C),className:(t=C.className)==null?void 0:t.call(C),buttonOverrides:(k=C.buttonOverrides)==null?void 0:k.call(C),forceModernIconButton:(U=C.forceModernIconButton)==null?void 0:U.call(C),isSubscribe:(H=C.isSubscribe)==null?void 0:H.call(C),alignByText:(l=C.alignByText)==null?void 0:l.call(C),forceDisabled:(N=C.forceDisabled)==
null?void 0:N.call(C)})})}):_.W(_.WQ,null)},"Va");
_.JZ.idomCompat=!0;var AFu=_.d(function(C){var F=C.data,G=_.dk(C.useSquareAspectRatio,!1);return _.W("dismissed-mini-game-card-view-model",null,_.W(_.a,{cond:function(){var V,J;return(V=F().responseText)==null?void 0:(J=V.runs)==null?void 0:J.length},
then:function(){var V={};return _.W("div",{class:_.py("yt-mini-game-card-view-model__dismissed-card",(V["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!G()},V["yt-mini-game-card-view-model--dismissed-square-card"]=G,V))},_.W("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.W(_.a,{cond:function(){return F().responseText.runs[0].text},
then:function(J){return _.W("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:J},J)}}),_.W(_.uC,{data:function(){return F().buttons}},{buttonRenderer:_.JZ,
buttonViewModel:_.tS})))}}))},"Wa");var gIS=_.d(function(C){C=_.xz(C,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var F=C.data,G=C.useFullWidth,V=C.isDesktopWeb,J=C.addSearchResultTopMargin,b=function(){return F().layout},z=function(){return F().title},Q=function(){return F().metadataText?F().metadataText:F().genre},E=function(){return F().channelName},t=function(){return F().image},k=function(){return F().colorPalette},U=function(){return F().actionButton},H=function(){return F().overflowButton},
l=function(){return F().avatar},N=function(){var A={};
A=_.py("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(A["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return V()},A));
return _.W("div",{class:A},_.W(eYo,{imageData:t,colorPalette:k}),_.W(dtu,{onTap:function(){return F().onTap},
imageData:t,accessibilityText:function(){return F().accessibilityText},
overlayBadgeText:function(){return F().overlayBadgeText},
iconName:function(){return F().iconName},
unplayableInlinePlaybackIconName:function(){return F().unplayableInlinePlaybackIconName},
isDesktopWeb:V}),_.W(_.a,{cond:function(){return!V()},
then:function(){return _.W(_.WQ,null,_.W(xty,{layout:b,colorPalette:k,isDesktopWeb:V,overflowButton:H,avatar:l,onTap:function(){return F().onTap},
genre:Q,title:z,channelName:E}),_.W(s$S,{actionButton:U}))}}))},S=function(){var A={};
A=_.py((A["yt-mini-game-card-view-model--search-result-desktop"]=function(){return V()},A["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!V()},A["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return J()},A));
return _.W("div",{class:A},N(),_.W(q77,{description:function(){return F().description},
isDesktopWeb:V,title:z,genre:Q,onTap:function(){return F().onTap},
actionButton:U,overflowButton:H,avatar:l,channelName:E}))},f=function(){var A={};
A=_.py("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(A["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return V()},A["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return V()&&F().width===135},A["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return V()},A["yt-mini-game-card-view-model--big-metadata-font"]=function(){return F().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},A["yt-mini-game-card-view-model--use-full-width"]=
function(){return G()},A["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!U()},A));
return _.W("div",{class:A},_.W(P4y,{colorPalette:k,isDesktopWeb:V,onTap:function(){return F().onTap},
accessibilityText:function(){return F().accessibilityText},
overlayBadgeText:function(){return F().overlayBadgeText},
iconName:function(){return F().iconName},
unplayableInlinePlaybackIconName:function(){return F().unplayableInlinePlaybackIconName},
actionButton:U,imageData:t}),_.W(xty,{layout:b,colorPalette:k,isDesktopWeb:V,overflowButton:H,avatar:l,onTap:function(){return F().onTap},
genre:Q,title:z,channelName:E}))},c=function(){var A={};
A=_.py("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(A["yt-mini-game-card-view-model--square-card-desktop"]=function(){return V()},A["yt-mini-game-card-view-model--use-full-width"]=function(){return G()},A));
return _.W("div",{class:A},_.W(dtu,{onTap:function(){return F().onTap},
imageData:t,accessibilityText:function(){return F().accessibilityText},
overlayBadgeText:function(){return F().overlayBadgeText},
iconName:function(){return F().iconName},
unplayableInlinePlaybackIconName:function(){return F().unplayableInlinePlaybackIconName},
isDesktopWeb:V}),_.W(xty,{layout:b,colorPalette:k,isDesktopWeb:V,overflowButton:H,avatar:l,onTap:function(){return F().onTap},
genre:Q,title:z,channelName:E}))};
return _.W("mini-game-card-view-model",{class:C.className},_.W(_.e_,null,_.W(_.hg,{when:function(){return b()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return f()}),_.W(_.hg,{when:function(){return b()==="MINI_APP_LAYOUT_SQUARE"}},function(){return c()}),_.W(_.hg,{when:function(){return b()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return S()})))},"Xa");
gIS.idomCompat=!0;var s$S=_.d(function(C){var F=_.dk(C.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.W(_.uC,{data:C.actionButton},{buttonViewModel:function(G){return _.W("div",{class:F},_.W(_.tS,{data:G.data}))}})},"Ya"),dtu=_.d(function(C){var F=C.onTap;
var G=C.imageData;var V=C.accessibilityText;var J=C.overlayBadgeText;var b=C.iconName;var z=C.unplayableInlinePlaybackIconName;C=C.isDesktopWeb;return _.W(_.zV,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:F},_.W(_.AC,{data:G,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(V==null?void 0:V())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.W(RYm,{overlayBadgeText:J,iconName:b,unplayableInlinePlaybackIconName:z,isDesktopWeb:C}))},"Za"),RYm=_.d(function(C){var F=C.overlayBadgeText;
var G=C.iconName;var V=C.unplayableInlinePlaybackIconName;var J=C.isDesktopWeb;return _.W("div",{class:"yt-mini-game-card-view-model__badge-container"},_.W(_.a,{cond:G,then:function(b){return _.W("div",{class:"yt-mini-game-card-view-model__badge"},_.W("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.W(_.i5,{icon:b,className:"yt-mini-game-card-view-model__icon",size:12}),_.W("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},F)))}}),_.W(_.a,{cond:function(){return!G()&&
F()},
then:function(){return _.W("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},F)}}),_.W(_.a,{cond:function(){return V()&&J()},
then:function(){return _.W("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.W(_.i5,{icon:V,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"$a"),eYo=_.d(function(C){var F=C.colorPalette;
var G=C.imageData;var V=function(){return F().vibrantColorPalette?F().vibrantColorPalette.section2Color:F().sectionTwoColor};
return _.W(_.WQ,null,_.W("div",{class:"yt-mini-game-card-view-model__background-base",style:_.VA({"background-color":function(){return yk(V(),"1")}})}),_.W("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.VA({"background-image":function(){return"url("+G().sources[0].url+")"}})}),_.W("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.VA({background:function(){return"linear-gradient(180deg,\n    "+yk(V(),".8")+" 0%,\n    "+yk(V(),".4")+" 25%,\n    "+yk(F().vibrantColorPalette?F().vibrantColorPalette.section4Color:F().sectionFourColor,".8")+" 100%)"}})}))},"ab"),xty=_.d(function(C){var F=C.layout;
var G=C.colorPalette;var V=C.overflowButton;var J=C.avatar;var b=C.onTap;var z=C.title;var Q=C.channelName;var E=C.genre;var t=function(){var k;return F()!=="MINI_APP_LAYOUT_SQUARE"&&((k=G())==null?0:k.textPrimaryColor)?"color: "+yk(G().textPrimaryColor,".7"):""};
return _.W("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.W(_.a,{cond:J,then:function(){return _.W("div",{class:"yt-mini-game-card-view-model__avatar"},_.W(_.uC,{data:J},{avatarViewModel:_.g$}))}}),_.W(_.zV,{command:b,
className:"yt-mini-game-card-view-model__metadata-details"},_.W("h3",{class:"yt-mini-game-card-view-model__title",title:z},z),_.W(_.a,{cond:J,then:function(){return _.W("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.W("span",{class:"yt-mini-game-card-view-model__genre",title:Q,style:t},Q),_.W("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:t},E))},
else:function(){return _.W("span",{class:"yt-mini-game-card-view-model__genre",title:E},E)}})),_.W("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.W(_.uC,{data:V},{buttonViewModel:function(k){var U=k.data;
return _.W(_.tS,{data:function(){return Object.assign({},U(),{customFontColor:F()==="MINI_APP_LAYOUT_SINGLETON"?U().customFontColor:void 0})}})}})))},"bb"),P4y=_.d(function(C){var F=C.colorPalette;
var G=C.isDesktopWeb;var V=C.onTap;var J=C.accessibilityText;var b=C.overlayBadgeText;var z=C.iconName;var Q=C.unplayableInlinePlaybackIconName;var E=C.actionButton;C=C.imageData;return _.W("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.W(eYo,{imageData:C,colorPalette:F}),_.W(dtu,{onTap:V,imageData:C,accessibilityText:J,overlayBadgeText:b,iconName:z,unplayableInlinePlaybackIconName:Q,isDesktopWeb:G}),_.W(_.a,{cond:function(){return E==null?void 0:E()},
then:function(){return _.W(s$S,{actionButton:E})}}))},"cb"),q77=_.d(function(C){var F=C.description;
var G=C.isDesktopWeb;var V=C.title;var J=C.genre;var b=C.onTap;var z=C.actionButton;var Q=C.overflowButton;var E=C.avatar;C=C.channelName;var t={};t=_.py("yt-mini-game-card-view-model--search-result-metadata-wrapper",(t["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=G,t["yt-mini-game-card-view-model--show-unplayable-on-hover"]=G,t["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!G()},t));
var k={};k=_.py("yt-mini-game-card-view-model__search-result-info-row",(k["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!G()},k));
return _.W("div",{class:t},_.W("div",{class:k},_.W(_.zV,{command:b,className:"yt-mini-game-card-view-model__metadata-details"},_.W("h3",{class:"yt-mini-game-card-view-model__title",title:V},V),_.W("span",{class:"yt-mini-game-card-view-model__genre",title:J},J)),_.W(s$S,{actionButton:z,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.W("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.W(_.uC,{data:Q},{buttonViewModel:_.tS}))),_.W("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.W("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.W("div",{class:"yt-mini-game-card-view-model__avatar"},_.W(_.uC,{data:E},{avatarViewModel:function(U){var H=U.data;return _.W(_.g$,{data:function(){return Object.assign({},H(),{avatarImageSize:G()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.W(_.zV,{command:b,
className:"yt-mini-game-card-view-model__description"},_.W("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},C)),_.W(_.zV,{command:b,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.W("div",null)))),_.W(_.a,{cond:G,then:function(){return _.W(_.zV,{command:b,className:"yt-mini-game-card-view-model__description"},F)}}))},"db");_.gQ(gIS,"mini-game-card-view-model",{props:{data:_.CJ,className:_.CJ,useFullWidth:_.CJ,isDesktopWeb:_.CJ,addSearchResultTopMargin:_.CJ}});_.gQ(AFu,"dismissed-mini-game-card-view-model",{props:{data:_.CJ,useSquareAspectRatio:_.CJ}});var $V=function(){var C=_.B.apply(this,arguments)||this;C.isSearch=!1;C.isRichGrid=!1;return C};
_.O($V,_.B);_.n=$V.prototype;_.n.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.n.dismissibleItemOnYtServiceRequestSent=function(C,F){F.actions&&this.dismissibleItemProcessActions(C,F.actions)};
_.n.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.n.dataChanged=function(){this.dismissibleItemReset()};
_.n.dismissibleItemProcessActions=function(C,F){for(var G=0;G<F.length;G++){var V=F[G];_.Z(V,_.MS)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.Z(V,_.MS)),C.stopPropagation())}};
_.n.dismissibleItemHandleReplaceEnclosingAction=function(C){this.dismissedRenderer=C.item;this.isDismissed=!0};
_.I6.Object.defineProperties($V.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var C;return!!this.data&&!((C=this.dismissedRenderer)==null?0:C.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.dismissedRenderer)==null||!C.notificationMultiActionRenderer)}}});
$V.prototype.dataChanged=$V.prototype.dataChanged;$V.prototype.dismissibleItemOnRequestSent=$V.prototype.dismissibleItemOnRequestSent;$V.prototype.dismissibleItemOnYtServiceRequestSent=$V.prototype.dismissibleItemOnYtServiceRequestSent;_.R([_.L(),_.Y("design:type",Object)],$V.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],$V.prototype,"isSearch",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],$V.prototype,"isDismissed",void 0);
_.R([_.L(),_.Y("design:type",Object)],$V.prototype,"dismissedRenderer",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],$V.prototype,"isRichGrid",void 0);_.R([_.M("data.layout"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],$V.prototype,"useSquareAspectRatio",null);_.R([_.M("data","dismissedRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],$V.prototype,"showCard",null);
_.R([_.M("data","dismissedRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],$V.prototype,"showDismissed",null);_.R([_.VG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Sn]),_.Y("design:returntype")],$V.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.R([_.VG("yt-service-request-sent-button-renderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],$V.prototype,"dismissibleItemOnRequestSent",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$V.prototype,"dataChanged",null);_.R([_.Z5({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],$V);
_.q($V,"ytd-mini-game-card-view-model",function(){if(fqm!==void 0)return fqm;var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return fqm=C},{mode:_.oN("kevlar_poly_si_batch_j081")?1:2});var Y7o;var TlO;var b7=function(){return _.EH.apply(this,arguments)||this};
_.O(b7,_.EH);b7.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
b7.prototype.getContinuationUrl=function(C){var F={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(F.itct=this.data.clickTrackingParams);return _.Jy(C,F)};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],b7.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],b7.prototype,"data",void 0);_.R([_.Z5({is:"yt-reload-continuation",noInjection:!0})],b7);var oI8;var rFP;var np=function(){var C=_.B.apply(this,arguments)||this;C.notificationData={};return C};
_.O(np,_.B);_.n=np.prototype;_.n.isMenuExpanded=function(C){return C&&C.length<=1?"undefined":"false"};
_.n.dataChanged_=function(){this.selected=void 0;var C=this.computeSelectedIndex_(this.data);C>=0&&(this.selected=C);C=this.data&&this.data.length>1;_.pd(this.hostElement,"has-items",C);_.ot(this.hostElement).querySelector("#label").tabIndex=C?0:-1};
_.n.onDropdownOpen=function(){var C=_.ZQ();if(this.parentTrackingParams&&this.data){var F=_.zS(this.parentTrackingParams);this.data.forEach(function(G){C&&F&&G.trackingParams&&(G=_.zS(G.trackingParams),_.vA(C,F,G),_.cA(C,[G]))})}else this.parentTrackingParams||_.Yw(new _.Ay("No parent tracking params passed in for yt-dropdown-menu."))};
_.n.hasNotification=function(C){var F;if(C.targetId&&((F=this.notificationData)==null?0:F.targetId)){var G;return C.targetId===((G=this.notificationData)==null?void 0:G.targetId)}};
_.n.computeSelectedIndex_=function(C){if(C)for(var F=0,G=C.length;F<G;F++)if(C[F].selected)return F;return-1};
_.n.computeLabel_=function(C){return this.data&&C!=void 0?this.data[C].title:""};
_.n.computeShowIcon_=function(C,F){return!F&&!!C};
_.n.computeVerticalOffset_=function(C){return C?36:0};
_.n.computeEndpoint_=function(C){return C.endpoint||C.navigationEndpoint};
_.n.onLabelClick_=function(C){this.data&&this.data.length<=1?C.stopPropagation():this.menuExpanded="true"};
_.n.onIronActivate_=function(C){C=C.detail.item;var F=_.ot(this.hostElement).querySelector("#repeat").itemForElement(C);if(F&&F.trackingParams){var G=_.ZQ(),V=_.zS(F.trackingParams);G&&_.ej(G,V)}if(F&&F.serviceEndpoint)_.y("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(F.serviceEndpoint):_.DQ(this.hostElement,[F.serviceEndpoint]),_.oo(this.hostElement,"yt-playlist-reloading");else a:{if((F=C.querySelector("yt-supported-renderers"))&&
(F=F.rendererElement)&&F.is=="yt-reload-continuation"){F.trigger();break a}(C=C.querySelector("yt-reload-continuation"))&&C.trigger()}};
_.n.onTap_=function(C){C.preventDefault()};
_.n.onItemTap_=function(C){this.ytEndpointBehavior.onEndpointTap_(C)};
_.n.onLinkFocus_=function(C){try{var F=C.target}catch(V){}if(F){var G=F.querySelector("tp-yt-paper-item");G&&_.Bb(this,"focus",function(){G.focus()})}};
_.n.onMenuClose_=function(){this.menuExpanded="false"};
_.n.isLabelIconActive_=function(C){return C==="true"};
_.n.computeHasSubtitle_=function(C){return!!C};
_.n.computeHrefForItem_=function(C){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(C))};
_.n.updateSelectedFromBinding=function(C){this.selected=C.detail.value};
_.I6.Object.defineProperties(np.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
np.prototype.onMenuClose_=np.prototype.onMenuClose_;np.prototype.onTap_=np.prototype.onTap_;np.prototype.onIronActivate_=np.prototype.onIronActivate_;np.prototype.onDropdownOpen=np.prototype.onDropdownOpen;np.prototype.dataChanged_=np.prototype.dataChanged_;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],np.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.yR.YtEndpointBehavior),_.Y("design:type",Object)],np.prototype,"ytEndpointBehavior",void 0);
_.R([_.L(),_.Y("design:type",Array)],np.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],np.prototype,"parentTrackingParams",void 0);_.R([_.L(),_.Y("design:type",Object)],np.prototype,"selected",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],np.prototype,"useLabel",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],np.prototype,"useComputedAriaLabel",void 0);_.R([_.L(),_.Y("design:type",String)],np.prototype,"icon",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],np.prototype,"iconLabel",void 0);_.R([_.L(),_.Y("design:type",String)],np.prototype,"ariaLabel",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],np.prototype,"disabled",void 0);_.R([_.L({computed:"isMenuExpanded(data)"}),_.Y("design:type",String)],np.prototype,"menuExpanded",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],np.prototype,"closeOnActivate",void 0);
_.R([_.L({reflectToAttribute:!0,value:_.y("web_modern_buttons")}),_.Y("design:type",Boolean)],np.prototype,"modernButtons",void 0);_.R([_.L(),_.Y("design:type",Object)],np.prototype,"notificationData",void 0);_.R([_.M("ariaLabel, selected"),_.L(),_.Y("design:type",String),_.Y("design:paramtypes",[])],np.prototype,"computedAriaLabel",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],np.prototype,"dataChanged_",null);
_.R([_.VG("paper-dropdown-open"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],np.prototype,"onDropdownOpen",null);_.R([_.VG("iron-activate"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],np.prototype,"onIronActivate_",null);_.R([_.VG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],np.prototype,"onTap_",null);
_.R([_.VG("iron-overlay-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],np.prototype,"onMenuClose_",null);_.R([_.Z5({is:"yt-dropdown-menu",disableElementRegistration:!0})],np);
_.q(np,"yt-dropdown-menu",function(){if(rFP===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;oI8===void 0&&(oI8=document.createElement("template"));var V=oI8;G.call(F,V.content.cloneNode(!0),C.content.firstChild);rFP=C}C=rFP;return C},{mode:2});var u7=function(){var C=_.B.apply(this,arguments)||this;C.hasNotification=!1;return C};
_.O(u7,_.B);u7.prototype.computeId=function(C){return C};
u7.prototype.computeHorizontalAlign=function(C){return C?"right":"left"};
u7.prototype.computeAccessibilityLabel=function(C){var F,G;return((F=C.accessibility)==null?void 0:(G=F.accessibilityData)==null?void 0:G.label)||null};
u7.prototype.notificationDataChanged=function(){var C;this.hasNotification=!!this.notificationData&&!((C=this.data)==null?0:C.icon)};
u7.prototype.notificationDataChanged=u7.prototype.notificationDataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],u7.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Rm.YtLiveChatTooltipTargetingBehavior),_.Y("design:type",Object)],u7.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],u7.prototype,"data",void 0);_.R([_.L({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Y("design:type",String)],u7.prototype,"id",void 0);
_.R([_.L({value:!1}),_.Y("design:type",Boolean)],u7.prototype,"isRightAligned",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],u7.prototype,"disabled",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],u7.prototype,"closeOnActivate",void 0);_.R([_.L(),_.Y("design:type",Object)],u7.prototype,"notificationData",void 0);_.R([_.L(),_.Y("design:type",Object)],u7.prototype,"hasNotification",void 0);
_.R([_.L({value:!1}),_.Y("design:type",Boolean)],u7.prototype,"useComputedAriaLabel",void 0);_.R([_.iP("notificationData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u7.prototype,"notificationDataChanged",null);_.R([_.Z5({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],u7);
_.q(u7,"yt-sort-filter-sub-menu-renderer",function(){if(TlO===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;Y7o===void 0&&(Y7o=document.createElement("template"));var V=Y7o;G.call(F,V.content.cloneNode(!0),C.content.firstChild);TlO=C}C=TlO;return C},{mode:2});var KTo=_.d(function(C){var F=C.data;var G=_.CZ(function(){var b=F().onTap;(b=_.Z(b,_.yp))&&_.I8().resolve(_.WD).resolveCommand(b);return!1}),V=function(){return{sources:[{url:F().thumbnailUrl,
width:120,height:90}]}},J=function(){return F().rating&&F().ratingA11yLabel&&F().reviewsCount&&F().reviewsCountA11yLabel};
return _.W("place-data-view-model",null,_.W(_.a,{cond:function(){return F().placeName&&F().placeCategory},
then:function(){return _.W("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":G},_.W(_.AC,{data:V,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.W(_.zV,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return F().onTap}},_.W("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return F().placeName}},function(){return F().placeName})),_.W("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.W(_.a,{cond:J,
then:function(){return _.W("div",{class:_.py("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.W("span",{class:"score",title:function(){return F().ratingA11yLabel}},function(){return F().rating}),_.W("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.W(_.i5,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.W("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return F().reviewsCountA11yLabel}},function(){return F().reviewsCount}))},
else:function(){return _.W("div",{class:_.py("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.W("div",{class:_.py("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.W("span",{class:"category",
title:function(){return F().placeCategory}},function(){return F().placeCategory}))))}}))},"eb");
KTo.idomCompat=!0;_.gQ(KTo,"place-data-view-model",{props:{data:_.CJ}});var Dtl=new _.jh("INLINE_PLAYBACK_HOOK_TOKEN");var p_2=_.U4({sharedUi:_.LZ7});_.SV=_.HB(p_2)(p_2.sharedUi,{animatedThumbnailEnabledSelector:function(C){return C.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(C){return C.inlinePreviewEnabled},
currentPageTypeSelector:function(C){return C.currentPageType},
currentPageSubTypeSelector:function(C){return C.currentPageSubType},
persistentPanelVisibleSelector:function(C){return C.persistentPanelVisible}});var mt8=function(C){this.setActiveSlideIndex=C;this.jobIds=[];this.isSlideshowPlaying=!1},FXS=function(C,F){C.isSlideshowPlaying||(C.isSlideshowPlaying=!0,CUS(C),j9l(C,F,0))},CUS=function(C){_.rQ(_.gT,function(){C.setActiveSlideIndex(0)},1)},j9l=function(C,F,G){C.jobIds.push(_.rQ(_.gT,function(){var V=G<F-1?G+1:0;
C.setActiveSlideIndex(V);j9l(C,F,V)},1800))};var GKP=new _.jh("CHANNEL_DISCLOSURE_VIEW_MODEL_TOKEN");var Vcu=new _.jh("IMAGE_ON_LOAD_HANDLER_TOKEN");var i8G=_.d(function(C){return _.W("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.W(_.a,{cond:function(){var F;return(F=C.data())==null?void 0:F.thumbnail},
then:function(F){return _.W(_.AC,{data:F,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"fb");_.Jf7=_.d(function(C){var F=C.data;var G=C.lockupExperiments;C={};return _.W("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.W("div",{class:_.py("ytThumbnailOverlayButtonViewModelButton",(C.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var V;return G&&((V=G())==null?void 0:V.useLegacySizedIconButton)},C))},_.W(_.uC,{data:function(){return F().overlayButton}},{buttonViewModel:function(V){return _.W(_.tS,{data:V.data,
buttonOverrides:function(){var J;return G&&((J=G())==null?0:J.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"gb");
_.Jf7.idomCompat=!0;var $$S=_.d(function(C){return _.W("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.CZ(function(F){F.preventDefault();return!1})},_.W(_.uC,{data:function(){return C.data().buttons}},{toggleButtonViewModel:function(F){return _.W("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.W(_.AS,{data:F.data}))}}))},"hb");
$$S.idomCompat=!0;var b87=_.d(function(C){var F=function(){var G;return((G=_.Z(C.data().rendererContext,_.$Z))==null?void 0:G.label)||""};
return _.W("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.W(_.a,{cond:function(){return C.data().image},
then:function(){return _.W("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.W(_.AC,{data:function(){return C.data().image},
alt:F}))}}),_.W(_.a,{cond:function(){return C.data().text},
then:function(){return _.W("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return C.data().text})}}))},"ib");var nmE;nmE=_.SV.animatedThumbnailEnabledSelector;_.zs=_.d(function(C){var F=[],G=function(){var H,l;return efs((H=C.width)==null?void 0:H.call(C),(l=C.height)==null?void 0:l.call(C))},V=_.I8().resolve(_.Qt(Vcu)),J=_.Jt("yt-thumbnail-view-model",function(){F.push("elRef.value set");
var H;(H=C.playbackRef)==null||H.call(C,{thumbnailElRef:J,thumbnail:C.data().image,thumbnailOverlays:C.data().overlays,thumbnailSize:G()})});
_.q4(function(){F.push("onInit");_.q0(function(){F.push("onCleanup")})});
var b=_.nZ(nmE),z=function(){var H,l;return(l=(H=C.aspectRatio)==null?void 0:H.call(C))!=null?l:0},Q=function(){return(C.data().image?_.Gaq(C.data().image):z())<=1&&z()===0},E=function(){return Q()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},t=function(){J.value||_.Yw(new _.Ay("Thumbnail elRef.value is null",F.join("\n")));
V&&J.value&&V(J.value)},k=function(){var H,l;
return((H=C.hovered)==null?void 0:H.call(C))&&G()!=="large"&&((l=C.data().overlays)==null?void 0:l.some(function(N){return _.Z(N,Q7S)}))},U={};
return _.W("yt-thumbnail-view-model",{class:_.py("ytThumbnailViewModelHost",C.className,function(){return UKZ(z())},function(){var H,l;
a:{var N=G(),S=(H=C.disableRounding)==null?void 0:H.call(C);H=(l=C.isClip)==null?void 0:l.call(C);if(!S&&!H)switch(N){case "large":l="ytThumbnailViewModelLarge";break a;case "small":l="ytThumbnailViewModelSmall";break a;default:l="ytThumbnailViewModelMedium";break a}l=void 0}return l},(U.ytThumbnailViewModelCinematic=Q,U)),
style:_.VA({"background-color":function(){var H,l=Q()?(H=C.data().backgroundColor)==null?void 0:H.lightTheme:void 0;return l?yk(l,"1"):void 0}}),
el:J},_.W(_.a,{cond:Q,then:function(){return _.W("div",{class:"ytThumbnailViewModelBlurredImage"},_.W(_.AC,{data:function(){return C.data().image},
alt:"",contentMode:E,targetWidth:C.width,onload:t}))}}),_.W("div",{class:"ytThumbnailViewModelImage"},_.W(_.AC,{data:function(){return C.data().image},
alt:"",contentMode:E,targetWidth:C.width,onload:t}),null),_.W(_.uC,{data:function(){return k()?void 0:C.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:Q$S,thumbnailOverlayBadgeViewModel:function(H){return _.W(_.Iqr,{data:H.data,thumbnailSize:G,isClip:C.isClip})},
thumbnailBottomOverlayViewModel:function(H){return _.W(boE,{data:H.data,thumbnailSize:G,isClip:C.isClip})},
thumbnailOverlayFullViewModel:b87,thumbnailOverlayButtonViewModel:function(H){return _.W(_.Jf7,{data:H.data,lockupExperiments:C.lockupExperiments})},
channelDisclosureViewModel:function(H){H=H.data;var l;return _.W("div",null,(l=_.I8().resolve(_.Qt(GKP)))==null?void 0:l({data:H}))}}),_.W(_.uC,{data:function(){var H;
return((H=C.hovered)==null?0:H.call(C))?C.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(H){return _.W(PW,{data:H.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:$$S}),_.W(_.uC,{data:function(){var H;return((H=C.hovered)==null?0:H.call(C))&&b()?C.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:i8G}),_.W(_.a,{cond:C.isClip,then:function(){return _.W("div",{class:"ytPinkingNsHost"},_.W("svg",{class:"ytPinkingNsPinkingLeft"},_.W("defs",null,_.W("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.W("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.W("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.W("svg",{class:"ytPinkingNsPinkingRight"},_.W("defs",null,_.W("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.W("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.W("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"jb");
_.zs.idomCompat={callbacks:{playbackRef:!0}};var uz8=_.d(function(C){var F=_.u(_.yH(-1,void 0,"RW2Ole")),G=F.next().value,V=F.next().value;_.q4(function(){var J=new mt8(V);FXS(J,C.data().thumbnails.length);_.q0(function(){if(J.isSlideshowPlaying){J.isSlideshowPlaying=!1;for(var b=J.jobIds,z=0,Q=b.length;z<Q;z++)_.gT.cancelJob(b[z]);J.jobIds.length=0}})});
return _.W("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.W(_.uC,{data:function(){return C.data().thumbnails}},{thumbnailViewModel:function(J,b){return _.W("div",{class:function(){var z=!C.data().primaryThumbnail,Q=b(),E=G(),t=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
z&&Q===0&&t.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");Q<=E&&t.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return t.join(" ")}},_.W(_.zs,{data:J.data,
disableRounding:C.disableRounding}))}}))},"kb");
uz8.idomCompat=!0;var HUs=new _.jh("DWELL_DETECTOR_REGISTRY_TOKEN");var Q97=_.d(function(C){var F=lKI(C.triggeringElement),G=function(){return!!C.data().primaryThumbnail},V=function(){var b,z=(b=C.data())==null?void 0:b.maxHeight,Q;
b=(Q=C.maxHeight)==null?void 0:Q.call(C);return z!=null&&b!=null?Math.min(z,b):b!=null?b:z},J=function(){var b=V();
if(b){var z;if(G()&&(z=C.includeStackHeight)!=null&&z.call(C)){var Q;z=((Q=C.doubleStack)==null?0:Q.call(C))?8:4}else z=0;b=b-z-1;if(!(b<0)){Q=Math;z=Q.ceil;var E,t;var k=Ae9((t=(E=C.aspectRatio)==null?void 0:E.call(C))!=null?t:0);return z.call(Q,b*k)}}};
return _.W("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.VA({height:function(){return V()?V()+"px":void 0},
width:function(){return J()?J()+"px":void 0}})},_.W(z9E,{stackEnabled:G,
thumbnailSize:function(){var b,z;return efs((b=C.width)==null?void 0:b.call(C),(z=C.height)==null?void 0:z.call(C))},
doubleStack:C.doubleStack,stackColor:function(){return C.data().stackColor},
includeStackHeight:C.includeStackHeight},_.W(_.uC,{data:function(){return C.data().primaryThumbnail}},{thumbnailViewModel:function(b){var z={};
return _.W(_.zs,{data:b.data,width:C.width,height:C.height,aspectRatio:C.aspectRatio,disableRounding:C.disableRounding,className:_.py((z.ytCollectionThumbnailViewModelHostHasStacks=G,z)),hovered:C.hovered,playbackRef:C.playbackRef})}}),_.W(_.a,{cond:function(){var b;
return F()&&((b=C.data().thumbnails)==null?void 0:b.length)},
then:function(){return _.W("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.W(uz8,{data:C.data,disableRounding:function(){return!G()}}))}})))},"lb");
Q97.idomCompat={callbacks:{playbackRef:!0}};
var z9E=_.d(function(C){var F=C.children;var G=C.stackEnabled;var V=C.thumbnailSize;var J=C.doubleStack;var b=C.stackColor;var z=C.includeStackHeight;var Q,E=(Q=_.I8().resolve(_.Qt(_.v6)))==null?void 0:Q();return _.W(_.a,{cond:G,then:function(){return _.W(eel,{data:function(){var t,k;return{experimentEnabled:!0,thumbnailSize:V(),doubleStack:J==null?void 0:J(),color:E?b==null?void 0:(t=b())==null?void 0:t.darkTheme:b==null?void 0:(k=b())==null?void 0:k.lightTheme,enableResponsiveMode:!1,includeStackHeight:z==
null?void 0:z()}}},F)},
else:function(){return F}})},"mb");var IxS=new _.jh("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var IO;_.Qm={calledOnce:!0,state:"visible"};IO={calledOnce:!0,state:"hidden"};_.EG=_.d(function(C){var F=C.data;var G=C.customCommandResolver;var V=C.className;var J=C.delayedClassName;var b=C.animationEntityKey;var z=C.isCompactWidth;var Q=C.isContentWidth;C=_.u(_.yH(!1,void 0,"pC3tUb"));var E=C.next().value,t=C.next().value,k=_.dk(b,""),U=_.$b(kro,k),H=function(){var ki,lZ;return(lZ=(ki=U())==null?void 0:ki.value)!=null?lZ:!1},l=function(){_.er(_.z3("booleanEntity",k(),{key:k(),
value:!0}));g=void 0};
b=_.u(_.Gb(H));var N=b.next().value,S=b.next().value;b=_.u(_.Gb(H));var f=b.next().value,c=b.next().value;b=_.u(_.Gb(function(){var ki;return H()?(ki=F().styleTransitionConfig)==null?void 0:ki.destinationStyle:void 0}));
var A=b.next().value,T=b.next().value,P=function(){var ki=Object.assign({},F(),A()&&{style:A()});var lZ,eq,OB=ki.label,yr=(lZ=ki.interaction)==null?void 0:(eq=lZ.accessibility)==null?void 0:eq.label;lZ=ki.iconImage?ki.label&&ki.label.content?ki.iconLeading?"leading":"trailing":"icon-only":void 0;ki={formattedButtonText:OB,accessibilityLabel:yr,style:OUS(ki.style),type:XTi(ki.style),state:"active",size:NsE(ki.size),iconPosition:lZ,disabled:!1,aTagConfig:ZUI(ki,G)};_.y("enable_desktop_vdcbg_components")&&
(ki.focused=E());return ki},g;
b=_.Wv({visibilityCallback:function(ki){var lZ,eq=(lZ=F().interaction)==null?void 0:lZ.onFirstVisible;ki&&eq&&_.wQ(eq)},
showOption:_.Qm});var r=function(){return Yes(P(),!!F().iconImage)};
C={};var C9={};V=_.py(function(){return"ytwAdButtonViewModelHost"},function(){return F().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var ki=!!F().delayedAppearanceConfig,lZ=N();
return ki?lZ?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var ki=!!F().delayedAppearanceConfig,lZ=f();
return ki?lZ?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!F().delayedAppearanceConfig||N()?J==null?void 0:J():""},(C.ytwAdButtonViewModelHostCompactWidth=function(){return z==null?void 0:z()},C),(C9.ytwAdButtonViewModelHostContentWidth=function(){return Q==null?void 0:Q()},C9),V!=null?V:"");
var Wo=function(){var ki,lZ=(ki=F().delayedAppearanceConfig)==null?void 0:ki.delayedInvisibleSeconds;lZ&&(g=_.Iy(_.gT,function(){S(!0);EB()},lZ*1E3))},EB=function(){var ki,lZ=(ki=F().delayedAppearanceConfig)==null?void 0:ki.delayedVisibleSeconds;
lZ&&(g=_.Iy(_.gT,function(){c(!0);L9()},lZ*1E3))},L9=function(){var ki,lZ=(ki=F().styleTransitionConfig)==null?void 0:ki.styleTransitionSeconds,eq,OB=(eq=F().styleTransitionConfig)==null?void 0:eq.destinationStyle;
lZ&&OB?g=_.Iy(_.gT,function(){T(OB);l()},lZ*1E3):l()};
_.q4(function(){Wo()});
_.q0(function(){g&&_.gT.cancelJob(g)});
return _.W("ad-button-view-model",{"on:focusin":_.CZ(_.y("enable_desktop_vdcbg_components")?function(){var ki=_.I8().resolve(_.Qt(_.uc));ki&&t(ki.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.CZ(_.y("enable_desktop_vdcbg_components")?function(){t(!1);return!1}:void 0),
class:V,el:_.dQ(b),style:_.VA({"transition-duration":"0.3s"})},_.W(_.a,{cond:P,then:function(){return _.W(_.Wn,{data:P,icon:function(){return _.W(_.a,{cond:function(){return F().iconImage},
then:function(ki){return _.W(_.AC,{data:ki,alt:"",targetWidth:r,targetHeight:r,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"ob");var Em8=_.d(function(C){var F=C.data;C=function(){return F().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var G=_.Wv({visibilityCallback:function(b){var z,Q=(z=F().interaction)==null?void 0:z.onFirstVisible;b&&Q&&_.wQ(Q)},
showOption:_.Qm}),V={},J={};return _.W("ad-button-group-view-model",{class:_.py("ytwAdButtonGroupViewModelHost",(V.ytwAdButtonGroupViewModelHostCompactWidth=C,V)),el:_.dQ(G)},_.W("div",{class:_.py("ytwAdButtonGroupViewModelHostSecondaryButton",(J.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=C,J))},_.W(_.uC,{data:function(){return F().secondaryAdButton}},{adButtonViewModel:function(b){return _.W(_.EG,{data:b.data})}})),_.W("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.W(_.uC,
{data:function(){return F().primaryAdButton}},{adButtonViewModel:function(b){return _.W(_.EG,{data:b.data})}})))},"pb");var WXE=_.d(function(C){var F=function(){var G;return((G=C.data())==null?void 0:G.answers)||[]};
return _.W("yt-survey-icons",{class:"ytSurveyIconsHost"},_.W("div",{class:"ytSurveyIconsHeader"},_.W("div",{class:"ytSurveyIconsTitle"},function(){var G;return(G=C.data())==null?void 0:G.text}),_.W("div",null,_.W(_.Wn,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var G;(G=C.onDismiss)==null||G.call(C)}}},
iconName:"DISMISSAL"}))),_.W("div",null,_.W("div",{class:"ytSurveyIconsAnswers"},_.W(_.Ag,{each:function(){return F()},
keyBy:"INDEX"},function(G,V){return _.W("div",null,_.W(_.Wn,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var J;(J=C.onSelect)==null||J.call(C,G(),V)}}},
icon:function(){return _.W(_.i5,{icon:function(){var J,b;return(J=G())==null?void 0:(b=J.icon)==null?void 0:b.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.W("div",{class:"ytSurveyIconsAnswersText"},_.W("div",null,function(){return F().length?F()[0].text:""}),_.W("div",null,function(){return F().length?F()[F().length-1].text:""}))))},"qb");var tcO=_.d(function(C){var F=_.dQ(_.lC(function(){var E;return(E=C.data())==null?void 0:E.rendererContext},void 0,void 0,void 0,!0)),G=_.u(_.yH(!1,void 0,"GW0yjf")),V=G.next().value,J=G.next().value,b=_.$b(k5o,function(){var E;
return(E=C.data().keys)==null?void 0:E.surveyEntityKey}),z=_.$b(Ucs,function(){var E;
return(E=C.data().keys)==null?void 0:E.surveyStateEntityKey});
_.i9("ytd-slimline-survey-show-action",function(){J(!1)});
var Q=function(){var E,t;var k=(E=z())==null?void 0:(t=E.questionStack)==null?void 0:t[0];if(k!==void 0){var U,H;return(U=b())==null?void 0:(H=U.questions)==null?void 0:H[k]}};
G={};return _.W("yt-slimline-survey-view-model",{el:F,class:_.py("ytSlimlineSurveyViewModelHost",(G.ytSlimlineSurveyViewModelCollapsed=function(){return V()},G))},_.W("div",{class:"ytSlimlineSurveyViewModelContainer"},_.W(_.a,{cond:function(){var E;
return((E=Q())==null?void 0:E.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.W(WXE,{data:function(){return Q()},
onSelect:function(E,t){var k,U;return _.I(function(H){J(!0);if(U=(k=C.data())==null?void 0:k.onSelectRating)_.wQ(U),_.er(qU8(t));_.S9(H)})},
onDismiss:function(){J(!0);var E;var t=(E=b())==null?void 0:E.dismissalFeedbackToken;E=t?{feedbackEndpoint:{feedbackToken:t}}:void 0;E&&_.ND(E,{form:{element:F.value}})}})}})))},"rb");var axr=_.d(function(C){return _.W("yt-table-view-model",{class:_.py("ytTableViewModelHost",C.className)},_.W(_.Ag,{each:function(){return C.data().rows||[]}},function(F){return _.W("div",{class:"ytTableViewModelRow"},_.W(_.Ag,{each:function(){return(F==null?void 0:F.cells)||[]}},function(G,V){var J,b={};
return _.W("span",{class:_.py((b.ytTableViewModelRowLabel=function(){return V()===0&&C.data().showHorizontalHeaders},b.ytTableViewModelCell=function(){return!C.data().showHorizontalHeaders||V()>0},b))},(J=G.text)==null?void 0:J.content)}))}))},"sb");var kK8=_.d(function(C){return _.W("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.W(_.uC,{data:function(){var F;return(F=C.data())==null?void 0:F.attachments}},{flexibleActionsViewModel:function(F){return _.W("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.W(_.YW,{data:F.data,
layout:function(){var G;return((G=C.lockupStyle())==null?void 0:G.arrangement)===1?0:1},
justifyContentOverride:function(){var G;return((G=C.lockupStyle())==null?void 0:G.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(F){return _.W("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.W(tcO,{data:F.data}))},
expandableMetadataViewModel:function(F){F=F.data;var G;return _.W("div",{class:_.py("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(G=_.I8().resolve(_.Qt(IxS)))==null?void 0:G({data:F}))},
adButtonGroupViewModel:function(F){return _.W("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.W(Em8,{data:F.data}))},
adButtonViewModel:function(F){return _.W("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.W(_.EG,{data:F.data,isCompactWidth:!0}))},
tableViewModel:function(F){return _.W("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.W(axr,{data:F.data}))}}))},"tb");var vYT=_.a8("rich_grid_min_item_width",310),LfZ=_.a8("rich_grid_max_item_width",500);var U$G=_.d(function(C){var F=C.data;return _.W("br-nz-badge-shape",{class:_.py(function(){return sJS(F().brNzRatingBadgeType)}),
role:function(){return F().accessibilityText?"img":void 0},
"aria-label":function(){return F().accessibilityText}},function(){var G;
return(G=F())==null?void 0:G.text})},"ub");_.WI=_.d(function(C){var F=function(){var G=C.data(),V,J;if(G){var b=!((V=C.workaroundShortsIsThumbnailBadge)==null||!V.call(C));V=(J=C.modern)==null?void 0:J.call(C);var z;a:switch(G.badgeStyle){case "BADGE_OVERLAY":J=!0;break a;default:J=!1}G={type:b?17:qEZ(G.badgeStyle),brNzRatingBadgeType:P_s(G.badgeStyle),text:G.badgeText,icon:G.iconName,isOverlay:J,modern:V||_.y("web_modern_badge_view_model"),accessibilityText:G.accessibilityLabel||((z=_.Z(G.rendererContext,_.$Z))==null?void 0:z.label)}}else G=
void 0;return G};
return _.W("yt-badge-view-model",{class:_.py("ytBadgeViewModelHost",C.class)},_.W(_.e_,null,_.W(_.hg,{when:function(){var G;return!((G=F())==null||!G.brNzRatingBadgeType)}},function(){return _.W(U$G,{data:function(){return F()}})}),_.W(_.hg,{when:function(){return!!F()&&!F().brNzRatingBadgeType}},function(){return _.W(_.KR,{data:function(){return F()}})})))},"vb");
_.WI.idomCompat=!0;var ReS,gYo;ReS=16/9;gYo=2/3;_.tZ=_.d(function(C){var F=C.data;var G=C.className;var V=C.imageSizeConfig;var J=C.notifyOnLoaded;var b=function(){return F().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},z=function(){var H;
return _.Hl((H=F())==null?void 0:H.rendererContext)};
C={};C=(C.ytContentPreviewImageViewModelHost=!0,C.ytContentPreviewImageViewModelCircleImage=function(){return b()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},C.ytContentPreviewImageViewModelTappable=function(){return z()},C);
var Q=function(){var H,l;return(l=(H=_.Z(F().rendererContext,_.$Z))==null?void 0:H.label)!=null?l:""},E=function(){return Ts9(F())},t=function(){var H=YET(b(),F().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",V==null?void 0:V(),oY5(E()),F().layoutWidth,F().layoutHeight),l=Object.assign({},H);
H.width&&(l.width=Math.round(H.width));H.height&&(l.height=Math.round(H.height));H.maxWidth&&(l.maxWidth=Math.round(H.maxWidth));H.maxHeight&&(l.maxHeight=Math.round(H.maxHeight));return l},k=_.w0(function(){return t().height},void 0,"CxFlJb"),U=_.w0(function(){return t().width},void 0,"lb8Jhd");
return _.W("yt-content-preview-image-view-model",{el:_.dQ(_.lC(function(){var H;return(H=F())==null?void 0:H.rendererContext})),
role:function(){return z()?"link":void 0},
tabindex:function(){return z()?0:void 0},
class:_.py(G,C,function(){var H=b();var l=V==null?void 0:V();H=H==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||H==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||H==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||H==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(l==null?void 0:l.size)!=null&&l.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(l==null?void 0:l.size)!=null&&l.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return H}),
style:function(){var H=t(),l=[];H.width&&l.push("width: "+H.width+"px");H.height&&l.push("height: "+H.height+"px");H.maxWidth&&l.push("max-width: "+H.maxWidth+"px");H.maxHeight&&l.push("max-height: "+H.maxHeight+"px");H.fullWidth&&l.push("width: 100%");return l.join(";")}},_.W(_.a,{cond:E,
then:function(H){return _.W(_.AC,{data:H,alt:Q,"data-disabled$":function(){return!Q()},
notifyOnLoaded:J,targetWidth:U,targetHeight:k,preserveWidth:function(){return!!U()},
preserveHeight:function(){return!!k()}})}}),_.W(_.uC,{data:function(){var H;
return(H=F())==null?void 0:H.overlays}},{thumbnailHoverOverlayViewModel:PW,
thumbnailOverlayButtonViewModel:_.Jf7}))},"wb");
_.tZ.idomCompat=!0;var aO=_.d(function(C){var F=C.data;var G=C.className;var V=C.useSmallLayout;var J=C.useMediumText;C=C.useHeavyText;var b={};return _.W("yt-attribution-view-model",{el:_.dQ(_.lC(function(){var z;return(z=F())==null?void 0:z.rendererContext})),
class:_.py(G,(b.ytAttributionViewModelHost=!0,b.ytAttributionViewModelMediumText=J,b.ytAttributionViewModelHeavyText=C,b))},_.W(_.a,{cond:function(){return _.Hl(F().rendererContext)},
then:function(){return _.W("button",{class:"ytAttributionViewModelTappable"},_.W(H82,{data:F,useSmallLayout:V}))},
else:function(){return _.W(H82,{data:F,useSmallLayout:V})}}))},"xb"),H82=_.d(function(C){var F=C.data;
var G=C.useSmallLayout;var V=function(){return{size:(G==null?0:G())?16:24}};
return _.W(_.WQ,null,_.W(_.uC,{data:function(){return F().contentPreviewImage}},{contentPreviewImageViewModel:function(J){return _.W(_.tZ,{data:J.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:V})}}),_.W(_.uC,{data:function(){return F().badge}},{badgeViewModel:function(J){return _.W(_.WI,{data:J.data,
class:"ytAttributionViewModelBadge",modern:!0})}}),_.W(_.a,{cond:function(){return F().text},
then:function(){return _.W(_.mn,{text:function(){return F().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.W(_.a,{cond:function(){return F().suffix},
then:function(){return _.W(_.mn,{text:function(){return F().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"yb");
aO.idomCompat=!0;var lxr,yfP,Z8u,NOS,O8y;lxr=_.d(function(C){var F=C.delimiter;var G=C.max;var V=C.index;var J=C.isStandalone;return _.W(_.a,{cond:function(){return G()-1>V()},
then:function(){var b={};return _.W("span",{class:_.py("yt-content-metadata-view-model__delimiter",(b["yt-content-metadata-view-model__delimiter--standalone"]=J,b)),"aria-hidden":!0},F)}})},"zb");
yfP=_.d(function(C){var F=C.metadataPart;var G=C.maxLines;return _.W(_.mn,{text:function(){return F().text},
linkInheritColor:!0,className:function(){return rjT(G())},
userInput:!0})},"Ab");
Z8u=_.d(function(C){var F=C.metadataPart;var G=C.maxLines;return _.W(_.a,{cond:function(){return F().tooltip},
then:function(V){return _.W("span",{title:V,role:"tooltip"},_.W(yfP,{metadataPart:F,maxLines:G}))},
else:function(){return _.W(yfP,{metadataPart:F,maxLines:G})}})},"Bb");
NOS=_.d(function(C){var F=C.metadataPart;var G=C.isOverlay;var V=C.useMediumText;var J=C.hideAvatar;var b=function(){return F().maxLines!==void 0?F().maxLines:1};
return _.W(_.WQ,null,_.W(_.uC,{data:function(){return F().avatarStack}},{avatarStackViewModel:function(z){return _.W(_.Y9,{data:z.data,
isOverlay:G,useMediumText:V,hideAvatar:J})},
badgeViewModel:_.WI}),_.W(_.a,{cond:function(){return F().leadingIcon},
then:function(z){return _.W(_.i5,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return z().name},
size:function(){return z().width}})}}),_.W(_.a,{cond:function(){return F().text},
then:function(){return _.W(Z8u,{metadataPart:F,maxLines:b})}}),_.W(_.a,{cond:function(){return F().icon},
then:function(z){return _.W(_.i5,{className:"yt-content-metadata-view-model__icon",icon:function(){return z().name},
size:function(){return z().width}})}}))},"Cb");
O8y=_.d(function(C){var F=C.metadataRow;var G=C.isInline;var V=C.delimiter;var J=C.isOverlay;var b=C.useMediumText;var z=C.extensions;var Q=function(){var t,k=z==null?void 0:(t=z())==null?void 0:t.lockupMetadata;t=F();var U,H;return!!((k==null?0:(U=k.byline)==null?0:U.hideAvatar)&&((H=_.Z(t,VCS))==null?void 0:H.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},E=function(){return F().metadataParts||[]};
C={};return _.W("div",{class:_.py("yt-content-metadata-view-model__metadata-row",(C["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=G,C["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var t,k=z==null?void 0:(t=z())==null?void 0:t.lockupMetadata;t=F();var U,H;return!!((k==null?0:(U=k.byline)==null?0:U.addPadding)&&((H=_.Z(t,VCS))==null?void 0:H.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},C["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var t;
return!!(z==null?0:(t=z())==null?0:t.lockupMetadata)&&F().badges&&!F().metadataParts},C))},_.W(_.uC,{data:function(){return F().badges}},{badgeViewModel:function(t){return _.W("div",{class:"yt-content-metadata-view-model__badge"},_.W(_.WI,{data:t.data}))}}),_.W(_.Ag,{each:E},function(t,k){return _.W(_.WQ,null,_.W(NOS,{metadataPart:t,
isOverlay:J,useMediumText:b,hideAvatar:Q}),_.W(lxr,{delimiter:V,max:function(){return E().length},
index:k,isStandalone:!1}))}),_.W(_.a,{cond:function(){return F().isSpacerRow&&!G()},
then:function(){return _.W("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Db");
_.kV=_.d(function(C){C=_.xz(C,{layout:0,isOverlay:!1});var F=C.data,G=C.layout,V=C.isOverlay,J=C.useMediumText,b=C.extensions,z=function(){return G()===0},Q=function(){var t;
return((t=F().metadataRows)==null?void 0:t.filter(function(k){var U,H=b==null?void 0:(U=b())==null?void 0:U.lockupMetadata,l,N;U=!!((H==null?0:(l=H.description)==null?0:l.hideDescription)&&((N=_.Z(k,VCS))==null?void 0:N.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var S,f;return!((H==null?0:(S=H.spacer)==null?0:S.hideSpacer)&&((f=_.Z(k,VCS))==null?void 0:f.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||U)}))||[]},E={};
return _.W("yt-content-metadata-view-model",{class:_.py(C.className,"yt-content-metadata-view-model",(E["yt-content-metadata-view-model--inline"]=z,E["yt-content-metadata-view-model--tappable"]=function(){return _.Hl(F().rendererContext)},E["yt-content-metadata-view-model--medium-text"]=J,E)),
el:_.dQ(_.lC(function(){return F().rendererContext}))},_.W(_.Ag,{each:Q},function(t,k){return _.W(_.WQ,null,_.W(O8y,{metadataRow:t,
isInline:z,delimiter:function(){return F().delimiter},
isOverlay:V,useMediumText:J,extensions:b}),_.W(_.a,{cond:function(){return z()&&!t.isSpacerRow},
then:function(){return _.W(lxr,{delimiter:function(){return F().delimiter},
max:function(){return Q().length},
index:k,isStandalone:!0})}}))}))},"Eb");
_.kV.idomCompat=!0;var XGG=_.d(function(C){var F=_.I8().resolve(_.Qt(_.v6)),G={};return _.W("yt-lockup-metadata-view-model",{class:_.py("yt-lockup-metadata-view-model",function(){a:{var V=C.lockupStyle();if(V==null?0:V.isOverlay)V="yt-lockup-metadata-view-model--overlay";else switch(V==null?void 0:V.arrangement){case 1:V="yt-lockup-metadata-view-model--horizontal";break a;default:V="yt-lockup-metadata-view-model--vertical"}}return V},function(){a:{var V=C.lockupStyle();
if(V==null?0:V.isTiny)V="yt-lockup-metadata-view-model--tiny";else switch(V==null?void 0:V.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":V="yt-lockup-metadata-view-model--compact";break a;default:V="yt-lockup-metadata-view-model--standard"}}return V},(G["yt-lockup-metadata-view-model--overlay"]=function(){var V;
return(V=C.lockupStyle())==null?void 0:V.isOverlay},G["yt-lockup-metadata-view-model--card"]=function(){var V;
return(V=C.lockupStyle())==null?void 0:V.isCard},G["yt-lockup-metadata-view-model--centered"]=function(){var V;
return(V=C.lockupStyle())==null?void 0:V.isCentered},G["yt-lockup-metadata-view-model--typography-bump"]=function(){var V;
return(V=C.lockupStyle())==null?void 0:V.typographyBump},G["yt-lockup-metadata-view-model--legacy-typography"]=function(){var V;
return(V=C.lockupStyle())==null?void 0:V.useLegacyTypography},G["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var V;
return(V=C.lockupStyle())==null?void 0:V.useRichGridLegacyTypography},G))},_.W(_.uC,{data:function(){return C.data().image}},{avatarStackViewModel:function(V){return _.W("div",{class:"yt-lockup-metadata-view-model__avatar"},_.W(_.Y9,{data:V.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(V){return _.W("div",{class:"yt-lockup-metadata-view-model__avatar"},_.W(_.g$,{data:V.data}))},
decoratedAvatarViewModel:function(V){return _.W("div",{class:"yt-lockup-metadata-view-model__avatar"},_.W(_.R7,{data:V.data}))}}),_.W("div",{class:"yt-lockup-metadata-view-model__text-container"},_.W("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var V;return(V=C.data().title)==null?void 0:V.content}},_.W(_.a,{cond:function(){return C.data().title},
then:function(V){return _.W(_.zV,{command:C.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.VA({color:function(){var J;a:{var b=C.lockupStyle();var z=(J=C.hovered)==null?void 0:J.call(C);J=!(F==null||!F());var Q;if((b==null?0:(Q=b.onFocusEffect)==null?0:Q.textPrimaryColor)&&z&&(b=J?b.onFocusEffect.textPrimaryColor.darkTheme:b.onFocusEffect.textPrimaryColor.lightTheme)){b=Zt(b);break a}b=void 0}return b}}),
ariaLabel:C.lockupAccessibilityLabel},_.W(_.mn,{text:V,userInput:!0}))}})),_.W("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.VA({color:function(){var V;a:{var J=C.lockupStyle();var b=(V=C.hovered)==null?void 0:V.call(C);V=!(F==null||!F());var z;if((J==null?0:(z=J.onFocusEffect)==null?0:z.textSecondaryColor)&&b&&(J=V?J.onFocusEffect.textSecondaryColor.darkTheme:J.onFocusEffect.textSecondaryColor.lightTheme)){J=Zt(J);break a}J=void 0}return J}})},_.W(_.uC,{data:function(){return C.data().metadata}},{contentMetadataViewModel:function(V){return _.W(_.kV,{data:V.data,
layout:1,useMediumText:function(){var J,b;return((J=C.lockupStyle())==null?void 0:J.typographyBump)||((b=C.lockupStyle())==null?void 0:b.useRichGridLegacyTypography)},
extensions:function(){var J,b,z,Q;return{lockupMetadata:{byline:{hideAvatar:((J=C.lockupStyle())==null?void 0:J.arrangement)===0,addPadding:((b=C.lockupStyle())==null?void 0:b.arrangement)===1},description:{hideDescription:!((z=C.lockupStyle())==null||!z.compactMetadata)},spacer:{hideSpacer:!((Q=C.lockupStyle())==null||!Q.compactMetadata)}}}}})}})),_.W(_.uC,{data:function(){return C.data().attribution}},{attributionViewModel:function(V){return _.W("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.W(aO,{data:V.data,
useSmallLayout:!0}))}})),_.W("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.W(_.uC,{data:function(){return C.data().menuButton}},{buttonViewModel:function(V){return _.W(_.tS,{data:V.data,
buttonOverrides:function(){var J;return((J=C.lockupStyle())==null?0:J.isOverlay)?{style:"overlay"}:void 0}})}})))},"Fb");
XGG.idomCompat=!0;var wGu=_.d(function(C){var F=_.Jt("notification-multi-action-renderer");_.s0(function(){requestAnimationFrame(function(){_.J5(F.value)})});
var G={},V={},J={};return _.W("notification-multi-action-renderer",{class:_.py("ytNotificationMultiActionRendererHost",(G.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var b;return(b=C.useLegacyShelfStyle)==null?void 0:b.call(C)},G)),
el:F},_.W("span",{"aria-live":"polite",class:_.py("ytNotificationMultiActionRendererTextContainer",(V.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var b;return(b=C.useLegacyShelfStyle)==null?void 0:b.call(C)},V))},_.W(_.mn,{text:function(){return C.data().responseText}})),_.W("div",{class:_.py("ytNotificationMultiActionRendererButtonContainer",(J.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var b;
return(b=C.useLegacyShelfStyle)==null?void 0:b.call(C)},J))},_.W(_.uC,{data:function(){var b;
return(b=C.data().buttons)==null?void 0:b.map(function(z){if(z=z.buttonRenderer){var Q,E=Object,t=E.assign,k=(Q=z.icon)==null?void 0:Q.iconType;Q=(Q=z.command||z.serviceEndpoint||z.navigationEndpoint)?{innertubeCommand:Q}:void 0;z={buttonViewModel:t.call(E,{},{iconName:k,onTap:Q,trackingParams:z.trackingParams,titleFormatted:z.text?_.U9(z.text):void 0},DKT(z))}}else z=void 0;return z}).filter(function(z){return!!z})}},{buttonViewModel:function(b,z){return _.W("div",null,_.W(_.tS,{data:b.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var Q;return((Q=C.useModernStyles)==null?0:Q.call(C))?{type:z()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Hb");var Mcl=_.d(function(C){var F=_.Jt("notification-text-renderer");_.s0(function(){requestAnimationFrame(function(){_.J5(F.value)})});
return _.W("notification-text-renderer",{el:F,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.W(_.mn,{text:function(){return C.data().successResponseText}}))},"Jb");_.UG=_.d(function(C){var F=_.$b(JXW,function(){var V;return pTS((V=C.contentId)==null?void 0:V.call(C))}),G=function(){var V;
return _.Z((V=F())==null?void 0:V.command,_.MS)};
return _.W(_.a,{cond:function(){var V;if(!(V=G())){var J;V=_.Z((J=F())==null?void 0:J.command,UqO)}return V},
then:function(){return _.W(_.a,{cond:G,then:function(){var V={};return _.W("div",{class:_.py("ytDismissibleItemReplacedContent",function(){var J;return mK5((J=C.aspectRatio)==null?void 0:J.call(C))})},_.W("div",{class:_.py((V.ytDismissibleItemAspectRatioContainer=function(){var J;
return((J=C.aspectRatio)==null?void 0:J.call(C))!==void 0},V))},_.W(_.uC,{data:function(){var J;
return(J=G())==null?void 0:J.item}},{notificationMultiActionRenderer:function(J){return _.W(wGu,{data:J.data,
useModernStyles:C.useModernStyle,useLegacyShelfStyle:C.useLegacyShelfStyle})},
notificationTextRenderer:Mcl})))}})},
else:C.children})},"Kb");_.Sxo=_.d(function(C){var F=C.data;var G=C.customCommandResolver;C=_.dQ(_.Wv({visibilityCallback:function(b){var z,Q=(z=F().interaction)==null?void 0:z.onFirstVisible;b&&Q&&_.wQ(Q)},
showOption:_.Qm}));var V=function(){var b;return((b=F().interaction)==null?0:b.onTap)?function(z){var Q;yjT(z,(Q=F().interaction)==null?void 0:Q.onTap,G)}:void 0},J=function(){var b,z=F(),Q=V(),E=(b=_.Z(F().rendererContext,_.$Z))==null?void 0:b.label;
a:switch(z.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":b=1;break a;default:b=0}return{size:FT9(z.size),type:b,onTap:Q,accessibilityText:E}};
return _.W("ad-avatar-view-model",{class:function(){var b;return((b=F().interaction)==null?0:b.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:C},_.W(_.a,{cond:function(){return F().image},
then:function(b){return _.W(zYO,{data:J,image:b})}}))},"Lb");_.HI=_.d(function(C){var F=_.xz(C,{hasDot:!1,usedInMasthead:!1}),G=Object.assign({},F),V=F.data,J=F.hasDot;C=F.customCommandResolver;var b=F.usedInMasthead,z=(delete G.data,delete G.hasDot,delete G.customCommandResolver,delete G.usedInMasthead,G);F=function(){return V().style};
F!==void 0&&F!==null||_.CD(Error("Hh"));C=_.OI(function(){return V().interaction},C);
return _.W("ad-badge-view-model",{class:_.py(function(){var Q;return((Q=V().interaction)==null?0:Q.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var Q=z.adRenderingContextType(),E=b();
V();return Q!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||E?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.dQ(C)},_.W(_.KR,{data:function(){var Q;V();return{type:2,text:(Q=V().label)==null?void 0:Q.content,adsIncludeDot:J(),isOverlay:V().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Mb");var LX2;_.l7=_.d(function(C){var F=C.data;var G=C.customCommandResolver;var V=C.adRenderingContextType;return _.W("ad-details-line-view-model",{class:function(){var J;return((J=F().interaction)==null?0:J.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.dQ(_.Wv({visibilityCallback:function(J){var b,z=(b=F().interaction)==null?void 0:b.onFirstVisible;J&&z&&_.wQ(z)},
showOption:_.Qm}),_.OI(function(){return F().interaction},G))},_.W(_.a,{cond:function(){return F().style},
then:function(J){return _.W(_.Ag,{each:function(){var b;return((b=F())==null?void 0:b.attributes)||[]},
keyBy:"INDEX"},function(b){return _.W(LX2,{attribute:b,style:J,adRenderingContextType:function(){return V()}})})}}))},"Nb");
LX2=_.d(function(C){var F=C.attribute;var G=C.style;var V=C.adRenderingContextType;return _.W(_.a,{cond:function(){return F().text},
then:function(J){return _.W(_.mn,{text:J,className:function(){var b=V();G();return b==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Ob");var BO2=_.d(function(C){var F=C.data;var G=C.typographyBump;var V=function(){return F().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
C={};return _.W(_.WQ,null,_.W("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.W(_.mn,{text:function(){return F().headline},
className:_.py("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(C.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return V==null?void 0:V()},C.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(G==null?void 0:G())&&!(V==null?0:V())},C)),
linkInheritColor:!0}),_.W(_.a,{cond:function(){return F().description},
then:function(J){var b={};return _.W(_.mn,{text:J,className:_.py("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(b.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return V==null?void 0:V()},b.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(G==null?void 0:G())&&!(V==null?0:V())},b)),
linkInheritColor:!0})}}),_.W(_.a,{cond:function(){return F().secondaryDescription},
then:function(J){var b={};return _.W(_.mn,{text:J,className:_.py("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(b.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return G==null?void 0:G()},b)),
linkInheritColor:!0})}}),_.W("div",{class:function(){return V()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.W(_.a,{cond:function(){return F().adAvatar},
then:function(){return _.W("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.W(_.uC,{data:function(){return F().adAvatar}},{adAvatarViewModel:_.Sxo}))}}),_.W(_.uC,{data:function(){return F().adBadge}},{adBadgeViewModel:function(J){return _.W(_.HI,{data:J.data,
hasDot:function(){return!!F().adDetailsLine},
adRenderingContextType:function(){return F().adRenderingContextType}})}}),_.W(_.uC,{data:function(){return F().adDetailsLine}},{adDetailsLineViewModel:function(J){return _.W(_.l7,{data:J.data,
adRenderingContextType:function(){return F().adRenderingContextType}})}}))),_.W("div",{class:function(){return V()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.W(_.uC,{data:function(){return F().menu}},{buttonViewModel:function(J){return _.W(_.tS,{data:J.data,
buttonOverrides:function(){a:switch(F().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var b="S";break a;default:b="M"}return{size:b}}})}})))},"Pb"),vmO=_.d(function(C){var F=C.data;
var G=C.noBottomMargin;var V=C.useVideoLockupTopPadding;var J=C.typographyBump;C={};C=_.py("ytwFeedAdMetadataViewModelHostMetadata",(C.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return G==null?void 0:G()},C.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return V==null?void 0:V()},C));
var b=function(){return F().adBadge};
b!==void 0&&b!==null||_.CD(Error("Ih"));b={};var z={};return _.W(_.WQ,null,_.W(_.a,{cond:function(){return F().adAvatar},
then:function(){return _.W("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.W(_.uC,{data:function(){return F().adAvatar}},{adAvatarViewModel:function(Q){return _.W(_.Sxo,{data:Q.data})}}))}}),_.W("div",{class:C},_.W("div",{class:_.py("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(b.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return J==null?void 0:J()},b.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(J==
null?void 0:J())&&_.y("web_enable_typography_bump_v2")},b))},_.W(_.mn,{text:function(){return F().headline},
linkInheritColor:!0})),_.W(_.a,{cond:function(){return F().description},
then:function(Q){return _.W(_.mn,{text:Q,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.W("div",{class:function(){return F().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.y("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.W(_.uC,{data:function(){return F().adBadge}},
{adBadgeViewModel:function(Q){return _.W(_.HI,{data:Q.data,
hasDot:function(){return!!F().adDetailsLine},
adRenderingContextType:function(){return F().adRenderingContextType}})}}),_.W(_.uC,{data:function(){return F().adDetailsLine}},{adDetailsLineViewModel:function(Q){return _.W(_.l7,{data:Q.data,
adRenderingContextType:function(){return F().adRenderingContextType}})}})),_.W(_.a,{cond:function(){return F().secondaryDescription},
then:function(Q){return _.W(_.mn,{text:Q,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.W("div",{class:_.py("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(z.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return V==null?void 0:V()},z))},_.W(_.uC,{data:function(){return F().menu}},{buttonViewModel:_.tS})))},"Qb"),ym=_.d(function(C){var F=C.data;
var G=C.noBottomMargin;var V=C.listenToTapEvent;var J=C.setTouchEndHandler;var b=C.useVideoLockupTopPadding;var z=C.typographyBump;C=_.Wv({visibilityCallback:function(U){var H,l=(H=F().interaction)==null?void 0:H.onFirstVisible;U&&l&&_.wQ(l)},
showOption:_.Qm});var Q=_.OI(function(){return F().interaction},void 0,function(){return V==null?void 0:V()}),E=_.u(_.yH(!1,void 0,"a2FSrb")),t=E.next().value,k=E.next().value;
E=_.CZ(function(U){(J==null?0:J())&&!t()&&(U.currentTarget.click(),k(!0),setTimeout(function(){k(!1)},100));
return!1});
return _.W("feed-ad-metadata-view-model",{class:function(){var U;return((U=F().interaction)==null?0:U.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.dQ(C,Q),"on:touchend":E},_.W(_.e_,null,_.W(_.hg,{when:function(){return F().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.W(BO2,{data:F,
typographyBump:z})}),_.W(_.hg,{when:function(){return F().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.W(vmO,{data:F,
noBottomMargin:G,useVideoLockupTopPadding:b,typographyBump:z})})))},"Rb");var fxE,h9S;fxE=_.SV.inlinePreviewEnabledSelector;_.ZM=_.d(function(C){return _.W("yt-lockup-view-model",{class:_.py(C.className,"yt-lockup-view-model--wrapper")},_.W(_.UG,{contentId:function(){return C.data().contentId},
useModernStyle:!0,aspectRatio:function(){var F,G;return((F=C.containerType)==null?void 0:F.call(C))!==3?dKE(C.data().contentType,(G=C.force16By9ThumbnailAspectRatio)==null?void 0:G.call(C)):void 0}},function(){return _.W(h9S,Object.assign({},C))}))},"Sb");
h9S=_.d(function(C){C=_.xz(C,{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 F=C.data,G=C.containerLayoutConfig,V=C.containerType,J=C.sizing,b=C.protectBackground,z=C.typographyBump,Q=C.force16By9ThumbnailAspectRatio,E=C.thumbnailFixedWidth,t=C.thumbnailTargetWidth,k=C.lockupExperiments,U=C.elementsPerRow,
H=_.I8().resolve(_.Qt(_.v6));C=_.dQ(_.lC(function(){var OB;return(OB=F())==null?void 0:OB.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL","YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0));var l=_.nZ(fxE),N=_.I8().resolve(_.Qt(Dtl)),S=N?{}:void 0,f=function(){var OB,yr,Rl;return(Rl=(yr=_.Z((OB=F())==null?void 0:OB.rendererContext,_.$Z))==null?void 0:yr.label)!=null?Rl:void 0},c=function(){var OB;
return(OB=_.Z(F().metadata,_.iEl))==null?void 0:OB.endorsement},A=function(){var OB=G==null?void 0:G(),yr;
if(OB==null?0:OB.containerType){var Rl=(yr=F())==null?void 0:yr.contentType;yr=k();var w2=z(),jG=t(),Il=b();OB=Object.assign({},xKA(hew(OB),wv(OB.responsiveSize),w2,Rl,OB.force16By9ThumbnailAspectRatio,jG,Il,yr),{thumbnailFixedWidth:OB.contentPreviewWidth})}else OB=xKA(V(),J(),z(),(Rl=F())==null?void 0:Rl.contentType,Q(),t(),b(),k());return OB};
N&&S&&N({enabled:function(){return l()},
itemPlaybackModel:function(){return F().itemPlayback},
thumbnailElRef:function(){return S.thumbnailElRef},
containerElRef:C,options:function(){var OB=S.thumbnailOverlays||[],yr=c(),Rl;!yr||((Rl=k())==null?0:Rl.onFocusEffect)||OB.push(yr);var w2,jG;return{thumbnail:S.thumbnail,thumbnailOverlays:OB,accessibilityText:f(),thumbnailSize:S.thumbnailSize,enableRounding:A().isCollection,containPlayerWithinThumbnail:A().isCollection,mouseleaveCallback:function(){g(!1)},
trackingParams:(w2=_.Z(F().rendererContext,_.$e))==null?void 0:(jG=w2.loggingDirectives)==null?void 0:jG.trackingParams}}});
var T=0;N=_.u(_.yH(!1,void 0,"dCI3sc"));var P=N.next().value,g=N.next().value;N=_.u(_.yH(!1,void 0,"fnxRwc"));var r=N.next().value,C9=N.next().value;N=_.CZ(function(){r()?(_.gT.cancelJob(T),T=_.gT.addJob(function(){g(!0)},8,32)):g(!0);
return!0});
var Wo=_.CZ(function(OB){OB=OB.relatedTarget;var yr=document.querySelector("ytd-video-preview");OB&&yr&&yr.contains(OB)||(T&&(_.gT.cancelJob(T),T=0),g(!1))});
_.q0(function(){T&&(_.gT.cancelJob(T),T=0)});
var EB=j$Z(function(){C9(!0)}),L9=EB.touchFeedbackEvents,ki=EB.touchFeedbackOnPointerUp,lZ=EB.touchFeedbackOnPointerDown;
EB=EB.touchFeedbackOnPointerLeave;var eq={};return _.W(_.WQ,null,_.W("div",{el:C,class:_.py("yt-lockup-view-model",function(){a:{var OB=A();if(OB.isOverlay)OB="yt-lockup-view-model--overlay";else switch(OB.arrangement){case 1:OB="yt-lockup-view-model--horizontal";break a;default:OB="yt-lockup-view-model--vertical"}}return OB},function(){a:{var OB=A();
if(OB.isOverlay)OB="yt-lockup-view-model--overlay";else{switch(OB.collectionStackNumber){case 1:OB="yt-lockup-view-model--collection-stack-1";break a;case 2:OB="yt-lockup-view-model--collection-stack-2";break a}OB=void 0}}return OB},function(){var OB;
return _.Kf5((OB=F())==null?void 0:OB.contentId)},(eq["yt-lockup-view-model--card"]=function(){return A().isCard},eq["yt-lockup-view-model--compact"]=function(){return A().isTiny||A().sizing!=="STANDARD"},eq["yt-lockup-view-model--protect-background"]=b,eq["yt-lockup-view-model--add-margins"]=function(){return A().addMarginForFullbleed},eq["yt-lockup-view-model--centered"]=function(){return A().isCentered},eq["yt-lockup-view-model--fullbleed"]=function(){return A().fullbleed},eq["yt-lockup-view-model--single-column-grid"]=
function(){return U()===1&&V()===2},eq["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var OB;
return(OB=k())==null?void 0:OB.useRichGridLegacyMargin},eq)),
"on:mousedown":lZ,"on:mouseleave":Wo,"on:mouseup":ki,"on:mouseover":N,"on:touchstart":lZ,"on:touchend":ki,"on:pointerleave":EB},_.W(_.QR,{model:function(){var OB,yr,Rl=Object,w2=Rl.assign,jG=(S==null?void 0:S.thumbnailSize)||"small";a:{var Il=A();var Bu=!!(c()&&((OB=k())==null?0:OB.onFocusEffect));switch((S==null?void 0:S.thumbnailSize)||"small"){case "small":OB=4;break;case "large":OB=12;break;default:OB=8}if(Bu)Il=OB+24;else{switch(Il.collectionStackNumber){case 1:Il=OB+8;break a;case 2:Il=OB+12;
break a}Il=void 0}}jG={thumbnailSize:jG,triggerEvents:!0,customTopExtend:Il};var vu;Il=(yr=k())==null?void 0:yr.onFocusEffect;Bu=!(H==null||!H());if(Il){var Zr,k_;yr=Bu?(Zr=Il.onFocusColor)==null?void 0:Zr.darkTheme:(k_=Il.onFocusColor)==null?void 0:k_.lightTheme;var $i,Vr;Zr=Bu?($i=Il.keyLightColor)==null?void 0:$i.darkTheme:(Vr=Il.keyLightColor)==null?void 0:Vr.lightTheme;var Um;$i=Bu?(vu=Il.touchResponseColor)==null?void 0:vu.darkTheme:(Um=Il.touchResponseColor)==null?void 0:Um.lightTheme;vu={background:yr!==
void 0?Zt(yr):void 0,keyLight:Zr!==void 0?Zt(Zr):void 0};Um=[];Vr=_.u(Il.lightingTechniques||[]);for(Zr=Vr.next();!Zr.done;Zr=Vr.next())switch(Zr.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":Um.push(2);break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":Um.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":Um.push(3)}vu={hoverEffect:{palette:vu,lightingTechniques:Um},touchEffect:{palette:{background:$i!==void 0?Zt($i):void 0}}}}else vu={};return w2.call(Rl,{},jG,vu)},
hovered:function(){return P()},
pointerDownEvent:L9.pointerDownEvent,pointerUpEvent:L9.pointerUpEvent,pointerLeaveEvent:L9.pointerLeaveEvent}),_.W(_.a,{cond:function(){var OB;return c()&&P()&&((OB=k())==null?void 0:OB.onFocusEffect)},
then:function(){return _.W("div",{class:"yt-lockup-view-model__endorsement"},_.W(_.uC,{data:function(){return c()}},{attributionViewModel:function(OB){return _.W(aO,{data:OB.data,
useHeavyText:!0})}}))}}),_.W(_.zV,{command:function(){var OB;
return _.UI((OB=F())==null?void 0:OB.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return E()&&A().arrangement===1?"width: "+E():""}},_.W(_.uC,{data:function(){var OB;
return(OB=F())==null?void 0:OB.contentImage}},{thumbnailViewModel:function(OB){return _.W(_.zs,{data:OB.data,
aspectRatio:function(){return A().aspectRatio},
disableRounding:function(){return A().disableRounding},
width:t,hovered:function(){return P()&&!(l()&&F().itemPlayback)},
isClip:function(){var yr;return((yr=F())==null?void 0:yr.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:kyq(S),lockupExperiments:function(){return k()}})},
collectionThumbnailViewModel:function(OB){return _.W(Q97,{data:OB.data,aspectRatio:function(){return A().aspectRatio},
disableRounding:function(){return A().disableRounding},
width:t,doubleStack:function(){return A().collectionStackNumber===2},
hovered:function(){return P()&&!(l()&&F().itemPlayback)},
playbackRef:kyq(S)})},
decoratedAvatarViewModel:_.R7})),_.W("div",{class:"yt-lockup-view-model__metadata"},_.W(_.uC,{data:function(){var OB;return(OB=F())==null?void 0:OB.metadata}},{lockupMetadataViewModel:function(OB){return _.W(XGG,{data:OB.data,
hovered:P,lockupStyle:A,lockupCommand:function(){var yr;return _.UI((yr=F())==null?void 0:yr.rendererContext)},
lockupAccessibilityLabel:function(){return f()}})},
feedAdMetadataViewModel:function(OB){return _.W(ym,{data:OB.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:z})}}),_.W(_.uC,{data:function(){var OB;
return(OB=F())==null?void 0:OB.attachmentSlot}},{lockupAttachmentsViewModel:function(OB){return _.W(kK8,{data:OB.data,
lockupStyle:A})}}))),_.W(_.uC,{data:function(){var OB;
return(OB=F())==null?void 0:OB.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(OB){return _.W(kK8,{data:OB.data,
lockupStyle:A})}}))},"Tb");
_.ZM.idomCompat=!0;_.gQ(_.ZM,"yt-lockup-view-model",{props:{data:_.CJ,containerLayoutConfig:_.CJ,containerType:_.CJ,sizing:_.CJ,protectBackground:_.CJ,typographyBump:_.CJ,thumbnailFixedWidth:_.CJ,thumbnailTargetWidth:_.CJ,force16By9ThumbnailAspectRatio:_.CJ,className:_.CJ,lockupExperiments:_.CJ,elementsPerRow:_.CJ}});var JFo,cfl=_.d(function(C){var F=_.xz(C,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),G=F.text,V=F.alwaysShowTruncationText;C=F.truncationText;var J=F.onTextClick,b=F.maxLines,z=F.disableTextMask,Q=F.textStyle,E=F.accessibilityLabel,t=F.textSize,k=F.alwaysTruncateAtMaxLines,U=F.expandOnClick;F=_.u(_.yH(!1,void 0,"EzA1q"));var H=F.next().value,l=F.next().value;F=_.CZ(function(){U()&&l(!H());J==null||J()});
var N=function(){a:switch(t()){case "medium":var r=2;break a;case "large":r=2.2;break a;default:r=1.8}return r},S=nIq(G,function(){return H()?Infinity:b()},N,z,k,H),f=S.isTruncated;
G=S.displayText;k=S.contentRef;var c=S.hiddenRef,A=S.placeholderTruncationTextRef,T=S.hiddenTruncationTextRef;S=S.truncationTextRef;var P={},g={};return _.W("truncated-text",{class:_.py((P["yt-truncated-text"]=!0,P["yt-truncated-text--overlay"]=function(){return Q()==="overlay"},P["yt-truncated-text--medium-text"]=function(){return t()==="medium"},P["yt-truncated-text--large-text"]=function(){return t()==="large"},P["yt-truncated-text--primary-text"]=function(){return Q()==="primary-text"},P)),
"on:click":F,style:function(){return"line-height: "+N()+"rem;"}},_.W("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:k,style:function(){return H()?"":"max-height: "+b()*N()+"rem;"}},_.W(_.mn,{text:G}),_.W("button",{"aria-disabled":!0,
disabled:!0,class:"yt-truncated-text__inline-button",el:A,style:function(){return"line-height: "+N()+"rem;"}},_.W(_.mn,{text:C}))),_.W("truncated-text-content",{class:_.py("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:c,style:function(){return H()?"":"max-height: "+b()*N()+"rem;"},
"aria-hidden":"true"},_.W(_.mn,{text:G}),_.W("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:T,style:function(){return"line-height: "+N()+"rem;"}},_.W(_.mn,{text:C}))),_.W("button",{"aria-label":E,
class:_.py((g["yt-truncated-text__absolute-button"]=function(){return!z()},g["yt-truncated-text__bottom-button"]=function(){return z()},g["yt-truncated-text--hidden"]=function(){return!(!H()&&(V!=null&&V()||f()))},g)),
el:S,style:function(){return"line-height: "+N()+"rem;"}},_.W(_.mn,{text:C})))},"Vb");
cfl.idomCompat={callbacks:{onTextClick:!0}};var d$$=_.d(function(C){var F=C.data;C=C.className;var G=_.w0(function(){return zYs(F())},void 0,"uDhDke"),V=_.W(_.WQ,null,_.W(_.a,{cond:function(){return F().heroText||F().image},
then:function(){return _.W(Af$,{data:F})}}),_.W(e9P,{data:F,
sizeSmall:function(){return F().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.W("yt-video-attribute-view-model",{class:C},_.W("div",{class:function(){var J=F();a:switch(J.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var b="yt-video-attribute-view-model--vertical";break a;default:b="yt-video-attribute-view-model--horizontal"}a:switch(J.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var z="yt-video-attribute-view-model--image-small";break a;default:z="yt-video-attribute-view-model--image-large"}a:switch(J.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var Q=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":Q="yt-video-attribute-view-model--image-avatar";break a;default:Q=""}a:switch(J.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var E="yt-video-attribute-view-model--metadata-header";break a;default:E=""}a:switch(J.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var t="yt-video-attribute-view-model--container-card";break a;default:t=""}return["yt-video-attribute-view-model",b,z,
Q,E,t,zYs(J)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.VA({"background-color":function(){var J=F();if(J.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var b="";else{b=J.lightColorPalette;J=J.darkColorPalette;var z,Q=((z=_.I8().resolve(_.Qt(_.v6)))==null?0:z())&&J?J:b;b=(b=Q==null?void 0:Q.section2Color)?_.lE(b):""}return b}})},_.W(_.a,{cond:G,
then:function(){return _.W(_.zV,{className:"yt-video-attribute-view-model__content-container",command:G,role:"group",ariaLabel:function(){return F().title}},V)},
else:function(){return _.W("div",{class:"yt-video-attribute-view-model__content-container"},V)}})))},"Wb");
d$$.idomCompat=!0;var Af$=_.d(function(C){var F=C.data;var G,V=(G=_.I8().resolve(_.Qt(_.v6)))==null?void 0:G(),J=function(){return V&&F().darkThemeImage?F().darkThemeImage:F().image},b=_.w0(function(){return Q$i(F())},void 0,"UDqj0b");
return _.W("div",{class:"yt-video-attribute-view-model__hero-section"},_.W(_.e_,null,_.W(_.hg,{when:J},function(){return _.W(_.AC,{data:function(){return J()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.W(_.hg,{when:function(){return F().heroText}},function(){return _.W("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.W("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return F().heroText}))})),_.W(_.a,{cond:function(){return F().overflowMenuOnTap},
then:function(){return _.W("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.W(_.Wn,{data:b,iconName:"MORE_VERT"}))}}))},"Xb");
Af$.idomCompat=!0;var e9P=_.d(function(C){var F=C.data;C=C.sizeSmall;var G=function(){return F().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},V=_.w0(function(){return X1(_.O9({innertubeCommand:zYs(F())}))?"link":zYs(F())?"button":"group"},void 0,"e2MmYe"),J={};
return _.W("div",{class:_.py("yt-video-attribute-view-model__metadata",(J["yt-video-attribute-view-model--small-font"]=C,J)),role:V},_.W("h1",{class:"yt-video-attribute-view-model__title"},function(){return F().title}),_.W(_.a,{cond:function(){return F().subtitle},
then:function(){return _.W("h4",{class:"yt-video-attribute-view-model__subtitle"},_.W(_.a,{cond:G,then:function(){return _.W(cfl,{text:function(){return uyf(F().subtitle)},
truncationText:function(){return uyf(F().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.W("span",null,function(){return F().subtitle})}}))}}),_.W(_.a,{cond:function(){return F().secondarySubtitle},
then:function(b){return _.W("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.W(_.mn,{text:function(){var z=b();if(z!=null&&z.attachmentRuns){for(var Q=[],E=_.u(z.attachmentRuns),t=E.next();!t.done;t=E.next())t=t.value,t.element&&Q.push(Object.assign({},t,{element:Object.assign({},t.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));z=Object.assign({},z,{attachmentRuns:Q})}return z}}))}}),_.W(_.uC,
{data:function(){return F().buttonViewModel}},{buttonViewModel:function(b){return _.W(_.tS,{data:b.data,
className:"yt-video-attribute-view-model__button"})}}))},"Yb");
e9P.idomCompat=!0;_.gQ(d$$,"yt-video-attribute-view-model",{props:{data:_.CJ,className:_.CJ}});var NR=function(){var C=_.B.apply(this,arguments)||this;C.useHighlightStyling=_.y("web_enable_deeper_metadata_highlight_styling");C.isSearch=!1;C.JSC$15274_lastScrollContainerWidth=NaN;C.pageLoadingFromNavigation=!1;C.currentIndex=0;C.supportComponentResize=!1;return C};
_.O(NR,_.B);_.n=NR.prototype;
_.n.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}}}}}};
_.n.attached=function(){document.addEventListener("yt-page-type-changed",_.Gp(this,this.onPageChange))};
_.n.detached=function(){document.removeEventListener("yt-page-type-changed",_.Gp(this,this.onPageChange))};
_.n.getItemsPath=function(){return"data.cards"};
_.n.onIronResize=function(){this.updateListStyles()};
_.n.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var C;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(C=this.data)==null?void 0:C.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.y("problem_walkthrough_sd")&&!!this.centerItems};
_.n.computeCardListStyle=function(C){return C||null};
_.n.computeEmpty=function(C){return!this.get("cards.length",C)};
_.n.computeThumbnailStyle=function(C){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",C)||null};
_.n.computeHasSubtitle=function(C){return!!this.get("header.richListHeaderRenderer.subtitle",C)};
_.n.computeInitialCountNumber=function(C){return this.hasSquareMiniApp&&C==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&C==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:C==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:C==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:C==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&C==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.n.computeUseFloorScrolling=function(C){return C==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.n.computeHasGameCard=function(C){return(C=this.get("cards",C))?C.some(function(F){return F.gameCardRenderer}):!1};
_.n.computeCenterHeaderTitle=function(C){return!(C==null||!C.centerHeaderTitle)};
_.n.computeHasPortraitMiniApp=function(C){return(C=C==null?void 0:C.cards)?C.some(function(F){return F.miniGameCardViewModel&&F.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.n.computeHasSquareMiniApp=function(C){return(C=C==null?void 0:C.cards)?C.some(function(F){return F.miniGameCardViewModel&&F.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.n.computeHasSkinnyWidthPortraitMiniApp=function(C){return(C=C==null?void 0:C.cards)?C.some(function(F){return F.miniGameCardViewModel&&F.miniGameCardViewModel.width===135}):!1};
_.n.computeCenterItems=function(C){return!!C};
_.n.computeHasInfoPanel=function(C){var F;return C==null?void 0:(F=C.cards)==null?void 0:F.some(function(G){return G.infoPanelContentRenderer})};
_.n.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.n.getItemByIndex=function(C){var F=this.items.children;return F&&F.length>C?F[C]:void 0};
_.n.onPageChange=function(){var C=this;this.pageLoadingFromNavigation=!0;_.gT.addJob(function(){C.pageLoadingFromNavigation=!1;_.KX(C.hostElement,"yt-terminate-video-preview-action")},8)};
_.n.updateListStyles=function(){if(_.y("problem_walkthrough_sd")&&this.JSC$15274_scrollContainer!==void 0){var C=this.JSC$15274_scrollContainer.clientWidth;C!==this.JSC$15274_lastScrollContainerWidth&&(this.JSC$15274_lastScrollContainerWidth=C,_.jr(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(C*.8,415)+"px"}),_.oo(this.hostElement,"iron-resize"))}};
_.I6.Object.defineProperties(NR.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.y("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var C,F,G;return!!((C=this.data)==null?0:(F=C.cards)==null?0:(G=F[0])==null?0:G.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var C,F,G;return!!((C=this.data)==null?0:(F=C.cards)==null?0:(G=F[0])==null?0:G.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var C,F,G;return _.y("enable_desktop_amsterdam_info_panels")&&!!((C=this.data)==null?0:(F=C.cards)==null?0:(G=F[0])==null?0:G.infoPanelContentRenderer)}}});
NR.prototype.dataChanged=NR.prototype.dataChanged;NR.prototype.onIronResize=NR.prototype.onIronResize;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],NR.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],NR.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.QU.YtdHorizontalListBehavior),_.Y("design:type",Object)],NR.prototype,"ytdHorizontalListBehavior",void 0);
_.R([_.w(_.T6),_.Y("design:type",Object)],NR.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],NR.prototype,"data",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],NR.prototype,"useCustomColors",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],NR.prototype,"useHighlightStyling",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.Y("design:type",Object)],NR.prototype,"cardListStyle",void 0);_.R([_.L({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.Y("design:type",Boolean)],NR.prototype,"empty",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.Y("design:type",Boolean)],NR.prototype,"hasSubtitle",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.Y("design:type",Boolean)],NR.prototype,"thumbnailStyle",void 0);_.R([_.L({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.Y("design:type",Boolean)],NR.prototype,"hasGameCard",void 0);_.R([_.L({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.Y("design:type",Boolean)],NR.prototype,"centerHeaderTitle",void 0);
_.R([_.L({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.Y("design:type",Boolean)],NR.prototype,"hasPortraitMiniApp",void 0);_.R([_.L({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.Y("design:type",Boolean)],NR.prototype,"hasSquareMiniApp",void 0);_.R([_.L({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.Y("design:type",Boolean)],NR.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.R([_.L({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.Y("design:type",Boolean)],NR.prototype,"hasInfoPanel",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],NR.prototype,"isSearch",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],NR.prototype,"inlineStructuredDescription",void 0);_.R([_.$z("#scroll-container"),_.Y("design:type",HTMLDivElement)],NR.prototype,"JSC$15274_scrollContainer",void 0);
_.R([_.L({computed:"computeInitialCountNumber(data.style.type)"}),_.Y("design:type",Number)],NR.prototype,"initialCount",void 0);_.R([_.L({computed:"computeUseFloorScrolling(data.style.type)"}),_.Y("design:type",Boolean)],NR.prototype,"useFloorScrolling",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.Y("design:type",Boolean)],NR.prototype,"centerItems",void 0);_.R([_.L(),_.Y("design:type",Object)],NR.prototype,"pageLoadingFromNavigation",void 0);
_.R([_.L(),_.Y("design:type",Object)],NR.prototype,"currentIndex",void 0);_.R([_.L(),_.Y("design:type",Number)],NR.prototype,"scrollCount",void 0);_.R([_.L(),_.Y("design:type",Object)],NR.prototype,"supportComponentResize",void 0);_.R([_.$z("#items"),_.Y("design:type",HTMLDivElement)],NR.prototype,"items",void 0);_.R([_.VG("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NR.prototype,"onIronResize",null);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NR.prototype,"dataChanged",null);_.R([_.L({reflectToAttribute:!0}),_.M("inlineStructuredDescription"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],NR.prototype,"hideNavigationButton",null);_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],NR.prototype,"modernChapters",null);
_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],NR.prototype,"hasVideoAttributeViewModels",null);_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],NR.prototype,"modernInfoPanels",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],NR);
_.q(NR,"ytd-horizontal-card-list-renderer",function(){if(Blu!==void 0)return Blu;var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Blu=C},{mode:_.oN("kevlar_poly_si_batch_j072")?1:2});var x$u=_.d(function(C){var F=C.data;var G={};return _.W("video-summary-content-view-model",{class:_.py("videoSummaryContentViewModelHost",C.className,(G.videoSummaryContentViewModelHostIsSearch=C.isSearch,G))},_.W(_.Ag,{each:function(){var V=[],J=F().paragraphs;if(J==null||!J.length)return[];for(var b=0;b<J.length;b++){var z=_.Z(J[b],iSO),Q=void 0;b>0&&(Q=_.Z(J[b-1],iSO));Q&&!!Q.marker===!!z.marker?V[V.length-1].paragraphs.push(z):V.push({isList:!!z.marker,paragraphs:[z]})}return V},
keyBy:"INDEX"},function(V){return _.W(_.a,{cond:function(){return V().isList},
then:function(){return _.W("ul",{class:"videoSummaryContentViewModelList"},_.W(_.Ag,{each:function(){return V().paragraphs},
keyBy:"INDEX"},function(J){return _.W("li",{class:"videoSummaryContentViewModelListItem"},_.W(_.mn,{text:function(){return J().text}}))}))},
else:function(){return _.W("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.W(_.Ag,{each:function(){return V().paragraphs},
keyBy:"INDEX"},function(J){return _.W("p",{class:"videoSummaryContentViewModelParagraph"},_.W(_.mn,{text:function(){return J().text}}))}))}})}),_.W(_.a,{cond:function(){return!!_.Z(F().likeButtonViewModel,_.Rd)&&!!_.Z(F().dislikeButtonViewModel,_.gf)},
then:function(){return _.W("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.W("div",{class:"videoSummaryContentViewModelLikeButton"},_.W(_.of,{data:function(){return _.Z(F().likeButtonViewModel,_.Rd)},
disableIconAnimation:!0})),_.W(_.TR,{data:function(){return _.Z(F().dislikeButtonViewModel,_.gf)}}))}}))},"Zb");
x$u.idomCompat=!0;_.gQ(x$u,"video-summary-content-view-model",{props:{data:_.CJ,isSearch:_.CJ,className:_.CJ}});var OG=function(){var C=_.B.apply(this,arguments)||this;var F,G;C.isExpanded=(G=(F=C.data)==null?void 0:F.isExpanded)!=null?G:!1;C.disableExpand=!1;C.showProminentLabel=!1;C.showRightSideLabel=!0;C.toggleExpandableContent=function(V){C.disableExpand||(V.stopPropagation(),_.s4(_.AR(V),C.hostElement,["info","expanded-subtitle"])||(C.isExpanded=!C.isExpanded,C.ytRendererBehavior.logExplicitClick(C.data),C.JSC$15285_cardList&&!_.y("expandable_metadata_a11y_fix_ks")&&_.zH(C,function(){_.iS(C.hostElement)})))};
C.useSquareThumbnail=!1;C.startX=0;return C};
_.O(OG,_.B);_.n=OG.prototype;_.n.computeUseSquareThumbnail=function(){var C;return(C=this.data)==null?void 0:C.useSquareThumbnail};
_.n.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"}}}}};
_.n.dataChanged=function(){if(this.data){var C,F;this.isExpanded=(F=(C=this.data)==null?void 0:C.isExpanded)!=null?F:!1;var G,V,J,b;if(C=this.isDarkTheme()?(G=this.data)==null?void 0:(V=G.colorData)==null?void 0:V.darkColorPalette:(J=this.data)==null?void 0:(b=J.colorData)==null?void 0:b.lightColorPalette){var z,Q;if((z=this.data)==null?0:(Q=z.colorData)==null?0:Q.vibrantColorPalette)C.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.WB(this.hostElement,C)}}};
_.n.isExpandedChanged=function(){this.isExpanded&&this.JSC$15285_cardList&&_.oo(this.JSC$15285_cardList,"iron-resize")};
_.n.computeIsExpanded=function(C){return!!C.isExpanded};
_.n.computeShowProminentLabel=function(C,F){var G;return!!(C==null?0:(G=C.header)==null?0:G.showLeadingCollapsedLabel)&&!F};
_.n.computeShowRightSideLabel=function(C,F){var G;return!(C==null?0:(G=C.header)==null?0:G.showLeadingCollapsedLabel)&&!F};
_.n.captureContentClick=function(C){if(!this.disableExpand)if(_.y("expandable_metadata_fix_killswitch")){var F=C.target;_.wjy(F,"ytd-macro-markers-list-item-renderer")||C.stopPropagation();(F==null?void 0:F.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.s4(_.AR(C),this.hostElement,["items"])||_.dE(_.AR(C),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.n.timestampClick=function(C){C.stopPropagation();var F,G;(C=(F=this.data)==null?void 0:(G=F.header)==null?void 0:G.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(C)};
_.n.onDown=function(C){C.stopPropagation();this.startX=C.detail?C.detail.x:0};
_.n.onUp=function(C){this.skipKeyInteraction(C)&&C.stopPropagation()};
_.n.skipKeyInteraction=function(C){var F=C.target;if((F==null?void 0:F.id)==="scroll-container"||(F==null?void 0:F.id)==="items"||C.detail&&C.detail.x!==this.startX)return!0;C=_.AR(C);C=_.u(C);for(F=C.next();!F.done;F=C.next()){F=F.value;if(F===this.hostElement)break;if(F.hasAttribute&&F.hasAttribute("skip-key-interaction"))return!0}return!1};
_.n.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.I6.Object.defineProperties(OG.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var C;return!!_.Z((C=this.data)==null?void 0:C.expandedContent,V8$)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var C;return!!_.Z((C=this.data)==null?void 0:C.expandedContent,_.J97)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var C,F;return!((C=this.data)==null||!C.useCustomColors)&&!((F=this.data)==null||!F.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var C,F;return!!((C=this.data)==null?0:(F=C.header)==null?0:F.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var C,F;return!!((C=this.data)==null?0:(F=C.header)==null?0:F.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var C,F;return!!((C=this.data)==null?0:(F=C.header)==null?0:F.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
OG.prototype.onUp=OG.prototype.onUp;OG.prototype.onDown=OG.prototype.onDown;OG.prototype.isExpandedChanged=OG.prototype.isExpandedChanged;OG.prototype.dataChanged=OG.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],OG.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],OG.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],OG.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],OG.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],OG.prototype,"isExpanded",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],OG.prototype,"disableExpand",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],OG.prototype,"isSearch",void 0);
_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],OG.prototype,"isWatch",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.Y("design:type",Object)],OG.prototype,"showProminentLabel",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.Y("design:type",Object)],OG.prototype,"showRightSideLabel",void 0);
_.R([_.L({value:!1,reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],OG.prototype,"hasVideoSummary",null);_.R([_.L({value:!1,reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],OG.prototype,"hasLockupViewModel",null);_.R([_.L({reflectToAttribute:!0}),_.M("data","isWatch"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],OG.prototype,"useCustomColors",null);
_.R([_.L({reflectToAttribute:!0}),_.M("data","isExpanded"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],OG.prototype,"showInfoButton",null);_.R([_.M("data","isExpanded"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],OG.prototype,"showTimestamp",null);_.R([_.M("data","isExpanded"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],OG.prototype,"showExpandedSubtitle",null);
_.R([_.M("data","isExpanded"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],OG.prototype,"showThumbnail",null);_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],OG.prototype,"useVppShoppingDestinationStyle",null);_.R([_.L(),_.Y("design:type",Object)],OG.prototype,"toggleExpandableContent",void 0);_.R([_.$z("ytd-horizontal-card-list-renderer"),_.Y("design:type",Object)],OG.prototype,"JSC$15285_cardList",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.Y("design:type",Object)],OG.prototype,"useSquareThumbnail",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],OG.prototype,"dataChanged",null);_.R([_.iP("isExpanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],OG.prototype,"isExpandedChanged",null);
_.R([_.VG("down"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],OG.prototype,"onDown",null);_.R([_.VG("up"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],OG.prototype,"onUp",null);_.R([_.e({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],OG);
_.q(OG,"ytd-expandable-metadata-renderer",function(){if(xKu!==void 0)return xKu;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[!isExpanded]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return xKu=C},{mode:1});var s9l,qxE=function(){if(s9l!==void 0)return s9l;var C=document.createElement("template");_.X(C,'\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      <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" 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]]" hidden="[[hasAttributedBylineText]]" 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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return s9l=C};_.gQ(_.Y9,"yt-avatar-stack-view-model",{props:{className:_.CJ,data:_.CJ,overrides:_.CJ,isOverlay:_.CJ,useMediumText:_.CJ,decorations:_.CJ,hideAvatar:_.CJ}});_.ae("itemSectionRenderer","videoRenderer","ytd-video-renderer");var XA=function(){var C=_.B.apply(this,arguments)||this;C.disableExpand=!1;C.shouldShowChannelInfo=!1;C.hasAttributedBylineText=!1;C.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return C};
_.O(XA,_.B);_.n=XA.prototype;_.n.computeUseSearchUi=function(){var C,F;return this.isSearch||((C=this.data)==null?void 0:(F=C.style)==null?void 0:F.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.n.computeUseThreeLineTitle=function(){var C;return((C=this.data)==null?void 0:C.maxTitleLines)===3};
_.n.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.y("polymer_video_renderer_defer_menu")&&!N_E?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"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.n.attached=function(){_.pd(this.hostElement,"blue-links",_.y("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.n.detached=function(){this.clearInlinePreviewHoverListeners()};
_.n.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.m5(_.ot(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var C=this.get("data.buttons.buttonRenderer.serviceEndpoint"),F;C&&((F=_.Z(C.commandMetadata,_.fH))==null?0:F.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(C);this.updateInlinePreviewHoverListeners()};
_.n.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15290_inlinePreviewHoverListener=ZR({mediaRenderer:this,lockupElement:this.JSC$15290_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.n.clearInlinePreviewHoverListeners=function(){var C;(C=this.JSC$15290_inlinePreviewHoverListener)==null||Ak(C)};
_.n.onTextWrapperClick=function(C){var F,G,V=this.hideTranslation?(F=this.data)==null?void 0:F.untranslatedNavigationEndpoint:(G=this.data)==null?void 0:G.navigationEndpoint;F=_.s4(_.AR(C),this.hostElement,["expandable-metadata"]);!V||F&&!_.y("expandable_metadata_fix_killswitch")||_.dE(_.AR(C),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.oo(this.hostElement,"yt-navigate",{endpoint:V})};
_.n.computeThumbnailWidth=function(C,F,G,V,J){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:V?J==="MASSIVE"?600:J==="BIG"?500:J==="MEDIUM"?450:420:G?360:F?128:C?210:246};
_.n.computeUseBiggerThumbs=function(C){return C&&_.y("enable_desktop_search_bigger_thumbs")};
_.n.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.n.computeHasAttributedBylineText=function(){var C;return!((C=this.data)==null||!C.attributedBylineText)};
_.n.computeVideoStyle=function(){if(_.y("enable_video_style")){var C,F;return(C=this.data)==null?void 0:(F=C.style)==null?void 0:F.value}};
_.n.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.n.handleHideItemSectionVideosByIdCommand=function(C){var F;C=(F=_.Z(C,X0P))==null?void 0:F.videoId;this.data&&this.data.videoId===C&&(this.isHidden=!0)};
_.n.getMetadataSnippetContainerClass=function(C){return C?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.n.computeTitleText=function(C,F,G){return C?G:F};
_.n.computeDescriptionSnippet=function(C,F,G){return C?G:F};
_.n.computeSnippetText=function(C,F,G){return C?G:F};
_.n.computeNavigationEndpoint=function(C,F){return C?F==null?void 0:F.untranslatedNavigationEndpoint:F==null?void 0:F.navigationEndpoint};
_.n.hideInlineTitleIcon=function(C,F){return C||!F};
_.I6.Object.defineProperties(XA.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 C;return(C=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?C:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var C,F,G;return!!(this==null?0:(C=this.data)==null?0:(F=C.channelThumbnailSupportedRenderers)==null?0:(G=F.channelThumbnailWithLinkRenderer)==null?0:G.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var C;return!!_.Z((C=this.data)==null?void 0:C.avatar,$sl)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.JSC$15290_inlinePreviewHoverListener)==null?0:r$(C))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.I6.Object.defineProperties(XA,{template:{configurable:!0,enumerable:!0,get:function(){return qxE()}}});
XA.prototype.dataChanged=XA.prototype.dataChanged;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],XA.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],XA.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],XA.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.T6),_.Y("design:type",Object)],XA.prototype,"ytdDismissibleItemBehavior",void 0);
_.R([_.w(_.CR),_.Y("design:type",Object)],XA.prototype,"ytdLockupBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],XA.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],XA.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],XA.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],XA.prototype,"isBackstageVideo",void 0);
_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],XA.prototype,"isPostCompactVideo",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],XA.prototype,"isHistory",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],XA.prototype,"isRichGridVideoPost",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],XA.prototype,"isHidden",void 0);
_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],XA.prototype,"isSearch",void 0);_.R([_.L({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.Y("design:type",Boolean)],XA.prototype,"useSearchUi",void 0);_.R([_.L({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.Y("design:type",Boolean)],XA.prototype,"useThreeLineTitle",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.Y("design:type",Boolean)],XA.prototype,"useBiggerThumbs",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.Y("design:type",Object)],XA.prototype,"videoStyle",void 0);_.R([_.L({computed:"computeDisableExpand(videoStyle)"}),_.Y("design:type",Object)],XA.prototype,"disableExpand",void 0);
_.R([_.L({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.Y("design:type",Object)],XA.prototype,"shouldShowChannelInfo",void 0);_.R([_.L({computed:"computeHasAttributedBylineText(data)"}),_.Y("design:type",Object)],XA.prototype,"hasAttributedBylineText",void 0);_.R([_.L({reflectToAttribute:!0,value:function(){return _.kU("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],XA.prototype,"biggerThumbsStyle",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.Y("design:type",String)],XA.prototype,"inlineTitleIcon",void 0);_.R([_.L({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.Y("design:type",Object)],XA.prototype,"computedNavigationEndpoint",void 0);_.R([_.L({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(C,F){return _.jN(C.entities,"searchVideoResultEntity",F)}}),
_.Y("design:type",Object)],XA.prototype,"searchVideoResultEntity",void 0);_.R([_.$z("ytd-thumbnail"),_.Y("design:type",HTMLElement)],XA.prototype,"thumbnail",void 0);_.R([_.$z("#dismissible"),_.Y("design:type",HTMLElement)],XA.prototype,"JSC$15290_dismissibleMedia",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],XA.prototype,"dataChanged",null);
_.R([_.M("searchVideoResultEntity"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],XA.prototype,"hideTranslation",null);_.R([_.M("searchVideoResultEntity"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],XA.prototype,"hiddenBadgeGroups",null);_.R([_.M("data","useAvatar"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],XA.prototype,"shouldShowChannelThumbnail",null);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],XA.prototype,"useAvatar",null);
_.R([_.M("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],XA.prototype,"isHovered",null);_.R([_.e({is:"ytd-video-renderer",disableElementRegistration:!0})],XA);_.q(XA,"ytd-video-renderer",function(){return qxE()},{mode:_.oN("kevlar_poly_si_batch_j047")?1:2});var wP=function(){var C=_.B.apply(this,arguments)||this;C.editDialog=null;C.roundedContainer=!0;C.isLoading=!1;C.isRichGrid=!1;C.isRichGridRepost=!1;C.reduceSidePaddings=_.y("reduce_side_paddings_in_shelf");C.JSC$15297_spinnerEl=null;return C};
_.O(wP,_.B);_.n=wP.prototype;
_.n.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"}}}};
_.n.contentTextChanged=function(){this.expander.reset()};
_.n.dataChanged=function(){var C=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var F=0,G=this.data.actions&&this.data.actions.length;F<G;F++)this.openEditDialog(_.Z(this.data.actions[F],zSS));if((F=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(F=this.get("buttonRenderer.hint.hintRenderer.hintId",F))&&F.startsWith("share-post-hint")){var V=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(V){_.yc.getInstance();var J=ZS(_.eN(_.iQ("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.gT.addLowPriorityJob(function(){_.pX(C.hostElement,J,V)})}}}};
_.n.updatePoll=function(C){C>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.n.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15297_spinnerEl||(this.JSC$15297_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.ot(this.hostElement).appendChild(this.JSC$15297_spinnerEl));this.JSC$15297_spinnerEl&&(this.JSC$15297_spinnerEl.active=this.isLoading)};
_.n.onYtNavigate=function(C){var F=this.get("updateCommentDialogEndpoint",C.detail.endpoint);F&&(this.openEditDialog(F),C.stopPropagation())};
_.n.onYtCommentboxDismiss=function(){this.editDialog=null};
_.n.onYtCommentPollRevert=function(C,F){F&&this.updatePoll(F.selectedChoiceIndex)};
_.n.onYtServiceRequestSent=function(C,F){var G;F.endpoint&&(_.Z(F.endpoint,aL$)||_.Z(F.endpoint,ti$)&&((G=_.Z(F.endpoint,ti$))==null||!G.clientActions))&&(this.isLoading=!0);if(F.actions)for(C=0;C<F.actions.length;C++)G=F.actions[C],_.Z(G,Bf)&&(G=this.get("updateBackstagePollAction.selectedChoiceIndex",G),G==void 0&&(G=-1),this.updatePoll(G))};
_.n.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.n.openEditDialog=function(C){C&&C.dialog&&(this.editDialog=C.dialog,C=this.editDialogEl.firstElementChild)&&(C.focus(),C.openDialog&&C.openDialog())};
_.n.computeIsPostHidden=function(C,F){return!!C||F};
_.n.computeSurfaceType=function(C){return C?C.toLowerCase().replace(/_/g,"-"):""};
_.n.computeUsesCompactLockup=function(C){return C==="BACKSTAGE_SURFACE_TYPE_HOME"||C==="BACKSTAGE_SURFACE_TYPE_SEARCH"||C==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||C==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||C==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||C==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.n.computeShowWithoutToolbar=function(C){return!C.actionButtons&&!C.actionMenu};
_.n.computePostAttachment=function(C){if(C.backstageAttachment){if(_.Z(C.backstageAttachment,KPm))return"poll";if(_.Z(C.backstageAttachment,hh7))return"quiz";if(_.Z(C.backstageAttachment,_.mV))return"video";if(_.Z(C.backstageAttachment,cSS))return"uploaded-videos";if(_.Z(C.backstageAttachment,AB7))return C.contentText?"image":"image-only";if(_.Z(C.backstageAttachment,LPu))return"playlist"}return"none"};
_.n.computePostTabIndex=function(C){return C?0:-1};
_.n.computeButtonTooltipPosition=function(C){return this.computeUsesCompactLockup(C)?"top":"bottom"};
_.n.computeHasText=function(C){return!(C==null||!C.contentText)};
_.n.onTap=function(C){var F,G;if(((F=this.data)==null?0:F.navigationEndpoint)&&((G=this.data)==null?void 0:G.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var V;((V=this.data)==null?0:V.navigationEndpoint)&&!_.dE(_.AR(C)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.oo(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.I6.Object.defineProperties(wP.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.voteCount)||_.eN("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)==null?void 0:C.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Z(this.data.backstageAttachment,KPm))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Z(this.data.backstageAttachment,cSS))}}});
wP.prototype.onYtServiceRequestCompleted=wP.prototype.onYtServiceRequestCompleted;wP.prototype.onYtServiceRequestSent=wP.prototype.onYtServiceRequestSent;wP.prototype.onYtCommentPollRevert=wP.prototype.onYtCommentPollRevert;wP.prototype.onYtCommentboxDismiss=wP.prototype.onYtCommentboxDismiss;wP.prototype.onYtNavigate=wP.prototype.onYtNavigate;wP.prototype.isLoadingChanged=wP.prototype.isLoadingChanged;wP.prototype.dataChanged=wP.prototype.dataChanged;wP.prototype.contentTextChanged=wP.prototype.contentTextChanged;
_.R([_.w(_.T6),_.Y("design:type",Object)],wP.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],wP.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],wP.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],wP.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],wP.prototype,"data",void 0);
_.R([_.L(),_.Y("design:type",Object)],wP.prototype,"editDialog",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],wP.prototype,"roundedContainer",void 0);_.R([_.L(),_.Y("design:type",Object)],wP.prototype,"isLoading",void 0);_.R([_.L({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.Y("design:type",String)],wP.prototype,"surface",void 0);
_.R([_.L({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],wP.prototype,"usesCompactLockup",void 0);_.R([_.L({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],wP.prototype,"showWithoutToolbar",void 0);_.R([_.L({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.Y("design:type",String)],wP.prototype,"attachment",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],wP.prototype,"isRichGrid",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],wP.prototype,"isRichGridRepost",void 0);_.R([_.L({reflectToAttribute:!0,value:_.y("use_better_post_dismissals")}),_.Y("design:type",Boolean)],wP.prototype,"useBetterPostDismissals",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],wP.prototype,"reduceSidePaddings",void 0);
_.R([_.L({computed:"computeHasText(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],wP.prototype,"hasText",void 0);_.R([_.$z("#expander"),_.Y("design:type",Object)],wP.prototype,"expander",void 0);_.R([_.$z("#action-buttons"),_.Y("design:type",Object)],wP.prototype,"actionButtons",void 0);_.R([_.$z("#edit-dialog"),_.Y("design:type",HTMLElement)],wP.prototype,"editDialogEl",void 0);
_.R([_.iP("data.contentText"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wP.prototype,"contentTextChanged",null);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wP.prototype,"dataChanged",null);_.R([_.iP("isLoading"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wP.prototype,"isLoadingChanged",null);
_.R([_.VG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],wP.prototype,"onYtNavigate",null);_.R([_.VG("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wP.prototype,"onYtCommentboxDismiss",null);_.R([_.VG("yt-comment-poll-revert"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],wP.prototype,"onYtCommentPollRevert",null);
_.R([_.VG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Sn]),_.Y("design:returntype")],wP.prototype,"onYtServiceRequestSent",null);_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.en]),_.Y("design:returntype")],wP.prototype,"onYtServiceRequestCompleted",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],wP.prototype,"voteCount",null);
_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],wP.prototype,"commentCount",null);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],wP.prototype,"hasPoll",null);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],wP.prototype,"hasUploadedVideo",null);_.R([_.e({is:"ytd-post-renderer",disableElementRegistration:!0})],wP);
_.q(wP,"ytd-post-renderer",function(){if($KS!==void 0)return $KS;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return $KS=C},{mode:1});var PUO;var gmS;var MR=function(){return _.B.apply(this,arguments)||this};
_.O(MR,_.B);MR.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],MR.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],MR.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.QU.YtdHorizontalListBehavior),_.Y("design:type",Object)],MR.prototype,"ytdHorizontalListBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],MR.prototype,"componentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],MR.prototype,"data",void 0);
_.R([_.L({value:"$.items.children"}),_.Y("design:type",String)],MR.prototype,"itemsPath",void 0);_.R([_.L({value:1}),_.Y("design:type",Number)],MR.prototype,"initialCount",void 0);_.R([_.L({reflectToAttribute:!0,value:_.y("enable_community_page_on_desktop")}),_.Y("design:type",Boolean)],MR.prototype,"useSmallerPostImageAttachments",void 0);_.R([_.L(),_.Y("design:type",String)],MR.prototype,"surface",void 0);_.R([_.e({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],MR);
_.q(MR,"ytd-post-multi-image-renderer",function(){if(gmS!==void 0)return gmS;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return gmS=C},{mode:_.oN("kevlar_poly_si_batch_j079")?1:2});var R9P={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}},
SK=function(){var C=_.B.apply(this,arguments)||this;C.hasInlineCommentSection=!1;C.editDialog=null;C.isLoading=!1;C.shouldHideAuthor=!1;C.shouldShowVideoTime=!1;C.isInEngagementPanel=!1;C.hideBorder=!1;C.usesFullLockup=!1;C.shouldShowMenuInCompactView=!1;C.JSC$15312_spinnerEl=null;C.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return C};
_.O(SK,_.B);_.n=SK.prototype;_.n.configureRendererStamper=function(){return R9P};
_.n.computeIsPollHeaderEnabled=function(C){return(C==null?void 0:C.pollMetadataIcon)!=null};
_.n.getPublishTimeStampString=function(C,F){F=new Date((Number(F)-60*((new Date).getTimezoneOffset()-(new Date(Number(F)*1E3)).getTimezoneOffset()))*1E3);F=(new A4(10)).format(F);if(C&&C.runs&&C.runs.length)for(var G=0;G<C.runs.length;G++)C.runs[G].text&&(C.runs[G].text=C.runs[G].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",F));return C};
_.n.created=function(){this.JSC$15312_spinnerEl=null};
_.n.contentTextChanged=function(){this.expander.reset()};
_.n.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var C;if((C=this.data)==null?0:C.actions){C=_.u(this.data.actions);for(var F=C.next();!F.done;F=C.next())this.openEditDialog(_.Z(F.value,zSS))}};
_.n.handleSignalActionOpenPostCommentDialogAction=function(){_.ot(this.hostElement).querySelector("#action-buttons").reply()};
_.n.updatePoll=function(C,F){F&&this.set("data.pollMetadataVoteCountText",F);this.hasInlineCommentSection&&(C=C>=0,F=_.ot(this.hostElement).querySelector("#action-buttons"),C?F.reply():F.hideReplyDialog())};
_.n.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15312_spinnerEl||(this.JSC$15312_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.ot(this.hostElement).appendChild(this.JSC$15312_spinnerEl));this.JSC$15312_spinnerEl&&(this.JSC$15312_spinnerEl.active=this.isLoading)};
_.n.onYtNavigate=function(C){var F=this.get("updateCommentDialogEndpoint",C.detail.endpoint);F&&(this.openEditDialog(F),C.stopPropagation())};
_.n.onYtCommentboxDismiss=function(){this.editDialog=null};
_.n.onYtCommentPollRevert=function(C,F){F&&this.updatePoll(F.selectedChoiceIndex,F.totalVotes)};
_.n.onYtServiceRequestSent=function(C,F){C.stopPropagation();C=_.Z(F.endpoint,ti$);if(_.Z(F.endpoint,aL$)||C&&!C.clientActions)this.isLoading=!0;if(F.actions)for(C=0;C<F.actions.length;C++){var G=F.actions[C],V=_.Z(G,Bf);V&&(G=this.get("updateBackstagePollAction.selectedChoiceIndex",G),G===void 0&&(G=-1),this.updatePoll(G,V.totalVotes))}};
_.n.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.n.openEditDialog=function(C){C&&C.dialog&&(this.editDialog=C.dialog,C=this.editDialogElement.firstElementChild)&&(C.focus(),C.openDialog&&C.openDialog())};
_.n.computeIsBodyHidden=function(C,F){return!!C||F};
_.I6.Object.defineProperties(SK.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var C=this.data,F=C.showPostAuthorBackgroundHighlight,G=C.postAuthorBadgeType,V=C.authorEndpoint;if(!F&&G!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&G!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var J,b,z;C=_.eN(((J=C.authorText)==null?void 0:(b=J.runs)==null?void 0:(z=b[0])==null?void 0:z.text)||"");J=void 0;switch(G){case "POST_AUTHOR_BADGE_TYPE_ARTIST":J={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":J={iconType:F?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:C,authorEndpoint:V,authorCreator:F,icon:J}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var C,F;if((C=this.data)==null?0:(F=C.pollMetadataIcon)==null?0:F.iconType)return _.p5(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.voteCount)||_.eN("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)==null?void 0:C.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Z(this.data.backstageAttachment,KPm))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Z(this.data.backstageAttachment,hh7))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Z(this.data.backstageAttachment,cSS))}}});
SK.prototype.onYtServiceRequestCompleted=SK.prototype.onYtServiceRequestCompleted;SK.prototype.onYtServiceRequestSent=SK.prototype.onYtServiceRequestSent;SK.prototype.onYtCommentPollRevert=SK.prototype.onYtCommentPollRevert;SK.prototype.onYtCommentboxDismiss=SK.prototype.onYtCommentboxDismiss;SK.prototype.onYtNavigate=SK.prototype.onYtNavigate;SK.prototype.isLoadingChanged=SK.prototype.isLoadingChanged;SK.prototype.dataChanged=SK.prototype.dataChanged;SK.prototype.contentTextChanged=SK.prototype.contentTextChanged;
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],SK.prototype,"actionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],SK.prototype,"rendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],SK.prototype,"rendererstamperBehavior",void 0);_.R([_.w(_.T6),_.Y("design:type",Object)],SK.prototype,"ytdDismissibleItemBehavior",void 0);
_.R([_.$z("#contentTextExpander"),_.Y("design:type",Object)],SK.prototype,"expander",void 0);_.R([_.$z("#edit-dialog"),_.Y("design:type",Element)],SK.prototype,"editDialogElement",void 0);_.R([_.L(),_.Y("design:type",Object)],SK.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],SK.prototype,"hasInlineCommentSection",void 0);_.R([_.L(),_.Y("design:type",Object)],SK.prototype,"editDialog",void 0);_.R([_.L(),_.Y("design:type",Object)],SK.prototype,"isLoading",void 0);
_.R([_.L({computed:"computeIsPollHeaderEnabled(data)"}),_.Y("design:type",Boolean)],SK.prototype,"isPollHeaderEnabled",void 0);_.R([_.L(),_.Y("design:type",Object)],SK.prototype,"shouldHideAuthor",void 0);_.R([_.L(),_.Y("design:type",Object)],SK.prototype,"shouldShowVideoTime",void 0);_.R([_.L(),_.Y("design:type",Object)],SK.prototype,"isInEngagementPanel",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],SK.prototype,"hideBorder",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],SK.prototype,"usesFullLockup",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],SK.prototype,"shouldShowMenuInCompactView",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],SK.prototype,"authorCommentBadge",null);_.R([_.M("isInEngagementPanel"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],SK.prototype,"postTextMaxLines",null);
_.R([_.M("data.icon.iconType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],SK.prototype,"pollIcon",null);_.R([_.iP("data.contentText"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],SK.prototype,"contentTextChanged",null);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],SK.prototype,"dataChanged",null);
_.R([_.iP("isLoading"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],SK.prototype,"isLoadingChanged",null);_.R([_.VG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],SK.prototype,"onYtNavigate",null);_.R([_.VG("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],SK.prototype,"onYtCommentboxDismiss",null);
_.R([_.VG("yt-comment-poll-revert"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],SK.prototype,"onYtCommentPollRevert",null);_.R([_.VG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Sn]),_.Y("design:returntype")],SK.prototype,"onYtServiceRequestSent",null);
_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],SK.prototype,"onYtServiceRequestCompleted",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],SK.prototype,"voteCount",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],SK.prototype,"commentCount",null);
_.R([_.M("data.backstageAttachment"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],SK.prototype,"hasPoll",null);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],SK.prototype,"hasQuiz",null);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],SK.prototype,"hasUploadedVideo",null);_.R([_.e({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],SK);
_.q(SK,"ytd-backstage-post-renderer",function(){if(PUO!==void 0)return PUO;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-backstage-post-renderer">\n  <div id="dismissed-content" 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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return PUO=C},{mode:1});var Yx2;var Lp=function(){var C=_.B.apply(this,arguments)||this;C.editDialog=null;C.showExpandButton=!1;C.isRichGrid=!1;C.usesFullLockup=!1;return C};
_.O(Lp,_.B);_.n=Lp.prototype;_.n.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"}}}};
_.n.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.n.computeShowExpandButton=function(C){return this.usesCompactLockup||C&&C.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.n.computeUsesCompactLockup=function(C){return!!C.condensedContent};
_.n.computeShowFullContentText=function(C){return!C};
_.n.onYtNavigate=function(C){C=this.get("updateCommentDialogEndpoint",C.detail.endpoint);this.openEditDialog(C)};
_.n.onYtCommentboxDismiss=function(){this.editDialog=null};
_.n.openEditDialog=function(C){C&&C.dialog&&(this.editDialog=C.dialog,C=this.repostEditDialogEl.firstElementChild)&&(C.focus(),C.openDialog&&C.openDialog())};
_.n.onTap=function(C){if(this.data){var F=null;this.usesCompactLockup&&!_.dE(_.AR(C)||[],this.hostElement,["YT-IMG-SHADOW"])?F=this.get("navigationEndpoint",this.data):C.target===this.moreButtonEl&&(F=this.get("navigationEndpoint",C.target.data));F&&_.oo(this.hostElement,"yt-navigate",{endpoint:F})}};
Lp.prototype.onYtCommentboxDismiss=Lp.prototype.onYtCommentboxDismiss;Lp.prototype.onYtNavigate=Lp.prototype.onYtNavigate;Lp.prototype.dataChanged=Lp.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Lp.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Lp.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Lp.prototype,"data",void 0);
_.R([_.L(),_.Y("design:type",Object)],Lp.prototype,"editDialog",void 0);_.R([_.L({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Lp.prototype,"usesCompactLockup",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Lp.prototype,"showExpandButton",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Lp.prototype,"isRichGrid",void 0);
_.R([_.L({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Lp.prototype,"showFullContentText",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Lp.prototype,"usesFullLockup",void 0);_.R([_.$z("#more"),_.Y("design:type",Object)],Lp.prototype,"moreButtonEl",void 0);_.R([_.$z("#repost-content-text"),_.Y("design:type",HTMLElement)],Lp.prototype,"repostContentTextEl",void 0);
_.R([_.$z("#repost-edit-dialog"),_.Y("design:type",HTMLElement)],Lp.prototype,"repostEditDialogEl",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lp.prototype,"dataChanged",null);_.R([_.VG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Lp.prototype,"onYtNavigate",null);
_.R([_.VG("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lp.prototype,"onYtCommentboxDismiss",null);_.R([_.e({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],Lp);
_.q(Lp,"ytd-shared-post-renderer",function(){if(Yx2!==void 0)return Yx2;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Yx2=C},{mode:1});var TOm;var omy;var BI=function(){return _.B.apply(this,arguments)||this};
_.O(BI,_.B);BI.prototype.attached=function(){var C=this;this.networkStatusManager||(this.networkStatusManager=new _.FP,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){C.onlineHandler()}))};
BI.prototype.detached=function(){var C=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){C.onlineHandler()}),delete this.networkStatusManager)};
BI.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],BI.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],BI.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],BI.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],BI);
_.q(BI,"ytd-reload-page-button-renderer",function(){if(omy!==void 0)return omy;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);
return omy=C},{mode:1});var rf8={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"},vI=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return C};
_.O(vI,_.B);_.n=vI.prototype;_.n.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.n.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.n.computeHasBodyText=function(C){return!!C.bodyText};
_.n.computeButtons=function(C){var F=[];C.ctaButton&&F.push(C.ctaButton);C.secondaryButton&&F.push(C.secondaryButton);return F};
_.n.computeRendererStyle=function(C){return C.style?C.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():C.icon?"":"no-icon"};
_.n.getIconName=function(C,F){F=F===void 0?!1:F;if(C===void 0)return"";C=this.get("icon.iconType",C);var G;_.y("enable_hlp_client_icon_pick")?G=this.getThemedIcon(C,F):G=C;(F=rf8[G])||(F="yt-icons");return[F,G].join(":")};
_.n.getThemedIcon=function(C,F){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(C)?F?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(C)?F?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":C};
_.n.isThumbnail=function(C){return!!C.thumbnail};
_.n.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.n.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],vI.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],vI.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],vI.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],vI.prototype,"data",void 0);
_.R([_.L({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.Y("design:type",String)],vI.prototype,"rendererStyle",void 0);_.R([_.L({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.Y("design:type",String)],vI.prototype,"iconName",void 0);_.R([_.L({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],vI.prototype,"thumbnail",void 0);_.R([_.L({computed:"computeButtons(data)"}),_.Y("design:type",Array)],vI.prototype,"buttons",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],vI.prototype,"isDarkTheme",void 0);_.R([_.L({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],vI.prototype,"hasBodyText",void 0);_.R([_.e({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],vI);
_.q(vI,"ytd-background-promo-renderer",function(){if(TOm!==void 0)return TOm;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return TOm=C},{mode:1});var KXu;var fp=function(){return _.B.apply(this,arguments)||this};
_.O(fp,_.B);_.I6.Object.defineProperties(fp.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var C,F,G,V,J,b;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(C=this.data)==null?void 0:(F=C.thumbnail)==null?void 0:F.sampledThumbnailColor,vibrantColorPalette:(G=this.data)==null?void 0:(V=G.thumbnail)==null?void 0:V.vibrantColorPalette,darkColorPalette:(J=this.data)==null?void 0:(b=J.thumbnail)==null?void 0:b.darkColorPalette,experimentEnabled:!0}}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],fp.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],fp.prototype,"data",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],fp.prototype,"collectionStack",null);_.R([_.e({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],fp);
_.q(fp,"ytd-compact-station-renderer",function(){if(KXu!==void 0)return KXu;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return KXu=C},{mode:1});var D$2;var hZ=function(){var C=_.B.apply(this,arguments)||this;C.isRichGrid=!1;return C};
_.O(hZ,_.B);hZ.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]]"}}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],hZ.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],hZ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],hZ.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],hZ.prototype,"isRichGrid",void 0);_.R([_.e({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],hZ);
_.q(hZ,"ytd-grid-channel-renderer",function(){if(D$2!==void 0)return D$2;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return D$2=C},{mode:1});var pGu;var cI=function(){return _.B.apply(this,arguments)||this};
_.O(cI,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],cI.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],cI.prototype,"data",void 0);_.R([_.e({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],cI);
_.q(cI,"ytd-grid-movie-playlist-renderer",function(){if(pGu!==void 0)return pGu;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return pGu=C},{mode:1});var m$$;var AZ=function(){var C=_.B.apply(this,arguments)||this;C.downloadProgress=0;C.transferState="TRANSFER_STATE_UNKNOWN";C.modernButtons=_.y("web_modern_buttons");return C};
_.O(AZ,_.B);AZ.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
AZ.prototype.configureRendererStamper=function(){return{"data.menu":SC}};
AZ.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
AZ.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.y("woffle_playlist_renderer_killswitch")){var C,F=$jo(this.entityInfo,this.transferState,this.downloadProgress,(C=this.data)==null?void 0:C.playlistId,this.isOnline);C=F.viewPlaylistText;var G=F.badges;F=F.thumbnailOverlays;this.isDownloads=!!C||!!G;this.set("data.viewPlaylistText",C);G&&G.length>0&&this.set("data.badges",G);F&&F.length>0&&this.set("data.thumbnailOverlays",
F)}};
_.I6.Object.defineProperties(AZ.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 C;return!((C=this.data)==null?0:C.menu)}}});
AZ.prototype.transferStateChanged=AZ.prototype.transferStateChanged;AZ.prototype.dataChanged=AZ.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],AZ.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.CR),_.Y("design:type",Object)],AZ.prototype,"ytdLockupBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],AZ.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],AZ.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.L({selector:_.qbw,selectorArgs:["data.playlistId"]}),_.Y("design:type",Object)],AZ.prototype,"downloadProgress",void 0);_.R([_.L({selector:_.X0,selectorArgs:["data.playlistId"]}),_.Y("design:type",Object)],AZ.prototype,"transferState",void 0);_.R([_.L({selector:skB,selectorArgs:["data.playlistId"]}),_.Y("design:type",Object)],AZ.prototype,"entityInfo",void 0);_.R([_.L({selector:_.NW}),_.Y("design:type",Boolean)],AZ.prototype,"isOnline",void 0);
_.R([_.L(),_.Y("design:type",Object)],AZ.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],AZ.prototype,"downloadRenderData",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],AZ.prototype,"modernButtons",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],AZ.prototype,"isDownloads",void 0);_.R([_.M("transferState"),_.L({reflectToAttribute:!0}),_.Y("design:type",String),_.Y("design:paramtypes",[])],AZ.prototype,"downloadState",null);
_.R([_.M("data"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],AZ.prototype,"menuHidden",null);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AZ.prototype,"dataChanged",null);_.R([_.zp("transferState","downloadProgress","isOnline"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AZ.prototype,"transferStateChanged",null);
_.R([_.e({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],AZ);
_.q(AZ,"ytd-grid-playlist-renderer",function(){if(m$$!==void 0)return m$$;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return m$$=C},{mode:1});var CD2;var eK=function(){return _.B.apply(this,arguments)||this};
_.O(eK,_.B);eK.prototype.configureRendererStamper=function(){return{"data.menu":SC,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.I6.Object.defineProperties(eK.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var C,F,G,V,J,b;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(C=this.data)==null?void 0:(F=C.thumbnail)==null?void 0:F.sampledThumbnailColor,vibrantColorPalette:(G=this.data)==null?void 0:(V=G.thumbnail)==null?void 0:V.vibrantColorPalette,darkColorPalette:(J=this.data)==null?void 0:(b=J.thumbnail)==null?void 0:b.darkColorPalette,experimentEnabled:!0}}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],eK.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.T6),_.Y("design:type",Object)],eK.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.w(_.CR),_.Y("design:type",Object)],eK.prototype,"ytdLockupBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],eK.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],eK.prototype,"data",void 0);
_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],eK.prototype,"collectionStack",null);_.R([_.e({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],eK);
_.q(eK,"ytd-grid-radio-renderer",function(){if(CD2!==void 0)return CD2;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return CD2=C},{mode:1});var j2u;var dP=function(){return _.B.apply(this,arguments)||this};
_.O(dP,_.B);dP.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
dP.prototype.computeNavigationEndpoint=function(C){return h$W(C==null?void 0:C.navigationEndpoint)};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],dP.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],dP.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.CR),_.Y("design:type",Object)],dP.prototype,"ytdLockupBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],dP.prototype,"data",void 0);_.R([_.L({computed:"computeNavigationEndpoint(data)"}),_.Y("design:type",Object)],dP.prototype,"computedNavigationEndpoint",void 0);
_.R([_.e({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],dP);
_.q(dP,"ytd-grid-show-renderer",function(){if(j2u!==void 0)return j2u;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return j2u=C},{mode:1});var Fay;_.xV=function(C){this.playerClient=C};
_.GXG=function(C,F,G){G=G===void 0?{}:G;return C.playerClient.setOption("ad",F,G)};
_.xV.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.xV.prototype.executeCommand=function(C,F){this.getOptions().includes("executeCommand")?_.GXG(this,"executeCommand",{command:C,layoutId:F}):_.LY("Calling executeCommand when adModule is not loaded")};var sG=function(){return _.B.apply(this,arguments)||this};
_.O(sG,_.B);sG.prototype.getLayoutId=function(){var C=_.mN("yt.www.ads.eventcache.getLastCompanionData");return C?(C=C())&&C.layoutId:null};
sG.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var C=_.gE(),F=this.getLayoutId(),G=this.data.clickthroughEndpoint;C&&F&&_.y("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?C.getPlayerPromise().then(function(V){(new _.xV(V)).executeCommand(G,F)}):_.oo(this.hostElement,"yt-navigate",{endpoint:G})}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],sG.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],sG.prototype,"data",void 0);_.R([_.e({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],sG);
_.q(sG,"ytd-shopping-companion-item-renderer",function(){if(Fay!==void 0)return Fay;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Fay=C},{mode:1});var VDy;var qR=function(){var C=_.B.apply(this,arguments)||this;C.isExpandableContent=!1;return C};
_.O(qR,_.B);_.I6.Object.defineProperties(qR.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)==null?void 0:C.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)==null?void 0:C.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var C,F,G;return((C=this.data)==null?void 0:C.price)||((F=this.data)==null?void 0:(G=F.dealsData)==null?void 0:G.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var C,F;if((C=this.data)!=null&&C.dealsData&&((F=this.data)==null||!F.priceReplacementText)){C=this.data.dealsData;var G,V,J;return((G=C.salesData)==null?void 0:G.originalPrice)||((V=C.priceDropData)==null?void 0:V.referencePrice)||((J=C.promotionData)==null?void 0:J.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var C,F;return(C=this.data)==null?void 0:(F=C.dealsData)==null?void 0:F.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],qR.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],qR.prototype,"componentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],qR.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],qR.prototype,"isExpandableContent",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],qR.prototype,"showCta",null);
_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],qR.prototype,"ctaText",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],qR.prototype,"hasPriceTopPosition",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],qR.prototype,"hasPriceBottomPosition",null);_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],qR.prototype,"useNewStyle",null);
_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],qR.prototype,"showPriceReplacementText",null);_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],qR.prototype,"priceValue",null);_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],qR.prototype,"showDeal",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],qR.prototype,"showAffiliateDisclaimer",null);
_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],qR.prototype,"useSaleStyle",null);_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],qR.prototype,"useFromBrandCtaStyle",null);_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],qR.prototype,"useFromVendorCtaStyle",null);
_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],qR.prototype,"useShoppingCollectionCtaStyle",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],qR);
_.q(qR,"ytd-vertical-product-card-renderer",function(){if(VDy!==void 0)return VDy;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return VDy=C},{mode:1});var im2;var PI=function(){return _.B.apply(this,arguments)||this};
_.O(PI,_.B);PI.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],PI.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],PI.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.CR),_.Y("design:type",Object)],PI.prototype,"ytdLockupBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],PI.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],PI);
_.q(PI,"ytd-grid-movie-renderer",function(){if(im2!==void 0)return im2;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return im2=C},{mode:1});var Jqu;var gP=function(){var C=_.B.apply(this,arguments)||this;C.roundedFix=_.y("web_enable_merch_item_rounding_fix");C.itemStyle="small-item";return C};
_.O(gP,_.B);gP.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var C,F,G,V,J=(F=_.Z((C=this.data)==null?void 0:C.buttonCommand,_.k$7))==null?void 0:(G=F.item)==null?void 0:(V=G.notificationTextRenderer)==null?void 0:V.successResponseText;J&&_.IqT(this.hostElement,J)}};
_.I6.Object.defineProperties(gP.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var C,F;return((C=this.data)==null?void 0:C.isProductPlaceholder)!==void 0&&((F=this.data)==null?void 0:F.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.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}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],gP.prototype,"ytRendererBehavior",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],gP.prototype,"roundedFix",void 0);_.R([_.L(),_.Y("design:type",Object)],gP.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],gP.prototype,"itemStyle",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],gP.prototype,"hasPrice",null);
_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],gP.prototype,"hasPriceReplacementText",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],gP.prototype,"hasAdditionalFeesText",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],gP.prototype,"hasAffiliateDisclaimer",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],gP.prototype,"isProductPlaceholder",null);
_.R([_.L(),_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],gP.prototype,"hideOpenInNewIcon",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],gP.prototype,"ariaLabel",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],gP);
_.q(gP,"ytd-merch-shelf-item-renderer",function(){if(Jqu!==void 0)return Jqu;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Jqu=C},{mode:1});_.gQ(_.d(function(C){return _.W("button-card-view-model",{el:_.dQ(_.lC(function(){return C.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return C.data().title},
role:"button"},_.W(_.QR,{model:{}}),_.W("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.W("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.W(_.a,{cond:function(){return C.data().image},
then:function(F){return _.W(_.AC,{data:F,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.W("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return C.data().title})))},"$b"),"button-card-view-model",{props:{data:_.CJ}});_.gQ(_.d(function(C){C=_.xz(C,{className:void 0});var F=C.data;C=C.className;var G=_.w0(function(){return F().onTapCommand},void 0,"SXkP9e");
return _.W("ytd-shopping-item-card",{class:_.py("ytdShoppingItemCardHost",C)},_.W(_.zV,{command:G,className:"ytdShoppingItemCardHostLink"},_.W("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.W(_.uC,{data:function(){return F().thumbnailViewModel}},{thumbnailViewModel:function(V){return _.W(_.zs,{data:V.data,
aspectRatio:3})}})),_.W("div",null,_.W("p",{class:"ytdShoppingItemCardHostItemTitle"},_.W(_.mn,{text:function(){return F().itemTitle}})),_.W("p",{class:"ytdShoppingItemCardHostPrice"},_.W(_.mn,{text:function(){return F().priceOrStatus}})))))},"ac"),"ytd-shopping-item-card",{props:{data:_.CJ,
className:_.CJ}});var $CO={isAdsVideo:!0},bmE={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},n7$={showPlayerControls:!1,videoPreviewDurationMs:15E3},umP={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0};var vl=null,EIB={};var aqi="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(" "),RO={},kM5=(RO.FEwhat_to_watch="home",RO.FEhashtag="hashtag",RO.FEtrending="trending",RO.FEhistory="history",RO.SPunlimited="premium",RO.FEmemberships_and_purchases="paid_memberships",RO.SPredeem_code="redeem",RO.SPverify_location="locate",RO.SPminor_moment="minor_moment",
RO.FEmini_app_container="mini_app",RO.FEnews_destination="news",RO.SPopen_in_app="open_in_app",RO.FEexplore="explore",RO.FEsubscriptions="subscriptions",RO.FEsfv_audio_pivot="sfv_audio_pivot",RO.FEplaylist_aggregation="playlist_aggregation",RO);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");_.mE("init");var z4m=function(){},Wam=_.d(function(C){var F=C.data;
var G=C.inlineMetadata;var V=C.aspectRatio;var J=C.scrimStyle;var b=C.className;var z=C.useDefaultStyle;var Q=C.titleStyle;var E=new z4m,t=_.y("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",k=_.w0(function(){return(z==null?0:z())?t==="SHORTS_LOCKUP_STYLE_SLIM":F().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"xq9ok"),U=_.w0(function(){return _.g0(G)||k()||!1},void 0,"neizSe"),H=function(){return(J==null?void 0:J())!==void 0?J==null?void 0:J():1},
l=_.w0(function(){return F().belowThumbnailMetadata||!U()},void 0,"HdmMMe");
C=_.Wv({visibilityCallback:function(Wo){var EB=F().onFirstVisible;Wo&&EB&&_.wQ(EB)},
showOption:{calledOnce:!0,state:"visible"}});var N=_.dQ(),S={},f=_.py(function(){return k(),"shortsLockupViewModelHostThumbnailContainer"},(S.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.g0(V)===1},S.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.g0(V)===2},S.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.y("web_shorts_2_by_3_lockups_study")&&!_.y("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
S)),c=_.w0(function(){if(_.g0(V)===1)return 1;
_.g0(V);return 2},void 0,"ZRUa3c"),A,T=function(){if(E){var Wo;
(Wo=A)==null||Ak(Wo);var EB;if(E.hostElement&&((EB=E.data)==null?0:EB.inlinePlayerData)){Wo=Object.assign({},umP);var L9,ki;((L9=E.data)==null?void 0:(ki=L9.inlinePlayerData)==null?void 0:ki.maxPlaybackLengthSec)!==void 0&&(Wo.videoPreviewDurationMs=E.data.inlinePlayerData.maxPlaybackLengthSec*1E3);A=ZR({mediaRenderer:E,lockupElement:E.hostElement,thumbnailElement:N.value,videoPreviewOpts:Wo})}}};
_.sq(function(){E&&(E.data=F(),T())},"c4oj4d");
var P=_.w0(function(){return F().thumbnail},void 0,"CJHyHc");
S=_.w0(function(){return F().badge},void 0,"g31PIe");
var g=_.w0(function(){return F().onTap},void 0,"CJCUBc"),r={},C9={};
return _.W("ytm-shorts-lockup-view-model",{el:_.dQ(function(Wo){E&&(E.hostElement=Wo)},T,C),
class:_.py("shortsLockupViewModelHost",b)},_.W(_.WQ,null,_.W(_.zV,{command:g,className:_.py("shortsLockupViewModelHostEndpoint",(r.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!l()},r),"reel-item-endpoint",""),
ariaHidden:function(){return!U()},
tabIndex:function(){return U()?0:-1}},_.W("div",{el:N,
class:_.py("shortsLockupViewModelHostThumbnailParentContainer",(C9.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!k()},C9))},_.W(_.a,{cond:P,
then:function(){return _.W("div",{class:f},_.W(_.AC,{data:function(){var Wo;return(Wo=P==null?void 0:P())!=null?Wo:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.W(_.uC,{data:function(){return F().thumbnailViewModel}},{thumbnailViewModel:function(Wo){return _.W(_.zs,{data:Wo.data,
aspectRatio:function(){return c()},
disableRounding:function(){return k()}})}}),null),_.W(_.a,{cond:U,
then:function(){return _.W(Q2O,{data:F,scrimStyle:H,useDefaultStyle:z,titleStyle:Q})}}),_.W(_.uC,{data:S},{badgeViewModel:function(Wo){return _.W(_.WI,{data:Wo.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.W(_.a,{cond:function(){return U()&&F().menuOnTap},
then:function(){return _.W(Imo,{data:F,inlineMetadata:!0})}}),_.W(_.a,{cond:l,
then:function(){return _.W(E7l,{data:F,useDefaultStyle:z,inlineMetadata:U})}})))},"cc"),Q2O=_.d(function(C){var F=C.data;
var G=C.scrimStyle;var V=C.useDefaultStyle;var J=C.titleStyle;var b=_.y("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",z=V&&_.y("web_hide_primary_text_for_pivot_panel"),Q=_.w0(function(){return(V==null?0:V())?b==="SHORTS_LOCKUP_STYLE_SLIM":F().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"eqtoN");
C={};C=_.py("shortsLockupViewModelHostInlineMetadata",(C.shortsLockupViewModelHostMetadataRounded=function(){return!Q()},C.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(G==null?void 0:G())===3&&!_.y("enable_shorts_lockup_new_scrim")},C.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(G==null?void 0:G())===3&&_.y("enable_shorts_lockup_new_scrim")},C.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(G==null?void 0:G())===2||(G==null?void 0:
G())===4},C.shortsLockupViewModelHostShowOverPlayer=function(){return!0},C),"image-overlay-text");
var E={};return _.W("div",{class:C},_.W("h3",{class:_.py("shortsLockupViewModelHostMetadataTitle",(E.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(G==null?void 0:G())===4},E.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return F().belowThumbnailMetadata},E.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(J==null?void 0:J())===1},E.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(J==null?void 0:J())===2},E)),
"aria-label":function(){return F().accessibilityText}},_.W(_.a,{cond:function(){var t;
return!((t=F().overlayMetadata)==null||!t.primaryText)&&!z},
then:function(){return _.W(_.mn,{text:function(){var t;return(t=F().overlayMetadata)==null?void 0:t.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.W(_.a,{cond:function(){var t;
return(t=F().overlayMetadata)==null?void 0:t.secondaryText},
then:function(){return _.W(tDy,{data:F,scrimStyle:G,className:void 0})}}))},"dc"),E7l=_.d(function(C){var F=C.data;
var G=C.useDefaultStyle;var V=C.inlineMetadata;var J=_.y("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",b=_.w0(function(){return(G==null?0:G())?J==="SHORTS_LOCKUP_STYLE_SLIM":F().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"rFGYIe"),z=_.dQ(),Q;
C=_.CZ(function(l){if(_.kb(_.ay(l),z.value,["AVATAR-VIEW-MODEL"]))return!1;var N;(N=Q)==null||N.click();return!1});
var E=_.w0(function(){return F().belowThumbnailMetadata||F().overlayMetadata},void 0,"yJVuMb"),t=function(){return F().menuOnTap&&!V()},k=function(){var l;
return(l=E())==null?void 0:l.avatar},U={},H={};
return _.W("div",{class:_.py(function(){return b()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(U.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!k()},U.shortsLockupViewModelHostOutsideMetadataHasMenu=t,U)),
"on:click":C,el:z,role:"presentation"},_.W(_.uC,{data:k},{avatarViewModel:function(l){return _.W("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.W(_.g$,{data:l.data}))}}),_.W("div",null,_.W("h3",{class:_.py("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(H.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var l,N;
return!((l=E())==null?0:(N=l.primaryText)==null?0:N.content)},H.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=V,H)),
role:"presentation"},_.W(_.zV,{ref:function(l){return void(Q=l)},
command:function(){return F().onTap},
className:_.py("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var l,N;return(l=E())==null?void 0:(N=l.primaryText)==null?void 0:N.content},
"aria-label":function(){return F().accessibilityText}},_.W(_.a,{cond:function(){var l;
return(l=E())==null?void 0:l.primaryText},
then:function(l){return _.W(_.mn,{text:l,noEndpoints:!0,noStyleRuns:!0})}}))),_.W(_.a,{cond:function(){var l;
return(l=E())==null?void 0:l.secondaryText},
then:function(l){return _.W("div",{class:_.py("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.W(_.mn,{text:l,noStyleRuns:!0}))}})),_.W(_.a,{cond:t,
then:function(){return _.W(Imo,{data:F,inlineMetadata:!1})}}))},"ec"),tDy=_.d(function(C){var F=C.data;
var G=C.scrimStyle;C=C.className;var V={};return _.W("div",{class:_.py((V.shortsLockupViewModelHostMetadataSubhead=function(){return(G==null?void 0:G())!==4},V.shortsLockupViewModelHostMetadataSubheadNew=_.y("enable_shorts_lockup_new_scrim"),V.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(G==null?void 0:G())===4},V),C),
"aria-hidden":"true"},_.W(_.mn,{text:function(){var J;return(J=F().overlayMetadata)==null?void 0:J.secondaryText},
noStyleRuns:!0}))},"fc"),Imo=_.d(function(C){var F=C.data;
var G=C.inlineMetadata;C={};C=_.py((C.shortsLockupViewModelHostInlineMetadataMenu=function(){return G()},C.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!G()},C.shortsLockupViewModelHostShowOverPlayer=function(){return!0},C),"image-overlay-text");
return _.W("div",{class:C},_.W(_.Wn,{data:function(){return{style:G()?"overlay":"mono",accessibilityLabel:F().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(V){V.preventDefault();V.stopPropagation();var J=_.O9({elementsCommand:F().menuOnTap,forceNewState:!0});if(J==null?0:J.onclick)J.onclick(V)}}},
iconName:"MORE_VERT"}))},"gc");var am2=_.d(function(C){var F=C.data;var G=C.inlineMetadata;var V=C.aspectRatio;var J=C.scrimStyle;var b=C.className;var z=C.useDefaultStyle;C=_.w0(function(){var Q=F().entityId;return Q?Q.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.W("ytm-shorts-lockup-view-model-v2",{class:_.py("shortsLockupViewModelHost",b)},_.W(_.UG,{contentId:C,aspectRatio:function(){return(V==null?void 0:V())===1?1:(V==null?void 0:V())===2?2:4}},function(){return _.W(Wam,{data:F,
inlineMetadata:G,aspectRatio:V,scrimStyle:J,className:b,useDefaultStyle:z})}))},"hc");_.gQ(am2,"ytm-shorts-lockup-view-model-v2",{props:{data:_.s9,inlineMetadata:_.s9,aspectRatio:_.s9,scrimStyle:_.s9,className:_.s9,useDefaultStyle:_.s9,titleStyle:_.s9}});var kXu=16/9*210,YV=function(){var C=_.B.apply(this,arguments)||this;C.isExpandableContent=!1;C.hideShelfHeader=!1;C.engagementPanel=!1;C.buttonClasses=["arrow"];C.isSearch=!1;C.disableScrollEventListener=!1;C.containsLockup=!1;C.overrideArrowPositionForProductCard=!1;C.overrideArrowPositionForShoppingItemCard=!1;C.overrideArrowPositionForReelItems=!1;C.overrideArrowPositionForGridMovie=!1;C.overrideArrowPositionToCenter=!1;C.isSearchPostShelf=!1;C.overrideArrowPositionForMixedShelf=!1;C.overrideArrowPositionForMixedShelfShortsOnly=
!1;C.hasBigThumbsReelItems=!1;C.shouldUseMixedListHeight=!1;C.shouldUseShortsListHeight=!1;C.gridVideoWidth=0;C.isSearchVodShelf=!1;C.disableWheelScroll=!1;C.sizing="COMPACT";C.shortsLockupAspectRatio=0;return C};
_.O(YV,_.B);_.n=YV.prototype;
_.n.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]]"}}}}};
_.n.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.y("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.n.computeInitialCountNumber=function(C){if(!C)return 6;var F=C.items.some(function(b){return!!b.topicRecommendationsChipRenderer}),G=C.items.some(function(b){return!!b.displayAdRenderer}),V=this.computeShouldListItemsHaveEqualHeight(C),J=C.items.some(function(b){return!!b.gridPlaylistRenderer});
C=C.items.some(function(b){return!!b.shoppingItemCardViewModel});
return F?9:G?8:J||V?10:C?7:6};
_.n.computeContainsPost=function(C){return!!C&&!!C.items&&C.items.some(function(F){return!!F.postRenderer})};
_.n.computeContainsLockup=function(){if(_.y("web_horizontal_list_lockup_arrow_killswitch"))return!1;var C,F;return(C=this.data)==null?void 0:(F=C.items)==null?void 0:F.some(function(G){return!!G.lockupViewModel})};
_.n.maybeUpdateLockupAspectRatio=function(){var C,F;if(this.computeContainsLockup()&&((C=this.data)==null?0:(F=C.items)==null?0:F.length)){var G;C=dKE((G=this.data.items[0].lockupViewModel)==null?void 0:G.contentType,this.data.force16By9ThumbnailAspectRatio);G=dIZ(C);G=this.computeLockupWidth()/G;_.jr(this.hostElement,{"--yt-horizontal-list-content-height":G+"px"})}};
_.n.computeOverrideArrowPositionForProductCard=function(C){if(this.isExpandableContent)return!1;var F;return!!(C==null?0:(F=C.items)==null?0:F.some(function(G){return!!G.verticalProductCardRenderer}))};
_.n.computeOverrideArrowPositionForShoppingItemCard=function(C){var F;return!!(C==null?0:(F=C.items)==null?0:F.some(function(G){return!!G.shoppingItemCardViewModel}))};
_.n.computeOverrideArrowPositionForReelItemRenderer=function(C){return this.containsReelItemRenderer(C)};
_.n.computeHasBigThumbsReelItems=function(C,F){return C&&this.containsReelItemRenderer(F)};
_.n.computeShouldListItemsHaveEqualHeight=function(C){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(C==null?void 0:C.itemSizeConstraint)};
_.n.computeShouldListItemsHaveShortsHeight=function(C){return this.computeShouldListItemsHaveEqualHeight(C)&&!this.containsGridVideoRenderer(C)};
_.n.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.n.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.n.containsReelItemRenderer=function(C){var F;return!!(C==null?0:(F=C.items)==null?0:F.some(function(G){return!(!G.reelItemRenderer&&!G.shortsLockupViewModel)}))};
_.n.containsGridVideoRenderer=function(C){var F;return!!(C==null?0:(F=C.items)==null?0:F.some(function(G){return!!G.gridVideoRenderer||!!G.lockupViewModel}))};
_.n.computeContainsGridMovieRenderer=function(C){var F;return!!(C==null?0:(F=C.items)==null?0:F.some(function(G){return!!G.gridMovieRenderer}))};
_.n.computeOverrideArrowPositionToCenter=function(C){return this.computeIsSearchPostShelf(C)};
_.n.computeIsSearchPostShelf=function(C){var F;return!!(C==null?0:(F=C.items)==null?0:F.some(function(G){var V,J;return((J=(V=G.postRenderer)==null?void 0:V.surface)!=null?J:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.n.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(C){var F;return!!(C==null?0:(F=C.items)==null?0:F.some(function(G){var V,J,b;return((b=(V=G.backgroundPromoRenderer)==null?void 0:(J=V.style)==null?void 0:J.value)!=null?b:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.n.computeIsSearchVodShelf=function(C,F){return C&&this.containsGridVideoRenderer(F)};
_.n.computeDisableWheelScroll=function(C,F){return this.computeIsSearchVodShelf(C,F)};
_.n.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.n.computeShortsLockupAspectRatio=function(){return 1};
_.n.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.jr(this.hostElement,{"--ytd-reel-item-thumbnail-height":kXu+"px"})};
YV.prototype.dataChanged=YV.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],YV.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],YV.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.QU.YtdHorizontalListBehavior),_.Y("design:type",Object)],YV.prototype,"ytdHorizontalListBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],YV.prototype,"data",void 0);
_.R([_.L(),_.Y("design:type",Object)],YV.prototype,"isExpandableContent",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],YV.prototype,"hideShelfHeader",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],YV.prototype,"engagementPanel",void 0);_.R([_.L(),_.Y("design:type",Array)],YV.prototype,"buttonClasses",void 0);_.R([_.L(),_.Y("design:type",Object)],YV.prototype,"isSearch",void 0);
_.R([_.L(),_.Y("design:type",Object)],YV.prototype,"disableScrollEventListener",void 0);_.R([_.L({computed:"computeInitialCountNumber(data)"}),_.Y("design:type",Number)],YV.prototype,"initialCount",void 0);_.R([_.L({computed:"computeContainsPost(data)"}),_.Y("design:type",Boolean)],YV.prototype,"supportComponentResize",void 0);_.R([_.L({computed:"computeContainsPost(data)"}),_.Y("design:type",Boolean)],YV.prototype,"containsPost",void 0);
_.R([_.L({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],YV.prototype,"containsLockup",void 0);_.R([_.L({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],YV.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.R([_.L({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],YV.prototype,"overrideArrowPositionForProductCard",void 0);_.R([_.L({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],YV.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.R([_.L({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],YV.prototype,"overrideArrowPositionForReelItems",void 0);_.R([_.L({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],YV.prototype,"overrideArrowPositionForGridMovie",void 0);
_.R([_.L({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],YV.prototype,"overrideArrowPositionToCenter",void 0);_.R([_.L({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],YV.prototype,"isSearchPostShelf",void 0);_.R([_.L({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],YV.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.R([_.L({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],YV.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.R([_.L({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.Y("design:type",Object)],YV.prototype,"hasBigThumbsReelItems",void 0);
_.R([_.L({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],YV.prototype,"shouldUseMixedListHeight",void 0);_.R([_.L({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],YV.prototype,"shouldUseShortsListHeight",void 0);_.R([_.L({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],YV.prototype,"gridVideoWidth",void 0);
_.R([_.L({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.Y("design:type",Object)],YV.prototype,"isSearchVodShelf",void 0);_.R([_.L({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.Y("design:type",Object)],YV.prototype,"disableWheelScroll",void 0);_.R([_.L({computed:"computeSizing(isSearch)"}),_.Y("design:type",Object)],YV.prototype,"sizing",void 0);
_.R([_.L({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.Y("design:type",Object)],YV.prototype,"shortsLockupAspectRatio",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YV.prototype,"dataChanged",null);
_.q(YV,"yt-horizontal-list-renderer",function(){if(HsE===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);HsE=C}C=HsE;return C},{mode:1});var UCP=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
UCP.prototype.subscribe=function(C,F){var G=this.subscriptions.get(C);if(!G)return function(){};
G.add(F);return function(){G.delete(F)}};
UCP.prototype.unsubscribe=function(C,F){(C=this.subscriptions.get(C))&&C.delete(F)};
UCP.prototype.publish=function(C,F){F=F===void 0?{}:F;(C=this.subscriptions.get(C))&&C.forEach(function(G){G(F)})};var Hm$;var lmG=[10,12,14,16,18,20,24,28,32,36],yqu=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],Ts=function(){var C=_.B.apply(this,arguments)||this;C.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";C.hideOverflow=!1;C.useRoboto=!1;C.fontClass="";C.overflown=!1;C.actionMap={"yt-window-resized":"resize"};return C};
_.O(Ts,_.B);_.n=Ts.prototype;
_.n.attached=function(){var C=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();_.zH(this,function(){C.resize()});
if(!_.rp){var F,G,V;(F=document)==null||(G=F.fonts)==null||(V=G.ready)==null||V.then(function(){C.resize()})}};
_.n.dataChanged=function(){this.resize()};
_.n.guideIsExpandedChanged=function(){this.resize()};
_.n.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 C=this.getMaxNumLines(),F=this.getMinFont(),G=this.getMaxFont(),V=this.useRoboto?lmG:yqu;for(V=V.filter(function(b){return b<=G&&b>=F});V.length>1;){var J=Math.floor(V.length/2);
this.updateFontSize(V[J]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=C)V=V.slice(J,V.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>C)V=V.slice(0,J);else break}this.updateFontSize(V[V.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(C)}};
_.n.handleOverflow=function(C){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>C&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",C.toString()))};
_.n.updateFontSize=function(C){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+C;this.textNode.classList.add(this.fontClass)};
_.n.getMaxFont=function(){var C=this.useRoboto?lmG:yqu;C=C[C.length-1];return this.maxFontSize&&this.maxFontSize<=C?this.maxFontSize:C};
_.n.getMinFont=function(){var C=(this.useRoboto?lmG:yqu)[0];return this.minFontSize&&this.minFontSize>=C?this.minFontSize:C};
_.n.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.n.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.n.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.dd(this.text).split("\n").length-1:Infinity};
_.n.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("Jh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
Ts.prototype.guideIsExpandedChanged=Ts.prototype.guideIsExpandedChanged;Ts.prototype.dataChanged=Ts.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Ts.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],Ts.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],Ts.prototype,"actionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Ts.prototype,"text",void 0);
_.R([_.L(),_.Y("design:type",String)],Ts.prototype,"fontFamily",void 0);_.R([_.L(),_.Y("design:type",Number)],Ts.prototype,"maxWidth",void 0);_.R([_.L(),_.Y("design:type",Number)],Ts.prototype,"maxHeight",void 0);_.R([_.L(),_.Y("design:type",Number)],Ts.prototype,"maxFontSize",void 0);_.R([_.L(),_.Y("design:type",Number)],Ts.prototype,"minFontSize",void 0);_.R([_.L(),_.Y("design:type",Number)],Ts.prototype,"maxLines",void 0);_.R([_.L(),_.Y("design:type",Object)],Ts.prototype,"hideOverflow",void 0);
_.R([_.L({selector:_.Mpw}),_.Y("design:type",Boolean)],Ts.prototype,"guideIsExpanded",void 0);_.R([_.$z("#container"),_.Y("design:type",HTMLElement)],Ts.prototype,"containerNode",void 0);_.R([_.$z("#text"),_.Y("design:type",HTMLElement)],Ts.prototype,"textNode",void 0);_.R([_.zp("text"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ts.prototype,"dataChanged",null);
_.R([_.zp("guideIsExpanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ts.prototype,"guideIsExpandedChanged",null);_.R([_.e({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],Ts);
_.q(Ts,"yt-dynamic-sizing-formatted-string",function(){if(Hm$!==void 0)return Hm$;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Hm$=C},{mode:1});var ZmE;_.NCP=function(C){_.FS.call(this,C)};
_.O(_.NCP,_.FS);var OmS=function(C){_.FS.call(this,C)};
_.O(OmS,_.NCP);var oO=function(){return _.B.apply(this,arguments)||this};
_.O(oO,_.B);oO.prototype.onTapSuspendedChannel=function(){var C;if((C=this.data)!=null&&C.serviceEndpoint){var F,G;(C=(G=_.Z((F=this.data)==null?void 0:F.serviceEndpoint,_.jW))==null?void 0:G.url)?_.Xp(C,void 0,void 0,window.top):(F=new OmS("Did not handle suspended account tap. No appealUrl."),_.gD(F))}else F=new OmS("Did not handle suspended account tap. No serviceEndpoint."),_.gD(F)};
oO.prototype.onTap=function(){var C=this,F=_.ia(),G,V=(G=_.Vp(F,{veType:7116}))!=null?G:void 0;_.LZ(F,{visualElement:V});_.Nz();this.saveRoleText();var J;if((J=this.data)==null?0:J.youtubeSuspended)this.onTapSuspendedChannel();else{var b=!1,z,Q;(F=(Q=_.Z((z=this.data)==null?void 0:z.serviceEndpoint,_.ZKu))==null?void 0:Q.supportedTokens)&&F.forEach(function(E){if(E.accountSigninToken)if(b=!0,C.onAccountItemTap)C.onAccountItemTap(E.accountSigninToken.signinUrl);else _.Xp(E.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!b){if(z=this.get("serviceEndpoint",this.data))b=!0,this.ytComponentBehavior.resolveCommand(z);b||_.R1(new OmS("Did not handle account switch tap. No token."))}}};
oO.prototype.saveRoleText=function(){if(this.data){var C=this.data,F=C.channelDelegationRole;if(F){var G,V=(G=_.Z(C==null?void 0:C.serviceEndpoint,_.ZKu))==null?void 0:G.supportedTokens;if(!V){var J,b,z,Q;V=(J=_.Z(C==null?void 0:C.serviceEndpoint,_.vf))==null?void 0:(b=J.popup)==null?void 0:(z=b.confirmDialogRenderer)==null?void 0:(Q=z.confirmButton)==null?void 0:Q.buttonRenderer;var E;V=(E=_.Z(V==null?void 0:V.command,_.Cl))==null?void 0:E.commands;if(!V)return;var t;V=(t=_.Z(V[1],_.ZKu))==null?
void 0:t.supportedTokens}if(V){E=void 0;t=_.u(V);for(V=t.next();!V.done;V=t.next())if(V=V.value,V.datasyncIdToken){E=V.datasyncIdToken.datasyncIdToken;break}if(E){var k;a:{if(_.R3E()&&(t=_.PQI(E+"::pom"))){t=new S8(t);break a}t=void 0}(k=t)==null||k.set("role_text",F);if((VzW?VzW:window.location).href.indexOf("studio")!==-1&&(k=YGi())){t=k.src?(new URL(k.src)).origin:"*";var U;(U=k.contentWindow)==null||U.postMessage({action:"save_pom_role",datasyncId:E,roleText:F},t)}}}}}};
_.I6.Object.defineProperties(oO.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var C,F,G=(C=this.data)==null?void 0:(F=C.accountPhoto)==null?void 0:F.thumbnails;return G&&G.length>0&&(G[0].height===36||G[0].height===48)?G[0].height:40}}});
oO.prototype.onTap=oO.prototype.onTap;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],oO.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],oO.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],oO.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!1}),_.Y("design:type",Function)],oO.prototype,"onAccountItemTap",void 0);
_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],oO.prototype,"enableRingForActiveAccount",null);_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],oO.prototype,"thumbnailSize",null);_.R([_.VG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oO.prototype,"onTap",null);_.R([_.e({is:"ytd-account-item-renderer",disableElementRegistration:!0})],oO);
_.q(oO,"ytd-account-item-renderer",function(){if(ZmE!==void 0)return ZmE;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return ZmE=C},{mode:1});var XFP;var rP=function(){return _.B.apply(this,arguments)||this};
_.O(rP,_.B);rP.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.I8().resolve(_.WD).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],rP.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],rP.prototype,"data",void 0);_.R([_.e({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],rP);
_.q(rP,"ytd-identity-chip-renderer",function(){if(XFP!==void 0)return XFP;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return XFP=C},{mode:1});var wFu;var MDr;var Su8;var La8;var Kp=function(){var C=_.B.apply(this,arguments)||this;C.richItemMinWidth=_.a8("wn_grid_min_item_width",310);C.isShorts=!1;C.isWatchNext=!1;C.isExploreHub=!1;return C};
_.O(Kp,_.B);_.I6.Object.defineProperties(Kp.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var C=[],F=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.jr(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var G;if(((G=this.data)==null?0:G.rows)&&F)for(F*=this.data.rows,G=0;G<F;G++)C.push({});return C}}});
_.R([_.w(_.Rr),_.Y("design:type",Object)],Kp.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Kp.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Kp.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,selector:_.lK,value:3}),_.Y("design:type",Number)],Kp.prototype,"itemsPerRow",void 0);_.R([_.L({selector:_.wni,value:6}),_.Y("design:type",Number)],Kp.prototype,"slimItemsPerRow",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Number)],Kp.prototype,"richItemMinWidth",void 0);_.R([_.L({reflectToAttribute:!0,selector:_.HY}),_.Y("design:type",Boolean)],Kp.prototype,"miniMode",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Kp.prototype,"isShorts",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Kp.prototype,"isWatchNext",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Kp.prototype,"isExploreHub",void 0);
_.R([_.M("isExploreHub"),_.L({reflectToAttribute:!0}),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Kp.prototype,"shimmerAnimation",null);_.R([_.M("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],Kp.prototype,"cardItems",null);_.R([_.e({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],Kp);
_.BCu=_.Tp()(Kp,"ytd-ghost-grid-renderer",function(){if(La8===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);La8=C}C=La8;return C},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.gQ(_.d(function(C){var F=_.xz(C,{numberOfComments:3}).numberOfComments,G=_.xz(C,{isInitialLoad:!1}).isInitialLoad,V=_.xz(C,{engagementPanel:!1}).engagementPanel,J=function(){return Math.min(Number(F==null?void 0:F())||20,20)};
return _.W("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.W(_.a,{cond:function(){return!(V==null?0:V())&&(G==null?void 0:G())},
then:function(){return _.W("div",{class:"ytGhostCommentsComments"},_.W("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.W("div",{class:_.py("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.W("div",{class:_.py("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.W("div",{class:"ytGhostCommentsGhostCard"},_.W("div",{class:"ytGhostCommentsAvatar"},_.W("div",{class:"ytGhostCommentsCircle"})),_.W("div",{class:"ytGhostCommentsComments"},_.W("div",{class:"ytGhostCommentsMeta"},
_.W("div",{class:_.py("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.W("div",{class:_.py("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.W("div",{class:"ytGhostCommentsComments"},_.W(_.Ag,{each:function(){return Array((J==null?void 0:J())||3)}},function(){return _.W("div",{class:"ytGhostCommentsGhostCard"},_.W("div",{class:"ytGhostCommentsAvatar"},_.W("div",{class:"ytGhostCommentsCircle"})),_.W("div",{class:"ytGhostCommentsHost"},_.W("div",{class:"ytGhostCommentsMeta"},
_.W("div",{class:_.py("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.W("div",{class:_.py("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.W("div",{class:_.py("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.W("div",{class:"ytGhostCommentsGhostLikeDislike"},_.W("div",{class:_.py("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.W("div",{class:_.py("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"ic"),"yt-ghost-comments",{props:{numberOfComments:_.CJ,
isInitialLoad:_.CJ,engagementPanel:_.CJ},unsafeExternallySettableAttributes:new Set(["hidden"])});_.ae("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var DM=function(){var C=_.B.apply(this,arguments)||this;C.isOverridable=!1;C.spinnerActive=!1;C.showButton=!1;C.isCommentsSection=!1;C.engagementPanel=!0;C.isShortsGrid=!1;C.isShortsPage=!1;C.isWatchPage=!1;C.originalShowButton=!1;C.endOfList=!1;return C};
_.O(DM,_.B);_.n=DM.prototype;_.n.resetIntersectionObserver=function(){var C;(C=this.observer)==null||C.disconnect();this.observer=void 0};
_.n.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var C,F;((C=this.data)==null?void 0:C.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((F=this.data)==null?0:F.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.n.initializeIntersectionObserver=function(){var C=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(F){F=_.u(F);for(var G=F.next();!G.done;G=F.next())G.value.isIntersecting&&(C.triggerContinuation(),C.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.n.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},showGhostCardComments:{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]]"}}}}}};
_.n.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var C;((C=this.data)==null?0:C.continuationEndpoint)&&(C=_.Z(this.data.continuationEndpoint,_.O4))&&this.ytdReduxBehavior.dispatch(_.rh({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:C}}))};
_.n.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.n.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.n.onServiceRequestCompleted=function(C,F){if(!_.y("kevlar_hide_spinner_on_empty_continuation_killswitch")){var G;(G=F.actions)!=null&&G.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.n.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.n.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.n.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.n.numberOfGhostCommentsChanged=function(){var C=3;if(this.engagementPanel){var F,G,V;C=Math.floor(((((F=this.hostElement)==null?void 0:(G=F.parentElement)==null?void 0:(V=G.parentElement)==null?void 0:V.scrollHeight)||108)-108)/108);C=this.isInitialLoad?Math.max(C,3):3}F=[].concat(_.da(this.hostElement.querySelectorAll("yt-ghost-comments")));F=_.u(F);for(G=F.next();!G.done;G=F.next())G=G.value,G.numberOfComments=C,G.isInitialLoad=this.isInitialLoad,G.engagementPanel=this.engagementPanel};
_.n.detached=function(){this.resetIntersectionObserver()};
_.I6.Object.defineProperties(DM.prototype,{showGhostCardComments:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton?{ghostCommentsSectionRenderer:!0}:!1}}});
DM.prototype.numberOfGhostCommentsChanged=DM.prototype.numberOfGhostCommentsChanged;DM.prototype.continuationTriggerOffsetChanged=DM.prototype.continuationTriggerOffsetChanged;DM.prototype.showButtonChanged=DM.prototype.showButtonChanged;DM.prototype.onYtServiceRequestCompletedForButtonRenderer=DM.prototype.onYtServiceRequestCompletedForButtonRenderer;DM.prototype.onServiceRequestCompleted=DM.prototype.onServiceRequestCompleted;DM.prototype.onYtServiceRequestSentForButtonRenderer=DM.prototype.onYtServiceRequestSentForButtonRenderer;
DM.prototype.observeData=DM.prototype.observeData;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],DM.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],DM.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.r6.YtVisibilityBehavior),_.Y("design:type",Object)],DM.prototype,"ytVisibilityBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],DM.prototype,"ytComponentBehavior",void 0);
_.R([_.w(_.Rr),_.Y("design:type",Object)],DM.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],DM.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],DM.prototype,"isOverridable",void 0);_.R([_.L(),_.Y("design:type",Object)],DM.prototype,"spinnerActive",void 0);_.R([_.L(),_.Y("design:type",Object)],DM.prototype,"showButton",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],DM.prototype,"isCommentsSection",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],DM.prototype,"engagementPanel",void 0);_.R([_.L(),_.Y("design:type",Object)],DM.prototype,"isShortsGrid",void 0);_.R([_.L({reflectToAttribute:!0,selector:_.BqI}),_.Y("design:type",Object)],DM.prototype,"isShortsPage",void 0);_.R([_.L({reflectToAttribute:!0,selector:_.LPo}),_.Y("design:type",Object)],DM.prototype,"isWatchPage",void 0);_.R([_.L(),_.Y("design:type",Number)],DM.prototype,"continuationTriggerOffset",void 0);
_.R([_.L(),_.Y("design:type",Object)],DM.prototype,"endOfList",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],DM.prototype,"isInitialLoad",void 0);_.R([_.$z("ytd-button-renderer"),_.Y("design:type",_.z6)],DM.prototype,"buttonRenderer",void 0);_.R([_.L(),_.Y("design:type",Object)],DM.prototype,"buttonOverrides",void 0);
_.R([_.L(),_.M("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DM.prototype,"showGhostCardComments",null);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DM.prototype,"observeData",null);
_.R([_.VG("yt-service-request-sent-button-renderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DM.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.en]),_.Y("design:returntype")],DM.prototype,"onServiceRequestCompleted",null);
_.R([_.VG("yt-service-request-completed-button-renderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DM.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.R([_.zp("showButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DM.prototype,"showButtonChanged",null);
_.R([_.zp("continuationTriggerOffset"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DM.prototype,"continuationTriggerOffsetChanged",null);_.R([_.iP("isInitialLoad","engagementPanel"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DM.prototype,"numberOfGhostCommentsChanged",null);_.R([_.e({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],DM);
_.q(DM,"ytd-continuation-item-renderer",function(){if(Su8!==void 0)return Su8;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Su8=C},{mode:1});var v7G;var pp=function(){var C=_.B.apply(this,arguments)||this;C.downloadProgress=0;C.transferState="TRANSFER_STATE_UNKNOWN";C.downloadState="DOWNLOAD_STATE_UNKNOWN";C.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";C.offlineVideoPolicyExpirationTimestamp=0;C.downloadedVideoPlaybackPosition=0;return C};
_.O(pp,_.B);pp.prototype.dataChanged=function(){var C;this.videoData=_.Z((C=this.data)==null?void 0:C.renderer,jrS);this.transferStateChanged()};
pp.prototype.downloadProgressChanged=function(){if(this.entityInfo){var C=Object.assign({},this.videoData),F=bRB(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),G=F.publishedTimeText,V=F.badges;C.shortViewCountText=F.shortViewCountText;C.publishedTimeText=G;C.badges=V;this.set("videoData",C)}};
pp.prototype.transferStateChanged=function(){if(this.entityInfo){var C=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",F=_.uK(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!n7(this.entityInfo.policyEntity),G=Object.assign({},this.videoData),V=bRB(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),J=V.publishedTimeText,b=V.badges;G.shortViewCountText=
V.shortViewCountText;G.publishedTimeText=J;G.badges=b;G.isDisabled=F;G.isWatched=this.downloadedVideoPlaybackPosition>0;G.navigationEndpoint=F?void 0:vXT(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var z;C&&((z=this.videoData)==null?0:z.videoId)&&!_.y("dl_resume_click_killswitch")&&(G.isDisabled=!1,G.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});G.thumbnailOverlays=JJA(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",G)}};
pp.prototype.transferStateChanged=pp.prototype.transferStateChanged;pp.prototype.downloadProgressChanged=pp.prototype.downloadProgressChanged;pp.prototype.dataChanged=pp.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],pp.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],pp.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],pp.prototype,"data",void 0);
_.R([_.L(),_.Y("design:type",Object)],pp.prototype,"videoData",void 0);_.R([_.L({selector:wd,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],pp.prototype,"downloadProgress",void 0);_.R([_.L(),_.Y("design:type",Number)],pp.prototype,"relativeDateReference",void 0);_.R([_.L({selector:_.O3,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],pp.prototype,"transferState",void 0);
_.R([_.L({selector:pnZ,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],pp.prototype,"downloadState",void 0);_.R([_.L({selector:ASZ,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],pp.prototype,"offlinePolicyAction",void 0);_.R([_.L({selector:ehf,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],pp.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.R([_.L({selector:MW,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],pp.prototype,"downloadedVideoPlaybackPosition",void 0);_.R([_.L({selector:xQB,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],pp.prototype,"entityInfo",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],pp.prototype,"isDownloading",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pp.prototype,"dataChanged",null);
_.R([_.zp("downloadProgress"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pp.prototype,"downloadProgressChanged",null);_.R([_.zp("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pp.prototype,"transferStateChanged",null);
_.R([_.e({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],pp);
_.q(pp,"ytd-downloaded-video-grid-video-renderer",function(){if(v7G!==void 0)return v7G;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return v7G=C},{mode:_.oN("kevlar_poly_si_batch_j025")?1:2});var fm8;var mu=function(){};
mu.prototype.resolve=function(C,F){var G=this;return _.I(function(V){return V.yield(G.resolveCommand(C,F),0)})};var h4r,C$;h4r=akI(function(C){return C.targetId},{shouldPersist:!1});
C$=h4r.updateData;_.cq8=h4r.useUpdatableData;var Aqu,e4m;Aqu=akI(function(C){return C.targetId});
e4m=Aqu.updateData;_.dCl=Aqu.useUpdatableData;var xC8=yFo.bind(null,C$),s2m=yFo.bind(null,e4m);(function(C,F,G){var V=_.Z(G==null?void 0:G.updatedRenderer,_.Bq2);return V?C({targetId:F},function(){return V}):!1}).bind(null,C$);var jz=function(){};
_.O(jz,mu);jz.prototype.resolveCommand=function(C){var F;return _.I(function(G){F=_.Z(C,_.w5W);if(!F)return G.return();xC8(F.targetId,F);_.S9(G)})};var FY=function(){var C=_.n5.apply(this,arguments)||this;C.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return C};
_.O(FY,_.n5);_.n=FY.prototype;_.n.configureContinuationPathMap=function(){return{}};
_.n.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.n.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.n.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.n.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.n.handleAppendContinuationItemsAction=function(C){var F=_.Z(C,_.X3$);if(this.data&&this.data.targetId&&F&&this.continuationPathMap&&F.targetId===this.data.targetId){var G=JmZ(C),V=G&&this.continuationPathMap[G];if(V&&G)if(C=this.get(V,this.data)){a:{for(G=0;G<C.length;G++){var J=C[G],b=void 0,z=!!_.Z((b=_.Z(J,Iw8))==null?void 0:b.content,_.DQy);if(_.Z(J,_.eZ)||z)break a}G=C.length}V="data."+V;F.continuationItems?G===C.length-1?(this.pop(V),this.push.apply(this,[V].concat(_.da(F.continuationItems)))):
G===C.length?this.push.apply(this,[V].concat(_.da(F.continuationItems))):this.splice.apply(this,[V,G,1].concat(_.da(F.continuationItems))):this.splice(V,G,1);(_.y("web_enable_voting_animation")||_.y("enable_music_web_cairo_voting_animation"))&&_.oo(this.hostElement,"yt-append-continuation-items-action-finished");_.oo(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.Yw(new _.Ay("append continuation items does not exist",G));else _.Yw(new _.Ay("append continuation path does not exist",
G))}};
_.n.handleReloadContinuationItemsCommand=function(C){var F=_.Z(C,_.w5W);if(this.data&&F){if(_.y("web_client_explore_hub")||_.y("web_explore_hub_on_hover")||_.y("web_client_explore_hub_on_hover"))try{_.I8().resolve(jz).resolveCommand(C)}catch(b){}if(this.data.targetId&&this.continuationPathMap&&F.targetId===this.data.targetId&&(!_.y("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||F.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var G,V=(G=F.slot)==null?void 0:
G.replace("RELOAD_CONTINUATION_SLOT_","");G=(C=JmZ(C)+"-"+(V==null?void 0:V.toLowerCase()))&&this.continuationPathMap[C];if(!G||!C||!V)_.Yw(new _.Ay("reload continuation path does not exist",C));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(F)){if(F.replaceWithFirstItem){var J;this.set("data."+G,((J=F.continuationItems)==null?0:J.length)?F.continuationItems[0]:{})}else this.set("data."+G,F.continuationItems?F.continuationItems:[]);this.continuationIsReloading=
!1;_.oo(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.n.handleShowReloadUiCommand=function(C){C=_.Z(C,qzE);var F;((F=this.data)==null?0:F.targetId)&&(C==null?0:C.targetId)&&C.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
FY.prototype.observeData=FY.prototype.observeData;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],FY.prototype,"actionHandlerBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],FY.prototype,"componentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],FY.prototype,"data",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],FY.prototype,"continuationIsReloading",void 0);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],FY.prototype,"observeData",null);_.R([_.uP()],FY);_.G1=[_.Ys.YtComponentBehavior,_.Z7.YtActionHandlerBehavior,FY.prototype];_.VD={};_.VD.YtNextContinuationBehavior=[_.ic.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",_.Gp(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.Gp(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(C,F){C.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,F,{}):(C={locationRetrieved:function(G){this.makeNextContinuationRequest_(G,F,{})}.bind(this)},_.oo(this.hostElement,"yt-retrieve-location",C))},
makeNextContinuationRequest_:function(C,F,G){_.OZ("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();C=F(C);var V;this.canUseContextualNetworkManager_()&&(V=this.getNetworkManager());V||(V=_.I8().resolve(_.zt));F=_.BB.instance;if(_.TF("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&F){V=_.qW([C.startsWith("/")?C.substr(1):C]);var J,b;G=_.j8(F,{},V,G==null?void 0:(J=G.context)==null?void 0:(b=J.clickTracking)==null?void 0:b.clickTrackingParams).then(function(z){return{response:z}})}else G=
this.nextContinuation.usePost?V.postData(C,G):V.fetchData(C);
G.then(this.updateNextContinuationData_.bind(this,C));this.pendingContinuationRequest_=G;this.startListeningForNavigate_()},
updateNextContinuationData_:function(C,F){var G=this;_.OZ("ncl");this.pendingContinuationRequest_=void 0;if(F){var V={};this.nextContinuation&&(V=this.nextContinuation);if(F.response&&F.response.continuationContents&&F.response.continuationContents[V.continuationType]){C=F.response.continuationContents[V.continuationType];var J=V.header||"data.header",b=C[V.responseHeaderKey||"header"];b&&this.set(J,b);J=V.contentsArray||"data.contents";b=this.getContents_(C,V.responseContentsKey||"contents")||[];
this.pathExists_(J)?(b.unshift(J),this.push.apply(this,b)):this.set(J,b);b&&(ZoS(_.ia(),F.response,this.hostElement,function(z){_.rz(G.hostElement,"yt-store-grafted-ve-action",[z])}),_.oo(this.hostElement,"yt-next-continuation-data-updated",{continuationData:F,
page:this,contentsArray:J}));this.set(V.continuationsArray||"data.continuations",C[V.responseContinuationsKey||"continuations"]||[])}else F.reload?_.Yw(new _.Ay("Reloading from continuation is unsupported")):F.responseContext&&F.responseContext.errors||(delete F.xsrf_token,delete F.timing,delete F.endpoint,delete F.csn,F.responseContext&&delete F.responseContext.serviceTrackingParams,J={request:_.iH(C,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(F).sort()},F.response&&(J.responseContentKeys=
Object.keys(F.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(J.continuationType=this.nextContinuation.continuationType.substr(0,256)),F=new _.Ay("Malformed continuation",J),C.indexOf("/comment_service_ajax")==0?_.Yw(F):_.gD(F)),this.set(V.continuationsArray||"data.continuations",[])}else _.R1(new _.Ay("Missing continuation response",C))},
getContents_:function(C,F){F=F.split(".");return _.xf.getValueByKeys(C,F)},
pathExists_:function(C){var F=this;C=C.toString().split(".");for(var G=0;G<C.length;G++)if(F=F[C[G]],F===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var qur;var PDo;var iL=function(){var C=_.B.apply(this,arguments)||this;C.triggered_=!1;return C};
_.O(iL,_.B);_.n=iL.prototype;_.n.attached=function(){this.maybeTriggerAutoload()};
_.n.detached=function(){this.hasBeenTriggered_=!1};
_.n.onPrescanVisible=function(){this.onShow()};
_.n.onShow=function(){this.showButton||this.trigger()};
_.n.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.oo(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.n.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.n.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.n.computeLabel_=function(C,F){return C===void 0?null:C.label||!F?C.label:this.showMoreText_};
_.n.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.n.getContinuationUrl=function(C){var F={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(F.itct=this.data.clickTrackingParams);return _.Jy(C,F)};
_.n.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
iL.prototype.showButtonChanged_=iL.prototype.showButtonChanged_;iL.prototype.observeData_=iL.prototype.observeData_;_.R([_.w(_.r6.YtVisibilityBehavior),_.Y("design:type",Object)],iL.prototype,"ytVisibilityBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],iL.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],iL.prototype,"data",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],iL.prototype,"showButton",void 0);
_.R([_.L({value:!1}),_.Y("design:type",Boolean)],iL.prototype,"showIcon",void 0);_.R([_.L({computed:"computeLabel_(data, showButton)"}),_.Y("design:type",Object)],iL.prototype,"label",void 0);_.R([_.L({value:_.eN(_.iQ("SHOW_MORE",void 0,"Show More"))}),_.Y("design:type",Object)],iL.prototype,"showMoreText_",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],iL.prototype,"spinnerActive_",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],iL.prototype,"hasBeenTriggered_",void 0);
_.R([_.L({value:void 0}),_.Y("design:type",String)],iL.prototype,"observeVisibleOption",void 0);_.R([_.L({value:void 0}),_.Y("design:type",String)],iL.prototype,"observeHiddenOption",void 0);_.R([_.L({value:"observe_once"}),_.Y("design:type",Object)],iL.prototype,"observePrescanOption",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iL.prototype,"observeData_",null);
_.R([_.iP("showButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iL.prototype,"showButtonChanged_",null);_.R([_.Z5({is:"yt-next-continuation",disableElementRegistration:!0})],iL);
_.q(iL,"yt-next-continuation",function(){if(PDo===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;qur===void 0&&(qur=document.createElement("template"));var V=qur;G.call(F,V.content.cloneNode(!0),C.content.firstChild);PDo=C}C=PDo;return C},{mode:2});var g78;var R4o;var Jw=function(){return _.B.apply(this,arguments)||this};
_.O(Jw,_.B);Jw.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Jw.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Jw.prototype,"data",void 0);_.R([_.Z5({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],Jw);
_.q(Jw,"yt-music-pass-small-feature-info-renderer",function(){if(R4o===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;g78===void 0&&(g78=document.createElement("template"));var V=g78;G.call(F,V.content.cloneNode(!0),C.content.firstChild);R4o=C}C=R4o;return C},{mode:2});_.ae("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var $N=function(){var C=_.B.apply(this,arguments)||this;C.isCollapsible=!1;C.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return C};
_.O($N,_.B);_.n=$N.prototype;_.n.computeIsCollapsible=function(C){return!!(((C==null?0:C.showMoreText)||(C==null?0:C.visibleRowCount))&&(C==null?0:C.isCollapsible))};
_.n.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"}}}};
_.n.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.n.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.n.onIronResize=function(){var C=this;_.Bb(this,"updateGridInitItems",function(){C.maybeUpdateInitialItemsDisplayed()})};
_.n.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var C=this.getVisibleWidth();C!==0&&(C=Math.floor(C/214)*(this.data.visibleRowCount||2),C!==this.initialCount&&(this.initialCount=C,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.n.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.n.computeExpandVisible=function(C,F,G,V){return C&&F&&G&&!!V&&!!V.showMoreText};
_.n.computeShowMoreButton=function(C){return{text:C,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.n.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.n.initCollapsed=function(){var C=this;this.ytLazyListBehavior.canShowMore=!1;var F;(this.collapsed=!((F=this.data)==null||!F.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.zH(this,function(){_.KX(C.hostElement,"yt-refit-popups-action")})};
_.n.fillRestIfNotCollapsible=function(){var C=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!C||this.ytLazyListBehavior.fillRemainingListItems()};
_.n.computeViewAllHidden=function(C,F){return C||!F.viewAllEndpoint};
$N.prototype.fillRestIfNotCollapsible=$N.prototype.fillRestIfNotCollapsible;$N.prototype.initCollapsed=$N.prototype.initCollapsed;$N.prototype.onIronResize=$N.prototype.onIronResize;$N.prototype.persistentGuideChanged=$N.prototype.persistentGuideChanged;_.R([_.w(_.AY),_.Y("design:type",Object)],$N.prototype,"ironResizableBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],$N.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],$N.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.zR.YtLazyListBehavior),_.Y("design:type",Object)],$N.prototype,"ytLazyListBehavior",void 0);_.R([_.w(_.VD.YtNextContinuationBehavior),_.Y("design:type",Object)],$N.prototype,"ytNextContinuationBehavior",void 0);_.R([_.w(_.DL.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],$N.prototype,"ytdGuideStateAwareBehavior",void 0);
_.R([_.w(_.G1),_.Y("design:type",Object)],$N.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],$N.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Boolean)],$N.prototype,"collapsed",void 0);_.R([_.L(),_.Y("design:type",Number)],$N.prototype,"initialCount",void 0);_.R([_.L({computed:"computeShowMoreButton(data.showMoreText)"}),_.Y("design:type",Object)],$N.prototype,"showMoreButton",void 0);
_.R([_.L({computed:"computeIsCollapsible(data)"}),_.Y("design:type",Object)],$N.prototype,"isCollapsible",void 0);_.R([_.$z("#items"),_.Y("design:type",HTMLElement)],$N.prototype,"items",void 0);_.R([_.zp("guidePersistentAndVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$N.prototype,"persistentGuideChanged",null);_.R([_.VG("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$N.prototype,"onIronResize",null);
_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$N.prototype,"initCollapsed",null);_.R([_.zp("canShowMore"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$N.prototype,"fillRestIfNotCollapsible",null);_.R([_.e({is:"ytd-grid-renderer",disableElementRegistration:!0})],$N);
_.q($N,"ytd-grid-renderer",function(){if(fm8!==void 0)return fm8;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return fm8=C},{mode:_.oN("kevlar_poly_si_batch_j025")?1:2});var bL=function(){return _.B.apply(this,arguments)||this};
_.O(bL,_.B);
bL.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"}}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],bL.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],bL.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],bL.prototype,"data",void 0);_.R([_.e({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],bL);
_.q(bL,"ytd-carousel-ad-renderer",function(){if(MDr!==void 0)return MDr;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return MDr=C},{mode:1});var YuE;var n$=function(){return _.B.apply(this,arguments)||this};
_.O(n$,_.B);_.n=n$.prototype;_.n.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"}}}};
_.n.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,n$.JSC$15493_CLICK_LOCATION_ID_MAP))};
_.n.onSitelinkTap=function(C){C.stopPropagation();var F,G,V=C==null?void 0:(F=C.model)==null?void 0:(G=F.item)==null?void 0:G.onTap;V&&this.ytSparklesClickLocationBehavior.handleClick(V,C,!1)};
_.n.onTap=function(C){var F=this.data&&this.data.content&&this.data.content.navigationEndpoint;F&&this.ytSparklesClickLocationBehavior.handleClick(F,C,!1)};
_.n.sendImpression=function(){if(this.data&&this.data.content)for(var C=_.u(this.data.content.impressionEndpoints||[]),F=C.next();!F.done;F=C.next()){F=_.u(F.value.loggingUrls||[]);for(var G=F.next();!G.done;G=F.next())G=G.value,G.baseUrl&&jQ(G.baseUrl,G.attributionSrcMode)}};
n$.prototype.onTap=n$.prototype.onTap;n$.prototype.dataChanged=n$.prototype.dataChanged;n$.JSC$15493_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"]]);
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],n$.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],n$.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.uY.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],n$.prototype,"ytSparklesClickLocationBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],n$.prototype,"data",void 0);
_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],n$.prototype,"dataChanged",null);_.R([_.VG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],n$.prototype,"onTap",null);_.R([_.e({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],n$);
_.q(n$,"ytd-promoted-sparkles-text-search-renderer",function(){if(YuE!==void 0)return YuE;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return YuE=C},{mode:1});var TC2;var uL=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-mute-ad-action":"handleMuteAd"};return C};
_.O(uL,_.B);_.n=uL.prototype;_.n.created=function(){this.activeView=new tJ(this.hostElement)};
_.n.configureRendererStamper=function(){return{"data.menu":{id:_.y("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]]"}}}}}};
_.n.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.n.computeHasAdBadge=function(C){return!(C==null||!C.adBadge)};
_.n.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",uL.JSC$15502_DEFAULT_AD_BADGE_RENDERER),_.pd(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&af(this.activeView,this.data.activeView),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,uL.JSC$15502_CLICK_LOCATION_ID_MAP))};
_.n.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var C;(((C=this.data)==null?void 0:C.impressionCommands)||[]).forEach(function(F){F=_.u(F.loggingUrls||[]);for(var G=F.next();!G.done;G=F.next())G=G.value,G.baseUrl&&jQ(G.baseUrl,G.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.n.onTap=function(C){var F,G=(F=this.data)==null?void 0:F.navigationEndpoint,V;(F=(V=this.data)==null?void 0:V.thumbnailNavigationEndpoint)&&_.s4(_.AR(C),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(F,C,!1):G&&this.ytSparklesClickLocationBehavior.handleClick(G,C,!1)};
_.n.handleMuteAd=function(){this.collapsed=!0};
_.n.attached=function(){var C=this;_.y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&kW(C.activeView)})};
_.n.detached=function(){_.y("stop_av_measurement_on_detach")&&kW(this.activeView)};
_.I6.Object.defineProperties(uL.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var C;return!(((C=this.data)==null?void 0:C.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var C;return!(((C=this.data)==null?void 0:C.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.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}}});
uL.prototype.dataChanged=uL.prototype.dataChanged;
uL.JSC$15502_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"]]);
uL.JSC$15502_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.iQ("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],uL.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],uL.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],uL.prototype,"actionHandlerBehavior",void 0);
_.R([_.w(_.uY.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],uL.prototype,"ytSparklesClickLocationBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],uL.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],uL.prototype,"collapsed",void 0);_.R([_.L({reflectToAttribute:!0,value:function(){return _.y("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],uL.prototype,"useBiggerThumbs",void 0);_.R([_.L({reflectToAttribute:!0,value:function(){return _.kU("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],uL.prototype,"biggerThumbsStyle",void 0);_.R([_.L({reflectToAttribute:!0,value:function(){return _.y("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.Y("design:type",Boolean)],uL.prototype,"fixAlignmentSmallScreens",void 0);_.R([_.L({reflectToAttribute:!0,value:function(){return _.y("enable_desktop_search_bigger_thumbs_square")}}),
_.Y("design:type",Boolean)],uL.prototype,"useBiggerThumbsSquare",void 0);_.R([_.L({reflectToAttribute:!0}),_.M("data.mediaHoverOverlay"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],uL.prototype,"hideHoverOverlay",null);_.R([_.L({reflectToAttribute:!0}),_.M("data.promotedSparklesWebStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],uL.prototype,"webSearchLayout",null);
_.R([_.L({reflectToAttribute:!0}),_.M("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],uL.prototype,"webSearchLayoutLandscape",null);_.R([_.L({reflectToAttribute:!0}),_.M("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],uL.prototype,"webSearchLayoutSquare",null);
_.R([_.L({reflectToAttribute:!0}),_.M("data.promotedSparklesWebStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],uL.prototype,"sparklesCtaNoBackground",null);_.R([_.L({reflectToAttribute:!0}),_.M("data.actionButton"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],uL.prototype,"hideActionButton",null);_.R([_.L({computed:"computeButtonOverride(uiUpdate)"}),_.Y("design:type",Object)],uL.prototype,"buttonOverride",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.Y("design:type",Boolean)],uL.prototype,"hasNewAdBadge",void 0);_.R([_.M("data.promotedSparklesWebStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],uL.prototype,"useRoundedBadge",null);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uL.prototype,"dataChanged",null);_.R([_.e({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],uL);
_.q(uL,"ytd-promoted-sparkles-web-renderer",function(){if(TC2!==void 0)return TC2;var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return TC2=C},{mode:1});var o7E;var z1=function(){var C=_.B.apply(this,arguments)||this;C.isInlinePreviewTriggered=!1;C.enableMonoStyle=_.y("enable_default_mono_cta_migration_web_client");return C};
_.O(z1,_.B);_.n=z1.prototype;_.n.created=function(){this.activeView=new tJ(this.hostElement)};
_.n.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]]"}}}}}};
_.n.computeShowCta=function(C){return!(C==null||!C.ctaRenderer)};
_.n.onCtaClick=function(){var C,F,G,V=(C=this.data)==null?void 0:(F=C.ctaRenderer)==null?void 0:(G=F.buttonRenderer)==null?void 0:G.command;V&&this.ytComponentBehavior.resolveCommand(V)};
_.n.onWatchButtonClick=function(){var C,F,G,V=(C=this.data)==null?void 0:(F=C.watchButtonRenderer)==null?void 0:(G=F.buttonRenderer)==null?void 0:G.command;V&&this.ytComponentBehavior.resolveCommand(V)};
_.n.onTap=function(){};
_.n.dataChanged=function(){if(this.data){var C;_.y("enable_inline_muted_playback_on_web_search")&&((C=this.data)==null?0:C.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",z1.JSC$15506_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&af(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",z1.JSC$15506_DEFAULT_CLICK_LOCATION_BEHAVIOR,z1.JSC$15506_CLICK_LOCATION_ID_MAP);this.thumbnail&&
(C=this.thumbnail.getElementsByTagName("a"),C.length>0&&(C=C.namedItem("thumbnail"))&&C.removeAttribute("href"));var F;if(((F=this.data)==null?0:F.forceImpAutoplay)&&_.y("enable_force_imp_autoplay_on_desktop_search")){var G;(G=this.JSC$15507_inlinePreviewHoverListener)==null||b0Z(G)}}};
_.n.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var C=_.u(this.data.impressionUrls),F=C.next();!F.done;F=C.next())F=F.value,gz5(F,YAA(F));this.data.impressionsFired=!0}};
_.n.maybeComputeHref=function(){return null};
_.n.computeIsShortDR=function(C){return!(C==null||!C.watchButtonRenderer)&&!(C==null||!C.ctaRenderer)&&!!this.enableShortDR};
_.n.computeIsNewUiOrShortDr=function(C){return!!this.enableUiUpdate||this.computeIsShortDR(C)};
_.n.computeIsNewUiAndNotShortDr=function(C){return!!this.enableUiUpdate&&!this.computeIsShortDR(C)};
_.n.computeHideAvatar=function(C){return!((C==null?0:C.channelThumbnail)&&this.computeIsNewUiOrShortDr(C))};
_.n.onClick=function(C){var F,G=(F=this.data)==null?void 0:F.navigationEndpoint;if(this.enableShortDR&&G&&(_.Z(G,_.eT)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(G,C,!!_.Z(G,_.eT)),C.stopPropagation();else if(G&&_.Z(G,_.eT))this.ytSparklesClickLocationBehavior.handleClick(G,C,!0),C.stopPropagation();else if(G){var V,J;((V=this.data)==null?0:V.navigationEndpoint)&&((J=this.data)==null?0:J.adPlaybackContextParams)&&(F=this.data.navigationEndpoint,C=this.data.adPlaybackContextParams,
F.commandMetadata&&_.Z(F.commandMetadata,_.GU)&&_.Z(F.commandMetadata,_.GU).url&&(F=_.Vt(_.Z(F.commandMetadata,_.GU).url).adurl)&&_.Y5o(F)&&_.qU(_.v9(F),{encoded_ad_playback_context:C}));this.ytComponentBehavior.resolveCommand(G)}};
_.n.computeButtonOverride=function(C){if(this.computeIsNewUiOrShortDr(C))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.n.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.n.onThumbnailContainerClick=function(C){this.onClick(C)};
_.n.computeThumbnailWidth=function(C,F){return C?F==="MASSIVE"?600:F==="BIG"?500:F==="MEDIUM"?450:420:360};
_.n.attached=function(){var C=this,F;_.y("enable_inline_muted_playback_on_web_search")&&((F=this.data)==null?0:F.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&kW(C.activeView)})};
_.n.detached=function(){var C;_.y("enable_inline_muted_playback_on_web_search")&&((C=this.data)==null?0:C.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.y("stop_av_measurement_on_detach")&&kW(this.activeView)};
_.n.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15507_inlinePreviewHoverListener=ZR({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:$CO})};
_.n.clearInlinePreviewHoverListeners=function(){var C;(C=this.JSC$15507_inlinePreviewHoverListener)==null||Ak(C)};
z1.prototype.dataChanged=z1.prototype.dataChanged;z1.prototype.onTap=z1.prototype.onTap;z1.JSC$15506_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.iQ("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};z1.JSC$15506_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
z1.JSC$15506_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"}];_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],z1.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],z1.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],z1.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.uY.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],z1.prototype,"ytSparklesClickLocationBehavior",void 0);_.R([_.$z("#main-container"),_.Y("design:type",HTMLElement)],z1.prototype,"mainContainer",void 0);
_.R([_.L(),_.Y("design:type",Object)],z1.prototype,"isInlinePreviewTriggered",void 0);_.R([_.L(),_.Y("design:type",Object)],z1.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,value:function(){return _.y("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],z1.prototype,"useBiggerThumbs",void 0);_.R([_.L({reflectToAttribute:!0,value:function(){return _.y("enable_video_display_compact_button_group_for_desktop_search")}}),
_.Y("design:type",Boolean)],z1.prototype,"enableShortDR",void 0);_.R([_.L({reflectToAttribute:!0,value:function(){return _.y("enable_vac_ui_update_for_desktop_search")}}),
_.Y("design:type",Boolean)],z1.prototype,"enableUiUpdate",void 0);_.R([_.L({reflectToAttribute:!0,value:function(){return _.kU("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],z1.prototype,"biggerThumbsStyle",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.Y("design:type",Boolean)],z1.prototype,"showCta",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.Y("design:type",Boolean)],z1.prototype,"isShortDr",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.Y("design:type",Boolean)],z1.prototype,"isShortDrOrNewUi",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.Y("design:type",Boolean)],z1.prototype,"isNewUiAndNotShortDr",void 0);_.R([_.L({computed:"computeButtonOverride(data)"}),_.Y("design:type",Object)],z1.prototype,"buttonOverride",void 0);_.R([_.L({computed:"computeSecondaryButtonOverride(data)"}),_.Y("design:type",Object)],z1.prototype,"secondaryButtonOverride",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],z1.prototype,"enableMonoStyle",void 0);
_.R([_.$z("ytd-thumbnail"),_.Y("design:type",HTMLElement)],z1.prototype,"thumbnail",void 0);_.R([_.VG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],z1.prototype,"onTap",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],z1.prototype,"dataChanged",null);_.R([_.e({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],z1);
_.q(z1,"ytd-promoted-video-renderer",function(){if(o7E!==void 0)return o7E;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return o7E=C},{mode:1});var rqu;var QD=function(){var C=_.B.apply(this,arguments)||this;C.useRoundedBadge=!0;C.sitelinkIds=[];return C};
_.O(QD,_.B);_.n=QD.prototype;
_.n.configureRendererStamper=function(){return{"data.menu":{id:_.y("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]]"}}}}}};
_.n.dataChanged=function(){var C;(C=this.data)!=null&&C.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,QD.JSC$15512_CLICK_LOCATION_ID_MAP)};
_.n.onTap=function(C){var F,G=(F=this.data)==null?void 0:F.navigationCommand;G&&!_.s4(_.AR(C),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(G,C,!1)};
_.n.onSitelinkTap=function(C){var F,G,V=C==null?void 0:(F=C.model)==null?void 0:(G=F.item)==null?void 0:G.onTap;V&&this.ytSparklesClickLocationBehavior.handleClick(V,C,!1)};
_.n.configureSitelinkClickTargets=function(){var C=this,F,G,V=(F=this.data)==null?void 0:(G=F.clickLocationTargets)==null?void 0:G.find(function(J){return J.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
V&&_.ot(this.hostElement).querySelectorAll(".sitelink").forEach(function(J){_.pd(J,"yt-simple-endpoint",!0);C.sitelinkIds.push(J.id);var b,z;(b=C.ytSparklesClickLocationBehavior)==null||(z=b.clickTargetMap)==null||z.set(J.id,V)})};
_.n.sendImpression=function(){var C,F,G=((C=this.data)==null?void 0:(F=C.impressionCommand)==null?void 0:F.loggingUrls)||[];C=_.u(G);for(F=C.next();!F.done;F=C.next())F=F.value,F.baseUrl&&jQ(F.baseUrl,F.attributionSrcMode)};
_.n.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.I6.Object.defineProperties(QD.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
QD.prototype.onTap=QD.prototype.onTap;QD.prototype.dataChanged=QD.prototype.dataChanged;QD.JSC$15512_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"]]);
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],QD.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],QD.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.uY.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],QD.prototype,"ytSparklesClickLocationBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],QD.prototype,"data",void 0);
_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],QD.prototype,"showFavicon",null);_.R([_.L({reflectToAttribute:!0,value:function(){return _.y("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],QD.prototype,"useBiggerThumbs",void 0);_.R([_.L({reflectToAttribute:!0,value:function(){return _.kU("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],QD.prototype,"biggerThumbsStyle",void 0);_.R([_.L({reflectToAttribute:!0,value:function(){return _.y("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.Y("design:type",Boolean)],QD.prototype,"enableThumbnailScalingFix",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],QD.prototype,"dataChanged",null);_.R([_.VG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],QD.prototype,"onTap",null);_.R([_.e({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],QD);
_.q(QD,"ytd-text-image-no-button-layout-renderer",function(){if(rqu!==void 0)return rqu;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return rqu=C},{mode:_.oN("kevlar_poly_si_batch_j028")?1:2});var KaS;var Ih=function(){var C=_.B.apply(this,arguments)||this;C.isInlinePlaybackState=!1;C.uiUpdate=_.y("web_modern_buttons");C.hideCta=_.y("hide_cta_for_home_web_video_ads");C.noBottomMargin=!1;C.animateInTimeStamp=_.a8("hide_cta_for_home_web_video_ads_animate_in_time");C.animateInCta=!1;C.isHovered=!1;C.enableMonoStyle=_.y("enable_default_mono_cta_migration_web_client");C.player=null;C.JSC$15519_playerEvents=new Map;C.JSC$15519_preventProgressSaveTimer=null;C.delayedCtaJobId=null;return C};
_.O(Ih,_.B);_.n=Ih.prototype;_.n.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]]"}}}}}};
_.n.attached=function(){this.JSC$15519_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15519_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.y("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.n.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15519_playerEvents)};
_.n.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",Ih.JSC$15518_DEFAULT_CLICK_LOCATION_BEHAVIOR,Ih.JSC$15518_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.n.hoverChanged=function(){var C=this;this.delayedCtaJobId&&(_.gT.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.y("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.Iy(_.gT,function(){C.buttonContainer.classList.add("show-delayed-buttons")},_.a8("delayed_cta_on_web_delay_milliseconds")))};
_.n.setPlayer=function(){var C=this,F;return _.I(function(G){if(G.nextAddress==1)return(F=_.KX(C.hostElement,"yt-get-inline-preview-player-action"))&&F[0]?G.yield(F[0].getPlayerPromise(),3):G.jumpTo(0);C.player=G.yieldResult;C.ytPlayerListenerBehavior.listenToPlayerEvents(C.player,C.JSC$15519_playerEvents);_.S9(G)})};
_.n.onPlaybackStart=function(){var C=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15519_preventProgressSaveTimer=_.rQ(_.gT,function(){C.JSC$15519_preventProgressSaveTimer=null},1E4))};
_.n.onVideoProgress=function(C){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&C>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.n.resetPreventProgressSaveTimer=function(){_.gT.cancelJob(this.JSC$15519_preventProgressSaveTimer);this.JSC$15519_preventProgressSaveTimer=null};
_.n.getSimpleString=function(C){return _.dd(C)};
_.n.onClick=function(C){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var F,G=(F=this.data)==null?void 0:F.navigationEndpoint,V;F=(V=this.data)==null?void 0:V.channelEndpoint;var J,b;((b=_.Z((J=this.data)==null?void 0:J.adCtaButton,_.DY))==null?0:b.command)&&_.s4(_.AR(C),this.hostElement,["call-to-action"])||(F&&_.s4(_.AR(C),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(F,C,!1):!_.s4(_.AR(C),this.hostElement,
["secondary-button"])&&G&&(_.y("enable_short_dr_for_desktop_launchable")?(V=!!_.Z(G,_.eT),this.isInlinePlaybackState&&V&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(G,C,V)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(G,C,!0))))}};
_.n.updateWatchEndpointStartTime=function(){var C,F;this.player&&((C=this.data)==null?0:C.inlinePlaybackEndpoint)&&((F=this.data)==null?0:F.navigationEndpoint)&&!this.JSC$15519_preventProgressSaveTimer&&(C=Math.floor(this.player.getCurrentTime()),_.Z(this.data.navigationEndpoint,_.eT).startTimeSeconds=C,_.Z(this.data.inlinePlaybackEndpoint,_.eT).startTimeSeconds=C)};
_.n.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.n.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.I6.Object.defineProperties(Ih.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.y("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var C,F;return!((C=this.data)==null||!C.watchButton)&&!((F=this.data)==null||!F.adCtaButton)}}});
Ih.prototype.hoverChanged=Ih.prototype.hoverChanged;Ih.prototype.dataChanged=Ih.prototype.dataChanged;
Ih.JSC$15518_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"]]);
Ih.JSC$15518_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"}];
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Ih.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Ih.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],Ih.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.uY.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],Ih.prototype,"ytSparklesClickLocationBehavior",void 0);
_.R([_.w(_.Fi.YtPlayerListenerBehavior),_.Y("design:type",_.GR)],Ih.prototype,"ytPlayerListenerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Ih.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Ih.prototype,"isInlinePlaybackState",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Ih.prototype,"miniMode",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Ih.prototype,"uiUpdate",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Ih.prototype,"hideCta",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Ih.prototype,"noBottomMargin",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Ih.prototype,"animateInCta",void 0);_.R([_.L({computed:"computeButtonOverride(uiUpdate)"}),_.Y("design:type",Object)],Ih.prototype,"buttonOverride",void 0);
_.R([_.L({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.Y("design:type",Object)],Ih.prototype,"secondaryButtonOverride",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Ih.prototype,"isHovered",void 0);_.R([_.$z("#button-container"),_.Y("design:type",HTMLElement)],Ih.prototype,"buttonContainer",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Ih.prototype,"typographyBump",void 0);
_.R([_.L({reflectToAttribute:!0}),_.M("typographyBump"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ih.prototype,"typographyBumpV2",null);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Ih.prototype,"enableMonoStyle",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ih.prototype,"dataChanged",null);
_.R([_.iP("isHovered"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ih.prototype,"hoverChanged",null);_.R([_.M("data"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ih.prototype,"isButtonGroup",null);_.R([_.e({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],Ih);
_.q(Ih,"ytd-ad-inline-playback-meta-block",function(){if(KaS!==void 0)return KaS;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return KaS=C},{mode:_.oN("kevlar_poly_si_batch_j065")?1:2});var DCE;var Eh=function(){var C=_.B.apply(this,arguments)||this;C.noBottomMargin=!1;C.isInlinePreviewTriggered=!1;C.JSC$15524_activeViewMeasurementDataResolver=_.hM();return C};
_.O(Eh,_.B);_.n=Eh.prototype;_.n.created=function(){this.activeView=new tJ(this.hostElement)};
_.n.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.n.attached=function(){var C=this;this.updateInlinePreviewHoverListeners();this.JSC$15524_activeViewMeasurementDataResolver.promise.then(function(F){af(C.activeView,F)});
_.y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&kW(C.activeView)})};
_.n.detached=function(){this.clearInlinePreviewHoverListeners();_.y("stop_av_measurement_on_detach")&&kW(this.activeView)};
_.n.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15524_inlinePreviewHoverListener=ZR({mediaRenderer:this,lockupElement:this.JSC$15524_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:$CO})};
_.n.clearInlinePreviewHoverListeners=function(){var C;(C=this.JSC$15524_inlinePreviewHoverListener)==null||Ak(C)};
_.n.onDataChanged=function(){var C;((C=this.data)==null?0:C.activeView)&&this.JSC$15524_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Eh.JSC$15523_DEFAULT_CLICK_LOCATION_BEHAVIOR,Eh.JSC$15523_CLICK_LOCATION_ID_MAP);this.thumbnail&&(C=this.thumbnail.getElementsByTagName("a"),C.length>0&&(C=C.namedItem("thumbnail"))&&C.removeAttribute("href"));var F;if((F=this.data)==
null?0:F.forceImpAutoplay){var G;(G=this.JSC$15524_inlinePreviewHoverListener)==null||b0Z(G)}};
_.n.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.n.onThumbnailContainerClick=function(C){if(this.data&&this.data.navigationEndpoint){var F,G=(F=this.data)==null?void 0:F.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(G,C,!!_.Z(G,_.eT));C.stopPropagation()}};
_.n.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.n.impressionLog=function(){var C=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var F,G,V=(G=_.Z((F=this.data)==null?void 0:F.onImpression,_.Cl))==null?void 0:G.commands;V&&(V.forEach(function(J){J.clickTrackingParams&&delete J.clickTrackingParams;C.ytComponentBehavior.resolveCommand(J)}),this.data.impressionsFired=!0)}};
_.I6.Object.defineProperties(Eh.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.JSC$15524_inlinePreviewHoverListener)==null?0:r$(C))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Eh.prototype.onTypographyBumpChanged=Eh.prototype.onTypographyBumpChanged;Eh.prototype.onDataChanged=Eh.prototype.onDataChanged;Eh.JSC$15523_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Eh.JSC$15523_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"}];
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Eh.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Eh.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Eh.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.T6),_.Y("design:type",Object)],Eh.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.w(_.CR),_.Y("design:type",Object)],Eh.prototype,"ytdLockupBehavior",void 0);
_.R([_.w(_.Rr),_.Y("design:type",Object)],Eh.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.uY.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],Eh.prototype,"ytSparklesClickLocationBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Eh.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],Eh.prototype,"noBottomMargin",void 0);_.R([_.L(),_.Y("design:type",Object)],Eh.prototype,"isInlinePreviewTriggered",void 0);
_.R([_.L({reflectToAttribute:!0,selector:_.HY}),_.Y("design:type",Boolean)],Eh.prototype,"miniMode",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],Eh.prototype,"typographyBump",void 0);_.R([_.$z("ytd-thumbnail"),_.Y("design:type",HTMLElement)],Eh.prototype,"thumbnail",void 0);_.R([_.$z("#dismissible"),_.Y("design:type",HTMLElement)],Eh.prototype,"JSC$15524_dismissibleMedia",void 0);
_.R([_.$z("ytd-ad-inline-playback-meta-block"),_.Y("design:type",HTMLElement)],Eh.prototype,"adInlinePlaybackMetaBlock",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Eh.prototype,"onDataChanged",null);_.R([_.zp("typographyBump"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Eh.prototype,"onTypographyBumpChanged",null);
_.R([_.M("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Eh.prototype,"isHovered",null);_.R([_.e({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],Eh);
_.q(Eh,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(DCE!==void 0)return DCE;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return DCE=C},{mode:1});var pFO;var W1=function(){var C=_.B.apply(this,arguments)||this;C.isInlinePreviewTriggered=!1;C.JSC$15527_activeViewMeasurementDataResolver=_.hM();return C};
_.O(W1,_.B);_.n=W1.prototype;_.n.created=function(){this.activeView=new tJ(this.hostElement)};
_.n.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.n.attached=function(){var C=this;this.updateInlinePreviewHoverListeners();this.JSC$15527_activeViewMeasurementDataResolver.promise.then(function(F){af(C.activeView,F)})};
_.n.detached=function(){this.clearInlinePreviewHoverListeners()};
_.n.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15527_inlinePreviewHoverListener=ZR({mediaRenderer:this,lockupElement:this.JSC$15527_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:$CO})};
_.n.clearInlinePreviewHoverListeners=function(){var C;(C=this.JSC$15527_inlinePreviewHoverListener)==null||Ak(C)};
_.n.onDataChanged=function(){var C;((C=this.data)==null?0:C.activeView)&&this.JSC$15527_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",W1.JSC$15526_DEFAULT_CLICK_LOCATION_BEHAVIOR,W1.JSC$15526_CLICK_LOCATION_ID_MAP);this.thumbnail&&(C=this.thumbnail.getElementsByTagName("a"),C.length>0&&(C=C.namedItem("thumbnail"))&&C.removeAttribute("href"))};
_.n.onThumbnailContainerClick=function(C){if(this.data&&this.data.navigationEndpoint){var F,G=(F=this.data)==null?void 0:F.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(G,C,!0);C.stopPropagation()}};
_.n.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.n.impressionLog=function(){var C=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var F,G,V=(G=_.Z((F=this.data)==null?void 0:F.onImpression,_.Cl))==null?void 0:G.commands;V&&(V.forEach(function(J){J.clickTrackingParams&&delete J.clickTrackingParams;_.I8().resolve(_.WD).resolveCommand(J,{form:{element:C.hostElement}})}),this.data.impressionsFired=!0)}};
_.I6.Object.defineProperties(W1.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.JSC$15527_inlinePreviewHoverListener)==null?0:r$(C))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
W1.prototype.onDataChanged=W1.prototype.onDataChanged;W1.JSC$15526_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);W1.JSC$15526_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"}];_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],W1.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],W1.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.T6),_.Y("design:type",Object)],W1.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.w(_.CR),_.Y("design:type",Object)],W1.prototype,"ytdLockupBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],W1.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.uY.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],W1.prototype,"ytSparklesClickLocationBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],W1.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],W1.prototype,"isInlinePreviewTriggered",void 0);_.R([_.L({reflectToAttribute:!0,selector:_.HY}),_.Y("design:type",Boolean)],W1.prototype,"miniMode",void 0);_.R([_.$z("ytd-thumbnail"),_.Y("design:type",HTMLElement)],W1.prototype,"thumbnail",void 0);_.R([_.$z("#dismissible"),_.Y("design:type",HTMLElement)],W1.prototype,"JSC$15527_dismissibleMedia",void 0);
_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],W1.prototype,"onDataChanged",null);_.R([_.M("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],W1.prototype,"isHovered",null);_.R([_.e({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],W1);
_.q(W1,"ytd-video-display-full-buttoned-renderer",function(){if(pFO!==void 0)return pFO;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return pFO=C},{mode:1});var xb=function(C,F,G,V){V=V===void 0?!1:V;_.FS.call(this,C);this.adsClientErrorMessage=G;this.aggressivelySample=V;this.args=[];F&&this.args.push(F)};
_.O(xb,_.FS);var eV=function(C,F,G,V){V=V===void 0?!1:V;_.FS.call(this,C);this.adsClientErrorMessage=G;this.aggressivelySample=V;this.args=[];F&&this.args.push(F)};
_.O(eV,_.FS);var mCo=function(C){_.hV.call(this);var F=this;this.initializationFunction=C;this.instance=null;this.addOnDisposeCallback(function(){_.uz(F.instance);F.instance=null})};
_.O(mCo,_.hV);mCo.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.LY("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var BlA=function(){var C=new Map;[].forEach(function(F){C.set(F.JSC$30740_getType(),F)});
this.getters=C};new Promise(function(){});var X_W=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"]]),NlS=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"}]]),CB$=function(C){this.experimentApiProvider=C;C=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=C<.1};var tw=function(C,F,G,V){_.hV.call(this);this.adsControlFlowEventListeners=F;this.adEventLogger=G;this.experimentApiProvider=V;this.adsControlFlowManagerHelper=C(this,this,this,this,this);_.Nd(this,this.adsControlFlowManagerHelper);C=_.u(F);for(F=C.next();!F.done;F=C.next())_.Nd(this,F.value)};
_.O(tw,_.hV);var jzu=function(C,F,G,V){ah(C.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",F,G,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,V);C=_.u(C.adsControlFlowEventListeners);for(V=C.next();!V.done;V=C.next())jzu(V.value,F,G)};
_.n=tw.prototype;_.n.onOpportunityProcessedExternallyManaged=function(C,F,G,V){ah(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",C,G,F,void 0,void 0,void 0,void 0,void 0,void 0,void 0,V)};
_.n.onSlotReceivedExternallyManaged=function(C,F){kN(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",C,F)};
_.n.onSlotEntered=function(C){if(Uh(this.adsControlFlowManagerHelper,C)!=null){kN(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",C);this.adsControlFlowManagerHelper.onSlotEntered(C);for(var F=_.u(this.adsControlFlowEventListeners),G=F.next();!G.done;G=F.next())G.value.onSlotEntered(C);if(Uh(this.adsControlFlowManagerHelper,C)!=null&&Uh(this.adsControlFlowManagerHelper,C).isOccupyingSlotType()&&H1(this.adsControlFlowManagerHelper,C)&&!Fqy(this.adsControlFlowManagerHelper,C)){var V;lL(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",C,(V=H1(this.adsControlFlowManagerHelper,C))!=null?V:void 0);C=Uh(this.adsControlFlowManagerHelper,C);C.slotLifecycleStage!=="entered"&&yD(C.slot,C.slotLifecycleStage,"enterLayoutForSlot");C.slotLifecycleStage="rendering";C.registeredLayoutRenderingAdapter.startRendering(C.layout)}}};
_.n.onSlotExited=function(C){if(Uh(this.adsControlFlowManagerHelper,C)!=null){kN(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",C);this.adsControlFlowManagerHelper.onSlotExited(C);for(var F=_.u(this.adsControlFlowEventListeners),G=F.next();!G.done;G=F.next())G.value.onSlotExited(C);Uh(this.adsControlFlowManagerHelper,C)!=null&&Uh(this.adsControlFlowManagerHelper,C).markedForUnscheduleAfterOutboundAdapterRequests&&GJo(this,C)}};
_.n.onLayoutReceivedExternallyManaged=function(C,F,G){C.managerLayer!=="core"&&lL(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",C,F,G)};
var VfO=function(C,F,G){if(Uh(C.adsControlFlowManagerHelper,F)!=null){lL(C.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",F,G);C=_.u(C.adsControlFlowEventListeners);for(var V=C.next();!V.done;V=C.next())VfO(V.value,F,G)}};
tw.prototype.onLayoutExited=function(C,F,G){if(Uh(this.adsControlFlowManagerHelper,C)!=null){lL(this.adEventLogger,Oow(G),C,F);this.adsControlFlowManagerHelper.onLayoutExited(C,F);for(var V=_.u(this.adsControlFlowEventListeners),J=V.next();!J.done;J=V.next())J.value.onLayoutExited(C,F,G);(G=H1(this.adsControlFlowManagerHelper,C))&&F.layoutId===G.layoutId&&iM8(this,C)}};
tw.prototype.disposeInternal=function(){var C=J0l(this.adsControlFlowManagerHelper);C=_.u(C);for(var F=C.next();!F.done;F=C.next())GJo(this,F.value);_.hV.prototype.disposeInternal.call(this)};
var GJo=function(C,F){if(Uh(C.adsControlFlowManagerHelper,F)!=null)if(Uh(C.adsControlFlowManagerHelper,F).JSC$30770_isSlotExitRequested()||Uh(C.adsControlFlowManagerHelper,F).JSC$30770_isLayoutExitRequested())Uh(C.adsControlFlowManagerHelper,F).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(Uh(C.adsControlFlowManagerHelper,F).isOccupyingSlotType())Uh(C.adsControlFlowManagerHelper,F).markedForUnscheduleAfterOutboundAdapterRequests=!0,iM8(C,F);else if(Uh(C.adsControlFlowManagerHelper,F).JSC$30770_isSlotFillRequested())Uh(C.adsControlFlowManagerHelper,
F).markedForUnscheduleAfterOutboundAdapterRequests=!0,Uh(C.adsControlFlowManagerHelper,F)!=null&&(kN(C.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",F),F=Uh(C.adsControlFlowManagerHelper,F),F.fulfillmentLifecycleStage="fill_cancel_requested",F.registeredFulfillmentAdapter.cancelSlotFilling());else{var G=H1(C.adsControlFlowManagerHelper,F),V;C.experimentApiProvider.get();(V=_.y("h5_enable_layout_unscheduling_events"))&&(G?$P2(C,F,G):_.LY(Error("Lh"),F,G,void 0,!1));kN(C.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",F);var J=Uh(C.adsControlFlowManagerHelper,F),b=F.slotEntryTrigger,z=J.registeredSlotEntryTriggerAdapters.get(b.triggerId);z&&(z.unregisterTrigger(b),J.registeredSlotEntryTriggerAdapters.delete(b.triggerId));b=_.u(F.slotFulfillmentTriggers);for(z=b.next();!z.done;z=b.next()){z=z.value;var Q=J.registeredFulfillmentTriggerAdapters.get(z.triggerId);Q&&(Q.unregisterTrigger(z),J.registeredFulfillmentTriggerAdapters.delete(z.triggerId))}b=_.u(F.slotExpirationTriggers);
for(z=b.next();!z.done;z=b.next())if(z=z.value,Q=J.registeredExpirationTriggerAdapters.get(z.triggerId))Q.unregisterTrigger(z),J.registeredExpirationTriggerAdapters.delete(z.triggerId);J.hasLayout()&&(b=J.layout,ZZ(J,b.layoutExitNormalTriggers),ZZ(J,b.layoutExitSkipTriggers),ZZ(J,b.layoutExitMuteTriggers),ZZ(J,b.layoutExitUserInputSubmittedTriggers),ZZ(J,b.layoutExitUserCancelledTriggers));J.registeredFulfillmentAdapter=void 0;J.registeredSlotAdapter!=null&&(J.registeredSlotAdapter.release(),J.registeredSlotAdapter=
void 0);J.registeredLayoutRenderingAdapter!=null&&(J.registeredLayoutRenderingAdapter.release(),J.registeredLayoutRenderingAdapter=void 0);J=C.adsControlFlowManagerHelper;Uh(J,F)&&(J=bM2(J,F.slotType+"_"+F.slotPhysicalPosition))&&J.delete(F.slotId);kN(C.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",F);C=_.u(C.adsControlFlowEventListeners);for(J=C.next();!J.done;J=C.next())J=J.value,J.onSlotUnscheduled(F),G&&!V&&$P2(J,F,G)}},$P2=function(C,F,G){lL(C.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
F,G);
lL(C.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",F,G);C=_.u(C.adsControlFlowEventListeners);for(var V=C.next();!V.done;V=C.next())V=V.value,G&&$P2(V,F,G)},iM8=function(C,F){if(Uh(C.adsControlFlowManagerHelper,F)!=null&&Uh(C.adsControlFlowManagerHelper,F).isOccupyingSlotType()){var G=H1(C.adsControlFlowManagerHelper,F);
if(G&&Fqy(C.adsControlFlowManagerHelper,F)){if(Uh(C.adsControlFlowManagerHelper,F)!=null){var V=C.adEventLogger,J;var b=((J=NlS.get("abandoned"))==null?void 0:J.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";lL(V,b,F,G);C=Uh(C.adsControlFlowManagerHelper,F);C.slotLifecycleStage!=="rendering"&&yD(C.slot,C.slotLifecycleStage,"exitLayout");C.slotLifecycleStage="rendering_stop_requested";C.registeredLayoutRenderingAdapter.stopRendering(G,"abandoned")}}else{kN(C.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
F);try{V=Uh(C.adsControlFlowManagerHelper,F);if(!V)throw new eV("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");V.slotLifecycleStage!=="enter_requested"&&V.slotLifecycleStage!=="entered"&&V.slotLifecycleStage!=="rendering"&&yD(V.slot,V.slotLifecycleStage,"exitSlot");V.slotLifecycleStage="exit_requested";if(V.registeredSlotAdapter===void 0)throw V.slotLifecycleStage="scheduled",new eV("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
V.registeredSlotAdapter.exit()}catch(z){z instanceof eV&&z.adsClientErrorMessage?(n4P(C.adEventLogger,z.adsClientErrorMessage,F),_.LY(z,F,void 0,void 0,z.aggressivelySample)):(n4P(C.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",F),_.LY(z,F))}}}};var NO=function(C,F,G,V,J,b){_.hV.call(this);this.registry=C;this.experimentApiProvider=b;this.slotMap=new Map};
_.O(NO,_.hV);var bM2=function(C,F){return(C=C.slotMap.get(F))?C:new Map},Uh=function(C,F){return bM2(C,F.slotType+"_"+F.slotPhysicalPosition).get(F.slotId)},J0l=function(C){var F=[];
C.slotMap.forEach(function(G){G=_.u(G.values());for(var V=G.next();!V.done;V=G.next())F.push(V.value.slot)});
return F};
NO.prototype.onSlotEntered=function(C){C=Uh(this,C);C.slotLifecycleStage!=="enter_requested"&&yD(C.slot,C.slotLifecycleStage,"onSlotEntered");C.slotLifecycleStage="entered"};
var Fqy=function(C,F){C=Uh(C,F);return C.hasLayout()&&C.isRendering()},H1=function(C,F){(C=Uh(C,F))?C.hasLayout()&&!C.layout&&_.LY("Unexpected empty layout",F):_.LY("Unexpected undefined slotState",F);
return(C==null?void 0:C.layout)||null};
NO.prototype.onSlotExited=function(C){C=Uh(this,C);C.slotLifecycleStage!=="exit_requested"&&yD(C.slot,C.slotLifecycleStage,"onSlotExited");C.slotLifecycleStage="scheduled"};
NO.prototype.onLayoutExited=function(C,F){C=Uh(this,C);C.isPrimaryLayout(F)&&(C.slotLifecycleStage!=="rendering_stop_requested"&&yD(C.slot,C.slotLifecycleStage,"onLayoutExited"),C.slotLifecycleStage="entered")};
var ZZ=function(C,F){F=_.u(F);for(var G=F.next();!G.done;G=F.next()){G=G.value;var V=C.registeredLayoutExitTriggerAdapters.get(G.triggerId);V&&(V.unregisterTrigger(G),C.registeredLayoutExitTriggerAdapters.delete(G.triggerId))}},yD=function(C,F,G){_.LY("Slot stage was "+F+" when calling method "+G,C)};var zDu=function(C){_.hV.call(this);this.deps=C;this.JSC$15580_adsControlFlowManager=uZ7(this)};
_.O(zDu,_.hV);var uZ7=function(C){var F=new tw(function(G,V,J,b){return new NO(C.deps.registry,G,V,J,b,C.deps.experimentApiProvider)},new Set(LTE(C.deps.registry).concat(C.deps.listeners)),C.deps.adEventLogger,C.deps.experimentApiProvider);
_.Nd(C,F);return F};var DUs=function(){};var Qzu=function(C,F){_.hV.call(this);this.experimentApiProvider=C;this.eventLoggingSettingsProvider=F;this.eventCount=0;this.premiumAdSeenEventLogger=p9Z()()};
_.O(Qzu,_.hV);Qzu.prototype.logEvent=function(C){ah(this,C)};
var kN=function(C,F,G,V){ah(C,F,void 0,void 0,void 0,G,void 0,void 0,void 0,G.adSlotLoggingData,void 0,void 0,V)},lL=function(C,F,G,V,J){ah(C,F,void 0,void 0,void 0,G,V?V:void 0,void 0,void 0,G.adSlotLoggingData,V?V.adLayoutLoggingData:void 0,void 0,J);
G=_.I8().resolve(_.Qt(A5))==null?void 0:eQ();F=G==null?void 0:G.adsSeenHotConfig;G=G==null?void 0:G.adsHotConfig;(F==null?0:F.logOnAdsSeen)&&(G==null?0:G.webEnablePremiumAdsSeenLogging)&&ICE(C,V?V:void 0,J)},n4P=function(C,F,G){ah(C,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,G,void 0,void 0,void 0,G.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:F})},ah=function(C,F,G,V,J,b,z,Q,E,t,k,U,H){H=H===void 0?0:H;
E47(C.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+F,"slot:",b,"layout:",z,"ping:",Q,"Opportunity:",{opportunityType:G,associatedSlotId:V,slotsFromOpportunity:J,triggerBundle:E,adSlotLoggingData:t,adLayoutLoggingData:k});try{var l=function(){C.experimentApiProvider.get();if(F!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){F||_.LY("Empty PACF event type",b,z);var N=C.eventLoggingSettingsProvider.get();var S;(S=N.alwaysIncludeDebugData)||(N.experimentApiProvider.get(),S=
!1);N=S;S={eventType:F,eventOrder:++C.eventCount};var f={};b&&(f.slotData=MY5(N,b));if(z){var c={type:z.layoutType,controlFlowManagerLayer:X_W.get(z.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};N&&(c.debugData={layoutId:z.layoutId});f.layoutData=c}Q&&(f.pingData={pingDispatchStatus:Q.dispatchStatus,serializedAdPingMetadata:Q.ping.serializedAdPingMetadata,pingIndex:Q.index});E&&(f.triggerData=w_5(E.trigger,E.category));G&&(f.opportunityData=S7T(N,G,V,J));S.adClientData=f;t&&(S.serializedSlotAdServingData=
t.serializedSlotAdServingDataEntry);k&&(S.serializedAdServingData=k.serializedAdServingDataEntry);U&&(S.errorInfo=U);_.q1("adsClientStateChange",{adsClientEvent:S})}};
H&&H>0?_.c8(_.Ws(),function(){return l()},H):l()}catch(N){E47(C.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.c8(_.Ws(),function(){_.LY(N instanceof Error?N:String(N),b,z,{pacf_message:"exception during pacf logging"})})}},ICE=function(C,F,G){if(F){var V=F.adLayoutLoggingData;
_.c8(_.Ws(),function(){C.premiumAdSeenEventLogger!=null&&V&&_.q1("adsSeenClientLogging",{serializedAdServingDataEntry:V.serializedAdServingDataEntry})},G!=null?G:0)}};var Wq8=function(C,F){Qzu.call(this,C,F)};
_.O(Wq8,Qzu);var tfo=function(){},E47=function(C,F){return _.y(F)};var kJo=function(){var C=new aCr;this.JSC$15605_adsControlFlowManager=(new zDu(C)).JSC$15580_adsControlFlowManager},aCr=function(){_.hV.call(this);
var C=this;this.experimentApiProvider=new mCo(function(){return new tfo});
var F=new mCo(function(){return new CB$(C.experimentApiProvider)});
this.adEventLogger=new Wq8(this.experimentApiProvider,F);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.O(aCr,_.hV);var UPu=function(){},HMP,Oh=function(){HMP||(HMP=new UPu);
return HMP},B1=function(C){if(!C.JSC$15616_externallyManagedSlotAdapterCallback){var F=(new kJo).JSC$15605_adsControlFlowManager;
C.JSC$15616_externallyManagedSlotAdapterCallback=F}return C.JSC$15616_externallyManagedSlotAdapterCallback},lCG=function(C,F,G){var V=F.opportunityType,J=Error("Mh");
if(V!==void 0){var b=B1(C);jzu(b,V,void 0,G)}else _.LY(J,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});b=[];if(F.adSlotAndLayoutMetadata!==void 0){F=_.u(F.adSlotAndLayoutMetadata);for(var z=F.next();!z.done;z=F.next()){var Q=z.value;if(z=Q.adSlotMetadata)if(b.push(z),C.onSlotReceivedExternallyManaged(z,G),Q.adLayoutMetadata){Q=_.u(Q.adLayoutMetadata);for(var E=Q.next();!E.done;E=Q.next())C.onLayoutReceivedExternallyManaged(z,E.value,G)}else G>0&&_.LY("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
V,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else G>0&&_.LY("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+V,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else G>0&&_.LY("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+V,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(V!==void 0)C.onOpportunityProcessedExternallyManaged(V,b,void 0,G);else _.LY(J,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
UPu.prototype.onSlotReceivedExternallyManaged=function(C,F){C=dv(C);if(C instanceof eV)_.LY(C,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else B1(this).onSlotReceivedExternallyManaged(C,F)};
UPu.prototype.onLayoutReceivedExternallyManaged=function(C,F,G){C=dv(C);F=vIE(F);if(C instanceof eV)_.LY(C,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(F instanceof xb)_.LY(F,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else B1(this).onLayoutReceivedExternallyManaged(C,F,G)};
UPu.prototype.onOpportunityProcessedExternallyManaged=function(C,F,G,V){var J=[];F=_.u(F);for(var b=F.next();!b.done;b=F.next())b=dv(b.value),b instanceof eV?_.LY(b,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):J.push(b);B1(this).onOpportunityProcessedExternallyManaged(C,J,G,V)};
var y0E=function(C,F){F=dv(F);if(F instanceof eV)_.LY(F,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var G=B1(C);kN(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",F);G=_.u(G.adsControlFlowEventListeners);for(var V=G.next();!V.done;V=G.next())V=Uh(V.value,F),V.slotLifecycleStage!=="not_scheduled"&&yD(V.slot,V.slotLifecycleStage,"onSlotScheduled"),V.slotLifecycleStage="scheduled";C=B1(C);kN(C.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",F);C=_.u(C.adsControlFlowEventListeners);
for(G=C.next();!G.done;G=C.next())G.value.onSlotEntered(F)}},ZMr=function(C,F){F=dv(F);
if(F instanceof eV)_.LY(F,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var G=B1(C);kN(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",F);G=_.u(G.adsControlFlowEventListeners);for(var V=G.next();!V.done;V=G.next())V.value.onSlotExited(F);C=B1(C);kN(C.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",F);C=_.u(C.adsControlFlowEventListeners);for(G=C.next();!G.done;G=C.next())G.value.onSlotUnscheduled(F)}},NFG=function(C,F,G){F=dv(F);
G=vIE(G);if(F instanceof eV)_.LY(F,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(G instanceof xb)_.LY(G,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var V=B1(C);lL(V.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",F,G);V=_.u(V.adsControlFlowEventListeners);for(var J=V.next();!J.done;J=V.next())J.value.onLayoutScheduled(F,G);C=B1(C);lL(C.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",F,G);C=_.u(C.adsControlFlowEventListeners);
for(V=C.next();!V.done;V=C.next())VfO(V.value,F,G)}},v1=function(C,F,G){F=dv(F);
G=vIE(G);if(F instanceof eV)_.LY(F,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(G instanceof xb)_.LY(G,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var V=B1(C);lL(V.adEventLogger,Oow("normal"),F,G);V=_.u(V.adsControlFlowEventListeners);for(var J=V.next();!J.done;J=V.next())J.value.onLayoutExited(F,G,"normal");C=B1(C);C=_.u(C.adsControlFlowEventListeners);for(V=C.next();!V.done;V=C.next())$P2(V.value,F,G)}};_.f$=_.d(function(C){var F=_.xz(C,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});C=Object.assign({},F);var G=F.data;F=F.customCommandResolver;var V=(delete C.data,delete C.customCommandResolver,C);C=_.Wv({visibilityCallback:function(Q,E){var t,k=(t=G().interaction)==null?void 0:t.onFirstVisible;Q&&(k&&_.wQ(k),V.setOnErrorHandler()&&fqB(E))},
showOption:_.Qm});F=_.OI(function(){return G().interaction},F,function(){var Q;
return(Q=V.listenToTapEvent)==null?void 0:Q.call(V)});
var J=_.u(_.yH(!1,void 0,"wAC0Lc")),b=J.next().value,z=J.next().value;J=_.CZ(function(Q){var E;((E=V.setTouchEndHandler)==null?0:E.call(V))&&!b()&&(Q.currentTarget.click(),z(!0),setTimeout(function(){z(!1)},100));
return!1});
return _.W("ad-image-view-model",{class:function(){var Q,E=[((Q=G().interaction)==null?0:Q.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],t;((t=V.isGridViewEnabled)==null?0:t.call(V))&&E.push("ytwAdImageViewModelHostInGridView");return E.join(" ")},
el:_.dQ(C,F),"on:touchend":J},_.W("div",{class:"ytwAdImageViewModelHostImageContainer"},_.W(_.AC,{data:function(){var Q;return{sources:G().imageSources,contentMode:(Q=G().imageProperties)==null?void 0:Q.contentMode}},
alt:function(){var Q,E;return((Q=G().interaction)==null?void 0:(E=Q.accessibility)==null?void 0:E.label)||""},
targetHeight:V.targetHeight,targetWidth:V.targetWidth,preserveHeight:V.preserveHeight,preserveWidth:V.preserveWidth,useWidth:V.useWidth,style:function(){var Q,E;return"vertical-align: bottom;"+(((Q=G().background)==null?0:Q.color)?"background-color:"+_.Hr((E=G().background)==null?void 0:E.color)+";":"")},
className:function(){return V.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var Q,E;return(E=(Q=V.setDraggable)==null?void 0:Q.call(V))!=null?E:void 0}})))},"jc");var OMr=_.d(function(C){var F=C.data,G=C.listenToTapEvent,V=function(){};
return _.W("ad-button-hover-overlay-view-model",{"on:click":_.CZ(function(J){if(_.y("enable_web_home_top_landscape_image_layout_legacy_click_command")){var b,z=(b=F().interaction)==null?void 0:b.onTap;z&&_.oo(J.currentTarget,"yt-navigate",{endpoint:_.ZD(z)})}}),
class:function(){var J;return((J=F().interaction)==null?0:J.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.dQ(_.Wv({visibilityCallback:function(J){var b,z=(b=F().interaction)==null?void 0:b.onFirstVisible;J&&z&&_.wQ(z)},
showOption:_.Qm}),_.OI(function(){return F().interaction},void 0,function(){return!_.y("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(G==null?void 0:G())}))},function(){return _.y("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.W(_.uC,{data:function(){return F().button}},{adButtonViewModel:function(J){return _.W(_.EG,{data:J.data,
customCommandResolver:V})}}):_.W(_.uC,{data:function(){return F().button}},{adButtonViewModel:_.EG})}())},"kc");var sI;_.gQ(_.d(function(C){var F=C.data;C=_.Wv({visibilityCallback:function(Q,E){if(Q){var t;(Q=(t=F().interaction)==null?void 0:t.onFirstVisible)&&_.wQ(Q);var k;if(t=(k=F().adLayoutData)==null?void 0:k.activeViewData)qh(E,t),_.y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Pl(E)})}else _.y("stop_av_measurement_on_detach")&&Pl(E)},
showOption:_.Qm,hideOption:IO});var G=_.OI(function(){return F().interaction},void 0,function(){return!0}),V=_.u(_.yH(!1,void 0,"VNDDT")),J=V.next().value,b=V.next().value;
V=_.CZ(function(){b(!0)});
var z=_.CZ(function(){b(!1)});
return _.W("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.dQ(C,s$i,G),"on:mouseenter":V,"on:mouseleave":z},_.W("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.VA({"max-width":function(){return _.y("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.W("div",{class:function(){var Q;
a:{var E;switch((Q=_.Z(F().thumbnailImage,BVG))==null?void 0:(E=Q.imageProperties)==null?void 0:E.renderingAspect){case "RENDERING_ASPECT_SQUARE":Q="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":Q="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}Q=void 0}return Q}},_.W(_.uC,{data:function(){return F().thumbnailImage}},{adImageViewModel:function(Q){return _.W(_.f$,
{data:Q.data,
listenToTapEvent:!0,setTouchEndHandler:_.y("enable_top_landscape_image_experiment_dom_id_web")})}})),_.W("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.W(_.a,{cond:function(){var Q,E,t;
return(Q=_.Z(F().thumbnailImage,BVG))==null?void 0:(E=Q.imageProperties)==null?void 0:(t=E.overlayIcon)==null?void 0:t.iconImage},
then:function(Q){return _.W(_.AC,{data:Q,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.W("div",{class:function(){return J()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.W(_.uC,{data:function(){return F().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(Q){return _.W(OMr,
{data:Q.data,
listenToTapEvent:!0})}}))),_.W("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.W(_.uC,{data:function(){return F().feedAdMetadata}},{feedAdMetadataViewModel:function(Q){return _.W(ym,{data:Q.data,
listenToTapEvent:!0,setTouchEndHandler:_.y("enable_top_landscape_image_experiment_dom_id_web")})}})))},"lc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.CJ}});_.gQ(_.d(function(C){var F=C.data;C=_.Wv({visibilityCallback:function(Q,E){if(Q){var t;(Q=(t=F().interaction)==null?void 0:t.onFirstVisible)&&_.wQ(Q);var k;if(t=(k=F().adLayoutData)==null?void 0:k.activeViewData)qh(E,t),_.y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Pl(E)})}else _.y("stop_av_measurement_on_detach")&&Pl(E)},
showOption:_.Qm,hideOption:IO});var G=_.nZ(_.ZH),V=_.OI(function(){return F().interaction}),J={},b={},z={};
return _.W("square-image-layout-view-model",{class:_.py("ytwSquareImageLayoutViewModelHost",(J.ytwSquareImageLayoutViewModelHostColumn=G,J)),el:_.dQ(C,q7E,V)},_.W("div",{class:_.py("ytwSquareImageLayoutViewModelHostImage",(b.ytwSquareImageLayoutViewModelHostColumnImage=G,b))},function(){return _.W(_.uC,{data:function(){return F().adImage}},{adImageViewModel:function(Q){return _.W(_.f$,{data:Q.data,
isGridViewEnabled:G,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.W("div",{class:_.py("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(z.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=G,z))},_.W(_.uC,{data:function(){return F().feedAdMetadata}},{feedAdMetadataViewModel:ym}),function(){return _.W(_.uC,{data:function(){return F().adButton}},{adButtonViewModel:function(Q){var E={};
return _.W(_.EG,{data:Q.data,className:_.py((E.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,E.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=G,E))})}})}()))},"mc"),"square-image-layout-view-model",{props:{data:_.CJ}});_.gQ(_.d(function(C){var F=C.data;var G=C.noBottomMargin;var V=C.typographyBump;C=_.Wv({visibilityCallback:function(U,H){if(U){var l;(U=(l=F().interaction)==null?void 0:l.onFirstVisible)&&_.wQ(U);var N;if(l=(N=F().adLayoutData)==null?void 0:N.activeViewData)qh(H,l),_.y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Pl(H)})}else _.y("stop_av_measurement_on_detach")&&Pl(H)},
showOption:_.Qm,hideOption:IO});var J=_.OI(function(){return F().interaction},void 0,function(){return _.y("enable_web_home_top_landscape_image_layout_level_click")}),b=function(){return F().interaction};
b!==void 0&&b!==null||_.CD(Error("Nh"));var z=function(){var U,H,l;return(U=_.Z(F().thumbnailImage,BVG))==null?void 0:(H=U.background)==null?void 0:(l=H.backgroundImageSource)==null?void 0:l.imageSources};
b=_.u(_.yH(!1,void 0,"NFjwje"));var Q=b.next().value,E=b.next().value;b=_.CZ(function(){E(!0)});
var t=_.CZ(function(){E(!1)}),k=function(){return Q()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.W("top-landscape-image-layout-view-model",{class:function(){var U;return((U=F().interaction)==null?0:U.onTap)&&_.y("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.dQ(C,P45,J),"on:mouseenter":b,"on:mouseleave":t},_.W("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.W(_.a,{cond:function(){return z()&&z().length>0},
then:function(){return _.W("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.VA({top:"0","background-image":function(){return"url("+String(z()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.W(_.a,{cond:function(){return!!F().adButtonHoverOverlay},
then:function(){return _.W("div",{class:k},_.W(_.uC,{data:function(){return F().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:OMr}))}}),_.W("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.W(_.uC,{data:function(){return F().thumbnailImage}},{adImageViewModel:function(U){return _.W(_.f$,{data:U.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.y("enable_web_home_top_landscape_image_layout_level_click")})}})),_.W("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.W(_.AC,{data:{sources:[{clientResource:{imageName:_.y("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.W("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.W(_.uC,{data:function(){return F().feedAdMetadata}},{feedAdMetadataViewModel:function(U){return _.W(ym,{data:U.data,
noBottomMargin:function(){return G==null?void 0:G()},
listenToTapEvent:function(){return _.y("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return V==null?void 0:V()}})}})))},"nc"),"top-landscape-image-layout-view-model",{props:{data:_.CJ,
noBottomMargin:_.CJ,typographyBump:_.CJ}});var XMO=_.d(function(C){var F=C.data,G=_.Wv({visibilityCallback:function(J){var b,z=(b=F().interaction)==null?void 0:b.onFirstVisible;J&&z&&_.wQ(z)},
showOption:_.Qm});C=_.OI(function(){return F().interaction},C.customCommandResolver);
var V={};return _.W("ad-text-image-view-model",{class:_.py("ytwAdTextImageViewModelHost",(V.ytwAdTextImageViewModelHostDarkBackground=function(){return F().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},V)),
el:_.dQ(G,C),"aria-label":function(){var J,b;return(J=F().interaction)==null?void 0:(b=J.accessibility)==null?void 0:b.label}},_.W("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.W(_.mn,{text:function(){return F().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),_.W(_.a,{cond:function(){return F().overlayIcon},
then:function(J){return _.W("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.W(_.AC,{data:J,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"oc");var wM$=_.d(function(C){var F=C.data;return _.W("feed-ad-sitelink-view-model",{class:function(){var G;return((G=F().interaction)==null?0:G.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.dQ(_.OI(function(){return F().interaction},C.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var G,V;return(G=F().interaction)==null?void 0:(V=G.accessibility)==null?void 0:V.label},
role:"link",tabindex:0},_.W(_.mn,{text:function(){return F().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"pc");var Mfo=_.d(function(C){var F=C.data;C={};return _.W("feed-ad-sitelinks-carousel-view-model",{el:_.dQ(_.Wv({visibilityCallback:function(G){var V,J=(V=F().interaction)==null?void 0:V.onFirstVisible;G&&J&&_.wQ(J)},
showOption:_.Qm})),class:_.py("ytwFeedAdSitelinksCarouselViewModelHost",(C.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return F().style==="FEED_AD_SITELINKS_STYLE_NONE"},C))},_.W(_.uC,{data:function(){return F().sitelinks}},{feedAdSitelinkViewModel:wM$}))},"qc");_.gQ(_.d(function(C){var F=C.data;C=_.Wv({visibilityCallback:function(z,Q){if(z){var E;(z=(E=F().interaction)==null?void 0:E.onFirstVisible)&&_.wQ(z);var t;(E=(t=F().adLayoutData)==null?void 0:t.activeViewData)&&qh(Q,E)}},
showOption:_.Qm});var G=_.u(_.yH(!1,void 0,"BzPhl")),V=G.next().value,J=G.next().value;G=_.CZ(function(){J(!0)});
var b=_.CZ(function(){J(!1)});
return _.W("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.dQ(C),"on:mouseenter":G,"on:mouseleave":b},_.W("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.W("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.W(_.uC,{data:function(){return F().textImage}},{adTextImageViewModel:XMO})),_.W("div",{class:function(){return V()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.W(_.uC,{data:function(){return F().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(z){return _.W(OMr,{data:z.data,
listenToTapEvent:!0})}}))),_.W("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.W(_.uC,{data:function(){return F().feedAdMetadata}},{feedAdMetadataViewModel:function(z){return _.W(ym,{data:z.data,
listenToTapEvent:!0})}}),_.W(_.uC,{data:function(){return F().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:Mfo})))},"rc"),"text-image-no-button-layout-view-model",{props:{data:_.CJ}});_.gQ(_.d(function(C){var F=C.data;var G=C.typographyBump;return _.W("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.dQ(_.Wv({visibilityCallback:function(V,J){if(V){var b;(V=(b=F().interaction)==null?void 0:b.onFirstVisible)&&_.wQ(V);var z;(b=(z=F().adLayoutData)==null?void 0:z.activeViewData)&&qh(J,b)}},
showOption:_.Qm,hideOption:IO}))},_.W("div",null,_.W(_.uC,{data:function(){return F().videoLockup}},{lockupViewModel:function(V){return _.W(_.ZM,{data:V.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:G})}})))},"sc"),"video-display-button-group-layout-view-model",{props:{data:_.CJ,
noBottomMargin:_.CJ,typographyBump:_.CJ}});_.gQ(_.d(function(C){var F=C.data;var G=C.className;var V=C.typographyBump;return _.W("video-display-compact-button-group-layout-view-model",{el:_.dQ(_.Wv({visibilityCallback:function(J,b){if(J){var z;(J=(z=F().interaction)==null?void 0:z.onFirstVisible)&&_.wQ(J);var Q;(z=(Q=F().adLayoutData)==null?void 0:Q.activeViewData)&&qh(b,z)}},
showOption:_.Qm})),class:_.py("videoDisplayCompactButtonGroupLayoutViewModelHost",G)},_.W(_.uC,{data:function(){return F().videoLockup}},{lockupViewModel:function(J){return _.W(_.ZM,{data:J.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:V})}}))},"tc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.CJ,
className:_.CJ,typographyBump:_.CJ}});_.gQ(_.d(function(C){var F=C.data;var G=C.className;var V=C.typographyBump;return _.W("video-display-compact-buttoned-layout-view-model",{el:_.dQ(_.Wv({visibilityCallback:function(J,b){if(J){var z;(J=(z=F().interaction)==null?void 0:z.onFirstVisible)&&_.wQ(J);var Q;(z=(Q=F().adLayoutData)==null?void 0:Q.activeViewData)&&qh(b,z)}},
showOption:_.Qm})),class:_.py("videoDisplayCompactButtonedLayoutViewModelHost",G)},_.W(_.uC,{data:function(){return F().videoLockup}},{lockupViewModel:function(J){return _.W(_.ZM,{data:J.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:V})}}))},"uc"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.CJ,
className:_.CJ,typographyBump:_.CJ}});_.gQ(_.d(function(C){var F=C.data;var G=C.className;var V=C.typographyBump;var J=function(){return F().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},b=_.nZ(_.ZH);
C=_.Wv({visibilityCallback:function(t,k){if(t){var U=F();t=U.adLayoutData;var H;(U=(H=U.interaction)==null?void 0:H.onFirstVisible)&&_.wQ(U);(H=t==null?void 0:t.activeViewData)&&qh(k,H)}},
showOption:_.Qm});var z=_.w0(function(){return{containerType:J()&&b()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST"}},void 0,"SePl2b"),Q=_.w0(function(){return J()&&b()?"":J()?"168px":"50%"},void 0,"zi7guf"),E=_.w0(function(){return J()&&b()?9999:void 0},void 0,"oP9D5");
return _.W("video-display-compact-layout-view-model",{el:_.dQ(C),class:_.py("videoDisplayCompactLayoutViewModelHost",G)},_.W(_.uC,{data:function(){return F().videoLockup}},{lockupViewModel:function(t){return _.W(_.ZM,{data:t.data,
containerLayoutConfig:z,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:Q,thumbnailTargetWidth:E,typographyBump:V})}}))},"vc"),"video-display-compact-layout-view-model",{props:{data:_.CJ,
className:_.CJ,typographyBump:_.CJ}});_.gQ(_.d(function(C){var F=C.data;var G=C.typographyBump;return _.W("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.dQ(_.Wv({visibilityCallback:function(V,J){if(V){var b;(V=(b=F().interaction)==null?void 0:b.onFirstVisible)&&_.wQ(V);var z;(b=(z=F().adLayoutData)==null?void 0:z.activeViewData)&&qh(J,b)}},
showOption:_.Qm,hideOption:IO}))},_.W("div",null,_.W(_.uC,{data:function(){return F().videoLockup}},{lockupViewModel:function(V){return _.W(_.ZM,{data:V.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:G})}})))},"wc"),"video-display-full-layout-view-model",{props:{data:_.CJ,
noBottomMargin:_.CJ,typographyBump:_.CJ}});_.S_u=_.d(function(C){var F=C.data;C=_.Jt("ad-card-badge-view-model");return _.W("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:C},_.W(_.a,{cond:function(){return F().imageBadge},
then:function(G){return _.W(_.AC,{data:G,alt:""})}}))},"xc");var Lql=_.d(function(C){var F=C.data;var G=C.customCommandResolver;return _.W("carousel-ad-card-image-view-model",{class:function(){var V;return((V=F().interaction)==null?0:V.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.dQ(_.Wv({visibilityCallback:function(V){var J,b=(J=F().interaction)==null?void 0:J.onFirstVisible;V&&b&&_.wQ(b)},
showOption:_.Qm}),_.OI(function(){return F().interaction},G)),
"aria-label":function(){var V,J;return(V=F().interaction)==null?void 0:(J=V.accessibility)==null?void 0:J.label}},_.W(_.uC,{data:function(){return F().adImage}},{adImageViewModel:function(V){return _.W(_.f$,{data:V.data,
customCommandResolver:G})}}),_.W("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.W(_.uC,{data:function(){return F().badge}},{adCardBadgeViewModel:_.S_u})),_.W(_.QR,{model:{color:4}}))},"yc");var BFP=_.d(function(C){var F=_.u(_.yH(0,void 0,"JJ0QQc")),G=F.next().value;F.next();var V=F.next().value,J=_.u(_.yH(!1,void 0,"f6YICe"));F=J.next().value;var b=J.next().value,z;_.q0(function(){clearTimeout(z)});
J=_.CZ(function(){var t;((t=C.animate)==null?0:t.call(C))?(b(!0),z=setTimeout(function(){b(!1);Q()},200)):Q();
return!1});
var Q=function(){V(function(t){return(t+C.numShownItems())%C.data().length})},E={};
return _.W("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.W("div",{class:_.py("ytwHorizontalCarouselCarouselWrapper")},_.W("div",{class:_.py("ytwHorizontalCarouselCarouselInnerWrapper",(E.ytwHorizontalCarouselAnimating=F,E))},_.W(_.Ag,{each:C.data,keyBy:"INDEX"},function(t,k){return _.W("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.VA({"flex-basis":function(){return"calc((100% - (8px * "+(C.numShownItems()-1)+")) / "+C.numShownItems()+")"},
order:function(){var U=k-G();U<0&&(U+=C.data().length);return U}})},C.children(t,k))}))),_.W("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":J},C.nextButton()))},"zc");var v48=_.d(function(C){var F=C.data;var G=C.customCommandResolver;var V=C.expansive;return _.W("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.dQ(_.Wv({visibilityCallback:function(J){var b,z=(b=F().interaction)==null?void 0:b.onFirstVisible;J&&z&&_.wQ(z)},
showOption:_.Qm}))},_.W(BFP,{data:function(){var J;return((J=F())==null?void 0:J.carouselAdCards)||[]},
nextButton:function(){return _.W(_.uC,{data:function(){return F().nextButton}},{buttonViewModel:function(J){var b=J.data;
return _.W(_.tS,{data:function(){return(V==null?0:V())?Object.assign({},b(),{style:"mono"}):b()},
className:_.y("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(J){return _.W(_.uC,{data:J},{carouselAdCardImageViewModel:function(b){return _.W(Lql,{data:b.data,customCommandResolver:G})}})}))},"Ac");var fCm=_.d(function(C){var F=C.data;var G=C.customCommandResolver;var V=C.className;var J=C.buttonClassName;var b=C.animationEntityKey;var z=C.expansive;return _.W("carousel-button-view-model",{class:_.py("ytwCarouselButtonViewModelHost",V)},_.W(_.uC,{data:function(){return F().carousel}},{carouselAdCardCollectionViewModel:function(Q){return _.W(v48,{data:Q.data,
customCommandResolver:G,expansive:z})}}),_.W(_.uC,{data:function(){return F().button}},{adButtonViewModel:function(Q){var E=Q.data;
return _.W(_.EG,{data:function(){return(z==null?0:z())?Object.assign({},E(),{style:"AD_BUTTON_STYLE_TONAL"}):E()},
className:J,customCommandResolver:G,animationEntityKey:b})}}))},"Bc");_.hDu=_.d(function(C){var F=C.data;C=C.className;var G=_.Jt("pivot-button-view-model");_.q4(function(){var V;((V=F())==null?0:V.backgroundColor)&&G.value.setAttribute("data-background-color",String(F().backgroundColor))});
return _.W("pivot-button-view-model",{el:G,class:_.py("ytwPivotButtonViewModelHost",C)},_.W(_.zV,{command:function(){var V=F();V=V.onClickCommand?_.ZD(V.onClickCommand):V.contentDescription?_.gd(V.contentDescription):void 0;return V},
ariaLabel:function(){return F().contentDescription}},_.W(_.a,{cond:function(){return F().thumbnail},
then:function(V){return _.W(_.AC,{data:V,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.W(_.a,{cond:function(){return F().icon},
then:function(V){return _.W(_.i5,{icon:function(){return V().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Cc");_.c07=_.d(function(C){var F=C.data;var G=C.buttonShapeOverrideables;return _.W("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.W(_.uC,{data:function(){return F().buttonViewModels}},{buttonViewModel:function(V){return _.W(_.tS,{data:V.data,
buttonOverrides:G})},
likeButtonViewModel:function(V){return _.W(_.of,{data:V.data,buttonShapeOverrideables:G})},
dislikeButtonViewModel:function(V){return _.W(_.TR,{data:V.data,buttonShapeOverrideables:G})},
toggleButtonViewModel:function(V){return _.W(_.AS,{data:V.data,buttonShapeOverrides:G})}}))},"Dc");var A0r=_.d(function(C){var F=C.avatar;var G=C.headline;var V=C.badge;var J=C.description;var b=C.expansive;C={};return _.W("yt-ad-metadata-shape",{class:_.py("ytAdMetadataShapeHost",(C.ytAdMetadataShapeHostLarge=b,C))},_.W("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.W(_.a,{cond:F,then:function(z){return _.W(_.Sxo,{data:function(){return(b==null?0:b())?Object.assign({},z(),{size:"AD_AVATAR_SIZE_M"}):z()}})}}),_.W("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.W(_.mn,{text:G,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.W(_.a,{cond:V,then:function(z){return _.W(_.HI,{data:function(){return(b==null?0:b())?Object.assign({},z(),{style:"AD_BADGE_STYLE_STARK"}):z()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.W("h2",{class:"ytAdMetadataShapeHostDescription"},_.W(_.mn,{text:J,
linkInheritColor:!0,isHeadline:function(){return b==null?void 0:b()}})))},"Ec");var eD7=_.d(function(C){var F=C.data;var G=C.onShow;var V=C.expansive;C=_.OI(function(){return F().interaction});
_.q4(function(){var b,z=(b=F().animatedRenderingConfig)==null?void 0:b.delayedSecondsToVisible;if(z){var Q=setTimeout(G,z*1E3);_.q0(function(){clearTimeout(Q)})}});
var J={};return _.W("reels-ad-card-buttoned-view-model",{class:_.py(function(){var b;return((b=F().interaction)==null?0:b.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(J.ytwReelsAdCardButtonedViewModelHostExpansive=V,J)),
el:_.dQ(C)},_.W(A0r,{avatar:function(){return _.Z(F().avatar,Mhl)},
headline:function(){return F().headline},
badge:function(){return _.Z(F().adBadge,SkP)},
description:function(){return F().description},
expansive:V}),_.W(_.uC,{data:function(){return F().ctaButton}},{adButtonViewModel:function(b){var z=b.data;
return _.W(_.EG,{data:function(){return(V==null?0:V())?Object.assign({},z(),{style:"AD_BUTTON_STYLE_FILLED"}):z()}})}}))},"Fc");var dP8=_.d(function(C){var F=C.data;C=C.expansive;var G=_.y("web_ad_metadata_clickable")?_.OI(function(){return F().interaction},void 0,function(){return _.y("web_ad_metadata_clickable")}):void 0,V={};
V=_.tm("ytwReelsAdMetadataViewModelHost",(V.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.y("web_ad_metadata_clickable"),V));return _.W("reels-ad-metadata-view-model",{class:V,el:_.dQ(G)},_.W(A0r,{avatar:function(){return _.Z(F().avatar,Mhl)},
headline:function(){return F().headline},
badge:function(){return _.Z(F().adBadge,SkP)},
description:function(){return F().description},
expansive:C}))},"Gc");var xPS={iconPosition:"icon-with-label",size:"L"},sz$=_.d(function(C){var F=C.data;var G=C.overlayDensity;var V=C.extractOverlay;var J=C.extractActionBar;C=_.Jt("reels-player-overlay-layout-view-model");var b=_.dk(G,0),z=function(){var l;return(l=F().reelsAdCardButtonedEntityKey)!=null?l:""},Q=function(){return z()+"/ad_button"},E=_.$b(kro,z),t=function(){var l,N;
return(N=(l=E())==null?void 0:l.value)!=null?N:!1},k=_.nZ(gIi),U=function(){var l;
return Object.assign({},xPS,(k()||!((l=J==null?void 0:J())!=null&&l))&&{style:"overlay-dark"})};
G={};var H={};return _.W("reels-player-overlay-layout-view-model",{class:_.py("ytwReelsPlayerOverlayLayoutViewModelHost",(G.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!F().extension},G.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},G.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return b()===1&&!(V==null?0:V())},G.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var l;
return(l=V==null?void 0:V())!=null?l:!1},G.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var l;
return(l=J==null?void 0:J())!=null?l:!1},G)),
"overlay-density":function(){return String(b())},
el:C},_.W("div",{class:_.py("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(H.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},H))},_.W("div",{"aria-hidden":function(){return t()},
class:_.py("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return t()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.VA({"transition-duration":function(){return oIZ(F())}})},_.W(_.uC,{data:function(){return F().adMetadata}},{reelsAdMetadataViewModel:function(l){return _.W(dP8,{data:l.data,
expansive:function(){return b()===1}})}}),_.W(_.a,{cond:function(){return F().extension},
then:function(l){return _.W("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.W(_.uC,{data:l},{adButtonViewModel:function(N){return _.W(_.EG,{data:N.data,animationEntityKey:Q,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(N){return _.W(fCm,{data:N.data,animationEntityKey:Q,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return b()===1}})}}))}})),_.W("div",{"aria-hidden":function(){return!t()},
class:_.py("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return t()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.VA({"transition-duration":function(){return oIZ(F())}})},_.W(_.uC,{data:function(){return F().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(l){return _.W(eD7,{data:l.data,
onShow:function(){_.er(_.z3("booleanEntity",z(),{key:z(),value:!0}))},
expansive:function(){return b()===1}})}}))),_.W("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.W(_.uC,{data:function(){return F().actions}},{reelActionBarViewModel:function(l){return _.W(_.c07,{data:l.data,
buttonShapeOverrideables:U})}}),_.W(_.uC,{data:function(){return F().menu}},{buttonViewModel:function(l){return _.W(_.tS,{data:l.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},U(),{type:"tonal"})}})}}),_.W(_.uC,{data:function(){return F().pivotButton}},{pivotButtonViewModel:function(l){return _.W(_.hDu,{data:l.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Hc");_.gQ(sz$,"reels-player-overlay-layout-view-model",{props:{data:_.CJ,overlayDensity:_.CJ,extractOverlay:_.CJ,extractActionBar:_.CJ}});var hw=function(){var C=_.B.apply(this,arguments)||this;C.noBottomMargin=!1;C.overlayDensity=0;C.extractOverlay=!1;C.extractActionBar=!1;return C};
_.O(hw,_.B);_.n=hw.prototype;
_.n.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",textImageNoButtonLayoutViewModel:"text-image-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.y("enable_short_dr_for_desktop_launchable")?{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},
textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.n.ready=function(){var C=this;FKw(function(){C.isAttached&&cl(C.JSC$15661_storedAdSlotMetadata,C.JSC$15661_storedAdLayoutMetadata,C.adSlotMetadata,C.adLayoutMetadata)&&v1(Oh(),C.JSC$15661_storedAdSlotMetadata,C.JSC$15661_storedAdLayoutMetadata)})};
_.n.attached=function(){cl(this.JSC$15661_storedAdSlotMetadata,this.JSC$15661_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&NFG(Oh(),this.JSC$15661_storedAdSlotMetadata,this.JSC$15661_storedAdLayoutMetadata)};
_.n.detached=function(){cl(this.JSC$15661_storedAdSlotMetadata,this.JSC$15661_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&v1(Oh(),this.JSC$15661_storedAdSlotMetadata,this.JSC$15661_storedAdLayoutMetadata)};
_.n.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.n.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15661_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15661_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15661_storedAdLayoutMetadata!==void 0&&this.JSC$15661_storedAdSlotMetadata!==void 0&&v1(Oh(),this.JSC$15661_storedAdSlotMetadata,this.JSC$15661_storedAdLayoutMetadata),NFG(Oh(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15661_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15661_storedAdSlotMetadata=this.adSlotMetadata)};
_.I6.Object.defineProperties(hw.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)==null?void 0:C.adLayoutMetadata}}});
hw.prototype.onAdMetadataChanged=hw.prototype.onAdMetadataChanged;hw.prototype.onTypographyBumpChanged=hw.prototype.onTypographyBumpChanged;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],hw.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],hw.prototype,"rendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],hw.prototype,"ytComponentBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],hw.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],hw.prototype,"noBottomMargin",void 0);_.R([_.L(),_.Y("design:type",Object)],hw.prototype,"overlayDensity",void 0);_.R([_.L(),_.Y("design:type",Object)],hw.prototype,"extractOverlay",void 0);_.R([_.L(),_.Y("design:type",Object)],hw.prototype,"extractActionBar",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],hw.prototype,"typographyBump",void 0);
_.R([_.M("data.adLayoutMetadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],hw.prototype,"adLayoutMetadata",null);_.R([_.L(),_.Y("design:type",Object)],hw.prototype,"adSlotMetadata",void 0);_.R([_.$z("ytd-video-display-full-buttoned-and-button-group-renderer"),_.Y("design:type",HTMLElement)],hw.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.R([_.iP("typographyBump"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hw.prototype,"onTypographyBumpChanged",null);_.R([_.iP("adLayoutMetadata","adSlotMetadata"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hw.prototype,"onAdMetadataChanged",null);_.R([_.e({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],hw);
_.q(hw,"ytd-in-feed-ad-layout-renderer",function(){if(wFu!==void 0)return wFu;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return wFu=C},
{mode:_.oN("kevlar_poly_si_batch_j028")?1:2});var q_S;var PB$;_.gQ(_.HI,"ad-badge-view-model",{props:{data:_.CJ,hasDot:_.CJ,customCommandResolver:_.s9,adRenderingContextType:_.s9,usedInMasthead:_.s9}});_.gQ(_.EG,"ad-button-view-model",{props:{data:_.CJ,customCommandResolver:_.s9,className:_.s9,delayedClassName:_.s9,animationEntityKey:_.s9,isCompactWidth:_.s9,isContentWidth:_.s9}});var c1=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return C};
_.O(c1,_.B);_.n=c1.prototype;_.n.computeHasLiveDescription=function(C){return!(C==null||!C.liveDescription)};
_.n.computeHasByline=function(C){return!(C==null||!C.byline)};
_.n.computeUsesAdButtonViewModel=function(C){return!!_.Z(C==null?void 0:C.cta,LH2)};
_.n.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]",usedInMasthead:"[[isMasthead]]"}}}},"data.cta":{id:"ad-button",mapping:{adButtonViewModel:{component:"ad-button-view-model",params:{isContentWidth:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.n.onYtToggleButton=function(C){var F,G=(F=this.data)==null?void 0:F.videoReminderEntityKey;G&&this.ytdReduxBehavior.dispatch(_.z3("upcomingEventReminderStateEntity",G,{key:G,state:C.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.n.attached=function(){this.updateChannelBanner()};
_.n.dataChanged=function(){this.updateChannelBanner()};
_.n.videoReminderStateChanged=function(){var C;this.videoReminderState&&_.Z((C=this.data)==null?void 0:C.cta,_.pH)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.n.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var C=_.RP(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);C&&(C.startsWith("//")&&(C="https:"+C),this.hostElement.classList.add("channel-banner"),_.jr(this.hostElement,{"--ytvmh-channel-banner":"url("+C+")"}))}else _.y("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.n.onPlayerReady=function(){this.onIronResize()};
_.n.maybeFlushDebouncer=function(){_.y("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(C){var F;C=(F=C.getElementsByTagName("yt-attributed-string"))==null?void 0:F[0];HwE(C==null?void 0:C.polymerController)})};
_.n.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var C=_.ot(this.hostElement).querySelector("#live-description"),F;C&&((F=this.data)==null?0:F.shortLiveDescription)&&C.clientWidth<C.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
c1.prototype.onIronResize=c1.prototype.onIronResize;c1.prototype.videoReminderStateChanged=c1.prototype.videoReminderStateChanged;c1.prototype.dataChanged=c1.prototype.dataChanged;c1.prototype.onYtToggleButton=c1.prototype.onYtToggleButton;_.R([_.w(_.AY),_.Y("design:type",Object)],c1.prototype,"ironResizableBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],c1.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],c1.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],c1.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],c1.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],c1.prototype,"data",void 0);_.R([_.L({selectorArgs:["data.videoReminderEntityKey"],selector:j0Z}),_.Y("design:type",Object)],c1.prototype,"videoReminderState",void 0);
_.R([_.L({reflectToAttribute:!0,value:_.y("web_modern_buttons")}),_.Y("design:type",Boolean)],c1.prototype,"rounded",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.Y("design:type",Boolean)],c1.prototype,"hasLiveDescription",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.Y("design:type",Boolean)],c1.prototype,"hasByline",void 0);
_.R([_.L({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.Y("design:type",String)],c1.prototype,"adRenderingContextType",void 0);_.R([_.L({value:!0}),_.Y("design:type",Boolean)],c1.prototype,"isMasthead",void 0);_.R([_.L({computed:"computeUsesAdButtonViewModel(data)"}),_.Y("design:type",Boolean)],c1.prototype,"usesAdButtonViewModel",void 0);
_.R([_.L({reflectToAttribute:!0,value:_.y("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.Y("design:type",Boolean)],c1.prototype,"resizableAdBannerSafariFix",void 0);_.R([_.bP("yt-formatted-string"),_.Y("design:type",Array)],c1.prototype,"formattedStrings",void 0);_.R([_.$z("#cta-button"),_.Y("design:type",HTMLElement)],c1.prototype,"ctaButton",void 0);
_.R([_.VG("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],c1.prototype,"onYtToggleButton",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],c1.prototype,"dataChanged",null);_.R([_.iP("videoReminderState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],c1.prototype,"videoReminderStateChanged",null);
_.R([_.VG("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],c1.prototype,"onIronResize",null);_.R([_.e({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],c1);
_.q(c1,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(PB$!==void 0)return PB$;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <div id="ad-badge" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n      <div id="ad-button" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n  </div>\n</div>\n');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return PB$=C},{mode:1});var g4r;var Aw=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};C.isLocked=!1;return C};
_.O(Aw,_.B);_.n=Aw.prototype;_.n.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.n.onExpandedChanged=function(){this.expanded&&_.KX(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.n.onMouseOver=function(){this.maybeExpand()};
_.n.onTap=function(){this.maybeExpand()};
_.n.onExpandableTileExpanding=function(C){C!==this&&(this.expanded=!1)};
_.n.onExpandableTileLockAndCollapse=function(C){this.isLocked=!0;C!==this&&(this.expanded=!1)};
_.n.onExpandableTileUnlock=function(){this.isLocked=!1};
Aw.prototype.onTap=Aw.prototype.onTap;Aw.prototype.onMouseOver=Aw.prototype.onMouseOver;Aw.prototype.onExpandedChanged=Aw.prototype.onExpandedChanged;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],Aw.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Aw.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Aw.prototype,"data",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Aw.prototype,"expanded",void 0);_.R([_.zp("expanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Aw.prototype,"onExpandedChanged",null);_.R([_.VG("mouseover"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Aw.prototype,"onMouseOver",null);_.R([_.VG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Aw.prototype,"onTap",null);
_.R([_.e({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],Aw);
_.q(Aw,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(g4r!==void 0)return g4r;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return g4r=C},{mode:1});var RDr;var ez=function(){var C=_.B.apply(this,arguments)||this;C.buttonOverrides={style:"overlay"};C.useYtdPlayer=_.y("use_ytd_player_for_desktop_masthead");C.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};C.playbackFinished=!1;C.JSC$15675_playerManager=null;C.JSC$15675_mastheadCounter=new De7;return C};
_.O(ez,_.B);_.n=ez.prototype;_.n.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"}}}};
_.n.created=function(){this.JSC$15675_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15675_playerManager=new LS)};
_.n.ready=function(){var C=this;this.JSC$15675_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var F=_.ot(this.hostElement).querySelector("#player");this.useYtdPlayer?F.style.display="none":(this.ytdPlayer.style.display="none",eWm(this.JSC$15675_playerManager,F,function(){C.onPlaybackEnded()}),_.ot(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var G;
((G=C.data)==null?0:G.navigationEndpoint)&&_.oo(C.hostElement,"yt-navigate",{endpoint:C.data.navigationEndpoint})}))};
_.n.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15675_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.n.attached=function(){var C=this;_.L5(function(){C.maybePlayVideo()})};
_.n.maybePlayVideo=function(){var C=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$15675_playerManager.playVideo(),this.getPlayerPromise().then(function(){C.JSC$15675_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.n.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15675_playerManager.stopVideo()};
_.n.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var C,F={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((C=this.data.playbackStartMs)!=null?C:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(F);this.setupYtdPlayer()}else xyl(this.JSC$15675_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(dyo(this.JSC$15675_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.n.getPlayerPromise=function(){return this.JSC$15675_playerManager.getPlayerPromise()};
_.n.onYtToggleButton=function(C){this.useYtdPlayer?this.toggleMute(C.detail.toggled):C.detail.toggled?this.JSC$15675_playerManager.mute():this.JSC$15675_playerManager.unMute()};
_.n.onYtNavigate=function(C){var F=Jwf(C.detail.endpoint),G=$Oo(this.data.clickthroughReportingData);F&&G&&(C.detail.endpoint.watchEndpoint?C.detail.tempData=G:_.qU(F,G,30))};
_.n.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.n.onExpandedChanged=function(){this.expanded?(_.KX(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.n.onMouseOver=function(){this.maybeExpand()};
_.n.onTap=function(){this.maybeExpand()};
_.n.onExpandableTileExpanding=function(C){C!==this&&(this.stopVideo(),this.expanded=!1)};
_.n.onExpandableTileLockAndCollapse=function(C){C!==this&&(this.isLocked=!0,this.expanded=!1)};
_.n.onExpandableTileUnlock=function(){this.isLocked=!1};
_.n.lockAndCollapseExpandableTiles=function(){_.rz(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.n.unlockExpandableTiles=function(){_.rz(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.n.setupYtdPlayer=function(){var C=this,F;return _.I(function(G){if(G.nextAddress==1)return G.yield(C.ytdPlayer.getPlayerPromise(),2);F=G.yieldResult;F.addEventListener("onStateChange",function(V){C.onPlayerStateChange(V)});
F.addEventListener("onCueRangeExit",function(V){C.onCueRangeExit(V)});
_.S9(G)})};
_.n.onPlayerStateChange=function(C){if(C===1&&(C=this.ytdPlayer.getPlayer())){var F=C.getCurrentTime(),G,V,J=F+((V=(G=this.data)==null?void 0:G.playbackDurationMs)!=null?V:0)/1E3;C.addCueRange("playback",F,J);this.JSC$15675_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.n.onCueRangeExit=function(C){C==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.n.toggleMute=function(C){var F=this,G;return _.I(function(V){if(V.nextAddress==1)return V.yield(F.ytdPlayer.getPlayerPromise(),2);G=V.yieldResult;C?G.mute():G.unMute();_.S9(V)})};
ez.prototype.onTap=ez.prototype.onTap;ez.prototype.onMouseOver=ez.prototype.onMouseOver;ez.prototype.onExpandedChanged=ez.prototype.onExpandedChanged;ez.prototype.onYtNavigate=ez.prototype.onYtNavigate;ez.prototype.onYtToggleButton=ez.prototype.onYtToggleButton;ez.prototype.dataChanged=ez.prototype.dataChanged;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],ez.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],ez.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ez.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],ez.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],ez.prototype,"expanded",void 0);_.R([_.L(),_.Y("design:type",Object)],ez.prototype,"buttonOverrides",void 0);
_.R([_.L(),_.Y("design:type",Object)],ez.prototype,"useYtdPlayer",void 0);_.R([_.$z("#ytd-player"),_.Y("design:type",Object)],ez.prototype,"ytdPlayer",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ez.prototype,"dataChanged",null);_.R([_.VG("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],ez.prototype,"onYtToggleButton",null);
_.R([_.VG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],ez.prototype,"onYtNavigate",null);_.R([_.zp("expanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ez.prototype,"onExpandedChanged",null);_.R([_.VG("mouseover"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ez.prototype,"onMouseOver",null);
_.R([_.VG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ez.prototype,"onTap",null);_.R([_.e({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],ez);
_.q(ez,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(RDr!==void 0)return RDr;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return RDr=C},{mode:1});var Y_2;var dM=function(){return _.B.apply(this,arguments)||this};
_.O(dM,_.B);dM.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
dM.prototype.onShow=function(){var C=_.ot(this.hostElement).querySelector("#live-description"),F;C&&((F=this.data)==null?0:F.shortLiveDescription)&&C.clientWidth<C.scrollWidth&&this.hostElement.classList.add("short-live-description")};
dM.prototype.onYtToggleButton=function(C){var F,G=(F=this.data)==null?void 0:F.videoReminderEntityKey;G&&this.ytdReduxBehavior.dispatch(_.z3("upcomingEventReminderStateEntity",G,{key:G,state:C.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
dM.prototype.videoReminderStateChanged=function(){var C;this.videoReminderState&&_.Z((C=this.data)==null?void 0:C.cta,_.pH)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
dM.prototype.videoReminderStateChanged=dM.prototype.videoReminderStateChanged;dM.prototype.onYtToggleButton=dM.prototype.onYtToggleButton;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],dM.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],dM.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],dM.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],dM.prototype,"data",void 0);
_.R([_.L({selectorArgs:["data.videoReminderEntityKey"],selector:j0Z}),_.Y("design:type",Object)],dM.prototype,"videoReminderState",void 0);_.R([_.VG("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],dM.prototype,"onYtToggleButton",null);_.R([_.iP("videoReminderState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dM.prototype,"videoReminderStateChanged",null);
_.R([_.e({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],dM);
_.q(dM,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(Y_2!==void 0)return Y_2;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Y_2=C},{mode:_.oN("kevlar_poly_si_batch_j065")?1:2});var TF2;var xN=function(){var C=_.B.apply(this,arguments)||this;C.useYtdPlayer=_.y("use_ytd_player_for_desktop_masthead");C.buttonOverrides={style:"overlay"};C.JSC$15683_playerManager=null;C.JSC$15683_mastheadCounter=new De7;C.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return C};
_.O(xN,_.B);_.n=xN.prototype;_.n.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"}}}};
_.n.created=function(){this.JSC$15683_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15683_playerManager=new LS)};
_.n.ready=function(){var C=this;this.JSC$15683_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var F;(F=this.embeddedPlayer)==null||F.remove()}else{var G;(G=this.ytdPlayer)==null||G.remove();eWm(this.JSC$15683_playerManager,this.embeddedPlayer,function(){C.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){C.data&&C.data.navigationEndpoint&&_.oo(C.hostElement,"yt-navigate",{endpoint:C.data.navigationEndpoint})})}};
_.n.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15683_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.n.dataChanged=function(){var C=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var F=!this.data.disableAutoPlayback,G,V={autoplay:F,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((G=this.data.playbackStartMs)!=null?G:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(F?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(V);this.setupYtdPlayer()}else xyl(this.JSC$15683_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(dyo(this.JSC$15683_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15683_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.rz(C.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");C.JSC$15683_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.n.getPlayerPromise=function(){return this.JSC$15683_playerManager.getPlayerPromise()};
_.n.onYtToggleButton=function(C){this.useYtdPlayer?this.toggleMute(C.detail.toggled):C.detail.toggled?this.JSC$15683_playerManager.mute():this.JSC$15683_playerManager.unMute()};
_.n.onYtNavigate=function(C){var F=Jwf(C.detail.endpoint),G=$Oo(this.data.clickthroughReportingData);F&&G&&(C.detail.endpoint.watchEndpoint?C.detail.tempData=G:_.qU(F,G,30))};
_.n.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15683_playerManager.stopVideo()};
_.n.setupYtdPlayer=function(){var C=this,F;return _.I(function(G){if(G.nextAddress==1)return G.yield(C.ytdPlayer.getPlayerPromise(),2);F=G.yieldResult;F.addEventListener("onStateChange",function(V){C.onPlayerStateChange(V)});
F.addEventListener("onCueRangeExit",function(V){C.onCueRangeExit(V)});
_.S9(G)})};
_.n.onPlayerStateChange=function(C){if(C===1&&(C=this.ytdPlayer.getPlayer())){var F=C.getCurrentTime(),G,V,J=F+((V=(G=this.data)==null?void 0:G.playbackDurationMs)!=null?V:0)/1E3;C.addCueRange("playback",F,J);_.rz(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15683_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.n.onCueRangeExit=function(C){C==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.n.toggleMute=function(C){var F=this,G;return _.I(function(V){if(V.nextAddress==1)return V.yield(F.ytdPlayer.getPlayerPromise(),2);G=V.yieldResult;C?G.mute():G.unMute();_.S9(V)})};
_.I6.Object.defineProperties(xN.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var C,F;if(!((C=this.data)==null?0:(F=C.accessibilityData)==null?0:F.label))return"Ad primary link";var G,V;return _.iQ("AD_TITLE",{title:(G=this.data)==null?void 0:(V=G.accessibilityData)==null?void 0:V.label})}}});
xN.prototype.onYtMastheadHidden=xN.prototype.onYtMastheadHidden;xN.prototype.onYtNavigate=xN.prototype.onYtNavigate;xN.prototype.onYtToggleButton=xN.prototype.onYtToggleButton;xN.prototype.dataChanged=xN.prototype.dataChanged;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],xN.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],xN.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],xN.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],xN.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],xN.prototype,"useYtdPlayer",void 0);_.R([_.$z("ytd-toggle-button-renderer"),_.Y("design:type",Object)],xN.prototype,"muteButton",void 0);_.R([_.L(),_.Y("design:type",Object)],xN.prototype,"buttonOverrides",void 0);
_.R([_.M("data.accessibilityData.label"),_.Y("design:type",String),_.Y("design:paramtypes",[])],xN.prototype,"titleAriaLabel",null);_.R([_.$z("#replay-button"),_.Y("design:type",Object)],xN.prototype,"replayButton",void 0);_.R([_.$z("#player-container"),_.Y("design:type",Object)],xN.prototype,"playerContainer",void 0);_.R([_.$z("#player"),_.Y("design:type",Object)],xN.prototype,"embeddedPlayer",void 0);_.R([_.$z("#ytd-player"),_.Y("design:type",Object)],xN.prototype,"ytdPlayer",void 0);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xN.prototype,"dataChanged",null);_.R([_.VG("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],xN.prototype,"onYtToggleButton",null);_.R([_.VG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],xN.prototype,"onYtNavigate",null);
_.R([_.VG("yt-masthead-hidden"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xN.prototype,"onYtMastheadHidden",null);_.R([_.e({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],xN);
_.q(xN,"ytd-video-masthead-ad-primary-video-renderer",function(){if(TF2!==void 0)return TF2;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return TF2=C},{mode:2});var o4$;var sh=function(){var C=_.B.apply(this,arguments)||this;C.collapsed=!1;C.impressionResolver=_.hM();C.JSC$15687_activeViewMeasurementDataResolver=_.hM();C.actionMap={"yt-mute-ad-action":"handleMuteAd"};return C};
_.O(sh,_.B);_.n=sh.prototype;_.n.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"}}}};
_.n.created=function(){this.activeView=new tJ(this.hostElement)};
_.n.ready=function(){var C=this;_.ot(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){C.expandAd()});
this.hostElement.addEventListener("yt-action",function(F){if(F.detail.actionName==="yt-service-request"){var G=F.detail.args[1];G.videoMastheadAdMuteCommand&&(C.collapseAd(G.videoMastheadAdMuteCommand.encryptedMastheadId),F.stopPropagation())}})};
_.n.attached=function(){var C=this;_.L5(function(){C.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(F){if(!C.collapsed){F=_.u(F);for(var G=F.next();!G.done;G=F.next())G=G.value,jQ(G.baseUrl,G.attributionSrcMode);C.data.impressionCommand=void 0}});
this.JSC$15687_activeViewMeasurementDataResolver.promise.then(function(F){af(C.activeView,F)});
_.y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&kW(C.activeView)})};
_.n.dataChanged=function(){var C;((C=this.data.impressionCommand)==null?0:C.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var F;((F=this.data)==null?0:F.activeView)&&this.JSC$15687_activeViewMeasurementDataResolver.resolve(this.data.activeView);(C=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(C.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.n.computeWidescreen=function(C){var F;return!!(C&&((F=_.Z(C,Zxr))==null?0:F.isWidescreen))};
_.n.computeExpandable=function(C){return!!(C&&C.length>0)};
_.n.onIronResize=function(){if(this.expandable){var C=_.ot(this.hostElement).querySelector("#expandable-tile-container :first-child");C&&!C.expanded&&(C.expanded=!0)}};
_.n.handleMuteAd=function(){this.collapseAd(null)};
_.n.restoreCollapsedState=function(C){this.collapsed=_.bQ().get("HIDDEN_MASTHEAD_ID")===C};
_.n.collapseAd=function(C){if(C){var F=_.bQ();F.set("HIDDEN_MASTHEAD_ID",C);F.save()}(C=_.ot(this.hostElement).querySelector("#video"))&&_.oo(C,"yt-masthead-hidden");this.collapsed=!0};
_.n.expandAd=function(){var C=_.bQ();C.set("HIDDEN_MASTHEAD_ID",!1);C.save();location.reload()};
_.n.detached=function(){_.y("stop_av_measurement_on_detach")&&kW(this.activeView)};
sh.prototype.onIronResize=sh.prototype.onIronResize;sh.prototype.dataChanged=sh.prototype.dataChanged;_.R([_.w(_.AY),_.Y("design:type",Object)],sh.prototype,"ironResizableBehavior",void 0);_.R([_.w(_.rK),_.Y("design:type",Object)],sh.prototype,"ytdGridStateAwareBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],sh.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],sh.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],sh.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],sh.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.Y("design:type",Boolean)],sh.prototype,"widescreen",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.Y("design:type",Boolean)],sh.prototype,"expandable",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],sh.prototype,"collapsed",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sh.prototype,"dataChanged",null);_.R([_.VG("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sh.prototype,"onIronResize",null);_.R([_.e({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],sh);
_.q(sh,"ytd-video-masthead-ad-v3-renderer",function(){if(o4$!==void 0)return o4$;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return o4$=C},{mode:2});var qO=function(){return _.B.apply(this,arguments)||this};
_.O(qO,_.B);_.n=qO.prototype;_.n.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.n.ready=function(){var C=this;FKw(function(){C.isAttached&&cl(C.JSC$15692_storedAdSlotMetadata,C.JSC$15692_storedAdLayoutMetadata,C.adSlotMetadata,C.adLayoutMetadata)&&v1(Oh(),C.JSC$15692_storedAdSlotMetadata,C.JSC$15692_storedAdLayoutMetadata)})};
_.n.attached=function(){cl(this.JSC$15692_storedAdSlotMetadata,this.JSC$15692_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&NFG(Oh(),this.JSC$15692_storedAdSlotMetadata,this.JSC$15692_storedAdLayoutMetadata)};
_.n.detached=function(){cl(this.JSC$15692_storedAdSlotMetadata,this.JSC$15692_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&v1(Oh(),this.JSC$15692_storedAdSlotMetadata,this.JSC$15692_storedAdLayoutMetadata)};
_.n.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15692_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15692_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15692_storedAdLayoutMetadata!==void 0&&this.JSC$15692_storedAdSlotMetadata!==void 0&&v1(Oh(),this.JSC$15692_storedAdSlotMetadata,this.JSC$15692_storedAdLayoutMetadata),NFG(Oh(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15692_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15692_storedAdSlotMetadata=this.adSlotMetadata)};
_.I6.Object.defineProperties(qO.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)==null?void 0:C.adLayoutMetadata}}});
qO.prototype.onAdMetadataChanged=qO.prototype.onAdMetadataChanged;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],qO.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],qO.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],qO.prototype,"data",void 0);_.R([_.M("data.adLayoutMetadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],qO.prototype,"adLayoutMetadata",null);
_.R([_.L(),_.Y("design:type",Object)],qO.prototype,"adSlotMetadata",void 0);_.R([_.iP("adLayoutMetadata","adSlotMetadata"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qO.prototype,"onAdMetadataChanged",null);_.R([_.e({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],qO);
_.q(qO,"ytd-page-top-ad-layout-renderer",function(){if(q_S!==void 0)return q_S;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return q_S=
C},{mode:_.oN("kevlar_poly_si_batch_j070")?1:2});var r0S;var P1=function(){var C=_.B.apply(this,arguments)||this;C.noBottomMargin=!1;C.overlayDensity=0;C.typographyBump=!1;C.extractOverlay=!1;C.extractActionBar=!1;return C};
_.O(P1,_.B);_.n=P1.prototype;
_.n.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",
properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.n.ready=function(){var C=this;FKw(function(){C.isAttached&&C.adSlotMetadata&&ZMr(Oh(),C.adSlotMetadata)})};
_.n.attached=function(){if(this.adSlotMetadata){var C;if(this.adSlotMetadata===((C=this.data)==null?void 0:C.adSlotMetadata))y0E(Oh(),this.adSlotMetadata);else{var F;_.Yw(Error("Oh`"+this.adSlotMetadata+"`"+((F=this.data)==null?void 0:F.adSlotMetadata)))}}};
_.n.detached=function(){this.adSlotMetadata&&ZMr(Oh(),this.adSlotMetadata)};
_.n.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.n.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&ZMr(Oh(),this.adSlotMetadata),y0E(Oh(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.I6.Object.defineProperties(P1.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var C,F,G=_.Z((C=this.data)==null?void 0:(F=C.fulfillmentContent)==null?void 0:F.fulfilledLayout,_.Ox7),V;return(C=(V=_.Z(G==null?void 0:G.renderingContent,NVu))==null?void 0:V.layout)?C.toLowerCase().replace(/_/g,"-"):""}}});
P1.prototype.onAdSlotMetadataChanged=P1.prototype.onAdSlotMetadataChanged;P1.prototype.onTypographyBumpChanged=P1.prototype.onTypographyBumpChanged;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],P1.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],P1.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],P1.prototype,"rendererBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],P1.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],P1.prototype,"noBottomMargin",void 0);_.R([_.L(),_.Y("design:type",Object)],P1.prototype,"overlayDensity",void 0);_.R([_.L(),_.Y("design:type",Object)],P1.prototype,"typographyBump",void 0);_.R([_.L(),_.Y("design:type",Object)],P1.prototype,"extractOverlay",void 0);_.R([_.L(),_.Y("design:type",Object)],P1.prototype,"extractActionBar",void 0);
_.R([_.$z("ytd-in-feed-ad-layout-renderer"),_.Y("design:type",HTMLElement)],P1.prototype,"inFeedAdLayoutRenderer",void 0);_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],P1.prototype,"layout",null);_.R([_.iP("typographyBump"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],P1.prototype,"onTypographyBumpChanged",null);
_.R([_.iP("data.adSlotMetadata"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],P1.prototype,"onAdSlotMetadataChanged",null);_.R([_.e({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],P1);
_.q(P1,"ytd-ad-slot-renderer",function(){if(r0S!==void 0)return r0S;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return r0S=C},{mode:_.oN("kevlar_poly_si_batch_j077")?
1:2});var Kq2;var gM=function(){return _.B.apply(this,arguments)||this};
_.O(gM,_.B);_.n=gM.prototype;_.n.created=function(){this.activeView=new tJ(this.hostElement)};
_.n.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"}}}};
_.n.maybeComputeHref=function(){return null};
_.n.onTap=function(){};
_.n.onThumbnailContainerClick=function(C){this.onClick(C)};
_.n.onClick=function(C){var F,G=(F=this.data)==null?void 0:F.navigationEndpoint;G&&_.Z(G,_.eT)&&(this.ytSparklesClickLocationBehavior.handleClick(G,C,!1),C.stopPropagation())};
_.n.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var C=_.u(this.data.impressionUrls),F=C.next();!F.done;F=C.next())F=F.value,gz5(F,YAA(F));this.data.activeView&&af(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",gM.JSC$15700_DEFAULT_CLICK_LOCATION_BEHAVIOR,gM.JSC$15700_CLICK_LOCATION_ID_MAP);this.thumbnail&&(C=this.thumbnail.getElementsByTagName("a"),C.length>0&&(C=C.namedItem("thumbnail"))&&C.removeAttribute("href"))}};
_.n.attached=function(){var C=this;_.y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&kW(C.activeView)})};
_.n.detached=function(){_.y("stop_av_measurement_on_detach")&&kW(this.activeView)};
_.I6.Object.defineProperties(gM.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.y("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.y("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
gM.prototype.dataChanged=gM.prototype.dataChanged;gM.prototype.onTap=gM.prototype.onTap;gM.JSC$15700_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
gM.JSC$15700_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"}];_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],gM.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],gM.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],gM.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],gM.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.uY.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],gM.prototype,"ytSparklesClickLocationBehavior",void 0);
_.R([_.L({selector:_.ZH}),_.Y("design:type",Object)],gM.prototype,"isGridViewEnabled",void 0);_.R([_.M("isGridViewEnabled"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],gM.prototype,"watchFeedBigThumbs",null);_.R([_.M("isGridViewEnabled"),_.L({reflectToAttribute:!0}),_.Y("design:type",String),_.Y("design:paramtypes",[])],gM.prototype,"thumbnailWidth",null);_.R([_.L(),_.Y("design:type",Object)],gM.prototype,"data",void 0);
_.R([_.$z("ytd-thumbnail"),_.Y("design:type",HTMLElement)],gM.prototype,"thumbnail",void 0);_.R([_.VG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gM.prototype,"onTap",null);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gM.prototype,"dataChanged",null);_.R([_.e({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],gM);
_.q(gM,"ytd-compact-promoted-video-renderer",function(){if(Kq2!==void 0)return Kq2;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-compact-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[thumbnailWidth]]" on-click="onThumbnailContainerClick" class="style-scope ytd-compact-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-promoted-video-renderer">\n    <a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-compact-promoted-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n        </ytd-video-meta-block>\n        <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n          <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n        </div>\n      </div>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n  </div>\n</div>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Kq2=C},{mode:1});var DPu;_.ae("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var Rh=function(){return _.B.apply(this,arguments)||this};
_.O(Rh,_.B);Rh.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Rh.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Rh.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Rh.prototype,"data",void 0);_.R([_.e({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],Rh);
_.q(Rh,"ytd-search-pyv-renderer",function(){if(DPu!==void 0)return DPu;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return DPu=C},{mode:1});var pM8;_.ae("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var YN=function(){var C=_.B.apply(this,arguments)||this;C.roundedContainer=!0;C.JSC$15708_handleOpenPostCommentDialogActionAfterStamp=!1;C.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return C};
_.O(YN,_.B);_.n=YN.prototype;
_.n.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}}};
_.n.onStampFinished=function(){this.JSC$15708_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.n.handleSignalActionOpenPostCommentDialogAction=function(){var C=_.ot(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");C?C.openDialog():this.JSC$15708_handleOpenPostCommentDialogActionAfterStamp=!0};
_.n.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.n.computeHideBorder=function(){return this.isInEngagementPanel};
_.n.computeIsCompact=function(){return this.isInEngagementPanel};
_.n.computeUsesCompactLockup=function(C){return C==="BACKSTAGE_SURFACE_TYPE_HOME"||C==="BACKSTAGE_SURFACE_TYPE_SEARCH"||C==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||C==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||C==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||C==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.n.computeUsesFullLockup=function(){var C,F=(C=this.data)==null?void 0:C.post,G;C=(G=_.Z(F,ewP))==null?void 0:G.surface;var V;G=(V=_.Z(F,ssl))==null?void 0:V.originalPost;var J;if(V=C||((J=_.Z(G,ewP))==null?void 0:J.surface))return!this.computeUsesCompactLockup(V)&&this.useUpdatedRepostUi;var b;return((b=_.Z(F,ssl))==null?void 0:b.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.I6.Object.defineProperties(YN.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var C,F;return((F=_.Z((C=this.data)==null?void 0:C.post,ewP))==null?void 0:F.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)==null?void 0:C.useUpdatedRepostUi}}});
YN.prototype.onYtCommentModerationPanelEmpty=YN.prototype.onYtCommentModerationPanelEmpty;YN.prototype.onStampFinished=YN.prototype.onStampFinished;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],YN.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],YN.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],YN.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],YN.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],YN.prototype,"roundedContainer",void 0);_.R([_.L({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],YN.prototype,"hideBorder",void 0);_.R([_.L({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],YN.prototype,"isCompact",void 0);
_.R([_.L({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],YN.prototype,"usesFullLockup",void 0);_.R([_.VG("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YN.prototype,"onStampFinished",null);
_.R([_.VG("ytd-comment-moderation-panel-empty"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],YN.prototype,"onYtCommentModerationPanelEmpty",null);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],YN.prototype,"isInEngagementPanel",null);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],YN.prototype,"useUpdatedRepostUi",null);
_.R([_.e({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],YN);
_.q(YN,"ytd-backstage-post-thread-renderer",function(){if(pM8!==void 0)return pM8;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return pM8=C},{mode:1});var mPS;var T1=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return C};
_.O(T1,_.B);T1.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
T1.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var C=this.data.thumbnail.thumbnails;this.isDarkTheme&&(C=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(C=_.RP(C,24,void 0,"height"))?C:void 0}};
T1.prototype.onDarkModeToggledAction=function(C){this.isDarkTheme=C};
T1.prototype.computeHasText=function(){var C;return!((C=this.data)==null||!C.text)};
_.I6.Object.defineProperties(T1.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.Ph(this.bannerImageUrl))+'");'}}});
T1.prototype.computeHasText=T1.prototype.computeHasText;T1.prototype.computeBannerImageUrl=T1.prototype.computeBannerImageUrl;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],T1.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],T1.prototype,"actionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],T1.prototype,"ytRendererBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],T1.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Boolean)],T1.prototype,"isDarkTheme",void 0);_.R([_.L(),_.Y("design:type",String)],T1.prototype,"bannerImageUrl",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.Y("design:type",Boolean)],T1.prototype,"hasText",void 0);_.R([_.iP("data","isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],T1.prototype,"computeBannerImageUrl",null);
_.R([_.iP("data.text"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],T1.prototype,"computeHasText",null);_.R([_.M("bannerImageUrl"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],T1.prototype,"bannerStyle",null);_.R([_.e({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],T1);
_.q(T1,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(mPS!==void 0)return mPS;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return mPS=C},{mode:1});var CIu;var oh=function(){return _.B.apply(this,arguments)||this};
_.O(oh,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],oh.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],oh.prototype,"data",void 0);_.R([_.e({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],oh);
_.q(oh,"ytd-backstage-zero-state-renderer",function(){if(CIu!==void 0)return CIu;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return CIu=C},{mode:1});var jVu;var rM=function(){return _.B.apply(this,arguments)||this};
_.O(rM,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],rM.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],rM.prototype,"data",void 0);_.R([_.L({computed:"computeIcon_(data.icon)"}),_.Y("design:type",String)],rM.prototype,"icon",void 0);_.R([_.e({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],rM);
_.q(rM,"ytd-post-filter-zero-state-renderer",function(){if(jVu!==void 0)return jVu;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return jVu=C},{mode:1});var FJm;var G4$={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},K$=function(){return _.B.apply(this,arguments)||this};
_.O(K$,_.B);K$.prototype.configureRendererStamper=function(){return G4$};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],K$.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],K$.prototype,"rendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],K$.prototype,"data",void 0);_.R([_.L({computed:"computeIcon_(data.icon)"}),_.Y("design:type",String)],K$.prototype,"icon",void 0);_.R([_.e({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],K$);
_.q(K$,"ytd-post-scheduling-zero-state-renderer",function(){if(FJm!==void 0)return FJm;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return FJm=C},{mode:1});var VmP;var DZ=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return C};
_.O(DZ,_.B);DZ.prototype.onTabsActivate=function(C){this.data&&this.data.tabs&&_.oo(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[C.detail.selected].navigationEndpoint})};
DZ.prototype.shouldShowTotalCount=function(C){return C&&C.totalCount!==void 0};
DZ.prototype.handleUpdatePostsTotalCountAction=function(C){var F=this.get(["data.tabs",1,"totalCount"]),G=this.get("updatePostsTotalCountAction.updateType",C);C=this.get("updatePostsTotalCountAction.number",C);F!==void 0&&G!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&C&&(G==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(F)+C):G==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(F)-C))};
_.I6.Object.defineProperties(DZ.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var C=0,F=this.data.tabs.length;C<F;C++)if(this.data.tabs[C].selected)return C;return 0}}});
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],DZ.prototype,"actionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],DZ.prototype,"rendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],DZ.prototype,"data",void 0);_.R([_.M("data.tabs"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],DZ.prototype,"selected",null);_.R([_.e({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],DZ);
_.q(DZ,"ytd-post-stream-filter-renderer",function(){if(VmP!==void 0)return VmP;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return VmP=C},{mode:1});var ibG;var p$=function(){return _.B.apply(this,arguments)||this};
_.O(p$,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],p$.prototype,"kevlarBehaviors",void 0);_.R([_.L(),_.Y("design:type",Object)],p$.prototype,"data",void 0);_.R([_.e({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],p$);
_.q(p$,"ytd-channel-age-gate-renderer",function(){if(ibG!==void 0)return ibG;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return ibG=C},{mode:1});var Jou;_.ae("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var m_=function(){var C=_.B.apply(this,arguments)||this;C.data=null;return C};
_.O(m_,_.B);m_.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.I6.Object.defineProperties(m_.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var C,F,G;return((C=this.data)==null?0:(F=C.title)==null?0:(G=F.runs)==null?0:G.length)?147:160}}});
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],m_.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],m_.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],m_.prototype,"imageSizePx",null);_.R([_.e({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],m_);
_.q(m_,"ytd-channel-owner-empty-state-renderer",function(){if(Jou!==void 0)return Jou;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Jou=C},{mode:1});var $Nr;var bbu;var Ce=function(){var C=_.B.apply(this,arguments)||this;C.boundSubmitSearch=function(){C.submitSearch()};
C.boundClearSearch=function(){C.clearSearch()};
return C};
_.O(Ce,_.B);_.n=Ce.prototype;_.n.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]]"}}}}}};
_.n.toggleClearButton=function(){this.hideClearButton=cs2||!this.input.value};
_.n.submitOnEnterKeyUp=function(C){C.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.n.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.n.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.n.submit=function(){_.oo(this.hostElement,"search-query-changed",this.input.value)};
Ce.prototype.toggleClearButton=Ce.prototype.toggleClearButton;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Ce.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Ce.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Ce.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Ce.prototype,"data",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ce.prototype,"hideClearButton",void 0);_.R([_.L(),_.Y("design:type",Object)],Ce.prototype,"boundSubmitSearch",void 0);_.R([_.L(),_.Y("design:type",Object)],Ce.prototype,"boundClearSearch",void 0);_.R([_.$z("#input"),_.Y("design:type",Object)],Ce.prototype,"input",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ce.prototype,"toggleClearButton",null);
_.R([_.e({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],Ce);
_.q(Ce,"ytd-channel-switcher-search-box-renderer",function(){if(bbu!==void 0)return bbu;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return bbu=C},{mode:1});var n$y;var j7=function(){var C=_.B.apply(this,arguments)||this;C.boundSubmit=function(){C.submit()};
return C};
_.O(j7,_.B);_.n=j7.prototype;_.n.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"}}}}};
_.n.ready=function(){var C=this;this.form.addEventListener("submit",function(F){return C.onSubmit(F)})};
_.n.onSubmit=function(C){C.preventDefault();return!1};
_.n.toggleClearButton=function(){this.hideClearButton=cs2||!this.input.value};
_.n.submitOnEnterKeyUp=function(C){C.keyCode===13&&this.submit()};
_.n.submit=function(){var C=this.data.endpoint,F=(0,_.xf.unsafeClone)(C);_.Z(F,_.iE)?_.Z(F,_.iE).query=this.input.value:_.Z(F,_.JR)&&(_.Z(F,_.JR).query=this.input.value);var G=_.Z(F.commandMetadata,_.GU);(G==null?0:G.url)?(G.url=_.rD(G.url,"query",this.input.value),_.oo(this.hostElement,"yt-navigate",{endpoint:F})):_.Z(F,ahS)?(_.Z(F,ahS).channelSwitcherQuery=this.input.value,_.I8().resolve(_.WD).resolveCommand(F,{form:{element:this.hostElement}})):(C=Error("Ph`"+JSON.stringify(C)),_.gD(C))};
_.n.getUrl=function(C){return this.get("commandMetadata.webCommandMetadata.url",C)};
j7.prototype.toggleClearButton=j7.prototype.toggleClearButton;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],j7.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],j7.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],j7.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],j7.prototype,"hideClearButton",void 0);
_.R([_.L(),_.Y("design:type",Object)],j7.prototype,"boundSubmit",void 0);_.R([_.$z("#form"),_.Y("design:type",HTMLFormElement)],j7.prototype,"form",void 0);_.R([_.$z("#input"),_.Y("design:type",Object)],j7.prototype,"input",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],j7.prototype,"toggleClearButton",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],j7);
_.q(j7,"ytd-search-box-renderer",function(){if(n$y!==void 0)return n$y;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return n$y=C},{mode:2});var FH=function(){var C=_.B.apply(this,arguments)||this;C.showSearchBox=!0;return C};
_.O(FH,_.B);FH.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],FH.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],FH.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],FH.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],FH.prototype,"showSearchBox",void 0);_.R([_.e({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],FH);
_.q(FH,"ytd-channel-switcher-header-renderer",function(){if($Nr!==void 0)return $Nr;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return $Nr=C},{mode:1});var ukE;var zrE;var Go=function(){var C=_.B.apply(this,arguments)||this;C.isDisplayed=!0;return C};
_.O(Go,_.B);_.n=Go.prototype;_.n.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.n.dataChanged=function(){this.isDisplayed=!0};
_.n.computeType=function(C){return C||"UNKNOWN"};
_.n.onYtServiceRequestCompleted=function(C){C.stopPropagation();this.isDisplayed=!1};
_.n.onClose=function(){this.isDisplayed=!1};
Go.prototype.onYtServiceRequestCompleted=Go.prototype.onYtServiceRequestCompleted;Go.prototype.dataChanged=Go.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Go.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Go.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Go.prototype,"data",void 0);
_.R([_.L({computed:"computeType(data.type)",reflectToAttribute:!0}),_.Y("design:type",String)],Go.prototype,"type",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Go.prototype,"isDisplayed",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Go.prototype,"dataChanged",null);
_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Go.prototype,"onYtServiceRequestCompleted",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],Go);
_.q(Go,"ytd-alert-with-button-renderer",function(){if(zrE!==void 0)return zrE;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return zrE=C},{mode:1});var VM=function(){var C=_.B.apply(this,arguments)||this;C.noResult=!1;C.enableAlertBanner=!1;C.dismissedAlertBanner=!1;C.hideCreateChannelButton=!1;C.boundDismissAlertBanner=function(){C.dismissAlertBanner()};
C.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return C};
_.O(VM,_.B);_.n=VM.prototype;_.n.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.n.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.n.updateChannelSwitcherAction=function(C){var F;C=(F=_.Z(C,QYy))==null?void 0:F.page;_.Z(C,zaO)!==void 0&&(this.data=_.Z(C,zaO))};
_.n.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]]"}}}}}};
_.n.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.n.searchQueryChanged=function(C,F){if(this.data&&this.data.contents&&this.data.contents.length){C=[];var G=[];this.hideCreateChannelButton=this.noResult=!1;for(var V=document.querySelectorAll("ytd-account-item-renderer"),J=_.u(V),b=J.next();!b.done;b=J.next())b=b.value,G.push(b),b.style.display="block";this.resetRightBorder(G);if(F){this.hideCreateChannelButton=!0;for(G=1;G<this.data.contents.length;G++)if(b=this.data.contents[G],_.Z(b,Epy)){var z=void 0,Q=void 0;J=(z=_.Z(b,Epy))==null?void 0:(Q=
z.accountName)==null?void 0:Q.simpleText;Q=z=void 0;b=(z=_.Z(b,Epy))==null?void 0:(Q=z.channelHandle)==null?void 0:Q.simpleText;(z=V[G-1])&&J&&_.QT(J,F)?C.push(z):_.y("enable_handle_search_on_channel_switcher")&&z&&b&&_.QT(b.toString(),F.toString())?C.push(z):z.style.display="none"}C.length===0&&(this.noResult=!0);this.resetRightBorder(C)}}};
_.n.resetRightBorder=function(C){for(var F=0;F<C.length;F++)C[F].style.borderRight=!this.hideCreateChannelButton&&(F+2)%3===0||this.hideCreateChannelButton&&(F+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.n.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.n.setShowSearchBox=function(C){if(C&&C.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var F=0;F<C.contents.length;F++)_.Z(C.contents[F],_.eZ)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.n.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.I6.Object.defineProperties(VM.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null?0:C.contents)}}});
VM.prototype.onContinuationItemsUpdated=VM.prototype.onContinuationItemsUpdated;VM.prototype.searchQueryChanged=VM.prototype.searchQueryChanged;VM.prototype.onDataChanged=VM.prototype.onDataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],VM.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],VM.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],VM.prototype,"actionHandlerBehavior",void 0);_.R([_.w(_.G1),_.Y("design:type",Object)],VM.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],VM.prototype,"data",void 0);_.R([_.$z("ytd-channel-switcher-header-renderer"),_.Y("design:type",Object)],VM.prototype,"channelSwitcherHeaderRenderer",void 0);_.R([_.L(),_.Y("design:type",Object)],VM.prototype,"noResult",void 0);
_.R([_.L(),_.Y("design:type",Object)],VM.prototype,"enableAlertBanner",void 0);_.R([_.L(),_.Y("design:type",Object)],VM.prototype,"dismissedAlertBanner",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],VM.prototype,"hideCreateChannelButton",void 0);_.R([_.M("data.contents"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],VM.prototype,"isLoading",null);_.R([_.L(),_.Y("design:type",Object)],VM.prototype,"boundDismissAlertBanner",void 0);
_.R([_.L({computed:"computeButtonOverride()"}),_.Y("design:type",Object)],VM.prototype,"buttonOverride",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VM.prototype,"onDataChanged",null);_.R([_.VG("search-query-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,String]),_.Y("design:returntype")],VM.prototype,"searchQueryChanged",null);
_.R([_.VG("yt-next-continuation-data-updated"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],VM.prototype,"onContinuationItemsUpdated",null);_.R([_.e({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],VM);
_.q(VM,"ytd-channel-switcher-page-renderer",function(){if(ukE!==void 0)return ukE;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return ukE=C},{mode:1});var QVE;var I$m;var JE=function(){var C=_.B.apply(this,arguments)||this;C.images=[];C.selectedImageIndex=0;return C};
_.O(JE,_.B);_.n=JE.prototype;
_.n.ready=function(){_.IP(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.IP(this.JSC$15753_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.IP(this.JSC$15753_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.IP(this.JSC$15753_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.n.onThumbnailClick=function(C){if(C=C.event_.detail)this.selectedImageIndex=this.images.indexOf(C)};
_.n.updateImageThumbnails=function(C){C=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:C.event_.detail});this.images.splice(this.selectedImageIndex,1,C);this.images=[].concat(_.da(this.images))};
_.n.cancelImageRepositions=function(){this.selectedImageIndex=0;_.oo(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.n.saveImageRepositions=function(){this.selectedImageIndex=0;_.oo(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.I6.Object.defineProperties(JE.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var C=this;return(this.images||[]).map(function(F,G){return{image:F,selected:G===C.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],JE.prototype,"ytRendererstamperBehavior",void 0);_.R([_.$z("ytd-backstage-image-preview-renderer"),_.Y("design:type",Object)],JE.prototype,"JSC$15753_imagePreviewContainer",void 0);_.R([_.$z(".thumbnail-images-container"),_.Y("design:type",HTMLElement)],JE.prototype,"thumbnailImagesContainer",void 0);_.R([_.L(),_.Y("design:type",Array)],JE.prototype,"images",void 0);
_.R([_.L(),_.Y("design:type",Object)],JE.prototype,"repositionInstructions",void 0);_.R([_.L(),_.Y("design:type",Object)],JE.prototype,"selectedImageIndex",void 0);_.R([_.M("images","selectedImageIndex"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],JE.prototype,"thumbnailRendererDatas",null);_.R([_.M("images","selectedImageIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],JE.prototype,"selectedImageData",null);
_.R([_.e({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],JE);
_.q(JE,"ytd-backstage-multi-image-reposition-renderer",function(){if(I$m!==void 0)return I$m;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return I$m=C},{mode:1});var $F=function(C,F){_.lT.call(this);this.uploadUrl=C;this.channelId=F;this.imagesUploadData=[]};
_.O($F,_.lT);$F.prototype.getAllUploadStatuses=function(){var C=this,F,G,V;return _.I(function(J){if(J.nextAddress==1)return J.yield(E$y(C),2);F=J.yieldResult;G=F.get("succeed");V=F.get("failed");return J.return(G.concat(V))})};
var tmy=function(C){var F,G;return _.I(function(V){if(V.nextAddress==1)return V.yield(E$y(C),2);F=V.yieldResult;G=F.get("failed");G.length>0&&WJ$(C,G);return V.return(C.getAllUploadStatuses())})},E$y=function(C){var F,G,V,J,b,z,Q;
return _.I(function(E){if(E.nextAddress==1)return F=new Map,E.yield(Promise.allSettled(C.imagesUploadData.map(function(t){return t.uploadPromise})),2);
G=E.yieldResult;V=[];J=_.u(G);for(b=J.next();!b.done;b=J.next())z=b.value,z.status==="fulfilled"&&V.push(z.value);Q=C.imagesUploadData.map(function(t){return t.image}).filter(function(t){return V.every(function(k){return k.id!==t.id})});
F.set("succeed",V);F.set("failed",Q);return E.return(F)})},WJ$=function(C,F){F=_.u(F);
for(var G=F.next();!G.done;G=F.next()){var V=C;G=G.value;a$o(V,G.id)>=0&&V.cancel(G.id);var J=new k4S(G),b=_.FHm(V.uploadUrl,{"X-YouTube-ChannelId":V.channelId},G.imageBlob);J.transfer=b;J.uploadPromise=UNE(b,G);V.imagesUploadData.push(J);b.run()}};
$F.prototype.cancel=function(C){var F=a$o(this,C);F!==-1&&((F=this.imagesUploadData[F].transfer)&&F.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(G){return G.image.id!==C}))};
var a$o=function(C,F){return C.imagesUploadData.findIndex(function(G){return G.image.id===F})},UNE=function(C,F){return new Promise(function(G,V){C.listen("l",function(){var J=C.getResponseText();
J?(J=JSON.parse(J).encryptedBlobId,F.encryptedBlobId=J,G(F)):V("upload failed")});
C.listen("n",function(){V("upload failed")})})},k4S=function(C){this.image=C};var rF9=function(C,F,G,V,J){this.id=C;this.imageBlob=F;this.localImageSrc=G;this.naturalWidth=V;this.naturalHeight=J;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 Hb$=[".jpeg",".jpg",".png"],bf=function(){var C=_.B.apply(this,arguments)||this;C.showImagesPreview=!1;C.pollOptions=[];C.errorMessage="";C.optionPlaceholderText="";C.optionDefaultText="";C.JSC$15764_imageId=0;C.maxFileSizeMb=0;C.maxAspectRatio=0;C.invalidFileSizeError="";C.invalidAspectRatioError="";C.invalidFileTypeError="";C.imageSelector=new Hf(null,"single_file",Hb$);return C};
_.O(bf,_.B);_.n=bf.prototype;_.n.ready=function(){_.IP(this.imageSelector,"j",this.onImageSelect,!1,this);_.IP(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.IP(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.n.dataChanged=function(){var C,F,G=_.Z((C=this.data)==null?void 0:(F=C.cellTemplate)==null?void 0:F.onEmptyCellTap,RFy);if(G&&G.uploadUrl&&G.channelId){var V;this.maxFileSizeMb=((V=G.imageValidationInfo)==null?void 0:V.maxFileSizeMb)||0;var J;this.maxAspectRatio=((J=G.imageValidationInfo)==null?void 0:J.allowedMaxAspectRatio)||0;var b;this.invalidFileSizeError=this.getSimpleString((b=this.data)==null?void 0:b.invalidFileSizeError);var z;this.invalidAspectRatioError=this.getSimpleString((z=this.data)==
null?void 0:z.invalidAspectRatioError);var Q;this.invalidFileTypeError=this.getSimpleString((Q=this.data)==null?void 0:Q.invalidFileTypeError);this.uploadManager=new $F(G.uploadUrl,G.channelId)}};
_.n.onEditorInfoChange=function(){this.optionPlaceholderText=_.dd(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.dd(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.n.observeAddImageError=function(){this.errorMessage!==""&&_.oo(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.n.onPollOptionsChange=function(){for(var C=!1,F=[],G=0;G<this.pollOptions.length;G++){var V=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(G+1);this.pollOptions[G].placeholderText!==V?(C=!0,F.push(Object.assign({},this.pollOptions[G],{placeholderText:V}))):F.push(this.pollOptions[G])}C&&(this.pollOptions=F);this.isValid()?_.oo(this.hostElement,"yt-commentbox-post-enable"):_.oo(this.hostElement,"yt-commentbox-post-disable")};
_.n.createPollOptions=function(C){var F=[],G;C=(G=C==null?void 0:C.minPollOptions)!=null?G:0;for(G=0;G<C;G++)F.push(this.createPollOption());return F};
_.n.onImageSelect=function(C){var F=this,G,V,J,b,z,Q;return _.I(function(E){if(E.nextAddress==1){if(F.selectedImageIndex===void 0)return E.jumpTo(0);G=C.files[0];F.errorMessage="";V=F.validateImage(G);if(V!=="")return F.errorMessage=V,E.return();J=new nQ(F.maxAspectRatio,!1,!0);return E.yield(J.transform(G),3)}if(E.nextAddress!=4)return b=E.yieldResult,b.transformedData?b.invalidAspectRatio?(F.errorMessage=F.invalidAspectRatioError,E.return()):E.yield(KTf(F.JSC$15764_imageId,C.files[0],b.transformedData),
4):(F.errorMessage=F.invalidFileTypeError,E.return());z=E.yieldResult;F.JSC$15764_imageId++;WJ$(F.uploadManager,[z]);Q=Object.assign({},F.pollOptions[F.selectedImageIndex],{image:z});F.pollOptions.splice(F.selectedImageIndex,1,Q);F.refreshPollOptions();_.oo(F.hostElement,"yt-backstage-poll-image-select");_.S9(E)})};
_.n.validateImage=function(C){return C.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.n.refreshPollOptions=function(){this.pollOptions=[].concat(_.da(this.pollOptions))};
_.n.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.da(this.pollOptions),[this.createPollOption()]))};
_.n.onRemovePollOption=function(C){var F=this.pollOptions[C.model.index];F&&F.image&&this.uploadManager.cancel(F.image.id);this.pollOptions.splice(C.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.oo(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.n.onTextInput=function(){this.refreshPollOptions()};
_.n.onImageButtonClick=function(C){this.selectedImageIndex=C.model.index;this.imageSelector.click()};
_.n.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.n.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.n.saveImageRepositions=function(C){C=C.event_.detail;for(var F=0,G=[],V=_.u(this.pollOptions),J=V.next();!J.done;J=V.next())J=J.value,J.image!==void 0?(J=Object.assign({},J,{image:C[F]}),G.push(J),F++):G.push(J);this.showImagesPreview=!1;this.pollOptions=[].concat(_.da(G))};
_.n.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 C=0,F=_.u(this.pollOptions),G=F.next();!G.done;G=F.next())if(G=G.value,G.optionText.trim()!==""||G.image!==void 0){if(!G.image||this.hasCustomOptionText&&G.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;C++}return C>=Number(this.editorInfo.minPollOptions)};
_.n.getAllUploadStatuses=function(){var C=this,F,G,V,J;return _.I(function(b){if(b.nextAddress==1)return b.yield(C.uploadManager.getAllUploadStatuses(),2);F=b.yieldResult;G=_.u(F);for(V=G.next();!V.done;V=G.next())if(J=V.value,J.encryptedBlobId===void 0)return b.return(tmy(C.uploadManager));return b.return(F)})};
_.n.getPostCreateOptions=function(){for(var C=[],F=_.u(this.pollOptions),G=F.next();!G.done;G=F.next())G=G.value,G.image!==void 0&&C.push({text:this.hasCustomOptionText?G.optionText:G.placeholderText,image:G.image});return C};
_.n.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.n.createButtonRenderer=function(C,F){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:C,accessibilityData:{accessibilityData:{label:this.getSimpleString(C)}},isDisabled:F}};
_.n.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.n.computeThumbnailRendererData=function(C){return C?{image:C,selected:!1}:void 0};
_.n.getSimpleString=function(C){return _.dd(C)};
_.n.updateOptionTextFromBinding=function(C){if(C.target){var F=Array.from(_.ot(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(C.target);if(F>=0){var G;this.pollOptions[F].optionText=(G=C.detail.value)!=null?G:""}}};
_.I6.Object.defineProperties(bf.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var C,F;return this.pollOptions.length<((F=(C=this.editorInfo)==null?void 0:C.maxPollOptions)!=null?F:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(C){return C.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(C){return C.image}).map(function(C){return C.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(C){return C.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var C,F=(C=this.data)==null?void 0:C.addOptionButtonText;return F?this.createButtonRenderer(F,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var C,F=(C=this.data)==null?void 0:C.repositionImagesButtonLabel;return F?this.createButtonRenderer(F,!this.hasImages):void 0}}});
bf.prototype.onPollOptionsChange=bf.prototype.onPollOptionsChange;bf.prototype.observeAddImageError=bf.prototype.observeAddImageError;bf.prototype.onEditorInfoChange=bf.prototype.onEditorInfoChange;bf.prototype.dataChanged=bf.prototype.dataChanged;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],bf.prototype,"ytRendererstamperBehavior",void 0);_.R([_.$z("ytd-backstage-multi-image-reposition-renderer"),_.Y("design:type",Object)],bf.prototype,"imageRepositionContainer",void 0);
_.R([_.L(),_.Y("design:type",Object)],bf.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],bf.prototype,"editorInfo",void 0);_.R([_.L(),_.Y("design:type",$F)],bf.prototype,"uploadManager",void 0);_.R([_.L(),_.Y("design:type",Object)],bf.prototype,"showImagesPreview",void 0);_.R([_.L(),_.Y("design:type",Array)],bf.prototype,"pollOptions",void 0);_.R([_.L(),_.Y("design:type",Object)],bf.prototype,"errorMessage",void 0);
_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bf.prototype,"dataChanged",null);_.R([_.zp("editorInfo"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bf.prototype,"onEditorInfoChange",null);_.R([_.iP("errorMessage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bf.prototype,"observeAddImageError",null);
_.R([_.zp("pollOptions"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bf.prototype,"onPollOptionsChange",null);_.R([_.M("pollOptions","editorInfo"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],bf.prototype,"isAllowedToAddOption",null);_.R([_.M("pollOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],bf.prototype,"hasImages",null);
_.R([_.M("pollOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],bf.prototype,"imagesToReposition",null);_.R([_.M("pollOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],bf.prototype,"hasCustomOptionText",null);_.R([_.M("data","isAllowedToAddOption"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],bf.prototype,"addOptionButton",null);_.R([_.M("data","hasImages"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],bf.prototype,"repositionImagesButton",null);
_.R([_.e({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],bf);
_.q(bf,"ytd-backstage-image-poll-editor-renderer",function(){if(QVE!==void 0)return QVE;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return QVE=C},{mode:2});var l$G={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 yoP;var ne=function(){var C=_.B.apply(this,arguments)||this;C.a11yConfig=l$G;C.imageDisplayOffsetTop=0;C.imageDisplayOffsetLeft=0;C.pickerDisplayOffsetTop=0;C.pickerDisplayOffsetLeft=0;C.showPreviewContainer=!0;C.startPicker=!1;C.repositionOptional=!1;C.editOnlyMode=!1;C.savedImageDisplayOffsetTop=0;C.savedImageDisplayOffsetLeft=0;return C};
_.O(ne,_.B);_.n=ne.prototype;_.n.created=function(){_.oY.requestAvailability()};
_.n.ready=function(){};
_.n.onArrowKeysDown=function(C){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){C.detail.keyboardEvent.preventDefault();var F=0,G=0,V="";switch(C.detail.keyboardEvent.key){case "ArrowUp":Dtw(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?V=this.a11yConfig.reachBottomOfImage:F=this.imageHeight*.05*-1;break;case "ArrowDown":Dtw(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?V=this.a11yConfig.reachTopOfImage:
F=this.imageHeight*.05;break;case "ArrowLeft":Dtw(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?V=this.a11yConfig.reachRightOfImage:G=this.imageWidth*.05*-1;break;case "ArrowRight":Dtw(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?V=this.a11yConfig.reachLeftOfImage:G=this.imageWidth*.05}V&&_.iQ(V)&&_.oo(this.hostElement,"iron-announce",{text:_.iQ(V)});if(G||F)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+F)),C=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),C=_.iQ(this.a11yConfig.imageVerticalPosition,{x_percent:""+C,y_percent:""+(100-C)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+G)),C=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),C=_.iQ(this.a11yConfig.imageHorizontalPosition,{x_percent:""+C,y_percent:""+(100-C)})),C&&_.oo(this.hostElement,"iron-announce",{text:C})}};
_.n.getPreviewPosition=function(C,F,G,V){return Math.round(100*(C+F*.5-G)/V)};
_.n.calculateDisplayPosition=function(){var C=this.imageData.naturalWidth,F=this.imageData.naturalHeight;this.displayScale=Math.max(200/C,200/F);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var G=C*this.displayScale*this.imageData.previewCoordinates.left,V=F*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=F>C?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-G;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=C>F?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-V;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=C*this.displayScale;this.imageHeight=F*this.displayScale};
_.n.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.n.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.n.getSignedPosition=function(C,F,G){return F==="X"&&_.TF("HTML_DIR")==="rtl"?G==="-"?C+"px":C*-1+"px":G==="-"?C*-1+"px":C+"px"};
_.n.pickerMove=function(C){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var F=this.pickerOffsetX-C.clientX,G=this.pickerOffsetY-C.clientY;this.pickerOffsetX=C.clientX;this.pickerOffsetY=C.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
G)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-F))}};
_.n.pickerMoveStart=function(C){this.startPicker=!0;this.pickerOffsetX=C.clientX;this.pickerOffsetY=C.clientY};
_.n.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var C=this.generateCropPreview();C&&_.oo(this.hostElement,"ytd-backstage-image-preview-coordinates-update",C)};
_.n.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.oo(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.n.deleteImage=function(){_.oo(this.hostElement,"ytd-backstage-image-preview-delete")};
_.n.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.n.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var C=this.generateCropPreview();C&&_.oo(this.hostElement,"ytd-backstage-image-preview-coordinates-save",C)};
_.n.getPreviewOffset=function(C,F,G){return F&&C?(G==="X"&&_.TF("HTML_DIR")==="rtl"?300/F*C:300/F*C*-1)+"px":"0px"};
_.n.getSimpleText=function(C){return C?_.dd(C):""};
_.n.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}};
_.I6.Object.defineProperties(ne.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var C=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.iQ(this.a11yConfig.imageVerticalPosition,{x_percent:""+C,y_percent:""+(100-C)})+"\n"+_.iQ(this.a11yConfig.verticalRepositionInstruction)}C=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.iQ(this.a11yConfig.imageHorizontalPosition,{x_percent:""+C,y_percent:""+(100-C)})+"\n"+_.iQ(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 C,F,G=(C=this.instruction)==null?void 0:(F=C.previewInstruction)==null?void 0:F.editButtonLabel;return G?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:G,accessibilityData:{accessibilityData:{label:this.getSimpleText(G)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var C,F,G,V,J=this.editOnlyMode?(C=this.instruction)==null?void 0:(F=C.editInstruction)==null?void 0:F.saveImagesButtonLabel:(G=this.instruction)==null?void 0:(V=G.editInstruction)==null?void 0:V.saveButtonLabel;return J?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:J,accessibilityData:{accessibilityData:{label:this.getSimpleText(J)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var C,F,G=(C=this.instruction)==null?void 0:(F=C.previewInstruction)==null?void 0:F.deleteButtonLabel;return G?{size:"SIZE_SMALL",text:G,accessibilityData:{accessibilityData:{label:this.getSimpleText(G)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var C,F,G=(C=this.instruction)==null?void 0:(F=C.editInstruction)==null?void 0:F.cancelButtonLabel;C=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return G?{style:C,size:"SIZE_SMALL",text:G,accessibilityData:{accessibilityData:{label:this.getSimpleText(G)}}}: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"}}});
ne.prototype.onEditOnlyModeUpdate=ne.prototype.onEditOnlyModeUpdate;ne.prototype.onImageChange=ne.prototype.onImageChange;_.R([_.L(),_.Y("design:type",rF9)],ne.prototype,"imageData",void 0);_.R([_.L(),_.Y("design:type",Object)],ne.prototype,"instruction",void 0);_.R([_.L(),_.Y("design:type",Object)],ne.prototype,"a11yConfig",void 0);_.R([_.L(),_.Y("design:type",Number)],ne.prototype,"imageWidth",void 0);_.R([_.L(),_.Y("design:type",Number)],ne.prototype,"imageHeight",void 0);
_.R([_.L(),_.Y("design:type",Number)],ne.prototype,"displayScale",void 0);_.R([_.L(),_.Y("design:type",Object)],ne.prototype,"imageDisplayOffsetTop",void 0);_.R([_.L(),_.Y("design:type",Object)],ne.prototype,"imageDisplayOffsetLeft",void 0);_.R([_.L(),_.Y("design:type",Object)],ne.prototype,"pickerDisplayOffsetTop",void 0);_.R([_.L(),_.Y("design:type",Object)],ne.prototype,"pickerDisplayOffsetLeft",void 0);_.R([_.L(),_.Y("design:type",Object)],ne.prototype,"showPreviewContainer",void 0);
_.R([_.L(),_.Y("design:type",Object)],ne.prototype,"startPicker",void 0);_.R([_.L(),_.Y("design:type",Number)],ne.prototype,"pickerOffsetX",void 0);_.R([_.L(),_.Y("design:type",Number)],ne.prototype,"pickerOffsetY",void 0);_.R([_.L(),_.Y("design:type",Object)],ne.prototype,"repositionOptional",void 0);_.R([_.L(),_.Y("design:type",Object)],ne.prototype,"editOnlyMode",void 0);_.R([_.$z("#picker-container"),_.Y("design:type",HTMLElement)],ne.prototype,"JSC$15777_pickerContainer",void 0);
_.R([_.$z("#picker"),_.Y("design:type",HTMLElement)],ne.prototype,"picker",void 0);_.R([_.$z("#preview-clipper"),_.Y("design:type",HTMLElement)],ne.prototype,"previewClipper",void 0);_.R([_.$z("#image-in-picker-background"),_.Y("design:type",HTMLImageElement)],ne.prototype,"JSC$15777_imageInBackground",void 0);_.R([_.$z("#image-in-picker"),_.Y("design:type",HTMLImageElement)],ne.prototype,"JSC$15777_imageInPicker",void 0);
_.R([_.$z("#image-in-preview-clipper"),_.Y("design:type",HTMLImageElement)],ne.prototype,"JSC$15777_imageInPreviewClipper",void 0);_.R([_.M("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],ne.prototype,"altLabelForImage",null);_.R([_.M("imageHeight","imageWidth"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],ne.prototype,"pickerSize",null);
_.R([_.M("imageHeight","imageWidth"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ne.prototype,"imageOrientationStyle",null);_.R([_.M("instruction"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ne.prototype,"editButton",null);_.R([_.M("instruction","editOnlyMode"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ne.prototype,"saveButton",null);_.R([_.M("instruction"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ne.prototype,"deleteButton",null);
_.R([_.M("instruction","editOnlyMode"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ne.prototype,"cancelButton",null);_.R([_.M("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],ne.prototype,"cropOffsetTop",null);_.R([_.M("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],ne.prototype,"cropOffsetLeft",null);
_.R([_.M("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],ne.prototype,"pickerBackgroundStyle",null);_.R([_.M("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],ne.prototype,"pickerDisplayStyle",null);_.R([_.M("cropOffsetLeft","cropOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],ne.prototype,"imageInPickerStyle",null);
_.R([_.M("cropOffsetLeft","cropOffsetTop","pickerSize"),_.Y("design:type",String),_.Y("design:paramtypes",[])],ne.prototype,"previewClipperStyle",null);_.R([_.zp("imageData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ne.prototype,"onImageChange",null);_.R([_.zp("editOnlyMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ne.prototype,"onEditOnlyModeUpdate",null);
_.R([_.M("showPreviewContainer"),_.Y("design:type",String),_.Y("design:paramtypes",[])],ne.prototype,"pickerModeStyle",null);_.R([_.e({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],ne);
_.q(ne,"ytd-backstage-image-preview-renderer",function(){if(yoP!==void 0)return yoP;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return yoP=C},{mode:1});var ZbE;var NHl={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 Obu;var XU$;var uf=function(){var C=_.B.apply(this,arguments)||this;C.a11yConfig=NHl;C.imageDisplayOffsetTop=0;C.imageDisplayOffsetLeft=0;C.pickerDisplayOffsetTop=0;C.pickerDisplayOffsetLeft=0;C.cropCoordinatesSaved=!1;C.previewSize=0;C.startPicker=!1;C.repositionOptional=!1;return C};
_.O(uf,_.B);_.n=uf.prototype;_.n.created=function(){_.oY.requestAvailability()};
_.n.ready=function(){};
_.n.onArrowKeysDown=function(C){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){C.detail.keyboardEvent.preventDefault();var F=0,G=0,V="";switch(C.detail.keyboardEvent.key){case "ArrowUp":p_I(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?V=this.a11yConfig.reachBottomOfImage:F=this.imageHeight*.05*-1;break;case "ArrowDown":p_I(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?V=this.a11yConfig.reachTopOfImage:
F=this.imageHeight*.05;break;case "ArrowLeft":p_I(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?V=this.a11yConfig.reachRightOfImage:G=this.imageWidth*.05*-1;break;case "ArrowRight":p_I(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?V=this.a11yConfig.reachLeftOfImage:G=this.imageWidth*.05}V&&_.iQ(V)&&_.oo(this.hostElement,"iron-announce",{text:_.iQ(V)});if(G||F)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+F)),C=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),C=_.iQ(this.a11yConfig.imageVerticalPosition,{x_percent:""+C,y_percent:""+(100-C)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+G)),C=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),C=_.iQ(this.a11yConfig.imageHorizontalPosition,{x_percent:""+C,y_percent:""+(100-C)})),C&&_.oo(this.hostElement,"iron-announce",{text:C})}};
_.n.getPreviewPosition=function(C,F,G,V){return Math.round(100*(C+F*.5-G)/V)};
_.n.displayImage=function(){var C=this.JSC$15788_pickerContainer.getBoundingClientRect().width,F=this.JSC$15788_pickerContainer.getBoundingClientRect().height,G=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),V=this.JSC$15788_imageInBackground.naturalWidth,J=this.JSC$15788_imageInBackground.naturalHeight;this.displayScale=Math.max(G/V,G/J);this.imageWidth=V*this.displayScale;this.imageHeight=J*this.displayScale;this.pickerDisplayOffsetLeft=(C-G)/2;this.pickerDisplayOffsetTop=
(F-G)/2;this.imageDisplayOffsetLeft=J>V?this.pickerDisplayOffsetLeft:(C-this.imageWidth)/2;this.imageDisplayOffsetTop=V>J?this.pickerDisplayOffsetTop:(F-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.n.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15788_imageInBackground.src=this.imageData.toString(),this.JSC$15788_imageInPicker.src=this.imageData.toString(),this.JSC$15788_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.n.getSignedPosition=function(C,F,G){return F==="X"&&_.TF("HTML_DIR")==="rtl"?G==="-"?C+"px":C*-1+"px":G==="-"?C*-1+"px":C+"px"};
_.n.pickerMove=function(C){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var F=this.pickerOffsetX-C.clientX,G=this.pickerOffsetY-C.clientY;this.pickerOffsetX=C.clientX;this.pickerOffsetY=C.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
G)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-F))}};
_.n.pickerMoveStart=function(C){this.startPicker=!0;this.pickerOffsetX=C.clientX;this.pickerOffsetY=C.clientY};
_.n.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.n.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.oo(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.n.getPreviewOffset=function(C,F,G,V){return F&&C&&G?(V==="X"&&_.TF("HTML_DIR")==="rtl"?G/F*C:G/F*C*-1)+"px":"0px"};
_.n.getSimpleText=function(C){return C?_.dd(C):""};
_.n.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var C=this.cropOffsetTop/this.imageHeight,F=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,G=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,V=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.ot(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.oo(this.hostElement,"yt-img-crop-coordinates-update",{top:C,right:F,bottom:G,left:V})}};
_.I6.Object.defineProperties(uf.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var C=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.iQ(this.a11yConfig.imageVerticalPosition,{x_percent:""+C,y_percent:""+(100-C)})+"\n"+_.iQ(this.a11yConfig.verticalRepositionInstruction)}C=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.iQ(this.a11yConfig.imageHorizontalPosition,{x_percent:""+C,y_percent:""+(100-C)})+"\n"+_.iQ(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 C,F=(C=this.learnMore.runs[0])==null?void 0:C.navigationEndpoint,G;return((G=_.Z(F,_.jW))==null?void 0:G.url)||void 0}}}});
uf.prototype.onImageDataChange=uf.prototype.onImageDataChange;_.R([_.L(),_.Y("design:type",Object)],uf.prototype,"imageData",void 0);_.R([_.L(),_.Y("design:type",Object)],uf.prototype,"instruction",void 0);_.R([_.L(),_.Y("design:type",Object)],uf.prototype,"a11yConfig",void 0);_.R([_.L(),_.Y("design:type",Number)],uf.prototype,"imageWidth",void 0);_.R([_.L(),_.Y("design:type",Number)],uf.prototype,"imageHeight",void 0);_.R([_.L(),_.Y("design:type",Number)],uf.prototype,"displayScale",void 0);
_.R([_.L(),_.Y("design:type",Object)],uf.prototype,"imageDisplayOffsetTop",void 0);_.R([_.L(),_.Y("design:type",Object)],uf.prototype,"imageDisplayOffsetLeft",void 0);_.R([_.L(),_.Y("design:type",Object)],uf.prototype,"pickerDisplayOffsetTop",void 0);_.R([_.L(),_.Y("design:type",Object)],uf.prototype,"pickerDisplayOffsetLeft",void 0);_.R([_.L(),_.Y("design:type",Object)],uf.prototype,"cropCoordinatesSaved",void 0);_.R([_.L(),_.Y("design:type",Object)],uf.prototype,"previewSize",void 0);
_.R([_.L(),_.Y("design:type",Object)],uf.prototype,"startPicker",void 0);_.R([_.L(),_.Y("design:type",Number)],uf.prototype,"pickerOffsetX",void 0);_.R([_.L(),_.Y("design:type",Number)],uf.prototype,"pickerOffsetY",void 0);_.R([_.L(),_.Y("design:type",Object)],uf.prototype,"repositionOptional",void 0);_.R([_.$z("#picker-container"),_.Y("design:type",HTMLElement)],uf.prototype,"JSC$15788_pickerContainer",void 0);_.R([_.$z("#picker"),_.Y("design:type",HTMLElement)],uf.prototype,"picker",void 0);
_.R([_.$z("#image-in-picker-background"),_.Y("design:type",HTMLImageElement)],uf.prototype,"JSC$15788_imageInBackground",void 0);_.R([_.$z("#image-in-picker"),_.Y("design:type",HTMLImageElement)],uf.prototype,"JSC$15788_imageInPicker",void 0);_.R([_.$z("#image-in-preview-clipper"),_.Y("design:type",HTMLImageElement)],uf.prototype,"JSC$15788_imageInPreviewClipper",void 0);_.R([_.$z("#full-image-as-preview"),_.Y("design:type",HTMLImageElement)],uf.prototype,"imageAsPreview",void 0);
_.R([_.M("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],uf.prototype,"altLabelForImage",null);_.R([_.M("imageHeight","imageWidth"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],uf.prototype,"pickerSize",null);_.R([_.M("imageHeight","imageWidth"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],uf.prototype,"imageOrientationStyle",null);
_.R([_.M("instruction.previewInstruction.editButtonLabel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],uf.prototype,"editButton",null);_.R([_.M("instruction.editInstruction.saveButtonLabel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],uf.prototype,"saveButton",null);_.R([_.M("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],uf.prototype,"cropOffsetTop",null);
_.R([_.M("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],uf.prototype,"cropOffsetLeft",null);_.R([_.M("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],uf.prototype,"pickerBackgroundStyle",null);_.R([_.M("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],uf.prototype,"pickerDisplayStyle",null);
_.R([_.M("cropOffsetLeft","cropOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],uf.prototype,"imageInPickerStyle",null);_.R([_.M("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.Y("design:type",String),_.Y("design:paramtypes",[])],uf.prototype,"previewClipperStyle",null);_.R([_.iP("imageData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uf.prototype,"onImageDataChange",null);
_.R([_.M("cropCoordinatesSaved"),_.Y("design:type",String),_.Y("design:paramtypes",[])],uf.prototype,"pickerModeStyle",null);_.R([_.M("instruction.editInstruction.learnMore"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],uf.prototype,"learnMore",null);_.R([_.M("learnMore"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],uf.prototype,"learnMoreUrl",null);_.R([_.Z5({is:"yt-img-crop-picker",disableElementRegistration:!0})],uf);
_.q(uf,"yt-img-crop-picker",function(){if(XU$===void 0){var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;Obu===void 0&&(Obu=document.createElement("template"));var V=Obu;G.call(F,V.content.cloneNode(!0),C.content.firstChild);XU$=C}C=XU$;return C},{mode:2});var zo=function(){var C=_.B.apply(this,arguments)||this;C.errorMessage="";C.hasPreview=!1;C.isBackstagePost=!1;C.dismissButtonOverrides={size:"XS"};return C};
_.O(zo,_.B);_.n=zo.prototype;_.n.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"}}}};
_.n.detached=function(){this.removeOverlay()};
_.n.setPreview=function(C){_.ot(this.hostElement).querySelector("#preview-picker").imageData=C;this.hasPreview=!0;_.oo(this.hostElement,"yt-backstage-image-select-preview")};
_.n.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var C=_.ot(this.hostElement).querySelector("#dropzone");C.classList.remove("dragover");C.classList.remove("error");_.oo(this.hostElement,"yt-backstage-image-select-cancel")};
_.n.setupOverlay=function(){var C=this.imageUploadEndpoint;this.removeOverlay();if(C&&C.imageValidationInfo){var F=_.ot(this.hostElement).querySelector("#dropzone"),G=_.ot(this.hostElement).querySelector("#select");this.overlay=new zz(C.uploadUrl,C.channelId,C.imageValidationInfo.maxFileSizeMb,C.imageValidationInfo.allowedMaxAspectRatio,F,G,!0);_.IP(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.IP(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.IP(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.IP(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.IP(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.n.removeOverlay=function(){this.overlay&&(_.Hd(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.Hd(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.Hd(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.Hd(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.Hd(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.n.onDragOver=function(C){var F=_.ot(this.hostElement).querySelector("#dropzone");_.pd(F,"dragover",C.value)};
_.n.onPreview=function(C){this.setPreview(C.value)};
_.n.onImageError=function(C){if(C.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var F;C=(F=this.data)==null?void 0:F.fileSizeError}else if(C.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var G;C=(G=this.data)==null?void 0:G.invalidError}else if(C.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var V;C=(V=this.data)==null?void 0:V.invalidAspectRatioError}else return;this.errorMessage=_.dd(C);_.ot(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.n.onImageAlert=function(C){this.onImageError(C)};
_.n.uploadPromise=function(){var C=this,F=this.overlay&&this.overlay.uploadPromise();if(F)return F.catch(function(){throw Error(C.data?_.dd(C.data.uploadFailureError):"");})};
_.I6.Object.defineProperties(zo.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)==null?void 0:C.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)==null?void 0:C.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var C,F;if((C=this.data)==null?0:(F=C.icon)==null?0:F.iconType)return _.p5(this.data.icon.iconType)}}});
zo.prototype.setupOverlay=zo.prototype.setupOverlay;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],zo.prototype,"rendererStamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],zo.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],zo.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],zo.prototype,"imageUploadEndpoint",void 0);_.R([_.L(),_.Y("design:type",Object)],zo.prototype,"errorMessage",void 0);
_.R([_.L(),_.Y("design:type",zz)],zo.prototype,"overlay",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],zo.prototype,"hasPreview",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],zo.prototype,"isBackstagePost",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],zo.prototype,"selectionCancel",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],zo.prototype,"previewCancel",null);
_.R([_.M("data.icon.iconType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],zo.prototype,"icon",null);_.R([_.L(),_.Y("design:type",Object)],zo.prototype,"dismissButtonOverrides",void 0);_.R([_.iP("imageUploadEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zo.prototype,"setupOverlay",null);_.R([_.e({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],zo);
_.q(zo,"ytd-backstage-image-select-renderer",function(){if(ZbE!==void 0)return ZbE;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return ZbE=C},{mode:1});var wUy;var Mml;var QM=function(){var C=_.B.apply(this,arguments)||this;C.selected=!1;return C};
_.O(QM,_.B);_.n=QM.prototype;_.n.computeSelected=function(C){return C==null?void 0:C.selected};
_.n.computeTransform=function(C,F,G){var V,J,b=(J=(V=this.imageContainer)==null?void 0:V.getBoundingClientRect())!=null?J:{width:0,height:0};V=Math.max(b.width/F,b.height/G);G=G*V*C.top;return"translateX("+this.getSignedPosition(F*V*C.left,"X","-")+") translateY("+this.getSignedPosition(G,"Y","-")+")"};
_.n.getSignedPosition=function(C,F,G){return F==="X"&&_.TF("HTML_DIR")==="rtl"?G==="-"?C+"px":C*-1+"px":G==="-"?C*-1+"px":C+"px"};
_.n.onClick=function(){var C;_.oo(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(C=this.data)==null?void 0:C.image)};
_.n.onKeyPress=function(C){if(C.keyCode===13)this.onClick()};
_.I6.Object.defineProperties(QM.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var C,F;return((C=this.data)==null?void 0:(F=C.image)==null?void 0:F.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var C;if((C=this.data)!=null&&C.image){var F;C=(F=this.data)==null?void 0:F.image;return C.previewCoordinates.top!==0||C.previewCoordinates.left!==0?(F=this.computeTransform(C.previewCoordinates,C.naturalWidth,C.naturalHeight),C.naturalHeight>=C.naturalWidth?"width:inherit;transform:"+F+";":"height:inherit;transform:"+F+";"):C.naturalHeight>=C.naturalWidth?"width:inherit;":"height:inherit;"}}}});
QM.prototype.onKeyPress=QM.prototype.onKeyPress;_.R([_.$z(".image-container"),_.Y("design:type",HTMLElement)],QM.prototype,"imageContainer",void 0);_.R([_.L(),_.Y("design:type",Object)],QM.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.Y("design:type",Object)],QM.prototype,"selected",void 0);_.R([_.M("data.image"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],QM.prototype,"thumbnailUrl",null);
_.R([_.M("data.image","data.image.previewCoordinates"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],QM.prototype,"thumbnailStyle",null);_.R([_.VG("keypress"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],QM.prototype,"onKeyPress",null);_.R([_.e({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],QM);
_.q(QM,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(Mml!==void 0)return Mml;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Mml=C},{mode:2});var I_=function(C,F,G){G=G===void 0?!1:G;_.lT.call(this);var V=this;this.dropZoneOverlay=new UR(C);this.selectOverlay=G?new Hf(F,"multiple_file",["image/*"]):new Hf(F,"single_file",["image/*"]);this.handler=new _.ln(this);_.Nd(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(F,"click",function(){V.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.O(I_,_.lT);I_.prototype.onChange=function(C){var F;(F=C.files)!=null&&F.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:C.files}))};var EC=function(){var C=_.B.apply(this,arguments)||this;C.addImageErrorMessage="";C.errorMessage="";C.images=[];C.selectedImageIndex=0;C.modern=_.y("web_modern_buttons");C.maxNumImagesPerPost=_.a8("max_num_images_per_post_web_ui");C.JSC$15803_imageId=0;return C};
_.O(EC,_.B);_.n=EC.prototype;_.n.created=function(){var C=this;this.JSC$15803_ytReorderableController=new _.oQS(100,function(F){C.handleDrop(F)})};
_.n.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.oo(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.n.observeDragToReorder=function(){var C=this;if(this.showImagesPreview){var F,G=jHO(_.yc.getInstance(),(F=this.data)==null?void 0:F.dragToReorderTooltip);_.gT.addLowPriorityJob(function(){_.pX(C.hostElement,G,C.thumbnailDragDropArea)})}};
_.n.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}}};
_.n.computeThumbnail=function(C){return(C==null?void 0:C.localImageSrc)||void 0};
_.n.onRendererstamperFinished=function(){_.rDu(this.JSC$15803_ytReorderableController,_.ot(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.ot(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.n.handleDrop=function(C){var F=C.currDragItem;if(F!=null&&F.data){C=this.images[this.selectedImageIndex];var G=F.data.image,V=this.images.indexOf(G)||0;F=_.dI(F.parentNode.children,F);this.images.splice(V,1);this.images.splice(F,0,G);this.images=[].concat(_.da(this.images));this.selectedImageIndex=this.images.indexOf(C)}};
_.n.setUpImagePicker=function(){var C=this.imageUploadEndpoint;C&&C.imageValidationInfo&&(this.uploadManager=new $F(C.uploadUrl,C.channelId),this.initialPicker||(this.initialPicker=new I_(this.dropzone,this.selectLink,!0),_.IP(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new I_(this.addImageButtonContainer,this.addImageSelectButton),_.IP(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.IP(this.JSC$15803_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.IP(this.JSC$15803_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.IP(_.ot(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.n.detached=function(){this.initialPicker&&(_.Hd(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.Hd(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0);_.Mj(this.JSC$15803_ytReorderableController)};
_.n.onInitialSelectImages=function(C){var F=this;return _.I(function(G){return G.yield(F.onSelectImages(C,!1),0)})};
_.n.onAddImage=function(C){var F=this;return _.I(function(G){return G.yield(F.onSelectImages(C,!0),0)})};
_.n.onSelectImages=function(C,F){var G=this,V,J,b,z,Q,E,t,k,U,H,l,N,S,f,c,A,T,P,g,r;return _.I(function(C9){switch(C9.nextAddress){case 1:F?G.addImageErrorMessage="":(G.images=[],G.errorMessage="");V=C.detail;J=G.validateImages([].concat(_.da(V)));if(J!=="")return F?G.addImageErrorMessage=J:G.errorMessage=J,C9.return();b=[].concat(_.da(V)).map(function(Wo){return(new nQ(G.maxAspectRatio,!1,!0)).transform(Wo)});
return C9.yield(Promise.allSettled(b),2);case 2:z=C9.yieldResult,Q=_.u(z.entries()),E=Q.next();case 3:if(E.done){C9.jumpTo(5);break}t=E.value;k=_.u(t);U=k.next().value;H=k.next().value;l=U;N=H;if(N.status!=="fulfilled"){c=f=S=void 0;F?G.addImageErrorMessage=_.dd((S=G.data)==null?void 0:S.invalidError):G.errorMessage=G.errorMessage===""?_.dd((f=G.data)==null?void 0:f.invalidError):_.dd((c=G.data)==null?void 0:c.multiFileError);C9.jumpTo(4);break}A=N.value;A.cropped&&_.oo(G.hostElement,"yt-backstage-multi-image-cropped");
if(A.invalidAspectRatio){g=P=T=void 0;F?G.addImageErrorMessage=_.dd((T=G.data)==null?void 0:T.invalidAspectRatioError):G.errorMessage=G.errorMessage===""?_.dd((P=G.data)==null?void 0:P.invalidAspectRatioError):_.dd((g=G.data)==null?void 0:g.multiFileError);C9.jumpTo(4);break}return C9.yield(KTf(G.JSC$15803_imageId,C.detail[l],A.transformedData),8);case 8:r=C9.yieldResult,G.images.push(r),G.JSC$15803_imageId++;case 4:E=Q.next();C9.jumpTo(3);break;case 5:if(G.errorMessage!==""||G.addImageErrorMessage!==
"")return C9.return();F?WJ$(G.uploadManager,[G.images[G.images.length-1]]):WJ$(G.uploadManager,G.images);G.images=[].concat(_.da(G.images));G.selectedImageIndex=F?Math.max(G.images.length-1,0):0;_.oo(G.hostElement,"yt-backstage-multi-image-select");_.S9(C9)}})};
_.n.onThumbnailClick=function(C){if(C=C.event_.detail)this.selectedImageIndex=this.images.indexOf(C)};
_.n.validateImages=function(C){if(C.length>this.maxNumImagesPerPost){var F;return _.dd((F=this.data)==null?void 0:F.multiImageExceedMaxImageCountError)}var G=1048576*this.maxFileSizeMb;C=C.filter(function(b){return b.size>G}).length;
if(C===0)return"";var V,J;C=C>1?(V=this.data)==null?void 0:V.multiFileError:(J=this.data)==null?void 0:J.fileSizeError;return _.dd(C)};
_.n.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.da(this.images));this.selectedImageIndex=0};
_.n.repositionImage=function(C){this.images[this.selectedImageIndex].previewCoordinates=C.event_.detail;this.images=[].concat(_.da(this.images))};
_.n.getAllUploadStatuses=function(){var C=this,F,G,V,J;return _.I(function(b){if(b.nextAddress==1)return b.yield(C.uploadManager.getAllUploadStatuses(),2);F=b.yieldResult;G=_.u(F);for(V=G.next();!V.done;V=G.next())if(J=V.value,J.encryptedBlobId===void 0)return b.return(tmy(C.uploadManager));return b.return(F)})};
_.n.hasImages=function(){return this.images.length>0};
_.n.cancel=function(){for(var C=this.uploadManager,F=_.u(C.imagesUploadData),G=F.next();!G.done;G=F.next())C.cancel(G.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.oo(this.hostElement,"yt-backstage-multi-image-cancel")};
_.I6.Object.defineProperties(EC.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var C,F;return((C=this.imageUploadEndpoint)==null?void 0:(F=C.imageValidationInfo)==null?void 0:F.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var C,F;return((C=this.imageUploadEndpoint)==null?void 0:(F=C.imageValidationInfo)==null?void 0:F.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var C,F;if((C=this.data)==null?0:(F=C.icon)==null?0:F.iconType)return _.p5(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)==null?void 0:C.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)==null?void 0:C.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)==null?void 0:C.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 C=this;return(this.images||[]).map(function(F,G){return{renderer:{image:F,selected:G===C.selectedImageIndex}}})}}});
EC.prototype.setUpImagePicker=EC.prototype.setUpImagePicker;EC.prototype.onRendererstamperFinished=EC.prototype.onRendererstamperFinished;EC.prototype.observeDragToReorder=EC.prototype.observeDragToReorder;EC.prototype.observeAddImageError=EC.prototype.observeAddImageError;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],EC.prototype,"rendererStamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],EC.prototype,"ytRendererBehavior",void 0);
_.R([_.$z("#dropzone"),_.Y("design:type",HTMLElement)],EC.prototype,"dropzone",void 0);_.R([_.$z("#select-link"),_.Y("design:type",HTMLElement)],EC.prototype,"selectLink",void 0);_.R([_.$z("#thumbnail-drag-drop-area"),_.Y("design:type",HTMLElement)],EC.prototype,"thumbnailDragDropArea",void 0);_.R([_.$z("#add-image-button-container"),_.Y("design:type",HTMLElement)],EC.prototype,"addImageButtonContainer",void 0);
_.R([_.$z("#add-image-button"),_.Y("design:type",HTMLElement)],EC.prototype,"addImageSelectButton",void 0);_.R([_.$z("#image-preview-container"),_.Y("design:type",Object)],EC.prototype,"JSC$15803_imagePreviewContainer",void 0);_.R([_.L(),_.Y("design:type",Object)],EC.prototype,"addImageErrorMessage",void 0);_.R([_.L(),_.Y("design:type",Object)],EC.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],EC.prototype,"errorMessage",void 0);
_.R([_.L(),_.Y("design:type",Object)],EC.prototype,"imageUploadEndpoint",void 0);_.R([_.L(),_.Y("design:type",Array)],EC.prototype,"images",void 0);_.R([_.L(),_.Y("design:type",I_)],EC.prototype,"initialPicker",void 0);_.R([_.L(),_.Y("design:type",I_)],EC.prototype,"addImagePicker",void 0);_.R([_.L(),_.Y("design:type",$F)],EC.prototype,"uploadManager",void 0);_.R([_.L(),_.Y("design:type",Object)],EC.prototype,"selectedImageIndex",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],EC.prototype,"modern",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],EC.prototype,"maxNumImagesPerPost",void 0);_.R([_.M("imageUploadEndpoint"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],EC.prototype,"maxAspectRatio",null);_.R([_.M("imageUploadEndpoint"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],EC.prototype,"maxFileSizeMb",null);
_.R([_.M("data.icon.iconType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],EC.prototype,"dropIcon",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],EC.prototype,"selectionCancel",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],EC.prototype,"previewCancel",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],EC.prototype,"dataForAddImageButton",null);
_.R([_.M("errorMessage"),_.Y("design:type",String),_.Y("design:paramtypes",[])],EC.prototype,"dropzoneClass",null);_.R([_.M("images"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],EC.prototype,"showImagesPreview",null);_.R([_.M("images"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],EC.prototype,"containMaxImages",null);_.R([_.iP("addImageErrorMessage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],EC.prototype,"observeAddImageError",null);
_.R([_.iP("showImagesPreview"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],EC.prototype,"observeDragToReorder",null);_.R([_.M("images","selectedImageIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],EC.prototype,"selectedImageData",null);_.R([_.M("images","selectedImageIndex"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],EC.prototype,"thumbnailRenderers",null);
_.R([_.VG("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],EC.prototype,"onRendererstamperFinished",null);_.R([_.iP("imageUploadEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],EC.prototype,"setUpImagePicker",null);_.R([_.e({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],EC);
_.q(EC,"ytd-backstage-multi-image-select-renderer",function(){if(wUy!==void 0)return wUy;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return wUy=C},{mode:1});var Sly;var LJy;var BHE;var WX=function(){var C=_.B.apply(this,arguments)||this;C.boundCaptureFocus=function(F){C.onCaptureFocus(F)};
return C};
_.O(WX,_.B);_.n=WX.prototype;_.n.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.n.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.n.onCaptureFocus=function(C){_.AR(C).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.n.getIconType=function(C){return C?"yt-icons:"+C.toLowerCase():null};
_.n.onSelect=function(){var C;if((C=this.data)==null?0:C.onSelectCommand)if(_.y("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var F;((F=_.Z(this.data.onSelectCommand.commandMetadata,_.GU))==null?0:F.url)?_.oo(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.I8().resolve(_.WD).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.I6.Object.defineProperties(WX.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.dd(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}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],WX.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],WX.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],WX.prototype,"data",void 0);_.R([_.$z("#item"),_.Y("design:type",HTMLElement)],WX.prototype,"item",void 0);_.R([_.M("data.label"),_.Y("design:type",String),_.Y("design:paramtypes",[])],WX.prototype,"label",null);
_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],WX.prototype,"value",null);_.R([_.e({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],WX);
_.q(WX,"ytd-privacy-dropdown-item-renderer",function(){if(BHE!==void 0)return BHE;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return BHE=C},{mode:1});var tE=function(){var C=_.B.apply(this,arguments)||this;C.value="";C.label="";C.disabled=!1;return C};
_.O(tE,_.B);_.n=tE.prototype;_.n.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"}}}};
_.n.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.n.dataChanged=function(){this.reset()};
_.n.valueChanged=function(){var C;if(this.value&&(C=this.data)!=null&&C.entries){C=_.u(this.data.entries);for(var F=C.next();!F.done;F=C.next())if((F=this.getRendererForEntry(F.value))&&this.getItemRendererValue(F)===this.value){this.label=this.ytComponentBehavior.getSimpleString(F.label);break}}};
_.n.setInitialLabel=function(){if(this.data&&this.data.entries)for(var C=_.u(this.data.entries),F=C.next();!F.done;F=C.next())if(F=this.getRendererForEntry(F.value)){if(F.isSelected){this.label=this.ytComponentBehavior.getSimpleString(F.label);break}this.data.label&&(this.label=this.data.label)}};
_.n.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var C=_.u(this.data.entries),F=C.next();!F.done;F=C.next()){F=this.getRendererForEntry(F.value);var G=void 0;if((G=F)==null?0:G.isSelected)return this.getItemRendererValue(F)||-1}return-1};
_.n.getItemRendererValue=function(C){return"stringValue"in C||"int32Value"in C?C.stringValue||C.int32Value||null:null};
_.n.getRendererForEntry=function(C){return C.dropdownItemRenderer||C.privacyDropdownItemRenderer||C.navigationDropdownItemRenderer||null};
_.n.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G6("value-changed",this.value))};
_.n.updateValueFromBinding=function(C){this.value=C.detail.value};
tE.prototype.valueChangedForBinding=tE.prototype.valueChangedForBinding;tE.prototype.valueChanged=tE.prototype.valueChanged;tE.prototype.dataChanged=tE.prototype.dataChanged;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],tE.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],tE.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],tE.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],tE.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],tE.prototype,"value",void 0);_.R([_.L(),_.Y("design:type",Object)],tE.prototype,"label",void 0);_.R([_.$z("#entries"),_.Y("design:type",Object)],tE.prototype,"entries",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],tE.prototype,"disabled",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tE.prototype,"dataChanged",null);
_.R([_.zp("value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tE.prototype,"valueChanged",null);_.R([_.iP("value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tE.prototype,"valueChangedForBinding",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],tE);
_.q(tE,"ytd-flat-dropdown-renderer",function(){if(LJy!==void 0)return LJy;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return LJy=C},{mode:1});var v$E;var a_=function(){var C=_.B.apply(this,arguments)||this;C.quizOptions=[];C.explanationPlaceholderText="";C.optionPlaceholderText="";C.correctAnswerIndex=-1;C.isMarkAnswerTooltipShown=!1;C.timer=0;return C};
_.O(a_,_.B);_.n=a_.prototype;_.n.dataChanged=function(){this.optionPlaceholderText=_.dd(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.dd(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.n.onMarkCorrectAnswer=function(C){var F,G=((F=this.quizOptions[this.correctAnswerIndex])==null?void 0:F.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[C.model.index]=Object.assign({},this.quizOptions[C.model.index],{explanationText:G,isCorrect:!0});this.correctAnswerIndex=C.model.index;this.quizOptions=[].concat(_.da(this.quizOptions))};
_.n.updatePlaceholderTexts=function(){for(var C=!1,F=[],G=0;G<this.quizOptions.length;G++){var V=this.optionPlaceholderText+" "+(G+1),J=void 0;((J=this.quizOptions[G])==null?void 0:J.placeholderText)!==V?(C=!0,F.push(Object.assign({},this.quizOptions[G],{placeholderText:V}))):F.push(this.quizOptions[G])}C&&(this.quizOptions=F);this.isValid()?_.oo(this.hostElement,"yt-commentbox-post-enable"):_.oo(this.hostElement,"yt-commentbox-post-disable")};
_.n.getSimpleString=function(C){return _.dd(C)};
_.n.createQuizOptions=function(C){var F=[],G;C=(G=C==null?void 0:C.minQuizOptions)!=null?G:0;for(G=0;G<C;G++)F.push(this.createQuizOption());return F};
_.n.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.da(this.quizOptions),[this.createQuizOption()]))};
_.n.onInput=function(){this.quizOptions=[].concat(_.da(this.quizOptions))};
_.n.onExplanationInput=function(){_.oo(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.n.onRemoveQuizOption=function(C){this.quizOptions.splice(C.model.index,1);C.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:C.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.da(this.quizOptions));this.quizOptions.length===0&&_.oo(this.hostElement,"yt-quiz-attachment-dismiss")};
_.n.updateHintRenderer=function(){var C=this;clearTimeout(this.timer);this.timer=setTimeout(function(){C.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.n.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var C=0,F=0,G=_.u(this.quizOptions),V=G.next();!V.done;V=G.next()){V=V.value;var J=void 0;if(((J=V.optionText)==null?void 0:J.trim())!==""||V.isCorrect){V.isCorrect&&F++;J=void 0;if(this.hasCustomOptionText&&((J=V.optionText)==null?void 0:J.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;C++}}return C>=
Number(this.editorInfo.minQuizOptions)&&F===1};
_.n.getPostCreateOptions=function(){for(var C=[],F=_.u(this.quizOptions),G=F.next();!G.done;G=F.next()){G=G.value;var V=void 0;((V=G.optionText)==null?void 0:V.trim())!==""&&C.push({pollOption:{text:G.optionText,explanation:G.explanationText},isCorrect:G.isCorrect})}return C};
_.n.getExplanationText=function(){var C;return((C=this.quizOptions[this.correctAnswerIndex])==null?void 0:C.explanationText)||""};
_.n.maybeDisplayMarkAnswerEduToolTip=function(){var C,F,G,V,J,b,z;this.shouldShowMarkAnswerTooltip()&&((C=this.editorInfo)==null?0:(F=C.markAnswerButton)==null?0:(G=F.buttonRenderer)==null?0:(V=G.hint)==null?0:(J=V.hintRenderer)==null?0:(b=J.content)==null?0:(z=b.bubbleHintRenderer)==null?0:z.text)&&(_.yc.getInstance(),C=ZS(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,(C==null?void 0:C.length)>0&&this.optionSelectors&&_.jR(C[0],this.optionSelectors[0]))};
_.n.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var C=0,F=_.u(this.quizOptions),G=F.next();!G.done;G=F.next()){G=G.value;var V=void 0;((V=G.optionText)==null?void 0:V.trim())!==""&&C++;if(G.isCorrect)return!1}return C<2?!1:!0};
_.n.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.n.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.n.updateOptionTextFromBinding=function(C){if(C.target){var F=Array.from(_.ot(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(C.target);if(F>=0){var G;this.quizOptions[F].optionText=(G=C.detail.value)!=null?G:""}}};
_.I6.Object.defineProperties(a_.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var C,F,G=(C=this.editorInfo)==null?void 0:(F=C.addOptionButton)==null?void 0:F.buttonRenderer;G&&(G.style="STYLE_SUGGESTIVE",G.size="SIZE_SMALL",G.isDisabled=!this.isAllowedToAddOption);return(G==null?0:G.text)?G:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var C,F;return this.quizOptions.length<((F=(C=this.editorInfo)==null?void 0:C.maxQuizOptions)!=null?F:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(C){var F;return(F=C.optionText)==null?void 0:F.trim()})}}});
a_.prototype.updatePlaceholderTexts=a_.prototype.updatePlaceholderTexts;a_.prototype.dataChanged=a_.prototype.dataChanged;_.R([_.L(),_.Y("design:type",Object)],a_.prototype,"editorInfo",void 0);_.R([_.L(),_.Y("design:type",Array)],a_.prototype,"quizOptions",void 0);_.R([_.L(),_.Y("design:type",Object)],a_.prototype,"explanationPlaceholderText",void 0);_.R([_.bP(".option-selector-button"),_.Y("design:type",Array)],a_.prototype,"optionSelectors",void 0);
_.R([_.zp("editorInfo"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],a_.prototype,"dataChanged",null);_.R([_.M("editorInfo","isAllowedToAddOption","quizOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],a_.prototype,"addAnswerButton",null);_.R([_.M("editorInfo","quizOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],a_.prototype,"isAllowedToAddOption",null);
_.R([_.zp("quizOptions"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],a_.prototype,"updatePlaceholderTexts",null);_.R([_.M("quizOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],a_.prototype,"hasCustomOptionText",null);_.R([_.e({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],a_);
_.q(a_,"ytd-backstage-quiz-editor-renderer",function(){if(v$E!==void 0)return v$E;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-checked="[[item.isCorrect]]" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" role="radio" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return v$E=C},{mode:2});var f$2;var hrS=(C3.FIRSTDAYOFWEEK+1)%7;var cou;var AoP=[],eru=0,dNE=0;eru=0;dNE=24;if(.25*(dNE-eru)<0)cou=[];else{for(var xNP=eru;xNP<dNE;xNP+=.25)AoP.push(xNP);cou=AoP}var sVu=cou.map(function(C){C=C*60*60;return{secondsSinceMidnight:C,text:(new A4(7)).format(new Date(0,0,0,0,0,C))}});var qlE;var kF=function(){var C=_.B.apply(this,arguments)||this;C.skipNextOpenDialog=!1;C.errorMessage="";C.previousMonthLabel=_.iQ("PREVIOUS_MONTH_LABEL");C.nextMonthLabel=_.iQ("NEXT_MONTH_LABEL");return C};
_.O(kF,_.B);_.n=kF.prototype;_.n.attached=function(){var C=this,F=new MutationObserver(function(){C.JSC$15845_calendarMain.scrollHeight>0&&(F.disconnect(),C.calendarConfig&&C.calendarConfig.selectedDate&&C.scrollToDate())});
F.observe(this.JSC$15845_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){F.disconnect()},1E3)};
_.n.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.n.onDateTextChange=function(){if(this.calendarConfig){var C=this.validateDateText();C.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(C.details)):this.textbox.setAttribute("invalid","")}};
_.n.handleDayClick=function(C){C.model.day.date&&(this.commitDate(C.model.day.date),this.dialog.close())};
_.n.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var C=$$i(this.calendarConfig.selectedDate,this.renderData);C!==void 0&&this.JSC$15845_calendarMain.scrollToIndex(C)}};
_.n.scrollToNextMonth=function(){this.JSC$15845_calendarMain.scrollToIndex(this.JSC$15845_calendarMain.firstVisibleIndex+1)};
_.n.scrollToPrevMonth=function(){this.JSC$15845_calendarMain.firstVisibleIndex===0&&this.JSC$15845_calendarMain.scrollTo(0,0);this.JSC$15845_calendarMain.scrollToIndex(this.JSC$15845_calendarMain.firstVisibleIndex-1)};
_.n.onFormSubmit=function(C){C.preventDefault();this.calendarConfig&&(C=this.validateDateText(),C.isValid&&(this.commitDate(C.details),this.dialog.close()))};
_.n.onEscOrClickingOutside=function(C){C=C.detail.path&&!!C.detail.path.length&&C.detail.path[0];if(C.classList.contains("ytd-calendar-date-picker")){C===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var F=0;F<this.dropdownButton.children.length;F++)this.dropdownButton.children[F]===C&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}C=this.textbox.value!==this.dateText;F=this.validateDateText();C&&F.isValid&&this.commitDate(F.details);this.dialog.close();this.textbox.value=
this.dateText};
_.n.commitDate=function(C){this.calendarConfig&&(this.set("calendarConfig.selectedDate",C),_.oo(this.hostElement,"ytd-calendar-date-selected",C))};
_.n.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var C=this.textbox.value;var F=new Date;C=(new XGq(2)).parse(C,F,{validate:!0})===C.length?i8q(F):void 0;if(!C)return this.errorMessage=_.iQ("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};F=this.calendarConfig.start;var G=this.calendarConfig.end;if(CUi(C,F))return this.errorMessage=_.iQ("ENTER_DATE_OR_LATER",{allowed_date:VcA(F)}),{isValid:!1,details:void 0};if(CUi(G,C))return this.errorMessage=
_.iQ("ENTER_DATE_OR_EARLIER",{allowed_date:VcA(G)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:C}};
_.I6.Object.defineProperties(kF.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?VcA(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var C=this.calendarConfig,F=[],G=0;G<7;G++)F.push(C3.NARROWWEEKDAYS[(G+hrS)%7]);G=[];for(var V=new Date(C.start.year,C.start.month);V.getFullYear()<C.end.year||V.getFullYear()===C.end.year&&V.getMonth()<=C.end.month;){var J=G,b=J.push,z=V.getFullYear(),Q=V.getMonth(),E=C,t=void 0,k=[],U=Object.freeze({extraCssClass:"invisible",debugClass:""}),H=new Date(z,Q),l=i8q(H);H=H.getDay();for(var N=i8q(new Date);l.month===
Q;){H!==hrS&&t||(t=Array.from({length:7}).fill(U),k.push(t));var S={date:{year:z,month:Q,day:l.day},extraCssClass:"",debugClass:""};E.selectedDate&&S.date&&mtZ(S.date,E.selectedDate)&&(S.extraCssClass+=" selected");if(CUi(l,E.start)||CUi(E.end,l))S.extraCssClass+=" disabled";mtZ(l,N)&&(S.extraCssClass+=" today");S.extraCssClass=S.extraCssClass.trim();t[(H-hrS+7)%7]=S;l=FXi(l);H=(H+1)%7}b.call(J,{weeks:k,monthLabel:C3.SHORTMONTHS[Q]+" "+z,year:z,month:Q,monthLabelExtraCssClass:k[0][2]===U?"shift-down-label":
""});V.setMonth(V.getMonth()+1)}return{months:G,daysOfWeekLabel:F}}}}});
kF.prototype.onEscOrClickingOutside=kF.prototype.onEscOrClickingOutside;kF.prototype.scrollToDate=kF.prototype.scrollToDate;_.R([_.L(),_.Y("design:type",Object)],kF.prototype,"calendarConfig",void 0);_.R([_.L(),_.Y("design:type",Object)],kF.prototype,"skipNextOpenDialog",void 0);_.R([_.L(),_.Y("design:type",Object)],kF.prototype,"errorMessage",void 0);_.R([_.L(),_.Y("design:type",Object)],kF.prototype,"previousMonthLabel",void 0);
_.R([_.L(),_.Y("design:type",Object)],kF.prototype,"nextMonthLabel",void 0);_.R([_.$z("#textbox"),_.Y("design:type",HTMLInputElement)],kF.prototype,"textbox",void 0);_.R([_.$z("#calendar-dialog"),_.Y("design:type",Object)],kF.prototype,"dialog",void 0);_.R([_.$z("#calendar-main"),_.Y("design:type",Object)],kF.prototype,"JSC$15845_calendarMain",void 0);_.R([_.$z("#date-picker"),_.Y("design:type",HTMLElement)],kF.prototype,"dropdownButton",void 0);
_.R([_.M("calendarConfig.selectedDate"),_.Y("design:type",String),_.Y("design:paramtypes",[])],kF.prototype,"dateText",null);_.R([_.M("calendarConfig","calendarConfig.selectedDate"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],kF.prototype,"renderData",null);_.R([_.iP("renderData","calendarConfig.selectedDate"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kF.prototype,"scrollToDate",null);
_.R([_.VG("iron-overlay-canceled"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],kF.prototype,"onEscOrClickingOutside",null);_.R([_.Z5({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],kF);
_.q(kF,"ytd-calendar-date-picker",function(){if(qlE!==void 0)return qlE;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" label="[[previousMonthLabel]]" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" label="[[nextMonthLabel]]" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return qlE=C},{mode:2});var PIl=_.iQ("UTC_OFFSET_FORMAT",{utc_offset:(new A4("Z")).format(new Date)}),g$$=(new Date).getTimezoneOffset()*-60,RrO=new Date,Ylm,THu=cY(RrO.getTimezoneOffset());Ylm=AM8(dGP(THu,RrO));var o$G=_.iQ("LOCAL_TIME_GMT_LABEL",{gmt_text:Ylm.replace("+0","+").replace("-0","-").replace(":00","")}),UC=function(){var C=_.B.apply(this,arguments)||this;C.selectedTimeIndex=0;C.selectedTimezoneIndex=0;C.timeOfDayOptions=sVu;return C};
_.O(UC,_.B);_.n=UC.prototype;_.n.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.n.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var C=GK9();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=C,this.selectedTimeIndex=0;else{var F=JfE(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},C,{selectedDate:F.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(G){return G.secondsSinceMidnight===F.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.n.onDatePicked=function(C){this.selectedDate=C.detail};
_.n.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.oo(this.hostElement,"ytd-date-time-selection-cancelled")};
_.n.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var C=this.selectedDate;C=new Date(C.year,C.month,C.day);_.oo(this.hostElement,"ytd-date-time-selection-update",Math.floor(C.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+C.getTimezoneOffset()*60))}};
_.n.getTimezoneFormat=function(C){return C.localizedDisplayText?C.localizedDisplayText:_.iQ("TIMEZONE_FORMAT",{utc_offset_text:""+C.localizedUtcOffset,city_name:""+C.localizedName})};
_.n.updateSelectedTimeIndexFromBinding=function(C){this.selectedTimeIndex=C.detail.value};
_.n.updateSelectedTimezoneIndexFromBinding=function(C){this.selectedTimezoneIndex=C.detail.value};
_.I6.Object.defineProperties(UC.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var C=this.data.timezoneOptions;var F={name:"Etc/Unknown",localizedName:_.iQ("LOCAL_TIME_LABEL"),localizedUtcOffset:PIl,utcOffsetSec:""+g$$,localizedDisplayText:o$G};C?C.length&&C[0].name!==F.name&&(C[0].localizedDisplayText||(F.localizedDisplayText=""),C.unshift(F)):C=[F];return C}}},
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]}}});
UC.prototype.onDateTimeTimezoneChange=UC.prototype.onDateTimeTimezoneChange;UC.prototype.onDatePicked=UC.prototype.onDatePicked;UC.prototype.updateDefaultSelectedValue=UC.prototype.updateDefaultSelectedValue;_.R([_.L(),_.Y("design:type",Object)],UC.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],UC.prototype,"calendarConfig",void 0);_.R([_.L(),_.Y("design:type",Object)],UC.prototype,"selectedDate",void 0);_.R([_.L(),_.Y("design:type",Object)],UC.prototype,"selectedTimeIndex",void 0);
_.R([_.L(),_.Y("design:type",Object)],UC.prototype,"selectedTimezoneIndex",void 0);_.R([_.$z("#time-listbox"),_.Y("design:type",Object)],UC.prototype,"timeListBox",void 0);_.R([_.$z("#timezone-listbox"),_.Y("design:type",Object)],UC.prototype,"timezoneListBox",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],UC.prototype,"rendererStamperBehavior",void 0);_.R([_.M("data.timezoneOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],UC.prototype,"timeZones",null);
_.R([_.zp("data","timeZones"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],UC.prototype,"updateDefaultSelectedValue",null);_.R([_.M("selectedTimezoneIndex","timeZones"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],UC.prototype,"selectedTimezone",null);_.R([_.M("selectedTimeIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],UC.prototype,"selectedTime",null);
_.R([_.VG("ytd-calendar-date-selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],UC.prototype,"onDatePicked",null);_.R([_.iP("selectedTimezone","selectedTime","selectedDate"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],UC.prototype,"onDateTimeTimezoneChange",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],UC);
_.q(UC,"ytd-date-time-picker-renderer",function(){if(f$2!==void 0)return f$2;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return f$2=C},{mode:1});var ro2;var HX=function(){var C=_.B.apply(this,arguments)||this;C.boundOnTapDismissButton=function(){C.dismissTapHandler()};
C.dismissButtonOverrides={size:"XS"};return C};
_.O(HX,_.B);HX.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}}}}}};
HX.prototype.dismissTapHandler=function(){_.oo(this.hostElement,"yt-backstage-attachment-dismissed")};
HX.prototype.computeAttachmentType=function(C){return C?C.backstageImageRenderer?"image":C.videoRenderer?"video":"none":"none"};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],HX.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],HX.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],HX.prototype,"attachmentPreview",void 0);_.R([_.L(),_.Y("design:type",Object)],HX.prototype,"dismissButton",void 0);_.R([_.L(),_.Y("design:type",Object)],HX.prototype,"boundOnTapDismissButton",void 0);
_.R([_.L(),_.Y("design:type",Object)],HX.prototype,"dismissButtonOverrides",void 0);_.R([_.L({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.Y("design:type",String)],HX.prototype,"attachmentType",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],HX);
_.q(HX,"ytd-backstage-dismissable-attachment",function(){if(ro2!==void 0)return ro2;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return ro2=C},{mode:1});var KJ8;var lf=function(){var C=_.B.apply(this,arguments)||this;C.selectedVideoId=void 0;C.picker=void 0;C.dismissButtonOverrides={size:"XS"};C.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return C};
_.O(lf,_.B);_.n=lf.prototype;_.n.onServiceRequestCompleted=function(C){C.stopPropagation()};
_.n.handleAddVideoPreviewAction=function(C){C=this.get("addVideoPreviewAction",C);this.onGetVideoPreviewSuccess(C)};
_.n.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}}}}}};
_.n.onLaunchVideoPicker=function(C){var F=this,G=_.dd(this.get("addVideoLinkAction.title",C)),V=this.get("addVideoLinkAction.onePickHostId",C);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",C);V&&(this.picker||(G=_.S8o(_.uA9(V).setTitle(G).addView(Oc7()).addView(NRu()),function(J){F.onPickVideo(J)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",C)||G.addView("youtube"),this.picker=G.build()),this.picker.setVisible(!0))};
_.n.onPickVideo=function(C){if(C)if(C.action==="cancel")_.oo(this.hostElement,"yt-video-link-button-cancel");else if(C.action==="picked"){C=C.docs;if(!C||C.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(C=(C==null?0:C.length)?C[0]:void 0)?C.id:void 0;this.setVideoPreview()}};
_.n.setVideoPreview=function(){var C=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){C.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.n.onGetVideoPreviewSuccess=function(C){if(C&&C.videoPreview&&C.cancelButton)this.videoPreview=C.videoPreview,this.cancelButton=C.cancelButton,_.oo(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.n.onGetVideoPreviewError=function(){this.cancel()};
_.n.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.oo(this.hostElement,"yt-video-link-cancel")};
_.n.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
lf.prototype.onServiceRequestCompleted=lf.prototype.onServiceRequestCompleted;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],lf.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],lf.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],lf.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],lf.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],lf.prototype,"videoPreview",void 0);_.R([_.L(),_.Y("design:type",Object)],lf.prototype,"cancelButton",void 0);_.R([_.L(),_.Y("design:type",Object)],lf.prototype,"getVideoPreviewCommand",void 0);_.R([_.L(),_.Y("design:type",Object)],lf.prototype,"dismissButtonOverrides",void 0);
_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],lf.prototype,"onServiceRequestCompleted",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],lf);
_.q(lf,"ytd-backstage-video-link-attachment",function(){if(KJ8!==void 0)return KJ8;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return KJ8=C},{mode:1});var DNu;var pUr;var mN2;var yM=function(){return _.B.apply(this,arguments)||this};
_.O(yM,_.B);yM.prototype.dataChanged=function(){this.active=!1};
yM.prototype.onTap=function(){_.oo(this.hostElement,"yt-select-emoji-suggestion",this.data)};
yM.prototype.identity=function(C){return C};
_.I6.Object.defineProperties(yM.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var C,F,G,V;if((C=this.data)==null?0:(F=C.image)==null?0:(G=F.thumbnails)==null?0:(V=G[0])==null?0:V.url)return C=this.data.image.thumbnails[0].url,C.startsWith("data:image/svg+xml")?ch(C):_.Ph(C)}}});
yM.prototype.dataChanged=yM.prototype.dataChanged;_.R([_.L(),_.Y("design:type",Object)],yM.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],yM.prototype,"active",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yM.prototype,"dataChanged",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yM.prototype,"imageSrc",null);
_.R([_.e({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],yM);
_.q(yM,"ytd-emoji-suggestion",function(){if(mN2!==void 0)return mN2;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return mN2=C},{mode:1});var Cyu=/.*([:@#].*?)$/,Zj=function(){var C=_.B.apply(this,arguments)||this;C.suggestions=[];C.suggestionIndex=-1;C.JSC$15873_lastSuggestionRange=null;return C};
_.O(Zj,_.B);_.n=Zj.prototype;_.n.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.n.getSuggestions=function(C){var F=[],G=X7$(this.emojiManager,C.substr(0,3));if(G)for(var V in G)if(V.toLocaleLowerCase().indexOf(C)===0){var J=G[V];if(J&&J.emojiId){J=pJ(this.emojiManager,J.emojiId);var b=void 0,z=void 0,Q=void 0,E=void 0,t=((b=J)==null?0:b.isCustomEmoji)?(z=J)==null?void 0:(Q=z.shortcuts)==null?void 0:Q[0]:(E=J)==null?void 0:E.emojiId;b=void 0;F.push({suggestion:{image:(b=J)==null?void 0:b.image,alt:t,text:V}});if(F.length>=64)break}}return F?F.sort(function(k,U){return U.suggestion.text<
k.suggestion.text?-1:U.suggestion.text===k.suggestion.text?0:1}):null};
_.n.insertSuggestion=function(C){_.oo(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15873_lastSuggestionRange,text:C.alt});this.dropdown.opened=!1};
_.n.updateSuggestionsAtCaret=function(C){this.updateSuggestions(C,this.retrieveTextBeforeRange(C))};
_.n.offsetStartOfRangeBy=function(C,F){C.startOffset>=F&&C.setStart(C.startContainer,C.startOffset-F)};
_.n.updateSuggestions=function(C,F){var G=this;this.JSC$15873_lastSuggestionRange&&(this.JSC$15873_lastSuggestionRange.detach(),this.JSC$15873_lastSuggestionRange=null);if((F=Cyu.exec(F))&&F.length&&(F=F[F.length-1].toLocaleLowerCase(),F.length>2||F===":_")&&(this.offsetStartOfRangeBy(C,F.length),this.JSC$15873_lastSuggestionRange=C,(C=this.getSuggestions(F))&&C.length)){this.suggestions=C;_.zH(this,function(){G.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(C.length-1);return}this.dropdown.opened=!1};
_.n.onKeyDown=function(C){if(this.dropdown.opened)switch(C.key){case "Escape":this.dropdown.opened=!1;C.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);C.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);C.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),C.preventDefault()}};
_.n.onKeyUp=function(C,F){switch(C.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(F);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(F)}};
_.n.onKeyPress=function(C){C.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),C.preventDefault())};
_.n.changeSuggestionIndex=function(C){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(C+this.suggestions.length)%this.suggestions.length,C=this.dropdownContent.children[this.suggestionIndex],C.active=!0,this.dropdownContent.scrollTop=C.offsetTop)};
_.n.retrieveTextBeforeRange=function(C){var F=C.startContainer;return F&&F.nodeType===Node.TEXT_NODE?F.textContent.substr(0,C.startOffset):""};
Zj.prototype.onKeyPress=Zj.prototype.onKeyPress;Zj.prototype.onKeyUp=Zj.prototype.onKeyUp;Zj.prototype.onKeyDown=Zj.prototype.onKeyDown;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Zj.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Array)],Zj.prototype,"suggestions",void 0);_.R([_.L(),_.Y("design:type",_.KJ)],Zj.prototype,"emojiManager",void 0);_.R([_.L(),_.Y("design:type",Number)],Zj.prototype,"verticalSuggestionsOffset",void 0);
_.R([_.$z("#dropdown"),_.Y("design:type",Object)],Zj.prototype,"dropdown",void 0);_.R([_.$z("#dropdown-content"),_.Y("design:type",HTMLDivElement)],Zj.prototype,"dropdownContent",void 0);_.R([_.VG("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],Zj.prototype,"onKeyDown",null);_.R([_.VG("keyup"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent,Range]),_.Y("design:returntype")],Zj.prototype,"onKeyUp",null);
_.R([_.VG("keypress"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],Zj.prototype,"onKeyPress",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-emoji-input"})],Zj);
_.q(Zj,"ytd-emoji-input",function(){if(pUr!==void 0)return pUr;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return pUr=C},{mode:2});var jgE;var Nn=function(){var C=_.B.apply(this,arguments)||this;C.hasMaxOptions=!1;return C};
_.O(Nn,_.B);_.n=Nn.prototype;_.n.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.n.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.n.setPrefilledChoices=function(C){var F=this;this.set("pollOptions",[]);var G;for(G=0;G<Math.min(C.length,this.data.maxPollOptions);G++)this.push("pollOptions",C[G].substring(0,this.data.maxPollOptionChars));for(;G<this.data.minPollOptions;G++)this.push("pollOptions","");this.hasMaxOptions=G>=this.data.maxPollOptions;_.zH(this,function(){for(var V=F.pollOptions,J=_.ot(F.hostElement).querySelectorAll(".poll-option-input"),b=0;b<J.length;b++)J[b].value=V[b]})};
_.n.focusChanged=function(){_.jr(this.hostElement)};
_.n.onInput=function(){var C=this;_.Bb(this,"onInput",function(){C.isValid()?_.oo(C.hostElement,"yt-commentbox-post-enable"):_.oo(C.hostElement,"yt-commentbox-post-disable")},300)};
_.n.setPollOptions=function(){var C=[],F,G=((F=this.data)==null?0:F.minPollOptions)?this.data.minPollOptions:0;for(F=0;F<G;F++)C.push("");return C};
_.n.addPollOption=function(){var C=this;_.oo(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.gT.addLowPriorityJob(function(){var F;(F=_.ot(C.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||F.focus()})};
_.n.onRemovePollOption=function(C){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.oo(this.hostElement,"yt-poll-attachment-dismiss")):(C=this.repeat.indexForElement(C.target.parentNode),C!==null&&(this.splice("pollOptions",C,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.oo(this.hostElement,"yt-commentbox-post-enable"))))};
_.n.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.n.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var C=0,F=this.pollOptions.length;C<F;C++)if(this.pollOptions[C].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.n.getPollOptions=function(){return this.pollOptions};
_.n.setPollOptionsFromInputs=function(){for(var C=_.ot(this.hostElement).querySelectorAll(".poll-option-input"),F=0;F<C.length;F++)this.pollOptions[F]=C[F].value.trim()};
_.n.clearPollOptions=function(){var C=_.ot(this.hostElement).querySelectorAll(".poll-option-input");C=_.u(C);for(var F=C.next();!F.done;F=C.next())F.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.n.getSimpleString=function(C){return _.dd(C)};
_.n.updateValueFromBinding=function(C){if(C.target&&this.pollOptions){var F=Array.from(_.ot(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(C.target);if(F>=0){var G;this.pollOptions[F]=(G=C.detail.value)!=null?G:"";this.notifyPath("pollOptions."+F)}}};
Nn.prototype.dataChanged=Nn.prototype.dataChanged;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Nn.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Nn.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Array)],Nn.prototype,"pollOptions",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Nn.prototype,"hasMaxOptions",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Nn.prototype,"enableCreationBox",void 0);
_.R([_.$z("#repeat"),_.Y("design:type",UA)],Nn.prototype,"repeat",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Nn.prototype,"dataChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-poll-attachment"})],Nn);
_.q(Nn,"ytd-poll-attachment",function(){if(jgE!==void 0)return jgE;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return jgE=C},{mode:2});var Fjr;var Gdu;var Vx7;var i07;var OC=function(){return _.B.apply(this,arguments)||this};
_.O(OC,_.B);_.I6.Object.defineProperties(OC.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],OC.prototype,"rendererBehaviors",void 0);_.R([_.L(),_.Y("design:type",Object)],OC.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],OC.prototype,"focused",void 0);_.R([_.L({reflectToAttribute:!0}),_.M("focused"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],OC.prototype,"ariaSelected",null);_.R([_.Z5({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],OC);
_.q(OC,"yt-user-mention-suggestion-renderer",function(){if(i07===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;Vx7===void 0&&(Vx7=document.createElement("template"));var V=Vx7;G.call(F,V.content.cloneNode(!0),C.content.firstChild);i07=C}C=i07;return C},{mode:2});var J1u;var $p8;var XH=function(){var C=_.B.apply(this,arguments)||this;C.focusedSuggestionIndex=-1;return C};
_.O(XH,_.B);_.n=XH.prototype;_.n.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.n.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.n.setFocusedSuggestionIndex=function(C){!this.data||!this.data.suggestions||C<0||C>=this.data.suggestions.length||(this.focusedSuggestionIndex=C,C=this.getSuggestionId(C),this._setFocusedSuggestionId(C))};
_.n.advanceSuggestion=function(C){this.focusedSuggestionIndex===-1||C!==-1&&C!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+C),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.n.ensureSuggestionVisible=function(C){C=this.getSuggestionId(C);C=_.ot(this.hostElement).querySelector("[id="+C+"]");C!=null&&(C.offsetTop<this.hostElement.scrollTop?C.scrollIntoView(!0):C.offsetTop+C.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&C.scrollIntoView(!1))};
_.n.getSuggestionId=function(C){return"user-mention-suggestion-"+C};
_.n.onSuggestionTap=function(C){var F=_.Z(C.model.item,xjr);this.ytRendererBehavior.logExplicitClick(F);_.oo(this.hostElement,"yt-user-mention-suggestion-selected",{data:F,index:C.model.index})};
_.n.onSuggestionMouseMove=function(C){C.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(C.model.index)};
_.n.isSuggestionFocused=function(C,F){return C===F};
_.n.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.n.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G6("focused-suggestion-id-changed",this.focusedSuggestionId))};
XH.prototype.focusedSuggestionIdChangedForBinding=XH.prototype.focusedSuggestionIdChangedForBinding;XH.prototype.onDomChange=XH.prototype.onDomChange;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],XH.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],XH.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],XH.prototype,"focusedSuggestionIndex",void 0);_.R([_.L({readOnly:!0}),_.Y("design:type",String)],XH.prototype,"focusedSuggestionId",void 0);
_.R([_.VG("dom-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],XH.prototype,"onDomChange",null);_.R([_.iP("focusedSuggestionId"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],XH.prototype,"focusedSuggestionIdChangedForBinding",null);_.R([_.Z5({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],XH);
_.q(XH,"yt-user-mention-suggestions-dropdown",function(){if($p8===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;J1u===void 0&&(J1u=document.createElement("template"));var V=J1u;G.call(F,V.content.cloneNode(!0),C.content.firstChild);$p8=C}C=$p8;return C},{mode:2});var w4=function(){var C=_.B.apply(this,arguments)||this;C.suggestionsResponse=null;C.activeMention=null;C.selectionChangeListener=C.onSelectionChange.bind(C);C.handlesEnabled=_.y("enable_handles_in_mention_suggest_posts");C.handlesInMentionSuggestionsEnabled=_.y("handles_in_mention_suggest_posts");C.zeroPrefixMentionSuggestionEnabled=_.y("enable_zero_prefix_mention_suggestion_web");C.pendingQuery=null;C.flowNonce=null;return C};
_.O(w4,_.B);_.n=w4.prototype;_.n.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.n.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.n.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.n.hasSuggestions=function(C){return!!(C&&C.suggestions&&C.suggestions.length>0)};
_.n.onInput=function(){var C=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var F=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),G=this.activeMention.JSC$11350_getText().slice(-1)===" ",V=this.activeMention.JSC$11350_getText().slice(-2,-1)===" ",J="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11350_getText().slice(-2,
-1))>=0;J=this.zeroPrefixMentionSuggestionEnabled&&J;if(this.activeMention.isCollapsed()||(F||V||J)&&G)this.cancelActiveMention();else{var b=this.activeMention.JSC$11350_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.Bb(this,"requestSuggestions",function(){C.requestSuggestions(b)},100)}}}};
_.n.onServiceRequestSent=function(C){C.stopPropagation()};
_.n.onServiceRequestCompleted=function(C){C.stopPropagation();C=C.detail.data;C.query&&(!this.pendingQuery||this.pendingQuery!==C.query)||!this.zeroPrefixMentionSuggestionEnabled&&C.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=C,this.hasSuggestions(C)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.n.onServiceRequestError=function(C){C.stopPropagation()};
_.n.onUserMentionSuggestionSelected=function(C){this.selectSuggestion(C.detail.data,C.detail.index)};
_.n.onSelectionChange=function(){if(this.activeMention){var C=_.rv(),F=this.activeMention.JSC$11350_containsRange(C);C=C&&this.containsHelper(this.dropdown,C.getContainer());F||C||this.cancelActiveMention()}};
_.n.containsHelper=function(C,F){var G;if(((G=window.ShadyDOM)==null?void 0:G.noPatch)===!0)return C.contains(F);for(;F;){if(F===C)return!0;F=F instanceof ShadowRoot?F.host:F.parentNode}return!1};
_.n.maybeStartSuggest=function(){var C=_.rv();if(C&&C.isCollapsed()){var F=C.JSC$11350_getStartNode(),G=C.JSC$11350_getStartOffset();if(F instanceof Text&&!(G<1)){var V=F.textContent;!(V=V&&V.charAt(G-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(V)<0||(this.activeMention=_.qi(F,G-1,C.JSC$11350_getEndNode(),C.JSC$11350_getEndOffset()),this.flowNonce=U5(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.n.updateActiveMention=function(){if(this.activeMention){var C=_.rv();C&&C.isCollapsed()&&(this.activeMention=_.qi(this.activeMention.JSC$11350_getStartNode(),this.activeMention.JSC$11350_getStartOffset(),C.JSC$11350_getEndNode(),C.JSC$11350_getEndOffset()))}};
_.n.requestSuggestions=function(C){if(this.activeMention){var F={suggestions_query:C};this.pendingQuery=C;_.DQ(this.hostElement,[this.suggestionsEndpoint,F])}};
_.n.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()};
_.n.focusPreviousSuggestion=function(C){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),C.preventDefault())};
_.n.focusNextSuggestion=function(C){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),C.preventDefault())};
_.n.selectFocusedSuggestion=function(C){if(this.hasSuggestions(this.suggestionsResponse)){var F=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.Z(F,xjr)&&(this.selectSuggestion(_.Z(F,xjr),this.dropdown.focusedSuggestionIndex),C.preventDefault())}};
_.n.selectSuggestion=function(C,F){if(C){var G=this.activeMention;if(G){var V=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&C.handle?_.BN(V,"\u00a0\u2068@"+C.handle+"\u2069\u00a0"):this.handlesEnabled?_.BN(V,"\u00a0"+C.displayName+"\u00a0"):_.BN(V,"\u00a0@"+C.displayName+"\u00a0");TB(V,"/channel/"+C.channelId);V.classList.add("yt-formatted-string","yt-simple-endpoint");V.setAttribute("spellcheck","false");G.isCollapsed()||G.JSC$11350_removeContents();G.insertNode(V,!0);C=document.createTextNode(" ");
V.parentNode.insertBefore(C,V.nextSibling);window.getSelection().collapse(C,1);F={suggestionSelected:{suggestionIndex:F}};if(this.zeroPrefixMentionSuggestionEnabled){var J;F.suggestionSelected.isZeroPrefix=((J=this.suggestionsResponse)==null?void 0:J.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",F);this.cancelActiveMention();_.oo(this.hostElement,"yt-mention-inserted")}}};
_.n.getPositionTarget=function(C){return C&&C.getBrowserRangeObject()};
_.n.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.n.onFocusedSuggestionIdChanged=function(C){var F=_.Heq(this.hostElement)[0];F&&(C.detail.value?F.setAttribute("aria-activedescendant",C.detail.value):F.removeAttribute("aria-activedescendant"))};
_.n.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.n.logGELEvent=function(C,F){C={eventType:C,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};F&&(C=Object.assign(C,F));_.q1("userMentionAutoCompleteBoxEvent",C)};
w4.prototype.onDomChange=w4.prototype.onDomChange;w4.prototype.onUserMentionSuggestionSelected=w4.prototype.onUserMentionSuggestionSelected;w4.prototype.onServiceRequestError=w4.prototype.onServiceRequestError;w4.prototype.onServiceRequestCompleted=w4.prototype.onServiceRequestCompleted;w4.prototype.onServiceRequestSent=w4.prototype.onServiceRequestSent;w4.prototype.onInput=w4.prototype.onInput;_.R([_.w(_.wg),_.Y("design:type",Object)],w4.prototype,"ironA11yKeysBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],w4.prototype,"suggestionsEndpoint",void 0);_.R([_.L(),_.Y("design:type",Object)],w4.prototype,"suggestionsResponse",void 0);_.R([_.L(),_.Y("design:type",Object)],w4.prototype,"activeMention",void 0);_.R([_.$z("#dropdown"),_.Y("design:type",Object)],w4.prototype,"dropdown",void 0);_.R([_.$z("#iron-dropdown"),_.Y("design:type",Object)],w4.prototype,"ironDropdown",void 0);
_.R([_.VG("input"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],w4.prototype,"onInput",null);_.R([_.VG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],w4.prototype,"onServiceRequestSent",null);_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],w4.prototype,"onServiceRequestCompleted",null);
_.R([_.VG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],w4.prototype,"onServiceRequestError",null);_.R([_.VG("yt-user-mention-suggestion-selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],w4.prototype,"onUserMentionSuggestionSelected",null);
_.R([_.VG("dom-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],w4.prototype,"onDomChange",null);_.R([_.Z5({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],w4);
_.q(w4,"yt-user-mention-autosuggest-input",function(){if(Gdu===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;Fjr===void 0&&(Fjr=document.createElement("template"));var V=Fjr;G.call(F,V.content.cloneNode(!0),C.content.firstChild);Gdu=C}C=Gdu;return C},{mode:2});var Mn=null;
_.kz({is:"ytd-commentbox",_template:function(){if(DNu!==void 0)return DNu;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="EXPAND" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return DNu=C},
behaviors:[_.pXI.YtHostElementBehavior,_.wg,_.Z7.YtActionHandlerBehavior,_.Ys.YtComponentBehavior,_.nJ.YtRendererstamperBehavior,_.Rzm.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(C,F){return _.jN(C.entities,"aadcGuidelinesStateEntityPayload",F)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(C,F){return _.jN(C.entities,"commentboxStateEntity",F)},
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 _.mP}},
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:_.y("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.y("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",_.Gp(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(C){this.fire(C?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(C){this.set("submitButtonDisabled",void 0);this.clear();C&&this.computeIsEmojiButtonDisplayed_(C)&&(C=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&C.updateEmojiCategories()},
observePrefilledImage_:function(C,F,G){this.isValidPrefilledImage_(C,F,G)&&(this.prefilledAttachment_="image",this.prefilledImageData_=F,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(C,F){this.isValidPrefilledVideo_(C,F)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(C){C&&C.pollData&&C.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(C.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.a4();this.focus()},
detached:function(){document.removeEventListener("tap",_.Gp(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(C){C=C.detail;C=C.isCustomEmoji?C.shortcuts[0]:C.emojiId;var F=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(F,C);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var C=_.rv();if(C){C=C.getBrowserRangeObject();for(var F=C.commonAncestorContainer;F;){if(F===this.getEditableTextArea_())return C;F=F.parentNode}}C=this.getEditableTextArea_();C=_.sz(C,C.childNodes.length);C.select();return C.getBrowserRangeObject()},
insertTextWithEmojis_:function(C,F,G){(F=this.emojiManager.createDocumentFragment(F,!0,!1,G===void 0?!0:G))&&F.childNodes.length!==0&&(C.collapsed||C.deleteContents(),G=F.lastChild,C.insertNode(F),_.Vno(G).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var C=_.rv();if(C){var F=C.JSC$11350_getStartNode(),G=C.JSC$11350_getEndNode();if(b8E(F)&&b8E(G)){var V=C.JSC$11350_getStartOffset(),J;if(_.m4&&F.nodeType===Node.ELEMENT_NODE&&(J=_.VyG(F)))_.sz(J,0).select();else{J=Yb(F)?F:_.Yf(F,Yb);var b=Yb(G)?G:_.Yf(G,Yb);if(J||b)if(C.isCollapsed()){if(F.nodeType===Node.TEXT_NODE){C=!0;V===F.length&&(C=!1);if(Mn==="end"||Mn==="right")C=!1;F=F.parentNode;C=[].concat(_.da(F.parentNode.childNodes)).indexOf(F)+(C?0:1);_.sz(F.parentNode,
C).select()}}else J?J.previousSibling&&J.previousSibling.length>0?_.qi(G,C.JSC$11350_getEndOffset(),J.previousSibling,J.previousSibling.length-1).select():(F=document.createTextNode("\u200b"),J.parentNode.insertBefore(F,J),_.qi(G,C.JSC$11350_getEndOffset(),F,0).select()):b&&(b.nextSibling&&b.nextSibling.length>0?_.qi(F,C.JSC$11350_getStartOffset(),b.nextSibling,1).select():(G=document.createTextNode("\u200b"),b.parentNode.insertBefore(G,b.nextSibling),_.qi(F,C.JSC$11350_getStartOffset(),G,G.length).select()));
Mn=null}}else Mn=null}else Mn=null},
leftKeyPressed_:function(){Mn="left"},
rightKeyPressed_:function(){Mn="right"},
endKeyPressed_:function(){Mn="end"},
maybeDeleteChip_:function(){var C=EmZ(!0);if(C){var F=_.rv(),G=F.JSC$11350_getStartNode();F=F.JSC$11350_getStartOffset();_.c3(G,F,C,C.childNodes.length).select()}},
maybeBackspaceChip_:function(){var C=EmZ(!1);if(C){var F=_.rv(),G=F.JSC$11350_getStartNode();F=F.JSC$11350_getStartOffset();_.c3(G,F,C,0).select()}},
maybeBackspaceChipWordMode_:function(C){var F=_.rv();if(F.isCollapsed()){var G=F.JSC$11350_getStartNode();F=F.JSC$11350_getStartOffset();var V=WXS(G,F,!0);V&&(_.c3(G,F,V,0).select(),document.execCommand("delete"),C.preventDefault(),C.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(C){var F=_.rv();if(F.isCollapsed()){var G=F.JSC$11350_getStartNode();F=F.JSC$11350_getStartOffset();var V=WXS(G,F,!1);V&&(_.c3(G,F,V,V.childNodes.length).select(),document.execCommand("delete"),C.preventDefault(),C.stopImmediatePropagation())}},
onTap_:function(C){if(!C.defaultPrevented&&(C.currentTarget.tagName==="YTD-COMMENTBOX"&&Yb(C.target)&&C.preventDefault(),this.isEmojiPickerDisplayed)){var F=this.$$("#emojis"),G=this.$$("#emoji-button"),V=this.getEditableTextArea_();if((C=C.path?C.path:C.composedPath&&C.composedPath())&&!C.includes(F)&&!C.includes(V)&&!C.includes(G))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(C,F,G){return C==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&F!==void 0&&F.encryptedBlobId!==null&&F.sourceExternalVideoId!==null&&G!==void 0&&G.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(C,F){return C==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!F&&!!F.videoRenderer&&!!F.videoRenderer.videoId},
isValidPrefilledAttachment_:function(C,F,G){return this.isValidPrefilledImage_(C,F,G)||this.isValidPrefilledVideo_(C,G)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.y("enable_multi_image_post_creation")){var C=this.$$("ytd-backstage-multi-image-select-renderer");C&&C.hasImages()&&C.cancel()}else(C=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&C.cancel();(C=this.$["poll-attachment"])&&this.hasPoll_&&C.clearPollOptions();(C=this.$["image-poll-attachment"])&&this.hasImagePoll_&&C.resetPollOptions();(C=this.$["quiz-attachment"])&&this.hasQuiz_&&C.resetQuizOptions();
(C=this.$["video-link-attachment"])&&this.hasVideo_&&C.cancel();(C=this.$["access-restrictions-selector"].firstElementChild)&&C.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 _.ot(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.ot(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(C,F){C=uzZ(C,this.emojiManager,F).cloneNode(!0);for(F=C.firstChild;F;)if(F.nodeType!==1)F=F.nextSibling;else switch(F.tagName){case "BR":var G=_.OV();_.QRy(G,F);F=G.nextSibling;break;case "DIV":(G=F.lastChild)&&F.nextSibling&&_.SI(_.OV(),G);F.previousSibling&&(F.previousSibling.nodeType===1||F.previousSibling.nodeType===3&&!F.previousSibling.textContent.endsWith("\n"))&&_.ME(_.OV(),F);G&&G.nodeName==="BR"&&_.So(G);G=F;F.hasChildNodes()?(F=F.firstChild,
_.Ii7(G)):(F=F.nextSibling,_.So(G));break;default:F=F.nextSibling}return tcs(C)},
onAddImageError_:function(C){C.stopPropagation();this.errorMessage_=_.eN(C.detail)},
setTextAreaValue_:function(C){C||(C="");var F=this.getEditableFormattedString_();F.text="";this.getEditableTextArea_().innerText="";typeof C==="string"&&(C={runs:[{text:C}]});F.text=C},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Mn=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var C=this.getEditableTextArea_();C&&(_.sz(C,C.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.TF("HTML_DIR")==="rtl"){var C=this.getEditableTextArea_(),F=this.getTextAreaValue()!==""?"auto":"rtl";C.setAttribute("dir",F)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var C;return CJs((C=this.$["quiz-attachment"])==null?void 0:C.getExplanationText())||CJs(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var C=null;if(this.isEmojiButtonDisplayed){var F=this.getInputRange_();F&&(C=this.emojiInput.retrieveTextBeforeRange(F))}this.insertText_(C,!0);this.updateCharCount_();this.setSubmitButton_();C=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=C.scrollHeight>C.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var C=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:C})},
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(C){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(C)},
onPasteEmoji_:function(C){C.preventDefault();C.stopImmediatePropagation();C=C.clipboardData.getData("text/plain");this.insertText_(C,!1,!1)},
insertText_:function(C,F,G){F=F===void 0?!1:F;G=G===void 0?!0:G;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&C){var V=this.getInputRange_().cloneRange();this.emojiManager&&V&&(F&&this.emojiInput.offsetStartOfRangeBy(V,C.length),this.insertTextWithEmojis_(V,C,G),nmS(this.getEditableTextArea_().lastChild)||(V=this.getInputRange_().cloneRange()),V&&(this.emojiInput.updateSuggestions(V,C),this.updateSuggestionOffset_(V)))}},
setSubmitButton_:function(){if(this.data){var C=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",F=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(C||F){var G=this.getTextAreaValue().trim();F=G===this.previousText_;G=!G||this.aboveCharLimit_;C&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(G=this.aboveCharLimit_);this.submitButtonDisabled=
F||G||!this.getTextLength();C&&_.y("enable_post_scheduling")&&(this.submitButtonDisabled=F&&!this.scheduledPublishTimeSec_||G)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.dd,computeCreationBoxClass_:function(C){return C?"focused":"not-focused"},
computeFooterMessageClass_:function(C,F){return F?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(C,F){return F?F:C},
computeFooterMessageHidden_:function(C,F){return!F&&!C},
computePlaceholderText_:function(C,F,G){return(G==="video"||G==="image")&&(C==null?0:C.prefilledPlaceholderText)?C==null?void 0:C.prefilledPlaceholderText:F==="poll"||F==="image-poll"?C==null?void 0:C.pollPostPlaceholderText:F==="quiz"?C==null?void 0:C.quizPostPlaceholderText:F==="image"?C==null?void 0:C.imagePostPlaceholderText:C==null?void 0:C.placeholderText},
computeHideAttachmentButtons_:function(C,F,G,V){return C===void 0?!1:V&&this.getSimpleString(V)===this.getSimpleString(C.rateLimitErrorMessage)?!0:F!=="none"||G!=="none"||!C.videoLinkButton&&!C.pollButton&&!C.imagePollButton&&!C.quizButton&&!C.imageButton},
computeHideDismissableAttachment_:function(C){return C!=="image"&&C!=="video"},
computeHasVideo_:function(C){return C==="video"},
computeHasImage_:function(C){return C==="image"},
computeHasPoll_:function(C){return C==="poll"},
computeHasImagePoll_:function(C){return C==="image-poll"},
computeHasQuiz_:function(C){return C==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(C){return C&&C.backstageAttachment?C.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!C.backstageAttachment.quizRenderer&&!C.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(C){if(this.isValidPrefilledAttachment_(C.purpose,C.prefilledImageData,C.backstageAttachment))return C.backstageAttachment},
computeEditAttachment_:function(C){if(this.computePrefilledContent_(C)===void 0)return C.backstageAttachment},
computeAuthorThumbnailDimension_:function(C,F){return C&&!F?24:40},
computeImageUploadEndpoint_:function(C){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",C)},
computeRateLimitErrorCommands_:function(C){var F,G;return C==null?void 0:(F=C.advancedTierFeatures)==null?void 0:(G=F.rateLimit)==null?void 0:G.rateLimitCommands},
computeIsBackstageComment_:function(C){return!(!C||C!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(C){return this.get("submitButton.buttonRenderer.serviceEndpoint",C)||this.get("replyButton.buttonRenderer.serviceEndpoint",C)||this.get("postButton.buttonRenderer.serviceEndpoint",C)},
computeSubmitButtonOverride:function(){if(_.y("web_modern_buttons")){var C,F;return{segmentedPosition:this.dropdownSchedulePanel_||!((C=this.data)==null?0:(F=C.postOptionsMenu)==null?0:F.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.y("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(C,F){C=this.get("submitButton.buttonRenderer",C)||this.get("replyButton.buttonRenderer",C)||this.get("postButton.buttonRenderer",C);F&&(C=F);C&&(C=Object.assign({},C),C.serviceEndpoint=void 0,C.isDisabled=this.submitButtonDisabled);return C},
computeHasExternalLinksAccess_:function(C){if(_.y("enable_rfa_external_links")){var F,G,V;return(V=C==null?void 0:(F=C.advancedTierFeatures)==null?void 0:(G=F.externalLinks)==null?void 0:G.allowExternalLinks)!=null?V:!0}return!0},
computeIsEmojiButtonDisplayed_:function(C){return C.emojiButton&&C.emojiPicker&&C.emojiPicker.emojiPickerRenderer&&C.emojiPicker.emojiPickerRenderer.categories?C.emojiPicker.emojiPickerRenderer.categories.find(function(F){return F.emojiPickerCategoryRenderer?F.emojiPickerCategoryRenderer.emojiIds&&F.emojiPickerCategoryRenderer.emojiIds.length>0:F.emojiPickerUpsellCategoryRenderer?F.emojiPickerUpsellCategoryRenderer.emojis&&F.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(C){return C.charLimit?C.charLimit:null},
computeDropdownSchedulingPanel_:function(C,F){if(C==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&F)return F},
computeInlineSchedulingPanel_:function(C,F){if(C==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&F)return F},
computeHideAuthorThumbnail_:function(C,F){return C||this.computeUseIdentityChip_(F)},
computeHideIdentityChipRenderer_:function(C,F){return C||!this.computeUseIdentityChip_(F)},
computeUseIdentityChip_:function(C){return!!C&&!!C.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(C){var F,G,V,J;(C==null?0:(F=C.detail)==null?0:(G=F.endpoint)==null?0:G.ypcGetOffersEndpoint)||(C==null?0:(V=C.detail)==null?0:(J=V.endpoint)==null?0:J.ypcOffersEndpoint)?(C.stopPropagation(),_.DQ(this,[C.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",C)&&(C.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(C){this.addedAttachment="video";this.selectedVideoId_=C.detail.videoId},
commentboxStateEntityChanged_:function(C){var F=this;(C==null?void 0:C.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(C==null?void 0:C.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){F.focus()})},
onYtServiceRequestSent_:function(C,F){if(F.actions)for(C=_.u(F.actions),F=C.next();!F.done;F=C.next())F.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(C){this.isLoading=!1;var F=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",C),G,V,J,b=C==null?void 0:(G=C.detail)==null?void 0:(V=G.data)==null?void 0:(J=V.actionResult)==null?void 0:J.commentboxStateEntityKey;if(F)this.errorMessage_=F;else if(b){var z;this.dismissData_=C==null?void 0:(z=C.detail)==null?void 0:z.data;this.commentboxStateKey_=b}else{this.clear();var Q;this.fire("yt-commentbox-dismiss",C==null?void 0:(Q=C.detail)==
null?void 0:Q.data)}},
onYtServiceRequestError_:function(C){C.stopPropagation();this.isLoading=!1;var F,G;if(((F=this.data)==null?void 0:F.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((G=this.data)==null?void 0:G.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(F=this.get("detail.error.args",C)||[],F.length>1&&F[1].message){this.handlePostsServiceRequestError_(F[1].message);return}(C=this.get("detail.error.message",C))?this.errorMessage_=this.data.errorMessage||_.eN(C):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(C){if(_.y("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var F=_.u(this.rateLimitErrorCommands),G=F.next();!G.done;G=F.next())if(G=G.value,G.errorLabel===C){_.jR(G.command,this.hostElement);return}this.errorMessage_=_.eN(C)},
submitIfNotBackstagePost_:function(C){if(!this.isBackstagePost)this.onSubmit_(C)},
onSubmit_:function(C){var F=this,G,V,J,b,z,Q,E,t,k,U,H,l,N,S,f;return _.I(function(c){switch(c.nextAddress){case 1:C.stopPropagation();if(!F.serviceEndpoint||!F.isValidInput_())return c.return();if(F.shouldShowPostAadcNotice_())return F.showPostAadcNotice_(),c.return();if(F.shouldShowCommentAadcNotice_())return F.showCommentAadcNotice_(),c.return();if(!(F.$$("ytd-backstage-multi-image-select-renderer")&&F.hasImage_&&_.y("enable_multi_image_post_creation"))){c.jumpTo(2);break}G=F.$$("ytd-backstage-multi-image-select-renderer");
return c.yield(G.getAllUploadStatuses(),3);case 3:V=c.yieldResult;if(!V)return c.return();J=_.u(V);for(b=J.next();!b.done;b=J.next())if(z=b.value,z.encryptedBlobId===void 0)return F.isLoading=!1,E=Q=void 0,F.errorMessage_=(E=(Q=F.imageUploadEndpoint_)==null?void 0:Q.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?E:null,c.return();return c.return(F.submitForm_(void 0,void 0,void 0,void 0,G.images,F.taggedVideoId_));case 2:if(!F.hasImagePoll_||!F.$["image-poll-attachment"]){c.jumpTo(4);
break}return c.yield(F.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:t=c.yieldResult;if(!t)return c.return();k=_.u(t);for(U=k.next();!U.done;U=k.next())if(H=U.value,!H.encryptedBlobId)return F.isLoading=!1,l=void 0,F.errorMessage_=(l=F.data.errorMessage)!=null?l:null,c.return();case 4:S=(N=F.$$("ytd-backstage-image-select-renderer"))&&N.uploadPromise(),f=F.getSharedPostId_(),S?S.then(function(){F.submitForm_.apply(F,_.da(_.Rn.apply(0,arguments)))}).catch(function(A){F.isLoading=!1;
F.errorMessage_=_.eN(A.message)}):F.selectedVideoId_?F.submitForm_(void 0,F.selectedVideoId_):F.prefilledAttachment_==="image"?F.submitForm_(F.prefilledImageData_.encryptedBlobId,void 0,void 0,F.prefilledImageData_.sourceExternalVideoId,void 0,F.taggedVideoId_):F.prefilledAttachment_==="video"?F.submitForm_(void 0,F.data.backstageAttachment.videoRenderer.videoId):f?F.submitForm_(void 0,void 0,f):F.taggedVideoId_!==void 0?F.submitForm_(void 0,void 0,void 0,void 0,void 0,F.taggedVideoId_):F.submitForm_(),
_.S9(c)}})},
openSchedulingPanel:function(C){C&&C.scheduleButton&&C.scheduleButton.buttonRenderer&&(this.scheduleButton_=C.scheduleButton.buttonRenderer);C&&C.dateTimePicker&&this.set("data.schedulingDateTimePicker",C.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(C){C.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(C){C.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(C){C.stopPropagation();C.detail.alertMessage&&(this.alertMessage_=C.detail.alertMessage)},
onImageSelected_:function(C){C.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(C){C.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(C){C.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(C.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(C){C.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(C){var F=this.$["video-link-attachment"];F&&F.onLaunchVideoPicker(C)},
onAttachmentDismiss_:function(C){C.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"&&_.y("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.y("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 C;if(this.addedAttachment==="image-poll"&&((C=this.$["image-poll-attachment"])==null||!C.isValid()))return!1;var F;if(this.addedAttachment==="quiz"&&((F=this.$["quiz-attachment"])==null||!F.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;C=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(C=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")C=!0;return C||!!this.getTextAreaValue().trim()},
submitForm_:function(C,F,G,V,J,b){var z=this.getTextAreaValue().trim(),Q={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&z===this.previousText_&&(z=void 0);z!==void 0&&(Q.comment_text=z);this.isLoading=!0;b!=void 0&&(Q.tagged_video_id=b);C?(Q.image_blob_id=C,this.imagePreviewCoordinates_&&(Q.image_preview_coordinates=this.imagePreviewCoordinates_)):F?Q.attached_video_id=F:G?Q.shared_post_id=G:J&&J.length>0&&(Q.images_data=J.map(function(E){return{encryptedBlobId:E.encryptedBlobId,
previewCoordinates:E.previewCoordinates}}));
V&&(Q.source_video_id=V);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(Q.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(Q.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(Q.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.y("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(Q.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.y("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(Q.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.DQ(this,[this.serviceEndpoint,Q])},
onIsInputFocusChanged_:function(C,F){C?this.fire("yt-autonav-pause-focus"):F!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(C){var F=this.getEditableTextArea_();[].concat(_.da(C.dataTransfer.items)).forEach(function(G){G.kind==="string"&&G.type.match("^text/plain")&&G.getAsString(function(V){F.appendChild(document.createTextNode(V))})});
C.preventDefault()},
preventDefault_:function(C){C.preventDefault()},
onSuggestionInsert_:function(C){this.insertTextWithEmojis_(C.detail.range,C.detail.text)},
onEmojiSuggestionClick_:function(C){this.emojiInput.insertSuggestion(C.detail)},
computeSubmitButtonClass_:function(C,F){return!F||C?"":"with-options"},
updateSuggestionOffset_:function(C){if(this.emojiInput&&_.ot(this.emojiInput).querySelector("#dropdown")){var F=this.getEditableTextArea_().getBoundingClientRect().bottom,G=C.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(F-G)+5;F=this.getEditableTextArea_().getBoundingClientRect().left;C=C.getBoundingClientRect().left-F;_.ot(this.emojiInput).querySelector("#dropdown").style.marginLeft=C+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(C){if(_.y("enable_post_scheduling")&&this.data&&this.data.purpose){C=C.detail;if(Math.floor(Date.now()/1E3)>=C)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var F=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(F)||F!==C?this.scheduledPublishTimeSec_=C:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=C;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var C=["image-button","image-poll-button","poll-button"];_.y("enable_quiz_creation")&&C.push("quiz-button");_.y("auto_convert_posts_video_tag")||C.push("video-link-button");return C},
getButtonRenderer:function(C,F){if(C)switch(F){case "video-link-button":var G;return((G=C.videoLinkButton)==null?void 0:G.buttonRenderer)||void 0;case "image-button":var V;return((V=C.imageButton)==null?void 0:V.buttonRenderer)||void 0;case "poll-button":var J;return((J=C.pollButton)==null?void 0:J.buttonRenderer)||void 0;case "image-poll-button":var b;return((b=C.imagePollButton)==null?void 0:b.buttonRenderer)||void 0;case "quiz-button":var z;return((z=C.quizButton)==null?void 0:z.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var C;return(C=this.data)==null||!C.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var C,F;return!((C=this.data)==null||!C.openAadcDialog)&&!((F=this.aadcGuidelinesState_)==null||!F.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.TF("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var C;((C=this.data)==null?0:C.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.rT("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(C){C.clickTrackingParams&&_.ia().clickCommand(C);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.rz(this,"yt-close-popup-action")},
onHideIdentityChip:function(C){var F;this.set("data.placeholderText",(F=C.hideIdentityChipAction)==null?void 0:F.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var S7=function(){var C=_.B.apply(this,arguments)||this;C.isOpen=!1;C.modern=_.y("web_modern_buttons");C.roundedContainer=!0;C.dropdownButtonOverride=_.y("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;C.inPopupContainer=!1;C.isCommentboxLoading=!1;var F=["image-button","image-poll-button","poll-button"];_.y("enable_quiz_creation")&&F.push("quiz-button");_.y("auto_convert_posts_video_tag")||F.push("video-link-button");C.attachmentButtonIds=F;C.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 C};
_.O(S7,_.B);_.n=S7.prototype;_.n.computeButtonOverride=function(){var C;return((C=this.data)==null?0:C.postOptionsMenu)&&_.y("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.n.configureRendererStamper=function(){var C={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"EXPAND"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.y("auto_convert_posts_video_tag")||(C["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return C};
_.n.ready=function(){var C=this,F=_.ot(this.hostElement).querySelector("#placeholder-area"),G=function(V){C.onOpen(V)};
F.addEventListener("tap",G);F.addEventListener("keypress",G)};
_.n.showButtonEduTooltip=function(){var C,F,G,V,J,b,z;if(_.y("enable_quiz_creation")&&((C=this.data)==null?0:(F=C.quizButton)==null?0:(G=F.buttonRenderer)==null?0:(V=G.hint)==null?0:(J=V.hintRenderer)==null?0:(b=J.content)==null?0:(z=b.bubbleHintRenderer)==null?0:z.text)&&(_.yc.getInstance(),C=ZS(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(C==null?void 0:
C.length)>0)){this.ytComponentBehavior.resolveCommand(C[0],{form:{element:this.quizButton}});return}var Q;if((Q=this.data)==null?0:Q.imagePollButtonTooltip)if(_.yc.getInstance(),Q=ZS(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(Q==null?void 0:Q.length)>0){this.ytComponentBehavior.resolveCommand(Q[0],{form:{element:this.imagePollButton}});return}var E;_.y("enable_multi_image_post_creation")&&
((E=this.data)==null?0:E.multiImageButtonTooltip)&&(_.yc.getInstance(),E=ZS(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(E==null?void 0:E.length)>0&&this.ytComponentBehavior.resolveCommand(E[0],{form:{element:this.imageButton}}))};
_.n.onCreatePollAction=function(C){_.Z(C,nrl)&&(this.JSC$15928_commentbox.addedAttachment="poll",this.openDialog())};
_.n.onAddVideoLinkAction=function(C){if(_.Z(C,ia2))this.JSC$15928_commentbox.onAddVideoLink(C)};
_.n.onShowSchedulingPanelCommand=function(C){(C=_.Z(C,hwm))&&this.openSchedulingPanel(C)};
_.n.onCreateImagePollCommand=function(C){_.Z(C,vaS)&&(this.JSC$15928_commentbox.openImagePollComponent(),this.openDialog())};
_.n.onCreateQuizCommand=function(C){_.Z(C,f78)&&(this.JSC$15928_commentbox.openQuizComponent(),this.openDialog())};
_.n.openSchedulingPanel=function(C){_.y("enable_post_scheduling")&&(this.openDialog(),this.JSC$15928_commentbox.openSchedulingPanel(C))};
_.n.onCreateCommentAction=function(C){this.get("createCommentAction.contents",C)&&(this.JSC$15928_commentbox.clear(),this.closeDialog())};
_.n.onOpen=function(C){C instanceof KeyboardEvent&&C.type==="keypress"&&C.keyCode!==13&&C.keyCode!==32||(this.data.prepareAccountEndpoint?_.oo(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.n.onYtCommentboxDismiss=function(){this.closeDialog()};
_.n.onYtCommentboxLoadingStart=function(C){C.stopPropagation();this.isCommentboxLoading=!0};
_.n.onYtCommentboxLoadingEnd=function(C){C.stopPropagation();this.isCommentboxLoading=!1};
_.n.onYtVideoLinkButtonCancel=function(C){C.stopPropagation();this.onOpen(C)};
_.n.onYtVideoLinkSelected=function(C){C.stopPropagation();this.onOpen(C)};
_.n.onIronSelect=function(C){C.stopPropagation();C.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=C.detail.item.value&&(this.accessRestriction?(this.accessRestriction=C.detail.item.value,this.onOpen(C)):this.accessRestriction=C.detail.item.value)};
_.n.onYtNavigate=function(C){this.get("detail.endpoint.backstageImageUploadEndpoint",C)&&(this.JSC$15928_commentbox.addedAttachment="image",this.JSC$15928_commentbox.submitButtonDisabled=!0,this.onOpen(C))};
_.n.onRequestSent=function(C){if(_.y("web_button_rework"))for(var F=_.u(C.detail),G=F.next();!G.done;G=F.next())_.Z(G.value,RFy)&&(this.JSC$15928_commentbox.addedAttachment="image",this.JSC$15928_commentbox.submitButtonDisabled=!0,this.onOpen(C))};
_.n.openDialog=function(){var C;(C=this.data)!=null&&C.isIneligibleForCommunityPagePostCreation||(this.JSC$15928_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$15928_commentbox.focus())};
_.n.onPopupClosed=function(){_.yc.getInstance()};
_.n.computeCreationDisabled=function(C){return!!C};
_.n.computeIsCreationDialog=function(C){return!!C&&C==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.n.computeDisabledPostButton=function(C){if(!C)return null;C.isDisabled=!0;return C};
_.n.computeIsCreationDialogWithHeader=function(C){return!this.inPopupContainer&&!!C&&!!C.authorText&&C.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.n.computeIsHeaderHidden=function(C,F){return!C||F};
_.n.computeDropdownRendererClasses=function(C){return C?["text-secondary-style"]:[]};
_.n.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var C=_.ot(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;C&&C.reset()};
S7.prototype.onPopupClosed=S7.prototype.onPopupClosed;S7.prototype.onRequestSent=S7.prototype.onRequestSent;S7.prototype.onYtNavigate=S7.prototype.onYtNavigate;S7.prototype.onIronSelect=S7.prototype.onIronSelect;S7.prototype.onYtVideoLinkSelected=S7.prototype.onYtVideoLinkSelected;S7.prototype.onYtVideoLinkButtonCancel=S7.prototype.onYtVideoLinkButtonCancel;S7.prototype.onYtCommentboxLoadingEnd=S7.prototype.onYtCommentboxLoadingEnd;S7.prototype.onYtCommentboxLoadingStart=S7.prototype.onYtCommentboxLoadingStart;
S7.prototype.onYtCommentboxDismiss=S7.prototype.onYtCommentboxDismiss;S7.prototype.showButtonEduTooltip=S7.prototype.showButtonEduTooltip;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],S7.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],S7.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],S7.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],S7.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],S7.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],S7.prototype,"isOpen",void 0);_.R([_.L({computed:"computeButtonOverride(data)"}),_.Y("design:type",Object)],S7.prototype,"buttonOverride",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],S7.prototype,"modern",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],S7.prototype,"roundedContainer",void 0);_.R([_.L(),_.Y("design:type",Object)],S7.prototype,"dropdownButtonOverride",void 0);_.R([_.L({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.Y("design:type",Boolean)],S7.prototype,"creationDisabled",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],S7.prototype,"enableCreationBox",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.Y("design:type",Boolean)],S7.prototype,"isCreationDialog",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],S7.prototype,"inPopupContainer",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.Y("design:type",Boolean)],S7.prototype,"isCreationDialogWithHeader",void 0);_.R([_.L(),_.Y("design:type",Object)],S7.prototype,"accessRestriction",void 0);
_.R([_.L({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.Y("design:type",Array)],S7.prototype,"dropdownRendererClasses",void 0);_.R([_.L(),_.Y("design:type",Object)],S7.prototype,"isCommentboxLoading",void 0);_.R([_.L(),_.Y("design:type",Array)],S7.prototype,"attachmentButtonIds",void 0);_.R([_.$z("#image-button"),_.Y("design:type",HTMLElement)],S7.prototype,"imageButton",void 0);
_.R([_.$z("#image-poll-button"),_.Y("design:type",HTMLElement)],S7.prototype,"imagePollButton",void 0);_.R([_.$z("#quiz-button"),_.Y("design:type",HTMLElement)],S7.prototype,"quizButton",void 0);_.R([_.$z("#commentbox"),_.Y("design:type",Object)],S7.prototype,"JSC$15928_commentbox",void 0);_.R([_.iP("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],S7.prototype,"showButtonEduTooltip",null);
_.R([_.VG("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],S7.prototype,"onYtCommentboxDismiss",null);_.R([_.VG("yt-commentbox-loading-start"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],S7.prototype,"onYtCommentboxLoadingStart",null);
_.R([_.VG("yt-commentbox-loading-end"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],S7.prototype,"onYtCommentboxLoadingEnd",null);_.R([_.VG("yt-video-link-button-cancel"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],S7.prototype,"onYtVideoLinkButtonCancel",null);
_.R([_.VG("yt-video-link-selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],S7.prototype,"onYtVideoLinkSelected",null);_.R([_.VG("iron-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],S7.prototype,"onIronSelect",null);_.R([_.VG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],S7.prototype,"onYtNavigate",null);
_.R([_.VG("yt-service-request-sent-button-renderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],S7.prototype,"onRequestSent",null);_.R([_.VG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],S7.prototype,"onPopupClosed",null);_.R([_.e({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],S7);
_.q(S7,"ytd-backstage-post-dialog-renderer",function(){if(Sly!==void 0)return Sly;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n    [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer"></yt-formatted-string>\n    <div class="visibility-container style-scope ytd-backstage-post-dialog-renderer" hidden="[[data.isIneligibleForCommunityPagePostCreation]]">\n      <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n      <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n      <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" hidden="[[data.isIneligibleForCommunityPagePostCreation]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div class="ytd-commentbox-slot-repost-preview style-scope ytd-backstage-post-dialog-renderer" slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Sly=C},{mode:1});var b08;var ngE;var Le=function(){return _.B.apply(this,arguments)||this};
_.O(Le,_.B);_.n=Le.prototype;_.n.computeHeartButtonStyle=function(C){return(C==null?0:C.styleType)?C.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.n.onYtButtonTap=function(){if(this.data.isEnabled){var C=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(C=this.getEndpoint(C))&&_.I8().resolve(_.WD).resolveCommand(C,{form:{element:this.hostElement}})}else(C=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(C)};
_.n.toggle=function(C){this.set("data.isHearted",C!==void 0?C:!this.data.isHearted)};
_.n.getEndpoint=function(C){var F,G=(F=this.data)==null?void 0:F.heartEndpoint,V;F=(V=this.data)==null?void 0:V.unheartEndpoint;if(G&&F)return C?F:G};
_.n.computeButtonAccessibility=function(C,F){var G,V,J=C==null?void 0:(G=C.heartedAccessibility)==null?void 0:(V=G.accessibilityData)==null?void 0:V.label,b,z;C=C==null?void 0:(b=C.unheartedAccessibility)==null?void 0:(z=b.accessibilityData)==null?void 0:z.label;return F?J:C};
_.I6.Object.defineProperties(Le.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 C;return _.y("kevlar_system_icons")&&!((C=this.data)==null||!C.isHearted)}}});
Le.prototype.onYtButtonTap=Le.prototype.onYtButtonTap;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Le.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nK),_.Y("design:type",Object)],Le.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Le.prototype,"data",void 0);_.R([_.M("data.isHearted"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Le.prototype,"heartTooltip",null);
_.R([_.M("data.isHearted"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Le.prototype,"iconFilled",null);_.R([_.L({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.Y("design:type",String)],Le.prototype,"buttonAccessibility",void 0);_.R([_.L({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.Y("design:type",String)],Le.prototype,"heartButtonStyle",void 0);
_.R([_.VG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Le.prototype,"onYtButtonTap",null);_.R([_.e({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],Le);
_.q(Le,"ytd-creator-heart-renderer",function(){if(ngE!==void 0)return ngE;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return ngE=C},{mode:1});var BX=function(){var C=_.B.apply(this,arguments)||this;C.hasCreatorReply=!1;C.buttonOverrides={size:"S",iconPosition:"icon-only"};C.replyButtonOverrides={size:"S",type:"text"};C.forceIconButton=!_.y("web_modern_buttons");C.modern=_.y("web_modern_buttons");C.buttonTooltipPosition="bottom";C.systemIcons=_.y("kevlar_system_icons");C.replyDialog=null;return C};
_.O(BX,_.B);_.n=BX.prototype;
_.n.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]]"}}}}}};
_.n.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.n.dataChange=function(){this.replyDialog&&_.ot(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var C,F,G;this.isLiked=this.systemIcons&&!!((C=this.data)==null?0:(F=C.likeButton)==null?0:(G=F.toggleButtonRenderer)==null?0:G.isToggled)};
_.n.computeShowVoteCountBeginning=function(C,F){return C===void 0||F===void 0?!0:C.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!F&&this.ytRendererBehavior.getSimpleString(F)!=="0"};
_.n.computeShowVoteCountEnd=function(C,F){return C===void 0||F===void 0?!0:C.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!F&&this.ytRendererBehavior.getSimpleString(F)!=="0"};
_.n.computeShowCommentCount=function(C,F){return C===void 0||F===void 0?!0:C.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!F&&this.ytRendererBehavior.getSimpleString(F)!=="0"};
_.n.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.n.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.n.showReplyDialog=function(C){C&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.ot(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=C,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.n.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.n.onRequestSent=function(C){if(_.y("web_button_rework")){C=_.u(C.detail);for(var F=C.next();!F.done;F=C.next())(F=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",F.value))&&this.showReplyDialog(F)}};
_.n.onYtNavigate=function(C){var F,G;(C=(F=_.Z(C.detail.endpoint,_.T6u))==null?void 0:(G=F.dialog)==null?void 0:G.commentReplyDialogRenderer)&&this.showReplyDialog(C)};
_.n.onYtServiceRequestSent=function(C,F){C.stopPropagation();if(F.actions)for(C=0;C<F.actions.length;C++){var G=_.Z(F.actions[C],WF$);G&&this.handleUpdateCommentVoteAction(G)}};
_.n.handleUpdateCommentVoteAction=function(C){this.voteCount=C.voteCount||_.eN("0");C.voteStatus==="LIKE"?this.JSC$15940_ytdDislikeToggleButtonRenderer.toggle(!1):C.voteStatus==="DISLIKE"?this.JSC$15940_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15940_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15940_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.n.computeReplyButtonHidden=function(C){return C};
_.n.computeReplyButtonBeginning=function(C){return(C==null?0:C.replyButton)&&C.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?C.replyButton:void 0};
_.n.computeReplyButtonEnd=function(C){return(C==null?0:C.replyButton)&&C.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?C.replyButton:void 0};
_.n.computeActionButtonStyle=function(C){return(C==null?0:C.style)?C.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.n.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.n.onYtToggleButton=function(C){var F,G;this.isLiked=this.systemIcons&&!!((F=C.detail)==null?0:(G=F.actions)==null?0:G.like)};
BX.prototype.onYtToggleButton=BX.prototype.onYtToggleButton;BX.prototype.onButtonTooltipPositionChanged=BX.prototype.onButtonTooltipPositionChanged;BX.prototype.onYtServiceRequestSent=BX.prototype.onYtServiceRequestSent;BX.prototype.onYtNavigate=BX.prototype.onYtNavigate;BX.prototype.onRequestSent=BX.prototype.onRequestSent;BX.prototype.onYtCommentboxDismiss=BX.prototype.onYtCommentboxDismiss;BX.prototype.dataChange=BX.prototype.dataChange;
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],BX.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],BX.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],BX.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],BX.prototype,"voteCount",void 0);_.R([_.L(),_.Y("design:type",Object)],BX.prototype,"commentCount",void 0);_.R([_.L(),_.Y("design:type",Object)],BX.prototype,"replyThumbnail",void 0);
_.R([_.L(),_.Y("design:type",Object)],BX.prototype,"hasCreatorReply",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],BX.prototype,"enableCreationBox",void 0);_.R([_.L({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.Y("design:type",String)],BX.prototype,"actionButtonsStyle",void 0);_.R([_.L({computed:"computeReplyButtonBeginning(data)"}),_.Y("design:type",Object)],BX.prototype,"replyButtonBeginning",void 0);
_.R([_.L({computed:"computeReplyButtonEnd(data)"}),_.Y("design:type",Object)],BX.prototype,"replyButtonEnd",void 0);_.R([_.L(),_.Y("design:type",Object)],BX.prototype,"buttonOverrides",void 0);_.R([_.L(),_.Y("design:type",Object)],BX.prototype,"replyButtonOverrides",void 0);_.R([_.L(),_.Y("design:type",Object)],BX.prototype,"forceIconButton",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],BX.prototype,"useCommentIcon",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],BX.prototype,"modern",void 0);_.R([_.L(),_.Y("design:type",Object)],BX.prototype,"buttonTooltipPosition",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],BX.prototype,"systemIcons",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],BX.prototype,"isLiked",void 0);_.R([_.$z("ytd-button-renderer"),_.Y("design:type",Object)],BX.prototype,"ytdReplyButtonRenderer",void 0);
_.R([_.$z("#like-button"),_.Y("design:type",Object)],BX.prototype,"JSC$15940_ytdLikeToggleButtonRenderer",void 0);_.R([_.$z("#dislike-button"),_.Y("design:type",Object)],BX.prototype,"JSC$15940_ytdDislikeToggleButtonRenderer",void 0);_.R([_.$z("#reply-dialog"),_.Y("design:type",HTMLElement)],BX.prototype,"replyDialogElement",void 0);_.R([_.$z("#reply-button"),_.Y("design:type",HTMLElement)],BX.prototype,"replyButtonElement",void 0);
_.R([_.$z("#reply-button-end"),_.Y("design:type",HTMLElement)],BX.prototype,"replyButtonEndElement",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BX.prototype,"dataChange",null);_.R([_.VG("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],BX.prototype,"onYtCommentboxDismiss",null);
_.R([_.VG("yt-service-request-sent-button-renderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],BX.prototype,"onRequestSent",null);_.R([_.VG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],BX.prototype,"onYtNavigate",null);
_.R([_.VG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Sn]),_.Y("design:returntype")],BX.prototype,"onYtServiceRequestSent",null);_.R([_.iP("buttonTooltipPosition"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BX.prototype,"onButtonTooltipPositionChanged",null);
_.R([_.VG("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],BX.prototype,"onYtToggleButton",null);_.R([_.e({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],BX);
_.q(BX,"ytd-comment-action-buttons-renderer",function(){if(b08!==void 0)return b08;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return b08=C},{mode:1});var u7P;var vX=function(){return _.B.apply(this,arguments)||this};
_.O(vX,_.B);vX.prototype.focus=function(){_.ot(this.hostElement).querySelector("#commentbox").focus()};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],vX.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],vX.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],vX.prototype,"zeroStepChannelCreationRenderer",void 0);_.R([_.e({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],vX);
_.q(vX,"ytd-comment-dialog-renderer",function(){if(u7P!==void 0)return u7P;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return u7P=C},{mode:1});var zcy;var fe=function(){var C=_.B.apply(this,arguments)||this;C.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.y("enable_web_delhi_icons")};C.replyButtonOverrides={size:"S",type:"text"};return C};
_.O(fe,_.B);_.n=fe.prototype;_.n.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.n.detached=function(){this.replyBox&&this.replyBox.remove()};
_.n.showReplyDialog=function(C){if(C){var F=this.replyBox;F||(F=document.createElement("ytd-comment-reply-dialog-renderer"),F.id="replybox",_.ot(this.replyDialogDiv).appendChild(F));F.data=C;this.replyDialogDiv.hidden=!1;F.openDialog()}};
_.n.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.n.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var C,F=_.Z((C=this.toolbarSurface)==null?void 0:C.subscribersOnlyDisclaimerSnackbarCommand,_.yp);F&&_.oo(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:F})}};
_.n.onYtServiceRequestSent=function(C,F){C.stopPropagation();if(F.actions)for(var G=0;G<F.actions.length;G++){var V=_.Z(F.actions[G],WF$);V?this.handleUpdateCommentVoteAction(V):C.target===this.heartButton&&this.toggleHeartState()}};
_.n.handleUpdateCommentVoteAction=function(C){var F;(F=this.toolbarState)!=null&&F.key&&this.ytdReduxBehavior.dispatch(_.kZ("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:C.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":C.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.n.toggleHeartState=function(){var C;(C=this.toolbarState)!=null&&C.key&&this.ytdReduxBehavior.dispatch(_.kZ("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.I6.Object.defineProperties(fe.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var C,F,G;return(((C=this.toolbarState)==null?void 0:C.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(F=this.toolbarData)==null?void 0:F.likeCountLiked:(G=this.toolbarData)==null?void 0:G.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.toolbarSurface)==null?void 0:C.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.toolbarSurface)==null?void 0:C.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.toolbarSurface)==null?void 0:C.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.toolbarSurface)==null?void 0:C.prepareAccountCommand)!==void 0&&!_.y("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var C,F=_.Z((C=this.toolbarSurface)==null?void 0:C.prepareAccountCommand,_.yp),G,V,J,b,z,Q,E,t,k;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((G=this.toolbarSharedData)==null||!G.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((V=this.toolbarState)==null?void 0:V.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:F!=null?F:_.Z((J=this.toolbarSurface)==null?void 0:J.likeCommand,_.yp),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:F!=null?F:_.Z((b=this.toolbarSurface)==null?void 0:b.unlikeCommand,_.yp),defaultCommand:this.isVisiblyDisabled?_.Z((z=this.toolbarSurface)==null?void 0:z.commentDisabledActionCommand,_.yp):void 0,defaultTooltip:(Q=this.toolbarData)==null?void 0:Q.likeInactiveTooltip,toggledTooltip:(E=this.toolbarData)==null?void 0:E.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(t=this.toolbarData)==null?void 0:t.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(k=this.toolbarSharedData)==null?void 0:k.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var C,F=_.Z((C=this.toolbarSurface)==null?void 0:C.prepareAccountCommand,_.yp),G,V,J,b,z,Q,E,t,k,U;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((G=this.toolbarSharedData)==null||!G.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((V=this.toolbarState)==null?void 0:V.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:F!=null?F:_.Z((J=this.toolbarSurface)==null?void 0:J.dislikeCommand,_.yp),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:F!=null?F:_.Z((b=this.toolbarSurface)==null?void 0:b.undislikeCommand,_.yp),defaultCommand:this.isVisiblyDisabled?_.Z((z=this.toolbarSurface)==null?void 0:z.commentDisabledActionCommand,_.yp):void 0,defaultTooltip:(Q=this.toolbarData)==null?void 0:Q.dislikeInactiveTooltip,toggledTooltip:(E=this.toolbarData)==null?void 0:
E.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(t=this.toolbarSharedData)==null?void 0:t.dislikeReplyButtonA11y:(k=this.toolbarSharedData)==null?void 0:k.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(U=this.toolbarSharedData)==null?void 0:U.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var C,F,G;if(((C=this.toolbarState)==null?void 0:C.heartState)!==void 0&&((F=this.toolbarState)==null?void 0:F.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((G=this.toolbarState)==null?void 0:G.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var V,J,b,z,Q,E,t,k,U,H,l,N,S,f;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(V=this.toolbarData)==null?void 0:V.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((J=this.toolbarState)==null?void 0:J.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((b=this.toolbarState)==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((z=this.toolbarState)==null?void 0:z.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((Q=this.toolbarState)==null?void 0:Q.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.Z((E=this.toolbarSurface)==null?void 0:E.heartCommand,
_.yp),unheartEndpoint:this.isVisiblyDisabled?void 0:_.Z((t=this.toolbarSurface)==null?void 0:t.unheartCommand,_.yp),disabledEndpoint:this.isVisiblyDisabled?_.Z((k=this.toolbarSurface)==null?void 0:k.commentDisabledActionCommand,_.yp):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(U=this.toolbarData)==null?void 0:U.heartActiveTooltip,unheartedTooltip:(H=this.toolbarData)==null?void 0:H.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((l=
this.toolbarState)==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(N=this.toolbarSharedData)==null?void 0:N.unheartButtonA11y:(S=this.toolbarSharedData)==null?void 0:S.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(f=this.toolbarSharedData)==null?void 0:f.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.toolbarSurface)==null||!C.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var C;if((C=this.commentStrings)!=null&&C.replyButtonText){var F,G,V,J;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(F=this.commentStrings)==null?void 0:F.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.Z((G=this.toolbarSurface)==null?void 0:G.replyCommand,_.yp),command:this.isVisiblyDisabled?
_.Z((V=this.toolbarSurface)==null?void 0:V.commentDisabledActionCommand,_.yp):this.isSubsOnlyCommentsIneligibleUser?_.Z((J=this.toolbarSurface)==null?void 0:J.subscribersOnlySnackbarCommand,_.yp):void 0}}}}});
fe.prototype.onYtServiceRequestSent=fe.prototype.onYtServiceRequestSent;fe.prototype.hideReplyDialogDiv=fe.prototype.hideReplyDialogDiv;_.R([_.L(),_.Y("design:type",Object)],fe.prototype,"commentStrings",void 0);_.R([_.L(),_.Y("design:type",Boolean)],fe.prototype,"isReply",void 0);_.R([_.L(),_.Y("design:type",Object)],fe.prototype,"toolbarData",void 0);_.R([_.L(),_.Y("design:type",Object)],fe.prototype,"toolbarSharedData",void 0);
_.R([_.L(),_.Y("design:type",String)],fe.prototype,"toolbarStateKey",void 0);_.R([_.L(),_.Y("design:type",String)],fe.prototype,"toolbarSurfaceKey",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],fe.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],fe.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],fe.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.w(_.nK),_.Y("design:type",Object)],fe.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.$z("#reply-dialog"),_.Y("design:type",HTMLElement)],fe.prototype,"replyDialogDiv",void 0);_.R([_.$z("#replybox"),_.Y("design:type",Object)],fe.prototype,"replyBox",void 0);_.R([_.$z("ytd-creator-heart-renderer"),_.Y("design:type",Object)],fe.prototype,"heartButton",void 0);_.R([_.L({selector:function(C,F){return _.jN(C.entities,"engagementToolbarStateEntityPayload",F)},
selectorArgs:["toolbarStateKey"]}),_.Y("design:type",Object)],fe.prototype,"toolbarState",void 0);_.R([_.L({selector:G5S,selectorArgs:["toolbarSurfaceKey"]}),_.Y("design:type",Object)],fe.prototype,"toolbarSurface",void 0);_.R([_.L(),_.Y("design:type",Object)],fe.prototype,"buttonOverrides",void 0);_.R([_.VG("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fe.prototype,"hideReplyDialogDiv",null);
_.R([_.M("toolbarData","toolbarState"),_.Y("design:type",String),_.Y("design:paramtypes",[])],fe.prototype,"likeCount",null);_.R([_.M("likeCount"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],fe.prototype,"showLikeCount",null);_.R([_.M("toolbarSurface"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],fe.prototype,"isVisiblyDisabled",null);_.R([_.M("toolbarSurface"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],fe.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.R([_.M("toolbarSurface"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],fe.prototype,"isSubsOnlyCommentsEligibleUser",null);_.R([_.M("toolbarSurface"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],fe.prototype,"hasPrepareAccountCommand",null);_.R([_.M("toolbarData","toolbarState","toolbarSurface"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],fe.prototype,"likeToggleButtonRenderer",null);
_.R([_.M("isReply","toolbarData","toolbarState","toolbarSurface"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],fe.prototype,"dislikeToggleButtonRenderer",null);_.R([_.M("toolbarData","toolbarState","toolbarSurface"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],fe.prototype,"creatorHeartSupportedRenderer",null);_.R([_.M("toolbarSurface"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],fe.prototype,"hasReplyCommand",null);
_.R([_.M("toolbarSurface","commentStrings","isVisiblyDisabled"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],fe.prototype,"replyButtonRenderer",null);_.R([_.L(),_.Y("design:type",Object)],fe.prototype,"replyButtonOverrides",void 0);_.R([_.VG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Sn]),_.Y("design:returntype")],fe.prototype,"onYtServiceRequestSent",null);_.R([_.e({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],fe);
_.q(fe,"ytd-comment-engagement-bar",function(){if(zcy!==void 0)return zcy;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" on-click="handleReplyButtonClick" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return zcy=C},{mode:1});var Qgo;var hE=function(){return _.B.apply(this,arguments)||this};
_.O(hE,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],hE.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],hE.prototype,"data",void 0);_.R([_.e({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],hE);
_.q(hE,"ytd-comment-inline-thumbnail-renderer",function(){if(Qgo!==void 0)return Qgo;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Qgo=C},{mode:1});var II7;var cX=function(){return _.B.apply(this,arguments)||this};
_.O(cX,_.B);cX.prototype.onMessageTap=function(){if(this.onTapCommand){var C=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);C&&this.ytdOpenPopupBehavior.openPopup(C)}};
_.I6.Object.defineProperties(cX.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var C,F,G;return(C=this.data)==null?void 0:(F=C.button)==null?void 0:(G=F.buttonRenderer)==null?void 0:G.command}}});
_.R([_.w(_.nK),_.Y("design:type",Object)],cX.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],cX.prototype,"data",void 0);_.R([_.M("data.button.buttonRenderer.command"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],cX.prototype,"onTapCommand",null);_.R([_.e({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],cX);
_.q(cX,"ytd-comment-pause-composer-renderer",function(){if(II7!==void 0)return II7;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" on-click="onMessageTap" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return II7=C},{mode:1});var Eg7;var Wju;var AE=function(){var C=_.B.apply(this,arguments)||this;C.isOpen=!1;return C};
_.O(AE,_.B);_.n=AE.prototype;_.n.dataChanged=function(){this.isOpen=!1};
_.n.onTap=function(){this.data&&(this.data.navigationEndpoint?_.oo(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.n.focus=function(){this.JSC$15970_commentbox.focus()};
_.n.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.n.openDialog=function(){this.isOpen=!0;this.JSC$15970_commentbox.focus();this.JSC$15970_commentbox.maybeHeightChanged()};
AE.prototype.onYtCommentboxDismiss=AE.prototype.onYtCommentboxDismiss;AE.prototype.dataChanged=AE.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],AE.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],AE.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],AE.prototype,"isOpen",void 0);_.R([_.$z("#commentbox"),_.Y("design:type",Object)],AE.prototype,"JSC$15970_commentbox",void 0);
_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AE.prototype,"dataChanged",null);_.R([_.VG("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],AE.prototype,"onYtCommentboxDismiss",null);_.R([_.e({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],AE);
_.q(AE,"ytd-comment-reply-dialog-renderer",function(){if(Wju!==void 0)return Wju;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Wju=C},{mode:1});var txr;var e7=function(){return _.B.apply(this,arguments)||this};
_.O(e7,_.B);_.I6.Object.defineProperties(e7.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var C,F,G=(C=this.data)==null?void 0:(F=C.icon)==null?void 0:F.iconType;return G?"yt-icons:"+G.toLowerCase():null}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],e7.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],e7.prototype,"data",void 0);_.R([_.L(),_.M("data.icon"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],e7.prototype,"icon",null);_.R([_.e({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],e7);
_.q(e7,"ytd-pinned-comment-badge-renderer",function(){if(txr!==void 0)return txr;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return txr=C},{mode:1});var aIu;var kdG={},Upu={input:!0,meta:!0,br:!0,link:!0,img:!0},d4=null;kdG.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(){d4==null&&(d4=document.createElement("tp-yt-paper-tooltip"),d4.offset=8,d4.fitToVisibleBounds=!0)},
onMouseOver_:function(C){if(C=_.Yf(C.target,function(J){return J==this||J.getAttribute&&J.getAttribute("shared-tooltip-text")}.bind(this),!0)){var F=C.getAttribute("shared-tooltip-text");
if(F){var G=this,V=null;C!=this&&(C.tagName.toLowerCase()in Upu?G=C.parentElement:G=C,C.id&&(V=C.id));this.polymerController.createTooltipIfRequired_();if(d4.parentElement!=G||d4.for!=V)(0,_.C5)(d4).textContent=F,_.ot(G).appendChild(d4),d4.for=V,d4.animationDelay=this.polymerController.sharedTooltipAnimationDelay,d4.position=this.polymerController.sharedTooltipPosition}}}};var xF=function(){return _.B.apply(this,arguments)||this};
_.O(xF,_.B);xF.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]]"}}}}}};
xF.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img");var C;((C=this.data)==null?0:C.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
xF.prototype.colorChanged=function(){var C,F,G,V=(C=this.data)==null?void 0:(F=C.color)==null?void 0:(G=F.basicColorPaletteData)==null?void 0:G.foregroundBodyColor;V&&(this.rgbBadgeColor=_.Hr(V));_.ot(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
xF.prototype.tooltipChanged=function(){var C;((C=this.data)==null?0:C.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
xF.prototype.tooltipChanged=xF.prototype.tooltipChanged;xF.prototype.colorChanged=xF.prototype.colorChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],xF.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],xF.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(kdG.YtSharedTooltipBehavior),_.Y("design:type",Object)],xF.prototype,"ytSharedTooltipBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],xF.prototype,"data",void 0);
_.R([_.L({value:"#4285F4"}),_.Y("design:type",String)],xF.prototype,"rgbBadgeColor",void 0);_.R([_.iP("data.color"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xF.prototype,"colorChanged",null);_.R([_.iP("data.tooltip"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xF.prototype,"tooltipChanged",null);_.R([_.e({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],xF);
_.q(xF,"ytd-sponsor-comment-badge-renderer",function(){if(aIu!==void 0)return aIu;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return aIu=C},{mode:1});var H0O;var lI7;var sC=function(){return _.B.apply(this,arguments)||this};
_.O(sC,_.B);sC.prototype.computeState=function(C){switch(C==null?void 0:C.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"}};
sC.prototype.updateStateIdentifier=function(C){if(this.viewModel.triStateKey){var F=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.kZ("triStateButtonStateEntityPayload",F,{key:F,stateIdentifier:C}))}};
sC.prototype.onClick=function(){var C=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(){C.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){C.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.I6.Object.defineProperties(sC.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 C;return((C=this.data)==null?void 0:C.buttonText)||""}}});
_.R([_.L(),_.Y("design:type",Object)],sC.prototype,"viewModel",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],sC.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],sC.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],sC.prototype,"ytRendererBehavior",void 0);_.R([_.L({selector:VAW,selectorArgs:["viewModel.triStateKey"]}),_.Y("design:type",Object)],sC.prototype,"triStateButtonStateEntity",void 0);
_.R([_.L({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.Y("design:type",String)],sC.prototype,"state",void 0);_.R([_.M("viewModel","state"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],sC.prototype,"data",null);_.R([_.M("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],sC.prototype,"buttonText",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],sC);
_.q(sC,"ytd-tri-state-button-view-model",function(){if(lI7!==void 0)return lI7;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return lI7=C},{mode:1});var y1E;var Z0m;var qn=function(){var C=_.B.apply(this,arguments)||this;C.defaultIconToFilled=!_.y("kevlar_fill_comment_chip_icon_killswitch");return C};
_.O(qn,_.B);qn.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
qn.prototype.dataChanged=function(){if(this.data){var C,F;((C=this.data.chipColorPalette)==null?0:C.backgroundColor)&&((F=this.data.chipColorPalette)==null?0:F.foregroundTitleColor)&&_.jr(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.lE(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.lE(this.data.chipColorPalette.foregroundTitleColor)});var G;((G=this.data)==null?0:G.command)?(_.jr(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.jr(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}};
qn.prototype.onTap=function(){var C;if(this.data&&(C=this.data)!=null&&C.command){var F;this.ytComponentBehavior.resolveCommand((F=this.data)==null?void 0:F.command)}};
qn.prototype.getIconSize=function(){return _.y("kevlar_fill_comment_chip_icon_killswitch")?24:12};
qn.prototype.onTap=qn.prototype.onTap;qn.prototype.dataChanged=qn.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],qn.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],qn.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.wg),_.Y("design:type",Object)],qn.prototype,"ironA11yKeysBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],qn.prototype,"data",void 0);
_.R([_.L(),_.Y("design:type",Object)],qn.prototype,"basePriceText",void 0);_.R([_.L(),_.Y("design:type",Object)],qn.prototype,"chipIcon",void 0);_.R([_.L(),_.Y("design:type",Object)],qn.prototype,"defaultIconToFilled",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qn.prototype,"dataChanged",null);_.R([_.VG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qn.prototype,"onTap",null);
_.R([_.Z5({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],qn);
_.q(qn,"yt-pdg-comment-chip-renderer",function(){if(Z0m===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;y1E===void 0&&(y1E=document.createElement("template"));var V=y1E;G.call(F,V.content.cloneNode(!0),C.content.firstChild);Z0m=C}C=Z0m;return C},{mode:2});var PX=function(){var C=_.B.apply(this,arguments)||this;C.useSmallAvatars=_.y("small_avatars_for_comments");C.commentThreadingEnabled=_.y("web_delhi_comment_threads");C.webWatchCompactComments=_.y("web_watch_compact_comments");C.editDialog=null;return C};
_.O(PX,_.B);_.n=PX.prototype;_.n.onShow=function(){_.OZ("cmv",void 0,"wn_comments")};
_.n.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"}}}};
_.n.detached=function(){this.editDialog=null;this.expander.reset()};
_.n.updateBackgroundColor=function(){if(this.backgroundColor){var C={"--ytd-comment-paid-background-color":_.lE(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.jr(this.hostElement,C)}else _.jr(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.n.resetExpander=function(){var C;(C=this.expander)==null||C.reset()};
_.n.openEditDialog=function(C){C.dialog&&(this.editDialog=C.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.n.onYtNavigate=function(C){var F=C.detail.endpoint;if(F=_.Z(F,_.osO)||_.Z(F,_.rhy))C.stopPropagation(),this.openEditDialog(F)};
_.n.onYtCommentboxDismiss=function(){this.editDialog=null;_.jr(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.n.onAuthorThumbnailClicked=function(){_.y("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.n.onYtCommentboxResize=function(C){var F;(C==null?0:(F=C.detail)==null?0:F.height)&&_.jr(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":C.detail.height+"px"})};
_.I6.Object.defineProperties(PX.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 C,F=(C=this.commentEntity)==null?void 0:C.author;return F&&(F.isCreator||F.isVerified||F.isArtist)?{renderer:{authorEndpoint:F.channelPageEndpoint?_.Z(F.channelPageEndpoint,_.yp):_.Z(F.channelCommand,_.yp),authorText:{runs:[{text:F.displayName}]},color:F.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:F.isArtist?{iconType:"AUDIO_BADGE"}:
F.isVerified?{iconType:F.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:F.isArtist||F.isVerified?F.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var C,F=(C=this.commentEntity)==null?void 0:C.author;return F!=null&&F.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:F.sponsorBadgeUrl}]},tooltip:F.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var C;return _.Z((C=this.commentSurfaceEntity)==null?void 0:C.pdgCommentChip,_.ZJo)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var C;return this.voiceReplyContainerViewModel&&((C=this.voiceReplyContainerViewModel)==null?void 0:C.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var C;return _.Z((C=this.commentSurfaceEntity)==null?void 0:C.voiceReplyContainerViewModel,N3l)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var C;return this.voiceReplyContainerViewModel&&(C=this.voiceReplyContainerViewModel)!=null&&C.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var C,F;return(F=(C=this.commentSurfaceEntity)==null?void 0:C.commentBackgroundColor)!=null?F:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.y("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var C,F;return(((C=this.commentEntity)==null?void 0:(F=C.properties)==null?void 0:F.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var C,F;if(_.y("enable_profile_cards_on_comments")&&((C=this.commentEntity)==null?0:(F=C.author)==null?0:F.profileCardEndpoint)&&this.viewModel.allowProfileCard){var G,V;return _.Z((G=this.commentEntity)==null?void 0:(V=G.author)==null?void 0:V.profileCardEndpoint,_.yp)}var J,b;return _.Z((J=this.commentEntity)==null?void 0:(b=J.avatar)==null?void 0:b.endpoint,_.yp)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var C,F;if(_.y("enable_profile_cards_on_comments")&&((C=this.commentEntity)==null?0:(F=C.author)==null?0:F.channelPageEndpoint)){var G,V;return _.Z((G=this.commentEntity)==null?void 0:(V=G.author)==null?void 0:V.channelPageEndpoint,_.yp)}var J,b;return _.Z((J=this.commentEntity)==null?void 0:(b=J.avatar)==null?void 0:b.endpoint,_.yp)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var C,F,G,V,J=(C=this.commentEntity)==null?void 0:(F=C.avatar)==null?void 0:(G=F.image)==null?void 0:(V=G.sources)==null?void 0:V[0];return J?{thumbnails:[{url:J.url,width:J.width,height:J.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var C,F;return((C=this.commentEntity)==null?0:(F=C.author)==null?0:F.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var C,F;return((C=this.commentEntity)==null?void 0:(F=C.author)==null?void 0:F.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var C,F;return((C=this.commentEntity)==null?void 0:(F=C.properties)==null?void 0:F.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var C;return _.Z((C=this.commentSurfaceEntity)==null?void 0:C.publishedTimeCommand,_.yp)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var C,F;if(((C=this.commentEntity)==null?0:C.translatedContent)&&((F=this.translateButtonState)==null?void 0:F.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var G;if((G=this.voiceReplyContainerViewModel)==null?0:G.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var V,J;return((V=this.commentEntity)==null?void 0:(J=V.properties)==null?void 0:J.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var C,F;return((C=this.commentSharedEntity)==null?void 0:(F=C.strings)==null?void 0:F.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var C,F;return((C=this.commentSharedEntity)==null?void 0:(F=C.strings)==null?void 0:F.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.commentEntity)==null||!C.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var C,F,G=(F=_.Z((C=this.viewModel)==null?void 0:C.translateButton,Za2))!=null?F:{},V,J,b,z,Q,E,t,k,U,H,l;return Object.assign({},G,{untoggledStateData:Object.assign({},G.untoggledStateData,{buttonText:(V=this.commentEntity)==null?void 0:(J=V.translateData)==null?void 0:J.text}),togglingStateData:Object.assign({},G.togglingStateData,{buttonText:(b=this.commentSharedEntity)==null?
void 0:(z=b.strings)==null?void 0:z.translatingText}),toggledStateData:Object.assign({},G.toggledStateData,{buttonText:(Q=this.commentSharedEntity)==null?void 0:(E=Q.strings)==null?void 0:E.seeOriginalText}),transitionCommand:((t=this.commentEntity)==null?0:t.translatedContent)?void 0:_.Z((k=this.commentEntity)==null?void 0:(U=k.translateData)==null?void 0:U.translateComment,_.yp),triStateKey:(H=this.commentEntity)==null?void 0:(l=H.properties)==null?void 0:l.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var C,F,G;return((F=_.Z(_.Z((C=this.toolbarSurface)==null?void 0:C.menuCommand,_.yp),KnP))==null?void 0:(G=F.menu)==null?void 0:G.menuRenderer)||null}}});
PX.prototype.onYtCommentboxResize=PX.prototype.onYtCommentboxResize;PX.prototype.onYtCommentboxDismiss=PX.prototype.onYtCommentboxDismiss;PX.prototype.onYtNavigate=PX.prototype.onYtNavigate;PX.prototype.resetExpander=PX.prototype.resetExpander;PX.prototype.updateBackgroundColor=PX.prototype.updateBackgroundColor;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],PX.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],PX.prototype,"ytdReduxBehavior",void 0);
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],PX.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],PX.prototype,"ytRendererstamperBehavior",void 0);_.R([_.$z("#author-thumbnail > button"),_.Y("design:type",HTMLElement)],PX.prototype,"authorThumbnailAnchor",void 0);_.R([_.L({reflectToAttribute:!0}),_.M("viewModel"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],PX.prototype,"linked",null);
_.R([_.M("viewModel","linked"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PX.prototype,"linkedCommentBadge",null);_.R([_.L({reflectToAttribute:!0}),_.M("viewModel"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],PX.prototype,"pinned",null);_.R([_.M("viewModel","pinned"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PX.prototype,"pinnedCommentBadge",null);
_.R([_.M("commentEntity","commentSharedEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PX.prototype,"authorCommentBadge",null);_.R([_.L({reflectToAttribute:!0}),_.M("authorCommentBadge"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PX.prototype,"hasAuthorBadge",null);_.R([_.M("commentEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PX.prototype,"sponsorCommentBadge",null);
_.R([_.L({reflectToAttribute:!0}),_.M("sponsorCommentBadge"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PX.prototype,"hasSponsorBadge",null);_.R([_.M("commentSurfaceEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PX.prototype,"pdgCommentChipRenderer",null);_.R([_.L({reflectToAttribute:!0}),_.M("voiceReplyContainerViewModel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PX.prototype,"hasVoiceReply",null);
_.R([_.M("commentSurfaceEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PX.prototype,"voiceReplyContainerViewModel",null);_.R([_.M("voiceReplyContainerViewModel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PX.prototype,"voiceReplyUnavailableText",null);_.R([_.L(),_.Y("design:type",Object)],PX.prototype,"data",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PX.prototype,"viewModel",null);
_.R([_.L({selector:function(C,F){return _.jN(C.entities,"commentSharedEntityPayload",F)},
selectorArgs:["viewModel.sharedKey"]}),_.Y("design:type",Object)],PX.prototype,"commentSharedEntity",void 0);_.R([_.L({selector:FtS,selectorArgs:["viewModel.commentKey"]}),_.Y("design:type",Object)],PX.prototype,"commentEntity",void 0);_.R([_.L({selector:function(C,F){return _.jN(C.entities,"commentSurfaceEntityPayload",F)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.Y("design:type",Object)],PX.prototype,"commentSurfaceEntity",void 0);_.R([_.L({selector:G5S,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.Y("design:type",Object)],PX.prototype,"toolbarSurface",void 0);_.R([_.L({selector:VAW,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.Y("design:type",Object)],PX.prototype,"translateButtonState",void 0);
_.R([_.M("commentSurfaceEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PX.prototype,"backgroundColor",null);_.R([_.L({reflectToAttribute:!0}),_.M("viewModel"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],PX.prototype,"optimalReadingWidthComments",null);_.R([_.$z("ytd-expander"),_.Y("design:type",Object)],PX.prototype,"expander",void 0);
_.R([_.iP("backgroundColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PX.prototype,"updateBackgroundColor",null);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],PX.prototype,"useSmallAvatars",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],PX.prototype,"commentThreadingEnabled",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],PX.prototype,"webWatchCompactComments",void 0);
_.R([_.L({reflectToAttribute:!0}),_.M("commentEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PX.prototype,"isReply",null);_.R([_.M("commentEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PX.prototype,"authorThumbnailEndpoint",null);_.R([_.M("commentEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PX.prototype,"authorNameEndpoint",null);_.R([_.M("commentEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PX.prototype,"authorThumbnail",null);
_.R([_.M("commentEntity"),_.Y("design:type",String),_.Y("design:paramtypes",[])],PX.prototype,"authorTextClass",null);_.R([_.M("commentEntity"),_.Y("design:type",String),_.Y("design:paramtypes",[])],PX.prototype,"authorChannelName",null);_.R([_.M("commentEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PX.prototype,"publishedTime",null);_.R([_.M("commentSurfaceEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PX.prototype,"publishedTimeCommand",null);
_.R([_.M("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PX.prototype,"contentText",null);_.R([_.iP("contentText"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PX.prototype,"resetExpander",null);_.R([_.M("commentEntity"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],PX.prototype,"shouldShowReadMoreInitially",null);
_.R([_.M("commentSharedEntity"),_.Y("design:type",String),_.Y("design:paramtypes",[])],PX.prototype,"expandText",null);_.R([_.M("commentSharedEntity"),_.Y("design:type",String),_.Y("design:paramtypes",[])],PX.prototype,"collapseText",null);_.R([_.M("commentEntity"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],PX.prototype,"shouldShowTranslateButton",null);
_.R([_.M("commentEntity","commentSharedEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PX.prototype,"translateButton",null);_.R([_.M("toolbarSurface"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PX.prototype,"overflowMenuRenderer",null);_.R([_.L(),_.Y("design:type",Object)],PX.prototype,"editDialog",void 0);_.R([_.$z("ytd-comment-dialog-renderer"),_.Y("design:type",Object)],PX.prototype,"editCommentDialogContainer",void 0);
_.R([_.$z("ytd-comment-reply-dialog-renderer"),_.Y("design:type",Object)],PX.prototype,"editReplyDialogContainer",void 0);_.R([_.VG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],PX.prototype,"onYtNavigate",null);_.R([_.VG("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],PX.prototype,"onYtCommentboxDismiss",null);
_.R([_.VG("yt-commentbox-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],PX.prototype,"onYtCommentboxResize",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-comment-view-model"})],PX);
_.q(PX,"ytd-comment-view-model",function(){if(H0O!==void 0)return H0O;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model"> </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model">\n          \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model"> [[authorChannelName]] </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" recompute-on-resize="[[webWatchCompactComments]]" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden$="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return H0O=C},{mode:_.oN("kevlar_poly_si_batch_j025")?1:2});_.gQ(_.d(function(C){var F={};return _.W("yt-sub-thread",{class:_.py("ytSubThreadHost",(F.ytSubThreadHasButton=C.isButton,F))},_.W("div",{class:"ytSubThreadThreadline"},_.W(_.a,{cond:function(){var G;return!((G=C.isTeaser)==null?0:G.call(C))},
then:function(){return _.W("div",{class:"ytSubThreadConnection"})}}),_.W("div",{class:"ytSubThreadContinuation"}),_.W("div",{class:"ytSubThreadShadow"})),_.W("div",{class:"ytSubThreadSubThreadContent"},C.children))},"Ic"),"yt-sub-thread",{props:{isButton:_.CJ,
isTeaser:_.CJ}});var g4=function(){var C=_.B.apply(this,arguments)||this;C.modern=_.y("web_modern_buttons");C.commentThreadingEnabled=_.y("web_delhi_comment_threads");C.isWatchGrid=_.y("kevlar_watch_grid");C.buttonOverrides=C.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};C.JSC$16016_spinnerEl=null;return C};
_.O(g4,_.B);_.n=g4.prototype;_.n.configureContinuationPathMap=function(){return _.y("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.n.shouldShowLegacyTeasers=function(C,F){return C&&!F};
_.n.shouldShowExpandedThreads=function(C,F){return this.commentThreadingEnabled&&F&&(C==null?void 0:C.length)>0};
_.n.shouldShowCollapsedThreads=function(C,F){return this.commentThreadingEnabled&&!F&&C};
_.n.computeCommentViewModel=function(C){return _.Z(C,yLu)};
_.n.computeThreadRenderer=function(C){return _.Z(C,t$7)};
_.n.computeIsContinuationItem=function(C){return!!this.computeContinuationItemRenderer(C)};
_.n.computeButtonRenderer=function(C){return _.Z(C,_.DY)};
_.n.computeContinuationItemRenderer=function(C){return _.Z(C,_.eZ)};
_.n.computeShowButton=function(C){var F;return!((F=this.computeContinuationItemRenderer(C))==null||!F.button)};
_.n.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]]"}}}}}};
_.n.attached=function(){this.isShowRepliesVisible=!0};
_.n.dataChanged=function(){var C=this.expanderContents;C&&(C.hidden=!0);this.isLoading=!1};
_.n.endsInContinuation=function(C){return!!C&&C.length>0&&!!this.computeContinuationItemRenderer(C[C.length-1])};
_.n.computeShouldShowHideRepliesButton=function(C,F){return!C&&F};
_.n.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.n.isLoadingChanged=function(){this.isLoading&&!this.JSC$16016_spinnerEl&&(this.JSC$16016_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.ot(this.expanderContents).appendChild(this.JSC$16016_spinnerEl));this.JSC$16016_spinnerEl&&(this.JSC$16016_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var C;(C=this.contents)==null||C.classList.remove("reloading")}};
_.n.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var C=_.Z(this.data.viewReplies,_.DY);C&&this.ytRendererBehavior.logExplicitClick(C);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.n.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var C=_.Z(this.data.hideReplies,_.DY);C&&this.ytRendererBehavior.logExplicitClick(C);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.n.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var C=_.ot(this.hostElement).querySelector("#expander-contents");C&&(C.hidden=this.isShowRepliesVisible)}};
_.n.computeAlign=function(){if(this.modern){var C;return!((C=this.data)==null?0:C.viewRepliesCreatorThumbnail)}};
_.I6.Object.defineProperties(g4.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var C,F;return this.endsInContinuation((C=this.data)==null?void 0:C.contents)||this.commentThreadingEnabled&&this.endsInContinuation((F=this.data)==null?void 0:F.subThreads)}},
subThreadTeasers:{configurable:!0,enumerable:!0,get:function(){if(!this.commentThreadingEnabled)return[];var C;return(C=this.data)==null?void 0:C.teaserContents}}});
g4.prototype.isShowMoreChanged=g4.prototype.isShowMoreChanged;g4.prototype.isLoadingChanged=g4.prototype.isLoadingChanged;g4.prototype.triggerFirstContinuation=g4.prototype.triggerFirstContinuation;g4.prototype.dataChanged=g4.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],g4.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],g4.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.w(_.G1),_.Y("design:type",Object)],g4.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],g4.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],g4.prototype,"modern",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],g4.prototype,"commentThreadingEnabled",void 0);_.R([_.L(),_.Y("design:type",Boolean)],g4.prototype,"expanded",void 0);
_.R([_.L(),_.Y("design:type",Function)],g4.prototype,"toggleExpanded",void 0);_.R([_.L(),_.Y("design:type",Array)],g4.prototype,"addedReplies",void 0);_.R([_.L(),_.Y("design:type",Boolean)],g4.prototype,"isLoading",void 0);_.R([_.L({value:!0}),_.Y("design:type",Boolean)],g4.prototype,"isShowRepliesVisible",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],g4.prototype,"useNewFormatting",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],g4.prototype,"isWatchGrid",void 0);
_.R([_.L(),_.Y("design:type",Object)],g4.prototype,"buttonOverrides",void 0);_.R([_.$z("#expander-contents"),_.Y("design:type",HTMLElement)],g4.prototype,"expanderContents",void 0);_.R([_.$z("ytd-continuation-item-renderer"),_.Y("design:type",Object)],g4.prototype,"continuationItemRenderer",void 0);_.R([_.$z("#contents"),_.Y("design:type",HTMLElement)],g4.prototype,"contents",void 0);
_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],g4.prototype,"dataChanged",null);_.R([_.M("data.contents","data.subThreads.*"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],g4.prototype,"hasContinuation",null);_.R([_.M("data.teaserContents"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],g4.prototype,"subThreadTeasers",null);
_.R([_.VG("yt-expander-more-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],g4.prototype,"triggerFirstContinuation",null);_.R([_.iP("isLoading"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],g4.prototype,"isLoadingChanged",null);_.R([_.iP("isShowRepliesVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],g4.prototype,"isShowMoreChanged",null);
_.R([_.e({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],g4);
_.q(g4,"ytd-comment-replies-renderer",function(){if(Eg7!==void 0)return Eg7;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!shouldShowLegacyTeasers(isShowRepliesVisible, commentThreadingEnabled)]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div id="expanded-threads" hidden="[[!shouldShowCollapsedThreads(data.viewReplies, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[subThreadTeasers]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread is-teaser="" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-view-model data="[[computeCommentViewModel(item)]]" class="style-scope ytd-comment-replies-renderer"> </ytd-comment-view-model>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-repeat" items="[[addedReplies]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n      </ytd-comment-thread-renderer>\n    </yt-sub-thread>\n  </template>\n  <yt-sub-thread is-button="" class="style-scope ytd-comment-replies-renderer">\n    <div class="show-replies-button style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies-sub-thread" aria-controls="expanded-threads" aria-expanded="[[!expanded]]" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowMoreTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </yt-sub-thread>\n</div>\n<div id="collapsed-threads" hidden="[[!shouldShowExpandedThreads(data.subThreads, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread is-button="[[computeIsContinuationItem(item)]]" class="style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n        </ytd-comment-thread-renderer>\n      </template>\n      <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="[[computeShowButton(item)]]" class="style-scope ytd-comment-replies-renderer">\n        </ytd-continuation-item-renderer>\n      </template>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread is-button="" class="style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="less-replies-sub-thread" aria-controls="collapsed-threads" aria-expanded="[[expanded]]" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </yt-sub-thread>\n  </template>\n</div>\n');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Eg7=C},{mode:1});var NmP;var R_=function(){var C=_.B.apply(this,arguments)||this;C.isOpen=!1;C.commentDialog=null;C.useSmallAvatars=_.y("small_avatars_for_comments");C.useSmallAvatarsEngagementPanelOnly=_.y("small_avatars_for_comments_ep");C.placeholderFocusListener=null;C.hasOpenedDialog=!1;C.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return C};
_.O(R_,_.B);_.n=R_.prototype;_.n.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]]"}}}}}};
_.n.ready=function(){var C=this,F=_.ot(this.hostElement).querySelector("#placeholder-area"),G=_.ot(this.hostElement).querySelector("#simplebox-placeholder"),V=function(J){J.stopPropagation();J instanceof KeyboardEvent&&J.type==="keypress"&&J.keyCode!==13&&J.keyCode!==32||C.openDialog()};
this.placeholderFocusListener=V;G.addEventListener("focus",this.placeholderFocusListener);F.addEventListener("tap",V);F.addEventListener("keypress",V)};
_.n.maybeRemoveFocusEventListener=function(){var C;(C=this.data)!=null&&C.prepareAccountEndpoint&&!_.y("web_comments_simplebox_modal_focus_on_tap_ks")&&(C=_.ot(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(C.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.n.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.n.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.y("web_comment_simplebox_resolve_polymer_command_ks")?_.Cy.instance.resolveCommand(this.data.prepareAccountEndpoint):_.jR(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var C=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);C&&this.ytdOpenPopupBehavior.openPopup(C);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.ot(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.n.onYtCommentboxDismiss=function(C){C.stopPropagation();this.isOpen=!1};
_.n.onCreateCommentAction=function(C){this.get("createCommentAction.contents",C)&&(this.isOpen=!1)};
_.n.computeCommentDialog=function(C){return{placeholderText:C.placeholderText,authorThumbnail:C.authorThumbnail,submitButton:C.submitButton,imageButton:C.imageButton,cancelButton:C.cancelButton,emojiButton:C.emojiButton,emojis:C.emojis,emojiPicker:C.emojiPicker,aadcGuidelinesStateEntityKey:C.aadcGuidelinesStateEntityKey,openAadcDialog:C.openAadcDialog,unicodeEmojisUrl:C.unicodeEmojisUrl}};
_.n.onHideIdentityChip=function(C){_.Z(C,utS)&&this.set("data.placeholderText",_.Z(C,utS).placeholderText)};
R_.prototype.onYtCommentboxDismiss=R_.prototype.onYtCommentboxDismiss;R_.prototype.dataChanged=R_.prototype.dataChanged;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],R_.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.nK),_.Y("design:type",Object)],R_.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],R_.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],R_.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],R_.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],R_.prototype,"isOpen",void 0);_.R([_.L(),_.Y("design:type",Object)],R_.prototype,"commentDialog",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],R_.prototype,"engagementPanel",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],R_.prototype,"useSmallAvatars",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],R_.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],R_.prototype,"enableCreationBox",void 0);_.R([_.L(),_.Y("design:type",Boolean)],R_.prototype,"showCreateDialog",void 0);
_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],R_.prototype,"dataChanged",null);_.R([_.VG("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],R_.prototype,"onYtCommentboxDismiss",null);_.R([_.e({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],R_);
_.q(R_,"ytd-comment-simplebox-renderer",function(){if(NmP!==void 0)return NmP;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return NmP=C},{mode:1});var O0O;_.ae("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var YF=function(){var C=_.B.apply(this,arguments)||this;C.addHoverEffect=_.y("swatcheroo_comments_hover_effect");C.useSmallAvatars=_.y("small_avatars_for_comments");C.scrollingEnabled=_.y("web_comment_threading_scroll_on_collapse");C.threadHovered=!1;C.expanded=!1;C.removed=!1;C.addedReplies=[];C.actionMap=C.configureActionMap();C.toggleExpanded=function(){C.expanded=!C.expanded;!C.expanded&&C.scrollingEnabled&&_.rz(C.hostElement,"yt-scroll-to-comment-element",[C.commentElement])};
return C};
_.O(YF,_.B);_.n=YF.prototype;_.n.configureActionMap=function(){return _.y("web_delhi_comment_threads")?{"yt-create-comment-reply-action":"createCommentReplyAction","yt-remove-comment-action":"removeCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction"}:{}};
_.n.createCommentReplyAction=function(C){C=_.Z(C,ba$);if(C!=null&&C.contents){var F=C.replyToCommentId,G=C.parentCommentId,V,J=(V=this.commentViewModel)==null?void 0:V.commentId;(J===F||J===G&&!F)&&this.maybeAttachReply(C.contents)}};
_.n.maybeAttachReply=function(C){var F,G;(((F=this.commentEntity)==null?void 0:(G=F.properties)==null?void 0:G.replyLevel)||0)>=3?_.oo(this.hostElement,"yt-pushed-create-comment-reply",C):this.attachReply(C)};
_.n.onPushedCreateCommentReply=function(C){var F,G;(((F=this.commentEntity)==null?void 0:(G=F.properties)==null?void 0:G.replyLevel)||0)>=3||(this.attachReply(C.detail),C.stopPropagation())};
_.n.attachReply=function(C){var F;((F=this.data)==null?0:F.replies)?(F=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+F+".continuationItemRenderer")?F===0?this.push("addedReplies",C):this.splice("data.replies.commentRepliesRenderer.subThreads",F,0,C):this.push("data.replies.commentRepliesRenderer.subThreads",C)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[C],viewReplies:{buttonRenderer:{text:_.YB(_.iQ("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.n.onAppendContinuationItemsActionFinished=function(){this.addedReplies.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.da(this.addedReplies))),this.set("addedReplies",[]))};
_.n.removeCommentAction=function(C){C=_.Z(C,IEy);var F=C==null?void 0:C.commentId,G;F&&((G=this.commentViewModel)==null?void 0:G.commentId)===F&&this.maybeRemoveComment(C.actionResult)};
_.n.banAuthorAction=function(C){C=_.Z(C,JLm);var F=C==null?void 0:C.commentId,G;F&&((G=this.commentViewModel)==null?void 0:G.commentId)===F&&this.maybeRemoveComment(C.actionResult)};
_.n.hideReportedCommentAction=function(C){C=_.Z(C,M$u);var F=C==null?void 0:C.commentId,G;F&&((G=this.commentViewModel)==null?void 0:G.commentId)===F&&this.maybeRemoveComment(C.actionResult)};
_.n.maybeRemoveComment=function(C){C&&C.status==="STATUS_SUCCEEDED"&&(this.feedbackText=C.feedbackText||_.YB("Reply removed"),this.removed=!0)};
_.n.onTap=function(C){if(this.addHoverEffect&&!this.engagementPanel&&!_.dE(_.AR(C)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var F;((F=window.getSelection())==null?0:F.toString().length)||_.jR({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.n.attached=function(){var C=this;this.isSubThread&&(this.expanded=!0);var F;(F=this.commentThreadHitbox)==null||F.addEventListener("mouseover",function(){C.threadHovered=!0});
var G;(G=this.commentThreadHitbox)==null||G.addEventListener("mouseout",function(){C.threadHovered=!1});
var V;(V=this.commentThreadHitbox)==null||V.addEventListener("click",function(){C.maybeToggleExpanded()})};
_.n.maybeToggleExpanded=function(){var C,F,G,V=(C=this.data)==null?void 0:(F=C.replies)==null?void 0:(G=F.commentRepliesRenderer)==null?void 0:G.subThreads,J;(V==null?void 0:V.length)===1&&((J=_.Z(V[0],_.eZ))==null?0:J.button)&&this.expanded||this.toggleExpanded()};
_.I6.Object.defineProperties(YF.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var C;return _.Z((C=this.data)==null?void 0:C.commentViewModel,yLu)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var C,F,G;return _.y("web_delhi_comment_threads")&&!!((C=this.data)==null?0:(F=C.replies)==null?0:(G=F.commentRepliesRenderer)==null?0:G.subThreads)}}});
YF.prototype.onTap=YF.prototype.onTap;YF.prototype.onAppendContinuationItemsActionFinished=YF.prototype.onAppendContinuationItemsActionFinished;YF.prototype.onPushedCreateCommentReply=YF.prototype.onPushedCreateCommentReply;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],YF.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],YF.prototype,"ytdReduxBehavior",void 0);
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],YF.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],YF.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],YF.prototype,"addHoverEffect",void 0);_.R([_.L(),_.Y("design:type",Object)],YF.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],YF.prototype,"useSmallAvatars",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],YF.prototype,"scrollingEnabled",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],YF.prototype,"isSubThread",void 0);_.R([_.$z(".thread-hitbox"),_.Y("design:type",HTMLElement)],YF.prototype,"commentThreadHitbox",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],YF.prototype,"threadHovered",void 0);_.R([_.$z("#comment"),_.Y("design:type",HTMLElement)],YF.prototype,"commentElement",void 0);
_.R([_.L(),_.Y("design:type",Object)],YF.prototype,"expanded",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],YF.prototype,"removed",void 0);_.R([_.L(),_.Y("design:type",Object)],YF.prototype,"feedbackText",void 0);_.R([_.L(),_.Y("design:type",Array)],YF.prototype,"addedReplies",void 0);_.R([_.L({selector:FtS,selectorArgs:["commentViewModel.commentKey"]}),_.Y("design:type",Object)],YF.prototype,"commentEntity",void 0);
_.R([_.VG("yt-pushed-create-comment-reply"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],YF.prototype,"onPushedCreateCommentReply",null);_.R([_.VG("yt-append-continuation-items-action-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YF.prototype,"onAppendContinuationItemsActionFinished",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],YF.prototype,"commentViewModel",null);
_.R([_.M("data.replies"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],YF.prototype,"hasSubThreading",null);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],YF.prototype,"engagementPanel",void 0);_.R([_.VG("tap"),_.VG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],YF.prototype,"onTap",null);_.R([_.e({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],YF);
_.q(YF,"ytd-comment-thread-renderer",function(){if(O0O!==void 0)return O0O;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer added-replies="[[addedReplies]]" data="[[data.replies.commentRepliesRenderer]]" expanded="[[expanded]]" toggle-expanded="[[toggleExpanded]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return O0O=C},{mode:_.oN("kevlar_poly_si_batch_j025")?1:2});var XiO;var To=function(){var C=_.B.apply(this,arguments)||this;C.compactHeader=_.y("web_watch_compact_comments_header");C.hidePanelButton=!1;C.isPostSchedulingEnabled=_.y("enable_post_scheduling");C.hasFinishedStamping=!1;C.JSC$16039_handleOpenPostCommentDialogActionAfterStamp=!1;C.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return C};
_.O(To,_.B);_.n=To.prototype;
_.n.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"}}}};
_.n.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.n.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$16039_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.n.onYtServiceRequestSent=function(C,F){if(!_.y("kevlar_command_handler")&&F.actions)for(C=0;C<F.actions.length;C++){var G=F.actions[C];_.Z(G,hwm)&&_.ot(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.Z(G,hwm))}};
_.n.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var C;if(this.getPrefilledBackstagePostDialog((C=this.data)==null?void 0:C.actions)){_.ot(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var F=_.ot(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;F&&_.zH(this,function(){F.focus();F.openDialog&&F.openDialog()})}}else this.hasActionsChange=!0};
_.n.computeIsBackstage=function(C){return C};
_.n.onYtCommentboxDismiss=function(){_.ot(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.n.removePrefilledDialog=function(C){if(C==null?0:C.actions){for(var F=C.actions.length-1;F>=0;F--){var G=void 0;((G=_.Z(C.actions[F],Yir))==null?0:G.dialog)&&delete C.actions[F]}this.set("data",void 0);this.set("data",C)}};
_.n.getPrefilledBackstagePostDialog=function(C){if(C)for(var F=0;F<C.length;F++){var G=C[F],V=void 0;if((V=_.Z(G,Yir))==null?0:V.dialog)return _.Z(G,Yir).dialog}return null};
_.n.computeBackstagePostDialog=function(C){return C&&(this.getPrefilledBackstagePostDialog(C.actions)||C.createRenderer)};
_.n.dataChanged=function(){if(this.data){var C=this.data.customEmojis,F=this.data.unicodeEmojisUrl;_.mP.clear();F&&_.lVm(_.mP,F);C&&_.mP.load(C)}};
_.n.handleSignalActionOpenPostCommentDialogAction=function(){var C=_.ot(this.hostElement).querySelector("ytd-comment-simplebox-renderer");C?C.openDialog():this.JSC$16039_handleOpenPostCommentDialogActionAfterStamp=!0};
_.n.onPostHeaderTap=function(){var C;((C=this.data)==null?0:C.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.I6.Object.defineProperties(To.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.y("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var C,F,G,V,J,b,z;return!this.hidePanelButton&&_.y("kevlar_watch_comments_panel_button")&&((z=_.Z((C=this.data)==null?void 0:(F=C.sortMenu)==null?void 0:(G=F.sortFilterSubMenuRenderer)==null?void 0:(V=G.subMenuItems)==null?void 0:(J=V[0])==null?void 0:(b=J.serviceEndpoint)==null?void 0:b.commandMetadata,_.GU))==null?void 0:z.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.iQ("MINIPLAYER_EXPAND_LABEL"),text:_.eN(_.iQ("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
To.prototype.dataChanged=To.prototype.dataChanged;To.prototype.onYtCommentboxDismiss=To.prototype.onYtCommentboxDismiss;To.prototype.observePrefilledBackstagePostDialog=To.prototype.observePrefilledBackstagePostDialog;To.prototype.onYtServiceRequestSent=To.prototype.onYtServiceRequestSent;To.prototype.onStampFinished=To.prototype.onStampFinished;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],To.prototype,"ytComponentBehavior",void 0);
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],To.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],To.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],To.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],To.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],To.prototype,"compactHeader",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],To.prototype,"engagementPanel",void 0);_.R([_.L(),_.Y("design:type",Object)],To.prototype,"hidePanelButton",void 0);_.R([_.L({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],To.prototype,"isBackstage",void 0);_.R([_.L({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.Y("design:type",Object)],To.prototype,"backstagePostDialog",void 0);
_.R([_.L(),_.Y("design:type",Object)],To.prototype,"isPostSchedulingEnabled",void 0);_.R([_.L({reflectToAttribute:!0}),_.M("data","showCommentsPanelButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],To.prototype,"useSpaceBetween",null);_.R([_.L({reflectToAttribute:!0}),_.M("data","hidePanelButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],To.prototype,"showCommentsPanelButton",null);
_.R([_.M("data","showCommentsPanelButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],To.prototype,"commentsPanelButtonData",null);_.R([_.VG("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],To.prototype,"onStampFinished",null);_.R([_.VG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Sn]),_.Y("design:returntype")],To.prototype,"onYtServiceRequestSent",null);
_.R([_.iP("data.actions"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],To.prototype,"observePrefilledBackstagePostDialog",null);_.R([_.VG("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],To.prototype,"onYtCommentboxDismiss",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],To.prototype,"dataChanged",null);
_.R([_.e({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],To);
_.q(To,"ytd-comments-header-renderer",function(){if(XiO!==void 0)return XiO;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" on-click="onPostHeaderTap" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return XiO=C},{mode:1});var wiS;var o_=function(){return _.B.apply(this,arguments)||this};
_.O(o_,_.B);_.R([_.L(),_.Y("design:type",Object)],o_.prototype,"data",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],o_.prototype,"ytRendererBehavior",void 0);_.R([_.e({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],o_);
_.q(o_,"ytd-destination-button-renderer",function(){if(wiS!==void 0)return wiS;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return wiS=C},{mode:1});var Mx$;var r4=function(){var C=_.B.apply(this,arguments)||this;C.isRichGrid=!1;C.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return C};
_.O(r4,_.B);_.n=r4.prototype;_.n.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.n.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.n.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.n.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var C;if((C=this.data)==null||!C.isExpanded){C=this.hostElement.clientWidth;var F;if(C&&(F=this.data)!=null&&F.destinationButtons){F=Math.floor((C+4)/214);C=this.data.destinationButtons.length;var G=Math.ceil(C/F);this.fullyVisibleRows=C%F===1&&G===2?1:Math.min(G,2);this.isShowMoreVisible=this.fullyVisibleRows<G}}}};
_.n.updateRichGridDestinationButtonsVisibility=function(){var C,F;if(this.isRichGrid&&((C=this.data)==null||!C.isExpanded)&&(F=this.data)!=null&&F.destinationButtons){C=this.richGridItemsPerRow+1;F=this.data.destinationButtons.length;var G=Math.ceil(F/C);this.fullyVisibleRows=F%C===1&&G===2?1:Math.min(G,2);this.isShowMoreVisible=this.fullyVisibleRows<G}};
_.n.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
r4.prototype.updateRichGridDestinationButtonsVisibility=r4.prototype.updateRichGridDestinationButtonsVisibility;_.R([_.L(),_.Y("design:type",Object)],r4.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Number)],r4.prototype,"fullyVisibleRows",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],r4.prototype,"isShowMoreVisible",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],r4.prototype,"isRichGrid",void 0);
_.R([_.L({selector:_.lK,value:0}),_.Y("design:type",Number)],r4.prototype,"richGridItemsPerRow",void 0);_.R([_.L(),_.Y("design:type",Object)],r4.prototype,"gridStateActionMap",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],r4.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],r4.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],r4.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],r4.prototype,"ytdReduxBehavior",void 0);_.R([_.iP("data","richGridItemsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],r4.prototype,"updateRichGridDestinationButtonsVisibility",null);_.R([_.e({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],r4);
_.q(r4,"ytd-destination-shelf-renderer",function(){if(Mx$!==void 0)return Mx$;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Mx$=C},{mode:1});var S$E;var Ke=function(){return _.B.apply(this,arguments)||this};
_.O(Ke,_.B);Ke.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"}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Ke.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Ke.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Ke.prototype,"data",void 0);_.R([_.e({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],Ke);
_.q(Ke,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(S$E!==void 0)return S$E;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return S$E=C},{mode:1});var LjG;var Dj=function(){var C=_.B.apply(this,arguments)||this;C.disableAnimation=!1;C.isSlimlineSurvey=!1;C.isSlimlineSurveyFollowUp=!1;C.isShortsStyle=!1;return C};
_.O(Dj,_.B);Dj.prototype.onTap=function(C){C.preventDefault();this.data&&_.oo(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.I6.Object.defineProperties(Dj.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 C,F,G,V,J;return((C=this.data)==null?0:C.checked)?(F=this.data)==null?void 0:(G=F.onStateIcon)==null?void 0:G.iconType:(V=this.data)==null?void 0:(J=V.defaultStateIcon)==null?void 0:J.iconType}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Dj.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Dj.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Dj.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],Dj.prototype,"disableAnimation",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Dj.prototype,"isSlimlineSurvey",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Dj.prototype,"isSlimlineSurveyFollowUp",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Dj.prototype,"isShortsStyle",void 0);_.R([_.M("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Dj.prototype,"isAnimatedIcon",null);
_.R([_.M("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Dj.prototype,"iconSize",null);_.R([_.M("isShortsStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Dj.prototype,"isDarkTheme",null);_.R([_.M("data.checked"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Dj.prototype,"icon",null);_.R([_.e({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],Dj);
_.q(Dj,"ytd-rating-survey-option-renderer",function(){if(LjG!==void 0)return LjG;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return LjG=C},{mode:2});var Bmr;var pe=function(){var C=_.B.apply(this,arguments)||this;C.firstResponseText=null;C.lastResponseText=null;C.selectedNonStarOption=null;C.hideOptions=!1;C.hideUndoButton=!0;C.disableAnimation=!1;C.showResponseRangeText=!1;C.selectedRatingIndex=-1;C.isSlimlineSurvey=!1;C.isSlimlineSurveyFollowUp=!1;C.isShortsStyle=!1;C.slimlineSurveyRatingSelectedIndex=-1;return C};
_.O(pe,_.B);_.n=pe.prototype;_.n.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.n.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.n.onOptionChange=function(C,F){var G=this;C=F.onStateIcon&&F.defaultStateIcon&&F.onStateIcon.iconType===F.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(z,Q){z.responseText===F.responseText?G.isSlimlineSurvey?(G.selectedRatingIndex=Q,G.ytdReduxBehavior.dispatch(qU8(Q))):(G.setSurveyOptionValue(Q,!0,"checked"),G.setSurveyOptionValue(Q,!0,"selected")):(G.setSurveyOptionValue(Q,!1,"checked"),G.setSurveyOptionValue(Q,
!1,"selected"))});
else if(C)this.selectedNonStarOption=F,this.hideOptions=!0;else{var V=this.ytRendererBehavior.getSimpleString(F.responseText),J=!0;this.getOptionRenderers().forEach(function(z,Q){G.setSurveyOptionValue(Q,J,"checked");G.setSurveyOptionValue(Q,!1,"selected");G.ytRendererBehavior.getSimpleString(z.responseText)===V&&(J=!1,G.setSurveyOptionValue(Q,!0,"selected"))})}C=F.responseEndpoint;
var b;F.followUpCommand&&(b=_.Z(F.followUpCommand,d78));this.isSlimlineSurvey?(this.resetComponent(),_.rz(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.rz(this.hostElement,"ytd-inline-survey-rating-select-action",[C,b])};
_.n.showSelectedOption=function(){var C=this;_.gT.addJob(function(){var F=C.getOptionRenderers()[C.slimlineSurveyRatingSelectedIndex];C.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),F)},8,100)};
_.n.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(C){var F;return(F=_.Z(C,sYG))!=null?F:{}}):[]};
_.n.onUndoClick=function(){this.resetComponent();_.rz(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.n.setSurveyOptionValue=function(C,F,G){this.notifyPath("data.ratings."+C+".ratingSurveyOptionRenderer."+G);this.set("data.ratings."+C+".ratingSurveyOptionRenderer."+G,F)};
_.n.resetComponent=function(){var C=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var F=this.getOptionRenderers(),G,V;this.firstResponseText=(V=(G=F[0])==null?void 0:G.responseText)!=null?V:null;var J,b;this.lastResponseText=(b=(J=F[F.length-1])==null?void 0:J.responseText)!=null?b:null;F.forEach(function(z,Q){C.setSurveyOptionValue(Q,!1,"checked");C.setSurveyOptionValue(Q,!1,"selected")})};
_.I6.Object.defineProperties(pe.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
pe.prototype.onOptionChange=pe.prototype.onOptionChange;pe.prototype.dataChanged=pe.prototype.dataChanged;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],pe.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],pe.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],pe.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],pe.prototype,"data",void 0);
_.R([_.L(),_.Y("design:type",Object)],pe.prototype,"firstResponseText",void 0);_.R([_.L(),_.Y("design:type",Object)],pe.prototype,"lastResponseText",void 0);_.R([_.L(),_.Y("design:type",Object)],pe.prototype,"selectedNonStarOption",void 0);_.R([_.L(),_.Y("design:type",Object)],pe.prototype,"hideOptions",void 0);_.R([_.L(),_.Y("design:type",Object)],pe.prototype,"hideUndoButton",void 0);_.R([_.L(),_.Y("design:type",Object)],pe.prototype,"disableAnimation",void 0);
_.R([_.L(),_.Y("design:type",Object)],pe.prototype,"showResponseRangeText",void 0);_.R([_.L(),_.Y("design:type",Object)],pe.prototype,"selectedRatingIndex",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],pe.prototype,"isSlimlineSurvey",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],pe.prototype,"isSlimlineSurveyFollowUp",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],pe.prototype,"isShortsStyle",void 0);_.R([_.L({selector:function(C){return C.ui.slimlineSurveyRatingSelectedIndex}}),
_.Y("design:type",Object)],pe.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.R([_.M("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],pe.prototype,"isSingleSelect",null);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pe.prototype,"dataChanged",null);
_.R([_.VG("ytd-rating-survey-option-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],pe.prototype,"onOptionChange",null);_.R([_.e({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],pe);
_.q(pe,"ytd-rating-survey-renderer",function(){if(Bmr!==void 0)return Bmr;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Bmr=C},{mode:1});var vgm;var fIP;var hc7;var Z8A=(C3.FIRSTDAYOFWEEK+1)%7,c1l=function(C,F,G,V){var J="";if(V.selection&&U$q(V.selection))DR(C,V.selection)&&(J+=" selected");else if(V.selection&&H8I(V.selection)){var b=V.selection.selectionState||"START_DATE";DR(C,V.selection.start)&&(J+=" period-start ",b==="START_DATE"&&(J+="selected"));DR(C,V.selection.end)&&(J+=" period-end ",b==="END_DATE"&&(J+="selected"));pY(C,V.selection.start)||pY(V.selection.end,C)||(J+=" highlighted")}if(pY(F,V.start)||pY(V.end,F))J+=" disabled";V.circleToday&&
DR(F,G)&&(J+=" today");return J};var m0=function(){return _.B.apply(this,arguments)||this};
_.O(m0,_.B);_.n=m0.prototype;_.n.attached=function(){var C=this;_.zH(this,function(){C.JSC$16073_calendarMain.scrollHeight>0&&(C.calendarConfig.selection?C.scrollToDate(lxT(C.calendarConfig.selection)):C.scrollToDate(C.calendarConfig.end))})};
_.n.updateSelection=function(C){C=NOi(Object.assign({},this.calendarConfig,{selection:C}),c1l);this.splice.apply(this,["renderData.months",0,C.length].concat(_.da(C)))};
_.n.scrollToDate=function(C){this.renderData&&(C=O85(C,this.renderData),C!==void 0&&this.JSC$16073_calendarMain.scrollToIndex(C))};
_.n.scrollToNextMonth=function(){this.JSC$16073_calendarMain.scrollToIndex(this.JSC$16073_calendarMain.firstVisibleIndex+1)};
_.n.scrollToPrevMonth=function(){this.JSC$16073_calendarMain.firstVisibleIndex===0&&this.JSC$16073_calendarMain.scrollTo(0,0);this.JSC$16073_calendarMain.scrollToIndex(this.JSC$16073_calendarMain.firstVisibleIndex-1)};
_.n.handleDayClick=function(C){_.rz(this.hostElement,"ytd-calendar-date-clicked",[C.model.day.date])};
_.n.handleDayMouseDown=function(C){C.preventDefault();_.rz(this.hostElement,"ytd-calendar-date-mousedown",[C.model.day.date])};
_.n.handleDayMouseUp=function(C){_.rz(this.hostElement,"ytd-calendar-date-mouseup",[C.model.day.date])};
_.n.handleDayMouseEnter=function(C){C.preventDefault();_.rz(this.hostElement,"ytd-calendar-date-mouseenter",[C.model.day.date])};
_.n.handleDayMouseLeave=function(C){_.rz(this.hostElement,"ytd-calendar-date-mouseleave",[C.model.day.date])};
_.I6.Object.defineProperties(m0.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var C=this.calendarConfig,F=c1l;F=F===void 0?c1l:F;for(var G=[],V=0;V<7;V++)G.push(C3.NARROWWEEKDAYS[(V+Z8A)%7]);return{months:NOi(C,F),daysOfWeekLabel:G}}}});
_.R([_.L(),_.Y("design:type",Object)],m0.prototype,"calendarConfig",void 0);_.R([_.$z("#calendar-main"),_.Y("design:type",Object)],m0.prototype,"JSC$16073_calendarMain",void 0);_.R([_.M("calendarConfig"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],m0.prototype,"renderData",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],m0);
_.q(m0,"ytd-scrollable-calendar",function(){if(hc7!==void 0)return hc7;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return hc7=C},{mode:2});var A1u;var ecr;var C6=function(){var C=_.B.apply(this,arguments)||this;C.hideCharCounter=!1;C.hideLabel=!1;C.noLabelFloat=!1;C.autoValidate=!0;C.invalid=!1;C.disabled=!1;C.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return C};
_.O(C6,_.B);_.n=C6.prototype;_.n.reset=function(C){this.value=C&&this.data?this.data.value=C:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.n.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.n.focusTextInput=function(){this.input.focus()};
_.n.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()};
_.n.valueChanged=function(){var C,F;if(((C=this.data)==null?0:C.value)||((F=this.data)==null?void 0:F.value)==="")this.value=this.data.value;else{var G;((G=this.data)==null?void 0:G.value)!==void 0||this.value||(this.value="")}};
_.n.computeLabel=function(C,F){return F?"":_.dd(C)};
_.n.computeAriaLabel=function(C,F){return F?_.dd(C):""};
_.n.computeErrorMessage=function(C,F,G,V){!C&&F?C=G||this.strings.REQUIRED_LABEL:(C=_.dd(V),C=_.zE(C,"&")?"document"in _.VT?phP(C):m_O(C):C);return C};
_.n.computeType=function(C){return C==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.n.onTextValueChanged=function(C){this.value=C.detail.value;var F;(F=this.onValueChanged)==null||F.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.n.handleUpdateTextInputFormFieldRendererCommand=function(C){(C=_.Z(C,$7o))&&this.data&&this.data.id===C.id&&(C.invalid!==void 0&&(this.invalid=C.invalid),C.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",C.invalidValueErrorMessage))};
_.n.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G6("value-changed",this.value))};
_.n.updateInvalidFromBinding=function(C){this.invalid=C.detail.value};
_.I6.Object.defineProperties(C6.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var C;return!((C=this.data)==null||!C.isMultiline)}}});
C6.prototype.valueChangedForBinding=C6.prototype.valueChangedForBinding;C6.prototype.valueChanged=C6.prototype.valueChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],C6.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],C6.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],C6.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],C6.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",String)],C6.prototype,"value",void 0);_.R([_.L(),_.Y("design:type",String)],C6.prototype,"pattern",void 0);_.R([_.L(),_.Y("design:type",String)],C6.prototype,"errorMessage",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],C6.prototype,"componentStyle",void 0);_.R([_.L(),_.Y("design:type",Object)],C6.prototype,"hideCharCounter",void 0);
_.R([_.L(),_.Y("design:type",Object)],C6.prototype,"hideLabel",void 0);_.R([_.L(),_.Y("design:type",Object)],C6.prototype,"noLabelFloat",void 0);_.R([_.L(),_.Y("design:type",Function)],C6.prototype,"onValueChanged",void 0);_.R([_.L(),_.Y("design:type",Boolean)],C6.prototype,"isMultilineOverride",void 0);_.R([_.L(),_.Y("design:type",Object)],C6.prototype,"autoValidate",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],C6.prototype,"invalid",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],C6.prototype,"disabled",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],C6.prototype,"enableOverlayTheme",void 0);_.R([_.L({value:{REQUIRED_LABEL:_.iQ("REQUIRED_LABEL",void 0,"Required")}}),_.Y("design:type",Object)],C6.prototype,"strings",void 0);_.R([_.$z("#input"),_.Y("design:type",Object)],C6.prototype,"input",void 0);
_.R([_.M("data","isMultilineOverride"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],C6.prototype,"isMultiline",null);_.R([_.zp("data.value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],C6.prototype,"valueChanged",null);_.R([_.iP("value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],C6.prototype,"valueChangedForBinding",null);_.R([_.Z5({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],C6);
_.q(C6,"yt-text-input-form-field-renderer",function(){if(ecr===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;A1u===void 0&&(A1u=document.createElement("template"));var V=A1u;G.call(F,V.content.cloneNode(!0),C.content.firstChild);ecr=C}C=ecr;return C},{mode:2});var j0=function(){var C=_.B.apply(this,arguments)||this;C.data=void 0;C.selectionState="START_DATE";C.isStartDateInvalid=!1;C.isEndDateInvalid=!1;C.autoapply=!1;C.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 C};
_.O(j0,_.B);_.n=j0.prototype;_.n.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"}}}}};
_.n.focus=function(){this.startDateInput.focus()};
_.n.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:me(this.data.selection.start),end:me(this.data.selection.end)})};
_.n.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.n.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.r2(this.selectionState)}};
_.n.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.n.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.n.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.n.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var C=this.calendar.calendarConfig,F=C.end;C=wGA({start:C.start,end:this.endDate||F},this.startDateInput.value||"");this.isStartDateInvalid=!C.isValid;C.isValid&&(C=C.value,this.selection=this.endDate?{start:C,end:this.endDate}:C,this.calendar.scrollToDate(C));this.updateInvalidState()}};
_.n.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var C=this.calendar.calendarConfig,F=C.start;C=wGA({start:this.startDate||F,end:C.end},this.endDateInput.value||"");this.isEndDateInvalid=!C.isValid;C.isValid&&(C=C.value,this.selection={start:this.startDate,end:C},this.calendar.scrollToDate(C));this.updateInvalidState()}};
_.n.handleCalendarDateClicked=function(C){var F=this.selection&&lxT(this.selection),G=this.selection&&yf9(this.selection);F&&!pY(C,F)&&this.selectionState==="END_DATE"?(this.selection={start:F,end:C},this.selectionState="START_DATE"):(G&&!pY(G,C)?this.selection={start:C,end:G}:this.selection=C,this.selectionState="END_DATE")};
_.n.handleCalendarDateMouseDown=function(C){this.selection&&!U$q(this.selection)&&(this.dragPivot=DR(C,this.selection.start)?this.selection.end:DR(C,this.selection.end)?this.selection.start:C)};
_.n.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.n.handleCalendarDateMouseEnter=function(C){this.dragPivot&&(this.selection={start:function(F,G){return pY(F,G)?F:G}(this.dragPivot,C),
end:function(F,G){return pY(F,G)?G:F}(this.dragPivot,C)},this.dragPivot||(this.selectionState="START_DATE"))};
_.n.handleCalendarDateMouseLeave=function(){};
_.n.handleCalendarSubmitDateRange=function(){this.selection&&!U$q(this.selection)&&_.rz(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.n.updateInvalidState=function(){var C=function(F,G){G?F.setAttribute("invalid",""):F.removeAttribute("invalid")};
C(this.startDateInput,this.isStartDateInvalid);C(this.endDateInput,this.isEndDateInvalid)};
_.n.updateDateStrings=function(){this.selection&&(U$q(this.selection)?kKZ(this.selection):(kKZ(this.selection.start),kKZ(this.selection.end)))};
_.n.updateCalendarSelection=function(C){this.calendar.updateSelection(Object.assign({},C,{selectionState:this.selectionState}))};
_.n.updateIsStartDateInvalidFromBinding=function(C){this.isStartDateInvalid=C.detail.value};
_.n.updateIsEndDateInvalidFromBinding=function(C){this.isEndDateInvalid=C.detail.value};
_.n.updateStartDateStringFromBinding=function(){};
_.n.updateEndDateStringFromBinding=function(){};
_.I6.Object.defineProperties(j0.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:me(this.data.dateRangeStart),end:me(this.data.dateRangeEnd),selection:{start:me(this.data.selection.start),end:me(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)==null?void 0:C.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&lxT(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&yf9(this.selection)}}});
j0.prototype.resetTextboxes=j0.prototype.resetTextboxes;j0.prototype.observeSelection=j0.prototype.observeSelection;j0.prototype.dataChanged=j0.prototype.dataChanged;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],j0.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],j0.prototype,"ytRendererstamperBehavior",void 0);_.R([_.$z("#calendar"),_.Y("design:type",Object)],j0.prototype,"calendar",void 0);
_.R([_.$z("#start-date"),_.Y("design:type",Object)],j0.prototype,"startDateInput",void 0);_.R([_.$z("#end-date"),_.Y("design:type",Object)],j0.prototype,"endDateInput",void 0);_.R([_.L(),_.Y("design:type",Object)],j0.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],j0.prototype,"selection",void 0);_.R([_.L(),_.Y("design:type",String)],j0.prototype,"selectionState",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],j0.prototype,"calendarConfig",null);
_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],j0.prototype,"errorMessage",null);_.R([_.M("selection"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],j0.prototype,"startDate",null);_.R([_.M("selection"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],j0.prototype,"endDate",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],j0.prototype,"dataChanged",null);
_.R([_.iP("selection","selectionState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],j0.prototype,"observeSelection",null);_.R([_.iP("selectionState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],j0.prototype,"resetTextboxes",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],j0);
_.q(j0,"ytd-date-period-picker-renderer",function(){if(fIP!==void 0)return fIP;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return fIP=C},{mode:1});var Fb=function(){var C=_.B.apply(this,arguments)||this;var F={};C.actionMap=(F["ytd-date-period-picker-apply"]="handleDateRangeUpdated",F);return C};
_.O(Fb,_.B);Fb.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
Fb.prototype.handleDateRangeUpdated=function(){};
_.R([_.L(),_.Y("design:type",Object)],Fb.prototype,"data",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],Fb.prototype,"actionHandlerBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Fb.prototype,"rendererstamperBehavior",void 0);_.R([_.e({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],Fb);
_.q(Fb,"ytd-report-history-section-header-renderer",function(){if(vgm!==void 0)return vgm;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return vgm=C},{mode:1});var dpr;var xpm;var sgm;var Gm=function(){return _.B.apply(this,arguments)||this};
_.O(Gm,_.B);_.I6.Object.defineProperties(Gm.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var C,F;return((C=this.data)==null?0:(F=C.icon)==null?0:F.iconType)?_.p5(this.data.icon.iconType):""}}});
_.R([_.L(),_.Y("design:type",Object)],Gm.prototype,"data",void 0);_.R([_.M("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Gm.prototype,"icon",null);_.R([_.e({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],Gm);
_.q(Gm,"ytd-report-history-table-text-cell-renderer",function(){if(sgm!==void 0)return sgm;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return sgm=C},{mode:1});var Vu=function(){return _.B.apply(this,arguments)||this};
_.O(Vu,_.B);Vu.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Vu.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Vu.prototype,"data",void 0);_.R([_.e({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],Vu);
_.q(Vu,"ytd-report-history-table-reason-cell-renderer",function(){if(xpm!==void 0)return xpm;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return xpm=C},{mode:1});var iO=function(){return _.B.apply(this,arguments)||this};
_.O(iO,_.B);iO.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"}}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],iO.prototype,"rendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],iO.prototype,"data",void 0);_.R([_.e({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],iO);
_.q(iO,"ytd-report-history-table-cell-renderer",function(){if(dpr!==void 0)return dpr;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);
return dpr=C},{mode:1});var q$S;var Jp=function(){var C=_.B.apply(this,arguments)||this;C.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 C};
_.O(Jp,_.B);Jp.prototype.onDataChanged=function(){var C;if((C=this.data)==null?0:C.style)this.componentStyle=this.getStyleName(this.data.style)};
Jp.prototype.getCellForColumn=function(C){return this.cells.find(function(F){var G;return((G=_.Z(F==null?void 0:F.cell,gHP)||_.Z(F==null?void 0:F.cell,PJy))==null?void 0:G.columnId)===C.type})};
Jp.prototype.getClassForColumn=function(C){switch(C){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
Jp.prototype.getStyleName=function(C){switch(C){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.I6.Object.defineProperties(Jp.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var C;return(((C=this.data)==null?void 0:C.cells)||[]).map(function(F){return _.Z(F,qX$)})}}});
Jp.prototype.onDataChanged=Jp.prototype.onDataChanged;_.R([_.L(),_.Y("design:type",Object)],Jp.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Array)],Jp.prototype,"columnRenderData",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],Jp.prototype,"componentStyle",void 0);_.R([_.M("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],Jp.prototype,"cells",null);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Jp.prototype,"onDataChanged",null);_.R([_.e({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],Jp);
_.q(Jp,"ytd-report-history-table-row-renderer",function(){if(q$S!==void 0)return q$S;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return q$S=C},{mode:1});var Pyl;var ggu;var Mcw={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},Sxf={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var bO=function(){return _.B.apply(this,arguments)||this};
_.O(bO,_.B);bO.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"}}}}}};
bO.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.I6.Object.defineProperties(bO.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?0:C.columns)?h9i(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return vms(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var C=this.tableSpec,F=Mcw;F=F===void 0?Sxf:F;F=fxS(C.columnDimensions,C.columnsToShow||[],F);C=0;F=_.u(F);for(var G=F.next();!G.done;G=F.next())G=G.value,C+=G.minWidth+G.paddingLeft+G.paddingRight;return C}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.R([_.w(_.G1),_.Y("design:type",Object)],bO.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],bO.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],bO.prototype,"data",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],bO.prototype,"tableSpec",null);_.R([_.M("tableSpec"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],bO.prototype,"columnRenderData",null);
_.R([_.M("tableSpec"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],bO.prototype,"totalMinWidth",null);_.R([_.M("totalMinWidth"),_.Y("design:type",String),_.Y("design:paramtypes",[])],bO.prototype,"tableWidthStyle",null);_.R([_.e({is:"ytd-table-renderer",disableElementRegistration:!0})],bO);
_.q(bO,"ytd-table-renderer",function(){if(ggu!==void 0)return ggu;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return ggu=C},{mode:1});var n6=function(){return _.B.apply(this,arguments)||this};
_.O(n6,_.B);n6.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}}}}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],n6.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],n6.prototype,"data",void 0);_.R([_.e({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],n6);
_.q(n6,"ytd-report-reason-history-modal-renderer",function(){if(Pyl!==void 0)return Pyl;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Pyl=C},{mode:1});var RcO;var Y$l;var Tm2;var uO=function(){return _.B.apply(this,arguments)||this};
_.O(uO,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],uO.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],uO.prototype,"data",void 0);_.R([_.e({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],uO);
_.q(uO,"ytd-profile-column-stats-entry-renderer",function(){if(Tm2!==void 0)return Tm2;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Tm2=C},{mode:1});var ogS;var zm=function(){return _.B.apply(this,arguments)||this};
_.O(zm,_.B);zm.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],zm.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],zm.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],zm.prototype,"data",void 0);_.R([_.e({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],zm);
_.q(zm,"ytd-profile-column-stats-renderer",function(){if(ogS!==void 0)return ogS;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return ogS=C},{mode:1});var r12;var Qu=function(){return _.B.apply(this,arguments)||this};
_.O(Qu,_.B);_.I6.Object.defineProperties(Qu.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var C;if((C=this.data)==null||!C.useThumbnailSize)return 80;var F,G;C=(F=this.data)==null?void 0:(G=F.thumbnail)==null?void 0:G.thumbnails;var V;return C&&((V=C[0])==null?void 0:V.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var C;if((C=this.data)==null||!C.useThumbnailSize)return 80;var F,G;C=(F=this.data)==null?void 0:(G=F.thumbnail)==null?void 0:G.thumbnails;var V;return C&&((V=C[0])==null?void 0:V.height)||80}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Qu.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Qu.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],Qu.prototype,"componentStyle",void 0);_.R([_.M("data.useThumbnailSize"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Qu.prototype,"thumbnailWidth",null);
_.R([_.M("data.useThumbnailSize"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Qu.prototype,"thumbnailHeight",null);_.R([_.e({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],Qu);
_.q(Qu,"ytd-profile-column-user-info-renderer",function(){if(r12!==void 0)return r12;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return r12=C},{mode:1});var IS=function(){return _.B.apply(this,arguments)||this};
_.O(IS,_.B);IS.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]]"}}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],IS.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],IS.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],IS.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],IS.prototype,"componentStyle",void 0);_.R([_.e({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],IS);
_.q(IS,"ytd-profile-column-renderer",function(){if(Y$l!==void 0)return Y$l;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Y$l=C},{mode:1});var EU=function(){var C=_.B.apply(this,arguments)||this;C.componentStyle="NON_CENTERED_PROFILE";return C};
_.O(EU,_.B);EU.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
EU.prototype.getIcon=function(C){return C?"settings:"+C.toLowerCase():null};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],EU.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],EU.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],EU.prototype,"data",void 0);_.R([_.e({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],EU);
_.q(EU,"ytd-page-introduction-renderer",function(){if(RcO!==void 0)return RcO;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return RcO=C},{mode:1});var Kjo;var Wq=function(){return _.B.apply(this,arguments)||this};
_.O(Wq,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Wq.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Wq.prototype,"data",void 0);_.R([_.e({is:"ytd-report-description-renderer",disableElementRegistration:!0})],Wq);
_.q(Wq,"ytd-report-description-renderer",function(){if(Kjo!==void 0)return Kjo;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Kjo=C},{mode:1});var Dp7;var piu;var tp=function(){return _.B.apply(this,arguments)||this};
_.O(tp,_.B);tp.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],tp.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],tp.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],tp.prototype,"data",void 0);_.R([_.e({is:"ytd-video-report-renderer",disableElementRegistration:!0})],tp);
_.q(tp,"ytd-video-report-renderer",function(){if(piu!==void 0)return piu;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return piu=C},{mode:1});var mpr;_.ae("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.ae("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var aS=function(){return _.B.apply(this,arguments)||this};
_.O(aS,_.B);aS.prototype.configureRendererStamper=function(){return{"data.button":{id:"message-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.icon":{id:"icon",mapping:{iconType:{component:"yt-icon",properties:{icon:"[[data.icon.iconType]]"}}}},"data.thumbnail":{id:"thumbnail",mapping:{messageThumbnailRenderer:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail.messageThumbnailRenderer.thumbnailDetails]]"}}}}}};
aS.prototype.computeMessageStyle=function(C){return C};
aS.prototype.computeButtonOverride=function(C){var F;if((C==null?0:(F=C.style)==null?0:F.value)&&C.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],aS.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],aS.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],aS.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],aS.prototype,"shelf",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],aS.prototype,"panel",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.Y("design:type",Boolean)],aS.prototype,"componentStyle",void 0);_.R([_.L({computed:"computeButtonOverride(data)"}),_.Y("design:type",Object)],aS.prototype,"buttonOverride",void 0);_.R([_.e({is:"ytd-message-renderer",disableElementRegistration:!0})],aS);
_.q(aS,"ytd-message-renderer",function(){if(mpr!==void 0)return mpr;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<div id="thumbnail" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return mpr=C},{mode:1});var kj=function(){return _.B.apply(this,arguments)||this};
_.O(kj,_.B);kj.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"}}}};
kj.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
kj.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.I6.Object.defineProperties(kj.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var C,F;return!!(((C=this.data)==null?0:C.header)&&((F=this.data)==null?0:F.table))}}});
kj.prototype.onRequestError=kj.prototype.onRequestError;_.R([_.w(_.G1),_.Y("design:type",Object)],kj.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],kj.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],kj.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],kj.prototype,"data",void 0);
_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],kj.prototype,"isUnifiedReportHistory",null);_.R([_.VG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kj.prototype,"onRequestError",null);_.R([_.e({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],kj);
_.q(kj,"ytd-report-history-section-renderer",function(){if(Dp7!==void 0)return Dp7;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Dp7=C},{mode:1});var CjS;var UU=function(){var C=_.B.apply(this,arguments)||this;C.answerExpanded=!1;return C};
_.O(UU,_.B);UU.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],UU.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],UU.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],UU.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],UU.prototype,"answerExpanded",void 0);_.R([_.e({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],UU);
_.q(UU,"ytd-handles-claiming-faq-renderer",function(){if(CjS!==void 0)return CjS;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return CjS=C},{mode:1});var jCE;var F6E=function(){return _.B.apply(this,arguments)||this};
_.O(F6E,_.B);_.R([_.L(),_.Y("design:type",Object)],F6E.prototype,"data",void 0);_.R([_.e({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],F6E);
_.q(F6E,"ytd-handles-claiming-faq-section-renderer",function(){if(jCE!==void 0)return jCE;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return jCE=C},{mode:1});var G2u;var Hq=function(){var C=_.B.apply(this,arguments)||this;C.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";C.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";C.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";C.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";C.leftSquiggly=C.leftSquigglyLight;C.rightSquiggly=C.rightSquigglyLight;
C.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};C.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return C};
_.O(Hq,_.B);_.n=Hq.prototype;_.n.updateLeftSquigglyStyle=function(){_.jr(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.n.updateRightSquigglyStyle=function(){_.jr(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.n.ready=function(){var C=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(C)};
_.n.onDarkModeToggledAction=function(C){C!==this.isDarkTheme&&(this.set("isDarkTheme",C),C?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.n.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
Hq.prototype.updateRightSquigglyStyle=Hq.prototype.updateRightSquigglyStyle;Hq.prototype.updateLeftSquigglyStyle=Hq.prototype.updateLeftSquigglyStyle;_.R([_.L(),_.Y("design:type",Object)],Hq.prototype,"data",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],Hq.prototype,"isDarkTheme",void 0);_.R([_.L(),_.Y("design:type",String)],Hq.prototype,"leftSquiggly",void 0);_.R([_.L(),_.Y("design:type",String)],Hq.prototype,"rightSquiggly",void 0);
_.R([_.iP("leftSquiggly"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hq.prototype,"updateLeftSquigglyStyle",null);_.R([_.iP("rightSquiggly"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hq.prototype,"updateRightSquigglyStyle",null);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Hq.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Hq.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],Hq.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Hq.prototype,"actionButtonOverride",void 0);_.R([_.e({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],Hq);
_.q(Hq,"ytd-handles-claiming-header-renderer",function(){if(G2u!==void 0)return G2u;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return G2u=C},{mode:1});var V5E;var lO=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};C.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";C.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";C.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";C.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
C.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";C.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";C.image0SquigglyBackground=C.image0LightSquigglyBackground;C.image1SquigglyBackground=C.image1LightSquigglyBackground;C.image3SquigglyBackground=C.image3LightSquigglyBackground;return C};
_.O(lO,_.B);_.n=lO.prototype;_.n.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.n.onDataChanged=function(){this.updateTitleAndImages()};
_.n.onThemeChanged=function(){this.updateTitleAndImages()};
_.n.onDarkModeToggledAction=function(C){C!==this.isDarkTheme&&(this.isDarkTheme=C)};
_.n.updateImage0SquigglyBackground=function(){_.jr(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.n.updateImage1SquigglyBackground=function(){_.jr(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.n.updateImage3SquigglyBackground=function(){_.jr(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.n.updateTitleAndImages=function(){var C,F;((C=this.data)==null?void 0:(F=C.titleImages)==null?void 0:F.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))};
lO.prototype.updateImage3SquigglyBackground=lO.prototype.updateImage3SquigglyBackground;lO.prototype.updateImage1SquigglyBackground=lO.prototype.updateImage1SquigglyBackground;lO.prototype.updateImage0SquigglyBackground=lO.prototype.updateImage0SquigglyBackground;lO.prototype.onThemeChanged=lO.prototype.onThemeChanged;lO.prototype.onDataChanged=lO.prototype.onDataChanged;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],lO.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],lO.prototype,"isDarkTheme",void 0);_.R([_.L(),_.Y("design:type",Object)],lO.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],lO.prototype,"title0",void 0);_.R([_.L(),_.Y("design:type",Object)],lO.prototype,"title1",void 0);_.R([_.L(),_.Y("design:type",Object)],lO.prototype,"title2",void 0);_.R([_.L(),_.Y("design:type",Object)],lO.prototype,"title3",void 0);
_.R([_.L(),_.Y("design:type",Object)],lO.prototype,"title4",void 0);_.R([_.L(),_.Y("design:type",Object)],lO.prototype,"image0",void 0);_.R([_.L(),_.Y("design:type",Object)],lO.prototype,"image1",void 0);_.R([_.L(),_.Y("design:type",Object)],lO.prototype,"image2",void 0);_.R([_.L(),_.Y("design:type",Object)],lO.prototype,"image3",void 0);_.R([_.L(),_.Y("design:type",Object)],lO.prototype,"image4",void 0);_.R([_.L(),_.Y("design:type",String)],lO.prototype,"image0SquigglyBackground",void 0);
_.R([_.L(),_.Y("design:type",String)],lO.prototype,"image1SquigglyBackground",void 0);_.R([_.L(),_.Y("design:type",String)],lO.prototype,"image3SquigglyBackground",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lO.prototype,"onDataChanged",null);_.R([_.iP("isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lO.prototype,"onThemeChanged",null);
_.R([_.iP("image0SquigglyBackground"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lO.prototype,"updateImage0SquigglyBackground",null);_.R([_.iP("image1SquigglyBackground"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lO.prototype,"updateImage1SquigglyBackground",null);
_.R([_.iP("image3SquigglyBackground"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lO.prototype,"updateImage3SquigglyBackground",null);_.R([_.e({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],lO);
_.q(lO,"ytd-handles-claiming-title-images-section-renderer",function(){if(V5E!==void 0)return V5E;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return V5E=C},{mode:1});var inm;var yu=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return C};
_.O(yu,_.B);yu.prototype.ready=function(){var C=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(C)};
yu.prototype.onDarkModeToggledAction=function(C){C!==this.isDarkTheme&&this.set("isDarkTheme",C)};
yu.prototype.onCopyButtonClick=function(){var C=this,F,G,V;return _.I(function(J){return(F=C.data)!=null&&F.primaryChannelUrl?J.yield(navigator.clipboard.writeText(((G=C.data)==null?0:G.encodedChannelUrl)?C.data.encodedChannelUrl:"https://"+_.dd((V=C.data)==null?void 0:V.primaryChannelUrl)),0):J.jumpTo(0)})};
_.R([_.L(),_.Y("design:type",Object)],yu.prototype,"data",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],yu.prototype,"ytComponentBehavior",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],yu.prototype,"isDarkTheme",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],yu.prototype,"ytActionHandlerBehavior",void 0);_.R([_.e({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],yu);
_.q(yu,"ytd-handles-claiming-update-social-renderer",function(){if(inm!==void 0)return inm;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return inm=C},{mode:1});var Jd7;var ZJ=function(){var C=_.B.apply(this,arguments)||this;C.JSC$16167_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";C.JSC$16167_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";C.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};C.squigglyBackground=C.JSC$16167_squigglyBackgroundLight;return C};
_.O(ZJ,_.B);ZJ.prototype.updateSquigglyBackgroundStyle=function(){_.jr(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
ZJ.prototype.ready=function(){var C=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",C);this.squigglyBackground=C?this.JSC$16167_squigglyBackgroundDark:this.JSC$16167_squigglyBackgroundLight};
ZJ.prototype.onDarkModeToggledAction=function(C){C!==this.isDarkTheme&&(this.set("isDarkTheme",C),this.squigglyBackground=C?this.JSC$16167_squigglyBackgroundDark:this.JSC$16167_squigglyBackgroundLight)};
ZJ.prototype.updateSquigglyBackgroundStyle=ZJ.prototype.updateSquigglyBackgroundStyle;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ZJ.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],ZJ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],ZJ.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],ZJ.prototype,"data",void 0);
_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],ZJ.prototype,"isDarkTheme",void 0);_.R([_.L(),_.Y("design:type",String)],ZJ.prototype,"squigglyBackground",void 0);_.R([_.iP("squigglyBackground"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ZJ.prototype,"updateSquigglyBackgroundStyle",null);_.R([_.e({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],ZJ);
_.q(ZJ,"ytd-handles-claiming-vanity-info-renderer",function(){if(Jd7!==void 0)return Jd7;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Jd7=C},{mode:1});var $T7;var NA=function(){var C=_.B.apply(this,arguments)||this;C.JSC$16170_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";C.JSC$16170_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";C.squigglyBackground=C.JSC$16170_squigglyBackgroundLight;C.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return C};
_.O(NA,_.B);_.n=NA.prototype;_.n.ready=function(){var C=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(C)};
_.n.onDarkModeToggledAction=function(C){C!==this.isDarkTheme&&(this.set("isDarkTheme",C),this.squigglyBackground=C?this.JSC$16170_squigglyBackgroundDark:this.JSC$16170_squigglyBackgroundLight)};
_.n.updateSquigglyBackgroundStyle=function(){_.jr(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.n.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.n.detached=function(){this.stop()};
_.n.stop=function(){this.playerElement.stop()};
_.n.setupVideoPlayer=function(){var C=this,F,G;return _.I(function(V){F=C.data.videoId;G="http://i1.ytimg.com/vi/"+F+"/maxresdefault.jpg";C.playerElement.loadVideoWithPlayerVars({video_id:F,iurlhq:G});_.S9(V)})};
NA.prototype.onDataChanged=NA.prototype.onDataChanged;NA.prototype.updateSquigglyBackgroundStyle=NA.prototype.updateSquigglyBackgroundStyle;_.R([_.L({value:!1}),_.Y("design:type",Boolean)],NA.prototype,"isDarkTheme",void 0);_.R([_.L(),_.Y("design:type",String)],NA.prototype,"squigglyBackground",void 0);_.R([_.$z("#player"),_.Y("design:type",Object)],NA.prototype,"playerElement",void 0);_.R([_.L(),_.Y("design:type",Object)],NA.prototype,"data",void 0);
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],NA.prototype,"ytActionHandlerBehavior",void 0);_.R([_.iP("squigglyBackground"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NA.prototype,"updateSquigglyBackgroundStyle",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NA.prototype,"onDataChanged",null);
_.R([_.e({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],NA);
_.q(NA,"ytd-handles-claiming-video-item-renderer",function(){if($T7!==void 0)return $T7;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return $T7=C},{mode:1});var bnS;var Xb=function(){var C=_.n5.apply(this,arguments)||this;C.dragging=!1;C.dragMouseStart=0;C.dragOffsetStart=0;C.containerWidthDiff=0;C.boundPrevClick=function(){C.set("offset",OU(C,C.offset-(C.scrollDistance||320)))};
C.boundNextClick=function(){C.set("offset",OU(C,C.offset+(C.scrollDistance||320)))};
C.boundScrollContainerMouseDown=function(F){C.dragMouseStart=F.clientX;C.dragOffsetStart=C.offset;C.dragging=!0};
C.boundScrollContainerDrag=function(F){C.dragging&&C.set("offset",OU(C,C.dragOffsetStart-(F.clientX-C.dragMouseStart)))};
C.boundMouseUp=function(){C.onMouseUp()};
C.boundWheelScroll=function(F){var G=0;Math.abs(F.deltaX)>=Math.abs(F.deltaY)?G=F.deltaX:F.shiftKey&&(G=F.deltaY);G!==0&&(C.offset+=G,F.stopPropagation(),F.preventDefault())};
C.boundChipCloudChipScrollIntoView=function(F){(F=F.detail)&&C.scrollChipIntoView(F)};
return C};
_.O(Xb,_.n5);Xb.prototype.attached=function(){var C=_.ot(this.hostElement).querySelector("#scroll-container");C.addEventListener("wheel",this.boundWheelScroll);C.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);C.style.touchAction="pan-y";C.addEventListener("pointerdown",this.boundScrollContainerMouseDown);C.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
Xb.prototype.detached=function(){var C=_.ot(this.hostElement).querySelector("#scroll-container");C.removeEventListener("wheel",this.boundWheelScroll);C.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);C.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);C.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
Xb.prototype.reset=function(){this.set("offset",0);_.zH(this,this.setContainerWidthDiff);_.zH(this,this.setButtonsState)};
var OU=function(C,F){return Math.min(Math.max(F,0),C.containerWidthDiff)};
_.n=Xb.prototype;_.n.onMouseUp=function(){this.dragging=!1};
_.n.transformContainer=function(){this.offset=OU(this,this.offset);var C=_.TF("HTML_DIR")==="rtl"?"":"-";_.ot(this.hostElement).querySelector("#chips").style.transform="translateX("+C+this.offset+"px)";_.zH(this,this.setButtonsState)};
_.n.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=OU(this,this.offset));this.atStart=this.offset<=0};
_.n.setContainerWidthDiff=function(){var C=_.ot(this.hostElement).querySelector("#scroll-container"),F=_.ot(this.hostElement).querySelector("#chips");C&&F&&(this.containerWidthDiff=F.clientWidth-C.clientWidth)};
_.n.scrollChipIntoView=function(C){var F=_.ot(this.hostElement).querySelector("#scroll-container");if(F){var G=this.atStart?0:106,V=this.atEnd?0:106;C.offsetLeft<this.offset+G?this.offset=OU(this,C.offsetLeft-G):C.offsetLeft+C.clientWidth>this.offset+F.clientWidth-V&&(this.offset=OU(this,C.offsetLeft+C.clientWidth+V-F.clientWidth))}};
Xb.prototype.transformContainer=Xb.prototype.transformContainer;_.R([_.L({value:0}),_.Y("design:type",Number)],Xb.prototype,"offset",void 0);_.R([_.L({value:!0,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Xb.prototype,"atStart",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Xb.prototype,"atEnd",void 0);_.R([_.L(),_.Y("design:type",Number)],Xb.prototype,"scrollDistance",void 0);
_.R([_.iP("offset"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Xb.prototype,"transformContainer",null);_.R([_.uP()],Xb);var nG$;var uJ2;var IXu=_.d(function(C){var F=C.data;C=_.u(_.yH(!1,void 0,"bob3J"));var G=C.next().value,V=C.next().value;C=function(b){if((F==null?void 0:F().state)!==1){var z,Q;(Q=(z=F()).onTap)==null||Q.call(z,b)}};
var J={};return _.W("chip-shape",{class:"ytChipShapeHost","on:focusin":_.CZ(function(){var b=_.I8().resolve(_.Qt(_.uc));if(b){V(b.isKeyBoardInUse());var z,Q;(Q=(z=F()).onFocusIn)==null||Q.call(z)}return!1}),
"on:focusout":_.CZ(function(){V(!1);return!1})},_.W(zgS,{shouldWrapInButton:function(){return F().type!==2},
selected:function(){return F().state===0},
onClick:C,isDropdown:function(){return F().type===1},
accessibilityLabel:function(){return F().type===1?void 0:F().accessibilityLabel}},_.W("div",{class:_.py("ytChipShapeChip",function(){a:switch(F==null?void 0:F().state){case 0:var b="ytChipShapeActive";
break a;case 1:b="ytChipShapeDisabled";break a;default:b="ytChipShapeInactive"}return b},function(){var b=F().type===1||F().type===2,z=F();
return b||z!=null&&z.startIcon?z==null||!z.startIcon||z!=null&&z.text?b?"ytChipShapeEndIconPadding":(z==null?0:z.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},function(){var b=F();
if((b==null?void 0:b.style)===0&&(b==null?void 0:b.state)===0){var z;b=((z=_.I8().resolve(_.Qt(_.v6)))==null?0:z())?"ytChipShapeAICustomizedChipBorderDarkMode":"ytChipShapeAICustomizedChipBackgroundLightMode"}else b="";return b},(J.ytChipShapeFocused=function(){var b;
return G()&&((b=F())==null?void 0:b.state)!==1},J))},_.W(_.a,{cond:function(){return F().startIcon},
then:function(){return _.W(_.i5,{icon:function(){var b;return(b=F())==null?void 0:b.startIcon},
className:_.py(function(){return F().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"},function(){var b=F(),z,Q=(z=_.I8().resolve(_.Qt(_.v6)))==null?void 0:z();
return(b==null?void 0:b.style)===0&&(b==null?void 0:b.state)===0&&Q?"ytChipShapeAICustomizedChipIconDarkMode":""})})}}),function(){return F().text},_.W(QCo,{shape:F,
onClick:C}),_.W(_.QR,{model:{borderRadius:"8px"}}))))},"Jc");
IXu.idomCompat=!0;var zgS=_.d(function(C){var F=_.CZ(function(G){C.onClick(G);return!1});
return _.W(_.a,{cond:C.shouldWrapInButton,then:function(){return _.W("button",{class:"ytChipShapeButtonReset","on:click":F,role:function(){return C.isDropdown()?"combobox":"tab"},
"aria-label":C.accessibilityLabel,"aria-selected":C.selected},C.children)},
else:function(){return C.children}})},"Kc"),QCo=_.d(function(C){var F=C.shape;
var G=C.onClick;var V=_.CZ(function(J){G(J);return!1});
return _.W(_.e_,null,_.W(_.hg,{when:function(){return F().type===1}},function(){return _.W(_.i5,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.W(_.hg,{when:function(){return F().type===2}},function(){return _.W("button",{class:"ytChipShapeButtonReset",
"on:click":V},_.W(_.i5,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.W(_.hg,{when:function(){return F().type===0}},function(){return _.W(_.WQ,null)}))},"Lc");_.gQ(IXu,"chip-shape",{props:{data:_.CJ}});var wb=function(){var C=_.B.apply(this,arguments)||this;C.disableDeselectEvent=!1;C.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return C};
_.O(wb,_.B);_.n=wb.prototype;_.n.onSelectChipCommand=function(C){if(!this.selected&&this.data&&(C=_.Z(C,Di8),C.targetId&&C.targetId===this.data.targetId))this.onTap()};
_.n.onFilterChipTransformCommand=function(C){if(!this.selected&&this.data){var F;(C=(F=_.Z(C,Rwo))==null?void 0:F.chipUniqueId)&&C===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.n.dataChanged=function(){var C=this;_.zH(this,function(){C.data&&C.data.isSelected&&!C.selected&&(C.scrollChipIntoView(),C.onTap())})};
_.n.computeChipStyle=function(C){return C!=null?C:"STYLE_DEFAULT"};
_.n.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.rz(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.rz(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.n.onFocus=function(){var C=_.I8().resolve(_.Qt(_.uc));C&&C.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.n.scrollChipIntoView=function(){_.oo(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.I6.Object.defineProperties(wb.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return qxS({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
wb.prototype.onFocus=wb.prototype.onFocus;wb.prototype.onTap=wb.prototype.onTap;wb.prototype.dataChanged=wb.prototype.dataChanged;_.R([_.w(_.Lq),_.Y("design:type",Object)],wb.prototype,"ironButtonState",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],wb.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],wb.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],wb.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.wg),_.Y("design:type",Object)],wb.prototype,"ironA11yKeysBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],wb.prototype,"disableDeselectEvent",void 0);_.R([_.L(),_.Y("design:type",Object)],wb.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.M("data.icon"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],wb.prototype,"hasIcon",null);
_.R([_.L({reflectToAttribute:!0}),_.M("data.uniqueId"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],wb.prototype,"isGnomeChip",null);_.R([_.L({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.Y("design:type",String)],wb.prototype,"chipStyle",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],wb.prototype,"selected",void 0);
_.R([_.M("data","selected"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],wb.prototype,"chipShapeData",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wb.prototype,"dataChanged",null);_.R([_.VG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wb.prototype,"onTap",null);
_.R([_.VG("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wb.prototype,"onFocus",null);_.R([_.Z5({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],wb);
_.q(wb,"yt-chip-cloud-chip-renderer",function(){if(uJ2===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;nG$===void 0&&(nG$=document.createElement("template"));var V=nG$;G.call(F,V.content.cloneNode(!0),C.content.firstChild);uJ2=C}C=uJ2;return C},{mode:2});var EGl=_.SV.persistentPanelVisibleSelector,MA=function(){var C=_.B.apply(this,arguments)||this;C.isDarkTheme=!1;C.notSticky=!1;C.transparentBackground=!1;C.shouldHide=!1;C.disableSticky=!1;C.fluidWidth=!1;C.isClipList=!1;C.defaultChipIndex=0;C.isPlaylist=!1;C.playlistVotingAnimationEnabled=_.y("web_enable_voting_animation");C.toolbarHeight=0;C.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return C};
_.O(MA,_.B);_.n=MA.prototype;
_.n.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}}}}}};
_.n.attached=function(){var C=this;document.addEventListener("scroll",_.Gp(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var F;this.toolbarHeight=((F=document.querySelector("ytd-masthead"))==null?void 0:F.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(G){C.handleIntersect(G)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){C.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.n.detached=function(){var C;(C=this.intersectionObserver)==null||C.disconnect();var F;(F=this.resizeObserver)==null||F.disconnect();document.removeEventListener("scroll",_.Gp(this,this.updateChipBarWidthAndTop))};
_.n.dataChanged=function(){var C=this,F,G,V;((V=_.Z((F=this.data)==null?void 0:(G=F.contents)==null?void 0:G[0],mQ$))==null?void 0:V.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var J=this.findSelectedChipIndex();this.selectedIndex!==J&&(this.selectedIndex=-1);_.zH(this,function(){C.selectedIndex=J;C.updating=!1;C.ytScrollableChipCloudBehavior.reset()})};
_.n.findSelectedChipIndex=function(){var C;if((C=this.data)==null||!C.contents)return 0;C=this.data.contents;for(var F=0;F<C.length;F++){var G=void 0;if((G=_.Z(C[F],mQ$))==null?0:G.isSelected)return F}return 0};
_.n.computeStyle=function(C){return C};
_.n.handleChipCloudChipSelectAction=function(C){C=this.JSC$16191_chipsSelector.indexOf(C);C>-1&&this.JSC$16191_chipsSelector.selectIndex(C)};
_.n.handleChipCloudChipDeselectAction=function(){if(_.y("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var C,F,G,V=(G=_.Z((C=this.data)==null?void 0:(F=C.contents)==null?void 0:F[0],mQ$))==null?void 0:G.navigationEndpoint;V&&_.rz(this.hostElement,"yt-browse-section-list-reload-endpoint",[V]);this.JSC$16191_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.n.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.n.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.n.onResize=function(){this.updateLayout()};
_.n.updateLayout=function(){var C=this.ytScrollableChipCloudBehavior;_.zH(C,C.setContainerWidthDiff);C=this.ytScrollableChipCloudBehavior;_.zH(C,C.setButtonsState)};
_.n.onDarkModeToggledAction=function(C){this.isDarkTheme=C};
_.n.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.n.handleIntersect=function(C){this.notSticky=this.isChannelPageGrid||this.disableSticky||C[0].intersectionRatio===1};
_.n.updateDimensions=function(){var C=this.ytRendererBehavior.parentComponent;if(C){var F,G=(F=C.headerElement)!=null?F:C;_.jr(this.hostElement,{"--ytd-rich-grid-chips-bar-width":G.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.n.updateSelectedIndexFromBinding=function(C){this.selectedIndex=C.detail.value};
_.n.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var C;(C=this.sortFilterHeaderRendererElement)==null||C.setAttribute("is-playlist-page-with-filters","")}};
_.n.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(RjG(!this.notSticky))};
_.I6.Object.defineProperties(MA.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 C,F,G=(C=this.data)==null?void 0:(F=C.contents)==null?void 0:F.find(function(V){return _.Z(V,Vi7)});
return{sortFilterHeaderRenderer:_.Z(G,Vi7)}}}});
MA.prototype.dispatchChipBarIsSticky=MA.prototype.dispatchChipBarIsSticky;MA.prototype.isPlaylistPageChanged=MA.prototype.isPlaylistPageChanged;MA.prototype.updateChipBarWidthAndTop=MA.prototype.updateChipBarWidthAndTop;MA.prototype.onResize=MA.prototype.onResize;MA.prototype.onPersistentPanelVisibleChanged=MA.prototype.onPersistentPanelVisibleChanged;MA.prototype.onGuideIsExpandedChanged=MA.prototype.onGuideIsExpandedChanged;MA.prototype.dataChanged=MA.prototype.dataChanged;
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],MA.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],MA.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],MA.prototype,"actionHandlerBehavior",void 0);_.R([_.w(_.AY),_.Y("design:type",Object)],MA.prototype,"ironResizableBehavior",void 0);_.R([_.w(),_.Y("design:type",Xb)],MA.prototype,"ytScrollableChipCloudBehavior",void 0);
_.R([_.w(_.Rr),_.Y("design:type",Object)],MA.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],MA.prototype,"data",void 0);_.R([_.L({value:0}),_.Y("design:type",Number)],MA.prototype,"selectedIndex",void 0);_.R([_.L({value:320}),_.Y("design:type",Number)],MA.prototype,"scrollDistance",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],MA.prototype,"isDarkTheme",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],MA.prototype,"notSticky",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],MA.prototype,"transparentBackground",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.Y("design:type",String)],MA.prototype,"componentStyle",void 0);_.R([_.L({selector:_.Mpw}),_.Y("design:type",Boolean)],MA.prototype,"guideIsExpanded",void 0);
_.R([_.L({selector:EGl}),_.Y("design:type",Boolean)],MA.prototype,"persistentPanelVisible",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],MA.prototype,"shouldHide",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],MA.prototype,"disableSticky",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],MA.prototype,"fluidWidth",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],MA.prototype,"isClipList",void 0);
_.R([_.L(),_.Y("design:type",Object)],MA.prototype,"defaultChipIndex",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],MA.prototype,"isPlaylist",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],MA.prototype,"playlistVotingAnimationEnabled",void 0);_.R([_.$z("#chips"),_.Y("design:type",Object)],MA.prototype,"JSC$16191_chipsSelector",void 0);
_.R([_.$z("ytd-sort-filter-header-renderer"),_.Y("design:type",HTMLElement)],MA.prototype,"sortFilterHeaderRendererElement",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],MA.prototype,"updating",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MA.prototype,"dataChanged",null);
_.R([_.iP("guideIsExpanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MA.prototype,"onGuideIsExpandedChanged",null);_.R([_.iP("persistentPanelVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MA.prototype,"onPersistentPanelVisibleChanged",null);_.R([_.VG("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MA.prototype,"onResize",null);
_.R([_.zp("isChannelPageGrid","disableSticky","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MA.prototype,"updateChipBarWidthAndTop",null);_.R([_.M("componentStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],MA.prototype,"isChannelPageGrid",null);_.R([_.M("componentStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],MA.prototype,"isHashtagLandingPage",null);
_.R([_.iP("isPlaylistPage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MA.prototype,"isPlaylistPageChanged",null);_.R([_.M("componentStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],MA.prototype,"isPlaylistPage",null);_.R([_.M("componentStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],MA.prototype,"isDisableDeselectEvent",null);
_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],MA.prototype,"sortFilterHeaderRendererData",null);_.R([_.L({reflectToAttribute:!0,selector:_.cSi}),_.Y("design:type",String)],MA.prototype,"frostedGlassMode",void 0);_.R([_.iP("notSticky"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MA.prototype,"dispatchChipBarIsSticky",null);_.R([_.e({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],MA);
_.q(MA,"ytd-feed-filter-chip-bar-renderer",function(){if(bnS!==void 0)return bnS;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return bnS=C},{mode:1});var W6P;var t5o=_.d(function(C){var F=C.data;var G=C.buttonIndex;var V=C.selectedIndex;var J=C.onSelect;var b=function(){return G()===V()},z=function(){var Q,E;
return(E=(Q=F().text)==null?void 0:Q.content)!=null?E:""};
C=_.dc9();return _.W("yt-toggleable-image-button-view-model",{class:function(){var Q={};Q=(Q.toggleableImageButtonViewModelHost=!0,Q[""]=!0,Q.toggleableImageButtonViewModelSemiTransparent=V()!==-1&&!b(),Q);return _.tm(Q)},
tabindex:0,"aria-label":z,"aria-pressed":b,role:"button","on:keydown":C,"on:click":_.CZ(function(){J(F().onSubmitCommand);return!1})},_.W(_.a,{cond:function(){return F().logo},
then:function(Q){return _.W(_.AC,{data:Q,className:function(){var E={};E=(E.toggleableImageButtonViewModelImage=!0,E.toggleableImageButtonViewModelCircularRadius=!(!F().backgroundColor||!F().backgroundColorDarkMode),E.toggleableImageButtonViewModelGradientRing=!!(b()&&F().backgroundColor&&F().backgroundColorDarkMode),E);return _.tm(E)},
alt:z,useWidth:!1,style:function(){if(b()&&F().backgroundColor&&F().backgroundColorDarkMode){var E=yk(Number(F().backgroundColorDarkMode),"1");var t=yk(Number(F().backgroundColor),"1");E="background: linear-gradient(180deg,"+E+","+t+") border-box;"}else E="";return E}})}}),_.W(_.QR,{model:{borderRadius:"16px"}}),_.W("p",{class:function(){var Q={};
Q=(Q.toggleableImageButtonViewModelLabel=!0,Q.toggleableImageButtonViewModelBoldText=b(),Q);return _.tm(Q)}},_.W(_.mn,{text:function(){return F().text}})))},"Mc");
t5o.idomCompat=!0;var k2m=_.d(function(C){var F=C.data;C=_.u(_.yH({index:-1,command:{}},void 0,"GM3umb"));var G=C.next().value,V=C.next().value;return _.W("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.W("div",{class:"nudgeFormViewModelFormOptions"},_.W(_.uC,{data:function(){return F().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(J,b){return _.W(t5o,{data:J.data,buttonIndex:b,selectedIndex:function(){return G().index},
onSelect:function(z){V({index:b(),command:z})}})}})),_.W(_.mn,{text:function(){return F().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.W("div",{class:"nudgeFormViewModelSubmit"},_.W(_.uC,{data:function(){return F().submitButton}},{buttonViewModel:function(J){return _.W(aXl,{data:J.data,
isDisabled:function(){return G().index===-1},
onClick:function(){_.wQ(G().command)}})}})))},"Nc");
k2m.idomCompat=!0;var aXl=_.d(function(C){var F=_.w0(function(){return Object.assign({},C.data(),{state:C.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.W(_.tS,{data:F,onClick:C.onClick})},"Oc");_.gQ(k2m,"yt-nudge-form-view-model",{props:{data:_.CJ}});var S0=function(){var C=_.B.apply(this,arguments)||this;C.roundedContainer=!0;C.buttonUpdate=_.y("web_modern_buttons");C.isDarkMode=!1;C.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return C};
_.O(S0,_.B);_.n=S0.prototype;_.n.computeNudgeStyle=function(C){return C?"modernized-nudge":""};
_.n.handleDarkModeToggledAction=function(C){this.isDarkMode=C};
_.n.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.n.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"}}}};
_.n.computeIsHorizontalButtons=function(C){return C?!!C.applyModernizedStyle&&!!C.enableHorizontalButtons&&!!C.secondaryButton:!1};
_.I6.Object.defineProperties(S0.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var C,F;return(F=(C=this.data)==null?void 0:C.backgroundStyle)!=null?F:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var C,F;return(F=(C=this.data)==null?void 0:C.contentsLocation)!=null?F:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null?0:C.lightIconImage)}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],S0.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],S0.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.T6),_.Y("design:type",Object)],S0.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],S0.prototype,"actionHandlerBehavior",void 0);
_.R([_.L({reflectToAttribute:!0}),_.M("isHideEnclosingAction"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],S0.prototype,"isHidden",null);_.R([_.L(),_.Y("design:type",Object)],S0.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],S0.prototype,"roundedContainer",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],S0.prototype,"buttonUpdate",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.Y("design:type",String)],S0.prototype,"nudgeStyle",void 0);_.R([_.L({reflectToAttribute:!0}),_.M("data.trimStyle"),_.Y("design:type",String),_.Y("design:paramtypes",[])],S0.prototype,"trimStyle",null);_.R([_.L({reflectToAttribute:!0}),_.M("data.backgroundStyle"),_.Y("design:type",String),_.Y("design:paramtypes",[])],S0.prototype,"backgroundStyle",null);
_.R([_.L({reflectToAttribute:!0}),_.M("data.contentsLocation"),_.Y("design:type",String),_.Y("design:paramtypes",[])],S0.prototype,"contentsLocation",null);_.R([_.L({reflectToAttribute:!0}),_.M("data.disableDropShadow"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],S0.prototype,"noShadow",null);_.R([_.L({reflectToAttribute:!0}),_.M("data.lightIconImage"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],S0.prototype,"noIcon",null);
_.R([_.L({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.Y("design:type",Boolean)],S0.prototype,"isHorizontalButtons",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Object)],S0.prototype,"isDarkMode",void 0);_.R([_.e({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],S0);
_.q(S0,"ytd-feed-nudge-renderer",function(){if(W6P!==void 0)return W6P;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return W6P=C},{mode:_.oN("kevlar_poly_si_batch_j028")?1:2});var UTm;var Hn2;var L6=function(){var C=_.B.apply(this,arguments)||this;C.collapsed=!1;C.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return C};
_.O(L6,_.B);L6.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"}}}};
L6.prototype.handleRatingSelect=function(){var C;((C=this.data)==null?0:C.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
L6.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],L6.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],L6.prototype,"actionHandlerBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],L6.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],L6.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.T6),_.Y("design:type",Object)],L6.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],L6.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],L6.prototype,"collapsed",void 0);_.R([_.e({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],L6);
_.q(L6,"ytd-slimline-survey-renderer",function(){if(Hn2!==void 0)return Hn2;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Hn2=C},{mode:1});var lX2;var Bq=function(){return _.B.apply(this,arguments)||this};
_.O(Bq,_.B);Bq.prototype.maybeGetBackgroundColor=function(C){return this.isDarkMode?C.section2Color:C.section3Color};
Bq.prototype.colorPaletteChanged=function(){var C=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;C&&(C==null?0:C.secondaryTitleColor)&&this.maybeGetBackgroundColor(C)?(this.hostElement.style.backgroundColor=_.Hr(this.maybeGetBackgroundColor(C)),this.hostElement.style.color=_.Hr(C.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
Bq.prototype.colorPaletteChanged=Bq.prototype.colorPaletteChanged;_.R([_.w(_.Rr),_.Y("design:type",Object)],Bq.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Bq.prototype,"data",void 0);_.R([_.L({selector:function(C){return C.ui.darkModeIsEnabled}}),
_.Y("design:type",Boolean)],Bq.prototype,"isDarkMode",void 0);_.R([_.L(),_.Y("design:type",Object)],Bq.prototype,"lightColorPalette",void 0);_.R([_.L(),_.Y("design:type",Object)],Bq.prototype,"darkColorPalette",void 0);_.R([_.iP("darkColorPalette","lightColorPalette","data","isDarkMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Bq.prototype,"colorPaletteChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],Bq);
_.q(Bq,"ytd-endorsement-header-renderer",function(){if(lX2!==void 0)return lX2;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return lX2=C},{mode:1});_.gQ(_.R7,"yt-decorated-avatar-view-model",{props:{data:_.CJ,className:_.CJ}});_.vq=new _.jh("VIEW_TRANSITION_MANAGER_TOKEN");var f6=function(){var C=_.B.apply(this,arguments)||this;C.fullHeight=_.y("web_rich_grid_media_full_height");C.showChannelAvatar=!0;C.hasPlaylistThumbnail=!1;C.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};C.registerThumbnailForPageTransition=function(){_.y("web_thumbnail_to_watch_transition")&&_.yd7(_.I8().resolve(_.vq),C.thumbnail)};
return C};
_.O(f6,_.B);_.n=f6.prototype;
_.n.configureRendererStamper=function(){return{lazyLoadMenu:SC,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"}}}};
_.n.attached=function(){this.updateInlinePreviewHoverListeners()};
_.n.detached=function(){this.clearInlinePreviewHoverListeners()};
_.n.shouldLazyLoadMenu=function(){var C=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.y("kevlar_modern_downloads_page")||!C};
_.n.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16216_inlinePreviewHoverListener=ZR({mediaRenderer:this,lockupElement:this.JSC$16216_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.n.getVideoPreviewOpts=function(){var C={},F;if((F=this.data)==null?0:F.multipleInlinePlaybackEndpoint)C=n7$;this.isRadio&&(C=bmE);return C};
_.n.clearInlinePreviewHoverListeners=function(){var C;(C=this.JSC$16216_inlinePreviewHoverListener)==null||Ak(C)};
_.n.getOwner=function(){var C,F,G;return((C=this.data)==null?void 0:(F=C.channelThumbnailSupportedRenderers)==null?void 0:F.channelThumbnailWithLinkRenderer)||_.Z((G=this.data)==null?void 0:G.showProviderChannelThumbnail,j4u)};
_.n.updateLockupSize=function(){var C;((C=this.getOwner())==null?0:C.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.n.getFeedbackEndpoint=function(C){if(_.Z(C,_.Ud))return C;var F,G;C=(G=(F=_.Z(C,_.Cl))==null?void 0:F.commands)!=null?G:[];F=_.u(C);for(G=F.next();!G.done;G=F.next())if(G=this.getFeedbackEndpoint(G.value))return G;return null};
_.n.computeNavigationEndpoint=function(C){return h$W(C==null?void 0:C.navigationEndpoint)};
_.n.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var C=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(C)!==JSON.stringify(this.data)&&this.set("data",C)}};
_.n.onDataChanged=function(){var C=this,F=this.getOwner();if(F){this.set("data.owner",F);var G,V,J,b,z,Q=((G=this.data)==null?void 0:(V=G.shortBylineText)==null?void 0:(J=V.runs)==null?void 0:(b=J[0])==null?void 0:b.text)||((z=F.name)==null?void 0:z.simpleText);this.set("data.owner.title",Q)}var E,t,k,U,H,l;F=((E=this.data)==null?void 0:(t=E.thumbnailRenderer)==null?void 0:t.playlistVideoThumbnailRenderer)||((k=this.data)==null?void 0:(U=k.thumbnailRenderer)==null?void 0:U.playlistCustomThumbnailRenderer)||
((H=this.data)==null?void 0:(l=H.thumbnailRenderer)==null?void 0:l.showCustomThumbnailRenderer);var N;((N=this.data)==null?0:N.thumbnail)||!F||this.set("data.thumbnail",F.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){C.updateLockupSize()});
var S;if(E=((S=this.data)==null?void 0:S.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(E);var f;((f=this.dismissActionToReplayEntity)==null?0:f.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.n.onHiddenChanged=function(){this.updateLockupSize()};
_.n.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.rz(this.hostElement,"yt-terminate-video-preview-action");else{var C;(C=this.videoTitleLink)==null||C.focus()}};
_.n.metadataColorChanged=function(){var C;if(this.metadataColor&&((C=this.videoTitle)==null?0:C.style))this.videoTitle.style.color=_.Hr(this.metadataColor);else{var F,G;!this.metadataColor&&((F=this.videoTitle)==null?0:(G=F.style)==null?0:G.color)&&(this.videoTitle.style.color="")}};
_.n.onDetailsClick=function(C){var F=this.computedNavigationEndpoint;F&&(_.dE(_.AR(C),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.oo(this.hostElement,"yt-navigate",{endpoint:F}))};
_.n.onRendererTap=function(){this.registerThumbnailForPageTransition();var C,F,G=((C=this.data)==null?void 0:C.serviceEndpoint)||this.getFeedbackEndpoint((F=this.data)==null?void 0:F.navigationEndpoint);G&&_.Z(G,_.Ud)&&this.ytComponentBehavior.resolveCommand(G)};
_.n.onMouseDown=function(C){var F=C.target,G=this.computedNavigationEndpoint,V;C=F.href||((V=_.Z(G==null?void 0:G.commandMetadata,_.GU))==null?void 0:V.url);V=F.data||G;C&&V&&OIT(C,V)};
_.n.computeVideoTitleText=function(){var C;if((C=this.data)==null?0:C.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.n.computeHasPlaylistThumbnail=function(C){var F,G,V,J,b;if((((F=C.thumbnailRenderer)==null?0:F.playlistVideoThumbnailRenderer)||((G=C.thumbnailRenderer)==null?0:G.playlistCustomThumbnailRenderer)||((V=C.thumbnailRenderer)==null?0:V.showCustomThumbnailRenderer)||((J=C.thumbnailRenderer)==null?0:J.playlistVideoThumbnailRenderer)||((b=C.thumbnailRenderer)==null?0:b.playlistCustomThumbnailRenderer))&&C.thumbnailOverlays)for(F=0;F<C.thumbnailOverlays.length;F++)if(G=void 0,(G=C.thumbnailOverlays[F])==
null?0:G.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.I6.Object.defineProperties(f6.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.y("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var C;return(C=this.data)==null?void 0:C.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var C;return(C=this.data)==null?void 0:C.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.JSC$16216_inlinePreviewHoverListener)==null?0:r$(C))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.VKI(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var C,F;return((C=this.data)==null?void 0:C.videoId)||((F=this.data)==null?void 0:F.playlistId)||""}}});
f6.prototype.onMouseDown=f6.prototype.onMouseDown;f6.prototype.metadataColorChanged=f6.prototype.metadataColorChanged;f6.prototype.onIsDismissedChanged=f6.prototype.onIsDismissedChanged;f6.prototype.onHiddenChanged=f6.prototype.onHiddenChanged;f6.prototype.onDataChanged=f6.prototype.onDataChanged;f6.prototype.handleReloadDownloadsInfo=f6.prototype.handleReloadDownloadsInfo;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],f6.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],f6.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],f6.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.T6),_.Y("design:type",Object)],f6.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.w(_.CR),_.Y("design:type",Object)],f6.prototype,"ytdLockupBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],f6.prototype,"ytdReduxBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],f6.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",String)],f6.prototype,"entitySelectorType",void 0);_.R([_.L(),_.Y("design:type",Boolean)],f6.prototype,"noEndpoints",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],f6.prototype,"isRadio",void 0);_.R([_.L({reflectToAttribute:!0,selector:_.HY}),_.Y("design:type",Boolean)],f6.prototype,"miniMode",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],f6.prototype,"fullHeight",void 0);
_.R([_.L(),_.Y("design:type",Boolean)],f6.prototype,"showDarkVideoMetadata",void 0);_.R([_.L(),_.Y("design:type",Boolean)],f6.prototype,"showLightVideoMetadata",void 0);_.R([_.L(),_.Y("design:type",Number)],f6.prototype,"metadataColor",void 0);_.R([_.L(),_.Y("design:type",Object)],f6.prototype,"showChannelAvatar",void 0);_.R([_.L(),_.Y("design:type",Boolean)],f6.prototype,"hidden",void 0);_.R([_.L({value:!0}),_.Y("design:type",Boolean)],f6.prototype,"showYtInteraction",void 0);
_.R([_.L(),_.Y("design:type",String)],f6.prototype,"dismissedContentId",void 0);_.R([_.L({selectorArgs:["dismissedContentId"],selector:JXW}),_.Y("design:type",Object)],f6.prototype,"dismissActionToReplayEntity",void 0);
_.R([_.L({selectorArgs:["entitySelectorType","mediaId"],selector:function(C,F,G){if(_.y("kevlar_modern_downloads_page")&&G&&F&&F!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(F){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var V=xQB(C,G);if(V){F=_.O3(C,G);var J=wd(C,G),b=pnZ(C,G);C=MW(C,G);var z=bRB(V,F,J,b);J=z.shortViewCountText;var Q=z.publishedTimeText;z=z.badges;var E=C>0;b=JJA(V,F,b,C);V=_.uK(F)||F==="TRANSFER_STATE_FAILED"||F==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!n7(V.policyEntity)?
void 0:vXT(G,C,V.videoEntity.lengthSeconds);F==="TRANSFER_STATE_PAUSED_BY_USER"&&G&&!_.y("dl_resume_click_killswitch")&&(V={offlineVideoEndpoint:{videoId:G,action:"ACTION_RESUME"}});G={shortViewCountText:J,publishedTimeText:Q,badges:z,isWatched:E,navigationEndpoint:V,thumbnailOverlays:b}}else G=void 0;return G;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(F=skB(C,G))if(V=_.X0(C,G),b=_.qbw(C,G),V!=="TRANSFER_STATE_UNKNOWN"){G=$jo(F,V,b,G,_.NW(C));break a}G=void 0}return G;default:_.Yw(new _.Ay("Error: entitySelectorType defined but not matched in selector.",
C,F))}}}),
_.Y("design:type",Object)],f6.prototype,"entityDrivenState",void 0);_.R([_.L({computed:"computeVideoTitleText(data)"}),_.Y("design:type",Object)],f6.prototype,"videoTitleText",void 0);_.R([_.L({computed:"computeHasPlaylistThumbnail(data)"}),_.Y("design:type",Object)],f6.prototype,"hasPlaylistThumbnail",void 0);_.R([_.L({computed:"computeNavigationEndpoint(data)"}),_.Y("design:type",Object)],f6.prototype,"computedNavigationEndpoint",void 0);
_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],f6.prototype,"typographyBump",void 0);_.R([_.L({reflectToAttribute:!0}),_.M("typographyBump"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],f6.prototype,"typographyBumpV2",null);_.R([_.$z("#video-title"),_.Y("design:type",HTMLElement)],f6.prototype,"videoTitle",void 0);_.R([_.$z("#video-title-link"),_.Y("design:type",HTMLElement)],f6.prototype,"videoTitleLink",void 0);
_.R([_.$z("#thumbnail"),_.Y("design:type",HTMLElement)],f6.prototype,"thumbnail",void 0);_.R([_.$z("#dismissible"),_.Y("design:type",HTMLElement)],f6.prototype,"JSC$16216_dismissibleMedia",void 0);_.R([_.M("data.menu"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],f6.prototype,"lazyLoadMenu",null);_.R([_.M("data.menu"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],f6.prototype,"immediateLoadMenu",null);
_.R([_.zp("entityDrivenState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],f6.prototype,"handleReloadDownloadsInfo",null);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],f6.prototype,"onDataChanged",null);_.R([_.zp("hidden"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],f6.prototype,"onHiddenChanged",null);
_.R([_.iP("isDismissed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],f6.prototype,"onIsDismissedChanged",null);_.R([_.iP("metadataColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],f6.prototype,"metadataColorChanged",null);_.R([_.VG("mousedown"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],f6.prototype,"onMouseDown",null);
_.R([_.M("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],f6.prototype,"isHovered",null);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],f6.prototype,"useAvatar",null);_.R([_.M("data","entitySelectorType"),_.Y("design:type",String),_.Y("design:paramtypes",[])],f6.prototype,"mediaId",null);_.R([_.e({is:"ytd-rich-grid-media",disableElementRegistration:!0})],f6);
var Zno=_.Tp()(f6,"ytd-rich-grid-media",function(){if(UTm!==void 0)return UTm;var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return UTm=C},{mode:_.oN("kevlar_poly_si_batch_j072")?1:2});var Nwr;var hp=function(){var C=_.B.apply(this,arguments)||this;C.removeMaxWidth=!0;C.insetMetadata=!1;return C};
_.O(hp,_.B);_.n=hp.prototype;_.n.configureRendererStamper=function(){return{innerMenu:SC,outerMenu:Object.assign({},SC,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.n.onDataChanged=function(){var C,F=((C=this.data)==null?void 0:C.trackingParams)||"";F&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(F));var G;((G=this.dismissActionToReplayEntity)==null?0:G.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.n.attached=function(){this.updateInlinePreviewHoverListeners()};
_.n.detached=function(){this.clearInlinePreviewHoverListeners()};
_.n.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16221_inlinePreviewHoverListener=ZR({mediaRenderer:this,lockupElement:this.JSC$16221_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:umP})};
_.n.clearInlinePreviewHoverListeners=function(){var C;(C=this.JSC$16221_inlinePreviewHoverListener)==null||Ak(C)};
_.n.onRendererTap=function(){var C,F,G=(C=this.data)==null?void 0:(F=C.serviceEndpoints)==null?void 0:F[0];_.Z(G,_.Ud)&&this.componentBehavior.resolveCommand(G)};
_.n.onDetailsClick=function(C){var F,G=(F=this.data)==null?void 0:F.navigationEndpoint;G&&(_.dE(_.AR(C),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(G))};
_.n.onShow=function(){var C=this.data;C.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(C.onFirstVisibleCommand),delete C.onFirstVisibleCommand)};
_.I6.Object.defineProperties(hp.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var C;return this.insetMetadata?void 0:(C=this.data)==null?void 0:C.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var C;return this.insetMetadata?(C=this.data)==null?void 0:C.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var C=this.data;if(C!=null&&C.badge&&(C=_.Z(C.badge,YbS))){var F,G,V;return[{metadataBadgeRenderer:{label:((F=C.label)==null?void 0:(G=F.runs)==null?void 0:G[0].text)||((V=C.label)==null?void 0:V.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var C=this.data;return Object.assign({},C.headline,{accessibility:C.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var C,F,G;return this.isSlimShort?(C=this.computedTitle)==null?void 0:(F=C.accessibility)==null?void 0:(G=F.accessibilityData)==null?void 0:G.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.y("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.JSC$16221_inlinePreviewHoverListener)==null?0:r$(C))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
hp.prototype.onDataChanged=hp.prototype.onDataChanged;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],hp.prototype,"componentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],hp.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.CR),_.Y("design:type",Object)],hp.prototype,"ytdLockupBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],hp.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.w(_.T6),_.Y("design:type",Object)],hp.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],hp.prototype,"ytdReduxBehavior",void 0);_.R([_.$z("ytd-thumbnail"),_.Y("design:type",HTMLElement)],hp.prototype,"thumbnail",void 0);_.R([_.$z("#dismissible"),_.Y("design:type",HTMLElement)],hp.prototype,"JSC$16221_dismissibleMedia",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],hp.prototype,"removeMaxWidth",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],hp.prototype,"insetMetadata",void 0);_.R([_.L(),_.Y("design:type",String)],hp.prototype,"dismissedContentId",void 0);_.R([_.L({selectorArgs:["dismissedContentId"],selector:JXW}),_.Y("design:type",Object)],hp.prototype,"dismissActionToReplayEntity",void 0);_.R([_.M("insetMetadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],hp.prototype,"thumbnailObjectFit",null);
_.R([_.M("data","insetMetadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],hp.prototype,"innerMenu",null);_.R([_.M("data","insetMetadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],hp.prototype,"outerMenu",null);_.R([_.L(),_.Y("design:type",Object)],hp.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,selector:_.HY}),_.Y("design:type",Boolean)],hp.prototype,"miniMode",void 0);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hp.prototype,"onDataChanged",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],hp.prototype,"shortsBadges",null);_.R([_.M("data"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],hp.prototype,"isShort",null);
_.R([_.M("data"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],hp.prototype,"isSlimShort",null);_.R([_.M("data","isShort"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],hp.prototype,"computedTitle",null);_.R([_.M("isSlimShort","computedTitle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],hp.prototype,"computedAccessibilityLabel",null);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],hp.prototype,"shouldForce2By3",null);_.R([_.M("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],hp.prototype,"isHovered",null);_.R([_.e({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],hp);
_.q(hp,"ytd-rich-grid-slim-media",function(){if(Nwr!==void 0)return Nwr;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Nwr=C},{mode:_.oN("kevlar_poly_si_batch_j063")?1:2});var OnP;var XzE;var cq=function(){var C=_.B.apply(this,arguments)||this;C.darkerDarkTheme=_.y("web_darker_dark_theme");return C};
_.O(cq,_.B);cq.prototype.computeIcon=function(C){return C&&C.iconType?"yt-sys-icons:"+C.iconType.toLowerCase():""};
cq.prototype.onMouseEnter=function(){this.isHovered=!0};
cq.prototype.onMouseLeave=function(){this.isHovered=!1};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],cq.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],cq.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],cq.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],cq.prototype,"data",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],cq.prototype,"isHovered",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],cq.prototype,"darkerDarkTheme",void 0);_.R([_.e({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],cq);
_.q(cq,"ytd-expand-on-hover-card-renderer",function(){if(XzE!==void 0)return XzE;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return XzE=C},{mode:1});var wz2,M5o=function(){if(wz2!==void 0)return wz2;var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return wz2=C};_.ae("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var Ap=function(){var C=_.B.apply(this,arguments)||this;C.compactStyle=!1;C.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return C};
_.O(Ap,_.B);_.n=Ap.prototype;_.n.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.n.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"}}}};
_.n.computeHideDot=function(C){return!(C&&C.subscriberCountText&&C.videoCountText)||this.compactStyle};
_.n.hasDualButtons=function(C){return C&&C.purchaseButton&&C.subscribeButton};
_.n.backgroundColorChanged=function(){if(this.data!==void 0){var C=this.data.backgroundColor;this.isDarkTheme&&(C=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=C!=null?_.Hr(C):"transparent"}};
_.n.onDarkModeToggledAction=function(C){this.isDarkTheme=C};
_.n.onTap=function(C){var F,G,V=((F=this.data)==null?void 0:F.navigationEndpoint)||((G=this.data)==null?void 0:G.serviceEndpoint);_.Z(V,_.hm)&&(V&&_.I8().resolve(_.WD).resolveCommand(V,{form:{element:this.hostElement}}),C.preventDefault())};
_.n.computeChannelEndpoint=function(C){return _.Z(C,_.hm)?null:C};
_.n.computeHrefEndpoint=function(C){return _.Z(C,_.hm)?null:this.componentBehavior.computeHref_(C)};
_.n.computeChannelRendererStyle=function(C){return C};
_.n.computeIconSize=function(C){return C?108:136};
_.I6.Object.defineProperties(Ap,{template:{configurable:!0,enumerable:!0,get:function(){return M5o()}}});
Ap.prototype.backgroundColorChanged=Ap.prototype.backgroundColorChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Ap.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Ap.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.nK),_.Y("design:type",Object)],Ap.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Ap.prototype,"componentBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],Ap.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Boolean)],Ap.prototype,"isDarkTheme",void 0);_.R([_.L({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.Y("design:type",String)],Ap.prototype,"channelRendererStyle",void 0);_.R([_.L({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ap.prototype,"dualButtons",void 0);_.R([_.L({reflectToAttribute:!0,value:function(){return _.y("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],Ap.prototype,"useBiggerThumbs",void 0);_.R([_.L({reflectToAttribute:!0,value:function(){return _.kU("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],Ap.prototype,"biggerThumbStyle",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Ap.prototype,"compactStyle",void 0);_.R([_.iP("data","isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ap.prototype,"backgroundColorChanged",null);_.R([_.e({is:"ytd-channel-renderer",disableElementRegistration:!0})],Ap);_.q(Ap,"ytd-channel-renderer",function(){return M5o()},{mode:1});var ST2;var L6y;_.ae("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var e0=function(){var C=_.B.apply(this,arguments)||this;C.displayItemCount=2;C.hasPlaylistThumbnail=!1;C.stackThumbnailSize="large";return C};
_.O(e0,_.B);_.n=e0.prototype;_.n.attached=function(){this.updateInlinePreviewHoverListeners()};
_.n.detached=function(){this.clearInlinePreviewHoverListeners()};
_.n.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.n.computeFirstVideos=function(C,F){return C&&F?C.slice(0,F):[]};
_.n.computeThumbnailWidth=function(C,F){return C?F==="BIG"?500:F==="MASSIVE"?600:F==="MEDIUM"?450:420:360};
_.n.computeThumbnailHeight=function(C,F){return C?F==="BIG"?280:F==="MASSIVE"?337:234:202};
_.n.clearInlinePreviewHoverListeners=function(){var C;(C=this.JSC$16234_inlinePreviewHoverListener)==null||Ak(C)};
_.n.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16234_inlinePreviewHoverListener=ZR({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:n7$,thumbnailElement:this.thumbnail})};
_.n.computeHasPlaylistThumbnail=function(C){var F,G;if((((F=C.thumbnailRenderer)==null?0:F.playlistVideoThumbnailRenderer)||((G=C.thumbnailRenderer)==null?0:G.playlistCustomThumbnailRenderer))&&C.thumbnailOverlays)for(F=0;F<C.thumbnailOverlays.length;F++)if(G=void 0,(G=C.thumbnailOverlays[F])==null?0:G.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.I6.Object.defineProperties(e0.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.JSC$16234_inlinePreviewHoverListener)==null?0:r$(C))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
e0.prototype.dataChanged=e0.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],e0.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.CR),_.Y("design:type",Object)],e0.prototype,"ytdLockupBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],e0.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],e0.prototype,"displayItemCount",void 0);_.R([_.L({reflectToAttribute:!0,value:function(){return _.y("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],e0.prototype,"useBiggerThumbs",void 0);_.R([_.L({reflectToAttribute:!0,value:function(){return _.kU("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],e0.prototype,"biggerThumbsStyle",void 0);_.R([_.L({computed:"computeHasPlaylistThumbnail(data)"}),_.Y("design:type",Object)],e0.prototype,"hasPlaylistThumbnail",void 0);_.R([_.L(),_.Y("design:type",String)],e0.prototype,"stackThumbnailSize",void 0);_.R([_.$z("ytd-thumbnail"),_.Y("design:type",HTMLElement)],e0.prototype,"thumbnail",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],e0.prototype,"dataChanged",null);
_.R([_.M("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],e0.prototype,"isHovered",null);_.R([_.e({is:"ytd-radio-renderer",disableElementRegistration:!0})],e0);
_.q(e0,"ytd-radio-renderer",function(){if(L6y!==void 0)return L6y;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return L6y=C},{mode:_.oN("kevlar_poly_si_batch_j058")?1:2});var Bwl;_.ae("itemSectionRenderer","showRenderer","ytd-show-renderer");var db=function(){return _.B.apply(this,arguments)||this};
_.O(db,_.B);db.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
db.prototype.computeThumbnailWidth=function(C){return C?360:246};
db.prototype.computeUseProminentThumbs=function(C){return C};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],db.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],db.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],db.prototype,"data",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],db.prototype,"isSearch",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.Y("design:type",Boolean)],db.prototype,"useProminentThumbs",void 0);_.R([_.e({is:"ytd-show-renderer",disableElementRegistration:!0})],db);
_.q(db,"ytd-show-renderer",function(){if(Bwl!==void 0)return Bwl;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Bwl=C},{mode:1});_.ae("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var xj=function(){var C=_.B.apply(this,arguments)||this;C.isRichGrid=!1;return C};
_.O(xj,_.B);xj.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"}}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],xj.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],xj.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],xj.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],xj.prototype,"isRichGrid",void 0);_.R([_.e({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],xj);
_.q(xj,"ytd-feed-entry-renderer",function(){if(ST2!==void 0)return ST2;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return ST2=C},{mode:1});var vGG;var sU=function(){return _.B.apply(this,arguments)||this};
_.O(sU,_.B);sU.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.R([_.w(_.Rr),_.Y("design:type",Object)],sU.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],sU.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],sU.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],sU.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,selector:_.lK,value:3}),_.Y("design:type",Number)],sU.prototype,"itemsPerRow",void 0);
_.R([_.e({is:"ytd-link-card-renderer",disableElementRegistration:!0})],sU);
_.q(sU,"ytd-link-card-renderer",function(){if(vGG!==void 0)return vGG;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return vGG=C},{mode:1});var fXS;var qA=function(){return _.B.apply(this,arguments)||this};
_.O(qA,_.B);_.n=qA.prototype;_.n.configureRendererStamper=function(){return{"data.menu":SC,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.n.onRendererTap=function(C){if(!this.ytdDismissibleItemBehavior.isDismissed){var F,G=(F=this.data)==null?void 0:F.navigationEndpoint;G&&!_.dE(_.AR(C),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(G)?_.dE(_.AR(C),this.hostElement,["A"])||_.oo(this.hostElement,"yt-navigate",{endpoint:G}):this.ytComponentBehavior.resolveCommand(G,{}))}};
_.n.maybeComputeHref=function(C){return this.ytComponentBehavior.computeHref_(C,!0)};
_.n.getNavigationCommand=function(C){return this.isNavigationCommand(C)?C:null};
_.n.isNavigationCommand=function(C){return C?_.Z(C,_.iE)||_.Z(C,_.eT)||_.Z(C,_.jW)?!0:!1:!1};
qA.prototype.onRendererTap=qA.prototype.onRendererTap;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],qA.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],qA.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.T6),_.Y("design:type",Object)],qA.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],qA.prototype,"ytComponentBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],qA.prototype,"data",void 0);_.R([_.VG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],qA.prototype,"onRendererTap",null);_.R([_.e({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],qA);
_.q(qA,"ytd-lumiere-promo-item-image-renderer",function(){if(fXS!==void 0)return fXS;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return fXS=C},{mode:1});var hg$;var Pq=function(){return _.B.apply(this,arguments)||this};
_.O(Pq,_.B);Pq.prototype.computeLandscapeThumbnail=function(){var C;return((C=this.data)==null?void 0:C.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Pq.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],Pq.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Pq.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,selector:_.HY}),_.Y("design:type",Boolean)],Pq.prototype,"miniMode",void 0);_.R([_.L({reflectToAttribute:!0,selector:_.lK}),_.Y("design:type",Number)],Pq.prototype,"itemsPerRow",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.Y("design:type",Boolean)],Pq.prototype,"landscapeThumbnail",void 0);_.R([_.e({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],Pq);
_.q(Pq,"ytd-lumiere-shelf-details-renderer",function(){if(hg$!==void 0)return hg$;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return hg$=C},{mode:_.oN("kevlar_poly_si_batch_j076")?1:2});var cd8;var gb=function(){return _.B.apply(this,arguments)||this};
_.O(gb,_.B);gb.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],gb.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],gb.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],gb.prototype,"data",void 0);_.R([_.e({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],gb);
_.q(gb,"ytd-primetime-promo-details-renderer",function(){if(cd8!==void 0)return cd8;var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return cd8=C},{mode:1});var AdG;var RS=function(){return _.B.apply(this,arguments)||this};
_.O(RS,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],RS.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],RS.prototype,"data",void 0);_.R([_.e({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],RS);
_.q(RS,"ytd-panel-show-style-metadata-renderer",function(){if(AdG!==void 0)return AdG;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return AdG=C},{mode:1});var egu;var Yj=function(){return _.B.apply(this,arguments)||this};
_.O(Yj,_.B);_.n=Yj.prototype;_.n.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.n.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.n.computeThumbnail=function(C){if(C)return C.smallFormFactorBackgroundThumbnail||C.largeFormFactorBackgroundThumbnail};
_.n.maybeComputeHref=function(C){return this.ytComponentBehavior.computeHref_(C,!0)};
_.n.isNavigationCommand=function(C){return C?_.Z(C,_.iE)||_.Z(C,_.eT)||_.Z(C,_.jW)?!0:!1:!1};
_.n.getNavigationCommand=function(C){return this.isNavigationCommand(C)?C:null};
Yj.prototype.onPanelTap=Yj.prototype.onPanelTap;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Yj.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Yj.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Yj.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Yj.prototype,"data",void 0);
_.R([_.L({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],Yj.prototype,"roundedContainer",void 0);_.R([_.L({reflectToAttribute:!0,value:_.y("web_modern_buttons")}),_.Y("design:type",Boolean)],Yj.prototype,"modernButtons",void 0);_.R([_.VG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Yj.prototype,"onPanelTap",null);_.R([_.e({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],Yj);
_.q(Yj,"ytd-primetime-promo-panel-renderer",function(){if(egu!==void 0)return egu;var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return egu=C},{mode:1});_.gQ(_.d(function(C){C=_.xz(C,{data:{},useFullWidth:!1});var F=C.data,G=C.useFullWidth;C={};return _.W("teaser-card-view-model",{class:_.py("ytTeaserCardViewModelHost",(C.ytTeaserCardViewModelUseFullWidth=function(){return G()},C))},_.W(_.a,{cond:function(){return F().onTap},
then:function(V){return _.W(_.zV,{className:"ytTeaserCardViewModelLink",command:V},_.W("div",{class:"ytTeaserCardViewModelImageContainer"},_.W(_.a,{cond:function(){return F().image},
then:function(J){return _.W(_.AC,{data:J,className:"ytTeaserCardViewModelImage",alt:""})}})),_.W("p",{class:"ytTeaserCardViewModelCaption"},function(){return F().caption}))}}))},"Pc"),"teaser-card-view-model",{props:{data:_.CJ,
useFullWidth:_.CJ}});_.gQ(_.d(function(C){var F=C.data;var G=function(){var V;return _.Mh((V=F())==null?void 0:V.iconThemedImage)};
return _.W("yt-edu-card-view-model",null,_.W(_.UG,{contentId:function(){return F().nudgeId}},function(){return _.W("div",{class:_.py("ytEduCardViewModelHost",function(){return F().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.W("div",{class:"ytEduCardViewModelTopCornerButton"},_.W(_.uC,{data:function(){return F().dismissButton}},{buttonViewModel:_.tS})),_.W("div",{class:"ytEduCardViewModelContentWrapper"},_.W("div",{class:"ytEduCardViewModelHeaderImage"},_.W(_.a,
{cond:G,
then:function(V){return _.W(_.AC,{data:V,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.W("div",{class:"ytEduCardViewModelTextContainer"},_.W("div",{class:"ytEduCardViewModelTitle"},_.W(_.mn,{text:function(){return F().title}})),_.W("div",{class:"ytEduCardViewModelSubtitle"},_.W(_.mn,{text:function(){return F().subtitle}}))),_.W("div",{class:"ytEduCardViewModelContent"},_.W(_.uC,{data:function(){return F().form}},{nudgeFormViewModel:k2m}))),_.W("div",{class:_.py("ytEduCardViewModelButtonWrapper",
function(){return F().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.W(_.uC,{data:function(){return F().primaryButton}},{buttonViewModel:function(V){return _.W("div",{class:"ytEduCardViewModelPrimaryButton"},_.W(_.tS,{data:V.data}))}}),_.W(_.uC,{data:function(){return F().secondaryButton}},{buttonViewModel:function(V){return _.W("div",{class:"ytEduCardViewModelSecondaryButton"},_.W(_.tS,{data:V.data}))}})))}))},"Qc"),"yt-edu-card-view-model",{props:{data:_.CJ}});var dT8=new _.jh("RICH_GRID_VIDEO_RENDERER_TOKEN");_.gQ(_.d(function(C){var F=C.data;var G=C.showYtInteractionInContent;var V=function(){return!!F().selectableFeedback};
C=_.u(_.yH(!1,void 0,"qxtgaf"));var J=C.next().value,b=C.next().value;_.q4(function(){var H=_.Z(F().primaryButton,_.Gz);(H==null?0:H.isToggled)&&b(H.isToggled)});
C=_.CZ(function(H){if(!V())return!1;if(J()){var l;var N=(l=F().selectableFeedback)==null?void 0:l.onDeselect}else{var S;N=(S=F().selectableFeedback)==null?void 0:S.onSelect}N&&_.wQ(N,{form:{element:H.target}});b(!J());if(H=_.Z(F().primaryButton,_.Gz))H.isToggled=J();return!1});
var z=function(){if(!V()){var H,l=(H=F().loggingDirectives)==null?void 0:H.trackingParams;l&&_.MJ(_.I8().resolve(_.hS),l)}},Q=_.xcE(),E=function(){var H;
return V()?(H=F().selectableFeedback)==null?void 0:H.a11yLabel:void 0},t=function(){return V()?{toggled:J()}:{}},k=_.I8().resolve(_.Qt(dT8)),U={};
return _.W("yt-feedback-item-renderer",{class:_.py("ytFeedbackItemRendererHost",(U.ytFeedbackItemRendererSelectableFeedback=V,U)),"on:click":C,"on:keydown":Q,title:E,"aria-label":E,"aria-pressed":function(){return V()?J():void 0},
tabindex:function(){return V()?0:void 0},
role:function(){return V()?"button":void 0}},_.W("div",{class:"ytFeedbackItemRendererContentContainer"},_.W(_.uC,{data:function(){return F().content}},{videoRenderer:function(H){return _.W(k,{data:H.data,
showYtInteraction:G})},
lockupViewModel:function(H){return _.W(_.ZM,{data:H.data,containerType:2})}})),_.W("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.W(_.uC,{data:function(){return F().primaryButton}},{toggleButtonViewModel:function(H){return _.W(_.AS,{data:H.data,
buttonShapeOverrides:t,disableExplicitClickLogging:!0,onToggle:z})}})))},"Rc"),"yt-feedback-item-renderer",{props:{data:_.CJ,
showYtInteractionInContent:_.CJ}});var Tm=function(){var C=_.B.apply(this,arguments)||this;C.isShortsGrid=!1;C.isCompactGrid=!1;C.isShortsPanelGrid=!1;C.renderedFromRichGrid=!1;C.isInFirstColumn=!1;C.noGutterMargins=!1;C.noBottomMargin=!1;C.halfBottomMargin=!1;C.isInlineGroupItem=!1;C.insetMetadata=!1;C.noBottomMarginInAds=!0;C.force16By9ThumbnailAspectRatio=!1;C.useCompactList=!1;C.containerType=2;C.thumbnailTargetWidth=9999;C.isResponsiveGrid=!1;C.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};C.hoverListener=
C.hover.bind(C);C.leaveListener=C.leave.bind(C);C.highlighted=!1;C.JSC$16270_unsubscribeFromInlinePreviewIsActive=function(){};
return C};
_.O(Tm,_.B);_.n=Tm.prototype;_.n.computeContainerType=function(){return this.useCompactList?3:2};
_.n.itemWidthChanged=function(){var C;this.thumbnailTargetWidth=(C=this.itemWidth)!=null?C:9999};
_.n.updateIsInFirstColumn=function(){var C;this.isInFirstColumn=((C=this.data)==null?void 0:C.colIndex)===0};
_.n.observerContainerType=function(){if(this.lockup){var C=this.lockup;C.containerType=this.containerType;C.sizing=this.sizing;C.typographyBump=this.typographyBump;C.itemWidth=this.itemWidth}this.richGridMedia&&_.y("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.y("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.n.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.n.leave=function(C){C=C.relatedTarget;var F=document.querySelector("ytd-video-preview");C&&F&&_.r7(F).contains(C)||this.removeAndCleanupHighlight()};
_.n.hover=function(){var C;!this.highlighted&&(C=this.data)!=null&&C.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(C=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:C,boxShadow:"0 0 0 10px "+C})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.n.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};
_.n.registerHoverHighlightListeners=function(){var C=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16270_unsubscribeFromInlinePreviewIsActive=_.hK(_.s3(),_.vai,function(F){C.highlighted&&!F&&C.removeAndCleanupHighlight()})};
_.n.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16270_unsubscribeFromInlinePreviewIsActive()};
_.n.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.n.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.n.getBackgroundColor=function(){var C,F,G=(C=this.data)==null?void 0:(F=C.onFocusEffect)==null?void 0:F.onFocusColor;if(G){if(document.documentElement.hasAttribute("dark")&&(G==null?0:G.darkTheme))return Zt(G==null?void 0:G.darkTheme);if(G==null?0:G.lightTheme)return Zt(G==null?void 0:G.lightTheme)}};
_.n.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var C=_.ZQ(),F,G,V;C&&((F=this.data)==null?0:F.trackingParams)&&((G=this.data)==null?void 0:G.colIndex)!=null&&((V=this.data)==null?void 0:V.rowIndex)!=null&&_.xB(C,_.zS(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.n.isSlimMediaRenderer=function(C){return!!_.Z(C==null?void 0:C.content,_.lSO)||!!_.Z(C==null?void 0:C.content,HSl)||!!_.Z(C==null?void 0:C.content,_.rf)||!!_.Z(C==null?void 0:C.content,Pc2)};
_.n.isPostRenderer=function(){var C,F;return!!_.Z((C=this.data)==null?void 0:C.content,xqO)||!!_.Z((F=this.data)==null?void 0:F.content,ssl)};
_.n.computeIsGameCardShelf=function(){var C;return!!_.Z((C=this.data)==null?void 0:C.content,m7l)};
_.n.computeIsMiniGameCardShelf=function(){var C,F;return!!_.Z((C=this.data)==null?void 0:C.content,IYO)||!!_.Z((F=this.data)==null?void 0:F.content,EDr)};
_.n.computeIsTeaserCard=function(){var C;return!!_.Z((C=this.data)==null?void 0:C.content,EDr)};
_.n.computeIsSelectableFeedbackItem=function(){var C,F;return!((F=_.Z((C=this.data)==null?void 0:C.content,t6l))==null||!F.selectableFeedback)};
_.n.computeContainsLumierePosters=function(){var C,F;return((F=_.Z((C=this.data)==null?void 0:C.content,KH$))==null?void 0:F.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.n.computeIsExpandOnHoverCardShelf=function(){var C;return!!_.Z((C=this.data)==null?void 0:C.content,rB2)};
_.n.computeIsLinkCardShelf=function(){var C;return!!_.Z((C=this.data)==null?void 0:C.content,GsG)};
_.n.computeIsReelItemStyleAvatarCircle=function(C){var F;return((F=_.Z(C==null?void 0:C.content,_.rf))==null?void 0:F.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.n.computeIsLinkCardFullWidth=function(C,F){var G;return((G=_.Z(C==null?void 0:C.content,GsG))==null?void 0:G.useFullWidth)||F<=2};
_.I6.Object.defineProperties(Tm.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var C;return _.y("web_hover_effect_refactor")&&_.Z((C=this.data)==null?void 0:C.content,_.J97)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.y("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var C;if(_.y("web_hover_effect_refactor")&&_.Z((C=this.data)==null?void 0:C.content,_.J97))return!1;var F;return!((F=this.data)==null||!F.onFocusEffect)||_.y("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){var C;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.y("web_hover_effect_refactor")?(C=this.data)==null?void 0:C.onFocusEffect:void 0}}}});
Tm.prototype.richGridHoverHighlightChanged=Tm.prototype.richGridHoverHighlightChanged;Tm.prototype.observerContainerType=Tm.prototype.observerContainerType;Tm.prototype.updateIsInFirstColumn=Tm.prototype.updateIsInFirstColumn;Tm.prototype.itemWidthChanged=Tm.prototype.itemWidthChanged;_.R([_.w(_.Rr),_.Y("design:type",Object)],Tm.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Tm.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],Tm.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Tm.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.CR),_.Y("design:type",Object)],Tm.prototype,"ytdLockupBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Tm.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.Y("design:type",Boolean)],Tm.prototype,"isPost",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.Y("design:type",Boolean)],Tm.prototype,"containsLumierePosters",void 0);_.R([_.L({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.Y("design:type",Boolean)],Tm.prototype,"isSlimMedia",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.Y("design:type",Boolean)],Tm.prototype,"isGameCardShelf",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.Y("design:type",Boolean)],Tm.prototype,"isMiniGameCardShelf",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.Y("design:type",Boolean)],Tm.prototype,"isTeaserCard",void 0);_.R([_.L({computed:"computeIsSelectableFeedbackItem(data)"}),_.Y("design:type",Boolean)],Tm.prototype,"isSelectableFeedbackItem",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Tm.prototype,"isShortsGrid",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Tm.prototype,"isSlimGrid",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Tm.prototype,"isCompactGrid",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Tm.prototype,"isShortsPanelGrid",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.Y("design:type",Boolean)],Tm.prototype,"isExpandOnHoverCardShelf",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.Y("design:type",Boolean)],Tm.prototype,"isLinkCardShelf",void 0);_.R([_.L({reflectToAttribute:!0,selector:_.lK,value:3}),_.Y("design:type",Number)],Tm.prototype,"itemsPerRow",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Tm.prototype,"renderedFromRichGrid",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Tm.prototype,"isInFirstColumn",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Tm.prototype,"noGutterMargins",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Tm.prototype,"noBottomMargin",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Tm.prototype,"halfBottomMargin",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Tm.prototype,"isInlineGroupItem",void 0);_.R([_.L(),_.Y("design:type",Object)],Tm.prototype,"insetMetadata",void 0);_.R([_.L(),_.Y("design:type",Object)],Tm.prototype,"noBottomMarginInAds",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Tm.prototype,"isShelfItem",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.Y("design:type",Boolean)],Tm.prototype,"isReelItemStyleAvatarCircle",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.Y("design:type",Boolean)],Tm.prototype,"isLinkCardFullWidth",void 0);_.R([_.L(),_.Y("design:type",Object)],Tm.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Tm.prototype,"useCompactList",void 0);_.R([_.L(),_.Y("design:type",String)],Tm.prototype,"sizing",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],Tm.prototype,"typographyBump",void 0);_.R([_.L(),_.Y("design:type",Number)],Tm.prototype,"itemWidth",void 0);_.R([_.L(),_.Y("design:type",Boolean)],Tm.prototype,"isHomeShelf",void 0);_.R([_.L(),_.Y("design:type",Boolean)],Tm.prototype,"isHomeGrid",void 0);
_.R([_.$z("yt-lockup-view-model"),_.Y("design:type",HTMLElement)],Tm.prototype,"lockup",void 0);_.R([_.$z("ytd-rich-grid-media"),_.Y("design:type",HTMLElement)],Tm.prototype,"richGridMedia",void 0);_.R([_.$z("ytd-ad-slot-renderer"),_.Y("design:type",HTMLElement)],Tm.prototype,"adSlotRenderer",void 0);_.R([_.L({computed:"computeContainerType(useCompactList)"}),_.Y("design:type",Object)],Tm.prototype,"containerType",void 0);_.R([_.L(),_.Y("design:type",Object)],Tm.prototype,"thumbnailTargetWidth",void 0);
_.R([_.M("showYtInteractionOnRichItem"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Tm.prototype,"showYtInteractionOnRichGridMedia",null);_.R([_.M("isSelectableFeedbackItem","richGridHoverHighlight"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Tm.prototype,"showYtInteractionOnRichItem",null);_.R([_.M("typographyBump","isHomeGrid"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Tm.prototype,"richTypographyBump",null);
_.R([_.L({reflectToAttribute:!0}),_.M("data","isShortsGrid","isCompactGrid"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Tm.prototype,"richGridHoverHighlight",null);_.R([_.M("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Tm.prototype,"shortsLockupViewModelAspectRatio",null);_.R([_.M("isInlineGroupItem"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Tm.prototype,"shortsLockupViewModelScrimStyle",null);
_.R([_.iP("itemWidth"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Tm.prototype,"itemWidthChanged",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Tm.prototype,"updateIsInFirstColumn",null);_.R([_.iP("containerType","sizing","typographyBump"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Tm.prototype,"observerContainerType",null);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Tm.prototype,"isResponsiveGrid",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Tm.prototype,"lockupExperiments",null);_.R([_.iP("richGridHoverHighlight"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Tm.prototype,"richGridHoverHighlightChanged",null);_.R([_.e({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],Tm);
_.xT2=_.Tp()(Tm,"ytd-rich-item-renderer",function(){if(OnP===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);OnP=C}C=OnP;return C},{mode:_.oN("kevlar_poly_si_batch_j028")?1:2});var KXo={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var n7W=_.eN(_.iQ("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var pGA={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},CDI={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},j2o={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var sCE;var oS=function(){var C=_.B.apply(this,arguments)||this;C.useResponsiveGrid=!1;C.hidden=!1;C.isShowMoreHidden=!1;C.isShowLessHidden=!0;C.hasExpansionButton=!1;C.isInnerShelf=!1;C.allVideosCount=0;C.allPlaylistCount=0;C.haveSmartDownloadsCompleted=!1;C.restrictContentsOverflow=!1;C.firstShownIndex=0;C.horizontalOffset=0;C.atEnd=!0;C.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
C.nextClick=function(){var F;(F=C.data)!=null&&F.contents&&(C.firstShownIndex+=C.currentElementsPerRow,C.updateHorizontalOffset(),C.updateHorizontalItemVisibility())};
C.previousClick=function(){var F;(F=C.data)!=null&&F.contents&&(C.firstShownIndex-=C.currentElementsPerRow,C.updateHorizontalOffset(),C.updateHorizontalItemVisibility())};
return C};
_.O(oS,_.B);_.n=oS.prototype;
_.n.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",noBottomMargin:"[[isCollapsed]]",halfBottomMargin:"[[isExpanded]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",
params:{buttonTooltipPosition:_.TF("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.n.attached=function(){this.requestElementsPerRow()};
_.n.refreshGridLayoutNew=function(){var C;if((C=this.data)!=null&&C.contents&&this.containerWidth){var F;((F=this.data.responsiveContainerConfiguration)==null?0:F.responsiveSize)?(C=_.Q2s(this.data.responsiveContainerConfiguration,this.containerWidth),C=_.XN(Object.assign({},C,{standardUnitMinWidth:this.standardUnitMinWidth}))):C=_.XN({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=C.typographyBump;if(this.elementsPerRow!==
C.numItems||this.gutter!==C.gutter)this.elementsPerRow=C.numItems,this.gutter=C.gutter,this.itemWidth=C.itemWidth,_.jr(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":C.gutter+"px"})}};
_.n.computeSizing=function(){if(!this.isLumiere){var C=_.fKf(this.data);return C?C:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.n.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.n.computeButton=function(C){var F=_.Z(C,_.DY);C=Object.assign({},_.Z(C,_.DY));return F?(C.text||(C.text={simpleText:C.tooltip}),C.style="STYLE_MONO_OUTLINE",C.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",C):F};
_.n.onRowIndexChange=function(){var C=_.ZQ(),F,G;((F=this.data)==null?0:F.trackingParams)&&((G=this.data)==null?void 0:G.rowIndex)!=null&&C&&_.xB(C,_.zS(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.n.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var C,F=((C=this.getRichItemRenderers()[0])==null?void 0:C.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*F;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.n.requestElementsPerRow=function(){_.oo(this.hostElement,"yt-request-elements-per-row")};
_.n.onUpdateElementsPerRowAction=function(C,F,G,V,J,b){if(this.containerWidth!==b&&(this.containerWidth=b,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&C&&F&&G&&V&&J&&(this.elementsPerRow!==C||this.postsPerRow!==F||this.slimItemsPerRow!==G||this.gameCardsPerRow!==V||this.miniGameCardsPerRow!==J)&&(this.elementsPerRow=C,this.postsPerRow=F,this.slimItemsPerRow=G,this.gameCardsPerRow=V,this.miniGameCardsPerRow=J,this.updateItemVisibility())};
_.n.isExpandedChanged=function(){var C=this.getRichItemRenderers(),F=this.isExpanded;C.forEach(function(G){G.halfBottomMargin=F})};
_.n.isCollapsedChanged=function(){var C=this.getRichItemRenderers(),F=this.isCollapsed;C.forEach(function(G){G.noBottomMargin=F})};
_.n.getRichItemRenderers=function(){return _.ot(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.n.updateItemVisibility=function(){var C=this;if(this.data&&this.data.contents){var F=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(V,J){var b;((b=C.data)==null?0:b.isExpanded)?(V.hidden=J>F-1,V.ytRendererBehavior.markDirty()):V.hidden=J>C.currentElementsPerRow-1||J>F-1});
var G=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||G||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||G||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.n.setHeightToSingleRow=function(){var C=this.getRichItemRenderers(),F=Number.parseInt(getComputedStyle(C[0]).marginBottom,10)||0;C=C.slice(0,this.currentElementsPerRow).reduce(function(G,V){return Math.max(G,V.getBoundingClientRect().height+F)},0);
this.contents.style.height=C+"px"};
_.n.focusNextExpandedItem=function(){var C;((C=this.data)==null?0:C.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.n.focusItem=function(C,F){var G=this.getRichItemRenderers();if(G[C]&&(C=G[C].querySelector(".focus-on-expand"))){if(F){var V;(V=G[this.currentElementsPerRow])==null||V.scrollIntoView({behavior:"smooth",block:"center"})}C.focus({preventScroll:!0})}};
_.n.onDataChange=function(){var C=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var F;if((F=this.data)==null?0:F.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.zH(this,function(){C.updateItemVisibility()});
var G;if((G=this.data)==null?0:G.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.jr(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),F=0;F<this.data.contents.length;F++)G=_.Z(this.data.contents[F],_.ha)||{},G.colIndex=F,G.rowIndex=this.data.rowIndex};
_.n.handleRerenderDownloadsData=function(){_.y("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())};
_.n.blockInlinePreview=function(C){var F=this,G;return _.I(function(V){(G=F.inlinePreviewIsEnabled)&&F.ytdReduxBehavior.dispatch(_.gju(!1));return V.return(new Promise(function(J){C(function(){G&&F.ytdReduxBehavior.dispatch(_.gju(!0));J()})}))})};
_.n.expandShelf=function(){var C=this;if(this.data){var F,G=(F=_.Z(this.data.showMoreButton,_.DY))==null?void 0:F.trackingParams;G&&_.MJ(_.ia(),G);this.set("data.isExpanded",!0);this.blockInlinePreview(function(V){C.setHeightToSingleRow();C.updateItemVisibility();C.contents.style.height=C.contents.scrollHeight+"px";_.gT.addJob(function(){C.contents.style.height="auto";C.focusNextExpandedItem();V()},2,200)})}};
_.n.collapseShelf=function(){var C=this;return _.I(function(F){if(F.nextAddress==1){if(!C.data)return F.return();C.set("data.isExpanded",!1);return F.yield(C.blockInlinePreview(function(G){C.contents.style.height=C.contents.scrollHeight+"px";C.setHeightToSingleRow();_.gT.addJob(function(){C.updateItemVisibility();C.contents.style.height="auto";G()},2,200)}),2)}_.oo(C.hostElement,"yt-rich-shelf-renderer-collapse",C.data.trackingParams);
C.focusItem(0,!1);_.S9(F)})};
_.n.updateArrowButtonStatus=function(){this.getRichItemRenderers();var C,F;var G=((C=this.data)==null?void 0:(F=C.contents)==null?void 0:F.length)||0;this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=G};
_.n.onChildElementFocus=function(C){this.hasChevronButtons&&(C=C.target.closest("#contents > *"),this.contents.contains(C)&&(C.offsetLeft<this.horizontalOffset?this.previousClick():C.offsetLeft+C.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.n.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.TF("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.n.updateHorizontalOffset=function(){var C=this.getRichItemRenderers(),F,G;var V=((F=this.data)==null?void 0:(G=F.contents)==null?void 0:G.length)||0;var J;C=((J=C[0])==null?void 0:J.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>V?this.firstShownIndex=V-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*C};
_.n.isSlimMediaShelfRenderer=function(){var C,F,G,V=(G=_.Z((C=this.data)==null?void 0:(F=C.contents)==null?void 0:F[0],_.ha))==null?void 0:G.content;return!!(_.Z(V,_.lSO)||_.Z(V,HSl)||_.Z(V,_.rf)||_.Z(V,Pc2))};
_.n.isGameCardShelf=function(){var C,F,G,V=(G=_.Z((C=this.data)==null?void 0:(F=C.contents)==null?void 0:F[0],_.ha))==null?void 0:G.content;return!!_.Z(V,m7l)};
_.n.isMiniGameCardShelf=function(){var C,F,G,V=(G=_.Z((C=this.data)==null?void 0:(F=C.contents)==null?void 0:F[0],_.ha))==null?void 0:G.content;return!!_.Z(V,IYO)||!!_.Z(V,EDr)};
_.n.hasGameBoxArtAvatarStyle=function(){var C;return((C=this.data)==null?void 0:C.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.n.hasRoundedGameBoxArtAvatarStyle=function(){var C;return((C=this.data)==null?void 0:C.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.n.isShortsShelf=function(){var C,F,G,V=(G=_.Z((C=this.data)==null?void 0:(F=C.contents)==null?void 0:F[0],_.ha))==null?void 0:G.content;return!!_.Z(V,_.rf)||!!_.Z(V,Pc2)};
_.n.isPostShelfRenderer=function(){var C,F,G,V=(G=_.Z((C=this.data)==null?void 0:(F=C.contents)==null?void 0:F[0],_.ha))==null?void 0:G.content;return!(!_.Z(V,xqO)&&!_.Z(V,ssl))};
_.n.isLumiereShelf=function(){var C,F,G=_.Z((C=this.data)==null?void 0:(F=C.contents)==null?void 0:F[0],_.ha);return!!_.Z(G==null?void 0:G.content,KH$)};
_.n.isLumiereShelfWithPosters=function(){var C,F,G=_.Z((C=this.data)==null?void 0:(F=C.contents)==null?void 0:F[0],_.ha),V;return((V=_.Z(G==null?void 0:G.content,KH$))==null?void 0:V.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.n.isExpandOnHoverCardShelf=function(){var C,F,G,V=(G=_.Z((C=this.data)==null?void 0:(F=C.contents)==null?void 0:F[0],_.ha))==null?void 0:G.content;return!!_.Z(V,rB2)};
_.n.computeHasFeaturedBadge=function(){var C,F,G=_.Z((C=this.data)==null?void 0:(F=C.badges)==null?void 0:F[0],_.Wwu);return G?G.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.n.computeHasPaygatedFeaturedBadge=function(){var C,F,G=_.Z((C=this.data)==null?void 0:(F=C.badges)==null?void 0:F[0],_.Wwu);return G?(G==null?void 0:G.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.n.computeHeaderHidden=function(){var C,F,G,V,J,b;return!((C=this.data)==null?0:C.icon)&&!((F=this.data)==null?0:F.title)&&!((G=this.data)==null?0:G.subtitle)&&!((V=this.data)==null?0:V.thumbnail)&&!((J=this.data)==null?0:J.badges)&&!((b=this.data)==null?0:b.menu)};
_.n.showCtaButton=function(){var C;return!((C=this.data)==null||!C.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.n.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.n.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.n.computeForce16By9ThumbnailAspectRatio=function(){var C,F;return((C=this.data)==null?void 0:(F=C.responsiveContainerConfiguration)==null?void 0:F.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.n.onSectionReactiveDismissal=function(C,F,G){var V,J;var b=(V=this.data)==null?void 0:(J=V.targetingContext)==null?void 0:J.targetGroupId;this&&b&&F.targetGroupId&&b.includes(F.targetGroupId)?(V=this.rowIndex,C=V===void 0?!1:!(F.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&V<=C)):C=!1;C&&(this.hidden=G)};
_.I6.Object.defineProperties(oS.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null?0:C.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var C=this.elementsPerRow;this.isPostShelfRenderer()?C=this.postsPerRow:this.isSlimMediaShelfRenderer()?C=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?C=this.slimItemsPerRow-1:this.isGameCardShelf()?C=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(C=this.miniGameCardsPerRow);return C}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null?0:C.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var C,F;return!((C=this.data)==null||!C.previousButton)&&!((F=this.data)==null||!F.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 C;return((C=_.I8().resolve(_.qG).getCurrentPage())==null?void 0:C.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var C,F,G,V;return!((C=this.data)==null?0:(F=C.thumbnail)==null?0:(G=F.accessibility)==null?0:(V=G.accessibilityData)==null?0:V.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
oS.prototype.onChildElementFocus=oS.prototype.onChildElementFocus;oS.prototype.handleRerenderDownloadsData=oS.prototype.handleRerenderDownloadsData;oS.prototype.onDataChange=oS.prototype.onDataChange;oS.prototype.isCollapsedChanged=oS.prototype.isCollapsedChanged;oS.prototype.isExpandedChanged=oS.prototype.isExpandedChanged;oS.prototype.onRowIndexChange=oS.prototype.onRowIndexChange;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],oS.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],oS.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.T6),_.Y("design:type",Object)],oS.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],oS.prototype,"actionHandlerBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],oS.prototype,"ytdReduxBehavior",void 0);
_.R([_.L({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.Y("design:type",Object)],oS.prototype,"useResponsiveGrid",void 0);_.R([_.L(),_.Y("design:type",Object)],oS.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Number)],oS.prototype,"standardUnitMinWidth",void 0);_.R([_.L({reflectToAttribute:!0,value:3}),_.Y("design:type",Number)],oS.prototype,"elementsPerRow",void 0);_.R([_.L({value:3}),_.Y("design:type",Number)],oS.prototype,"postsPerRow",void 0);
_.R([_.L({value:6}),_.Y("design:type",Number)],oS.prototype,"slimItemsPerRow",void 0);_.R([_.L({value:6}),_.Y("design:type",Number)],oS.prototype,"gameCardsPerRow",void 0);_.R([_.L({value:6}),_.Y("design:type",Number)],oS.prototype,"miniGameCardsPerRow",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],oS.prototype,"hidden",void 0);_.R([_.L(),_.Y("design:type",Object)],oS.prototype,"isShowMoreHidden",void 0);
_.R([_.L(),_.Y("design:type",Object)],oS.prototype,"isShowLessHidden",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],oS.prototype,"hasExpansionButton",void 0);_.R([_.M("data.isExpanded"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],oS.prototype,"isExpanded",null);_.R([_.M("data.isExpanded"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],oS.prototype,"isCollapsed",null);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],oS.prototype,"isInnerShelf",void 0);_.R([_.L({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.Y("design:type",Boolean)],oS.prototype,"isShorts",void 0);_.R([_.L({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.Y("design:type",Boolean)],oS.prototype,"isLumiere",void 0);_.R([_.L({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.Y("design:type",Boolean)],oS.prototype,"hasBoxArtThumbnailStyle",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.Y("design:type",Boolean)],oS.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.Y("design:type",Boolean)],oS.prototype,"hasFeaturedBadge",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.Y("design:type",Boolean)],oS.prototype,"hasPaygatedFeaturedBadge",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.Y("design:type",Boolean)],oS.prototype,"isHeaderHidden",void 0);_.R([_.L({selector:_.dQo}),_.Y("design:type",Object)],oS.prototype,"allVideosCount",void 0);_.R([_.L({selector:z4B}),_.Y("design:type",Object)],oS.prototype,"allPlaylistCount",void 0);_.R([_.L({selector:rSS}),_.Y("design:type",Object)],oS.prototype,"haveSmartDownloadsCompleted",void 0);
_.R([_.L({selectorArgs:["entitySelectorType"],selector:function(C,F){if(_.y("kevlar_modern_downloads_page")&&F&&F!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var G=C.entities;switch(F){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":F=_.aA(G);C=Fc(F);var V=_.zc(F);G=_.U3(G);G=_.YB(GXq(V,G,F.length));return{contents:C,subtitle:G};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return G=_.aA(G),{contents:Fc(G)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return G=
_.k2(G),{contents:Fc(G)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return G=_.WPw(G),{contents:Fc(G)};default:_.Yw(new _.Ay("Error: entitySelectorType defined but not matched in selector.",C,F))}}}}),
_.Y("design:type",Object)],oS.prototype,"entityDrivenRichShelfData",void 0);_.R([_.L({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.Y("design:type",Boolean)],oS.prototype,"hasTopCtaButton",void 0);_.R([_.L({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.Y("design:type",Boolean)],oS.prototype,"hasBottomCtaButton",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.Y("design:type",Boolean)],oS.prototype,"force16By9ThumbnailAspectRatio",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],oS.prototype,"restrictContentsOverflow",void 0);_.R([_.L({selector:_.f7Z}),_.Y("design:type",Boolean)],oS.prototype,"inlinePreviewIsEnabled",void 0);_.R([_.L({computed:"computeSizing(data)"}),_.Y("design:type",String)],oS.prototype,"sizing",void 0);
_.R([_.L(),_.Y("design:type",Boolean)],oS.prototype,"typographyBump",void 0);_.R([_.L(),_.Y("design:type",Number)],oS.prototype,"itemWidth",void 0);_.R([_.L(),_.Y("design:type",Object)],oS.prototype,"firstShownIndex",void 0);_.R([_.L(),_.Y("design:type",Object)],oS.prototype,"horizontalOffset",void 0);_.R([_.L(),_.Y("design:type",Object)],oS.prototype,"atEnd",void 0);_.R([_.$z("#contents"),_.Y("design:type",HTMLElement)],oS.prototype,"contents",void 0);
_.R([_.iP("data.rowIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oS.prototype,"onRowIndexChange",null);_.R([_.iP("isExpanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oS.prototype,"isExpandedChanged",null);_.R([_.iP("isCollapsed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oS.prototype,"isCollapsedChanged",null);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oS.prototype,"onDataChange",null);_.R([_.iP("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oS.prototype,"handleRerenderDownloadsData",null);_.R([_.VG("focusin"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],oS.prototype,"onChildElementFocus",null);
_.R([_.L({reflectToAttribute:!0}),_.M("data","isHomePage"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],oS.prototype,"isTruncated",null);_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],oS.prototype,"showBottomDivider",null);_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],oS.prototype,"hasChevronButtons",null);
_.R([_.M("firstShownIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],oS.prototype,"previousButtonOverride",null);_.R([_.M("atEnd"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],oS.prototype,"nextButtonOverride",null);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],oS.prototype,"isHomePage",null);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],oS.prototype,"thumbnailAriaHidden",null);
_.R([_.M("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],oS.prototype,"entitySelectorType",null);_.R([_.e({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],oS);
_.qT$=_.Tp()(oS,"ytd-rich-shelf-renderer",function(){if(sCE===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);sCE=C}C=sCE;return C},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.oN("kevlar_poly_si_batch_j028")?1:2});var PjG;_.gQ(_.WI,"yt-badge-view-model",{props:{data:_.CJ,class:_.CJ,workaroundShortsIsThumbnailBadge:_.CJ,modern:_.CJ}});_.gQ(tcO,"yt-slimline-survey-view-model",{props:{data:_.CJ}});var rb=function(){var C=_.B.apply(this,arguments)||this;C.tileLottieAnimationRef={};C.backgroundLottieAnimationRef={};C.isOnHoverBehaviorForLottieEnabled=!0;C.useBiggerShowcaseImage=_.y("enable_desktop_search_bigger_thumbs");C.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return C};
_.O(rb,_.B);_.n=rb.prototype;_.n.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.n.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},
"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.n.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var C=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);C!==this.hasTile&&this.set("hasTile",C);C=this.hasLogo(this.data)||!!this.data.badgeText;C!==this.hasMetadata&&this.set("hasMetadata",C);C=this.data.overflowButton?!1:C;C!==this.showLogoImage&&this.set("showLogoImage",C);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.n.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.n.currentColorChanged=function(){this.updateButtonPalette()};
_.n.computeBackgroundStyle=function(C){if(C&&this.data){var F=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var G=_.Ye((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);G&&F.push('background-image: url("'+G+'");')}var V;((V=C.basicColorData)==null?void 0:V.backgroundColor)!==void 0&&F.push("background-color: "+_.lE(C.basicColorData.backgroundColor)+";");return F.join("")}};
_.n.onDarkModeToggledAction=function(C){C!==this.isDarkTheme&&this.set("isDarkTheme",C)};
_.n.getCurrentLogo=function(C,F){if(C)return F?C.darkLogoImage:C.lightLogoImage};
_.n.getCurrentStaticTileImage=function(C,F){if(this.hasStaticTile(C))return C.darkTileImage?F?C.darkTileImage:C.tileImage:C.tileImage};
_.n.computeTitleStyle=function(C){if(this.data&&this.data.title&&C&&C.basicColorData&&C.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.Hr(C.basicColorData.foregroundTitleColor)+";"};
_.n.computeSubtitleStyle=function(C){if(this.data&&this.data.subtitle&&C&&C.basicColorData&&C.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.Hr(C.basicColorData.foregroundBodyColor)+";"};
_.n.computeSupplementalStyle=function(C){if(this.data&&this.data.supplementalText&&C&&C.supplementalTextColor!==void 0)return C=_.Hr(C.supplementalTextColor),"color:"+C+";--yt-endpoint-color:"+C+";--yt-endpoint-hover-color:"+C+";--yt-endpoint-visited-color:"+C+";--yt-formatted-string-bold-font-weight:700;"};
_.n.computeDismissIconStyle=function(C){var F,G;if((C==null?0:(F=C.dismissButtonColorData)==null?0:F.foregroundTitleColor)&&(C==null?0:(G=C.dismissButtonColorData)==null?0:G.backgroundColor))return"--yt-button-color:"+_.lE(C.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.lE(C.dismissButtonColorData.backgroundColor)+";"};
_.n.computeOverflowIconStyle=function(C){var F,G;if((C==null?0:(F=C.dismissButtonColorData)==null?0:F.foregroundTitleColor)&&(C==null?0:(G=C.dismissButtonColorData)==null?0:G.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.lE(C.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.lE(C.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.lE(C.dismissButtonColorData.foregroundTitleColor)+";"};
_.n.computeBannerStyle=function(C){return C?C.toLowerCase().replace(/_/g,"-"):""};
_.n.computeLocation=function(C){switch(C==null?void 0:C.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.n.shouldShowTileSection=function(C,F,G){return!this.shouldExpandLogo(C,F,G)&&F};
_.n.shouldShowExpandedLogoSection=function(C,F,G){return this.shouldExpandLogo(C,F,G)&&C!==void 0&&this.hasLogo(C)};
_.n.shouldExpandLogo=function(C,F,G){return C&&F?!1:G>=2};
_.n.hasStaticTile=function(C){return!(C==null||!C.tileImage)};
_.n.hasTileLottie=function(C){var F;return!!(C==null?0:(F=C.tileLottie)==null?0:F.url)};
_.n.hasLogo=function(C){return this.getCurrentLogo(C,this.isDarkTheme)!==void 0};
_.n.getLogoHeight=function(C){return this.logoWithPadding(C)?"26":"20"};
_.n.getExpandedLogoHeight=function(C){return this.logoWithPadding(C)?"31":"24"};
_.n.getLogoImageId=function(C){return this.logoWithPadding(C)?"logo-image-with-padding":"logo-image"};
_.n.getMaxTitleFontSize=function(C){return C.overrideTitleMaxFontSize?String(C.overrideTitleMaxFontSize):"36"};
_.n.hasBackgroundLottie=function(C){var F;return!!(C==null?0:(F=C.backgroundLottie)==null?0:F.url)};
_.n.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var C,F;(C=this.tileLottieAnimationRef)==null||(F=C.lottieEl)==null||F.play();var G,V;(G=this.backgroundLottieAnimationRef)==null||(V=G.lottieEl)==null||V.play()}};
_.n.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var C,F;(C=this.tileLottieAnimationRef)==null||(F=C.lottieEl)==null||F.pause();var G,V;(G=this.backgroundLottieAnimationRef)==null||(V=G.lottieEl)==null||V.pause()}};
_.n.pauseLottie=function(){var C,F;(C=this.tileLottieAnimationRef)==null||(F=C.lottieEl)==null||F.pause();var G,V;(G=this.backgroundLottieAnimationRef)==null||(V=G.lottieEl)==null||V.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.n.performPrimaryButtonAction=function(){var C,F,G;((C=this.data)==null?0:(F=C.primaryButton)==null?0:(G=F.buttonRenderer)==null?0:G.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.n.requestElementsPerRow=function(){_.oo(this.hostElement,"yt-request-elements-per-row")};
_.n.updateButtonPalette=function(){if(this.data&&this.currentColorData){var C;((C=this.data.dismissButton)==null?0:C.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 F;if((F=this.data.primaryButton)==null?0:F.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 G;if((G=this.data.secondaryButton)==
null?0:G.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 V;((V=this.data.primaryButton)==null?0:V.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var J;((J=this.data.secondaryButton)==null?0:J.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var b;((b=this.data.primaryButton)==null?0:b.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},
this.data.primaryButton.buttonViewModel)})}};
_.n.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var C=this.getTileLottieDataBasedOnTheme(),F,G;if(C.url!==((F=this.tileLottiePlayerProps)==null?void 0:(G=F.animationConfig)==null?void 0:G.path)){var V,J;(V=this.tileLottieAnimationRef)==null||(J=V.lottieEl)==null||J.destroy();var b;this.isOnHoverBehaviorForLottieEnabled=!((b=C.settings)==null?0:b.autoplay);var z,Q;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(Q=(z=C.settings)==null?void 0:z.autoplay)!=null?Q:!1,loop:this.getLottieLoopValue(C.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof C.url==="string"?this.tileLottiePlayerProps.animationConfig.path=C.url:this.tileLottiePlayerProps.animationConfig.animationData=C.url}}};
_.n.getOverflowButton=function(C){return _.Z(C.overflowButton,oaP)};
_.n.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var C=this.getBackgroundLottieDataBasedOnTheme(),F,G;if(C.url!==((F=this.backgroundLottiePlayerProps)==null?void 0:(G=F.animationConfig)==null?void 0:G.path)){var V,J;(V=this.backgroundLottieAnimationRef)==null||(J=V.lottieEl)==null||J.destroy();var b;this.isOnHoverBehaviorForLottieEnabled=!((b=C.settings)==null?0:b.autoplay);var z,Q;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(Q=(z=C.settings)==null?void 0:z.autoplay)!=null?Q:!1,loop:this.getLottieLoopValue(C.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof C.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=C.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
C.url}}};
_.n.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var C;((C=this.tileLottieAnimationRef)==null?void 0:C.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var F;((F=this.backgroundLottieAnimationRef)==null?void 0:F.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.n.getTileLottieDataBasedOnTheme=function(){var C;if(this.isDarkTheme&&((C=this.data)==null?0:C.darkThemeTileLottie))return this.data.darkThemeTileLottie;var F;return((F=this.data)==null?0:F.tileLottie)?this.data.tileLottie:{}};
_.n.getBackgroundLottieDataBasedOnTheme=function(){var C;if(this.isDarkTheme&&((C=this.data)==null?0:C.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var F;return((F=this.data)==null?0:F.backgroundLottie)?this.data.backgroundLottie:{}};
_.n.onUpdateElementsPerRowAction=function(C){C&&this.elementsPerRow!==C&&(this.elementsPerRow=C)};
_.n.getLottieLoopValue=function(C){return C?C.loop!==void 0?C.loop:C.loopCount?C.loopCount-1:!0:!0};
_.n.logoWithPadding=function(C){var F,G,V;return(C=(F=this.getCurrentLogo(C,this.isDarkTheme))==null?void 0:(G=F.thumbnails)==null?void 0:(V=G[0])==null?void 0:V.height)&&C%31===0?!0:!1};
rb.prototype.currentColorChanged=rb.prototype.currentColorChanged;rb.prototype.themeChanged=rb.prototype.themeChanged;rb.prototype.dataChanged=rb.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],rb.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],rb.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.T6),_.Y("design:type",Object)],rb.prototype,"ytdDismissibleItemBehavior",void 0);
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],rb.prototype,"actionHandlerBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],rb.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],rb.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],rb.prototype,"primaryButton",void 0);_.R([_.L(),_.Y("design:type",Object)],rb.prototype,"secondaryButton",void 0);
_.R([_.L({reflectToAttribute:!0,value:3}),_.Y("design:type",Number)],rb.prototype,"elementsPerRow",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],rb.prototype,"isDarkTheme",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],rb.prototype,"hasTile",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],rb.prototype,"hasMetadata",void 0);
_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],rb.prototype,"showLogoImage",void 0);_.R([_.L(),_.Y("design:type",Object)],rb.prototype,"currentColorData",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.Y("design:type",String)],rb.prototype,"bannerStyle",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.Y("design:type",String)],rb.prototype,"location",void 0);
_.R([_.L(),_.Y("design:type",Object)],rb.prototype,"tileLottiePlayerProps",void 0);_.R([_.L(),_.Y("design:type",Object)],rb.prototype,"tileLottieAnimationRef",void 0);_.R([_.L(),_.Y("design:type",Object)],rb.prototype,"backgroundLottiePlayerProps",void 0);_.R([_.L(),_.Y("design:type",Object)],rb.prototype,"backgroundLottieAnimationRef",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],rb.prototype,"useBiggerShowcaseImage",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],rb.prototype,"isHideEnclosingAction",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rb.prototype,"dataChanged",null);_.R([_.zp("isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rb.prototype,"themeChanged",null);
_.R([_.zp("currentColorData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rb.prototype,"currentColorChanged",null);_.R([_.e({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],rb);
_.q(rb,"ytd-statement-banner-renderer",function(){if(PjG!==void 0)return PjG;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[getMaxTitleFontSize(data)]]" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[data.badge]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n            <div id="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return PjG=C},{mode:1});var gG2;var K6=function(){var C=_.B.apply(this,arguments)||this;C.isSearch=!1;C.hideShelfHeader=!1;C.engagementPanel=!1;C.disableMouseScroll=!0;C.useFloorScrolling=!0;return C};
_.O(K6,_.B);K6.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.iQ("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.iQ("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
K6.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
K6.prototype.onDataChanged=K6.prototype.onDataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],K6.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],K6.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],K6.prototype,"isSearch",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],K6.prototype,"hideShelfHeader",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],K6.prototype,"engagementPanel",void 0);_.R([_.L(),_.Y("design:type",Object)],K6.prototype,"disableMouseScroll",void 0);_.R([_.L(),_.Y("design:type",Object)],K6.prototype,"useFloorScrolling",void 0);_.R([_.L(),_.Y("design:type",Object)],K6.prototype,"data",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],K6.prototype,"onDataChanged",null);
_.R([_.e({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],K6);
_.q(K6,"ytd-reel-shelf-renderer",function(){if(gG2!==void 0)return gG2;var C=document.createElement("template");_.X(C,'\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="header" class="style-scope ytd-reel-shelf-renderer">\n  <div id="image-container" class="style-scope ytd-reel-shelf-renderer">\n    <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-reel-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-reel-shelf-renderer">\n    </yt-icon>\n  </div>\n  <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n    <h2 class="style-scope ytd-reel-shelf-renderer">\n      <div id="title-text" class="style-scope ytd-reel-shelf-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n        <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n      </div>\n      <div id="subtitle-text" class="style-scope ytd-reel-shelf-renderer">\n        <dom-repeat as="badge" items="[[data.badges]]" class="style-scope ytd-reel-shelf-renderer">\n          <template class="style-scope ytd-reel-shelf-renderer">\n            <yt-badge-view-model data="[[badge.badgeViewModel]]" class="style-scope ytd-reel-shelf-renderer"></yt-badge-view-model>\n          </template>\n        </dom-repeat>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n      </div>\n    </h2>\n  </div>\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return gG2=C},{mode:_.oN("kevlar_poly_si_batch_j028")?1:2});var RgG;var YTG;YTG=_.h6(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.Two=_.kf(YTG);var oGm=_.d(function(C){var F=C.data;C=C.useSmallFont;var G={},V={};return _.W("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.W(_.a,{cond:function(){return F().favicon},
then:function(J){return _.W(_.AC,{data:J,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.W("div",{class:"ytChannelExternalLinkViewModelContainer"},_.W(_.mn,{text:function(){return F().title},
className:_.py("ytChannelExternalLinkViewModelTitle",(G.ytChannelExternalLinkViewModelTitleSmallFont=C,G)),ellipsisTruncate:!0,userInput:!0}),_.W(_.mn,{text:function(){return F().link},
className:_.py("ytChannelExternalLinkViewModelLink",(V.ytChannelExternalLinkViewModelLinkSmallFont=C,V)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Sc");
oGm.idomCompat=!0;_.gQ(oGm,"yt-channel-external-link-view-model",{props:{data:_.CJ,useSmallFont:_.CJ}});_.ae("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var DJ=function(){var C=_.B.apply(this,arguments)||this;C.revealButtonClass="button";C.businessEmailDisplayState="HIDE_SECTION";return C};
_.O(DJ,_.B);_.n=DJ.prototype;_.n.refit=function(){var C=this;_.L5(function(){_.KX(C.hostElement,"yt-refit-popups-action")});
_.zH(this,function(){_.KX(C.hostElement,"yt-refit-popups-action")})};
_.n.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.LX(_.Two),this.businessEmailDisplayState="CAPTCHA")};
_.n.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"};
_.n.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.n.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"}}}};
_.n.computeEmailHref=function(C){return"mailto:"+C};
_.n.computeSafeUrl=function(C){if(C)return _.Ph(C)};
_.n.linkEndpoint=function(C){return _.Z(C.onTap,_.yp)};
_.n.linkEndpointToHref=function(C){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(C))};
_.n.onYtServiceRequestCompleted=function(C){var F;if((F=C.detail.data)==null?0:F.businessEmail)this.businessEmail=C.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var G;if((G=C.detail.data)==null?0:G.errorMessage)this.businessEmailErrorMessage=C.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.n.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var C=this.JSC$16384_captchaTextarea.value;if(C){C={recaptcha_response_token:C,channel_id:this.metadata.channelId};var F=_.Z(this.metadata.onBusinessEmailRevealClickCommand,_.yp);F&&this.ytComponentBehavior.resolveCommand(F,{form:C})}}};
_.n.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.I6.Object.defineProperties(DJ.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var C;return _.Z((C=this.data)==null?void 0:C.metadata,CN8)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.Z(this.metadata.businessEmailRevealButton,_.jl)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var C=new URL(this.metadata.canonicalChannelUrl);return C.host+C.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 _.Z(this.metadata.learnMoreOnTap,_.yp)}}});
DJ.prototype.onYtServiceRequestCompleted=DJ.prototype.onYtServiceRequestCompleted;DJ.prototype.businessEmailMetadataChanged=DJ.prototype.businessEmailMetadataChanged;DJ.prototype.refit=DJ.prototype.refit;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],DJ.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],DJ.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],DJ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.$z("#g-recaptcha-response"),_.Y("design:type",HTMLTextAreaElement)],DJ.prototype,"JSC$16384_captchaTextarea",void 0);_.R([_.L(),_.Y("design:type",Object)],DJ.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],DJ.prototype,"revealButtonClass",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DJ.prototype,"metadata",null);
_.R([_.M("metadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DJ.prototype,"revealButton",null);_.R([_.M("metadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DJ.prototype,"channelDisplayUrl",null);_.R([_.zp("metadata"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DJ.prototype,"refit",null);_.R([_.M("metadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DJ.prototype,"formattedDescription",null);
_.R([_.M("metadata","learnMoreCommand"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],DJ.prototype,"shouldRendereVerifiedPhoneStatus",null);_.R([_.M("metadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DJ.prototype,"learnMoreCommand",null);_.R([_.L(),_.Y("design:type",String)],DJ.prototype,"businessEmailDisplayState",void 0);_.R([_.L(),_.Y("design:type",String)],DJ.prototype,"businessEmail",void 0);
_.R([_.L(),_.Y("design:type",String)],DJ.prototype,"businessEmailErrorMessage",void 0);_.R([_.zp("metadata"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DJ.prototype,"businessEmailMetadataChanged",null);_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],DJ.prototype,"onYtServiceRequestCompleted",null);_.R([_.e({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],DJ);
_.q(DJ,"ytd-about-channel-renderer",function(){if(RgG!==void 0)return RgG;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return RgG=C},{mode:1});var rd2;var p6=function(){return _.B.apply(this,arguments)||this};
_.O(p6,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],p6.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],p6.prototype,"data",void 0);_.R([_.e({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],p6);
_.q(p6,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(rd2!==void 0)return rd2;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return rd2=C},{mode:1});var K6E;var mZ=function(){return _.B.apply(this,arguments)||this};
_.O(mZ,_.B);mZ.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],mZ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],mZ.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],mZ.prototype,"aligment",void 0);_.R([_.e({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],mZ);
_.q(mZ,"ytd-channel-list-sub-menu-renderer",function(){if(K6E!==void 0)return K6E;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return K6E=
C},{mode:1});var DTS;var Cw=function(){return _.B.apply(this,arguments)||this};
_.O(Cw,_.B);Cw.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}}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Cw.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Cw.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Cw.prototype,"data",void 0);_.R([_.e({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],Cw);
_.q(Cw,"ytd-channel-sub-menu-renderer",function(){if(DTS!==void 0)return DTS;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return DTS=C},{mode:1});var pzE;var mTl;var jg=function(){var C=_.B.apply(this,arguments)||this;C.isCompact=!1;return C};
_.O(jg,_.B);_.I6.Object.defineProperties(jg.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var C,F;return((F=_.Z((C=this.data)==null?void 0:C.endpoint,_.jW))==null?void 0:F.target)==="TARGET_NEW_WINDOW"}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],jg.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],jg.prototype,"componentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],jg.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],jg.prototype,"isCompact",void 0);_.R([_.M("isCompact"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],jg.prototype,"thumbnailWidth",null);
_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],jg.prototype,"openNewWindow",null);_.R([_.e({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],jg);
_.q(jg,"ytd-media-lockup-renderer",function(){if(mTl!==void 0)return mTl;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return mTl=C},{mode:1});var Ck8;var Fa=function(){return _.B.apply(this,arguments)||this};
_.O(Fa,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Fa.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Fa.prototype,"componentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Fa.prototype,"data",void 0);_.R([_.e({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],Fa);
_.q(Fa,"ytd-structured-description-channel-lockup-renderer",function(){if(Ck8!==void 0)return Ck8;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Ck8=C},{mode:1});var jGu;var GQ=function(){var C=_.B.apply(this,arguments)||this;C.isCompact=!1;C.collectionsStackColor=_.y("modernize_structured_description_playlist_lockups_v2");return C};
_.O(GQ,_.B);GQ.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:_.y("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.I6.Object.defineProperties(GQ.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var C,F,G,V,J,b;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,sampledThumbnailColor:this.collectionsStackColor?(C=this.data)==null?void 0:(F=C.thumbnail)==null?void 0:F.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(G=this.data)==null?void 0:(V=G.thumbnail)==null?void 0:V.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(J=this.data)==null?void 0:(b=J.thumbnail)==null?
void 0:b.vibrantColorPalette:void 0}}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],GQ.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],GQ.prototype,"componentBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],GQ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],GQ.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],GQ.prototype,"showSidePanelThumbnailOverlay",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],GQ.prototype,"isCompact",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],GQ.prototype,"collectionsStackColor",void 0);_.R([_.M("data"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],GQ.prototype,"twoLineTitle",null);_.R([_.M("data","collectionsStackColor"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],GQ.prototype,"collectionStack",null);
_.R([_.e({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],GQ);
_.q(GQ,"ytd-structured-description-playlist-lockup-renderer",function(){if(jGu!==void 0)return jGu;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" aria-label$="[[getSimpleString(data.title)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return jGu=C},{mode:1});var FCo;var Vx=function(){return _.B.apply(this,arguments)||this};
_.O(Vx,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Vx.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Vx.prototype,"componentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Vx.prototype,"data",void 0);_.R([_.e({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],Vx);
_.q(Vx,"ytd-structured-description-video-lockup-renderer",function(){if(FCo!==void 0)return FCo;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return FCo=C},{mode:2});var ir=function(){return _.B.apply(this,arguments)||this};
_.O(ir,_.B);
ir.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}}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ir.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],ir.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],ir.prototype,"data",void 0);_.R([_.e({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],ir);
_.q(ir,"ytd-compact-infocard-renderer",function(){if(pzE!==void 0)return pzE;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return pzE=C},{mode:1});var Gqy;var JI=function(){return _.B.apply(this,arguments)||this};
_.O(JI,_.B);JI.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.I6.Object.defineProperties(JI.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.y("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.y("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.y("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],JI.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],JI.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.T6),_.Y("design:type",Object)],JI.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],JI.prototype,"ytdReduxBehavior",void 0);_.R([_.L({selector:_.ZH}),_.Y("design:type",Object)],JI.prototype,"isGridViewEnabled",void 0);
_.R([_.M("isGridViewEnabled"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],JI.prototype,"watchFeedBigThumbs",null);_.R([_.M("isGridViewEnabled","data"),_.L({reflectToAttribute:!0,value:"168"}),_.Y("design:type",String),_.Y("design:paramtypes",[])],JI.prototype,"thumbnailWidth",null);_.R([_.M("isGridViewEnabled","data"),_.L({reflectToAttribute:!0,value:"94"}),_.Y("design:type",String),_.Y("design:paramtypes",[])],JI.prototype,"customThumbnailSize",null);
_.R([_.L(),_.Y("design:type",Object)],JI.prototype,"data",void 0);_.R([_.e({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],JI);
_.q(JI,"ytd-compact-playlist-renderer",function(){if(Gqy!==void 0)return Gqy;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Gqy=C},{mode:1});var VF$;var $1=function(){var C=_.B.apply(this,arguments)||this;C.darkerDarkTheme=_.y("web_darker_dark_theme");C.roundedContainer=!0;C.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return C};
_.O($1,_.B);_.n=$1.prototype;_.n.attached=function(){this.requestElementsPerRow()};
_.n.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"}}}};
_.n.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.n.computeViewStyle=function(C){return C.style?C.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.n.onUpdateElementsPerRowAction=function(C){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&C===1};
_.n.requestElementsPerRow=function(){_.oo(this.hostElement,"yt-request-elements-per-row")};
$1.prototype.dataChanged=$1.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],$1.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],$1.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.T6),_.Y("design:type",Object)],$1.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],$1.prototype,"actionHandlerBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],$1.prototype,"data",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],$1.prototype,"hideThumbnail",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.Y("design:type",String)],$1.prototype,"viewStyle",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],$1.prototype,"darkerDarkTheme",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],$1.prototype,"roundedContainer",void 0);
_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$1.prototype,"dataChanged",null);_.R([_.e({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],$1);
_.q($1,"ytd-compact-promoted-item-renderer",function(){if(VF$!==void 0)return VF$;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return VF$=C},{mode:1});var igP;var br=function(){return _.B.apply(this,arguments)||this};
_.O(br,_.B);br.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
br.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
br.prototype.onYtNavigate=function(C,F){var G=this;if(F.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",F)){var V=this.get("watchEndpoint.videoId",F.endpoint),J=_.KX(this.hostElement,"yt-get-current-video-id-action")[0];_.y("kevlar_mix_handle_first_endpoint_different")&&V&&J&&V!==J||(C.stopPropagation(),_.Re().getPlayerPromise().then(function(b){if(b.getPlayerState()===0&&G.data.secondaryNavigationEndpoint)var z=G.data.secondaryNavigationEndpoint;else{z=
Object.assign({},F.endpoint);var Q=_.Z(z.commandMetadata,_.GU);Q&&(b=Math.floor(b.getCurrentTime()),Q.url=_.Jy(Q.url,{t:b}),!_.y("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(Q=_.Z(z,_.eT)))&&(Q.startTimeSeconds=b)}_.oo(G.hostElement,"yt-navigate",{endpoint:z})}))}};
_.I6.Object.defineProperties(br.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.y("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.y("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var C,F,G,V,J,b;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(C=this.data)==null?void 0:(F=C.thumbnail)==null?void 0:F.sampledThumbnailColor,vibrantColorPalette:(G=this.data)==null?void 0:(V=G.thumbnail)==null?void 0:V.vibrantColorPalette,darkColorPalette:(J=this.data)==null?void 0:(b=J.thumbnail)==null?void 0:b.darkColorPalette,experimentEnabled:!0}}}});
br.prototype.onYtNavigate=br.prototype.onYtNavigate;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],br.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.yR.YtEndpointBehavior),_.Y("design:type",Object)],br.prototype,"ytEndpointBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],br.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.T6),_.Y("design:type",Object)],br.prototype,"ytdDismissibleItemBehavior",void 0);
_.R([_.w(_.CR),_.Y("design:type",Object)],br.prototype,"ytdLockupBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],br.prototype,"ytdReduxBehavior",void 0);_.R([_.L({selector:_.ZH}),_.Y("design:type",Object)],br.prototype,"isGridViewEnabled",void 0);_.R([_.M("isGridViewEnabled"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],br.prototype,"watchFeedBigThumbs",null);
_.R([_.M("isGridViewEnabled"),_.L({reflectToAttribute:!0}),_.Y("design:type",String),_.Y("design:paramtypes",[])],br.prototype,"thumbnailWidth",null);_.R([_.L(),_.Y("design:type",Object)],br.prototype,"data",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],br.prototype,"collectionStack",null);_.R([_.VG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],br.prototype,"onYtNavigate",null);
_.R([_.e({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],br);
_.q(br,"ytd-compact-radio-renderer",function(){if(igP!==void 0)return igP;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return igP=C},{mode:1});var JAm;var nw=function(){return _.B.apply(this,arguments)||this};
_.O(nw,_.B);nw.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
nw.prototype.computeRendererStyle=function(C){return C.style?C.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.R([_.L(),_.Y("design:type",Object)],nw.prototype,"data",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],nw.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],nw.prototype,"rendererBehavior",void 0);_.R([_.L({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.Y("design:type",String)],nw.prototype,"rendererStyle",void 0);_.R([_.e({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],nw);
_.q(nw,"ytd-compact-text-promo-renderer",function(){if(JAm!==void 0)return JAm;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return JAm=C},{mode:1});var $uE;var ur=function(){var C=_.B.apply(this,arguments)||this;C.isShortsStyle=!1;return C};
_.O(ur,_.B);_.n=ur.prototype;_.n.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"}}}};
_.n.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.oo(this.hostElement,"yt-disable-lockup-interaction"):_.oo(this.hostElement,"yt-enable-lockup-interaction"))};
_.n.isMetaBlockEmpty=function(C){return!C||!C.longBylineText&&!C.shortBylineText&&!C.shortViewCountText&&!C.viewCountText};
_.n.computeHasOneLineTitle=function(C){return this.forceOneLineTitle||!(C==null||!C.buttons)};
_.n.computeDisableInteraction=function(){var C;return!((C=this.data)==null?0:C.navigationEndpoint)};
_.n.hasSingularTopStandaloneBadge=function(){var C;return!((C=this.data)==null||!C.topStandaloneBadge)};
_.I6.Object.defineProperties(ur.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.y("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.y("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 C;return this.hasSingularTopStandaloneBadge()?[(C=this.data)==null?void 0:C.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var C;return this.shouldShowTopBadges?((C=this.data)==null?void 0:C.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
ur.prototype.disableInteractionChanged=ur.prototype.disableInteractionChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ur.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],ur.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.T6),_.Y("design:type",Object)],ur.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.w(_.CR),_.Y("design:type",Object)],ur.prototype,"ytdLockupBehavior",void 0);
_.R([_.w(_.Rr),_.Y("design:type",Object)],ur.prototype,"ytdReduxBehavior",void 0);_.R([_.L({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.Y("design:type",Boolean)],ur.prototype,"metaBlockEmpty",void 0);_.R([_.L({selector:_.ZH}),_.Y("design:type",Object)],ur.prototype,"isGridViewEnabled",void 0);_.R([_.M("isGridViewEnabled"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ur.prototype,"watchFeedBigThumbs",null);
_.R([_.M("isGridViewEnabled"),_.L({reflectToAttribute:!0}),_.Y("design:type",String),_.Y("design:paramtypes",[])],ur.prototype,"thumbnailWidth",null);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],ur.prototype,"isShortsStyle",void 0);_.R([_.L(),_.Y("design:type",Object)],ur.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.Y("design:type",Boolean)],ur.prototype,"hasOneLineTitle",void 0);
_.R([_.L(),_.Y("design:type",Boolean)],ur.prototype,"hideThumbnail",void 0);_.R([_.L(),_.Y("design:type",Boolean)],ur.prototype,"forceOneLineTitle",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.Y("design:type",Boolean)],ur.prototype,"disableInteraction",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],ur.prototype,"musicMetadataVideoLockup",void 0);
_.R([_.iP("disableInteraction"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ur.prototype,"disableInteractionChanged",null);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ur.prototype,"shouldShowTopBadges",null);_.R([_.M("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],ur.prototype,"topBadges",null);
_.R([_.M("shouldShowTopBadges","data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],ur.prototype,"inlineMetadataBadges",null);_.R([_.M("shouldShowTopBadges"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ur.prototype,"shouldShowBadgesBelowMetadata",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ur.prototype,"compactTitleClass",null);_.R([_.e({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],ur);
_.q(ur,"ytd-compact-video-renderer",function(){if($uE!==void 0)return $uE;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return $uE=C},{mode:_.oN("kevlar_poly_si_batch_j067")?1:2});var bgo;_.ae("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var zQ=function(){return _.B.apply(this,arguments)||this};
_.O(zQ,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],zQ.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],zQ.prototype,"data",void 0);_.R([_.e({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],zQ);
_.q(zQ,"ytd-counterfactual-renderer",function(){if(bgo!==void 0)return bgo;var C=document.createElement("template");_.X(C,"\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");C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return bgo=C},{mode:1});var nEm;var Qx=function(){var C=_.B.apply(this,arguments)||this;C.hidden=!1;return C};
_.O(Qx,_.B);Qx.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.I8().resolve(_.WD).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
Qx.prototype.computeHidden=function(C){return!!C};
_.I6.Object.defineProperties(Qx.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}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Qx.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Qx.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.Y("design:type",Object)],Qx.prototype,"hidden",void 0);_.R([_.M("data.label"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Qx.prototype,"label",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Qx.prototype,"value",null);
_.R([_.e({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],Qx);
_.q(Qx,"ytd-dropdown-item-renderer",function(){if(nEm!==void 0)return nEm;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return nEm=C},{mode:1});var unG;var z6m;var Ii=function(){return _.B.apply(this,arguments)||this};
_.O(Ii,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Ii.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Ii.prototype,"data",void 0);_.R([_.L({computed:"getSimpleString(data.label)"}),_.Y("design:type",String)],Ii.prototype,"label",void 0);_.R([_.e({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],Ii);
_.q(Ii,"ytd-navigation-dropdown-item-renderer",function(){if(z6m!==void 0)return z6m;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return z6m=C},{mode:1});var E2=function(){var C=_.B.apply(this,arguments)||this;C.disabled=!1;C.value="";C.noLabelFloat=!1;C.noUnderline=!1;C.usePrimaryColor=!1;C.hasBackground=!1;C.verticalAlign="top";C.autosize=!1;C.minAutosizeWidth=100;C.autosizeFont="14px Roboto";return C};
_.O(E2,_.B);_.n=E2.prototype;_.n.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"}}}};
_.n.open=function(){this.inputEl.open()};
_.n.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.n.dataChanged=function(){this.reset()};
_.n.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G6("value-changed",this.value))};
_.n.stopPropagation=function(C){C.stopPropagation()};
_.n.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var C=this.canvas.getContext("2d");C&&(C.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(C.measureText(this.inputEl.value).width)+24)+"px")}};
_.n.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var C=0,F=this.data.entries.length;C<F;C++){var G=this.data.entries[C],V;for(V in G)if(G.hasOwnProperty(V)){var J=G[V];if("isSelected"in J&&J.isSelected)return"stringValue"in J?J.stringValue||"":"int32Value"in J?J.int32Value||0:0}}return null};
_.n.updateValueFromBinding=function(C){this.value=C.detail.value};
_.I6.Object.defineProperties(E2.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 C=0,F=this.data.entries.length;C<F;C++){var G=this.data.entries[C],V;for(V in G)if(G.hasOwnProperty(V)){var J=G[V];if("isSelected"in J&&J.isSelected&&"label"in J)return this.ytRendererBehavior.getSimpleString(J.label)}}return null}}});
E2.prototype.autoSizeLabel=E2.prototype.autoSizeLabel;E2.prototype.stopPropagation=E2.prototype.stopPropagation;E2.prototype.valueChangedForBinding=E2.prototype.valueChangedForBinding;E2.prototype.dataChanged=E2.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],E2.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],E2.prototype,"ytRendererStamperBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],E2.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],E2.prototype,"disabled",void 0);_.R([_.L(),_.Y("design:type",Object)],E2.prototype,"value",void 0);_.R([_.L(),_.Y("design:type",Object)],E2.prototype,"noLabelFloat",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],E2.prototype,"noUnderline",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],E2.prototype,"theme",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],E2.prototype,"usePrimaryColor",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],E2.prototype,"hasBackground",void 0);_.R([_.L(),_.Y("design:type",Object)],E2.prototype,"verticalAlign",void 0);_.R([_.L(),_.Y("design:type",Object)],E2.prototype,"autosize",void 0);_.R([_.L(),_.Y("design:type",Object)],E2.prototype,"minAutosizeWidth",void 0);_.R([_.L(),_.Y("design:type",Object)],E2.prototype,"autosizeFont",void 0);
_.R([_.$z("#entries"),_.Y("design:type",Object)],E2.prototype,"entries",void 0);_.R([_.$z("#input"),_.Y("design:type",Object)],E2.prototype,"inputEl",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],E2.prototype,"dataChanged",null);_.R([_.zp("value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],E2.prototype,"valueChangedForBinding",null);
_.R([_.VG("iron-overlay-opened"),_.VG("iron-overlay-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],E2.prototype,"stopPropagation",null);_.R([_.VG("iron-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],E2.prototype,"autoSizeLabel",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],E2.prototype,"label",null);
_.R([_.e({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],E2);
_.q(E2,"ytd-dropdown-renderer",function(){if(unG!==void 0)return unG;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return unG=C},{mode:1});var QGu;var WO=function(){var C=_.B.apply(this,arguments)||this;C.isConstrainedList=!1;return C};
_.O(WO,_.B);WO.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"}}}};
WO.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
WO.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
WO.prototype.computeViewAllHidden=function(C,F){return C||!F.viewAllEndpoint};
WO.prototype.fillRestIfNoShowMore=WO.prototype.fillRestIfNoShowMore;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],WO.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],WO.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.zR.YtLazyListBehavior),_.Y("design:type",Object)],WO.prototype,"ytLazyListBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],WO.prototype,"data",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],WO.prototype,"isConstrainedList",void 0);_.R([_.zp("data","canShowMore"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WO.prototype,"fillRestIfNoShowMore",null);_.R([_.e({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],WO);
_.q(WO,"ytd-expanded-shelf-contents-renderer",function(){if(QGu!==void 0)return QGu;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return QGu=C},{mode:_.oN("kevlar_poly_si_batch_j025")?1:2});var Igu;var tI=function(){return _.B.apply(this,arguments)||this};
_.O(tI,_.B);tI.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}}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],tI.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],tI.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],tI.prototype,"data",void 0);_.R([_.e({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],tI);
_.q(tI,"ytd-feed-channel-filter-header-renderer",function(){if(Igu!==void 0)return Igu;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Igu=C},{mode:1});var EEu;var WCu;var tF8;var ai=function(){return _.B.apply(this,arguments)||this};
_.O(ai,_.B);_.n=ai.prototype;_.n.onClick=function(C){var F,G=(F=this.data)==null?void 0:F.sectionEndpoint;!_.dE(_.AR(C),this.hostElement,["A".toString()])&&G&&_.oo(this.hostElement,"yt-navigate",{endpoint:G})};
_.n.computeHasSectionEndpoint=function(C){return(C==null?void 0:C.sectionEndpoint)!==void 0};
_.n.computeShowHeaderAsLink=function(C){return(C==null?void 0:C.header)!==void 0&&(C==null?void 0:C.sectionEndpoint)!==void 0};
_.n.computeShowSubheaderAsLink=function(C){return(C==null?void 0:C.subheader)!==void 0&&(C==null?void 0:C.sectionEndpoint)!==void 0&&(C==null?void 0:C.header)===void 0};
_.n.getHeaderAsLinkClass=function(C){var F=[],G;(C==null?0:(G=C.headerIcon)==null?0:G.iconType)&&F.push("header-link-active");return F.join(" ")};
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],ai.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ai.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],ai.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],ai.prototype,"data",void 0);
_.R([_.L({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],ai.prototype,"hasSectionEndpoint",void 0);_.R([_.L({computed:"computeShowHeaderAsLink(data)"}),_.Y("design:type",Boolean)],ai.prototype,"showHeaderAsLink",void 0);_.R([_.L({computed:"computeShowSubheaderAsLink(data)"}),_.Y("design:type",Boolean)],ai.prototype,"showSubheaderAsLink",void 0);_.R([_.e({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],ai);
_.q(ai,"ytd-medical-panel-section-renderer",function(){if(tF8!==void 0)return tF8;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return tF8=C},{mode:1});var k1=function(){var C=_.B.apply(this,arguments)||this;C.isExpanded=!1;C.roundedContainer=!0;C.skipRoundingTop=!1;C.toggleExpandableSection=function(){C.isExpanded=!C.isExpanded};
return C};
_.O(k1,_.B);
k1.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]]"}}}}}};
k1.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
k1.prototype.dataChanged=k1.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],k1.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],k1.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],k1.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],k1.prototype,"isExpanded",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],k1.prototype,"roundedContainer",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],k1.prototype,"skipRoundingTop",void 0);_.R([_.L(),_.Y("design:type",Object)],k1.prototype,"toggleExpandableSection",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],k1.prototype,"dataChanged",null);_.R([_.e({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],k1);
_.q(k1,"ytd-medical-panel-content-renderer",function(){if(WCu!==void 0)return WCu;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return WCu=C},{mode:1});_.ae("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var U2=function(){var C=_.B.apply(this,arguments)||this;C.roundedContainer=!0;C.extractOverlay=!1;C.amsterdamEnabled=_.y("enable_desktop_amsterdam_info_panels");C.hasTitle=!1;C.linkIcon="OPEN_IN_NEW";C.isDismissed=!1;return C};
_.O(U2,_.B);U2.prototype.onOverlayConditionsChange=function(){var C=_.ot(this.hostElement).querySelector("ytd-info-panel-content-renderer");C&&(C.set("extractOverlay",this.extractOverlay),C.set("roundedContainer",this.roundedContainer))};
U2.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]",extractOverlay:"[[extractOverlay]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",
roundedContainer:"[[roundedContainer]]"}},horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
U2.prototype.computeHasTitle=function(C){return!(C==null||!C.title)};
U2.prototype.onClick=function(C){var F,G=(F=this.data)==null?void 0:F.headerEndpoint;!_.dE(_.AR(C),this.hostElement,["BUTTON".toString()])&&G&&this.ytComponentBehavior.resolveCommand(G)};
_.I6.Object.defineProperties(U2.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 C;return((C=this.data)==null?void 0:C.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var C,F;return((C=this.data)==null?void 0:C.disableBottomDivider)||!((F=this.data)==null?0:F.title)}}});
U2.prototype.onOverlayConditionsChange=U2.prototype.onOverlayConditionsChange;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],U2.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],U2.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],U2.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],U2.prototype,"ytdReduxBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],U2.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],U2.prototype,"roundedContainer",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],U2.prototype,"extractOverlay",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],U2.prototype,"amsterdamEnabled",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.Y("design:type",Object)],U2.prototype,"hasTitle",void 0);
_.R([_.L({type:_.y("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.M("data.background"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],U2.prototype,"background",null);_.R([_.L({type:_.y("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.M("data.titleStyle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],U2.prototype,"titleStyle",null);
_.R([_.L({type:_.y("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.M("data.titleStyle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],U2.prototype,"showLinkIcon",null);_.R([_.L(),_.Y("design:type",String)],U2.prototype,"linkIcon",void 0);_.R([_.L({type:_.y("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],U2.prototype,"hideDivider",null);
_.R([_.L({selectorArgs:["data.dismissStateEntityKey"],selector:function(C,F){C=_.jN(C.entities,"dismissState",F);return(C==null?void 0:C.isDismissed)||(C==null?void 0:C.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(C==null?void 0:C.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.Y("design:type",Object)],U2.prototype,"isDismissed",void 0);_.R([_.iP("roundedContainer","extractOverlay"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],U2.prototype,"onOverlayConditionsChange",null);_.R([_.e({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],U2);
_.q(U2,"ytd-info-panel-container-renderer",function(){if(EEu!==void 0)return EEu;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return EEu=C},{mode:1});var agS;_.ae("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var HO=function(){return _.B.apply(this,arguments)||this};
_.O(HO,_.B);HO.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
HO.prototype.computeStyle=function(C){return C?C:""};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],HO.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],HO.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],HO.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.Y("design:type",String)],HO.prototype,"titleStyle",void 0);
_.R([_.e({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],HO);
_.Tp()(HO,"ytd-item-section-header-renderer",function(){if(agS===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);agS=C}C=agS;return C},{allowedProps:["data"],
mode:1});var kqy;var UuE,Hgu=function(){return UuE!==void 0?UuE:UuE=document.createElement("template")};
document.head.appendChild(Hgu().content);var lg7;_.lr=new _.jh("VOTING_ANIMATION_CONTROLLER_TOKEN");var Zgy=_.d(function(C){var F=C.data;var G=_.Jt("div"),V=_.Jt("div");C=_.u(_.yH("VOTE_STATUS_NONE",void 0,"YPH5mf"));var J=C.next().value,b=C.next().value,z=_.$b(Imf,function(){var H;return(H=F())==null?void 0:H.entityKey}),Q=_.y("web_enable_voting_animation")||_.y("enable_music_web_cairo_voting_animation");
_.q4(function(){var H;((H=F().initialState)==null?0:H.status)&&b(F().initialState.status)});
var E=function(){var H,l,N=(l=(H=F().initialState)==null?void 0:H.votes)!=null?l:0,S;H=(S=F().initialState)==null?void 0:S.status;return H==="VOTE_STATUS_UPVOTED"?N-1:H==="VOTE_STATUS_DOWNVOTED"?N+1:N},t=function(){return J()==="VOTE_STATUS_UPVOTED"?E()+1:J()==="VOTE_STATUS_DOWNVOTED"?E()-1:E()},k=function(H){var l=H?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
b(l);var N=t(),S=_.I8().resolve(_.Qt(_.lr)),f=z();f&&(H&&(f==null?0:f.upvoteDefaultButtonOnTap)?_.wQ(f.upvoteDefaultButtonOnTap,{form:{element:G.value},disableClickTracking:!0}):(f==null?0:f.upvoteToggledButtonOnTap)&&_.wQ(f.upvoteToggledButtonOnTap,{form:{element:G.value},disableClickTracking:!0}));var c;H=(c=f==null?void 0:f.enableOptimisticReordering)!=null?c:F().enableOptimisticReordering;Q&&S&&F().itemId&&H&&yAu(S,F().itemId,N,l)},U=function(H){var l=H?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
b(l);var N=t(),S=_.I8().resolve(_.Qt(_.lr)),f=z();f&&(H&&(f==null?0:f.downvoteDefaultButtonOnTap)?_.wQ(f.downvoteDefaultButtonOnTap,{form:{element:V.value},disableClickTracking:!0}):(f==null?0:f.downvoteToggledButtonOnTap)&&_.wQ(f.downvoteToggledButtonOnTap,{form:{element:V.value},disableClickTracking:!0}));var c;H=(c=f==null?void 0:f.enableOptimisticReordering)!=null?c:F().enableOptimisticReordering;Q&&S&&F().itemId&&H&&yAu(S,F().itemId,N,l)};
C={};C=_.py("ytVotingViewModelVoteCount",(C.ytVotingViewModelVoteCountDisabled=function(){return F().isDisabled},C));
return _.W("voting-view-model",{class:"ytVotingViewModelHost"},_.W("div",{el:G},_.W(_.uC,{data:function(){var H=_.Z(F().upvoteButton,_.Gz);return{toggleButtonViewModel:Object.assign({},H,{isToggled:J()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(H){return _.W(_.AS,{data:H.data,
onToggle:k})}})),_.W("div",{class:C},function(){var H,l,N;
return J()==="VOTE_STATUS_UPVOTED"?(H=F().initialState)==null?void 0:H.compactVotesUpvoted:J()==="VOTE_STATUS_DOWNVOTED"?(l=F().initialState)==null?void 0:l.compactVotesDownvoted:(N=F().initialState)==null?void 0:N.compactVotes}),_.W("div",{el:V},_.W(_.uC,{data:function(){var H=_.Z(F().downvoteButton,_.Gz);
return{toggleButtonViewModel:Object.assign({},H,{isToggled:J()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(H){return _.W(_.AS,{data:H.data,
onToggle:U})}})))},"Tc");_.gQ(_.d(function(C){var F=C.data;return _.W("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.W("div",{class:_.py("ytEngagementBarViewModelEngagementBarWrapper",C.className)},_.W(_.uC,{data:function(){return F().actions}},{votingViewModel:Zgy})))},"Uc"),"engagement-bar-view-model",{props:{data:_.CJ,
className:_.CJ}});var yx=function(){var C=_.B.apply(this,arguments)||this;C.playlistVotingAnimationEnabled=_.y("web_enable_voting_animation");C.downloadProgress=0;C.transferState="TRANSFER_STATE_UNKNOWN";C.downloadState="DOWNLOAD_STATE_UNKNOWN";C.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";C.offlineVideoPolicyExpirationTimestamp=0;return C};
_.O(yx,_.B);_.n=yx.prototype;_.n.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"}}}};
_.n.canReorderChanged=function(){this.persistentDragHandle=_.y("kevlar_playlist_drag_handles")&&this.canReorder};
_.n.onDrag=function(){if(this.thumbnail){var C=_.ot(this.thumbnail).querySelector("yt-image");C&&(C.shouldRenderLazy=!1)}};
_.n.onMenuOverlayChanged=function(C,F){this.menuOpened=F};
_.n.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.n.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.n.onContentsTap=function(C){var F,G=(F=this.data)==null?void 0:F.serviceEndpoints;if(G&&G.length===1&&_.Z(G[0],Ut5)&&!_.dE(_.AR(C),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(G[0]);else{var V;(F=(V=this.data)==null?void 0:V.navigationEndpoint)&&_.y("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?NAS(_.I8().resolve(_.Od),F):(_.v0().playlistSuggestionsShelfActivation=
!0,_.OgS(_.I8().resolve(_.Od),F)):F&&!_.dE(_.AR(C),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.y("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.oo(this.hostElement,"yt-navigate",{endpoint:F}):this.ytComponentBehavior.resolveCommand(F))}};
_.n.computeStyle=function(C){return C?C.toLowerCase().replace(/_/g,"-"):""};
_.n.computeThumbnailWidth=function(C){return C==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.n.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=bRB(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))}};
_.n.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.n.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.n.dataChanged=function(){if(this.data){var C,F,G,V=((C=this.downloadRenderData)==null?void 0:C.badges)&&((F=this.downloadRenderData)==null?void 0:F.badges)!==((G=this.data)==null?void 0:G.badges),J,b,z;C=((J=this.downloadRenderData)==null?void 0:J.thumbnailOverlays)&&((b=this.downloadRenderData)==null?void 0:b.thumbnailOverlays)!==((z=this.data)==null?void 0:z.thumbnailOverlays);(!this.downloadRenderData||V||C)&&this.downloadStateChanged()}};
_.n.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var C,F,G=(C=this.data.menu)==null?void 0:(F=C.menuRenderer)==null?void 0:F.items;if(G)for(C=_.u(G),F=C.next();!F.done;F=C.next())if(F=F.value,G=void 0,_.Z((G=F.menuServiceItemRenderer)==null?void 0:G.serviceEndpoint,_.TL)){var V=G=void 0,J=void 0;F=(G=F)==null?void 0:(V=G.menuServiceItemRenderer)==null?void 0:(J=V.serviceEndpoint)==null?void 0:J.playlistEditEndpoint;J=V=void 0;if(G=(V=F)==null?void 0:(J=V.actions)==null?void 0:
J[0])V=void 0,G.setVideoId=(V=this.data)==null?void 0:V.setVideoId;J=V=G=void 0;if(F=(G=F)==null?void 0:(V=G.clientActions)==null?void 0:(J=V[0])==null?void 0:J.playlistRemoveVideosAction)G=void 0,F.setVideoIds=[(G=this.data)==null?void 0:G.setVideoId]}}};
_.I6.Object.defineProperties(yx.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
yx.prototype.setVideoIdChanged=yx.prototype.setVideoIdChanged;yx.prototype.dataChanged=yx.prototype.dataChanged;yx.prototype.downloadStateChanged=yx.prototype.downloadStateChanged;yx.prototype.onMenuOverlayChanged=yx.prototype.onMenuOverlayChanged;yx.prototype.canReorderChanged=yx.prototype.canReorderChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],yx.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],yx.prototype,"ytdReduxBehavior",void 0);
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],yx.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.CR),_.Y("design:type",Object)],yx.prototype,"ytdLockupBehavior",void 0);_.R([_.w(_.T6),_.Y("design:type",Object)],yx.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],yx.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],yx.prototype,"data",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],yx.prototype,"canReorder",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],yx.prototype,"menuOpened",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],yx.prototype,"handleIsHovered",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],yx.prototype,"persistentDragHandle",void 0);_.R([_.L(),_.Y("design:type",Object)],yx.prototype,"downloadRenderData",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],yx.prototype,"styleType",void 0);_.R([_.L({computed:"computeThumbnailWidth(data.style)"}),_.Y("design:type",Number)],yx.prototype,"thumbnailWidth",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],yx.prototype,"isDownloads",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],yx.prototype,"playlistVotingAnimationEnabled",void 0);
_.R([_.L({selector:wd,selectorArgs:["data.videoId"]}),_.Y("design:type",Object)],yx.prototype,"downloadProgress",void 0);_.R([_.L(),_.Y("design:type",Number)],yx.prototype,"relativeDateReference",void 0);_.R([_.L({selector:_.O3,selectorArgs:["data.videoId"]}),_.Y("design:type",Object)],yx.prototype,"transferState",void 0);_.R([_.L({selector:pnZ,selectorArgs:["data.videoId"]}),_.Y("design:type",Object)],yx.prototype,"downloadState",void 0);
_.R([_.L({selector:ASZ,selectorArgs:["data.videoId"]}),_.Y("design:type",Object)],yx.prototype,"offlinePolicyAction",void 0);_.R([_.L({selector:ehf,selectorArgs:["data.videoId"]}),_.Y("design:type",Object)],yx.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.R([_.L({selector:xQB,selectorArgs:["data.videoId"]}),_.Y("design:type",Object)],yx.prototype,"entityInfo",void 0);_.R([_.L({selector:_.yj}),_.Y("design:type",Boolean)],yx.prototype,"miniplayerIsActive",void 0);
_.R([_.M("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],yx.prototype,"playlistVideoId",null);_.R([_.$z("#thumbnail"),_.Y("design:type",Object)],yx.prototype,"thumbnail",void 0);_.R([_.zp("canReorder"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yx.prototype,"canReorderChanged",null);
_.R([_.VG("yt-menu-overlay-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Boolean]),_.Y("design:returntype")],yx.prototype,"onMenuOverlayChanged",null);_.R([_.zp("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yx.prototype,"downloadStateChanged",null);
_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yx.prototype,"dataChanged",null);_.R([_.zp("data.setVideoId"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yx.prototype,"setVideoIdChanged",null);_.R([_.e({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],yx);
_.q(yx,"ytd-playlist-video-renderer",function(){if(lg7!==void 0)return lg7;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);C.content.insertBefore(Hgu().content.cloneNode(!0),C.content.firstChild);return lg7=C},{mode:1});var XHm;var ZT=function(){return _.B.apply(this,arguments)||this};
_.O(ZT,_.B);_.R([_.L(),_.Y("design:type",Object)],ZT.prototype,"data",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ZT.prototype,"rendererBehavior",void 0);_.R([_.e({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],ZT);
_.q(ZT,"ytd-premium-browse-footer-renderer",function(){if(XHm!==void 0)return XHm;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return XHm=C},{mode:1});var wHl;var NL=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return C};
_.O(NL,_.B);_.n=NL.prototype;_.n.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.n.handleDarkModeToggledAction=function(C){this.isDarkTheme=C};
_.n.computeHeaderLogoThumbnail=function(C,F){if(C)return F?C.darkLogo:C.lightLogo};
_.n.computeHeaderLogoHeight=function(C,F){var G,V,J;return(C=(G=this.computeHeaderLogoThumbnail(C,F))==null?void 0:(V=G.thumbnails)==null?void 0:(J=V[0])==null?void 0:J.height)&&C%31===0?"31":"24"};
_.n.computeHeaderLogoMarginBottom=function(C,F){return this.computeHeaderLogoHeight(C,F)==="24"?"0":"-7"};
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],NL.prototype,"actionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],NL.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],NL.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Boolean)],NL.prototype,"isDarkTheme",void 0);_.R([_.L({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.Y("design:type",Object)],NL.prototype,"themeLogo",void 0);
_.R([_.L({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.Y("design:type",String)],NL.prototype,"logoHeight",void 0);_.R([_.L({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.Y("design:type",String)],NL.prototype,"logoMarginBottom",void 0);_.R([_.e({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],NL);
_.q(NL,"ytd-primetime-promo-header-renderer",function(){if(wHl!==void 0)return wHl;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return wHl=C},{mode:1});var MF8;_.O2=_.d(function(C){var F=C.className;var G=C.data;var V=C.isOverlay;var J=C.maxLinesOverride;var b=C.useMediumText;var z=function(){return G().alwaysShowTruncationText},Q=function(){return G().truncationText},E=function(){return b!==void 0&&b()?"medium":"small"},t=function(){return V!==void 0&&V()?"overlay":"default"},k=function(){var N,S;
return(S=(N=_.Z(G().rendererContext,_.$Z))==null?void 0:N.label)!=null?S:""};
C=_.u(_.yH(!1,void 0,"OKr1o"));var U=C.next().value,H=C.next().value;C=_.CZ(function(){G().expandOnTap&&H(!U());return!1});
var l={};return _.W("yt-description-preview-view-model",{el:_.dQ(_.lC(function(){return G().rendererContext})),
class:_.py("ytDescriptionPreviewViewModelHost",F,(l.ytDescriptionPreviewViewModelClickable=function(){var N;return!((N=_.Z(G().rendererContext,KtZ))==null||!N.onTap)},l.ytDescriptionPreviewViewModelIsOverlay=V,l)),
"on:click":C},_.W(_.a,{cond:function(){return G().description},
then:function(N){return _.W(_.a,{cond:U,then:function(){var S={};return _.W("div",{class:_.py("ytDescriptionPreviewViewModelDescription",(S.ytDescriptionPreviewViewModelDescriptionMediumText=b,S))},_.W(_.mn,{text:N}))},
else:function(){return _.W(cfl,{text:N,alwaysShowTruncationText:z,truncationText:Q,maxLines:function(){var S;return(S=J==null?void 0:J())!=null?S:G().maxLines},
textStyle:t,accessibilityLabel:k,textSize:E})}})}}))},"Vc");
_.O2.idomCompat=!0;var LCm=_.d(function(C){var F=_.CZ(function(J){var b;(b=C.onClick)==null||b.call(C,J)}),G={},V={};
return _.W("yt-shelf-header-layout",{class:_.py("yt-shelf-header-layout",(G["yt-shelf-header-layout--disable-horizontal-padding"]=C.disableHorizontalPadding,G["yt-shelf-header-layout--disable-vertical-padding"]=C.disableVerticalPadding,G["yt-shelf-header-layout--responsive"]=C.useResponsiveLayout,G["yt-shelf-header-layout--narrow"]=function(){var J,b;return((J=C.useResponsiveLayout)==null?void 0:J.call(C))&&((b=C.forceSmallLayout)==null?void 0:b.call(C))},G["yt-shelf-header-layout--is-overlay"]=C.isOverlay,
G["yt-shelf-header-layout--tappable"]=C.isInteractive,G)),
"on:click":F,tabindex:function(){var J;return((J=C.isInteractive)==null?0:J.call(C))?0:void 0}},_.W("div",{class:"yt-shelf-header-layout__header-row"},_.W(_.a,{cond:C.leadingIcon,
then:function(J){return _.W("div",{class:"yt-shelf-header-layout__leading-icon"},_.W(_.i5,{icon:J}))},
else:function(){return _.W(_.a,{cond:C.hasLeadingImage,then:function(){var J,b={};return _.W("div",{class:_.py("yt-shelf-header-layout__leading-image",(b["yt-shelf-header-layout__leading-image--circular-image"]=C.circularImage,b))},(J=C.leadingImage)==null?void 0:J.call(C))}})}}),_.W("div",{class:"yt-shelf-header-layout__label-container"},_.W(_.a,{cond:C.hasSuperlabel,
then:function(){var J;return _.W("div",{class:"yt-shelf-header-layout__superlabel"},(J=C.superlabel)==null?void 0:J.call(C))}}),_.W("div",{class:"yt-shelf-header-layout__title-row"},_.W(SQy,{text:C.title,
className:_.py("yt-shelf-header-layout__title",(V["yt-shelf-header-layout__title--small-title"]=C.forceSmallLayout,V)),tagLevel:C.tagLevel}),_.W(_.a,{cond:C.hasDetail,then:function(){var J;return _.W("div",{class:"yt-shelf-header-layout__detail"},(J=C.detail)==null?void 0:J.call(C))}})),_.W(_.a,{cond:C.hasSublabel,
then:function(){var J;return _.W("div",{class:"yt-shelf-header-layout__sublabel"},(J=C.sublabel)==null?void 0:J.call(C))}})),_.W(_.a,{cond:C.hasTrailingActions,
then:function(){var J;return _.W("div",{class:"yt-shelf-header-layout__trailing-actions"},(J=C.trailingActions)==null?void 0:J.call(C))}})),_.W(_.a,{cond:C.hasBottomAccessory,
then:function(){var J;return _.W("div",{class:"yt-shelf-header-layout__bottom-accessory"},(J=C.bottomAccessory)==null?void 0:J.call(C))}}))},"Wc");
LCm.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var SQy=_.d(function(C){var F=C.text;var G=C.className;var V=C.tagLevel;return _.W(_.e_,null,_.W(_.hg,{when:function(){return(V==null?void 0:V())===0}},function(){return _.W("h2",{class:G},F())}),_.W(_.hg,{when:function(){return(V==null?void 0:V())===1}},function(){return _.W("h3",{class:G},F())}),_.W(_.hg,{when:function(){return(V==null?void 0:V())===2}},function(){return _.W("h4",{class:G},F())}),_.W(_.cQ,null,function(){return _.W("h2",{class:G},F())}))},"Xc");var fgu,BAG,vEE;_.Xa=_.d(function(C){var F=C.className;var G=C.data;var V=C.disableHorizontalPadding;var J=C.disableVerticalPadding;var b=C.forceSmallLayout;var z=C.useResponsiveLayout;C=C.isOverlay;return _.W("yt-section-header-view-model",{class:_.py("ytSectionHeaderViewModelHost",F),style:_.VA({"background-color":function(){return GZ(G().backgroundColor)?_.lE(GZ(G().backgroundColor)):void 0}})},_.W(LCm,{hasDetail:!1,
title:function(){return _.W(_.mn,{text:function(){return G().headline}})},
hasTitle:!0,sublabel:function(){return _.W(BAG,{data:G})},
hasSublabel:function(){return!!G().sublabel||!!G().bottomBadge},
superlabel:function(){return _.W(vEE,{data:G})},
hasSuperlabel:function(){return!!G().superlabel||!!G().topBadge},
leadingImage:function(){return _.W(fgu,{leadingAccessory:function(){return G().leadingAccessory}})},
hasLeadingImage:function(){return!!G().leadingAccessory},
trailingActions:function(){return _.W(_.uC,{data:function(){return G().trailingActions}},{flexibleActionsViewModel:_.YW})},
hasTrailingActions:function(){return!!G().trailingActions},
disableHorizontalPadding:V,disableVerticalPadding:J,forceSmallLayout:b,useResponsiveLayout:z,isOverlay:C,isInteractive:function(){return!!_.UI(G().rendererContext)},
onClick:function(Q){if(_.Hl(G().rendererContext)){var E=_.UI(G().rendererContext);E&&_.ND(E,{form:{element:Q.target,event:Q}})}},
bottomAccessory:function(){return _.W(_.uC,{data:function(){return G().bottomAccessory}},{descriptionPreviewViewModel:_.O2})},
hasBottomAccessory:function(){return!!G().bottomAccessory}}))},"Yc");
fgu=_.d(function(C){var F=C.leadingAccessory;return _.W(_.WQ,null,_.W(_.a,{cond:function(){var G;return(G=F().image)!=null?G:_.Mh(F().themedImage)},
then:function(G){return _.W(_.AC,{data:G,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.W(_.a,{cond:function(){return _.Z(F().avatar,_.yJ)},
then:function(G){return _.W(_.g$,{data:G})}}))},"Zc");
BAG=_.d(function(C){var F=C.data;return _.W(_.WQ,null,_.W(_.a,{cond:function(){return _.Z(F().bottomBadge,Cpy)},
then:function(G){var V={};return _.W(_.WI,{data:G,class:_.py((V.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!G()&&!!F().sublabel},V))})}}),_.W(_.a,{cond:function(){return F().sublabel},
then:function(G){return _.W(_.mn,{text:G})}}))},"$c");
vEE=_.d(function(C){var F=C.data;return _.W(_.WQ,null,_.W(_.a,{cond:function(){return _.Z(F().topBadge,Cpy)},
then:function(G){var V={};return _.W(_.WI,{data:G,class:_.py((V.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!G()&&!!F().superlabel},V))})}}),_.W(_.a,{cond:function(){return F().superlabel},
then:function(G){return _.W(_.mn,{text:G})}}))},"ad");_.gQ(_.Xa,"yt-section-header-view-model",{props:{data:_.CJ,className:_.CJ,disableHorizontalPadding:_.CJ,disableVerticalPadding:_.CJ,forceSmallLayout:_.CJ,useResponsiveLayout:_.CJ,isOverlay:_.CJ}});_.ae("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var wY=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return C};
_.O(wY,_.B);_.n=wY.prototype;_.n.attached=function(){this.requestElementsPerRow()};
_.n.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"}}}};
_.n.onDataChange=function(){var C=this;_.zH(this,function(){C.updateItemVisibility()})};
_.n.onUpdateElementsPerRowAction=function(C){C&&this.elementsPerRow!==C&&(this.elementsPerRow=C,this.updateItemVisibility())};
_.n.updateItemVisibility=function(){var C=this;this.data&&this.data.panels&&_.ot(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(F,G){F.hidden=G>C.elementsPerRow-1})};
_.n.requestElementsPerRow=function(){_.oo(this.hostElement,"yt-request-elements-per-row")};
wY.prototype.onDataChange=wY.prototype.onDataChange;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],wY.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.T6),_.Y("design:type",Object)],wY.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],wY.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],wY.prototype,"actionHandlerBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],wY.prototype,"data",void 0);_.R([_.L({value:3}),_.Y("design:type",Number)],wY.prototype,"elementsPerRow",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wY.prototype,"onDataChange",null);_.R([_.e({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],wY);
_.q(wY,"ytd-primetime-promo-renderer",function(){if(MF8!==void 0)return MF8;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return MF8=C},{mode:1});var h68;var ML=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return C};
_.O(ML,_.B);ML.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
ML.prototype.handleButtonRefreshAction=function(C){if(C=_.Z(C,Hx2))this.set("data.button",C.membershipButton),this.notifyPath("data.button")};
_.I6.Object.defineProperties(ML.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var C,F;return((C=this.data)==null?void 0:(F=C.avatars)==null?void 0:F.slice(0,8))||[]}}});
_.R([_.L(),_.Y("design:type",Object)],ML.prototype,"data",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],ML.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],ML.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ML.prototype,"rendererBehavior",void 0);_.R([_.M("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],ML.prototype,"avatars",null);
_.R([_.e({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],ML);
_.q(ML,"ytd-recognition-shelf-renderer",function(){if(h68!==void 0)return h68;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return h68=C},{mode:1});var cAG;var AA$;var Sg=function(){var C=_.B.apply(this,arguments)||this;C.modernButtons=_.y("web_modern_buttons");return C};
_.O(Sg,_.B);_.n=Sg.prototype;
_.n.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]",lockupExperiments:"[[lockupExperiments]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",
showRenderer:"ytd-show-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.n.dataChanged=function(){this.collapsed=!0};
_.n.computeVisibleItems=function(C,F){return C!==void 0&&C.items?F?C.items.slice(0,this.data.collapsedItemCount):C.items:[]};
_.n.computeHideShowMore=function(C,F,G){return C>=F||!G};
_.n.computeHideShowAll=function(C,F,G){return!(C&&F)||G};
_.n.onMoreClick=function(){this.collapsed=!1};
_.I6.Object.defineProperties(Sg.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.y("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.kU("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.y("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
Sg.prototype.dataChanged=Sg.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Sg.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Sg.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Sg.prototype,"data",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],Sg.prototype,"isSearch",void 0);
_.R([_.L({computed:"computeVisibleItems(data,collapsed)"}),_.Y("design:type",Array)],Sg.prototype,"visibleItems",void 0);_.R([_.L({value:!0}),_.Y("design:type",Boolean)],Sg.prototype,"collapsed",void 0);_.R([_.L({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.Y("design:type",Boolean)],Sg.prototype,"hideShowMore",void 0);
_.R([_.L({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.Y("design:type",Boolean)],Sg.prototype,"hideShowAll",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Sg.prototype,"modernButtons",void 0);_.R([_.M("isSearch"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Sg.prototype,"typographyBump",null);
_.R([_.M("isSearch"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Sg.prototype,"lockupExperiments",null);_.R([_.M("isSearch"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Sg.prototype,"thumbnailWidth",null);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Sg.prototype,"dataChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],Sg);
_.q(Sg,"ytd-vertical-list-renderer",function(){if(AA$!==void 0)return AA$;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return AA$=C},{mode:1});var e6o=_.h6(["#"]);_.ae("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var Lw=function(){var C=_.B.apply(this,arguments)||this;C.isConstrainedList=!1;return C};
_.O(Lw,_.B);_.n=Lw.prototype;
_.n.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"}}}};
_.n.computeThumbnailStyle=function(C){return C||""};
_.n.computePlaceAnnotationUnderTitle=function(){var C;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((C=this.data)==null?void 0:C.thumbnailStyle)||"")};
_.n.computeHrefWithDefault=function(C){return this.ytComponentBehavior.computeHref_(C)||_.$aI(e6o)};
_.n.computeIsPromoShelf=function(C){var F;return(C=C==null?void 0:(F=C[0])==null?void 0:F.metadataBadgeRenderer)?C.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.n.computePlaceBadgeBesideTitle=function(C){var F;return(C==null?0:(F=C[0])==null?0:F.metadataBadgeRenderer)?!this.computeIsPromoShelf(C):!1};
_.n.computeMenuIcon=function(C){return this.computeIsPromoShelf(C)?"yt-icons:more_vert":"yt-icons:more"};
_.n.onDataChange=function(){var C,F;((C=this.data)==null?0:(F=C.content)==null?0:F.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.n.onLockupRequested=function(C){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&C.detail&&C.detail.videoIds){for(var F=this.data.content.gridRenderer.items,G=new Set,V=_.u(C.detail.videoIds),J=V.next();!J.done;J=V.next())G.add(J.value);C.detail.returnValue=F.filter(function(b){return b.gridVideoRenderer&&b.gridVideoRenderer.videoId&&G.has(b.gridVideoRenderer.videoId)}).map(function(b){return b.gridVideoRenderer})}};
_.n.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
Lw.prototype.onLockupRequested=Lw.prototype.onLockupRequested;Lw.prototype.onDataChange=Lw.prototype.onDataChange;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Lw.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.T6),_.Y("design:type",Object)],Lw.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Lw.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Lw.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.AY),_.Y("design:type",Object)],Lw.prototype,"ironResizableBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Lw.prototype,"data",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],Lw.prototype,"isSearch",void 0);_.R([_.L(),_.Y("design:type",Object)],Lw.prototype,"isConstrainedList",void 0);_.R([_.L({reflectToAttribute:!0,value:function(){return _.y("kevlar_fluid_dismiss")}}),
_.Y("design:type",Boolean)],Lw.prototype,"enableFluidDismiss",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.Y("design:type",String)],Lw.prototype,"thumbnailStyle",void 0);_.R([_.L({computed:"computeMenuIcon(data.badges)"}),_.Y("design:type",String)],Lw.prototype,"menuIcon",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeIsPromoShelf(data.badges)"}),_.Y("design:type",Boolean)],Lw.prototype,"featuredPromo",void 0);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lw.prototype,"onDataChange",null);_.R([_.VG("yt-lockup-requested"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Lw.prototype,"onLockupRequested",null);_.R([_.e({is:"ytd-shelf-renderer",disableElementRegistration:!0})],Lw);
_.q(Lw,"ytd-shelf-renderer",function(){if(cAG!==void 0)return cAG;var C=document.createElement("template");_.X(C,'\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          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-text" class="style-scope ytd-shelf-renderer">\n            <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\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          </div>\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return cAG=C},{mode:1});var du8;var BO=function(){return _.B.apply(this,arguments)||this};
_.O(BO,_.B);BO.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.I6.Object.defineProperties(BO.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],BO.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],BO.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],BO.prototype,"data",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],BO.prototype,"isPlaylist",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],BO.prototype,"isClipList",void 0);
_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],BO.prototype,"isPlaylistPageWithFilters",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],BO.prototype,"hasTitle",null);_.R([_.L(),_.M("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],BO.prototype,"isRightAligned",null);
_.R([_.e({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],BO);
_.q(BO,"ytd-sort-filter-header-renderer",function(){if(du8!==void 0)return du8;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return du8=C},{mode:1});var xuo;var vO=function(){var C=_.B.apply(this,arguments)||this;C.enableRightArrowHidden=_.y("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return C};
_.O(vO,_.B);vO.prototype.attached=function(){var C=this;this.enableRightArrowHidden&&(this.JSC$16513_throttledOnResize=new _.FX(function(){var F;(F=C.ytdHorizontalListBehavior)==null||F.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var F;
(F=C.JSC$16513_throttledOnResize)==null||F.fire()}),this.resizeObserver.observe(this.hostElement))};
vO.prototype.detached=function(){if(this.enableRightArrowHidden){var C;(C=this.resizeObserver)==null||C.disconnect();var F;(F=this.JSC$16513_throttledOnResize)==null||F.dispose()}};
vO.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]]"}}}}}};
vO.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.I6.Object.defineProperties(vO.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.y("enable_creator_details_shelf_m2")){var C=[],F;((F=this.data)==null?0:F.creatorVideosButton)&&C.push(this.data.creatorVideosButton);var G;((G=this.data)==null?0:G.creatorAboutButton)&&C.push(this.data.creatorAboutButton);F=_.u(this.data.creatorCustomUrlButtons||[]);for(G=F.next();!G.done;G=F.next())C.push(G.value);return C}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.y("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],vO.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],vO.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.QU.YtdHorizontalListBehavior),_.Y("design:type",Object)],vO.prototype,"ytdHorizontalListBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],vO.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],vO.prototype,"engagementPanel",void 0);
_.R([_.L(),_.Y("design:type",Object)],vO.prototype,"enableRightArrowHidden",void 0);_.R([_.M("enableRightArrowHidden","atEnd"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],vO.prototype,"hideRightArrow",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vO.prototype,"creatorCustomUrlButtons",null);
_.R([_.L({reflectToAttribute:!0}),_.M("data","creatorCustomUrlButtons"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],vO.prototype,"showCreatorCustomUrlButtons",null);_.R([_.M("showCreatorCustomUrlButtons"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],vO.prototype,"channelAvatarSize",null);_.R([_.e({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],vO);
_.q(vO,"ytd-video-description-infocards-section-renderer",function(){if(xuo!==void 0)return xuo;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_" hidden="[[hideRightArrow]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return xuo=C},{mode:_.oN("kevlar_poly_si_batch_j067")?1:2});var sGO;var fw=function(){return _.B.apply(this,arguments)||this};
_.O(fw,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],fw.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],fw.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],fw.prototype,"data",void 0);_.R([_.L({computed:"computeIcon_(data.infoIcon)"}),_.Y("design:type",Object)],fw.prototype,"infoIcon",void 0);_.R([_.e({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],fw);
_.q(fw,"ytd-eom-settings-disclaimer-renderer",function(){if(sGO!==void 0)return sGO;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return sGO=C},{mode:1});var qQr;var hI=function(){return _.B.apply(this,arguments)||this};
_.O(hI,_.B);_.I6.Object.defineProperties(hI.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.suppressPaddingDisclaimer)}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],hI.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],hI.prototype,"componentBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],hI.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],hI.prototype,"data",void 0);
_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],hI.prototype,"suppressPaddingDisclaimer",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],hI);
_.q(hI,"ytd-product-list-header-renderer",function(){if(qQr!==void 0)return qQr;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return qQr=C},{mode:1});var Pkl;var cO=function(){return _.B.apply(this,arguments)||this};
_.O(cO,_.B);cO.prototype.computeThumbnailStyle=function(C){if(C&&(C=_.Hr(C)))return"background-color:"+C+";"};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],cO.prototype,"rendererBehaviors",void 0);_.R([_.L(),_.Y("design:type",Object)],cO.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],cO);
_.q(cO,"ytd-hashtag-tile-renderer",function(){if(Pkl!==void 0)return Pkl;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Pkl=C},{mode:1});var gEm;var AI=function(){return _.B.apply(this,arguments)||this};
_.O(AI,_.B);AI.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}}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],AI.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],AI.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],AI.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],AI);
_.q(AI,"ytd-sponsorships-alert-renderer",function(){if(gEm!==void 0)return gEm;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return gEm=C},{mode:1});var R68;var eg=function(){return _.B.apply(this,arguments)||this};
_.O(eg,_.B);eg.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.I6.Object.defineProperties(eg.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.y("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.y("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.R([_.w(_.T6),_.Y("design:type",Object)],eg.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.w(_.CR),_.Y("design:type",Object)],eg.prototype,"ytdLockupBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],eg.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],eg.prototype,"ytRendererBehavior",void 0);_.R([_.L({selector:_.ZH}),_.Y("design:type",Object)],eg.prototype,"isGridViewEnabled",void 0);
_.R([_.M("isGridViewEnabled"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],eg.prototype,"watchFeedBigThumbs",null);_.R([_.M("isGridViewEnabled"),_.L({reflectToAttribute:!0}),_.Y("design:type",String),_.Y("design:paramtypes",[])],eg.prototype,"thumbnailWidth",null);_.R([_.L(),_.Y("design:type",Object)],eg.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],eg);
_.q(eg,"ytd-compact-movie-renderer",function(){if(R68!==void 0)return R68;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return R68=C},{mode:1});var YQr;var TAu;var oEO=_.TF("HTML_DIR")==="rtl",dY=function(){var C=_.B.apply(this,arguments)||this;C.engagementPanel=!1;C.maxLines=2;C.expandButtonOffset=0;C.showExpandButton=!1;C.isTruncated=!1;C.isExpanded=!1;C.currentSnippetType=2;C.alwaysShowExpandButton=!1;C.JSC$16530_lastWidth=NaN;C.observer=null;C.left=0;C.right=0;C.mid=0;C.longestSnippetLength=0;C.isFinalSnippet=!1;C.isFirstMutation=!1;C.isResetMutation=!1;C.OVERFLOW_THRESHOLD=5;return C};
_.O(dY,_.B);_.n=dY.prototype;_.n.onClick=function(C){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.dE(_.AR(C)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var F;if((F=window.getSelection())==null||!F.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.n.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.n.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.n.updateTextOnSnippetTypeChange=function(){_.y("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.n.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.n.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.Yw(new _.Ay("AttributedSnippet is empty when the description is not empty",this.text))};
_.n.mutationCallback=function(){if(this.observer!=null){var C=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var F=Math.floor(C*this.maxLines/8);this.setSnippetText(this.text,F);F!==0||this.attributedTextIsEmpty()||_.Yw(new _.Ay("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;C=C*this.maxLines/8;this.left=0;var G;this.right=Math.min(C*2,(G=(F=this.simpleText)==null?void 0:F.length)!=null?G: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)}}};
_.n.mutationObserve=function(C){var F=this;this.observer||(this.observer=new MutationObserver(function(){F.mutationCallback()}));
this.observer.observe(C,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.n.attached=function(){var C=this;_.zH(this,function(){C.resize()})};
_.n.isExpandedChanged=function(){_.oo(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.n.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)};
_.n.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var C="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((oEO?"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",C);this.snippetContainer.style.setProperty("mask-image",
C)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(oEO?"right":"left",this.expandButtonOffset+"px")};
_.n.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.n.setSnippetText=function(C,F){C||(C={});if(_.fy(C)){var G=B6(C,F);G.attachmentRuns||G.commandRuns||G.decorationRuns||G.styleRuns||G.alignment||G.lineBreakMode?this.attributedSnippetTextEl?(this.attributedSnippetText={data:B6(C,F),headerRuns:fvs(F,this.headerRuns)},this.currentSnippetType=0):_.Yw(new _.Ay("Tried to set snippet text when HTML element was null",C)):(this.plainSnippetText.textContent=SR(C.content||"",F),this.currentSnippetType=2)}else{a:{G=E7w(C,F);if(G.runs){G=_.u(G.runs);for(var V=
G.next();!V.done;V=G.next())if(V=V.value,V.bold||V.deemphasize||V.italics||V.strikethrough||V.textColor||V.navigationEndpoint||_.Z(V,H6)){G=!0;break a}}G=!1}G?this.formattedSnippetText?(this.formattedSnippetText.text=E7w(C,F),this.currentSnippetType=1):_.Yw(new _.Ay("Tried to set snippet text when HTML element was null",C)):(this.plainSnippetText.textContent=SR(_.dd(C),F),this.currentSnippetType=2)}};
_.n.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.n.attributedTextIsEmpty=function(){var C=this.text;if(!_.fy(C))return!0;var F;return((F=C.content)==null?void 0:F.length)===0?!0:!1};
_.n.resize=function(C){if(this.snippetText){if(C===void 0?0:C)this.JSC$16530_lastWidth=NaN;var F=this.hostElement.offsetWidth;if(F!==this.JSC$16530_lastWidth&&!this.isExpanded)if(this.JSC$16530_lastWidth=F,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;C=0;var G,V;F=Math.min(F*this.maxLines/8*2,(V=(G=this.simpleText)==null?void 0:G.length)!=null?V:0)-1;for(G=0;C<=F;)V=Math.floor(C+(F-C)/2),this.setSnippetText(this.text,V),this.isOverflowing()?F=V-1:(C=V+1,G=V);this.setSnippetText(this.text,G);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.n.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.n.onExpandClick=function(){var C=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.y("inline_expander_reset_focus_killswitch")||_.zH(this,function(){var F;((F=_.I8().resolve(_.Qt(_.uc)))==null?0:F.isKeyBoardInUse())&&_.iS(C.hostElement)});
_.oo(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.n.onCollapseClick=function(){this.collapse();_.oo(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.n.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.n.computeExpandButtonOffset=function(){var C=this.expandSizer;return C?oEO?C.offsetParent?C.offsetParent.offsetWidth-C.offsetWidth-C.offsetLeft:0:C.offsetLeft:0};
_.I6.Object.defineProperties(dY.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.fy(this.text)?this.text.content||"":_.dd(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 _.fy(this.text)?!0:this.text&&_.y("web_replace_formatted_with_attributed_string")&&iLZ(this.text)?(this.text=_.U9(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}}});
dY.prototype.onTextChanged=dY.prototype.onTextChanged;dY.prototype.updateMaskAndExpandButtonOffset=dY.prototype.updateMaskAndExpandButtonOffset;dY.prototype.updateSnippetContainerMaxHeight=dY.prototype.updateSnippetContainerMaxHeight;dY.prototype.isExpandedChanged=dY.prototype.isExpandedChanged;dY.prototype.updateTextOnSnippetTypeChange=dY.prototype.updateTextOnSnippetTypeChange;dY.prototype.updateIsFormattedExpanded=dY.prototype.updateIsFormattedExpanded;dY.prototype.updateIsAttributedExpanded=dY.prototype.updateIsAttributedExpanded;
dY.prototype.onClick=dY.prototype.onClick;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],dY.prototype,"componentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],dY.prototype,"text",void 0);_.R([_.L(),_.Y("design:type",Array)],dY.prototype,"headerRuns",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],dY.prototype,"engagementPanel",void 0);_.R([_.L(),_.Y("design:type",Object)],dY.prototype,"maxLines",void 0);
_.R([_.L(),_.Y("design:type",String)],dY.prototype,"expandLabel",void 0);_.R([_.L(),_.Y("design:type",String)],dY.prototype,"collapseLabel",void 0);_.R([_.L(),_.Y("design:type",Object)],dY.prototype,"expandCommand",void 0);_.R([_.L(),_.Y("design:type",Object)],dY.prototype,"expandButtonOffset",void 0);_.R([_.M("text"),_.Y("design:type",String),_.Y("design:paramtypes",[])],dY.prototype,"simpleText",null);
_.R([_.VG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],dY.prototype,"onClick",null);_.R([_.M("text","isExpanded"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],dY.prototype,"expandedText",null);_.R([_.M("headerRuns","isExpanded"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],dY.prototype,"expandedHeaderRuns",null);
_.R([_.M("text"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],dY.prototype,"hasAttributedStringText",null);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],dY.prototype,"showExpandButton",void 0);_.R([_.M("collapseLabel","isExpanded"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],dY.prototype,"showCollapseButton",null);_.R([_.L(),_.Y("design:type",Object)],dY.prototype,"isTruncated",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],dY.prototype,"isExpanded",void 0);_.R([_.L(),_.Y("design:type",Boolean)],dY.prototype,"isAttributedExpanded",void 0);_.R([_.iP("isExpanded","hasAttributedStringText"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dY.prototype,"updateIsAttributedExpanded",null);_.R([_.L(),_.Y("design:type",Boolean)],dY.prototype,"isFormattedExpanded",void 0);
_.R([_.iP("isExpanded","hasAttributedStringText"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dY.prototype,"updateIsFormattedExpanded",null);_.R([_.L(),_.Y("design:type",Number)],dY.prototype,"currentSnippetType",void 0);_.R([_.M("currentSnippetType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],dY.prototype,"useAttributedSnippet",null);
_.R([_.M("currentSnippetType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],dY.prototype,"useFormattedSnippet",null);_.R([_.M("currentSnippetType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],dY.prototype,"usePlainSnippet",null);_.R([_.L(),_.Y("design:type",Object)],dY.prototype,"alwaysShowExpandButton",void 0);_.R([_.iP("currentSnippetType"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dY.prototype,"updateTextOnSnippetTypeChange",null);
_.R([_.L(),_.Y("design:type",Object)],dY.prototype,"attributedSnippetText",void 0);_.R([_.$z("#snippet"),_.Y("design:type",HTMLElement)],dY.prototype,"snippetContainer",void 0);_.R([_.$z("#snippet-text"),_.Y("design:type",HTMLElement)],dY.prototype,"snippetText",void 0);_.R([_.$z("#plain-snippet-text"),_.Y("design:type",HTMLElement)],dY.prototype,"plainSnippetText",void 0);_.R([_.$z("#formatted-snippet-text"),_.Y("design:type",Object)],dY.prototype,"formattedSnippetText",void 0);
_.R([_.$z("#attributed-snippet-text"),_.Y("design:type",Object)],dY.prototype,"attributedSnippetTextEl",void 0);_.R([_.$z("#expand"),_.Y("design:type",HTMLElement)],dY.prototype,"expandButton",void 0);_.R([_.$z("#expand-sizer"),_.Y("design:type",HTMLElement)],dY.prototype,"expandSizer",void 0);_.R([_.zp("isExpanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dY.prototype,"isExpandedChanged",null);
_.R([_.iP("isExpanded","maxLines"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dY.prototype,"updateSnippetContainerMaxHeight",null);_.R([_.iP("isTruncated","showExpandButton","expandButtonOffset"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dY.prototype,"updateMaskAndExpandButtonOffset",null);
_.R([_.zp("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dY.prototype,"onTextChanged",null);_.R([_.e({is:"ytd-text-inline-expander",disableElementRegistration:!0})],dY);
_.q(dY,"ytd-text-inline-expander",function(){if(TAu===void 0){var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expanded" class="style-scope ytd-text-inline-expander"><yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden$="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></div><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden$="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);TAu=C}C=TAu;return C},{mode:2});var x1=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return C};
_.O(x1,_.B);x1.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
x1.prototype.handleUpdateDescriptionAction=function(C){if(C=_.Z(C,_.XWr))if(C.attributedDescription)this.set("data.attributedDescriptionBodyText",C.attributedDescription);else if(C.description){var F;((F=this.data)==null?0:F.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.U9(C.description)):this.set("data.descriptionBodyText",C.description)}};
_.I6.Object.defineProperties(x1.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var C,F;return!((C=this.data)==null||!C.attributedDescriptionBodyText)||!((F=this.data)==null||!F.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var C;if((C=this.data)==null?0:C.collapsedLineCount){var F;return(F=this.data)==null?void 0:F.collapsedLineCount}C=_.a8("web_watch_description_collapsed_default_lines",12);if(_.y("ww_desc_line_page_size_ks"))return C;F=Math.round(_.bE().height*_.a8("web_watch_description_screen_height_percentage",.5)/20);return Math.max(F,C)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var C,F,G;return(G=(C=this.data)==null?void 0:C.descriptionBodyText)!=null?G:(F=this.data)==null?void 0:F.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)==null?void 0:C.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)==null?void 0:C.sourceAttributions}}});
x1.prototype.panelContentVisibleChanged=x1.prototype.panelContentVisibleChanged;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],x1.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],x1.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],x1.prototype,"componentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],x1.prototype,"data",void 0);
_.R([_.L(),_.Y("design:type",Boolean)],x1.prototype,"panelContentVisible",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],x1.prototype,"engagementPanel",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],x1.prototype,"shortsPanel",void 0);_.R([_.$z("#inline-expander"),_.Y("design:type",Object)],x1.prototype,"inlineExpander",void 0);
_.R([_.iP("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],x1.prototype,"panelContentVisibleChanged",null);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],x1.prototype,"hasDescriptionText",null);_.R([_.M("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],x1.prototype,"collapsedLines",null);
_.R([_.M("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],x1.prototype,"descriptionText",null);_.R([_.M("data","data.headerRuns"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],x1.prototype,"headerRuns",null);_.R([_.M("data","data.sourceAttributions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],x1.prototype,"sourceAttributions",null);
_.R([_.e({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],x1);
_.q(x1,"ytd-expandable-video-description-body-renderer",function(){if(YQr!==void 0)return YQr;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[!hasDescriptionText]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return YQr=C},{mode:_.oN("kevlar_poly_si_batch_j028")?1:2});var rA7;var KCu=_.d(function(C){var F=C.data;return _.W("factoid-renderer",{class:"ytwFactoidRendererHost"},_.W("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return F().accessibilityText}},_.W("span",{class:"ytwFactoidRendererValue"},_.W(_.mn,{text:function(){return F().value}})),_.W("span",{class:"ytwFactoidRendererLabel"},_.W(_.mn,{text:function(){return F().label}}))))},"bd");_.gQ(KCu,"factoid-renderer",{props:{data:_.CJ}});_.gQ(_.d(function(C){var F=C.data;return _.W("upload-time-factoid-renderer",null,_.W(_.uC,{data:function(){return F().factoid}},{factoidRenderer:KCu}))},"cd"),"upload-time-factoid-renderer",{props:{data:_.s9}});_.gQ(_.d(function(C){var F=C.data;return _.W("view-count-factoid-renderer",null,_.W(_.uC,{data:function(){return F().factoid}},{factoidRenderer:KCu}))},"dd"),"view-count-factoid-renderer",{props:{data:_.s9}});var s2=function(){var C=_.B.apply(this,arguments)||this;C.shortsPanel=!1;C.engagementPanel=!1;C.watchWhileSdp=_.y("shorts_desktop_watch_while_sdp");return C};
_.O(s2,_.B);s2.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"}}}}};
_.I6.Object.defineProperties(s2.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var C;return(C=this.data)==null?void 0:C.channel}}});
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],s2.prototype,"componentBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],s2.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],s2.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],s2.prototype,"shortsPanel",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],s2.prototype,"engagementPanel",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],s2.prototype,"watchWhileSdp",void 0);_.R([_.M("shortsPanel","engagementPanel","data.channel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],s2.prototype,"showChannelInfo",null);_.R([_.e({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],s2);
_.q(s2,"ytd-video-description-header-renderer",function(){if(rA7!==void 0)return rA7;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return rA7=C},{mode:1});var DuE;var qL=function(){return _.B.apply(this,arguments)||this};
_.O(qL,_.B);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],qL.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],qL.prototype,"ytRendererBehavior",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],qL.prototype,"noPadding",void 0);_.R([_.L(),_.Y("design:type",Object)],qL.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],qL);
_.q(qL,"ytd-list-item-view-model",function(){if(DuE!==void 0)return DuE;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return DuE=C},{mode:1});var pH2;var mul;var C1u;var jIr;var PO=function(){var C=_.B.apply(this,arguments)||this;C.adaptiveFullWidth=!1;C.modernButtons=_.y("web_modern_buttons");C.buttonOverrides={style:"call-to-action",type:"filled"};C.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return C};
_.O(PO,_.B);PO.prototype.handleSetTimestamp_=function(C){this.data&&this.data.shortUrl&&(_.ot(this.hostElement).querySelector("#share-url").value=C.isSet?_.xk(this.data.shortUrl,"t",C.timestamp):this.data.shortUrl)};
PO.prototype.handleSignalActionCopyShareUrl_=function(C,F){(_.y("killswitch_copy_link_target_check")||_.ot(this.hostElement).querySelector("#copy-button")===F)&&this.copyUrlToClipboard()};
PO.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.ot(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
PO.prototype.computeStyle_=function(C){return C?C.toLowerCase().replace(/_/g,"-"):""};
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],PO.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],PO.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],PO.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.Y("design:type",String)],PO.prototype,"rendererStyle",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],PO.prototype,"adaptiveFullWidth",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],PO.prototype,"modernButtons",void 0);_.R([_.L(),_.Y("design:type",Object)],PO.prototype,"buttonOverrides",void 0);_.R([_.Z5({is:"yt-copy-link-renderer",disableElementRegistration:!0})],PO);
_.q(PO,"yt-copy-link-renderer",function(){if(jIr===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;C1u===void 0&&(C1u=document.createElement("template"));var V=C1u;G.call(F,V.content.cloneNode(!0),C.content.firstChild);jIr=C}C=jIr;return C},{mode:2});_.ae("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var gY=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return C};
_.O(gY,_.B);_.n=gY.prototype;_.n.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.n.attached=function(){this.keyboardFocused=!1};
_.n.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var C=_.I8().resolve(_.Qt(_.uc));C&&(this.keyboardFocused=C.isKeyBoardInUse())}};
_.n.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.n.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}};
_.n.onChange_=function(){if(this.data){var C=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;C&&this.ytComponentBehavior.resolveCommand(C);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.n.handleUpdateToggleAction_=function(C){(C=_.Z(C,Yzo))&&this.data&&C.targetId==this.data.targetId&&this.set("data.toggled",C.toggled)};
_.n.toBoolean_=function(C){return!!C};
_.n.reset=function(){};
_.n.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G6("data-changed",this.data))};
_.n.updateDataToggledFromBinding=function(C){this.set("data.toggled",C.detail.value)};
gY.prototype.dataChangedForBinding=gY.prototype.dataChangedForBinding;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],gY.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],gY.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],gY.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],gY.prototype,"ytRendererBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],gY.prototype,"data",void 0);_.R([_.L({computed:"computeDescription_(data.*)"}),_.Y("design:type",Object)],gY.prototype,"description_",void 0);_.R([_.L({value:function(){return!!_.I8().resolve(_.Qt(_.uc))&&_.y("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.Y("design:type",Boolean)],gY.prototype,"useKeyboardFocused",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],gY.prototype,"keyboardFocused",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gY.prototype,"dataChangedForBinding",null);_.R([_.Z5({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],gY);
_.q(gY,"yt-toggle-form-field-renderer",function(){if(mul===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;pH2===void 0&&(pH2=document.createElement("template"));var V=pH2;G.call(F,V.content.cloneNode(!0),C.content.firstChild);mul=C}C=mul;return C},{mode:2});var FsE;var GxP;var Ri=function(){var C=_.B.apply(this,arguments)||this;C.isDarkTheme=!1;C.isSearch=!1;C.darkerDarkTheme=_.y("web_darker_dark_theme");C.noTopMargin=_.y("kevlar_watch_no_top_margin");C.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 C};
_.O(Ri,_.B);_.n=Ri.prototype;_.n.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}}}}}};
_.n.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.n.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.n.dataChanged=function(){var C=this.getSelectedIndex();if(C>0)this.selected=C;else{this.selected=0;var F,G;(F=this.ytScrollableChipCloudBehavior)==null||(G=F.reset)==null||G.call(F)}};
_.n.getSelectedIndex=function(){var C;if((C=this.data)==null||!C.chips)return-1;C=-1;for(var F,G=0;G<((F=this.data)==null?void 0:F.chips.length);G++){var V=void 0,J=void 0;if((V=this.data)==null?0:(J=V.chips[G].chipCloudChipRenderer)==null?0:J.isSelected){C=G;break}}return C};
_.n.onResize=function(){var C=this.ytScrollableChipCloudBehavior;_.zH(C,C.setContainerWidthDiff);C=this.ytScrollableChipCloudBehavior;_.zH(C,C.setButtonsState)};
_.n.onDarkModeToggledAction=function(C){this.isDarkTheme=C};
_.n.handleRelatedChipCommand=function(C,F){C=this.JSC$16557_chipsSelector.indexOf(F);C!==-1&&this.JSC$16557_chipsSelector.selectIndex(C)};
_.n.handleChipCloudChipSelectAction=function(C){C=this.JSC$16557_chipsSelector.indexOf(C);C>-1&&this.JSC$16557_chipsSelector.selectIndex(C)};
_.n.handleChipCloudChipDeselectAction=function(){var C=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16557_chipsSelector&&((C==null?0:C.continuationCommand)?_.DQ(this.hostElement,[C]):(C==null?0:C.searchEndpoint)?this.ytComponentBehavior.resolveCommand(C):C&&_.pX(this.hostElement,[C],this.hostElement),this.JSC$16557_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.n.updateSelectedFromBinding=function(C){this.selected=C.detail.value};
Ri.prototype.onResize=Ri.prototype.onResize;Ri.prototype.dataChanged=Ri.prototype.dataChanged;Ri.prototype.isSearchChanged=Ri.prototype.isSearchChanged;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Ri.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Ri.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],Ri.prototype,"actionHandlerBehavior",void 0);
_.R([_.w(_.AY),_.Y("design:type",Object)],Ri.prototype,"ironResizableBehavior",void 0);_.R([_.w(),_.Y("design:type",Xb)],Ri.prototype,"ytScrollableChipCloudBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Ri.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Ri.prototype,"data",void 0);_.R([_.L({value:0}),_.Y("design:type",Number)],Ri.prototype,"selected",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Ri.prototype,"isDarkTheme",void 0);_.R([_.L({value:160}),_.Y("design:type",Number)],Ri.prototype,"scrollDistance",void 0);_.R([_.L(),_.Y("design:type",Object)],Ri.prototype,"isSearch",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Ri.prototype,"darkerDarkTheme",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Ri.prototype,"noTopMargin",void 0);
_.R([_.$z("#chips"),_.Y("design:type",Object)],Ri.prototype,"JSC$16557_chipsSelector",void 0);_.R([_.iP("isSearch"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ri.prototype,"isSearchChanged",null);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ri.prototype,"dataChanged",null);_.R([_.VG("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ri.prototype,"onResize",null);
_.R([_.Z5({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],Ri);
_.q(Ri,"yt-chip-cloud-renderer",function(){if(GxP===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;FsE===void 0&&(FsE=document.createElement("template"));var V=FsE;G.call(F,V.content.cloneNode(!0),C.content.firstChild);GxP=C}C=GxP;return C},{mode:2});var VJo,ihl=function(){return VJo!==void 0?VJo:VJo=document.createElement("template")};
document.head.appendChild(ihl().content);var JH2;var $2O=document.head,bhu=$2O.appendChild,ntS;if(JH2===void 0){var uQE=document.createElement("template");_.X(uQE,"");uQE.content.insertBefore(ihl().content.cloneNode(!0),uQE.content.firstChild);JH2=uQE}ntS=JH2;bhu.call($2O,ntS.content);var zkG=_.d(function(C){var F=C.data;return _.W("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.W("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.W("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.W(_.a,{cond:function(){return _.Mh(F().image)},
then:function(G){return _.W("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.W(_.AC,{data:G,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.W("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.W(_.mn,{text:function(){return F().title}})),_.W("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.W(_.mn,{text:function(){return F().subtitle}})))),_.W(_.a,{cond:function(){var G;
return(G=F())==null?void 0:G.hasBottomDivider},
then:function(){return _.W("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"ed");var QI$=_.d(function(C){var F=C.data;return _.W("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.W("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.W(_.uC,{data:function(){var G;return(G=F().offerPlanDetailsItem)!=null?G:[]}},{offerPlanDetailsItemViewModel:function(G){return _.W("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.W(zkG,{data:G.data}))}})),_.W("div",null,_.W(_.a,{cond:function(){return F().hasBottomDivider},
then:function(){return _.W("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.W("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.W("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.W("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.W("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"fd");var I4$=_.d(function(C){var F=C.data;C=_.u(_.yH(!1,void 0,"MrXxy"));var G=C.next().value,V=C.next().value,J=_.CZ(function(){V(!G());return!1}),b=function(){var z;
return(z=F().offerPlanDetailsContainer)!=null?z:[]};
return _.W("lp-complex-offer-card-details-view-model",null,_.W("div",null,_.W(_.a,{cond:function(){return G()},
then:function(){return _.W("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.W("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":J,"aria-expanded":G},_.W(_.mn,{text:function(){return F().expandedTitle}})),_.W("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.W(_.uC,{data:b},{offerPlanDetailsContainerViewModel:function(z){return _.W("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.W(QI$,{data:z.data}))}})),_.W("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.W(_.mn,{text:function(){return F().legalText}})))},
else:function(){return _.W("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":J,"aria-expanded":G},_.W(_.mn,{text:function(){return F().collapsedTitle}}),_.W("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.W(_.i5,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"gd");var Etr=_.d(function(C){var F=C.data;return _.W("lp-complex-offer-card-option-view-model",null,_.W("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.W(_.a,{cond:function(){return F().topDividerText},
then:function(){return _.W("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.W("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.W("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.W("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.W(_.mn,{text:function(){return F().topDividerText}}))))}}),_.W(_.a,{cond:function(){return F().description},
then:function(){return _.W("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.W(_.mn,{text:function(){return F().description}}))}}),_.W(_.a,{cond:function(){return F().planPricingPrimary},
then:function(){return _.W("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.W(_.mn,{text:function(){return F().planPricingPrimary}}))}}),_.W(_.a,{cond:function(){return F().planPricingSecondary},
then:function(){return _.W("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.W(_.mn,{text:function(){return F().planPricingSecondary}}))}}),_.W(_.a,{cond:function(){return F().primaryButton},
then:function(){return _.W("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.W(_.uC,{data:function(){return F().primaryButton}},{buttonViewModel:function(G){return _.W(_.tS,{data:G.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"hd");var Ws$=_.d(function(C){var F=C.data;var G=function(){var b;return((b=F())==null?void 0:b.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
C={};var V={},J={};return _.W("ytm-lp-complex-offer-card-view-model",null,_.W("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.W("div",{class:_.py((C.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=G,C),"ytmLpComplexOfferCardViewModelCardContainer")},_.W(_.a,{cond:function(){var b;return(b=F())==null?void 0:b.bannerText},
then:function(){return _.W("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.W("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.W(_.mn,{text:function(){return F().bannerText}})))}}),_.W(_.a,{cond:function(){return _.Mh(F().logo)},
then:function(b){var z={};return _.W("div",{class:_.py((z.ytmLpComplexOfferCardViewModelLogoAlignLeft=G,z),"ytmLpComplexOfferCardViewModelLogo")},_.W(_.AC,{data:b,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.W("div",{class:_.py((V.ytmLpComplexOfferCardViewModelTitleAlignLeft=G,V),"ytmLpComplexOfferCardViewModelTitle")},_.W(_.mn,{text:function(){return F().title}})),_.W(_.a,{cond:function(){var b;
return(b=F())==null?void 0:b.subtitle},
then:function(){var b={};return _.W("div",{class:_.py((b.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=G,b),"ytmLpComplexOfferCardViewModelSubtitle")},_.W(_.mn,{text:function(){return F().subtitle}}))}}),_.W(_.a,{cond:function(){return F().planPricingPrimary},
then:function(){return _.W("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.W(_.mn,{text:function(){return F().planPricingPrimary}}))}}),_.W(_.a,{cond:function(){return F().planPricingSecondary},
then:function(){return _.W("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.W(_.mn,{text:function(){return F().planPricingSecondary}}))}}),_.W(_.a,{cond:function(){return F().purchaseButton},
then:function(){return _.W("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.W(_.uC,{data:function(){return F().purchaseButton}},{buttonViewModel:function(b){return _.W(_.tS,{data:b.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.W(_.a,{cond:function(){var b;
return(b=F())==null?void 0:b.offerOptions},
then:function(){return _.W("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.W(_.uC,{data:function(){return F().offerOptions}},{lpComplexOfferCardOptionViewModel:Etr}))}}),_.W("div",{class:_.py((J.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=G,J),"ytmLpComplexOfferCardViewModelLegalText")},_.W(_.mn,{text:function(){return F().legalText}})),_.W(_.a,{cond:function(){var b;
return(b=F())==null?void 0:b.offerCardDetails},
then:function(){return _.W("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.W(_.uC,{data:function(){return F().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:I4$}))}}))))},"id");var tJ$=_.d(function(C){var F=C.data;var G=function(){var z;return((z=F())==null?void 0:z.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
C={};var V={},J={},b={};return _.W("ytm-lp-complex-offer-card-section-view-model",null,_.W("div",{class:_.py("ytmLpComplexOfferCardSectionViewModelHost")},_.W("div",{class:_.py((C.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=G,C),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.W("div",{class:_.py((V.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=G,V),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.W("h2",{class:_.py((J.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
G,J),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.W(_.mn,{text:function(){return F().title}}))),_.W(_.a,{cond:function(){var z;
return(z=F())==null?void 0:z.subtitle},
then:function(){var z={},Q={};return _.W("div",{class:_.py((z.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=G,z),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.W("div",{class:_.py((Q.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=G,Q),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.W(_.mn,{text:function(){return F().subtitle}})))}}),_.W("div",{class:_.py((b.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=G,b),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.W(_.uC,{data:function(){var z;
return(z=F().offerPlans)!=null?z:[]}},{lpComplexOfferCardViewModel:function(z){return _.W("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.W(Ws$,{data:z.data}))}})))))},"jd");var a4r=_.d(function(C){return _.W("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.W("div",{class:"ytLpCouponBannerViewModelIcon"},_.W(_.i5,{icon:function(){return"price_tag"}})),_.W("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.W("div",{class:"ytLpCouponBannerViewModelContent"},_.W("div",{class:"ytLpCouponBannerViewModelHeading"},_.W(_.mn,{text:function(){var F;
return(F=C.data())==null?void 0:F.title}})),_.W("div",{class:"ytLpCouponBannerViewModelBody"},_.W(_.mn,{text:function(){var F;
return(F=C.data())==null?void 0:F.subtitle}})))))},"kd");
a4r.idomCompat=!0;_.Y1=kH2.getInstance();var kxE;kxE=_.d(function(C){return _.W("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":C.shouldAriaHideContent},_.W("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:C.questionId},_.W(_.mn,{text:C.question})))},"ld");
_.U2o=_.d(function(C){var F=C.data;var G=C.themeOverride;C=_.u(_.yH(!1,void 0,"pNli2b"));var V=C.next().value,J=C.next().value;C=_.CZ(function(){J(!V());return!1});
var b=function(){return V()?"EXPAND_LESS":"EXPAND_MORE"},z=("faq-container"+_.ve(_.Y1)).toString(),Q="faq-question-and-answers-section-question"+_.ve(_.Y1),E={},t={};
return _.W("faq-entry-view-model",null,_.W("div",{class:_.py("ytLpFaqEntryViewModelHost",(E.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return G==null?void 0:G().useDarkTheme},E))},_.W("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":C,role:"button","aria-expanded":V,"aria-labelledby":Q.toString(),"tab-index":"0"},_.W(kxE,{question:function(){return F().question},
questionId:Q,shouldAriaHideContent:!0}),_.W(_.a,{cond:function(){return V()!==void 0},
then:function(){return _.W("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.W(_.i5,{icon:b,ariaHidden:!0}),_.W("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.W("div",{class:_.py("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(t.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!V()},t))},_.W("div",{id:z},_.W(_.Ag,{each:function(){return F().answers||[]}},function(k){return _.W("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.W(_.mn,
{text:k}))})))))},"md");
_.U2o.idomCompat=!0;var Hhm=_.d(function(C){var F=C.data;var G=C.themeOverride;C={};return _.W("lp-faq-section-view-model",null,_.W("div",{class:_.py("yt-lp-faq-section-view-model",(C["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return F().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},C["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(G==null||!G().useDarkTheme)},C))},_.W("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.W(_.a,{cond:function(){return F().header},
then:function(V){return _.W("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.W(_.mn,{text:V}))}}),_.W("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.W(_.uC,{data:function(){return F().faqs}},{faqEntryViewModel:function(V){return _.W(_.U2o,{data:V.data,
themeOverride:G})}})),_.W("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.W(_.Ag,{each:function(){return F().footers||[]}},function(V){return _.W(_.mn,{text:V})})),_.W(_.a,{cond:function(){return F().legal},
then:function(V){return _.W("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.W(_.mn,{text:V}))}}))))},"nd");
Hhm.idomCompat=!0;var l4r=_.d(function(C){var F=C.data;var G=C.themeOverride;_.q4(function(){var z=F().gtmId;z&&_.fS(z,_.TF("GL",""))});
var V={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var z,Q,E;return(E=(z=F().logo)==null?void 0:(Q=z.accessibilityData)==null?void 0:Q.label)!=null?E:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},J=_.I8().resolve(_.Qt(_.v6)),b=function(){return J&&J()||(G==null?void 0:G().useDarkTheme)};
return _.W("lp-header-section-view-model",null,_.W("div",{class:function(){var z=F().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",Q=F().marginType==="LP_SECTION_MARGIN_TYPE_TOP",E=G==null?void 0:G().useDarkTheme,t=["lp-header-section-view-model"];z&&t.push("lp-header-section-view-model--ptc-layout-type");Q&&t.push("lp-header-section-view-model__lp-header-section-margin");E&&t.push("lp-header-section-view-model--premium-force-dark-mode");return t.join(" ")}},_.W(_.a,{cond:function(){return F().logo},
then:function(){return _.W("div",null,_.W(_.a,{cond:b,then:function(){return _.W(_.a,{cond:function(){var z;return(z=F().logo)==null?void 0:z.imageDark},
then:function(z){return _.W(_.AC,Object.assign({},{data:z},V))}})},
else:function(){return _.W(_.a,{cond:function(){var z;return(z=F().logo)==null?void 0:z.imageLight},
then:function(z){return _.W(_.AC,Object.assign({},{data:z},V))}})}}))}}),_.W(_.a,{cond:function(){return F().title},
then:function(z){return _.W("div",{class:"lp-header-section-view-model__lp-header-title"},_.W(_.mn,{text:z}))}}),_.W("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.W(_.a,{cond:function(){return F().subtitles},
then:function(z){return _.W(_.Ag,{each:z},function(Q){return _.W("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.W(_.mn,{text:Q}))})}})),_.W(_.a,{cond:function(){return F().additionalInfo},
then:function(z){return _.W("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.W(_.mn,{text:z}))}}),_.W("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.W(_.a,{cond:function(){return F().primaryButton},
then:function(z){return _.W("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.W(_.uC,{data:z},{buttonViewModel:_.tS}))}}),_.W(_.a,{cond:function(){return F().secondaryButton},
then:function(z){return _.W("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.W(_.uC,{data:z},{buttonViewModel:_.tS}))}})),_.W(_.a,{cond:function(){return F().otherOffersInfo},
then:function(z){return _.W("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.W(_.mn,{text:z}))}}),_.W("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.W(_.a,{cond:function(){return F().billingInfo},
then:function(z){return _.W(_.Ag,{each:z},function(Q){return _.W("div",null,_.W(_.mn,{text:Q}))})}}))))},"od");
l4r.idomCompat=!0;var yH2=_.d(function(C){return _.W("lp-header-upsell-banner-view-model",{class:_.py("lpHeaderUpsellBannerViewModelHost",C.className,{})},_.W("div",{class:"lpHeaderUpsellBannerViewModelIcon"},_.W(_.i5,{icon:function(){return"CAMPAIGN"}})),_.W("div",{class:"lpHeaderUpsellBannerViewModelOuterContainer"},_.W("div",{class:"lpHeaderUpsellBannerViewModelContainer"},_.W("div",{class:"lpHeaderUpsellBannerViewModelContent"},_.W("div",{class:"lpHeaderUpsellBannerViewModelDescription"},_.W(_.mn,{text:function(){var F;
return(F=C.data())==null?void 0:F.description}})))),_.W(_.uC,{data:function(){var F;
return(F=C.data())==null?void 0:F.purchaseButton}},{buttonViewModel:function(F){return _.W(_.tS,{data:F.data,
className:"lpHeaderUpsellBannerViewModelPurchaseButton"})}})))},"pd");var ZhP=_.d(function(C){var F=C.data;var G=_.dk(C.themeOverride,{useDarkTheme:!1});C={};C=_.py("ytmLpHeadlineSectionViewModelHost",(C.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return G().useDarkTheme},C));
return _.W("lp-headline-section-view-model",null,_.W("div",{class:C},_.W(_.a,{cond:function(){return F().title},
then:function(V){return _.W("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.W(_.mn,{text:V}))}}),_.W(_.a,{cond:function(){return F().subtitle},
then:function(V){return _.W("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.W(_.mn,{text:V}))}})))},"qd");var NZO=_.d(function(C){var F=C.data;var G=C.themeOverride;var V=_.I8().resolve(_.Qt(_.v6)),J=function(){return V&&V()||(G==null?void 0:G().useDarkTheme)},b=function(){var t,k;
var U=J()?(t=F().textBackgroundImage)==null?void 0:t.imageDark:(k=F().textBackgroundImage)==null?void 0:k.imageLight;return FIA((U==null?void 0:U.sources)||[])},z=function(){var t,k;
return J()?(t=F().featureImage)==null?void 0:t.imageDark:(k=F().featureImage)==null?void 0:k.imageLight},Q=function(){return F().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},E=function(){var t,k;
return J()?(t=F().logo)==null?void 0:t.imageDark:(k=F().logo)==null?void 0:k.imageLight};
return _.W("ytm-lp-large-feature-section-view-model",null,_.W("div",{class:function(){var t=F().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",k=F().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",U=(F().index||0)%2===1,H=G==null?void 0:G().useDarkTheme,l=["yt-lp-large-feature-section-view-model"];t?l.push("yt-lp-large-feature-section-view-model--music-feature-type"):k?l.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):U||l.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
H&&l.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return l.join(" ")}},_.W("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.W(_.a,{cond:z,
then:function(){return _.W(_.AC,{data:function(){return z()},
alt:function(){var t,k,U;return(U=(t=F().featureImage)==null?void 0:(k=t.accessibilityData)==null?void 0:k.label)!=null?U:""},
contentMode:Q})}})),_.W("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var t;return((t=b())==null?0:t.url)?"background-image: url("+_.Ph(b().url)+");":""}},_.W("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.W(_.a,{cond:E,
then:function(){return _.W(_.AC,{data:function(){return E()},
alt:function(){var t,k,U;return(U=(t=F().logo)==null?void 0:(k=t.accessibilityData)==null?void 0:k.label)!=null?U:""},
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"})}}),_.W(_.a,{cond:function(){return F().eyebrowText},
then:function(){return _.W("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.W(_.mn,{text:function(){return F().eyebrowText}}))}}),_.W(_.a,{cond:function(){return F().title},
then:function(){return _.W("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.W(_.mn,{text:function(){return F().title}}))}}),_.W(_.a,{cond:function(){return F().subtitles},
then:function(){return _.W("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.W(_.Ag,{each:function(){return F().subtitles||[]}},function(t){return _.W(_.mn,{text:t})}))}})))))},"rd");
NZO.idomCompat=!0;var Oh2=_.d(function(C){return _.W("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.W("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.W(_.i5,{icon:function(){var F;return(F=C.data())==null?void 0:F.iconType},
className:function(){var F;switch((F=C.data())==null?void 0:F.style){case "LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconGreen";case "LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconSmall";default:return"ytLpFeatureListItemViewModelFeatureListIconDefault"}},
active:function(){var F;return((F=C.data())==null?void 0:F.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.W("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.W(_.mn,{text:function(){var F;
return(F=C.data())==null?void 0:F.text},
className:function(){var F;return((F=C.data())==null?void 0:F.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"sd");var XC$=_.d(function(C){C=_.xz(C,{config:void 0,themeOverride:void 0});var F=C.data,G=C.config,V=C.themeOverride;C={};C=_.py("ytmLpOfferCardOptionViewModelHost",(C.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var Q;return(Q=V())==null?void 0:Q.useDarkTheme},C));
var J=_.CZ(function(){var Q,E;(Q=G())==null||(E=Q.handleRadioButtonClick)==null||E.call(Q,F());return!1}),b=function(){var Q;
return(Q=G())==null?void 0:Q.shouldDisplayRadioButton},z=function(){var Q;
return(Q=F().featureListItems)!=null?Q:[]};
return _.W("ytm-lp-offer-card-option-view-model",null,_.W("div",{class:C,"on:click":_.CZ(function(){if(b()){var Q,E;(Q=G())==null||(E=Q.handleRadioButtonClick)==null||E.call(Q,F())}return!1})},_.W(_.a,{cond:b,
then:function(){return _.W("div",null,_.W("input",{type:"radio","on:click":J,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var Q;return!((Q=G())==null||!Q.isOptionSelected)}}))}}),_.W("div",null,_.W("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.W(_.mn,{text:function(){return F().eyebrowText}})),_.W("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.W(_.mn,{text:function(){return F().title}})),_.W("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.W(_.mn,
{text:function(){return F().subtitle}})),_.W(_.a,{cond:function(){return z().length>0},
then:function(){return _.W("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.W(_.uC,{data:z},{lpFeatureListItemViewModel:Oh2}))}}),_.W("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.W(_.mn,{text:function(){return F().description}})))))},"td");
XC$.idomCompat=!0;var wCO=_.d(function(C){var F=C.data;var G=C.themeOverride;C=_.u(_.Gb(function(){var b,z=(b=F().offerOptions)==null?void 0:b[0];return _.Z(z,eho)||{}}));
var V=C.next().value,J=C.next().value;C={};return _.W("ytm-lp-offer-card-view-model",null,_.W("div",{class:_.py("ytmLpOfferCardViewModelHost",(C.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(G==null||!G().useDarkTheme)},C))},_.W("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.W(_.a,{cond:function(){return F().titleIconType},
then:function(){return _.W("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.W(_.i5,{icon:function(){var b;return((b=F().titleIconType)==null?void 0:b.toString())||""}}))}}),_.W("div",{class:"ytmLpOfferCardViewModelTitleText"},_.W(_.mn,{text:function(){return F().title}})),_.W(_.uC,{data:function(){return F().titleBadge}},{badgeViewModel:function(b){return _.W("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.W(_.WI,{data:b.data}))}})),_.W("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.W(_.uC,{data:function(){return F().offerOptions}},{lpOfferCardOptionViewModel:function(b){var z=b.data;
return _.W(_.WQ,null,_.W("div",{class:"ytmLpOfferCardViewModelDivider"}),_.W(XC$,{data:z,config:function(){var Q;return{shouldDisplayRadioButton:(F().offerOptions||[]).length>1,isOptionSelected:z().id===((Q=V())==null?void 0:Q.id),handleRadioButtonClick:function(E){return void J(E)}}},
themeOverride:G}))}})),_.W("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.W(_.uC,{data:function(){var b;
return(b=V())==null?void 0:b.purchaseButtonOverride}},{buttonViewModel:_.tS}))))},"ud");
wCO.idomCompat=!0;var MJo=_.d(function(C){var F=C.data;var G=C.themeOverride;C={};C=_.py("ytmLpOfferCardSectionViewModelHost",(C.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var V;return G==null?void 0:(V=G())==null?void 0:V.useDarkTheme},C));
return _.W("ytm-lp-offer-card-section-view-model",null,_.W("div",{class:C},_.W(_.a,{cond:function(){return F().title!==void 0},
then:function(){return _.W("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.W("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.W(_.mn,{text:function(){return F().title}})),_.W(_.a,{cond:function(){return F().subtitle},
then:function(){return _.W("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.W(_.mn,{text:function(){return F().subtitle}}))}}))}}),_.W("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.W(_.uC,{data:function(){return F().offerCards}},{lpOfferCardViewModel:function(V){return _.W("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.W(wCO,{data:V.data,
themeOverride:G}))}})),_.W(_.a,{cond:function(){return F().footer},
then:function(){return _.W("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.W(_.mn,{text:function(){return F().footer}}))}})))},"vd");var SgS=_.d(function(C){var F=C.data;return _.W("lp-offer-table-cell-content-view-model",null,_.W("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.W(_.e_,null,_.W(_.hg,{when:function(){return F().title}},function(){return _.W(_.mn,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return F().title}})}),_.W(_.hg,{when:function(){return F().subTitle}},function(){return _.W(_.mn,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return F().subTitle}})}),_.W(_.hg,{when:function(){return F().featureDescription}},function(){return _.W(_.mn,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return F().featureDescription}})}),_.W(_.hg,{when:function(){return F().description}},function(){return _.W(_.mn,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return F().description}})}),_.W(_.hg,{when:function(){return F().iconType}},function(){return _.W("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.W(_.i5,{icon:function(){return F().iconType.toString()}}))}),_.W(_.hg,{when:function(){return F().purchaseButton}},function(){return _.W(_.uC,{data:function(){return F().purchaseButton}},{buttonViewModel:function(G){return _.W("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.W(_.tS,
{data:G.data}))}})}),_.W(_.hg,{when:function(){return F().note}},function(){return _.W(_.mn,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return F().note}})}),_.W(_.hg,{when:function(){return F().featureDetail}},function(){return _.W(_.mn,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return F().featureDetail}})}),_.W(_.hg,{when:function(){return F().badge}},function(){return _.W(_.uC,{data:function(){return F().badge}},{badgeViewModel:_.WI})}))))},"wd");
SgS.idomCompat=!0;var LsE=_.d(function(C){var F=C.data;return _.W("lp-offer-table-cell-view-model",null,_.W("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(F().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;"}}},_.W(_.uC,{data:function(){return F().contents}},{lpOfferTableCellContentViewModel:SgS})))},
"xd");
LsE.idomCompat=!0;var BZE=_.d(function(C){var F=C.data;var G=C.lpTableIsFirstRow;var V=C.lpTableIsLastRow;var J=function(){return(G==null?0:G())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},b=function(){return(G==null?0:G())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(V==null?0:V())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.W("ytm-lp-offer-table-row-view-model",null,_.W("div",{class:"ytLpOfferTableRowViewModelHost"},_.W(_.uC,{data:function(){return F().rowHeaderCell}},{lpOfferTableCellViewModel:function(z){return _.W("div",{class:J},_.W(LsE,{data:z.data}))}}),_.W(_.uC,{data:function(){return F().contentCells}},{lpOfferTableCellViewModel:function(z){return _.W("div",{class:b},_.W(LsE,{data:z.data}))}})))},"yd");
BZE.idomCompat=!0;var vtl=_.d(function(C){var F=C.data;var G=C.themeOverride;var V=_.I8().resolve(_.Qt(_.v6)),J=function(){return _.Z(F().logo,ip2)||{}};
C={};return _.W("ytm-lp-offer-table-section-view-model",null,_.W("div",{class:"ytLpOfferTableViewModelHost"},_.W(_.a,{cond:function(){var b,z;return V&&V()||(G==null?0:G().useDarkTheme)?(b=J())==null?void 0:b.imageDark:(z=J())==null?void 0:z.imageLight},
then:function(b){return _.W(_.AC,{data:b,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var z,Q,E;return(E=(z=J())==null?void 0:(Q=z.accessibilityData)==null?void 0:Q.label)!=null?E:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.W("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.W(_.mn,{text:function(){return F().title}})),_.W("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.W(_.mn,{text:function(){return F().subtitle}})),_.W(_.a,{cond:function(){return F().disclaimers},
then:function(b){return _.W("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.W(_.Ag,{each:b},function(z){return _.W("div",null,_.W(_.mn,{text:z}))}))}}),_.W("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.W(_.uC,{data:function(){return F().rows}},{lpOfferTableRowViewModel:function(b,z){return _.W(BZE,{data:b.data,
lpTableIsFirstRow:function(){return z()===0},
lpTableIsLastRow:function(){return z()===F().rows.length-1}})}})),_.W("div",{class:_.py((C.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return F().hasFooterBackground},C))},_.W(_.a,{cond:function(){return F().footer},
then:function(){return _.W("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.W(_.mn,{text:function(){return F().footer}}))}}),_.W(_.a,{cond:function(){return F().footerTitle},
then:function(){return _.W("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.W(_.mn,{text:function(){return F().footerTitle}}))}}),_.W(_.a,{cond:function(){return F().footerDescription},
then:function(){return _.W("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.W(_.mn,{text:function(){return F().footerDescription}}))}}),_.W(_.a,{cond:function(){return F().footerDescriptions},
then:function(b){return _.W("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.W(_.Ag,{each:b},function(z){return _.W("div",null,_.W(_.mn,{text:z}))}))}}))))},"zd");
vtl.idomCompat=!0;var f4S=_.d(function(C){var F=C.data;var G=C.themeOverride;var V=_.I8().resolve(_.Qt(_.v6)),J=function(){var Q;return G==null?void 0:(Q=G())==null?void 0:Q.useDarkTheme},b=function(){var Q,E;
return V&&V()||J()?(Q=F().image)==null?void 0:Q.imageDark:(E=F().image)==null?void 0:E.imageLight};
C={};C=_.py("ytmLpSmallFeatureSectionViewModelHost",(C.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=J,C));var z=function(){var Q,E,t;return(t=(Q=F().image)==null?void 0:(E=Q.accessibilityData)==null?void 0:E.label)!=null?t:""};
return _.W("ytm-lp-small-feature-section-view-model",{class:C},_.W(_.a,{cond:function(){return b()&&!io5},
then:function(){return _.W("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.W(_.AC,{data:function(){return b()},
alt:z,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.W("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.W("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.W(_.a,{cond:function(){return F().title},
then:function(Q){return _.W(_.mn,{text:Q})}})),_.W("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.W(_.mn,{text:function(){return F().description}}))))},"Ad");
f4S.idomCompat=!0;var hkS=_.d(function(C){var F=C.data;var G=C.themeOverride;C={};return _.W("ytm-lp-small-feature-section-group-view-model",null,_.W("div",{class:_.py("ytmLpSmallFeatureSectionGroupViewModelHost",(C.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(G==null||!G().useDarkTheme)},C))},_.W("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.W(_.uC,{data:function(){return F().smallFeatures}},{lpSmallFeatureSectionViewModel:function(V){return _.W("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.W(f4S,{data:V.data,
themeOverride:G}))}}))))},"Bd");
hkS.idomCompat=!0;_.gQ(_.d(function(C){var F=C.data;var G=function(){return F().forcedTheme==="USER_INTERFACE_THEME_DARK"},V=function(){return F().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},J=function(){var z="",Q,E;
var t=_.I8().resolve(_.Qt(_.v6));t=G()||(t==null?0:t())?(Q=F().themedImageViewModel)==null?void 0:Q.imageDark:(E=F().themedImageViewModel)==null?void 0:E.imageLight;(Q=FIA((t==null?void 0:t.sources)||[]))&&Q.url&&(z=V()?"background-image: linear-gradient(to bottom, transparent, "+(F().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.Ph(Q.url)+");":"background-image: url("+_.Ph(Q.url)+");");return z},b=function(){return{useDarkTheme:G()}};
C={};return _.W("yt-section-group-view-model",null,_.W("div",{class:_.py("yt-lp-section-group-view-model",(C["yt-lp-section-group-view-model--premium-force-dark-mode"]=G,C["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return F().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},C))},_.W(_.a,{cond:function(){return J().length},
then:function(){var z={};return _.W("div",{class:_.py("yt-lp-section-group-view-model__bg-image",(z["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=V,z)),style:J})}}),_.W("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.W(_.uC,{data:function(){return F().sections}},{lpHeaderUpsellBannerViewModel:function(z){return _.W(yH2,{data:z.data})},
lpFaqSectionViewModel:function(z){return _.W(Hhm,{data:z.data,themeOverride:b})},
lpHeaderSectionViewModel:function(z){return _.W(l4r,{data:z.data,themeOverride:b})},
lpHeadlineSectionViewModel:function(z){return _.W(ZhP,{data:z.data,themeOverride:b})},
lpLargeFeatureSectionViewModel:function(z){return _.W(NZO,{data:z.data,themeOverride:b})},
lpOfferCardSectionViewModel:function(z){return _.W(MJo,{data:z.data,themeOverride:b})},
lpComplexOfferCardSectionViewModel:function(z){return _.W(tJ$,{data:z.data})},
lpOfferTableSectionViewModel:function(z){return _.W(vtl,{data:z.data,themeOverride:b})},
lpSmallFeatureSectionGroupViewModel:function(z){return _.W(hkS,{data:z.data,themeOverride:b})},
lpCouponBannerViewModel:function(z){return _.W(a4r,{data:z.data})}}))))},"Cd"),"yt-section-group-view-model",{props:{data:_.CJ}});var amI=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.cHr=_.d(function(C){function F(){if(amI.has(C.data().displayType)){var t=!V(),k;if((k=C.disableDeselection)==null||!k.call(C)||t){C.data().selected=t;k=Object.assign({},z(),{selected:t});Q(k);var U;(U=C.callback)==null||U.call(C,k,t)}}}
var G=_.Jt("chip-view-model"),V=function(){var t,k;return!!(((t=C.selected)==null?void 0:t.call(C))!==void 0?(k=C.selected)==null?0:k.call(C):z().selected)},J=_.u(_.Gb(C.data)),b=J.next().value;
J=J.next().value;var z=b,Q=J,E=_.$b(tD5,function(){return C.data().chipEntityKey||""});
return _.W("chip-view-model",{class:"ytChipViewModelHost",el:G},_.W(IXu,{data:function(){var t,k=Object.assign({},z(),{selected:V()}),U=E(),H=(t=C.disableDeselection)==null?void 0:t.call(C);a:switch(k.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":t=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":t=3;break a;default:t=0}return{text:(U==null?void 0:U.text)||k.text,state:k.disabled?1:k.selected?0:2,type:t,onTap:kXo(k,G,F,H),
accessibilityLabel:k.accessibilityLabel||k.text}}}))},"Dd");
_.cHr.idomCompat={callbacks:{callback:!0}};_.AH$=_.d(function(C){var F=_.$b(WaB,function(){var z;return(z=C.data())==null?void 0:z.chipBarStateEntityKey}),G=function(){return C.data().disableDeselection},V=_.u(_.Gb(function(){var z;
if(((z=F())==null?void 0:z.selectedIndex)!=void 0)return F().selectedIndex;var Q,E;z=_.u(((Q=C.data())==null?void 0:(E=Q.chips)==null?void 0:E.entries())||[]);for(Q=z.next();!Q.done;Q=z.next()){Q=_.u(Q.value);E=Q.next().value;Q=Q.next().value;var t=void 0;if((t=_.Z(Q,_.Fu))==null?0:t.selected)return E}return-1})),J=V.next().value,b=V.next().value;
return _.W("chip-bar-view-model",{class:_.py("ytChipBarViewModelHost",C.className),role:"tablist"},_.W(_.uC,{data:function(){return C.data().chips}},{chipViewModel:function(z,Q){return _.W("div",{class:"ytChipBarViewModelChipWrapper"},_.W(_.cHr,{data:z.data,
selected:function(){return Q()===J()},
callback:function(E,t){E=!!t;t=Q();b(E?t:-1);var k,U=(k=C.data())==null?void 0:k.chipBarStateEntityKey;U&&E&&_.er(_.z3("chipBarStateEntity",U,{key:U,selectedIndex:t}))},
disableDeselection:C.disableDeselection||G}))}}))},"Ed");_.gQ(_.AH$,"chip-bar-view-model",{props:{data:_.s9,className:_.s9,disableDeselection:_.s9}});_.ekP=_.d(function(C){var F=C.data;C={};return _.W("divider-view-model",{class:_.py("dividerViewModelHost",(C.dividerViewModelInsetThinPadding=function(){return F().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},C))},_.W("div",{class:_.py("dividerViewModelBaseDivider",function(){return UC9(F().dividerStyle)}),
style:_.VA({"background-color":function(){return F().backgroundColor?_.Hr(F().backgroundColor):void 0}})}))},"Fd");
_.ekP.idomCompat=!0;_.gQ(_.ekP,"divider-view-model",{props:{data:_.CJ}});var id=new Map,V6=new Map,yqA=0,Jk;var SuZ=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],v7q={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var d2E,x2m;d2E=function(C){return function(F){return function(){return(F==null?void 0:F())!==void 0?String(F())+C:void 0}}};
_.bd=d2E("px");x2m=d2E("s");var sIy=akI(function(C){return C.targetGroupId}).useUpdatableData;_.P18=_.d(function(C){function F(C9){return function(){var Wo=S().numItemsPerGridRow,EB=C9()*Wo;Wo=EB+Wo;var L9,ki;return(ki=(L9=V().contents)==null?void 0:L9.slice(EB,Wo))!=null?ki:[]}}
var G=_.xz(C,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),V=G.data,J=G.layoutContainerWidth,b=G.shouldUseOwnContainerSize,z=G.marginSettings,Q=jZT(),E=_.u(sIy(function(){var C9,Wo;return{targetGroupId:(C9=V().targetingContext)==null?void 0:(Wo=C9.targetGroupId)==null?void 0:Wo[0]}})).next().value;
G=_.u(_.yH(!0,void 0,"Qe9wde"));var t=G.next().value,k=G.next().value,U=function(){var C9,Wo=(C9=_.Z(V().showMoreButton,_.jl))==null?void 0:C9.trackingParams;Wo&&_.MJ(_.ia(),Wo);k(!1)},H=function(){var C9,Wo=(C9=_.Z(V().showLessButton,_.jl))==null?void 0:C9.trackingParams;
Wo&&_.MJ(_.ia(),Wo);k(!0)};
G=_.Jt("grid-shelf-view-model");var l=_.h4T(G,{canHaveZeroSize:!1}),N=function(){var C9;return(C9=V().contentAspectRatio)!=null?C9:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},S=_.w0(function(){var C9=b()&&l.width()>0?l.width()||J():J(),Wo,EB=(Wo=C.data())==null?void 0:Wo.responsiveContainerConfiguration;
C9=_.XN({containerWidth:C9,sizing:EB?wv(EB==null?void 0:EB.responsiveSize):"EXTRA_COMPACT",marginSettings:z(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:C9.maxContainerWidth,numItemsPerGridRow:C9.numItems,contentPadding:b()?C9.margin:C9.contentMargin,itemWidth:C9.itemWidth,itemMargin:C9.gutter/2}},void 0,"mF84T"),f=function(){if(V().enableVerticalExpansion){if(t())return c();
var C9,Wo,EB=(Wo=(C9=V().contents)==null?void 0:C9.length)!=null?Wo:0;return Math.ceil(EB/S().numItemsPerGridRow)}return S().numItemsPerGridRow<=2?2:1},c=function(){var C9;
return Math.ceil(((C9=V().minCollapsedItemCount)!=null?C9:1)/S().numItemsPerGridRow)},A=function(){return V().enableVerticalExpansion&&V().showLessButton&&!t()&&f()>c()},T=function(){var C9,Wo;
return V().enableVerticalExpansion&&V().showMoreButton&&t()&&((Wo=(C9=V().contents)==null?void 0:C9.length)!=null?Wo:0)>S().numItemsPerGridRow*c()},P=function(){return!A()},g=function(){return!T()},r={};
return _.W("grid-shelf-view-model",{class:_.py("ytGridShelfViewModelHost",C.className,(r.ytGridShelfViewModelHostHasBottomButton=function(){return A()||T()},r.ytGridShelfViewModelHostIsDismissed=function(){var C9,Wo=(C9=E())!=null?C9:{};
C9=Wo.behavior;var EB=Wo.isDismissed,L9=Wo.stamperContextTargetId;Wo=Wo.stamperIndex;if(!(_.y("mweb_see_fewer_shorts_group_dismissal")&&EB&&C9&&L9))return!1;var ki;EB=Q;for(var lZ,eq,OB=((lZ=EB)==null?0:lZ.targetId)?_.g0((eq=EB)==null?void 0:eq.targetId):void 0;((ki=EB)==null?0:ki.parent)&&OB!==L9;)EB=EB.parent,eq=lZ=void 0,OB=((lZ=EB)==null?0:lZ.targetId)?_.g0((eq=EB)==null?void 0:eq.targetId):void 0;ki=OB===L9?EB:void 0;if(!ki)return!1;var yr;L9=ki==null?void 0:(yr=ki.stamperIndex)==null?void 0:
yr.call(ki);return C9==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||C9==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&L9!=null&&Wo!=null&&L9>Wo},r)),
el:G,style:_.VA({"margin-left":(0,_.bd)(function(){return S().contentPadding}),
"margin-right":(0,_.bd)(function(){return S().contentPadding})})},_.W(_.a,{cond:function(){return _.Z(V().header,E97)},
then:function(C9){return _.W(_.Xa,{data:C9,disableHorizontalPadding:!0})}}),_.W("div",null,_.W(_.Ag,{each:function(){return Array(f())}},function(C9,Wo){return _.W(qgm,{className:C.className,
items:F(Wo),responsiveGridShelfLayout:S,contentAspectRatio:N})})),_.W("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.W(_.uC,{data:function(){return V().showMoreButton}},{buttonViewModel:function(C9){return _.W("div",{hidden:g},_.W(_.tS,{data:C9.data,
onClick:U}))}}),_.W(_.uC,{data:function(){return V().showLessButton}},{buttonViewModel:function(C9){return _.W("div",{hidden:P},_.W(_.tS,{data:C9.data,
onClick:H}))}})))},"Hd");
_.P18.idomCompat=!0;var qgm=_.d(function(C){var F=C.items;var G=C.responsiveGridShelfLayout;var V=C.contentAspectRatio;C=C.className;var J=_.Jt("div");lmq(J,function(){a:{var z=J.value;for(var Q=F(),E=[],t=0;t<Q.length;t++){var k=_.Z(Q[t],Pc2);if(!k||k==null||!k.inlinePlayerData){z=null;break a}var U=z.children.item(t);if(!U){z=null;break a}E.push({thumbnailElement:U,videoData:k})}z={gridVideoPreviewData:{gridItems:E}}}return z});
var b=(0,_.bd)(function(){return-G().itemMargin});
return _.W("div",{el:J,class:_.py("ytGridShelfViewModelGridShelfRow",C),style:_.VA({"margin-left":b,"margin-right":b})},_.W(_.uC,{data:F,replacementWrapper:function(z){return _.W(gtr,{responsiveGridShelfLayout:G},z)}},{shortsLockupViewModel:function(z){return _.W(gtr,{responsiveGridShelfLayout:G},_.W(am2,{data:z.data,
aspectRatio:function(){return V()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.y("mweb_enable_one_line_title_on_shorts")?1:_.y("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(z){return _.W(gtr,{responsiveGridShelfLayout:G},_.W(_.ZM,{data:z.data,className:"ytGridShelfViewModelLockupItem"}))}}))},"Id"),gtr=_.d(function(C){return _.W("div",{style:_.VA({width:(0,_.bd)(function(){return C.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+C.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},C.children)},"Jd");
_.P18.idomCompat=!0;_.gQ(_.P18,"grid-shelf-view-model",{props:{data:_.CJ,layoutContainerWidth:_.CJ,shouldUseOwnContainerSize:_.CJ,marginSettings:_.CJ,className:_.CJ}});_.Rku=_.d(function(C){var F=_.u(_.yH(!1,void 0,"FVl30c")),G=F.next().value,V=F.next().value;F={};return _.W("yt-alert-banner-view-model",{class:_.py("ytAlertBannerViewModelHost",C.className,function(){var J;a:switch((J=C.data())==null?void 0:J.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":J="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":J="ytAlertBannerViewModelWarning";break a;default:J="ytAlertBannerViewModelInformational"}return J},(F.ytAlertBannerViewModelDismissed=
G,F.ytAlertBannerViewModelFullbleed=C.fullbleed,F.ytAlertBannerViewModelNarrow=C.narrow,F.ytAlertBannerViewModelIsInRichGrid=C.isInRichGrid,F))},_.W(_.a,{cond:function(){var J;
return!((J=C.data())==null?0:J.hideIcon)},
then:function(){return _.W("div",{class:"ytAlertBannerViewModelIcon"},_.W(_.i5,{icon:function(){return"info_circle"}}))}}),_.W("div",{class:"ytAlertBannerViewModelOuterContainer"},_.W("div",{class:"ytAlertBannerViewModelContainer"},_.W("div",{class:"ytAlertBannerViewModelContent"},_.W("div",{class:"ytAlertBannerViewModelHeading"},_.W(_.mn,{text:function(){var J;
return(J=C.data())==null?void 0:J.heading}})),_.W("div",{class:"ytAlertBannerViewModelBody"},_.W(_.mn,{text:function(){var J;
return(J=C.data())==null?void 0:J.body}})))),_.W(_.uC,{data:function(){var J;
return(J=C.data())==null?void 0:J.actionButton}},{buttonViewModel:function(J){return _.W(_.tS,{data:J.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.W(_.uC,{data:function(){var J;
return(J=C.data())==null?void 0:J.dismissButton}},{buttonViewModel:function(J){return _.W(_.tS,{data:J.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var b;((b=C.data())==null?0:b.disableLocalDismissBehavior)||V(!0)}})}}))},"Kd");_.gQ(_.Rku,"yt-alert-banner-view-model",{props:{data:_.CJ,fullbleed:_.CJ,narrow:_.CJ,isInRichGrid:_.CJ,className:_.CJ}});var Ygr;_.TZr=_.d(function(C){return _.W("basic-content-view-model",{class:_.py("ytBasicContentViewModelHost",_.dk(C.className))},_.W(_.a,{cond:function(){return C.data().headline},
then:function(F){return _.W("div",{class:"ytBasicContentViewModelHeadline"},_.W(_.mn,{text:F}))}}),_.W(_.Ag,{each:function(){return C.data().paragraphs||[]},
keyBy:"INDEX"},function(F){return _.W("div",{class:"ytBasicContentViewModelParagraph"},_.W(_.a,{cond:function(){var G=F();return!!(G.header||G.customHeader||G.headline)},
then:function(){return _.W(Ygr,{paragraph:F})}}),_.W(_.a,{cond:function(){return F().asset||F().text},
then:function(){return _.W("div",{class:"ytBasicContentViewModelParagraphContent"},_.W(_.a,{cond:function(){return F().asset},
then:function(G){return _.W("div",{class:"ytBasicContentViewModelParagraphAsset"},_.W(_.uC,{data:G},{contentPreviewImageViewModel:_.tZ}))}}),_.W(_.a,{cond:function(){return F().text},
then:function(G){return _.W("div",{class:"ytBasicContentViewModelParagraphText"},_.W(_.mn,{text:G}))}}))}}))}))},"Ld");
Ygr=_.d(function(C){var F=C.paragraph;return _.W(_.WQ,null,_.W(_.a,{cond:function(){return F().headline},
then:function(G){return _.W(_.mn,{text:G,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.W(_.uC,{data:function(){return F().header||F().customHeader}},{sectionHeaderViewModel:function(G){return _.W(_.Xa,{data:G.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Md");var otP=_.d(function(C){function F(){var l,N;E((N=(l=J)==null?void 0:l.isKeyBoardInUse())!=null?N:!1)}
function G(){E(!1)}
function V(){var l;return Q()?(l=C.focusedClassName)==null?void 0:l.call(C):""}
var J=_.I8().resolve(_.Qt(_.uc)),b=_.u(_.yH(!1,void 0,"SgkTXc")),z=b.next().value;b=b.next().value;var Q=z,E=b,t=function(){var l,N;return((l=C.toggleable)==null?0:l.call(C))?(N=C.toggled)==null?void 0:N.call(C):void 0},k=_.CZ(function(l){var N,S=(N=C.command)==null?void 0:N.call(C);
S&&_.I8().resolve(_.WD).resolveCommand(S);var f;(f=C.onClick)==null||f.call(C,l)}),U=_.CZ(F),H=_.CZ(G);
return _.W(_.a,{cond:function(){var l;if(l=C.command){l=C.command();l=IvS(l);var N=l.href;l=!(!l.navigatingCommand||!N)}return l},
then:function(){return _.W(_.zV,Object.assign({},{command:C.command,style:C.style,ariaDescribedby:C.ariaDescribedby,ariaHidden:C.ariaHidden,ariaLabel:C.ariaLabel,ariaLabelledby:C.ariaLabelledby,ariaSelected:C.ariaSelected,disabled:C.disabled,dir:C.dir,tabIndex:C.tabIndex,target:C.target,title:C.title,onClick:C.onClick},{className:_.py("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",C.className,function(){return V()}),
onFocusin:F,onFocusout:G,ariaCurrent:function(){var l,N;return(N=(l=C.ariaCurrent)==null?void 0:l.call(C))!=null?N:t()}}),C.children)},
else:function(){return _.W("button",{"on:click":k,"on:focusin":U,"on:focusout":H,class:_.py("ytButtonOrAnchorHost","ytButtonOrAnchorButton",C.className,function(){return V()}),
style:C.style,"aria-describedby":C.ariaDescribedby,"aria-hidden":C.ariaHidden,"aria-label":C.ariaLabel,"aria-labelledby":C.ariaLabelledby,"aria-pressed":t,dir:C.dir,disabled:C.disabled,tabindex:C.tabIndex,title:C.title},C.children)}})},"Nd");var rHO=_.d(function(C){C=_.xz(C,{disabled:!1});var F=C.active,G=C.disabled;C={};C=_.py("ytSwitchShapeTrack",(C.ytSwitchShapeTrackActive=function(){return F()},C.ytSwitchShapeTrackDisabled=function(){return G()},C));
var V={};V=_.py("ytSwitchShapeKnob",(V.ytSwitchShapeKnobActive=function(){return F()},V));
return _.W("switch-shape",{class:"ytSwitchShapeHost"},_.W("div",{class:C}),_.W("div",{class:V}))},"Od");var Ks7=_.d(function(C){var F=_.xz(C,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),G=F.data;C=F.className;var V=F.handleOnTapEventInParent,J=F.parentActive,b=F.onTap;F=_.u(_.Gb(function(){var H;return(H=J())!=null?H:G().switchedOnByDefault||!1}));
var z=F.next().value,Q=F.next().value,E=function(){return G().isDisabled},t=_.Jt("button");
F=_.CZ(function(H){return H.key==="Enter"?(H.preventDefault(),t.value.click(),!1):!0});
var k=_.CZ(function(H){if(G().handleOnTapEventInParent||V())return!0;if(E())return!1;if(b)return b(H),!0;AqA(G(),z(),H);Q(!z());return!1}),U={};
U=_.py("ytSwitchButtonViewModelButton",(U.ytSwitchButtonViewModelTappable=function(){return!E()},U));
return _.W("switch-button-view-model",{class:_.py("ytSwitchButtonViewModelHost",C)},_.W("button",{el:t,class:U,"on:click":k,"on:keydown":F,"aria-label":function(){return z()?G().a11yLabelSwitchedOn:G().a11yLabelSwitchedOff},
"aria-checked":z,"aria-disabled":E,role:"switch"},_.W(rHO,{active:z,disabled:E})))},"Pd");var D2u=_.d(function(C){var F=C.data;var G=C.isLeading;var V=C.hideSelectionTextChevron;var J=C.isToggled;var b=function(){return G()?F().leadingImage:F().trailingImage},z=function(){a:switch(F().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var k="expand_more";
break a;default:k="chevron_right"}return k};
C={};var Q=_.py("yt-list-item-view-model__image-container",(C["yt-list-item-view-model__leading"]=G,C["yt-list-item-view-model__trailing"]=function(){return!G()},C)),E=_.py("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
C={};var t=_.py("yt-list-item-view-model__accessory",(C["yt-list-item-view-model__leading"]=G,C["yt-list-item-view-model__trailing"]=function(){return!G()},C));
return _.W(_.a,{cond:function(){var k=F(),U=G();return!!(U&&(k.leadingImage||k.leadingAccessory)||!U&&(k.trailingImage||k.trailingButton||k.trailingButtons||k.selectionText))},
then:function(){return _.W(_.WQ,null,_.W(_.a,{cond:b,then:function(k){return _.W("div",{class:Q,"aria-hidden":"true"},_.W(_.AC,{data:k,alt:"",preserveWidth:!0,preserveHeight:!0,className:E,isToggled:J}))}}),_.W(_.a,{cond:function(){return G()&&F().leadingAccessory},
then:function(){return _.W("div",{class:Q},_.W(_.uC,{data:function(){return F().leadingAccessory}},{avatarViewModel:function(k){return _.W(_.g$,{data:k.data,
avatarButtonCustomClassName:E})},
collectionThumbnailViewModel:function(k){return _.W(Q97,{data:k.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.W(_.a,{cond:function(){return!G()&&F().trailingButton},
then:function(){return _.W("div",{class:"yt-list-item-view-model__button-container"},_.W(_.uC,{data:function(){return F().trailingButton}},{buttonViewModel:function(k){return _.W(_.tS,{data:k.data,
className:t})}}))}}),_.W(_.a,{cond:function(){var k;
return!G()&&((k=F().trailingButtons)==null?void 0:k.buttons)},
then:function(){return _.W("div",{class:"yt-list-item-view-model__button-container"},_.W(_.uC,{data:function(){var k;return(k=F().trailingButtons)==null?void 0:k.buttons}},{buttonViewModel:function(k){return _.W(_.tS,{data:k.data,
className:t})},
accountLinkButtonViewModel:function(k){return _.W(jJu,{data:k.data,className:t})},
switchButtonViewModel:function(k){return _.W(Ks7,{data:k.data,className:t})},
subscribeButtonViewModel:function(k){return _.W(_.gB,{data:k.data,isOverlay:!1,animateWidth:!1,className:t})},
toggleButtonViewModel:function(k){return _.W(_.AS,{data:k.data,className:t})}}))}}),_.W(_.a,{cond:function(){return!G()&&!!F().selectionText},
then:function(){return _.W(_.WQ,null,_.W(_.mn,{text:function(){return F().selectionText},
className:_.py("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.W(_.a,{cond:function(){return!(V==null?0:V())},
then:function(){return _.W(_.i5,{icon:z,className:"yt-list-item-view-model__chevron-icon"})}}))}}))}})},"Qd");var pC7=_.d(function(C){var F=C.data;return _.W(_.a,{cond:function(){return F().title||F().subtitle},
then:function(){return _.W("div",{class:"yt-list-item-view-model__text-wrapper"},_.W(_.a,{cond:function(){return F().title},
then:function(G){return _.W("div",{class:"yt-list-item-view-model__title-wrapper"},_.W(_.mn,{text:G,className:"yt-list-item-view-model__title"}))}}),_.W(_.a,{cond:function(){return F().subtitle},
then:function(G){return _.W(_.mn,{text:G,className:"yt-list-item-view-model__subtitle"})}}))}})},"Rd");var m2o=_.d(function(C){var F=C.data;var G=C.hideSelectionTextChevron;var V=C.TrailingAccessory;var J=C.isToggled;var b=C.disabled;var z=C.isSelectItem;var Q=C.isCompact;var E=C.inPopup;var t=C.disableHorizontalPadding;var k=C.isTappableWithoutSelect;var U=C.useButtonOrAnchor;var H=C.onTap;var l=function(){return _.W(pC7,{data:F,onTap:H,useButtonOrAnchor:U,isTappableWithoutSelect:k,isToggled:J})};
C={};return _.W("div",{class:_.py("yt-list-item-view-model__label",(C["yt-list-item-view-model__container"]=function(){return!(z==null?0:z())},C["yt-list-item-view-model__container--disabled"]=function(){return!!F().isDisabled||!(b==null||!b())},C["yt-list-item-view-model__container--has-subtitle"]=function(){return!!F().subtitle},C["yt-list-item-view-model__container--compact"]=Q,C["yt-list-item-view-model__container--tappable"]=k,C["yt-list-item-view-model__container--in-popup"]=E,C["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(t==null?void 0:t())&&!(z==null?0:z())},C))},_.W(D2u,{data:F,
isLeading:!0,hideSelectionTextChevron:G,isToggled:J}),_.W(_.a,{cond:function(){return(U==null?void 0:U())&&(k==null?void 0:k())},
then:function(){return _.W(otP,{command:function(){return _.UI(F().rendererContext)},
onClick:H,className:"yt-list-item-view-model__button-or-anchor",toggleable:J!==void 0,toggled:J},_.W(l,null))},
else:function(){return _.W(l,null)}}),_.W(_.a,{cond:function(){return!!V},
then:function(){return _.W("div",{class:"yt-list-item-view-model__trailing"},V&&_.W(V,null))},
else:function(){return _.W(D2u,{data:F,isLeading:!1,hideSelectionTextChevron:G,isToggled:J})}}))},"Sd");var jW$=_.d(function(C){var F=_.xz(C,{checked:!1});C=F.name;var G=F.onChange,V=F.onClick,J=F.checked,b=F.labelRenderable,z=F.hasLeadingLabel,Q=F.labelClass,E=F.isCompact,t=F.selectElementClass;F=F.disableHorizontalPadding;var k="checkbox"+_.ve(_.Y1),U=_.CZ(function(N){V==null||V(N);return!1}),H=_.CZ(function(N){G==null||G(N);
return!1}),l={};
return _.W("checkbox-shape",null,_.W("label",{class:_.py("ytCheckboxShapeHost",Q,(l.ytCheckboxShapeHostCompact=E,l.ytCheckboxShapeDisableHorizontalPadding=F,l))},_.W("input",{class:"ytCheckboxShapeInput",id:k,checked:J,name:C,type:"checkbox","prop:checked":J,"on:change":H,"on:click":U}),_.W(_.a,{cond:function(){return!(z==null?0:z())},
then:function(){return _.W(CXE,{isLeading:!0,selectElementClass:t})}}),_.W(_.a,{cond:function(){return!!b},
then:function(){return _.W("div",{class:"ytCheckboxShapeLabel"},b==null?void 0:b())}}),_.W(_.a,{cond:z,
then:function(){return _.W(CXE,{isLeading:!1,selectElementClass:t})}})))},"Td");
jW$.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var CXE=_.d(function(C){var F=C.selectElementClass;C={};return _.W("div",{class:_.py("ytCheckboxShapeCheckbox",F,(C.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(F==null?0:F())},C)),
"aria-hidden":"true"},_.W(_.i5,{icon:_.y("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.W(_.i5,{icon:_.y("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Ud");_.TQ=_.d(function(C){var F=C.name;var G=C.onChange;var V=C.onClick;var J=C.checked;var b=C.labelRenderable;var z=C.useCheckIcon;var Q=C.hasLeadingLabel;var E=C.labelClass;var t=C.isCompact;var k=C.selectElementClass;var U=C.ariaLabel;C=C.className;var H="radio"+_.ve(_.Y1),l=_.Jt("input"),N=_.CZ(function(r){l.value.checked=!(J==null||!J());G==null||G(r);return!1}),S=_.CZ(function(r){V==null||V(r);
return!1}),f=_.CZ(function(r){_.y("enable_ios_webview_radio_button_responsiveness")&&(r.preventDefault(),l.value.click())}),c=_.u(_.yH(!1,void 0,"TcCZlf")),A=c.next().value,T=c.next().value;
c=_.CZ(function(){var r;((r=_.I8().resolve(_.Qt(_.uc)))==null?0:r.isKeyBoardInUse())&&T(!0)});
var P=_.CZ(function(){T(!1)}),g={};
return _.W("radio-shape",{class:_.py("yt-radio-shape",C)},_.W("input",{el:l,class:"yt-radio-shape__input",id:H,"prop:checked":J,name:F,type:"radio","on:change":N,"on:click":S,"aria-label":U,"on:focusin":c,"on:focusout":P}),_.W("label",{class:_.py("yt-radio-shape__label-container",E,(g["yt-radio-shape--compact"]=t,g["yt-radio-shape__label-container--keyboard-focused"]=A,g)),for:H,"on:click":f},_.W(_.a,{cond:function(){return!(Q==null?0:Q())},
then:function(){return _.W(FBG,{checked:J,useCheckIcon:z,isLeading:!0,selectElementClass:k})}}),_.W(_.a,{cond:function(){return!!b},
then:function(){return _.W("div",{class:"yt-radio-shape__label","aria-hidden":function(){return(U==null?0:U())?"true":"false"}},b==null?void 0:b())}}),_.W(_.a,{cond:Q,
then:function(){return _.W(FBG,{checked:J,useCheckIcon:z,isLeading:!1,selectElementClass:k})}})))},"Vd");
_.TQ.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var FBG=_.d(function(C){var F=C.useCheckIcon;var G=C.selectElementClass;C=function(){return(F==null?0:F())?"CHECK":_.y("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var V={};return _.W("div",{class:_.py("yt-radio-shape__radio",G,(V["yt-radio-shape__radio--check-icon"]=F,V["yt-radio-shape__radio--radio-default-style"]=function(){return!(G==null?0:G())},V)),
"aria-hidden":"true"},_.W(_.i5,{icon:C}),_.W(_.i5,{icon:C,active:function(){return!(F==null?0:F())}}))},"Wd");_.oi=_.d(function(C){var F=C.data;var G=C.isMenuItem;var V=C.isCompact;var J=C.onTap;var b=C.trailingAccessory;var z=C.hideSelectionTextChevron;var Q=C.disabled;var E=C.inPopup;var t=C.disableHorizontalPadding;var k=C.isOverlay;var U=C.isToggled;var H=C.ariaLabel;C=C.ariaPressed;var l=!_.y("web_enable_killswitch_for_selectable_list_item_on_tap_fix"),N=_.nZ(function(OB){return xCZ(F(),OB)}),S=function(){return _.y("enable_web_shorts_captions_language_command")||_.y("web_shorts_audio_track_picker")||
F().entitySelectorType==="LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE"},f=function(){return S()?Object.assign({},F(),N().data):F()},c=_.quT(function(){return f().rendererContext}),A=function(){return!(f().isSelected===void 0||!f().selectionStyle||f().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},T=function(){return(_.Hl(f().rendererContext)||J)&&!A()},P={},g=_.py("yt-list-item-view-model__container",(P["yt-list-item-view-model__container--tappable"]=function(){return _.Hl(f().rendererContext)||
A()},P["yt-list-item-view-model__container--compact"]=V,P["yt-list-item-view-model__container--in-popup"]=E,P["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(t==null?void 0:t())&&A()},P)),r=function(){return f().leadingImage||f().leadingAccessory},C9=_.py("yt-list-item-view-model__image-container",function(){return r()?"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
P=_.CZ(function(OB){var yr;if(yr=l)yr=f().selectionStyle,yr=yr==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||yr==="LIST_ITEM_SELECTION_STYLE_RADIO"||yr==="LIST_ITEM_SELECTION_STYLE_DEFAULT";yr||eq||J==null||J(OB)});
var Wo=_.dc9(),EB=_.u(_.yH(!1,void 0,"q9Dj4b")),L9=EB.next().value,ki=EB.next().value,lZ=function(){return _.W(m2o,{data:f,hideSelectionTextChevron:z,TrailingAccessory:b,isToggled:U,disabled:Q,isSelectItem:A,isCompact:V,inPopup:E,disableHorizontalPadding:t,isTappableWithoutSelect:T,useButtonOrAnchor:eq,onTap:J})},eq=_.y("web_button_or_anchor_list_item");
EB={};return _.W("yt-list-item-view-model",{el:_.dQ(_.lC(function(){return f().rendererContext},void 0,void 0,eq?["A".toString(),
"BUTTON".toString()]:[]),eq&&J?s2B(J):void 0,mcI(function(){return T==null?void 0:T()},{focusin:function(){var OB;
((OB=_.I8().resolve(_.Qt(_.uc)))==null?0:OB.isKeyBoardInUse())&&ki(!0)},
focusout:function(){ki(!1)}})),
class:_.py("yt-list-item-view-model",(EB["yt-list-item-view-model--is-overlay"]=k,EB["yt-list-item-view-model--keyboard-focused"]=L9,EB["yt-list-item-view-model--hidden"]=function(){return S()?N().isHidden:!1},EB)),
role:function(){return(G==null?0:G())?"menuitem":"listitem"},
tabindex:function(){var OB=T();OB=eq?void 0:J||OB?0:void 0;return OB},
"on:keydown":Wo,"on:click":P,"aria-label":function(){var OB;return(H==null?void 0:H())||((OB=c())==null?void 0:OB.label)},
"aria-pressed":C},_.W(_.a,{cond:A,then:function(){return _.W(_.e_,null,_.W(_.hg,{when:function(){return f().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.W(jW$,{labelRenderable:lZ,
isCompact:V,checked:function(){return f().isSelected},
hasLeadingLabel:function(){return!!r()},
labelClass:g,selectElementClass:C9,disableHorizontalPadding:t,onClick:l?J:void 0})}),_.W(_.hg,{when:function(){return f().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.W(_.TQ,{labelRenderable:lZ,
isCompact:V,checked:function(){return f().isSelected},
hasLeadingLabel:function(){return!!r()},
labelClass:g,selectElementClass:C9,onClick:l?J:void 0})}),_.W(_.hg,{when:function(){return f().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.W(_.TQ,{labelRenderable:lZ,
isCompact:V,checked:function(){return f().isSelected},
hasLeadingLabel:function(){return!!r()},
labelClass:g,selectElementClass:C9,useCheckIcon:!0,onClick:l?J:void 0})}),_.W(_.cQ,null,lZ))},
else:lZ}))},"Xd");
_.oi.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var rY;_.Kw=_.d(function(C){var F=function(){var V,J;return((V=C.data().linearLayoutContainerConfiguration)==null?void 0:V.flexDirection)==="FLEX_DIRECTION_ROW"||((J=C.data().linearLayoutContainerConfiguration)==null?void 0:J.flexDirection)==="FLEX_DIRECTION_ROW_REVERSE"},G=function(){return C.data().linearLayoutContainerConfiguration};
return _.W("yt-linear-layout-view-model",{class:_.py("ytLinearLayoutViewModelHost",function(){a:switch(C.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var V="ytLinearLayoutViewModelHorizontal";break a;default:V="ytLinearLayoutViewModelVertical"}return V},function(){var V=C.data().linearLayoutContainerConfiguration;
return V?[R4f(V==null?void 0:V.flexDirection),YuS(V==null?void 0:V.justifyContent),TCI(V==null?void 0:V.alignItems)].join(" "):""})},_.W(_.uC,{data:function(){return C.data().items}},{lockupViewModel:function(V){return _.W(rY,{linearLayoutContainerConfiguration:G,
className:"ytLinearLayoutViewModelLockupItem"},_.W(_.ZM,{data:V.data,containerType:function(){return F()?2:3},
sizing:"COMPACT",thumbnailFixedWidth:function(){return F()?void 0:"33%"}}))},
basicContentViewModel:function(V){return _.W(rY,{linearLayoutContainerConfiguration:G},_.W(_.TZr,{data:V.data}))},
linearLayoutViewModel:function(V){return _.W(rY,{linearLayoutContainerConfiguration:G},_.W(_.Kw,{data:V.data}))},
thumbnailViewModel:function(V){return _.W(rY,{linearLayoutContainerConfiguration:G,className:"ytLinearLayoutViewModelThumbnailItem"},_.W(_.zs,{data:V.data}))},
descriptionPreviewViewModel:function(V){return _.W(rY,{linearLayoutContainerConfiguration:G},_.W(_.O2,{data:V.data}))},
listItemViewModel:function(V){return _.W(rY,{linearLayoutContainerConfiguration:G},_.W(_.oi,{data:V.data}))}}))},"Yd");
rY=_.d(function(C){return _.W("div",{style:function(){var F;var G=g7Z((F=C.linearLayoutContainerConfiguration)==null?void 0:F.call(C));return _.VA(G)()},
class:C.className},C.children)},"Zd");_.gQ(_.Kw,"yt-linear-layout-view-model",{props:{data:_.CJ}});_.DT=_.d(function(C){var F=C.data;var G=C.callback;var V=C.selectionBehavior;var J=C.disableChipsScrollAnimation;var b=_.nc("div");C=_.u(_.yH(!0,void 0,"aUEsOc"));var z=C.next().value,Q=C.next().value;C=_.u(_.yH(!1,void 0,"V0aKld"));var E=C.next().value,t=C.next().value,k=!1,U=0;_.s0(function(){Q(N());t(S())});
C=_.u(_.Gb(function(){var C9={};return F().autoselectedChipIndex!=null?(C9[F().autoselectedChipIndex]=!0,C9):{}}));
var H=C.next().value,l=C.next().value,N=function(){var C9=b.value;return C9==null||C9.scrollLeft-1<=0},S=function(){var C9=b.value;
return C9==null?!1:C9.scrollLeft+1>=(C9==null?NaN:C9.scrollWidth)-(C9==null?NaN:C9.clientWidth)},f=function(){return F().isHorizontallyScrollable},c=function(C9){b.value!=null&&(_.TF("HTML_DIR")==="rtl"&&(C9=-C9),b.value.scrollBy({left:C9,
behavior:(J==null?0:J())?"instant":"smooth"}))},A=function(){c(-320)},T=function(){c(320)},P=_.CZ(function(C9){k=!0;
U=C9.clientX}),g=_.CZ(function(C9){if(k){C9=C9.clientX;
var Wo=C9-U;U=C9;var EB;(EB=b.value)==null||EB.scrollBy({left:-Wo})}}),r=_.CZ(function(){var C9=N(),Wo=S();
C9!==z()&&Q(C9);Wo!==E()&&t(Wo)});
_.Ix("pointerup",function(){k&&(k=!1)});
return _.W("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.W(_.UG,{contentId:function(){return F().contentId},
useModernStyle:!0},function(){var C9={},Wo={};return _.W("div",null,_.W(_.a,{cond:function(){return F().title},
then:function(){return _.W("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.W("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return F().title}),_.W(_.uC,{data:function(){return F().overflowButton}},{buttonViewModel:_.tS}))}}),_.W("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.W(_.a,{cond:function(){return F().previousButton},
then:function(){var EB={};return _.W("div",{class:_.py("ytChipsShelfViewModelLeftArrowContainer",(EB.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return z()},EB))},_.W(_.uC,{data:function(){return F().previousButton}},{buttonViewModel:function(L9){return _.W(_.tS,{data:L9.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:A})}}))}}),_.W("div",{el:b,
"on:pointerdown":P,"on:pointermove":g,"on:scroll":r,class:_.py("ytChipsShelfViewModelChipsScrollContainer",(C9.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=f,C9))},_.W("div",{class:_.py("ytChipsShelfViewModelChipsContainer",(Wo.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=f,Wo.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,Wo)),role:"tablist"},_.W(_.uC,{data:function(){return F().contents}},{chipViewModel:function(EB,L9){return _.W("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.W(_.cHr,{data:EB.data,
callback:function(ki,lZ){var eq=L9(),OB,yr=(OB=V==null?void 0:V())!=null?OB:0;yr===1||yr===2?(OB={},l((OB[eq]=lZ,OB))):(OB={},l(Object.assign({},H(),(OB[eq]=lZ,OB))));G==null||G(ki,lZ,eq)},
disableDeselection:function(){return(V==null?void 0:V())===1},
selected:function(){return!!H()[L9()]}}))}}))),_.W(_.a,{cond:function(){return F().nextButton},
then:function(){var EB={};return _.W("div",{class:_.py("ytChipsShelfViewModelRightArrowContainer",(EB.ytChipsShelfViewModelRightArrowContainerIsHidden=E,EB))},_.W(_.uC,{data:function(){return F().nextButton}},{buttonViewModel:function(L9){return _.W(_.tS,{data:L9.data,
className:"ytChipsShelfViewModelRightArrow",onClick:T})}}))}})))}))},"ae");
_.DT.idomCompat={callbacks:{callback:!0}};_.gQ(_.DT,"chips-shelf-view-model",{props:{data:_.CJ,callback:_.s9,selectionBehavior:_.CJ,disableChipsScrollAnimation:_.CJ}});_.gQ(_.d(function(C){return _.W("yt-comment-filter-context-view-model",{class:_.py("ytCommentFilterContextHost",C.className)},_.W(_.mn,{text:function(){return C.data().text}}))},"be"),"yt-comment-filter-context-view-model",{props:{data:_.CJ,
className:_.s9}});_.GwG=_.d(function(C){var F=C.data;var G=C.onTap;var V=C.onSwitch;var J=C.overrideDisabled;C=C.disableHorizontalPadding;var b=_.u(_.Gb(function(){var l;return((l=dCw(U()))==null?void 0:l.switchedOnByDefault)||!1})),z=b.next().value,Q=b.next().value;
b=_.u(_.yH(!1,void 0,"ZHBkbb"));var E=b.next().value,t=b.next().value,k=_.y("web_button_or_anchor_list_item"),U=function(){var l;if(!(l=F().switchButton)){var N=F();l=J==null?void 0:J();N={switchOnCommand:N.switchOnCommand,switchOffCommand:N.switchOffCommand,switchedOnByDefault:N.switchedOnByDefault,isDisabled:N.isDisabled,handleOnTapEventInParent:!k,a11yLabelSwitchedOn:N.a11yLabelSwitchedOn,a11yLabelSwitchedOff:N.a11yLabelSwitchedOff};l!==void 0&&(N.isDisabled=l);l={switchButtonViewModel:N}}return l},
H=function(l){var N=dCw(U());
!N||N.isDisabled||F().ignoreTapUntilCommandCompletes&&E()||(G==null||G(l),AqA(N,z(),l,F().ignoreTapUntilCommandCompletes,t),Q(!z()),V==null||V(z()))};
return _.W("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.W(_.oi,{data:function(){return{title:F().title,subtitle:F().attributedSubtitle,leadingImage:F().leadingImage,leadingAccessory:F().leadingAccessory,isDisabled:F().isDisabled}},
onTap:H,isToggled:k?z:void 0,trailingAccessory:function(){return _.W(_.uC,{data:U},{switchButtonViewModel:function(l){return _.W(Ks7,{data:l.data,parentActive:z,handleOnTapEventInParent:!!G&&!k,onTap:k?H:void 0})}})},
disableHorizontalPadding:C}))},"ce");var Vem=_.d(function(C){var F=_.u(_.Gb(function(){var J,b;return!!((J=C.data())==null?0:(b=J.initialState)==null?0:b.isToggled)})),G=F.next().value,V=F.next().value;
F=_.CZ(function(){V(!G())});
return _.W("toggleable-list-item-view-model",{el:_.dQ(_.lC(function(){return C.data().rendererContext})),
class:_.py("toggleableListItemViewModelHost",C.className),"on:click":F},_.W(_.a,{cond:function(){if(G()){var J=C.data().toggledListItem;J=_.Z(J,_.QJ)}else J=C.data().defaultListItem,J=_.Z(J,_.QJ);return J},
then:function(J){return _.W(_.oi,{data:J,isToggled:G,ariaLabel:function(){var b=G()?C.data().toggledListItem:C.data().defaultListItem,z;b=(z=_.Z(b,_.QJ))==null?void 0:z.rendererContext;var Q;return(Q=_.Z(b,_.$Z))==null?void 0:Q.label},
ariaPressed:function(){return G()}})}}))},"de");var irG=_.iQ("DOWNLOAD",{},"Download"),Jb8=_.iQ("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),$HP=_.iQ("RETRY",{},"Retry"),bry=_.iQ("PAUSE_DOWNLOADING",{},"Pause downloading"),ncr=_.iQ("RESUME_DOWNLOAD",{},"Resume download"),o7S={text:irG,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},n3={text:Jb8,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},DCS={text:$HP,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
rqo={text:bry,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},Kai={text:ncr,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var uou=_.d(function(C){var F=function(){var Q=C.data();Q=_.UI(Q.rendererContext);var E;return(E=_.Z(Q,_.VJ))==null?void 0:E.videoId},G=_.nZ(function(Q){var E=F(),t=CBW(C.data());
return E?_.O3(Q,E):t?_.X0(Q,t):"TRANSFER_STATE_UNKNOWN"}),V=_.$b(_.DQ5,F),J=_.nZ(function(Q){return _.gai(Q,F(),CBW(C.data()))}),b=function(){return mCf(G(),V(),_.UI(C.data().rendererContext),!!CBW(C.data()))},z=function(){return J()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.W("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:z},_.W(_.a,{cond:function(){return!z()},
then:function(){return _.W(_.a,{cond:b,then:function(Q){return _.W(_.Ag,{each:Q},function(E){return _.W(_.oi,{data:E,isCompact:C.isCompact,isMenuItem:C.isMenuItem,inPopup:C.inPopup,disableHorizontalPadding:C.disableHorizontalPadding})})}})}}))},"ee");
uou.idomCompat=!0;_.zHO=_.d(function(C){var F=C.data;var G=C.isCompact;var V=C.hideSelectionTextChevron;var J=C.inPopup;var b=C.isOverlay;var z=C.disableHorizontalPadding;var Q=function(){return jzo(F())&&(J==null?void 0:J())};
C=_.CZ(function(t){if(J!=null&&J()&&_.y("web_enable_arrow_key_navigation_in_dropdown")){var k=_.$fs(t.currentTarget),U=k.length;if(U!==0){var H=Array.prototype.indexOf.call(k,document.activeElement);switch(t.key){case "ArrowDown":t.preventDefault();var l;(l=k[(H+1)%U])==null||l.focus();break;case "ArrowUp":t.preventDefault();var N;(N=k[H===-1?U-1:(H-1+U)%U])==null||N.focus()}}}});
var E={};return _.W("yt-list-view-model",{class:_.py("ytListViewModelHost",(E.ytListViewModelHostKaiosSpatNav=io5&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",E.ytListViewModelCollectionThumbnailClass=function(){return Vfs(F())},E)),
role:function(){return Q()?"menu":"list"},
style:_.VA({"max-height":function(){var t,k=(t=F())==null?void 0:t.visibleElementCount;if(k)return Vfs(F())?(k+.5)*48+"px":(k+.5)*40+"px"}}),
"on:keydown":C},_.W(_.uC,{data:function(){return F().listItems}},{listItemViewModel:function(t){return _.W(_.oi,{data:t.data,
isMenuItem:Q,isCompact:G,hideSelectionTextChevron:V,inPopup:J,isOverlay:b,disableHorizontalPadding:z})},
toggleableListItemViewModel:function(t){return _.W(Vem,{data:t.data})},
downloadListItemViewModel:function(t){return _.W(uou,{data:t.data,isMenuItem:Q,isCompact:G,inPopup:J,disableHorizontalPadding:z})},
switchListItemViewModel:function(t){return _.W(_.GwG,{data:t.data,disableHorizontalPadding:z})}}))},"fe");
_.zHO.idomCompat=!0;var QWy=_.d(function(C){var F=C.data;var G=C.isOverlay;C={};return _.W("yt-course-perks-view-model",{class:_.py("ytwCoursePerksViewModelHost",(C.ytwCoursePerksViewModelHostOverlay=G,C))},_.W("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.W(_.mn,{text:function(){return F().title}})),_.W("div",null,_.W(_.a,{cond:function(){return F().perks},
then:function(V){return _.W(_.zHO,{data:function(){return{listItems:V()}},
isCompact:!0,isOverlay:G})}})))},"ge");_.gQ(QWy,"yt-course-perks-view-model",{props:{data:_.s9,isOverlay:_.s9}});_.gQ(_.d(function(C){var F=C.data;return _.W("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.W("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.W(_.mn,{text:function(){return F().title}})),_.W("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.W(_.mn,{text:function(){return F().progressSummary}})),_.W("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.W("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.VA({width:function(){return F().progressPercentage*100+"%"}})})))},"he"),"yt-course-progress-view-model",{props:{data:_.CJ}});var I1O=_.d(function(C){var F={};return _.W("yt-progress-view-model",{class:_.py("ytwProgressViewModelHost",(F.ytwProgressViewModelHostOverlay=_.dk(C.isOverlay,!1),F))},_.W(_.a,{cond:function(){return C.data().progressSummary},
then:function(G){return _.W("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.W(_.mn,{text:G}))}}),_.W("div",{class:"ytwProgressViewModelHostProgressContainer"},_.W(_.a,{cond:function(){return C.data().leadingLabel},
then:function(G){return _.W("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.W(_.mn,{text:G}))}}),_.W("div",{class:"ytwProgressViewModelHostProgressBar"},_.W("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(C.data().progressPercentage||0)*100+"%"}}))))},"ie");var pw=_.d(function(C){var F=C.starNumber;var G=C.data;var V=function(){var J;return((J=G())==null?void 0:J.rating)||0};
return _.W(_.a,{cond:function(){return F()},
then:function(J){return _.W(_.e_,null,_.W(_.hg,{when:function(){return V()>=J()-.25}},function(){return _.W("div",{class:"ytStarRatingViewModelHostStar"},_.W(_.i5,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.W(_.hg,{when:function(){return V()>=J()-.75}},function(){return _.W("div",{class:"ytStarRatingViewModelHostStar"},_.W(_.i5,{icon:"STAR_HALF",
size:function(){return 24}}))}),_.W(_.cQ,null,function(){return _.W("div",{class:"ytStarRatingViewModelHostStar"},_.W(_.i5,{icon:"STAR_BORDER",
size:function(){return 24}}))}))}})},"je"),Ecy=_.d(function(C){C=C.data;
return _.W("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.W(pw,{starNumber:1,data:C}),_.W(pw,{starNumber:2,data:C}),_.W(pw,{starNumber:3,data:C}),_.W(pw,{starNumber:4,data:C}),_.W(pw,{starNumber:5,data:C}))},"ke");_.gQ(_.d(function(C){var F=_.xz(C,{}).data;return _.W("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.W("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.W(_.mn,{text:function(){var G;return(G=F())==null?void 0:G.title}})),_.W("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.W(_.a,{cond:function(){return F().starProgressViewModels},
then:function(G){return _.W("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.W(_.uC,{data:G},{progressViewModel:I1O}))}}),_.W("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.W("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.W(_.mn,{text:function(){var G;
return(G=F())==null?void 0:G.averageRatingLabel}})),_.W(_.a,{cond:function(){return F().zeroStateText},
then:function(G){return _.W("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.W(_.mn,{text:G}))}}),_.W(_.a,{cond:function(){return F().starRatingViewModel},
then:function(G){return _.W("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.W(_.uC,{data:G},{starRatingViewModel:Ecy}))}}),_.W("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.W(_.mn,{text:function(){var G;
return(G=F())==null?void 0:G.totalRatingsCountLabel}})))))},"le"),"yt-course-ratings-view-model",{props:{data:_.s9}});var WBr;WBr={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"}};_.teu=_.d(function(C){var F=_.Jt("yt-learning-journey-loader-view-model"),G=_.FN();_.s0(function(){requestAnimationFrame(function(){var J;(J=G.lottieEl)==null||J.addEventListener("DOMLoaded",function(){var b;(b=C.onLottieLoaded)==null||b.call(C)})});
var V=C.data().browseEndpoint;V&&_.wQ(V)});
return _.W("yt-learning-journey-loader-view-model",{class:_.py("learningJourneyLoaderViewModelHost",C.className),"data-target-id":function(){return C.data().targetId||""},
el:F},_.W(_.NQ,{className:_.py("learningJourneyLoaderViewModelLoader",C.className),animationName:function(){return WBr.animationConfig.name},
data:WBr,animationRef:G}))},"ne");_.gQ(_.teu,"yt-learning-journey-loader-view-model",{props:{data:_.CJ,className:_.s9,onLottieLoaded:_.s9}});var J0w=new Set,iMZ=null;var a1G=_.d(function(C){var F=void 0,G=function(){return C.data()},V=function(){return!!Iv(zZ(G())).optionColor},J=_.u(_.yH(-1,void 0,"Oxve9b")),b=J.next().value,z=J.next().value,Q=function(U){return G().correctAnswerIndex===U},E=function(){return b()!==-1};
J=_.u(_.yH("",void 0,"DZG7ze"));var t=J.next().value,k=J.next().value;return _.W("learning-journey-quiz-view-model",{class:_.py("learningJourneyQuizViewModelHost","learningJourneyQuizYoututorHost",C.className),style:_.VA({background:function(){return Iv(zZ(G())).backgroundColor}})},_.W("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},t),_.W(_.a,{cond:function(){return!!G().video},
then:function(){return _.W("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.VA({background:function(){return Iv(zZ(G())).videoBackgroundColor}})},_.W(_.uC,{data:function(){return G().video}},{lockupViewModel:function(U){return _.W(_.ZM,{data:U.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.W("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.W("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.W("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.W(_.a,{cond:function(){return!!G().aiGeneratedQuizLabel},
then:function(){return _.W("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.W(_.mn,{text:function(){return G().aiGeneratedQuizLabel}}))}}),_.W("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.VA({"align-items":function(){return G().overflowMenu?"start":"center"}})},_.W("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.VA({"min-height":function(){return G().overflowMenu?"48px":"26px"}})},_.W("div",{class:"learningJourneyQuizYoututorText",
style:_.VA({color:function(){return Iv(zZ(G())).primaryTextColor}})},_.W(_.mn,{text:function(){return G().questionHeaderText}})))),_.W("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.VA({color:function(){return Iv(zZ(G())).secondaryTextColor}})},_.W(_.mn,{text:function(){var U=G();
return E()?U.explanationText:U.questionSubheaderText}}))),_.W("div",{role:"group",
class:_.py("learningJourneyQuizViewModelHostQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.W(_.Ag,{each:function(){return G().optionsData||[]}},function(U,H){var l={};
return _.W("button",{class:_.py("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(l.learningJourneyQuizViewModelHostQuizHover=function(){return!E()},l.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=V,l.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return E()&&Q(H())},l.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){var N;
if(N=b()!==G().correctAnswerIndex)N=H(),N=b()===N;return N},l)),
"on:click":_.CZ(function(){if(E())return!1;z(H());var N,S;k(Q(H())?((N=G().successTitle)==null?void 0:N.content)||"":((S=G().failureTitle)==null?void 0:S.content)||"");return!1}),
style:_.VA({background:"transparent"}),"aria-description":function(){var N,S;return E()?Q(H())?(N=G().successTitle)==null?void 0:N.content:(S=G().failureTitle)==null?void 0:S.content:""},
"aria-disabled":E,el:_.dQ(function(N){_.ud(271905,N,F,function(S){F=S})}),
"client-ve-type":271905},_.W("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.W(_.mn,{text:U.optionText}),_.W(_.a,{cond:function(){var N=H(),S;if(S=E())S=b()===N||Q(N);return S},
then:function(){var N={};return _.W(_.i5,{className:_.py("learningJourneyQuizYoututorOptionIcon",(N.learningJourneyQuizViewModelHostQuizPulse=function(){return b()===G().correctAnswerIndex&&Q(H())},N)),
size:24,icon:function(){return Q(H())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.W(_.a,{cond:E,
then:function(){return _.W("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.W("div",{class:"learningJourneyQuizYoututorExplanationText"},_.W(_.mn,{text:function(){return G().explanationHeaderText}})),_.W(_.mn,{text:function(){return G().optionsData[b()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"oe");
a1G.idomCompat=!0;var kwm;_.UHy=_.d(function(C){var F=null,G=null,V=null,J=function(){return C.data()},b=function(){var P=J();
var g=_.I8().resolve(_.Qt(_.v6));P=g!=null&&g()?P.darkThemeColorPalette:P.lightThemeColorPalette;return{primaryTextColor:Ep(P,0),secondaryTextColor:Ep(P,1),optionColor:Ep(P,2),backgroundColor:Ep(P,3),videoBackgroundColor:Ep(P,4)}},z=function(){return!!b().optionColor},Q=_.u(_.yH(-1,void 0,"QDu8Oe")),E=Q.next().value,t=Q.next().value,k=function(P){return E()===P},U=function(P){return J().correctAnswerIndex===P},H=function(){return E()!==-1},l=function(){return E()===J().correctAnswerIndex},N=function(){var P=
J(),g=H(),r=l();
return g?r?P.successTitle:P.failureTitle:P.questionHeaderText},S=function(){var P=H(),g=l();
return P?g?264685:264684:264683},f=function(){var P=J();
return H()?P.explanationText:P.questionSubheaderText},c=function(){return!!J().video},A=function(P){return l()&&U(P)},T=_.CZ(function(){t(-1);
return!1});
return _.W(_.a,{cond:function(){return J().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.W(a1G,{data:function(){return J()}})},
else:function(){return _.W("learning-journey-quiz-view-model",{class:_.py("learningJourneyQuizViewModelHost",C.className),style:_.VA({background:function(){return b().backgroundColor}})},_.W(_.a,{cond:c,
then:function(){return _.W("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.VA({background:function(){return b().videoBackgroundColor}})},_.W(_.uC,{data:function(){return J().video}},{lockupViewModel:function(P){return _.W(_.ZM,{data:P.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.W("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.W("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.W("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.W(_.a,{cond:function(){return!!J().aiGeneratedQuizLabel},
then:function(){return _.W("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.W(_.mn,{text:function(){return J().aiGeneratedQuizLabel}}))}}),_.W("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.VA({"align-items":function(){return J().overflowMenu?"start":"center"}})},_.W("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.VA({"min-height":function(){return J().overflowMenu?"48px":"26px"}})},_.W("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.dQ(function(P){_.ud(S(),P,F,function(g){F=g})}),
style:_.VA({color:function(){return b().primaryTextColor}}),
"client-ve-type":S},_.W(_.mn,{text:N}))),_.W("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.W(_.a,{cond:H,then:function(){return _.W("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.dQ(function(P){_.ud(264687,P,G,function(g){G=g})}),
"on:click":T,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.W("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.VA({fill:function(){return b().primaryTextColor}})},_.W("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"})))}}),
_.W(_.uC,{data:function(){return J().overflowMenu}},{buttonViewModel:function(P){return _.W(_.tS,{data:P.data})}}))),_.W("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.dQ(function(P){_.ud(264688,P,V,function(g){V=g})}),
style:_.VA({color:function(){return b().secondaryTextColor}}),
"client-ve-type":264688},_.W(_.mn,{text:f}))),_.W("div",{role:"group",class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.W(_.Ag,{each:function(){return J().optionsData||[]}},function(P,g){var r={};
return _.W("button",{class:_.py("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizViewModelHostQuizOptionsBorderRound",(r.learningJourneyQuizViewModelHostQuizHover=function(){return!H()},r.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=z,r.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return A(g())},r.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!l()&&k(g())},r.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return H()&&
!k(g())},r)),
"on:click":_.CZ(function(){if(H())return!1;t(g());return!1}),
style:_.VA({background:function(){var C9=g();return H()&&k(C9)?"":z()?b().optionColor:"transparent"}}),
"aria-disabled":H,"client-ve-type":264686},_.W("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.W(_.a,{cond:H,then:function(){return _.W(kwm,{isOptionCorrect:U,optionIndex:g,isOptionSelectedAndCorrect:A,colors:b})}}),_.W(_.mn,{text:P.optionText})))})))))}})},"pe");
kwm=_.d(function(C){var F={};return _.W("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var G=C.optionIndex();return C.isOptionCorrect(G)?"0 0 24 24":"0 -960 960 960"},
class:_.py("learningJourneyQuizViewModelHostQuizOptionIconLeading",(F.learningJourneyQuizViewModelHostQuizPulse=function(){return C.isOptionSelectedAndCorrect(C.optionIndex())},F)),
style:_.VA({fill:function(){return C.colors().primaryTextColor}})},_.W("path",{d:function(){var G=C.optionIndex();
return C.isOptionCorrect(G)?"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"}}))},"qe");
_.UHy.idomCompat=!0;_.gQ(_.UHy,"learning-journey-quiz-view-model",{props:{data:_.CJ,className:_.CJ}});var Hrr=_.d(function(C){var F=_.u((0,_.cq8)(function(){var z;return{targetId:(z=C.data().config)==null?void 0:z.suspenseKey,contents:[C.data()]}})).next().value,G=_.I8().resolve(_.WD),V=function(){var z=F().contents.length>0?F().contents[0]:void 0;
return z==null?void 0:z.config},J=function(){var z;
return(z=V())==null?void 0:z.entityTriggerConfig},b=_.$b(iiZ,function(){var z,Q;
return(Q=(z=J())==null?void 0:z.entityKey)!=null?Q:""});
_.sq(function(){var z,Q,E,t=(E=Number((z=J())==null?void 0:(Q=z.invalidationTimestamp)==null?void 0:Q.seconds))!=null?E:0,k,U,H;if(((H=Number((k=b())==null?void 0:(U=k.lastUpdated)==null?void 0:U.seconds))!=null?H:0)>t){var l;(z=(l=V())==null?void 0:l.continuationCommand)&&G.resolveCommand(z)}},"tC8nKe");
return _.W("yt-suspense-view-model",{class:_.py("ytSuspenseViewModelHost")},_.W(_.uC,{data:function(){var z;return(z=V())==null?void 0:z.contents}},{lockupViewModel:_.ZM}))},"se");var l1S=_.d(function(C){var F=_.xz(C,{palette:void 0,isLastItem:!1}),G=F.palette,V=F.isLastItem,J=function(){return C.data().isHighlighted},b=function(){var E;
return bMI((E=G())==null?void 0:E.iconDisabledColor)},z=function(){var E;
return bMI((E=G())==null?void 0:E.primaryTitleColor)},Q=function(){var E;
return bMI((E=G())==null?void 0:E.secondaryTitleColor)};
F={};return _.W("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.dQ(_.lC(function(){return C.data().rendererContext}))},_.W(_.uC,{data:function(){return C.data().thumbnail}},{thumbnailViewModel:_.zs}),_.W("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.W("div",{class:_.py("ytMacroMarkerListItemViewModelTimeDescription",(F.ytMacroMarkerListItemViewModelHighlighted=J,F)),
style:_.VA({"background-color":function(){return J()?z():b()},
color:function(){return J()?"":Q()}})},_.W(_.mn,{text:function(){return C.data().timestamp}})),_.W("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.VA({"background-color":function(){return V()?"transparent":b()}})}),_.W("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(J()?z():Q())}},_.W(_.mn,{text:function(){return C.data().title}}))))},"te");_.mQ=_.d(function(C){function F($i){A("transform:translateX("+(_.TF("HTML_DIR")==="rtl"?"":"-")+$i+"px)")}
function G($i){return Math.min(Math.max($i,0),c()-C9())}
function V(){var $i=g()+ki();return J()?(Math.round(C9()/$i)||1)*$i:0}
var J=function(){return C.data().items||[]},b=function(){return C.data().previousButton},z=function(){return C.data().nextButton},Q=function(){var $i,Vr;
return(Vr=($i=C.disableArrows)==null?void 0:$i.call(C))!=null?Vr:!1},E=function(){var $i;
return!(($i=C.forceNarrowLayout)==null||!$i.call(C))},t=_.w0(function(){var $i;
return!(($i=C.centerAlignItems)==null||!$i.call(C))&&c()<=C9()},void 0,"Uto0kc"),k=_.Jt("horizontal-shelf-view-model"),U=_.Jt("div"),H=_.u(_.yH(0,void 0,"G0xZB")),l=H.next().value,N=H.next().value;
H=_.u(_.yH(0,void 0,"kqCYFf"));var S=H.next().value,f=H.next().value,c=S;S=_.u(_.yH("",void 0,"Hh6Uye"));H=S.next().value;var A=S.next().value;S=_.u(_.yH(0,void 0,"yMGBKb"));var T=S.next().value,P=S.next().value,g=T;S=_.u(_.yH(0,void 0,"VChthd"));T=S.next().value;var r=S.next().value,C9=T;S=_.u(_.yH(!1,void 0,"qJlhhe"));var Wo=S.next().value,EB=S.next().value;S=_.u(_.yH(0,void 0,"x7H94"));T=S.next().value;var L9=S.next().value,ki=T;S=_.u(_.yH(0,void 0,"ksuUee"));var lZ=S.next().value,eq=S.next().value;
S=_.u(_.yH("50%",void 0,"uxCxde"));var OB=S.next().value,yr=S.next().value,Rl=function(){var $i,Vr=($i=C.data())==null?void 0:$i.responsiveContainerConfiguration,Um,V8;return Vr?wv(Vr==null?void 0:Vr.responsiveSize):(V8=(Um=C.sizing)==null?void 0:Um.call(C))!=null?V8:"STANDARD"};
S=_.w0(function(){return!Q()&&l()>0},void 0,"XK60w");
T=_.w0(function(){return!Q()&&l()<c()-C9()},void 0,"D22LVd");
var w2=function(){N(G(l()-V()));F(l())},jG=function(){N(G(l()+V()));
F(l())},Il=function(){k.value!==null&&vu()},Bu;
_.q4(function(){vu();window.ResizeObserver?(Bu=new ResizeObserver(_.kk(Il,0)),Bu.observe(k.value)):window.addEventListener("resize",Il)});
_.q0(function(){if(window.ResizeObserver){var $i;($i=Bu)==null||$i.disconnect()}else window.removeEventListener("resize",Il)});
var vu=function(){var $i=k.value.clientWidth,Vr=C.includeMargin!==void 0?C.includeMargin():!1,Um;var V8=C.hasPeek!==void 0?C.hasPeek():!((Um=C.data())==null||!Um.hasPeek);$i=_.XN({containerWidth:$i,hasPeek:V8,sizing:Rl(),marginSettings:Vr?E()?4:1:0});L9($i.gutter);eq($i.margin);P($i.itemWidth);EB($i.maxContainerWidth<528||E());r($i.maxContainerWidth);J()&&f(($i.itemWidth+$i.gutter)*J().length-$i.gutter);if(J()){var Hu;if(((Hu=C.thumbnailAspectRatio)==null?void 0:Hu.call(C))!==void 0){var Gh;yr(g()/
Ae9((Gh=C.thumbnailAspectRatio)==null?void 0:Gh.call(C))/2+"px")}else yr("50%")}},Zr={},k_={};
return _.W("horizontal-shelf-view-model",{class:_.py("ytwHorizontalShelfViewModelHost",C.className),el:k},_.W(_.a,{cond:function(){var $i;return C.data().header&&!(($i=C.horizontalShelfExperiments)==null?0:$i.call(C).hideHeader)},
then:function(){return _.W("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.VA({width:function(){return C9()+"px"},
padding:function(){return"0 "+lZ()+"px"}})},_.W(_.uC,{data:function(){return C.data().header}},{sectionHeaderViewModel:function($i){return _.W(_.Xa,{data:$i.data,
disableHorizontalPadding:!0,forceSmallLayout:Wo,useResponsiveLayout:!0})}}))}}),_.W("div",{class:_.py("ytwHorizontalShelfViewModelOuterContainer",(Zr.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return t()},Zr)),
style:_.VA({"margin-top":function(){var $i,Vr=C.data().header&&!(($i=C.horizontalShelfExperiments)==null?0:$i.call(C).hideHeader),Um;return(((Um=C.ensureMarginTop)==null?0:Um.call(C))&&!Vr?12:0)+"px"}})},_.W("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.VA({width:function(){return C9()+"px"},
padding:function(){return"0 "+lZ()+"px"},
overflow:function(){return Q()?"auto":"hidden"}})},_.W("div",{class:_.py("ytwHorizontalShelfViewModelItems",(k_.ytwHorizontalShelfViewModelCenterAlignItems=function(){return t()},k_)),
el:U,style:H},_.W(_.uC,{data:J},{macroMarkerListItemViewModel:function($i,Vr){return _.W("div",{style:_.VA({width:function(){return g()+"px"},
"margin-right":function(){return(Vr()===J().length-1?0:ki())+"px"}})},_.W(l1S,{data:$i.data,
palette:_.dk(C.palette),isLastItem:function(){return Vr()===J().length-1}}))},
lockupViewModel:function($i,Vr){var Um=$i.data;return _.W("div",{style:_.VA({width:function(){return g()+"px"},
"margin-right":function(){return(Vr()===J().length-1?0:ki())+"px"}})},_.W(_.ZM,{data:Um,
containerType:4,sizing:Rl,protectBackground:C.protectBackground,thumbnailFixedWidth:function(){return n49(Um())+"px"},
thumbnailTargetWidth:function(){return n49(Um())}}))},
suspenseViewModel:function($i,Vr){return _.W("div",{style:_.VA({width:function(){return g()+"px"},
"margin-right":function(){return(Vr()===J().length-1?0:ki())+"px"}})},_.W(Hrr,{data:$i.data}))}}))),_.W(_.a,{cond:S,
then:function(){return _.W("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.VA({top:function(){return OB()}})},_.W(_.uC,{data:b},{buttonViewModel:function($i){return _.W(_.tS,{data:$i.data,
onClick:w2})}}))}}),_.W(_.a,{cond:T,
then:function(){return _.W("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.VA({top:function(){return OB()}})},_.W(_.uC,{data:z},{buttonViewModel:function($i){return _.W(_.tS,{data:$i.data,
onClick:jG})}}))}})))},"ue");
_.mQ.idomCompat=!0;var ybm=_.d(function(C){var F=function(){return C.data().targetId||""},G=function(){var S;
return((S=C.data())==null?void 0:S.expansionEntityKey)||""},V=_.$b(_.Vsw,G),J=!0,b=function(){var S;
return((S=V())==null?void 0:S.value)===F()},z=function(S){_.er(_.z3("stringEntity",G(),{key:G(),
value:S?F():""}))};
_.s0(function(){J=!1;C.data().isExpanded&&z(!0)});
var Q=function(){if(b()){var S=!0;C.onCollapse!==void 0&&(S=C.onCollapse());S&&z(!1)}else z(!0)},E=_.CZ(Q),t=function(){var S;
return(((S=C.accordionStyle)==null?void 0:S.call(C))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},k=_.Jt("div"),U=function(){var S,f;
return(f=(S=_.Z(C.data().rendererContext,_.$Z))==null?void 0:S.label)!=null?f:""},H=function(){var S,f;
return{disabled:(S=C.hideIfNotExpanded)==null?void 0:S.call(C),ariaHidden:(f=C.hideIfNotExpanded)==null?void 0:f.call(C)}},l={},N={};
return _.W("yt-accordion-item-view-model",{class:_.py("ytAccordionItemViewModelHost",C.className,(l.ytAccordionItemViewModelExpanded=function(){return b()},l.ytAccordionItemViewModelHidden=function(){var S;
return(S=C.hideIfNotExpanded)==null?void 0:S.call(C)},l.ytAccordionItemViewModelMini=t,l)),
"data-target-id":F},_.W("div",{class:"ytAccordionItemViewModelContainer"},_.W("div",{class:"ytAccordionItemViewModelLeftSection","on:click":E,title:U,"aria-hidden":function(){var S;return(S=C.hideIfNotExpanded)==null?void 0:S.call(C)}},_.W(_.mn,{text:function(){return C.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:U})),_.W("div",{class:"ytAccordionItemViewModelRightSection"},_.W(_.uC,{data:function(){return b()?C.data().expandButton:C.data().collapseButton}},{buttonViewModel:function(S){return _.W(_.tS,{data:S.data,
className:"ytAccordionItemViewModelToggleButton",onClick:Q,buttonOverrides:H})}}))),_.W("div",{class:"ytAccordionItemViewModelContainer"},_.W("div",{class:_.py("ytAccordionItemViewModelContent",(N.ytAccordionItemViewModelExpandedSubtitle=function(){return b()},N)),
el:k,style:_.VA({"max-height":function(){return J?"auto":b()?k.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!b()}},_.W(_.a,{cond:function(){return!t()},
then:function(){return _.W(_.mn,{text:function(){return C.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.W(_.uC,{data:function(){return C.data().content}},{horizontalShelfViewModel:function(S){return _.W(_.mQ,{data:S.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"we");_.Zr$=_.d(function(C){var F=_.u((0,_.cq8)(C.data)).next().value,G=function(){return C.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},V=function(){return G()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},J=_.u(_.yH(!0,void 0,"VFpYAb")),b=J.next().value,z=J.next().value,Q=function(){return V()&&b()},E=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){z(!b())}}},t=_.CZ(function(){F().onTitleTap&&_.wQ(F().onTitleTap||{})});
J={};return _.W("yt-accordion-view-model",{class:_.py("ytAccordionViewModelHost",(J.ytAccordionViewModelMinimized=function(){return Q()},J)),
"data-target-id":function(){return C.data().targetId||""}},_.W(_.a,{cond:function(){return V()||!!F().title},
then:function(){return _.W("div",{class:"ytAccordionViewModelHeader"},_.W("div",{class:"ytAccordionViewModelTitleSection"},_.W("div",{class:"ytAccordionViewModelTitleWrapper"},_.W(_.a,{cond:function(){return!!C.data().headerIcon},
then:function(){return _.W(_.i5,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var k;return(k=C.data().headerIcon)==null?void 0:k.iconType}})}}),_.W("div",{class:"ytAccordionViewModelTitle",
"on:click":t},_.W(_.mn,{className:"ytAccordionViewModelTitleText",text:function(){return F().title}})))),_.W("div",{class:"ytAccordionViewModelButtonSection"},_.W(_.a,{cond:V,
then:function(){return _.W(_.Wn,{data:E,iconName:function(){return Q()?"chevron_down":"chevron_collapse"}})}})))}}),_.W("div",{class:"ytAccordionViewModelContent"},_.W(_.uC,{data:function(){return F().contents}},{accordionItemViewModel:function(k){return _.W(ybm,{data:k.data,
className:"ytAccordionViewModelRow",accordionStyle:G,hideIfNotExpanded:Q,onCollapse:function(){return V()?(z(!0),!1):!0}})}})),_.W("div",null,_.W(_.a,{cond:function(){return!V()&&(!!F().disclaimerFooter||!!F().footer)},
then:function(){return _.W("div",{class:"ytAccordionViewModelFooter"},_.W(_.mn,{text:function(){return F().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.W(_.uC,{data:function(){return C.data().footer}},{flexibleActionsViewModel:function(k){return _.W(_.YW,{data:k.data,
layout:0})}}))}})))},"xe");_.gQ(_.Zr$,"yt-accordion-view-model",{props:{data:_.CJ}});_.gQ(_.d(function(C){var F=null,G=null,V,J=(V=_.I8().resolve(_.Qt(_.v6)))==null?void 0:V(),b=_.u(_.yH(!1,void 0,"CmEVtc"));V=b.next().value;var z=b.next().value;b=_.u(_.yH(!0,void 0,"yo9dR"));var Q=b.next().value,E=b.next().value,t=_.Jt("textarea",function(f){_.ud(264503,f,F,function(c){F=c})}),k=function(f){z(!0);
f={learningJourneyFormData:{query:f}};_.wQ(C.data().searchEndpoint||{},{form:{formData:f}});return!1},U=_.CZ(function(f){f.target.closest("button-view-model")&&z(!0)});
b=_.CZ(function(){E(t.value.value.length===0)});
var H=_.CZ(function(f){if(f.key==="Enter"&&!f.shiftKey&&!Q()){var c=f.target;f.preventDefault();k(c.value)}}),l={},N={},S={};
return _.W("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.W("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.W(_.AC,{data:function(){return C.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.W("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.W("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.W("div",{class:_.py("ytLearningJourneyZeroStateSearchBar",(l.ytLearningJourneyZeroStateSearchBarDark=J,l))},_.W("textarea",{class:_.py("ytLearningJourneyZeroStateTextInput",(N.ytLearningJourneyZeroStateTextInputDark=J,N)),el:t,"on:keyup":b,"on:keydown":H,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.W("div",{class:_.py("ytLearningJourneyZeroStateSearchButtonContainer",(S.ytLearningJourneyZeroStateSearchButtonContainerDark=J,S))},_.W(_.tS,{data:function(){return _.Z(C.data().searchButton,_.jl)},
className:"search-button",onClick:function(){return k(t.value.value)},
buttonOverrides:function(){return{disabled:Q(),style:J?"mono-inverse":"mono",size:"XL"}}}))),_.W(_.a,{cond:function(){return!!C.data().errorBanner},
then:function(){return _.W("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.dQ(function(f){_.ud(264617,f,G,function(c){G=c})})},_.W(_.uC,{data:function(){return C.data().errorBanner}},{alertBannerViewModel:function(f){return _.W(_.Rku,{data:f.data,
"client-ve-type":264617})}}))}})),_.W(_.a,{cond:V,
then:function(){return _.W("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.W(_.uC,{data:function(){return C.data().loader}},{learningJourneyLoaderViewModel:function(f){return _.W(_.teu,{data:f.data})}}))},
else:function(){return _.W("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.W(_.a,{cond:function(){return!!C.data().learningJourneyShelf},
then:function(){return _.W("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.W("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return C.data().learningJourneySectionTitle}),_.W(_.uC,{data:function(){return C.data().learningJourneyShelf}},{horizontalShelfViewModel:function(f){return _.W(_.mQ,{data:f.data,
centerAlignItems:!0})}}))}}),_.W("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.W("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return C.data().suggestedJourneySectionTitle}),_.W("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":U},_.W(_.uC,{data:function(){return C.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(f){return _.W(_.YW,{data:f.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"ye"),"yt-learning-journey-zero-state",{props:{data:_.CJ}});var NUG=_.d(function(C){var F=C.data;return _.W("ytvl-live-leaderboard-item-action-content-view-model",{class:_.py("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.W(_.mn,{text:function(){var G;return(G=F())==null?void 0:G.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.W(_.uC,{data:function(){return F().actionButton}},{buttonViewModel:function(G){return _.W(_.tS,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:G.data})}}))},"ze");var Or8=_.d(function(C){var F=C.data;return _.W("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.py("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.W(_.mn,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var G;return(G=F())==null?void 0:G.displayName},
ellipsisTruncate:!0}),_.W(_.uC,{data:function(){return F().badge}},{buttonViewModel:function(G){return _.W(_.tS,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:G.data})}}))},"Ae");_.gQ(_.d(function(C){var F=C.data;return _.W("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.W("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.W(_.mn,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var G;return(G=F())==null?void 0:G.rank}})),_.W("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.W(_.uC,{data:function(){return F().avatar}},{avatarViewModel:_.g$})),_.W("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.W(_.uC,{data:function(){return F().content}},{liveLeaderboardItemChannelContentViewModel:Or8,
liveLeaderboardItemActionContentViewModel:NUG})),_.W(_.mn,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var G;return(G=F())==null?void 0:G.points}}))},"Be"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.CJ}});_.gQ(_.d(function(C){var F=C.data;return _.W("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.W(_.mn,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var G,V;return(G=F())==null?void 0:(V=G.ranking)==null?void 0:V.rank}}),_.W("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.W(_.uC,{data:function(){return F().avatar}},{avatarViewModel:_.g$})),_.W(_.mn,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var G,V;return(G=F())==null?void 0:(V=G.channelContent)==null?void 0:V.channelName}}),_.W(_.mn,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var G;return(G=F())==null?void 0:G.points}}))},"Ce"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.CJ}});var XyG=_.d(function(C){C=_.xz(C,{wrapper:!1}).wrapper;return _.W(_.a,{cond:C,then:function(){return _.W("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.W("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.W("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"De");
XyG.idomCompat=!0;var wyE=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],MeG=_.d(function(C){var F=C.data;var G=_.dQ(),V=_.w0(function(){return F().command},void 0,"fyYsT");
_.sq(function(){V()&&_.ND(V(),{form:{element:G.value}})},"B0nxdb");
return _.W("div",{el:G,class:"YtQrCodeRendererHostContainer"},_.W(_.a,{cond:function(){return F().qrCodeImage},
then:function(J){return _.W(_.AC,{data:J,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.W(_.a,{cond:function(){return F().spinner},
then:function(){return _.W(XyG,null)}})}}),_.W(_.a,{cond:function(){return F().label},
then:function(J){return _.W(_.mn,{text:J,className:"YtQrCodeRendererHostLabel"})}}),_.W(_.a,{cond:function(){return F().labels},
then:function(J){return _.W("div",{class:"YtQrCodeRendererHostLabels"},_.W(_.Ag,{each:J},function(b){return _.W(_.mn,{text:b})}))}}))},"Ge");_.gQ(_.d(function(C){var F=C.data;var G=_.w0(function(){return F().qrEntityKey},void 0,"M0PrY"),V=_.w0(function(){return F().deleteEntityOnDismiss},void 0,"QZa4g"),J=_.w0(function(){return F().command},void 0,"wEOxUe"),b=_.$b(UIo,G);
C=_.w0(function(){return F().qrCodeImage},void 0,"UO5oub");
var z=_.w0(function(){return F().style&&wyE.includes(F().style)},void 0,"Op9kZd"),Q=_.Wv({visibilityCallback:function(E){E&&J()&&_.ND(J())},
showOption:{calledOnce:!0,state:"visible"}});_.q4(function(){_.q0(function(){V()&&G()&&_.Av().dispatch(_.z3("qrCodeEntity",G()))})});
return _.W("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.dQ(Q)},_.W(_.a,{cond:z,then:function(){return _.W(_.a,{cond:b,then:function(E){return _.W(MeG,{data:E})}})}}),_.W(_.a,{cond:C,
then:function(E){return _.W(_.AC,{data:E,alt:""})}}))},"Ee"),"yt-qr-code-renderer",{props:{data:_.CJ}});var LBG=_.d(function(C){var F=function(){return _.lE(1728053247&(C.barColor!==void 0?GZ(C.barColor()):4278190080))};
return _.W("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},_.W(So$,{animationDelay:0,percentWidth:100,barColor:function(){return F()}}),_.W("div",{class:"ytVideoOverviewGhostCardMediaWrapper"},_.W("div",{class:"ytVideoOverviewGhostCardMedia",
style:function(){return"background-color:"+F()}})),_.W(So$,{animationDelay:0,
percentWidth:100,barColor:function(){return F()}}),_.W(So$,{animationDelay:600,
percentWidth:60,barColor:function(){return F()}}))},"He"),So$=_.d(function(C){return _.W("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+C.percentWidth()+"%"}},_.W("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var F=C.animationDelay(),G=C.barColor();return"animation-delay:"+F+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+G+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"Ie");var BU2;_.vc$=_.d(function(C){function F(f){z(f)}
var G=C.data;var V=_.Jt("yt-video-overview-view-model"),J=_.nc("div");C=_.u(_.yH(-1,void 0,"qaDSu"));var b=C.next().value,z=C.next().value;C=_.u(_.yH(0,void 0,"Vz681c"));var Q=C.next().value,E=C.next().value,t={},k=_.$b(uZE,function(){return G().asyncDataEntityKey}),U=function(){var f;
if((f=k())==null?0:f.videoOverviewViewModel){var c;return _.Z((c=k())==null?void 0:c.videoOverviewViewModel,nPG)}return G()};
_.q4(function(){E(Math.min((V.value.clientWidth-24)/4-8,72))});
var H=function(f){z(f);(J==null?0:J.value)&&J.value.children[f]&&J.value.children[f].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};
lmq(V,function(){var f;if((f=U())==null||!f.inlinePlaybackEndpoint)return null;var c;f=t==null?void 0:(c=t.thumbnailElRef)==null?void 0:c.value;if(!f)return null;var A;c=(A=U())==null?void 0:A.inlinePlaybackEndpoint;A=_.Z(c,wPu);return{multipleVideoPreviewData:{data:(A==null?0:A.playerDescriptors)&&(A==null?0:A.playerDescriptors.length)?A.playerDescriptors:[],thumbnailElement:f,trackingParams:"test",callbacks:{onPlaybackStarted:H},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}});
var l=function(){var f;return((f=U())==null?void 0:f.headerSubtext)!==void 0?!0:!1},N=function(){var f,c=GZ((f=U())==null?void 0:f.titleColor);
return c?"color: "+_.lE(c)+";":void 0},S=function(){var f,c=GZ((f=U())==null?void 0:f.subtextColor);
return c?"color: "+_.lE(c)+";":void 0};
return _.W("yt-video-overview-view-model",{class:"ytGenAiVideoOverviewViewModelHost",el:V,style:function(){var f,c=GZ((f=U())==null?void 0:f.backgroundColor);return c?"background-color: "+_.lE(c)+";":void 0}},_.W(_.a,{cond:function(){var f;
return(f=U())==null?void 0:f.isLoading},
then:function(){return _.W(LBG,{barColor:function(){var f;return(f=U())==null?void 0:f.titleColor}})},
else:function(){return _.W(_.WQ,null,_.W("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.W("div",{class:"ytGenAiVideoOverviewViewModelTitle",style:function(){return N()}},_.W(_.mn,{text:function(){var f;
return(f=U())==null?void 0:f.headerText}})),_.W(_.a,{cond:l,
then:function(){return _.W("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.W("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return S()}},_.W(_.i5,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.W("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return S()}},_.W(_.mn,{text:function(){var f;
return(f=U())==null?void 0:f.headerSubtext}})))}})),_.W("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.W(_.uC,{data:function(){var f;
return(f=U())==null?void 0:f.thumbnail}},{thumbnailViewModel:function(f){return _.W(_.zs,{data:f.data,
aspectRatio:0,playbackRef:kyq(t)})}})),_.W(_.a,{cond:function(){var f,c,A,T;
return((f=U())==null?void 0:(c=f.listItems)==null?void 0:c.length)!==void 0&&((A=U())==null?void 0:(T=A.listItems)==null?void 0:T.length)>0?!0:!1},
then:function(){return _.W("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:J},_.W(_.Ag,{each:function(){var f;return(f=U())==null?void 0:f.listItems}},function(f,c){return _.W(BU2,{image:f.image,
index:c,isSelected:function(){return c()===b()},
onClick:F,itemWidth:Q})}))}}),_.W("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.W("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return N()}},_.W(_.mn,{text:function(){var f,c,A,T,P,g,r;
return(r=(f=U())==null?void 0:(c=f.listItems)==null?void 0:(A=c[b()])==null?void 0:A.headline)!=null?r:(T=U())==null?void 0:(P=T.listItems)==null?void 0:(g=P[0])==null?void 0:g.headline}})),_.W("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return S()}},_.W(_.mn,{text:function(){var f,c,A,T,P,g,r;
return(r=(f=U())==null?void 0:(c=f.listItems)==null?void 0:(A=c[b()])==null?void 0:A.subtext)!=null?r:(T=U())==null?void 0:(P=T.listItems)==null?void 0:(g=P[0])==null?void 0:g.subtext}}))))}}))},"Je");
BU2=_.d(function(C){var F=C.image;var G=C.itemWidth;var V=C.index;var J=C.isSelected;var b=C.onClick;C=_.CZ(function(){V!==void 0&&b!==void 0&&b(V());return!1});
var z={};return _.W("div",{class:_.py("ytGenAiVideoOverviewViewModelCarouselItem",(z.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return J==null?void 0:J()},z)),
style:function(){return"width: "+G()+"px;"},
"on:click":C},_.W(_.AC,{data:F,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.W(_.a,{cond:function(){return J==null?void 0:J()},
then:function(){return _.W("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.W("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Ke");
_.vc$.idomCompat=!0;_.gQ(_.vc$,"yt-video-overview-view-model",{props:{data:_.CJ}});_.f1$=_.d(function(C){var F=C.data;var G=C.topbarOffset;var V,J=((V=_.I8().resolve(_.Qt(_.v6)))==null?void 0:V())||!1;return _.W("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var b=F();var z,Q,E=J?(z=b.config)==null?void 0:z.darkThemeBackgroundColor:(Q=b.config)==null?void 0:Q.lightThemeBackgroundColor;b=E?_.Hr(E):void 0;b="background-color: "+b+";";G!==void 0&&(b+="top: -"+G()+"px;");return b},
"aria-hidden":!0},_.W(_.a,{cond:function(){var b,z,Q;return!!((b=F().backgroundImageConfig)==null?0:(z=b.image)==null?0:(Q=z.sources)==null?0:Q.length)},
then:function(){return _.W(_.AC,{data:function(){var b;return(b=F().backgroundImageConfig)==null?void 0:b.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.W("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+zDo(J,F().gradientColorConfig)+";"}}))},"Le");
_.f1$.idomCompat=!0;var hH$=_.d(function(C){var F=C.data;var G=C.isOverlay;return _.W("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.W("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.W(_.uC,{data:function(){return F().header}},{sectionHeaderViewModel:function(V){return _.W(_.Xa,{data:V.data,
isOverlay:G})}})),_.W("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.W(_.uC,{data:function(){return F().channelInfoButtons}},{flexibleActionsViewModel:_.YW})),_.W("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.W(_.uC,{data:function(){return F().description}},{descriptionPreviewViewModel:function(V){return _.W(_.O2,{data:V.data,
isOverlay:G})}})))},"Me");
hH$.idomCompat=!0;var cbu=_.d(function(C){var F=C.data;var G={};return _.W("factoid-view-model",{class:_.py("ytwFactoidViewModelHost",(G.ytwFactoidViewModelHostOverlay=C.isOverlay,G))},_.W(_.mn,{text:function(){return F().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.W(_.mn,{text:function(){return F().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Ne");
cbu.idomCompat=!0;var Ab$=_.d(function(C){var F=C.data;var G=C.isOverlay;return _.W("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.W(_.uC,{data:function(){return F().factoids}},{factoidViewModel:function(V){return _.W(cbu,{data:V.data,
isOverlay:G})}}))},"Oe");
Ab$.idomCompat=!0;_.eHE=_.d(function(C){var F=C.data;var G=C.isOverlay;return _.W("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.W(_.uC,{data:function(){return F().items}},{channelInfoViewModel:function(V){return _.W("div",{class:"ytwCourseMetadataViewModelHostItem"},_.W(hH$,{data:V.data,
isOverlay:G}))},
coursePerksViewModel:function(V){return _.W("div",{class:"ytwCourseMetadataViewModelHostItem"},_.W(QWy,{data:V.data,isOverlay:G}))},
descriptionPreviewViewModel:function(V){return _.W("div",{class:"ytwCourseMetadataViewModelHostItem"},_.W(_.O2,{data:V.data,isOverlay:G}))},
factoidsRowViewModel:function(V){return _.W("div",{class:"ytwCourseMetadataViewModelHostItem"},_.W(Ab$,{data:V.data,isOverlay:G}))},
progressViewModel:function(V){return _.W("div",{class:"ytwCourseMetadataViewModelHostItem"},_.W(I1O,{data:V.data,isOverlay:G}))}}))},"Pe");var dHr=_.d(function(C){return _.W("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.W(_.uC,{data:function(){return C.data().content}},{courseMetadataViewModel:function(F){return _.W(_.eHE,{data:F.data,
isOverlay:C.isOverlay})},
progressViewModel:function(F){return _.W(I1O,{data:F.data})}}))},"Qe");var xHy=_.d(function(C){var F=C.data;C=C.className;var G=function(){var J;return _.Hl((J=F())==null?void 0:J.rendererContext)},V={};
V=(V.dynamicTextViewModelHost=!0,V.dynamicTextViewModelHostTappable=function(){return G()},V);
return _.W("yt-dynamic-text-view-model",{el:_.dQ(_.lC(function(){var J;return(J=F())==null?void 0:J.rendererContext})),
role:function(){return G()?"link":void 0},
tabindex:function(){return G()?0:void 0},
class:_.py(C,V)},_.W("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var J,b,z;return(z=(b=_.Z((J=F())==null?void 0:J.rendererContext,_.$Z))==null?void 0:b.label)!=null?z:""}},_.W(_.mn,{text:function(){return F().text},
userInput:!0})))},"Re");
xHy.idomCompat=!0;_.CF=_.d(function(C){var F=C.data;var G=C.isPositionRelative;var V=_.ICS("(max-width: 527.9px)"),J=function(){var b,z;return(z=(b=F())==null?void 0:b.style)!=null?z:"IMAGE_BANNER_STYLE_FULL_BLEED"};
C={};return _.W("yt-image-banner-view-model",{el:_.dQ(_.lC(function(){var b;return(b=F())==null?void 0:b.rendererContext})),
class:_.py((C.ytImageBannerViewModelHost=!0,C.ytImageBannerViewModelInset=function(){return E4E(J())},C.ytImageBannerViewModelPositionAbsolute=function(){return _.g0(!0)&&!(G==null?0:G())},C.ytImageBannerViewModelSmallInset=function(){return E4E(J())&&V()},C.ytImageBannerViewModelTappable=function(){var b;
return _.Hl((b=F())==null?void 0:b.rendererContext)},C))},_.W(_.a,{cond:function(){var b;
return(b=F())==null?void 0:b.image},
then:function(){return _.W(_.AC,{data:function(){return F().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.W(_.uC,{data:function(){var b;
return(b=F())==null?void 0:b.overlays}},{thumbnailHoverOverlayViewModel:PW}))},"Se");
_.CF.idomCompat=!0;var sW7;sW7=_.d(function(C){var F=C.condition;var G=C.content;return _.W(_.a,{cond:F,then:function(){return _.W("div",{class:"yt-page-header-view-model__scroll-container"},G())},
else:function(){return G()}})},"Te");
_.qoS=_.d(function(C){var F=C.data;var G=C.noPadding;var V=C.enableBanner;var J=C.cinematicContainerTopbarOffset;var b=C.allowCinematicContainerOverflow;var z=C.displayAsSidebar;var Q=C.displayAsPanel;var E=C.alwaysUseMediumTextDescription;var t=WqZ(),k=function(){return!!F().image||!!F().animatedImage},U=function(){return!!F().background},H=function(){return(z==null?0:z())||(Q==null?0:Q())?1:t()},l=function(){return H()===1},N=function(){return l()||H()===2},S=function(){return H()===4},f=function(){var lZ=
F();
var eq=!!F().heroImage;var OB=H(),yr=tff(F()),Rl=z==null?void 0:z(),w2=!lZ.metadata,jG;if(jG=eq?_.Z(lZ.heroImage,j7r):_.Z(lZ.animatedImage||lZ.image,j7r)){lZ=jG.style;var Il=jG.layoutMode;if(Il!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(jG=oY5(Ts9(jG)),eq)eq=QzA(OB,lZ,Il,jG,Rl);else b:if(w2)eq=OB===1?{size:48}:{size:72};else switch(OB){case 1:eq={size:72};break b;case 2:eq={size:120};break b;default:eq=yr<4?{size:120}:{size:160}}else eq=void 0}else eq={size:0};return eq};
C={};C=_.py((C["yt-page-header-view-model"]=!0,C["yt-page-header-view-model--no-padding"]=function(){return!(G==null||!G())},C["yt-page-header-view-model--small-top-padding"]=function(){return l()&&!F().actions&&!(Q==null?0:Q())||H()===2&&!(k()||F().heroImage)},C["yt-page-header-view-model--small-bottom-padding"]=function(){return N()&&!F().actions&&!(Q==null?0:Q())},C["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(b==null?0:b())},C["yt-page-header-view-model--display-as-sidebar"]=
z,C));
var c={},A=_.py((c["yt-page-header-view-model__page-header-headline"]=!0,c["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var lZ;return(lZ=f())==null?void 0:lZ.allowFullWidth},c)),T=function(){var lZ;
return N()&&!((lZ=f())==null?0:lZ.allowFullWidth)},P=function(){return l()&&(!!F().heroImage||k())&&tff(F())>0},g=function(){return P()&&(Q==null?void 0:Q())};
c={};var r=_.py((c["yt-page-header-view-model__page-header-title"]=!0,c["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!P()},c["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return P()&&!g()},c["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=g,c["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=U,c));
c={};var C9=_.py((c["yt-page-header-view-model__page-header-headline-image"]=!0,c["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!F().heroImage&&N()},c));
c={};var Wo=_.py((c["yt-page-header-view-model__page-header-banner-container"]=V,c["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var lZ;return(V==null?void 0:V())&&((lZ=_.Z(F().banner,_.GvG))==null?void 0:lZ.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},c));
c={};var EB=_.py((c["yt-page-header-view-model__page-header-content-metadata"]=!0,c["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=U,c));c={};var L9=_.py((c["yt-page-header-view-model__page-header-flexible-actions"]=!0,c["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!F().metadata||N()},c["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!N()},c));
c={};var ki=_.py((c["yt-page-header-view-model__page-header-attribution"]=!0,c["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=U,c));return _.W("yt-page-header-view-model",{class:C},_.W(_.a,{cond:U,then:function(){return _.W("div",{class:"yt-page-header-view-model__page-header-background"},_.W(_.uC,{data:function(){return F().background}},{cinematicContainerViewModel:function(lZ){return _.W(_.f1$,{data:lZ.data,
topbarOffset:J})}}))}}),_.W(sW7,{condition:function(){return!(z==null||!z())},
content:function(){return _.W("div",{class:"yt-page-header-view-model__page-header-content"},_.W(_.a,{cond:function(){return(V==null?void 0:V())&&F().banner},
then:function(){return _.W("div",{class:Wo},_.W(_.uC,{data:function(){return F().banner}},{imageBannerViewModel:_.CF}))}}),_.W("div",{class:A},_.W(_.a,{cond:k,
then:function(){return _.W(_.uC,{data:function(){var lZ;if(!(lZ=F().animatedImage)){lZ=F();if(k()){var eq=lZ=Object.assign({},lZ),OB=H(),yr=tff(F()),Rl=eq.image,w2=_.Z(Rl,F1m),jG=w2==null?void 0:w2.avatar,Il=_.Z(jG,_.yJ);if(Rl&&jG&&Il){switch(OB){case 1:Il.avatarImageSize="AVATAR_SIZE_XL";break;case 2:Il.avatarImageSize="AVATAR_SIZE_XXL";break;default:yr<4?Il.avatarImageSize="AVATAR_SIZE_XXL":Il.avatarImageSize="AVATAR_SIZE_XXXL"}_.ke(jG,_.yJ,Object.assign({},Il));w2.avatar=Object.assign({},jG);_.ke(Rl,
F1m,Object.assign({},w2));eq.image=Object.assign({},Rl)}}lZ=lZ.image}return lZ}},{contentPreviewImageViewModel:function(lZ){return _.W(_.tZ,{data:lZ.data,
className:C9,imageSizeConfig:f})},
decoratedAvatarViewModel:function(lZ){return _.W(_.R7,{data:lZ.data,className:C9})}})}}),_.W(_.a,{cond:function(){return!!F().heroImage&&!T()},
then:function(){return _.W(_.uC,{data:function(){return F().heroImage}},{contentPreviewImageViewModel:function(lZ){return _.W(_.tZ,{data:lZ.data,
className:C9,imageSizeConfig:f})}})}}),_.W("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.W(_.a,{cond:function(){return!!F().heroImage&&T()},
then:function(){return _.W("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.W(_.uC,{data:function(){return F().heroImage}},{contentPreviewImageViewModel:function(lZ){return _.W(_.tZ,{data:lZ.data,
className:C9,imageSizeConfig:f})}}))}}),_.W(_.uC,{data:function(){return F().title}},{dynamicTextViewModel:function(lZ){return _.W(xHy,{data:lZ.data,
className:r})}}),_.W(_.uC,{data:function(){return F().metadata}},{contentMetadataViewModel:function(lZ){return _.W(_.kV,{data:lZ.data,
layout:function(){return l()?1:0},
className:EB,isOverlay:U,useMediumText:S})}}),_.W(_.a,{cond:function(){return F().description&&!l()},
then:function(){return _.W(_.uC,{data:function(){return F().description}},{descriptionPreviewViewModel:function(lZ){return _.W(_.O2,{data:lZ.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:U,maxLinesOverride:function(){return l()?void 0:1},
useMediumText:function(){return(E==null?void 0:E())||S()}})}})}}),_.W(_.a,{cond:function(){return F().attribution&&!N()},
then:function(){return _.W(_.uC,{data:function(){return F().attribution}},{attributionViewModel:function(lZ){return _.W(aO,{data:lZ.data,
className:ki,useMediumText:S})}})}}),_.W(_.a,{cond:function(){return F().actions&&!N()},
then:function(){return _.W(_.uC,{data:function(){return F().actions}},{flexibleActionsViewModel:function(lZ){return _.W(_.YW,{data:lZ.data,
layout:function(){return aCT(H())},
className:L9})}})}}))),_.W("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.W(_.a,{cond:function(){return F().description&&l()},
then:function(){return _.W(_.uC,{data:function(){return F().description}},{descriptionPreviewViewModel:function(lZ){return _.W(_.O2,{data:lZ.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:U,maxLinesOverride:function(){return l()?void 0:1},
useMediumText:function(){return(E==null?void 0:E())||S()}})}})}}),_.W(_.a,{cond:function(){return F().attribution&&N()},
then:function(){return _.W(_.uC,{data:function(){return F().attribution}},{attributionViewModel:function(lZ){return _.W(aO,{data:lZ.data,
className:ki,useMediumText:S})}})}}),_.W(_.a,{cond:function(){return F().actions&&N()},
then:function(){return _.W(_.uC,{data:function(){return F().actions}},{flexibleActionsViewModel:function(lZ){return _.W(_.YW,{data:lZ.data,
layout:function(){return aCT(H())},
className:L9})}})}})),_.W("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.W(_.uC,{data:function(){return F().bottomMetadataFlexibleContainer}},{flexibleContainer:function(lZ){return _.W(dHr,{data:lZ.data,
isOverlay:U})}})))}}))},"Ue");
_.qoS.idomCompat=!0;_.gQ(_.d(function(C){var F=_.u(_.yH(!1,void 0,"vvzTj")),G=F.next().value,V=F.next().value;return _.W("yt-official-card-view-model",{class:_.py("ytOfficialCardViewModelHost",C.className),style:_.VA({"background-color":function(){var J,b=GZ((J=C.data())==null?void 0:J.backgroundColor);return b?_.lE(b):void 0}})},_.W(_.uC,{data:function(){return C.data().header}},{pageHeaderViewModel:function(J){return _.W(_.qoS,{data:J.data,
noPadding:!0})}}),_.W(_.uC,{data:function(){return C.data().contents}},{horizontalShelfViewModel:function(J){return _.W(_.mQ,{data:J.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.W(_.a,{cond:G,
then:function(){return _.W("div",{class:"ytOfficialCardViewModelExpandedContent"},_.W(_.uC,{data:function(){return C.data().expandedContents}},{horizontalShelfViewModel:function(J){return _.W(_.mQ,{data:J.data,
sizing:"MINI"})}}),_.W("div",{class:"ytOfficialCardViewModelCollapseButton"},_.W(_.uC,{data:function(){return C.data().collapseButton}},{buttonViewModel:function(J){return _.W(_.tS,{data:J.data,
onClick:function(){V(!G())}})}})))},
else:function(){return _.W("div",{class:"ytOfficialCardViewModelExpandButton"},_.W(_.uC,{data:function(){return C.data().expandButton}},{buttonViewModel:function(J){return _.W(_.tS,{data:J.data,
onClick:function(){V(!G())}})}}))}}))},"Ve"),"yt-official-card-view-model",{props:{data:_.CJ,
className:_.CJ}});var PXm=_.d(function(C){var F,G=(F=_.I8().resolve(_.Qt(_.v6)))==null?void 0:F();return _.W("ytw-search-friction-view-model",{class:_.py("ytwSearchFrictionViewModelHost",C.className)},_.W("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.W("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.W(_.a,{cond:function(){return G&&C.data().darkThemeImage?C.data().darkThemeImage:C.data().image},
then:function(V){return _.W(_.AC,{data:V,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.W(_.uC,{data:function(){return C.data().overflowMenuButton}},{buttonViewModel:function(V){return _.W(_.tS,{data:V.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.W(_.mn,{text:function(){return C.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.W(_.Ag,{each:function(){return C.data().bodyText||[]}},function(V){return _.W(_.mn,{text:V,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.W(_.uC,{data:function(){return C.data().actions}},{buttonViewModel:function(V){return _.W(_.tS,{data:V.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.W(_.mn,{text:function(){return C.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.W(_.mn,{text:function(){return C.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"We");
PXm.idomCompat=!0;_.gQ(PXm,"ytw-search-friction-view-model",{props:{data:_.CJ,className:_.CJ}});_.jb=_.d(function(C){var F=_.Jt("markdown-div"),G,V=(G=_.I8().resolve(_.Qt(_.v6)))==null?void 0:G();_.sq(function(){var J=F.value;var b=new rW$,z=new Map(b.JSC$9297_sanitizerTable.globalAttributePolicies);z.set("style",{policyAction:4});b.JSC$9297_sanitizerTable=new UV(b.JSC$9297_sanitizerTable.allowedElements,b.JSC$9297_sanitizerTable.elementPolicies,b.JSC$9297_sanitizerTable.allowedGlobalAttributes,z,b.JSC$9297_sanitizerTable.globallyAllowedAttributePrefixes);var Q=["data-time"];if(Q===void 0)z=
new Set(b.JSC$9297_sanitizerTable.globallyAllowedAttributePrefixes),z.add("data-"),b.JSC$9297_sanitizerTable=new UV(b.JSC$9297_sanitizerTable.allowedElements,b.JSC$9297_sanitizerTable.elementPolicies,b.JSC$9297_sanitizerTable.allowedGlobalAttributes,b.JSC$9297_sanitizerTable.globalAttributePolicies,z);else{z=new Set(b.JSC$9297_sanitizerTable.allowedGlobalAttributes);Q=_.u(Q);for(var E=Q.next();!E.done;E=Q.next()){E=E.value;if(E.indexOf("data-")!==0)throw Error("ka`"+E);z.add(E)}b.JSC$9297_sanitizerTable=
new UV(b.JSC$9297_sanitizerTable.allowedElements,b.JSC$9297_sanitizerTable.elementPolicies,z,b.JSC$9297_sanitizerTable.globalAttributePolicies,b.JSC$9297_sanitizerTable.globallyAllowedAttributePrefixes)}z=new Set(b.JSC$9297_sanitizerTable.allowedGlobalAttributes);z.add("class");b.JSC$9297_sanitizerTable=new UV(b.JSC$9297_sanitizerTable.allowedElements,b.JSC$9297_sanitizerTable.elementPolicies,z,b.JSC$9297_sanitizerTable.globalAttributePolicies,b.JSC$9297_sanitizerTable.globallyAllowedAttributePrefixes);
_.$O(J,_.gOl(b.build(),UPo(C.text())));HM9(F.value)},"OZ439c");
G={};return _.W("div",null,_.W("markdown-div",{class:_.py("ytwMarkdownDivHost",(G.ytwMarkdownDivDark=V,G.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var J;return((J=C.isSmallText)==null?void 0:J.call(C))||!1},G.ytwMarkdownDivHostWrapCodeBlocks=function(){var J;
return((J=C.wrapCodeBlocks)==null?void 0:J.call(C))||!1},G.ytwMarkdownDivHostEnableDefaultStyling=function(){var J;
return!((J=C.disableDefaultStyling)==null?0:J.call(C))},G)),
el:F}))},"Ye");
_.jb.idomCompat=!0;var gcP=_.d(function(C){var F=C.imageData;var G=_.dk(C.isInList,!1),V=function(){return G()?{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 _.W("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.W(_.a,{cond:function(){return F().image},
then:function(J){return _.W(_.AC,{data:J,alt:function(){return V().alt},
contentMode:function(){return V().contentMode},
targetWidth:function(){return V().targetWidth},
targetHeight:function(){return V().targetHeight},
className:function(){return V().className}})}}),_.W("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.W("div",{class:_.py("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.W(_.mn,{text:function(){return F().title}})),_.W(_.Ag,{each:function(){var J;
return(J=F().description)!=null?J:[]}},function(J){return _.W("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.W(Fv,{content:J}))})))},"Ze"),RHO=_.d(function(C){var F=C.list;
var G=function(){var V;return(V=F().items)!=null?V:[]};
return _.W("div",{class:"ytwGenAiRichTextViewModelListContent"},_.W(_.a,{cond:function(){return F().title},
then:function(V){return _.W("div",{class:_.py("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.W(_.mn,{text:V}))}}),_.W(_.a,{cond:function(){return F().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.W("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.W(_.Ag,{each:G},function(V){return _.W("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.W(Fv,{content:V,isInList:!0}))}))}}),_.W(_.a,{cond:function(){return F().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.W("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.W(_.Ag,{each:G},function(V){return _.W("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.W(Fv,{content:V,isInList:!0}))}))}}),_.W(_.a,{cond:function(){return F().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.W("div",{class:"ytwGenAiRichTextViewModelImageList"},_.W(_.Ag,{each:G},function(V){return _.W("div",{class:"ytwGenAiRichTextViewModelListItem"},_.W(Fv,{content:V,isInList:!0}))}))}}))},"$e"),Yol=_.d(function(C){var F=C.table;
return _.W("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.W("thead",null,_.W("tr",null,_.W(_.Ag,{each:function(){var G,V;return(V=(G=F().header)==null?void 0:G.cells)!=null?V:[]}},function(G){return _.W("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.W(_.Ag,{each:function(){return G.contents}},function(V){return _.W(Fv,{content:V})}))}))),_.W("tbody",null,_.W(_.Ag,{each:function(){var G;
return(G=F().rows)!=null?G:[]}},function(G){return _.W("tr",null,_.W(_.Ag,{each:function(){return G.cells}},function(V){return _.W("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.W(_.Ag,{each:function(){return V.contents}},function(J){return _.W(Fv,{content:J})}))}))})))},"af"),Fv=_.d(function(C){var F=C.content;
var G=_.dk(C.isInList,!1),V=function(){var J,b;return(b=(J=F().contentBlock)==null?void 0:J.contents)!=null?b:[]};
return _.W("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.W(_.a,{cond:function(){return F().text},
then:function(J){return _.W(_.mn,{className:"ytwGenAiRichTextViewModelText",text:J})}}),_.W(_.a,{cond:function(){return F().image},
then:function(J){return _.W(gcP,{imageData:J,isInList:G})}}),_.W(_.a,{cond:function(){return F().list},
then:function(J){return _.W(RHO,{list:J})}}),_.W(_.a,{cond:function(){return F().contentBlock},
then:function(){return _.W("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.W(_.Ag,{each:V},function(J){return _.W(Fv,{content:J,isInList:!1})}))}}),_.W(_.a,{cond:function(){return F().table},
then:function(J){return _.W(Yol,{table:J})}}))},"bf"),TUG=_.d(function(C){var F={};
F=_.tm("ytwGenAiRichTextViewModelHost",(F.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.kU("search_overview_link_style")),F));return _.W("gen-ai-rich-text-view-model",{class:F},_.W(Fv,{content:function(){return C.data().content}}))},"cf");_.ocG=_.d(function(C){var F=C.data;var G=function(){var S;return((S=F().loadingUi)!=null?S:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},V=function(){return F().isLoading&&(G()==="UNSPECIFIED"||G()==="GHOST_CARD")},J=function(){return!F().isLoading},b=function(){return!!F().content&&!F().contents},z=function(){return!!F().contents},Q=function(){return!!F().nextQueryButtons},E=function(){return F().isLoading&&G()==="INVISIBLE"},t=function(){var S,f;
return(f=(S=F().headerIcon)==null?void 0:S.iconType)!=null?f:""},k=function(){var S;
return(S=F().content)!=null?S:""},U=function(){return!!F().sourcesSection},H,l=!((H=_.I8().resolve(_.Qt(_.v6)))==null||!H()),N=_.w0(function(){var S=[],f=F().contents;
if(f)for(var c=0;c<f.length;c++){var A=_.Z(f&&f[c],bKu);A&&S.push(A)}return S},void 0,"gcCsZb");
_.q4(function(){F().isLoading||_.NV("so_re",void 0,"search_overview_answer")});
return _.W("ytd-overview-answer-view-model",{class:function(){var S={};S=(S.ytdOverviewAnswerViewModelHost=!0,S.ytdOverviewAnswerViewModelDarkBackground=l&&!E(),S.ytdOverviewAnswerViewModelLightBackground=!l&&!E(),S);return _.tm(S)}},_.W(_.a,{cond:function(){return!E()},
then:function(){return _.W(_.WQ,null,_.W("h2",null,_.W("div",{class:"ytdOverviewAnswerViewModelHeader"},_.W(_.a,{cond:t,then:function(S){return _.W("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.W(_.i5,{icon:S}))}}),_.W("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.W("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return F().headerText}),_.W("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.W(_.mn,{text:function(){return F().headerSubtext}}))))),_.W(_.a,{cond:V,
then:function(){return _.W(lCq,null)}}),_.W(_.a,{cond:J,
then:function(){return _.W(_.WQ,null,_.W(_.a,{cond:b,then:function(){return _.W("div",{class:"ytdOverviewAnswerViewModelText"},_.W(_.jb,{text:k,isSmallText:!0}))}}),_.W(_.a,{cond:z,
then:function(){return _.W("div",{class:"ytdOverviewAnswerViewModelRichText"},_.W(_.Ag,{each:N},function(S){return _.W(TUG,{data:S})}))}}),_.W(_.a,{cond:Q,
then:function(){return _.W("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.W(_.uC,{data:function(){return F().nextQueryButtons}},{buttonViewModel:function(S){return _.W(_.tS,{data:S.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.mQ}))}}),_.W("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.W("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.W(_.a,{cond:function(){return!!_.Z(F().likeButtonViewModel,_.Rd)&&!!_.Z(F().dislikeButtonViewModel,_.gf)},
then:function(){return _.W("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.W(_.of,{data:function(){return _.Z(F().likeButtonViewModel,_.Rd)},
disableIconAnimation:!0}),_.W(_.TR,{data:function(){return _.Z(F().dislikeButtonViewModel,_.gf)}}))}})),_.W(_.a,{cond:function(){var S;
return(S=F().sourcesSection)==null?void 0:S.headerText},
then:function(S){return _.W("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.W(_.mn,{text:S}))}})),_.W(_.a,{cond:U,
then:function(){return _.W("div",{class:"ytdOverviewAnswerViewModelSources"},_.W(_.uC,{data:function(){var S;return(S=F().sourcesSection)==null?void 0:S.sourcesShelf}},{buttonViewModel:_.tS,
horizontalShelfViewModel:function(S){return _.W(_.mQ,{data:S.data,includeMargin:!0,hasPeek:!0})}}))}}),_.W(_.a,{cond:function(){return F().disclaimerText},
then:function(){return _.W("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.W(_.mn,{text:function(){return F().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"df");var rbo=_.d(function(C){var F=_.xz(C,{}).data;return _.W("yt-shopping-content-line-item-view-model",{class:_.py("ytShoppingContentLineItemViewModelHost")},_.W(_.mn,{text:function(){var G;return(G=F().text)==null?void 0:G.attributedString}}))},"ef");_.G8=_.d(function(C){C=_.xz(C,{});var F=C.data,G={};return _.W("yt-shopping-content-line-view-model",{class:_.py("ytShoppingContentLineViewModelHost",C.className,(G.ytShoppingContentLineViewModelTruncateText=function(){return!F().wrapContent},G)),
style:_.VA({"--shopping-content-line-gap":function(){return F().itemGap?F().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return F().lineHeight?F().lineHeight+"px":void 0}})},_.W(_.Ag,{each:function(){return(F().items||[]).map(function(V){return _.Z(V,UZl)}).filter(function(V){return!!V})}},function(V){return _.W(rbo,{data:V})}))},"ff");var KBy=_.d(function(C){var F=C.data;var G=function(){var b;return((b=F().image)==null?void 0:b.height)||48},V=function(){var b;
return((b=F().image)==null?void 0:b.width)||48},J=function(){return"width: "+V()+"px; height: "+G()+"px;"};
return _.W("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var b,z,Q,E=((b=_.I8().resolve(_.Qt(_.v6)))==null?0:b())?(z=F())==null?void 0:z.darkThemeBackgroundColor:(Q=F())==null?void 0:Q.lightThemeBackgroundColor;return"background-color: "+(E?_.lE(E):"")+";"},
el:_.dQ(_.lC(function(){var b;return(b=F())==null?void 0:b.rendererContext}))},_.W(_.a,{cond:function(){var b,z;
return(z=(b=F().image)==null?void 0:b.image)!=null?z:F().thumbnail},
then:function(b){return _.W("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var z;return"background-color: "+(((z=F().image)==null?0:z.backgroundColor)?_.lE(F().image.backgroundColor):"")+";"+J()}},_.W(_.AC,{data:b,
height:G,width:V,style:J,alt:""}))}}),_.W("div",{class:"ytShoppingDescriptionItemViewModelText"},_.W(_.uC,{data:function(){return F().line1}},{shoppingContentLineViewModel:function(b){return _.W(_.G8,{data:b.data})}}),_.W(_.uC,{data:function(){return F().line2}},{shoppingContentLineViewModel:function(b){return _.W(_.G8,{data:b.data})}}),_.W(_.uC,{data:function(){return F().line3}},{shoppingContentLineViewModel:function(b){return _.W(_.G8,{data:b.data})}})))},"gf");var DHP=_.d(function(C){var F=C.data;var G=C.active;var V=_.Jt("transcript-segment-view-model");_.sq(function(){var J,b,z,Q=((J=_.I8().resolve(_.Qt(_.v6)))==null?0:J())?(b=F())==null?void 0:b.darkThemeColorPalette:(z=F())==null?void 0:z.lightThemeColorPalette;Q&&(Q.additiveBackground&&V.value.style.setProperty("--timestamp-active-background-color",_.lE(Q.additiveBackground)),Q.textSecondary&&V.value.style.setProperty("--timestamp-active-color",_.Hr(Q.textSecondary)))},"TnVCnb");
C={};return _.W("transcript-segment-view-model",{class:_.py("ytwTranscriptSegmentViewModelHost",(C.ytwTranscriptSegmentViewModelHostActive=G,C.ytwTranscriptSegmentViewModelHostModern=_.y("enable_timeline_view_modern_transcript")||_.y("enable_timeline_view_modern_transcript_fe"),C)),el:V},_.W(_.a,{cond:function(){var J;return(J=F())==null?void 0:J.timestamp},
then:function(J){var b={};return _.W(_.WQ,null,_.W("div",{class:_.py("ytwTranscriptSegmentViewModelTimestamp",(b.ytwTranscriptSegmentViewModelTimestampActive=G,b)),"aria-hidden":!0},J),_.W("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var z=J().split(":").map(Number),Q=_.u(z.reverse());z=Q.next().value;var E=Q.next().value;Q=Q.next().value;return _.ViE({hours:Q,minutes:E,seconds:z})}))}}),_.W(_.mn,{text:function(){var J,b,z;
return(z=(J=F())==null?void 0:J.attributedText)!=null?z:{content:(b=F())==null?void 0:b.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"jf");var pyP=_.d(function(C){var F=C.data;return _.W("div",{class:"videoAttributesSectionViewModelHeader"},_.W("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.W("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return F().headerTitle}),_.W(_.a,{cond:function(){return F().headerInfoButton},
then:function(){return _.W(_.uC,{data:function(){return F().headerInfoButton}},{buttonViewModel:function(G){return _.W(_.tS,{data:G.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.W(_.a,{cond:function(){return F().headerSubtitle},
then:function(){return _.W("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return F().headerSubtitle})}}))},"kf"),mHu=_.d(function(C){function F(S){return Math.max(Math.min(S,0),t()-Q())}
var G=C.data;var V;C=_.Jt("div",function(S){var f=function(){k(S.clientWidth)};
f();window.ResizeObserver&&(V=new ResizeObserver(f),V.observe(S))});
var J=_.Jt("div",function(S){E(S.scrollWidth)}),b=_.u(_.yH(0,void 0,"C3XQAe")),z=b.next().value;
b=b.next().value;var Q=z,E=b;b=_.u(_.yH(0,void 0,"db7y3"));z=b.next().value;b=b.next().value;var t=z,k=b;z=_.u(_.yH(0,void 0,"RchC7"));var U=z.next().value,H=z.next().value;_.q0(function(){var S;(S=V)==null||S.disconnect()});
var l=function(){H(F(U()+t()))},N=function(){H(F(U()-t()))};
return _.W("yt-video-attributes-section-view-model",null,_.W("div",{class:"videoAttributesSectionViewModelHost"},_.W(_.a,{cond:function(){return G().headerTitle},
then:function(){return _.W(pyP,{data:G})}}),_.W("div",{class:_.py("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:C},_.W("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.VA({transform:function(){var S=U();_.TF("HTML_DIR")==="rtl"&&(S*=-1);return"translateX("+S+"px)"}}),
el:J},_.W(_.uC,{data:function(){return G().videoAttributeViewModels}},{videoAttributeViewModel:d$$}))),_.W(_.uC,{data:function(){return G().footerButton}},{buttonViewModel:function(S){return _.W(_.tS,{data:S.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.W(_.a,{cond:function(){return U()<0&&G().previousButton},
then:function(){return _.W("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.W(_.uC,{data:function(){return G().previousButton}},{buttonViewModel:function(S){return _.W(_.tS,{data:S.data,
onClick:l})}}))}}),_.W(_.a,{cond:function(){return U()>t()-Q()&&G().nextButton},
then:function(){return _.W("div",{class:"videoAttributesSectionViewModelRightArrow"},_.W(_.uC,{data:function(){return G().nextButton}},{buttonViewModel:function(S){return _.W(_.tS,{data:S.data,
onClick:N})}}))}})))},"lf");
mHu.idomCompat=!0;var CZM=_.d(function(C){var F=C.data;var G=C.active;var V={},J={};return _.W("timeline-item-view-model",{class:_.py("ytwTimelineItemViewModelHost",(V.ytwTimelineItemViewModelHostChapterChild=C.chapterChild,V.ytwTimelineItemViewModelModern=_.y("enable_timeline_view_modern_transcript")||_.y("enable_timeline_view_modern_transcript_fe"),V))},_.W("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.W("div",{class:_.py("ytwTimelineItemViewModelTimestamp",(J.ytwTimelineItemViewModelTimestampActive=
G,J))},function(){return F().timestamp})),_.W("div",{class:"ytwTimelineItemViewModelContentItems"},_.W(_.uC,{data:function(){return F().contentItems}},{transcriptSegmentViewModel:function(b){return _.W(DHP,{data:b.data,
active:G})},
videoAttributesSectionViewModel:mHu})))},"mf");var jw8=_.d(function(C){var F=C.data;C={};return _.W("timeline-chapter-view-model",{class:_.py("ytwTimelineChapterViewModelHost")},_.W("div",{class:_.py("ytwTimelineChapterViewModelTitle",(C.ytwTimelineChapterViewModelModern=_.y("enable_timeline_view_modern_transcript")||_.y("enable_timeline_view_modern_transcript_fe"),C))},function(){return F().title}),_.W(_.uC,{data:function(){return F().contents}},{timelineItemViewModel:function(G){return _.W(CZM,{data:G.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(G){return _.W(mHu,{data:G.data})}}))},"nf");var FWV=_.d(function(C){var F=C.data;var G=_.Jt("macro-markers-panel-item-view-model"),V=_.$b(_.Eof,function(){var b;return(b=F().markersEngagementPanelSyncEntityKey)!=null?b:""}),J=function(){var b;
return((b=V())==null?void 0:b.activeItemIndex)===F().index};
C=_.CZ(function(b){var z,Q,E,t,k;return _.I(function(U){if(U.nextAddress==1)return b.stopPropagation(),_.kb(_.ay(b),G.value,["A".toString(),"BUTTON".toString()])?U.return():(z=_.ZD(F().onTap))?U.yield(_.CY(),2):U.return();Q=U.yieldResult;t=(E=_.Z(z,_.eT))==null?void 0:E.startTimeSeconds;t===void 0||(k=Q)!=null&&k.seekTo(t,!0);_.S9(U)})});
return _.W("macro-markers-panel-item-view-model",{class:_.py("ytwMacroMarkersPanelItemViewModelHost",{"is-active":J}),el:G,"on:click":C,tabindex:0,role:"button"},_.W(_.uC,{data:function(){var b;return(b=F())==null?void 0:b.item}},{timelineChapterViewModel:function(b){return _.W(jw8,{data:b.data,
active:J})},
timelineItemViewModel:function(b){return _.W(CZM,{data:b.data,active:J})},
videoAttributeViewModel:d$$,shoppingDescriptionItemViewModel:KBy}))},"of");
FWV.idomCompat=!0;_.gQ(FWV,"macro-markers-panel-item-view-model",{props:{data:_.CJ}});_.gQ(mHu,"yt-video-attributes-section-view-model",{props:{data:_.CJ}});var GE_=_.d(function(C){var F=function(){var G,V,J;return(J=(G=C.data().leadingLogoAccessibility)==null?void 0:(V=G.accessibilityData)==null?void 0:V.label)!=null?J:""};
return _.W("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.W(_.a,{cond:function(){return C.data().leadingLogo},
then:function(G){return _.W(_.AC,{className:"ytwFantasySectionHeaderViewModelLogo",data:G,alt:F})}}),_.W("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.W(_.mn,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return C.data().title}}),_.W(_.mn,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return C.data().subtitle}})),_.W(_.uC,{data:function(){return C.data().trailingButton}},{buttonViewModel:function(G){return _.W(_.tS,{data:G.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"pf");var Vqx=_.d(function(C){var F={};F=_.py("ytwFantasyTeamViewModelHost",(F.ytwFantasyTeamViewModelCompact=function(){var J;return!((J=C.compact)==null||!J.call(C))},F.ytwFantasyTeamViewModelUser=function(){return C.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},F.ytwFantasyTeamViewModelOpponent=function(){return C.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},F));
var G=function(){var J,b,z;return(z=(J=C.data().teamLogoAccessibility)==null?void 0:(b=J.accessibilityData)==null?void 0:b.label)!=null?z:""},V=_.$b(tOo,function(){return C.data().teamEntityKey});
return _.W("ytw-fantasy-team-view-model",{class:F},_.W(_.a,{cond:function(){return C.data().teamLogo},
then:function(J){return _.W(_.AC,{className:"ytwFantasyTeamViewModelLogo",data:J,alt:G})}}),_.W("div",{class:"ytwFantasyTeamViewModelMetadata"},_.W("div",{class:"ytwFantasyTeamViewModelHeader"},_.W(_.mn,{className:"ytwFantasyTeamViewModelScore",
text:function(){var J;return(J=V())==null?void 0:J.score}}),_.W(_.i5,{icon:function(){var J;
return(J=V())==null?void 0:J.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.W(_.mn,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var J;return(J=V())==null?void 0:J.projectedScore}})),_.W(_.mn,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return C.data().primaryText}}),_.W(_.mn,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return C.data().secondaryText}}),_.W(_.mn,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return C.data().tertiaryText}})),_.W(_.mn,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var J;return(J=V())==null?void 0:J.score}}))},"qf");_.gQ(_.d(function(C){return _.W("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.W("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.W(_.uC,{data:function(){return C.data().summaryHeader}},{fantasySectionHeaderViewModel:GE_})),_.W(_.uC,{data:function(){return C.data().userTeam}},{fantasyTeamViewModel:Vqx}),_.W(_.uC,{data:function(){return C.data().opponentTeam}},{fantasyTeamViewModel:Vqx}))},"rf"),"fantasy-league-summary-view-model",{props:{data:_.CJ}});var i9s=_.d(function(C){var F=_.xz(C,{shape:{},useCustomTabRenderable:!1}),G=F.shape;F=F.useCustomTabRenderable;var V=C.customTabRenderable,J=function(){return G().disabled},b=function(){return G().selected},z=function(){return G().title},Q=function(){return G().icon},E=_.Jt("yt-tab-shape");
C=_.CZ(function(U){var H;if(!J()&&((H=G().aTagConfig)==null?0:H.onclick))G().aTagConfig.onclick(U);return!1});
var t=_.CZ(function(U){if(U.key==="Enter"||U.key==="ArrowUp"||U.key==="ArrowDown")U.preventDefault(),E.value.click();return!1}),k={};
return _.W("yt-tab-shape",{class:_.py("yt-tab-shape",function(){return G().className},(k["yt-tab-shape__tab--last-tab"]=function(){return G().isLastTab},k["yt-tab-shape--host-disabled"]=J,k["yt-tab-shape--host-clickable"]=!V,k)),
role:V?void 0:"tab","aria-selected":b!=null?b:!1,"aria-disabled":J,tabindex:V?void 0:0,"on:click":C,"on:keydown":t,el:E,"tab-identifier":function(){return G().identifier},
"tab-title":z},_.W(_.a,{cond:F,then:function(){return V()},
else:function(){var U={},H={};return _.W(_.WQ,null,_.W("div",{class:_.py("yt-tab-shape__tab",(U["yt-tab-shape__tab--tab-selected"]=b,U))},_.W(_.a,{cond:Q,then:function(l){return _.W(_.i5,{className:"yt-tab-shape__tab-icon",icon:function(){return l().iconType}})}}),z),_.W("div",{class:_.py("yt-tab-shape__tab-bar",(H["yt-tab-shape__tab-bar--tab-bar-selected"]=b,H))}))}}))},"sf");
i9s.idomCompat={callbacks:{customTabRenderable:!0}};_.$fl=_.d(function(C){var F=C.shape;C=_.u(_.yH(48,void 0,"nDAx4"));var G=C.next().value,V=C.next().value;C=_.u(_.yH(0,void 0,"GCgjqb"));var J=C.next().value,b=C.next().value,z=function(){return F().tabs},Q=_.Jt("yt-tab-group-shape"),E=function(){var H,l;
return(l=(H=z())==null?void 0:H.findIndex(function(N){return N.selected}))!=null?l:-1};
C=_.u(_.yH(!1,void 0,"SU01tf"));var t=C.next().value,k=C.next().value,U=function(){t()||_.gT.addJob(function(){k(!0)},0)};
_.sq(function(){var H=E(),l=_.gT.addJob(function(){var N,S=((N=Q.value)==null?void 0:N.querySelectorAll("yt-tab-shape"))||[],f;V(((f=H>-1?S[H]:void 0)==null?void 0:f.getBoundingClientRect().width)||0);for(f=N=0;f<H;f++)N+=S[f].offsetWidth+24;_.TF("HTML_DIR")==="rtl"&&(N=-N);b(N);U()},8,0);
_.q0(function(){_.gT.cancelJob(l)})},"PMwgb");
C={};return _.W("yt-tab-group-shape",{class:_.py("tabGroupShapeHost",(C.tabGroupShapeOverflowHidden=function(){return F().isOverflowHidden},C)),
el:Q},_.W(_.a,{cond:z,then:function(H){return _.W(_.WQ,null,_.W("div",{class:"tabGroupShapeTabs",role:"tablist"},_.W(_.Ag,{each:H},function(l,N){return _.W(i9s,{shape:function(){return Object.assign({},l,{isLastTab:N()===H().length-1})},
customTabRenderable:l.customTabRenderable,useCustomTabRenderable:!!l.customTabRenderable})})),_.W(Js8,{width:G,
sliderOffset:J,enableTransition:t}))}}))},"uf");
_.$fl.idomCompat=!0;var Js8=_.d(function(C){var F=_.dk(C.sliderOffset,0),G=C.width,V=C.enableTransition;C={};return _.W("div",{class:_.py("tabGroupShapeSlider",(C.tabGroupShapeSliderTransition=function(){return V()},C)),
style:_.VA({width:function(){return G()+"px"},
transform:function(){return"translateX("+F()+"px)"}})})},"vf");var b9_=_.d(function(C){var F=function(){var b,z,Q;return(Q=(b=C.data().playerLogoAccessibility)==null?void 0:(z=b.accessibilityData)==null?void 0:z.label)!=null?Q:""},G=_.$b(aGA,function(){return C.data().playerEntityKey}),V={};
V=_.py("ytwFantasyPlayerViewModelHost",(V.ytwFantasyPlayerViewModelPlaying=function(){var b;return!((b=G())==null||!b.isPlayerPlaying)},V.ytwFantasyPlayerViewModelOnField=function(){var b;
return((b=G())==null?void 0:b.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},V.ytwFantasyPlayerViewModelRedZone=function(){var b;
return((b=G())==null?void 0:b.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},V));
var J=function(){var b,z,Q,E=((b=_.I8().resolve(_.Qt(_.v6)))==null?0:b())?(z=C.data().playerLogoBackgroundColor)==null?void 0:z.darkTheme:(Q=C.data().playerLogoBackgroundColor)==null?void 0:Q.lightTheme;return E===void 0?"":_.lE(E)};
return _.W("ytw-fantasy-player-view-model",{class:V},_.W(_.a,{cond:function(){return C.data().playerLogo},
then:function(b){return _.W("div",{class:"ytwFantasyPlayerViewModelLogo"},_.W("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.W(_.AC,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.VA({"background-color":J}),data:b,alt:F})),_.W("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.W(_.i5,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.W("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.W("div",{class:"ytwFantasyPlayerViewModelHeader"},_.W(_.mn,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var b;return(b=C.data())==null?void 0:b.playerNameText}}),_.W(_.mn,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var b;return(b=C.data())==null?void 0:b.playerDescriptionText}})),_.W("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.W(_.mn,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var b;return(b=G())==null?void 0:b.gamePeriodText}}),_.W(_.mn,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var b;return(b=C.data())==null?void 0:b.opponentTeamText}}),_.W(_.mn,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var b;return(b=G())==null?void 0:b.gameStatusText}}),_.W(_.mn,{className:_.py("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var b;return(b=G())==null?void 0:b.playerStatusText}})),_.W("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.W(_.mn,{text:function(){var b;
return(b=G())==null?void 0:b.playerStatsText}}))),_.W(_.mn,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var b;return(b=G())==null?void 0:b.fantasyScore}}))},"wf");var nit=_.d(function(C){return _.W("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.W(_.a,{cond:function(){return C.data().players},
then:function(F){return _.W(_.uC,{data:F},{fantasyPlayerViewModel:b9_})}}))},"xf");var uSt=_.d(function(C){var F=_.u(_.Gb(function(){var J;return(J=C.data().selectedTabIdentifierKey)!=null?J:""})),G=F.next().value,V=F.next().value;
_.s0(function(){var J;(J=C.setSelectedTabSignal)==null||J.call(C,G)});
return _.W("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.W("div",{class:"ytTabbedViewModelTabGroup"},_.W(_.$fl,{shape:function(){var J=C.data(),b=[],z={tabs:b};if(!J.tabs)return z;J=_.u(J.tabs);for(var Q=J.next(),E={};!Q.done;E={tabViewModel:void 0},Q=J.next())if(E.tabViewModel=_.Z(Q.value,ZEu),E.tabViewModel){var t=Q=void 0;b.push({aTagConfig:{onclick:function(k){return function(){var U;V((U=k.tabViewModel.tabIdentifier)!=null?U:"")}}(E)},
identifier:E.tabViewModel.tabIdentifier,selected:G()===E.tabViewModel.tabIdentifier,title:(t=(Q=E.tabViewModel.title)==null?void 0:Q.content)!=null?t:""})}return z}})),_.W(_.uC,{data:function(){var J,b=_.u((J=C.data().tabs)!=null?J:[]);
for(J=b.next();!J.done;J=b.next())if((J=_.Z(J.value,ZEu))&&J.tabIdentifier===G())return J.content}},{fantasyRosterViewModel:nit}))},"zf");_.gQ(_.d(function(C){var F=_.u(y0S()),G=F.next().value,V=F.next().value;return _.W("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.W(_.mn,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return C.data().title}}),_.W(_.a,{cond:function(){return C.data().tabbedViewModel},
then:function(J){return _.W(_.uC,{data:J},{tabbedViewModel:function(b){return _.W(uSt,{data:b.data,setSelectedTabSignal:V})}})}}),_.W(_.a,{cond:function(){var J,b=(J=_.Z(C.data().tabbedViewModel,N$m))==null?void 0:J.tabs;
J=_.Z(b==null?void 0:b[0],ZEu);b=_.Z(b==null?void 0:b[1],ZEu);var z=J==null?void 0:J.tabIdentifier;if(G()===z){var Q,E;if(!((Q=_.Z(J==null?void 0:J.content,eaG))==null?0:(E=Q.players)==null?0:E.length))return C.data().noUserTeamPlayersText}else{var t,k;if(!((t=_.Z(b==null?void 0:b.content,eaG))==null?0:(k=t.players)==null?0:k.length))return C.data().noOpponentTeamPlayersText}},
then:function(J){return _.W(_.mn,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:J})}}))},"Af"),"ytw-fantasy-matchup-view-model",{props:{data:_.CJ}});_.gQ(_.d(function(C){return _.W("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.W(_.mn,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return C.data().title}}),_.W(_.a,{cond:function(){return C.data().matchupTeamPairs},
then:function(F){return _.W(_.Ag,{each:F,keyBy:"INDEX"},function(G){return _.W("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.W(_.uC,{data:function(){return[G().firstTeam,G().secondTeam]}},{fantasyTeamViewModel:function(V){return _.W(Vqx,{data:V.data,
compact:!0})}}))})}}))},"Bf"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.CJ}});_.gQ(_.d(function(C){var F=function(){var J,b,z;return(z=(J=C.data().userLogoAccessibility)==null?void 0:(b=J.accessibilityData)==null?void 0:b.label)!=null?z:""},G=function(){var J,b,z;
return(z=(J=C.data().opponentLogoAccessibility)==null?void 0:(b=J.accessibilityData)==null?void 0:b.label)!=null?z:""},V=_.$b(WGs,function(){return C.data().entityKey});
return _.W("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.W("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.W(_.a,{cond:function(){return C.data().userLogo},
then:function(J){return _.W(_.AC,{className:"ytwFantasyWinProbabilityViewModelLogo",data:J,alt:F})}}),_.W("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.W(_.mn,{text:function(){return C.data().title}})),_.W(_.a,{cond:function(){return C.data().opponentLogo},
then:function(J){return _.W(_.AC,{className:"ytwFantasyWinProbabilityViewModelLogo",data:J,alt:G})}})),_.W("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.W("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.W(_.mn,{text:function(){var J;
return(J=V())==null?void 0:J.userWinNumberLabel}})),_.W("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.W("div",{class:_.py("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.VA({flex:function(){var J,b;return(b=(J=V())==null?void 0:J.userWinNumber)!=null?b:50}})}),_.W("div",{class:_.py("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.VA({flex:function(){var J,b;return(b=(J=V())==null?void 0:J.opponentWinNumber)!=null?b:50}})})),_.W("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.W(_.mn,{text:function(){var J;
return(J=V())==null?void 0:J.opponentWinNumberLabel}}))))},"Cf"),"fantasy-win-probability-view-model",{props:{data:_.CJ}});var z5_={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},Qw3=_.d(function(C){return _.W(_.uC,{data:C.button},{buttonViewModel:function(F){return _.W(_.tS,{data:F.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"Df"),IAM=_.d(function(C){return _.W("ytd-backstage-locked-post-view-model",{class:_.py("ytdBackstageLockedPostViewModelHost",C.className)},_.W("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.W("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.W(_.uC,
{data:function(){return C.data().authorAvatar}},{decoratedAvatarViewModel:_.R7})),_.W("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.W("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.W(_.mn,{text:function(){return C.data().authorText}})),_.W("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.W(_.mn,{text:function(){return C.data().publishedTimeText}}),_.W(_.uC,{data:function(){return C.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(F){return _.W(kyG,
{data:F.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.W("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.W(_.mn,{text:function(){return C.data().contentText}})),_.W(_.e_,null,_.W(_.hg,{when:function(){return C.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.W("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.W(_.AC,{data:z5_,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.W(_.mn,{text:function(){return C.data().lockedText}}))}),_.W(_.hg,{when:function(){return C.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.W("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.W("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.W(_.AC,{data:z5_,
alt:""})),_.W(_.mn,{text:function(){return C.data().lockedText}}))})),_.W("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.W(Qw3,{button:function(){return C.data().likeButton}}),_.W("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return C.data().voteCountA11y}},_.W(_.mn,{text:function(){return C.data().voteCount}})),_.W(Qw3,{button:function(){return C.data().dislikeButton}}),_.W(Qw3,{button:function(){return C.data().commentButton}}),_.W("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return C.data().commentCountA11y}},_.W(_.mn,{text:function(){return C.data().commentCount}}))))},"Ef");
IAM.idomCompat=!0;_.gQ(IAM,"ytd-backstage-locked-post-view-model",{props:{data:_.CJ,className:_.CJ}});_.ae("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var Vi=function(){var C=_.B.apply(this,arguments)||this;C.darkerPanels=_.y("web_watch_darker_panels");C.commentsHidePanelButton=!1;C.isWatchGrid=!1;C.continuationShowButton=!1;C.isSearch=!1;C.isConstrainedList=!1;C.isWatch=!1;C.eligibleToSwitchToGrid=!1;C.useBigThumbs=!1;C.notSticky=!1;C.epRestyle=!1;C.isCarouselInFeed=!0;C.topSpacingZero=!1;C.continuationIsInitialLoad=!0;C.enableSqueezebackPanels=_.y("web_shorts_enable_squeezeback_panels");C.enableAnchoredPanel=_.y("desktop_shorts_v2_anchored_panel");
C.mastheadHeight=0;C.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};C.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return C};
_.O(Vi,_.B);_.n=Vi.prototype;_.n.updateLockupContainerTypes=function(C){if(this.eligibleToSwitchToGrid){var F;(F=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||F.forEach(function(G){G.containerType=C})}};
_.n.getItemsPath=function(){return"data.contents"};
_.n.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.n.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",
commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},commentFilterContextViewModel:{component:"yt-comment-filter-context-view-model"},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",
compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",
faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",
eduCardViewModel:"yt-edu-card-view-model",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",
handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",
labsItemRenderer:"ytd-labs-item-renderer",linearLayoutViewModel:"yt-linear-layout-view-model",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},
settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",
subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",
unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",
isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",
videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",videoOverviewViewModel:"yt-video-overview-view-model",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},
liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",
properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.y("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.y("kevlar_low_priority_continuation")}}};
_.n.created=function(){};
_.n.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.n.handleIntersect=function(C){this.notSticky=C[0].intersectionRatio===1};
_.n.attached=function(){var C=this,F=_.y("web_item_section_sticky_header_use_scroll_as_fallback");F||document.addEventListener("scroll",_.Gp(this,this.updateHeaderState));var G;this.mastheadHeight=((G=document.querySelector("ytd-masthead"))==null?void 0:G.clientHeight)||0;this.containerWidth=this.hostElement.clientWidth||0;window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver(function(V){C.handleIntersect(V)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement)):F&&document.addEventListener("scroll",_.Gp(this,this.updateHeaderState));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){C.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.n.detached=function(){document.removeEventListener("scroll",_.Gp(this,this.updateHeaderState));var C;(C=this.intersectionObserver)==null||C.disconnect();var F;(F=this.resizeObserver)==null||F.disconnect()};
_.n.updated=function(C){C.has("data")&&this.updateHeaderState()};
_.n.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(RjG(!this.notSticky))};
_.n.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var C=_.ot(this.hostElement).querySelector("ytd-comments-header-renderer");C&&(C.hidePanelButton=this.commentsHidePanelButton)}};
_.n.onRetrieveLocation=function(C,F){this.containsComments()&&(this.firstCommentsLoaded=F.hasComments=!0)};
_.n.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.n.onLoadReloadContinuation=function(C,F){var G=this;C.stopPropagation();this.isReloading=!0;_.oo(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(V){var J=_.I8().resolve(_.zt);V=F(V);J.postData(V).then(function(b){G.onReloadContinuationData(b)})}})};
_.n.onReloadContinuationData=function(C){if(C=this.get("response.continuationContents.itemSectionContinuation",C)||this.get("response.contents.itemSectionRenderer",C)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",C)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",C))this.set("data.contents",C.contents||C.results),C.header&&this.set("data.header",C.header),this.set("data.continuations",
C.continuations||[]);this.isReloading=!1};
_.n.computeContentsClass=function(C){return C?"reloading":""};
_.n.computeSectionIdentifier=function(C){return C==null?void 0:C.sectionIdentifier};
_.n.computeFitContainer=function(C){return(C==null?void 0:C.sectionIdentifier)==="youchat-item-section"};
_.n.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.y("kevlar_disable_comments_auto_load")};
_.n.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.n.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.n.computeHasDestinationShelfRenderer=function(C){var F,G;return!!(C==null?0:(F=C.contents)==null?0:(G=F[0])==null?0:G.destinationShelfRenderer)};
_.n.computeHasSectionGroupViewModel=function(C){var F,G;return!!(C==null?0:(F=C.contents)==null?0:(G=F[0])==null?0:G.sectionGroupViewModel)};
_.n.computeHasQrCodeRenderer=function(C){var F,G;return!!(C==null?0:(F=C.contents)==null?0:(G=F[0])==null?0:G.qrCodeRenderer)};
_.n.computeStaticCommentsHeader=function(C){return C&&this.containsComments()};
_.n.computeEpRestyle=function(C){return _.y("web_ep_restyling")&&C&&this.containsComments()};
_.n.computeIsContinuationCommentSection=function(C){return(C==null?void 0:C.targetId)==="shorts-engagement-panel-comments-section"||(C==null?void 0:C.targetId)==="comments-section"||(C==null?void 0:C.targetId)==="engagement-panel-comments-section"};
_.n.computeSuppressPaddingDisclaimer=function(){var C,F,G,V;return!!((C=this.data)==null?0:(F=C.contents)==null?0:(G=F[0])==null?0:(V=G.productListHeaderRenderer)==null?0:V.suppressPaddingDisclaimer)};
_.n.computeHeaderStyle=function(C){switch(C==null?void 0:C.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.n.dataChanged=function(){this.firstCommentsLoaded=!1};
_.n.observeDataContentsLength=function(){var C,F;((C=this.data)==null?0:(F=C.contents)==null?0:F.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.n.onYtDismissibleItemDismissedChange=function(C){this._setItemDismissed(C.type==="yt-dismissible-item-dismissed")};
_.n.triggerContinuations=function(){for(var C=_.ot(this.hostElement).querySelector("#continuations").children,F=0;F<C.length;F++)C[F].trigger()};
_.n.triggerInitialContinuations=function(){for(var C=_.ot(this.hostElement).querySelector("#continuations").children,F=0;F<C.length;F++)C[F].triggerIfNotPreviouslyTriggered()};
_.n.handleYtItemSectionContinuation=function(C,F){var G;F&&((G=this.data)==null?void 0:G.sectionIdentifier)!==F||(this.set("data.continuations",[C]),this.triggerContinuations())};
_.n.handleYtItemSectionReplace=function(C,F){var G;F&&((G=this.data)==null?void 0:G.sectionIdentifier)!==F||(this.set("data.contents",C),this.set("data.continuations",[]))};
_.n.computeUseHeightHack=function(C){return C&&!_.y("kevlar_disable_height_hack")};
_.n.computeTopSpacingZero=function(C){return C};
_.n.continuationShowButtonChanged=function(){var C=_.ot(this.hostElement).querySelector("ytd-continuation-item-renderer");C&&(C.showButton=this.continuationShowButton)};
_.n.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G6("data-changed",this.data))};
_.I6.Object.defineProperties(Vi.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.y("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
hasHeader:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.header)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.y("web_fix_sticky_playlist_header")}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var C,F,G;return!!((C=this.data)==null?0:(F=C.contents)==null?0:(G=F[0])==null?0:G.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var C,F,G,V,J,b,z;return!!((C=this.data)==null?0:(F=C.contents)==null?0:(G=F[0])==null?0:(V=G.shelfRenderer)==null?0:(J=V.content)==null?0:(b=J.gridRenderer)==null?0:(z=b.targetId)==null?0:z.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var C,F,G;return!!((C=this.data)==null?0:(F=C.contents)==null?0:(G=F[0])==null?0:G.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var C,F,G;return!!((C=this.data)==null?0:(F=C.contents)==null?0:(G=F[0])==null?0:G.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.kU("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.y("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.y("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
Vi.prototype.dataChangedForBinding=Vi.prototype.dataChangedForBinding;Vi.prototype.continuationShowButtonChanged=Vi.prototype.continuationShowButtonChanged;Vi.prototype.onYtDismissibleItemDismissedChange=Vi.prototype.onYtDismissibleItemDismissedChange;Vi.prototype.observeDataContentsLength=Vi.prototype.observeDataContentsLength;Vi.prototype.dataChanged=Vi.prototype.dataChanged;Vi.prototype.onServiceRequestCompleted=Vi.prototype.onServiceRequestCompleted;Vi.prototype.onLoadReloadContinuation=Vi.prototype.onLoadReloadContinuation;
Vi.prototype.onRetrieveLocation=Vi.prototype.onRetrieveLocation;Vi.prototype.commentsHidePanelButtonChanged=Vi.prototype.commentsHidePanelButtonChanged;Vi.prototype.dispatchChipBarIsSticky=Vi.prototype.dispatchChipBarIsSticky;Vi.prototype.updateLockupContainerTypes=Vi.prototype.updateLockupContainerTypes;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],Vi.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Vi.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Vi.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.zR.YtLazyListBehavior),_.Y("design:type",Object)],Vi.prototype,"ytLazyListBehavior",void 0);_.R([_.w(_.VD.YtNextContinuationBehavior),_.Y("design:type",Object)],Vi.prototype,"ytNextContinuationBehavior",void 0);
_.R([_.w(_.G1),_.Y("design:type",Object)],Vi.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Vi.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],Vi.prototype,"ytdReduxBehavior",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Vi.prototype,"darkerPanels",void 0);_.R([_.L(),_.Y("design:type",Object)],Vi.prototype,"data",void 0);
_.R([_.L(),_.Y("design:type",Boolean)],Vi.prototype,"engagementPanel",void 0);_.R([_.L(),_.Y("design:type",Object)],Vi.prototype,"commentsHidePanelButton",void 0);_.R([_.L(),_.Y("design:type",Object)],Vi.prototype,"isWatchGrid",void 0);_.R([_.L(),_.Y("design:type",Object)],Vi.prototype,"continuationShowButton",void 0);_.R([_.L({computed:"computeIsContinuationCommentSection(data)"}),_.Y("design:type",Boolean)],Vi.prototype,"continuationIsCommentsSection",void 0);
_.R([_.L({value:!0}),_.Y("design:type",Boolean)],Vi.prototype,"autoFill",void 0);_.R([_.L(),_.Y("design:type",Boolean)],Vi.prototype,"continuationDisablePrescanVisibility",void 0);_.R([_.L(),_.Y("design:type",Boolean)],Vi.prototype,"isReloading",void 0);_.R([_.L(),_.Y("design:type",Object)],Vi.prototype,"isSearch",void 0);_.R([_.L(),_.Y("design:type",Object)],Vi.prototype,"isConstrainedList",void 0);_.R([_.L(),_.Y("design:type",Object)],Vi.prototype,"isWatch",void 0);
_.R([_.L(),_.Y("design:type",Object)],Vi.prototype,"eligibleToSwitchToGrid",void 0);_.R([_.L(),_.Y("design:type",Object)],Vi.prototype,"useBigThumbs",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Vi.prototype,"notSticky",void 0);_.R([_.L({selector:_.ZH,reflectToAttribute:!0}),_.Y("design:type",Object)],Vi.prototype,"isGridViewEnabled",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.Y("design:type",Object)],Vi.prototype,"epRestyle",void 0);_.R([_.M("isWatch"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Vi.prototype,"hideShortsShelfHeader",null);_.R([_.M("isSearch","isWatch"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Vi.prototype,"thumbnailWidth",null);
_.R([_.M("isSearch","containerWidth"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Vi.prototype,"thumbnailTargetWidth",null);_.R([_.M("isSearch","isWatch"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Vi.prototype,"sizing",null);_.R([_.M("isWatch","isGridViewEnabled","useBigThumbs","data"),_.L({reflectToAttribute:!0}),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Vi.prototype,"lockupContainerType",null);
_.R([_.M("data"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Vi.prototype,"hasHeader",null);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Vi.prototype,"expFixPlaylistHeader",null);_.R([_.iP("lockupContainerType","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[Number]),_.Y("design:returntype")],Vi.prototype,"updateLockupContainerTypes",null);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],Vi.prototype,"pageSubtype",void 0);_.R([_.L(),_.Y("design:type",Number)],Vi.prototype,"containerWidth",void 0);_.R([_.L(),_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Vi.prototype,"isPlaylist",null);_.R([_.L(),_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Vi.prototype,"isClipList",null);_.R([_.L(),_.Y("design:type",Object)],Vi.prototype,"isCarouselInFeed",void 0);
_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Vi.prototype,"isPlaylistVideoContainer",null);_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Vi.prototype,"isSearchFrictionPage",null);_.R([_.L({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.Y("design:type",Boolean)],Vi.prototype,"useHeightHack",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.Y("design:type",Object)],Vi.prototype,"topSpacingZero",void 0);_.R([_.L({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.Y("design:type",Boolean)],Vi.prototype,"showButton",void 0);_.R([_.L(),_.Y("design:type",Boolean)],Vi.prototype,"firstCommentsLoaded",void 0);_.R([_.L(),_.Y("design:type",Object)],Vi.prototype,"continuationIsInitialLoad",void 0);
_.R([_.L({reflectToAttribute:!0,readOnly:!0}),_.Y("design:type",Boolean)],Vi.prototype,"itemDismissed",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.Y("design:type",String)],Vi.prototype,"sectionIdentifier",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.Y("design:type",String)],Vi.prototype,"fitContainer",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.Y("design:type",Boolean)],Vi.prototype,"hasDestinationShelfRenderer",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.Y("design:type",Boolean)],Vi.prototype,"staticCommentsHeader",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Vi.prototype,"enableSqueezebackPanels",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Vi.prototype,"enableAnchoredPanel",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.Y("design:type",Boolean)],Vi.prototype,"hasSectionGroupViewModel",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.Y("design:type",Boolean)],Vi.prototype,"hasQrCodeRenderer",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.Y("design:type",Boolean)],Vi.prototype,"suppressDisclaimerSeparator",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.Y("design:type",String)],Vi.prototype,"headerStyle",void 0);_.R([_.M("isSearch"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Vi.prototype,"lockupExperiments",null);
_.R([_.M("isSearch"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Vi.prototype,"typographyBump",null);_.R([_.$z("#header"),_.Y("design:type",HTMLElement)],Vi.prototype,"header",void 0);_.R([_.iP("notSticky"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Vi.prototype,"dispatchChipBarIsSticky",null);
_.R([_.iP("commentsHidePanelButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Vi.prototype,"commentsHidePanelButtonChanged",null);_.R([_.VG("yt-retrieve-location"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],Vi.prototype,"onRetrieveLocation",null);
_.R([_.VG("yt-load-reload-continuation"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Function]),_.Y("design:returntype")],Vi.prototype,"onLoadReloadContinuation",null);_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Vi.prototype,"onServiceRequestCompleted",null);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Vi.prototype,"dataChanged",null);
_.R([_.zp("data.contents.length"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Vi.prototype,"observeDataContentsLength",null);_.R([_.VG("yt-dismissible-item-dismissed"),_.VG("yt-dismissible-item-undismissed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Vi.prototype,"onYtDismissibleItemDismissedChange",null);
_.R([_.iP("continuationShowButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Vi.prototype,"continuationShowButtonChanged",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Vi.prototype,"dataChangedForBinding",null);_.R([_.e({is:"ytd-item-section-renderer",disableElementRegistration:!0})],Vi);
_.q(Vi,"ytd-item-section-renderer",function(){if(kqy!==void 0)return kqy;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return kqy=C},{mode:1});var EiV;var OMT=_.eN(_.iQ("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var WWW={},NFq=(WWW[0]={title:_.YB(_.iQ("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.YB(_.iQ("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.gh("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},WWW[1]={title:_.YB(_.iQ("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.gh("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},WWW);_.ae("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var i6=function(){var C=_.B.apply(this,arguments)||this;C.allVideosCount=0;C.allPlaylistCount=0;C.isOnline=!1;C.shouldRenderDownloadsBanner=!1;C.shouldRenderDownloadsBannerUpsell=!1;C.hasOptedIntoSmartDownloads=!1;C.areAllSmartDownloadsDeleted=!1;C.smartDownloadsCompleted=!1;return C};
_.O(i6,_.B);i6.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
i6.prototype.attached=function(){this.downloadsToRenderChanged()};
i6.prototype.detached=function(){this.set("renderableData",{})};
i6.prototype.downloadsToRenderChanged=function(){var C=_.s3().getState().entities,F=_.aA(C),G=_.y("kevlar_playlist_dl_page_killswitch")?OJi(C):_.k2(C),V=_.kVS(C),J=_.ySS(C),b=_.zc(F);C=_.U3(C);this.set("renderableData",wMW(G,F,V,J,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,b,C))};
i6.prototype.downloadsToRenderChanged=i6.prototype.downloadsToRenderChanged;_.R([_.w(_.Rr),_.Y("design:type",Object)],i6.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],i6.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],i6.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],i6.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],i6.prototype,"renderableData",void 0);_.R([_.L({selector:_.dQo}),_.Y("design:type",Object)],i6.prototype,"allVideosCount",void 0);_.R([_.L({selector:z4B}),_.Y("design:type",Object)],i6.prototype,"allPlaylistCount",void 0);_.R([_.L({selector:_.NW}),_.Y("design:type",Object)],i6.prototype,"isOnline",void 0);_.R([_.L({selector:_.Ybi}),_.Y("design:type",Object)],i6.prototype,"shouldRenderDownloadsBanner",void 0);
_.R([_.L({selector:_.KPB}),_.Y("design:type",Object)],i6.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.R([_.L({selector:_.Tqo}),_.Y("design:type",Object)],i6.prototype,"hasOptedIntoSmartDownloads",void 0);_.R([_.L({selector:_.oa9}),_.Y("design:type",Object)],i6.prototype,"areAllSmartDownloadsDeleted",void 0);_.R([_.L({selector:rSS}),_.Y("design:type",Object)],i6.prototype,"smartDownloadsCompleted",void 0);
_.R([_.zp("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],i6.prototype,"downloadsToRenderChanged",null);_.R([_.e({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],i6);
_.q(i6,"ytd-offline-item-section-renderer",function(){if(EiV!==void 0)return EiV;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return EiV=C},
{mode:1});var tqt;var aAr;var J7=function(){return _.B.apply(this,arguments)||this};
_.O(J7,_.B);
J7.prototype.onDataChanged=function(){if(this.JSC$16830_lastData){var C=this.getFilterClass(this.JSC$16830_lastData.status);C&&this.hostElement.classList.remove(C)}var F;(C=this.getFilterClass((F=this.data)==null?void 0:F.status))&&this.hostElement.classList.add(C);C==="selected"?_.ot(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.ot(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");C==="disabled"?_.ot(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.ot(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16830_lastData=this.data};
J7.prototype.getFilterClass=function(C){switch(C){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
J7.prototype.onDataChanged=J7.prototype.onDataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],J7.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],J7.prototype,"data",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],J7.prototype,"onDataChanged",null);_.R([_.e({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],J7);
_.q(J7,"ytd-search-filter-renderer",function(){if(aAr!==void 0)return aAr;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return aAr=C},{mode:_.oN("kevlar_poly_si_batch_j075")?1:2});var $q=function(){return _.B.apply(this,arguments)||this};
_.O($q,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],$q.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],$q.prototype,"data",void 0);_.R([_.e({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],$q);
_.q($q,"ytd-search-filter-group-renderer",function(){if(tqt!==void 0)return tqt;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return tqt=C},{mode:_.oN("kevlar_poly_si_batch_j075")?1:2});var kEl;var b6=function(){return _.B.apply(this,arguments)||this};
_.O(b6,_.B);b6.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.a4());this.isCollapsed=!this.isCollapsed};
b6.prototype.navigateToAboutTheseResultsPage=function(){var C=_.sL("https://www.youtube.com/howyoutubeworks/product-features/search/");C?_.Cv(window,C,"_blank"):_.ri(Error("Uh"))};
b6.prototype.dataChanged=function(){this.isCollapsed=!0};
b6.prototype.computeShowBottomBorder=function(){var C,F,G;return!!((C=this.data)==null?0:(F=C.button)==null?0:F.toggleButtonRenderer)||!((G=this.data)==null||!G.aboutTheseResultsButton)};
b6.prototype.dataChanged=b6.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],b6.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],b6.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.Y("design:type",Boolean)],b6.prototype,"showBottomBorder",void 0);_.R([_.L(),_.Y("design:type",Boolean)],b6.prototype,"renderCollapsibleMenu",void 0);
_.R([_.L(),_.Y("design:type",Boolean)],b6.prototype,"isCollapsed",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],b6.prototype,"dataChanged",null);_.R([_.e({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],b6);
_.q(b6,"ytd-search-sub-menu-renderer",function(){if(kEl!==void 0)return kEl;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return kEl=C},{mode:1});var UfV;var H9L=new _.jh("SECTION_LIST_RENDERER_TOKEN");var lAt;var nF=function(){return _.B.apply(this,arguments)||this};
_.O(nF,_.B);nF.prototype.computeStyle=function(C){return C?C.toLowerCase().replace(/_/g,"-"):""};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],nF.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],nF.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],nF.prototype,"headerStyle",void 0);_.R([_.e({is:"ytd-text-header-renderer",disableElementRegistration:!0})],nF);
_.q(nF,"ytd-text-header-renderer",function(){if(lAt!==void 0)return lAt;var C=document.createElement("template");_.X(C,"\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");C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return lAt=C},{mode:1});var yss;var u6=function(){return _.B.apply(this,arguments)||this};
_.O(u6,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],u6.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],u6.prototype,"data",void 0);_.R([_.e({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],u6);
_.q(u6,"ytd-minor-moment-header-renderer",function(){if(yss!==void 0)return yss;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return yss=C},{mode:1});var Z9d;var z8=function(){return _.B.apply(this,arguments)||this};
_.O(z8,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],z8.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],z8.prototype,"data",void 0);_.R([_.e({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],z8);
_.q(z8,"ytd-minor-moment-setting-alert-renderer",function(){if(Z9d!==void 0)return Z9d;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Z9d=C},{mode:1});var NI8;var O98;var Qi=function(){var C=_.B.apply(this,arguments)||this;C.booleanSettingById=!1;C.smartDownloadsEnabledVE=_.m2(128287);C.smartDownloadsDisabledVE=_.m2(128286);C.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return C};
_.O(Qi,_.B);_.n=Qi.prototype;_.n.attachSmartDownloadsSettingVes=function(){var C;this.activeVeForLogging||((C=this.data)==null?void 0:C.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.Of(_.ia(),this.smartDownloadsEnabledVE),_.Of(_.ia(),this.smartDownloadsDisabledVE))};
_.n.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.oo(this.hostElement,"yt-settings-switch-ready")};
_.n.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.n.onSwitchChange=function(C){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(C=_.ev(C).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.y("kevlar_settings_switch_resolve_command_killswitch")?_.I8().resolve(_.WD).resolveCommand(C,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(C)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.n.handleUpdateSettingsSwitch=function(C){(C=_.Z(C,VH8))&&this.data&&this.data.id===C.id&&this.set("data.enabled",!!C.enabled)};
_.n.onToggleSettingsSwitch=function(C,F){this.data&&this.data.id===C&&this.set("data.enabled",F!=null?F:!this.data.enabled)};
_.n.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.Ef.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.n.maybeLogSmartDownloadsSettingVisibility=function(){var C=_.ZQ(),F;C&&((F=this.data)==null?void 0:F.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.cA(C,[this.smartDownloadsEnabledVE]),_.A3(C,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.cA(C,[this.smartDownloadsDisabledVE]),_.A3(C,[this.smartDownloadsEnabledVE])))};
_.n.maybeLogSmartDownloadsSettingClick=function(){var C;((C=this.data)==null?void 0:C.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.wo(_.ia(),this.activeVeForLogging)};
_.n.updateDataEnabledFromBinding=function(C){this.set("data.enabled",C.detail.value)};
_.I6.Object.defineProperties(Qi.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var C=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!C&&(C=this.ytRendererBehavior.getSimpleString(this.data.title));return C}}});
Qi.prototype.dataChanged=Qi.prototype.dataChanged;_.R([_.w(_.Rr),_.Y("design:type",Object)],Qi.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Qi.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],Qi.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Qi.prototype,"ytComponentBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],Qi.prototype,"data",void 0);_.R([_.L({selector:function(C,F){if(Object.keys(C==null?void 0:C.entities).length)switch(F){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return Xnw(C.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.Y("design:type",Object)],Qi.prototype,"booleanSettingById",void 0);_.R([_.L(),_.Y("design:type",H9)],Qi.prototype,"activeVeForLogging",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Qi.prototype,"toggleAriaLabel",null);_.R([_.zp("data"),_.zp("booleanSettingById"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qi.prototype,"dataChanged",null);
_.R([_.e({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],Qi);
_.q(Qi,"ytd-settings-switch-renderer",function(){if(O98!==void 0)return O98;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return O98=C},{mode:1});var IH=function(){return _.B.apply(this,arguments)||this};
_.O(IH,_.B);IH.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}}}}};
_.I6.Object.defineProperties(IH.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var C=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(C+=" remove-left-margin");this.data.extraBottomSpace&&(C+=" extra-bottom-space");return C}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],IH.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],IH.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],IH.prototype,"data",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],IH.prototype,"contentsClassName",null);_.R([_.e({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],IH);
_.q(IH,"ytd-minor-moment-setting-section-renderer",function(){if(NI8!==void 0)return NI8;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return NI8=C},{mode:1});var Xoh;var EJ=function(){return _.B.apply(this,arguments)||this};
_.O(EJ,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],EJ.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],EJ.prototype,"componentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],EJ.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],EJ);
_.q(EJ,"ytd-empty-product-details-renderer",function(){if(Xoh!==void 0)return Xoh;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Xoh=C},{mode:1});var woW;var Mqx;var W4=function(){var C=_.B.apply(this,arguments)||this;C.expanded=!0;return C};
_.O(W4,_.B);W4.prototype.getBadgeRowClass=function(C,F,G){for(var V=_.u(this.hostElement.querySelectorAll("yt-img-shadow")),J=V.next();!J.done;J=V.next())J.value.onShow();C=C.selected;return G?C!==-1?C===F?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(C!==void 0?C:0)===F?"badge-line":"badge-hidden"};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],W4.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],W4.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],W4.prototype,"expanded",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],W4);
_.q(W4,"ytd-sponsorships-loyalty-badges-renderer",function(){if(Mqx!==void 0)return Mqx;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Mqx=C},{mode:1});var SB_;var t7=function(){var C=_.B.apply(this,arguments)||this;C.expanded=!0;return C};
_.O(t7,_.B);t7.prototype.getContainerClasses=function(C,F){C=C?"expanded":"collapsed";F&&(C+=" item");return C};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],t7.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],t7.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],t7.prototype,"expanded",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],t7);
_.q(t7,"ytd-sponsorships-perk-renderer",function(){if(SB_!==void 0)return SB_;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return SB_=C},{mode:1});var LW_;var aH=function(){var C=_.B.apply(this,arguments)||this;C.expanded=!0;return C};
_.O(aH,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],aH.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],aH.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],aH.prototype,"expanded",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],aH);
_.q(aH,"ytd-sponsorships-perks-renderer",function(){if(LW_!==void 0)return LW_;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return LW_=C},{mode:1});var kq=function(){var C=_.B.apply(this,arguments)||this;C.isCollapsed=!1;return C};
_.O(kq,_.B);kq.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
kq.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
kq.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var C;this.expandCollapseButton=_.Z((C=this.data)==null?void 0:C.expandButton,_.DY)}else{var F;this.expandCollapseButton=_.Z((F=this.data)==null?void 0:F.collapseButton,_.DY)}};
kq.prototype.updateExpandCollapseButton=kq.prototype.updateExpandCollapseButton;kq.prototype.onDataChanged=kq.prototype.onDataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],kq.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],kq.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],kq.prototype,"isCollapsed",void 0);_.R([_.L(),_.Y("design:type",Object)],kq.prototype,"expandCollapseButton",void 0);
_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kq.prototype,"onDataChanged",null);_.R([_.zp("data","isCollapsed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kq.prototype,"updateExpandCollapseButton",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],kq);
_.q(kq,"ytd-sponsorships-expandable-perks-renderer",function(){if(woW!==void 0)return woW;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return woW=C},{mode:1});var BI8;var UJ=function(){return _.B.apply(this,arguments)||this};
_.O(UJ,_.B);UJ.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],UJ.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],UJ.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],UJ.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],UJ);
_.q(UJ,"ytd-sponsorships-actionable-message-renderer",function(){if(BI8!==void 0)return BI8;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return BI8=C},{mode:1});var viW;var H4=function(){return _.B.apply(this,arguments)||this};
_.O(H4,_.B);_.n=H4.prototype;_.n.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.n.getExpansionIcon=function(C){return C?"COLLAPSE":"EXPAND"};
_.n.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.n.computeMessageContainerStyle=function(C){var F=C.expandableItems?" style-clickable":"";return C.messageContainerStyle?C.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+F:"style-unspecified"+F};
_.n.isSinglePerk=function(C){return!!C.messageContainerStyle&&(C.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||C.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.n.onExpandedChanged=function(){var C=this;if(this.expanded)for(var F=_.u(this.hostElement.querySelectorAll("yt-img-shadow")),G=F.next();!G.done;G=F.next())G.value.onShow();_.zH(this,function(){_.oo(C.hostElement,"yt-refit")})};
_.n.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
H4.prototype.onDataChanged=H4.prototype.onDataChanged;H4.prototype.onExpandedChanged=H4.prototype.onExpandedChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],H4.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],H4.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],H4.prototype,"data",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],H4.prototype,"expanded",void 0);
_.R([_.iP("expanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],H4.prototype,"onExpandedChanged",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],H4.prototype,"onDataChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],H4);
_.q(H4,"ytd-sponsorships-expandable-message-renderer",function(){if(viW!==void 0)return viW;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return viW=C},{mode:_.oN("kevlar_poly_si_batch_j028")?1:2});var fAt;var l6=function(){return _.B.apply(this,arguments)||this};
_.O(l6,_.B);l6.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"}}}}};
l6.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.Z(this.data.endButton,_.DY).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
l6.prototype.onDataChanged=l6.prototype.onDataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],l6.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],l6.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],l6.prototype,"data",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],l6.prototype,"onDataChanged",null);
_.R([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],l6);
_.q(l6,"ytd-sponsorships-heading-renderer",function(){if(fAt!==void 0)return fAt;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return fAt=C},{mode:1});var h58;var yi=function(){return _.B.apply(this,arguments)||this};
_.O(yi,_.B);_.R([_.L(),_.Y("design:type",Object)],yi.prototype,"data",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],yi.prototype,"ytRendererBehavior",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],yi);
_.q(yi,"ytd-sponsorships-links-renderer",function(){if(h58!==void 0)return h58;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return h58=C},{mode:1});var csW;var Z3=function(){return _.B.apply(this,arguments)||this};
_.O(Z3,_.B);_.n=Z3.prototype;_.n.onDataChanged=function(){if(this.data&&this.data.expandableItems){var C;(C=_.ot(this.hostElement).querySelector("tp-yt-paper-button"))==null||C.setAttribute("role","button")}else{var F;(F=_.ot(this.hostElement).querySelector("tp-yt-paper-button"))==null||F.removeAttribute("role")}};
_.n.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.n.getExpansionIcon=function(C){return C?"COLLAPSE":"EXPAND"};
_.n.getTileClasses=function(C){return C?"tile expandable-tile":"tile"};
_.n.getButtonDisabled=function(C){return C?void 0:""};
Z3.prototype.onDataChanged=Z3.prototype.onDataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Z3.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Z3.prototype,"data",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],Z3.prototype,"expanded",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Z3.prototype,"onDataChanged",null);
_.R([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],Z3);
_.q(Z3,"ytd-sponsorships-list-tile-renderer",function(){if(csW!==void 0)return csW;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return csW=C},{mode:1});var AsU;var e5L;var Ny=function(){return _.B.apply(this,arguments)||this};
_.O(Ny,_.B);Ny.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Ny.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Ny.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Ny.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],Ny);
_.q(Ny,"ytd-sponsorships-promotion-renderer",function(){if(e5L!==void 0)return e5L;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return e5L=C},{mode:1});var df_;var OJ=function(){return _.B.apply(this,arguments)||this};
_.O(OJ,_.B);OJ.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],OJ.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],OJ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],OJ.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],OJ);
_.q(OJ,"ytd-sponsorships-purchase-option-renderer",function(){if(df_!==void 0)return df_;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return df_=C},{mode:1});var xfd;var sw3;var qBl=function(){return _.B.apply(this,arguments)||this};
_.O(qBl,_.B);_.R([_.L(),_.Y("design:type",Object)],qBl.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],qBl);
_.q(qBl,"ytd-ypc-offer-promo-renderer",function(){if(sw3!==void 0)return sw3;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return sw3=C},{mode:1});var Xv=function(){return _.B.apply(this,arguments)||this};
_.O(Xv,_.B);_.n=Xv.prototype;
_.n.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"}}}}};
_.n.expansionCTA=function(C,F){return C&&(F?C.collapseCallToAction:C.expansionCallToAction)};
_.n.getExpansionIcon=function(C){return C?"COLLAPSE":"EXPAND"};
_.n.expansionCallToActionTap=function(){var C=this;this.expanded=!this.expanded;_.zH(this,function(){_.oo(C.hostElement,"yt-refit")})};
_.n.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var C,F=(C=this.data)==null?void 0:C.onVisible;F&&this.ytComponentBehavior.resolveCommand(F)};
_.n.computeDisplayTitle=function(C){return!(!C||this.titledisplaystatus!=="show")};
_.n.computeDisplaySeparator=function(){return!1};
_.n.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
Xv.prototype.onDataChanged=Xv.prototype.onDataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Xv.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Xv.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Xv.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Xv.prototype,"data",void 0);
_.R([_.L({value:!1}),_.Y("design:type",Boolean)],Xv.prototype,"expanded",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],Xv.prototype,"purchaseButtonClicked",void 0);_.R([_.L({reflectToAttribute:!0,value:"show"}),_.Y("design:type",String)],Xv.prototype,"titledisplaystatus",void 0);_.R([_.L({computed:"computeDisplayTitle(data.title)"}),_.Y("design:type",Boolean)],Xv.prototype,"displayTitle",void 0);
_.R([_.L({computed:"computeDisplaySeparator(data)"}),_.Y("design:type",Boolean)],Xv.prototype,"displaySeparator",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Xv.prototype,"onDataChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],Xv);
_.q(Xv,"ytd-sponsorships-tier-renderer",function(){if(xfd!==void 0)return xfd;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return xfd=C},{mode:2});var w_=function(){return _.B.apply(this,arguments)||this};
_.O(w_,_.B);
w_.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"}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],w_.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],w_.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],w_.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],w_);
_.q(w_,"ytd-sponsorships-management-renderer",function(){if(AsU!==void 0)return AsU;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return AsU=C},{mode:1});var PZM;var My=function(){return _.B.apply(this,arguments)||this};
_.O(My,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],My.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],My.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],My);
_.q(My,"ytd-open-in-native-app-view-model",function(){if(PZM!==void 0)return PZM;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return PZM=C},{mode:_.oN("kevlar_poly_si_batch_j028")?1:2});var git;var R58;var YB3=_.h6(["top-"]),TIM=_.h6(["bottom-"]),ois=_.h6(["left-"]),rsr=_.h6(["right-"]),KWU={},Dfd=function(C,F,G){C.removeAttribute("top-"+G);C.removeAttribute("bottom-"+G);C.removeAttribute("left-"+G);C.removeAttribute("right-"+G);F&&(F.top&&_.bi([_.Wj(YB3)],C,"top-"+G,F.top),F.bottom&&_.bi([_.Wj(TIM)],C,"bottom-"+G,F.bottom),F.left&&_.bi([_.Wj(ois)],C,"left-"+G,F.left),F.right&&_.bi([_.Wj(rsr)],C,"right-"+G,F.right))};
KWU.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(C){var F,G=_.ot((F=this.hostElement)!=null?F:this),V;F=this.cardItemBoxBehaviorMarginTargetId&&G?G.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(V=this.hostElement)!=null?V:this;Dfd(F,C,"margin")},
cardItemContainerPaddingChanged_:function(C){var F,G=_.ot((F=this.hostElement)!=null?F:this),V;F=this.cardItemBoxBehaviorPaddingTargetId&&G?G.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(V=this.hostElement)!=null?V:this;Dfd(F,C,"padding")}}];var Sb={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 po3;var mfd;var LF=function(){return _.B.apply(this,arguments)||this};
_.O(LF,_.B);LF.prototype.textColorChanged_=function(){this.hostElement.style.color=Sb[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
LF.prototype.textColorChanged_=LF.prototype.textColorChanged_;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],LF.prototype,"ytRendererBehavior",void 0);_.R([_.w(KWU.YtCardItemBoxBehavior),_.Y("design:type",Object)],LF.prototype,"ytCardItemBoxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],LF.prototype,"data",void 0);_.R([_.iP("data.textColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],LF.prototype,"textColorChanged_",null);
_.R([_.Z5({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],LF);
_.q(LF,"yt-card-item-text-renderer",function(){if(mfd===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;po3===void 0&&(po3=document.createElement("template"));var V=po3;G.call(F,V.content.cloneNode(!0),C.content.firstChild);mfd=C}C=mfd;return C},{mode:2});var C8h;var jlt;var B4=function(){return _.B.apply(this,arguments)||this};
_.O(B4,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],B4.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],B4.prototype,"data",void 0);_.R([_.Z5({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],B4);
_.q(B4,"yt-card-item-badge-renderer",function(){if(jlt===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;C8h===void 0&&(C8h=document.createElement("template"));var V=C8h;G.call(F,V.content.cloneNode(!0),C.content.firstChild);jlt=C}C=jlt;return C},{mode:2});var F$s;var G7U;var v4=function(){return _.B.apply(this,arguments)||this};
_.O(v4,_.B);v4.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],v4.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],v4.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],v4.prototype,"data",void 0);_.R([_.Z5({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],v4);
_.q(v4,"yt-card-item-text-collection-renderer",function(){if(G7U===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;F$s===void 0&&(F$s=document.createElement("template"));var V=F$s;G.call(F,V.content.cloneNode(!0),C.content.firstChild);G7U=C}C=G7U;return C},{mode:2});var VGM;var iPd;var fF=function(){return _.B.apply(this,arguments)||this};
_.O(fF,_.B);fF.prototype.configureRendererStamper=function(){return{"data.textCollectionRenderer":{id:"card-item-text-collection-renderer",mapping:{cardItemTextCollectionRenderer:"yt-card-item-text-collection-renderer"}},"data.buttonRenderer":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{iconSize:"[[iconSize]]"}}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],fF.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],fF.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],fF.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Number)],fF.prototype,"iconSize",void 0);_.R([_.Z5({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],fF);
_.q(fF,"yt-card-item-text-with-button-renderer",function(){if(iPd===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;VGM===void 0&&(VGM=document.createElement("template"));var V=VGM;G.call(F,V.content.cloneNode(!0),C.content.firstChild);iPd=C}C=iPd;return C},{mode:2});var h7=function(){return _.B.apply(this,arguments)||this};
_.O(h7,_.B);h7.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"}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],h7.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],h7.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],h7.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],h7.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],h7);
_.q(h7,"ytd-commerce-cart-summary-line-item-renderer",function(){if(R58!==void 0)return R58;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return R58=C},{mode:1});_.ae("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var c4=function(){var C=_.B.apply(this,arguments)||this;C.hidden=!1;return C};
_.O(c4,_.B);_.n=c4.prototype;_.n.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"}}}}};
_.n.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.n.updateSummary=function(){var C=this.commerceCartCheckoutButtonEntity,F;if(((F=this.data)==null?0:F.cartButton)&&C.checkoutSummaryText){var G,V=tk((G=this.data)==null?void 0:G.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+V+".cardItemTextRenderer.text",av(C.checkoutSummaryText));if(C.checkoutDetailText){var J;G=tk((J=this.data)==null?void 0:J.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+G+".cardItemTextRenderer.text",av(C.checkoutDetailText))}if(C.checkoutAdditionalMetadataText){var b;
J=tk((b=this.data)==null?void 0:b.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+J+".cardItemTextRenderer.text",av(C.checkoutAdditionalMetadataText))}}else C.estimatedTotalPrice&&(b=tk((V=this.data)==null?void 0:V.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+b+".cardItemTextRenderer.text",av(C.estimatedTotalPrice)))};
_.n.updateIsHidden=function(){var C,F=(C=this.commerceCartCheckoutButtonEntity)==null?void 0:C.isHidden;F!==void 0&&(this.hidden=F)};
_.n.updateCheckoutButton=function(){var C,F=(C=this.commerceCartCheckoutButtonEntity)==null?void 0:C.isDisabled;F!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",F);var G;C=(G=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:G.innertubeCommand;C!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",C);var V;G=(V=this.commerceCartCheckoutButtonEntity)==null?void 0:V.checkoutButtonText;G!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:G})};
c4.prototype.entityChanged=c4.prototype.entityChanged;_.R([_.w(_.Rr),_.Y("design:type",Object)],c4.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],c4.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],c4.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],c4.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],c4.prototype,"fullWidth",void 0);_.R([_.L(),_.Y("design:type",Object)],c4.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],c4.prototype,"compact",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],c4.prototype,"hidden",void 0);
_.R([_.L({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:iso}),_.Y("design:type",Object)],c4.prototype,"commerceCartCheckoutButtonEntity",void 0);_.R([_.iP("commerceCartCheckoutButtonEntity","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],c4.prototype,"entityChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],c4);
_.q(c4,"ytd-commerce-cart-checkout-button-renderer",function(){if(git!==void 0)return git;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return git=C},{mode:2});var JOr;_.$ot={};
_.$ot.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",_.Gp(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.Gp(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(C){!this.tappableItemBehaviorTapEnabled||C.keyCode!==13&&C.keyCode!==32||C.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var C=this.data.onTap;C.ypcGetCartEndpoint?(_.DQ(this.hostElement,[C]),this.tappableItemBehaviorTapEnabled=!1):C.ypcOffersEndpoint?_.DQ(this.hostElement,[C]):_.pX(this.hostElement,[C],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(C){this.tappableItemBehaviorTapEnabled=!!C},
tappableItemBehaviorOnTapEnabledChanged_:function(){var C=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(C.setAttribute("tabIndex",0),C.setAttribute("role","button")):(C.removeAttribute("tabIndex"),C.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(C){C.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var bPd;var nSW;var A7=function(){return _.B.apply(this,arguments)||this};
_.O(A7,_.B);A7.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.kJ("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.kJ("sharingToggleButtonAndDefaultButton")}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],A7.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],A7.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],A7.prototype,"data",void 0);_.R([_.Z5({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],A7);
_.q(A7,"yt-card-item-actions-renderer",function(){if(nSW===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;bPd===void 0&&(bPd=document.createElement("template"));var V=bPd;G.call(F,V.content.cloneNode(!0),C.content.firstChild);nSW=C}C=nSW;return C},{mode:2});var uEr;var zyr;var Qlr;var IuL;var ES8;var W$8;var eb=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return C};
_.O(eb,_.B);eb.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
eb.prototype.handleDarkModeToggledAction_=function(C){this.isDarkTheme_=C};
eb.prototype.computeThemeImage_=function(C,F){if(!C||!C.imageLight)return!1;this.isCircular_=C.isCircular;C.imageWidth&&(this.hostElement.style.width=C.imageWidth+"px");C.imageHeight&&(this.hostElement.style.height=C.imageHeight+"px");C.borderWidth&&(this.image.style.borderWidth=C.borderWidth+"px",this.image.style.borderStyle="solid");C.borderColor&&(this.image.style.borderColor=_.lE(C.borderColor));return F&&C.imageDark?C.imageDark:C.imageLight};
eb.prototype.computeThemeIcon_=function(C){var F,G;if(!(C==null?0:(F=C.themedIcon)==null?0:(G=F.icon)==null?0:G.iconType))return!1;this.icon.style.color=Sb[C.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(C.imageWidth||18)+"px";this.icon.style.height=(C.imageHeight||18)+"px";return _.p5(C.themedIcon.icon.iconType)};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],eb.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],eb.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(KWU.YtCardItemBoxBehavior),_.Y("design:type",Object)],eb.prototype,"ytCardItemBoxBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],eb.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],eb.prototype,"data",void 0);
_.R([_.L({value:!1}),_.Y("design:type",Boolean)],eb.prototype,"fit",void 0);_.R([_.L(),_.Y("design:type",Boolean)],eb.prototype,"isDarkTheme_",void 0);_.R([_.L({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.Y("design:type",Object)],eb.prototype,"themeImage_",void 0);_.R([_.L({computed:"computeThemeIcon_(data)"}),_.Y("design:type",Object)],eb.prototype,"themeIcon_",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Object)],eb.prototype,"isCircular_",void 0);
_.R([_.$z("#image"),_.Y("design:type",Object)],eb.prototype,"image",void 0);_.R([_.$z("#icon"),_.Y("design:type",Object)],eb.prototype,"icon",void 0);_.R([_.Z5({is:"yt-themed-image-renderer",disableElementRegistration:!0})],eb);
_.q(eb,"yt-themed-image-renderer",function(){if(W$8===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;ES8===void 0&&(ES8=document.createElement("template"));var V=ES8;G.call(F,V.content.cloneNode(!0),C.content.firstChild);W$8=C}C=W$8;return C},{mode:2});var d_=function(){return _.B.apply(this,arguments)||this};
_.O(d_,_.B);d_.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"}}}}};
d_.prototype.computeImagePlacement_=function(C){return C||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],d_.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],d_.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],d_.prototype,"data",void 0);_.R([_.L({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.Y("design:type",String)],d_.prototype,"imagePlacement",void 0);
_.R([_.Z5({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],d_);
_.q(d_,"yt-card-item-text-with-image-renderer",function(){if(IuL===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;Qlr===void 0&&(Qlr=document.createElement("template"));var V=Qlr;G.call(F,V.content.cloneNode(!0),C.content.firstChild);IuL=C}C=IuL;return C},{mode:2});var xq=function(){return _.B.apply(this,arguments)||this};
_.O(xq,_.B);xq.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"}}}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],xq.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],xq.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],xq.prototype,"data",void 0);_.R([_.Z5({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],xq);
_.q(xq,"yt-card-item-error-renderer",function(){if(zyr===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;uEr===void 0&&(uEr=document.createElement("template"));var V=uEr;G.call(F,V.content.cloneNode(!0),C.content.firstChild);zyr=C}C=zyr;return C},{mode:2});var tGt;var auU;_.ae("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var sJ=function(){return _.B.apply(this,arguments)||this};
_.O(sJ,_.B);_.n=sJ.prototype;
_.n.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"}}}}};
_.n.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.n.backgroundColorChanged_=function(){var C,F=(C=this.data)==null?void 0:C.backgroundColor;C=Sb[F||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.ot(this.hostElement).querySelector("#main-content").style.backgroundColor=C};
_.n.headerPromoBackgroundColorChanged_=function(){var C,F=(C=this.data)==null?void 0:C.headerPromoBackgroundColor;C=Sb[F||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.ot(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=C};
_.n.errorRendererVisibilityChanged_=function(){var C=this.isExpanded_,F;this.isErrorRendererVisible_=!((F=this.data)==null||!F.errorRenderer)&&!C};
_.n.onYtToggleButton_=function(C,F){this.isExpanded_=F.toggled};
sJ.prototype.onYtToggleButton_=sJ.prototype.onYtToggleButton_;sJ.prototype.errorRendererVisibilityChanged_=sJ.prototype.errorRendererVisibilityChanged_;sJ.prototype.headerPromoBackgroundColorChanged_=sJ.prototype.headerPromoBackgroundColorChanged_;sJ.prototype.backgroundColorChanged_=sJ.prototype.backgroundColorChanged_;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],sJ.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],sJ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(KWU.YtCardItemBoxBehavior),_.Y("design:type",Object)],sJ.prototype,"ytCardItemBoxBehavior",void 0);_.R([_.w(_.$ot.YtTappableItemBehavior),_.Y("design:type",Object)],sJ.prototype,"ytTappableItemBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],sJ.prototype,"data",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],sJ.prototype,"isExpanded_",void 0);
_.R([_.L({value:!1}),_.Y("design:type",Boolean)],sJ.prototype,"isErrorRendererVisible_",void 0);_.R([_.iP("data.backgroundColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sJ.prototype,"backgroundColorChanged_",null);_.R([_.iP("data.headerPromoBackgroundColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sJ.prototype,"headerPromoBackgroundColorChanged_",null);
_.R([_.iP("data.errorRenderer","isExpanded_"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sJ.prototype,"errorRendererVisibilityChanged_",null);_.R([_.VG("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,Object]),_.Y("design:returntype")],sJ.prototype,"onYtToggleButton_",null);_.R([_.Z5({is:"yt-card-item-renderer",disableElementRegistration:!0})],sJ);
_.q(sJ,"yt-card-item-renderer",function(){if(auU===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;tGt===void 0&&(tGt=document.createElement("template"));var V=tGt;G.call(F,V.content.cloneNode(!0),C.content.firstChild);auU=C}C=auU;return C},{mode:2});_.ae("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var qy=function(){var C=_.B.apply(this,arguments)||this;C.hidden=!1;return C};
_.O(qy,_.B);_.n=qy.prototype;_.n.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.n.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.n.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var C,F=(C=this.commerceCartHeaderEntity)==null?void 0:C.isHidden;F!==void 0&&(this.hidden=F)}};
_.n.updateTitle=function(){var C=this.commerceCartHeaderEntity.isDisabled,F,G,V=(G=_.Z((F=this.data)==null?void 0:F.item,C7y))==null?void 0:G.headingRenderer;V&&(F=tk(V,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+F+".0.cardItemTextRenderer.textColor",C?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.n.updateSummaryText=function(){var C=this.commerceCartHeaderEntity;if(this.compact){var F,G,V=(G=_.Z((F=this.data)==null?void 0:F.item,C7y))==null?void 0:G.headingRenderer;V&&(F=tk(V,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+F+".1.cardItemTextRenderer.text",C.shortHeaderSummaryText?av(C.shortHeaderSummaryText):C.headerSummaryText?av(C.headerSummaryText):""))}else{var J;if(F=(J=_.Z((V=this.data)==null?void 0:V.item,C7y))==null?void 0:J.additionalInfoRenderer)F=tk(F,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+F+".text",C.headerSummaryText?av(C.headerSummaryText):"")}};
_.n.updateCheckoutButton=function(){var C=this.commerceCartHeaderEntity,F,G,V=(G=_.Z((F=this.data)==null?void 0:F.item,C7y))==null?void 0:G.additionalInfoRenderer;F=tk(V,"buttonRenderer");var J;G=(J=this.commerceCartHeaderEntity)==null?void 0:J.isButtonDisabled;var b;J=(b=this.commerceCartHeaderEntity)==null?void 0:b.isButtonHidden;G!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+F+".buttonRenderer.isDisabled",G);J!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
J);var z;C=(z=C.checkoutButtonCommand)==null?void 0:z.innertubeCommand;C!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+F+".buttonRenderer.command",C)};
qy.prototype.entityChanged=qy.prototype.entityChanged;_.R([_.w(_.Rr),_.Y("design:type",Object)],qy.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],qy.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],qy.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],qy.prototype,"data",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],qy.prototype,"compact",void 0);_.R([_.L({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(C,F){return _.jN(C.entities,"commerceCartHeaderEntity",F)}}),
_.Y("design:type",Object)],qy.prototype,"commerceCartHeaderEntity",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],qy.prototype,"hidden",void 0);_.R([_.iP("commerceCartHeaderEntity","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qy.prototype,"entityChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],qy);
_.q(qy,"ytd-commerce-cart-header-renderer",function(){if(JOr!==void 0)return JOr;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return JOr=C},{mode:1});var k7W;var Uo3=_.kk(function(C,F){var G;return(G=C.onChangeCallback)==null?void 0:G.call(C,F)},1E3),HPh=_.d(function(C){var F=C.data;
var G=C.iconMinus;C=C.iconPlus;var V=function(){return!!F().disabled},J=_.u(_.yH(0,void 0,"mKh0af")),b=J.next().value,z=J.next().value;
J=_.CZ(function(){if(b()===1){var U,H;(H=(U=F()).onRemoveCommand)==null||H.call(U)}U=b()>F().maxValue?F().maxValue:b()-1;z(U);Uo3(F(),U);return!1});
var Q=_.CZ(function(){if(b()===F().maxValue)return!1;var U=b()+1;z(U);Uo3(F(),U);return!1});
_.s0(function(){z(F().value)});
var E={},t={},k={};return _.W("quantity-incrementer-shape",null,_.W("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.W("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return b()===(F().onRemoveCommand?0:1)||V()},
"aria-label":function(){return b()!==1?F().minusLabel:F().minimumReachedLabel},
"on:click":J},_.W(_.QR,{model:{circular:!0}}),_.W("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.W("div",{class:_.py("ytSpecQuantityIncrementerShapeIcon",(E.ytSpecQuantityIncrementerShapeIconDisabled=function(){return V()||b()===(F().onRemoveCommand?0:1)},E))},G()))),_.W("div",{class:_.py("ytSpecQuantityIncrementerShapeText",(t.ytSpecQuantityIncrementerShapeTextInvalid=function(){return b()>F().maxValue},t.ytSpecQuantityIncrementerShapeTextDisabled=V,t))},b),_.W("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return b()>=F().maxValue||V()},
"aria-label":function(){return b()!==F().maxValue?F().plusLabel:F().maximumReachedLabel},
"on:click":Q},_.W(_.QR,{model:{circular:!0}}),_.W("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.W("div",{class:_.py("ytSpecQuantityIncrementerShapeIcon",(k.ytSpecQuantityIncrementerShapeIconDisabled=function(){return b()>=F().maxValue||V()},k))},C())))))},"Gf");_.gQ(_.d(function(C){function F(){G().onRemoveCommand&&_.wQ(G().onRemoveCommand)}
var G=C.data;var V=_.$b(HsS,function(){return G().quantityIncrementerEntityKey});
return _.W("yt-quantity-incrementer-view-model",null,_.W(HPh,{data:function(){var J=G(),b;var z=V()?!((b=V())==null||!b.disabled):!1;var Q;b=V()?(Q=V())==null?void 0:Q.quantity:G().quantity;return Lqw(J,z,F,b)},
iconMinus:function(){return _.W(_.i5,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.W(_.i5,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"Hf"),"yt-quantity-incrementer-view-model",{props:{data:_.CJ}});var P4=function(){var C=_.B.apply(this,arguments)||this;C.compact=!1;C.hasQuantityIncrementer=!1;return C};
_.O(P4,_.B);P4.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"}}}};
P4.prototype.computeHasQuantityIncrementer=function(){var C;return!!_.Z((C=this.data)==null?void 0:C.picker,VK2)};
P4.prototype.onLabelClick=function(){var C;(C=this.dropdownEl)==null||C.open()};
_.R([_.$z("ytd-dropdown-renderer"),_.Y("design:type",Object)],P4.prototype,"dropdownEl",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],P4.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],P4.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],P4.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],P4.prototype,"quantityColor",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],P4.prototype,"compact",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.Y("design:type",Object)],P4.prototype,"hasQuantityIncrementer",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],P4);
_.q(P4,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(k7W!==void 0)return k7W;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return k7W=C},{mode:1});var lur;var yOV;var g_=function(){return _.B.apply(this,arguments)||this};
_.O(g_,_.B);g_.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
g_.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
g_.prototype.updateTitle=function(){var C=this.disabledCartItemEntity;C.disableActionName&&this.set("data.title",av(C.disableActionName))};
g_.prototype.updateButton=function(){var C,F=(C=this.disabledCartItemEntity.undoCommand)==null?void 0:C.innertubeCommand;F!==void 0&&(this.set("data.actionButton.buttonRenderer.command",F),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
g_.prototype.entityChanged=g_.prototype.entityChanged;_.R([_.w(_.Rr),_.Y("design:type",Object)],g_.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],g_.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],g_.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(C,F){return _.jN(C.entities,"disabledCartItemEntity",F)}}),
_.Y("design:type",Object)],g_.prototype,"disabledCartItemEntity",void 0);_.R([_.L(),_.Y("design:type",Object)],g_.prototype,"data",void 0);_.R([_.iP("disabledCartItemEntity","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],g_.prototype,"entityChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],g_);
_.q(g_,"ytd-disabled-cart-item-renderer",function(){if(yOV!==void 0)return yOV;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return yOV=C},{mode:1});_.ae("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var RH=function(){var C=_.B.apply(this,arguments)||this;C.compact=!1;C.hidden=!1;C.errorHidden=!1;C.noOnTap=!1;return C};
_.O(RH,_.B);_.n=RH.prototype;
_.n.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"}}}};
_.n.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.n.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var C=this.firstButtonElement;C.alignByText=!0;C.iconAlignByText=!0}};
_.n.computeNoOnTap=function(C){return!C};
_.n.updateQuantityColor=function(){if(this.pickerElement){var C,F=(C=this.commerceCartItemEntity)==null?void 0:C.quantityColor;this.pickerElement.quantityColor=F}};
_.n.updateTotalPriceColor=function(){var C,F=(C=this.commerceCartItemEntity)==null?void 0:C.totalPriceColor;if(F){var G;C=_.Z((G=this.data)==null?void 0:G.quantityPicker,Fuy);if(G=_.Z(C==null?void 0:C.price,jOO))G.textColor=F}};
_.n.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var C,F=(C=this.commerceCartItemEntity)==null?void 0:C.isHidden;F!==void 0&&(this.hidden=F)}};
_.n.updateHideErrorMessage=function(){var C,F=(C=this.commerceCartItemEntity)==null?void 0:C.hideErrorMessage;F!==void 0&&(this.errorHidden=F)};
_.n.updateQuantity=function(){var C=this,F,G=(F=this.commerceCartItemEntity)==null?void 0:F.quantity,V;F=(V=this.commerceCartItemEntity)==null?void 0:V.totalPrice;if(G){this.updateTotalPriceColor();this.updateQuantityColor();var J;V=_.Z((J=this.data)==null?void 0:J.quantityPicker,Fuy);if(J=_.Z(V==null?void 0:V.price,jOO))J.text=F?{simpleText:F.content}:void 0;if(F=_.Z(V==null?void 0:V.picker,VK2))F.quantity=G;var b;if(J=(b=_.Z(V==null?void 0:V.picker,CFu))==null?void 0:b.entries){b=!1;F=void 0;J=
_.u(J);for(V=J.next();!V.done;V=J.next())V=V.value,V.dropdownItemRenderer&&(F||(F=V.dropdownItemRenderer),V.dropdownItemRenderer.isSelected=!1,G===V.dropdownItemRenderer.int32Value&&(b=!0,V.dropdownItemRenderer.isSelected=!0));!b&&F&&(F.isSelected=!0)}_.zH(this,function(){var z;C.set("data.quantityPicker",_.xf.unsafeClone((z=C.data)==null?void 0:z.quantityPicker))})}};
RH.prototype.onYtRendererstamperFinished=RH.prototype.onYtRendererstamperFinished;RH.prototype.entityChanged=RH.prototype.entityChanged;_.R([_.L(),_.Y("design:type",Object)],RH.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],RH.prototype,"compact",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],RH.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],RH.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],RH.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],RH.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(C,F){return _.jN(C.entities,"commerceCartItemEntity",F)}}),
_.Y("design:type",Object)],RH.prototype,"commerceCartItemEntity",void 0);_.R([_.L(),_.Y("design:type",Object)],RH.prototype,"quantityPicker",void 0);_.R([_.L(),_.Y("design:type",Object)],RH.prototype,"compactQuantityPicker",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],RH.prototype,"hidden",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],RH.prototype,"errorHidden",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.Y("design:type",Object)],RH.prototype,"noOnTap",void 0);_.R([_.$z("ytd-commerce-cart-item-quantity-picker-renderer"),_.Y("design:type",Object)],RH.prototype,"pickerElement",void 0);_.R([_.$z("yt-button-renderer"),_.Y("design:type",Element)],RH.prototype,"firstButtonElement",void 0);
_.R([_.iP("commerceCartItemEntity","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RH.prototype,"entityChanged",null);_.R([_.VG("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RH.prototype,"onYtRendererstamperFinished",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],RH);
_.q(RH,"ytd-commerce-cart-item-renderer",function(){if(lur!==void 0)return lur;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return lur=C},{mode:_.oN("kevlar_poly_si_batch_j028")?1:2});var ZP8;var N2d;var Yq=function(){return _.B.apply(this,arguments)||this};
_.O(Yq,_.B);Yq.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}}}}}};
Yq.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
Yq.prototype.updateCheckoutLineItems=function(){var C,F=(C=this.commerceCartCheckoutButtonEntity)==null?void 0:C.checkoutLineItems;F&&(C=F.map(function(G){a:{var V=G.price,J=G.description;switch(G.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":G={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:av(J),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:av(V),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:G={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:av(J),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:av(V),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 G}),this.set("data.summaryLineItems",C))};
Yq.prototype.updateIsHidden=function(){var C,F=(C=this.commerceCartCheckoutButtonEntity)==null?void 0:C.isHidden;F!==void 0&&(this.hostElement.hidden=F)};
Yq.prototype.entityChanged=Yq.prototype.entityChanged;_.R([_.w(_.Rr),_.Y("design:type",Object)],Yq.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Yq.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Yq.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Yq.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],Yq.prototype,"data",void 0);_.R([_.L({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:iso}),_.Y("design:type",Object)],Yq.prototype,"commerceCartCheckoutButtonEntity",void 0);_.R([_.iP("commerceCartCheckoutButtonEntity","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Yq.prototype,"entityChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],Yq);
_.q(Yq,"ytd-commerce-cart-summary-renderer",function(){if(N2d!==void 0)return N2d;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return N2d=C},{mode:1});var OP_={};OP_.InjectBehavior=[rEW.InjectBehavior];var Xu8;var wus;var T8=function(){return _.B.apply(this,arguments)||this};
_.O(T8,_.B);
T8.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:_.kJ("menuRenderer")}}};
T8.prototype.onMenuTap=function(C){C.stopPropagation()};
_.I6.Object.defineProperties(T8.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 C,F;return!(((C=this.data)==null||!C.sectionHeading)&&((F=this.data)==null?void 0:F.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var C,F;return!(((C=this.data)==null||!C.image)&&((F=this.data)==null?void 0:F.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var C,F;return!(((C=this.data)==null||!C.menu)&&((F=this.data)==null?void 0:F.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],T8.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],T8.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.$ot.YtTappableItemBehavior),_.Y("design:type",Object)],T8.prototype,"ytTappableItemBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],T8.prototype,"data",void 0);
_.R([_.L({reflectToAttribute:!0}),_.M("data.accessibilityData"),_.Y("design:type",String),_.Y("design:paramtypes",[])],T8.prototype,"ariaLabel",null);_.R([_.M("data.sectionHeading","data.layout"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],T8.prototype,"sectionHeadingVisible",null);_.R([_.M("data.image","data.layout"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],T8.prototype,"imageVisible",null);
_.R([_.M("data.menu","data.layout"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],T8.prototype,"menuVisible",null);_.R([_.Z5({is:"yt-activity-item-renderer",disableElementRegistration:!0})],T8);
_.q(T8,"yt-activity-item-renderer",function(){if(wus===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;Xu8===void 0&&(Xu8=document.createElement("template"));var V=Xu8;G.call(F,V.content.cloneNode(!0),C.content.firstChild);wus=C}C=wus;return C},{mode:2});var MGd;var Smx;var L$_;var B28;var oH=function(){return _.B.apply(this,arguments)||this};
_.O(oH,_.B);
oH.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"}}}}};
oH.prototype.backgroundColorChanged_=function(){var C,F=(C=this.data)==null?void 0:C.backgroundColor;this.hostElement.style.backgroundColor=Sb[F||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
oH.prototype.backgroundColorChanged_=oH.prototype.backgroundColorChanged_;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],oH.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],oH.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],oH.prototype,"data",void 0);
_.R([_.iP("data.backgroundColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oH.prototype,"backgroundColorChanged_",null);_.R([_.Z5({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],oH);
_.q(oH,"yt-offer-item-upsell-renderer",function(){if(B28===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;L$_===void 0&&(L$_=document.createElement("template"));var V=L$_;G.call(F,V.content.cloneNode(!0),C.content.firstChild);B28=C}C=B28;return C},{mode:2});_.ae("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var r_=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};C.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return C};
_.O(r_,_.B);_.n=r_.prototype;
_.n.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:_.kJ("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.n.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.n.computeContainerStyle_=function(C){return C};
_.n.computeContainerIsHidden_=function(C){return C&&!!C.isHidden};
_.n.computeShowSpinner_=function(C,F){return C&&F==="in-progress"};
_.n.computeShowMoreContentsButton_=function(C,F,G,V,J){return!(!(V&&V.length||J&&J.length&&G)||!C||F)};
_.n.onToggleButton_=function(C){var F=this;C.stopPropagation();this.isExpanded_=C.detail&&C.detail.toggled;var G,V;this.isExpanded_&&!this.data.continuationSection.length&&((G=this.data)==null?0:(V=G.continuation)==null?0:V.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.oo(this.hostElement,"yt-load-next-continuation",function(J){return F.getContinuationUrl_(F.data.continuation.onClickContinuationData,J)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.DQ(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.n.onShowMoreContentsButtonClicked_=function(C){var F=this;C.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.oo(this.hostElement,"yt-load-next-continuation",function(G){return F.getContinuationUrl_(F.data.continuations[0].nextContinuationData,G)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.DQ(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.n.getContinuationUrl_=function(C,F){var G=C.continuation;C=C.clickTrackingParams;var V=_.ZQ();C&&V&&_.ej(V,_.zS(C));return _.Jy(F,{continuation:G})};
_.n.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var C=_.ot(this.hostElement).querySelector("#continuation-section");C&&(C=C.querySelectorAll("ytmusic-item-section-renderer"))&&C.forEach(function(F){return F.classList.add("memberships-and-purchases")})};
_.n.dataChanged_=function(){var C;this.isExpanded_=!((C=this.data)==null||!C.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.n.updateCardOnClickCommand_=function(C){C=_.Z(C,Yny);var F,G;this.data&&((F=this.data)==null?0:F.targetId)&&C&&C.targetId===((G=this.data)==null?void 0:G.targetId)&&C.onClickCommand&&(this.data.onClickCommand=C.onClickCommand,this.isOnClickCommand_=!0)};
_.n.backgroundColorChanged_=function(){var C,F=(C=this.data)==null?void 0:C.backgroundColor;this.hostElement.style.backgroundColor=Sb[F||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
r_.prototype.backgroundColorChanged_=r_.prototype.backgroundColorChanged_;r_.prototype.dataChanged_=r_.prototype.dataChanged_;r_.prototype.nextContinuationDataUpdated_=r_.prototype.nextContinuationDataUpdated_;r_.prototype.onToggleButton_=r_.prototype.onToggleButton_;_.R([_.w(_.G1),_.Y("design:type",Object)],r_.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],r_.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],r_.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.VD.YtNextContinuationBehavior),_.Y("design:type",Object)],r_.prototype,"ytNextContinuationBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],r_.prototype,"ytRendererBehavior",void 0);_.R([_.w(OP_.InjectBehavior),_.Y("design:type",Object)],r_.prototype,"injectBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],r_.prototype,"data",void 0);
_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],r_.prototype,"compact",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],r_.prototype,"isExpanded_",void 0);_.R([_.L({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.Y("design:type",String)],r_.prototype,"containerStyle_",void 0);_.R([_.L({value:"not-started"}),_.Y("design:type",String)],r_.prototype,"continuationStatus_",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.Y("design:type",Boolean)],r_.prototype,"showSpinner_",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],r_.prototype,"isOnClickCommand_",void 0);_.R([_.L({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.Y("design:type",Boolean)],r_.prototype,"showMoreContentsButton_",void 0);
_.R([_.L({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(C,F){return!F||C.entities?null:_.jN(C.entities,"cardItemContainerEntity",F)}}),
_.Y("design:type",Object)],r_.prototype,"cardItemContainerEntity_",void 0);_.R([_.VG("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],r_.prototype,"onToggleButton_",null);_.R([_.VG("yt-next-continuation-data-updated"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],r_.prototype,"nextContinuationDataUpdated_",null);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],r_.prototype,"dataChanged_",null);_.R([_.iP("data.backgroundColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],r_.prototype,"backgroundColorChanged_",null);_.R([_.Z5({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],r_);
_.q(r_,"yt-card-item-container-renderer",function(){if(Smx===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;MGd===void 0&&(MGd=document.createElement("template"));var V=MGd;G.call(F,V.content.cloneNode(!0),C.content.firstChild);Smx=C}C=Smx;return C},{mode:2});var KF=function(){return _.B.apply(this,arguments)||this};
_.O(KF,_.B);KF.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"}}}};
KF.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
KF.prototype.computeLoadingHidden=function(){var C;return!((C=this.commerceCartPageStateEntity)==null?0:C.cartActionInProgress)};
KF.prototype.updateNotification=function(){var C,F=(C=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:C.summaryText;F&&this.set("data.cartNotification",av(F))};
KF.prototype.notificationEntityChanged=KF.prototype.notificationEntityChanged;_.R([_.w(_.Rr),_.Y("design:type",Object)],KF.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],KF.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],KF.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],KF.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],KF.prototype,"data",void 0);_.R([_.L({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(C,F){return _.jN(C.entities,"commerceCartExpandableNotificationEntity",F)}}),
_.Y("design:type",Object)],KF.prototype,"commerceCartExpandableNotificationEntity",void 0);_.R([_.L({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(C,F){return _.jN(C.entities,"commerceCartPageStateEntity",F)}}),
_.Y("design:type",Object)],KF.prototype,"commerceCartPageStateEntity",void 0);_.R([_.$z("#spinner"),_.Y("design:type",HTMLElement)],KF.prototype,"spinner",void 0);_.R([_.iP("commerceCartExpandableNotificationEntity","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],KF.prototype,"notificationEntityChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],KF);
_.q(KF,"ytd-commerce-cart-renderer",function(){if(ZP8!==void 0)return ZP8;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return ZP8=C},{mode:1});var vSt;var D3=function(){var C=_.B.apply(this,arguments)||this;C.bigImage=!1;return C};
_.O(D3,_.B);_.I6.Object.defineProperties(D3.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)==null?void 0:C.placeholderImageUrl}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],D3.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],D3.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],D3.prototype,"bigImage",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],D3.prototype,"placeholderImageUrl",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],D3);
_.q(D3,"ytd-empty-product-shelf-renderer",function(){if(vSt!==void 0)return vSt;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return vSt=C},{mode:1});var fu_;var pF=function(){var C=_.B.apply(this,arguments)||this;C.itemStyle="link-item";C.watchMetadataRefresh=!1;C.skinnyMode=!1;C.metaPanel=!1;C.inStructuredDescription=!1;C.detailedDescriptionOverride=!1;C.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};C.updateOnResizeDebouncer=null;return C};
_.O(pF,_.B);_.n=pF.prototype;_.n.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.n.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"}}}}};
_.n.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.n.attachVEs=function(C){C.trackingParams&&_.ia().graftServerVe(C.trackingParams)};
_.n.handleUpdateMerchShelfAction=function(C){var F=this,G=_.Z(C.updateMerchandiseShelfAction.merchandiseShelf,_.kWu);G&&(G.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){F.attachVEs(G);F.data=G},Number(G.renderDelayMs))):(this.attachVEs(G),this.data=G))};
_.n.updateOnResize=function(){if(this.JSC$16998_scrollContainer!==void 0&&this.JSC$16998_scrollContainer.clientWidth!==0&&this.items!==void 0){var C=this.JSC$16998_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-C));this.ytdHorizontalListBehavior.reposition_();var F;switch((F=this.data)==null?void 0:F.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var G,
V;((G=this.data)==null?void 0:(V=G.items)==null?void 0:V.length)===1?this.itemStyle="cta-item":this.itemStyle=C>=740?"large-item":"small-item"}}};
_.n.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.Qq(this.updateOnResizeDebouncer,_.Ca.after(100),this.updateOnResize)};
pF.prototype.debouncedUpdateOnResize=pF.prototype.debouncedUpdateOnResize;pF.prototype.dataChanged=pF.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],pF.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],pF.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.QU.YtdHorizontalListBehavior),_.Y("design:type",Object)],pF.prototype,"ytdHorizontalListBehavior",void 0);
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],pF.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],pF.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],pF.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],pF.prototype,"itemStyle",void 0);_.R([_.L({value:6}),_.Y("design:type",Number)],pF.prototype,"initialCount",void 0);
_.R([_.L({value:"data.items"}),_.Y("design:type",String)],pF.prototype,"itemsPath",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],pF.prototype,"watchMetadataRefresh",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],pF.prototype,"skinnyMode",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],pF.prototype,"metaPanel",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],pF.prototype,"inStructuredDescription",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],pF.prototype,"detailedDescriptionOverride",void 0);_.R([_.$z("#items"),_.Y("design:type",HTMLDivElement)],pF.prototype,"items",void 0);_.R([_.$z("#scroll-container"),_.Y("design:type",HTMLDivElement)],pF.prototype,"JSC$16998_scrollContainer",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pF.prototype,"dataChanged",null);
_.R([_.VG("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pF.prototype,"debouncedUpdateOnResize",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],pF);
_.q(pF,"ytd-merch-shelf-renderer",function(){if(fu_!==void 0)return fu_;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return fu_=C},{mode:2});var hyl;var m3=function(){var C=_.B.apply(this,arguments)||this;C.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 C};
_.O(m3,_.B);_.n=m3.prototype;
_.n.addBackstagePostAction=function(C){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(C=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",C))&&(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:C}):this.set("data.contents",[{backstagePostThreadRenderer:C}]))};
_.n.addBackstageCommentAction=function(C){var F=this.get("addBackstageCommentAction.parentId",C);C=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",C);if(F&&C){F=this.postIdToIndices(F);for(var G=0;G<F.length;G++){var V=F[G];if(V<0)break;V="data.contents."+V+".backstagePostThreadRenderer.comments";this.get(V)&&(this.get(V+".backstageCommentsRenderer.contents")&&this.push(V+".backstageCommentsRenderer.contents",{commentThreadRenderer:C}),this.get(V+".backstageCommentsRenderer.teaserContents")?
this.push(V+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:C}):this.set(V+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:C}]))}}};
_.n.addBackstageReplyAction=function(C){var F=this.get("addBackstageReplyAction.parentId",C);C=this.get("addBackstageReplyAction.renderer.commentRenderer",C);F&&C&&this.setCreatorReply(F,C)};
_.n.banAuthorAction=function(C){var F=this.get("banAuthorAction.commentId",C);F&&(C=this.get("banAuthorAction.parentCommentId",C)||this.getParentPostId(F),this.removeFromStream(F,C))};
_.n.hideReportedCommentAction=function(C){var F=this.get("hideReportedCommentAction.commentId",C);F&&((C=this.get("hideReportedCommentAction.parentCommentId",C))||(C=this.getParentPostId(F)),this.removeFromStream(F,C))};
_.n.replaceBackstageCommentAction=function(C){var F=this.get("replaceBackstageCommentAction.commentId",C),G=this.get("replaceBackstageCommentAction.parentId",C);C=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",C);if(F&&G&&C){G=this.postIdToIndices(G);for(var V=0;V<G.length;V++){var J=G[V];if(J<0)break;var b=this.commentIdToIndex(F,J,!1);if(b>=0){var z=this.get("data.contents."+J+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+b+".commentThreadRenderer.replies.commentRepliesRenderer");
z&&(C.replies={commentRepliesRenderer:z});this.splice("data.contents."+J+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",b,1,{commentThreadRenderer:C})}b=this.commentIdToIndex(F,J,!0);if(b>=0){if(z=this.get("data.contents."+J+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(b+".commentThreadRenderer.replies.commentRepliesRenderer")))C.replies={commentRepliesRenderer:z};this.splice("data.contents."+J+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
b,1,{commentThreadRenderer:C})}}}};
_.n.replaceBackstagePostAction=function(C){var F=this.get("replaceBackstagePostAction.itemId",C);if(F){F=this.postIdToIndices(F);for(var G=0;G<F.length;G++){var V=F[G];if(V<0)break;var J=this.getPostRendererType(V),b=this.get("replaceBackstagePostAction.renderer."+J,C);if(!b&&J!=="sharedPostRenderer")break;var z=!1;b||(z=!0,b=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",C));if(!b)break;var Q={};z?(_.ke(Q,ewP,b),this.set("data.contents."+V+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
Q)):(_.ke(Q,new _.Cx(J),b),this.set("data.contents."+V+".backstagePostThreadRenderer.post",Q))}}};
_.n.replaceBackstageReplyAction=function(C){var F=this.get("replaceBackstageReplyAction.replyId",C),G=this.get("replaceBackstageReplyAction.parentId",C);C=this.get("replaceBackstageReplyAction.renderer.commentRenderer",C);F&&C&&G&&this.setCreatorReply(G,C)};
_.n.removeCommentAction=function(C){var F=this.get("removeCommentAction.commentId",C);if(F){var G=this.get("removeCommentAction.parentCommentId",C);G&&this.get("removeCommentAction.isCreatorReply",C)?this.setCreatorReply(G,void 0):(G||(G=this.getParentPostId(F)),this.removeFromStream(F,G))}};
_.n.setCreatorReply=function(C,F){var G=this.getParentPostId(C);if(G){G=this.postIdToIndices(G);for(var V=0;V<G.length;V++){var J=G[V];if(J<0)break;var b=this.commentIdToIndex(C,J,!1);if(b>=0){var z="data.contents."+J+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+b;b=z+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";z+=".commentThreadRenderer.replies";F==void 0?(this.set(z,{}),this.set(b,!1)):(this.set(z,{commentRepliesRenderer:{teaserContents:[{commentRenderer:F}]}}),
this.set(z+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(b,!0))}b=this.commentIdToIndex(C,J,!0);b>=0&&(b="data.contents."+J+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+b,J=b+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",b+=".commentThreadRenderer.replies",F==void 0?(this.set(b,{}),this.set(J,!1)):(this.set(b,{commentRepliesRenderer:{teaserContents:[{commentRenderer:F}]}}),this.set(J,!0)))}}};
_.n.removeFromStream=function(C,F){if(F){F=this.postIdToIndices(F);for(var G=0;G<F.length;G++){var V=F[G];if(V<0)break;var J=this.commentIdToIndex(C,V,!1);J>=0&&this.splice("data.contents."+V+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",J,1);J=this.commentIdToIndex(C,V,!0);J>=0&&this.splice("data.contents."+V+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",J,1);V="data.contents."+V+".backstagePostThreadRenderer.post.backstagePostRenderer";
J=V+".backstageAttachment.pollRenderer.votedCommentId";this.get(J)===C&&(this.set(J,null),this.set(V+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(F=this.postIdToIndices(C).reverse(),G=0;G<F.length;G++){V=F[G];if(V<0)break;J=this.getPostRendererType(V);var b=this.get("backstagePostThreadRenderer.post."+J,this.data.contents[V]);b.postId===C?this.splice("data.contents",V,1):J==="sharedPostRenderer"&&this.set("data.contents."+V+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);b.scheduledPublishTimeSec&&_.rz(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.n.postIdToIndices=function(C){for(var F=[],G=0;G<this.data.contents.length;G++){var V=this.getPostRendererType(G);this.get("backstagePostThreadRenderer.post."+V+".postId",this.data.contents[G])===C&&F.push(G);if(V==="sharedPostRenderer"){var J=this.get("backstagePostThreadRenderer.post."+V+".originalPost.backstagePostRenderer.postId",this.data.contents[G]);V=this.get("backstagePostThreadRenderer.post."+V+".originalPost.postRenderer.postId",this.data.contents[G]);J!==C&&V!==C||F.push(G)}}return F};
_.n.commentIdToIndex=function(C,F,G){if(F<0)return-1;var V,J,b,z,Q=_.Z((V=this.data)==null?void 0:(J=V.contents)==null?void 0:(b=J[F])==null?void 0:(z=b.backstagePostThreadRenderer)==null?void 0:z.comments,cBo);return(F=G?Q==null?void 0:Q.teaserContents:Q==null?void 0:Q.contents)&&F.length?F.findIndex(function(E){return _.Z(E,t$7).comment.commentRenderer.commentId===C}):-1};
_.n.getParentPostId=function(C){C=C.split(".");if(C[1])return C[0]};
_.n.getPostRendererType=function(C){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[C])?"sharedPostRenderer":"backstagePostRenderer"};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],m3.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],m3.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],m3.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,value:_.y("enable_community_page_on_desktop")}),_.Y("design:type",Boolean)],m3.prototype,"useSmallerPostContainer",void 0);
_.R([_.e({disableElementRegistration:!0,is:"ytd-backstage-items"})],m3);
_.q(m3,"ytd-backstage-items",function(){if(hyl!==void 0)return hyl;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return hyl=
C},{mode:1});var cOr;var AOx={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_POSTS_TAB_COMMUNITY_ENABLEMENT_NUDGE:70,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100},CG=function(){var C=_.B.apply(this,arguments)||this;C.disablePrescanVisibility=!0;C.canScheduleJobs=!0;C.engagementPanel=!1;C.hidePanelButton=!1;C.isWatchGrid=
!1;C.hasShownSubscribersOnlyDisclaimer=!1;C.actionMap={"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};C.TEST_ONLY=void 0;return C};
_.O(CG,_.B);_.n=CG.prototype;_.n.created=function(){this.initCommentsCsi_();_.y("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.y("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.n.contentsChanged_=function(){var C;(C=this.data)!=null&&C.contents&&this.tickForCommentsTimer_("cml")};
_.n.headerChanged_=function(){var C;(C=this.data)!=null&&C.header&&this.tickForCommentsTimer_("cmhl")};
_.n.initCommentsCsi_=function(){_.Z8("wn_comments");var C=_.ZQ();C&&_.UZ({clientScreenNonce:C},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.n.createCommentAction_=function(C){C=_.xf.unsafeClone(C);var F,G;if(C=(F=_.Z(C,$i8))==null?void 0:(G=F.contents)==null?void 0:G.commentThreadRenderer){var V,J,b,z,Q,E;!this.isBackstage&&((V=this.data)==null?0:(J=V.header)==null?0:(b=J.commentsHeaderRenderer)==null?0:(z=b.createRenderer)==null?0:(Q=z.commentSimpleboxRenderer)==null?0:(E=Q.zeroStep)==null?0:E.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var t,
k,U;this.isBackstage&&_.Z((t=this.data)==null?void 0:(k=t.header)==null?void 0:(U=k.commentsHeaderRenderer)==null?void 0:U.zeroStateMessage,dqP)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(C)}};
_.n.doReplyInsert_=function(C,F,G,V){V?this.splice(C,V,0,F):this.push(C,F)};
_.n.getRepliesPath_=function(C){return"data.contents."+C+".commentThreadRenderer.replies"};
_.n.getRepliesContentsPath_=function(C,F){C=this.getRepliesPath_(C);return F?C+".commentRepliesRenderer.teaserContents":C+".commentRepliesRenderer.contents"};
_.n.showSubscribersOnlyDisclaimer_=function(C){(C=C.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(C=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(C))&&(_.rz(this.hostElement,"yt-open-popup-action",[C,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.n.createCommentReplyAction_=function(C){C=_.xf.unsafeClone(C);var F=_.Z(C,ba$);if(C=F==null?void 0:F.contents){var G=this.commentIdToIndex_(F==null?void 0:F.parentCommentId);if(!(G<0)){var V=this.getRepliesPath_(G);if(this.get(V)){F=F.replyToCommentId;V=this.getRepliesContentsPath_(G,!1);if(this.get(V)){var J=this.get(V).length,b=V+"."+(J-1)+".continuationItemRenderer";this.get(b+".button")?(b=this.replyIdToIndex_(F,G,!1),this.doReplyInsert_(V,C,b,J-1)):this.get(b)||(J=this.replyIdToIndex_(F,G,
!1),this.doReplyInsert_(V,C,J,null))}V=this.getRepliesContentsPath_(G,!0);this.get(V)?(G=this.replyIdToIndex_(F,G,!0),(!F||G>=0)&&this.doReplyInsert_(V,C,G,null)):this.set(V,[C])}else this.set(V,{commentRepliesRenderer:{teaserContents:[C]}})}}};
_.n.hideReportedCommentAction_=function(C){var F=_.Z(C,M$u);if(C=F==null?void 0:F.commentId)(F=this.get("parentCommentId",F))||(F=this.getParentCommentId_(C)),this.remove_(C,F)};
_.n.getParentCommentId_=function(C){C=C.split(".");if(C[1])return C[0]};
_.n.removeCommentAction_=function(C){var F=_.Z(C,IEy);if(C=F==null?void 0:F.commentId)F=(F==null?void 0:F.parentCommentId)||this.getParentCommentId_(C),this.remove_(C,F)};
_.n.pinCommentAction_=function(C){C=_.xf.unsafeClone(C);var F=_.Z(C,Q42);F!=null&&F.commentId&&(C=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",C))&&(this.remove_(F.commentId),this.insert_(C,!0))};
_.n.unpinCommentAction_=function(C){C=_.xf.unsafeClone(C);C=_.Z(C,ErO);if(C!=null&&C.commentId){var F,G,V=(F=C.actionResult)==null?void 0:(G=F.update)==null?void 0:G.commentThreadRenderer;V&&(this.remove_(C.commentId),this.insert_(V))}};
_.n.banAuthorAction_=function(C){var F=_.Z(C,JLm);F!=null&&F.commentId&&(C=F.commentId,F=F.parentCommentId||this.getParentCommentId_(C),this.remove_(C,F))};
_.n.handleScrollToCommentElement_=function(C){this.nearestScrollParent||(this.nearestScrollParent=BF9(C));this.isCommentVisibleInScrollParent(C)||C.scrollIntoView({behavior:"smooth",block:"start"})};
_.n.isCommentVisibleInScrollParent=function(C){if(!this.nearestScrollParent)return!1;C=C.getBoundingClientRect();var F=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return C.top>=F.top&&C.bottom<=F.bottom};
_.n.commentIdToIndex_=function(C){var F;return C&&(F=this.data)!=null&&F.contents?this.data.contents.findIndex(function(G){G=G.commentThreadRenderer;var V;return C===((G==null?void 0:G.commentViewModel)&&((V=_.Z(G.commentViewModel,yLu))==null?void 0:V.commentId))}):-1};
_.n.insert_=function(C,F){F=F===void 0?!1:F;var G,V;if((G=this.data)==null?0:(V=G.contents)==null?0:V.some(function(b){return!!b.commentThreadRenderer}))for(G=0,V=this.data.contents.length;G<V;G++){var J=this.data.contents[G].commentThreadRenderer;
if(AOx[C.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=AOx[J.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){F&&AOx[C.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===AOx[J.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",G,1,{commentThreadRenderer:C}):this.splice("data.contents",G,0,{commentThreadRenderer:C});break}}else this.set("data.contents",[{commentThreadRenderer:C}])};
_.n.doReplyRemove_=function(C,F,G){C=this.replyIdToIndex_(C,F,G);C<0||(F=this.getRepliesContentsPath_(F,G),this.splice(F,C,1))};
_.n.remove_=function(C,F){F=this.commentIdToIndex_(F);F<0?(F=this.commentIdToIndex_(C),F<0||this.splice("data.contents",F,1)):_.y("web_delhi_comment_threads")||(this.doReplyRemove_(C,F,!1),this.doReplyRemove_(C,F,!0))};
_.n.replyIdToIndex_=function(C,F,G){if(F<0)return-1;F=this.getRepliesContentsPath_(F,G);F=this.get(F);if(!F||!F.length)return-1;G=0;for(var V=F.length;G<V;G++){var J=void 0,b=void 0;if(((J=F[G])==null?void 0:(b=J.commentViewModel)==null?void 0:b.commentId)===C)return G}return-1};
_.n.tickForCommentsTimer_=function(C){_.OZ(C,void 0,"wn_comments")};
_.n.reloadComments_=function(C){C=_.Z(C,Ha8);_.Z(C==null?void 0:C.command,_.O4)&&_.DQ(this.hostElement,[C==null?void 0:C.command])};
_.I6.Object.defineProperties(CG.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var C,F,G;return!!((C=this.data)==null?0:(F=C.header)==null?0:(G=F.commentsHeaderRenderer)==null?0:G.isBackstageContent)}}});
_.I6.Object.defineProperties(CG,{template:{configurable:!0,enumerable:!0,get:function(){if(cOr===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);cOr=C}C=cOr;return C}}});
CG.prototype.showSubscribersOnlyDisclaimer_=CG.prototype.showSubscribersOnlyDisclaimer_;CG.prototype.headerChanged_=CG.prototype.headerChanged_;CG.prototype.contentsChanged_=CG.prototype.contentsChanged_;_.R([_.w(_.nK),_.Y("design:type",Object)],CG.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.w(_.pXI.YtHostElementBehavior),_.Y("design:type",Object)],CG.prototype,"ytHostElementBehavior",void 0);
_.R([_.w(_.Fi.YtPlayerListenerBehavior),_.Y("design:type",Function)],CG.prototype,"ytPlayerListenerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],CG.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],CG.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],CG.prototype,"data",void 0);
_.R([_.L({reflectToAttribute:!0}),_.M("data.header.commentsHeaderRenderer.isBackstageContent"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],CG.prototype,"isBackstage",null);_.R([_.L(),_.Y("design:type",Object)],CG.prototype,"disablePrescanVisibility",void 0);_.R([_.L(),_.Y("design:type",Object)],CG.prototype,"canScheduleJobs",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],CG.prototype,"engagementPanel",void 0);
_.R([_.L(),_.Y("design:type",Object)],CG.prototype,"hidePanelButton",void 0);_.R([_.L(),_.Y("design:type",Object)],CG.prototype,"isWatchGrid",void 0);_.R([_.L(),_.Y("design:type",Object)],CG.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);_.R([_.iP("data.contents"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],CG.prototype,"contentsChanged_",null);
_.R([_.iP("data.header"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],CG.prototype,"headerChanged_",null);_.R([_.VG("yt-show-subscribers-only-disclaimer"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],CG.prototype,"showSubscribersOnlyDisclaimer_",null);_.R([_.e({is:"ytd-comments"})],CG);var jd=function(){return _.n5.apply(this,arguments)||this};
_.O(jd,_.n5);_.n=jd.prototype;_.n.bindIf=function(C,F,G){return C?F:G};
_.n.bindIfDefined=function(C,F){return C!==void 0?C:F};
_.n.booleanString=function(C){return(!!C).toString()};
_.n.equals=function(){for(var C=_.Rn.apply(0,arguments),F=C[0],G=1;G<C.length;G++)if(F!=C[G])return!1;return!0};
_.n.isGreaterThan=function(C,F){return C>F};
_.n.isLessThan=function(C,F){return C<F};
_.n.logicalAND=function(){for(var C=_.Rn.apply(0,arguments),F=!!C[0],G=1;G<C.length;G++)F=F&&!!C[G];return F};
_.n.logicalOR=function(){for(var C=_.Rn.apply(0,arguments),F=!!C[0],G=1;G<C.length;G++)F=F||!!C[G];return F};
_.n.toBool=function(C){return!!C};
jd.prototype.toBool=jd.prototype.toBool;jd.prototype.logicalOR=jd.prototype.logicalOR;jd.prototype.logicalAND=jd.prototype.logicalAND;jd.prototype.isLessThan=jd.prototype.isLessThan;jd.prototype.isGreaterThan=jd.prototype.isGreaterThan;jd.prototype.equals=jd.prototype.equals;jd.prototype.booleanString=jd.prototype.booleanString;jd.prototype.bindIfDefined=jd.prototype.bindIfDefined;jd.prototype.bindIf=jd.prototype.bindIf;_.R([_.uP()],jd);_.ey8=[jd.prototype];var doh;var xod;var FB=function(){return _.B.apply(this,arguments)||this};
_.O(FB,_.B);FB.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
FB.prototype.onBackIconTap_=function(){window.history.back()};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],FB.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],FB.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],FB.prototype,"data",void 0);_.R([_.Z5({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],FB);
_.q(FB,"yt-header-with-back-renderer",function(){if(xod===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;doh===void 0&&(doh=document.createElement("template"));var V=doh;G.call(F,V.content.cloneNode(!0),C.content.firstChild);xod=C}C=xod;return C},{mode:2});var sl_;var qm8;var Gj=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return C};
_.O(Gj,_.B);_.n=Gj.prototype;_.n.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.n.onDarkModeToggledAction=function(C){C!==this.isDarkTheme&&(this.isDarkTheme=C,this.setUrl())};
_.n.dataChanged=function(){var C=this;if(this.data){var F=this.setUrl();F&&_.p2({destination:window,iframe:this.iframe,origin:_.pju(F.toString()),channelName:"yt-iframe",onMessage:function(G){(G=C.getCommunicationCommand(G.data))&&C.ytComponentBehavior.resolveCommand(G)},
onEstablished:function(){}})}};
_.n.setUrl=function(){if(this.data&&this.data.iframeUrl){var C=_.Ra(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(C)return _.mY(this.iframe,C),C}};
_.n.getCommunicationCommand=function(C){var F;if((F=this.data)!=null&&F.onCommunicationCommandsMap){F=this.data.onCommunicationCommandsMap.find(function(J){return J.key===C});
if(F==null?0:F.value)return F==null?void 0:F.value;try{var G=A9$(_.p9(C)),V=this.data.onCommunicationCommandsMap.find(function(J){return J.key===(G==null?void 0:G.getMethodName())});
if(V==null?0:V.value)return V==null?void 0:V.value}catch(J){}}};
Gj.prototype.dataChanged=Gj.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Gj.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Gj.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],Gj.prototype,"actionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Gj.prototype,"data",void 0);
_.R([_.L({value:!1}),_.Y("design:type",Boolean)],Gj.prototype,"isDarkTheme",void 0);_.R([_.$z("#iframe"),_.Y("design:type",HTMLIFrameElement)],Gj.prototype,"iframe",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Gj.prototype,"dataChanged",null);_.R([_.Z5({is:"yt-iframe-renderer",disableElementRegistration:!0})],Gj);
_.q(Gj,"yt-iframe-renderer",function(){if(qm8===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;sl_===void 0&&(sl_=document.createElement("template"));var V=sl_;G.call(F,V.content.cloneNode(!0),C.content.firstChild);qm8=C}C=qm8;return C},{mode:2});_.VI=function(C){_.hV.call(this);this.callback=C;this.bezier=new ob8(0,0,.4,0,.2,1,1,1);this.delay=new _.tu(this.next,window,this);this.JSC$17039_animating=!1;_.Nd(this,this.delay)};
_.O(_.VI,_.hV);_.VI.prototype.isAnimating=function(){return this.JSC$17039_animating};
_.VI.prototype.start=function(C,F,G){this.config={from:C,to:F,duration:G,startTime:(0,_.Et)()};this.JSC$17039_animating=!0;this.next()};
_.VI.prototype.stop=function(){this.delay.stop();this.JSC$17039_animating=!1;this.config=void 0};
_.VI.prototype.next=function(){if(this.config){var C=this.config,F=C.from,G=C.to,V=C.duration;C=C.startTime;var J=(0,_.Et)()-C;C=this.bezier;V=Kel(C,J/V);if(V==0)C=C.y0;else if(V==1)C=C.y3;else{J=HN(C.y0,C.y1,V);var b=HN(C.y1,C.y2,V);C=HN(C.y2,C.y3,V);J=HN(J,b,V);b=HN(b,C,V);C=HN(J,b,V)}C=_.lV(C,0,1);this.callback(F+(G-F)*C);C<1?this.delay.start():this.JSC$17039_animating=!1}};_.il=new _.jh("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var P8r={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},Ryl=function(C,F,G,V){_.hV.call(this);this.JSC$17050_miniAppId=C;this.localReleaseId=F;this.derivedDeviceInterface=G;this.isForeground=V;this.JSC$17050_playNonceResolver=new _.Cd;this.playPingTimerId=NaN;this.playPingIntervalMs=_.a8("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.a8("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.y("enable_displaying_ppn");this.JSC$17050_miniAppClientDataProvider=_.I8().resolve(_.il);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;gSr(this);var J=setTimeout(function(){_.Yw(new _.Ay("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$17050_playNonceResolver.promise.then(function(){clearTimeout(J)})};
_.O(Ryl,_.hV);var T2W=function(C,F){C.JSC$17050_playNonceResolver.resolve(F!=null?F:U5(8));C.enableDisplayingPpn&&YmL(C).then(function(G){C.JSC$17050_miniAppClientDataProvider.clientData.set("post_play_nonce",G)})},YmL=function(C){return _.I(function(F){return F.nextAddress==1?F.yield(C.JSC$17050_playNonceResolver.promise,2):F.return(F.yieldResult)})},gSr=function(C){var F,G;
_.I(function(V){if(V.nextAddress==1)return V.yield(C.JSC$17050_playNonceResolver.promise,2);F=V.yieldResult;G={miniAppInfo:{externalPostId:C.JSC$17050_miniAppId,localReleaseId:C.localReleaseId,postPlayNonce:F,derivedDeviceInterface:C.derivedDeviceInterface}};_.UZ(G);_.S9(V)})},rOM=function(C){C.state!==0?_.Yw(new _.Ay("[MiniAppPlayLogger] recordPlayStart failed with state "+P8r[C.state])):(C.state=1,J$(C,"ma_cl"),$R(C,"PLAY_EVENT_TYPE_PLAY_START"),oSM(C))},K$8=function(C){C.isForeground=!1;
$R(C,"PLAY_EVENT_TYPE_PLAY_PAUSE")},Do_=function(C){C.state!==1&&C.state!==2?_.Yw(new _.Ay("[MiniAppPlayLogger] recordPlayEnd failed with state "+P8r[C.state])):(C.state=3,window.clearInterval(C.playPingTimerId),C.playPingTimerId=NaN,oDE(),$R(C,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},pu8=function(C,F){C.state===2&&C.gameReady&&(C.firstClickRecorded?Date.now()-C.clickRecordedMs<C.playClickIntervalMs||(C.clickRecordedMs=Date.now(),$R(C,"PLAY_EVENT_TYPE_PLAY_CLICK")):F&&(J$(C,"ma_fua"),$R(C,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),C.firstClickRecorded=!0,C.clickRecordedMs=Date.now()))};
Ryl.prototype.logError=function(C){var F=this,G;_.I(function(V){if(V.nextAddress==1)return C.metadata.externalPostId=F.JSC$17050_miniAppId,G=C.metadata,V.yield(Promise.race([F.JSC$17050_playNonceResolver.promise,new Promise(function(J){setTimeout(function(){J("")},3E4)})]),2);
G.postPlayNonce=V.yieldResult;C.metadata.localReleaseId=F.localReleaseId;C.loggingError.level="WARNING";_.gD(C.loggingError,C.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:C.metadata});_.S9(V)})};
var moL=function(C,F,G,V){var J,b,z,Q,E,t;_.I(function(k){if(k.nextAddress==1)return k.yield(C.JSC$17050_playNonceResolver.promise,2);J=k.yieldResult;b={externalPostId:C.JSC$17050_miniAppId,localReleaseId:C.localReleaseId,postPlayNonce:J,sdkVersion:G,api:F};V!==void 0&&(b.networkRequestsMeasurement={networkRequests:_.Wk(V,1),cachedRequests:_.Wk(V,2),transferredBytes:_.Wk(V,3)},(z=V)==null?0:_.Ji(z,iu,6))&&(b.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((Q=_.aa(V,
iu,6))==null?void 0:Uj(Q,1))||"0",cacheHits:((E=_.aa(V,iu,6))==null?void 0:Uj(E,2))||"0",cachedBytes:((t=_.aa(V,iu,6))==null?void 0:Uj(t,3))||"0"});_.q1("miniAppSdkUsage",b);_.S9(k)})},jL8=function(C,F,G){var V,J,b,z,Q,E,t,k,U,H,l,N,S,f,c,A;
_.I(function(T){if(T.nextAddress==1)return T.yield(C.JSC$17050_playNonceResolver.promise,2);V=T.yieldResult;J={externalPostId:C.JSC$17050_miniAppId,localReleaseId:C.localReleaseId,postPlayNonce:V,sdkVersion:G,measurementWindow:{startTimestampMs:String(Wc(F,1)),endTimestampMs:String(Wc(F,2))},frameRate:{averageFrameTimeDeltaMs:ti(F,3),averageFrameIdleTimeMs:ti(F,4)}};_.Ji(F,Ja,5)&&(J.networkRequests={networkRequests:(b=Id(F))==null?void 0:_.Wk(b,1),cachedRequests:(z=Id(F))==null?void 0:_.Wk(z,2),transferredBytes:(Q=
Id(F))==null?void 0:_.Wk(Q,3),sameOriginStatusCodeToCounts:CsL((E=Id(F))==null?void 0:frw(E,4)),crossOriginStatusCodeToCounts:CsL((t=Id(F))==null?void 0:frw(t,5))},(k=Id(F))==null?0:_.Ji(k,iu,6))&&(J.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((U=Id(F))==null?void 0:(H=_.aa(U,iu,6))==null?void 0:Uj(H,1))||"0",cacheHits:((l=Id(F))==null?void 0:(N=_.aa(l,iu,6))==null?void 0:Uj(N,2))||"0",cachedBytes:((S=Id(F))==null?void 0:(f=_.aa(S,iu,6))==null?void 0:Uj(f,3))||"0"});_.Ji(F,
Svu,7)&&(J.gameCapture={averageFrameTimeDeltaMs:(c=_.aa(F,Svu,7))==null?void 0:ti(c,1),averageFrameIdleTimeMs:(A=_.aa(F,Svu,7))==null?void 0:ti(A,2)});_.q1("miniAppPerformanceMetrics",J);_.S9(T)})},FdV=function(C,F){var G,V;
return _.I(function(J){if(J.nextAddress==1)return J.yield(C.JSC$17050_playNonceResolver.promise,2);G=J.yieldResult;V={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:C.JSC$17050_miniAppId,postPlayNonce:G,miniAppReleaseId:C.localReleaseId},derivedDeviceInterface:C.derivedDeviceInterface,adTriggerType:F,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.q1("miniAppAdEvent",V);_.S9(J)})};
Ryl.prototype.disposeInternal=function(){_.hV.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var $R=function(C,F,G,V){G=G===void 0?{}:G;V=V===void 0?!1:V;var J,b,z,Q;_.I(function(E){if(E.nextAddress==1)return J=C.isForeground,b=C.beforeReady,E.yield(C.JSC$17050_playNonceResolver.promise,2);z=E.yieldResult;Q={externalPostId:C.JSC$17050_miniAppId,localReleaseId:C.localReleaseId,derivedDeviceInterface:C.derivedDeviceInterface,postPlayNonce:z,type:F};G.sequenceGroup=z;Q.playState=b?"PLAY_STATE_NOT_READY":J?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.q1("miniAppPlayEvent",Q,
G);V&&_.P8();_.S9(E)})},J$=function(C,F){var G;
_.I(function(V){if(V.nextAddress==1)return G=(0,_.Et)(),V.yield(C.JSC$17050_playNonceResolver.promise,2);_.NV(F,G);_.S9(V)})},oSM=function(C){isNaN(C.playPingTimerId)&&(C.playPingTimerId=_.Z9(function(){C.state!==1&&C.state!==2?_.Yw(new _.Ay("[MiniAppPlayLogger] reportPlayPing failed with state "+P8r[C.state])):$R(C,"PLAY_EVENT_TYPE_PLAY_PING")},C.playPingIntervalMs))},CsL=function(C){return Array.from(C.entries()).map(function(F){var G=_.u(F);
F=G.next().value;G=G.next().value;return{key:F,value:G}})};var Gh3=function(){},VUd=function(C,F){C.showMiniAppAdCommand=F.showMiniAppAdCommand;
C.isEmbeddedInWebview=F.isEmbeddedInWebview;C.playLogger=F.playLogger},JlL=function(C,F){var G;
return _.I(function(V){if(V.nextAddress==1){if(!C.showMiniAppAdCommand||!C.isEmbeddedInWebview)return V.return(its(C,F));C.adResolver=new _.Cd;var J=new e6;G=_.kx(J,3,F);ld(C.showMiniAppAdCommand,zb2(G));return V.yield(C.adResolver.promise,2)}return V.return(V.yieldResult)})};
Gh3.prototype.onAdFinished=function(C){C=$Yr(C);var F;(F=this.adResolver)==null||F.resolve(C)};
var its=function(C,F){var G;return _.I(function(V){if(V.nextAddress==1)V=V.yield((G=C.playLogger)==null?void 0:FdV(G,dPZ(F)),2);else{var J=V.return;var b=new Jc7;b=_.kx(b,1,2);V=J.call(V,b)}return V})};var $3s=new _.jh("INNERTUBE_MANAGER_TOKEN");var btd=function(){this.callbacks={}};
btd.prototype.initialize=function(C){var F=this;this.callbacks=C;window.youtubewebview?window.youtubewebview.onmessage=function(G){n_8(F,G)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(G){n_8(F,G)})};
var n_8=function(C,F){if(F.data)try{var G=A9$(F.data);if(_.Or(_.ig(G,1))!=null){var V=iHO(_.a3(G,2));switch(G.getMethodName()){case "yt-mini-app-load-audio-state":var J,b;(b=(J=C.callbacks).onAudioStateLoaded)==null||b.call(J,_.Ej(V,L1(V,Aa,1)));break;case "yt-mute-mini-app":var z,Q;(Q=(z=C.callbacks).onMuteMiniApp)==null||Q.call(z);break;case "yt-unmute-mini-app":var E,t;(t=(E=C.callbacks).onUnmuteMiniApp)==null||t.call(E);break;case "yt-playable-exit":var k,U;(U=(k=C.callbacks).onExit)==null||U.call(k);
break;case "yt-post-play-nonce":var H,l;(l=(H=C.callbacks).onPostPlayNonceReceived)==null||l.call(H,lg(V,2,Aa));break;case "yt-confirm-exit-mini-app":var N,S;(S=(N=C.callbacks).confirmExitMiniApp)==null||S.call(N);break;case "yt-confirm-exit-mini-app-edu":var f,c;(c=(f=C.callbacks).confirmExitMiniAppEdu)==null||c.call(f);break;case "yt-benchmarking-response":var A,T;(T=(A=C.callbacks).onNativeBenchmarkingMessageReceived)==null||T.call(A,lg(V,2,Aa));break;case "yt-mini-app-load-3p-consent-state":var P,
g;(g=(P=C.callbacks).multiplayer3pAckStateLoaded)==null||g.call(P,_.Ej(V,L1(V,Aa,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var r,C9;(C9=(r=C.callbacks).exitMiniAppSeenStateLoaded)==null||C9.call(r,_.Ej(V,L1(V,Aa,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var Wo,EB;(EB=(Wo=C.callbacks).onNavigateToNewMiniApp)==null||EB.call(Wo);break;case "yt-game-data-available":var L9,ki;(ki=(L9=C.callbacks).onGameDataAvailable)==null||ki.call(L9,lg(V,2,Aa));break;case "yt-pause-mini-app":var lZ,
eq;(eq=(lZ=C.callbacks).onPauseMiniApp)==null||eq.call(lZ);break;case "yt-resume-mini-app":var OB,yr;(yr=(OB=C.callbacks).onResumeMiniApp)==null||yr.call(OB);break;case "yt-playable-ad-finished":var Rl,w2;(w2=(Rl=C.callbacks).onAdFinished)==null||w2.call(Rl,lg(V,2,Aa))}}else _.Yw(Error("Vh"))}catch(jG){_.gD(Error("Wh"))}else _.Yw(Error("Xh"))};var szW=function(C){this.rpcErrorCode=C};var bl=function(C,F,G){this.intervalMs=C;this.apiFunc=F;this.type=G;this.schedulerReady=!0};
bl.prototype.call=function(C){var F=this,G;return _.I(function(V){if(V.nextAddress==1){if(F.type!==1&&C===F.cachedValue)return V.return();F.pendingApiRequestResolver||(F.pendingApiRequestResolver=new _.Cd);G=F.pendingApiRequestResolver.promise;F.cachedValue=C;return V.yield(uMV(F),2)}return V.return(G)})};
bl.prototype.flush=function(C){C=C===void 0?!1:C;var F=this;return _.I(function(G){return F.cachedValue===void 0?G.return():G.yield(F.apiFunc(F.cachedValue,C),0)})};
var uMV=function(C){var F,G,V;return _.I(function(J){switch(J.nextAddress){case 1:if(!C.schedulerReady||!C.pendingApiRequestResolver)return J.return();C.schedulerReady=!1;F=C.pendingApiRequestResolver;C.pendingApiRequestResolver=void 0;_.yy(J,2);if(C.cachedValue===void 0){J.jumpTo(4);break}return J.yield(C.apiFunc(C.cachedValue),5);case 5:G=J.yieldResult,F.resolve(G);case 4:_.Gn(J,3);break;case 2:V=_.wa(J),F.reject(V);case 3:setTimeout(function(){return _.I(function(b){C.schedulerReady=!0;return b.yield(uMV(C),
0)})},C.intervalMs),_.S9(J)}})};var g4T=window.location.origin+"/miniapp_cloudsaves",q_i=[400,401],zxd=_.a8("cloud_save_game_data_rate_limit_ms",3E3),E_U=function(C){var F=this;this.JSC$17094_miniAppId=C;this.loadAttempts=0;this.cloudSaveIntervalMs=zxd;this.initialDownloadDataSucceeded=!1;this.JSC$17094_playNonceResolver=new _.Cd;this.scottyUploadRateLimiter=new bl(this.cloudSaveIntervalMs,function(G,V){return QLl(F,G,V)},2);
this.downloadDataPromise=Irh(this);this.downloadDataPromise.then(function(){F.initialDownloadDataSucceeded=!0}).catch(function(){})},Wdl=function(C,F){F.then(function(G){return C.JSC$17094_playNonceResolver.resolve(G)})},tUM=function(C){return _.I(function(F){return C.cachedData===void 0?F.return(C.downloadDataPromise):F.return(C.cachedData)})},ars=function(C,F){return _.I(function(G){C.cachedData=F;
if(!C.initialDownloadDataSucceeded)throw Error("Yh");return G.yield(C.scottyUploadRateLimiter.call(F),0)})},khd=function(){return new Promise(function(C){setTimeout(C,1E3,"")})},U3t=function(C,F){var G,V;
return _.I(function(J){if(J.nextAddress==1)return G=C.JSC$17094_miniAppId,J.yield(Promise.race([C.JSC$17094_playNonceResolver.promise,khd()]),2);V={"X-YouTube-MiniAppId":G,"X-YouTube-PostPlayNonce":J.yieldResult};"DELEGATED_SESSION_ID"in _.RD&&uIS(F,V);return J.return(V)})},QLl=function(C,F,G){G=G===void 0?!1:G;
return _.I(function(V){return xPi()?_.y("enable_cloud_save_error_popup_after_retry")?V.return(new Promise(function(J,b){var z,Q,E,t,k;return _.I(function(U){switch(U.nextAddress){case 1:z=0,Q=!0,t=E=null;case 2:if(!(Q&&z++<2)){U.jumpTo(4);break}_.yy(U,5);return U.yield(HtU(C,F,G),7);case 7:E=U.yieldResult;Q=E.ok?!1:!q_i.includes(E.status);_.Gn(U,2);break;case 5:t=k=_.wa(U);Q=PBW(t);U.jumpTo(2);break;case 4:E?E.ok?(nG(C,zxd),J()):(nG(C,C.cloudSaveIntervalMs*2),b(Error("Zh`"+String(E.status),{cause:{rpcErrorCode:E.status}}))):
(nG(C,C.cloudSaveIntervalMs*2),b(t||Error("$h"))),_.S9(U)}})})):V.return(new Promise(function(J,b){var z,Q;
return _.I(function(E){if(E.nextAddress==1){if(C.JSC$17094_miniAppId==="")return b(Error("ai")),E.return();_.yy(E,2);return E.yield(HtU(C,F,G),4)}if(E.nextAddress!=2)return z=E.yieldResult,z.ok?(nG(C,zxd),J()):(nG(C,C.cloudSaveIntervalMs*2),b(Error("Zh`"+String(z.status),{cause:{rpcErrorCode:z.status}}))),_.Gn(E,0);Q=_.wa(E);nG(C,C.cloudSaveIntervalMs*2);b(Q);_.S9(E)})})):V.return()})},HtU=function(C,F,G){G=G===void 0?!1:G;
var V,J,b;return _.I(function(z){if(z.nextAddress==1)return V=_.eU((new TextEncoder).encode(F)),J=RDT(),z.yield(U3t(C,J),2);b=z.yieldResult;return z.return(fetch(J,{method:"POST",body:new Blob([V]),headers:b,keepalive:G}))})},Irh=function(C){var F,G;
return _.I(function(V){if(V.nextAddress==1){if(!xPi())return V.return("");if(C.JSC$17094_miniAppId==="")throw Error("ai");if(C.loadAttempts>2)return V.return(C.downloadDataPromise);_.yy(V,2);return V.yield(lr_(C),4)}if(V.nextAddress!=2)return F=V.yieldResult,V.return(F);G=_.wa(V);if(PBW(G)&&++C.loadAttempts<2)return V.return(Irh(C));throw G;})},lr_=function(C){var F,G,V,J,b;
return _.I(function(z){switch(z.nextAddress){case 1:return _.yy(z,2),F=RDT(),z.yield(U3t(C,F),4);case 4:return G=z.yieldResult,z.yield(fetch(F,{method:"GET",headers:G}),5);case 5:return V=z.yieldResult,V.ok?z.yield(V.text(),6):z.return(Promise.reject(Error("bi`"+String(V.status),{cause:new szW(V.status)})));case 6:return J=z.yieldResult,z.return((new TextDecoder).decode(_.p9(J)));case 2:return b=_.wa(z),z.return(Promise.reject(b))}})},nG=function(C,F){C.cloudSaveIntervalMs=F;
C.scottyUploadRateLimiter.intervalMs=C.cloudSaveIntervalMs};
E_U.prototype.flush=function(){var C=this;return _.I(function(F){return C.initialDownloadDataSucceeded?F.yield(C.scottyUploadRateLimiter.flush(!0),0):F.return()})};var yll=zL(uu(1),bu(1)),ZtV=zL(uu(1),bu(3)),ul=function(C){this.callbacks=C};
_.n=ul.prototype;_.n.onAudioToggled=function(C,F){(F===void 0||F)&&_.E6("yt-mini-app-is-audio-enabled",C,2592E3)};
_.n.onPause=function(){this.onAudioToggled(!1,!1)};
_.n.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.n.returnNativeBenchmarkingMessage=function(){};
_.n.sendGameData=function(){};
_.n.sendStartGameFrameCapture=function(){};
var Y_I=function(C,F,G){this.callbacks=C;var V=this;this.sdkVersion=new _.Cd;this.channel=new VSE(_.p2({destination:window,iframe:F,origin:(new URL(G.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var J=zj;var b=uu(5);var z=new tB2;z=_.ZW(z,1,1E4);b=_.X6(b,4,Ncy,z);J(V,b);V.onAudioToggled(V.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){V.sdkVersion.resolve("")},1E4)};
_.O(Y_I,ul);_.n=Y_I.prototype;_.n.onAudioToggled=function(C,F){ul.prototype.onAudioToggled.call(this,C,F===void 0?!0:F);F=zj;var G=uu(2),V=new E0E;C=_.UD(V,1,C);C=_.X6(G,3,Ncy,C);F(this,C)};
_.n.onPause=function(){ul.prototype.onPause.call(this);zj(this,uu(3))};
_.n.onResume=function(){ul.prototype.onResume.call(this);zj(this,uu(4))};
_.n.returnNativeBenchmarkingMessage=function(C){var F=zj,G=uu(6);var V=bu(_.Ji(C,g8,1)?1:2);C=_.Ji(C,g8,1)?C:null;V=_.X6(V,5,nH,C);F(this,zL(G,V))};
_.n.sendGameData=function(C){var F=zj,G=uu(7);C=_.X6(G,5,Ncy,C);F(this,C)};
_.n.sendStartGameFrameCapture=function(){zj(this,uu(9))};
var QI=function(C,F,G){var V,J,b;return _.I(function(z){if(z.nextAddress==1)return V=C.callbacks,J=V.onSdkCalled,b=F,z.yield(C.sdkVersion.promise,2);J.call(V,b,z.yieldResult,G);_.S9(z)})};
Y_I.prototype.onMessage=function(){var C=this;return $_y(ER,function(F){var G,V,J,b,z,Q,E,t,k,U,H,l,N,S,f,c,A,T,P,g,r,C9,Wo,EB,L9,ki,lZ,eq,OB,yr,Rl,w2,jG,Il,Bu,vu,Zr,k_,$i,Vr,Um,V8,Hu,Gh,hW,YS;return _.I(function(Em){switch(Em.nextAddress){case 1:if(!fd7(F.data))return _.Yw(Error("ci")),Em.return();G=_.kL(F.data,1);_.y("enable_iframe_message_get_type_via_fields")&&(V=F.data,G=J=_.kL(V,1));switch(G){case 8:if(F.data.hasMetadata()){var Qr=C.sdkVersion,FM=Qr.resolve;var ow=F.data.getMetadata();ow=_.a3(ow,
1);FM.call(Qr,ow);clearTimeout(C.sdkVersionTimeoutId)}break;case 6:return Em.jumpTo(2);case 16:if(!_.$L(F.data,weG,14,Wf))return Em.return();b=_.yZ(F.data,weG,14,Wf);(Q=(z=C.callbacks).onGameFrameReceived)==null||Q.call(z,b);return Em.return();case 17:if(!_.$L(F.data,Xer,15,Wf))return Em.return();(t=(E=C.callbacks).onGameAudioReceived)==null||t.call(E,_.yZ(F.data,Xer,15,Wf));return Em.return();case 1:if(Qr=_.yZ(F.data,UYE,2,Wf))switch(_.kL(Qr,1)){case 1:C.callbacks.onFirstFrameReady();if(_.y("enable_network_request_logging_on_game_events")&&
_.Ji(Qr,Ja,4)){QI(C,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.aa(Qr,Ja,4));break}QI(C,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(ow=(FM=C.callbacks).onGameReady)==null||ow.call(FM);if(_.y("enable_network_request_logging_on_game_events")&&_.Ji(Qr,Ja,4)){QI(C,"MINI_APP_SDK_API_GAME_READY",_.aa(Qr,Ja,4));break}QI(C,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.$L(Qr,$D,3,H4P))C.callbacks.onResourceLoaded(_.yZ(Qr,$D,3,H4P))}return Em.return();case 3:return Em.jumpTo(3);case 4:return Em.jumpTo(4);
case 2:return Em.jumpTo(5);case 9:return Em.jumpTo(6);case 10:return C.callbacks.onClick(),Em.return();case 5:return Em.jumpTo(7);case 11:if(!_.$L(F.data,GL,9,Wf))return Em.return();k=_.yZ(F.data,GL,9,Wf);(H=(U=C.callbacks).onBenchmarkingMessageReceived)==null||H.call(U,k);Qr=F.reply;FM=uu(1);ow=bu(1);var kS=new GL;var HV=new Uint8Array(ZPr(k,L1(k,n08,6))|0);kS=O1(kS,5,n08,_.fP(HV,!1));ow=_.X6(ow,5,nH,kS);Qr.call(F,zL(FM,ow));return Em.return();case 12:return Em.jumpTo(8);case 13:return Em.jumpTo(9);
case 15:if(!_.y("enable_open_yt_content"))return F.reply(ZtV),Em.return();if(!_.$L(F.data,O4l,12,Wf))return F.reply(zL(uu(1),bu(2))),Em.return();Qr=_.yZ(F.data,O4l,12,Wf);l=_.a3(Qr,1);C.callbacks.onOpenYTContent(l);F.reply(yll);return Em.return();case 14:return Em.jumpTo(10);default:return Em.return()}Em.jumpTo(0);break;case 2:if(!_.$L(F.data,Ql,5,Wf))return Em.return();FM=F.data;Qr=L1(FM,Wf,5);FM=FM.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;N=exZ(FM,FM[_.JO]|0,Ql,Qr)||Ql[xoW]||(Ql[xoW]=
sli(Ql));Qr=_.IM(N,Vl,1,_.ED());S=_.u(Qr);f=S.next();case 12:if(f.done){Em.jumpTo(14);break}c=f.value;A=new _.Ay;A.level=_.kL(c,2)===1?"WARNING":"ERROR";T=o4W(c.getSource());return Em.yield(C.sdkVersion.promise,15);case 15:P={source:T,sdkVersion:Em.yieldResult};_.$_(_.ig(c,6))!=null?(A.message=c.getMessage(),A.stack=_.a3(c,5),P.sdkErrorType=r0i(_.kL(c,6)),_.$_(_.ig(c,7))!=null&&(P.sdkApi=KqI(_.kL(c,7)))):A.stack=void 0;r=g=void 0;(r=(g=C.callbacks).onError)==null||r.call(g,{loggingError:A,metadata:P});
f=S.next();Em.jumpTo(12);break;case 14:return Em.return();case 3:return _.yy(Em,16),Qr=Em.yield,FM=C.callbacks,ow=FM.onSave,kS=_.yZ(F.data,WlP,4,Wf),kS=_.a3(kS,1),Qr.call(Em,ow.call(FM,kS),18);case 18:F.reply(yll);_.Gn(Em,17);break;case 16:return C9=_.wa(Em),Wo=y6,EB=C9,L9=C.callbacks,ki="MINI_APP_SDK_API_SAVE_DATA",Em.yield(C.sdkVersion.promise,19);case 19:Wo(EB,L9,ki,Em.yieldResult),F.reply(ZtV);case 17:return Em.yield(QI(C,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return Em.return();case 4:return _.yy(Em,
21),Em.yield(C.callbacks.onLoad(),23);case 23:lZ=Em.yieldResult;Qr=F.reply;FM=uu(1);ow=bu(1);kS=new WlP;kS=_.fA(kS,1,lZ);ow=_.X6(ow,3,nH,kS);Qr.call(F,zL(FM,ow));_.Gn(Em,22);break;case 21:return eq=_.wa(Em),OB=y6,yr=eq,Rl=C.callbacks,w2="MINI_APP_SDK_API_LOAD_DATA",Em.yield(C.sdkVersion.promise,24);case 24:OB(yr,Rl,w2,Em.yieldResult),F.reply(ZtV);case 22:return Em.yield(QI(C,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return Em.return();case 5:_.yy(Em,26);C.callbacks.onSendHighScore(gG(_.yZ(F.data,
Bcu,3,Wf).getValue()));F.reply(zL(uu(1),bu(1)));_.Gn(Em,27);break;case 26:return jG=_.wa(Em),Il=y6,Bu=jG,vu=C.callbacks,Zr="MINI_APP_SDK_API_SEND_SCORE",Em.yield(C.sdkVersion.promise,28);case 28:Il(Bu,vu,Zr,Em.yieldResult),F.reply(ZtV);case 27:return Em.yield(QI(C,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return Em.return();case 6:if(!_.$L(F.data,v0u,8,Wf)){Em.jumpTo(30);break}Qr=Em.yield;FM=_.yZ(F.data,v0u,8,Wf);FM=_.kL(FM,1);return Qr.call(Em,QI(C,KqI(FM)),30);case 30:return Em.return();case 7:return Qr=
F.reply,FM=uu(1),ow=bu(1),kS=C.callbacks.getLanguage(),ow=O1(ow,4,nH,N3(kS)),Qr.call(F,zL(FM,ow)),Em.yield(QI(C,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return Em.return();case 8:if(!_.$L(F.data,LlS,10,Wf))return Em.return();k_=_.yZ(F.data,LlS,10,Wf);$i=C.callbacks;Vr=$i.onSdkPerformanceUpdate;return Em.yield(C.sdkVersion.promise,33);case 33:return Vr.call($i,k_,Em.yieldResult),Em.return();case 9:Qr=F.data;FM=L1(Qr,Wf,11);if(_.Or(_.ig(Qr,FM))==null)return F.reply(zL(uu(1),bu(2))),Em.return();
Um=lg(F.data,11,Wf);C.callbacks.onShareInviteCode(Um);F.reply(yll);return Em.yield(QI(C,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return Em.return();case 10:if(_.$L(F.data,IdS,13,Wf)){Em.jumpTo(35);break}return Em.yield(C.callbacks.onShowMiniAppAd(2),36);case 36:return V8=Em.yieldResult,F.reply(zL(uu(1),ycS(V8))),Em.yield(QI(C,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return Em.return();case 35:Qr=_.yZ(F.data,IdS,13,Wf);a:switch(_.kL(Qr,1)){case 1:Qr={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:Qr={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:Qr={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}Hu=Qr;Gh=Hu.adType;hW=Hu.sdkApi;Qr=Em.yield;FM=C.callbacks;ow=FM.onShowMiniAppAd;kS=_.yZ(F.data,IdS,13,Wf);kS=_.a3(kS,2);return Qr.call(Em,ow.call(FM,Gh,kS||void 0),38);case 38:return YS=Em.yieldResult,F.reply(zL(uu(1),ycS(YS))),Em.yield(QI(C,hW),39);case 39:return Em.return()}})})};
var zj=function(C,F){_.I(function(G){C.channel.send(F);_.S9(G)})},ZF=function(C,F,G){this.callbacks=C;
var V=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;C=ph9(F,(new URL(G.toString())).origin);this.gameSnacks=new HTu(C);this.gameSnacks.page.onReady(function(){V.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){V.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var J,b;(b=(J=V.callbacks).onGameReady)==null||b.call(J)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(J,b){try{V.callbacks.onSendHighScore(b)}catch(z){y6(z,V.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(J,b){var z;return _.I(function(Q){if(Q.nextAddress==1)return _.yy(Q,2),Q.yield(V.callbacks.onSave(V.decoder.decode(b)),4);if(Q.nextAddress!=2)return _.Gn(Q,0);z=_.wa(Q);y6(z,V.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return Q.return()})});
this.gameSnacks.storage.onLoad(function(){var J,b;return _.I(function(z){if(z.nextAddress==1)return _.yy(z,2),z.yield(V.callbacks.onLoad(),4);if(z.nextAddress!=2)return J=z.yieldResult,z.return(V.encoder.encode(J));b=_.wa(z);y6(b,V.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return z.return(V.encoder.encode(""))})});
this.gameSnacks.init()};
_.O(ZF,ul);ZF.prototype.onAudioToggled=function(C,F){ul.prototype.onAudioToggled.call(this,C,F===void 0?!0:F);var G;(G=this.gameSnacks)==null||G.audio.update(C)};
ZF.prototype.onPause=function(){ul.prototype.onPause.call(this);var C;(C=this.gameSnacks)==null||C.game.pause()};
ZF.prototype.onResume=function(){ul.prototype.onResume.call(this);var C;(C=this.gameSnacks)==null||C.game.resume()};var NWM=DPA,Ot3=_.d(function(C){var F=C.data;var G=C.loadingProgress;var V=C.forPaused;C=_.u(_.yH("",void 0,"LYYTdd"));var J=C.next().value,b=C.next().value;C=_.u(_.yH(!1,void 0,"K0waae"));var z=C.next().value,Q=C.next().value,E=[],t=function(){return"transform: scaleX("+(_.g0(G)||0)+")"},k=null,U=function(){return F()&&k!==null&&k!==void 0?k:k=F().showAnniversaryAnimation?6:NWM()};
_.sq(function(){var S;if(F().timeOutMessages&&((S=F().timeOutMessages)==null?0:S.length)){k=null;S=_.u(E);for(var f=S.next();!f.done;f=S.next())clearTimeout(f.value);E.length=0;pMZ(F().timeOutMessages,E,b,Q)}},"BNu9j");
var H=function(){return!!F().persistentErrorMessageTitle},l=function(){return G!==void 0},N=function(){return F().title};
return _.W("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.W("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.W("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.W("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var S,f=(S=F().backgroundImage)==null?void 0:S.sources,c;return(f==null?0:f.length)?"background-image: url("+((c=f[0])==null?void 0:c.url)+")":""}}),_.W("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.W(_.a,{cond:function(){return!H()&&!(V==null?0:V())},
then:function(){var S={};return _.W("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.W("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.W(_.NQ,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+U()},
data:function(){var f="loading_animation_"+U();return{animationConfig:{name:f,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+f+".json",loop:!0,autoplay:!0}}}})),_.W("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.W(_.a,{cond:N,
then:function(){return _.W("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},N)}}),_.W("p",{class:_.py("miniAppSplashScreenViewModelTimeoutMessage",(S.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return z()},S)),
"aria-live":"polite"},J),_.W(_.a,{cond:l,then:function(){return _.W("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.W("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:t}))}})))}}),_.W(_.a,{cond:H,
then:function(){return _.W("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.W("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return F().persistentErrorMessageTitle}),_.W(_.a,{cond:function(){return!!F().persistentErrorMessageDescription},
then:function(){return _.W("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return F().persistentErrorMessageDescription})}}))}}),_.W(_.a,{cond:V,
then:function(){return _.W("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.W("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.W("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},N))}})))},"Jf");var XVr=new _.jh("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var wVV=nW;nW=function(C){function F(G){if(G){var V,J;(V=G.__spec)==null||(J=V.didUnmount)==null||J.call(V);for(V=0;V<G.childNodes.length;V++)F(G.childNodes[V])}}
wVV==null||wVV(C);tC(function(){for(var G=0;G<C.length;G++)F(C[G])})};var MU3=_.d(function(C){var F=C.data;var G=C.score;var V=C.formattedScore;var J=C.onScoreChanged;var b=C.isEmbeddedInWebview;var z=_.nc("yt-mini-app-score-button-view-model"),Q=function(){var l;return _.Z(F==null?void 0:(l=F())==null?void 0:l.buttonViewModel,_.jl)},E=function(){var l;
return(G==null?void 0:G())||Number(F==null?void 0:(l=F())==null?void 0:l.lastScore)||0},t=function(){var l;
return(V==null?void 0:V())||((l=Q())==null?void 0:l.title)||""},k,U=1;
if(C=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))C=Number(C),U=isNaN(C)?1:C/100;_.sq(function(){J==null||J(E());var l;var N=_.ZD((l=Q())==null?void 0:l.onTap);if(N){l=_.Z(N,KkO);var S,f,c;l=_.Z(l==null?void 0:(S=l.panelLoadingStrategy)==null?void 0:(f=S.inlineContent)==null?void 0:(c=f.dialogViewModel)==null?void 0:c.customContent,Qd$)}else l=void 0;if(S=l)S.score=t()},"Aekez");
C=_.CZ(function(){var l,N,S=F==null?void 0:(l=F())==null?void 0:(N=l.loggingDirectives)==null?void 0:N.trackingParams;S&&_.MJ(_.I8().resolve(_.hS),S);return!1});
_.q4(function(){if(z.value){var l=z.value.querySelector("button"),N=Q();l&&N&&mPi(l,N);_.Ix("yt-share-playable-with-high-score",function(){var S=E().toString(),f=F==null?void 0:F().onShareHighScoreCommand,c=F==null?void 0:F().highScoreShareClientParamIdentifier,A=b==null?void 0:b();f&&(A?(c=new AJO,S=_.fA(c,2,S),ld(f,S.JSC$12530_serializeBinary())):c&&(_.I8().resolve(XVr).clientParams.set(c,{miniAppClientParams:{highScore:S}}),hDA(f,!1)))})}});
var H=function(){var l=Q();l&&(G==null?0:G())&&l.accessibilityText&&(l.accessibilityText=l.accessibilityText.replace(k,t()));k=t();return{numberValue:E(),numberText:t(),heightPx:36,fontSizeMultiplier:U,shouldAnimate:!(G==null||!G())&&!0}};
return _.W("yt-mini-app-score-button-view-model",{class:function(){var l={};return _.tm("miniAppScoreButtonViewModelHost",(l.miniAppScoreButtonViewModelIsVisible=E()!==0,l))},
el:z,"on:click":C},WpZ(!1,function(){return _.W("span",{style:"display:none;"},E)}),_.W(_.uC,{data:function(){var l;
return F==null?void 0:(l=F())==null?void 0:l.buttonViewModel}},{buttonViewModel:function(l){return _.W(_.tS,{data:l.data,
animatedTextProps:H})}}))},"Lf");var frL=_.d(function(C){var F,G=(F=_.Wr("yt-mini-app-is-theater-mode-enabled"))!=null?F:!1,V=_.y("enable_playable_container_save_button"),J=_.y("enable_play_next_destination_page_in_toolbar");F={};return _.W("ytm-mini-app-top-bar-view-model",null,_.W("div",{class:_.py("yt-mini-app-top-bar-view-model",(F["yt-mini-app-top-bar-view-model--mobile"]=!1,F["yt-mini-app-top-bar-view-model--desktop"]=!0,F))},_.W("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.W(_.a,{cond:function(){var b;return!!C.data().backButtonEdu&&
!((b=C.isExitMiniAppSeen)==null?0:b.call(C))},
then:function(){return _.W(_.uC,{data:function(){return C.data().backButtonEdu}},{buttonViewModel:_.tS})},
else:function(){return _.W(_.uC,{data:function(){return C.data().backButton}},{buttonViewModel:_.tS})}}),_.W(_.a,{cond:function(){return C.data().viewAllButton&&!0},
then:function(){return _.W(_.uC,{data:function(){return C.data().viewAllButton}},{buttonViewModel:_.tS})}}),_.W(_.a,{cond:function(){return C.data().title&&!0},
then:function(){return _.W("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return C.data().title})}})),_.W("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.W(_.a,{cond:function(){var b;
return(b=C.isDesktopPlayPage)==null?void 0:b.call(C)},
then:function(){return _.W(_.WQ,null,_.W(Srd,{highScoreButton:function(){return C.data().highScoreButton},
score:C.score,formattedScore:C.formattedScore,onScoreChanged:C.onScoreChanged,isEmbeddedInWebview:C.isEmbeddedInWebview}),_.W(Lds,{enableSaveButton:function(){return _.g0(V)},
saveButton:function(){return C.data().saveButton},
isSaved:C.isSaved,onSaveToggled:function(){return C.onSaveToggled}}),_.W(BW8,{menuButton:function(){return C.data().menuButton}}))},
else:function(){return _.W(_.a,{cond:function(){return!1},
then:function(){return _.W(_.uC,{data:function(){return C.data().playPageButton}},{buttonViewModel:function(b){return _.W(_.tS,{data:b.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.W(Srd,{highScoreButton:function(){return C.data().highScoreButton},
score:C.score,formattedScore:C.formattedScore,onScoreChanged:C.onScoreChanged,isEmbeddedInWebview:C.isEmbeddedInWebview})}})}})),_.W("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.W(_.uC,{data:function(){return C.data().muteButton}},{toggleButtonViewModel:function(b){var z=b.data;
return _.W(_.AS,{data:function(){var Q,E;return Object.assign({},z(),{isToggled:(E=(Q=C.isAudioEnabled)==null?void 0:Q.call(C))!=null?E:!0})},
onToggle:C.onAudioToggled,useOutlinedIcon:!0})}}),_.W(_.uC,{data:function(){return C.data().theatreModeButton}},{toggleButtonViewModel:function(b){var z=b.data;
return _.W("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.W(_.AS,{data:function(){return Object.assign({},z(),{isToggled:G})},
useOutlinedIcon:!0}))}}),_.W(v_r,{fullscreenButton:function(){return C.data().fullscreenButton}}),_.W(_.a,{cond:function(){return _.g0(J)&&C.data().viewAllButton&&!1},
then:function(){return _.W(_.uC,{data:function(){return C.data().viewAllButton}},{buttonViewModel:_.tS})}}),_.W(_.a,{cond:function(){var b;
return!((b=C.isDesktopPlayPage)==null?0:b.call(C))},
then:function(){return _.W(_.WQ,null,_.W(Lds,{enableSaveButton:function(){return _.g0(V)},
saveButton:function(){return C.data().saveButton},
isSaved:C.isSaved,onSaveToggled:function(){return C.onSaveToggled}}),_.W(BW8,{menuButton:function(){return C.data().menuButton}}))}}))))},"Mf");
frL.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var BW8=_.d(function(C){return _.W(_.uC,{data:C.menuButton},{buttonViewModel:_.tS})},"Nf"),Lds=_.d(function(C){var F=C.enableSaveButton;
var G=C.saveButton;var V=C.isSaved;var J=C.onSaveToggled;return _.W(_.a,{cond:function(){return F()&&!(G==null||!G())},
then:function(){return _.W(_.uC,{data:function(){var b=_.Z(G==null?void 0:G(),_.Gz),z;return{toggleButtonViewModel:Object.assign({},b,{isToggled:(z=V==null?void 0:V())!=null?z:!(b==null||!b.isToggled)})}}},{toggleButtonViewModel:function(b){return _.W(_.AS,{data:b.data,
onToggle:J})}})}})},"Of"),Srd=_.d(function(C){var F=C.highScoreButton;
var G=C.score;var V=C.formattedScore;var J=C.onScoreChanged;var b=C.isEmbeddedInWebview;return _.W(_.uC,{data:F},{miniAppScoreButtonViewModel:function(z){return _.W(MU3,{data:z.data,score:G,formattedScore:V,onScoreChanged:J,isEmbeddedInWebview:b})}})},"Pf"),v_r=_.d(function(C){C=C.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.W(_.WQ,null):_.W(_.uC,{data:C},{buttonViewModel:_.tS})},"Qf");_.hxr=new _.jh("DESKTOP_CURRENT_PAGE");var sLh=_.d(function(C){var F=C.data;var G=_.y("force_active_time_logging_webview"),V=!1,J=new btd,b=void 0,z=void 0,Q=_.I8().resolve($3s),E=new Gh3,t=void 0,k=void 0,U=[],H=void 0,l=void 0,N=!1,S=!1,f=!1,c=!1,A=new _.Cd,T=_.I8().resolve(XVr),P=_.I8().resolve(_.il),g=_.I8().resolve(_.Qt(LR)),r,C9=(r=_.I8().resolve(_.Qt(_.hxr)))==null?void 0:r.getCurrentPage(),Wo=!1,EB=0,L9=function(DA){DA.preventDefault();return DA.returnValue=""},ki;
C=_.u(_.yH(!((ki=_.Wr("yt-mini-app-is-audio-enabled"))!=null&&!ki),void 0,"WhYQTd"));var lZ=C.next().value,eq=C.next().value,OB;ki=_.u(_.yH(!((OB=_.Wr("exit-mini-app-seen-state"))==null||!OB),void 0,"jxhCJb"));var yr=ki.next().value,Rl=ki.next().value;OB=_.u(_.yH(!1,void 0,"MuvDfe"));var w2=OB.next().value,jG=OB.next().value;OB=_.u(_.yH(void 0,void 0,"u9DLoc"));var Il=OB.next().value,Bu=OB.next().value;OB=_.u(_.yH(void 0,void 0,"rykyJb"));var vu=OB.next().value,Zr=OB.next().value;OB=_.u(_.yH(!0,void 0,
"d8FUvf"));var k_=OB.next().value,$i=OB.next().value;OB=_.u(_.yH(!1,void 0,"x9XwUb"));var Vr=OB.next().value,Um=OB.next().value;OB=_.u(_.yH(!1,void 0,"bcquyc"));var V8=OB.next().value,Hu=OB.next().value;OB=_.u(_.yH(void 0,void 0,"FMAC5b"));var Gh=OB.next().value,hW=OB.next().value;OB=_.u(_.yH(0,void 0,"HUGJEb"));var YS=OB.next().value,Em=OB.next().value,Qr=_.Jt("mini-app-container-view-model"),FM=function(){return F().isEmbeddedInWebview},ow=function(){return F().hasPlayNextShelf};
_.Ix("yt-page-type-changed",function(DA){if(_.y("enable_is_mini_app_page_active_bugfix"))DA.detail.newPageSubtype==="mini_app"&&DA.detail.newPageType==="ytd-browse"||!k_()||r9();else if(DA=_.HoW()==="mini_app",DA!==k_())if($i(DA),DA){var wW;DA=(wW=F().playableId)==null?void 0:wW.toString();DA!==void 0&&window.location.href.includes(DA)&&!S&&(c=!0,kS(),UL.value&&Sy(UL.value))}else DA||r9()});
_.Ix("yt-action",function(DA){DA.detail.actionName==="yt-engagement-panel-visible-changed"&&DA.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&DA.detail.args[2]==="PAmini_app_panel"&&r9();_.y("enable_is_mini_app_page_active_bugfix")?DA.detail.actionName==="yt-history-load"&&!k_()&&(C9==null?0:C9.active)?($i(!0),kS(),UL.value&&Sy(UL.value)):DA.detail.actionName==="yt-history-load"&&k_()&&!F().isEmbeddedInWebview&&nA():k_()&&DA.detail.actionName==="yt-history-load"&&(c?c=!1:F().isEmbeddedInWebview||
nA())});
_.q0(function(){HV()});
_.sq(function(){kS()},"bLMzme");
var kS=function(){var DA=F().playableId,wW=F().localReleaseId,WV=F().derivedDeviceInterface;if(S)_.Yw(new _.Ay("[MiniAppContainerViewModel] onEnter was called more than once"));else{S=!0;b=new Ryl(DA,wW,WV,document.visibilityState==="visible");rOM(b);z=new E_U(DA);cl8(Q,DA);VUd(E,{showMiniAppAdCommand:F().showMiniAppAdCommand,isEmbeddedInWebview:F().isEmbeddedInWebview,playLogger:b});KyI()&&(l=document.body.style.backgroundColor,_.fk(document.body,"background-color","black"));Cc();dW();A=new _.Cd;
if(F().isEmbeddedInWebview){if(DA=(new URLSearchParams(window.location.search)).get("postPlayNonce"))T2W(b,DA),Wo=!0;J.initialize({onAudioStateLoaded:function(us){mh(us)},
onMuteMiniApp:function(){mh(!1)},
onUnmuteMiniApp:function(){mh(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(us){Wo||(T2W(b,us),Wo=!0)},
confirmExitMiniApp:function(){var us,Es,rS;return _.I(function(Yd){if(Yd.nextAddress==1)return F().confirmExitMiniAppCommand?Yd.yield(Promise.race([A.promise,Promise.resolve(!1)]),2):Yd.return();(us=Yd.yieldResult)?!F().confirmExitMiniAppCommandEdu||(rS=(Es=yr)==null?void 0:Es())!=null&&rS?lh(F().confirmExitMiniAppCommand):(lh(F().confirmExitMiniAppCommandEdu),_.E6("exit-mini-app-seen-state","true",2592E6)):lh(F().closeMiniAppCommand);_.S9(Yd)})},
onNativeBenchmarkingMessageReceived:function(us){us=zm2(_.f$I(us));if(_.$L(us,_.Up,3,b4P)){var Es=_.yZ(us,_.Up,3,b4P),rS=c0E();var Yd=gG(rS.getSeconds())-gG(Es.getSeconds());Es=_.Wk(rS,2)-_.Wk(Es,2);Yd<0&&Es>0?(Yd+=1,Es-=1E9):Yd>0&&Es<0&&(--Yd,Es+=1E9);Yd=(new g8).setSeconds(Yd);Yd=_.jS(Yd,2,_.bs(Es),0);_.OL(us,1,Yd)}var JC;(JC=k)==null||JC.returnNativeBenchmarkingMessage(us)},
multiplayer3pAckStateLoaded:function(us){nA(us)},
exitMiniAppSeenStateLoaded:function(us){F().confirmExitMiniAppCommandEdu&&Rl(us)},
onNavigateToNewMiniApp:function(){lh(F().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(us){us=new URLSearchParams(us);var Es=void 0;us.has("invite_code")&&(Es=new ke8,us=us.get("invite_code"),Es=_.fA(Es,1,us));if(us=Es){var rS;(rS=k)==null||rS.sendGameData(us)}},
onPauseMiniApp:function(){V=!0;BV()},
onResumeMiniApp:function(){V=!0;qa()},
onAdFinished:function(us){E.onAdFinished(us)}});
F().showMultiplayer3pConsentDialogCommand||A.resolve(!0);lh(F().onContainerReadyCommand)}else T2W(b),A.resolve(!0);Wdl(z,YmL(b));YmL(b).then(function(us){us={miniAppPlayData:{postPlayNonce:us}};var Es,rS=(Es=F().loggingDirectives)==null?void 0:Es.trackingParams;rS&&_.ia().stateChanged(rS,us)});
DA=F().showSignInDialogCommand;!xPi()&&DA&&(_.E6("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),lh(DA));F().confirmExitMiniAppCommand&&g&&(DA=v4Z(F().confirmExitMiniAppCommand))&&(g.customConfirmationCommand=DA)}},HV=function(){l&&_.fk(document.body,"background-color",l);
N=!1;H&&H.release();z.flush().catch(function(DA){_.Yw(DA)});
Q.flush().catch(function(DA){_.Yw(DA)});
Do_(b);Hc();k=void 0;AlV(T)},r9=function(){$i(!1);
HV();jG(!1);hW(void 0);Bu(void 0);Zr(void 0);EB=0;Em(0);S=!1},BV=function(){var DA;
(DA=k)==null||DA.onPause();H&&H.release();z.flush().catch(function(wW){_.Yw(wW)});
Q.flush().catch(function(wW){_.Yw(wW)});
K$8(b);Um(!0)},qa=function(){var DA;
(DA=k)==null||DA.onResume();dW();DA=b;DA.isForeground=!0;$R(DA,"PLAY_EVENT_TYPE_PLAY_RESUME");Um(!1)},mh=function(DA){var wW;
(wW=k)==null||wW.onAudioToggled(DA);eq(DA)},nA=function(DA){F().showMultiplayer3pConsentDialogCommand&&(F().isEmbeddedInWebview&&DA!==void 0&&A.resolve(DA),!DA&&_.HoW()==="mini_app"&&lh(F().showMultiplayer3pConsentDialogCommand))},pP=function(){var DA,wW,WV,us;
return _.I(function(Es){if(Es.nextAddress==1){!F().isLivestream||F().disableVideoCapture||(DA=k)!=null&&DA.sendStartGameFrameCapture();wW=(new URL(window.location.href)).searchParams;if(wW.has("invite_code")){var rS=new ke8,Yd=wW.get("invite_code");WV=_.fA(rS,1,Yd);(us=k)==null||us.sendGameData(WV)}w2()||(jG(!0),rS=b,rS.state!==1?_.Yw(new _.Ay("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+P8r[rS.state])):(_.Uw("mini_app_ids_without_game_ready").includes(rS.JSC$17050_miniAppId)&&(rS.gameReady=
!0),rS.state=2,rS.beforeReady=!1,J$(rS,"ma_ffr"),$R(rS,"PLAY_EVENT_TYPE_PLAY_READY")));return Es.yield(A.promise,2)}lh(F().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();F().isEmbeddedInWebview||nA();_.S9(Es)})},XM=function(){var DA=b;
DA.gameReady=!0;J$(DA,"ma_gr")},is=function(DA){var wW;
return _.I(function(WV){if(WV.nextAddress==1)return _.yy(WV,2),WV.yield(ars(z,DA),4);if(WV.nextAddress!=2)return _.Gn(WV,0);wW=_.wa(WV);lh(F().showSavingErrorPopupCommand);throw wW;})},nf=function(){var DA,wW;
return _.I(function(WV){if(WV.nextAddress==1)return _.yy(WV,2),WV.yield(tUM(z),4);if(WV.nextAddress!=2)return DA=WV.yieldResult,WV.return(DA);wW=_.wa(WV);lh(F().showLoadingErrorDialogCommand);throw wW;})},jo=function(DA){b.logError(DA)},oR=function(DA,wW,WV){moL(b,DA,wW,WV)},A2=function(DA,wW){jL8(b,DA,wW)},li=function(){!G&&F().isEmbeddedInWebview||_.Q2();
pu8(b,!0);N||(window.addEventListener("beforeunload",L9,{capture:!0}),N=!0)},HS=function(DA){var wW,WV,us,Es,rS,Yd,JC;
return _.I(function(xJ){if(xJ.nextAddress==1)return Q&&(!t||t<DA)&&DA>0?xJ.yield(exs(Q,DA),3):xJ.jumpTo(0);wW=xJ.yieldResult;WV=_.u(wW);us=WV.next().value;Es=WV.next().value;rS=us;Yd=Es;((JC=rS)==null?0:JC.displayString)&&Yd&&(Bu(Yd),Zr(rS.displayString));_.S9(xJ)})},Sq=function(DA){var wW=F().onBenchmarkingMessageReceivedCommand;
if(wW){var WV=c0E();_.X6(DA,3,b4P,WV);ld(wW,Qqy(DA))}},xi=function(DA){var wW=F().onGameFrameReceivedCommand;
if(wW){var WV=new e6;var us=new $Sl;var Es=Wc(DA,1);us=_.f1(us,1,Es);DA=_.a3(DA,2);DA=_.fA(us,2,DA);WV=_.OL(WV,2,DA);ld(wW,zb2(WV))}},Yi=function(DA){var wW=F().onGameAudioDataReceivedCommand;
if(wW){var WV=new e6;var us=new nDr;DA=_.a3(DA,1);us=_.fA(us,1,DA);WV=_.OL(WV,4,us);ld(wW,zb2(WV))}},Zu=function(){var DA=new URLSearchParams(window.location.search);
if(F().isEmbeddedInWebview&&DA&&DA.get("override_hl")==="true"&&DA.get("hl"))return DA.get("hl");DA=document.documentElement.lang;return DA!==""?DA:SN},ls=function(DA){var wW=F().onShareInviteCodeCommand;
if(wW)if(F().isEmbeddedInWebview){var WV=new AJO;DA=_.fA(WV,1,DA);ld(wW,dj2(DA))}else WV=F().inviteCodeShareClientParamIdentifier,T.clientParams.set(WV,{miniAppClientParams:{inviteCode:DA}}),lh(wW)},Bh=function(DA){var wW,WV,us;
return _.I(function(Es){if(Es.nextAddress==1)return wW=F().onMiniAppOpenYtContentRequested,Q&&_.y("enable_open_yt_content")&&wW?Es.yield(d38(Q,DA),3):Es.jumpTo(0);WV=Es.yieldResult;if(WV==="OK")if(F().isEmbeddedInWebview){var rS=new GLP;us=O1(rS,2,Aa,N3(DA));ld(wW,JaO(us))}else P.clientData.set("video_id",DA),lh(wW);_.S9(Es)})},vV=function(DA){EB+=_.Wk(DA,3);
DA=Math.min(Math.log(1+EB/15E6*9)/Math.log(10),.99);Em(DA);Om(DA)},Om=_.kk(function(DA){var wW=F().updateLoadingProgressCommand;
if(wW){var WV=new GLP;DA=O1(WV,3,Aa,_.KP(DA));ld(wW,JaO(DA))}},100),No=function(DA){return JlL(E,DA)},dW=function(){var DA,wW;
((DA=_.aXw())==null?void 0:(wW=DA.wakeLock)==null?void 0:wW.request)!=null&&_.aXw().wakeLock.request("screen").then(function(WV){H=WV}).catch(function(){})},UL=_.nc("iframe");
_.sq(function(){F().isSupportedCountry&&(xPi()||_.y("enable_sign_in_promo")||!F().showSignInDialogCommand?UL.value&&Sy(UL.value):lh(F().onMiniAppReadyCommand))},"ASuFde");
var al=function(){return _.W("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return w2()?0:-1},
el:UL})},Sy=function(DA,wW){wW=wW===void 0?!1:wW;
var WV=eE();WV&&(wW||WV.toString()!==DA.getAttribute("src"))&&(k=TFI(F().source,{isAudioEnabled:lZ,onFirstFrameReady:pP,onGameReady:XM,onSave:is,onLoad:nf,onError:jo,onSdkCalled:oR,onSdkPerformanceUpdate:A2,onClick:li,onSendHighScore:HS,onBenchmarkingMessageReceived:Sq,getLanguage:Zu,onShareInviteCode:ls,onResourceLoaded:vV,onOpenYTContent:Bh,onShowMiniAppAd:No,onGameFrameReceived:xi,onGameAudioReceived:Yi},DA,WV),ny(DA,"load",function(){J$(b,"ma_il");ny(DA,"load",function(){Sy(DA,!0)})}),_.mY(DA,
WV))},eE=function(){var DA=F().url;
if(DA&&(DA=_.Ra(DA),DA!==null)){if(F().source&&F().source==="MINI_APP_SOURCE_GAMESNACKS")DA=_.Us(DA,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.y("enable_origin_query_parameter_bugfix")){var wW=_.Ed(_.QbB(DA.toString()));wW=new URLSearchParams(wW||"");wW.set("origin",window.location.origin);wW=wW.toString();DA=_.vh(DA).toString();DA=_.LT(Kbm.exec(DA)[0]+(wW.trim()?"#"+wW:""))}return DA}},xl=function(){var DA={};
DA=_.py("yt-mini-app-container-view-model__loading-screen",(DA["yt-mini-app-container-view-model__loading-screen--fade-out"]=w2,DA));var wW=function(){return w2()?1:YS()};
return _.W("div",{class:DA},_.W(_.uC,{data:function(){return F().splashScreen}},{miniAppSplashScreenViewModel:function(WV){return _.W(Ot3,{data:WV.data,
loadingProgress:wW})}}))},KB=function(){var DA={};
return _.W("div",{class:_.py("yt-mini-app-container-view-model__pause-interstitial",(DA["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!Vr()},DA["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=Vr,DA))},_.W(_.uC,{data:function(){return F().splashScreen}},{miniAppSplashScreenViewModel:function(wW){return _.W(Ot3,{data:wW.data,
forPaused:!0})}}))},Cc=function(){U=[];
U.push(_.IP(window,"visibilitychange",function(){f||V&&FM()||(document.visibilityState==="visible"?qa():BV())}));
U.push(_.IP(window,"pagehide",function(){HV()}));
U.push(_.IP(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&Qr.value.dispatchEvent(new Event("tap"))},0)}));
U.push(_.IP(Qr.value,"pointerdown",function(){pu8(b,!1)},!0));
U.push(_.IP(Qr.value,"pause",function(){f=!0;BV()}));
U.push(_.IP(Qr.value,"play",function(){f=!1;qa()}));
U.push(_.IP(Qr.value,"exit",function(){HV()}));
var DA=navigator.keyboard,wW=DA&&DA.lock;U.push(_.IP(window,$Gu,function(){Hu(nJO());nJO()?(F().hasPlayNextShelf&&GP("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),Wd("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),wW&&DA.lock(["Escape"])):(F().hasPlayNextShelf&&Wd("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),GP("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),wW&&DA.unlock())}));
F().showMultiplayer3pConsentDialogCommand&&U.push(_.IP(window,"yt-playables-ack-3p-data-usage",function(){x3h(Q)}));
F().confirmExitMiniAppCommandEdu&&U.push(_.IP(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.E6("exit-mini-app-seen-state","true",2592E6)}));
F().onGameAudioDataReceivedCommand&&U.push(_.IP(window,"message",function(WV){WV=WV.event_;var us,Es=(us=UL.value)==null?void 0:us.src;if(Es&&WV.origin===(new URL(Es)).origin&&WV.data&&WV.data.type==="GAME_AUDIO"&&WV.data.audio&&WV.data.audio.length>0)if(_.y("enable_sending_unwrapped_game_audio_as_serialized_metadata"))eDE(F().onGameAudioDataReceivedCommand,WV.data.audio);else{var rS=new FileReader;rS.onload=function(){var Yd=new e6;var JC=new nDr;JC=_.fA(JC,1,rS.result);Yd=_.OL(Yd,4,JC);ld(F().onGameAudioDataReceivedCommand,
zb2(Yd))};
rS.readAsDataURL(new Blob([WV.data.audio]))}}))},Hc=function(){U.forEach(function(DA){ua(DA)});
window.removeEventListener("beforeunload",L9,{capture:!0})},lh=function(DA){DA&&hDA(DA,F().isEmbeddedInWebview||!1)},Wd=function(DA,wW){DA=_.u(Qr.value.getElementsByClassName(DA));
for(var WV=DA.next();!WV.done;WV=DA.next())WV.value.classList.add(wW)},GP=function(DA,wW){DA=_.u(Qr.value.getElementsByClassName(DA));
for(var WV=DA.next();!WV.done;WV=DA.next())WV.value.classList.remove(wW)};
return function(){var DA={};DA=_.py("yt-mini-app-container-view-model",(DA["yt-mini-app-container-view-model--desktop"]=!0,DA["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return F().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},DA["yt-mini-app-container-view-model--ios-web-view"]=KyI(),DA["yt-mini-app-container-view-model--no-top-bar"]=function(){return!F().topBar},DA["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return F().hasPlayNextShelf},DA["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return F().hasPlayNextShelf},DA["yt-mini-app-container-view-model--show-peek-below"]=function(){return!V8()&&F().hasPlayNextShelf},DA));
var wW={};wW=_.py("yt-mini-app-container-view-model__content",(wW["yt-mini-app-container-view-model__content--desktop-content"]=!0,wW["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return F().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},wW["yt-mini-app-container-view-model--desktop-play-page"]=function(){return F().hasPlayNextShelf},wW));
return _.W("mini-app-container-view-model",{el:Qr},_.W("div",{class:DA},_.W(_.a,{cond:function(){return F().topBar&&!V8()},
then:function(){return _.W(_.uC,{data:function(){return F().topBar}},{miniAppTopBarViewModel:function(WV){return _.W(frL,{data:WV.data,
isAudioEnabled:lZ,onAudioToggled:function(us){mh(us)},
score:Il,formattedScore:vu,onScoreChanged:function(us){t=us},
isEmbeddedInWebview:FM,isSaved:Gh,onSaveToggled:function(us){hW(us)},
isExitMiniAppSeen:yr,isDesktopPlayPage:ow})}})}}),_.W("div",{class:wW},_.W(_.a,{cond:k_,
then:function(){return al()}}),_.W(_.a,{cond:function(){return F().isLivestream},
then:function(){return KB()}}),_.W(_.a,{cond:function(){return!F().isEmbeddedInWebview},
then:function(){return xl()}}))))}()},"Tf");
sLh.idomCompat=!0;_.gQ(sLh,"mini-app-container-view-model",{props:{data:_.CJ}});var qrr=_.d(function(C){var F=C.data;return _.W("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.W("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.CZ(function(){var G=F().onTap;G&&_.wQ(G)})},_.W(_.a,{cond:function(){return F().icon},
then:function(G){return _.W(_.i5,{icon:function(){return G().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.W("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return F().title})))},"Uf");
qrr.idomCompat=!0;var Psx=_.d(function(C){var F=_.Jt("div"),G=_.u(_.yH(void 0,void 0,"dg3xff")),V=G.next().value,J=G.next().value;G=_.u(_.yH(void 0,void 0,"AgHNfc"));var b=G.next().value,z=G.next().value;G=_.u(_.yH(void 0,void 0,"fuTKCc"));var Q=G.next().value,E=G.next().value,t=function(){var c=V();return c!==void 0?Math.abs(c):void 0},k=function(){var c=t();
return c===void 0||c<=3},U=function(){var c=t();
var A=b(),T=Q();c=c!==void 0&&A!==void 0&&T!==void 0?A-T-c:void 0;return c===void 0||c<=3},H=function(c){F.value&&F.value.scrollBy({top:0,
left:(_.TF("HTML_DIR")==="rtl"?-1:1)*c*F.value.clientWidth,behavior:"smooth"})},l=function(){var c;
J((c=F.value)==null?void 0:c.scrollLeft);var A;z((A=F.value)==null?void 0:A.scrollWidth);var T;E((T=F.value)==null?void 0:T.clientWidth)},N=function(){H(-.5)},S=function(){H(.5)};
G=_.CZ(function(){l()});
_.s0(function(){l();if(F.value&&window.ResizeObserver){var c=new ResizeObserver(l);c.observe(F.value);_.q0(function(){c.disconnect()})}});
var f={};return _.W("yt-sponsorships-scrollable-shelf",{class:_.py("ytdSponsorshipsScrollableShelfHost",C.className)},_.W("div",{class:_.py("ytdSponsorshipsScrollableShelfContent",(f.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return C.data().previousButton&&C.data().nextButton&&!k()&&!U()},f.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return C.data().previousButton&&!k()&&U()},f.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return C.data().nextButton&&
k()&&!U()},f)),
el:F,"on:scroll":G},C.children),_.W(_.a,{cond:function(){return!k()},
then:function(){return _.W(_.uC,{data:function(){return C.data().previousButton}},{buttonViewModel:function(c){return _.W(_.tS,{data:c.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:N})}})}}),_.W(_.a,{cond:function(){return!U()},
then:function(){return _.W(_.uC,{data:function(){return C.data().nextButton}},{buttonViewModel:function(c){return _.W(_.tS,{data:c.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:S})}})}}))},"Wf");
Psx.idomCompat=!0;var Rx8=_.d(function(C){var F=C.data;C={};return _.W("yt-sponsorships-hub",{class:_.py("ytdSponsorshipsHubHost",(C.ytdSponsorshipsHubHostIndented=function(){return F().indented},C))},_.W("div",{class:"ytdSponsorshipsHubHeader"},_.W("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.W("div",{class:"ytdSponsorshipsHubAvatar"},_.W(_.uC,{data:function(){return F().avatar}},{avatarViewModel:_.g$})),_.W(_.a,{cond:function(){return F().badgeImage},
then:function(G){return _.W("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.W("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.W("div",{class:"ytdSponsorshipsHubBadge"},_.W(_.AC,{data:G,targetWidth:24,targetHeight:24,alt:""}))))}})),_.W("div",{class:"ytdSponsorshipsHubDetails"},_.W("div",{class:"ytdSponsorshipsHubTierName"},function(){return F().tierName}),_.W("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return F().membershipType}),_.W("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return F().membershipDurationOrExpiry})),_.W("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.W(_.uC,{data:function(){return F().manageButton}},{buttonViewModel:function(G){return _.W(_.tS,{data:G.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.W(_.uC,{data:function(){return F().actionMenuButton}},{buttonViewModel:function(G){return _.W(_.tS,{data:G.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.W("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return F().perksTitle}),_.W(Psx,{data:function(){return{previousButton:F().previousPerkButton,
nextButton:F().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.W("div",{class:"ytdSponsorshipsHubPerkCards"},_.W(_.uC,{data:function(){return F().perkCards}},{sponsorshipsHubPerkCardViewModel:qrr}),_.W(_.a,{cond:function(){return F().viewAllPerksButton},
then:function(G){return _.W(g_M,{data:G})}}))))},"Xf");
Rx8.idomCompat=!0;var g_M=_.d(function(C){var F=C.data;return _.W("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.W(_.uC,{data:function(){return F().button}},{buttonViewModel:_.tS}),_.W("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.W("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return F().title}),_.W("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return F().subtitle})))},"Yf");
g_M.idomCompat=!0;_.gQ(Rx8,"yt-sponsorships-hub",{props:{data:_.CJ}});_.YrW=_.d(function(C){var F=C.data;return _.W("yt-dual-avatar-view-model",{class:_.py("ytDualAvatarViewModelHost",C.className),style:_.VA({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var G;return((G=F().badgeCutoutRadius)!=null?G:14)+"px"}})},_.W("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.W(_.uC,{data:function(){return F().startAvatar}},{avatarViewModel:_.g$}),_.W(_.uC,{data:function(){return F().endAvatar}},{avatarViewModel:_.g$})),_.W(_.uC,{data:function(){return F().badge}},
{contentPreviewImageViewModel:function(G){return _.W("div",{class:"ytDualAvatarViewModelBadge"},_.W(_.tZ,{data:G.data}))}}))},"Zf");
_.YrW.idomCompat=!0;var o_M=_.d(function(C){var F=C.data;var G,V=!((G=_.I8().resolve(_.Qt(_.v6)))==null||!G());C=_.w0(function(){var k,U,H=V?(k=F().header)==null?void 0:k.backgroundColorDarkMode:(U=F().header)==null?void 0:U.backgroundColorLightMode;if(H!==void 0)return _.lE(H)},void 0,"TDdh7d");
G=_.w0(function(){var k,U;return V?(k=F().header)==null?void 0:k.backgroundImagePart1Dark:(U=F().header)==null?void 0:U.backgroundImagePart1Light},void 0,"X0peMe");
var J=_.w0(function(){var k,U;return V?(k=F().header)==null?void 0:k.backgroundImagePart2Dark:(U=F().header)==null?void 0:U.backgroundImagePart2Light},void 0,"an0Hzd"),b=_.w0(function(){return _.TF("HTML_DIR")==="rtl"},void 0,"BltEgb"),z=_.Jt("yt-sponsorships-perks-list"),Q=!1,E=function(){var k=z.value;
if(k&&!Q){var U,H=(U=k.parentElement)==null?void 0:U.parentElement;if(H)for(k=k.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),U=0;U<k.length;++U){var l=k[U];if(l instanceof HTMLElement){H.scrollTo({top:l.offsetTop+l.clientHeight/2-H.clientHeight/2,behavior:"smooth"});Q=!0;break}}}};
_.q4(function(){var k=z.value;if(k&&window.ResizeObserver){var U=new ResizeObserver(E);U.observe(k);_.q0(function(){U.disconnect()})}});
var t={};return _.W("yt-sponsorships-perks-list",{el:z,class:_.py("ytdSponsorshipsPerksListHost",(t.ytdSponsorshipsPerksListHorizontalPadding=function(){return F().horizontalPaddingEnabled},t))},_.W("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.W("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.VA({"background-color":C})},_.W("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.W(_.a,{cond:G,then:function(k){var U={};return _.W("div",{class:_.py((U.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=V,U.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!V,U.ytdSponsorshipsPerksListFlipped=b,U))},_.W(_.AC,{data:k,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.W("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.W(_.a,{cond:J,
then:function(k){var U={};return _.W("div",{class:_.py((U.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=V,U.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!V,U.ytdSponsorshipsPerksListFlipped=b,U))},_.W(_.AC,{data:k,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.W("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.W(_.uC,{data:function(){var k;
return(k=F().header)==null?void 0:k.dualAvatar}},{dualAvatarViewModel:_.YrW})))),_.W("div",{class:"ytdSponsorshipsPerksListBody"},_.W("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return F().title}),_.W(_.a,{cond:function(){return F().perks},
then:function(k){return _.W(_.Ag,{each:k},function(U,H){var l={};return _.W("div",{class:_.py("ytdSponsorshipsPerksListPerkContainer",(l.ytdSponsorshipsPerksListSelectedPerk=function(){var N=H(),S=F().selectedPerkIndex;return N===S},l))},_.W(_.a,{cond:function(){return H()>0},
then:function(){return _.W("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.W("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.W(_.a,{cond:function(){return U.icon},
then:function(N){return _.W(_.i5,{icon:function(){return N().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.W("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.W("div",{class:"ytdSponsorshipsPerksListPerkTitle"},U.title),_.W("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.W(_.mn,{text:U.description})),_.W(_.a,{cond:function(){return U.instructions},
then:function(){var N,S;return _.W("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.W("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(N=U.instructions)==null?void 0:N.title),_.W("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.W(_.mn,{text:(S=U.instructions)==null?void 0:S.text})))}}))),_.W(_.a,{cond:function(){return U.emoji},
then:function(N){return _.W("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.W(_.Ag,{each:function(){return N()}},function(S){return _.W(_.AC,{data:S,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.W(TW_,{data:U}))})}})))},"$f");
o_M.idomCompat=!0;var TW_=_.d(function(C){var F=C.data;var G=function(z,Q){return z===Q},V=function(){var z=F();
z=_.Z(z==null?void 0:z.badgesShelf,PYG);return z!==void 0&&z!==null?z:{previousButton:{},nextButton:{}}},J=_.nc("div"),b=function(){var z=J.value;
if(z){var Q=z.parentElement;if(Q){z=z.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var E=0;E<z.length;++E){var t=z[E];if(t instanceof HTMLElement){Q.scrollTo({left:t.offsetLeft+t.clientWidth/2-Q.clientWidth/2,behavior:"instant"});break}}}}};
_.q4(function(){var z=J.value;if(z){var Q=new ResizeObserver(b);Q.observe(z);_.q0(function(){Q.disconnect()})}});
return _.W("div",null,_.W(_.a,{cond:function(){return F().badges},
then:function(z){return _.W(Psx,{data:V},_.W("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:J},_.W(_.Ag,{each:function(){return z()}},function(Q,E){var t={},k={},U={};
return _.W("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.W(_.a,{cond:function(){return E()>0},
then:function(){return _.W("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.W("div",{class:_.py("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(t.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return G(E(),F().currentBadgeIndex)},t.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!G(E(),F().currentBadgeIndex)},t))},_.W("div",{class:_.py("ytdSponsorshipsPerksListLoyaltyBadge",(k.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return G(E(),
F().currentBadgeIndex)},k.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!G(E(),F().currentBadgeIndex)},k))},_.W(_.a,{cond:function(){return Q.image},
then:function(H){var l={};return _.W("div",{class:_.py((l.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return G(E(),F().currentBadgeIndex)},l.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!G(E(),F().currentBadgeIndex)},l))},_.W(_.AC,{data:H,
alt:""}))}})),_.W("div",{class:_.py("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(U.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return G(E(),F().currentBadgeIndex)},U))},Q.title)))})))}}))},"ag");
TW_.idomCompat=!0;_.gQ(o_M,"yt-sponsorships-perks-list",{props:{data:_.CJ}});_.gQ(_.d(function(C){return _.W("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.W(_.a,{cond:function(){return C.data().image},
then:function(F){return _.W(_.AC,{className:"ytwFantasyEmptyStateViewModelImage",data:F,ariaHidden:!0,alt:""})}}),_.W(_.mn,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return C.data().title}}),_.W(_.mn,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return C.data().subtitle}}),_.W(_.uC,{data:function(){return C.data().primaryButton}},{buttonViewModel:function(F){return _.W(_.tS,{data:F.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"bg"),"ytw-fantasy-empty-state-view-model",{props:{data:_.CJ}});var rl_;var Kd_=_.d(function(C){var F=C.data;var G=C.uniqueId;var V=C.overrides;C=_.w0(function(){var J,b=((J=F().timedAnimationData)==null?void 0:J.animationTiming)||[];return{uniqueId:G(),timings:b,experimentEnabled:b.length>0,enabled:b.length>0}},void 0,"hiuXI");
return _.W("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.W(cXl,{settings:C},_.W(_.uC,{data:function(){return F().buttonRenderer}},{buttonRenderer:function(J){return _.W(_.JZ,{data:J.data,
buttonOverrides:V})}})))},"cg");
Kd_.idomCompat=!0;_.gQ(Kd_,"timed-animation-button-renderer",{props:{data:_.CJ,uniqueId:_.CJ,overrides:_.CJ}});var Iu=function(){var C=_.B.apply(this,arguments)||this;C.hideJoinButtonBeforeSubscribed=_.y("hide_join_button_before_subscribed");C.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return C};
_.O(Iu,_.B);_.n=Iu.prototype;_.n.hasShowDialogCommand=function(C){return!!_.Z(C,KkO)};
_.n.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"}}}};
_.n.updateJoinButtonOverrides=function(){var C,F;(C=_.ot(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(F=C.polymerController)==null||F.set("overrides",this.joinButtonOverrides);if(C=_.ot(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))C.overrides=this.joinButtonOverrides};
_.n.handleButtonRefreshAction=function(C){if(C=_.Z(C,Hx2))this.set("data.membershipButton",C.membershipButton),this.notifyPath("data.membershipButton")};
_.n.onYtServiceRequestError=function(C){_.Bl(this.hostElement,C.detail.error.message)};
_.n.onKeydown=function(C){if(C.key==="Enter"){var F;(F=this.data)!=null&&F.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.n.handleUnsubscribeAction=function(){var C,F,G;((C=this.data)==null?void 0:(F=C.membershipButton)==null?void 0:(G=F.buttonRenderer)==null?void 0:G.style)==="STYLE_PRIMARY"&&_.ot(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.I6.Object.defineProperties(Iu.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.subscriptionStateEntity)==null||!C.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var C,F=(C=this.data)==null?void 0:C.membershipButton,G;C=(F==null?void 0:F.buttonRenderer)||_.Z(F==null?void 0:(G=F.timedAnimationButtonRenderer)==null?void 0:G.buttonRenderer,_.DY);return(C==null?void 0:C.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(C==null?void 0:C.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(C==null?void 0:C.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var C;if(this.hasShowDialogCommand((C=this.data)==null?void 0:C.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var C;if(this.hasShowDialogCommand((C=this.data)==null?void 0:C.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.attributedTitle)}}});
Iu.prototype.onYtServiceRequestError=Iu.prototype.onYtServiceRequestError;Iu.prototype.updateJoinButtonOverrides=Iu.prototype.updateJoinButtonOverrides;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],Iu.prototype,"actionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Iu.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Iu.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.w(_.Rr),_.Y("design:type",Object)],Iu.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Iu.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.dg),_.Y("design:type",Object)],Iu.prototype,"ironButtonState",void 0);_.R([_.L(),_.Y("design:type",Object)],Iu.prototype,"data",void 0);_.R([_.M("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Iu.prototype,"hideJoin",null);
_.R([_.L(),_.Y("design:type",String)],Iu.prototype,"subscribeKey",void 0);_.R([_.L({selectorArgs:["subscribeKey"],selector:mvT}),_.Y("design:type",Object)],Iu.prototype,"subscriptionStateEntity",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Iu.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.R([_.M("subscriptionStateEntity"),_.L({reflectToAttribute:!0}),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Iu.prototype,"subscribed",null);
_.R([_.M("subscribed","data.membershipButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Iu.prototype,"joinButtonOverrides",null);_.R([_.M("data.navigationEndpoint"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Iu.prototype,"channelNameTabIndex",null);_.R([_.M("data.navigationEndpoint"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Iu.prototype,"channelNameRole",null);
_.R([_.M("data.attributedTitle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Iu.prototype,"hasAttributedTitle",null);_.R([_.iP("joinButtonOverrides"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Iu.prototype,"updateJoinButtonOverrides",null);_.R([_.VG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Iu.prototype,"onYtServiceRequestError",null);
_.R([_.e({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],Iu);
var D3r=_.Tp()(Iu,"ytd-video-owner-renderer",function(){if(rl_===void 0){var C=document.createElement("template");_.X(C,'\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"><template is="dom-if" if="[[data.thumbnail]]" class="style-scope ytd-video-owner-renderer"><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></template><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><yt-attributed-string id="attributed-channel-name" data="[[data.attributedTitle]]" ellipsis-truncate="true" hidden$="[[!hasAttributedTitle]]" no-pre-wrap="true" no-wrap="true" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></yt-attributed-string><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" hidden="[[hasAttributedTitle]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);rl_=C}C=rl_;return C},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.gQ(_.d(function(C){var F=C.data;var G;C=_.u(_.yH(!((G=_.Wr("yt-mini-app-is-theater-mode-enabled"))==null||!G),void 0,"i2pjVd"));var V=C.next().value,J=C.next().value;G=_.u(_.yH(!1,void 0,"ga7V5c"));var b=G.next().value,z=G.next().value;_.q4(function(){var t=_.IP(window,$Gu,function(){z(nJO())});
_.q0(function(){ua(t)})});
var Q;G=(Q=_.I8().resolve(_.Qt(H9L)))!=null?Q:function(){return _.W("div",null)};
_.i9("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){J(!0);_.E6("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.i9("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){J(!1);_.E6("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
Q={};C={};var E={};return _.W("mini-app-play-page-renderer",{class:_.py("miniAppPlayPageRendererHost",(Q.miniAppPlayPageRendererHostDetailsView=function(){return!V()},Q))},_.W("div",{class:_.py("miniAppPlayPageRendererGameContainer",(C.miniAppPlayPageRendererGameContainerDetailsView=function(){return!V()},C))},_.W(_.uC,{data:function(){return F().containerViewModel}},{miniAppContainerViewModel:sLh}),_.W(_.a,{cond:function(){return F().channel&&F().subscribeButton},
then:function(){var t={};return _.W("div",{class:_.py("miniAppPlayPageRendererChannelContainer",(t.miniAppPlayPageRendererHideVisibility=function(){return b()},t))},_.W(_.uC,{data:function(){return F().channel}},{videoOwnerRenderer:function(k){return _.W(D3r,{data:k.data})}}),_.W(_.uC,{data:function(){return F().subscribeButton}},{subscribeButtonViewModel:function(k){return _.W(_.gB,{data:k.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.W(_.a,{cond:function(){return!V()&&F().description},
then:function(){var t={};return _.W("div",{class:_.py("miniAppPlayPageRendererMiniAppDescriptionWrapper",(t.miniAppPlayPageRendererHideVisibility=function(){return b()},t))},_.W("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return F().description}))}})),_.W("div",{class:_.py("miniAppPlayPageRendererPlayNextContainer",(E.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!V()},E.miniAppPlayPageRendererHideVisibility=function(){return b()},E))},_.W(_.uC,{data:function(){return F().sectionList}},
{sectionListRenderer:G})))},"dg"),"mini-app-play-page-renderer",{props:{data:_.CJ}});var Ec=function(){var C=_.B.apply(this,arguments)||this;C.isSearch=!1;C.isConstrainedList=!1;C.hasChipsBar=!1;C.inReplyPanel=!1;C.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"}};C.monitorScroll=!0;C.SCROLL_ANIMATION_DURATION_MS=300;C.nextContinuation={continuationType:"sectionListContinuation"};return C};
_.O(Ec,_.B);_.n=Ec.prototype;
_.n.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(C){switch(C.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},flowRootRenderer:{component:"ytd-flow-root-renderer",
noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",
noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",
noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},
liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},
creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.y("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.y("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.n.created=function(){var C=this;this.JSC$17189_scrollAnimation=new _.VI(function(F){C.hostElement.scrollTop=F})};
_.n.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.n.getItemsPath=function(){return"data.contents"};
_.n.replacePrimaryContent=function(C){this.set("data.contents",C)};
_.n.computeHasSortFilter=function(C){return!!C&&!!C.sortFilterSubMenuRenderer};
_.n.computeShouldScrollInPanel=function(C){var F;return!!(C==null?0:(F=C.scrollPaneStyle)==null?0:F.scrollable)};
_.n.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.pd(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.n.scrollToTop=function(){this.hostElement.scrollTop=0};
_.n.scrollToItemSection=function(C){if(C=this.getItemByIdentifier(C))C=this.getScrollPositionForItem(C),this.hostElement.scrollTop!==C&&this.JSC$17189_scrollAnimation.start(this.hostElement.scrollTop,C,this.SCROLL_ANIMATION_DURATION_MS)};
_.n.getItemByIdentifier=function(C){var F=this.contents.querySelectorAll("ytd-item-section-renderer");if(F&&F.length!==0){var G=Array.from(F).findIndex(function(V){return V.sectionIdentifier===C});
return F[G===-1?0:G]}};
_.n.getScrollPositionForItem=function(C){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===C)return 0;C=_.RR(C).y+this.hostElement.scrollTop-_.RR(this.hostElement).y;return Math.min(C,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.I6.Object.defineProperties(Ec.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.targetId)==="browse-feedFEclips"}}});
Ec.prototype.onScroll=Ec.prototype.onScroll;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Ec.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Ec.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.zR.YtLazyListBehavior),_.Y("design:type",Object)],Ec.prototype,"ytLazyListBehavior",void 0);_.R([_.w(_.VD.YtNextContinuationBehavior),_.Y("design:type",Object)],Ec.prototype,"ytNextContinuationBehavior",void 0);
_.R([_.w(_.ey8),_.Y("design:type",Object)],Ec.prototype,"ytBooleanLogicBehavior",void 0);_.R([_.w(_.G1),_.Y("design:type",Object)],Ec.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Ec.prototype,"data",void 0);_.R([_.L({value:2}),_.Y("design:type",Number)],Ec.prototype,"initialCount",void 0);_.R([_.L({value:!0}),_.Y("design:type",Boolean)],Ec.prototype,"autoFill",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.Y("design:type",Boolean)],Ec.prototype,"hasSortFilter",void 0);_.R([_.L({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.Y("design:type",Boolean)],Ec.prototype,"hideBottomSeparator",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.Y("design:type",Boolean)],Ec.prototype,"shouldScrollInPanel",void 0);
_.R([_.L(),_.Y("design:type",Object)],Ec.prototype,"isSearch",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Ec.prototype,"isConstrainedList",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],Ec.prototype,"responsiveSizing",void 0);_.R([_.L(),_.Y("design:type",Object)],Ec.prototype,"hasChipsBar",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],Ec.prototype,"pageSubtype",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ec.prototype,"engagementPanel",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ec.prototype,"liveChatEngagementPanel",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Ec.prototype,"inReplyPanel",void 0);_.R([_.$z("#action-button"),_.Y("design:type",HTMLElement)],Ec.prototype,"actionButton",void 0);_.R([_.L(),_.Y("design:type",Object)],Ec.prototype,"scrollUpButtonData",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ec.prototype,"engagementPanelDropdown",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ec.prototype,"engagementPanelDialog",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ec.prototype,"isClipList",null);_.R([_.$z("#contents"),_.Y("design:type",HTMLElement)],Ec.prototype,"monitorScrollElement",void 0);_.R([_.$z("#contents"),_.Y("design:type",HTMLElement)],Ec.prototype,"contents",void 0);
_.R([_.VG("scroll"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ec.prototype,"onScroll",null);_.R([_.e({is:"ytd-section-list-renderer",disableElementRegistration:!0})],Ec);
var pVx=_.Tp()(Ec,"ytd-section-list-renderer",function(){if(UfV===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);UfV=C}C=UfV;return C},{mode:1});var m3r;var C0s;var jnW;var FYL;var WR=function(){return _.B.apply(this,arguments)||this};
_.O(WR,_.B);WR.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
WR.prototype.onLikeButtonClick=function(C){C.stopPropagation();C.preventDefault()};
_.I6.Object.defineProperties(WR.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var C;if((C=this.data)!=null&&C.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)})}}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],WR.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],WR.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],WR.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],WR.prototype,"ytRendererStamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],WR.prototype,"data",void 0);
_.R([_.L({selectorArgs:["data.likeStatusEntityKey"],selector:NG}),_.Y("design:type",Object)],WR.prototype,"likeStatusEntity",void 0);_.R([_.M("data","likeStatusEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],WR.prototype,"likeButtonRenderer",null);_.R([_.e({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],WR);
_.q(WR,"ytd-slim-metadata-toggle-button-renderer",function(){if(FYL!==void 0)return FYL;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);
return FYL=C},{mode:1});var t$=function(){var C=_.B.apply(this,arguments)||this;C.minimizePipBreakages=_.y("web_pip_minimize_breakages");C.showEqualizer=_.y("web_enable_playlist_video_lockup_equalizer");C.watchColorUpdate=_.y("kevlar_watch_color_update");C.actionMap={};return C};
_.O(t$,_.B);_.n=t$.prototype;_.n.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"}}}};
_.n.computeEditableClass=function(C){return C&&C.menu?"editable":""};
_.n.computeSelected=function(C){return!(C==null||!C.selected)};
_.n.computeUseColorPalette=function(C){return!!((C==null?0:C.lightColorPalette)&&(C==null?0:C.darkColorPalette))};
_.n.computeLargerPlaylistThumbs=function(C,F){return _.y("web_enable_playlist_bigger_thumbnails")&&!F};
_.n.computeShowPlayIcon=function(C){return!!C&&_.y("web_use_play_icon_for_playlist_panel_video_renderer")};
_.n.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.n.onYtServiceRequestSent=function(C,F){F.endpoint&&this.isHideEnclosingAction(F.endpoint)&&!this.selected&&lTr(_.$s(),this.data.videoId)};
_.n.isHideEnclosingAction=function(C){var F=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",C);C=this.get("likeEndpoint.status",C)==="INDIFFERENT";return F||C};
_.n.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.n.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.I6.Object.defineProperties(t$.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.y("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.y("enable_web_delhi_icons")?"play":"play_arrow"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var C;return!!(this.withinMiniplayer&&((C=this.data)==null?0:C.actionButtons))}}});
t$.prototype.onYtServiceRequestSent=t$.prototype.onYtServiceRequestSent;t$.prototype.canReorderChanged=t$.prototype.canReorderChanged;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],t$.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],t$.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],t$.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.CR),_.Y("design:type",Object)],t$.prototype,"ytdLockupBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],t$.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],t$.prototype,"withinMiniplayer",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],t$.prototype,"minimizePipBreakages",void 0);_.R([_.L({computed:"computeSelected(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],t$.prototype,"selected",void 0);
_.R([_.L({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],t$.prototype,"useColorPalette",void 0);_.R([_.L({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],t$.prototype,"largerPlaylistThumbs",void 0);_.R([_.L(),_.Y("design:type",Object)],t$.prototype,"showEqualizer",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],t$.prototype,"canReorder",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],t$.prototype,"touchPersistentDragHandle",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],t$.prototype,"handleIsHovered",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],t$.prototype,"watchColorUpdate",void 0);_.R([_.L(),_.Y("design:type",String),_.Y("design:paramtypes",[])],t$.prototype,"reorderIcon",null);
_.R([_.L({computed:"computeShowPlayIcon(selected)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],t$.prototype,"showPlayIcon",void 0);_.R([_.L(),_.Y("design:type",String),_.Y("design:paramtypes",[])],t$.prototype,"playIcon",null);_.R([_.M("largerPlaylistThumbs"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],t$.prototype,"thumbnailWidth",null);_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],t$.prototype,"showActionButtons",null);
_.R([_.zp("canReorder"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],t$.prototype,"canReorderChanged",null);_.R([_.VG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Sn]),_.Y("design:returntype")],t$.prototype,"onYtServiceRequestSent",null);_.R([_.e({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],t$);
_.q(t$,"ytd-playlist-panel-video-renderer",function(){if(jnW!==void 0)return jnW;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n      <template is="dom-if" if="[[showPlayIcon]]" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="play-icon" class="style-scope ytd-playlist-panel-video-renderer">\n          <yt-icon default-to-filled="true" icon="[[playIcon]]" size="12" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n        </span>\n      </template>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return jnW=C},{mode:2});var au=function(){return _.B.apply(this,arguments)||this};
_.O(au,_.B);au.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],au.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],au.prototype,"data",void 0);_.R([_.e({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],au);
_.q(au,"ytd-playlist-panel-supported-items",function(){if(C0s!==void 0)return C0s;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return C0s=
C},{mode:1});zN7=!0;K7o("\\P{N}");var jVA;var GBh=_.iQ("END_OF_PLAYLIST",void 0,"End of playlist"),VSM=_.iQ("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),kR=function(){var C=_.B.apply(this,arguments)||this;C.minimizePipBreakages=_.y("web_pip_minimize_breakages");C.hideHeaderText=!1;C.useColorPalette=!1;C.collapsed=!1;C.collapsedPreServerOverride="not_tracked";C.isHovered=!1;C.expandLabel=_.iQ("MINIPLAYER_EXPAND_LABEL");C.collapseLabel=_.iQ("MINIPLAYER_COLLAPSE_LABEL");C.isFloating=!1;C.metaPanel=
!1;C.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};C.currentIndex=void 0;return C};
_.O(kR,_.B);_.n=kR.prototype;
_.n.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"}}}};
_.n.created=function(){var C=this;this.scrollThrottle=new _.FX(this.onThrottledScroll,1E3,this);this.JSC$17208_ytReorderableController=new _.oQS(56,function(F){C.handleDrop(F)})};
_.n.onMouseEnter=function(){this.isHovered=!0};
_.n.onMouseLeave=function(){this.isHovered=!1};
_.n.computeOverflowMenuData=function(C){return C&&C.menu?C.menu:null};
_.n.computeCollapsible=function(C){return!C};
_.n.computeHasPlaylistButtons=function(C){return!(!C||!C.playlistButtons)};
_.n.computeHasSeparateSaveButton=function(C){return!(!C||!C.saveButton)};
_.n.computeHasToolbarButton=function(C,F){return!(!C||!(F||C.saveButton||C.menu))};
_.n.computePlaylistType=function(C){if(C&&C.playlistId)return C.playlistId.substring(0,4)};
_.n.computeCanReorder=function(C){return C?C.playlistId&&C.playlistId.startsWith("TLPQ")?!0:!!C.isEditable&&!C.isInfinite:!1};
_.n.attached=function(){var C=this;try{_.I8().resolve(_.Fx).setPlaylistComponent(this.hostElement)}catch(F){if(_.y("kevlar_park_on_playlist_token_killswitch"))throw F;_.Vc().parkOrScheduleJob(function(){_.I8().resolve(_.Fx).setPlaylistComponent(C.hostElement)},2,"ci")}_.Y6(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.n.detached=function(){_.T_(this.hostElement);_.Mj(this.JSC$17208_ytReorderableController)};
_.n.computeTrailingIcon=function(C,F,G){return G?F?"yt-icons:collapse":"yt-icons:close":F?"yt-icons:expand":_.y("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.n.computeIndexMessage=function(C,F){return Vm9(C+1)+" / "+Vm9(F)};
_.n.onRenderStamperFinished=function(){if(this.scrollForStampDom){var C=!0;this.isHovered&&(C=!1);if(this.collapsed||this.hidden)C=!1;C&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.n.collapseChanged=function(){var C=this;this.collapsed||(_.FD(this.ytTaskEmitterBehavior.getTaskManager(),function(){C.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.n.hiddenChanged=function(){var C=this;this.hidden||_.FD(this.ytTaskEmitterBehavior.getTaskManager(),function(){C.scrollToCurrentVideo()})};
_.n.setupReordering=function(){var C=_.ot(this.hostElement).querySelector("#items");N_E?_.rDu(this.JSC$17208_ytReorderableController,C,C,"playlist-drag-handle"):_.rDu(this.JSC$17208_ytReorderableController,C,C)};
_.n.scrollToCurrentVideo=function(){var C=this;_.gT.addJob(function(){var F=_.ot(C.hostElement).querySelector("#items");if(F){F.style.setProperty("padding-bottom","");var G=_.ot(C.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(G){F=G.parentElement||_.Zn(document);var V=F||_.Zn(document);var J=_.RR(G),b=_.RR(V),z=_.dlu(V);if(V==_.Zn(document)){var Q=J.x-V.scrollLeft;J=J.y-V.scrollTop}else Q=J.x-b.x-z.left,J=J.y-b.y-z.top;G=h0u(G);b=V.clientHeight-
G.height;z=V.scrollLeft;var E=V.scrollTop;z+=Q-(V.clientWidth-G.width)/2;V=new _.ql(z,E+(J-b/2));F.scrollLeft=V.x;F.scrollTop=V.y}}},8)};
_.n.dataChanged=function(){var C=this;_.Mj(this.JSC$17208_ytReorderableController);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.zH(this,function(){_.c8(C.ytTaskEmitterBehavior.getTaskManager(),function(){C.ytRendererBehavior.markDirty();C.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.n.onFullBleedPlayerChanged=function(){_.y("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.n.onFullscreenChanged=function(){_.y("web_watch_imax_theater_mode")||_.y("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.n.updateNowPlayingOverlay=function(){_.y("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.n.onPlaylistLockupNowPlaying=function(C,F){F&&(this.activeNowPlayingRenderer=F);this.updateNowPlayingOverlay()};
_.n.onScroll=function(){this.scrollThrottle.fire()};
_.n.onThrottledScroll=function(){var C=this;_.c8(this.ytTaskEmitterBehavior.getTaskManager(),function(){C.ytRendererBehavior.markDirty()})};
_.n.onToggleExpanded=function(C){!this.collapsible||C&&(_.ev(C).tagName==="A"||_.dE(_.AR(C),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.n.setCollapsed=function(C){this.collapsible&&(this.collapsed=C,_.KX(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.n.handleCollapsedFromData=function(C){if(C){var F=C.playlistPanelCollapseState;F==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||F==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),F=F==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==F&&this.setCollapsed(F)):this.currentPlaylistId!==C.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(F=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==F&&this.setCollapsed(F),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=C.playlistId}};
_.n.handleDrop=function(C){var F=C.currDragItem;C=F.data.playlistSetVideoId;var G=_.dI(F.parentNode.childNodes,F),V=void 0;G>0&&(V=F.parentNode.childNodes[G-1].data.playlistSetVideoId);F=_.$s();if(F.responsePlaylistData&&F.responsePlaylistData.contents){var J=Dji(C,F.responsePlaylistData);F.responsePlaylistData=(0,_.xf.unsafeClone)(F.responsePlaylistData);dfi(F.responsePlaylistData.contents,J,G);F.queueProxy?DAu(F.queueProxy,J,G,C,V):F.playlistProxy&&DAu(F.playlistProxy,J,G,C,V);_.bM(F,_.nS(F,F.response?
F.response.autoplayRenderer:void 0))}};
_.n.handleDarkModeChange=function(C){C!==this.isDarkTheme&&(this.isDarkTheme=C)};
_.n.colorPaletteChanged=function(){var C,F=((C=this.data)==null?void 0:C.contents)||[],G;C=_.u(F);for(F=C.next();!F.done;F=C.next()){F=F.value;var V=void 0;if((V=F.playlistPanelVideoRenderer)==null?0:V.selected){C=F.playlistPanelVideoRenderer;V=F=void 0;(G=this.isDarkTheme?(F=C)==null?void 0:F.darkColorPalette:(V=C)==null?void 0:V.lightColorPalette)&&_.WB(this.hostElement,G);break}}this.useColorPalette=!!G};
_.I6.Object.defineProperties(kR.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.moveThreeDotsMenuToMainHeader)&&_.y("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var C=_.I8().resolve(_.Qt(_.Fx)),F;if(((F=this.data)==null?0:F.contents)&&(C==null?0:C.hasAutoplayData())){var G;if(((G=this.playlistLoopStateEntity)==null?void 0:G.state)==="PLAYLIST_LOOP_STATE_ONE"){if(C=this.data.currentIndex,C!==void 0){var V,J;var b=(V=this.data.contents[C])==null?void 0:(J=V.playlistPanelVideoRenderer)==null?void 0:J.title}}else{var z,Q=(z=_.Z(C.getAutoplayEndpoint(),_.eT))==null?void 0:z.videoId,E,t;b=(E=this.data.contents.find(function(k){var U;
return((U=k.playlistPanelVideoRenderer)==null?void 0:U.videoId)===Q}))==null?void 0:(t=E.playlistPanelVideoRenderer)==null?void 0:t.title}return b}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)!=null&&C.nextVideoLabel?this.nextVideoTitle?_.dd(this.data.nextVideoLabel)+":":GBh:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var C;if(((C=this.data)==null?0:C.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.y("web_mix_long_byline_from_data"))return _.eN(VSM);var F;return(F=this.data)==null?void 0:F.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var C,F,G,V=(C=this.data)==null?void 0:(F=C.playlistButtons)==null?void 0:(G=F.menuRenderer)==null?void 0:G.topLevelButtons;if(V)for(C=_.u(V),F=C.next();!F.done;F=C.next())if(F=F.value,F.playlistLoopButtonRenderer)return F.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var C;return!!(this.collapsed&&((C=this.data)==null?0:C.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.y("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
kR.prototype.colorPaletteChanged=kR.prototype.colorPaletteChanged;kR.prototype.onPlaylistLockupNowPlaying=kR.prototype.onPlaylistLockupNowPlaying;kR.prototype.updateNowPlayingOverlay=kR.prototype.updateNowPlayingOverlay;kR.prototype.onFullscreenChanged=kR.prototype.onFullscreenChanged;kR.prototype.onFullBleedPlayerChanged=kR.prototype.onFullBleedPlayerChanged;kR.prototype.dataChanged=kR.prototype.dataChanged;kR.prototype.hiddenChanged=kR.prototype.hiddenChanged;kR.prototype.collapseChanged=kR.prototype.collapseChanged;
kR.prototype.onRenderStamperFinished=kR.prototype.onRenderStamperFinished;kR.prototype.onMouseLeave=kR.prototype.onMouseLeave;kR.prototype.onMouseEnter=kR.prototype.onMouseEnter;_.R([_.w(_.AY),_.Y("design:type",Object)],kR.prototype,"ironResizableBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],kR.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],kR.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.w(Hu7.YtPlaylistPanelBehavior),_.Y("design:type",Object)],kR.prototype,"ytPlaylistPanelBehavior",void 0);_.R([_.w(_.ic.YtTaskEmitterBehavior),_.Y("design:type",Object)],kR.prototype,"ytTaskEmitterBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],kR.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],kR.prototype,"ytdReduxBehavior",void 0);
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],kR.prototype,"actionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],kR.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],kR.prototype,"autoplayData",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],kR.prototype,"withinMiniplayer",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],kR.prototype,"minimizePipBreakages",void 0);
_.R([_.L({computed:"setMenuData_(data)"}),_.Y("design:type",Object)],kR.prototype,"menuRendererData",void 0);_.R([_.L({computed:"computeOverflowMenuData(data)"}),_.Y("design:type",Object)],kR.prototype,"overflowMenuDataTopRow",void 0);_.R([_.L({computed:"computeOverflowMenuData(data)"}),_.Y("design:type",Object)],kR.prototype,"overflowMenuData",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],kR.prototype,"hideHeaderText",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],kR.prototype,"useColorPalette",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.Y("design:type",Boolean)],kR.prototype,"collapsible",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],kR.prototype,"collapsed",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],kR.prototype,"hidden",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.Y("design:type",Boolean)],kR.prototype,"hasPlaylistButtons",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.Y("design:type",Boolean)],kR.prototype,"hasSeparateSaveButton",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.Y("design:type",Boolean)],kR.prototype,"hasToolbar",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.Y("design:type",String)],kR.prototype,"playlistType",void 0);_.R([_.L(),_.Y("design:type",Object)],kR.prototype,"isHovered",void 0);_.R([_.L({selectorArgs:["playlistLoopStateEntityKey"],selector:_.cn.playlistLoopStateEntitySelector}),_.Y("design:type",Object)],kR.prototype,"playlistLoopStateEntity",void 0);_.R([_.L({computed:"computeCanReorder(data)"}),_.Y("design:type",Boolean)],kR.prototype,"canReorder",void 0);
_.R([_.L(),_.Y("design:type",Object)],kR.prototype,"expandLabel",void 0);_.R([_.L(),_.Y("design:type",Object)],kR.prototype,"collapseLabel",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],kR.prototype,"isFloating",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],kR.prototype,"metaPanel",void 0);_.R([_.L({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.Y("design:type",String)],kR.prototype,"trailingIcon",void 0);
_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],kR.prototype,"isDarkTheme",void 0);_.R([_.L({selector:_.yj}),_.Y("design:type",Boolean)],kR.prototype,"miniplayerIsActive",void 0);_.R([_.L({selector:function(C){return C.watch.playerState}}),
_.Y("design:type",Number)],kR.prototype,"playerState",void 0);_.R([_.L({selector:_.yA}),_.Y("design:type",Boolean)],kR.prototype,"isFullscreen",void 0);_.R([_.L({selector:_.l5}),_.Y("design:type",Boolean)],kR.prototype,"isTheaterMode",void 0);_.R([_.L(),_.Y("design:type",Object)],kR.prototype,"activeNowPlayingRenderer",void 0);_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],kR.prototype,"moveThreeDotMenuToTopRow",null);
_.R([_.M("data","autoplayData","playlistLoopStateEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],kR.prototype,"nextVideoTitle",null);_.R([_.M("data","nextVideoTitle"),_.Y("design:type",String),_.Y("design:paramtypes",[])],kR.prototype,"nextVideoLabel",null);_.R([_.M("collapsed"),_.Y("design:type",String),_.Y("design:paramtypes",[])],kR.prototype,"buttonAriaLabel",null);
_.R([_.M("data","playlistId","longBylineText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],kR.prototype,"mixLongByLine",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],kR.prototype,"playlistLoopStateEntityKey",null);_.R([_.VG("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kR.prototype,"onMouseEnter",null);
_.R([_.VG("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kR.prototype,"onMouseLeave",null);_.R([_.L({reflectToAttribute:!0}),_.M("data","collapsed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],kR.prototype,"showNextVideoHeader",null);_.R([_.VG("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kR.prototype,"onRenderStamperFinished",null);
_.R([_.iP("collapsed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kR.prototype,"collapseChanged",null);_.R([_.iP("hidden"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kR.prototype,"hiddenChanged",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kR.prototype,"dataChanged",null);
_.R([_.M("isTheaterMode","isFullscreen"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],kR.prototype,"isFullBleedPlayer",null);_.R([_.iP("isTheaterMode","isFullscreen"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kR.prototype,"onFullBleedPlayerChanged",null);_.R([_.iP("isFullscreen"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kR.prototype,"onFullscreenChanged",null);
_.R([_.iP("playerState","miniplayerIsActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kR.prototype,"updateNowPlayingOverlay",null);_.R([_.VG("yt-playlist-lockup-now-playing-active"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],kR.prototype,"onPlaylistLockupNowPlaying",null);
_.R([_.iP("data","isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kR.prototype,"colorPaletteChanged",null);_.R([_.e({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],kR);
_.iTs=_.Tp()(kR,"ytd-playlist-panel-renderer",function(){if(m3r===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);m3r=C}C=m3r;return C},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var JzL;var Uc=function(){var C=_.B.apply(this,arguments)||this;C.modern=_.y("web_button_rework");return C};
_.O(Uc,_.B);Uc.prototype.computeShouldButtonBeVertical=function(C,F){return C||F};
Uc.prototype.onYtServiceRequestSent=function(C,F){(C=_.Z(F.endpoint,_.Nx))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.z3("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:C.status})):this.handleLikeEndpoint(C))};
Uc.prototype.computelikeStatusEntityKey=function(C){return C==null?void 0:C.likeStatusEntityKey};
Uc.prototype.handleLikeEndpoint=function(C){C.status==="LIKE"?this.JSC$17215_ytdDislikeToggleButtonRenderer.toggle(!1):C.status==="DISLIKE"?this.JSC$17215_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$17215_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$17215_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.I6.Object.defineProperties(Uc.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var C;return bbo(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(C=this.likeStatusEntity)==null?void 0:C.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var C;if(this.data&&((C=this.data)==null||!C.hideDislikeButton)){var F;return bbo(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(F=this.likeStatusEntity)==null?void 0:F.likeStatus)}}}});
Uc.prototype.onYtServiceRequestSent=Uc.prototype.onYtServiceRequestSent;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Uc.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],Uc.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Uc.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Uc.prototype,"vertical",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],Uc.prototype,"textTransform",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Uc.prototype,"useShortsIcon",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Uc.prototype,"underIconLabel",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Uc.prototype,"modern",void 0);_.R([_.L({value:"left"}),_.Y("design:type",String)],Uc.prototype,"buttonTooltipPosition",void 0);
_.R([_.L(),_.Y("design:type",Object)],Uc.prototype,"overrides",void 0);_.R([_.$z("#like-button"),_.Y("design:type",Object)],Uc.prototype,"JSC$17215_ytdLikeToggleButtonRenderer",void 0);_.R([_.$z("#dislike-button"),_.Y("design:type",Object)],Uc.prototype,"JSC$17215_ytdDislikeToggleButtonRenderer",void 0);_.R([_.M("data","likeStatusEntity.likeStatus","useShortsIcon"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Uc.prototype,"likeButton",null);
_.R([_.M("data","likeStatusEntity.likeStatus","useShortsIcon"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Uc.prototype,"dislikeButton",null);_.R([_.L({computed:"computelikeStatusEntityKey(data)"}),_.Y("design:type",String)],Uc.prototype,"likeStatusEntityKey",void 0);_.R([_.L({selectorArgs:["likeStatusEntityKey"],selector:NG}),_.Y("design:type",Object)],Uc.prototype,"likeStatusEntity",void 0);
_.R([_.VG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Sn]),_.Y("design:returntype")],Uc.prototype,"onYtServiceRequestSent",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],Uc);
var $_x=_.Tp()(Uc,"ytd-like-button-renderer",function(){if(JzL===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);JzL=C}C=JzL;return C},{mode:1});_.bTr={};
_.bTr.YtConditionalRendererBehavior=[_.D.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(C,F){var G=this,V,J;return _.I(function(b){switch(b.nextAddress){case 1:if(!F)return G.hidden=!0,G.showSpinner=!1,b.return();if((V=C)==null?0:(J=V.visibilityCondition)==null?0:J.mode)switch(C.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return b.jumpTo(5);default:return b.jumpTo(6)}G.showSpinner=
!1;G.hidden=!0;return b.yield(G.shouldShow_(C),4);case 4:G.hidden=!b.yieldResult;b.jumpTo(0);break;case 5:return b.yield(G.shouldShow_(C),8);case 8:G.showSpinner=b.yieldResult;G.hidden=!1;b.jumpTo(0);break;case 6:return G.showSpinner=!1,b.yield(G.shouldShow_(C),9);case 9:G.hidden=!b.yieldResult,_.S9(b)}})},
shouldShow_:function(C){return C&&C.supportedDatas&&C.supportedDatas.rendererVisibilityConditionData&&C.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(C.supportedDatas.rendererVisibilityConditionData.showIf):C&&C.visibilityCondition&&C.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(C.visibilityCondition.showIf):C&&C.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(C.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(C){switch(C){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(C){switch(C){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var C=_.rz(this.hostElement,"yt-get-mdx-status");return C.length==1&&C[0].connected},
isLocationPermissionGranted_:function(){var C;return _.I(function(F){return F.nextAddress==1?navigator.permissions?F.yield(navigator.permissions.query({name:"geolocation"}),3):F.jumpTo(2):F.nextAddress!=2?(C=F.yieldResult,F.return(Promise.resolve(C.state==="granted"))):F.return(Promise.resolve(!1))})}}];var nlr=qJi("yt-icon",{callbackProps:["onKeydown"]}),u6d=_.y("kevlar_use_wil_icons")?_.d(function(C){var F=C.icon;var G=C.active;var V=C.className;var J=C.style;var b=C.size;var z=C.dataSelected;var Q=C.dataDisabled;var E=C.role;var t=C.themeOverride;var k=C.animateIcon;var U=C.ariaHidden;var H=C.ariaExpanded;var l=C.ariaLabel;var N=C.tabindex;var S=C.id;var f=C.iconFilter;var c=C.gradientColor;var A=C.onKeydown;var T=function(){var r=F==null?void 0:F(),C9=null,Wo=void 0;r&&(r=KIu(r),r=WRZ(r),r.length&&
(C9=r[1],Wo=r[0]));return{iconName:C9,iconSetName:Wo}},P=function(){return D68(T().iconName,G==null?void 0:G(),void 0,b==null?void 0:b(),T().iconSetName,_.I8().resolve(_.mm))},g=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:f==null?void 0:f(),iconColor:c==null?void 0:c()}};
return _.W(_.a,{cond:k,then:function(){return _.W(nlr,{icon:F,active:G,className:V,style:J,dataSelected:z,dataDisabled:Q,role:E,themeOverride:t,ariaHidden:U,ariaExpanded:H,ariaLabel:l,tabindex:N,id:S,iconFilter:f,gradientColor:c,onKeydown:A})},
else:function(){return _.W(_.a,{cond:P,then:function(r){return _.W("span",{class:_.py("ytIconWrapperHost",V),role:E,"aria-label":l,"aria-hidden":U,tabindex:function(){return isNaN(Number(N==null?void 0:N()))?void 0:Number(N==null?void 0:N())},
id:S,style:J,"on:keydown":_.CZ(function(C9){return void(A==null?void 0:A(C9))})},_.W(d8s,{data:r,
options:g}))}})}})},"eg"):nlr;var z_t=function(C){var F=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];kST();_.zn("ytglobal.ytUtilActivityCallback_",function(){_.KX(C,"yt-user-activity")});
new zf(function(){return F.JSC$17231_onMouseMove});
document.addEventListener("scroll",function(){return F.onScroll});
window.addEventListener("resize",function(){return F.onResize})},QnM=function(C,F,G){F in C.eventJobIds||(G=_.Ws().addLowPriorityJob(function(){_.Q2();
delete C.eventJobIds[F]},G),C.eventJobIds[F]=G)};
z_t.prototype.onScroll=function(C){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):C.target===document&&QnM(this,"scroll",200)};
z_t.prototype.onResize=function(){QnM(this,"resize",200)};
z_t.prototype.JSC$17231_onMouseMove=function(){QnM(this,"mousemove",100)};
_.nR=function(C){C.scrollEventsToIgnore+=1;C.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){C.scrollEventsToIgnore--},500))};var I0U=function(C){this.element=C;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
I0U.prototype.showFeedbackDialog=function(C,F,G,V){var J=Ell();if(!J)return!1;var b=UNS();b.productId=J;F&&(b.flow="submit",b.report={description:F});G&&(Ell()==="59"?b.callback=_.pW(function(){_.q1("userFeedbackEvent",{});G()}):b.callback=_.pW(G));
b.bucket=V||_.TF("GOOGLE_FEEDBACK_BUCKET","Other");WYM(b);C=tS_(this,"GFEEDBACK",C);try{_.bx$(b,C)}catch(z){return _.ri(z),!1}return!0};
I0U.prototype.showHelpDialog=function(C,F,G){var V=this,J=Ell();if(!J)return!1;var b={helpCenterPath:"/youtube",productData:tS_(this,"GUIDED_HELP",G)};WYM(b);var z=UNS();z.context=C||b.productData.context||"default";z.defaultHelpArticleId=F;z.enableSendFeedback=!0;(_.mN("gapi.load")||function(Q,E){return E()})("client",function(){try{var Q=Is2(J,b);
if(_.y("web_always_load_chat_support")&&!V.chatSupportLoaded)try{Q.JSC$9974_loadChatSupport(z),V.chatSupportLoaded=!0}catch(E){}Q.startHelp(z)}catch(E){_.ri(E)}})};
var Ell=function(){var C=_.TF("GOOGLE_FEEDBACK_PRODUCT_ID");C||_.ri(Error("gi"));return C},WYM=function(C){C&&(C.locale=_.y("kevlar_help_use_locale")?_.TF("INNERTUBE_CONTEXT_HL","en"):_.TF("HTML_LANG","en"))},tS_=function(C,F,G){var V=C.productData;
delete V.origin;V.device=_.UB();var J;a:{if(J=document.createElement("canvas")){var b=J.getContext("experimental-webgl",{stencil:!0});if(b){var z=b.getExtension("WEBGL_debug_renderer_info");if(z){J=b.getParameter(z.UNMASKED_RENDERER_WEBGL);break a}}if(b=J.getContext("webgl")){J=b.getParameter(b.RENDERER);break a}}J=null}V.gpu=J;V.isSDC=!!_.TF("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(J=_.TF("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.xf.extend(V,J);_.a$f(F,V);_.k4i(V);(C=_.KX(C.element,"yt-get-autonav-pause-debug-state"))&&
C.length&&(V.autonav_pause_state=C[0]);C=_.LA();V.browser_resolution=C.width+"\u00d7"+C.height+"@"+(window.devicePixelRatio||1)+"x";G&&_.xf.extend(V,G);return V};
I0U.prototype.resetProductData=function(){this.productData={}};var a0r=function(C){this.feedbackManager=new I0U(C)};
a0r.prototype.showFeedbackDialog=function(C,F,G,V){return this.feedbackManager.showFeedbackDialog(C,F,G,V)};
a0r.prototype.showHelpDialog=function(C,F,G){return this.feedbackManager.showHelpDialog(C,F,G)};var kBM=function(){this.baseUrl="";this.aTag=document.createElement("a")},Mky=function(C,F,G){G=G===void 0?{}:G;
G.pbj||(G.pbj=1);G=_.FeZ(F,G);C.baseUrl&&G&&!_.$U(G)[1]&&!_.bH(G)&&(F=C.baseUrl,bZ(F,"/")&&(F=F.slice(0,-1)),_.Js(G,"/")&&(G=G.slice(1)),G=F+"/"+G);TB(C.aTag,_.sL(G||""));return C.aTag.href};
kBM.prototype.fetchData=function(C){return _.zrS(C)};
kBM.prototype.postData=function(C,F){var G={method:"POST"};if(F){for(var V=_.u(Object.keys(F)),J=V.next();!J.done;J=V.next()){J=J.value;var b=F[J];_.TE(b)&&(F[J]=JSON.stringify(b))}G.postParams=F}return _.zrS(C,G)};
_.SSE=function(C,F,G,V,J){C=Mky(C,F,G);if(!C)throw V=Error("hi"),Object.assign(V,{params:F}),V;return _.zrS(C,J,V)};
kBM.prototype.requestDataForServiceEndpoint=function(C,F){if(_.Z(C,_.lyi))return this.fetchData("/getAccountSwitcherEndpoint");F=F||{};var G=_.Z(C,ILo);G?F.se=G.base64EncodedServiceEndpoint:F.sej=JSON.stringify(C);(G=_.ZQ())&&_.y("enable_service_ajax_csn")&&(F.csn=G);F.theme=_.Mz();_.Z(C,Ugi)&&_.TF("DELEGATION_CONTEXT")&&(F.delegation_context=JSON.stringify(_.TF("DELEGATION_CONTEXT")));G=null;for(var V in C)if(bZ(V,"Endpoint")||bZ(V,"Command")){G=V;break}if(!G){var J=Error("ii");Object.assign(J,{params:C});
_.mGo(J,"WARNING");return new _.N1(function(z,Q){Q(J)})}V={name:G};
var b;(G=(b=_.Z(C,_.FI))==null?void 0:b.signal)&&(V.signal=G);(b=_.Vt(window.location.href))&&b.internalcountrycode&&(V.internalcountrycode=b.internalcountrycode);b="/service_ajax";_.y("debug_forward_web_query_parameters")&&(b=_.EBw(b,window.location.search));b=_.Jy(b,V);C.clickTrackingParams&&_.qU(b,{itct:C.clickTrackingParams});return this.postData(b,F)};_.U_s=new _.jh("GFEEDBACK_TOKEN");var HTV;var l0M;var yzh;var ZTU;var HR=function(){var C=_.B.apply(this,arguments)||this;C.compact=!1;C.dismissButtonDisabled=!1;C.shouldRenderReasonAsFormattedString=!_.y("web_player_error_message_reason_as_formatted_string_killswitch");return C};
_.O(HR,_.B);HR.prototype.computeHasIcon_=function(C){return!!C};
HR.prototype.isSignInIcon_=function(C){return C=="yt-icons:prompted_sign_in"};
HR.prototype.onDismissButtonClick=function(){var C=this,F=this.data.disableOnClick,G,V=(G=this.data.dismissButton)==null?void 0:G.buttonRenderer;F&&!this.dismissButtonDisabled&&V&&setTimeout(function(){C.dismissButtonDisabled=!0},0)};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],HR.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.bTr.YtConditionalRendererBehavior),_.Y("design:type",Object)],HR.prototype,"ytConditionalRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],HR.prototype,"data",void 0);_.R([_.L({computed:"computeIcon_(data.icon)"}),_.Y("design:type",Object)],HR.prototype,"icon_",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.Y("design:type",Boolean)],HR.prototype,"hasIcon_",void 0);_.R([_.L({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.Y("design:type",Boolean)],HR.prototype,"signInIcon_",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],HR.prototype,"compact",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],HR.prototype,"dismissButtonDisabled",void 0);
_.R([_.L({type:Boolean}),_.Y("design:type",Object)],HR.prototype,"shouldRenderReasonAsFormattedString",void 0);_.R([_.Z5({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],HR);
_.q(HR,"yt-player-error-message-renderer",function(){if(ZTU===void 0){var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e\n<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <template is="dom-if" if="[[shouldRenderReasonAsFormattedString]]" restamp="" class="style-scope yt-player-error-message-renderer">\n      <yt-formatted-string id="reason" is-overlay="" text="[[data.reason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    </template>\n    <template is="dom-if" if="[[!shouldRenderReasonAsFormattedString]]" restamp="" 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    </template>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" disabled$="[[dismissButtonDisabled]]" on-tap="onDismissButtonClick" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="button" data="[[data.proceedButton.buttonRenderer]]" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;yzh===void 0&&(yzh=document.createElement("template"));var V=yzh;G.call(F,V.content.cloneNode(!0),C.content.firstChild);ZTU=C}C=ZTU;return C},{mode:2});var N9L;var OTh;var ll=function(){return _.B.apply(this,arguments)||this};
_.O(ll,_.B);ll.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
ll.prototype.computeIcon_=function(C){return C?"yt-icons:"+C.iconType.toLowerCase():"error_outline"};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],ll.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ll.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],ll.prototype,"data",void 0);_.R([_.L({computed:"computeIcon_(data.icon)"}),_.Y("design:type",Object)],ll.prototype,"icon_",void 0);_.R([_.Z5({is:"yt-player-kav-renderer",disableElementRegistration:!0})],ll);
_.q(ll,"yt-player-kav-renderer",function(){if(OTh===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;N9L===void 0&&(N9L=document.createElement("template"));var V=N9L;G.call(F,V.content.cloneNode(!0),C.content.firstChild);OTh=C}C=OTh;return C},{mode:2});var yo9=_.h6(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.gQ(_.d(function(C){var F=_.Jt("div"),G=_.u(_.yH(0,void 0,"jxh75d")),V=G.next().value,J=G.next().value;G=_.u(_.yH(null,void 0,"F5Zm8"));var b=G.next().value,z=G.next().value;_.q4(function(){ZbS(F.value,J,z);F.value.scrollIntoView()});
G=NHw.bind(null,C.data,V);_.Ix("resize",function(){var Q=b();if(V()===1&&Q!==null){var E;(E=window.grecaptcha)==null||E.reset(Q)}});
return _.W("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.W("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.W("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var Q,E;return(Q=C.data().accessibility)==null?void 0:(E=Q.accessibilityData)==null?void 0:E.label}),_.W(_.mn,{text:G,
className:_.py("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.W("div",{el:F,class:"ytwPlayerCaptchaViewModelGridItem"})))},"fg"),"yt-player-captcha-view-model",{props:{data:_.s9}});var ObA=!1;_.Xhd=_.d(function(C){var F=C.data;return _.W("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.W(_.a,{cond:function(){return F().icon},
then:function(G){return _.W("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.W(_.AC,{data:G,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.W(_.a,{cond:function(){return F().title},
then:function(G){return _.W("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.W(_.mn,{text:G}))}}),_.W(_.a,{cond:function(){return F().description},
then:function(G){return _.W("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.W(_.mn,{text:G}))}}),_.W(_.uC,{data:function(){return F().primaryButton}},{buttonViewModel:function(G){return _.W(_.tS,{data:G.data,
className:"interstitialViewModelFlexItem"})}}),_.W(_.uC,{data:function(){return F().secondaryButton}},{buttonViewModel:function(G){return _.W(_.tS,{data:G.data,
className:"interstitialViewModelFlexItem"})}}))},"gg");
_.Xhd.idomCompat=!0;var whU=_.d(function(C){var F=C.data;_.Mx();return _.W("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.W("div",{class:"playerInterstitialRendererScrim"},_.W(_.uC,{data:function(){return F().content}},{interstitialViewModel:_.Xhd})))},"hg");
whU.idomCompat=!0;_.gQ(whU,"yt-player-interstitial-renderer",{props:{data:_.CJ}});var yI=function(){var C=_.B.apply(this,arguments)||this;C.noBackground=!1;C.compact=!1;C.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return C};
_.O(yI,_.B);yI.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"}}}};
yI.prototype.onUpdatePlayerErrorMessageCommand_=function(C){if(_.Z(C,wnS)){var F;if(C=(F=_.Z(C,wnS))==null?void 0:F.newPlayerErrorMessageRenderer)this.data=C}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],yI.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],yI.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],yI.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],yI.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],yI.prototype,"status",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],yI.prototype,"noBackground",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],yI.prototype,"compact",void 0);_.R([_.Z5({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],yI);
var MSx=_.Tp()(yI,"yt-playability-error-supported-renderers",function(){if(l0M===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;HTV===void 0&&(HTV=document.createElement("template"));var V=HTV;G.call(F,V.content.cloneNode(!0),C.content.firstChild);l0M=C}C=l0M;return C},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var SL8=qJi("ytd-button-renderer");var XUW=void 0,Mmw=void 0;var BHS=new pDr;var gJ=new _.jh("ENTITY_STATE_TOKEN"),Zz=new _.jh("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var LY_=function(C){this.store=C;this.sKd=new _.jau},ybB=function(C,F,G){var V,J;
if(!(J=((V=F.playabilityStatus)==null?void 0:V.status)!=="OK")){C=C.store;var b;J=F.offlineState&&((b=F.videoDetails)==null?0:b.videoId)?_.y("enable_pl_r_c_cd")?PMT(C.getState().entities,F.videoDetails.videoId):!!tpE(C.getState().entities,F.videoDetails.videoId):!1}if(J)return!0;J=Ao9(F);if(J===1){if(_.y("ab_v_vid_sig")){var z,Q=(z=F.videoDetails)==null?void 0:z.videoId;if(!Q||!G||Q!==G){var E;F=new _.Ay("282054944_vid",{c1a:G,cqL:(E=F.videoDetails)==null?void 0:E.videoId});_.gD(F)}}return!0}fOi=
0;var t,k;E=(Q=F.auxiliaryUi)==null?void 0:(t=Q.messageRenderers)==null?void 0:(k=t.bkaEnforcementMessageViewModel)==null?void 0:k.displayType;if(J!==3&&(E==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||E==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;E={reason:_.YB(_.iQ("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.y("ks_something_wrong_learn_more")?YxI("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.YB(_.iQ("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:_.YB("282054944")};B9h(F,{playerErrorMessageRenderer:E});return!1},ZrW=function(C,F){if(DsT(F)){_.Gt(1,!0);
var G=(G=DsT(F))&&_.wU5()?G:void 0;G?(B9h(F,{enforcementMessageViewModel:G}),C.sKd.increment("IN_PLAYER"),_.Gt(5)):(C.sKd.increment("SKIP_DISPLAY"),_.Gt(2))}},B9h=function(C,F){C.playabilityStatus=Object.assign({},C.playabilityStatus,{status:"ERROR",
errorScreen:F});C.videoDetails=void 0};
LY_.prototype.handleResponse=function(C,F){if(C.playabilityStatus){var G,V,J,b=(F==null?void 0:(G=F.innerTubeRequest)==null?void 0:G.videoId)||(F==null?void 0:(V=F.innerTubeRequest)==null?void 0:(J=V.playerRequest)==null?void 0:J.videoId);ybB(this,C,b)&&ZrW(this,C)}};
LY_[Ew]=[gJ];var HrT=new _.jh("ADBLOCK_DETECTION_SERVICE_TOKEN");var vx=function(C){this.pht=C};
vx.prototype.bindInnertubeChallengeFetcher=function(C){this.pht.bicf(C)};
vx.prototype.registerChallengeFetchedCallback=function(C){this.pht.bcr(C)};
vx.prototype.getLatestChallengeResponse=function(){return this.pht.blc()};var vlW;vlW=_.h6(["https://static.doubleclick.net/instream/ad_status.js"]);_.f0x=_.kf(vlW);var e_r;_.NB=function(C,F,G){var V=this;this.network=C;this.options=F;this.networkStatusManager=G;this.xn=null;if(F.useBotguardEverywhere){var J=new _.Cd;this.xn=J.promise;_.VT.ytAtRC&&_.Iy(_.gT,function(){var b,z;return _.I(function(Q){if(Q.nextAddress==1){if(!_.VT.ytAtRC)return Q.return();b=h_s(null);return Q.yield(V.qy(b),2)}z=Q.yieldResult;_.VT.ytAtRC&&_.VT.ytAtRC(JSON.stringify(z));_.S9(Q)})});
qlS().then(function(b){var z,Q,E,t;return _.I(function(k){if(k.nextAddress==1)return b.bindInnertubeChallengeFetcher(function(U){return V.qy(h_s(U))}),k.yield(gno(),2);
z=k.yieldResult;Q=b.getLatestChallengeResponse();E=Q.challenge;if(!E)throw Error("ji");t={challenge:E,sW:Bx(E),vm:z,bgChallenge:new SZ};J.resolve(t);b.registerChallengeFetchedCallback(function(U){U=U.challenge;if(!U)throw Error("ki");U={challenge:U,sW:Bx(U),vm:z,bgChallenge:new SZ};V.xn=Promise.resolve(U)});
_.S9(k)})})}else F.preload&&czs(this,new Promise(function(b){_.c8(_.gT,function(){b(Azd(V))},0)}))};
e_r=function(C){var F={preload:!0,useBotguardEverywhere:!0},G=!1;if(typeof F==="boolean")var V={preload:F};else typeof F==="undefined"?V={preload:!0}:(V=F,G=!!F.uqH);F=G?void 0:new _.FP;_.NB.instance=new _.NB(C,V,F);return _.NB.instance};
_.NB.prototype.yTT=function(){var C=this;return _.I(function(F){return F.nextAddress==1?F.yield(Promise.race([C.xn,null]),2):F.return(!!F.yieldResult)})};
_.NB.prototype.wMJ=function(C,F,G){var V=this,J,b,z;return _.I(function(Q){V.xn===null&&czs(V,Azd(V));J=!1;b={};z=function(){var E,t,k;return _.I(function(U){switch(U.nextAddress){case 1:return U.yield(V.xn,2);case 2:E=U.yieldResult;b.challenge=E.challenge;if(!E.vm){"c1a"in E.sW&&(b.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");U.jumpTo(3);break}t=Object.assign({},{c:E.challenge,e:C},F);_.yy(U,4);J=!0;return U.yield(E.vm.snapshot({aC:t}),6);case 6:(k=U.yieldResult)?b.webResponse=k:b.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.Gn(U,3);break;case 4:_.wa(U),b.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(C==="ENGAGEMENT_TYPE_PLAYBACK"){var H=E.sW,l={};if(H.c6a){var N=Number(_.TF("DCLKSTAT",0));l.reportingStatus=String(Number(H.c)^(isNaN(N)?0:N))}H.c6b&&(l.broadSpectrumDetectionResult=String(Number(H.c)^Number(_.TF("CATSTAT",0))));b.adblockReporting=l}return U.return(b)}})};
return Q.return(Promise.race([z(),d_x(G,function(){var E=Object.assign({},b);J&&(E.error="ATTESTATION_ERROR_VM_TIMEOUT");return E})]))})};
var h_s=function(C){var F={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};C&&(F.interpreterHash=C);return F},Azd=function(C,F){F=F===void 0?0:F;
var G,V,J,b,z,Q,E,t,k,U,H,l;return _.I(function(N){switch(N.nextAddress){case 1:G=h_s(Fxu().vkF);if(_.y("att_fet_ks"))return _.yy(N,7),N.yield(C.qy(G),9);_.yy(N,4);return N.yield(x_L(C,G),6);case 6:z=N.yieldResult;J=z.qT4;b=z.vth;V=z;_.Gn(N,3);break;case 4:return _.wa(N),_.Yw(Error("li`"+F)),snL(C,864E5),N.return({challenge:"",sW:{},vm:void 0,bgChallenge:void 0});case 9:V=N.yieldResult;if(!V)throw Error("mi");if(!V.challenge)throw Error("ni");J=V.challenge;b=Bx(J);if("c1a"in b&&(!V.bgChallenge||!V.bgChallenge.program))throw Error("oi");
_.Gn(N,3);break;case 7:Q=_.wa(N);_.Yw(Q);F++;if(F>=5)return _.Yw(Error("li`"+F)),snL(C,864E5),N.return({challenge:"",sW:{},vm:void 0,bgChallenge:void 0});E=1E3*Math.pow(2,F-1)+Math.random()*1E3;return N.return(new Promise(function(S){_.c8(_.gT,function(){S(Azd(C,F))},E)}));
case 3:t=sVo(b);snL(C,t*1E3);k=void 0;if(!("c1a"in b&&V.bgChallenge)){N.jumpTo(10);break}U=xN9(V.bgChallenge);_.yy(N,11);return N.yield(VPG(Fxu(),U),13);case 13:_.Gn(N,12);break;case 11:return H=_.wa(N),_.Yw(H),N.return({challenge:J,sW:b,vm:k,bgChallenge:U});case 12:return _.yy(N,14),k=new _.fC({challenge:U,c9C:{qx:"aGIf"}}),N.yield(k.ye1,16);case 16:_.Gn(N,10);break;case 14:l=_.wa(N),_.Yw(l),k=void 0;case 10:return N.return({challenge:J,sW:b,vm:k,bgChallenge:U})}})};
_.NB.prototype.qy=function(C){var F=this,G;return _.I(function(V){G=F.networkStatusManager;if(!G||G.isNetworkAvailable())return V.return(F.network.qy(C));_.XI("att_pna",void 0,"attestation_challenge_fetch");return V.return(new Promise(function(J){G.listenOnce("publicytnetworkstatus-online",function(){F.network.qy(C).then(J)})}))})};
var qLr=function(C){if(!C)throw Error("mi");if(!C.challenge)throw Error("ni");var F=C.challenge,G=Bx(F);if("c1a"in G&&(!C.bgChallenge||!C.bgChallenge.program))throw Error("oi");return Object.assign({},C,{qT4:F,vth:G})},x_L=function(C,F){var G,V,J,b,z;
return _.I(function(Q){switch(Q.nextAddress){case 1:G=void 0,V=0,J={};case 2:if(!(V<5)){Q.jumpTo(4);break}if(!(V>0)){Q.jumpTo(5);break}J.hI6=1E3*Math.pow(2,V-1)+Math.random()*1E3;return Q.yield(new Promise(function(E){return function(t){_.c8(_.gT,function(){t(void 0)},E.hI6)}}(J)),5);
case 5:return _.yy(Q,7),Q.yield(C.qy(F),9);case 9:return b=Q.yieldResult,Q.return(qLr(b));case 7:G=z=_.wa(Q),z instanceof Error&&_.Yw(z);case 8:V++;J={hI6:void 0};Q.jumpTo(2);break;case 4:throw G;}})},czs=function(C,F){C.xn=F},P0t=function(C){var F,G,V;
return _.I(function(J){if(J.nextAddress==1)return J.yield(Promise.race([C.xn,null]),2);F=J.yieldResult;var b=Azd(C);C.xn=b;(G=F)==null||(V=G.vm)==null||V.dispose();_.S9(J)})},snL=function(C,F){var G=Date.now()+F,V=function(){var J;
return _.I(function(b){J=G-Date.now();return J<1E3?b.yield(P0t(C),0):(_.c8(_.gT,V,Math.min(J,6E4)),b.jumpTo(0))})};
V()},d_x=function(C,F){return new Promise(function(G){_.c8(_.gT,function(){G(F())},C)})};var glM=function(){};
glM.prototype.processContext=function(C){var F=_.NB.instance;if(!F)return _.bW();var G=o$q(C);return G?new $X(F.wMJ(G,Rrs(C),500).then(function(V){var J;(C==null?0:(J=C.innerTubeRequest)==null?0:J.context)||(C.innerTubeRequest.context={});J=C.innerTubeRequest.context;J.request||(J.request={});J.request.attestationResponseData=V})):_.bW()};var R_x=function(C){this.innertubeTransportService=C};
R_x.prototype.qy=function(C){_.XI("att_fsr",void 0,"attestation_challenge_fetch");return _.j8(this.innertubeTransportService,C,_.qW(_.vVS)).then(function(F){_.XI("att_frr",void 0,"attestation_challenge_fetch");return F})};_.YL8=function(C){this.innertubeTransportService=C};var T9r=new _.jh("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var olr=function(){},KYs=function(C,F,G,V,J){var b=_.TF("YPC_MB_URL");
_.vgB(b).then(function(){rzr(b,C,F,G,V,J)})},rzr=function(C,F,G,V,J,b){try{var z=_.dJ.payments.business.integration,Q=_.dJ.payments.business.integration.Style.create().withMaterialDesignStyle(),E=z.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.y("enable_window_constrained_buy_flow_dialog")&&(E=E.usingPopupStyle("windowConstrained"));b&&(E=E.usingCloseCallback(b));var t=G?G:_.TF("YPC_GB_LANGUAGE"),k=_.TF("SESSION_INDEX");z.bootstrap.fromPaymentsUrl(C);z.bootstrap.asMashupMode(E).usingGaiaIndex(k).usingLocale(t).usingStyle(Q).usingDefaultActivityStatusChangeHandler().inStandaloneContext(z.standaloneContextAuthId.forGaia()).purchaseManager(F,function(U){V&&V(U)}).load(void 0,J)}catch(U){throw J&&J(U),_.gD(U),U;
}};var D_r=new _.jh("PURCHASE_MANAGER_TOKEN");var pht=function(){var C=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return C.videos},
getContinuationsPresent:function(){return C.continuationsPresent},
setVideos:function(F){C.videos=F},
getRecommendedVideos:function(){return C.recommendedVideos},
setRecommendedVideos:function(F){C.recommendedVideos=F}}};
pht.prototype.addVideos=function(C){C&&(this.videos=C.filter(function(F){return!!_.KJZ(F)}).map(function(F){var G=_.KJZ(F);
a:{var V;if(F.playlistVideoRenderer&&((V=F.playlistVideoRenderer)==null?0:V.voteSortTiebreaker))var J=F.playlistVideoRenderer.voteSortTiebreaker;else{if(_.Z(F,hk)){var b;if(V=(J=_.Z(F,hk))==null?void 0:(b=J.playlistItemData)==null?void 0:b.voteSortTiebreaker){J=V;break a}}J=""}}return{itemId:G,videoId:_.mNI(F),voteCount:_.Cyo(F),voteSortTiebreaker:J}}),this.continuationsPresent=!!_.Z(C[C.length-1],_.eZ))};
var m_l=function(C,F){return C.videos.findIndex(function(G){return G.itemId===F})},Cih=function(C,F){return C.recommendedVideos.findIndex(function(G){return G.itemId===F})},jpl=function(C){C={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:C}}}}};_.I8().resolve(_.WD).resolveCommand(C)};var Fbh=function(){pht.apply(this,arguments)};
_.O(Fbh,pht);
var yAu=function(C,F,G,V){if(!C.parentElem)throw Error("ti");var J=m_l(C,F);J===-1&&(J=Cih(C,F),J=J!==-1?J+C.videos.length:-1);if(J===-1)throw Error("ui");var b=J>=C.videos.length?C.recommendedVideos[J-C.videos.length]:C.videos[J];b.voteCount=G;b.voteSortTiebreaker=Date.now().toString();J>=C.videos.length?C.recommendedVideos.splice(J-C.videos.length,1):C.videos.splice(J,1);var z=C.videos;for(var Q=0,E=z.length-1;Q<=E;){var t=Math.floor((Q+E)/2);if(z[t].voteCount<b.voteCount)E=t-1;else if(z[t].voteCount>b.voteCount)Q=
t+1;else{a:{var k=b.voteSortTiebreaker;var U=z[t].voteSortTiebreaker;if(k.length!==U.length)k=k.length>U.length;else{for(var H=0;H<k.length;H++){var l=k.charCodeAt(H),N=U.charCodeAt(H);if(l>N){k=!0;break a}if(l<N)break}k=!1}}k?E=t-1:Q=t+1}}z=Q;if(z===-1)throw Error("vi");C.videos.splice(z,0,b);J!==z&&GOh(C,J,z,F,G,V)},GOh=function(C,F,G,V,J,b){var z,Q=(z=C.parentElem)==null?void 0:z.children,E=Math.min(F,G),t=Math.max(F,G);
if(Q)for(z=E;z<=t;z++)Q[z].style.viewTransitionName="item-"+String(z);document.startViewTransition(function(){if(C.parentElem){var k=C.parentElem.children;if(!(!k||F<0||F>=k.length||G<0||G>=k.length)){var U=k[F];if(U){U.remove();C.showRefreshPill=G>=C.videos.length-1&&C.continuationsPresent;if(!C.showRefreshPill){k=k[G]||null;var H;(H=C.parentElem)==null||H.insertBefore(U,k)}_.oo(C.parentElem,"yt-update-video-data-voting-animation",{toIdx:G,itemId:V,newVoteCount:J,voteStatus:b,hideItem:C.showRefreshPill})}}}}).finished.then(function(){if(Q)for(var k=
E;k<=t;k++)Q[k].style.viewTransitionName="";
if(C.showRefreshPill)jpl(_.iQ("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var U;if(U=k=(U=C.parentElem)==null?void 0:U.children[G])U=k.getBoundingClientRect(),k=U.bottom,U=!(U.top>=0&&k<=C.clientHeight);U&&(U=_.J3(F>G?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(F-G)),jpl(U))}})};var JW3=function(C,F){var G=this;C?this.innertubeTransportServicePromise=Promise.resolve(C):F&&(this.innertubeTransportServicePromise=F(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new bl(3E3,function(V){return V9l(G,V)},0);
this.validateMiniAppVideoIdRateLimiter=new bl(3E3,function(V){return ivr(G,V)},1)},cl8=function(C,F){C.JSC$17343_miniAppId=F;
C.reportMiniAppValueRateLimiter=new bl(3E3,function(G){return V9l(C,G)},0);
C.validateMiniAppVideoIdRateLimiter=new bl(3E3,function(G){return ivr(C,G)},1)},exs=function(C,F){var G;
return _.I(function(V){if(V.nextAddress==1)return V.yield(C.reportMiniAppValueRateLimiter.call(F),2);G=V.yieldResult;return V.return([G,F])})},V9l=function(C,F){var G,V,J,b,z,Q,E;
return _.I(function(t){switch(t.nextAddress){case 1:return t.yield(C.innertubeTransportServicePromise,2);case 2:return G=t.yieldResult,V=_.qW(dOr),J=Date.now(),b={externalPostId:C.JSC$17343_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(J/1E3),nanos:Math.round(J%1E3*1E6)},intValue:""+F}},_.yy(t,3),t.yield(_.j8(G,b,V),5);case 5:z=t.yieldResult;_.Gn(t,4);break;case 3:throw Q=_.wa(t),Q;case 4:if(z){if("error"in z&&z.error)throw z.error;if(z.errorMetadata)throw Error("wi`"+
z.errorMetadata.status);if(E=z.userStatResult)return t.return(E);throw Error("xi");}throw Error("yi");}})},x3h=function(C){var F,G,V,J,b;
_.I(function(z){switch(z.nextAddress){case 1:return z.yield(C.innertubeTransportServicePromise,2);case 2:return F=z.yieldResult,G=_.qW(dOr),V={externalPostId:C.JSC$17343_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.yy(z,3),z.yield(_.j8(F,V,G),5);case 5:J=z.yieldResult;_.Gn(z,4);break;case 3:throw b=_.wa(z),b;case 4:if(J==null)throw Error("yi");if("error"in J&&J.error)throw J.error;if(J.errorMetadata)throw Error("wi`"+J.errorMetadata.status);_.S9(z)}})};
JW3.prototype.flush=function(){var C=this;return _.I(function(F){return F.nextAddress==1?F.yield(C.reportMiniAppValueRateLimiter.flush(),2):F.yield(C.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var d38=function(C,F){return _.I(function(G){return G.nextAddress==1?G.yield(C.validateMiniAppVideoIdRateLimiter.call(F),2):G.return(G.yieldResult)})},ivr=function(C,F){var G,V,J,b,z,Q;
return _.I(function(E){switch(E.nextAddress){case 1:return E.yield(C.innertubeTransportServicePromise,2);case 2:return G=E.yieldResult,V=_.qW(L_o),J={videoId:F},_.yy(E,3),E.yield(_.j8(G,J,V),5);case 5:b=E.yieldResult;_.Gn(E,4);break;case 3:throw z=_.wa(E),z;case 4:if(b){if("error"in b&&b.error)throw b.error;if(b.errorMetadata)throw Error("wi`"+b.errorMetadata.status);if(Q=b.playabilityStatus)return E.return(Q.status);throw Error("zi");}throw Error("yi");}})};
JW3[Ew]=[_.Qt(_.Qk),_.Qt(QiS)];var $aW=function(){this.clientData=new Map};
$aW.prototype.getData=function(C){return this.clientData.get(C)};var bv8=function(C){this.store=C};
bv8.prototype.handleResponse=function(C){(C=_.Z(C.frameworkUpdates,AM))&&_.J4(C,this.store)};
bv8[Ew]=[_.P$];var nOx=new _.jh("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var uGh,zdU;_.Oc=new _.jh("FLOW_STATE_MANAGER_TOKEN");uGh=function(){this.flowStates=new Map};
zdU=function(C,F){C=_.u(C.flowStates.values());for(var G=C.next();!G.done;G=C.next())if(G=G.value,G.flowRenderer.targetId===F)return G};var QpU=function(C,F){this.JSC$17368_reduxStore=C;this.JSC$17368_flowStateManager=F};
_.O(QpU,mu);
QpU.prototype.resolveCommand=function(C){var F=this,G,V,J,b,z,Q,E,t,k,U,H,l,N;return _.I(function(S){G=_.Z(C,_.YXy);V=G.stepId;J=G.targetId;b=zdU(F.JSC$17368_flowStateManager,J);Q=(z=b)==null?void 0:z.flowRenderer;E=Q.flowStateEntityKey;t=_.cx(F.JSC$17368_reduxStore.getState(),E);if(!t)return S.return();k=t.currentStepId;l=(H=(U=t)==null?void 0:U.stepIdStack)!=null?H:[];N=k===l[l.length-1]?V:k;F.JSC$17368_reduxStore.dispatch(_.kZ("flowStateEntity",E,{currentStepId:V,stepIdStack:[N]},"REPEATED_FIELDS_MERGE_OPTION_APPEND"));_.S9(S)})};
var I6V=function(){QpU.apply(this,arguments)};
_.O(I6V,QpU);I6V[Ew]=[_.P$,_.Oc];var EOM=function(C,F,G){this.JSC$17375_reduxStore=C;this.JSC$17375_flowStateManager=F;this.JSC$17375_commandHandler=G};
_.O(EOM,mu);
EOM.prototype.resolveCommand=function(C,F){var G=this,V,J,b,z,Q,E,t,k,U,H,l,N,S;return _.I(function(f){V=_.Z(C,_.TgO);J=V.targetId;b=zdU(G.JSC$17375_flowStateManager,J);Q=(z=b)==null?void 0:z.flowRenderer;E=Q.flowStateEntityKey;t=_.cx(G.JSC$17375_reduxStore.getState(),E);H=[].concat(_.da((U=(k=t)==null?void 0:k.stepIdStack)!=null?U:[]));l=H.pop();((N=t)==null?void 0:N.currentStepId)===l&&(l=H[H.length-1]);if(!l)return(S=V.onFirstStepCommand)&&G.JSC$17375_commandHandler.resolveCommand(S,F),f.return();
G.JSC$17375_reduxStore.dispatch(_.kZ("flowStateEntity",E,{currentStepId:l,stepIdStack:H}));_.S9(f)})};
var Wbx=function(){EOM.apply(this,arguments)};
_.O(Wbx,EOM);Wbx[Ew]=[_.P$,_.Oc,_.WD];var t9M=function(C,F){this.innertubeTransportService=C;this.JSC$17380_commandHandler=F};
_.O(t9M,mu);t9M.prototype.resolveCommand=function(C,F){var G=this,V,J,b,z,Q;return _.I(function(E){if(E.nextAddress==1){V=_.Z(C,oHu);if(!V)return E.return();_.yy(E,2);return E.yield(_.fZ(G.innertubeTransportService,C),4)}if(E.nextAddress!=2){J=E.yieldResult;if(!J)return E.return();(b=J.updateFlowCommand)&&G.JSC$17380_commandHandler.resolveCommand(b,F);return _.Gn(E,0)}_.wa(E);(Q=(z=V)==null?void 0:z.onFailureCommand)&&G.JSC$17380_commandHandler.resolveCommand(Q,F);_.S9(E)})};
var a6r=function(){t9M.apply(this,arguments)};
_.O(a6r,t9M);a6r[Ew]=[_.Qk,_.WD];var kO3=function(C,F){this.JSC$17386_flowStateManager=C;this.JSC$17386_commandHandler=F};
_.O(kO3,mu);
kO3.prototype.resolveCommand=function(C,F){var G=this,V,J,b,z;return _.I(function(Q){V=_.Z(C,_.Kwm);J=V.targetId;b=zdU(G.JSC$17386_flowStateManager,J);if(!b)return Q.return(Promise.resolve());var E=b,t=(z=V.steps)!=null?z:[],k,U=(k=E.flowRenderer.steps)!=null?k:[];t=[].concat(_.da(U),_.da(t));E.flowRenderer.steps=t;V.flowContinuationCommand&&(b.flowRenderer.flowContinuationCommand=V.flowContinuationCommand);V.entityUpdateCommand&&G.JSC$17386_commandHandler.resolveCommand(V.entityUpdateCommand,F);
return Q.return(Promise.resolve())})};
var XB=function(){kO3.apply(this,arguments)};
_.O(XB,kO3);XB[Ew]=[_.Oc,_.WD];var UaM={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],
play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,
1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,
1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var Hvr=new _.jh("ICON_SET_TOKEN"),l6L=new _.jh("ICON_URL_PROVIDER_TOKEN"),yWx=new _.jh("PREFETCH_ICONS_TOKEN"),ZvM=new _.jh("ICON_MAP_FN_TOKEN");var wN={},Nah=(wN.ACCESS_TIME="clock",wN.ACCOUNT_BOX=_.TF("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?"person_box":"person_account",wN.ACCOUNT_BOX_CAIRO="person_account_cairo",wN.ACCOUNT_CIRCLE="person_circle",wN.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",wN.ACCOUNT_LINKED="account_link_success",wN.ACCOUNT_UNLINKED="account_link",wN.ADD_FRIEND="people",wN.ADD_MODERATOR="shield_add",wN.ADD_TO_LIBRARY="bookmark",wN.ADD_TO_PLAYLIST="add",wN.ADD_TO_QUEUE_TAIL="list_queue",wN.ADD_TO_REMOTE_QUEUE="list_music",
wN.ADD_TO_WATCH_LATER="clock",wN.ADD_VIDEO_LINK="film_strip_add",wN.ALERT_WARN_RED="alert_triangle",wN.ARROW_BACK="arrow_left",wN.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",wN.ARROW_DROP_DOWN="chevron_down",wN.ARROW_DROP_UP="chevron_up",wN.ARROW_FORWARD="arrow_right",wN.ARTIST="person_music",wN.AUDIOTRACK="audio",wN.AUTO_AWESOME="sparkle",wN.AVATAR_ANONYMOUS="person_circle",wN.AVATAR_LOGGED_OUT="person_circle",wN.BACK="arrow_left",wN.BAR_CHART="bar_graph",wN.BLOCK="slash_circle_left",
wN.BLOCK_USER="slash_circle_left",wN.BOOKMARK_BORDER="bookmark",wN.BREAKING_NEWS_ALT_1="article_alert",wN.BROADCAST_CAIRO="podcast_cairo",wN.BUG_REPORT="bug",wN.CAMERA_ALT="camera",wN.CAMPAIGN="megaphone",wN.CANCEL="x_circle",wN.CAPTIONS="closed_caption",wN.CAST_OUTLINE="chromecast",wN.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",wN.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",wN.CHAT="message_bubble_left",wN.CHAT_BUBBLE="message_bubble_empty",wN.CHAT_SPARK="spark_message_bubble_left",wN.CHECK_BOX_OUTLINE_BLANK=
"box_empty",wN.CHECK_CIRCLE_OUTLINE="check_circle",wN.CHECK_CIRCLE_THICK="check_circle",wN.CLARIFY="article_clarify",wN.CLOSED_CAPTION_SELECTED="closed_caption",wN.CLOSE="x_mark",wN.CLOUD_UPLOAD="cloud_arrow_up",wN.COLLAPSE="chevron_up",wN.COLLAPSE_CAIRO="chevron_up_cairo",wN.COLLECTION="layers",wN.COLOR_LENS="palette",wN.COMMENT="message_bubble_right",wN.CONSENT_SHIELD="person_shield",wN.CONTENT_CUT="scissors",wN.CONTENT_CUT_CAIRO="scissors_cairo",wN.COURSE=_.y("web_enable_course_icon_update")?"creator_academy":
"lightbulb",wN.COURSE_CAIRO=_.y("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",wN.CREATION_LIVE="radar_live",wN.CREATION_POST="box_pencil",wN.CREATION_UPLOAD="my_videos",wN.CREATION_UPLOAD_RED="upload",wN.CREATOR_METADATA_MONETIZATION="dollar_sign",wN.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",wN.CREATOR_STUDIO="youtube_studio",wN.DASHBOARD="grid_asymmetrical",wN.DELETE="trash_can",wN.DELETE_SWEEP="trash_can",wN.DESKTOP="laptop",wN.DISLIKE="thumb_down",wN.DISLIKE_SELECTED=
"thumb_down",wN.DISMISSAL="x_mark",wN.DISMISS_QUEUE="list_remove",wN.DONE_ALL="check_double",wN.DOWN_ARROW="arrow_down",wN.DO_NOT_DISTURB="slash_circle_left",wN.DRAFT="paper_corner_folded",wN.DRAG_HANDLE="bars_2",wN.EDIT="pencil",wN.EMOJI="face_very_happy",wN.EMOJI_FLAGS="flag",wN.EMOJI_OBJECTS="lightbulb",wN.EMOJI_PEOPLE="face_very_happy",wN.EMOJI_RECENT="clock",wN.EMPTY_HEART="heart",wN.EMPTY_LIKE="thumb_up",wN.ERROR_BLACK="alert_circle",wN.ERROR_OUTLINE="alert_circle",wN.EXIT_APP="arrow_in",wN.EXIT_TO_APP=
"arrow_in",wN.EXPAND="chevron_down",wN.EXPAND_ALL="chevron_expand",wN.EXPAND_CAIRO="chevron_down_cairo",wN.EXPAND_LESS="chevron_up",wN.EXPAND_MORE="chevron_down",wN.EXPLORE="compass",wN.EXPLORE_DESTINATION="compass",wN.EXTERNAL_LINK="open_new",wN.FAB_UPLOAD="upload",wN.FACE_HAPPY_OUTLINE="face_happy",wN.FACT_CHECK="article_check",wN.FASHION_LOGO="fashion",wN.FASHION_LOGO_CAIRO="fashion_cairo",wN.FAVORITE="heart",wN.FEEDBACK="message_bubble_alert",wN.FEEDBACK_CAIRO="message_bubble_alert_cairo",wN.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",wN.FILL_ARROW_SOLID_UP_16="arrow_solid_up",wN.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",wN.FILTER="menu_filter",wN.FIRST_PAGE="chevron_first",wN.FLAG="flag",wN.FULL_HEART="heart",wN.GAME_CONSOLE_DPAD="game_console_dpad",wN.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",wN.GAMING_LOGO="gaming",wN.GAMING_LOGO_CAIRO="gaming_cairo",wN.GO_TO_PAGE="arrow_right",wN.GROUPS="people_group",wN.HAPPY="face_happy",wN.HEALTH_AND_SAFETY="shield_plus",wN.HELP="question_circle",wN.HELP_CAIRO=
"question_circle_cairo",wN.HELP_OUTLINE="question_circle",wN.HIDE="slash_circle_left",wN.IMAGE="image",wN.INFINITY_ICON="infinity",wN.INFO="info_circle",wN.INFO_OUTLINE="info_circle",wN.INSERT_CHART="bar_graph_box_vertical",wN.INSERT_CHART_OUTLINED="bar_graph_box_vertical",wN.INSERT_PHOTO="image",wN.KEEP="pin",wN.KEEP_OFF="pin_off",wN.KEYBOARD="keyboard",wN.KEYBOARD_ARROW_DOWN="chevron_down",wN.KEYBOARD_ARROW_UP="chevron_up",wN.KIDS_BLOCK="slash_circle_left",wN.LANGUAGE="globe",wN.LAST_PAGE="chevron_last",
wN.LAUNCH="open_new",wN.LEARNING="lightbulb",wN.LEARNING_CAIRO="lightbulb_cairo",wN.LIBRARY_ADD=VxE("library_add"),wN.LIBRARY_OUTLINE="library",wN.LIBRARY_REMOVE=VxE(),wN.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",wN.LIKES_PLAYLIST="thumb_up",wN.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",wN.LIKE="thumb_up",wN.LIKE_SELECTED="thumb_up",wN.LIVE="radar_live",wN.LIVE_CAIRO="radar_live_cairo",wN.LIVE_UNLISTED="link",wN.LOCATION_ON="location_point",wN.LOCATION_PIN="location_point",wN.LOOP="arrow_repeat",wN.LOOP_ACTIVE=
"arrow_repeat",wN.LOOP_ONE="arrow_repeat_1",wN.LOOP_ONE_ACTIVE="arrow_repeat_1",wN.MEH="face_meh",wN.MEMBERS_ONLY_MODE_OFF="message_bubble_left",wN.MESSAGE="message_bubble_left",wN.MICROPHONE_ON="mic",wN.MIX="youtube_mix",wN.MONETIZATION_ON="dollar_sign_circle",wN.MONEY_FILL="dollar_sign_container",wN.MONEY_FILL_JPY="yen_sign_container",wN.MONEY_HEART="dollar_sign_heart",wN.MORE_HORIZ="overflow_horizontal",wN.MORE_VERT="overflow_vertical",wN.MUSIC="audio",wN.MUSIC_CAIRO="audio_cairo",wN.MUSIC_NOTE_SYMBOL=
"music",wN.MUSIC_SHUFFLE="arrow_shuffle",wN.MY_CHANNEL="person_circle",wN.MY_LOCATION="location_point",wN.NEWS_STORY="news",wN.NEXT="chevron_right",wN.NOTIFICATIONS="bell",wN.NOTIFICATIONS_ACTIVE="bell_on",wN.NOTIFICATIONS_CAIRO="bell_cairo",wN.NOTIFICATIONS_DONE_CHECKMARK="check",wN.NOTIFICATIONS_INBOX="bell",wN.NOTIFICATIONS_NONE="bell",wN.NOTIFICATIONS_OFF="bell_off",wN.NOT_INTERESTED="slash_circle_left",wN.OFFICIAL_ARTIST_BADGE="audio",wN.OFFLINE_CLOUD="cloud_off",wN.OFFLINE_DOWNLOAD="download",
wN.OFFLINE_DOWNLOAD_CAIRO="download_cairo",wN.OFFLINE_PAUSE="pause",wN.OPEN_IN_NEW="open_new",wN.OUTLINE_ADJUST="adjust",wN.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",wN.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",wN.OUTLINE_BAG="bag",wN.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",wN.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",wN.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",wN.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",wN.PAID="dollar_sign",wN.PAUSE_OUTLINED="pause",wN.PAYMENT=
"credit_card",wN.PERSON_RADAR_FILLED="person_radar",wN.PHONE_DOWNLOAD="mobile_download",wN.PLAYABLES_LOGO="tic_tac_toe",wN.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",wN.PLAYLISTS="list_play_arrow",wN.PLAYLISTS_CAIRO="list_play_arrow_cairo",wN.PLAYLIST_ADD=VxE("list_add"),wN.PLAYLIST_ADD_CHECK=VxE("list_check"),wN.PLAYLIST_PLAY="list_play_arrow",wN.PLAY_ALL="play_arrow",wN.PLAY_CIRCLE="play_arrow_circle",wN.PLAY_OUTLINED="play_arrow_circle",wN.PRIVACY_INFO="shield",wN.PRIVACY_PRIVATE="lock",wN.PRIVACY_PUBLIC=
"earth",wN.PRIVACY_UNLISTED="link",wN.PROMOTE="megaphone",wN.PURCHASES="price_tag",wN.PURCHASE_SUPER_CHAT="super_chat",wN.PURCHASE_SUPER_STICKER="super_sticker",wN.QUESTION_ANSWER="message_bubble_question",wN.QUEUE_PLAY_LAST="list_queue_last",wN.QUEUE_PLAY_NEXT="list_play_arrow",wN.REMIX_FILLED="youtube_shorts_remix",wN.REMOVE="bar_circle",wN.REMOVE_CIRCLE="bar_circle",wN.REMOVE_CIRCLE_OUTLINE="bar_circle",wN.REMOVE_DONE="check_double_off",wN.REMOVE_FROM_HISTORY="bar_circle",wN.REMOVE_FROM_PLAYLIST=
"bar_circle",wN.REMOVE_MODERATOR="shield_off",wN.REPLAY="arrow_circle",wN.REPLAY_10="skip_back_10",wN.REPORT_PROBLEM="alert_triangle",wN.SAD="face_sad",wN.SAVE_PLAYLIST="bookmark",wN.SCHEDULE="clock",wN.SCHOOL="creator_academy",wN.SCREEN_FULLSCREEN="screen_full",wN.SEARCH_HISTORY="arrow_time",wN.SELL="price_tag",wN.SETTINGS="gear",wN.SETTINGS_CAIRO="gear_cairo",wN.SETTINGS_LIGHT="gear",wN.SETTINGS_MATERIAL="gear",wN.SHARE_ARROW="share",wN.SHIELD_WITH_AVATAR="person_shield",wN.SHOPPING_BAG="bag",wN.SHOPPING_BAG_CAIRO=
"bag_cairo",wN.SHOPPING_CART="cart",wN.SHORTS_COMMENT="youtube_shorts_message_bubble_right",wN.SHORTS_DISLIKE="youtube_shorts_thumb_down",wN.SHORTS_LIKE="youtube_shorts_thumb_up",wN.SHORTS_SHARE="youtube_shorts_share",wN.SHUFFLE="arrow_shuffle",wN.SLOW_MODE_OFF="message_bubble_left",wN.SOCIAL="people",wN.SORT="menu_sort",wN.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",wN.SPEED_1X="1x",wN.SPEED_1_POINT_2X="1_point_2x",wN.SPEED_1_POINT_5X="1_point_5x",wN.SPEED_1_POINT_8X="1_point_8x",wN.SPEED_2X="2x",
wN.SPEED_POINT_2X="point_2x",wN.SPEED_POINT_8X="point_8x",wN.SPONSORSHIP_STAR="star_circle",wN.STAFF_PICK="spotlight",wN.START_DVR="add",wN.STAR_BORDER="star",wN.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",wN.STICKER_EMOTICON="face_happy",wN.STOP_DVR="stop",wN.SUBSCRIBE="youtube_logo_icon",wN.SUBSCRIBE_PLUS="add_cairo",wN.SUBSCRIPTION_MANAGER="gear",wN.SUPERVISOR_ACCOUNT="people",wN.SUPER_CHAT_FOR_GOOD="hands_heart",wN.SWAP_HORIZ="arrow_swap_horizontal",wN.SWITCH_ACCOUNTS="person_account",wN.TAB_ACCOUNT=
"person",wN.TAB_ACTIVITY="bell",wN.TAB_BOOKMARK="bookmark",wN.TAB_EXPLORE="compass",wN.TAB_HOME="home",wN.TAB_HOME_CAIRO="home_cairo",wN.TAB_INBOX="mail",wN.TAB_LIKED="thumb_up",wN.TAB_MUSIC_PREMIUM="youtube_music",wN.TAB_SHORTS="youtube_shorts",wN.TAB_SHORTS_CAIRO="youtube_shorts_cairo",wN.TAB_SUBSCRIPTIONS="subscriptions",wN.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",wN.TAB_TRENDING="fire",wN.TIMER="stopwatch",wN.TRAILER="youtube_originals",wN.TRENDING="fire",wN.TRENDING_CAIRO="fire_cairo",wN.TRENDING_DOWN=
"rating_down",wN.TRENDING_UP="rating_up",wN.TROPHY="trophy",wN.TROPHY_CELEBRATIONS="fireworks",wN.TUNE="adjust",wN.UNBLOCK_USER="bar_circle",wN.UNLIMITED="youtube_logo_icon",wN.UNPLUGGED_LIVE_GUIDE="radar_live",wN.UNPLUGGED_SPORTS="eye_off",wN.UPLOADS="library",wN.UP_ARROW="arrow_up",wN.VERTICAL_ALIGN_BOTTOM="download",wN.VERY_HAPPY="face_very_happy",wN.VERY_SAD="face_very_sad",wN.VIDEOGAME_ASSET="gaming",wN.VIDEOS="play_arrow_circle",wN.VIDEO_CALL="video_camera_add",wN.VIDEO_LIBRARY_WHITE="library",
wN.VIDEO_YOUTUBE="youtube_logo_icon",wN.VIEW_LIST="list_view",wN.VIEW_LIST_CAIRO="list_view_cairo",wN.VISIBILITY="eye",wN.VISIBILITY_OFF="eye_off",wN.VOLUME_MUTE="volume_off",wN.VOLUME_UP="volume_on",wN.WALLPAPER="image",wN.WARNING="alert_triangle",wN.WATCH_HISTORY="arrow_time",wN.WATCH_HISTORY_CAIRO="arrow_time_cairo",wN.WATCH_LATER="clock",wN.WATCH_LATER_CAIRO="clock_cairo",wN.WATCH_RELATED_MIX="youtube_mix",wN.WHAT_TO_WATCH="home",wN.YOUTUBE_MUSIC_MONOCHROME="youtube_music",wN.YOUTUBE_MUSIC_MONOCHROME_CAIRO=
"youtube_music_cairo",wN.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",wN.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",wN.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",wN.YT_OUTLINE_MUSIC_24="music",wN);var MB={},Ov8=(MB.ACCESS_TIME="clock",MB.ACCOUNT_BOX="person_square",MB.ACCOUNT_BOX_CAIRO="person_square",MB.ACCOUNT_CIRCLE="person_circle",MB.ACCOUNT_CIRCLE_CAIRO="person_circle",MB.ACCOUNT_LINKED="account_link",MB.ACCOUNT_UNLINKED="account_link",MB.ADD_CIRCLE="add_circle",MB.ADD_CIRCLE_OUTLINE="add_circle",MB.ADD_FRIEND="person_child",MB.ADD_MODERATOR="shield_add",MB.ADD_TO_LIBRARY="bookmark",MB.ADD_TO_PLAYLIST="add",MB.ADD_TO_QUEUE_TAIL="queue",MB.ADD_TO_REMOTE_QUEUE="playlist_audio",MB.ADD_TO_WATCH_LATER=
"clock",MB.ADD_VIDEO_LINK="film_strip_add",MB.ADMIN_PANEL_SETTINGS="person_gear",MB.ALERT_WARN_RED="alert_triangle",MB.ALIGN_LEFT="text_align_left",MB.ARROWS_ALERT="arrow_split_alert",MB.ARROW_BACK="arrow_left",MB.ARROW_CIRCLE="arrow_counterclockwise",MB.ARROW_CIRCLE_PLAY="replay",MB.ARROW_CIRCLE_RIGHT="arrow_clockwise",MB.ARROW_DIAGONAL="arrow_up_left",MB.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",MB.ARROW_DROP_DOWN="triangle_down",MB.ARROW_DROP_UP="triangle_up",MB.ARROW_FORWARD="arrow_right",MB.ARROW_PAUSE=
"pause_history",MB.ARROW_UNDO="undo",MB.ARTICLE="text_page",MB.ARTICLE_ALERT="text_page_alert",MB.ARTICLE_CHECK="text_page_check",MB.ARTICLE_CLARIFY="text_page_info",MB.ARTIST="person_audio",MB.AUDIOTRACK="audio",MB.AUDIO_BADGE="audio_badge",MB.AUDIO_SURROUND="surround_sound",MB.AUTO_AWESOME="sparkles",MB.AVATAR_ANONYMOUS="person_circle",MB.AVATAR_LOGGED_OUT="person_circle",MB.BACK="arrow_left",MB.BAR_CHART="chart_bar",MB.BAR_CIRCLE="minus_circle",MB.BAR_HORIZONTAL="minus",MB.BLOCK="circle_slash",
MB.BLOCK_USER="circle_slash",MB.BOOKMARK_BORDER="bookmark",MB.BOX_OPEN_CHECK="quiz",MB.BOX_PENCIL="square_pencil",MB.BOX_STACK_3="square3_stack",MB.BREAKING_NEWS_ALT_1="text_page_alert",MB.BROADCAST="podcast",MB.BROADCAST_CAIRO="podcast",MB.BUG_REPORT="bug",MB.CAMERA_ALT="camera",MB.CAMPAIGN="megaphone",MB.CANCEL="x_circle",MB.CAPTIONS="closed_captions",MB.CAST_ICON="chromecast",MB.CAST_OUTLINE="chromecast",MB.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",MB.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",
MB.CHAT="text_bubble",MB.CHAT_BUBBLE="bubble",MB.CHECK_BOX="check_square",MB.CHECK_BOX_OUTLINE_BLANK="square",MB.CHECK_CIRCLE_FILLED="check_circle",MB.CHECK_CIRCLE_OUTLINE="check_circle",MB.CHECK_CIRCLE_THICK="check_circle",MB.CHECK_DOUBLE="check_done",MB.CHECK_DOUBLE_OFF="check_done_slash",MB.CHEVRON_LEFT="chevron_left",MB.CHEVRON_RIGHT="chevron_right",MB.CHEVRON_RIGHT_CAIRO="chevron_right",MB.CIRCLES_OVERLAP="account_link",MB.CLAPPERBOARD_CAIRO="clapperboard",MB.CLARIFY="text_page_info",MB.CLOCK_ARROWS=
"clock_split",MB.CLOCK_ARROWS_ALERT="clock_split_alert",MB.CLOSED_CAPTION="closed_captions",MB.CLOSED_CAPTION_SELECTED="closed_captions",MB.CLOSE="x",MB.CLOUD_UPLOAD="cloud_arrow_up",MB.COLLAPSE="chevron_up",MB.COLLAPSE_CAIRO="chevron_up",MB.COLLECTION="square3d_stack",MB.COLOR_LENS="paint_palette",MB.COMMENT="text_bubble",MB.CONSENT_SHIELD="person_shield",MB.CONTENT_CUT="scissors",MB.CONTENT_CUT_CAIRO="scissors",MB.COURSE="graduation_cap",MB.COURSE_CAIRO="graduation_cap",MB.CREATION_LIVE="live",
MB.CREATION_POST="square_pencil",MB.CREATION_UPLOAD="video",MB.CREATION_UPLOAD_RED="upload",MB.CREATOR_ACADEMY="graduation_cap",MB.CREATOR_METADATA_MONETIZATION="dollar_sign_circle",MB.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_circle_slash",MB.CREATOR_STUDIO="youtube_studio",MB.DARK_THEME="theme",MB.DELETE="trash_can",MB.DELETE_SWEEP="trash_can",MB.DESKTOP="laptop",MB.DISLIKE="thumb_down",MB.DISLIKE_SELECTED="thumb_down",MB.DISMISSAL="x",MB.DISMISS_QUEUE="playlist_x",MB.DOGFOOD="pawprint",MB.DOLLAR_SIGN=
"dollar_sign_circle",MB.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",MB.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",MB.DOWN_ARROW="arrow_down",MB.DO_NOT_DISTURB="circle_slash",MB.DRAFT="document",MB.DRAG_HANDLE="equal",MB.EARTH="globe",MB.EDIT="pencil",MB.EMOJI="face_very_happy",MB.EMOJI_FLAGS="flag",MB.EMOJI_OBJECTS="lightbulb",MB.EMOJI_PEOPLE="face_very_happy",MB.EMOJI_RECENT="clock",MB.EMPTY_HEART="heart",MB.EMPTY_LIKE="thumb_up",MB.ERROR_BLACK="alert_circle",MB.ERROR_OUTLINE="alert_circle",MB.ERROR_WHITE=
"alert_circle",MB.EXIT_APP="arrow_in",MB.EXIT_TO_APP="arrow_in",MB.EXPAND="chevron_down",MB.EXPAND_ALL="chevron_expand",MB.EXPAND_CAIRO="chevron_down",MB.EXPAND_LESS="chevron_up",MB.EXPAND_MORE="chevron_down",MB.EXPLORE="compass",MB.EXPLORE_DESTINATION="compass",MB.EXTERNAL_LINK="arrow_up_right",MB.EYE_OFF="eye_slash",MB.FAB_UPLOAD="upload",MB.FACE_HAPPY_OUTLINE="face_happy",MB.FACE_MEH="face_neutral",MB.FACT_CHECK="text_page_check",MB.FASHION_LOGO="fashion",MB.FASHION_LOGO_CAIRO="fashion",MB.FAVORITE=
"thumb_up",MB.FEEDBACK="alert_bubble",MB.FEEDBACK_CAIRO="alert_bubble",MB.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",MB.FILL_ARROW_SOLID_UP_16="arrow_solid_up",MB.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",MB.FIRST_PAGE="chevron_left_end",MB.FLAG_CAIRO="flag",MB.FLASH_OFF="flash_slash",MB.FLASH_ON="flash",MB.FULL_HEART="heart",MB.GAMING_LOGO="gaming",MB.GAMING_LOGO_CAIRO="gaming",MB.GO_TO_PAGE="arrow_right",MB.GRID_ASYMMETRICAL="dashboard",MB.GROUPS="person3",MB.HAND_SWIPE_LEFT="gesture_swipe_left",
MB.HAND_SWIPE_RIGHT="gesture_swipe_right",MB.HAPPY="face_happy",MB.HEALTH_AND_SAFETY="shield_health",MB.HEART_BOX="heart_cube",MB.HELP="help_circle",MB.HELP_CAIRO="help_circle",MB.HELP_OUTLINE="help_circle",MB.HIDE="circle_slash",MB.INCOGNITO_CAIRO="incognito",MB.INFINITY_ICON="infinity",MB.INFO="info_circle",MB.INFO_OUTLINE="info_circle",MB.INSERT_CHART="chart_bar_square",MB.INSERT_CHART_OUTLINED="chart_bar_square",MB.INSERT_PHOTO="image",MB.KEEP="pin",MB.KEEP_OFF="pin_slash",MB.KEYBOARD="keyboard",
MB.KEYBOARD_ARROW_DOWN="chevron_down",MB.KEYBOARD_ARROW_UP="chevron_up",MB.KIDS_BLOCK="circle_slash",MB.LANGUAGE="globe",MB.LAST_PAGE="chevron_right_end",MB.LAUNCH="arrow_up_right",MB.LEARNING="lightbulb",MB.LEARNING_CAIRO="lightbulb",MB.LIBRARY_ADD="bookmark",MB.LIBRARY_IMAGE="image_stack",MB.LIBRARY_MUSIC="audio_square_stack",MB.LIBRARY_OUTLINE="play_square_stack",MB.LIBRARY_REMOVE="bookmark",MB.LIBRARY_SAVED="check_square_stack",MB.LIKES_PLAYLIST="thumb_up",MB.LIKES_PLAYLIST_CAIRO="thumb_up",MB.LIKE=
"thumb_up",MB.LIKE_SELECTED="thumb_up",MB.LIST_QUEUE="queue",MB.LIVE_CAIRO="live",MB.LIVE_UNLISTED="link",MB.LOCATION_ON="location_pin",MB.LOCATION_PIN="location_pin",MB.LOCATION_POINT="location_pin",MB.LOOP="repeat",MB.LOOP_ACTIVE="repeat",MB.LOOP_ONE="repeat1",MB.LOOP_ONE_ACTIVE="repeat1",MB.MEET="google_meet",MB.MEH="face_neutral",MB.MEMBERSHIPS="memberships",MB.MEMBERS_ONLY_MODE_OFF="text_bubble",MB.MENU_FILTER="filter",MB.MESSAGE="text_bubble",MB.MESSAGE_BUBBLE_GEAR="bubble_gear",MB.MESSAGE_BUBBLE_LEFT=
"text_bubble",MB.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",MB.MESSAGE_BUBBLE_OVERLAP="bubble_stack",MB.MESSAGE_BUBBLE_QUESTION="help_bubble",MB.MICROPHONE_ON="mic",MB.MONETIZATION_ON="dollar_sign_circle",MB.MONEY_FILL="dollar_sign_rectangle",MB.MONEY_FILL_JPY="yen_sign_rectangle",MB.MONEY_HAND="dollar_sign_circle_hand",MB.MONEY_HEART="dollar_sign_heart",MB.MOON_Z="sleep_timer",MB.MORE_HORIZ="overflow_horizontal",MB.MORE_VERT="overflow_vertical",MB.MUSIC="audio",MB.MUSIC_CAIRO="audio",MB.MUSIC_EXPLICIT_BADGE=
"explicit",MB.MUSIC_NEW_RELEASE="audio_badge",MB.MUSIC_NOTE_SYMBOL="audio",MB.MUSIC_SCISSORS="audio_scissors",MB.MUSIC_SHUFFLE="shuffle",MB.MY_CHANNEL="person_circle",MB.MY_LOCATION="location_pin",MB.MY_VIDEOS="video",MB.MY_VIDEOS_CAIRO="video",MB.NEWS_CAIRO="news",MB.NEWS_STORY="news",MB.NEXT="chevron_right",MB.NOTE_ADD="bubble_pencil",MB.NOTIFICATIONS="bell",MB.NOTIFICATIONS_ACTIVE="bell_waves",MB.NOTIFICATIONS_CAIRO="bell",MB.NOTIFICATIONS_DONE_CHECKMARK="check",MB.NOTIFICATIONS_INBOX="bell",MB.NOTIFICATIONS_NONE=
"bell",MB.NOTIFICATIONS_OFF="bell_slash",MB.NOT_INTERESTED="circle_slash",MB.OFFICIAL_ARTIST_BADGE="audio",MB.OFFLINE_CLOUD="cloud_slash",MB.OFFLINE_DOWNLOAD="download",MB.OFFLINE_DOWNLOAD_CAIRO="download",MB.OFFLINE_PAUSE="pause",MB.OPEN_IN_NEW="arrow_up_right",MB.OUTLINE_ADJUST="adjust",MB.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",MB.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",MB.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",MB.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",MB.OUTLINE_BAG="bag",MB.OUTLINE_CLOCK_HALF_CIRCLE=
"clock_half_dashed",MB.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",MB.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",MB.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",MB.PAID="dollar_sign_circle",MB.PAUSE_OUTLINED="pause",MB.PAYMENT="credit_card",MB.PEOPLE="person_child",MB.PEOPLE_2="person2_rectangle",MB.PEOPLE_GROUP="person3",MB.PEOPLE_NOTE="bubble_asterisk",MB.PERSON_2="person2",MB.PERSON_ACCOUNT="person_square_stack",MB.PERSON_MINUS="person_x",MB.PERSON_MUSIC="person_audio",MB.PERSON_RADAR="person_waves",
MB.PERSON_RADAR_FILLED="person_waves",MB.PERSON_SETTING="person_gear",MB.PHONE="phone",MB.PHONE_DOWNLOAD="mobile_arrow_down",MB.PICTURE_IN_PICTURE="picture_in_picture",MB.PLAYABLES_LOGO="playables",MB.PLAYABLES_LOGO_CAIRO="playables",MB.PLAYLISTS="playlist",MB.PLAYLISTS_CAIRO="playlist",MB.PLAYLIST_ADD_CHECK="bookmark",MB.PLAY_ALL="play",MB.PLAY_ARROW="play",MB.PLAY_ARROW_CIRCLE="play_circle",MB.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",MB.PLAY_CIRCLE="play_circle",MB.PLAY_OUTLINED="play_circle",
MB.PODCAST_ADD="podcast_add",MB.PODCAST_CHECK="podcast_check",MB.PRIVACY_INFO="shield_x",MB.PRIVACY_PRIVATE="lock",MB.PRIVACY_PUBLIC="globe",MB.PRIVACY_UNLISTED="link",MB.PROMOTE="megaphone",MB.PURCHASES="price_tag",MB.PURCHASE_SUPER_CHAT="super_chat",MB.PURCHASE_SUPER_STICKER="super_sticker",MB.QUESTION_ANSWER="help_bubble",MB.QUESTION_CIRCLE="help_circle",MB.QUEUE_PLAY_LAST="queue_last",MB.QUEUE_PLAY_NEXT="queue_next",MB.QUOTATION_MARK="quote",MB.RADAR_LIVE="live",MB.REMOVE="minus_circle",MB.REMOVE_CIRCLE=
"minus_circle",MB.REMOVE_CIRCLE_OUTLINE="minus_circle",MB.REMOVE_FROM_HISTORY="minus_circle",MB.REMOVE_FROM_PLAYLIST="minus_circle",MB.REMOVE_MODERATOR="shield_slash",MB.REPLAY="arrow_counterclockwise",MB.REPLAY_10="skip10_back",MB.REPLAY_ARROW="replay",MB.REPORT_PROBLEM="alert_triangle",MB.RSS_OFF="rss_slash",MB.SAD="face_sad",MB.SAVE_PLAYLIST="bookmark",MB.SCHEDULE="clock",MB.SCHOOL="graduation_cap",MB.SCREEN_DEFAULT="player_default",MB.SCREEN_FULLSCREEN="player_full_enter",MB.SCREEN_LIGHT="ambient_mode",
MB.SCREEN_ROTATION="rotate_portrait",MB.SCREEN_SWITCH="player_switch",MB.SCREEN_THEATRE="player_theater",MB.SEARCH_CAIRO="search",MB.SEARCH_HISTORY="history",MB.SELL="price_tag",MB.SETTINGS="gear",MB.SETTINGS_CAIRO="gear",MB.SETTINGS_LIGHT="gear",MB.SETTINGS_MATERIAL="gear",MB.SETTINGS_REMOTE="remote_waves",MB.SHARE="share",MB.SHARE_ARROW="share",MB.SHARE_CAIRO="share",MB.SHIELD="shield_x",MB.SHIELD_OFF="shield_slash",MB.SHIELD_WITH_AVATAR="person_shield",MB.SHOPPING_BAG="bag",MB.SHOPPING_BAG_CAIRO=
"bag",MB.SHOPPING_CART="cart",MB.SHORTS_COMMENT="text_bubble",MB.SHORTS_DISLIKE="thumb_down",MB.SHORTS_LIKE="thumb_up",MB.SHORTS_SHARE="share",MB.SKIP_FORWARD_30="skip30_forward",MB.SLASH_CIRCLE_LEFT="circle_slash",MB.SLASH_CIRCLE_RIGHT="circle_slash",MB.SLOW_MODE="bubble_slow",MB.SLOW_MODE_OFF="text_bubble",MB.SOCIAL="person_child",MB.SPARKLE="sparkles",MB.SPARK_IMAGE="image_spark",MB.SPARK_RADAR="spark_waves",MB.SPARK_VIDEO="video_spark",MB.SPEAKER_GROUP="speaker_stack",MB.SPEAKER_OFF="speaker_slash",
MB.SPEED_1X="n1x",MB.SPEED_1_POINT_2X="n1point2x",MB.SPEED_1_POINT_5X="n1point5x",MB.SPEED_1_POINT_8X="n1point8x",MB.SPEED_2X="n2x",MB.SPONSORSHIP_STAR="star_circle",MB.SPORTS="basketball",MB.SPOTLIGHT="spotlight",MB.STAFF_PICK="spotlight",MB.START_DVR="add",MB.STAR_BORDER="star",MB.STAR_CIRCLE_RIBBON="memberships_gift",MB.STAR_HALF="star_half_filled",MB.STAR_SHOOTING="hype",MB.STICKER="sticker",MB.STICKER_EMOTICON="face_happy",MB.STOP_DVR="stop",MB.SUBSCRIBE="youtube",MB.SUBSCRIBE_PLUS="add",MB.SUBSCRIPTION_MANAGER=
"gear",MB.SUPERSTAR="super_star",MB.SUPERVISOR_ACCOUNT="person_child",MB.SUPER_CHAT_FOR_GOOD="hands_heart",MB.SWAP_HORIZ="arrow_swap_horizontal",MB.SWITCH_ACCOUNTS="person_square_stack",MB.TAB_ACCOUNT="person",MB.TAB_ACTIVITY="bell",MB.TAB_BOOKMARK="bookmark",MB.TAB_EXPLORE="compass",MB.TAB_HOME="home",MB.TAB_HOME_CAIRO="home",MB.TAB_INBOX="mail",MB.TAB_LIKED="thumb_up",MB.TAB_MUSIC_PREMIUM="youtube_music",MB.TAB_SHORTS="shorts",MB.TAB_SHORTS_CAIRO="shorts",MB.TAB_SUBSCRIPTIONS="subscriptions",MB.TAB_SUBSCRIPTIONS_CAIRO=
"subscriptions",MB.TAB_TRENDING="trending",MB.TARGET="target",MB.TARGET_ADD="target_add",MB.TEMPLATE_ADD="template_add",MB.TEXT="font",MB.TICKET_STAR="star_ticket",MB.TIMER="stopwatch",MB.TRENDING_CAIRO="trending",MB.TRENDING_DOWN="arrow_trend_down",MB.TRENDING_UP="arrow_trend_up",MB.TROPHY_CAIRO="trophy",MB.TROPHY_CELEBRATIONS="fireworks",MB.TROPHY_STAR="star_trophy",MB.TUNE="adjust",MB.TV_OFF="tv_slash",MB.UNBLOCK_USER="minus_circle",MB.UNFAVORITE="thumb_down",MB.UNLIMITED="youtube",MB.UNPLUGGED_LIVE_GUIDE=
"live",MB.UNPLUGGED_SPORTS="eye_slash",MB.UPLOADS="play_square_stack",MB.UP_ARROW="arrow_up",MB.VERTICAL_ALIGN_BOTTOM="chevron_down_end",MB.VERTICAL_ALIGN_TOP="chevron_up_end",MB.VERY_HAPPY="face_very_happy",MB.VERY_SAD="face_very_sad",MB.VIDEOS="play_circle",MB.VIDEO_CALL="video_camera_add",MB.VIDEO_LIBRARY_WHITE="play_square_stack",MB.VIDEO_QUALITY_4K="n4k",MB.VIDEO_QUALITY_8K="n8k",MB.VIDEO_YOUTUBE="youtube",MB.VIEW_LIST_CAIRO="view_list",MB.VIEW_MODULE="view_column3_row2",MB.VISIBILITY="eye",
MB.VISIBILITY_OFF="eye_slash",MB.VOLUME_DOWN="volume_min",MB.VOLUME_MUTE="volume_mute",MB.VOLUME_OFF="volume_mute",MB.VOLUME_STABLE="stable_volume",MB.VOLUME_UP="volume_max",MB.WALLPAPER="image",MB.WARNING="alert_triangle",MB.WATCH_HISTORY="history",MB.WATCH_HISTORY_CAIRO="history",MB.WATCH_LATER="clock",MB.WATCH_LATER_CAIRO="clock",MB.WATCH_RELATED_MIX="mix",MB.WHAT_TO_WATCH="home",MB.YOUTUBE_LINKED_TV="tv_mobile",MB.YOUTUBE_MUSIC_MONOCHROME="youtube_music",MB.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",
MB.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",MB.YOUTUBE_SHORTS_ARROW_UP="arrow_up",MB.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",MB.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",MB.YOUTUBE_SHORTS_OUTLINE_24="shorts",MB);var XwU={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,3,24],[1,3,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,9,16],[1,9,18],[1,9,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],dot:[[0,2,12],[0,2,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,
24]],downloading:[[1,5,24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],
face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],
film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,
4,16],[0,4,24],[1,4,24]],font_square_spark:[[1,1,16],[1,1,24]],football:[[0,4,24],[1,4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,
1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,
2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,
2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],
[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,
3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,
5,16],[1,5,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,
1,24]],mic:[[0,14,24],[1,14,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,
3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,13,24]],overflow_vertical_cairo:[[1,
1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,9,16],[1,9,18],[1,9,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,7,12],[0,7,13],[0,7,16],[0,7,24],[0,7,48],[1,7,13],[1,7,16],[1,7,24]],person_2:[[1,
1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,
1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,
2,24]],presentation_remove:[[1,1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,
1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,
1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,
2,24]],shadow_soft:[[0,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,
1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,
1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,16],[0,9,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,
2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,6,12],[0,6,16],[0,6,24],[1,6,12],[1,6,16],[1,6,24]],star_circle:[[0,6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],
[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,4,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,
1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,
1,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,3,24],[1,3,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],
transition:[[0,5,24],[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,
24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],
[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[0,9,24],[1,9,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],
youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],
[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,2,24],[1,2,24]]};var wwd={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],
arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,
10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,9,18],[0,9,24],[1,9,18],[1,9,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],
card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,
1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,2,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,9,12],[1,9,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,
2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,
3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,11,24],
[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,2,12],[0,2,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,2,18],[1,2,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,
1,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,
9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,18],[1,9,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,
1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_square_spark:[[1,1,18],[1,1,24]],font_strikethrough:[[1,1,24]],font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,24]],gesture_long_press:[[0,
2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,
1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,
3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,
3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],
link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,
5,24]],menu:[[1,1,24]],mic:[[0,14,18],[0,14,24],[0,14,36],[0,14,48],[1,14,18],[1,14,24],[1,14,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,4,24],[1,4,18],[1,4,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,
1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,
1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],overflow_vertical:[[1,13,18],[1,13,24],[1,13,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,9,18],[1,9,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,7,24],[1,7,12],[1,7,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],
person3:[[0,2,24],[1,2,18],[1,2,24]],person_add:[[0,7,24],[1,7,18],[1,7,24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],[1,2,18],[1,2,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,
1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],[1,3,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,
1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,5,12],[1,5,18],[1,5,24],[1,5,48]],playlist_add:[[1,3,18],[1,3,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,
1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,3,18],[1,3,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,
1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,2,24],[1,2,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,
2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,18],[1,15,24],[1,15,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,24,!0]],
share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,4,24],[1,4,18],[1,4,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,
1,24]],skip30_forward:[[1,2,24],[1,2,36]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,24],[1,9,24]],spark_bubble_chat:[[1,
1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[0,2,24],[1,2,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,6,12],[0,6,24],[1,6,12],[1,6,24]],star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_half_filled:[[1,2,12],[1,2,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,4,24],[0,4,36],[1,4,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,4,
24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],template_play_spark:[[1,1,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],
[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,3,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,
1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,10,24],[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,
4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,
2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,2,24]],wifi_tethering:[[1,1,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,9,24],[1,9,18],[1,9,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],
youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[1,2,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var M9h={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER:"MESSAGE_BUBBLE_OVERLAP",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",CLOSED_CAPTION_DELHI_PLAYER:"CAPTIONS",CLOSED_CAPTION_DELHI_PLAYER_FILLED:"CAPTIONS",SUBTITLES_DELHI_PLAYER:"SUBTITLES",SUBTITLES_DELHI_PLAYER_FILLED:"SUBTITLES",PLAYER_FULL_ENTER_ALT:"PLAYER_FULL_ENTER_ALT",
PLAYER_FULL_EXIT_ALT:"PLAYER_FULL_EXIT_ALT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},Sd=function(C){this.iconUrlProvider=C};
Sd.prototype.resolveIcon=function(C,F){var G=M9h[C.iconName.toUpperCase()];G&&(C.iconName=G);var V=C.iconName;V=V.replace(/-/g,"_");C=Object.assign({},C,{iconName:this.mapIconTypeToStandardName(V,!!G)||V.toLowerCase()});if(_.y("enable_web_delhi_icons")||G){var J;return FjT(wwd,C,((J=this.iconUrlProvider)==null?void 0:J.getYtStandardUrl)||J1o,F)}var b;return FjT(XwU,C,((b=this.iconUrlProvider)==null?void 0:b.getYtStandardUrl)||i0E,F)};
Sd.prototype.mapIconTypeToStandardName=function(C,F){return _.y("enable_web_delhi_icons")||F?Ov8[C.toUpperCase()]:Nah[C.toUpperCase()]};
Sd[Ew]=[_.Qt(l6L)];var Sax=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),Lbr=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),Ba3=function(C){this.urlProvider=this.iconUrlProvider=C};
_.O(Ba3,Sd);
Ba3.prototype.resolveIcon=function(C,F){C.iconName==="youtube_logo"&&(C.iconName="yt-logo-updated");if(C.iconName==="youtube_premium_logo"||C.iconName==="youtube_red_logo")C.iconName="yt-logo-red-updated";var G=Object.assign({},C);C.iconName==="menu"&&(_.y("enable_web_delhi_icons")||(G.iconName="bars_3"),G.iconStyle="youtube_outline");C.iconSetName==="socialNetworksRound"&&(C.iconName==="mail"&&(G.iconName="email"),C.iconName==="embed"&&(G.iconSize=60));C.iconName==="more"&&(G.iconName="overflow_horizontal");
C.iconName==="fullscreen"&&(G.iconName="screen_full");C.iconName==="premium_standalone"&&(G.iconName="premium_standalone_cairo");_.y("enable_connect_icon_update_web")&&C.iconName==="account_linked"&&(G.iconName="circles_overlap_check",G.iconStyle="youtube_fill");_.y("enable_connect_icon_update_web")&&C.iconName==="account_unlinked"&&(G.iconName="circles_overlap",G.iconStyle="youtube_outline");Sax.has(C.iconName)&&(G.iconStyle="youtube_fill");_.y("enable_web_delhi_icons")&&(C.iconName==="playlist_add"&&
(G.iconName="bookmark"),C.iconName==="offline_pin"&&(G.iconName="arrow_down_circle",G.iconStyle="youtube_fill"),Lbr.has(C.iconName)&&(G.iconName+="_updated"));C=Object.assign({},G,{iconName:(Sd.prototype.mapIconTypeToStandardName.call(this,G.iconName)||G.iconName).toLowerCase()});var V;return(C=FjT(UaM,C,((V=this.urlProvider)==null?void 0:V.getUrl)||$pZ,F))?C:Sd.prototype.resolveIcon.call(this,G,F)};
Ba3[Ew]=[_.Qt(l6L)];_.vO_=1;var LG=function(C,F){this.JSC$17407_commandHandler=C;this.innertubeTransportService=F};
_.O(LG,mu);LG.prototype.resolveCommand=function(C,F){var G=this,V,J,b;return _.I(function(z){return(V=_.Z(C,Qs$))?z.return(f6M(G,V,(J=F)==null?void 0:(b=J.form)==null?void 0:b.element)):z.return()})};
var f6M=function(C,F,G){F={profileCardContext:F.profileCardContext,profileOwnerExternalChannelId:F.profileOwnerExternalChannelId};var V=_.qW(EN8);return _.j8(C.innertubeTransportService,F,V).then(function(J){if(!J)throw new _.Ay("GetProfileCard failed");if(J=J.popupCommand){C.JSC$17407_commandHandler.resolveCommand(J,{form:{element:G}});_.NJ(_.ia(),66557);J=J==null?void 0:J.clickTrackingParams;var b=_.lm();J&&b&&_.ia().graftServerVe(J,b)}})};
LG[Ew]=[_.WD,_.Qk];var BR=function(){};
_.O(BR,mu);BR.prototype.resolveCommand=function(C){var F,G;return _.I(function(V){F=_.Z(C,lh2);if(!F)return V.return();G=Number(F.enableDelayedPacfLoggingTvMs);if(isNaN(G)){var J=Oh();lCG(J,F,0)}else lCG(Oh(),F,G);_.S9(V)})};_.vR=function(){};
_.O(_.vR,mu);
_.vR.prototype.resolveCommand=function(C,F){var G=this,V,J,b,z,Q,E,t;return _.I(function(k){V=_.Z(C,yBr);b=(J=F.form)==null?void 0:J.element;Q=(z=b)==null?void 0:z.closest("ytd-enforcement-message-view-model");if(!V||!Q)return k.return();G.allowAdsAction||(E=V.fundingChoiceInstructionPageUrl,G.allowAdsAction=new aUy(window,_.Ra(E)));var U=G.allowAdsAction;U.wallElement=Q;U.allowAdsPopup.style.setProperty("display","flex","important");var H=U.scrollManager;H.originalBodyOverflow=H.JSC$9999_domHelper.JSC$9325_document_.body.style.overflow;H.JSC$9999_domHelper.JSC$9325_document_.body.style.overflow=
"hidden";U.wallElement.style.setProperty("display","none","important");MM2(U.accessibilityManager,U.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((t=G.allowAdsAction.allowAdsPopup)&&t instanceof HTMLElement)for(U=_.u(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),H=U.next();!H.done;H=U.next()){var l=_.u(H.value);H=l.next().value;l=l.next().value;t.style.setProperty(H,l)}_.S9(k)})};
_.vR.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var fG=function(){};
_.O(fG,mu);fG.prototype.resolveCommand=function(C){var F;return _.I(function(G){F=_.Z(C,yTS);if(!F)return G.return();yQA(C);_.S9(G)})};var hdr=new _.jh("SESSION_STORAGE");var h$=function(C){this.sessionStorage=C("conversations")};
_.O(h$,mu);h$.prototype.resolveCommand=function(C){var F=this,G;return _.I(function(V){G=_.Z(C,fhu);if(!G)return V.return();G.conversationId?F.sessionStorage.set("conversation_id",G.conversationId):F.sessionStorage.remove("conversation_id");_.S9(V)})};
h$[Ew]=[hdr];var cR=function(C){this.JSC$17427_commandHandler=C};
_.O(cR,mu);
cR.prototype.resolveCommand=function(C){var F=this,G,V,J,b,z,Q,E,t;return _.I(function(k){if(k.nextAddress==1){G=_.Z(C,p$G);if((V=G)==null||!V.text||!navigator.clipboard)return k.return();_.yy(k,2);return k.yield(navigator.clipboard.writeText(G.text),4)}if(k.nextAddress!=2){if(!G.successActions||G.successActions.length===0)return k.return();J=_.u(G.successActions);for(b=J.next();!b.done;b=J.next())z=b.value,F.JSC$17427_commandHandler.resolveCommand(z);return _.Gn(k,0)}_.wa(k);if(!G.failureActions||G.failureActions.length===
0)return k.return();Q=_.u(G.failureActions);for(E=Q.next();!E.done;E=Q.next())t=E.value,F.JSC$17427_commandHandler.resolveCommand(t);_.S9(k)})};
cR[Ew]=[_.WD];var A$=function(C){this.JSC$17431_commandHandler=C};
_.O(A$,mu);
A$.prototype.resolveCommand=function(C,F){var G=this,V,J,b,z,Q,E,t,k,U,H;return _.I(function(l){switch(l.nextAddress){case 1:V=_.Z(C,SM$);if(!V)return l.return();_.yy(l,2);if(!V.imageBytes&&!V.imageUrl)throw Error("Ai");if(!V.imageUrl){if(V.imageBytes){b=V.imageBytes;z=b.replace(/-/g,"+").replace(/_/g,"/");var N=u79(z);J=_.g9(N)}l.jumpTo(4);break}return l.yield(fetch(V.imageUrl),5);case 5:return Q=l.yieldResult,l.yield(Q.blob(),6);case 6:E=l.yieldResult,J=_.g9(E);case 4:U=(t=F)==null?void 0:(k=t.form)==
null?void 0:k.element;H=document.createElement("a");TB(H,J);U.appendChild(H);H.download="";H.click();U.removeChild(H);URL.revokeObjectURL(_.eS(J));V.successCommand&&G.JSC$17431_commandHandler.resolveCommand(V.successCommand);_.Gn(l,0);break;case 2:_.wa(l),V.errorCommand&&G.JSC$17431_commandHandler.resolveCommand(V.errorCommand),_.S9(l)}})};
A$[Ew]=[_.WD];var ed=function(C){this.store=C};
_.O(ed,mu);ed.prototype.resolveCommand=function(C){var F=this,G,V,J;return _.I(function(b){V=(G=_.Z(C,_.bhA))==null?void 0:G.entityBatchUpdate;if(!V)return b.jumpTo(0);J=Object.assign({},V,{mutations:[].concat(_.da(V.mutations||[]))});return b.yield(_.J4(J,F.store),0)})};var cW8=function(C){this.JSC$17438_commandHandler=C;this.feedbackDialogMap=new Map};
cW8.prototype.openDialog=function(C,F){(C=this.feedbackDialogMap.get(C))&&this.JSC$17438_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:C}},F)};
cW8[Ew]=[_.WD];var dN=new _.jh("FEEDBACK_CONTROLLER_TOKEN");var xR=new _.jh("APP_STORE_TOKEN");var sc=function(C,F){this.store=C;this.controller=F};
_.O(sc,mu);sc.prototype.resolveCommand=function(C,F){var G=this,V,J,b,z,Q,E,t,k,U,H,l,N,S,f,c,A,T,P;return _.I(function(g){if(g.nextAddress==1){V=_.Z(C,_.Ud);if(b=(J=V)==null?void 0:J.contentId)for(Q=_.u(((z=V)==null?void 0:z.actions)||[]),E=Q.next();!E.done;E=Q.next())t=E.value,AWM(G,t,b);H=(k=F)==null?void 0:(U=k.form)==null?void 0:U.element;return g.yield(_.DQ(H,[C,{impression:(l=F)==null?void 0:l.disableClickTracking}]).catch(function(){}),2)}N=g.yieldResult;
((S=N)==null?0:(f=S.data)==null?0:(c=f.feedbackResponses)==null?0:c.length)&&(T=(A=N.data.feedbackResponses[0])==null?void 0:A.followUpDialog)&&b&&(P=G.controller)!=null&&P.feedbackDialogMap.set(b,T);_.S9(g)})};
var AWM=function(C,F,G){var V=_.Z(F,_.Cl);if(V){V=_.u(V.commands||[]);for(var J=V.next();!J.done;J=V.next())AWM(C,J.value,G)}_.Z(F,_.MS)&&C.store.dispatch(_.z3("commandEntity",pTS(G),{key:G,command:F}));_.Z(F,UqO)&&C.store.dispatch(_.z3("commandEntity",pTS(G),{key:G,command:F}))};
sc[Ew]=[xR,dN];var qB=function(C){this.controller=C};
_.O(qB,mu);qB.prototype.resolveCommand=function(C,F){var G=this,V,J,b,z;return _.I(function(Q){V=_.Z(C,_.DU);b=(J=V)==null?void 0:J.targetId;if(((z=V)==null?void 0:z.signal)!=="TELL_US_WHY"||!b)return Q.return();G.controller.openDialog(b,F);_.S9(Q)})};
qB[Ew]=[dN];var PR=function(C){this.store=C};
_.O(PR,mu);PR.prototype.resolveCommand=function(C,F){var G=this,V,J,b,z,Q,E,t;return _.I(function(k){V=_.Z(C,$2s);b=(J=V)==null?void 0:J.contentId;E=(z=F)==null?void 0:(Q=z.form)==null?void 0:Q.element;t=_.DQ(E,[C]);b&&G.undo(b);return k.yield(t,0)})};
PR.prototype.undo=function(C){this.store.dispatch(_.z3("commandEntity",pTS(C),{key:C,command:void 0}))};
PR[Ew]=[xR];var gN=function(C){this.JSC$17453_commandHandler=C};
_.O(gN,mu);gN.prototype.resolveCommand=function(C){var F=this,G,V,J,b,z,Q,E,t;return _.I(function(k){G=_.Z(C,rY2);V=G.flowStateKey;J=G.validationFailureCommand;b=G.submitValidFormCommand;z=pOf(_.cx,[V||""]);Q=_.Z(z,pPr);((E=Q)==null?0:E.isValid)&&b&&F.JSC$17453_commandHandler.resolveCommand(b);((t=Q)==null?0:t.isValid)||!J||F.JSC$17453_commandHandler.resolveCommand(J);_.S9(k)})};
gN[Ew]=[_.WD];var Ru=function(C){this.innertubeTransportService=C};
_.O(Ru,mu);Ru.prototype.resolveCommand=function(C,F){var G=this,V;return _.I(function(J){return J.yield(_.fZ(G.innertubeTransportService,C,(V=F)==null?void 0:V.form).then(function(b){var z,Q;F==null||(z=F.commandController)==null||(Q=z.onSuccess)==null||Q.call(z,C,b)},function(b){var z,Q;
F==null||(z=F.commandController)==null||(Q=z.onServerError)==null||Q.call(z,C,b)}),0)})};
Ru[Ew]=[_.Qk];var YR=function(){};
_.O(YR,mu);YR.prototype.resolveCommand=function(C){var F,G,V,J;return _.I(function(b){if(F=_.Z(C,_.R2m)){if(G=F.gtmId)V=_.TF("GL",""),_.fS(G,V);(J=F.gtmData)&&_.hh(J)}_.S9(b)})};var Tj=function(C,F,G){this.innertubeTransportService=C;this.JSC$17464_actionRouter=F;this.JSC$17464_screenManager=G};
_.O(Tj,mu);Tj.prototype.resolveCommand=function(C){var F=this,G,V;return _.I(function(J){G=_.Z(C,Yk$);if(!G)return J.return();V=G.command;if(!V)return J.return();F.JSC$17464_actionRouter.triggerAction("yt-insert-rich-section-action",G);return J.yield(_.fZ(F.innertubeTransportService,V,{disableCache:!0}).then(function(b){C.clickTrackingParams&&(b==null?0:b.trackingParams)&&F.JSC$17464_screenManager.graftServerVe(b.trackingParams,_.zS(C.clickTrackingParams))}),0)})};
Tj[Ew]=[_.Qk,Ij,_.hS];Qgf.bind(null,C$);var edd=Qgf.bind(null,e4m);EgE.bind(null,C$);var dat=EgE.bind(null,e4m);txT.bind(null,C$);var xal=txT.bind(null,e4m);var ou=function(){};
_.O(ou,mu);
ou.prototype.resolveCommand=function(C){var F,G,V,J,b,z,Q,E,t,k;return _.I(function(U){F=_.Z(C,Szy);if(!F)return U.return();V=((G=F.operations)==null?void 0:G.operations)||[];J=_.u(V);for(b=J.next();!b.done;b=J.next())if(z=b.value,z.insertItemSectionContent){var H=z.insertItemSectionContent,l=H.contents||[];H.insertByPositionInSection?edd(H.insertByPositionInSection.sectionTargetId,l,H.insertByPositionInSection.position):H.insertByRelativePositionInSection&&H.insertByRelativePositionInSection.sectionTargetId&&H.insertByRelativePositionInSection.itemTargetId&&
dat(H.insertByRelativePositionInSection.sectionTargetId,H.insertByRelativePositionInSection.itemTargetId,l,H.insertByRelativePositionInSection.relativePosition)}else z.replaceSection?(H=z.replaceSection,l={},H.replaceByTargetId?l=H.replaceByTargetId:H.replaceByGroupId&&(l={targetId:H.replaceByGroupId.groupId,newContent:H.replaceByGroupId.newContent,undoKey:""}),l.newContent&&s2m(l.targetId,{continuationItems:[l.newContent]})):z.removeItem?(H=z.removeItem,H.removeByTargetId&&H.sectionTargetId&&xal(H.sectionTargetId,
H.removeByTargetId.targetIds||[])):z.removeSection&&(z.removeSection.removeByTargetId?(Q=void 0,spU(((Q=z.removeSection)==null?void 0:Q.removeByTargetId.targetIds)||[])):z.removeSection.removeByGroupId&&(E=void 0,spU(((E=z.removeSection)==null?void 0:E.removeByGroupId.groupIds)||[])));k=((t=F.operations)==null?void 0:t.scrollConfig)||{};qaU(k);_.S9(U)})};
var spU=function(C){C=_.u(C);for(var F=C.next();!F.done;F=C.next())s2m(F.value,{continuationItems:[]})},qaU=function(C){if(C.scrollToItem){var F=C.scrollToItem.item||{},G=F.itemTargetId;
F=F.sectionTargetId;if(G&&F){var V=document.querySelector("[data-target-id="+F+"]"),J=V==null?void 0:V.querySelector("[data-target-id="+G+"]");V&&J&&setTimeout(function(){var b=J.offsetTop-V.offsetTop,z;if(((z=C.scrollToItem)==null?void 0:z.scrollPosition)==="SCROLL_POSITION_CENTER")b-=V.offsetHeight/2,b+=J.offsetHeight/2;else{var Q;((Q=C.scrollToItem)==null?void 0:Q.scrollPosition)==="SCROLL_POSITION_END"&&(b-=V.offsetHeight,b+=J.offsetHeight)}V.scroll({top:b,behavior:"smooth"})},100)}}};var rN=new _.jh("CLIENT_NAME_TOKEN");var Pir=new _.jh("DEFAULT_STORE_EXPIRATION_TOKEN");var l1i=new _.jh("CLIENT_LOCATION_SERVICE_TOKEN");var KG=function(C,F,G){this.clientName=C||_.TF("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=F||_.Br.getInstance();this.JSC$17492_commandHandler=G||_.Cy.instance};
_.O(KG,mu);KG.prototype.resolveCommand=function(C){var F=this,G,V;return _.I(function(J){V=(G=_.Z(C,uu7))==null?void 0:G.onComplete;F.clientLocationService.clearLocationPlayabilityToken(F.clientName);V&&F.JSC$17492_commandHandler.resolveCommand(V);_.S9(J)})};
KG[Ew]=[rN,l1i,_.WD];var Dz=function(C){this.innertubeTransportService=C};
_.O(Dz,mu);Dz.prototype.resolveCommand=function(C,F){var G=this,V,J,b,z;return _.I(function(Q){b=(V=F)==null?void 0:(J=V.form)==null?void 0:J.element;return Q.yield(_.fZ(G.innertubeTransportService,C,(z=F)==null?void 0:z.form).then(function(E){tkA(b,new CustomEvent("yt-service-request-completed"),{data:E},_.TF("openPopupConfig"))}),0)})};
Dz[Ew]=[_.Qk];var pG=function(){};
_.O(pG,mu);pG.prototype.resolveCommand=function(C){var F,G;return _.I(function(V){F=_.Z(C,FVG);G=document.querySelector("mini-app-container-view-model");if(!F||!G)return V.return();F.isPlaying?G.dispatchEvent(new Event("play")):G.dispatchEvent(new Event("pause"));_.S9(V)})};var mR=function(){};
_.O(mR,mu);mR.prototype.resolveCommand=function(C){var F,G,V,J,b,z,Q;return _.I(function(E){F=_.Z(C,dsr);if((G=F)==null||!G.paramKeys)return E.return();V=F.paramKeys;J=_.mg(window.location.href);b=_.u(V);for(z=b.next();!z.done;z=b.next())Q=z.value,J.JSC$10031_queryData_.remove(Q);window.history.replaceState(window.history.state,document.title,J.toString());_.S9(E)})};var gOL=function(){this.dropdownMap=new Map};_.Rdh=new _.jh("DROPDOWN_CONTROLLER_TOKEN");var CL=function(C){this.controller=C};
_.O(CL,mu);CL.prototype.resolveCommand=function(C){var F=this,G,V,J,b;return _.I(function(z){G=_.Z(C,W1O);if(!G)return z.return();V=G;J=V.dropdownId;b=V.selectedOptionIndex;if(J===void 0||b===void 0)return z.return();var Q=F.controller.dropdownMap.get(J);Q&&Q(b);_.S9(z)})};
CL[Ew]=[_.Rdh];var j4=function(C){this.controller=C};
_.O(j4,mu);j4.prototype.resolveCommand=function(C){var F=this,G;return _.I(function(V){return(G=_.Z(C,Nol))?V.yield(F.controller.closeDialog(),0):V.return()})};
j4[Ew]=[_.sY];var Fq=function(C){this.controller=C};
_.O(Fq,mu);Fq.prototype.resolveCommand=function(C){var F=this,G,V;return _.I(function(J){G=_.Z(C,$Zy);if(!G)return J.return();var b,z=G.panelIdentifier||((b=G.identifier)==null?void 0:b.tag);if(!z)throw Error("Bi");return(V=z)?J.yield(F.controller.hidePanel({identifier:V}),0):J.jumpTo(0)})};
Fq[Ew]=[_.dB];var V$=function(C){this.controller=C};
_.O(V$,mu);V$.prototype.resolveCommand=function(C){var F=this,G;return _.I(function(V){return(G=_.Z(C,oWS))?V.yield(F.controller.closeSheet(),0):V.return()})};
V$[Ew]=[_.xW];var iv=function(C,F){this.innertubeTransportService=C;this.controller=F};
_.O(iv,mu);iv.prototype.resolveCommand=function(C){var F=this,G,V,J,b;return _.I(function(z){if(z.nextAddress==1)return G=_.Z(C,bS$),(V=G)!=null&&V.panelId?z.yield(F.controller.getReloadContinuation(G.panelId),2):z.return();if(z.nextAddress!=3)return(J=z.yieldResult)?z.yield(_.fZ(F.innertubeTransportService,C,{continuation:J}),3):z.return();b=z.yieldResult;return z.yield(F.controller.updatePanel({identifier:G.panelId,panelContents:b.content,shouldFocus:!1}),0)})};
iv[Ew]=[_.Qk,_.dB];var JQ=function(C,F,G){this.innertubeTransportService=C;this.JSC$17534_screenManager=F;this.JSC$17534_commandHandler=G};
_.O(JQ,mu);
JQ.prototype.resolveCommand=function(C){var F=this,G,V,J,b,z,Q;return _.I(function(E){if(E.nextAddress==1){G=_.Z(C,_.jkE);if(!G)return E.return();if(G.commands)for(V=_.u(G.commands),J=V.next();!J.done;J=V.next())b=J.value,F.JSC$17534_commandHandler.resolveCommand(b,{disableClickTracking:!0});z=_.zS(C.clickTrackingParams);_.NJ(F.JSC$17534_screenManager,21760,z,{layer:7,parentLayer:0});return E.yield(_.fZ(F.innertubeTransportService,C),2)}Q=E.yieldResult;if(!Q)return E.return();F.JSC$17534_screenManager.graftServerVe(Q.trackingParams,z,
7);_.S9(E)})};
JQ[Ew]=[_.Qk,_.hS,_.WD];var $5=new _.jh("PANEL_LOADING_STRATEGY_TOKEN");var bv=function(C,F){this.controller=C;this.panelLoadingStrategy=F};
_.O(bv,mu);
bv.prototype.resolveCommand=function(C,F){var G=this,V,J,b;return _.I(function(z){V=_.Z(C,KkO);if((J=V)==null||!J.panelLoadingStrategy)return z.return();b=function(Q){var E,t,k,U,H,l,N,S,f,c;return _.I(function(A){t=_.Z((E=Q.dialogViewModel)==null?void 0:E.header,tCE);k={viewModel:Q.dialogViewModel};U={};if(N=_.y("web_enable_dialog_header_label")?(H=t)==null?void 0:(l=H.headline)==null?void 0:l.content:void 0)U.ariaLabel=N;V.dismissOnBackgroundTap===!1&&(U.isModal=!0);return Q.dialogViewModel?A.yield(G.controller.openDialog(k,
(c=(S=F)==null?void 0:(f=S.form)==null?void 0:f.element)!=null?c:document.body,U),0):A.return()})};
return z.yield(G.panelLoadingStrategy.execute({command:C,data:V.panelLoadingStrategy,renderFn:b,createScreenConfig:{layer:4}}),0)})};
bv[Ew]=[_.sY,$5];var nL=function(C,F,G){this.innertubeTransportService=C;this.controller=F;this.JSC$17554_screenManager=G};
_.O(nL,mu);
nL.prototype.resolveCommand=function(C,F){var G=this,V,J,b,z,Q,E,t,k,U,H,l,N,S,f,c;return _.I(function(A){switch(A.nextAddress){case 1:V=_.Z(C,_.kC);if(!V)return A.return();var T,P=V.panelIdentifier||((T=V.identifier)==null?void 0:T.tag);if(!P)throw Error("Bi");J=P;return A.yield(G.controller.isVisible(J,!0),2);case 2:if((b=A.yieldResult)&&V.blockIfPanelOpen)return A.return();E=(Q=(z=G.controller).getPanelContent)==null?void 0:Q.call(z,J);if(!(T=E))if(V){var g;T=((g=V.globalConfiguration)==null?void 0:
g.initialState)||V.engagementPanel;if(g=!T)g=!!(V==null?0:(P=V.engagementPanelPresentationConfigs)==null?0:P.engagementPanelPopupPresentationConfig);g&&(T=_.aIo(V.panelIdentifier,V.identifier))}else T=void 0;t=T;k=V.engagementPanelPresentationConfigs;U=V.engagementPanelExtras;return A.yield(G.controller.showPanel({identifier:J,panelContents:t,config:k,extras:U,target:(H=F)==null?void 0:(l=H.form)==null?void 0:l.element}),3);case 3:if(!V.globalConfiguration){A.jumpTo(0);break}if(V.globalConfiguration.reuseModelAndState&&
_.y("enable_ai_companion")&&(f=(S=(N=G.controller).getPanelContent)==null?void 0:S.call(N,J)))return A.return();_.NJ(G.JSC$17554_screenManager,32633);return A.yield(_.fZ(G.innertubeTransportService,C),5);case 5:return c=A.yieldResult,G.JSC$17554_screenManager.graftServerVe(c.trackingParams),A.yield(G.controller.updatePanel({identifier:J,panelContents:c.content,shouldFocus:!0,extras:U,updatePanelContinuationData:c.updatePanelContinuationData}),0)}})};
nL[Ew]=[_.Qk,_.dB,_.hS];var uv=function(C,F){this.controller=C;this.panelLoadingStrategy=F};
_.O(uv,mu);uv.prototype.resolveCommand=function(C,F){var G=this,V,J,b,z,Q,E,t,k;return _.I(function(U){V=_.Z(C,_.nhq);if((J=V)==null||!J.panelLoadingStrategy)return U.return();Q=YaU(G.controller,(b=F)==null?void 0:(z=b.form)==null?void 0:z.element);t=(E=V.contextualSheetPresentationConfig)==null?void 0:E.position;k=function(H){return _.I(function(l){return H.sheetViewModel?l.yield(G.controller.openSheet({viewModel:H.sheetViewModel,sheetPosition:t},Q),0):l.return()})};
return U.yield(G.panelLoadingStrategy.execute({command:C,data:V.panelLoadingStrategy,renderFn:k,createScreenConfig:{layer:0}}),0)})};
uv[Ew]=[_.xW,$5];var zP=function(C,F){this.controller=C;this.JSC$17565_commandHandler=F};
_.O(zP,mu);zP.prototype.resolveCommand=function(C,F){var G=this,V,J,b;return _.I(function(z){if(z.nextAddress==1){V=_.Z(C,Qmy);var Q=_.Z(V.showCommand,_.kC),E,t,k=(t=Q==null?void 0:Q.panelIdentifier)!=null?t:Q==null?void 0:(E=Q.identifier)==null?void 0:E.tag;if(!k)throw Error("Ci");J=k;return z.yield(G.controller.isVisible(J),2)}return(b=z.yieldResult)?z.yield(G.controller.hidePanel({identifier:J}),0):z.yield(G.JSC$17565_commandHandler.resolveCommand(V.showCommand,F),0)})};
zP[Ew]=[_.dB,_.WD];var Q$=function(C,F,G){this.innertubeTransportService=C;this.controller=F;this.JSC$17568_screenManager=G};
_.O(Q$,mu);
Q$.prototype.resolveCommand=function(C){var F=this,G,V,J,b,z,Q,E,t,k,U,H,l,N,S,f,c,A,T,P,g,r,C9;return _.I(function(Wo){switch(Wo.nextAddress){case 1:return V=G=_.Z(C,tp7),J=V.targetPanelIdentifier,b=V.contentSourcePanelIdentifier,z=V.globalConfiguration,((Q=J)==null?0:Q.tag)&&((E=b)==null?0:E.tag)?z?Wo.yield(F.controller.showPanel({identifier:J.tag,panelContents:_.aIo(J.tag,J)}),5):Wo.yield((H=(U=F.controller).getPanel)==null?void 0:H.call(U,b.tag),4):Wo.return();case 4:l=Wo.yieldResult;t=(N=l)==
null?void 0:(f=(S=N).getPanelContent)==null?void 0:f.call(S);Wo.jumpTo(3);break;case 5:return Wo.yield(_.fZ(F.innertubeTransportService,C),6);case 6:c=Wo.yieldResult,((A=c)==null?0:A.trackingParams)&&F.JSC$17568_screenManager.graftServerVe(c.trackingParams),t=(T=c)==null?void 0:T.content,k=(P=c)==null?void 0:P.updatePanelContinuationData;case 3:if(r=(g=t)==null?void 0:g.engagementPanelSectionListRenderer)return Wo.yield(F.controller.showPanel({identifier:J.tag,panelUpdatableFields:{content:r.content,
secondaryHeaderContent:(C9=r.header)!=null?C9:{},targetId:r.targetId},updatePanelContinuationData:k}),0);Wo.jumpTo(0)}})};
Q$[Ew]=[_.Qk,_.dB,_.hS];var IB=function(){};
_.O(IB,mu);IB.prototype.resolveCommand=function(C){var F,G,V;return _.I(function(J){if(J.nextAddress==1)return(F=_.Z(C,HQm))?J.yield(_.CY(),2):J.return();G=J.yieldResult;if(!G)return J.return();var b=G,z=(V=F)==null?void 0:V.languageCode,Q;(b==null?0:(Q=b.isReady)==null?0:Q.call(b))&&(z=kdq(b,z))&&b.setAudioTrack(z);_.S9(J)})};var EN=function(){};
_.O(EN,mu);var Tas=function(C){var F;return _.I(function(G){F=_.TF("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;C.JSC$17579_mainAppPlayer=new VU(F);document.addEventListener("yt-page-data-updated",C.JSC$17579_pauseOnNavigation.bind(C));_.S9(G)})};
EN.prototype.JSC$17579_pauseOnNavigation=function(){var C=this,F,G;return _.I(function(V){if(V.nextAddress==1)return F=C.JSC$17579_mainAppPlayer,V.yield(F.api,2);G=V.yieldResult;G.pauseVideo();_.S9(V)})};
var oOs=function(C,F,G){var V;return _.I(function(J){V=C.JSC$17579_mainAppPlayer;return J.yield(V.loadVideoWithPlayerVars({videoId:F,audio_only:"1",player_params:G}),0)})};
EN.prototype.pauseVideo=function(){var C=this,F,G;return _.I(function(V){if(V.nextAddress==1)return F=C.JSC$17579_mainAppPlayer,V.yield(F.api,2);G=V.yieldResult;G.pauseVideo();_.S9(V)})};
EN.prototype.playVideo=function(){var C=this,F,G;return _.I(function(V){if(V.nextAddress==1)return F=C.JSC$17579_mainAppPlayer,V.yield(F.api,2);G=V.yieldResult;G.playVideo();_.S9(V)})};
var rWd=function(C){var F,G;return _.I(function(V){if(V.nextAddress==1)return F=C.JSC$17579_mainAppPlayer,V.yield(F.api,2);G=V.yieldResult;G.mute();_.S9(V)})},Kbr=function(C){var F,G;
return _.I(function(V){if(V.nextAddress==1)return F=C.JSC$17579_mainAppPlayer,V.yield(F.api,2);G=V.yieldResult;G.unMute();_.S9(V)})},DaW=function(C,F){return _.I(function(G){switch(G.nextAddress){case 1:switch(F){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return G.jumpTo(2);
case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return G.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return G.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return G.jumpTo(5)}G.jumpTo(0);break;case 2:return G.yield(C.playVideo(),7);case 7:G.jumpTo(0);break;case 3:return G.yield(C.pauseVideo(),8);case 8:G.jumpTo(0);break;case 4:return G.yield(rWd(C),9);case 9:G.jumpTo(0);break;case 5:return G.yield(Kbr(C),10);case 10:G.jumpTo(0)}})};
EN.prototype.resolveCommand=function(C){var F=this,G,V,J,b,z,Q,E,t,k,U,H;return _.I(function(l){return l.nextAddress==1?(G=_.Z(C,or2),((V=G)==null?0:V.newPlaybackParams)||((J=G)==null?0:J.controlAction)?F.JSC$17579_mainAppPlayer?l.jumpTo(2):l.yield(Tas(F),2):l.return()):((b=G)==null?0:b.newPlaybackParams)?(E=(z=G)==null?void 0:(Q=z.newPlaybackParams)==null?void 0:Q.externalVideoId,H=(U=(t=G)==null?void 0:(k=t.newPlaybackParams)==null?void 0:k.playerParams)!=null?U:"",E?l.yield(oOs(F,E,H),0):l.return()):
l.yield(DaW(F,G.controlAction),0)})};var WK=function(C){this.JSC$17586_commandHandler=C};
_.O(WK,mu);
WK.prototype.resolveCommand=function(C){var F=this,G,V,J,b,z,Q;return _.I(function(E){if(E.nextAddress==1)return(G=_.Z(C,lpS))?E.yield(_.CY(),2):E.return();V=E.yieldResult;if(!V)return E.return();var t=V,k=(J=G)==null?void 0:J.languageCode,U=(b=G)==null?void 0:b.isAutoTranslated;t.getVideoData&&_.H0s(t).length&&((k=y1S(t,k,U))?t.setOption("captions","track",k):(t.setOption("captions","stickyLoading",{}),t.setOption("captions","track",{})));z=V.isSubtitlesOn()?_.iQ("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.iQ("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");Q=_.gd(z,5E3);F.JSC$17586_commandHandler.resolveCommand(Q);_.S9(E)})};
WK[Ew]=[_.WD];var tQ=function(C,F){this.shortsPlayerPromise=C;this.JSC$17590_commandHandler=F};
_.O(tQ,mu);
tQ.prototype.resolveCommand=function(C){var F=this,G,V,J,b,z,Q,E,t;return _.I(function(k){if(k.nextAddress==1)return(G=_.Z(C,PMr))?k.yield(F.shortsPlayerPromise,2):k.return();V=k.yieldResult;var U=Z0B(V);U!=null&&U.length||(V.loadModule("captions"),U=Z0B(V));J=U;if((b=J)==null||!b.length)return z=_.iQ("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),Q=_.gd(z),F.JSC$17590_commandHandler.resolveCommand(Q),k.return();V.toggleSubtitles();E=V.isSubtitlesOn()?_.iQ("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.iQ("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");t=_.gd(E);F.JSC$17590_commandHandler.resolveCommand(t);_.S9(k)})};
tQ[Ew]=[_.Apr,_.WD];var aB=function(C){this.JSC$17593_actionRouter=C;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(F,G){F.triggerAction("yt-dismiss-shopping-timely-shelf-action",G)}]])};
_.O(aB,mu);aB.prototype.resolveCommand=function(C){var F=this,G,V,J;return _.I(function(b){G=_.Z(C,OQl);if((V=G)==null||!V.overlayId)return b.return();J=F.dismissPlayerOverlayActions.get(G.overlayId);if(!J)throw Error("Di`"+G.overlayId);J(F.JSC$17593_actionRouter,G);_.S9(b)})};
aB[Ew]=[Ij];var k5=function(C){this.JSC$17597_playerPromise=C};
_.O(k5,mu);k5.prototype.resolveCommand=function(C){var F=this,G,V,J,b;return _.I(function(z){if(z.nextAddress==1)return(G=_.Z(C,uxl))?z.yield(F.JSC$17597_playerPromise,2):z.return();V=z.yieldResult;J=V.getVideoData().video_id;G.videoId===J&&(b=Number(G.offsetFromVideoStartMilliseconds),b>=0&&V.seekTo(b/1E3));_.S9(z)})};
k5[Ew]=[_.rE];var pwL=_.C7("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),UN=function(C){this.store=C};
_.O(UN,mu);
var maU=function(C){var F,G,V,J;return _.I(function(b){if(b.nextAddress==1)return F=_.TF("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,G=_.TF("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,V=F||G,C.JSC$17601_mainAppPlayer=new VU(V),b.yield(C.JSC$17601_mainAppPlayer.api,2);J=b.yieldResult;J.addEventListener("onStateChange",C.JSC$17601_playerStateChangeListener.bind(C));document.addEventListener("yt-page-data-updated",C.JSC$17601_pauseOnNavigation.bind(C));window.addEventListener("state-navigatestart",
C.JSC$17601_pauseOnNavigation.bind(C));_.S9(b)})};
UN.prototype.JSC$17601_playerStateChangeListener=function(C){switch(C){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"}Chr(this)};
var Chr=function(C){C.store.dispatch(_.z3("sfvAudioItemCurrentlyPlayingEntity",pwL,{key:pwL,externalVideoId:C.externalVideoId,sfvAudioItemPlaybackState:C.playbackState,nowPlayingEntityValue:C.nowPlayingEntityValue}))};
UN.prototype.JSC$17601_pauseOnNavigation=function(){var C=this,F,G,V,J;return _.I(function(b){if(b.nextAddress==1){if(!C.JSC$17601_mainAppPlayer){var z=new _.Ay("Error: mainAppPlayer is unavailable",C.JSC$17601_mainAppPlayer);_.gD(z);return b.return()}return b.yield(C.JSC$17601_mainAppPlayer.api,2)}F=b.yieldResult;V=(G=F)==null?void 0:G.getPlayerState();V!==1||(J=F)!=null&&J.pauseVideo();_.S9(b)})};
UN.prototype.playVideo=function(C,F,G){var V=this,J,b;return _.I(function(z){if(z.nextAddress==1)return z.yield((J=V.JSC$17601_mainAppPlayer)==null?void 0:J.api,2);b=z.yieldResult;if(!V.JSC$17601_mainAppPlayer||!b){var Q=new _.Ay("Error: mainAppPlayer is unavailable",V.JSC$17601_mainAppPlayer);_.gD(Q);return z.return()}return z.yield(V.JSC$17601_mainAppPlayer.loadVideoWithPlayerVars({videoId:V.externalVideoId,audio_only:"1",start:C/1E3,end:C/1E3+F,player_params:G}),0)})};
UN.prototype.pauseVideo=function(){var C=this,F,G;return _.I(function(V){if(V.nextAddress==1){if(!C.JSC$17601_mainAppPlayer){var J=new _.Ay("Error: mainAppPlayer is unavailable",C.JSC$17601_mainAppPlayer);_.gD(J);return V.return()}return V.yield(C.JSC$17601_mainAppPlayer.api,2)}F=V.yieldResult;(G=F)==null||G.pauseVideo();_.S9(V)})};
UN.prototype.resolveCommand=function(C){var F=this,G,V,J,b,z,Q,E,t,k,U,H,l,N,S,f,c,A,T,P;return _.I(function(g){if(g.nextAddress==1)return G=_.Z(C,dQu),J=(V=G)==null?void 0:V.nowPlayingEntityValue,z=(b=G)==null?void 0:b.externalVideoId,U=Number((k=(Q=G)==null?void 0:(E=Q.defaultStartPoints)==null?void 0:(t=E[0])==null?void 0:t.offsetMs)!=null?k:"0"),c=Number((f=(H=G)==null?void 0:(l=H.defaultStartPoints)==null?void 0:(N=l[0])==null?void 0:(S=N.duration)==null?void 0:S.seconds)!=null?f:"15"),P=(T=
(A=G)==null?void 0:A.playerParams)!=null?T:"",J&&z?F.JSC$17601_mainAppPlayer?g.jumpTo(2):g.yield(maU(F),2):g.return();if(g.nextAddress!=6){if(F.nowPlayingEntityValue&&J===F.nowPlayingEntityValue)return F.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?g.yield(F.pauseVideo(),0):g.yield(F.playVideo(U,c,P),0);F.externalVideoId=z;F.nowPlayingEntityValue=J;F.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return g.yield(F.playVideo(U,c,P),6)}Chr(F);return g.jumpTo(0)})};
UN[Ew]=[gJ];var HK=function(C){this.JSC$17619_commandHandler=C};
_.O(HK,mu);HK.prototype.resolveCommand=function(C,F){var G=this,V,J,b;return _.I(function(z){if(z.nextAddress==1)return(V=_.Z(C,yKl))?z.yield(_.CY(),2):z.return();J=z.yieldResult;if(!J)return z.return();(b=Nm9(J))&&G.JSC$17619_commandHandler.resolveCommand(b,F);_.S9(z)})};
HK[Ew]=[_.WD];var lv=function(C){this.JSC$17625_commandHandler=C};
_.O(lv,mu);lv.prototype.resolveCommand=function(C,F){var G=this,V,J,b,z,Q;return _.I(function(E){if(E.nextAddress==1)return(V=_.Z(C,ZQP))?E.yield(_.CY(),2):E.return();J=E.yieldResult;if(!J)return E.return();(b=S$S(J))?G.JSC$17625_commandHandler.resolveCommand(b,F):(z=_.iQ("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),Q=_.gd(z),G.JSC$17625_commandHandler.resolveCommand(Q));_.S9(E)})};
lv[Ew]=[_.WD];var y$=function(C){this.JSC$17628_playerPromise=C};
_.O(y$,mu);y$.prototype.resolveCommand=function(C){var F=this,G,V;return _.I(function(J){if(J.nextAddress==1)return(G=_.Z(C,MC7))?J.yield(F.JSC$17628_playerPromise,2):J.return();V=J.yieldResult;V.isFullscreen()&&V.wakeUpControls();_.S9(J)})};
y$[Ew]=[_.rE];var Zv=function(C){this.JSC$17631_playerPromise=C};
_.O(Zv,mu);Zv.prototype.resolveCommand=function(C){var F=this,G,V,J,b,z;return _.I(function(Q){if(Q.nextAddress==1){G=_.Z(C,zFO);if(!G)return Q.return();V=G.overlayRenderer;return V?(J=_.Z(V,fOS))?Q.yield(F.JSC$17631_playerPromise,3):Q.jumpTo(0):Q.return()}b=Q.yieldResult;b.renderChapterSeekingAnimation(1,_.dd(J.text),(z=J.icon)==null?void 0:z.iconType);_.S9(Q)})};
Zv[Ew]=[_.rE];var N9=function(C){this.store=C};
_.O(N9,mu);
N9.prototype.resolveCommand=function(C){var F=this,G,V,J;return _.I(function(b){if(b.nextAddress==1){G=_.Z(C,rLm);if(!G)return b.return();V="";(J=F.store.getState().collabInviteLink)&&G.id===J.playlistId?V=J.inviteLinkURL:G.shortUrl&&(V=G.shortUrl);return V?b.yield(navigator.clipboard.writeText(V),3):b.jumpTo(0)}var z={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.iQ("COPY_LINK_SUCCESS_TOAST")}}}}};_.I8().resolve(_.WD).resolveCommand(z);_.S9(b)})};
N9[Ew]=[xR];var ON=function(C,F){this.innertubeTransportService=C;this.JSC$17641_commandHandler=F};
_.O(ON,mu);ON.prototype.resolveCommand=function(C,F){var G=this,V,J,b,z,Q,E,t,k,U,H;return _.I(function(l){if(l.nextAddress==1)return(V=_.Z(C,_.CQ))?l.yield(_.fZ(G.innertubeTransportService,C,(J=F)==null?void 0:J.form),2):l.return();(b=l.yieldResult)&&b.errorMetadata&&(z=b,Q=_.gd(z.error.message),G.JSC$17641_commandHandler.resolveCommand(Q));E=b;if((t=E)==null?0:t.actions)for(k=_.u(E.actions),U=k.next();!U.done;U=k.next())H=U.value,G.JSC$17641_commandHandler.resolveCommand(H);_.S9(l)})};
ON[Ew]=[_.Qk,_.WD];var Xq=function(){};
_.O(Xq,mu);Xq.prototype.resolveCommand=function(C){var F;return _.I(function(G){F=_.Z(C,diG);if(!F)return G.return();(new bFr(F)).show();_.S9(G)})};_.we=new _.jh("PLAYLIST_EDIT_CONTROLLER_TOKEN");var M9=function(C,F,G,V){this.store=C;this.innertubeTransportService=F;this.controller=G;this.JSC$17649_commandHandler=V};
_.O(M9,mu);
M9.prototype.resolveCommand=function(C,F){var G=this,V,J,b,z,Q,E,t,k,U,H,l,N,S,f,c,A,T,P,g,r,C9,Wo,EB,L9,ki,lZ;return _.I(function(eq){if(eq.nextAddress==1){V=_.Z(C,_.TL);if(!V)return eq.return();if(V.clientActions){J=_.u(V.clientActions);for(b=J.next();!b.done;b=J.next())z=b.value,G.JSC$17649_commandHandler.resolveCommand(z);var OB,yr=F==null?void 0:(OB=F.form)==null?void 0:OB.element;yr&&_.oo(yr,"yt-dismissible-item-action",V.clientActions)}return eq.yield(_.fZ(G.innertubeTransportService,C,(Q=
F)==null?void 0:Q.form),2)}if(E=eq.yieldResult)E.errorMetadata?(t=E,k=_.gd(t.error.message),G.JSC$17649_commandHandler.resolveCommand(k),"error"in E&&((U=F)==null?0:(H=U.commandController)==null?0:H.onServerError)&&((l=F)==null||(N=l.commandController)==null||N.onServerError(C,E))):(S=F)==null||(f=S.commandController)==null||(A=(c=f).onSuccess)==null||A.call(c,C,E);T=E;((P=T)==null?0:P.collaborationInviteLink)&&V.playlistId&&(_.y("web_enable_invite_collaborators_link")||_.y("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
G.store.dispatch(_.rh({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:V.playlistId,inviteLinkUrl:T.collaborationInviteLink}}));((g=T)==null?0:g.redirectEndpoint)&&G.JSC$17649_commandHandler.resolveCommand(T.redirectEndpoint);((r=T)==null?0:(C9=r.newHeader)==null?0:C9.playlistHeaderRenderer)?jRV(G.controller,T.newHeader.playlistHeaderRenderer):((Wo=T)==null?0:(EB=Wo.newHeader)==null?0:EB.musicEditablePlaylistDetailHeaderRenderer)&&jRV(G.controller,T.newHeader.musicEditablePlaylistDetailHeaderRenderer);
G.controller.playlistVideoListElement&&((L9=T)==null?0:(ki=L9.playlistEditResults)==null?0:(lZ=ki[0])==null?0:lZ.playlistEditVideoAddedResultData)&&((yr=G.controller.playlistVideoListElement)==null||yr.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:T.playlistEditResults[0].playlistEditVideoAddedResultData})));_.S9(eq)})};
M9[Ew]=[xR,_.Qk,_.we,_.WD];var S4=function(C,F){this.controller=C;this.JSC$17659_commandHandler=F};
_.O(S4,mu);S4.prototype.resolveCommand=function(C,F){var G=this,V,J,b;return _.I(function(z){V=_.Z(C,KF2);G.controller.showRefreshPill&&((J=V)==null?0:J.command)&&(G.JSC$17659_commandHandler.resolveCommand((b=V)==null?void 0:b.command,F),G.controller.showRefreshPill=!1);_.S9(z)})};
S4[Ew]=[_.lr,_.WD];var LL=function(C,F){this.store=C;this.JSC$17663_commandHandler=F||_.Cy.instance};
_.O(LL,mu);LL.prototype.resolveCommand=function(C,F){var G=this,V,J,b,z,Q,E,t,k,U,H;return _.I(function(l){V=_.Z(C,us$);J=G.store.getState().radioButtonGroup;if((b=V)==null?0:b.command)G.JSC$17663_commandHandler.resolveCommand((z=V)==null?void 0:z.command,F);else if(J&&((Q=V)==null?void 0:Q.formId)===J.currentFormId)for(E=Object.values(J.commandsMap),t=_.u(E),k=t.next();!k.done;k=t.next())U=k.value,(H=_.ZD(U))&&G.JSC$17663_commandHandler.resolveCommand(H,F);_.S9(l)})};
LL[Ew]=[_.P$];var BK=new _.jh("USER_PREFS");var vK=function(C){this.JSC$17668_prefCookie=C};
_.O(vK,mu);vK.prototype.resolveCommand=function(C){var F=this,G;return _.I(function(V){(G=_.Z(C,LFo))&&typeof G.useListView==="boolean"&&(_.nl(0,155,G.useListView),F.JSC$17668_prefCookie.save());_.S9(V)})};
vK[Ew]=[BK];var fL=function(C){this.JSC$17672_prefCookie=C};
_.O(fL,mu);fL.prototype.resolveCommand=function(C){var F=this,G,V,J,b,z;return _.I(function(Q){G=_.Z(C,s4P);if((V=G)==null||!V.gl)return Q.return();J=G.gl;b={persist_gl:"1",gl:J};F.JSC$17672_prefCookie.set("gl",J);F.JSC$17672_prefCookie.save();z=ifl(b);_.Xp(z);_.S9(Q)})};
fL[Ew]=[BK];var hQ=function(C){this.JSC$17676_prefCookie=C};
_.O(hQ,mu);hQ.prototype.resolveCommand=function(C){var F=this,G,V;return _.I(function(J){G=_.Z(C,p3y);if(!G)return J.return();V=!1;G.flagNum&&typeof G.value==="boolean"?(_.nl(0,G.flagNum,G.value),V=!0):G.key&&typeof G.stringValue==="string"&&(F.JSC$17676_prefCookie.set(G.key,G.stringValue),V=!0);V&&F.JSC$17676_prefCookie.save();_.S9(J)})};
hQ[Ew]=[BK];var cK=new _.jh("PREF_STORAGE_PROMISE_TOKEN");var AQ=function(C){this.JSC$17680_prefStoragePromise=C};
_.O(AQ,mu);AQ.prototype.resolveCommand=function(C){var F=this,G,V;return _.I(function(J){if(J.nextAddress==1)return(G=_.Z(C,CJO))?J.yield(F.JSC$17680_prefStoragePromise,2):J.return();V=J.yieldResult;return V===void 0||G.key===void 0||G.value===void 0?J.return():J.yield(V.set(G.key,G.value),0)})};
AQ[Ew]=[cK];var Fi8=function(C){this.innertubeTransportService=C};
_.O(Fi8,mu);Fi8.prototype.resolveCommand=function(C,F){var G=this,V,J;return _.I(function(b){(V=_.Z(C,_.$mu))&&V&&V.isFirstRequest&&(_.Z8("search_overview_answer"),_.NV("so_rq",void 0,"search_overview_answer"));return b.yield(_.fZ(G.innertubeTransportService,C,(J=F)==null?void 0:J.form),0)})};
Fi8[Ew]=[_.Qk];var Gk3=function(){};
_.O(Gk3,mu);
Gk3.prototype.resolveCommand=function(C){var F,G,V,J,b,z,Q,E,t;return _.I(function(k){F=_.Z(C,ns7);if((G=F)==null?0:G.sectionIdentifier){if(F.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(J=(V=document.getElementsByTagName(F.sectionIdentifier))==null?void 0:V.item(0))J.scrollIntoView({behavior:"smooth"}),(b=neW(J))&&b.focus({preventScroll:!0});return k.return()}z=document.querySelector("[section-identifier="+F.sectionIdentifier+"]");Q=document.querySelector("[section-identifier="+F.referenceSectionIdentifier+
"]");if(!z)return k.return();E=F.verticalScrollOffsetDp?F.verticalScrollOffsetDp:0;Q&&(E-=Q.offsetTop);window.scrollTo({top:z.offsetTop+E,behavior:"smooth"});(t=neW(z))&&t.focus({preventScroll:!0})}_.S9(k)})};var e4=function(C){this.JSC$17692_commandHandler=C};
_.O(e4,mu);
e4.prototype.resolveCommand=function(C){var F=this,G,V,J,b,z,Q,E;return _.I(function(t){if(t.nextAddress==1){G=_.Z(C,LMm);if(!G||!G.imageBytes||!navigator.clipboard)return t.return();if(G.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.gD(Error("Fi")),t.return();_.yy(t,2);J=(V=G)==null?void 0:V.imageBytes;b=J.replace(/-/g,"+").replace(/_/g,"/");z=u79(b);Q={};E=[new ClipboardItem((Q[z.type]=z,Q))];return t.yield(navigator.clipboard.write(E),4)}if(t.nextAddress!=2)return G.successCommand&&
F.JSC$17692_commandHandler.resolveCommand(G.successCommand),_.Gn(t,0);_.wa(t);G.errorCommand&&F.JSC$17692_commandHandler.resolveCommand(G.errorCommand);_.S9(t)})};
e4[Ew]=[_.WD];var de=function(C,F){this.innertubeTransportService=C;this.JSC$17696_commandHandler=F};
_.O(de,mu);de.prototype.resolveCommand=function(C,F){var G=this,V,J,b,z,Q;return _.I(function(E){if(E.nextAddress==1)return(V=_.Z(C,cJu))?E.yield(_.fZ(G.innertubeTransportService,C,(J=F)==null?void 0:J.form),2):E.return();(b=E.yieldResult)&&b.errorMetadata&&V.onFailureCommand&&G.JSC$17696_commandHandler.resolveCommand(V.onFailureCommand);z=b;((Q=z)==null?0:Q.shareCommand)&&G.JSC$17696_commandHandler.resolveCommand(z.shareCommand,F);_.S9(E)})};
de[Ew]=[_.Qk,_.WD];var x5=function(){};
_.O(x5,mu);x5.prototype.resolveCommand=function(C){var F,G;return _.I(function(V){F=_.Z(C,T3E);if(!F||!navigator.share)return V.return();G={url:F.url};try{return V.return(navigator.share(G))}catch(J){}_.S9(V)})};var sN=function(){};
_.O(sN,mu);sN.prototype.resolveCommand=function(){return _.I(function(C){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.S9(C)})};var q9=function(C){this.JSC$17706_navigationConfirmationService=C};
_.O(q9,mu);q9.prototype.resolveCommand=function(){var C=this;return _.I(function(F){C.JSC$17706_navigationConfirmationService.cancelPendingNavigation();_.S9(F)})};
q9[Ew]=[LR];var PK=function(C){this.JSC$17709_screenManager=C};
_.O(PK,mu);PK.prototype.resolveCommand=function(C,F){var G=this,V,J,b,z,Q,E,t;return _.I(function(k){J=(V=F.form)==null?void 0:V.event;z=(b=F.form)==null?void 0:b.element;if(!J)throw new _.Ay("Event not passed in when resolving command");Q=_.u(J.composedPath());for(E=Q.next();!E.done;E=Q.next())if(t=E.value,t.tagName==="YT-COPY-LINK-RENDERER")return t.copyUrlToClipboard(),z&&_.LZ(G.JSC$17709_screenManager,z),k.return();_.S9(k)})};
PK[Ew]=[_.hS];var ge=function(){this.JSC$17713_miniAppClientDataProvider=_.I8().resolve(_.il)};
_.O(ge,mu);ge.prototype.resolveCommand=function(){var C=this,F,G;return _.I(function(V){if(C.JSC$17713_miniAppClientDataProvider.clientData.has("video_id")){var J=C.JSC$17713_miniAppClientDataProvider,b=J.clientData.get("video_id");b&&J.clientData.delete("video_id");F="https://youtube.com/watch?v="+b;G=_.sL(F);if(G===void 0)throw Error("Gi`"+F);_.Cv(window,G)}_.S9(V)})};var RB=function(){};
_.O(RB,mu);RB.prototype.resolveCommand=function(){return _.I(function(C){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.S9(C)})};var Y5=function(){};
_.O(Y5,mu);Y5.prototype.resolveCommand=function(){var C;return _.I(function(F){if(F.nextAddress==1)return F.yield(_.m7w(window.document.documentElement),2);(C=document.querySelector("mini-app-container-view-model iframe"))&&C.focus();_.S9(F)})};var TP=function(C){this.JSC$17720_navigationConfirmationService=C};
_.O(TP,mu);
TP.prototype.resolveCommand=function(){var C=this;return _.I(function(F){var G=C.JSC$17720_navigationConfirmationService,V=_.I8().resolve(_.Xx),J;if(((J=G.navigateParams)==null?void 0:J.data)!==void 0){var b;_.aPO(V,G.navigateParams.endpoint,G.navigateParams.data,(b=G.navigateParams.navigationType)!=null?b:1,G.navigateParams.tempData,G.navigateParams.isMiniplayer,void 0,!0);G.navigateParams=void 0;G.customConfirmationCommand=void 0}else G.navigateParams&&(V.navigate(G.navigateParams.endpoint,G.navigateParams.reload,
G.navigateParams.params,G.navigateParams.tempData,G.navigateParams.requestType,G.navigateParams.createScreenConfig,!0),G.navigateParams=void 0,G.customConfirmationCommand=void 0);_.S9(F)})};
TP[Ew]=[LR];var oB=function(){};
_.O(oB,mu);oB.prototype.resolveCommand=function(){return _.I(function(C){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.S9(C)})};var re=function(C){this.JSC$17725_prefStorage=C};
_.O(re,mu);re.prototype.resolveCommand=function(){var C=this,F,G;return _.I(function(V){switch(V.nextAddress){case 1:return V.yield(C.JSC$17725_prefStorage,2);case 2:return(F=V.yieldResult)?V.yield(F.set("sfvle",!1),3):V.return();case 3:return V.yield(F.set("sfvles",!0),4);case 4:G=_.bQ(),_.nl(0,203,!1),_.nl(0,204,!0),G.save(),_.S9(V)}})};
re[Ew]=[cK];var KL=function(C){this.JSC$17728_prefStorage=C};
_.O(KL,mu);KL.prototype.resolveCommand=function(){var C=this,F,G;return _.I(function(V){switch(V.nextAddress){case 1:return V.yield(C.JSC$17728_prefStorage,2);case 2:return(F=V.yieldResult)?V.yield(F.set("sfvle",!0),3):V.return();case 3:return V.yield(F.set("sfvles",!0),4);case 4:G=_.bQ(),_.nl(0,203,!0),_.nl(0,204,!0),G.save(),_.S9(V)}})};
KL[Ew]=[cK];_.VyU=new _.jh("SNACKBAR_CONTROLLER_TOKEN");_.iAr=new _.jh("SHOULD_SHOW_PIVOT_BAR_TOKEN");var Dv=function(C){this.controller=C};
_.O(Dv,mu);Dv.prototype.resolveCommand=function(C){var F=this,G;return _.I(function(V){G=_.Z(C,rJ7);if(!G)return V.return();var J=F.controller;J.closeSnackbarFn&&J.closeSnackbarFn();_.S9(V)})};
Dv[Ew]=[_.VyU];var pL=function(C,F){this.controller=C;this.sheetController=F};
_.O(pL,mu);pL.prototype.resolveCommand=function(C,F){var G=this,V,J,b,z,Q,E;return _.I(function(t){V=_.Z(C,DjS);if(!V)return t.return();z=YaU(G.sheetController,(J=F)==null?void 0:(b=J.form)==null?void 0:b.element);Q=_.Z(V.content,z2y);if(!Q)return t.return();var k=G.controller,U=Q,H=(E=V.animationStyle)!=null?E:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(k.showSnackbarFn)k.showSnackbarFn({snackbarViewModel:U,animationStyle:H,durationMs:V.durationSeconds*1E3,target:z});else throw Error("yj");_.S9(t)})};
pL[Ew]=[_.VyU,_.xW];var mz=function(){};
_.O(mz,mu);mz.prototype.resolveCommand=function(C){var F;return _.I(function(G){F=_.Z(C,miu);if(!F||typeof F.key!=="string"||typeof F.value!=="string")return G.return();window.localStorage.setItem(F.key,F.value);_.S9(G)})};var Cz=function(C){this.store=C};
_.O(Cz,mu);Cz.prototype.resolveCommand=function(C){var F=this,G;return _.I(function(V){G=_.Z(C,JHI);if(!G||!G.stepId||!G.token)return V.return();F.store.dispatch(xAO({stepId:G.stepId,token:G.token,isSelected:!1}));_.S9(V)})};
Cz[Ew]=[xR];var j2=function(C,F,G){this.innertubeTransportService=C;this.store=F;this.JSC$17747_screenManager=G};
_.O(j2,mu);
j2.prototype.resolveCommand=function(C){var F=this,G,V,J,b,z,Q,E,t,k,U,H,l,N,S,f,c,A,T,P,g,r,C9,Wo,EB;return _.I(function(L9){G=_.Z(C,nti);if(!G||(V=G.stepIds)==null||!V.length)return L9.return();J=F.store.getState().talkToRecs;b=[];z=[];Q=_.u(G.stepIds);for(E=Q.next();!E.done;E=Q.next())for(t=E.value,k=void 0,(U=(k=J.stepStates[t])==null?void 0:k.userQuery)&&z.push({userQuery:U.userQuery,userQueryToken:U.token}),l=H=void 0,N=(l=(H=J.stepStates[t])==null?void 0:H.selectionStates)!=null?l:{},S=_.u(Object.entries(N)),
f=S.next();!f.done;f=S.next())c=f.value,A=_.u(c),T=A.next().value,P=A.next().value,g=T,r=P,r.isSelected&&b.push(g);C9={selectedChipTokens:b,userQueries:z,submittedStepIds:G.stepIds};Wo={browseTalk2recsFormData:C9};G.browseEndpoint?(EB=C,_.ke(EB,_.iE,G.browseEndpoint)):G.command&&(EB=G.command);return EB?L9.yield(_.fZ(F.innertubeTransportService,EB,{formData:Wo,disableCache:!0}).then(function(ki){(ki==null?0:ki.trackingParams)&&F.JSC$17747_screenManager.graftServerVe(ki==null?void 0:ki.trackingParams)}),
0):L9.return()})};
j2[Ew]=[_.Qk,xR,_.hS];var Fr=function(C){this.store=C};
_.O(Fr,mu);Fr.prototype.resolveCommand=function(C){var F=this,G;return _.I(function(V){G=_.Z(C,ihw);if(!G||!G.stepId||!G.token)return V.return();F.store.dispatch(xAO({stepId:G.stepId,token:G.token,isSelected:!0}));_.S9(V)})};
Fr[Ew]=[xR];var Ga=function(C){this.store=C};
_.O(Ga,mu);Ga.prototype.resolveCommand=function(C,F){var G=this,V,J,b,z,Q;return _.I(function(E){V=_.Z(C,TVE);if(!V||!V.stepId||!V.userQueryToken)return E.return();Q=(z=(J=F)==null?void 0:(b=J.form)==null?void 0:b.userQuery)!=null?z:"";G.store.dispatch(_.rh({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:V.stepId,userQueryToken:V.userQueryToken,userQuery:Q}}));_.S9(E)})};
Ga[Ew]=[xR];_.JGs=new _.jh("TIMELY_ACTIONS_CONTROLLER_TOKEN");var VQ=function(C){this.controller=C};
_.O(VQ,mu);VQ.prototype.resolveCommand=function(C){var F=this,G,V,J,b;return _.I(function(z){G=_.Z(C,Jh2);if(!G)return z.return();V=G;J=V.id;b=V.isVisible;if(J===void 0||b===void 0)return z.return();var Q;(Q=F.controller.timelyActionsMap.get(J))==null||Q(J,b);_.S9(z)})};
VQ[Ew]=[_.JGs];var $l8=function(){this.timelyActionsMap=new Map};var io=function(C){this.JSC$17773_commandHandler=C};
_.O(io,mu);io.prototype.resolveCommand=function(C){var F=this,G,V,J,b,z;return _.I(function(Q){G=_.Z(C,_.k$7);if(!G)return Q.return();b=(V=G.item)==null?void 0:(J=V.notificationTextRenderer)==null?void 0:J.successResponseText;if(!b)return Q.return();z=_.PY(b);F.JSC$17773_commandHandler.resolveCommand(z);_.S9(Q)})};
io[Ew]=[_.WD];var Jx=function(C,F){this.innertubeTransportService=C;this.JSC$17778_playerApiPromise=F};
_.O(Jx,mu);
Jx.prototype.resolveCommand=function(C){var F=this,G,V,J,b,z,Q,E,t,k;return _.I(function(U){if(U.nextAddress==1)return U.yield(F.JSC$17778_playerApiPromise,2);G=U.yieldResult;V=G.getOption("captions","track");J=Object.assign({},_.Z(C,_.lwu));(z=(b=G.getVideoData())==null?void 0:b.video_id)?J.externalVideoId=z:_.CD(Error("Hi"));if((Q=V)==null?0:Q.languageCode)J.languageCode=V.languageCode;if((E=V)==null?0:E.kind)J.kind=V.kind;if((t=V)==null?0:t.name)J.name=V.name;k=Object.assign({},C,{getTranscriptEndpoint:J});return U.yield(_.fZ(F.innertubeTransportService,
k),0)})};
Jx[Ew]=[_.Qk,_.rE];var $3=function(){};
_.O($3,mu);$3.prototype.resolveCommand=function(C){var F,G,V,J,b,z,Q,E;return _.I(function(t){F=_.Z(C,nH8);if((G=F)==null||!G.paramKeyValuePairs)return t.return();V=window.location.href;J=_.u(F.paramKeyValuePairs);for(b=J.next();!b.done;b=J.next())z=b.value,z.key&&z.value&&(Q={},V=_.iH(V,(Q[z.key]=z.value,Q)));E=_.I8().resolve(_.Xi);_.OY(E,V);_.S9(t)})};_.bo=new _.jh("UPDATE_VIDEO_METADATA_CONTROLLER_TOKEN");var nz=function(){};
_.O(nz,TV);_.n=nz.prototype;_.n.getApiPaths=function(){return be2};
_.n.getExtension=function(C){return _.Z(C,_.eT)};
_.n.isNavigationCommand=function(){return!0};
_.n.JSC$14174_getStoreKey=function(C){if((C=this.getExtension(C))&&C.videoId){var F={videoId:C.videoId};C.playlistId&&(F.playlistId=C.playlistId);C.index&&(F.index=C.index);C.params&&(F.params=C.params);return _.Ar("next",F)}};
_.n.JSC$14167_getClientScreen=function(C){var F;return((F=C.contentPlaybackContext)==null?void 0:F.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.n.JSC$14167_buildRequest=function(C,F,G){F.videoId&&(C.videoId=F.videoId);F.playlistId&&(C.playlistId=F.playlistId);F.params&&(C.params=F.params);F.index!==void 0&&(C.playlistIndex=F.index);C.racyCheckOk=!(!G.racyCheckOk&&!F.racyCheckOk);C.contentCheckOk=!!F.contentCheckOk;G.contentPlaybackContext&&(C.autonavState=G.contentPlaybackContext.autonavState,C.playbackContext={vis:G.contentPlaybackContext.vis,lactMilliseconds:G.contentPlaybackContext.lactMilliseconds});G.prefetchPlaybackContext&&(C.context.request||
(C.context.request={}),C.context.request.isPrefetch=!0);_.y("captions_hats_killswitch")||(F=_.bQ().getFlag(65),F=F!=null?!F:!1,G=!!_.Wr("yt-player-sticky-caption"),C.captionsRequested=F&&G)};
_.n.getRequestConfig=function(C){C=this.JSC$14174_getStoreKey(C);var F;C&&(F={storeStrategy:{storeKey:C}});_.y("web_log_player_watch_next_ticks")&&(F=F||{},F.requestTick="wn_s",F.responseTick="wn_r");return F};
var uo=function(){};
_.O(uo,TV);uo.prototype.getApiPaths=function(){return be2};
uo.prototype.getExtension=function(C){return _.Z(C,_.O4)};
uo.prototype.JSC$14167_buildRequest=function(C,F){F.token&&(C.continuation=F.token)};var za=function(C,F,G,V){this.controller=C;this.JSC$17798_playerApiPromise=F;this.innertubeTransportService=G;this.JSC$17798_commandHandler=V};
_.O(za,mu);
za.prototype.resolveCommand=function(C){var F=this,G,V,J,b,z,Q,E,t,k,U,H,l,N,S,f,c,A,T;return _.I(function(P){if(P.nextAddress==1){G=_.Z(C,Snr);if((V=G)==null||!V.watchEndpoint)return P.return();J=new nz;b=J.JSC$14167_getRequest(G.watchEndpoint);if(!b)return P.return();z=G.watchEndpoint.clickTrackingParams;return P.yield(_.j8(F.innertubeTransportService,b.innerTubeRequest,b.input,z,b.config),2)}if(P.nextAddress!=3)return Q=P.yieldResult,P.yield(F.JSC$17798_playerApiPromise,3);E=P.yieldResult;E.updateVideoData({raw_watch_next_response:Q});
if(N=(t=Q)==null?void 0:(k=t.contents)==null?void 0:(U=k.twoColumnWatchNextResults)==null?void 0:(H=U.results)==null?void 0:(l=H.results)==null?void 0:l.contents)f=(S=N.find(function(g){return g.videoPrimaryInfoRenderer}))==null?void 0:S.videoPrimaryInfoRenderer,((c=f)==null?0:c.subtitle)&&bAL(F.controller,f.subtitle);
(T=(A=Q)==null?void 0:A.onUiReady)&&F.JSC$17798_commandHandler.resolveCommand(T);_.S9(P)})};
za[Ew]=[_.bo,_.rE,_.Qk,_.WD];var nfs=function(){this.subtitleChangeCallbackMap=new Map},bAL=function(C,F){C=_.u(C.subtitleChangeCallbackMap.values());
for(var G=C.next();!G.done;G=C.next())G=G.value,G(F)};var QQ=function(C,F){this.JSC$17808_commandHandler=C;this.innertubeTransportService=F};
_.O(QQ,mu);
QQ.prototype.resolveCommand=function(C,F){var G=this,V,J,b,z,Q,E,t,k,U,H,l,N,S,f,c,A,T;return _.I(function(P){switch(P.nextAddress){case 1:return(b=(V=F)==null?void 0:(J=V.form)==null?void 0:J.element)&&_.Xc(b),z=_.bQ().get("hl"),Q="",_.yy(P,2),P.yield(fI9(z),4);case 4:Q=P.yieldResult;_.Gn(P,3);break;case 2:return _.wa(P),b&&_.wJ(b),_.gD(Error("Ji"),"ERROR"),P.return();case 3:E=_.Z(C,qnO);if(!E)return b&&_.wJ(b),P.return();(U=(t=E.commerceActionConfig)==null?void 0:(k=t.commandLifeCycleConfig)==null?
void 0:k.onStartCommand)&&G.JSC$17808_commandHandler.resolveCommand(U);return P.yield(_.fZ(G.innertubeTransportService,C,{client_data:{paymentsClientToken:{token:Q}}}),5);case 5:(H=P.yieldResult)?(b&&_.wJ(b),((f=H)==null?0:f.command)&&G.JSC$17808_commandHandler.resolveCommand(H.command),(T=(c=E.commerceActionConfig)==null?void 0:(A=c.commandLifeCycleConfig)==null?void 0:A.onSuccessCommand)&&G.JSC$17808_commandHandler.resolveCommand(T)):(b&&_.wJ(b),_.gD(Error("Ki")),(S=(l=E.commerceActionConfig)==
null?void 0:(N=l.commandLifeCycleConfig)==null?void 0:N.onFailureCommand)&&G.JSC$17808_commandHandler.resolveCommand(S)),_.S9(P)}})};
QQ[Ew]=[_.WD,_.Qk];var IT=function(C,F,G){this.store=C;this.JSC$17824_commandHandler=F;this.innertubeTransportService=G};
_.O(IT,mu);
IT.prototype.resolveCommand=function(C,F){var G=this,V,J,b,z,Q,E,t,k,U;return _.I(function(H){V=_.Z(C,Ppu);J=V.googlePaymentPayload;V.onStartCommand&&G.JSC$17824_commandHandler.resolveCommand(V.onStartCommand);b=J.encryptedPurchaseParams;z=J.ypcLogWalletAnalyticDataEndpoint;Q=V.serializedTransactionFlowLoggingParams;E=J.serializedPaymentsClientParams;t=V.ypcCujContext;U=A1A(G.innertubeTransportService,(k=F)==null?void 0:k.form,b,z,Q,E,t);return H.return(U.then(function(l){hcE(F==null?void 0:F.form,
!1);var N=G.store,S=G.JSC$17824_commandHandler,f=l.integratorData;f==null||f===""||l.error!=null?(String(l.error)==="-1"&&V.onDismissCommand?S.resolveCommand(V.onDismissCommand):String(l.error)!=="-1"&&V.onFailureCommand&&S.resolveCommand(V.onFailureCommand),String(l.error)!=="-1"&&String(l.error)!=="132"&&_.gD(Error("Li"),"ERROR")):(V.googlePaymentEntityKey&&N.dispatch(_.z3("commerceAcquisitionClientPayloadEntity",V.googlePaymentEntityKey,{key:V.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:f,
fundsGuaranteeCallbackClientData:l.integratorClientCallbackData}}})),V.onSuccessCommand&&S.resolveCommand(V.onSuccessCommand));_.mE()},function(l){hcE(F==null?void 0:F.form,!1);
_.gD(l,"ERROR");V.onFailureCommand&&G.JSC$17824_commandHandler.resolveCommand(V.onFailureCommand)}))})};
IT[Ew]=[gJ,_.WD,_.Qk];var EP=function(C,F){this.JSC$17828_commandHandler=C;this.purchaseManager=F};
_.O(EP,mu);
EP.prototype.resolveCommand=function(C){var F=this,G,V,J,b,z,Q,E,t,k;return _.I(function(U){G=_.Z(C,g9O);((V=G)==null?0:(J=V.commandLifeCycleConfig)==null?0:J.onStartCommand)&&F.JSC$17828_commandHandler.resolveCommand(G.commandLifeCycleConfig.onStartCommand);if(!((b=G)==null?0:(z=b.googlePaymentPurchaseManagerPayload)==null?0:z.securePayloadBytes))return _.gD(Error("Mi"),"ERROR"),U.return();Q=fDm(_.p9(G.googlePaymentPurchaseManagerPayload.securePayloadBytes));E=_.bQ().get("hl");t=_.hM();KYs(Q.serialize(),
E,function(H){t.resolve(H)},function(H){t.reject(H)},t.resolve);
k=t.promise;return U.return(k.then(function(H){if(H)if(H==null?0:H.errorCode){_.gD(Error("Ni`"+H.errorCode),"ERROR");var l,N;((l=G)==null?0:(N=l.commandLifeCycleConfig)==null?0:N.onFailureCommand)&&F.JSC$17828_commandHandler.resolveCommand(G.commandLifeCycleConfig.onFailureCommand)}else if(H==null?0:H.isCancelled){var S,f;((S=G)==null?0:(f=S.commandLifeCycleConfig)==null?0:f.onCancelCommand)&&F.JSC$17828_commandHandler.resolveCommand(G.commandLifeCycleConfig.onCancelCommand)}else{var c,A;((c=G)==
null?0:(A=c.commandLifeCycleConfig)==null?0:A.onSuccessCommand)&&F.JSC$17828_commandHandler.resolveCommand(G.commandLifeCycleConfig.onSuccessCommand)}},function(H){_.gD(H,"ERROR");
var l,N;((l=G)==null?0:(N=l.commandLifeCycleConfig)==null?0:N.onFailureCommand)&&F.JSC$17828_commandHandler.resolveCommand(G.commandLifeCycleConfig.onFailureCommand)}))})};
EP[Ew]=[_.WD,D_r];var ufx=function(C,F){this.JSC$17836_commandHandler=C;this.commandAllowlistOverride=F;var G;this.commandAllowlist=(G=this.commandAllowlistOverride)!=null?G:cB};
ufx.prototype.handleResponse=function(C,F,G){var V,J=F==null?void 0:(V=F.config)==null?void 0:V.command;if(!J||this.commandAllowlist.some(function(b){return!!_.Z(J,b)})){F=void 0;
G!==void 0&&(F={form:{element:G}});C.onResponseReceivedCommand&&this.JSC$17836_commandHandler.resolveCommand(C.onResponseReceivedCommand,F);C.onResponseReceivedAction&&this.JSC$17836_commandHandler.resolveCommand(C.onResponseReceivedAction,F);C.onResponseReceivedEndpoint&&this.JSC$17836_commandHandler.resolveCommand(C.onResponseReceivedEndpoint,F);C.command&&this.JSC$17836_commandHandler.resolveCommand(C.command,F);if(C.onResponseReceivedCommands)for(G=_.u(C.onResponseReceivedCommands),V=G.next();!V.done;V=
G.next())this.JSC$17836_commandHandler.resolveCommand(V.value,F);if(C.onResponseReceivedActions)for(G=_.u(C.onResponseReceivedActions),V=G.next();!V.done;V=G.next())this.JSC$17836_commandHandler.resolveCommand(V.value,F);if(C.onResponseReceivedEndpoints)for(G=_.u(C.onResponseReceivedEndpoints),V=G.next();!V.done;V=G.next())this.JSC$17836_commandHandler.resolveCommand(V.value,F);if(C.actions)for(C=_.u(C.actions),G=C.next();!G.done;G=C.next())this.JSC$17836_commandHandler.resolveCommand(G.value,F)}};
ufx[Ew]=[_.WD,_.Qt(OiZ)];var z03=new _.jh("INNERTUBE_TOKEN_SERVICE");var QRx=new _.jh("SCHEDULER_TOKEN");var Iih=function(C){this.scheduler=C;C={};this.tokenMap=(C.app={},C.user={},C)};
Iih.prototype.handleResponse=function(C,F){if(!F)throw Error("Oi");var G;if(C=(G=C.responseContext)==null?void 0:G.innertubeTokenJar){if(C.appTokens){var V,J,b;G=(V=F.innerTubeRequest.context)==null?void 0:(J=V.request)==null?void 0:(b=J.innertubeTokenJar)==null?void 0:b.appTokens;Efr(this,C.appTokens,this.tokenMap.app,G)}if(C.userTokens){var z,Q,E;F=(z=F.innerTubeRequest.context)==null?void 0:(Q=z.request)==null?void 0:(E=Q.innertubeTokenJar)==null?void 0:E.userTokens;Efr(this,C.userTokens,this.tokenMap.user,
F)}}};
Iih.prototype.processContext=function(C){C.request||(C.request={});var F=Object.keys(this.tokenMap.app).length,G=Object.keys(this.tokenMap.user).length;if(F||G)C.request.innertubeTokenJar={},F&&(C.request.innertubeTokenJar.appTokens=[].concat(_.da(Object.values(this.tokenMap.app).flat()))),G&&(C.request.innertubeTokenJar.userTokens=[].concat(_.da(Object.values(this.tokenMap.user).flat())))};
var Efr=function(C,F,G,V){F=_.u(F);for(var J=F.next(),b={};!J.done;b={token$jscomp$139:void 0},J=F.next()){b.token$jscomp$139=J.value;if(b.token$jscomp$139.type===void 0)throw new _.Ay("InnerTube token has no type",b.token$jscomp$139);if(b.token$jscomp$139.clearTokens)G[b.token$jscomp$139.type]=[];else if(b.token$jscomp$139.value!==void 0){G[b.token$jscomp$139.type]||(G[b.token$jscomp$139.type]=[]);if(V!==void 0&&V.length){J=_.u(V);for(var z=J.next(),Q={};!z.done;Q={requestToken:void 0},z=J.next())Q.requestToken=
z.value,z=G[b.token$jscomp$139.type].findIndex(function(E){return function(t){return t===E.requestToken||(0,_.xf.equals)(t,E.requestToken)}}(Q)),z>-1&&G[b.token$jscomp$139.type].splice(z,1)}G[b.token$jscomp$139.type].push(b.token$jscomp$139);
b.token$jscomp$139.maxAgeSeconds&&Number(b.token$jscomp$139.maxAgeSeconds)>0&&C.scheduler.addLowPriorityJob(function(E){return function(){var t=G[E.token$jscomp$139.type].indexOf(E.token$jscomp$139);t>-1&&G[E.token$jscomp$139.type].splice(t,1)}}(b),Number(b.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.Ay("InnerTube token has no value",b.token$jscomp$139);
}};
Iih[Ew]=[QRx];var WiV=new _.jh("LOCAL_INNERTUBE_ROUTER_TOKEN"),ty_=new _.jh("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var Wm=function(C){this.serviceMap=C};
Wm.prototype.shouldPreferLocalResponse=function(C,F){return(C=aix(this,C))?C.shouldPreferLocalResponse(F):!1};
Wm.prototype.localInnertubeResponse=function(C,F){var G=this,V;return _.I(function(J){return(V=aix(G,C))?J.return(V.localInnertubeResponse(F)):J.return(Promise.reject(Error("Pi")))})};
Wm.prototype.canProvideFallbackResponse=function(C,F){return(C=aix(this,C))?C.canProvideFallbackResponse(F):!1};
Wm.prototype.localFallbackInnertubeResponse=function(C,F){var G=this,V;return _.I(function(J){return(V=aix(G,C))?J.return(V.localFallbackInnertubeResponse(F)):J.return(Promise.reject(Error("Pi")))})};
var aix=function(C,F){F=_.X$(F);return F?(C=C.serviceMap[F])?C:null:null};
Wm[Ew]=[ty_];var uV=function(){};
uV.prototype.shouldPreferLocalResponse=function(){return!1};
uV.prototype.localInnertubeResponse=function(){return _.I(function(C){return C.return(Promise.reject(Error("Qi")))})};
uV.prototype.canProvideFallbackResponse=function(){return!0};
uV.prototype.localFallbackInnertubeResponse=function(){var C,F,G;return _.I(function(V){C=jZ("CLOSE_POPUP");F={openPopupAction:dpT()};G={actions:[C,F]};return V.return(G)})};var KCA=function(C,F){this.JSC$17885_upliftPromise=C;this.store=F};
_.n=KCA.prototype;_.n.shouldPreferLocalResponse=function(C){var F=C.videoId,G;if(G=F)G=PMT(this.store.getState().entities,C.videoId);return G&&gsW(this.store.getState().entities,F)?sgB(this.store.getState().entities,C.playlistId):!1};
_.n.localInnertubeResponse=function(C){var F=this,G;return _.I(function(V){return(G=F.getPlayerResponse(C))?V.return(Promise.resolve(G)):V.return(Promise.reject(Error("Ri")))})};
_.n.canProvideFallbackResponse=function(C){return!!C.videoId};
_.n.localFallbackInnertubeResponse=function(C){var F=this,G;return _.I(function(V){if(V.nextAddress==1)return V.yield(F.JSC$17885_upliftPromise,2);G=F.getPlayerResponse(C);var J;G?J=V.return(Promise.resolve(G)):J=IA(F.store.getState().entities,C.videoId)?V.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.YB(_.iQ("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:TOB()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
V.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.YB(_.iQ("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:YxI()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return J})};
_.n.getPlayerResponse=function(C){return tpE(this.store.getState().entities,C.videoId)};var nV=function(C,F){this.localPlayerService=C;this.localWatchNextService=F};
nV.prototype.shouldPreferLocalResponse=function(C){var F=C.playerRequest;C=C.watchNextRequest;return!!(F&&this.localPlayerService.shouldPreferLocalResponse(F)&&C&&this.localWatchNextService.shouldPreferLocalResponse(C))};
nV.prototype.localInnertubeResponse=function(C){var F=this,G,V,J,b;return _.I(function(z){if(z.nextAddress==1){G=C.playerRequest;V=C.watchNextRequest;if(!G||!V)throw new _.Ay("Missing streaming request",C);return z.yield(F.localPlayerService.localInnertubeResponse(G),2)}if(z.nextAddress!=3)return J=z.yieldResult,z.yield(F.localWatchNextService.localInnertubeResponse(V),3);b=z.yieldResult;return z.return({playerResponse:J,watchNextResponse:b})})};
nV.prototype.canProvideFallbackResponse=function(C){var F=C.playerRequest;C=C.watchNextRequest;return!!(F&&this.localPlayerService.canProvideFallbackResponse(F)&&C&&this.localWatchNextService.canProvideFallbackResponse(C))};
nV.prototype.localFallbackInnertubeResponse=function(C){var F=this,G,V,J,b;return _.I(function(z){if(z.nextAddress==1)return G=C.playerRequest,V=C.watchNextRequest,G&&V?z.yield(F.localPlayerService.localFallbackInnertubeResponse(G),2):z.return(Promise.reject(new _.Ay("Missing streaming request",C)));if(z.nextAddress!=3)return J=z.yieldResult,z.yield(F.localWatchNextService.localFallbackInnertubeResponse(V),3);b=z.yieldResult;return z.return({playerResponse:J,watchNextResponse:b})})};var J6=function(C){this.JSC$17895_persistentStorePromiseAccessor=C};
J6.prototype.shouldPreferLocalResponse=function(){return!1};
J6.prototype.localInnertubeResponse=function(){return _.I(function(C){return C.return(Promise.reject(Error("Si")))})};
J6.prototype.canProvideFallbackResponse=function(){return!0};
J6.prototype.localFallbackInnertubeResponse=function(){var C=this,F,G;return _.I(function(V){return V.nextAddress==1?V.yield(C.JSC$17895_persistentStorePromiseAccessor(),2):V.nextAddress!=3?(F=V.yieldResult)?V.yield(F.get("service:guide:fallback"),3):V.return(Promise.reject(Error("Ti"))):(G=V.yieldResult)&&_.qx(G)?V.return(q$i(_.qx(G))):V.return(Promise.reject(Error("Ui")))})};var zC=function(){};
zC.prototype.shouldPreferLocalResponse=function(){return!1};
zC.prototype.localInnertubeResponse=function(){return _.I(function(C){return C.return(Promise.reject(Error("Vi")))})};
zC.prototype.canProvideFallbackResponse=function(){return!0};
zC.prototype.localFallbackInnertubeResponse=function(){var C,F,G;return _.I(function(V){C=jZ("CLOSE_POPUP");F={openPopupAction:dpT()};G={actions:[C,F]};return V.return(G)})};var iV=function(){this.urlMap=kkr;this.fallbackCommand=_.fQ};
iV.prototype.shouldPreferLocalResponse=function(C){return(C=C.url)?!!UlL(this,C):!1};
iV.prototype.localInnertubeResponse=function(C){var F=this,G;return _.I(function(V){return(G=C.url)?V.return(HAt(C,UlL(F,G))):V.return(Promise.reject(Error("Wi")))})};
iV.prototype.canProvideFallbackResponse=function(){return!0};
iV.prototype.localFallbackInnertubeResponse=function(C){var F=this,G,V,J,b,z,Q,E;return _.I(function(t){G=C.url;if(!G)return t.return(HAt(C,F.fallbackCommand));if(V=UlL(F,G))return t.return(HAt(C,V));J=void 0;b=_.X$(G);b==="/watch"&&(z=_.Da(G,"v"))&&(E=(Q=_.Da(G,"list"))!=null?Q:void 0,J=_.RQ(z,E));J||(J=F.fallbackCommand);return t.return(HAt(C,J))})};
var UlL=function(C,F){if(F)return C.urlMap[_.v9(F)]},HAt=function(C,F){F&&C.parentTrackingParams&&(F.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:C.parentTrackingParams}},F.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:F})};var $C=function(C,F,G){this.JSC$17906_upliftPromise=C;this.store=F;this.JSC$17906_persistentStorePromiseAccessor=G};
$C.prototype.shouldPreferLocalResponse=function(){return!1};
$C.prototype.localInnertubeResponse=function(){return _.I(function(C){return C.return(Promise.reject(Error("Xi")))})};
$C.prototype.canProvideFallbackResponse=function(){return!0};
$C.prototype.localFallbackInnertubeResponse=function(){var C=this;return _.I(function(F){return F.return(liV(C))})};
var liV=function(C){var F,G;return _.I(function(V){if(V.nextAddress==1)return V.yield(sp(C.JSC$17906_upliftPromise,C.store),2);F=V.yieldResult;G={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[xpB(F)]}}}};return V.return(yGL(C,G))})},yGL=function(C,F){var G,V;
return _.I(function(J){if(J.nextAddress==1)return J.yield(C.JSC$17906_persistentStorePromiseAccessor(),2);if(J.nextAddress!=3)return G=J.yieldResult,J.yield(Px(G),3);V=J.yieldResult;return J.return({responseContext:{},contents:F,topbar:V})})};var GC=function(C,F,G){this.JSC$17913_upliftPromise=C;this.store=F;this.JSC$17913_persistentStorePromiseAccessor=G};
GC.prototype.shouldPreferLocalResponse=function(C){var F=C.videoId;return F&&PMT(this.store.getState().entities,F)&&gsW(this.store.getState().entities,F)?sgB(this.store.getState().entities,C.playlistId):!1};
GC.prototype.localInnertubeResponse=function(C){var F=this,G,V;return _.I(function(J){if(J.nextAddress==1)return(G=C.videoId)?J.yield(F.JSC$17913_upliftPromise,2):J.return(Promise.reject(Error("Yi")));if(J.nextAddress!=3)return J.yield(ZAM(F,C,G),3);V=J.yieldResult;return J.return(NSx(F,V,G))})};
GC.prototype.canProvideFallbackResponse=function(C){return C.videoId?!0:!1};
GC.prototype.localFallbackInnertubeResponse=function(C){var F=this,G,V,J,b;return _.I(function(z){switch(z.nextAddress){case 1:return(G=C.videoId)?z.yield(F.JSC$17913_upliftPromise,2):z.return(Promise.reject(Error("Yi")));case 2:return z.yield(ZAM(F,C,G),3);case 3:V=z.yieldResult;if(IA(F.store.getState().entities,G)){z.jumpTo(4);break}return z.yield(sp(F.JSC$17913_upliftPromise,F.store),5);case 5:return J=z.yieldResult,z.return(OA8(V,J));case 4:return PMT(F.store.getState().entities,G)&&gsW(F.store.getState().entities,
G)?z.return(NSx(F,V,G)):(b={title:_.YB(_.iQ("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:TOB()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},z.return(OA8(V,b)))}})};
var ZAM=function(C,F,G){var V,J,b,z,Q;return _.I(function(E){if(E.nextAddress==1)return V=F.playlistId,J=_.RQ(G,V),E.yield(C.JSC$17913_persistentStorePromiseAccessor(),2);if(E.nextAddress!=3)return b=E.yieldResult,E.yield(Px(b),3);z=E.yieldResult;Q={responseContext:{},currentVideoEndpoint:J,topbar:z};return E.return(Q)})},NSx=function(C,F,G){if(C=IA(C.store.getState().entities,G)){var V;
G=C.videoEntity;var J,b={title:TU(G.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.oQ((V=G.localizedStrings)==null?void 0:V.viewCount),viewCount:_.oQ((J=G.localizedStrings)==null?void 0:J.viewCount)}}};G.publishedTimestampMillis&&(b.dateText=_.oQ(sri(new Date(Number(G.publishedTimestampMillis)))));V={videoPrimaryInfoRenderer:b};J=C.videoEntity;C=C.channelEntity;C={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:TU(_.iQ("SHOW_MORE",void 0,"Show more")),
showLessText:TU(_.iQ("SHOW_LESS",void 0,"Show less")),description:J.formattedDescription,owner:{videoOwnerRenderer:{title:TU(C.title),thumbnail:C.avatar}}}};F.contents={twoColumnWatchNextResults:{results:{results:{contents:[V,C]}}}}}return F},OA8=function(C,F){C.contents={singleColumnWatchNextResults:{results:{results:{contents:[xpB(F)]}}}};
return C};var bV=function(C,F,G){this.JSC$17918_upliftPromise=C;this.store=F;this.JSC$17918_persistentStorePromiseAccessor=G};
bV.prototype.shouldPreferLocalResponse=function(){return!1};
bV.prototype.localInnertubeResponse=function(){return _.I(function(C){return C.return(Promise.reject(Error("Zi")))})};
bV.prototype.canProvideFallbackResponse=function(){return!0};
bV.prototype.localFallbackInnertubeResponse=function(){var C=this,F,G,V,J;return _.I(function(b){switch(b.nextAddress){case 1:return b.yield(C.JSC$17918_persistentStorePromiseAccessor(),2);case 2:return F=b.yieldResult,b.yield(Px(F),3);case 3:return G=b.yieldResult,V={responseContext:{},topbar:G},b.yield(C.JSC$17918_upliftPromise,4);case 4:return b.yield(sp(C.JSC$17918_upliftPromise,C.store),5);case 5:return J=b.yieldResult,V.watchStatus={backgroundPromoRenderer:J},b.return(V)}})};_.Xjs=new _.jh("ENDPOINT_MAP");var ogi=/^[a-zA-Z0-9_\-]{11}$/;var r1I=_.aF(function(){var C,F;return(F=(C=window).matchMedia)==null?void 0:F.call(C,"(prefers-reduced-motion: reduce)").matches});var wjx=_.aF(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 C=_.mN("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");C||(C=_.Md("VIDEO"),_.zn("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
C));return!!(C&&C.canPlayType&&C.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var Mys=XMLHttpRequest.prototype.fetch,SsV=Mys&&Mys.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!nO?!0:!1;var tx=function(C){this.JSC$17929_storeWithEntities=C};
_.O(tx,TV);_.n=tx.prototype;_.n.getApiPaths=function(){return L_o};
_.n.getExtension=function(C){return _.Z(C,_.eT)||_.Z(C,_.nd)||_.Z(C,Xnl)};
_.n.isNavigationCommand=function(){return!0};
_.n.JSC$14174_getStoreKey=function(C){if((_.y("kevlar_cache_on_ttl_player")||_.y("mweb_enable_shorts_innertube_player_prefetch")||_.y("mweb_use_new_history_manager")||_.y("web_shorts_prefetch_service_enabled"))&&(C=this.getExtension(C))&&C.videoId){var F={videoId:C.videoId};C.playlistId&&(F.playlistId=C.playlistId);C.playerParams&&(F.params=C.playerParams);return _.Ar("player",F)}};
_.n.JSC$14167_getClientScreen=function(C){var F;return((F=C.contentPlaybackContext)==null?void 0:F.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.n.JSC$14167_buildRequest=function(C,F,G){if(_.y("enable_interstitial_entity_check")){var V=this.JSC$17929_storeWithEntities;if(F.videoId)for(var J=_.u(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),b=J.next();!b.done;b=J.next()){b=b.value;var z;var Q=void 0,E=void 0,t=F.videoId,k=b;(z=V)?(t=_.C7(t+k,"interstitialInteractionStateEntity"),z=(Q=(E=_.jN(z.getState().entities,"interstitialInteractionStateEntity",t))==null?void 0:E.primaryButtonClicked)!=null?Q:!1):z=!1;if(z)switch(b){case "CONTENT_CHECK_REQUIRED":F.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":F.racyCheckOk=!0}}}F.videoId&&(C.videoId=F.videoId);F.playlistId&&(C.playlistId=F.playlistId);F.index!==void 0&&(C.playlistIndex=F.index+1);F.playerParams&&(C.params=F.playerParams);"startTimeSeconds"in F&&F.startTimeSeconds&&(_.y("enable_player_request_builder_start_time_floor")?C.startTimeSecs=Math.floor(F.startTimeSeconds):C.startTimeSecs=F.startTimeSeconds);G.contentPlaybackContext&&(C.playbackContext={contentPlaybackContext:G.contentPlaybackContext});G.prefetchPlaybackContext&&
(C.playbackContext=Object.assign({},C.playbackContext,{prefetchPlaybackContext:G.prefetchPlaybackContext}),C.context.request||(C.context.request={}),C.context.request.isPrefetch=!0);C.playbackContext||(C.playbackContext={});V=wjx();C.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!V,supportXhr:SsV};G.overrideMutedAtStart&&(C.overrideMutedAtStart=G.overrideMutedAtStart);C.racyCheckOk=!!F.racyCheckOk;C.contentCheckOk=!!F.contentCheckOk;!_.y("captions_prefs_killswitch")&&(G=(G=_.Wr("yt-player-caption-language-preferences"))?
G:[],G==null?0:G.length)&&(C.captionParams={viewerSelectedCaptionLangs:G})};
_.n.getRequestConfig=function(C){C=this.JSC$14174_getStoreKey(C);var F;C&&(F={storeStrategy:{storeKey:C}});_.y("web_log_player_watch_next_ticks")&&(F=F||{},F.requestTick="ps_s",F.responseTick="ps_r");return F};
tx[Ew]=[gJ];var aT=function(C,F){this.playerRequestBuilder=C;this.watchNextRequestBuilder=F};
_.O(aT,TV);aT.prototype.getApiPaths=function(){return UOO};
aT.prototype.getExtension=function(C){return _.Z(C,_.eT)};
aT.prototype.isNavigationCommand=function(){return!0};
aT.prototype.JSC$14167_buildRequest=function(C,F,G){C.playerRequest={};this.playerRequestBuilder.JSC$14167_buildRequest(C.playerRequest,F,G);_.y("web_streaming_watch")&&(C.watchNextRequest={},this.watchNextRequestBuilder.JSC$14167_buildRequest(C.watchNextRequest,F,G))};
aT[Ew]=[tx,nz];var LiU;_.k3=new _.jh("SHORTS_CONTROLLER_TOKEN");LiU=new _.jh("SHORTS_STATE_STORE_TOKEN");var UP=function(C,F){var G=_.Rn.apply(2,arguments);C=C===void 0?0:C;_.Ay.call(this,F,G);this.errorType=C;Object.setPrototypeOf(this,this.constructor.prototype)};
_.O(UP,_.Ay);var BSr,vft,fis,h0V,pHI,Mb,kwB,e0L,AGM,Ph8,sRU,xlx;BSr=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(C){return C+"="}).join("|"));
vft=RegExp(".*\\?.*playnext=1.*");fis=function(C,F,G,V){this.watchEndpointMap=C;this.reelWatchEndpointMap=F;this.innerTubeTransportService=G;this.fetchPbj=V};
h0V=function(C,F,G){var V=_.I8().resolve(_.Qt(iFG));fis.instance=new fis(C,F,G,V)};
_.cGx=function(C,F){var G=_.a8("web_pbj_log_warning_rate",0);G=G>0&&Math.random()<G;var V;if((V=_.Z(F.commandMetadata,_.GU))==null||!V.rootVe)return G&&_.Yw(Error("dj")),!1;var J;V=(J=_.Z(F.commandMetadata,_.GU))==null?void 0:J.url;if(!V)return G&&_.Yw(Error("ej")),!1;if(vft.test(V))return!0;if(BSr.test(V))return G&&_.Yw(Error("fj`"+V)),!1;if(_.Z(F,_.eT)){if(!(C.watchEndpointMap.watchNext&&C.watchEndpointMap.player||_.y("kevlar_fetch_initial_data_op_watch_client")))return G&&_.Yw(Error("$i")),!1;
C=_.a8("web_pbj_log_warning_rate",0);C=C>0&&Math.random()<C;_.Z(F,_.eT)?Y$w(F)?F=!0:(C&&_.Yw(Error("aj")),F=!1):(C&&_.Yw(Error("$i")),F=!1);return F}if(_.Z(F,_.nd))return TmI(F);if(_.Z(F,_.od))return!0;C=_.vB(C.innerTubeTransportService,F);!C&&G&&_.gD(Error("gj"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(F)});return C};
pHI=function(C,F,G,V,J,b){F={url:F};if(G==null?0:G.itct)F.parentTrackingParams=G.itct;var z=_.qW(xOO);return _.j8(C.innerTubeTransportService,F,z).then(function(Q){(Q=Q.endpoint)||(Q=_.fQ);(G==null?0:G.itct)&&Q&&!Q.trackingParams&&(Q.trackingParams=G.itct);var E=$T(Q);return Mb(C,Q,G,V,E,J,b)})};
Mb=function(C,F,G,V,J,b,z,Q){Q=Q===void 0?{}:Q;if(C.fetchPbj&&!_.cGx(C,F)&&!_.y("force_one_platform")){Q=C.fetchPbj(F);var E=_.mE(Q.then(function(P){if(!P)throw Error("hj");z(E)||b(F,P);return P}));
return E}var t,k,U={rootVe:(t=_.Z(F.commandMetadata,_.GU))==null?void 0:t.rootVe,url:(k=_.Z(F.commandMetadata,_.GU))==null?void 0:k.url,endpoint:F,page:J};if(_.Z(F,_.eT)){var H,l={contentPlaybackContext:_.Rv(G,(H=_.Z(F.commandMetadata,_.GU))==null?void 0:H.url,V)},N=_.hM();_.y("web_streaming_watch")&&window.TextDecoderStream?(Q=IVm(C.innerTubeTransportService,F,l,function(P){!U.response&&P.content&&(U.response=P.content);!U.playerResponse&&P.player&&(U.playerResponse=P.player);b(F,U)}),t=PJ5(F),t.length&&
(U.preconnect=t,b(F,U)),AGM(Q,N,U).catch(function(P){P instanceof UP&&P.errorType===2&&_.y("web_streaming_watch_fallback")&&e0L(C,F,l,U,b,z,N)})):e0L(C,F,l,U,b,z,N);
return N.promise}if(_.Z(F,_.nd)){var S;if(((S=_.Z(F,_.nd))==null?void 0:S.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var f=_.hM();_.dlV(_.I8().resolve(_.k3),F).then(function(P){xlx(C,G,V,J,b,f,P)});
return f.promise}Q=_.mE();var c;t={contentPlaybackContext:_.Rv(G,(c=_.Z(F.commandMetadata,_.GU))==null?void 0:c.url,V)};(c=C.reelWatchEndpointMap.player)&&(c=c().JSC$14167_getRequest(F,t))&&(Q=_.j8(C.innerTubeTransportService,c.innerTubeRequest,c.input,F.clickTrackingParams,c.config));c=_.mE();(k=C.reelWatchEndpointMap.reelItemWatch)&&(k=k().JSC$14167_getRequest(F))&&(c=_.j8(C.innerTubeTransportService,k.innerTubeRequest,k.input,F.clickTrackingParams,k.config));k=_.mE();_.y("web_enable_delay_shorts_sequence_call_extra")&&
(k=new _.N1(function(P){setTimeout(function(){P(void 0)},200)}));
(!_.y("web_enable_delay_shorts_sequence_call_new")||_.y("web_enable_delay_shorts_sequence_call_forget"))&&(H=C.reelWatchEndpointMap.reelWatchSequence)&&_.Z(F,_.nd).sequenceParams&&(t=H().JSC$14167_getRequest(F,t))&&(_.y("web_enable_delay_shorts_sequence_call_forget")?_.j8(C.innerTubeTransportService,t.innerTubeRequest,t.input,F.clickTrackingParams,t.config):k=_.j8(C.innerTubeTransportService,t.innerTubeRequest,t.input,F.clickTrackingParams,t.config));t=_.mE(U);H=_.hM();sRU(F,t,Q,c,k,b,z,H);return H.promise}var A;
if(_.Z(F,JZI)&&((A=_.Z(F.commandMetadata,_.GU))==null?0:A.url))return Q=QhB(_.mg(Pj().location.href),_.mg(_.Z(F.commandMetadata,_.GU).url)).toString(),pHI(C,Q,G,V,b,function(){return!1});
if(_.Z(F,_.od))return b(F,U),_.mE(U);if(_.vB(C.innerTubeTransportService,F)){Q=Object.assign({},{tempData:G,disableCache:G.disableCache},Q);var T=_.fZ(C.innerTubeTransportService,F,Q).then(function(P){U.response=P;z(T)||b(F,U);return U});
return T}return _.mE(U)};
_.qsU=function(C,F,G,V){if(_.Z(F,_.eT)||_.Z(F,_.nd)&&(_.y("mweb_enable_shorts_innertube_player_prefetch")||_.y("kevlar_enable_shorts_prefetch_in_sequence"))||_.Z(F,Xnl)&&_.y("web_enable_prefetching_videos_on_home")){var J,b={contentPlaybackContext:_.Rv(G,(J=_.Z(F.commandMetadata,_.GU))==null?void 0:J.url,V),prefetchPlaybackContext:DpE(G)},z,Q,E;if(((z=_.Z(F,_.eT))==null?void 0:(Q=z.watchEndpointSupportedPrefetchConfig)==null?void 0:(E=Q.prefetchHintConfig)==null?void 0:E.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(G=
C.watchEndpointMap.watchNext)if(b=G().JSC$14167_getRequest(F,b))return Promise.resolve(_.j8(C.innerTubeTransportService,b.innerTubeRequest,b.input,void 0,b.config).then(function(U){return U}))}else if(G=C.watchEndpointMap.player)if(b=G().JSC$14167_getRequest(F,b))return Promise.resolve(_.j8(C.innerTubeTransportService,b.innerTubeRequest,b.input,void 0,b.config).then(function(U){return U}))}else if(_.vB(C.innerTubeTransportService,F)){var t={tempData:G},k=bIG(C.innerTubeTransportService,F);
return k?new Promise(function(U,H){var l,N;return _.I(function(S){if(S.nextAddress==1)return S.yield(k,2);if(S.nextAddress!=4)return l=S.yieldResult,l.JSC$14174_getStoreKey(F,t)?S.yield(_.fZ(C.innerTubeTransportService,F,t),4):(H(new _.Ay("Prefetching request builder with no store key.",F)),S.jumpTo(0));N=S.yieldResult;U(N);_.S9(S)})}):Promise.reject(new _.Ay("Prefetching unregistered request builder.",F))}return Promise.reject(new _.Ay("No request builder available to prefetch endpoint.",F))};
kwB=function(C,F){var G,V,J;if(_.Z(F,_.eT)){var b=C.watchEndpointMap.watchNext;b&&(G=b());(C=C.watchEndpointMap.player)&&(V=C())}else if(_.Z(F,_.nd))(b=C.reelWatchEndpointMap.reelItemWatch)&&(G=b()),(b=C.reelWatchEndpointMap.player)&&(V=b()),(C=C.reelWatchEndpointMap.reelWatchSequence)&&(J=C());else{a:{C=biq(F,C.innerTubeTransportService.endpointMap);if(C!==void 0)if(typeof C.then==="function")_.gD(new _.Ay("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",F));else break a;
C=void 0}C&&(G=C)}var z,Q,E;return{content:(z=G)==null?void 0:z.JSC$14174_getStoreKey(F),player:(Q=V)==null?void 0:Q.JSC$14174_getStoreKey(F),reelSequence:(E=J)==null?void 0:E.JSC$14174_getStoreKey(F)}};
e0L=function(C,F,G,V,J,b,z){var Q=_.mE(),E=C.watchEndpointMap.player;_.y("web_streaming_player")&&(E=wE(aT));E&&(E=E().JSC$14167_getRequest(F,G))&&(Q=_.j8(C.innerTubeTransportService,E.innerTubeRequest,E.input,F.clickTrackingParams,E.config));E=_.mE();var t=C.watchEndpointMap.watchNext;t&&(G=t().JSC$14167_getRequest(F,G))&&(E=_.j8(C.innerTubeTransportService,G.innerTubeRequest,G.input,F.clickTrackingParams,G.config));C=_.mE(V);Ph8(F,C,Q,E,J,b,z)};
AGM=function(C,F,G){return _.I(function(V){if(V.nextAddress==1)return V.yield(C,2);F.resolve(G);_.S9(V)})};
Ph8=function(C,F,G,V,J,b,z){var Q,E,t,k,U;_.I(function(H){switch(H.nextAddress){case 1:return H.yield(F,2);case 2:Q=H.yieldResult;if(b(z.promise))return z.resolve(Q),H.return();J(C,Q);E=PJ5(C);if(!E.length){H.jumpTo(3);break}return H.yield(F,4);case 4:Q.preconnect=E,J(C,Q);case 3:return _.yy(H,5),H.yield(G,7);case 7:t=H.yieldResult;_.Gn(H,6);break;case 5:return k=_.wa(H),z.reject(k),H.return();case 6:if(t===void 0)return Q.reload=!0,J(C,Q),z.resolve(Q),H.return();if(b(z.promise))return z.resolve(Q),
H.return();Q.playerResponse=t;J(C,Q);_.yy(H,8);return H.yield(V,10);case 10:U=H.yieldResult;_.Gn(H,9);break;case 8:_.wa(H);case 9:if(U===void 0)return Q.response={responseContext:{}},z.resolve(Q),H.return();if(b(z.promise))return z.resolve(Q),H.return();Q.response=U;J(C,Q);z.resolve(Q);_.S9(H)}})};
sRU=function(C,F,G,V,J,b,z,Q){var E,t,k,U,H,l;_.I(function(N){switch(N.nextAddress){case 1:return N.yield(F,2);case 2:E=N.yieldResult;if(z(Q.promise))return Q.resolve(E),N.return();b(C,E);t=PJ5(C);if(!t.length){N.jumpTo(3);break}return N.yield(F,4);case 4:E.preconnect=t,b(C,E);case 3:return _.yy(N,5),N.yield(G,7);case 7:k=N.yieldResult;_.Gn(N,6);break;case 5:return U=_.wa(N),Q.reject(U),N.return();case 6:if(k===void 0)return E.reload=!0,b(C,E),Q.resolve(E),N.return();if(z(Q.promise))return Q.resolve(E),
N.return();E.playerResponse=k;b(C,E);_.yy(N,8);return N.yield(V,10);case 10:H=N.yieldResult;_.Gn(N,9);break;case 8:_.wa(N);case 9:if(H===void 0)return E.response={responseContext:{}},Q.resolve(E),N.return();if(z(Q.promise))return Q.resolve(E),N.return();E.response=H;b(C,E);_.yy(N,11);return N.yield(J,13);case 13:l=N.yieldResult;_.Gn(N,12);break;case 11:_.wa(N);case 12:if(z(Q.promise))return Q.resolve(E),N.return();l&&(E.reelWatchSequenceResponse=l);b(C,E);Q.resolve(E);_.S9(N)}})};
xlx=function(C,F,G,V,J,b,z){var Q,E,t,k,U,H;_.I(function(l){if((Q=z)==null||!Q.replacementEndpoint)return b.reject(),l.return();E=z.replacementEndpoint;(t=_.Z(E,_.nd))?(z.sequenceContinuation&&(t.sequenceParams=z.sequenceContinuation),k=_.I8().resolve(_.k3),U=t.sequenceParams,gfV(k,E)&&delete t.sequenceParams,H=Mb(C,E,F,G,V,J,function(){return!1}),H.then(function(N){return _.I(function(S){if(S.nextAddress==1)return R03(k,{reelWatchEndpoint:{sequenceParams:U}},N),S.yield(0,2);
b.resolve(N);_.S9(S)})})):b.reject();
_.S9(l)})};var Ysx=function(){var C=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return C.sequenceMap}}},EMy=function(C,F,G){var V,J=(V=F.config)==null?void 0:V.sequenceStrategy;
if(!J)return G();C.sequenceMap.has(J.sequenceKey)||C.sequenceMap.set(J.sequenceKey,[]);C=C.sequenceMap.get(J.sequenceKey);switch(J.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return TSr(C,F,G);case "REQUEST_SEQUENCE_TYPE_REPLACE":return ofd(C,F,G);default:throw new _.Ay("Request could not be sequenced",F);}},TSr=function(C,F,G){var V,J,b;
return _.I(function(z){C.length>0?(J=C[C.length-1],V=J.responsePromise.then(function(){return G()})):V=G();
b={request:F,responsePromise:V};C.push(b);rG_(C,b);return z.return(b.responsePromise)})},ofd=function(C,F,G){G=G();
if(C.length>0)for(var V=_.u(C),J=V.next();!J.done;J=V.next())J.value.responsePromise=G;var b={request:F,responsePromise:G};C.push(b);rG_(C,b);return Promise.resolve().then(function(){return C.indexOf(b)>0?b.responsePromise.then(function(z){return Object.assign({},z,{sequenceMetaData:{skipProcessing:!0}})}):b.responsePromise})},rG_=function(C,F){F.responsePromise.then(function(){var G=C.indexOf(F);
G>-1&&C.splice(G,1)})};var Ki8=new _.jh("REQUEST_SEQUENCING");var Hm=function(){};
_.O(Hm,TV);Hm.prototype.getApiPaths=function(){return[]};
Hm.prototype.getExtension=function(C){return _.Z(C,u2u)};
Hm.prototype.JSC$14167_buildRequest=function(C,F){C.recaptchaToken=F.recaptchaToken};
Hm.prototype.getApiUrl=function(){return"/das_captcha"};var lo=function(){};
_.O(lo,TV);lo.prototype.getApiPaths=function(){return xR$};
lo.prototype.getExtension=function(C){return _.Z(C,qk2)};
lo.prototype.JSC$14167_buildRequest=function(C,F,G){G=G===void 0?{}:G;F.createBackstagePostParams&&(C.createBackstagePostParams=F.createBackstagePostParams);G.comment_text&&(C.commentText=G.comment_text);if(G.attached_video_id)C.videoAttachment={videoId:G.attached_video_id};else if(G.image_poll_options)C.pollAttachmentData={options:G.image_poll_options};else if(G.poll_options)C.pollAttachment={choices:G.poll_options};else if(G.quiz_options)C.quizAttachmentData={options:G.quiz_options};else if(G.image_blob_id)C.imageAttachment=
{encryptedBlobId:G.image_blob_id},G.source_video_id&&(C.imageAttachment.sourceExternalVideoId=G.source_video_id),G.image_preview_coordinates&&(C.imageAttachment.previewCoordinates=JSON.parse(G.image_preview_coordinates));else if(G.images_data)C.imagesAttachment={imagesData:G.images_data};else if(G.clip_external_video_id!==void 0||G.clip_offset_ms!==void 0||G.clip_duration_ms!==void 0){var V,J,b,z,Q;C.clipAttachment={externalVideoId:(b=G.clip_external_video_id)!=null?b:"",offsetMs:(z=(V=G.clip_offset_ms)==
null?void 0:V.toString())!=null?z:"",durationMs:(Q=(J=G.clip_duration_ms)==null?void 0:J.toString())!=null?Q:""}}else G.shared_post_id&&(C.sharedPostAttachment={postId:G.shared_post_id});G.tagged_video_id&&(C.postCreationData={taggedVideoId:G.tagged_video_id});G.access_restrictions&&(typeof G.access_restrictions==="number"&&(F=G.access_restrictions,C.accessRestrictions={restriction:F!==1&&F===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof G.access_restrictions==="string"&&
(C.accessRestrictionsParams=G.access_restrictions));G.scheduled_publish_time_sec&&(C.scheduledPublishTimeSec=G.scheduled_publish_time_sec.toString())};var yQ=function(){};
_.O(yQ,TV);yQ.prototype.getApiPaths=function(){return TPG};
yQ.prototype.getExtension=function(C){return _.Z(C,AS8)};
yQ.prototype.JSC$14167_buildRequest=function(C,F,G){G=G===void 0?{}:G;F.decorateMessageParams&&(C.params=F.decorateMessageParams);G.text&&(C.text=G.text)};var Zl=function(){};
_.O(Zl,TV);Zl.prototype.getApiPaths=function(){return IZ7};
Zl.prototype.getExtension=function(C){return _.Z(C,Pey)};
Zl.prototype.JSC$14167_buildRequest=function(C,F,G){G=G===void 0?{}:G;G.video_id&&(C.videoId=G.video_id)};var N6=function(){};
_.O(N6,TV);N6.prototype.getApiPaths=function(){return k1O};
N6.prototype.getExtension=function(C){return _.Z(C,_.FI)};
N6.prototype.JSC$14167_buildRequest=function(C,F,G){G.suggestions_query&&(C.input=G.suggestions_query)};var OP=function(){};
_.O(OP,TV);OP.prototype.getApiPaths=function(){return p1o};
OP.prototype.getExtension=function(C){return _.Z(C,gpm)};
OP.prototype.JSC$14167_buildRequest=function(C,F,G){G.comment_text!==void 0&&(C.commentText=G.comment_text);G.scheduled_publish_time_sec&&(C.scheduledPublishTimeSec=G.scheduled_publish_time_sec.toString());C.updateBackstagePostParams=F.updateBackstagePostParams};var Xr=function(){};
_.O(Xr,TV);Xr.prototype.getApiPaths=function(){return f3};
Xr.prototype.getExtension=function(C){return _.Z(C,_.O4)};
Xr.prototype.JSC$14167_buildRequest=function(C,F,G){G.formData&&(C.formData=G.formData);F.token?C.continuation=F.token:F.continuationTokenKey&&(G=_.s3().getState(),F=_.jN(G.entities,"continuationTokenEntity",F.continuationTokenKey))&&(C.continuation=String(F.continuationToken))};
var DlU=function(){};
_.O(DlU,TV);_.n=DlU.prototype;_.n.getApiPaths=function(){return f3};
_.n.getExtension=function(C){return _.Z(C,_.iE)};
_.n.isNavigationCommand=function(){return!0};
_.n.JSC$14174_getStoreKey=function(C){if((C=this.getExtension(C))&&C.browseId){var F={browseId:C.browseId};C.browseEndpointContextSupportedConfigs&&(F.browseEndpointContextSupportedConfigs=JSON.stringify(C.browseEndpointContextSupportedConfigs));C.params&&(F.params=C.params);C.query&&(F.query=C.query);return _.Ar("browse",F)}};
_.n.JSC$14167_buildRequest=function(C,F,G){F.browseId&&(C.browseId=F.browseId);F.params&&(C.params=F.params);F.query&&(C.query=F.query);G.formData?C.formData=G.formData:F.formData&&(C.formData=F.formData);F.browseId==="FEsubscriptions"&&_.bQ().getFlag(155)&&(C.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");F.browseId==="SPaccount_playback"&&(G=_.bQ(),C.formData||(C.formData={}),C.formData.accountSettingsFormData={flagCaptionsDefaultOff:G.getFlag(65),flagAutoCaptionsDefaultOn:G.getFlag(66),
flagDisableInlinePreview:G.getFlag(186),flagAudioDescriptionDefaultOn:G.getFlag(198)});if(F.browseId==="FEwhat_to_watch"){G=_.bQ();var V=G.getFlag(196);G.getFlag(197)&&(C.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:V}}})}F.browseId==="FEwhat_to_watch"&&(F=_.bQ().getFlag(186),C.inlineSettingStatus=F?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.n.getRequestConfig=function(C,F){F=F===void 0?{}:F;var G={};if(C=this.JSC$14174_getStoreKey(C,F))G.storeStrategy={storeKey:C,disableCache:F.disableCache};_.y("web_log_browse_ticks_ks")||(G.requestTick="br_s",G.responseTick="br_r");return G};var wL=function(){};
_.O(wL,TV);wL.prototype.getApiPaths=function(){return fMu};
wL.prototype.getExtension=function(C){return _.Z(C,kDo)};
wL.prototype.JSC$14167_buildRequest=function(C,F,G){C.legacyYoutubeChannelUsername=G.legacyYouTubeChannelUsername||"";C.legacyYoutubeChannelPassword=G.legacyYouTubeChannelPassword||""};var M6=function(){};
_.O(M6,TV);M6.prototype.getApiPaths=function(){return shu};
M6.prototype.getExtension=function(C){return _.Z(C,Dql)};
M6.prototype.JSC$14167_buildRequest=function(C,F,G){G.recaptcha_response_token&&(C.recaptchaResponseToken=G.recaptcha_response_token);G.channel_id&&(C.channelId=G.channel_id)};var S2=function(){};
_.O(S2,TV);S2.prototype.getApiPaths=function(){return mOP};
S2.prototype.getExtension=function(C){return _.Z(C,GT$)};
S2.prototype.JSC$14167_buildRequest=function(C,F,G){F.externalChannelId&&(C.externalChannelId=F.externalChannelId);G.handle&&(C.handleUpdate={handle:G.handle},F.handleEditSource&&(C.handleUpdate.handleEditSource=F.handleEditSource))};var Lz=function(){};
_.O(Lz,TV);Lz.prototype.getApiPaths=function(){return Goy};
Lz.prototype.getExtension=function(C){return _.Z(C,OaP)};
Lz.prototype.JSC$14167_buildRequest=function(C,F,G){F.request&&(C.channelId=F.request.channelId);var V;if(G==null?0:(V=G.uploadDefaults)==null?0:V.emojiReactionSet)C.uploadDefaultsRequest||(C.uploadDefaultsRequest={}),C.uploadDefaultsRequest.emojiReactionSet=G.uploadDefaults.emojiReactionSet};var Bm=function(){};
_.O(Bm,TV);Bm.prototype.getApiPaths=function(){return JE7};
Bm.prototype.getExtension=function(C){return _.Z(C,pay)};
Bm.prototype.JSC$14167_buildRequest=function(C,F,G){F.externalChannelId&&(C.externalChannelId=F.externalChannelId);F.channelHandleEntityKey&&(C.channelHandleEntityKey=F.channelHandleEntityKey);F.handleEditSource&&(C.handleEditSource=F.handleEditSource);G.handle?C.handle=G.handle:G.name&&(C.name=G.name)};var fz=function(){};
_.O(fz,TV);fz.prototype.getApiPaths=function(){return AZu};
fz.prototype.getExtension=function(C){return _.Z(C,ti$)};
fz.prototype.JSC$14167_buildRequest=function(C,F){F.actions?C.actions=F.actions:F.action&&(C.actions=[F.action])};var hx=function(){};
_.O(hx,TV);hx.prototype.getApiPaths=function(){return e32};
hx.prototype.getExtension=function(C){return _.Z(C,_.O4)};
hx.prototype.JSC$14167_buildRequest=function(C,F){F.token&&(C.continuation=F.token)};var cm=function(){};
_.O(cm,TV);cm.prototype.getApiPaths=function(){return zUE};
cm.prototype.getExtension=function(C){return _.Z(C,_.O4)};
cm.prototype.JSC$14167_buildRequest=function(C,F){C.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";F.token&&(C.fetchCommentsParams={continuation:F.token})};var Ax=function(){};
_.O(Ax,TV);Ax.prototype.getApiPaths=function(){return P7m};
Ax.prototype.getExtension=function(C){return _.Z(C,WMu)};
Ax.prototype.JSC$14167_buildRequest=function(C,F,G){G=G===void 0?{}:G;F.createReplyParams&&(C.createReplyParams=F.createReplyParams);F.commentText&&(C.commentText=_.dd(F.commentText));G.comment_text&&(C.commentText=G.comment_text);G.image_blob_id&&(C.imageAttachment={encryptedBlobId:G.image_blob_id});G.botguard_response&&(C.botguardResponse=G.botguard_response)};
_.I6.Object.defineProperties(Ax.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var e2=function(){};
_.O(e2,TV);e2.prototype.getApiPaths=function(){return gVE};
e2.prototype.getExtension=function(C){return _.Z(C,_.EPl)};
e2.prototype.JSC$14167_buildRequest=function(C,F,G){G=G===void 0?{}:G;F.createCommentParams&&(C.createCommentParams=F.createCommentParams);F.commentText&&(C.commentText=_.dd(F.commentText));F.videoPositionMention&&(C.videoPositionMention=F.videoPositionMention);F.sources&&(C.sources=F.sources);G.comment_text&&(C.commentText=G.comment_text);G.attached_video_id?C.videoAttachment={videoId:G.attached_video_id}:G.poll_options?C.pollAttachment={choices:G.poll_options}:G.image_blob_id?C.imageAttachment=
{encryptedBlobId:G.image_blob_id}:G.shared_post_id&&(C.sharedPostAttachment={postId:G.shared_post_id});G.access_restrictions&&typeof G.access_restrictions==="number"&&(F=G.access_restrictions,C.accessRestrictions={restriction:F!==1&&F===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});G.botguard_response&&(C.botguardResponse=G.botguard_response)};
_.I6.Object.defineProperties(e2.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var dL=function(){};
_.O(dL,TV);dL.prototype.getApiPaths=function(){return Cfu};
dL.prototype.getExtension=function(C){return _.Z(C,k6m)};
dL.prototype.JSC$14167_buildRequest=function(C,F,G){F.commentText&&(C.replyText=_.dd(F.commentText));G.comment_text&&(C.replyText=G.comment_text);C.updateReplyParams=F.updateReplyParams};
_.I6.Object.defineProperties(dL.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var x3=function(){};
_.O(x3,TV);x3.prototype.getApiPaths=function(){return j_G};
x3.prototype.getExtension=function(C){return _.Z(C,aL$)};
x3.prototype.JSC$14167_buildRequest=function(C,F,G){F.commentText&&(C.commentText=_.dd(F.commentText));G.comment_text&&(C.commentText=G.comment_text);C.updateCommentParams=F.updateCommentParams};
_.I6.Object.defineProperties(x3.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var sP=function(){};
_.O(sP,TV);sP.prototype.getApiPaths=function(){return F0y};
sP.prototype.getExtension=function(C){return _.Z(C,lE7)};
sP.prototype.JSC$14167_buildRequest=function(C,F){F.settings&&(C.settings=F.settings)};var q6=function(){};
_.O(q6,TV);q6.prototype.getApiPaths=function(){return Vz$};
q6.prototype.getExtension=function(C){return _.Z(C,mqS)};
q6.prototype.JSC$14167_buildRequest=function(C,F){F.channelCreationToken&&(C.channelCreationToken=F.channelCreationToken);F.source&&(C.source=F.source)};var Pm=function(){};
_.O(Pm,TV);Pm.prototype.getApiPaths=function(){return qGG};
Pm.prototype.getExtension=function(C){return _.Z(C,FFo)};
Pm.prototype.JSC$14167_buildRequest=function(C,F,G){G=G===void 0?{}:G;if(G.name&&(G.given_name||G.family_name))C=new _.Ay("channel creation cannot set both GAIA and YouTube names",F),_.gD(C);else{if(F.zeroStepChannelCreationParams){if(!G.comment_text){C=new _.Ay("zero_step_create_comment_params but no zero_step_texts",F);_.gD(C);return}C.zeroStepChannelCreationParams=F.zeroStepChannelCreationParams;C.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(C.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
G.comment_text,G.botguard_response&&(C.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=G.botguard_response))}C.channelCreationToken=F.channelCreationToken;G.given_name&&(C.givenName=G.given_name);G.family_name&&(C.familyName=G.family_name);F.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(C.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(G.name||G.handle||G.avatar_url||G.encryptedBlobId||G.isNameChanged!==void 0||G.isHandleChanged!==void 0||G.isDefaultProfilePhoto!==
void 0||G.obakeImageSource)C.overrideChannelCreationParams={},G.name&&(C.overrideChannelCreationParams.name=G.name),G.handle&&(C.overrideChannelCreationParams.handle=G.handle),G.avatar_url&&(C.overrideChannelCreationParams.avatarUrl=G.avatar_url),G.encryptedBlobId&&(C.overrideChannelCreationParams.blobEncryptionId=G.encryptedBlobId),G.enableIdentityForAllChannelCreationDialog&&(G.encryptedBlobId?C.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
G.isDefaultProfilePhoto!==void 0&&(C.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=G.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),G.isNameChanged!==void 0&&(C.overrideChannelCreationParams.identityForAllChannelCreationNameTag=G.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),G.isHandleChanged!==
void 0&&(C.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=G.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),G.obakeImageSource&&(C.overrideChannelCreationParams.obakeImageSourceType=G.obakeImageSource))}};var gL=function(){};
_.O(gL,TV);gL.prototype.getApiPaths=function(C){return(C=this.getExtension(C))&&C.status==="DISLIKE"?DRu:C&&C.status==="INDIFFERENT"?cwu:Z$O};
gL.prototype.getExtension=function(C){return _.Z(C,_.Nx)};
gL.prototype.JSC$14167_buildRequest=function(C,F){F.target&&(C.target=F.target);if(F=this.getParams(F))C.params=F};
gL.prototype.getParams=function(C){switch(C==null?void 0:C.status){case "DISLIKE":return C.dislikeParams;case "INDIFFERENT":return C.removeLikeParams;default:return C==null?void 0:C.likeParams}};var RT=function(){};
_.O(RT,TV);RT.prototype.getApiPaths=function(){return Yho};
RT.prototype.getExtension=function(C){return _.Z(C,NK8)};
RT.prototype.JSC$14167_buildRequest=function(C,F){F.settingItemId&&(C.settingItemId=F.settingItemId);F.stringValue!=null&&F.stringValue!==void 0?C.newValue={stringValue:F.stringValue}:F.intValue?C.newValue={intValue:F.intValue}:F.boolValue!==null&&F.boolValue!==void 0?C.newValue={boolValue:F.boolValue}:(C=new _.Ay("Unknown value type for SetSettingEndpoint.",F),_.gD(C))};var Y3=function(){};
_.O(Y3,TV);Y3.prototype.getApiPaths=function(){return rwl};
Y3.prototype.getExtension=function(C){return _.Z(C,YY2)||void 0};
Y3.prototype.JSC$14167_buildRequest=function(C,F,G){G=G===void 0?{}:G;F.channelIds&&(C.channelIds=F.channelIds);F.siloName&&(C.siloName=F.siloName);F.params&&(C.params=F.params);G.botguardResponse&&(C.botguardResponse=G.botguardResponse);G.feature&&(C.clientFeature=G.feature)};
_.I6.Object.defineProperties(Y3.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ta=function(){};
_.O(Ta,TV);Ta.prototype.getApiPaths=function(){return DOo};
Ta.prototype.getExtension=function(C){return _.Z(C,OKP)||void 0};
Ta.prototype.JSC$14167_buildRequest=function(C,F){F.channelIds&&(C.channelIds=F.channelIds);F.siloName&&(C.siloName=F.siloName);F.params&&(C.params=F.params)};
_.I6.Object.defineProperties(Ta.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var oT=function(C){this.shareClientParamsProvider=C};
_.O(oT,TV);oT.prototype.getApiPaths=function(){return YlB};
oT.prototype.getExtension=function(C){return _.Z(C,CcE)||_.Z(C,_.jkE)||_.Z(C,mZ7)};
oT.prototype.JSC$14167_buildRequest=function(C,F){F.serializedShareEntity&&(C.serializedSharedEntity=F.serializedShareEntity);if(F.clientParamIdentifier){var G;if((G=this.shareClientParamsProvider)==null?0:G.clientParams.has(F.clientParamIdentifier)){G=this.shareClientParamsProvider;F=F.clientParamIdentifier;var V=G.clientParams.get(F);V&&G.clientParams.delete(F);C.clientParams=V}}};
oT[Ew]=[XVr];var rL=function(){};
_.O(rL,TV);rL.prototype.getApiPaths=function(){return Luu};
rL.prototype.getExtension=function(C){return _.Z(C,MHu)};
rL.prototype.JSC$14167_buildRequest=function(C,F){F.params&&(C.params=F.params)};var Kz=function(){};
_.O(Kz,TV);Kz.prototype.getApiPaths=function(){return pIS};
Kz.prototype.getExtension=function(C){return _.Z(C,Oq8)};
Kz.prototype.JSC$14167_buildRequest=function(C,F){F.dismissal&&(C.items=[F.dismissal])};
_.I6.Object.defineProperties(Kz.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Dl=function(){};
_.O(Dl,TV);Dl.prototype.getApiPaths=function(){return lZO};
Dl.prototype.getExtension=function(C){return _.Z(C,_.Ud)||void 0};
Dl.prototype.JSC$14167_buildRequest=function(C,F,G){C.feedbackTokens=[];F.feedbackToken&&C.feedbackTokens.push(F.feedbackToken);if(F=F.cpn||G.cpn)C.feedbackContext={cpn:F};C.isFeedbackTokenUnencrypted=!!G.is_feedback_token_unencrypted;C.shouldMerge=!1;G.extra_feedback_tokens&&(C.shouldMerge=!0,C.feedbackTokens=C.feedbackTokens.concat(G.extra_feedback_tokens))};
_.I6.Object.defineProperties(Dl.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var pz=function(){};
_.O(pz,TV);pz.prototype.getApiPaths=function(){return lZO};
pz.prototype.getExtension=function(C){return _.Z(C,_.FI)};
pz.prototype.JSC$14167_buildRequest=function(C,F,G){G.feedback_tokens&&(C.feedbackTokens=G.feedback_tokens,C.shouldMerge=!0)};
_.I6.Object.defineProperties(pz.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var mI=function(){};
_.O(mI,TV);mI.prototype.getApiPaths=function(){return lZO};
mI.prototype.getExtension=function(C){return _.Z(C,$2s)};
mI.prototype.JSC$14167_buildRequest=function(C,F){F.undoToken&&(C.feedbackTokens=[F.undoToken]);F.isUndoTokenUnencrypted&&(C.isFeedbackTokenUnencrypted=F.isUndoTokenUnencrypted)};
_.I6.Object.defineProperties(mI.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Cj=function(){};
_.O(Cj,TV);Cj.prototype.getApiPaths=function(){return $n7};
Cj.prototype.getExtension=function(C){return _.Z(C,yYu)};
Cj.prototype.JSC$14167_buildRequest=function(C,F){F.nextEndpoint&&_.Z(F.nextEndpoint,_.jW)?C.nextEndpoint={urlEndpoint:_.Z(F.nextEndpoint,_.jW)}:F.nextEndpoint&&_.Z(F.nextEndpoint,_.eT)&&(C.nextEndpoint={watchEndpoint:_.Z(F.nextEndpoint,_.eT)});F.setRacy&&(C.setRacy=F.setRacy);F.setControvercy&&(C.setControvercy=F.setControvercy)};var bA=function(C){this.JSC$18130_storeWithEntities=C};
_.O(bA,TV);bA.prototype.getApiPaths=function(){return CLo};
bA.prototype.getExtension=function(C){return _.Z(C,oHu)};
bA.prototype.JSC$14167_buildRequest=function(C,F){F.flowId&&(C.flowId=F.flowId);F.targetId&&(C.targetId=F.targetId);F.continuation&&(C.continuation=F.continuation);var G=F.flowStateEntityKey;if(F.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&G&&this.JSC$18130_storeWithEntities){var V;if(F=(V=this.JSC$18130_storeWithEntities.getState())==null?void 0:V.entities)if(V=_.D8(G).entityType,V=_.jN(F,V,G))C.flowState=V,C.flowStateEntityKey=G}};
_.I6.Object.defineProperties(bA.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
bA[Ew]=[gJ];var pjV=function(){};
_.O(pjV,TV);_.n=pjV.prototype;_.n.getApiPaths=function(){return H$E};
_.n.JSC$14174_getStoreKey=function(){return _.Ar("guide")};
_.n.getRequestConfig=function(){var C=this.JSC$14174_getStoreKey(),F;C&&(F={storeStrategy:{storeKey:C}});return F};
_.n.isNavigationCommand=function(){return!0};
_.n.getExtension=function(C){return _.Z(C,_.FI)};
_.n.JSC$14167_buildRequest=function(C){C.fetchLiveState=!0};var nj=function(){};
_.O(nj,TV);nj.prototype.getApiPaths=function(){return h3r};
nj.prototype.getExtension=function(C){return _.Z(C,zJ7)};
nj.prototype.JSC$14167_buildRequest=function(){};var uA=function(){};
_.O(uA,TV);uA.prototype.getApiPaths=function(){return cZ$};
uA.prototype.getExtension=function(C){return _.Z(C,QrE)};
uA.prototype.JSC$14167_buildRequest=function(){};var zr=function(){};
_.O(zr,TV);zr.prototype.getApiPaths=function(){return SGu};
zr.prototype.getExtension=function(C){return _.Z(C,_.O4)};
zr.prototype.JSC$14167_buildRequest=function(C,F){F.token&&(C.continuation=F.token);var G,V;C==null||(G=C.context)==null||(V=G.user)==null||delete V.onBehalfOfUser};
zr.prototype.getRequestConfig=function(C){var F={},G;if(((G=this.getExtension(C))==null?void 0:G.sessionIndex)!==void 0){var V;F={authStrategy:{sessionIndex:(V=this.getExtension(C))==null?void 0:V.sessionIndex}}}return F};var Qv=function(){};
_.O(Qv,TV);Qv.prototype.JSC$14167_getRequest=function(C){var F=this.getExtension(C),G=C="";if(F==null?0:F.popup)C="true";if(F==null?0:F.disableSignout)G="true";F={};return{input:"/getAccountSwitcherEndpoint",requestShell:c9("/getAccountSwitcherEndpoint","GET",(F["X-YouTube-Delegation-Context"]=_.TF("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),F["X-YouTube-Account-Switcher-Popup"]=C,F["X-YouTube-Account-Switcher-Disable-Signout"]=G,F)),innerTubeRequest:{}}};
Qv.prototype.getApiPaths=function(){return[]};
Qv.prototype.getExtension=function(C){return _.Z(C,_.lyi)};
Qv.prototype.JSC$14167_buildRequest=function(){};var IU=function(){};
_.O(IU,TV);IU.prototype.JSC$14167_getRequest=function(C){var F="/cross_account_channel_transfer";(C=this.getExtension(C))&&(F=g6q(F,{target_session:C.targetSessionIndex,source_rapt:C.sourceRapt,rapt:C.targetRapt}));return{input:F,requestShell:c9(F,"GET"),innerTubeRequest:{}}};
IU.prototype.getApiPaths=function(){return[]};
IU.prototype.getExtension=function(C){return _.Z(C,thy)};
IU.prototype.JSC$14167_buildRequest=function(){};var Ee=function(){};
_.O(Ee,TV);Ee.prototype.getApiPaths=function(){return jhy};
Ee.prototype.isNavigationCommand=function(){return!0};
Ee.prototype.getExtension=function(C){return _.Z(C,_.FI)};
Ee.prototype.JSC$14167_buildRequest=function(C){var F=_.bQ().get("gsml","");F&&(C.safetyModeLockerObfuscatedGaiaId=F);C.userInterfaceTheme=_.Mz(!0);_.Sv()?C.deviceTheme="DEVICE_THEME_SELECTED":_.nNi()?C.deviceTheme="DEVICE_THEME_SUPPORTED":C.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var WE=function(){};
_.O(WE,TV);WE.prototype.getApiPaths=function(){return SGu};
WE.prototype.getExtension=function(C){return _.Z(C,ahS)};
WE.prototype.JSC$14167_buildRequest=function(C,F){if(F&&F.requestType&&(C.requestType=F.requestType,F.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||F.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var G=F.nextUrl;G&&(_.Y5o(G)||uH(G))&&(C.nextNavendpoint={urlEndpoint:{url:G}})}F&&F.channelSwitcherQuery&&(C.channelSwitcherQuery=F.channelSwitcherQuery);F&&F.triggerChannelCreation&&(C.triggerChannelCreation=F.triggerChannelCreation);var V;if(F==null?0:(V=F.contentOwnerConfig)==
null?0:V.externalContentOwnerId)C.contentOwnerConfig=F.contentOwnerConfig;C.callCircumstance=F&&F.requestType&&F.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var J,b;F=C==null?void 0:(J=C.context)==null?void 0:(b=J.user)==null?void 0:b.onBehalfOfUser;if(F!==void 0){C.obfuscatedSelectedGaiaId=F;var z,Q;C==null||(z=C.context)==null||(Q=z.user)==null||delete Q.onBehalfOfUser}var E,t;if(J=C==null?void 0:(E=C.context)==null?void 0:(t=E.user)==null?
void 0:t.serializedDelegationContext)C.selectedSerializedDelegationContext=J};var te=function(){};
_.O(te,TV);te.prototype.getApiPaths=function(){return BP$};
te.prototype.getExtension=function(C){return _.Z(C,FPu)};
te.prototype.JSC$14167_buildRequest=function(C,F){F.params&&(C.params=F.params)};var aU=function(){};
_.O(aU,TV);aU.prototype.getApiPaths=function(){return sOy};
aU.prototype.getExtension=function(C){return _.Z(C,_.ISS)};
aU.prototype.JSC$14167_buildRequest=function(C,F){if(F=F.createBroadcastRequest)C.useMasks=F.useMasks,C.broadcastType=F.broadcastType,C.broadcastSource=F.broadcastSource,C.broadcastMetadata=F.broadcastMetadata,C.broadcastMetadataMask=F.broadcastMetadataMask,C.videoMetadata=F.videoMetadata,C.videoMetadataMask=F.videoMetadataMask,C.liveChatSettingsUpdate=F.liveChatSettingsUpdate,C.liveChatSettingsUpdateMask=F.liveChatSettingsUpdateMask,C.cloneVideoId=F.cloneVideoId,C.cloneWithOverrides=F.cloneWithOverrides,
C.targetEntity=F.targetEntity,C.scheduledRedirectMetadata=F.scheduledRedirectMetadata};var ko=function(){};
_.O(ko,TV);ko.prototype.getApiPaths=function(){return R37};
ko.prototype.getExtension=function(C){return _.Z(C,iQS)};
ko.prototype.JSC$14167_buildRequest=function(C,F,G){G=G===void 0?{}:G;F.params&&(C.params=F.params);G.questionText&&(C.questionText=G.questionText);G.optionText&&G.optionText.length>0&&(C.optionText=G.optionText)};var Ue=function(){};
_.O(Ue,TV);Ue.prototype.getApiPaths=function(){return oVS};
Ue.prototype.getExtension=function(C){return _.Z(C,GzE)};
Ue.prototype.JSC$14167_buildRequest=function(C,F){F.params&&(C.params=F.params)};var HE=function(){};
_.O(HE,TV);HE.prototype.getApiPaths=function(){return Jwo};
HE.prototype.getExtension=function(C){return _.Z(C,mSo)};
HE.prototype.JSC$14167_buildRequest=function(C,F){F.params&&(C.params=F.params)};var lA=function(){};
_.O(lA,TV);lA.prototype.getApiPaths=function(){return b$l};
lA.prototype.getExtension=function(C){return _.Z(C,CWO)};
lA.prototype.JSC$14167_buildRequest=function(C,F,G){F.params&&(C.params=F.params);F.continuation&&(C.continuation=F.continuation);G.currentPlayerState&&G.currentPlayerState.playerOffsetMs&&(C.currentPlayerState={playerOffsetMs:G.currentPlayerState.playerOffsetMs.toString()})};var yv=function(){};
_.O(yv,TV);yv.prototype.getApiPaths=function(){return nNS};
yv.prototype.getExtension=function(C){return _.Z(C,pfl)};
yv.prototype.JSC$14167_buildRequest=function(C,F,G){F.params&&(C.params=F.params);G.continuation&&(C.continuation=G.continuation);"hidden"in G&&(C.webClientInfo={isDocumentHidden:G.hidden});G.isInvalidationTimeoutRequest&&(C.isInvalidationTimeoutRequest=G.isInvalidationTimeoutRequest);G.invalidationPayload&&(F=DSo(_.p9(zN(G.invalidationPayload))),C.invalidationPayloadLastPublishAtUsec=Uj(F,2));G.reloadActionPanel&&(C.reloadActionPanel=G.reloadActionPanel);G.fullReload&&(C.fullReload=G.fullReload);
G.currentPlayerState&&(C.currentPlayerState=G.currentPlayerState)};var ZG=function(){};
_.O(ZG,TV);ZG.prototype.getApiPaths=function(){return NMG};
ZG.prototype.getExtension=function(C){return _.Z(C,VlG)};
ZG.prototype.JSC$14167_buildRequest=function(C,F){C.params=F.params};var NI=function(){};
_.O(NI,TV);NI.prototype.getApiPaths=function(){return $Ou};
NI.prototype.getExtension=function(C){return _.Z(C,kVE)};
NI.prototype.JSC$14167_buildRequest=function(C,F){F.params&&(C.params=F.params)};var Oe=function(){};
_.O(Oe,TV);Oe.prototype.getApiPaths=function(){return uY8};
Oe.prototype.getExtension=function(C){return _.Z(C,UQo)};
Oe.prototype.JSC$14167_buildRequest=function(C,F){F.params&&(C.params=F.params)};var Xg=function(){};
_.O(Xg,TV);Xg.prototype.getApiPaths=function(){return O$o};
Xg.prototype.getExtension=function(C){return _.Z(C,JKr)};
Xg.prototype.JSC$14167_buildRequest=function(C,F){F.params&&(C.params=F.params)};var wx=function(){};
_.O(wx,TV);wx.prototype.getApiPaths=function(){return w1$};
wx.prototype.getExtension=function(C){return _.Z(C,$JO)};
wx.prototype.JSC$14167_buildRequest=function(C,F){F.params&&(C.params=F.params)};var MI=function(){};
_.O(MI,TV);MI.prototype.getApiPaths=function(){return AwG};
MI.prototype.getExtension=function(C){return _.Z(C,iJl)};
MI.prototype.JSC$14167_buildRequest=function(C,F){F.params&&(C.params=F.params)};var SO=function(){};
_.O(SO,TV);SO.prototype.getApiPaths=function(){return gN2};
SO.prototype.getExtension=function(C){return _.Z(C,_.bQo)};
SO.prototype.JSC$14167_buildRequest=function(C,F,G){G=G===void 0?{}:G;F.params&&(C.params=F.params);G.client_message_id&&(C.clientMessageId=G.client_message_id);G.recaptcha_token&&(C.recaptchaToken=G.recaptcha_token);G.rich_message&&G.rich_message.text_segments?(F=G.rich_message.text_segments.map(function(V){var J={};V.text&&(J.text=V.text);V.emoji_id&&(J.emojiId=V.emoji_id);return J}),C.richMessage={textSegments:F}):G.message&&(C.message=G.message);
G.currentPlayerState&&(C.currentPlayerState=G.currentPlayerState)};var Lj=function(){};
_.O(Lj,TV);Lj.prototype.getApiPaths=function(){return RUO};
Lj.prototype.getExtension=function(C){return _.Z(C,nXl)};
Lj.prototype.JSC$14167_buildRequest=function(C,F){F.params&&(C.params=F.params)};var BE=function(){};
_.O(BE,TV);BE.prototype.getApiPaths=function(){return K_S};
BE.prototype.getExtension=function(C){return _.Z(C,z$$)};
BE.prototype.JSC$14167_buildRequest=function(C,F,G){F.isUserInitiated&&(C.isUserInitiated=F.isUserInitiated);F.initiationSource&&(C.initiationSource=F.initiationSource);G.locationInfo&&(C.context.client.locationInfo=G.locationInfo)};var vE=function(){};
_.O(vE,TV);vE.prototype.getApiPaths=function(){return X1o};
vE.prototype.getExtension=function(C){return _.Z(C,Esu)};
vE.prototype.JSC$14167_buildRequest=function(C,F,G){F.metadataUpdateRequest&&(F=F.metadataUpdateRequest,C.encryptedVideoId=F.encryptedVideoId,F.liveChat&&(F=F.liveChat,C.liveChat||(C.liveChat={}),F.performAsExternalChannelId&&(C.liveChat.performAsExternalChannelId=F.performAsExternalChannelId),F.source&&(C.liveChat.source=F.source)));var V;if(G==null?0:(V=G.liveChat)==null?0:V.liveChatSettings)C.liveChat||(C.liveChat={}),G=G.liveChat.liveChatSettings,C.liveChat.newLiveChatSettings=G,C.liveChat.newLiveChatSettingsMask||
(C.liveChat.newLiveChatSettingsMask={}),G.emojiReactionSet&&(C.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var fj=function(){};
_.O(fj,TV);fj.prototype.getApiPaths=function(){return ieo};
fj.prototype.getExtension=function(C){return _.Z(C,_.XL$)};
fj.prototype.JSC$14167_buildRequest=function(C,F,G){G.continuation?C.continuation=G.continuation:F.videoId&&(C.videoId=F.videoId);G.clientParams&&(C.clientParams=G.clientParams)};var he=function(){};
_.O(he,TV);he.prototype.getApiPaths=function(){return zUE};
he.prototype.getExtension=function(C){return _.Z(C,_.YD)};
he.prototype.JSC$14167_buildRequest=function(C,F){C.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";C.fetchCommentsParams={};F.videoId&&(C.fetchCommentsParams.encryptedVideoId=F.videoId);F.postId&&(C.fetchCommentsParams.postId=F.postId);F.externalChannelId&&(C.fetchCommentsParams.externalChannelId=F.externalChannelId);F.linkedCommentId&&(C.fetchCommentsParams.linkedCommentId=F.linkedCommentId);(0,_.xf.isEmpty)(C.fetchCommentsParams)&&delete C.fetchCommentsParams};var cE=function(){};
_.O(cE,TV);cE.prototype.getApiPaths=function(){return f3};
cE.prototype.JSC$14167_buildRequest=function(C){C.browseId="FEnotifications_inbox"};
cE.prototype.getExtension=function(C){return _.Z(C,_.FI)};var Ae=function(){};
_.O(Ae,TV);Ae.prototype.getApiPaths=function(){return zUE};
Ae.prototype.JSC$14167_buildRequest=function(C,F){F.signal==="GET_NOTIFICATIONS_MENU"&&(C.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");F.ctoken&&(C.ctoken=F.ctoken)};
var ml3=function(){};
_.O(ml3,Ae);ml3.prototype.getExtension=function(C){return _.Z(C,_.FI)};
var CzV=function(){};
_.O(CzV,Ae);CzV.prototype.getExtension=function(C){return _.Z(C,U7$)};var eO=function(){};
_.O(eO,TV);eO.prototype.getApiPaths=function(){return aZ8};
eO.prototype.getExtension=function(C){return _.Z(C,_.FI)};
eO.prototype.JSC$14167_buildRequest=function(){};var dx=function(){};
_.O(dx,TV);dx.prototype.getApiPaths=function(){return MzO};
dx.prototype.getExtension=function(C){return _.Z(C,lLE)||void 0};
dx.prototype.JSC$14167_buildRequest=function(C,F){F.params&&(C.params=F.params);F.secondaryParams&&(C.secondaryParams=F.secondaryParams)};var xo=function(){};
_.O(xo,TV);xo.prototype.getApiPaths=function(){return ShG};
xo.prototype.getExtension=function(C){return _.Z(C,GVo)};
xo.prototype.JSC$14167_buildRequest=function(C,F){F.undo&&(C.undo=F.undo);F.serializedOptOut&&(C.serializedOptOut=F.serializedOptOut);F.serializedRecordInteractionsRequest&&(C.serializedRecordInteractionsRequest=F.serializedRecordInteractionsRequest)};var se=function(){};
_.O(se,TV);se.prototype.getApiPaths=function(){return vNP};
se.prototype.getExtension=function(C){return _.Z(C,Vpl)};
se.prototype.JSC$14167_buildRequest=function(C,F){F.serializedInteractionsRequest&&(C.serializedRecordNotificationInteractionsRequest=F.serializedInteractionsRequest)};var qI=function(){};
_.O(qI,TV);qI.prototype.getApiPaths=function(){return THA};
qI.prototype.getExtension=function(C){return _.Z(C,SFA)};
qI.prototype.JSC$14167_buildRequest=function(C,F,G){F=F===void 0?{}:F;G=G===void 0?{}:G;F.videoId?C.videoId=F.videoId:F.playlistId&&(C.playlistId=F.playlistId);var V,J=(V=F.offlineWebClientEligibility)!=null?V:G.offlineWebClientEligibility;J&&(C.offlineWebClientEligibility=J);var b;if(V=(b=F.preferredFormatType)!=null?b:G.preferredFormatType)C.preferredFormatType=V;var z;if(b=(z=F.lastOfflineQualitySettingsSavedMs)!=null?z:G.lastOfflineQualitySettingsSavedMs)C.lastOfflineQualitySettingsSavedMs=b;
F.params&&(C.params=F.params)};var PE=function(){};
_.O(PE,TV);PE.prototype.getApiPaths=function(){return Qs};
PE.prototype.getExtension=function(C){return _.Z(C,_.O4)};
PE.prototype.JSC$14167_buildRequest=function(C,F,G){G=G===void 0?{}:G;F.token&&(C.continuation=F.token);G.formData&&(C.formData=G.formData)};var gx=function(){};
_.O(gx,TV);gx.prototype.getApiPaths=function(){return Qs};
gx.prototype.getExtension=function(C){return _.Z(C,bS$)};
gx.prototype.JSC$14167_buildRequest=function(C,F,G){G=G===void 0?{}:G;C.continuation=G.continuation};var RU=function(){};
_.O(RU,TV);RU.prototype.getApiPaths=function(){return Qs};
RU.prototype.getExtension=function(C){return _.Z(C,_.kC)};
RU.prototype.JSC$14167_buildRequest=function(C,F){var G,V=F.panelIdentifier||((G=F.identifier)==null?void 0:G.tag);V&&(C.panelId=V);var J;if((J=F.globalConfiguration)==null?0:J.params){var b;C.params=(b=F.globalConfiguration)==null?void 0:b.params}if(_.y("enable_ai_companion")){var z;F=F.engagementPanelExtras;if(F==null?0:(z=F.aiCompanionPanelExtras)==null?0:z.includeClientConversationId){var Q,E;z=(E=(Q=_.I8().resolve(_.Qt(hdr)))==null?void 0:Q("conversations"))==null?void 0:E.get("conversation_id")}else z=
void 0;if(Q=z)C.formData=Object.assign({},C.formData,{inputComposerFormData:{conversationId:Q}})}};
_.I6.Object.defineProperties(RU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Yo=function(){};
_.O(Yo,TV);Yo.prototype.getApiPaths=function(){return Qs};
Yo.prototype.getExtension=function(C){return _.Z(C,KkO)};
Yo.prototype.JSC$14167_buildRequest=function(C,F){F.panelLoadingStrategy&&pio(C,F.panelLoadingStrategy)};var Tr=function(){};
_.O(Tr,TV);Tr.prototype.getApiPaths=function(){return Qs};
Tr.prototype.getExtension=function(C){return _.Z(C,WPl)};
Tr.prototype.JSC$14167_buildRequest=function(C,F){F.loadingStrategy&&pio(C,F.loadingStrategy)};var oU=function(){};
_.O(oU,TV);oU.prototype.getApiPaths=function(){return Qs};
oU.prototype.getExtension=function(C){return _.Z(C,_.nhq)};
oU.prototype.JSC$14167_buildRequest=function(C,F){F.panelLoadingStrategy&&pio(C,F.panelLoadingStrategy)};var rx=function(){};
_.O(rx,TV);rx.prototype.getApiPaths=function(){return Qs};
rx.prototype.getExtension=function(C){return _.Z(C,tp7)};
rx.prototype.JSC$14167_buildRequest=function(C,F){var G,V=(G=F.contentSourcePanelIdentifier)==null?void 0:G.tag;V&&(C.panelId=V);var J;if((J=F.globalConfiguration)==null?0:J.params){var b;C.params=(b=F.globalConfiguration)==null?void 0:b.params}};var Kj=function(){};
_.O(Kj,TV);Kj.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
Kj.prototype.getExtension=function(C){return _.Z(C,a7P)};
Kj.prototype.JSC$14167_buildRequest=function(C,F){F.params&&(C.params=F.params)};var DG=function(){};
_.O(DG,TV);DG.prototype.getApiPaths=function(){return V7$};
DG.prototype.getExtension=function(C){return _.Z(C,HJu)};
DG.prototype.JSC$14167_buildRequest=function(C,F){F.externalChannelId&&(C.externalChannelId=F.externalChannelId);F.superChatAction&&(C.superChatAction=F.superChatAction);F.superStickersAction&&(C.superStickersAction=F.superStickersAction)};var pj=function(){};
_.O(pj,TV);pj.prototype.getApiPaths=function(){return F_G};
pj.prototype.getExtension=function(C){return _.Z(C,ull)||_.Z(C,BuT)};
pj.prototype.JSC$14167_buildRequest=function(C,F){F.videoIds?C.videoIds=F.videoIds:F.videoId&&(C.videoIds=[F.videoId]);F.playlistId&&(C.playlistId=F.playlistId);F.params&&(C.params=F.params);C.excludeWatchLater=!1};var mG=function(){};
_.O(mG,TV);mG.prototype.getApiPaths=function(){return YGS};
mG.prototype.getExtension=function(C){return _.Z(C,_.CQ)};
mG.prototype.JSC$14167_buildRequest=function(C,F,G){G.create_playlist_title?C.title=G.create_playlist_title:F.title&&(C.title=F.title);if(G.create_playlist_privacy_status&&typeof G.create_playlist_privacy_status==="number"){a:{var V=G.create_playlist_privacy_status;if(V!==0){if(V===1){V="PUBLIC";break a}if(V===2){V="UNLISTED";break a}}V="PRIVATE"}C.privacyStatus=V}else F.privacyStatus&&(C.privacyStatus=F.privacyStatus);G.create_playlist_description&&(C.description=G.create_playlist_description);F.videoIds&&
(C.videoIds=F.videoIds);F.params&&(C.params=F.params);F.sourcePlaylistId&&(C.sourcePlaylistId=F.sourcePlaylistId)};var CI=function(){};
_.O(CI,TV);CI.prototype.getApiPaths=function(){return rZE};
CI.prototype.getExtension=function(C){return _.Z(C,Um8)};
CI.prototype.JSC$14167_buildRequest=function(C,F){C.playlistId=F.playlistId};var jk=function(){};
_.O(jk,TV);jk.prototype.getApiPaths=function(){return Qhm};
jk.prototype.getExtension=function(C){return _.Z(C,DZl)};
jk.prototype.JSC$14167_buildRequest=function(C,F){F.playlistId&&(C.playlistId=F.playlistId);F.params&&(C.params=F.params)};var FR=function(){};
_.O(FR,TV);FR.prototype.getApiPaths=function(){return BMu};
FR.prototype.getExtension=function(C){return _.Z(C,_.TL)||void 0};
FR.prototype.JSC$14167_buildRequest=function(C,F){F.actions&&(C.actions=F.actions);F.params&&(C.params=F.params);F.playlistId&&(C.playlistId=F.playlistId)};var Gg=function(){};
_.O(Gg,TV);_.n=Gg.prototype;_.n.getApiPaths=function(){return fZ7};
_.n.getExtension=function(C){return _.Z(C,_.nd)};
_.n.JSC$14167_buildRequest=function(C,F){F.videoId&&(C.playerRequest={videoId:F.videoId},F.playerParams&&(C.playerRequest.params=F.playerParams),F.racyCheckOk&&(C.playerRequest.racyCheckOk=!!F.racyCheckOk),F.contentCheckOk&&(C.playerRequest.contentCheckOk=!!F.contentCheckOk));F.params&&(C.params=F.params);F.inputType&&(C.inputType=F.inputType);C.disablePlayerResponse=!0};
_.n.getRequestConfig=function(C){var F;(C=this.JSC$14174_getStoreKey(C))&&(F={storeStrategy:{storeKey:C}});_.y("web_log_reels_ticks")&&(F=F||{},F.requestTick="r_wrs",F.responseTick="r_wrr");return F};
_.n.JSC$14174_getStoreKey=function(C){C=this.getExtension(C);if(C!=null&&C.videoId){var F={videoId:C.videoId};C.params&&(F.params=C.params);return _.Ar("reel_item_watch",F)}};var VK=function(){};
_.O(VK,TV);_.n=VK.prototype;_.n.getApiPaths=function(){return hUo};
_.n.getExtension=function(C){return _.Z(C,_.nd)};
_.n.JSC$14167_buildRequest=function(C,F,G){G=G===void 0?{}:G;C.sequenceParams=F.sequenceParams;var V;((V=G)==null?0:V.contentPlaybackContext)&&_.y("web_shorts_prefetch_service_enabled")&&(C.playbackContext={contentPlaybackContext:G.contentPlaybackContext})};
_.n.JSC$14174_getStoreKey=function(C){if(_.y("web_enable_delay_shorts_sequence_call")||_.y("shorts_controller_retrieve_seedless_sequence_v2"))if(C=this.getExtension(C),C==null?0:C.sequenceParams)return _.Ar("reel_watch_sequence",{sequenceParams:C.sequenceParams})};
_.n.getRequestConfig=function(C){C=this.JSC$14174_getStoreKey(C);var F;C&&(F={storeStrategy:{storeKey:C}});F=F||{};F.requestTick="r_wsrs";F.responseTick="r_wsrr";F.processorTick="r_wsrp";return F};
var i$=function(){};
_.O(i$,TV);i$.prototype.getApiPaths=function(){return hUo};
i$.prototype.getExtension=function(C){return _.Z(C,_.O4)};
i$.prototype.JSC$14167_buildRequest=function(C,F,G){G=G===void 0?{}:G;F.token&&(C.continuation=F.token);var V;((V=G)==null?0:V.contentPlaybackContext)&&_.y("web_shorts_prefetch_service_enabled")&&(C.playbackContext={contentPlaybackContext:G.contentPlaybackContext})};
i$.prototype.getRequestConfig=function(C){C=this.JSC$14174_getStoreKey(C);var F;C&&(F={storeStrategy:{storeKey:C}});F=F||{};F.requestTick="r_wsrs";F.responseTick="r_wsrr";F.processorTick="r_wsrp";return F};var J_=function(){};
_.O(J_,TV);J_.prototype.getApiPaths=function(){return mR2};
J_.prototype.getExtension=function(C){return _.Z(C,_.Ra$)};
J_.prototype.JSC$14167_buildRequest=function(C,F,G){G=G===void 0?{}:G;F.flagAction&&(C.action=F.flagAction);F.flagRequestType&&(C.flagRequestType=F.flagRequestType);F.additionalDetailCheckboxChecked&&(C.additionalDetailCheckboxChecked=F.additionalDetailCheckboxChecked);F.legalCheckboxChecked&&(C.legalCheckboxChecked=F.legalCheckboxChecked);F={};G.flag_issue_type!==void 0&&(F.issue=G.flag_issue_type);G.flag_affiliation!==void 0&&(F.affiliation=G.flag_affiliation);G.flag_full_name&&(F.fullName=G.flag_full_name);
Object.keys(F).length&&(C.legalReportDetails=F);if(G.flag_description||G.text)C.userComments=G.flag_description||G.text;F={};G.minutes!==void 0&&G.seconds!==void 0&&(F.minutes=G.minutes,F.seconds=G.seconds);G.vss_id&&(F.vssId=G.vss_id);Object.keys(F).length&&(C.videoReportDetails=F);F={};G.video_ids&&(F.videoIds=G.video_ids);G.impersonated_channel_url&&(F.impersonatedChannelUrl=G.impersonated_channel_url);Object.keys(F).length&&(C.channelAbuseReportDetails=F)};
_.I6.Object.defineProperties(J_.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var $M=function(){};
_.O($M,TV);$M.prototype.getApiPaths=function(){return i$$};
$M.prototype.getExtension=function(C){return _.Z(C,USE)};
$M.prototype.JSC$14167_buildRequest=function(C,F){F.blockedForKidsContent&&(C.blockedForKidsContent=F.blockedForKidsContent)};var b$=function(){};
_.O(b$,TV);b$.prototype.getApiPaths=function(){return eUG};
b$.prototype.getExtension=function(C){return _.Z(C,LLi)};
b$.prototype.JSC$14167_buildRequest=function(C,F,G){C.params=F.params;G.impersonated_channel_url&&(C.impersonatedChannelUrl=G.impersonated_channel_url)};var nI=function(){};
_.O(nI,TV);nI.prototype.getApiPaths=function(){return yw$};
nI.prototype.getExtension=function(C){return _.Z(C,_.HH7)};
nI.prototype.JSC$14167_buildRequest=function(C,F){F.items&&(C.items=F.items);F.kidGaiaId&&(C.kidGaiaId=F.kidGaiaId)};var u$=function(){};
_.O(u$,TV);u$.prototype.getApiPaths=function(){return G1$};
u$.prototype.getExtension=function(C){return _.Z(C,_.$mu)};
u$.prototype.JSC$14167_buildRequest=function(C,F){F.params&&(C.params=F.params);F.targetId&&(C.targetId=F.targetId)};var zg=function(){};
_.O(zg,TV);zg.prototype.getApiPaths=function(){return qh$};
zg.prototype.getExtension=function(C){return _.Z(C,HqE)};
zg.prototype.JSC$14167_buildRequest=function(C,F){F.externalVideoId&&(C.externalVideoId=F.externalVideoId);F.query&&(C.query=F.query);F.sourceTimelines&&(C.sourceTimelines=F.sourceTimelines)};var QK=function(){};
_.O(QK,TV);QK.prototype.getApiPaths=function(){return PL2};
QK.prototype.getExtension=function(C){return _.Z(C,_.O4)||void 0};
QK.prototype.JSC$14167_buildRequest=function(C,F){F.token&&(C.continuation=F.token)};
_.jMM=function(){};
_.O(_.jMM,TV);_.n=_.jMM.prototype;_.n.getApiPaths=function(){return PL2};
_.n.getExtension=function(C){return _.Z(C,_.JR)||void 0};
_.n.isNavigationCommand=function(){return!0};
_.n.JSC$14174_getStoreKey=function(C,F){F=F===void 0?{}:F;if(!F.disableCache&&(C=this.getExtension(C))&&C.query)return F={query:C.query},C.params&&(F.params=C.params),_.Ar("search",F)};
_.n.JSC$14167_buildRequest=function(C,F,G){F.query&&(C.query=F.query);F.params&&(C.params=F.params);if(!_.y("web_forward_suggest_stats_killswitch")){var V=_.Z(F,gs$);V&&(C.suggestStats=V)}var J;!_.y("kevlar_searchbox_stats_killswitch")&&((J=G.tempData)==null?0:J.gs_l)&&!_.Z(F,gs$)&&(C.webSearchboxStatsUrl="/search?oq="+(G.tempData.oq||"")+"&gs_l="+G.tempData.gs_l);var b;if((b=G.tempData)==null?0:b.entityMid)F=C.suggestionSearchParams||{},F.entityMid=G.tempData.entityMid,C.suggestionSearchParams=F;
if(_.y("enable_desktop_vdcbg_components")||_.y("enable_inline_muted_playback_on_web_search"))F=_.bQ().getFlag(186),C.inlineSettingStatus=F?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON";var z;((z=G.tempData)==null?0:z.isFromShorts)&&_.y("web_pass_shorts_context_to_search")&&(C.shortsContext={isShortsContext:!0,shouldSelectShortsChip:!1})};
_.n.getRequestConfig=function(C,F){F=F===void 0?{}:F;C=this.JSC$14174_getStoreKey(C,F);var G;C&&(G={storeStrategy:{storeKey:C}});_.y("web_log_search_ticks_ks")||(G=G||{},G.requestTick="sr_s",G.responseTick="sr_r");return G};var IZ=function(){};
_.O(IZ,TV);IZ.prototype.getApiPaths=function(){return W_l};
IZ.prototype.getExtension=function(C){return _.Z(C,cJu)};
IZ.prototype.JSC$14167_buildRequest=function(C,F){F.serializedGetSharingProviderDataParams&&(C.serializedGetSharingProviderDataParams=F.serializedGetSharingProviderDataParams)};var ES=function(){};
_.O(ES,TV);ES.prototype.getApiPaths=function(){return tzP};
ES.prototype.getExtension=function(C){return _.Z(C,x7P)};
ES.prototype.JSC$14167_buildRequest=function(C,F){F.endpoint&&(C.endpoint=F.endpoint);F.action&&(C.action=F.action)};var W7=function(){};
_.O(W7,TV);W7.prototype.getApiPaths=function(){return Kur};
W7.prototype.getExtension=function(C){return _.Z(C,HKO)};
W7.prototype.JSC$14167_buildRequest=function(C,F){C.videoId=F.videoId;F.scheduledRedirectMetadataSourceVideoId&&(C.scheduledRedirectMetadata={sourceVideoId:F.scheduledRedirectMetadataSourceVideoId})};var t_=function(){};
_.O(t_,TV);t_.prototype.getApiPaths=function(){return TMl};
t_.prototype.getExtension=function(C){return _.Z(C,_.lOy)};
t_.prototype.JSC$14167_buildRequest=function(C,F){C.params=F.params;C.correctionText=F.correctionText};var aZ=function(){};
_.O(aZ,TV);aZ.prototype.getApiPaths=function(){return g$W};
aZ.prototype.getExtension=function(C){return _.Z(C,_.lwu)};
aZ.prototype.JSC$14167_buildRequest=function(C,F){F.params&&(C.params=F.params);C.searchQuery=F.searchQuery;C.languageCode=F.languageCode;C.kind=F.kind;C.name=F.name;C.externalVideoId=F.externalVideoId};var kM=function(){};
_.O(kM,TV);kM.prototype.getApiPaths=function(){return nF$};
kM.prototype.getExtension=function(C){return _.Z(C,e28)};
kM.prototype.JSC$14167_buildRequest=function(C,F){F.params&&(C.params=F.params)};var US=function(C){this.JSC$18405_storeWithEntities=C};
_.O(US,TV);US.prototype.getApiPaths=function(){return dRr};
US.prototype.getExtension=function(C){return _.Z(C,xsE)||_.Z(C,qnO)};
US.prototype.JSC$14167_buildRequest=function(C,F,G){G.client_data&&(C.clientData=G.client_data);if(F.commerceActionConfig){var V=F.commerceActionConfig;F=V.actionId;V=V.commerceActionParams;F&&(C.actionId=F);V&&(C.commerceActionParams=V)}else{var J=F.actionId,b=F.commerceActionParams;G=F.entityKeys;J&&(C.actionId=J);b&&(C.commerceActionParams=b);var z;F=(V=this.JSC$18405_storeWithEntities)==null?void 0:(z=V.getState())==null?void 0:z.entities;if(G&&F){V=[];z=_.u(G);for(G=z.next();!G.done;G=z.next())if(J=
G.value,G=_.D8(J).entityType,J=_.jN(F,G,J))b={},V.push((b[G]=J,b));C.entityMutationPayloads=V}}};
US.prototype.getRequestConfig=function(C){var F,G=(F=_.Z(C,xsE))==null?void 0:F.requestSequenceType;if(G&&C.clickTrackingParams&&G!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:C.clickTrackingParams,sequenceType:G}}};
US[Ew]=[gJ];var H7=function(){};
_.O(H7,TV);H7.prototype.getApiPaths=function(){return uHy};
H7.prototype.getExtension=function(C){return _.Z(C,_.JZ2)};
H7.prototype.JSC$14167_buildRequest=function(C,F){F.feedbackData&&(C.feedbackData=F.feedbackData);F.params&&(C.itemParams=F.params)};
_.I6.Object.defineProperties(H7.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var l$=function(){};
_.O(l$,TV);l$.prototype.getApiPaths=function(){return zCm};
l$.prototype.getExtension=function(C){return _.Z(C,$RO)};
l$.prototype.JSC$14167_buildRequest=function(C,F,G){G.payments_payload&&(C.paymentsPayload=G.payments_payload);G.offer_params&&(C.offerParams=G.offer_params);F.transactionParams&&(C.transactionParams=F.transactionParams)};var yK=function(){};
_.O(yK,TV);yK.prototype.getApiPaths=function(){return Q_u};
yK.prototype.getExtension=function(C){return _.Z(C,_.bpy)};
yK.prototype.JSC$14167_buildRequest=function(C,F,G){G=G===void 0?{}:G;F.buybucketParams&&(C.buybucketData={params:F.buybucketParams},F.stickerParams?C.buybucketData.stickerParams=F.stickerParams:(G.rich_chat_message?C.buybucketData.richChatMessage=G.rich_chat_message:G.chat_message_text&&(C.buybucketData.chatMessageText=G.chat_message_text),G.purchase_price_micros&&(C.buybucketData.purchasePriceMicros=G.purchase_price_micros.toString())));F.donationAmountMicros&&(C.tipAmountMicros=F.donationAmountMicros,
F.tipParams&&(C.tipParams=F.tipParams));F.offerParams&&(C.offerParams=F.offerParams);F.productData&&(C.productData=F.productData);F.transactionParams&&(C.transactionParams=F.transactionParams)};var ZV=function(){};
_.O(ZV,TV);ZV.prototype.getApiPaths=function(){return IjO};
ZV.prototype.getExtension=function(C){return _.Z(C,z3P)};
ZV.prototype.JSC$14167_buildRequest=function(C,F){F.updateFopParams&&(C.updateFopParams=F.updateFopParams)};var N8=function(){};
_.O(N8,TV);N8.prototype.getApiPaths=function(){return EF7};
N8.prototype.getExtension=function(C){return _.Z(C,_.hm)};
N8.prototype.JSC$14167_buildRequest=function(C,F){F.couponCode&&(C.couponCode=F.couponCode);F.params&&(C.itemParams=F.params)};var OS=function(){};
_.O(OS,TV);OS.prototype.getApiPaths=function(){return W0u};
OS.prototype.getExtension=function(C){return _.Z(C,_.s72)};
OS.prototype.JSC$14167_buildRequest=function(C,F,G){G=G===void 0?{}:G;F.params&&(C.params=F.params);G.ctk&&(C.clientToken=G.ctk)};var wy=function(C){this.JSC$18440_storeWithEntities=C};
_.O(wy,TV);wy.prototype.getApiPaths=function(){return t7$};
wy.prototype.getExtension=function(C){return _.Z(C,_.Vs)};
wy.prototype.JSC$14167_buildRequest=function(C,F,G){G.purchase_price_micros&&(C.productData={pdgData:{purchasePriceMicros:G.purchase_price_micros.toString()}},G.rich_chat_message&&(C.productData.pdgData.richChatMessage=G.rich_chat_message),G.currency_code&&(C.productData.pdgData.currencyCode=G.currency_code));F.transactionParams&&(C.transactionParams=F.transactionParams);F.clientLocationContext&&(C.clientLocationContext=F.clientLocationContext);G.payments_payload&&(C.paymentsPayload=G.payments_payload);
G.funds_guarantee_callback_client_data&&(C.fundsGuaranteeCallbackClientData=G.funds_guarantee_callback_client_data);var V,J;G=(V=this.JSC$18440_storeWithEntities)==null?void 0:(J=V.getState())==null?void 0:J.entities;if(F.entityKeys&&G){V=[];F=_.u(F.entityKeys);for(J=F.next();!J.done;J=F.next()){var b=J.value;J=_.D8(b).entityType;if(b=_.jN(G,J,b)){var z={};V.push((z[J]=b,z))}}C.entityMutationPayloads=V}};
wy[Ew]=[gJ];var M8=function(){};
_.O(M8,TV);M8.prototype.getApiPaths=function(){return ajy};
M8.prototype.getExtension=function(C){return _.Z(C,nV2)};
M8.prototype.JSC$14167_buildRequest=function(C,F,G){G=G===void 0?{}:G;G.backend_analytics&&(C.serializedBackendAnalyticsEvent=G.backend_analytics);F.offerParams&&(C.offerParams=F.offerParams)};var Sk=function(){};
_.O(Sk,TV);Sk.prototype.getApiPaths=function(){return EF7};
Sk.prototype.getExtension=function(C){return _.Z(C,Ut5)};
Sk.prototype.JSC$14167_buildRequest=function(C,F){F.params&&(C.itemParams=F.params)};var LI=function(){};
_.O(LI,TV);LI.prototype.getApiPaths=function(){return ko2};
LI.prototype.getExtension=function(C){return _.Z(C,_.T$7)};
LI.prototype.JSC$14167_buildRequest=function(C,F,G){G.resume_time_ms&&(C.resumeTimeMs=G.resume_time_ms);F.pauseParams&&(C.pauseParams=F.pauseParams)};var B7=function(){};
_.O(B7,TV);B7.prototype.getApiPaths=function(){return UnE};
B7.prototype.getExtension=function(C){return _.Z(C,_.uAP)};
B7.prototype.JSC$14167_buildRequest=function(C,F,G){G=G===void 0?{}:G;G.c&&(C.redeemCode=G.c);G.rd&&(C.riskData=G.rd);G.ctk&&(C.clientToken=G.ctk)};var v7=function(){};
_.O(v7,TV);v7.prototype.getApiPaths=function(){return HeG};
v7.prototype.getExtension=function(C){return _.Z(C,_.o9r)};
v7.prototype.JSC$14167_buildRequest=function(C,F){F.resumeParams&&(C.resumeParams=F.resumeParams)};var fI=function(C,F){this.clientName=C;this.defaultExpirationDelayMs=F};
fI.prototype.put=function(C,F){var G=this,V;return _.I(function(J){V=Object.assign({},F.data);V.key=C;V.clientName=G.clientName;V.expireTimestampMs===void 0&&(V.expireTimestampMs=(Math.round((0,_.Et)())+G.defaultExpirationDelayMs).toString());return J.return(G.putInternal(C,V))})};
fI[Ew]=[rN,Pir];var Fgh=function(){fI.apply(this,arguments);this.JSC$18470_responseStore=new Map};
_.O(Fgh,fI);_.n=Fgh.prototype;_.n.get=function(C){var F=this;return _.I(function(G){return G.return(Z2(F,C))})};
_.n.putInternal=function(C,F){var G=this,V,J,b;return _.I(function(z){V=G.defaultExpirationDelayMs;F.expireTimestampMs&&(V=Number(F.expireTimestampMs)-Math.round((0,_.Et)()),J=_.a8("mweb_override_response_store_expiration_ms"),J>0&&J<V&&(V=J));b=setTimeout(function(){G.remove(C)},V);
G.JSC$18470_responseStore.set(C,{entryData:F,timer:b});_.S9(z)})};
_.n.remove=function(C){var F=this;return _.I(function(G){GIL(F,C);_.S9(G)})};
_.n.removeAll=function(){var C=this;return _.I(function(F){C.JSC$18470_responseStore.forEach(function(G){clearTimeout(G.timer)});
C.JSC$18470_responseStore.clear();_.S9(F)})};
_.n.has=function(C){return!!this.JSC$18470_responseStore.get(C)};
_.n.getKeys=function(){return this.JSC$18470_responseStore.keys()};
var Z2=function(C,F){if(C=C.JSC$18470_responseStore.get(F))return new _.yU(C.entryData)},GIL=function(C,F){var G=C.JSC$18470_responseStore.get(F);
G&&(clearTimeout(G.timer),C.JSC$18470_responseStore.delete(F))};var mpT;var F6S=function(C,F,G){fI.call(this,C,F);this.token=G};
_.O(F6S,fI);_.n=F6S.prototype;_.n.get=function(C){var F=this,G,V;return _.I(function(J){return J.nextAddress==1?J.yield(jCS(F.token),2):J.nextAddress!=3?(G=J.yieldResult,J.yield(G.get("ResponseStore",[C,F.clientName]),3)):(V=J.yieldResult)?J.return(new _.yU(V)):J.return(void 0)})};
_.n.putInternal=function(C,F){var G=this,V;return _.I(function(J){if(J.nextAddress==1)return J.yield(jCS(G.token),2);V=J.yieldResult;return J.yield(V.put("ResponseStore",F),0)})};
_.n.remove=function(C){var F=this,G;return _.I(function(V){if(V.nextAddress==1)return V.yield(jCS(F.token),2);G=V.yieldResult;return V.return(G.delete("ResponseStore",[C,F.clientName]))})};
_.n.removeAll=function(){var C=this,F;return _.I(function(G){if(G.nextAddress==1)return G.yield(jCS(C.token),2);F=G.yieldResult;return G.yield(BhE(F,IDBKeyRange.only(C.clientName)),0)})};
_.n.has=function(){throw Error("ij");};_.h_=new _.jh("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var Vod=function(C){var F;this.stateTagsData=(F=C.responseContext)==null?void 0:F.stateTags},ifL=function(C){var F;
return((F=C.stateTagsData)==null?void 0:F.stateTagsModified)||[]};var JVr;JVr=function(C){this.JSC$18483_responseStore=C};
_.Su=function(C,F,G){if(!_.y("state_tags_killswitch")){var V=new Vod(F);if(ifL(V).length>0){var J=C.JSC$18483_responseStore.getKeys();J=_.u(J);for(var b=J.next();!b.done;b=J.next()){b=b.value;var z=Z2(C.JSC$18483_responseStore,b);if(z){var Q=_.qx(z);a:{var E=void 0;z=ifL(V);Q=((E=(new Vod(Q)).stateTagsData)==null?void 0:E.relevantStateTags)||[];E=_.u(Q);for(Q=E.next();!Q.done;Q=E.next())if(Q=Q.value,Q.stateTag!=null&&z.includes(Q.stateTag)&&Q.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){z=
!0;break a}z=!1}z&&GIL(C.JSC$18483_responseStore,b)}}}}var t;V=(t=F.responseContext)==null?void 0:t.maxAgeSeconds;G&&V&&Number(V)>0&&(F=DH(F,V),C.JSC$18483_responseStore.put(G,new _.yU(F)))};
JVr.prototype.handleResponse=function(C,F){if(!F)throw Error("jj");var G,V;F=(G=F.config)==null?void 0:(V=G.storeStrategy)==null?void 0:V.storeKey;_.Su(this,C,F)};
JVr[Ew]=[_.lY];_.a1q=new _.jh("STORE_RESPONSE_PROCESSOR_TOKEN");var $d_=function(C){this.JSC$18486_responseStore=C};
$d_.prototype.handleResponse=function(C,F){if(F.input.match(_.qW(hUo))){var G;if(C==null?0:(G=C.entries)==null?0:G.length)for(C=_.u(C.entries),F=C.next();!F.done;F=C.next()){G=F.value.command;var V=void 0;F=(V=_.Z(G,_.nd))==null?void 0:V.unserializedPrefetchData;if(!G||!F)break;V=(new Gg).JSC$14174_getStoreKey(G);var J=_.Z(F,Rhy),b=void 0,z=void 0,Q=void 0,E=void 0,t=void 0,k=void 0,U=((b=J)==null?0:(z=b.responseContext)==null?0:z.maxAgeSeconds)&&Number((Q=J)==null?void 0:(E=Q.responseContext)==null?
void 0:E.maxAgeSeconds)>0?Number((t=J)==null?void 0:(k=t.responseContext)==null?void 0:k.maxAgeSeconds):600;V&&U>0&&(J=DH(J,U),this.JSC$18486_responseStore.put(V,new _.yU(J)));G=(new tx).JSC$14174_getStoreKey(G);F=_.Z(F,Sbu);E=Q=z=b=J=V=void 0;t=((V=F)==null?0:(J=V.responseContext)==null?0:J.maxAgeSeconds)&&Number((b=F)==null?void 0:(z=b.responseContext)==null?void 0:z.maxAgeSeconds)>0?Number((Q=F)==null?void 0:(E=Q.responseContext)==null?void 0:E.maxAgeSeconds):600;G&&t>0&&(F=DH(F,t),this.JSC$18486_responseStore.put(G,
new _.yU(F)))}}};
$d_[Ew]=[_.lY];var bfs=function(C,F){this.innertubeTransportService=C;this.JSC$18489_commandHandler=F};
bfs.prototype.submitForm=function(C,F,G,V,J){var b=this,z,Q,E,t,k,U;return _.I(function(H){if(H.nextAddress==1)return z={submitId:C,formData:F,submitBehavior:G,params:V},Q=_.qW(oNo),H.yield(_.j8(b.innertubeTransportService,z,Q,J),2);E=H.yieldResult;if(!E)return H.return(Promise.reject(new _.Ay("Submit API returned an undefined response. Submit ID: "+C)));t=E;(U=(k=t)==null?void 0:k.onResponseReceived)&&b.JSC$18489_commandHandler.resolveCommand(U);return H.return(t)})};
bfs[Ew]=[_.Qk,_.WD];var c7=function(){this.scheduler=_.Ws()},ndx;
c7.prototype.pause=function(){throw Error("kj");};
c7.prototype.resume=function(){throw Error("kj");};
c7.prototype.queue=function(C){var F=this,G=_.hM(),V=_.c8(this.scheduler,function(){try{var J;if(_.Cy.instance)var b=_.Cy.instance;else{var z=new _.Ay("Error: Unexpected uninitialized CommandHandler.");_.gD(z);b=void 0}(J=b)==null||J.resolveCommand(C.command);G.resolve()}catch(Q){G.reject(Q)}});
G.promise.thenCatch(function(J){J instanceof _.Op&&F.scheduler.cancelJob(V)});
return G.promise};
c7.prototype.queueAll=function(C){var F=new Map;C=_.u(C);for(var G=C.next();!G.done;G=C.next())G=G.value,F.set(G.id,this.queue(G));return F};var znt=function(C,F){var G=this;this.taskModel=C;this.onTaskCancelledCallback=F;this.resolver=_.hM();C=C.proto.prefetchConfig;if(!C)throw Error("lj");if(!C.prefetchAction)throw Error("mj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(V){V instanceof _.Op&&(u_t(G,G.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),G.onTaskCancelledCallback(G.taskModel.id,G.jobId),G.tick("pcc"));
throw V;});
this.timerName=this.taskModel.id;_.Z8(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
znt.prototype.getPriority=function(){switch(this.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}};
var u_t=function(C,F){_.UZ({prefetchInfo:{cancellationReason:F}},C.timerName)};
znt.prototype.tick=function(C){_.NV(C,void 0,this.timerName)};var ek=function(){var C=this;this.scheduler=_.Ws();this.maxInflightTasks=_.a8("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.a8("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new ucl;this.onTaskCancelled=function(F,G){G&&C.scheduler.cancelJob(G);QMU(C,F);A_(C,3)}},Ia_=function(){ek.instance||(ek.instance=new ek);
return ek.instance};
ek.prototype.pause=function(){this.prefetchCoordinatorState=0};
ek.prototype.resume=function(){A_(this,0)};
ek.prototype.queue=function(C){C=Edl(this,C);A_(this,1);return C};
ek.prototype.queueAll=function(C){var F=new Map;C=_.u(C);for(var G=C.next();!G.done;G=C.next())G=G.value,F.set(G.id,Edl(this,G));A_(this,1);return F};
var Edl=function(C,F){var G=C.allPrefetchTasks.get(F.id);if(G)return G.cancellablePromise;try{var V=new znt(F,C.onTaskCancelled)}catch(b){return _.W6(b)}G=V;G.tick("pcq");var J={prefetchInfo:{taskId:G.taskModel.id,isPrefetch:!0,fetchAction:G.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:G.taskModel.command.clickTrackingParams}};G.taskModel.csn&&(J.clientScreenNonce=G.taskModel.csn);_.UZ(J,G.timerName);C.allPrefetchTasks.set(F.id,V);C.drainingHeap.insert(-V.getPriority(),V);return V.cancellablePromise},
A_=function(C,F){C.prefetchCoordinatorState===F&&(C.prefetchCoordinatorState=2,Wg_(C))},Wg_=function(C){for(var F={};C.prefetchCoordinatorState!==0;F={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(C.inflightPrefetchTasks.size>=C.maxInflightTasks){C.prefetchCoordinatorState=3;break}F.prefetchTask$jscomp$1=C.drainingHeap.remove();if(!F.prefetchTask$jscomp$1){C.prefetchCoordinatorState=1;break}F.taskId$jscomp$3=F.prefetchTask$jscomp$1.taskModel.id;if(C.allPrefetchTasks.has(F.taskId$jscomp$3)){var G=-1;C.coordinatorTimeoutMs>0&&(G=_.c8(C.scheduler,function(V){return function(){dy(C,V.taskId$jscomp$3,Error("nj"))}}(F),C.coordinatorTimeoutMs));
C.inflightPrefetchTasks.set(F.taskId$jscomp$3,G);if(!C.JSC$18506_commandHandler){if(!_.Cy.instance){dy(C,F.taskId$jscomp$3,Error("oj"));continue}C.JSC$18506_commandHandler=_.Cy.instance}a:switch(F.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":G=1;break a;default:G=0}F.prefetchTask$jscomp$1.jobId=C.scheduler.addJob(function(V){return function(){V.prefetchTask$jscomp$1.tick("pcr");try{C.JSC$18506_commandHandler.resolveCommand(V.prefetchTask$jscomp$1.taskModel.command)||
dy(C,V.taskId$jscomp$3,Error("pj"))}catch(J){dy(C,V.taskId$jscomp$3,J)}}}(F),G,0)}}},toV=function(C,F){(F=QMU(C,F))!=null&&(F.resolver.resolve(),F.tick("pce"));
A_(C,3)},dy=function(C,F,G){(F=QMU(C,F,G))!=null&&(F.resolver.reject(G),F.tick("pcc"),u_t(F,"CANCELLATION_REASON_ERROR"),Math.random()<=_.a8("prefetch_coordinator_error_logging_sampling_rate")&&(G=new _.Ay("Prefetch Command failed.",F.taskModel.id,G.message),_.gD(G)));
A_(C,3)},QMU=function(C,F,G){var V=C.allPrefetchTasks.get(F);
V?((G=C.inflightPrefetchTasks.get(F))&&G!==-1&&C.scheduler.cancelJob(G),C.inflightPrefetchTasks.delete(F),C.allPrefetchTasks.delete(F)):_.Yw(new _.Ay("Unexpected missing prefetch task when deleting task.",F,G==null?void 0:G.message));return V};var aas=function(C,F,G,V,J){this.id=C;this.triggerOn=F;this.cancelOn=G;this.command=V;this.proto=J};
_.I6.Object.defineProperties(aas.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var kIt=function(){this.JSC$18511_prefetchCoordinator=Ia_();ndx||(ndx=new c7);this.defaultCoordinator=ndx},UdL;
kIt.getInstance=function(){UdL||(UdL=new kIt);return UdL};
kIt.prototype.get=function(C){switch(C){case 0:return this.JSC$18511_prefetchCoordinator;default:return this.defaultCoordinator}};var xM=function(){this.coordinatorSupplier=kIt.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},yVt=function(C){var F=_.ZQ()||void 0,G=Object.keys(Hfs)[0];
if(G){var V=C.taskIdByTriggerId.get(G);if(V!=null){C.taskIdByTriggerId.delete(G);G=[];V=_.u(V);for(var J=V.next();!J.done;J=V.next())if(J=C.tasks.get(J.value))F!=="UNDEFINED_CSN"&&(J.csn=F),G.push(J);G=inB(G);F=[];G=_.u(G);for(V=G.next();!V.done;V=G.next()){J=_.u(V.value);V=J.next().value;J=J.next().value;V=C.coordinatorSupplier.get(V).queueAll(J);V=_.u(V);var b=V.next();for(J={};!b.done;J={taskId$jscomp$9:void 0},b=V.next()){var z=_.u(b.value);b=z.next().value;z=z.next().value;J.taskId$jscomp$9=
b;b=z;F.push(J.taskId$jscomp$9);C.queuedPromisesByTask.set(J.taskId$jscomp$9,_.OW(b,function(Q){return function(){lad(C,Q.taskId$jscomp$9)}}(J)))}}}}else _.Yw(new _.Ay("Unexpected malformed TriggerEvent."))};
xM.prototype.trigger=function(C,F){var G=this,V=this.tasks.get(C);if(!V||this.queuedPromisesByTask.has(C))return!1;Zfr(this,C,V.triggerOn);F!=="UNDEFINED_CSN"&&(V.csn=F);F=this.coordinatorSupplier.get(V.taskType).queue(V);this.queuedPromisesByTask.set(C,_.OW(F,function(){lad(G,C)}));
return!0};
xM.prototype.cancel=function(C){var F=this.queuedPromisesByTask.get(C);if(F)F.cancel();else return lad(this,C)};
var lad=function(C,F){C.queuedPromisesByTask.delete(F);var G=C.tasks.get(F);if(!G)return!1;C.tasks.delete(F);Zfr(C,F,G.triggerOn);(G=V5S(G.cancelOn))&&(C=C.taskIdByCancelId.get(G))&&C.delete(F);return!0},Zfr=function(C,F,G){(G=Object.keys(G)[0])&&(C=C.taskIdByTriggerId.get(G))&&C.delete(F)};var Hfs={taskRegistered:{}},sS=function(){xM.instance||(xM.instance=new xM);this.JSC$18520_taskManager=xM.instance};
_.O(sS,mu);
sS.prototype.resolveCommand=function(C){var F=this,G,V;return _.I(function(J){G=_.Z(C,TB8);if((V=G)==null||!V.tasks){var b=new _.Ay("RegisterTasksCommand is missing tasks.");_.gD(b);return J.return()}b=F.JSC$18520_taskManager;for(var z=_.u(G.tasks),Q=z.next();!Q.done;Q=z.next())if(Q=Q.value,Q=Q.id&&Q.triggerOn&&Q.cancelOn&&Q.command?new aas(Q.id,Q.triggerOn,Q.cancelOn,Q.command,Q):void 0,Q){var E=Object.keys(Q.triggerOn)[0];if(E){var t=V5S(Q.cancelOn);t?(b.tasks.set(Q.id,Q),b.taskIdByTriggerId.has(E)||b.taskIdByTriggerId.set(E,
new Set),b.taskIdByTriggerId.get(E).add(Q.id),b.taskIdByCancelId.has(t)||b.taskIdByCancelId.set(t,new Set),b.taskIdByCancelId.get(t).add(Q.id)):_.Yw(new _.Ay("Unexpected malformed cancelOn field."))}else _.Yw(new _.Ay("Unexpected malformed triggerOn field."))}else _.Yw(new _.Ay("Unexpected malformed Task proto."));yVt(F.JSC$18520_taskManager);_.S9(J)})};var NGr={},Oft=(NGr.rendered={priority:_.y("web_adaptive_early_init")?8:0,callback:function(){var C={};C.numCpu=navigator.hardwareConcurrency;var F={};F.ramGb=_.VT.navigator.deviceMemory;var G={staticContext:{}};F.ramGb&&WKB(F.ramGb)&&(G.staticContext.memoryTotalKbytes=(F.ramGb*1048576).toString());C.numCpu&&WKB(C.numCpu)&&(G.staticContext.cpuCores=C.numCpu);if(_.y("web_enable_adaptive_appl_signal")){C={};F=USS();F=F.length>0?F[0]:void 0;var V,J=(V=_.wh("rses_dpj"))!=null?V:F==null?void 0:F.tick.rses_dpj,
b;V=(b=_.wh("rsef_dpj"))!=null?b:F==null?void 0:F.tick.rsef_dpj;J&&Number(J)>0&&V&&Number(V)>0&&(b=Math.ceil(Number(V)-Number(J)),b>0&&(C.loadLatency=b));C.loadLatency&&WKB(C.loadLatency)&&(G.appL=C.loadLatency.toString())}_.q1("applicationStarted",G);taw=G;_.y("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",a_T)}},NGr);var Xkh=new _.jh("WINDOW_ON_ERROR"),wkt=new _.jh("ERROR_WEIGHT_MAPS"),Mox=new _.jh("INIT_ERROR");var SDd={},Lgr=(SDd.initialized={priority:10,callback:function(C){C.injector.resolve(Mox)()}},SDd);var BGx=function(){},vdh=function(){var C=_.mN("meta_logger_impl");
C||(C=new BGx,_.zn("meta_logger_impl",C));return C},fal=function(){vdh().csiSubscriptionKey=xzI("meta_logging_csi_event",function(C){var F=C.timerName;
if(C=C.timelineData){_.Z8(F,{startTime:C.startTime},F);C.infos&&_.UZ(C.infos,F);for(var G=_.u(Object.keys(C.ticks)),V=G.next();!V.done;V=G.next())V=V.value,_.NV(V,C.ticks[V],F)}})};
BGx.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&PE9(this.csiSubscriptionKey)};var hnU={},cVW=(hnU.initialized={priority:10,callback:function(){fal()}},hnU);var AVh=function(C,F){this.innertubeClientName=C;this.JSC$18531_prefCookie=F};
AVh.prototype.record=function(){if(_.y("web_li_record_binary_eval_tick")){var C=_.wh("rsef_dpj");var F=_.wh("rses_dpj");C=C!==void 0&&F!==void 0?Math.round(C-F):void 0;if(C!==void 0&&C>0){F=_.Wr(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var G=this.poolSize;if(!(F.valuesSeen>=1E9)){if(F.valuesSample.length<G)F.valuesSample.push(C);else{var V=Math.floor(Math.random()*(F.valuesSeen+1));V<G&&(F.valuesSample[V]=C)}F.valuesSeen+=1}_.E6(this.storagePrefix+"-"+this.innertubeClientName,
F,2592E3);C=F.valuesSample;F=JdE(C);C=C.length<this.poolSize?void 0:F<400?1:F<1700?2:3;C!==void 0&&(this.JSC$18531_prefCookie.set(this.cookiePrefix+this.innertubeClientName,C),this.JSC$18531_prefCookie.save())}}else _.tR(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18531_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18531_prefCookie.save()};
AVh[Ew]=[rN,BK];var enl=function(){AVh.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.O(enl,AVh);var ddd=new _.jh("PAGE_LOAD_TIME_TOKEN");var xdM=function(C){this.signal=C;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;C.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.c8(_.gT,this.disableLoggingAndSendPayload,1E4)};
xdM.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.gT.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),sM_(this))};
var sM_=function(C){var F=_.lm();if(F){var G={webClientComponentsData:{components:Array.from(C.ids,function(V){return{id:V}})}};
C.ids.clear();_.ia().visualElementStateChanged(F,G)}};var qDd=_.U4({a11y:_.M0u});_.Pzd=_.HB(qDd)(qDd.a11y,{ephemeralActionSelector:function(C){return C.ephemeralAction||null}});var gdt=_.U4({continuation:_.BbE});var Rnl=_.HB(gdt)(gdt.continuation,{continuationCommandSelector:function(C){return C.continuationCommand}});var YDV=new _.jh("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var q8=function(C,F){this.JSC$18560_storeWithEntities=C;this.JSC$18560_commandHandler=F;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
q8.prototype.start=function(){this.JSC$18560_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
q8.prototype.observeDownloadingEntities=function(){var C=_.eFq(this.JSC$18560_storeWithEntities.getState().entities).map(function(V){return dZA(V)});
if(C.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var F={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:om5()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.YB(_.iQ("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18560_commandHandler.resolveCommand(F)}this.downloadingEntities=C}else if(this.downloadingEntities.length){var G=AhT(this.JSC$18560_storeWithEntities.getState().entities).map(function(V){return dZA(V)});
this.downloadingEntities.filter(function(V){return G.includes(V)}).length&&(C={openPopupAction:ecT()},this.JSC$18560_commandHandler.resolveCommand(C));
this.downloadingEntities=[]}};
q8[Ew]=[gJ,_.WD];var TGM;_.P7=function(C,F,G,V,J,b,z,Q){this.JSC$18563_playerApiPromise=C;this.JSC$18563_commandHandler=F;this.JSC$18563_screenManager=G;this.offlineWebClientEligibility=V;this.JSC$18563_prefStorage=J;this.JSC$18563_actionRouter=b;this.entityTypeMap=z;this.JSC$18563_persistentStorePromiseAccessor=Q;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
TGM=function(){var C=_.I8().resolve(_.P7),F;_.I(function(G){if(G.nextAddress==1)return C.downloadFailureListenerBound?G.return():G.yield(C.JSC$18563_playerApiPromise,2);F=G.yieldResult;F.addEventListener("onOfflineOperationFailure",function(V){if(V.failureReason&&V.entityKey&&V.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(V.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var J=_.D8(V.entityKey).entityId;J&&C.JSC$18563_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
J)}else if(_.y("kevlar_woffle")){J=C.JSC$18563_commandHandler;var b=J.resolveCommand;V=V.failureReason;var z=_.iQ("TRANSFER_FAILED",void 0,"Download failed");V==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(z=_.iQ("STORAGE_FULL",void 0,"Storage full"));b.call(J,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.YB(z),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
C.downloadFailureListenerBound=!0;_.S9(G)})};
_.P7.prototype.deleteVideo=function(C,F){var G=this,V,J,b;return _.I(function(z){if(z.nextAddress==1)return z.yield(G.JSC$18563_playerApiPromise,2);V=z.yieldResult;b={offlineLoggingData:{offlineDeleteReason:(J=F)!=null?J:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return z.yield(V.queueOfflineAction(C,G.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",b),0)})};
_.P7.prototype.pauseVideoDownload=function(C){var F=this,G;return _.I(function(V){if(V.nextAddress==1)return V.yield(F.JSC$18563_playerApiPromise,2);G=V.yieldResult;G.pauseVideoDownload(C);_.S9(V)})};
_.P7.prototype.resumeVideoDownload=function(C){var F=this,G;return _.I(function(V){if(V.nextAddress==1)return V.yield(F.JSC$18563_playerApiPromise,2);G=V.yieldResult;return V.yield(G.resumeVideoDownload(C),0)})};
_.P7[Ew]=[_.rE,_.WD,_.hS,YDV,cK,Ij,O68,Zz];var odV=new _.jh("DOWNLOAD_STATE_STORE_TOKEN");var rVr=function(C,F){this.JSC$18583_persistentStorePromiseAccessor=C;this.store=F;this.upliftCompletionResolver=new _.Cd},pkM=function(){var C=_.I8().resolve(Kgs),F;
_.I(function(G){switch(G.nextAddress){case 1:if(C.upliftImplPromise)return G.return(C.upliftImplPromise);_.yy(G,2);C.upliftImplPromise=Ddd(C);return G.yield(C.upliftImplPromise,4);case 4:C.upliftCompletionResolver.resolve();_.Gn(G,3);break;case 2:throw F=_.wa(G),C.upliftCompletionResolver.reject(F),F;case 3:return G.return(C.upliftImplPromise)}})},Ddd=function(C){var F,G,V;
return _.I(function(J){switch(J.nextAddress){case 1:return _.oD("LOGGED_IN")?J.yield(C.JSC$18583_persistentStorePromiseAccessor(),2):J.return();case 2:F=J.yieldResult;if(!F)return _.NV("vdeur"),J.return();_.NV("vdeus");_.yy(J,3);return J.yield(mdr(F),5);case 5:G=J.yieldResult;C.store.dispatch(yhs(G));F.observe(function(b){ZSE(C.store,b)});
_.Gn(J,4);break;case 3:throw V=_.wa(J),_.NV("vdeur"),V;case 4:_.NV("vdeuc"),_.S9(J)}})},mdr=function(C){var F;
return _.I(function(G){if(G.nextAddress==1)return G.yield(QCf(C),2);F=G.yieldResult;return G.return(F.reduce(function(V,J){if(!J.data||!J.key||!J.entityType)return V;V[J.entityType]||(V[J.entityType]={});V[J.entityType][J.key]=J.data;return V},{}))})};
rVr[Ew]=[Zz,_.P$];var Kgs;Kgs=new _.jh("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.gy=new _.jh("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var RZ=function(C,F){this.JSC$18586_persistentStorePromiseAccessor=C;this.transportService=F};
RZ.prototype.refresh=function(){var C=this,F,G,V,J;return _.I(function(b){if(b.nextAddress==1)return _.oD("LOGGED_IN")?b.yield(C.JSC$18586_persistentStorePromiseAccessor(),2):b.return();if(b.nextAddress!=3)return(F=b.yieldResult)?b.yield(ggA(F),3):b.return();if((G=b.yieldResult)&&!(Number(G.data.refreshTimestampMs||0)<(0,_.Et)()))return b.return();V={browseId:"SPaccount_downloads"};J=_.qW(f3);_.j8(C.transportService,V,J).then(function(z){var Q;if(F&&(z==null?void 0:(Q=z.responseContext)==null?void 0:
Q.maxAgeSeconds)!==0){var E;Q=(z==null?void 0:(E=z.responseContext)==null?void 0:E.maxAgeSeconds)||604800;E=String(Math.floor((0,_.Et)())+Q*1E3);F.put("service:downloads_settings:fallback",new _.yU({innertubeResponse:z,refreshTimestampMs:E}))}});
_.S9(b)})};
RZ[Ew]=[_.h_,_.Qk];var YM=function(C,F){this.JSC$18590_playerPromise=C;this.store=F;this.started=!1};
YM.prototype.start=function(){var C=this,F;return _.I(function(G){if(G.nextAddress==1)return C.started?G.return():G.yield(C.JSC$18590_playerPromise,2);F=G.yieldResult;F.addEventListener("onOrchestrationBecameLeader",C.updateIsLeader.bind(C,!0));F.addEventListener("onOrchestrationLostLeader",C.updateIsLeader.bind(C,!1));if(F.isOrchestrationLeader)C.updateIsLeader(F.isOrchestrationLeader());else{var V=new _.Ay("Function isOrchestrationLeader is undefined",{"player.isReady":F.isReady(),"player.playVideo":F.playVideo?
"defined":"undefined"});_.gD(V);C.updateIsLeader(!1)}C.started=!0;_.S9(G)})};
YM.prototype.updateIsLeader=function(C){this.store.dispatch(_.rh({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:C}}))};
YM[Ew]=[_.rE,_.P$];var Cbt=function(C,F){this.networkStatusManager=C;this.JSC$18593_prefStoragePromise=F;this.redirectsToPreload=["https://youtube.com"]},jXL=function(){var C=_.I8().resolve(Cbt),F,G,V,J,b,z;
_.I(function(Q){switch(Q.nextAddress){case 1:return Q.yield(C.JSC$18593_prefStoragePromise,2);case 2:F=Q.yieldResult;if(!(G=F)){Q.jumpTo(3);break}return Q.yield(F.get("yt-redirect-prefetch-id"),4);case 4:G=Q.yieldResult;case 3:if(G||!C.networkStatusManager.isNetworkAvailable())return Q.return();V={cache:"reload",redirect:"manual"};J=_.u(C.redirectsToPreload);b=J.next();case 5:if(b.done){if(!F){Q.jumpTo(0);break}return Q.yield(F.set("yt-redirect-prefetch-id",!0,86400),0)}z=b.value;_.yy(Q,8);return Q.yield(_.VT.fetch(z,
V),10);case 10:_.Gn(Q,6);break;case 8:_.wa(Q);case 6:b=J.next(),Q.jumpTo(5)}})};var Fvs=function(C){this.JSC$18599_pageManager=C};
Fvs[Ew]=[_.qG];_.Glt=new _.jh("PAGE_CONTENT_EXTRACTOR_TOKEN");var Tg=function(C){C?(this.container=C,this.containerWasInjected=!0):this.containerWasInjected=!1};
Tg.prototype.openDialog=function(C,F,G){var V=this,J;return _.I(function(b){(J=V.container)==null||J.openDialog(C,F,G);_.S9(b)})};
Tg.prototype.closeDialog=function(){var C=this,F;return _.I(function(G){(F=C.container)==null||F.closeDialog();_.S9(G)})};
Tg.prototype.isDialogOpen=function(){var C=this,F,G;return _.I(function(V){return V.return((G=(F=C.container)==null?void 0:F.isDialogOpen())!=null?G:!1)})};
Tg[Ew]=[_.Qt(s02)];_.VE_=new _.jh("POPUP_CONTROLLER_TOKEN");var iBd=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
iBd.prototype.registerPanel=function(C,F){if(C){this.panelMap.set(C,F);var G=this.pendingPanelResolvers.get(C);G&&(G.resolve(F),this.pendingPanelResolvers.delete(C))}};
iBd.prototype.getPanel=function(C){var F=this,G;return _.I(function(V){return(G=F.panelMap.get(C))?V.return(G):V.return(J2r(F,C))})};
var J2r=function(C,F){var G,V;return _.I(function(J){if(G=C.pendingPanelResolvers.get(F))return J.return(G.promise);V=new _.Cd;C.pendingPanelResolvers.set(F,V);return J.return(V.promise)})},$0h=function(C,F){iBd.call(this);
var G=this;this.popupController=C;this.persistentPanelController=F;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return G.panelMap.size}}};
_.O($0h,iBd);_.n=$0h.prototype;_.n.getReloadContinuation=function(C){var F=this,G;return _.I(function(V){if(V.nextAddress==1)return V.yield(F.getPanel(C),2);G=V.yieldResult;return V.return(G.getReloadContinuation())})};
_.n.showPanel=function(C){var F=this,G,V,J,b,z,Q,E,t,k,U,H,l;return _.I(function(N){if(N.nextAddress==1){G=C;V=G.identifier;J=G.panelContents;b=G.config;z=G.extras;Q=G.panelUpdatableFields;E=G.updatePanelContinuationData;t=C.target;E&&F.updatePanelContinuationDatas.set(V,E);if((k=b)==null?0:(U=k.engagementPanelPopupPresentationConfig)==null?0:U.popupType)if(H=b.engagementPanelPopupPresentationConfig.popupType,t===void 0&&(t=document.body),H==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!F.persistentPanelController)return _.Yw(new _.Ay("Persistent panel controller is not available.")),
N.return();var S=F.persistentPanelController;S.persistentPanelIdentifiers.has(V)||(S.persistentPanelWrapper.appendChild(S.engagementPanelElement({panelIdentifier:V},{isPersistentPanel:!0})),S.persistentPanelIdentifiers.add(V));a:switch(_.SV.currentPageSubTypeSelector(S.store.getState())){case "watch":var f="WATCH";break a;default:f="APP"}_.bBs(S,f);S.store.dispatch(SUl(!0))}else{if(H==="PANEL_POPUP_TYPE_DIALOG"||H==="PANEL_POPUP_TYPE_DROPDOWN"){S=N.return;f=F.popupController;var c=f.openPopup;a:switch(H){case "PANEL_POPUP_TYPE_DIALOG":var A=
"DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":A="DROPDOWN";break a;default:throw Error("rj`"+H);}return S.call(N,c.call(f,V,J,A,t))}_.Yw(new _.Ay("Popup type "+H+" not supported in PanelController."))}return N.yield(F.getPanel(V),2)}l=N.yieldResult;(J||Q)&&l.updatePanel(J,!1,z,Q);l.showPanel(z);_.S9(N)})};
_.n.hidePanel=function(C){var F=this,G,V,J,b;return _.I(function(z){if(z.nextAddress==1)return G=C,V=G.identifier,z.yield(F.getPanel(V),2);J=z.yieldResult;J.hidePanel();F.popupController.closePopup(V);(b=F.persistentPanelController)!=null&&b.persistentPanelIdentifiers.has(V)&&b.store.dispatch(SUl(!1));_.S9(z)})};
_.n.isVisible=function(C,F){var G=this,V;return _.I(function(J){if(J.nextAddress==1)return F&&!G.panelMap.has(C)?J.return(!1):J.yield(G.getPanel(C),2);V=J.yieldResult;return J.return(V.isVisible())})};
_.n.updatePanel=function(C){var F=this,G,V,J,b,z,Q,E,t;return _.I(function(k){if(k.nextAddress==1){G=C;V=G.identifier;J=G.panelContents;b=G.shouldFocus===void 0?!1:G.shouldFocus;z=G.extras;Q=G.panelUpdatableFields;E=G.updatePanelContinuationData;if(!J&&!Q)return k.return();E&&F.updatePanelContinuationDatas.set(V,E);return k.yield(F.getPanel(V),2)}t=k.yieldResult;t.updatePanel(J,b,z,Q);J&&_.y("enable_ai_companion")&&F.registerPanelContent(V,J);_.S9(k)})};
_.n.registerPanelContent=function(C,F){C&&this.panelContentMap.set(C,F)};
_.n.unregisterPanelContent=function(C){this.panelContentMap.delete(C)};
_.n.getPanelContent=function(C){return this.panelContentMap.get(C)};
_.n.getUpdatePanelContinuationData=function(C){return this.updatePanelContinuationDatas.get(C)};
$0h[Ew]=[_.VE_,_.Qt(_.qj)];var oZ=function(C,F){this.innertubeTransportService=C;this.JSC$18618_screenManager=F},nK3=function(C){var F;
return!((F=C.panelLoadingStrategy)==null||!F.requestTemplate)};
oZ.prototype.makeRequest=function(C){var F=this,G,V;return _.I(function(J){switch(J.nextAddress){case 1:if(!nK3(F)){J.jumpTo(2);break}_.yy(J,3);return J.yield(_.fZ(F.innertubeTransportService,C),5);case 5:return G=J.yieldResult,G?J.return(G.content):(_.gD(Error("sj")),J.return(void 0));case 3:V=_.wa(J),_.gD(V);case 2:return J.return(void 0)}})};
oZ.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
oZ.prototype.execute=function(C){var F=this,G,V,J,b,z,Q,E,t,k,U;return _.I(function(H){if(H.nextAddress==1){G=C;V=G.data;J=G.fallbackVe;b=G.parentVe;z=G.createScreenConfig;Q=G.renderFn;E=G.command;F.panelLoadingStrategy=V;var l,N,S=((l=F.panelLoadingStrategy)==null?0:l.screenVe)?(N=F.panelLoadingStrategy)==null?void 0:N.screenVe:J;S&&_.NJ(F.JSC$18618_screenManager,S,b,z);return(t=F.getContent())?H.yield(Q(t),2):H.jumpTo(2)}return H.nextAddress!=4?nK3(F)?H.yield(F.makeRequest(E),4):H.return():(U=k=
H.yieldResult)?H.yield(Q(U),0):H.return()})};
oZ[Ew]=[_.Qk,_.hS];var u5t;u5t=function(C,F){this.engagementPanelElement=C;this.store=F;this.persistentPanelContainerMap=new Map;this.persistentPanelIdentifiers=new Set;this.persistentPanelWrapper=document.createElement("div");this.persistentPanelWrapper.classList.add("persistent-panel-wrapper");this.persistentPanelWrapper.style.display="flex";this.persistentPanelWrapper.style.height="100%"};
_.bBs=function(C,F){var G=C.persistentPanelContainerMap.get(F);G?G.contains(C.persistentPanelWrapper)||(C=C.persistentPanelWrapper,_.qD=!0,_.P6.set(C,!0),G.insertBefore(C,null),_.P6.delete(C),_.qD=!1):_.Yw(new _.Ay("Persistent panel container not found for surface "+F+"."))};
u5t[Ew]=[qKm,_.P$];var ry=function(){};
ry.prototype.getContainer=function(){return _.gz()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
ry.prototype.openSheet=function(C,F){var G=this,V,J,b,z,Q,E;return _.I(function(t){switch(t.nextAddress){case 1:return V={stack:[],error:void 0,hasError:!1},_.yy(t,2,3),J=J2,t.yield(G.isSheetOpen(),5);case 5:b=t.yieldResult;b9S(V,ls9(J));if(b){if(_.y("web_close_sheet_if_same_target_killswitch")&&F&&G.currentTarget===F)return(z=G.getContainer())==null||z.closeSheet(),t.return();G.pendingData={data:C,target:YaU(G,F)};return t.return()}C.viewModel&&(C={viewModel:C.viewModel,sheetPosition:C.sheetPosition});
(Q=G.getContainer())==null||Q.openSheet(C,F);G.currentTarget=F;case 3:_.Na(t);niP(V);_.XG(t,0);break;case 2:E=_.wa(t),V.error=E,V.hasError=!0,t.jumpTo(3)}})};
ry.prototype.closeSheet=function(){var C=this,F;return _.I(function(G){if(G.nextAddress==1)return G.yield((F=C.getContainer())==null?void 0:F.closeSheet(),2);if(G.nextAddress!=4)return C.currentTarget=void 0,C.pendingData?G.yield(C.openSheet(C.pendingData.data,C.pendingData.target),4):G.jumpTo(0);C.pendingData=void 0;_.S9(G)})};
ry.prototype.isSheetOpen=function(){var C=this,F,G;return _.I(function(V){return V.return((G=(F=C.getContainer())==null?void 0:F.isSheetOpen())!=null?G:!1)})};
var YaU=function(C,F){if(!_.y("web_parent_target_for_sheets"))return F;var G,V;return(V=(G=C.getContainer())==null?void 0:G.getParentTarget(F))!=null?V:F};var rJ=window.documentPictureInPicture;var NwT=_.h6(["dark"]),On9=_.h6(["system-icons"]),XzS=_.h6(["typography"]),wzI=_.h6(["lang"]),M5f=_.h6(["style"]),HnI=_.h6(["dir"]),lXI=_.h6(["rounded-container"]),ydE=_.h6(["style"]),L65=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],KI=function(C){this.JSC$18635_clientRoot=C;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
KI.prototype.openWindow=function(C){var F=this,G,V;return _.I(function(J){switch(J.nextAddress){case 1:if(!window.documentPictureInPicture||!_.Mf()||F.currentPipWindow)return J.return(!1);_.yy(J,2);return J.yield((V=rJ?rJ:null)==null?void 0:V.requestWindow(C),4);case 4:G=J.yieldResult;_.Gn(J,3);break;case 2:return _.wa(J),J.return(!1);case 3:if(!G)return J.return(!1);G.addEventListener("pagehide",function(){zlW(F)});
G.addEventListener("resize",F.handlePipWindowResize);STI(G);vGq(G);tRE(G);return J.yield(UTB(G),5);case 5:if(!t5f())return J.return(!1);F.currentPipWindow=G;F.JSC$18635_eventForwarder=Bww(G,F.JSC$18635_clientRoot);F.pipWindowResizeDelay=new _.tu(function(){F.currentPipWindow&&_.rz(F.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.Ml(F.currentPipWindow.innerWidth,F.currentPipWindow.innerHeight)])},G);
F.pipWindowResizeDelay.start();return J.return(!0)}})};
KI.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var zlW=function(C){if(C.currentPipWindow){var F,G;(F=rJ?rJ:null)==null||(G=F.window)==null||G.close();C.currentPipWindow.removeEventListener("resize",C.handlePipWindowResize);var V;(V=C.pipWindowResizeDelay)==null||V.dispose();C.pipWindowResizeDelay=void 0;var J;(J=C.JSC$18635_eventForwarder)==null||J.stop();C.JSC$18635_eventForwarder=void 0;F=_.u(C.onCloseCallbacks);for(G=F.next();!G.done;G=F.next())G=G.value,G();C.onCloseCallbacks=[];C.currentPipWindow=null}};
KI.prototype.getWindow=function(){return this.currentPipWindow};
var QXd=function(C,F){var G;(G=C.onCloseCallbacks)==null||G.push(F)};
KI.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.Mf()};
_.I6.Object.defineProperties(KI.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
KI[Ew]=[VA$];var IB3=new _.jh("PICTURE_IN_PICTURE_CONTROLLER");var fXi=function(C,F){this.lengthY=this.lengthX=0;this.lengthX=F.x-C.x;this.lengthY=F.y-C.y};var EKL=function(){},jRV=function(C,F){var G;
(G=C.headerElement)==null||G.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:F}))};var WvW=function(){};
WvW.prototype.openPopup=function(C,F,G,V){var J=this,b;return _.I(function(z){if(!J.container)return z.return();b={openPopupAction:{popup:F,popupType:G,uniqueId:C}};return z.return(J.container.handleOpenPopupAction(b,V))})};
WvW.prototype.closePopup=function(C){this.container&&this.container.closePopup(C)};var tEs=function(){this.openTunnels=new Map},l_o=function(C,F,G){if(xTI(G)){var V=_.Da(G,"gclid");
G={handleEvent:function(Q){F&&!F.closed&&typeof F.postMessage==="function"&&Q&&Q.origin&&Q.source===F&&Q.data&&Q.data.action==="gcl_setup"&&F.postMessage(Object.assign({},{action:"gcl_transfer"},V&&{gclid:V},{gadSource:2}),Q.origin)}};
for(var J=_.u(C.openTunnels),b=J.next();!b.done;b=J.next()){var z=_.u(b.value);b=z.next().value;z=z.next().value;if(b.closed)try{window.removeEventListener("message",z),C.openTunnels.delete(b)}catch(Q){_.gD(Q)}}F&&C.openTunnels.size<15&&(C.openTunnels.set(F,G),window.addEventListener("message",G))}};var aBd=function(){this.clientParams=new Map},AlV=function(C){for(var F=_.u(C.clientParams.keys()),G=F.next();!G.done;G=F.next())G=G.value,G.startsWith("yt-mini-app-share")&&C.clientParams.delete(G)};var klh=function(C,F){_.hV.call(this);var G=this;this.shortsController=C;this.storeWithShorts=F;C=_.hK(this.storeWithShorts,_.Y7f,function(V){if(V){var J,b=(J=G.shortsController.getRoot())==null?void 0:J.getPlayer(),z;(J=(z=G.shortsController.alternativePlayerContainerElement)==null?void 0:z.getPlayerContainer())&&(b==null||b.appendTo(J))}else{var Q;z=(Q=G.shortsController.alternativePlayerContainerElement)==null?void 0:Q.getPlayerContainer().querySelector("#player");J=G.shortsController.activeIndex;
(Q=(b=G.shortsController.getRoot())==null?void 0:b.querySelector('ytd-reel-video-renderer[id="'+J+'"] #player-container'))&&(z==null||z.appendTo(Q,void 0,!0))}});
this.addOnDisposeCallback(C)};
_.O(klh,_.hV);var DV=function(C,F,G,V){var J=this;this.storeWithShorts=C;this.ephemeralResponseStore=F;this.innertubeTransportService=G;this.innertubeTransportLoader=V;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.nZ(_.gv);this.isShortsPipActive=_.nZ(_.Ry);this.nextReelVe=_.m2(56921);this.prevReelVe=_.m2(56922);this.backButtonVe=_.m2(22156);this.TEST_ONLY={getActiveModules:function(){return J.activeModules}}},U0V=function(C){C.unsubscribeFromStore=
_.hK(C.storeWithShorts,_.RYB,function(F){C.initOrDisposeActiveModules(F);
!F&&C.storeWithShorts.getState().shorts.isFullscreen&&(_.Ro(document.documentElement),C.storeWithShorts.dispatch(_.vjm(!1)))});
C.initOrDisposeActiveModules(_.RYB(C.storeWithShorts.getState()))},gfV,R03,HBr;
DV.prototype.initOrDisposeActiveModules=function(C){C?this.activeModules.push(new klh(this,this.storeWithShorts)):(_.zI(this.activeModules),this.activeModules.length=0)};
DV.prototype.registerRootElement=function(C){this.rootElement=C;U0V(this)};
DV.prototype.getRoot=function(){return this.rootElement};
DV.prototype.setActiveIndex=function(C){this.activeIndex=C};
_.dlV=function(C,F){var G,V,J,b,z,Q,E;return _.I(function(t){switch(t.nextAddress){case 1:return G=new Gg,(V=G.JSC$14174_getStoreKey(F))&&C.ephemeralResponseStore.has(V)?t.yield(C.ephemeralResponseStore.get(V),7):t.yield(HBr(C,F),4);case 4:J=t.yieldResult;if(!V){t.jumpTo(3);break}b=DH(J,3600);return t.yield(C.ephemeralResponseStore.put(V,new _.yU(b)),3);case 7:J=(z=t.yieldResult)==null?void 0:_.qx(z);case 3:return((Q=J)==null?0:Q.replacementEndpoint)&&(E=_.Z(J.replacementEndpoint,_.nd))&&J.sequenceContinuation&&
(E.sequenceParams=J.sequenceContinuation),t.return(J)}})};
gfV=function(C,F){F=(new VK).JSC$14174_getStoreKey(F);return!!F&&C.ephemeralResponseStore.has(F)};
R03=function(C,F,G){var V,J,b,z,Q;_.I(function(E){if(E.nextAddress==1){V=new VK;J=V.JSC$14174_getStoreKey(F);if(!J)return E.return();if(G.reelWatchSequenceResponse)return b=DH(G.reelWatchSequenceResponse,3600),C.ephemeralResponseStore.put(J,new _.yU(b)),E.jumpTo(0);if(!C.ephemeralResponseStore.has(J))return E.jumpTo(0);Q=G;return E.yield(C.ephemeralResponseStore.get(J),4)}Q.reelWatchSequenceResponse=(z=E.yieldResult)==null?void 0:_.qx(z);_.S9(E)})};
HBr=function(C,F){var G=G===void 0?{}:G;var V,J,b;return _.I(function(z){switch(z.nextAddress){case 1:if(C.innertubeTransportService){V=C.innertubeTransportService;z.jumpTo(2);break}if(!C.innertubeTransportLoader){_.ri(Error("uj"));z.jumpTo(2);break}return z.yield(C.innertubeTransportLoader(),4);case 4:V=z.yieldResult;case 2:return z.yield((J=V)==null?void 0:_.fZ(J,F,G),5);case 5:return b=z.yieldResult,z.return(b)}})};
_.I6.Object.defineProperties(DV.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
DV[Ew]=[LiU,_.lY,_.Qt(_.Qk),_.Qt(QiS)];_.lBW=new _.jh("STORAGE_MANAGER_TOKEN");var jGo=["touchmove","scroll"];var y2h=!1;var YTq=!1;var CkZ={onSpanEnd:function(C){C.parentId==null&&(y2h||(gGI(),setInterval(gGI,6E5),y2h=!0),Twf(C,"web_tracing_action"))}};var FCf=URL.createObjectURL;var Gq5=console.log,mTw=_.y("web_shorts_enable_tracing");var ZB8=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},N0d;
ZB8.prototype.enqueue=function(C,F){F===1?this.currentPersistentToast=C:this.queue.push(C);this.openToast()};
ZB8.prototype.openToast=function(){var C;(C=this.currentToast)!=null&&C.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.pI=new _.jh("TOAST_MANAGER_TOKEN");var OBx=new _.jh("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var XpM=new _.jh("VIEW_TRANSITION_COORDINATOR_TOKEN");var wpr=function(C){this.config=C;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;C=_.u(C.transitionConfigs);for(var F=C.next();!F.done;F=C.next())F=_.u(F.value).next().value,this.transitionTasksMap.set(F,[])};
wpr.prototype.registerElement=function(C,F,G){G=G===void 0?!1:G;for(var V=_.u(Object.keys(F)),J=V.next(),b={};!J.done;b={viewTransitionName:void 0},J=V.next()){J=J.value;b.viewTransitionName=F[J];var z=this.elementTasksMap.get(C),Q=void 0;if((Q=z)==null?0:Q.has(J)){_.R1(new _.Ay("Element already registered for transition",C.tagName,J));break}z=z||new Map;z.set(J,{beforeTransition:function(E){return function(){C.style.viewTransitionName=E.viewTransitionName}}(b),
afterTransition:function(){C.style.viewTransitionName&&(C.style.viewTransitionName="")},
runOnce:G});this.elementTasksMap.set(C,z)}};
_.Nh=function(C,F){var G=C.elementTasksMap.get(F);G&&(G.clear(),G.size===0&&C.elementTasksMap.delete(F))};
wpr[Ew]=[OBx];var Sqx=_.d(function(C){var F=_.Jt("yt-expandable-metadata-header-view-model"),G=_.CZ(function(V){if(!_.kb(_.ay(V),F.value,["A".toString(),"BUTTON".toString()])){var J;(J=C.expandedCallback)==null||J.call(C,!1)}});
return _.W("yt-expandable-metadata-header-view-model",{el:F,class:"ytExpandableMetadataHeaderViewModelHost"},_.W(_.a,{cond:function(){return C.expanded()},
then:function(){return _.W("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":G},_.W("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.W(_.a,{cond:function(){return C.data().expandedTitleImage},
then:function(V){return _.W("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.W(_.AC,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:V}))}}),_.W("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.W("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.W(_.mn,{text:function(){return C.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.W(_.mn,{text:function(){return C.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.W(_.mn,{text:function(){return C.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.W("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.W(_.uC,{data:function(){return C.data().infoButton}},{buttonViewModel:_.tS}),_.W(_.uC,{data:function(){return C.data().collapseButton}},{buttonViewModel:function(V){return _.W(_.tS,{data:V.data,
onClick:function(){var J;(J=C.expandedCallback)==null||J.call(C,!1)}})}})))},
else:function(){return _.W(MEr,Object.assign({},C))}}))},"jg"),Lvx=_.d(function(C){return _.W("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.W(_.a,{cond:function(){return C.data().collapsedLabelImage},
then:function(F){return _.W("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.W(_.AC,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:F,alt:""}))}}),_.W(_.mn,{text:function(){return C.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"kg"),MEr=_.d(function(C){return _.W("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.CZ(function(){var F;return void((F=C.expandedCallback)==null?void 0:F.call(C,!0))})},_.W("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.W(_.a,{cond:function(){return C.data().collapsedImage},
then:function(F){return _.W("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.W(_.AC,{height:20,preserveHeight:!0,preserveWidth:!0,data:F,alt:""}))}}),_.W(_.a,{cond:function(){return C.data().showLeadingCollapsedLabel},
then:function(){return _.W(Lvx,Object.assign({},C))}}),_.W("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.W(_.mn,{text:function(){return C.data().collapsedTitle}}))),_.W("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.W(_.a,{cond:function(){return!C.data().showLeadingCollapsedLabel},
then:function(){return _.W(Lvx,Object.assign({},C))}}),_.W(_.uC,{data:function(){return C.data().infoButton}},{buttonViewModel:_.tS}),_.W(_.uC,{data:function(){return C.data().expandButton}},{buttonViewModel:function(F){return _.W(_.tS,{data:F.data,
onClick:function(){var G;(G=C.expandedCallback)==null||G.call(C,!0)}})}})))},"lg");_.B08=_.d(function(C){var F=_.u(_.Gb(function(){return C.data().initiallyExpanded})),G=F.next().value,V=F.next().value,J,b=(J=_.I8().resolve(_.Qt(_.v6)))==null?void 0:J(),z=function(){var Q=C.data().colorData;
if(Q)return b?Q==null?void 0:Q.darkColorPalette:Q==null?void 0:Q.lightColorPalette};
return _.W("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.VA({"background-color":function(){var Q=z();return(Q==null?0:Q.section2Color)?_.lE(Q.section2Color):""}})},_.W(_.uC,{data:function(){return C.data().header}},{expandableMetadataHeaderViewModel:function(Q){return _.W(Sqx,{data:Q.data,
expanded:function(){return!!G()},
expandedCallback:function(E){V(E)}})}}),_.W(_.a,{cond:function(){return G()},
then:function(){return _.W("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.W(_.uC,{data:function(){return C.data().expandedContent}},{horizontalShelfViewModel:function(Q){return _.W(_.mQ,{data:Q.data,
includeMargin:!0,forceNarrowLayout:!0,palette:z})},
videoSummaryContentViewModel:function(Q){return _.W(x$u,{data:Q.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(Q){return _.W(_.ZM,{data:Q.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(Q){return _.W(_.TZr,{data:Q.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.W(_.uC,{data:function(){return C.data().expandedBottomButtons}},{buttonViewModel:function(Q){return _.W("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.W(_.tS,{data:Q.data}))}}))}}))},"mg");var vKh=_.d(function(C){var F=C.text;var G=C.marqueeSpacing;var V=C.scrollDelay;var J=C.scrollDuration;var b=C.enableMarqueeScroll;C=C.large;var z=_.u(_.yH(!1,void 0,"WyNYFf")),Q=z.next().value,E=z.next().value,t=_.u(_.yH(0,void 0,"OoTdhe"));z=t.next().value;var k=t.next().value,U=_.Jt("marquee-scroll");t=_.Jt("div");var H=_.Jt("span"),l=_.I8().resolve(_.hC);_.sq(function(){if(b()){var f=H.value.getBoundingClientRect().width,c=U.value.getBoundingClientRect().width;if(f>c){var A=(l==="ltr"?-1:1)*(f+
(G?G():16));Promise.resolve().then(function(){E(!0);k(A)})}}},"dv0Anf");
var N={},S={};return _.W("marquee-scroll",{class:_.py("ytMarqueeScrollHost",(N.ytMarqueeScrollHostLarge=C,N)),el:U},_.W("div",{id:"marquee-scroll-inner-container",class:_.py("ytMarqueeScrollInnerContainer",(S.ytMarqueeScrollAnimationEnabled=function(){return Q()},S)),
el:t,style:_.VA({gap:G?(0,_.bd)(G):"16px","animation-duration":J?x2m(J):"16s","animation-delay":V?x2m(V):"3s","--marquee-translate":(0,_.bd)(z)})},_.W("span",{el:H,dir:"auto"},_.W(_.mn,{text:F,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.W(_.a,{cond:Q,then:function(){return _.W("span",{"aria-hidden":"true",dir:"auto"},_.W(_.mn,{text:F,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"og");_.fBU=_.d(function(C){var F=C.data;var G=C.overlayDensity;C=_.CZ(function(){F().onTapCommand&&_.wQ(F().onTapCommand);return!1});
var V=_.dc9(),J=function(){return(G==null?void 0:G())===1?22:16},b={};
return _.W("reel-sound-metadata-view-model",{class:_.py("ytReelSoundMetadataViewModelHost",(b.ytReelSoundMetadataViewModelHostLarge=function(){return(G==null?void 0:G())===1},b)),
"on:click":C,tabindex:0,role:"button","on:keydown":V},_.W("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.W(_.a,{cond:function(){return F().musicIcon},
then:function(z){return _.W(_.AC,{data:z,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:J})}}),_.W("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.W(vKh,{text:function(){return F().soundMetadata},
enableMarqueeScroll:function(){return!!F().enableMarqueeScroll},
large:function(){return(G==null?void 0:G())===1}}))))},"pg");var hll,c2U,mc,x0L,qqV,d0h,Rll,gKt;hll=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];c2U=_.a8("wil_icon_max_concurrent_fetches",Infinity);
mc=function(C,F,G){var V=this;this.iconSet=C;this.appDirection=F;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.VT.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.y("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.y("wil_icon_network_first");this.renderWhenIdle=_.y("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.y("wil_icon_load_immediately");this.isPurging=!1;C=function(){V.cacheStorageAvailable&&(V.cacheStorageAsync=_.VT.caches.open("yt-icons").then(function(b){return V.cacheStorageSync=b}).catch(function(){V.cacheStorageAvailable=!1}))};
G=(G==null?void 0:G())||{};G=_.u(Object.entries(G));for(F=G.next();!F.done;F=G.next()){var J=_.u(F.value);F=J.next().value;J=J.next().value;J=M4(J);A2W(J);this.iconCache[F]=J.cloneNode(!0)}this.isPurging=el8(this);this.isPurging instanceof Promise?this.isPurging.then(C):C()};
_.A_I=function(C,F){var G=C.resolveIcon(F);return G?C.renderingMode===1?d0h(C,G,C.renderingMode):(F=C.iconCache[G.url])?(F=F.cloneNode(!0),x0L(C,F),d0h(C,G,C.renderingMode,F)):_.sXr(C,G).then(function(V){var J=V?0:1;x0L(C,V);return d0h(C,G,J,V)}):(_.R1(new _.Ay("Icon not found",{iconShape:F})),function(){})};
x0L=function(C,F){if(F){C.counter+=1;C="_yt"+C.counter;F=[F].concat(_.da(F.getElementsByTagName("*")));F=_.u(F);for(var G=F.next();!G.done;G=F.next())if(G=G.value,G.tagName==="style"&&G.textContent)G.textContent=qqV(G.textContent,C,!0);else for(var V=_.u(G.attributes),J=V.next();!J.done;J=V.next()){J=J.value;J.name==="id"&&(J.value+=C);["mask","fill","clip-path"].includes(J.name)&&(J.value=qqV(J.value,C));if(J.name==="style"){var b=G.style;try{b.cssText=qqV(b.cssText,C,!0)}catch(k){var z=void 0,Q=
void 0,E=void 0,t=void 0;Ci({error:((z=k)==null?void 0:(E=(Q=z).toString)==null?void 0:E.call(Q))||"",el:G.outerHTML,style:!!b,cssText:(t=b)==null?void 0:t.cssText})}}J.name==="xlink:href"&&(J.value=J.value.replace(/#(.*)/,"#$1"+C))}}};
qqV=function(C,F,G){var V=/url\(["']?#(.*?)["']?\)/;(G===void 0?0:G)&&(V=/url\(["']?#(.*?)["']?\)/g);return C.replace(V,"url(#$1"+F+")")};
d0h=function(C,F,G,V){return function(J,b){var z;var Q=Object.assign({},{iconWidth:F.size+"px",iconHeight:F.size+"px",iconDisplay:"block"},b,{iconColor:(z=b==null?void 0:b.iconColor)!=null?z:"currentcolor"});z=_.Md("DIV");b=Q.iconColor;var E=Q.iconFilter;Q="width: "+Q.iconWidth+"; height: "+Q.iconHeight+"; display: "+Q.iconDisplay+";";E&&(Q+=" filter: "+E+";");G===0&&(Q+=" fill: "+b+";");G===1&&(E=F.url,Q+=" -webkit-mask: url("+E+") no-repeat center / cover; mask: url("+(E+") no-repeat center / cover; background-color: ")+
b);F.allowMirroring&&C.appDirection==="rtl"&&(Q+=" transform: scale(-1, 1); transform-origin: center center;");z.setAttribute("style",Q);G===0&&V&&z.appendChild(V);J.appendChild(z)}};
_.sXr=function(C,F){var G,V,J;return _.I(function(b){G=function(z){return D0(z)};
V=F.url;if(!PbU(V))throw Error("wj");J=gKt(C,V);return b.return(J.then(function(z){return z.clone().text()}).then(function(z){var Q=G(z);
z=F.size;var E=_.Md("DIV");_.$O(E,Q);Q=_.So(E.firstElementChild!==void 0?E.firstElementChild:_.Efm(E.firstChild,!0));z=A2W(Q,z);C.iconCache[V]=z.cloneNode(!0);delete C.responsePromises[V];return z}).catch(function(){}))})};
Rll=function(C){var F,G=(F=C.requestAninmationFrameResolver)==null?void 0:F.promise;G||(C.requestAninmationFrameResolver=new _.Cd,G=C.requestAninmationFrameResolver.promise,_.VT.requestAnimationFrame(function(){var V;(V=C.requestAninmationFrameResolver)==null||V.resolve();C.requestAninmationFrameResolver=null}));
return G};
gKt=function(C,F){var G,V;return _.I(function(J){if(J.nextAddress==1)return C.waitForAnimationFrame?J.yield(Rll(C),2):J.jumpTo(2);G=C.responsePromises[F];G||(V=function(){var b,z,Q;return _.I(function(E){switch(E.nextAddress){case 1:if(!C.cacheStorageAvailable){b=void 0;E.jumpTo(2);break}if(z=C.cacheStorageSync){E.jumpTo(3);break}return E.yield(C.cacheStorageAsync,4);case 4:z=E.yieldResult;case 3:b=z;case 2:return Q=b,C.isNetworkFirstStrategy?E.return(C.fetchAndUpdateCache(F,Q).catch(C.getCacheStorageResponse.bind(C,
F,Q))):E.return(C.getCacheStorageResponse(F,Q).catch(C.fetchAndUpdateCache.bind(C,F,Q)))}})},G=C.renderWhenIdle?new Promise(function(b,z){_.c8(_.gT,function(){V().then(b).catch(z)},10)}):V(),C.responsePromises[F]=G);
return J.return(G.catch(function(b){delete C.responsePromises[F];Ci({error:(b==null?0:b.toString)?b.toString():"",url:F});throw b;}))})};
mc.prototype.fetchAndUpdateCache=function(C,F){var G=this;return _.I(function(V){return V.return(Yq8(G,C).then(function(J){T0U(G,C,J,F);return J}))})};
var Yq8=function(C,F){var G;return _.I(function(V){if(C.numFetches<c2U)return C.numFetches+=1,V.return(oK3(C,F).finally(function(){--C.numFetches;if(Object.keys(C.queuedResponseResolvers).length){var J=Object.keys(C.queuedResponseResolvers)[0],b=C.queuedResponseResolvers[J];delete C.queuedResponseResolvers[J];b.resolve(Yq8(C,J))}}));
G=new _.Cd;C.queuedResponseResolvers[F]=G;return V.return(G.promise)})},oK3=function(C,F,G){G=G===void 0?2:G;
var V;return _.I(function(J){V={credentials:"same-origin",priority:"low"};return J.return(_.VT.fetch(F,V).then(function(b){return b.ok?b:Promise.reject(Error("xj`"+b.status+"`"+b.statusText))}).catch(function(b){if(G>0)return oK3(C,F,G-1);
throw b;}))})},T0U=function(C,F,G,V){_.I(function(J){return V?J.return(new Promise(function(b){_.c8(_.gT,function(){var z,Q;
return _.I(function(E){switch(E.nextAddress){case 1:if(!C.isNetworkFirstStrategy){z=void 0;E.jumpTo(2);break}return E.yield(V.match(F).catch(function(){}),3);
case 3:z=E.yieldResult;case 2:if(Q=z){E.jumpTo(4);break}return E.yield(V.put(F,G.clone()).catch(function(t){Ci({error:(t==null?0:t.toString)?t.toString():"",url:F})}),4);
case 4:b(),_.S9(E)}})},50)})):J.return()})};
mc.prototype.getCacheStorageResponse=function(C,F){return _.I(function(G){return F?G.return(F.match(C).then(function(V){return V&&V.ok?V:Promise.reject()})):G.return(Promise.reject())})};
var A2W=function(C,F){F===void 0||C.getAttribute("viewBox")||C.setAttribute("viewBox","0 0 "+F+" "+F);C.setAttribute("focusable","false");C.setAttribute("aria-hidden","true");try{C.style.pointerEvents="none",C.style.display="inherit",C.style.width="100%",C.style.height="100%"}catch(J){var G;Ci({error:((G=J)==null?0:G.toString)?J.toString():""});try{C.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(b){var V;Ci({error:((V=b)==null?0:V.toString)?b.toString():
""})}}return C},PbU=function(C){for(var F=_.u(hll),G=F.next();!G.done;G=F.next())if(C.startsWith(G.value)&&C.endsWith(".svg"))return!0;
return!1};
mc.prototype.resolveIcon=function(C){return this.iconSet.resolveIcon(C)};
var Ci=function(C){_.Yw(new _.Ay("Error in IconManager",C))},el8=function(C){if(_.y("wil_icons_cache_purge_killswitch"))return!1;
try{var F=_.VT.localStorage}catch(b){return!1}if(!F||!C.cacheStorageAvailable)return!1;var G=function(b){try{var z;(z=F)==null||z.setItem("yt-icons-last-purged",b.toString())}catch(E){var Q;Ci({error:((Q=E)==null?0:Q.toString)?E.toString():""})}},V=Number(F.getItem("yt-icons-last-purged"));
if(!V)return V=new Date,V=V.setDate(V.getDate()-Math.floor(Math.random()*90+1)),G(V),!1;if(function(b,z){b=new Date(b);z=new Date(z);return z.getMonth()-b.getMonth()+12*(z.getFullYear()-b.getFullYear())}(V,Date.now())<3)return!1;
try{return _.VT.caches.delete("yt-icons").then(function(b){b&&G(Date.now());return b}).catch(function(){return!1}).finally(function(){C.isPurging=!1})}catch(b){var J;
Ci({error:((J=b)==null?0:J.toString)?b.toString():""});return!1}};
mc[Ew]=[Hvr,_.hC,_.Qt(ZvM)];_.js=function(C,F){this.iconManager=C;this.iconsToFetch=F};
_.js[Ew]=[_.mm,_.Qt(yWx)];var r2s=function(){};var Kvs=function(C,F,G){this.requestKey=C;this.pG5=F;this.h7H=G;this.hip=function(){return new XMLHttpRequest};
this.uy5=void 0;this.y9q=[]};
Kvs.prototype.getLatestChallengeResponse=function(){return this.h7H};
var a92=function(C,F,G){var V,J,b,z;return _.I(function(Q){if(Q.nextAddress==1){_.Z8("attestation_challenge_fetch");_.NV("att_fs",void 0,"attestation_challenge_fetch");if(!C.uy5)throw new _.w1(9,"Missing fetcher");return Q.yield(C.uy5(F,G),2)}V=Q.yieldResult;b=(J=V)==null?void 0:J.bgChallenge;if(!b)throw new _.w1(15,"Missing field");C.h7H=V;C.y9q.forEach(function(E){E(V)});
z=xN9(b);_.NV("att_fc",void 0,"attestation_challenge_fetch");HA("attestation_challenge_fetch");return Q.return(z)})},xe2=function(C,F){var G,V,J,b,z;
return _.I(function(Q){switch(Q.nextAddress){case 1:G=new Hk(100,3E5,.25,2),V=void 0;case 2:if(!(G.currBackoffCount_<10)){Q.jumpTo(4);break}_.yy(Q,5);if(!(G.currBackoffCount_>0)){Q.jumpTo(7);break}return Q.yield(ig9(G.getValue()),7);case 7:return Q.yield(D0W(C,F),9);case 9:return J=Q.yieldResult,Q.return(J);case 5:b=_.wa(Q);b instanceof _.w1?V=b:(z=b instanceof Error?b.message:"Unknown",V=new _.w1(9,z));wpu(G);Q.jumpTo(2);break;case 4:if(V)throw V;throw new _.w1(9,"Unknown error");}})},D0W=function(C,
F){F=Jyo($eG(new iD$,F),C.requestKey);
var G=new _.Cd,V=C.hip();V.open("POST",C.pG5);V.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");V.setRequestHeader("Content-Type","application/json+protobuf");V.onload=function(){if(_.J3s(V)){var J=Wp8(V.responseText);G.resolve(J)}else G.reject(new _.w1(_.u$I(_.HD(V)),V.statusText))};
V.onerror=function(){G.reject(new _.w1(_.u$I(_.HD(V)),V.statusText))};
V.send(F.serialize());return G.promise};var m0x=function(C){this.networkStatusManager=C;this.isDownloaded=Rcs===void 0?function(){return!1}:Rcs;
this.isReady=!1;this.w4p=ppd(this)},ppd=function(C){var F;
return _.I(function(G){if(G.nextAddress==1)return G.yield(gno(),2);if(G.nextAddress!=3)return F=G.yieldResult,G.yield(Lgm(F),3);C.iH=G.yieldResult;$uS(C.iH).then(function(){C.isReady=!0});
return G.return(C.iH)})},CRl=function(C,F,G){C.iH?(C=C.iH.hxG({aC:G,
wrY:!0,pro:!0}),F.serviceIntegrityDimensions={poToken:C}):_.gD(Error("zj"))};
m0x.prototype.processContext=function(C){var F=this;if(!C.input.match(_.qW(L_o)))return _.bW();var G=C.innerTubeRequest,V=G.videoId;return!V||this.isDownloaded(G)||this.networkStatusManager&&!this.iH&&!this.networkStatusManager.isNetworkAvailable()?_.bW():this.iH?this.isReady?(CRl(this,G,V),_.bW()):new $X($uS(this.iH).then(function(){CRl(F,G,V)})):new $X(this.w4p.then(function(J){return _.I(function(b){if(b.nextAddress==1)return b.yield($uS(J),2);
CRl(F,G,V);_.S9(b)})}))};var jD_=new _.jh("WEB_PO_CONTEXT_PROCESSOR");var FNs=function(C,F){var G=this;this.fWU=0;var V;this.w9u=(V=F==null?void 0:F.w9u)!=null?V:window;this.networkStatusManagerPromise=F==null?void 0:F.networkStatusManagerPromise;var J;this.requestKey=(J=F==null?void 0:F.requestKey)!=null?J:_.kU("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var b;this.z5T=(b=F==null?void 0:F.z5T)!=null?b:function(E){return new hP(E)};
var z;V=(z=F==null?void 0:F.pxr)!=null?z:function(E,t,k){return new Kvs(E,t,k)};
this.bgChallenge=xN9(C.bgChallenge);this.ttlSeconds=sVo(Bx(C.challenge||""));this.wF=V(this.requestKey,_.y("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.VT.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",C);this.ocx=F==null?void 0:F.ocx;JAB(this.wF);var Q;this.wJn=(Q=F==null?void 0:F.wJn)!=null?Q:function(E){_.IP(G.w9u.document,"visibilitychange",
function(){G.w9u.document.visibilityState==="visible"&&E()})}},V__=function(C){if(!C.vm){var F={maxAttempts:5,
rC2:C.ttlSeconds*1E3};bgf(C.w9u);C.vm=C.z5T({wF:C.wF,c9C:{disable:_.y("html5_web_po_disable_remote_logging"),qx:"aGIf",vxn:jQE("html5_web_po_experiment_ids"),f9Z:_.y("wpo_dis_lfdms")?0:1E3,kV8:function(V){var J=v1$.get(V);J||(J=new BYo(V),J=new OD(J),v1$.set(V,J));return J}},
aJG:F,xFn:C.bgChallenge,rfL:nEB});C.fWU=Date.now();Q88(C.vm,function(){C.fWU=Date.now()});
onI(C.vm,function(){return _.I(function(V){return V.return(GFL(C))})});
var G=C.toI.bind(C);C.networkStatusManagerPromise&&C.ttlSeconds>0&&C.networkStatusManagerPromise.then(function(V){V.listen("publicytnetworkstatus-online",G)});
C.wJn(G)}};
FNs.prototype.toI=function(){if(Date.now()>this.fWU+this.ttlSeconds*1E3){var C;(C=this.vm)==null||zBP(C)}};
var GFL=function(C){if(C.jXJ)return C.jXJ;if(!C.vm)throw Error("Aj");C.jXJ=new d1({vm:C.vm,wF:C.wF,nl9:!0,onError:nEB,aJG:C.ocx});return C.jXJ},z6B=function(C,F){C=new FNs(C,F);
V__(C);(F==null?0:F.tdZ)||GFL(C)};var iWd=_.Pzd.ephemeralActionSelector,FO=function(C,F){this.store=C;this.queue=[];F==null||F.addEventListener("yt-navigate-start",this.reset.bind(this))};
FO.prototype.enqueue=function(C){var F=C.command,G=C.durationMs,V=C.elementToFocus;var J=C.label;var b=C.elementToFocus;C.command?J=_.iQ("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:J,shortcut:_.iQ("SHIFT_PLUS_ENTER")}):b&&(C=J+". "+_.iQ("SHIFT_PLUS_ENTER")+" for more information.",J=_.iQ("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:J,shortcut:_.iQ("SHIFT_PLUS_ENTER")},C));G={announcement:J,durationMs:G!=null?G:8E3};F?G.command=F:V&&(V.classList.add("ephemeral-action-focusable-element"),G.selector=V.tagName+
".ephemeral-action-focusable-element");this.queue.push(G);Jgr(this)};
FO.prototype.activate=function(C){var F=iWd(this.store.getState());if(F){if(F==null?0:F.command)_.ND(F.command),this.store.dispatch(wq8(null));if(F==null?0:F.selector)F=document.querySelector(F.selector),_.Ywf(F);C.preventDefault()}};
var Jgr=function(C){if(!iWd(C.store.getState())&&C.queue.length){var F=C.queue.shift();F&&(C.previousAnnouncement===F.announcement&&(F.announcement+="\u00a0"),C.store.dispatch(wq8(F)),C.previousAnnouncement=F.announcement,C.timeoutId=setTimeout(function(){if(F.selector){var G;(G=document.querySelector(F.selector))==null||G.classList.remove("ephemeral-action-focusable-element")}C.store.dispatch(wq8(null));Jgr(C)},F.durationMs))}};
FO.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(wq8(null));this.queue.length=0;this.timeoutId=void 0};
FO[Ew]=[_.P$,_.Qt(_.Xx)];_.G9=new _.jh("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var $43=new _.jh("AUTH_SERVICE_TOKEN");var EEo=_.h6(["about:blank"]),IgA;var bWV=new _.jh("API_IFRAME_TOKEN"),nnr=new _.jh("FETCH_FN_TOKEN"),uF_=new _.jh("WINDOW_REQUEST_TOKEN"),z7U=new _.jh("TEXT_DECODER_TOKEN");var kn2;kn2=new _.jh("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.QDd=new _.jh("MISC_UI_SHARED_FLAGS_TOKEN");var INd=function(){};
INd.prototype.getFlag=function(C){if(C.configType!==2)throw Error("Bj");return En_(C)};
var En_=function(C){switch(C.flagType){case "bool":return _.y(C.flagName);case "int":return _.eG(_.a8(C.flagName));case "double":return _.a8(C.flagName);case "string":return _.kU(C.flagName);case "int32_list":return jQE(C.flagName);case "int64_list":return jQE(C.flagName).map(function(F){return _.eG(F)});
case "string_list":return _.Uw(C.flagName);default:throw Error("Cj");}};var VP=function(C,F,G){F=F===void 0?{}:F;hB.call(this,G===void 0?"uninitialized":G);this.env=C;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}];F.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=F.shouldWaitOnAsyncImmediate)};
_.O(VP,hB);VP.prototype.init=function(C){var F=this,G;return _.I(function(V){if(V.nextAddress==1)return F.processPluginOptions.shouldWaitOnAsyncImmediate?V.yield(C(F.env),2):(C(F.env),V.jumpTo(2));if(V.nextAddress!=4)return F.jobSet?V.yield(F.jobSet.completedResolver.promise,4):V.jumpTo(4);G=_.Vc();G.parkOrScheduleJob(function(){F.transition("rendering")},10,"ci");
_.S9(V)})};
VP.prototype.initialRender=function(C){var F=this,G;return _.I(function(V){if(V.nextAddress==1)return F.processPluginOptions.shouldWaitOnAsyncImmediate?V.yield(C(F.env),2):(C(F.env),V.jumpTo(2));if(V.nextAddress!=4)return F.jobSet?V.yield(F.jobSet.completedResolver.promise,4):V.jumpTo(4);G=_.Vc();G.parkOrScheduleJob(function(){F.transition("rendered")},10,"cr");
_.S9(V)})};
VP.prototype.afterRenderImmediate=function(C){var F=this,G;return _.I(function(V){if(V.nextAddress==1)return F.processPluginOptions.shouldWaitOnAsyncImmediate?V.yield(C(F.env),2):(C(F.env),V.jumpTo(2));if(V.nextAddress!=4)return F.jobSet?V.yield(F.jobSet.completedResolver.promise,4):V.jumpTo(4);G=_.Vc();G.parkOrScheduleJob(function(){F.transition("after-render-deferred")},10,"carml");
_.S9(V)})};
VP.prototype.afterRenderDeferred=function(C){var F=this;return _.I(function(G){C(F.env);_.S9(G)})};_.Yn("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var WNU={},t_M=(WNU.rendered={priority:0,callback:function(C){pAP(C.injector.resolve(A5))}},WNU);var I1s=new _.jh("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),aNV=new _.jh("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var kFr=function(C){this.callbackFnMap=C;this.configMap={}};
kFr.prototype.handleResponse=function(C){var F;if(C=(F=C.responseContext)==null?void 0:F.serviceTrackingParams)for(F=_.u(C),C=F.next();!C.done;C=F.next()){C=C.value;var G=C.params,V=C.service;if(G&&V){this.configMap[V]||(this.configMap[V]=new C$m);C=this.configMap[V];var J=void 0,b=(J=this.callbackFnMap)==null?void 0:J[V];G=_.u(G);for(V=G.next();!V.done;V=G.next())J=V.value,V=J.key,J=J.value,V&&J&&(C.set(V,J),b&&b(V,J))}}};
kFr.prototype.getConfig=function(C){return this.configMap[C]||void 0};
kFr[Ew]=[_.Qt(aNV)];var U4s=!1,Ogi=0,lgE=null,NAi=null;var HWt=new _.jh("NETWORK_SLI_TOKEN");var lNs=function(C){this.networkSli=C};
lNs.prototype.fetch=function(C,F,G){var V=this,J;return _.I(function(b){J=ygr(V,C,F);return b.return(fetch(J).then(function(z){return V.handleResponse(z,G)}).catch(function(z){_.Yw(z);
if((G==null?0:G.expectJsonStrict)&&z instanceof UP&&z.errorType===1)return Promise.reject(z)}))})};
var QZE=function(C,F,G,V){var J,b,z,Q,E,t,k;return _.I(function(U){switch(U.nextAddress){case 1:return J=ygr(C,F,G),_.yy(U,2),U.yield(fetch(J),4);case 4:b=U.yieldResult;_.Gn(U,3);break;case 2:throw _.wa(U),new UP(2,"Failed to parse streaming response",J.url);case 3:if(!b.redirected&&!b.ok)throw(z=C.networkSli)==null||z.failure(),new _.Ay("Streaming fetch request not ok",J.url);if(!b.body)throw new _.Ay("No response body in streaming response",J.url);Q={};if(_.y("web_streaming_fast"))return E=b.body.getReader(),
U.return(ZWd(C,E,Q,V));t=b.body.pipeThrough(new TextDecoderStream).getReader();k=new _.zD;return U.return(Nid(C,t,k,uOi,Q,V))}})},ygr=function(C,F,G){if(C.networkSli){var V=_.X$(_.P9(F,"key"))||"/UNKNOWN_PATH";
C.networkSli.start(V)}C=G;_.y("wug_networking_gzip_request")&&(C=I5i(G));return new window.Request(F,C)},ZWd=function(C,F,G,V){var J,b,z,Q,E,t,k,U,H,l,N,S,f,c,A,T,P,g,r,C9,Wo,EB,L9,ki,lZ,eq,OB,yr,Rl,w2,jG;
return _.I(function(Il){switch(Il.nextAddress){case 1:J=new TextDecoder("utf-8"),b=[],Q=z=0,_.yy(Il,2,3);case 5:return Il.yield(F.read(),8);case 8:E=Il.yieldResult;t=E.value;if(k=E.done){U=0;if(b.length>z)for(U=b[z].length-Q,H=z+1;H<b.length;H++)U+=b[H].length;U>0&&(l=XHB(b,U,z,Q),N=l.indexOf(123),S=l.lastIndexOf(125),N!==-1&&S!==-1&&S>N&&(f=l.subarray(N,S+1),c=JSON.parse(J.decode(f)),uOi(G,c),A=void 0,(A=V)==null||A(G,c)));T=void 0;(T=C.networkSli)==null||T.success();return Il.return(G)}b.push(t);
P=z;for(g=Q;P<b.length;)if(r=b[P],C9=r.indexOf(10,g),C9===-1){if(P===b.length-1)break;P++;g=0}else{Wo=P;EB=C9+1;L9=0;if(z===Wo)L9=EB-Q;else{L9=b[z].length-Q;for(ki=z+1;ki<Wo;ki++)L9+=b[ki].length;L9+=EB}lZ=XHB(b,L9,z,Q,Wo,EB);eq=lZ.indexOf(123);OB=lZ.lastIndexOf(125);if(eq!==-1&&OB!==-1&&OB>eq){yr=lZ.subarray(eq,OB+1);try{Rl=JSON.parse(J.decode(yr)),uOi(G,Rl),w2=void 0,(w2=V)==null||w2(G,Rl)}catch(Bu){throw new UP(1,"Failed to parse streaming response object",J.decode(yr));}}z=P;g=Q=C9+1;Q===r.length&&
(z++,Q=0,P=z,g=0)}Il.jumpTo(5);break;case 3:_.Na(Il);F.releaseLock();_.XG(Il,0);break;case 2:jG=_.wa(Il);if(jG instanceof UP)throw jG;throw new UP(1,"Failed to process streaming response");}})},Nid=function(C,F,G,V,J,b){var z,Q,E,t,k,U,H,l,N;
return _.I(function(S){if(S.nextAddress==1)return S.yield(F.read(),2);z=S.yieldResult;Q=z.value;if(E=z.done)return(t=C.networkSli)==null||t.success(),S.return(J);try{k=G.parse(Q)}catch(f){throw new UP(1,"Failed to parse streaming response",Q);}if(k!=null)for(U=_.u(k),H=U.next();!H.done;H=U.next())l=H.value,V(J,l),N=void 0,(N=b)==null||N(J,l);return S.return(Nid(C,F,G,V,J,b))})};
lNs.prototype.handleResponse=function(C,F){var G=C.text().then(function(V){if((F==null?0:F.jspbResponseCtor)&&C.ok)return olB(F.jspbResponseCtor,V);V=V.replace(")]}'","");if((F==null?0:F.expectJsonStrict)&&V)try{var J=JSON.parse(V)}catch(z){throw new UP(1,"JSON parsing failed after fetch");}var b;return(b=J)!=null?b:JSON.parse(V)});
C.redirected||C.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),G=G.then(function(V){_.Yw(new _.Ay("Error: API fetch failed",C.status,C.url,V));return Object.assign({},V,{errorMetadata:{status:C.status}})}));
return G};
lNs[Ew]=[_.Qt(HWt)];var OWt=new _.jh("NETWORK_MANAGER_TOKEN");var XQs=[1,2,4,8,16,30],M_r=function(C){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=C.maxTimeMs;this.maxFrameCount=C.maxFrameCount===void 0?Math.ceil(60*C.maxTimeMs/1E3):C.maxFrameCount;C=_.u(XQs);for(var F=C.next();!F.done;F=C.next())this.brokenFrameSummarizers.push(new wQW(F.value/60*1E3))},S0r=function(C){var F=C.frameCountInternal>=C.maxFrameCount;
return C.elapsedTimeMs>=C.maxTimeMs||F};
M_r.prototype.summarize=function(){for(var C=[],F=_.u(this.brokenFrameSummarizers),G=F.next();!G.done;G=F.next())G=G.value,G=G.brokenFrameCount!==0?{severityMs:Math.round(G.targetFrameTimeMs),eventCount:G.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(G.averageDurationBetweenEventsMs)}:void 0,G&&C.push(G);return{summaries:C,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.I6.Object.defineProperties(M_r.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 wQW=function(C){this.targetFrameTimeMs=C;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.I6.Object.defineProperties(wQW.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var LNL=function(){};
LNL.prototype.start=function(C,F){var G=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var V=new M_r({maxTimeMs:C});this.monitor=V;this.lastSummaryInternal=void 0;this.metadataToLog=F;return new Promise(function(J){var b=function(z){if(z===void 0)G.stop(),J(void 0);else if(G.monitor!==V)z=Object.assign({},V.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),J(z);else{var Q=G.monitor;if(!S0r(Q)){Q.frameCountInternal++;if(Q.prevTime===
void 0)Q.startTime=z;else for(var E=z-Q.prevTime,t=_.u(Q.brokenFrameSummarizers),k=t.next();!k.done;k=t.next()){k=k.value;var U=k.currTimeMs;k.currTimeMs+=E;E>k.targetFrameTimeMs+2&&(k.brokenFrameCount++,k.timeOfFirstBrokenFrameMs===void 0&&(k.timeOfFirstBrokenFrameMs=U),k.timeOfLastBrokenFrameMs=U)}Q.prevTime=z}S0r(G.monitor)?J(G.stop()):_.gT.addJob(b,5,0)}};
_.gT.addJob(b,5,0)})};
LNL.prototype.stop=function(C){if(!this.monitor)return this.lastSummaryInternal;var F=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(F.monitoringDurationMs){C=C!=null?C:this.metadataToLog;var G={droppedFramesSummary:F,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};C&&(G[C.type]=C.data);_.q1("manualSmoothnessMeasurement",G)}this.monitor=void 0;this.lastSummaryInternal=F;this.metadataToLog=void 0;return F};_.BiW=new _.jh("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var vnx;vnx=function(C){this.JSC$18788_expiringStorage=new dj(C)};
_.fN_=function(C){if(_.wHw()&&(C=_.gBI(_.hy()+"::"+C)))return new vnx(C)};
vnx.prototype.set=function(C,F,G){G=G!==void 0?Date.now()+G:void 0;this.JSC$18788_expiringStorage.set(C,F,G)};
vnx.prototype.get=function(C){return this.JSC$18788_expiringStorage.get(C)};
vnx.prototype.remove=function(C){this.JSC$18788_expiringStorage.remove(C)};_.i3=function(){};
_.i3.getInstance=function(){var C=_.mN("ytglobal.storage_");C||(C=new _.i3,_.zn("ytglobal.storage_",C));return C};
_.i3.prototype.estimate=function(){var C,F,G;return _.I(function(V){C=navigator;return((F=C.storage)==null?0:F.estimate)?V.return(C.storage.estimate()):((G=C.webkitTemporaryStorage)==null?0:G.queryUsageAndQuota)?V.return(MFZ()):V.return()})};
_.zn("ytglobal.storageClass_",_.i3);var cAq=0;var Pkw=!1;var h7_=_.h6(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),cgM=_.h6(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var kkr={"/":_.fQ,"/?feature=ytca":_.fQ,"/feed/downloads":_.gmi};var AgL=Rnl.continuationCommandSelector,V7=function(C,F,G){this.JSC$18804_upliftPromise=C;this.store=F;this.JSC$18804_persistentStorePromiseAccessor=G};
V7.prototype.shouldPreferLocalResponse=function(C){return C.browseId==="FEdownloads"||C.browseId==="FEsmart_downloads"&&_.y("kevlar_modern_downloads_page")?!0:!1};
V7.prototype.localInnertubeResponse=function(C){var F=this;return _.I(function(G){return C.browseId==="FEdownloads"?_.y("kevlar_modern_downloads_page")?G.return(e7h(F)):G.return(d4M(F)):C.browseId==="FEsmart_downloads"&&_.y("kevlar_modern_downloads_page")?G.return(x48(F)):G.return(Promise.reject(Error("Ej")))})};
V7.prototype.canProvideFallbackResponse=function(){return!0};
V7.prototype.localFallbackInnertubeResponse=function(C){var F=this,G,V,J;return _.I(function(b){switch(b.nextAddress){case 1:return b.yield(F.JSC$18804_persistentStorePromiseAccessor(),2);case 2:G=b.yieldResult;if(C.browseId!=="SPaccount_downloads"||!G){b.jumpTo(3);break}return b.yield(ggA(G),4);case 4:if(V=b.yieldResult)return b.return(_.qx(V));case 3:return C.browseId==="FEwhat_to_watch"?b.return(sDl(F)):(J=_.y("web_offline_continuation_automatic_retry")||_.y("web_offline_continuation_retry_button"))&&
C.continuation?b.return(q0h(F)):b.return(PRh(F))}})};
var sDl=function(C){var F;return _.I(function(G){if(G.nextAddress==1)return G.yield(C.JSC$18804_upliftPromise,2);F=_.WPw(C.store.getState().entities);return F.length?G.return(gnV(C,F)):G.return(PRh(C))})},d4M=function(C){var F,G;
return _.I(function(V){if(V.nextAddress==1)return V.yield(C.JSC$18804_upliftPromise,2);if(V.nextAddress!=3)return F=R7U([{offlineItemSectionRenderer:{}}]),V.yield(Y0U(C,F),3);G=V.yieldResult;G.onResponseReceivedActions=[jZ("REFRESH_DOWNLOADS")];return V.return(G)})},e7h=function(C){var F,G,V,J,b,z,Q,E,t,k,U,H,l,N,S,f;
return _.I(function(c){if(c.nextAddress==1)return c.yield(C.JSC$18804_upliftPromise,2);if(c.nextAddress!=3)return F=C.store.getState(),G=F.entities,V=_.aA(G),J=_.k2(G),b=_.Tqo(F),z=_.Ybi(F),Q=_.oa9(F),E=_.kVS(G),t=_.zc(V),k=_.U3(G),U=_.ySS(G),H=_.KPB(F),l=_.NW(F),N={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.imI(V,J,E,U,b,z,t,k,Q,H,l),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},S="",_.y("kevlar_modern_downloads_skip_downloads_title")||
(S=_.iQ("DOWNLOADS",void 0,"Downloads")),c.yield(Ti_(C,N,S),3);f=c.yieldResult;f.onResponseReceivedActions=[jZ("REFRESH_DOWNLOADS")];return c.return(f)})},x48=function(C){var F,G,V,J,b,z,Q,E,t;
return _.I(function(k){if(k.nextAddress==1)return k.yield(C.JSC$18804_upliftPromise,2);if(k.nextAddress!=3)return F=C.store.getState(),G=F.entities,V=_.aA(G),J=_.zc(V),b=_.U3(G),z={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.$Cs(V),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},Q=_.iQ("SMART_DOWNLOADS",void 0,"Smart downloads"),E=GXq(J,b),k.yield(Ti_(C,z,Q,E),3);t=k.yieldResult;t.onResponseReceivedActions=
[jZ("REFRESH_DOWNLOADS")];return k.return(t)})},PRh=function(C){var F,G;
return _.I(function(V){if(V.nextAddress==1)return V.yield(sp(C.JSC$18804_upliftPromise,C.store),2);F=V.yieldResult;G=R7U([xpB(F)]);return V.return(Y0U(C,G))})},q0h=function(C){var F,G,V,J;
return _.I(function(b){if(b.nextAddress==1)return F={},G=AgL(C.store.getState()),_.ke(F,_.O4,G),b.yield(sp(C.JSC$18804_upliftPromise,C.store,F,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);V=b.yieldResult;J={};_.ke(J,_.X3$,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:V}}}],targetId:"browse-feedFEwhat_to_watch"});return b.return({responseContext:{},onResponseReceivedActions:[J]})})},R7U=function(C){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:C}}}}]}}},gnV=function(C,F){var G,V;
return _.I(function(J){var b={contents:Fc(F)};G=b&&b.contents?b:{};_.y("kevlar_modern_downloads_page")&&(G=Object.assign({},_.bmS(F),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));V={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:G}}}]}};return J.return(Y0U(C,V))})},Y0U=function(C,F){var G,V;
return _.I(function(J){if(J.nextAddress==1)return J.yield(C.JSC$18804_persistentStorePromiseAccessor(),2);if(J.nextAddress!=3)return G=J.yieldResult,J.yield(Px(G),3);V=J.yieldResult;return J.return({responseContext:{},contents:F,topbar:V})})},Ti_=function(C,F,G,V){var J,b;
return _.I(function(z){if(z.nextAddress==1)return z.yield(C.JSC$18804_persistentStorePromiseAccessor(),2);if(z.nextAddress!=3)return J=z.yieldResult,z.yield(Px(J),3);b=z.yieldResult;var Q=z.return;var E=G;var t=V;E=E===void 0?"":E;t=t===void 0?"":t;E={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:E}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.iQ("SETTINGS",void 0,"Settings"),accessibilityText:_.iQ("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:_.gh("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:t}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:E};
return Q.call(z,{responseContext:{},contents:F,topbar:b,header:{pageHeaderRenderer:E}})})};var onW=function(){this.moduleRegistry={};this.fetchCount=0};
onW.prototype.isFetching=function(){return this.fetchCount>0};
var XD=function(C,F){C.moduleRegistry[F.toString()]={asyncId:F,isFetching:!1};return C};
onW.prototype.JSC$18815_loadModules=function(){for(var C=this,F=new Map,G=[],V=_.u(_.Rn.apply(0,arguments)),J=V.next();!J.done;J=V.next()){J=J.value;var b=this.moduleRegistry[J];b?b.resolver?F.set(J,b.resolver):(b.resolver=new _.Cd,F.set(J,b.resolver),G.push(b.asyncId),b.isFetching=!0):(b=new _.Cd,F.set(J,b),b.resolve(void 0))}G.length&&(this.fetchCount+=1,_.OW(_.Ya.getMultipleAsync.apply(_.Ya,_.da(G)).then(function(z){for(var Q=0;Q<G.length;Q++){var E=z[Q],t=C.moduleRegistry[G[Q].toString()];t.isFetching=
!1;t.resolver.resolve(E)}}).catch(function(z){for(var Q=_.u(G),E=Q.next();!E.done;E=Q.next()){E=E.value;
var t=C.moduleRegistry[E.toString()];t.resolver=void 0;t.isFetching=!1;F.get(E.toString()).reject(z)}}),function(){--C.fetchCount}));
return Promise.all([].concat(_.da(F.values())).map(function(z){return z.promise}))};_.wp=new _.jh("MODULE_REGISTRY_TOKEN");var rgU={},KNt=(rgU.rendered={priority:0,callback:function(C){a:{var F=void 0;try{var G;b:{if(_.R3E()){var V=_.PQI(_.hy()+"::pom");if(V){var J=new S8(V);break b}}J=void 0}var b=(G=J)==null?void 0:G.get("role_text");if(!b)break a;F={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:b}]}}}}}}catch(E){}F&&C.injector.resolve(_.WD).resolveCommand(F)}try{var z=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(z){var Q=JSON.parse(z);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
Q&&C.injector.resolve(_.WD).resolveCommand(Q)}}catch(E){}}},rgU);var D4l,pQ8={},m4V=(pQ8.initialized={priority:10,callback:function(){D4l=IE()}},pQ8.rendering={callback:function(C){var F;
return _.I(function(G){if(G.nextAddress==1)return G.yield(D4l,2);F=G.yieldResult;if(!F.endpoint)throw Error("Gj`"+_.VT.location.href);aE(C,F);_.S9(G)})}},pQ8);var CHM={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/rq-implicit-test-rule-widget/,weight:0},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.da(_.y("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(C){var F=C.stack;if(F.includes("chrome://")||F.includes("chrome-extension://")||C.message.includes("chrome-extension://")||F.includes("moz-extension://")||F.includes("local.adguard.org")||F.includes("auctioneer3.50million.club")||F.includes("youtubedownloader")||
F.includes("youtube_home_page")||F.includes("is_youtube_video_no_longer_available")||F.includes("switchScreenSizeHack")||F.includes("yt_main_big_banner.js")||F.includes("YouTubeCenter.js")||F.includes("/mytube.js")||F.includes("JSON.parseWrapper")||F.includes("/inj_js/common.js")||F.includes("firebug-lite")||F.includes(".repl.co/")||F.includes("linkfix")||F.includes("playAfterAd")||C.message.includes("Access is denied for this document")&&F.includes("<anonymous>")||C.fileName==="user-script"||C.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
F.includes("<anonymous>"))return!0;if(F.includes("https://www.youtube.com"))return!1;C=F.split("\n");if(!C.length)return!1;if(C.length<=3&&F.includes("s.onloadeddata"))return!0;F=0;for(var G=_.u(C),V=G.next();!V.done;V=G.next())V=V.value,(V.includes("https://")||V.includes("http://"))&&F++;return F/C.length>.95},
weight:0},{callback:function(C){return C.message==="Unknown Error"&&C.name.indexOf("NS_")===0},
weight:100},{callback:function(C){if(!_.rp)return!1;var F=C.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||C.message.includes("available to complete this operation"),G=C.stack.includes("webcomponents")&&C.message==="Object doesn't support this action";C=C.message.includes("object that does not implement interface Element");return F||G||C},
weight:0},{callback:function(C){return C.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(C){return C.message==="Operation is not supported"&&(C.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(C){return C.stack.includes("eval code (eval (code:1:1)")||C.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(C){return C.message.includes("Permission denied")&&C.stack.includes("this.domHandler")?!0:C.name.includes("TypeError")&&C.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(C){if(!C.stack)return!1;var F=C.stack.trim().split("\n");F.length&&F[0].endsWith("Error: "+C.message)&&F.shift();F.length&&F[F.length-1].includes("at window.onerror (")&&F.pop();if(!F.length)return!0;if(C.message==="Script error.")return F[0].includes("www.youtube.com")||F.length>=2&&F[0].startsWith("at new")&&F[1].startsWith("at window.onerror");if(C.message==="Unexpected token")return!0;C=_.u(F);for(F=C.next();!F.done;F=C.next())if(F=F.value,!(F.includes("<anonymous>")||
F.startsWith("load@")||F.startsWith("global code@")||F.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(C){return C.message==="Cannot read property 'experiments'"&&C.stack.includes("/s/player/")},
weight:500},{callback:function(C){return C.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(C){return C.stack.includes("/embed.js")?(C.params&&C.params&&(C.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.y("use_error_suppression"))var C=_.TF("SUPPRESS_CLIENT_ERRORS",!1);else{if(C=_.C2)C=/Chrome\/(\d+)/.exec(_.UB()),C=(C?parseFloat(C[1]):NaN)>=66;C=!(C||_.m4&&_.pV(65)||_.KD&&_.pV(12.1)||nO&&_.pV(79))}return C},
weight:500}]};var j8_={},Fxr=(j8_.initialized={priority:10,callback:function(C){C.injector.addProvider({provide:VA$,useValue:C.root});C.injector.addProvider({provide:Xkh,useValue:dG9});C.injector.addProvider({provide:wkt,useValue:CHM});var F={};C.injector.addProvider((F.provide=Mox,F.useFactory=function(G,V){return function(){nGW(G,V)}},F[Ew]=[Xkh,
wkt],F));C.injector.addProvider({provide:wB,useClass:wB})}},j8_);var GNM={},VPU=(GNM.initialized={priority:3,callback:function(){var C;if(C=c3S()){C=C.replace("/",".");var F=_.bQ();F.set("tz",C);F.save();C=!0}else C=!1;C||(C=_.bQ(),C.set("utco",-Math.floor((new Date).getTimezoneOffset())),C.save())}},GNM);var iDd={},Jy3=(iDd.initialized={priority:10,callback:function(C){C.injector.resolve(wB).start();C=_.vr();var F=_.oD("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.oD("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.oD("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.oD("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.m8(_.OqZ(),{mainAppWeb:Object.assign({},C,{pageType:F})});_.m8(wPA(),{mainAppWeb:Object.assign({},C,{pageType:F})});
_.m8(MHo(),{mainAppWeb:C});_.m8(SXB(),{mainAppWeb:C});uIE(function(){_.CV(MHo(),"FAILURE");_.CV(SXB(),"FAILURE")});
Gx9();VJf();h3T()}},iDd);var $eU={},bDL=($eU.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.NV("dl"),_.Vc().processSignal("pcl");else{var C=function(){_.NV("dl");_.Vc().processSignal("pcl");window.removeEventListener("load",C)};
window.addEventListener("load",C)}}},$eU);var nUr={},u$W=(nUr.rendering={priority:0,callback:function(){var C=_.Vc();C.parkOrScheduleJob(function(){C.processSignal("eocs")},10,"eor",5E3)}},nUr);var zBt=function(){};
_.O(zBt,mu);
zBt.prototype.resolveCommand=function(C,F){var G,V,J,b,z,Q,E,t;return _.I(function(k){J=(G=_.Z(C,_.T6u))==null?void 0:(V=G.dialog)==null?void 0:V.commentReplyDialogRenderer;if(!J)throw new _.Ay("No dialog in createCommentReplyDialogEndpoint");z=(b=F.form)==null?void 0:b.event;if(!z)throw new _.Ay("Event not passed in when resolving command");Q=_.u(z.composedPath());for(E=Q.next();!E.done;E=Q.next())if(t=E.value,t.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||t.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return t.showReplyDialog(J),k.return();
_.S9(k)})};var JU=function(){};
_.O(JU,mu);JU.prototype.resolveCommand=function(C){var F,G,V;return _.I(function(J){if(J.nextAddress==1)return F=_.Z(C,JY7),(G=F)!=null&&G.externalChannelId?J.yield((0,_.GZZ)("NSzT5"),2):J.return();V=_.Q8s;return J.yield(V(F.externalChannelId),0)})};var $A=function(C){this.JSC$18833_pageRequestService=C;this.JSC$18833_prefetchCoordinator=Ia_()};
_.O($A,mu);$A.prototype.resolveCommand=function(C){var F=this,G,V,J,b;return _.I(function(z){if(z.nextAddress==1){G=_.Z(C,Xnl);if((V=G)==null||!V.taskId)throw Error("Hj");J=G.taskId;_.yy(z,2);return z.yield(_.qsU(F.JSC$18833_pageRequestService,C,{},"").then(function(Q){if(!Q)throw Error("Ij");},function(Q){throw Error("Jj`"+Q);
}),4)}if(z.nextAddress!=2)return toV(F.JSC$18833_prefetchCoordinator,J),_.Gn(z,0);
b=_.wa(z);dy(F.JSC$18833_prefetchCoordinator,J,b);_.S9(z)})};
$A[Ew]=[_.Q7];var b3=function(C,F){this.innertubeTransportService=C;this.JSC$18837_commandHandler=F};
_.O(b3,mu);b3.prototype.resolveCommand=function(C){var F=this,G,V,J;return _.I(function(b){if(b.nextAddress==1){G=_.Z(C,NK8);if(G.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||G.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")V=G.boolValue?2:1,_.Ef.getInstance().setState(V,!0,!0);return b.yield(_.fZ(F.innertubeTransportService,C),2)}J=b.yieldResult;I9_(F,J);_.S9(b)})};
var I9_=function(C,F){F.actions&&F.actions.forEach(function(G){C.JSC$18837_commandHandler.resolveCommand(G)})};
b3[Ew]=[_.Qk,_.WD];var ni={},u3=(ni.addToPlaylistEndpoint=PA(Dz),ni.addToToastAction=PA(io),ni.adsControlFlowOpportunityReceivedCommand=PA(BR),ni.audioTrackSelectActionCommand=PA(IB),ni.backgroundAudioPlaybackCommand=PA(EN),ni.captionLanguageSelectActionCommand=PA(WK),ni.captionPickerEndpoint=PA(tQ),ni.changeMiniAppPlayStateCommand=PA(pG),ni.changeTimelyActionVisibilityCommand=PA(VQ),ni.channelCreationFormEndpoint=PA(Ru),ni.clearLocationCommand=PA(KG),ni.clearUrlParamCommand=PA(mR),ni.copyLinkCommand=PA(N9),ni.copyTextEndpoint=
PA(cR),ni.createCommentReplyDialogEndpoint=LoW(zBt),ni.createPlaylistServiceEndpoint=PA(ON),ni.dismissDialogEndpoint=PA(j4),ni.dismissPlayerOverlayCommand=PA(aB),ni.entityUpdateCommand=PA(ed),ni.feedbackEndpoint=PA(sc),ni.getAnswerCommand=PA(Fi8),ni.getPaymentsClientTokenCommand=PA(QQ),ni.getTranscriptEndpoint=PA(Jx),ni.googlePaymentBillingCommand=PA(IT),ni.googlePaymentPurchaseManagerCommand=PA(EP),ni.hideEngagementPanelEndpoint=PA(Fq),ni.hideSheetCommand=PA(V$),ni.hideSnackbarCommand=PA(Dv),ni.insertRichSectionCommand=
PA(Tj),ni.listMutationCommand=PA(ou),ni.logGtmCommand=PA(YR),ni.notifyDropdownOptionSelectedCommand=PA(CL),ni.openAdAllowlistInstructionCommand=PA(_.vR),ni.openOnePickAddVideoModalCommand=PA(Xq),ni.persistSubscriptionsDisplayPreferencesCommand=PA(vK),ni.pingingEndpoint=PA(fG),ni.playlistEditEndpoint=PA(M9),ni.playlistVotingRefreshPopupCommand=PA(S4),ni.profileCardCommand=PA(LG),ni.refreshPanelEndpoint=PA(iv),ni.saveImageToDeviceEndpoint=PA(A$),ni.scrollToSectionEndpoint=LoW(Gk3),ni.seekToVideoTimestampCommand=
PA(k5),ni.selectCountryCommand=PA(fL),ni.setCookieCommand=PA(hQ),ni.setLocalStorageCommand=PA(mz),ni.setPrefStorageEntryCommand=PA(AQ),ni.setSettingEndpoint=PA(b3),ni.sfvAudioItemPlaybackCommand=PA(UN),ni.shareImageCommand=PA(e4),ni.sharingProviderDataCommand=PA(de),ni.showAudioTrackPickerActionCommand=PA(HK),ni.showCaptionLanguageSelectActionCommand=PA(lv),ni.showCreatorChatbotEngagementPanelCommand=PA(JU),ni.showDialogCommand=PA(bv),ni.showEngagementPanelEndpoint=PA(nL),ni.showFullscreenPlayerControlsCommand=
PA(y$),ni.showSheetCommand=PA(uv),ni.showSnackbarCommand=PA(pL),ni.showTransientPlayerScrimOverlayCommand=PA(Zv),ni.submitFormWithValidationFlowCommand=PA(gN),ni.talkToRecsDeselectCommand=PA(Cz),ni.talkToRecsNextCommand=PA(j2),ni.talkToRecsSelectCommand=PA(Fr),ni.talkToRecsUpdateTextCommand=PA(Ga),ni.toggleEngagementPanelCommand=PA(zP),ni.undoFeedbackEndpoint=PA(PR),ni.updateEngagementPanelContentCommand=PA(Q$),ni.updateUrlParamCommand=PA($3),ni.updateVideoMetadataCommand=PA(za),ni.verifyCommand=
PA(Ru),ni.webNativeShareCommand=PA(x5),ni.webSubmitFormCommand=PA(LL),ni.ACK_PLAYABLES_3P_DATA_CONSENT=PA(sN),ni.CANCEL_NAVIGATION=PA(q9),ni.COPY_SHARE_URL=PA(PK),ni.MINI_APP_EXIT_DIALOG_SEEN=PA(RB),ni.MINI_APP_OPEN_URL=PA(ge),ni.REQUEST_MINI_APP_FULLSCREEN=PA(Y5),ni.RESUME_NAVIGATION=PA(TP),ni.SHARE_PLAYABLE_WITH_HIGH_SCORE=PA(oB),ni.TELL_US_WHY=PA(qB),ni);_.y("web_enable_prefetching_videos_on_home")&&(u3.prefetchWatchCommand=PA($A),u3.registerTasksCommand=PA(sS));
_.y("enable_share_panel_navigation_logging_fix_on_web")&&(u3.shareEntityServiceEndpoint=PA(JQ));_.y("web_use_flow_state_manager")&&(u3.flowNextStepCommand=PA(I6V),u3.flowPrevStepCommand=PA(Wbx),u3.getFlowCommand=PA(a6r),u3.updateFlowCommand=PA(XB));_.y("enable_ai_companion")&&(u3.updateConversationIdCommand=PA(h$));var eCG=Object.assign({},u3);var EUd={},WxM=(EUd.initialized={priority:10,callback:zkq},EUd);var tPU={},a9W=(tPU.initialized={callback:function(C){var F={},G={};jbi().install((F.document_disposed={callback:function(){_.y("finalize_all_timelines")?oDE():kB();yAA("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.k0T();var V=C.injector.resolve(wB);V.intervalId!==void 0&&(V.intervalId&&_.gT.cancelJob(V.intervalId),V.intervalId=void 0,--V.currentPartitionIndex,V=gQm(V),V>0&&lMG({mainAppWeb:_.vr(),survivalSli:{partitionMinute:V,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));IMS(iW);JK!=null&&
JK.flush();rd&&rd.snapshotAndFlush();V=_.u(v1$.values());for(var J=V.next();!J.done;J=V.next())J.value.snapshotAndFlush()}},F),(G.flush_logs={callback:function(){_.P8()}},G))}},tPU);var kN8={},Ue8=(kN8.rendered={priority:0,callback:function(){var C=new KxG;C.increment("STARTED");if(_.TF("LOGGED_IN")&&!_.TF("IS_DBSC",!1)&&_.TF("SERVER_VERSION")!=="test"&&_.TF("SERVER_VERSION")!=="dev"&&!f6E()&&!vOS()){C.increment("EXECUTING");var F=document.createElement("iframe");F.style.display="none";_.I6o(F,2,_.Ph("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.TF("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(F);C.increment("DONE")}}},
kN8);var HDM={},l93=(HDM.rendered={callback:function(){Ia_().resume()}},HDM);var yys={acknowledgeChannelTouStrikeCommand:XX(rL),addToPlaylistServiceEndpoint:XX(pj),addToPlaylistEndpoint:XX(pj),addUpcomingEventReminderEndpoint:XX(te),browseEndpoint:XX(DlU),channelCreationFormEndpoint:XX(q6),channelCreationServiceEndpoint:XX(Pm),claimLegacyYoutubeChannelEndpoint:XX(wL),clearSearchHistoryEndpoint:XX(nj),clearWatchHistoryEndpoint:XX(uA),commerceActionCommand:wE(US),createBackstagePostEndpoint:XX(lo),createBroadcastCommand:XX(aU),createCommentEndpoint:XX(e2),createCommentReplyEndpoint:XX(Ax),
createLiveChatPollEndpoint:XX(ko),createPlaylistServiceEndpoint:XX(mG),crossAccountChannelTransferEndpoint:XX(IU),deleteLiveChatMessageCommand:XX(Ue),deletePlaylistEndpoint:XX(CI),deleteVideoEndpoint:XX(W7),dismissalEndpoint:XX(Kz),feedbackEndpoint:XX(Dl),flagEndpoint:XX(J_),getAccountSwitcherEndpoint:XX(Qv),verifyCommand:XX(Hm),getAccountsListInnertubeEndpoint:XX(WE),getCommentsFromInboxCommand:XX(he),getDownloadActionCommand:XX(qI),getFlowCommand:wE(bA),getKidsBlocklistPickerCommand:XX($M),getNotificationMenuEndpoint:XX(CzV),
getPaymentInstrumentsParamsCommand:XX(OS),getPaymentsClientTokenCommand:wE(US),getPdgBuyFlowCommand:XX(Kj),getReportFormEndpoint:XX(b$),getSearchInVideoCommand:XX(zg),getAnswerCommand:XX(u$),getSurveyCommand:XX(ES),getTranscriptEndpoint:XX(aZ),getPostVideoPreviewEndpoint:XX(Zl),decorateMessageEndpoint:XX(yQ),likeEndpoint:XX(gL),liveChatActionEndpoint:XX(ZG),liveChatEndpoint:XX(yv),liveChatItemContextMenuEndpoint:XX(HE),liveChatPurchaseMessageEndpoint:XX(NI),liveChatReplayEndpoint:XX(lA),manageLiveChatUserEndpoint:XX(Xg),
metadataUpdateCommand:XX(vE),moderateLiveChatEndpoint:XX(wx),modifyChannelNotificationPreferenceEndpoint:XX(dx),notificationOptOutEndpoint:XX(xo),openSuperStickerBuyFlowCommand:XX(Oe),performCommentActionEndpoint:XX(fz),playlistEditEndpoint:XX(FR),playlistEditorEndpoint:XX(jk),recordNotificationInteractionsEndpoint:XX(se),reelWatchEndpoint:XX(Gg),refreshPanelEndpoint:XX(gx),removeUpcomingEventReminderEndpoint:XX(MI),resolveLocationCommand:XX(BE),revealBusinessEmailCommand:XX(M6),searchEndpoint:XX(_.jMM),
sendLiveChatMessageEndpoint:XX(SO),sendLiveChatVoteEndpoint:XX(Lj),setSettingEndpoint:XX(RT),shareEntityServiceEndpoint:wE(oT),sharingProviderDataCommand:XX(IZ),showEngagementPanelEndpoint:XX(RU),showMoreDrawerCommand:XX(Tr),showSheetCommand:XX(oU),showDialogCommand:XX(Yo),subscribeEndpoint:XX(Y3),transcriptSubmitCaptionCorrectionCommand:XX(t_),undoFeedbackEndpoint:XX(mI),unsubscribeEndpoint:XX(Ta),updateBackstagePostEndpoint:XX(OP),updateCommentEndpoint:XX(x3),updateCommentReplyEndpoint:XX(dL),updateCommentsSettingsEndpoint:XX(sP),
updateCreatorChannelInnertubeCommand:XX(Lz),updateKidsBlacklistEndpoint:XX(nI),updateEngagementPanelContentCommand:XX(rx),updatePdgFeatureEnablementCommand:XX(DG),updatedMetadataEndpoint:XX(fj),validateChannelHandleCommand:XX(Bm),updateChannelPageSettingsEndpoint:XX(S2),verifyAgeEndpoint:XX(Cj),watchEndpoint:wE(tx),whitelistEditEndpoint:XX(kM),ypcCancelRecurrenceEndpoint:XX(H7),ypcCompleteTransactionEndpoint:XX(l$),ypcFixInstrumentEndpoint:XX(ZV),ypcGetCartEndpoint:XX(yK),ypcGetOffersEndpoint:XX(N8),
ypcHandleTransactionEndpoint:wE(wy),ypcLogWalletAnalyticDataEndpoint:XX(M8),ypcOffersEndpoint:XX(Sk),ypcPauseSubscriptionCommand:XX(LI),ypcRedeemCodeEndpoint:XX(B7),ypcResumeSubscriptionCommand:XX(v7),ypcUpdateFopEndpoint:XX(ZV)},z9={},ZDx=(z9.GET_ACCOUNT_MENU=XX(Ee),z9.GET_NOTIFICATIONS_MENU=XX(ml3),z9.GET_NOTIFICATIONS_INBOX=XX(cE),z9.GET_UNSEEN_NOTIFICATION_COUNT=XX(eO),z9.GET_USER_MENTION_SUGGESTIONS=XX(N6),z9.LOAD_GUIDE=XX(pjV),z9.SUBMIT_FEEDBACK=XX(pz),z9),QP={},Njt=(QP.CONTINUATION_REQUEST_TYPE_BROWSE=
XX(Xr),QP.CONTINUATION_REQUEST_TYPE_SEARCH=XX(QK),QP.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=XX(uo),QP.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=XX(zr),QP.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=XX(cm),QP.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=XX(hx),QP.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=XX(i$),QP.CONTINUATION_REQUEST_TYPE_GET_PANEL=XX(PE),QP),ODs={player:wE(tx),watchNext:XX(nz)},XD3={player:wE(tx),reelItemWatch:XX(Gg),reelWatchSequence:XX(VK)},wD3={watchEndpoint:wE(aT)},MPr=
{commandEndpointMap:yys,signalEndpointMap:ZDx,continuationEndpointMap:Njt,watchEndpointMap:ODs,reelWatchEndpointMap:XD3,streamingEndpointMap:wD3};var SwM,Lx3,BjU;_.vUr=((Lx3=(SwM=window).matchMedia)==null?void 0:(BjU=Lx3.call(SwM,"(prefers-reduced-motion: reduce)"))==null?void 0:BjU.matches)||!document.startViewTransition;var f9l={},hBd={disableAllTransitions:_.vUr,ignoredErrors:(f9l.DOCUMENT_HIDDEN=!0,f9l.WINDOW_SIZE_CHANGED=!0,f9l.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,f9l),transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["lockup-to-watch",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["watch-next-appears",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:200}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,
skipTransitionTimeoutMs:600}}]])};var cyV=_.h6("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n            --ytd-vtm-watch-next-exit-ms: ,ms;\n            --ytd-vtm-watch-next-wait-ms: ,ms;\n            --ytd-vtm-watch-next-enter-ms: ,ms;\n          }\n      ".split(",")),eBt=function(C){var F=this;this.viewTransitionCoordinator=
C;this.isBrowseTransitionEnabled=_.kU("web_page_transition_type")==="slide";this.isLockupToWatchTransitionEnabled=_.y("web_thumbnail_to_watch_transition");this.isLockupThumbnailRegistrationEnabled=_.y("web_thumbnail_to_watch_transition_register_thumbnail");this.isLearningJourneyTransitionEnabled=_.y("enable_plj_landing_page");this.lockupToWatchPlayerTransitionType=_.kU("web_thumbnail_to_watch_player_transition_type");this.enableFasterTransitions=_.y("web_enable_faster_page_transitions");this.isAnyTransitionEnabled=
this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.isUltraHighBucketDevice=AyV();this.lockupThumbnailRegisteredFromWatchEndpoint=!1;_.gT.addJob(function(){F.registerRootElement();if(F.isAnyTransitionEnabled){var G=_.a8("web_page_transition_exit_ms"),V=_.a8("web_page_transition_wait_ms"),J=_.a8("web_page_transition_enter_fast_ms"),b=_.a8("web_page_transition_watch_exit_ms"),z=_.a8("web_page_transition_watch_wait_ms"),Q=_.a8("web_page_transition_watch_enter_ms"),
E=_.a8("web_page_transition_watch_next_exit_ms"),t=_.a8("web_page_transition_watch_next_wait_ms"),k=_.a8("web_page_transition_watch_next_enter_fast_ms"),U=_.a8("web_page_transition_enter_ms"),H=_.a8("web_page_transition_watch_next_enter_ms");F.enableFasterTransitions&&F.isUltraHighBucketDevice&&(U=J,H=k);isNaN(G)&&isNaN(V)&&isNaN(U)&&isNaN(b)&&isNaN(z)&&isNaN(Q)&&isNaN(E)&&isNaN(t)&&isNaN(H)||!(G=e0w(cyV,G,V,U,b,z,Q,E,t,H))||(V=document.createElement("style"),V.textContent=a6B(G),document.head.appendChild(V))}},
8)},AyV=function(){var C=_.VT.navigator.deviceMemory;
return C>=8||C===void 0?!0:!1};
eBt.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var C={};this.viewTransitionCoordinator.registerElement(document.documentElement,(C.slide="root-slide",C["lockup-to-watch"]="root-lockup-to-watch",C["learning-journey"]="root-learning-journey",C))}};
_.yd7=function(C,F){C.isLockupToWatchTransitionEnabled&&C.isLockupThumbnailRegistrationEnabled&&(C.registeredLockupThumbnail?C.lockupThumbnailRegisteredFromWatchEndpoint?_.Yw(new _.Ay("Lockup thumbnail registration order is incorrect.")):_.Yw(new _.Ay("Lockup thumbnail already registered.")):(C.registeredLockupThumbnail=F,_.des(C,F)))};
_.des=function(C,F){var G={};C.viewTransitionCoordinator.registerElement(F,(G["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",G),!0)};
eBt[Ew]=[XpM];var QIW={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 EtT=["videoPrimaryInfoRenderer","title"],WsW=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var xeW;xeW=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.s8W=_.d(function(C){C=_.xz(C,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var F=C.data,G=C.playlistData,V=C.expanded,J=C.onExpandClick,b=C.isReadyToResume,z=function(){var k;return!((k=G())==null||!k.contents)},Q=function(){var k=G();
return k&&k.totalVideos&&k.currentIndex!==void 0?k.currentIndex+1+" / "+k.totalVideos:""};
C=_.CZ(function(){_.IK(_.I8().resolve(_.Od));return!1});
var E=_.CZ(function(){z()&&J&&J()}),t={};
return _.W("ytd-miniplayer-info-bar",{class:_.py("ytdMiniplayerInfoBarHost",(t.ytdMiniplayerInfoBarHasPlaylistData=z,t)),"on:click":E},_.W("div",{class:"ytdMiniplayerInfoBarContent"},_.W("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":C},_.W(_.mn,{text:function(){var k=F();var U=G();if(U==null?0:U.contents){var H;k=(H=_.Cp5(U))==null?void 0:H.title}else k=k==null?void 0:k.miniplayerTitle;return tJW(k)},
noEndpoints:!0,ellipsisTruncate:!0})),_.W("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.W(_.a,{cond:b,then:function(){return _.W(JjS,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:xeW})}}),_.W("h1",null,_.W(_.mn,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var k=F();var U=G();k=b()?{simpleText:_.iQ("CONTINUE_WATCHING",void 0,"Continue watching")}:(U==null?0:U.contents)?U.titleText:k==null?void 0:k.miniplayerSubtitle;return tJW(k)},
noEndpoints:!0,ellipsisTruncate:!0})),_.W(_.a,{cond:function(){return!!Q()&&!b()},
then:function(){return _.W("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.W("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.W("span",null,Q))}}))),_.W(_.a,{cond:z,
then:function(){return _.W("div",{class:"ytdMiniplayerInfoBarExpand"},_.W(_.Wn,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(k){J&&(J(),k.stopPropagation())}}},
iconName:function(){return V()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"rg");var qwt;qwt=_.d(function(C){return _.W("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.W(_.Wn,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:C.onTap}},
iconName:"yt-icons:close"}))},"sg");
_.PH8=_.d(function(C){C=_.xz(C,{playabilityStatus:void 0,isDisabled:!1});var F=C.size,G=C.playabilityStatus,V=C.isDisabled,J=_.Jt("div");C=_.u(_.yH(void 0,void 0,"y6THVb"));var b=C.next().value,z=C.next().value;C=_.nZ(_.Ry);var Q=!1,E=function(){return F().height<=0};
_.sq(function(){var H=F(),l=E(),N=b();N&&!l&&N.setInternalSize(H.width,H.height)},"qu2eI");
_.s0(function(){var H,l,N;return _.I(function(S){if(S.nextAddress==1){H=_.I8().resolve(_.Od);l=H.getPlayerElement();if(!H.isMiniplayerActive()||!l||!J.value)return S.return();l.appendTo(J.value);return S.yield(l.getPlayerPromise(),2)}N=S.yieldResult;N.setSizeStyle(!1,!0);z(N);_.S9(S)})});
_.q0(function(){t()});
_.sq(function(){var H=b();if(H)if(V()){var l=H.getPlayerState();(Q=l===-1||l===1||l===3)&&H.pauseVideo()}else t()},"mCtQKc");
var t=function(){if(Q){Q=!1;var H;(H=b())==null||H.playVideo()}},k=_.CZ(function(){_.IK(_.I8().resolve(_.Od))}),U={};
return _.W("ytd-miniplayer-player-container",{class:_.py("ytdMiniplayerPlayerContainerHost",(U.ytdMiniplayerPlayerContainerHidden=E,U.ytdMiniplayerPlayerContainerHostShortsPip=C,U)),style:_.VA({width:function(){return F().width+"px"},
height:function(){return F().height+"px"}})},_.W("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:J}),_.W(_.a,{cond:function(){return!!G()&&!_.Adq(G())},
then:function(){return _.W(MSx,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var H;return((H=G())==null?void 0:H.errorScreen)||null},
status:function(){var H;return((H=G())==null?void 0:H.status)||null}})}}),_.W(_.a,{cond:V,
then:function(){return _.W("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":k},_.W(qwt,{onTap:function(){_.I8().resolve(_.Od).close()}}))}}))},"wg");_.gUW=_.d(function(C){var F=C.toastData;var G=_.Jt("ytd-miniplayer-toast");C=_.u(_.Gb(function(){return!!F()}));
var V=C.next().value,J=C.next().value;C=_.u(_.yH(!1,void 0,"BvfNQe"));var b=C.next().value,z=C.next().value,Q=function(){var k;return _.dd((k=F())==null?void 0:k.data.title)};
_.q4(function(){_.oY.requestAvailability();F()&&J(!1)});
var E,t;_.sq(function(){V()&&(_.oo(G.value,"iron-announce",{text:F().label+" "+Q()}),E&&_.gT.cancelJob(E),E=_.gT.addLowPriorityJob(function(){z(!0)},2500))},"no1dZb");
_.sq(function(){b()&&(t&&_.gT.cancelJob(t),t=_.gT.addLowPriorityJob(function(){J(!1);z(!1)},300))},"G3yPNe");
C={};return _.W("ytd-miniplayer-toast",{el:G,class:_.py("ytdMiniplayerToastHost",(C.ytdMiniplayerToastOpening=function(){return V()},C.ytdMiniplayerToastClosing=function(){return b()},C))},_.W(_.a,{cond:function(){var k;
return(k=F())==null?void 0:k.data},
then:function(k){return _.W(WTE,{className:"ytdMiniplayerToastThumbnail",data:k,width:78})}}),_.W("div",{class:"ytdMiniplayerToastInfo"},_.W("div",{class:"ytdMiniplayerToastLabel"},function(){var k;
return(k=F())==null?void 0:k.label}),_.W("div",{class:"ytdMiniplayerToastTitle"},Q)))},"zg");var XCW;var Sgi=null;var Yw3=_.d(function(C){var F=C.progressState;var G=C.multiMarkersPlayerBarRenderer;var V=C.progressBarWidth;var J=function(){return f4i(G())},b=function(){return AHW(F())},z=function(){return V()*(F().playedTime/F().videoDuration)};
return _.W("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.W(_.Ag,{each:J},function(Q,E){return _.W(RBh,{modifiedProps:b,chapters:J,index:E,playedProgressWidth:z,backgroundGradientPosition:function(){var t=b(),k=J(),U=E(),H=z();return(t.playedTime-Zo(_.Z(k[U],y7)))/t.playedTime*H}})}))},"Ag"),RBh=_.d(function(C){var F=C.modifiedProps;
var G=C.chapters;var V=C.index;var J=C.playedProgressWidth;var b=C.backgroundGradientPosition;C={};C=_.py("ytChapteredProgressBarChapteredPlayerBarChapter",(C.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return z().isScrubbing},C.ytChapteredProgressBarHoveredMacroMarker=function(){return z().scrubberHovering},C.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return z().videoPosition==="seen"},C));
var z=function(){return ek9(F(),G(),V())},Q=function(){var E=F();
var t=G(),k=V();if(ek9(E,t,k).videoPosition!=="active")E=0;else{var U=Zo(_.Z(t[k],y7));E=(E.playedTime-U)/((Zo(_.Z(t[k+1],y7))||E.videoDuration)-U)}return E};
return _.W("div",{class:C,style:_.VA({width:function(){var E=F(),t=G(),k=V(),U=_.Z(t[k],y7);t=_.Z(t[k+1],y7);return(t?Zo(t)-Zo(U):E.videoDuration-Zo(U))/E.videoDuration*100+"%"},
"background-color":function(){a:{var E=z();switch(E.videoPosition){case "pending":E=E.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":E=E.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:E=""}}return E},
"background-size":function(){return(d2S(z())?J():"")+"px"},
"background-position-x":function(){return(d2S(z())?b():"")+"px"}})},_.W("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var E=F(),t=G(),k=V();if(ek9(E,t,k).videoPosition==="seen")var U=0;else U=Zo(_.Z(t[k],y7)),t=Zo(_.Z(t[k+1],y7))||E.videoDuration,E=E.videoDuration*E.percentLoaded,U=t<=E?1:U>=E?0:(E-U)/(t-U);return"width: "+U*100+"%"}}),_.W("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.VA({width:function(){return Q()*100+"%"},
"background-size":function(){return(d2S(z(),Q())?J():"")+"px"},
"background-position-x":function(){return(d2S(z(),Q())?b():"")+"px"}})}))},"Bg");var TjL=function(C,F){F=F===void 0?Mul:F;var G,V=[],J,b=!1;return function(){var z=_.Rn.apply(0,arguments);if(b&&G===this&&F(z,V))return J;J=C.apply(this,z);b=!0;G=this;V=z;return J}}(function(C){var F=C.heatMarkers,G=C.minHeightDp===void 0?0:C.minHeightDp,V=C.maxHeightDp===void 0?60:C.maxHeightDp;
var J=J===void 0?!1:J;var b=1E3/F.length;C=[];C.push({x:0,y:100});for(var z=0;z<F.length;z++){var Q=void 0,E=((Q=_.Z(F[z],v9S))==null?void 0:Q.heatMarkerIntensityScoreNormalized)||0;Q=(z+.5)*b;E=100-_.lV(E*100,G/321*100,V/321*100);z!==0||J||C.push({x:0,y:E});C.push({x:Q,y:E});z===F.length-1&&C.push({x:1E3,y:E})}C.push({x:1E3,y:100});F="";for(G=0;G<C.length;G++)J=C[G],G===0?J="M "+J.x.toFixed(1)+","+J.y.toFixed(1):(V=hgW(C[G-1],C[G-2],J),b=hgW(J,C[G-1],C[G+1],!0),J=" C "+(V.x.toFixed(1)+","+V.y.toFixed(1)+
" "+b.x.toFixed(1)+","+b.y.toFixed(1)+" "+J.x.toFixed(1)+","+J.y.toFixed(1))),F+=J;return F});var oU8=_.d(function(C){var F=C.progressBarProps;var G=C.config;var V={};C=_.py("ytHeatSeekerHost",(V.ytHeatSeekerHighContrast=C.highContrast,V));var J=function(){return l4T(G().chapterData)};
return _.W("yt-progress-bar-heatseeker",{class:C,style:function(){var b;return"height: 320px; display: "+(F().isDragging&&((b=J())==null?0:b.heatMarkers)?"block":"none")}},_.W(_.a,{cond:J,
then:function(b){return _.W(_.a,{cond:function(){return b().heatMarkers},
then:function(){return _.W("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.W("path",{d:function(){return TjL(b())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Cg");var ryL=_.d(function(C){var F=C.progressBarProps;var G=C.config;C={};C=_.py("ytProgressBarLineProgressBarLine",(C.ytProgressBarLineProgressBarLineRounded=function(){return G().rounded},C.ytProgressBarLineProgressBarLineBottomInset=function(){return G().position===2},C));
return _.W("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.W("div",{class:C},_.W("div",{class:"ytProgressBarLineProgressBarBackground"}),_.W("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+F().percentLoaded*100+"%"}}),_.W("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var V=F();return"width: "+(V.videoDuration?_.lV(V.hoveredTime/V.videoDuration,0,1):0)*100+"%"}}),_.W("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+kxS(F())*100+"%"}})))},"Dg");
ryL.idomCompat=!0;var KxU=_.d(function(C){var F=C.progressBarProps;var G=C.playheadData;var V=C.interpolateDotPosition;var J=C.hidePlayhead;C={};var b=_.py("ytProgressBarPlayheadProgressBarPlayheadDot",(C.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return F().isDragging},C.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!F().isDragging&&J()},C));
return _.W("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.VA({"margin-left":function(){return U2f(F())*100+"%"},
transform:function(){return"translateX(-"+(V()?U2f(F())*12:6)+"px)"}})},_.W(_.a,{cond:function(){var z;
return(z=_.dk(G)())==null?void 0:z.playheadImage},
then:function(z){var Q={};return _.W("div",{class:_.py("ytProgressBarPlayheadProgressBarPlayheadCustom",(Q.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return F().isDragging},Q.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!F().isDragging&&J()},Q)),
style:_.VA({"transform-origin":function(){return(V()?U2f(F())*20:10)+"px center"}})},_.W(_.AC,{data:z,
alt:"","aria-hidden":"true"}))},
else:function(){return _.W("div",{class:b,style:_.VA({"transform-origin":function(){return(V()?U2f(F())*12:6)+"px center"}})})}}))},"Eg");
KxU.idomCompat=!0;var EF=function(C,F,G,V,J,b){this.getProgressBarRect=C;this.updateProgressBarRect=F;this.getFilmstripYPosition=G;this.setFineScrubbingDraggedTime=V;this.updateFilmStripDraggedYDistance=J;this.resetFilmStripYOffset=b;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.FX(this.onThrottledSeek,100,this)},Deh=function(C,F,G){return function(V){C.handleClick(V,F(),G())}},CwU=function(C,F){return function(G){pD8(C,
G,meU(G),F())}},jar=function(C,F){return function(G){pD8(C,G,{x:G.clientX,
y:G.clientY},F())}},Gnr=function(C,F,G){return function(V){var J=F(),b=G();
FpM(C,V,meU(V),J,b,!0);if(b.onTouchMove)b.onTouchMove(J)}},iOr=function(C,F,G){return function(V){VMs(C,V,F(),G())}},Jnd=function(C,F){return function(){C.handleMouseLeave(F())}},$Mh=function(C,F,G){return function(){var V=F(),J=G();
W5(C,V,J);if(J.onTouchEnd)J.onTouchEnd(V)}},bOL=function(C,F,G){return function(){var V=F(),J=G();
W5(C,V,J);if(J.onTouchEnd)J.onTouchEnd(V)}},nx3=function(C,F,G){return function(){W5(C,F(),G())}},uTl=function(C){return function(F){if(F.keyCode===39||F.keyCode===38){var G,V;
(G=C())==null||(V=G.playerApi)==null||V.seekBy(5,void 0,void 0,72)}else if(F.keyCode===37||F.keyCode===40){var J,b;(J=C())==null||(b=J.playerApi)==null||b.seekBy(-5,void 0,void 0,71)}}},z8_=function(C,F,G){return function(V){!G().disableScrubbing&&C.startPosition&&VMs(C,V,F(),G())}},Qas=function(C,F,G){return function(){if(!G().disableScrubbing)if(C.startPosition){var V=F(),J=G();
W5(C,F(),G());if(J.onTouchEnd)J.onTouchEnd(V)}else F().setState({isDragging:!1})}},meU=function(C){C=C.touches[0];
return{x:C.clientX,y:C.clientY}},VMs=function(C,F,G,V){if(F.buttons!==1){if(F.movementX||F.movementY)F.preventDefault(),F.stopPropagation(),C=IsW(C,G,F.clientX),G.setState({isHovering:!0,
hoveredTime:C*G.videoDuration})}else Exl(G),FpM(C,F,{x:F.clientX,y:F.clientY},G,V,!1)};
EF.prototype.handleMouseLeave=function(C){Exl(C)};
var Exl=function(C){C.isHovering&&C.setState({isHovering:!1,hoveredTime:0})},pD8=function(C,F,G,V){C.startPosition||(C.startPosition=G,C.updateProgressBarRect(),C.controlsWereVisibleBeforeDragging=V.controlsVisible,F.stopPropagation(),_.y("medium_progress_bar_modification")||F.preventDefault())},FpM=function(C,F,G,V,J,b){if(C.startPosition)if(b&&J.isInlinePlayback&&C.startPosition&&!C.hasDraggedTheMinimumDistance&&Math.abs(G.y-C.startPosition.y)>Math.abs(G.x-C.startPosition.x))W5(C,V,J);
else if(F.preventDefault(),F.stopPropagation(),V.videoDuration&&(C.startPosition&&!C.hasDraggedTheMinimumDistance&&(C.hasDraggedTheMinimumDistance=Math.abs(G.x-C.startPosition.x)>=1),J.enableFineScrubbing&&(C.startPosition&&(C.isDraggedForFineScrubbing=-(G.y-C.startPosition.y)>=60),!C.startPosition||G.y>=C.startPosition.y||(V.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:x2B(V.draggedTime,V,J.chapterData)}),C.setFineScrubbingDraggedTime(V.draggedTime),C.updateFilmStripDraggedYDistance(C.startPosition.y,
G.y,V))),C.hasDraggedTheMinimumDistance)){F=IsW(C,V,G.x);if(C.isDraggedForFineScrubbing){var z;(z=V.playerApi)==null||z.pauseVideo();V.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:V.draggedTime,filmStripXDistance:x2B(F*V.videoDuration,V,J.chapterData)})}J.enableFineScrubbing&&(!J.enableFineScrubbing||C.getFilmstripYPosition(V)<68)||V.setState({draggedTime:F*V.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:C.controlsWereVisibleBeforeDragging});var Q;(Q=
J.cancelAutohideControlsFn)==null||Q.call(J)}},W5=function(C,F,G){var V=G.enableFineScrubbing&&F.fineScrubbingActiveState!=="off";
if(F.isDragging||V){V={isDragging:!1,playedTime:F.draggedTime,controlsVisible:C.controlsWereVisibleBeforeDragging};G.enableFineScrubbing&&F.fineScrubbingActiveState!=="on"&&(C.resetFilmStripYOffset(),V.fineScrubbingActiveState="off");var J=J===void 0?Sgi:J;var b=_.ZQ(0);if(b&&J){var z=Math.round(F.playedTime*1E3),Q=Math.round(F.draggedTime*1E3);z>2147483647||Q>2147483647||_.dh(b,J,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(z),endMediaTimeMs:String(Q),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}F.setState(V);
C.seekThrottle.fire(F.draggedTime,F,7);_.y("mweb_new_progress_bar_play_on_seek")&&C.resumeVideo(F);G.unmuteOnSeek&&(G=F.playerApi,F.volumeMuted&&(G==null||G.unMute()))}else F.setState({controlsVisible:!F.controlsVisible}),(b=G.triggerAutohideControlsAfterDelayFn)==null||b.call(G);C.startPosition=null;C.hasDraggedTheMinimumDistance=!1;C.isDraggedForFineScrubbing=!1;C.controlsWereVisibleBeforeDragging=!1};
EF.prototype.handleClick=function(C,F,G){this.updateProgressBarRect();C.stopPropagation();C=IsW(this,F,C.clientX)*F.videoDuration;F.setState({playedTime:C});if(F.playerState!==2){var V;(V=G.triggerAutohideControlsAfterDelayFn)==null||V.call(G)}this.seekThrottle.fire(C,F,7)};
var IsW=function(C,F,G){C=C.getProgressBarRect(F);return _.lV(0,(G-C.left)/C.width,1)};
EF.prototype.resumeVideo=function(C){if(C.draggedTime<C.videoDuration){var F;(F=C.playerApi)==null||F.playVideo()}};
EF.prototype.onThrottledSeek=function(C,F,G){if(F=F.playerApi){var V;if((V=F.getVideoData())==null?0:V.isLive)V=this.getProgressState(F),C+=(V==null?void 0:V.seekableStart)||0;F.seekTo(C,void 0,void 0,void 0,G)}};
EF.prototype.getProgressState=function(C){var F=C==null?void 0:C.getPresentingPlayerType();return C==null?void 0:C.getProgressState(F)};var asV,tMM,knW,HOW,Wps,lst,ynW,ZOr,NTt;asV=_.d(function(C){var F=C.progressBarProps;var G=C.config;var V=C.progressBarWidthPx;var J=C.chapterData;var b=Rko(F,function(){return G().isShortsPage}),z=function(){return!F().isHovering&&!G().isShortsPage};
C={};var Q=_.py("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(C.ytPlayerStoryboardHostMwebShorts=function(){return G().isShortsPage&&!1},C));
return _.W("yt-player-storyboard",null,_.W(_.a,{cond:function(){return F().isDragging||F().isHovering},
then:function(){return _.W(_.a,{cond:b,then:function(E){return _.W(_.a,{cond:z,then:function(){return _.W("div",{class:Q,"aria-hidden":"true"},_.W(Wps,{props:F,config:G,isBigboard:!0,chapterData:J}))},
else:function(){return _.W(tMM,{props:F,frame:E,config:G,progressBarWidthPx:V,chapterData:J})}})}})}}))},"Fg");
_.UMr=_.d(function(C){var F=C.progressBarProps;var G=Rko(F,C.isShortsPage);return _.W("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.W(_.a,{cond:function(){return F().isDragging||F().isHovering},
then:function(){return _.W(_.a,{cond:G,then:function(V){return _.W(knW,{frame:V,props:F,isBigboard:!0})}})}}))},"Gg");
tMM=_.d(function(C){var F=C.props;var G=C.frame;var V=C.config;var J=C.progressBarWidthPx;C=C.chapterData;var b={};b=_.py("ytPlayerStoryboardHost",(b.ytPlayerStoryboardHostMwebShorts=function(){return V().isShortsPage&&!1},b.ytPlayerStoryboardHostInlinePlayer=function(){return V().isInlinePlayer},b.ytPlayerStoryboardHostFadeIn=function(){return V().useFadeInAnimation},b));
return _.W("div",{class:b,"aria-hidden":"true",style:function(){var z=F(),Q=sI5(G()),E=J();z=qgB(z)/z.videoDuration;var t=E*z,k=Q/2+6;Q=E-(Q/2+6);return"left: "+(t<=k?k/E*100:t>=Q?Q/E*100:z*100)+"%"}},_.W(_.a,{cond:function(){var z=F();
return!(V().isShortsPage&&z.videoDuration<15)},
then:function(){return _.W(knW,{frame:G,props:F,isBigboard:!1})}}),_.W(Wps,{props:F,
config:V,isBigboard:!1,chapterData:C}))},"Hg");
knW=_.d(function(C){var F=C.frame;var G=C.props;var V=C.isBigboard;var J=function(){var Q,E;return(E=(Q=G().playerApi)==null?void 0:Q.getVideoContentRect())!=null?E:{width:0,height:0}},b=function(){return sI5(F())},z=function(){var Q=F();
return Q?Q.height/Q.rows:0};
C={};C=_.py((C.ytPlayerStoryboardBigboardImageWrapper=V,C.ytPlayerStoryboardStoryboardImageWrapper=function(){return!V()},C));
return _.W("div",{class:C,style:function(){return"width: "+(V()?J().width:b())+"px; height: "+(V()?J().height:z())+"px;"}},_.W(HOW,{frame:F,
storyboardWidth:b,storyboardHeight:z,storyboardScale:function(){return(V()?J().width:b())/b()}}))},"Ig");
HOW=_.d(function(C){var F=C.frame;var G=C.storyboardWidth;var V=C.storyboardHeight;var J=C.storyboardScale;var b=function(){var z=F().row,Q=F().column,E=G(),t=V(),k=J();return{left:-Q*E*k,top:-z*t*k}};
return _.W("img",{src:function(){return F().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+b().left+"px; top: "+b().top+"px; width: "+F().width*J()+"px; height: "+F().height*J()+"px;"}})},"Jg");
Wps=_.d(function(C){var F=C.props;var G=C.config;var V=C.isBigboard;var J=C.chapterData;C={};C=_.py("ytPlayerStoryboardMetadata",(C.ytPlayerStoryboardMetadataBigboard=V,C));return _.W("div",{class:C},_.W(_.a,{cond:V,then:function(){return _.W(_.WQ,null,_.W(lst,{props:F,config:G}),_.W(_.a,{cond:function(){a:{var b=F();var z=G(),Q=J(),E;if((z==null?0:z.activeChapter)&&((E=_.Z(z==null?void 0:z.activeChapter,y7))==null?0:E.title))b=!0;else{z=_.u(yHI(Q));for(z=z.next();!z.done;z=z.next()){b=(z=_.Z(z.value,
h2$))&&P1Z(b,z);break a}b=!1}}return b},
then:function(){return _.W(ynW,{props:F,config:G,isBigboard:!0,chapterData:J})}}))},
else:function(){return _.W(_.WQ,null,_.W(ynW,{props:F,config:G,isBigboard:!0,chapterData:J}),_.W(lst,{props:F,config:G}))}}))},"Kg");
lst=_.d(function(C){var F=C.props;var G=C.config;C={};C=_.py("ytPlayerStoryboardTimestamp",(C.ytPlayerStoryboardTimestampShorts=function(){return G().isShortsPage},C.ytPlayerStoryboardTimestampIsHovering=function(){return F().isHovering||G().isShortsPage&&!0},C));
return _.W("div",{class:C},_.W(_.WQ,null,function(){return _.gtT(qgB(F()))}))},"Lg");
ynW=_.d(function(C){var F=C.props;var G=C.config;var V=C.isBigboard;var J=C.chapterData;C={};V=_.py("ytPlayerStoryboardTitle",(C.ytPlayerStoryboardTitleBigboard=V,C));return _.W("div",{class:V},_.W(_.a,{cond:function(){return!G().isShortsPage},
then:function(){return _.W(ZOr,{props:F,activeChapter:function(){return G().activeChapter},
chapterData:J})}}))},"Mg");
ZOr=_.d(function(C){var F=C.props;var G=C.activeChapter;var V=C.chapterData;return _.W(_.WQ,null,_.W(_.Ag,{each:function(){return yHI(V())},
keyBy:"INDEX"},function(J){return _.W(_.WQ,null,_.W(_.a,{cond:function(){return _.Z(J(),h2$)&&P1Z(F(),_.Z(J(),h2$))},
then:function(){return _.W(NTt,{timedMarker:function(){return _.Z(J(),h2$)}})}}))}),_.W(_.a,{cond:function(){var J;
return G()&&((J=_.Z(G(),y7))==null?void 0:J.title)},
then:function(J){return _.W(_.mn,{text:J,noPreWrap:!0})}}))},"Ng");
NTt=_.d(function(C){var F=C.timedMarker;return _.W(_.WQ,null,_.W("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.W(_.i5,{icon:function(){return F().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.W(_.mn,{text:function(){return F().label},
noPreWrap:!0}))},"Og");_.OOt=_.d(function(C){var F=C.progressBarProps;var G=C.playheadData;var V=C.config;C=_.Jt("yt-progress-bar");var J=_.Jt("div"),b=_.Jt("div"),z=_.u(_.yH({width:0,left:0},void 0,"WloVn")),Q=z.next().value,E=z.next().value,t=function(){b.value&&E(b.value.getBoundingClientRect())},k=function(){Q().width<=0&&t();
return Q()};
_.Ix("resize",t);var U=new EF(k,function(){},function(){return 0},function(){},function(){},function(){}),H=function(){return F()};
z=_.u(_.yH(!1,void 0,"u8BZZb"));var l=z.next().value,N=z.next().value;z=_.CZ(function(){N(!0);V().position===2?setTimeout(function(){t()},100):t()});
var S=_.CZ(function(){N(!1);Jnd(U,H)()}),f=_.CZ(function(OB){V().doSeekOnClick&&Deh(U,H,V)(OB);
return!1}),c=_.CZ(function(OB){CwU(U,H)(OB);
return!1}),A=_.CZ(function(OB){jar(U,H)(OB);
return!1}),T=_.CZ(function(OB){Gnr(U,H,V)(OB);
return!1}),P=_.CZ(function(OB){iOr(U,H,V)(OB);
return!1}),g=_.CZ(function(){$Mh(U,H,V)();
return!1}),r=_.CZ(function(){bOL(U,H,V)();
return!1}),C9=_.CZ(function(){nx3(U,H,V)();
return!1}),Wo=_.CZ(function(OB){uTl(H)(OB);
return!1});
_.Ix("mousemove",z8_(U,H,V));_.Ix("mouseup",Qas(U,H,V));_.q4(function(){LsS(J.value);N(!1);t();Qas(U,H,V)()});
var EB={};EB=_.py("ytPlayerProgressBarHost",function(){return V().className},(EB.ytPlayerProgressBarHostReadOnly=function(){return V().disableScrubbing},EB.ytPlayerProgressBarHostHidden=function(){return V().hideProgressBar&&!l()},EB.ytPlayerProgressBarHostLowerPlayer=function(){return V().position===0},EB.ytPlayerProgressBarHostBottomEdge=function(){return V().position===1},EB.ytPlayerProgressBarHostBottomInset=function(){return V().position===2},EB.ytPlayerProgressBarHostCustom=function(){return V().position===
3},EB));
var L9={},ki=_.py("ytPlayerProgressBarBackground",(L9.ytPlayerProgressBarBackgroundHide=function(){return V().position===2&&!l()&&!F().isDragging},L9));
L9={};L9=_.py("ytPlayerProgressBarDragContainer",(L9.ytPlayerProgressBarDragContainerBottomEdge=function(){return V().position===1},L9));
var lZ={};lZ=_.py("ytPlayerProgressBarProgressBar",(lZ.ytPlayerProgressBarProgressBarInset=function(){return V().position===2},lZ.ytPlayerProgressBarProgressBarInsetMinimized=function(){return V().position===2&&!l()&&!F().isDragging},lZ));
var eq=function(){return Math.floor(kxS(F())*100)};
return _.W("yt-progress-bar",{el:C,class:EB},_.W(_.a,{cond:function(){return V().position===2},
then:function(){return _.W("div",{class:ki})}}),_.W("div",{el:J,
"on:click":f,"on:touchstart":c,"on:touchmove":T,"on:mouseenter":z,"on:mousedown":A,"on:mouseleave":S,"on:mousemove":P,"on:mouseup":r,"on:touchend":g,"on:touchcancel":C9,"on:keydown":Wo,class:L9,role:"slider","aria-valuenow":eq,"aria-valuetext":function(){return eq()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return F().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.iQ("SEEK_SLIDER")},_.W("div",{el:b,class:lZ},_.W(oU8,{progressBarProps:F,config:V,highContrast:function(){return!!V().isInlinePlayback}}),_.W(_.a,{cond:function(){return V().chapterData&&Zh9(V().chapterData)},
then:function(){return _.W(Yw3,{progressState:F,multiMarkersPlayerBarRenderer:function(){return V().chapterData},
progressBarWidth:function(){return Q().width}})},
else:function(){return _.W(ryL,{progressBarProps:F,config:V})}}),_.W(KxU,{progressBarProps:F,
playheadData:G,interpolateDotPosition:function(){return V().position!==2},
hidePlayhead:function(){return V().playheadDotBehavior===1&&!l()}}))),_.W(asV,{progressBarProps:F,
config:function(){return{activeChapter:cHT(F(),V().chapterData),getProgressBarWidthPx:function(){return k().width},
isShortsPage:!!V().isShortsPage,isInlinePlayer:!!V().isInlinePlayback,useFadeInAnimation:!!V().isInlinePlayback}},
progressBarWidthPx:function(){return Q().width},
chapterData:function(){return V().chapterData}}))},"Pg");
_.OOt.idomCompat=!0;Object.assign({},_.NZs(),{setState:function(){},
domMeasurements:{},appApi:_.a4T(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var XgM;
_.wgx=_.d(function(){var C,F=(C=_.Nb(YgT().playerApi))!=null?C:void 0;C=_.u(_.yH(!1,void 0,"Z9NQ1b"));var G=C.next().value,V=C.next().value;C=_.u(_.yH(!1,void 0,"HoVJXe"));var J=C.next().value,b=C.next().value;C=_.u(_.yH(!1,void 0,"DWCY3"));var z=C.next().value,Q=C.next().value;C=_.u(_.yH(!1,void 0,"g4C2Zd"));var E=C.next().value,t=C.next().value;C=_.u(_.yH(0,void 0,"lmVfFb"));var k=C.next().value,U=C.next().value;C=_.u(_.yH(0,void 0,"mFLbzb"));var H=C.next().value,l=C.next().value;C=_.u(_.yH(!1,void 0,
"hQN4Wb"));var N=C.next().value,S=C.next().value;C=_.u(_.yH(0,void 0,"WWU0fb"));var f=C.next().value,c=C.next().value;C=_.u(_.yH(0,void 0,"MJ7LMd"));var A=C.next().value,T=C.next().value;C=_.u(_.yH("",void 0,"hnomOe"));var P=C.next().value,g=C.next().value;C=_.u(_.yH(-1,void 0,"ARe3pf"));var r=C.next().value,C9=C.next().value,Wo=_.w0(function(){var EB={controlsVisible:G(),isOverlayHidden:J(),shouldWaitToHideControls:z(),isDragging:E(),isHovering:N(),videoDuration:f(),playedTime:A(),videoId:P(),draggedTime:H(),
hoveredTime:k(),playerState:r()};return Object.assign({},_.NZs(),EB,{domMeasurements:{},setState:function(L9){L9.controlsVisible!==void 0&&V(L9.controlsVisible);L9.isOverlayHidden!==void 0&&b(L9.isOverlayHidden);L9.shouldWaitToHideControls!==void 0&&Q(L9.shouldWaitToHideControls);L9.isDragging!==void 0&&t(L9.isDragging);L9.isHovering!==void 0&&S(L9.isHovering);L9.draggedTime!==void 0&&l(L9.draggedTime);L9.hoveredTime!==void 0&&U(L9.hoveredTime);L9.videoDuration!==void 0&&c(L9.videoDuration);L9.playedTime!==
void 0&&T(L9.playedTime);L9.videoId!==void 0&&g(L9.videoId);L9.playerState!==void 0&&C9(L9.playerState)},
appApi:_.a4T(),playerApi:F})},void 0,"Au4PIf");
_.s0(function(){F==null||F.addEventListener("onVideoProgress",MJf(Wo));F==null||F.addEventListener("onVideoDataChange",wCs(Wo));F==null||F.addEventListener("onStateChange",OhI(Wo))});
_.q0(function(){if(F==null?0:F.isReady())F==null||F.removeEventListener("onVideoProgress",MJf(Wo)),F==null||F.removeEventListener("onVideoDataChange",wCs(Wo)),F==null||F.removeEventListener("onStateChange",OhI(Wo))});
return _.W("desktop-shorts-player-controls",null,_.W(XgM,{playerControlsProps:Wo}))},"Rg");
XgM=_.d(function(C){var F=C.playerControlsProps;return _.W("div",{class:"desktopShortsPlayerControlsHost"},_.W(_.OOt,{progressBarProps:F,config:function(){return{isShortsPage:!0,hideProgressBar:F().videoDuration<30&&F().playerState!==2&&!F().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"Sg");_.MMW=_.d(function(C){function F(EB){EB!==0||U()?EB>50&&(U()||!l())?(H(!1),N(!0)):EB<=50&&(U()||l())&&(H(!1),N(!1)):H(!0)}
function G(EB,L9){var ki;return _.I(function(lZ){if(lZ.nextAddress==1)return lZ.yield(_.CY(),2);ki=lZ.yieldResult;L9&&ki?(ki.unMute(!0),EB&&(ot9(EB,ki.getVolume()),f(ki.getVolume()))):ki&&(ki.mute(!0),EB&&ot9(EB,0));_.S9(lZ)})}
function V(EB){var L9,ki;return _.I(function(lZ){if(lZ.nextAddress==1)return lZ.yield(_.CY(),2);L9=lZ.yieldResult;ki=50;L9&&(ki=L9.getVolume(),L9.isMuted()?ot9(EB,0):ot9(EB,ki));f(ki);_.S9(lZ)})}
var J=C.orientation;C=_.Jt("desktop-shorts-volume-controls");var b=_.Jt("button"),z=_.nc("input"),Q=_.u(_.yH(!1,void 0,"MvN0Tc")),E=Q.next().value,t=Q.next().value,k=_.u(_.yH(!1,void 0,"aSjsEb"));Q=k.next().value;k=k.next().value;var U=Q,H=k;k=_.u(_.yH(!0,void 0,"FUh46d"));Q=k.next().value;k=k.next().value;var l=Q,N=k;Q=_.u(_.yH(50,void 0,"yPke4d"));var S=Q.next().value,f=Q.next().value;Q=_.w0(function(){var EB=U();return _.y("web_shorts_keyboard_enable_mute_shortcut")?EB?_.iQ("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.iQ("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):EB?_.iQ("UNMUTE_VOLUME",void 0,"Unmute"):_.iQ("MUTE_VOLUME",void 0,"Mute")},void 0,"SHO4Df");
k=_.w0(function(){var EB=U(),L9=l();return{sources:[{clientResource:{imageName:EB?_.y("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":L9?_.y("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.y("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"lfsRWd");
var c=_.w0(function(){var EB=S();return U()?EB+"% volume muted":EB+"% volume"},void 0,"xZsRmc"),A=_.w0(function(){return J()==="vertical_down"},void 0,"FVqYmb");
_.q4(function(){function EB(){t(!0)}
function L9(){t(!1)}
z&&z.value&&(z.value.addEventListener("focus",EB),z.value.addEventListener("focusout",L9),V(z.value).then(function(){F(Number(rHs(z.value)))}));
b&&b.value&&(b.value.addEventListener("focus",EB),b.value.addEventListener("focusout",L9));_.q0(function(){var ki;z==null||(ki=z.value)==null||ki.removeEventListener("focus",EB);var lZ;z==null||(lZ=z.value)==null||lZ.removeEventListener("focusout",L9);var eq;b==null||(eq=b.value)==null||eq.removeEventListener("focus",EB);var OB;b==null||(OB=b.value)==null||OB.removeEventListener("focusout",L9)})});
var T=_.CZ(function(){if(z&&z.value){var EB=Number(rHs(z.value));TZT(EB);f(EB);z.value.style.setProperty("--gradient-percent",EB+"%");F(EB)}return!1}),P=_.CZ(function(){z&&z.value&&(G(z.value,U()),H(!U()));
return!1}),g={},r={},C9={},Wo={};
return _.W("desktop-shorts-volume-controls",{"on:pointerleave":_.CZ(function(){t(!1)}),
"on:pointerenter":_.CZ(function(){t(!0)}),
class:_.py("ytdDesktopShortsVolumeControlsHost",(g.ytdDesktopShortsVolumeControlsHostVertical=A,g.ytdDesktopShortsVolumeControlsHostModern=_.y("web_shorts_modern_controls"),g.ytdDesktopShortsVolumeControlsHostModernExpanded=function(){return _.y("web_shorts_modern_controls")&&E()},g)),
el:C},_.W(_.a,{cond:function(){return!A()},
then:function(){var EB={};return _.W("div",{class:_.py("ytdDesktopShortsVolumeControlsBackgroundScrim",(EB.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=E,EB.ytdDesktopShortsVolumeControlsBackgroundScrimExpandedModern=function(){return _.y("web_shorts_modern_controls")&&E()},EB))})}}),_.W("div",{class:_.py((r.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=A,r))},_.W("button",{"aria-label":Q,
title:Q,el:b,"on:click":P,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},k?_.W(_.AC,{data:k,alt:Q,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.W("div",{class:_.py("ytdDesktopShortsVolumeControlsSliderContainer",(C9.ytdDesktopShortsVolumeControlsSliderContainerExpanded=E,C9.ytdDesktopShortsVolumeControlsSliderContainerVertical=A,C9.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=A,C9.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=function(){return E()&&
A()},C9))},_.W("input",{"aria-label":_.iQ("VOLUME"),
title:_.iQ("VOLUME"),el:z,"on:input":T,type:"range",class:_.py("ytdDesktopShortsVolumeControlsNativeSlider",(Wo.ytdDesktopShortsVolumeControlsNativeSliderModern=_.y("web_shorts_modern_controls"),Wo)),id:"volume-input",role:"slider","aria-valuenow":S,"aria-valuetext":c,"aria-valuemin":0,"aria-valuemax":100})))},"Tg");_.Stx=_.d(function(C){var F=C.data;var G=C.extractOverlay;C={};return _.W("player-disclosure-view-model",{class:_.py("ytwPlayerDisclosureViewModelHost",(C.ytwPlayerDisclosureViewModelExtractOverlay=function(){return G==null?void 0:G()},C))},_.W(_.zV,{command:function(){return F().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.W(_.a,{cond:function(){return F().iconName},
then:function(V){return _.W(_.i5,{icon:V})}}),_.W("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return F().text}),_.W(_.a,{cond:function(){return F().showEndChevron},
then:function(){return _.W(_.i5,{icon:"CHEVRON_RIGHT"})}})))},"Ug");var Lp8=_.d(function(C){var F=C.data;var G=C.overlayDensity;C={};return _.W("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.W(_.uC,{data:function(){return F().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(V){var J=V.data;
return _.W(_.R7,{data:function(){return(G==null?void 0:G())===1?Object.assign({},J(),{avatar:{avatarViewModel:Object.assign({},_.Z(J().avatar,_.yJ),{avatarImageSize:"AVATAR_SIZE_M"})}}):J()}})}}),_.W(_.uC,{data:function(){return F().avatarStackViewModel}},{avatarStackViewModel:function(V){return _.W(_.Y9,{data:V.data})}}),_.W(_.mn,{className:_.py("ytReelChannelBarViewModelChannelName",(C.ytReelChannelBarViewModelChannelNameLarge=function(){return(G==null?void 0:G())===1},C)),
text:function(){return F().channelName},
linkInheritColor:!0,userInput:!0}),_.W("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.W(_.uC,{data:function(){return F().subscribeButtonViewModel}},{subscribeButtonViewModel:function(V){var J=V.data;
return _.W(_.gB,{data:function(){return(G==null?void 0:G())===1?Object.assign({},J(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},J().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):J()},
isOverlay:!1})},
buttonViewModel:_.tS})),_.W("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.W(_.uC,{data:function(){var V,J;return(J=_.Z((V=F())==null?void 0:V.sponsorButtonViewModel,gaS))==null?void 0:J.sponsorButton}},{buttonViewModel:function(V){return _.W(_.tS,{data:V.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Vg");var BTt=_.d(function(C){var F=function(){var J;return((J=C.overlayDensity)==null?void 0:J.call(C))===1},G=function(){return F()?22:16},V={};
return _.W("yt-reel-multi-format-link-view-model",{class:_.py("ytReelMultiFormatLinkViewModelHost",(V.ytReelMultiFormatLinkViewModelHostTall=!0,V.ytReelMultiFormatLinkViewModelHostLarge=function(){return F()},V))},_.W(_.zV,{ariaLabel:function(){return C.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return C.data().command}},_.W("h3",{class:function(){return F()?"ytReelMultiFormatLinkViewModelLargeLink":"ytReelMultiFormatLinkViewModelLink"}},_.W(_.a,{cond:function(){return C.data().icon},
then:function(J){return _.W(_.AC,{data:J,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:G})}}),_.W(_.mn,{text:function(){return C.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Wg");
BTt.idomCompat=!0;var vxs=_.d(function(C){var F=C.data;var G=C.overlayDensity;var V=C.extractOverlay;var J=_.Jt("yt-shorts-suggested-action-view-model");C=_.u(_.yH(!1,void 0,"S60Hzc"));var b=C.next().value,z=C.next().value;C=_.u(_.yH(!1,void 0,"O76chf"));var Q=C.next().value,E=C.next().value,t=function(){return F().isMultiLineSa},k=_.$b(kro,function(){var g,r;
return(r=(g=F().toggleableContent)==null?void 0:g.entityKey)!=null?r:""}),U=function(){var g,r,C9;
return(C9=F().toggleableContent)!=null&&C9.entityKey?(r=(g=k())==null?void 0:g.value)!=null?r:!1:!1},H=function(){var g,r,C9,Wo,EB,L9,ki,lZ,eq,OB,yr;
return F().toggleableContent?U()?(g=F().toggleableContent)==null?void 0:g.toggledData:(r=F().toggleableContent)==null?void 0:r.untoggledData:{primaryText:(lZ=(C9=F().defaultContent)==null?void 0:C9.primaryText)!=null?lZ:F().text,secondaryText:(Wo=F().defaultContent)==null?void 0:Wo.secondaryText,onTapCommand:(eq=(EB=F().defaultContent)==null?void 0:EB.onTapCommand)!=null?eq:F().onTapCommand,icon:(OB=(L9=F().defaultContent)==null?void 0:L9.icon)!=null?OB:F().icon,image:(yr=(ki=F().defaultContent)==
null?void 0:ki.image)!=null?yr:F().image}},l=function(){return t()?F().trailingTapTarget:void 0},N=function(g,r){return function(){return b()?r:g}},S=function(){return{leadingSection:N("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(G==null?void 0:G())===1?N("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):N("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:N("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:N("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:N("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
C={};C=_.py((C.ytShortsSuggestedActionViewModelStaticHost=function(){return!t()},C.ytShortsSuggestedActionViewModelDynamicHost=t,C.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return t()&&Q()},C.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return t()&&!Q()},C.ytShortsSuggestedActionViewModelExtractOverlay=function(){return V==null?void 0:V()},C));
_.q4(function(){if(t()){var g=0,r;if((r=F().animationParams)==null?0:r.shouldExpand){var C9,Wo;g=((Wo=(C9=F().animationParams)==null?void 0:C9.expansionDelaySecs)!=null?Wo:0)*1E3}var EB,L9=((EB=F().animationParams)==null?0:EB.shouldExpand)?setTimeout(function(){z(!0)},g):void 0,ki,lZ;
g=((ki=F().animationParams)==null?0:ki.visibilityDelaySecs)?((lZ=F().animationParams)==null?NaN:lZ.visibilityDelaySecs)*1E3:0;var eq=setTimeout(function(){E(!0)},g);
_.q0(function(){L9&&clearTimeout(L9);clearTimeout(eq)})}});
var f=function(g){_.wQ(g,Object.assign({},{form:{element:J.value}}))},c=_.CZ(function(){var g,r=(g=H())==null?void 0:g.onTapCommand;
r&&f(r)}),A=_.CZ(function(){var g,r;
if(g=(r=l())==null?void 0:r.onTapCommand)return f(g),!1}),T=_.VA({"vertical-align":"bottom",
"border-radius":function(){var g;return t()?((g=F().defaultContent)==null?0:g.isCircleImage)?"50%":"4px":"0px"},
width:function(){var g,r,C9;return t()&&((g=F().defaultContent)==null?0:g.imageSize)?((C9=(r=F().defaultContent)==null?void 0:r.imageSize)!=null?C9:24)+"px":null},
height:function(){var g,r,C9;return t()&&((g=F().defaultContent)==null?0:g.imageSize)?((C9=(r=F().defaultContent)==null?void 0:r.imageSize)!=null?C9:24)+"px":null}}),P={};
return _.W("yt-shorts-suggested-action-view-model",{class:C,el:J},_.W("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.W("button",{class:_.py(function(){return t()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var g;
return(g=F().useFullRoundedBorder)!=null&&g?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!l()&&t()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":t()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var g;
return(g=F().disableFixedHeight)!=null&&g?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(P.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(G==null?void 0:G())===1},P.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return V==null?void 0:V()},P)),
"on:click":c},_.W(_.QR,{model:{color:4}}),_.W("div",{class:_.py(function(){return t()?S().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.W(_.a,{cond:function(){var g;
return(g=H())==null?void 0:g.image},
then:function(g){return _.W(_.AC,{data:g,alt:"",className:function(){return t()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:T})}}),_.W(_.a,{cond:function(){var g,r;
return(g=H())==null?void 0:(r=g.icon)==null?void 0:r.iconType},
then:function(g){return _.W(_.i5,{icon:g,active:U,className:function(){return t()?b()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.W("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.W(_.a,{cond:function(){var g;
return(g=H())==null?void 0:g.primaryText},
then:function(g){var r={};return _.W("div",{class:_.py("ytShortsSuggestedActionViewModelStaticHostPrimaryText",(r.ytShortsSuggestedActionViewModelExpansiveContainerPrimaryText=function(){return(G==null?void 0:G())===1},r))},_.W(_.mn,{text:g}))}}),_.W(_.a,{cond:function(){var g;
return(g=H())==null?void 0:g.secondaryText},
then:function(g){return _.W("div",{class:function(){return S().secondaryText()}},_.W(_.mn,{text:g}))}}))),_.W(_.a,{cond:l,
then:function(g){return _.W("div",{class:_.py(function(){return S().trailingSection()},function(){var r,C9;
return(V==null?void 0:V())&&((C9=(r=S()).trailingSectionExtractOverlay)==null?void 0:C9.call(r))||""}),
"aria-label":function(){var r;return(r=g().a11yLabel)!=null?r:""},
"on:click":A,role:"button",tabindex:0},_.W(_.QR,{model:{color:4}}),_.W(_.i5,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Xg");var fsr=_.d(function(C){var F=C.data;var G=C.overlayDensity;var V=_.Jt("yt-shorts-video-title-view-model");C=_.CZ(function(z){if(_.kb(_.ay(z),V.value,["A".toString()]))return!1;(z=F().truncatedTextOnTapCommand)&&_.wQ(z);return!1});
var J={},b={};return _.W("yt-shorts-video-title-view-model",{el:V,class:_.py("ytShortsVideoTitleViewModelHost",(J.ytShortsVideoTitleViewModelHostClickable=function(){return!!F().truncatedTextOnTapCommand},J)),
"on:click":C},_.W("h2",{class:_.py("ytShortsVideoTitleViewModelShortsVideoTitle",(b.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(G==null?void 0:G())===1},b))},_.W(_.mn,{text:function(){return F().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(G==null?void 0:G())===1}})))},"Yg");_.h8x=_.d(function(C){var F=C.data;var G=C.overlayDensity;var V=C.extractOverlay;var J=function(){return(G==null?void 0:G())===1};
return _.W("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.W(_.uC,{data:function(){return F().metadataItems}},{badgeViewModel:function(b){b=b.data;
return _.W("div",{class:_.py(function(){return J()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.W(_.WI,{data:b}))},
playerDisclosureViewModel:function(b){b=b.data;return _.W("div",{class:_.py(function(){return J()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.W(_.Stx,{data:b,
extractOverlay:V}))},
shortsSuggestedActionViewModel:function(b){b=b.data;return _.W("div",{class:_.py(function(){return J()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.W(vxs,{data:b,
overlayDensity:G,extractOverlay:V}))},
reelChannelBarViewModel:function(b){b=b.data;var z={};return _.W("div",{class:_.py("ytReelMetapanelViewModelMetapanelItem",(z.ytReelMetapanelViewModelExpansive=function(){return J()},z))},_.W(Lp8,{data:b,
overlayDensity:G}))},
reelMultiFormatLinkViewModel:function(b){b=b.data;var z={};return _.W("div",{class:_.py("ytReelMetapanelViewModelMetapanelItem",(z.ytReelMetapanelViewModelExpansive=function(){return J()},z))},_.W(BTt,{data:b,
overlayDensity:G}))},
shortsVideoTitleViewModel:function(b){b=b.data;var z={};return _.W("div",{class:_.py("ytReelMetapanelViewModelMetapanelItem",(z.ytReelMetapanelViewModelExpansive=function(){return J()},z))},_.W(fsr,{data:b,
overlayDensity:G}))},
reelSoundMetadataViewModel:function(b){b=b.data;var z={};return _.W("div",{class:_.py("ytReelMetapanelViewModelMetapanelItem",(z.ytReelMetapanelViewModelExpansive=function(){return J()},z))},_.W(_.fBU,{data:b,
overlayDensity:G}))},
toggleButtonViewModel:function(b){b=b.data;var z={};return _.W("div",{class:_.py("ytReelMetapanelViewModelMetapanelItem",(z.ytReelMetapanelViewModelExpansive=function(){return J()},z))},_.W(_.AS,{data:b}))}}))},"Zg");var cn_=_.d(function(C){var F=_.xz(C,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),G=F.size,V=F.onTap,J=F.disabled,b=F.tooltipText;return _.W("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.W(_.Wn,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:G(),disabled:J(),tooltipText:b(),onTap:V}},
iconName:C.iconType}))},"$g"),An8=_.d(function(C){function F(k){k.stopPropagation();
k.code==="ArrowUp"?(k.preventDefault(),pCE(Q.value)):k.code==="ArrowDown"?(k.preventDefault(),m2f(Q.value)):k.code==="KeyM"?KsE():(k.code==="KeyK"||k.code==="Space")&&D2o(E())}
var G=_.xz(C,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});C=G.previousButtonDisabled;var V=G.nextButtonDisabled,J=G.data,b=G.playabilityStatus,z=G.previewThumbnail,Q=_.Jt("ytd-shorts-miniplayer-overlay"),E=_.nZ(_.hhE),t;_.s0(function(){(t=_.gS(Q.value))&&t.addEventListener("keydown",F)});
_.q0(function(){var k;(k=t)==null||k.removeEventListener("keydown",F)});
G=function(){var k,U,H;return(k=J())==null?void 0:(U=k.reelPlayerOverlayRenderer)==null?void 0:(H=U.likeButton)==null?void 0:H.likeButtonRenderer};
return _.W("ytd-shorts-miniplayer-overlay",{el:Q,class:"ytdShortsMiniplayerOverlayHost"},_.W("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.VA({"background-image":function(){var k=z();return k?'url("'+_.Ye(k.thumbnails)+'")':""}})}),_.W("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.W("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.W(cn_,{iconType:function(){var k=E();
return k===2||k===-1||k===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){D2o(E())},
tooltipText:function(){var k=E();return k===1||k===3?_.iQ("PLAYER_LABEL_PAUSE"):_.iQ("PLAYER_LABEL_PLAY")}}),_.W(_.MMW,{orientation:"horizontal_right"})),_.W("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.W(cn_,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:C,onTap:function(){pCE(Q.value)},
tooltipText:_.iQ("PREVIOUS_VIDEO_LABEL")}),_.W(cn_,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:V,onTap:function(){m2f(Q.value)},
tooltipText:_.iQ("NEXT_VIDEO_LABEL")}),_.y("web_shorts_pip_like_button")?_.W("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.W($_x,{buttonTooltipPosition:"left",data:G,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.W("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.W(_.a,{cond:function(){var k,U;return _.Z((k=J())==null?void 0:(U=k.reelPlayerOverlayRenderer)==null?void 0:U.metapanel,
skm)},
then:function(k){return _.W("div",{class:_.py("ytdShortsMiniplayerOverlayInteractive")},_.W(_.h8x,{data:k}))}})),_.W("div",{class:_.py("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var k;return!((k=J())==null||!k.adsOverlay)||b()&&!cdZ(b())}},_.W("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.W(_.wgx,null)))),_.W(_.a,{cond:function(){var k=J(),U,H;
k=_.Z(k==null?void 0:(U=k.adsOverlay)==null?void 0:(H=U.fulfillmentContent)==null?void 0:H.fulfilledLayout,Xa$);return _.Z(k==null?void 0:k.renderingContent,vpr)},
then:function(k){return _.W("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.W(sz$,{data:k}))}}))},"bh");var CXS=_.d(function(){var C=_.u(_.yH(new _.Ml(NaN,NaN),void 0,"hq9Bjf")),F=C.next().value,G=C.next().value;C=_.u(_.yH(!1,void 0,"Mu3aZc"));var V=C.next().value,J=C.next().value,b=_.u(_.yH(!1,void 0,"LGtoFb"));C=b.next().value;var z=b.next().value,Q=_.I8().resolve(_.Od).miniplayerPropSignalMap[0],E=Q.data,t=Q.shortsData,k=Q.nextButtonDisabled,U=Q.shortsPreviewThumbnail,H=Q.previousButtonDisabled,l=Q.externalPlaylistData;b=Q.toastData;var N=Q.playabilityStatus,S=Q.isDisabled,f=Q.playerVe,c=Q.closeVe;
Q=_.nZ(_.Ry);_.i9("yt-pip-window-resized",function(g){G(g)});
_.i9("yt-activate-pip-miniplayer",function(){return _.I(function(g){z(!0);_.S9(g)})});
var A=function(){var g;return!((g=l())==null||!g.contents)&&V()},T=function(){var g=F(),r=!!E(),C9=A();
g=g.clone();r&&(g.height-=76);C9&&(g.height-=285);return g},P=function(){J(!V())};
_.sq(function(){var g=f(),r=_.ZQ(11),C9=_.lm(11);r&&C9&&g&&(_.vA(r,C9,g),C9=c())&&(_.fl(r,g,[C9]),_.cA(r,[C9]))},"fHkmfb");
return _.W("ytd-pip-container",{class:"ytdPipContainerHost"},_.W(_.a,{cond:C,then:function(){return _.W(_.PH8,{isDisabled:S,playabilityStatus:N,size:T})}}),_.W(_.a,{cond:E,
then:function(){return _.W(_.s8W,{data:E,expanded:V,onExpandClick:P,playlistData:l})}}),_.W(_.a,{cond:A,
then:function(){return _.W("div",{class:"ytdPipContainerPlaylistPanel"},_.W(_.iTs,{data:l,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.W(_.a,{cond:Q,
then:function(){return _.W(An8,{data:t,nextButtonDisabled:k,previousButtonDisabled:H,playabilityStatus:N,previewThumbnail:U})}}),_.W("div",{class:"ytdPipContainerToast"},_.W(_.gUW,{toastData:b})))},"dh");var tU=function(C,F,G){var V=this;this.pipController=C;this.JSC$18971_clientRoot=F;this.JSC$18971_pageRequestService=G;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=I4W();this.watchPipEnabled=_.y("web_watch_pip");this.shortsPipEnabled=_.y("web_shorts_pip");this.JSC$18971_watchWhileEnabled=_.y("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;_.hK(_.s3(),SbA,function(J){V.isSingleOptionSurveyActive=J});
this.JSC$18971_onPlayerPlayVideo=this.JSC$18971_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);_.GA(_.FV.getInstance(),this.miniplayerServiceActionMap,this.JSC$18971_clientRoot);C.pictureInPictureSupported()&&_.q1("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},nhG,TTW,Pws,oxM,rnr,NAS;
tU.prototype.handleMediaSessionPipActivation=function(){var C=this,F;return _.I(function(G){_.v0().mediaSessionPipActivation=!0;F=_.I8().resolve(_.qG);return F.isOnWatch()&&C.watchPipEnabled?(_.v0().watchPipActivation=!0,_.e8r(C,F.data),G.jumpTo(0)):F.isOnShorts()&&C.shortsPipEnabled?(_.v0().shortsPipActivation=!0,_.dMt(C),G.jumpTo(0)):C.isMiniplayerActive()&&C.watchPipEnabled&&!C.watchWhileMode?G.yield(xMU(C),0):G.jumpTo(0)})};
var xMU=function(C){var F,G,V,J;return _.I(function(b){if(b.nextAddress==1)return F=!C.miniplayerToPipMode,G=C.playerElement,V=C.miniplayerData,J=C.watchResponse,b.yield(C.deactivate(),2);if(b.nextAddress!=3)return F?(_.v0().mediaSessionPipActivation=!0,_.v0().watchPipActivation=!0):_.v0().miniplayerButtonActivation=!0,b.yield(C.activate(G,V,J),3);C.miniplayerToPipMode=F;_.S9(b)})};
tU.prototype.onDownloadedVideoDeleted=function(C){var F,G=_.Z((F=this.miniplayerData)==null?void 0:F.watchEndpoint,_.eT),V,J;G&&((V=this.watchResponse)==null?void 0:(J=V.playerResponse)==null?void 0:J.offlineState)!==void 0&&(F=G.videoId)&&C&&F===C&&this.close()};
tU.prototype.onShowMiniplayerCommand=function(C){var F=this,G,V,J,b,z,Q,E,t,k,U,H;return _.I(function(l){switch(l.nextAddress){case 1:return G=_.Z(C,w07),J=(V=G)==null?void 0:V.miniplayerCommand,b=_.Z(J,_.eT),J&&b&&!F.active?l.yield(_.P0.getInstance(),2):l.return();case 2:return z=l.yieldResult,l.yield((Q=z)==null?void 0:Q.get("yt-miniplayer-shown-video-id"),3);case 3:E=l.yieldResult;t=b.videoId;if(!t||E===t)return l.return();k=_.I8().resolve(_.qG);if(k.isOnWatch())return _.Yw(Error("Sj")),l.return();
U={channelItem:{externalId:btoa(t)}};F.readyToResumeVe=_.m2(121253,void 0,void 0,U);_.v0().showMiniplayerCommandActivation=!0;return l.yield(_.OgS(F,J,!0),4);case 4:return F.active&&(_.aK(F,{readyToResumeVe:F.readyToResumeVe,isReadyToResume:!0}),F.isReadyToResume=!0),l.yield((H=z)==null?void 0:H.set("yt-miniplayer-shown-video-id",b.videoId),5);case 5:F.readyToResumeVe=void 0,_.S9(l)}})};
tU.prototype.init=function(C){this.miniplayerEl?_.Yw(new _.Ay("MiniplayerService already initialized.")):this.miniplayerEl=C};
tU.prototype.isInitialized=function(){var C=!!this.miniplayerEl;C||_.Yw(new _.Ay("MiniplayerService used before initialized."));return C};
_.e8r=function(C,F){if(C.isInitialized()){var G=_.Hs(F.response,!1,F.playerResponse),V=_.I8().resolve(_.qG).getPlayerFromWatch();_.v0().currentEndpoint=G.watchEndpoint||null;C.activate(V,G,F)}};
_.dMt=function(C){if(C.isInitialized()){var F=_.I8().resolve(_.qG).getPlayerFromShorts();C.activate(F)}};
nhG=function(C,F){var G;(G=!C.isInitialized())||(G=_.I8().resolve(_.qG).isOnWatch()&&C.watchPipMode,G=!(C.isMiniplayerActive()&&(_.v0().userActivation||_.v0().lockupActivation||G)));if(G)return!1;sal(C,F)?_.IK(C):NAS(C,F);return C.watchPipMode?!_.I8().resolve(_.qG).isOnWatch():!0};
tU.prototype.isMiniplayerActive=function(){return this.active};
var sal=function(C,F){var G;F=(G=_.Z(F,_.eT))==null?void 0:G.videoId;var V,J;C=(J=_.Z((V=C.miniplayerData)==null?void 0:V.watchEndpoint,_.eT))==null?void 0:J.videoId;return F!=null&&F===C};
tU.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.oo(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.rz(this.miniplayerEl,"yt-navigate-home-action"))};
_.OgS=function(C,F,G,V){G=G===void 0?!1:G;var J,b,z;return _.I(function(Q){switch(Q.nextAddress){case 1:if(C.active){Q.jumpTo(2);break}J=_.I8().resolve(_.qG);if(z=(b=C.playerElement)!=null?b:J.getPlayerFromWatch()){Q.jumpTo(3);break}return Q.yield(_.I8().resolve(_.rE),4);case 4:z=J.getPlayerFromWatch();case 3:if(!z){_.Yw(Error("Uj"));Q.jumpTo(2);break}return Q.yield(C.activate(z,V),2);case 2:return C.active?Q.yield(NAS(C,F,G),0):Q.return()}})};
tU.prototype.activate=function(C,F,G){var V=this,J,b,z,Q,E,t,k,U,H;return _.I(function(l){switch(l.nextAddress){case 1:if(!V.isInitialized())return l.return();if(!C)return _.Yw(Error("Uj")),l.return();if(_.oFu()||V.isMiniplayerActive())var N=!0;else N=_.v0().watchPipActivation||_.v0().watchWhileActivation,_.I8().resolve(_.qG).isOnWatch()&&!N?(_.Yw(new _.Ay("miniplayer activated on watch page")),N=!0):N=_.v0().watchWhileActivation?V.userDeactivatedWatchWhile||!!document.pictureInPictureElement||t5f():
!1;if(N)return T4S(),l.return();J=_.v0().mediaSessionPipActivation;b=_.v0().shortsPipActivation;z=_.v0().watchPipActivation;E=(Q=_.v0().watchWhileActivation)||z;t=z||b;if(!V.pictureInPictureEnabled()||!t){l.jumpTo(2);break}return l.yield(qth(V,J),3);case 3:if(!l.yieldResult)return _.Yw(Error("Tj")),T4S(),l.return();case 2:return V.setActive(!0),V.watchResponse=G,V.playerElement=C,V.updateMiniplayerData(F),l.yield(Pws(V,C),4);case 4:if(!V.active)return _.Yw(new _.Ay("miniplayer deactivated during activation")),
V.removePlayerListeners(),l.return();N=_.I8().resolve(_.Fx);N.addEventListener("yt-navigate",_.Gp(V,V.onPlaylistNavigate));N.addEventListener("yt-playlist-data-updated",_.Gp(V,V.JSC$18971_onPlaylistDataUpdated));V.JSC$18971_onPlaylistDataUpdated();T4S();V.JSC$18971_watchWhileEnabled&&_.gxt(V,Q);V.pictureInPictureEnabled()&&V.shortsPipEnabled&&(V.shortsPipMode=b,_.s3().dispatch(fJG(V.shortsPipMode)));V.pictureInPictureEnabled()&&V.watchPipEnabled&&(V.watchPipMode=z,_.k2B(V.handleMediaSessionPipActivation));
V.player&&(k=V.player.getPlayerState(),U=k===1,_.s3().dispatch(POP(k)),_.KX(V.miniplayerEl,"yt-miniplayer-play-state-changed",[U]),_.v0().isVideoPlaying=U);_.KX(V.miniplayerEl,"yt-miniplayer-endpoint-changed");R8L(V);_.YtW(V);if(V.shortsPipMode||V.watchPipMode)l=l.yield(_.rz(V.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{N=l.yield;var S=_.rz(V.miniplayerEl,"yt-activate-miniplayer",[E])[0];l=N.call(l,S,6)}return l;case 6:if(V.watchResponse){N=V.getScreenLayer();S=_.ZQ(0);var f=zas(0);S&&f&&
(_.O5(S,f,N),N===0&&nHZ(void 0,0))}TTW(V);oxM(V,!0);(H=V.getPlayerElement())==null||H.focusOnPlayer();_.S9(l)}})};
tU.prototype.updateMiniplayerData=function(C){this.miniplayerData=C;_.aK(this,{data:C})};
_.YtW=function(C){var F,G,V=((F=C.miniplayerData)==null?void 0:(G=F.miniplayerRenderer)==null?void 0:G.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";F=C.watchWhileMode||C.watchPipMode?V&&!_.I8().resolve(_.qG).isOnWatch():V;_.aK(C,{isDisabled:F});var J,b;G=_.Z((J=C.miniplayerData)==null?void 0:(b=J.miniplayerRenderer)==null?void 0:b.minimizedEndpoint,_.vf);F&&G&&_.I8().resolve(_.xW).openSheet({openPopupActionCommand:{openPopupAction:G}},C.miniplayerEl)};
TTW=function(C){if(C.watchResponse&&!rnr(C)){var F,G=(F=C.watchResponse.playerResponse)==null?void 0:F.trackingParams;G&&(_.aK(C,{expandVe:_.m2(35989),closeVe:_.m2(34699),readyToResumeCloseVe:_.m2(131070),repositionVe:_.m2(226204),resizeVe:_.m2(226205)}),_.aK(C,{playerVe:_.zS(G)}))}};
Pws=function(C,F){return _.I(function(G){if(G.nextAddress==1)return F.preparePlayer(),G.yield(F.getPlayerPromise(),2);C.player=G.yieldResult;C.player&&(C.player.addEventListener("onPlayVideo",C.JSC$18971_onPlayerPlayVideo),C.player.addEventListener("onCloseMiniplayer",C.onPlayerCloseMiniplayer),C.player.addEventListener("onExpandMiniplayer",C.onPlayerExpandMiniplayer),C.player.addEventListener("onStateChange",C.onPlayerStateChange));_.S9(G)})};
_.n=tU.prototype;_.n.JSC$18971_onPlayerPlayVideo=function(C){var F=C.sessionData&&"autonav"in C.sessionData,G;C.sessionData&&C.sessionData.itct&&(G=C.sessionData.itct);var V=C.watchEndpoint;F=V&&F?_.dgB(V,G):_.RQ(C.videoId,C.listId||void 0,G);C.sessionData&&_.qU(_.Z(F.commandMetadata,_.GU).url,C.sessionData);NAS(this,F)};
_.n.onPlayerExpandMiniplayer=function(){_.IK(this)};
_.n.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.n.onPlayerStateChange=function(){if(this.player){var C=this.player.getPlayerState(),F=C===1;_.s3().dispatch(POP(C));_.s3().dispatch(_.YUr(C));_.KX(this.miniplayerEl,"yt-miniplayer-play-state-changed",[F]);_.v0().isVideoPlaying=F;if(C===0){F=!_.Ef.getInstance().isAutoplaySetExplicitly();var G,V,J,b,z,Q,E=(G=this.watchResponse.response)==null?void 0:(V=G.contents)==null?void 0:(J=V.twoColumnWatchNextResults)==null?void 0:(b=J.autoplay)==null?void 0:(z=b.autoplay)==null?void 0:(Q=z.autoplayExplicitChoiceDialogRenderer)==
null?void 0:Q.confirmDialogRenderer;F&&E&&this.player.setAutonavState(1)}C===0&&this.watchWhileMode&&this.deactivate()}};
_.n.onPlaylistNavigate=function(C,F){var G=this,V,J,b,z,Q,E,t;return _.I(function(k){if(k.nextAddress==1){if(!_.Z(F.endpoint,_.eT))return k.return();_.v0().currentEndpoint=F.endpoint;_.KX(G.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.I8().resolve(_.qG).isOnWatch()&&(G.watchWhileMode||G.watchPipMode))return k.return();C.stopPropagation();(b=(J=_.Z((V=F.endpoint)==null?void 0:V.commandMetadata,_.GU))==null?void 0:J.url)&&F.tempData&&!_.xf.isEmpty(F.tempData)&&_.qU(b,F.tempData);z={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};Q=new Y2$(function(){return G.getPlayerElement()},z,{layer:G.getScreenLayer()});
E=function(U){Q.processChunk({endpoint:F.endpoint,data:U})};
Kpl(G);G.miniplayerFetchRequest=DMW(G,F.endpoint,E);_.yy(k,2);return k.yield(G.miniplayerFetchRequest,4)}if(k.nextAddress!=2)return t=k.yieldResult,pgL(G,t),_.Gn(k,0);_.wa(k);_.S9(k)})};
_.n.JSC$18971_onPlaylistDataUpdated=function(){var C=_.I8().resolve(_.Fx).getPlaylistData();this.hasPlaylistData=!!C;_.aK(this,{externalPlaylistData:C||{}})};
_.n.close=function(C){if(this.isInitialized())if(C){if(!((this.watchWhileMode||this.watchPipMode)&&_.I8().resolve(_.qG).isOnWatch()||this.shortsPipMode)){var F;(F=this.getPlayerElement())==null||F.stop()}this.deactivate()}else _.$s().closeMiniplayer(this.miniplayerEl)};
_.n.deactivate=function(C){var F=this,G,V,J,b;return _.I(function(z){if(z.nextAddress==1){if(!F.isInitialized()||!F.active)return z.return();F.setActive(!1);Kpl(F);(G=!!C&&sal(F,C))&&F.isSingleOptionSurveyActive&&_.rz(F.miniplayerEl,"yt-show-watch-page-survey",[F.isSingleOptionSurveyActive]);return z.yield(mMl(F),2)}if(z.nextAddress!=3){oxM(F,!1);F.isReadyToResume=!1;F.watchResponse=void 0;F.updateMiniplayerData(void 0);F.shortsPipMode&&(F.shortsPipMode=!1,_.s3().dispatch(fJG(F.shortsPipMode)),zlW(F.pipController),
(V=F.player)==null||V.setInternalSize(NaN,NaN));F.watchPipMode&&(F.watchPipMode=!1,zlW(F.pipController));(J=F.watchWhileMode)&&_.gxt(F,!1);F.removePlayerListeners();var Q=_.I8().resolve(_.Fx);Q.removeEventListener("yt-navigate",_.Gp(F,F.onPlaylistNavigate));Q.removeEventListener("yt-playlist-data-updated",_.Gp(F,F.JSC$18971_onPlaylistDataUpdated));_.v0().currentEndpoint=null;_.KX(F.miniplayerEl,"yt-miniplayer-endpoint-changed");F.playerElement=null;T4S();if(F.shortsPipMode||F.watchPipMode)z=z.jumpTo(3);
else{Q=z.yield;var E=_.rz(F.miniplayerEl,"yt-deactivate-miniplayer",[G,J])[0];z=Q.call(z,E,3)}return z}(b=F.player)==null||b.setInternalSize(NaN,NaN);F.player=null;_.S9(z)})};
var mMl=function(C){var F;return _.I(function(G){F=_.I8().resolve(_.qG);return C.shortsPipMode?G.yield(F.movePlayerToShorts(C.playerElement),0):G.yield(F.movePlayerToWatch(C.playerElement),0)})};
tU.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$18971_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
tU.prototype.setActive=function(C){this.active=C;this.isSingleOptionSurveyActive?_.rz(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.rz(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.s3().dispatch(_.rh({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.gxt=function(C,F){C.watchWhileMode=F;_.aK(C,{watchWhile:F})};
oxM=function(C,F){if(!rnr(C))if(C.shortsPipMode||C.watchPipMode){var G;(G=C.player)==null||G.setDocumentPictureInPicture(F)}else{var V;(V=C.player)==null||V.setMinimized(F)}};
rnr=function(C){return C.watchWhileMode&&_.y("kevlar_watch_while_counterfactual")};
_.IK=function(C){var F;return _.I(function(G){switch(G.nextAddress){case 1:if(!C.isInitialized())return G.return();_.yy(G,2);return G.yield(C.miniplayerFetchRequest,4);case 4:_.Gn(G,3);break;case 2:_.wa(G);case 3:C.watchResponse&&C.miniplayerData&&C.miniplayerData.watchEndpoint?(F={url:C.watchResponse.url,endpoint:C.miniplayerData.watchEndpoint,data:C.watchResponse,miniplayer:!0},_.oo(C.miniplayerEl,"yt-navigate-cache",F)):C.miniplayerData&&C.miniplayerData.watchEndpoint&&_.oo(C.miniplayerEl,"yt-navigate",
{endpoint:C.miniplayerData.watchEndpoint}),_.S9(G)}})};
NAS=function(C,F,G){var V,J,b,z;return _.I(function(Q){if(Q.nextAddress==1){if(sal(C,F))return Q.return();_.v0().currentEndpoint=F;_.KX(C.miniplayerEl,"yt-miniplayer-endpoint-changed");_.KX(C.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.v0().isVideoPlaying=!1;V={clientParams:{miniplayer:!0,autoSaveToQueue:!G}};J=new Y2$(function(){return C.getPlayerElement()},V,{layer:C.getScreenLayer(),
parentLayer:0},void 0,C.readyToResumeVe);b=function(E){var t,k,U=Object.assign({},(t=E.playerResponse)==null?void 0:(k=t.playerConfig)==null?void 0:k.playbackStartConfig,{startPaused:!0}),H;G&&((H=E.playerResponse)==null?0:H.playerConfig)&&(E.playerResponse.playerConfig.playbackStartConfig=U);J.processChunk({endpoint:F,data:E})};
Kpl(C);C.miniplayerFetchRequest=DMW(C,F,b);_.yy(Q,2);return Q.yield(C.miniplayerFetchRequest,4)}if(Q.nextAddress!=2)return z=Q.yieldResult,pgL(C,z),_.Gn(Q,0);_.wa(Q);_.S9(Q)})};
tU.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var Kpl=function(C){C.miniplayerFetchRequest&&(C.miniplayerFetchRequest.cancel&&C.miniplayerFetchRequest.cancel("Active request obsolete"),C.miniplayerFetchRequest=null)},DMW=function(C,F,G){var V,J=(V=_.Z(F.commandMetadata,_.GU))==null?void 0:V.url,b;
V=!J||_.y("disable_miniplayer_tempdata")?{}:(b=D7f(J))!=null?b:{};return Mb(C.JSC$18971_pageRequestService,F,V,window.location.href,"watch",function(z,Q){G(Q)},function(z){return z!==C.miniplayerFetchRequest})},pgL=function(C,F){var G;
_.I(function(V){if(!F)return V.return();C.watchResponse=F;TTW(C);R8L(C);G=_.Hs(F.response,!1,F.playerResponse);if(C.isMiniplayerActive()){F.response&&(C.playerElement.watchNextData=F.response);var J=_.xf.getValueByKeys.apply(_.xf,[F].concat(_.da(FQ7)));_.xf.getValueByKeys.apply(_.xf,[F].concat(_.da($Ll)))&&J&&_.I8().resolve(_.Fx).setAutoplayRenderer(J);if(J)if(_.y("kevlar_is_pupi_enabled")){var b,z,Q,E,t,k=((b=F.response)==null?0:(z=b.playerOverlays)==null?0:(Q=z.playerOverlayRenderer)==null?0:(E=
Q.autonavToggle)==null?0:(t=E.autoplaySwitchButtonRenderer)==null?0:t.enabled)?2:1;_.Ef.getInstance().setState(k,!1,!1)}else b=u9q()?2:1,(k=C.player)==null||k.setAutonavState(b);C.updateMiniplayerData(G);_.YtW(C)}_.S9(V)})},R8L=function(C){var F,G,V=(F=C.watchResponse)==null?void 0:(G=F.playerResponse)==null?void 0:G.playabilityStatus,J;
F=V==null?void 0:(J=V.miniplayer)==null?void 0:J.miniplayerRenderer;(F==null?void 0:F.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&F.minimizedEndpoint&&_.DQ(C.miniplayerEl,[F.minimizedEndpoint]);_.aK(C,{playabilityStatus:V})};
tU.prototype.openToast=function(C,F){_.aK(this,{toastData:{data:C,label:F}})};
_.aK=function(C,F){(0,C.miniplayerPropSignalMap[1])(F)};
tU.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var C;return this.playerElement?this.playerElement:(C=_.ot(this.miniplayerEl).querySelector("#player-container"))==null?void 0:C.firstElementChild};
tU.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var qth=function(C,F){F=F===void 0?!1:F;var G,V,J,b,z,Q,E;return _.I(function(t){if(t.nextAddress==1){G=navigator.userActivation.isActive||F;if(!G||!C.pictureInPictureSupported())return t.return(!1);V=CS8(C);J=V.width;b=V.height;return t.yield(C.pipController.openWindow({width:J,height:b}),2)}z=t.yieldResult;Q=C.pipController.getWindow();if(!Q||!z)return t.return(!1);Q.document.body.style.overflow="hidden";E=jWW(Q);QXd(C.pipController,function(){j1l(C);E()});
return t.return(!0)})},CS8=function(C){var F=_.v0().shortsPipActivation,G,V;
C=F?.5625:(V=(G=C.player)==null?void 0:G.getVideoAspectRatio())!=null?V:16/9;G=Math.min(window.innerWidth,window.innerHeight)/2;F=F?0:76;return C>1?new _.Ml(G,F+G/C):new _.Ml(G*C,F+G)},j1l=function(C){var F;
_.I(function(G){F=_.I8().resolve(_.qG);return F.isOnWatch()&&C.watchPipMode||F.isOnShorts()&&C.shortsPipMode?G.yield(C.deactivate(),0):C.miniplayerToPipMode?G.yield(xMU(C),0):C.watchPipMode?G.yield(_.IK(C),0):G.jumpTo(0)})};
tU.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.I6.Object.defineProperties(tU.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
tU[Ew]=[IB3,VA$,_.Q7];var Fh3="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(" "),
GfU="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(" "),VQV="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
i1l="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");_.J5h=_.d(function(C){return _.W("yt-channel-attribution-view-model",{class:_.py("ytChannelAttributionViewModelHost",C.className)},_.W("div",{class:"ytChannelAttributionViewModelUpper"},_.W(_.uC,{data:function(){return C.data().avatar}},{decoratedAvatarViewModel:_.R7}),_.W("div",{class:"ytChannelAttributionViewModelChannelTitle"},_.W(_.mn,{text:function(){return C.data().title}}))),_.W("div",{class:"ytChannelAttributionViewModelBottom"},_.W(_.mn,{text:function(){return C.data().subtitle}})))},"fh");var $1L=_.d(function(C){var F=_.u(_.yH(!1,void 0,"MFRKRb")),G=F.next().value,V=F.next().value,J=function(){return C.data().activeRenderer},b=function(){return C.data().inactiveRenderer};
return _.W("yt-channel-disclosure-view-model",{"on:mouseleave":_.CZ(function(){V(!1)}),
"on:mouseover":_.CZ(function(){V(!0)}),
class:_.py("ytChannelDisclosureViewModelHost",C.className)},_.W(_.a,{cond:function(){return G()},
then:function(){return _.W(_.uC,{data:J},{channelAttributionViewModel:_.J5h})},
else:function(){return _.W(_.uC,{data:b},{decoratedAvatarViewModel:_.R7})}}))},"gh");var b1h=null;var nwW={},uPW=(nwW.initialized={priority:10,callback:function(C){var F=_.I8();F.addProvider({provide:kn2,useClass:INd});F.addProvider({provide:_.QDd,useFactory:function(){return new UMm}});
F.addProvider({provide:rN,useValue:_.TF("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});F.addProvider({provide:Pir,useValue:5184E6});F.addProvider({provide:QRx,useValue:_.Ws()});F.addProvider({provide:ddd,useClass:V28});F.addProvider({provide:jz,useClass:jz});F.addProvider({provide:_.rE,useFactory:function(){return hjP.promise}});
F.addProvider({provide:_.Apr,useFactory:function(){return _.cpP.promise}});
F.addProvider({provide:f_Z,useValue:function(){var E;return((E=_.gE())==null?void 0:E.getPlayer())||null}});
var G={};F.addProvider((G.provide=_.h_,G.useFactory=function(E,t){return function(){return G2A(E,t)}},G[Ew]=[rN,
Pir],G));G={};F.addProvider((G.provide=_.lY,G.useClass=Fgh,G[Ew]=[rN,Pir],G));G={};F.addProvider((G.provide=_.a1q,G.useClass=JVr,G[Ew]=[_.lY],G));F.addProvider({provide:xR,useFactory:_.s3});F.addProvider({provide:gJ,useFactory:_.s3});F.addProvider({provide:odV,useFactory:_.s3});F.addProvider({provide:LiU,useFactory:_.s3});F.addProvider({provide:_.P$,useFactory:_.s3});F.addProvider({provide:Zz,useValue:_.Vj});F.addProvider({provide:$43,useClass:TdT});F.addProvider({provide:nOx,useClass:bv8});F.addProvider({provide:US,
useClass:US});F.addProvider({provide:tx,useClass:tx});F.addProvider({provide:nz,useClass:nz});F.addProvider({provide:aT,useClass:aT});F.addProvider({provide:wy,useClass:wy});F.addProvider({provide:bA,useClass:bA});F.addProvider({provide:oT,useClass:oT});F.addProvider({provide:_.Xjs,useValue:MPr});F.addProvider({provide:_.hS,useFactory:_.ia});F.addProvider({provide:BK,useFactory:_.bQ});G={};F.addProvider((G.provide=C1o,G.useFactory=function(E){return function(t){var k=k===void 0?{}:k;var U,H,l=(H=
_.Z((U=t.endpoint)==null?void 0:U.commandMetadata,_.GU))==null?void 0:H.rootVe;if(l){var N,S;if(U=t.previousCsn||((S=_.Z((N=t.endpoint)==null?void 0:N.commandMetadata,iKG))==null?void 0:S.parentCsn)){var f=f===void 0?{}:f;if(U!==_.ZQ(f.layer)||l!==zas(f.layer))tHS(U,f.cttAuthInfo,f.layer||0),nHZ(U,f.layer||0),N=f.layer||0,_.Yn(usW(N===void 0?0:N),l);k.parentCsn=U}t.endpoint&&U?M7P(E,t.endpoint,k):_.NJ(E,l,void 0,k);var c;((c=t.response)==null?0:c.trackingParams)&&E.graftServerVe(t.response.trackingParams);
var A;((A=t.playerResponse)==null?0:A.trackingParams)&&E.graftServerVe(t.playerResponse.trackingParams);var T;((T=t.reelWatchSequenceResponse)==null?0:T.trackingParams)&&E.graftServerVe(t.reelWatchSequenceResponse.trackingParams)}}},G[Ew]=[_.hS],G));
G={};F.addProvider((G.provide=Kgs,G.useClass=rVr,G[Ew]=[Zz,_.P$],G));G={};F.addProvider((G.provide=YM,G.useClass=YM,G[Ew]=[_.rE,_.P$],G));G={};F.addProvider((G.provide=q8,G.useClass=q8,G[Ew]=[gJ,_.WD],G));F.addProvider({provide:_.VE_,useClass:WvW});G={};F.addProvider((G.provide=_.dB,G.useClass=$0h,G[Ew]=[_.VE_,_.Qt(_.qj)],G));F.addProvider({provide:_.bo,useClass:nfs});G={};F.addProvider((G.provide=za,G.useClass=za,G[Ew]=[_.bo,_.rE,_.Qk,_.WD],G));F.addProvider({provide:_.xW,useClass:ry});F.addProvider({provide:_.VyU,
useClass:r2s});F.addProvider({provide:_.sY,useClass:Tg});_.y("enable_ai_companion")&&(F.addProvider({provide:_.qj,useClass:u5t}),F.addProvider({provide:_.FtE,useClass:UCP}),F.addProvider({provide:_.Glt,useClass:Fvs}),F.addProvider({provide:h$,useClass:h$}),F.addProvider({provide:GKP,useValue:$1L}));G={};F.addProvider((G.provide=_.we,G.useClass=EKL,G[Ew]=[_.we],G));F.addProvider({provide:_.lr,useClass:Fbh});F.addProvider({provide:Ru,useClass:Ru});F.addProvider({provide:EN,useClass:EN});F.addProvider({provide:Dz,
useClass:Dz});G={};F.addProvider((G.provide=LG,G.useClass=LG,G[Ew]=[_.WD,_.Qk],G));F.addProvider({provide:$5,useClass:oZ});G={};F.addProvider((G.provide=uv,G.useClass=uv,G[Ew]=[_.xW,$5],G));G={};F.addProvider((G.provide=V$,G.useClass=V$,G[Ew]=[_.xW],G));_.y("web_enable_feedback_endpoint_resolver")&&(G={},F.addProvider((G.provide=sc,G.useClass=sc,G[Ew]=[xR,dN],G)),F.addProvider({provide:dN,useClass:cW8}));_.y("web_enable_feedback_endpoint_resolver_batch_2")&&(G={},F.addProvider((G.provide=PR,G.useClass=
PR,G[Ew]=[xR],G)),G={},F.addProvider((G.provide=qB,G.useClass=qB,G[Ew]=[dN],G)));G={};F.addProvider((G.provide=bv,G.useClass=bv,G[Ew]=[_.sY,$5],G));G={};F.addProvider((G.provide=j4,G.useClass=j4,G[Ew]=[_.sY],G));G={};F.addProvider((G.provide=nL,G.useClass=nL,G[Ew]=[_.Qk,_.dB],G));G={};F.addProvider((G.provide=JQ,G.useClass=JQ,G[Ew]=[_.Qk,_.hS],G));F.addProvider({provide:e4,useClass:e4});G={};F.addProvider((G.provide=LL,G.useClass=LL,G[Ew]=[xR],G));F.addProvider({provide:pL,useClass:pL});F.addProvider({provide:Dv,
useClass:Dv});G={};F.addProvider((G.provide=Cz,G.useClass=Cz,G[Ew]=[xR],G));G={};F.addProvider((G.provide=j2,G.useClass=j2,G[Ew]=[_.Qk,xR],G));G={};F.addProvider((G.provide=Fr,G.useClass=Fr,G[Ew]=[xR],G));G={};F.addProvider((G.provide=Ga,G.useClass=Ga,G[Ew]=[xR],G));G={};F.addProvider((G.provide=Fq,G.useClass=Fq,G[Ew]=[_.dB],G));G={};F.addProvider((G.provide=PK,G.useClass=PK,G[Ew]=[_.hS],G));G={};F.addProvider((G.provide=re,G.useClass=re,G[Ew]=[cK],G));G={};F.addProvider((G.provide=KL,G.useClass=
KL,G[Ew]=[cK],G));F.addProvider({provide:Y5,useClass:Y5});F.addProvider({provide:TP,useClass:TP});F.addProvider({provide:q9,useClass:q9});G={};F.addProvider((G.provide=zP,G.useClass=zP,G[Ew]=[_.dB,_.WD],G));F.addProvider({provide:ou,useClass:ou});G={};F.addProvider((G.provide=iv,G.useClass=iv,G[Ew]=[_.Qk,_.dB],G));F.addProvider({provide:pG,useClass:pG});G={};F.addProvider((G.provide=M9,G.useClass=M9,G[Ew]=[xR,_.Qk,_.we],G));G={};F.addProvider((G.provide=ON,G.useClass=ON,G[Ew]=[_.Qk,_.WD],G));F.addProvider({provide:Dtl,
useValue:ngS});F.addProvider({provide:Vcu,useValue:KIA});F.addProvider({provide:Xq,useClass:Xq});G={};F.addProvider((G.provide=N9,G.useClass=N9,G[Ew]=[xR],G));G={};F.addProvider((G.provide=S4,G.useClass=S4,G[Ew]=[_.lr,_.WD],G));G={};F.addProvider((G.provide=gN,G.useClass=gN,G[Ew]=[_.WD],G));F.addProvider({provide:ed,useFactory:function(){return new ed(_.s3())}});
F.addProvider({provide:l1i,useFactory:_.Br.getInstance});G={};F.addProvider((G.provide=KG,G.useClass=KG,G[Ew]=[rN,l1i,_.WD],G));F.addProvider({provide:YR,useClass:YR});F.addProvider({provide:BR,useClass:BR});F.addProvider({provide:fG,useClass:fG});F.addProvider({provide:_.vR,useClass:_.vR});F.addProvider({provide:Jx,useClass:Jx});G={};F.addProvider((G.provide=UN,G.useClass=UN,G[Ew]=[gJ],G));G={};F.addProvider((G.provide=IB,G.useClass=IB,G[Ew]=[_.WD],G));G={};F.addProvider((G.provide=HK,G.useClass=
HK,G[Ew]=[_.WD],G));G={};F.addProvider((G.provide=lv,G.useClass=lv,G[Ew]=[_.WD],G));_.y("web_enable_prefetching_videos_on_home")&&(F.addProvider({provide:sS,useClass:sS}),F.addProvider({provide:$A,useClass:$A}));G={};F.addProvider((G.provide=io,G.useClass=io,G[Ew]=[_.WD],G));F.addProvider({provide:cR,useClass:cR});G={};F.addProvider((G.provide=de,G.useClass=de,G[Ew]=[_.Qk,_.WD],G));G={};F.addProvider((G.provide=A$,G.useClass=A$,G[Ew]=[_.WD],G));G={};F.addProvider((G.provide=b3,G.useClass=b3,G[Ew]=
[_.Qk,_.WD],G));F.addProvider({provide:JU,useClass:JU});F.addProvider({provide:tQ,useClass:tQ});G={};F.addProvider((G.provide=WK,G.useClass=WK,G[Ew]=[gJ,_.WD],G));F.addProvider({provide:aB,useClass:aB});G={};F.addProvider((G.provide=IT,G.useClass=IT,G[Ew]=[gJ,_.WD,_.Qk],G));G={};F.addProvider((G.provide=EP,G.useClass=EP,G[Ew]=[_.WD],G));G={};F.addProvider((G.provide=QQ,G.useClass=QQ,G[Ew]=[_.WD,_.Qk],G));G={};F.addProvider((G.provide=Zv,G.useClass=Zv,G[Ew]=[_.rE],G));G={};F.addProvider((G.provide=
y$,G.useClass=y$,G[Ew]=[_.rE],G));G={};F.addProvider((G.provide=k5,G.useClass=k5,G[Ew]=[_.rE],G));F.addProvider({provide:hQ,useClass:hQ});F.addProvider({provide:AQ,useClass:AQ});F.addProvider({provide:mz,useClass:mz});F.addProvider({provide:x5,useClass:x5});F.addProvider({provide:fL,useClass:fL});F.addProvider({provide:mR,useClass:mR});F.addProvider({provide:vK,useClass:vK});_.y("kevlar_enable_mss_lazy_load")&&F.addProvider({provide:_.wp,useClass:onW});F.addProvider({provide:_.k3,useClass:DV});F.addProvider({provide:Ij,
useFactory:function(){return _.FV.getInstance()}});
F.addProvider({provide:YDV,useFactory:W69});F.addProvider({provide:cK,useFactory:function(){return _.P0.getInstance()}});
F.addProvider({provide:O68,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});G={};F.addProvider((G.provide=_.P7,G.useClass=_.P7,G[Ew]=[_.rE,_.WD,_.hS,YDV,cK,Ij,O68,Zz],G));F.addProvider({provide:_.Xi,useClass:xvG});F.addProvider({provide:_.Rdh,useClass:gOL});G={};F.addProvider((G.provide=CL,G.useClass=CL,G[Ew]=[_.Rdh],G));G={};F.addProvider((G.provide=_.gy,G.useFactory=function(E){return E.upliftCompletionResolver.promise},G[Ew]=[Kgs],G));
G=_.oD("IS_SHELL_LOAD")?"aa":"eocs";var V=_.oD("IS_SHELL_LOAD")?3:2;_.Vc().parkOrScheduleJob(function(){pkM()},V,G);
_.Vc().parkOrScheduleJob(function(){_.I8().resolve(YM).start()},2,"eocs");
_.Vc().parkOrScheduleJob(function(){TGM()},2,"eocs");
_.Vc().parkOrScheduleJob(function(){_.I8().resolve(q8).start()},2,"eocs");
_.y("kevlar_debug_data_app_registration_ks")||$Fi();F.addProvider({provide:_.zb,useValue:new z_t(C.root)});F.addProvider({provide:p1,useValue:new zNE});F.addProvider({provide:_.U_s,useValue:new a0r(C.root)});F.addProvider({provide:_.zt,useValue:new kBM});F.addProvider({provide:_.Xx,useClass:BZ});F.addProvider({provide:IB3,useClass:KI});_.y("kevlar_network_sli_killswitch")||F.addProvider({provide:HWt,useValue:RW2});F.addProvider({provide:bWV,useFactory:WCA});_.y("web_bind_fetch")&&(G={},F.addProvider((G.provide=
nnr,G.useFactory=tFZ,G[Ew]=[_.Qt(bWV)],G)));_.y("web_bind_window_request")&&(G={},F.addProvider((G.provide=uF_,G.useFactory=agi,G[Ew]=[_.Qt(bWV)],G)));_.y("web_bind_text_decoder")&&(G={},F.addProvider((G.provide=z7U,G.useFactory=kq5,G[Ew]=[_.Qt(bWV)],G)));G={};F.addProvider((G.provide=ty_,G.useFactory=DuS,G[Ew]=[_.gy,xR,_.h_],G));G={};F.addProvider((G.provide=WiV,G.useClass=Wm,G[Ew]=[ty_],G));F.addProvider({provide:Ki8,useClass:Ysx});F.addProvider({provide:z03,useClass:Iih});G=[].concat(_.da(cB));
_.y("web_continuation_response_processing")&&G.push(_.O4);G.push(xsE);_.y("enable_share_panel_navigation_logging_fix_on_web")&&G.push(_.jkE);F.addProvider({provide:OiZ,useValue:G});F.addProvider({provide:NUq,useClass:ufx});F.addProvider({provide:OWt,useClass:lNs});G={};F.addProvider((G.provide=HrT,G.useClass=LY_,G[Ew]=[gJ],G));_.gT.addLowPriorityJob(function(){LJ5()});
G={};F.addProvider((G.provide=iFG,G.useFactory=function(E){return function(t){var k,U=(k=_.Z(t.commandMetadata,_.GU))==null?void 0:k.url;if(!U)throw new _.Ay("No URL for PBJ Command",t);U=g6q(U,{pbj:"1"});k=uIS(U,{})||{};k=Object.assign({},k,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.TF("STS").toString()});t=_.Me({command:JSON.stringify(t),session_token:_.TF("XSRF_TOKEN")});return E.fetch(U,{method:"POST",headers:k,body:t})}},G[Ew]=[OWt],G));
F.addProvider({provide:aNV,useFactory:function(){var E={};return E.CSI=Hgo(),E.ECATCHER=UuS(),E}});
F.addProvider({provide:I1s,useClass:kFr});G=[];G.push(F.resolve(z03));V={};V=(V.client_location=_.Br.getInstance(),V.consistency=_.IZE(),V.entities=F.resolve(nOx),V.response_received_commands=F.resolve(NUq),V.store=F.resolve(_.a1q),V.tokens=F.resolve(z03),V.service_params=F.resolve(I1s),V);if(_.y("web_shorts_prefetch_service_enabled")){var J=new $d_(F.resolve(_.lY));V.shorts_prefetch=J}V.adblock_detection=F.resolve(HrT);F.addProvider({provide:_.FP,useClass:_.FP});J=F.resolve(_.Xjs);var b=[];_.y("PremiumClientSharedConfig__enable_att_context_processor")&&
(F.addProvider({provide:T9r,useClass:glM}),b.push(F.resolve(T9r)));if(_.y("owl_pl_await")){var z={};F.addProvider((z.provide=jD_,z.useFactory=function(E){return new m0x(E)},z[Ew]=[_.FP],z));
b.push(F.resolve(jD_))}$88(J,F.resolve(OWt),F.resolve($43),V,F.resolve(_.lY),G,b,F.resolve(WiV),F.resolve(Ki8));F.addProvider({provide:_.Qk,useValue:_.BB.instance});_.y("start_client_gcf")&&F.addProvider({provide:A5,useValue:r3u()});F.addProvider({provide:Cbt,useFactory:function(){return new Cbt(_.I8().resolve(_.FP),_.P0.getInstance())}});
_.Vc().parkOrScheduleJob(function(){jXL()},1,"eocs");
G={};F.addProvider((G.provide=RZ,G.useClass=RZ,G[Ew]=[_.h_,_.Qk],G));F.addProvider({provide:_.lBW,useFactory:_.i3.getInstance});_.Vc().parkOrScheduleJob(function(){_.I8().resolve(RZ).refresh()},0,"eocs");
h0V(MPr.watchEndpointMap||{},J.reelWatchEndpointMap||{},C.injector.resolve(_.Qk));F.addProvider({provide:_.Q7,useValue:fis.instance});_.y("kevlar_signal_collection_killswitch")||(G={},F.addProvider((G.provide=enl,G.useClass=enl,G[Ew]=[rN,BK],G)),_.Vc().parkOrScheduleJob(function(){_.I8().resolve(enl).record()},1,"eocs"));
_.y("web_debug_handler_registration_killswitch")||_.Vc().parkOrScheduleJob(function(){iNZ("DOWNLOAD_PES",EGw);_.y("offline_client_state_export_ks")||iNZ("OFFLINE_CLIENT_STATE",zgi)},0,"eocs");
_.y("kevlar_prevent_polymer_dynamic_font_load")&&_.Vc().parkOrScheduleJob(function(){var E=[_.kf(h7_),_.kf(cgM)];E=_.u(E);for(var t=E.next();!t.done;t=E.next()){t=t.value;var k=document.createElement("link");_.nv(k,t,"stylesheet");document.head.appendChild(k)}},1,"eocs");
G=C.injector.resolve(_.Qk);_.YL8.instance=new _.YL8(G);PIw(e_r(new R_x(G)));G={};C.injector.addProvider((G.provide=E8,G.useFactory=function(E){(E=E==null?void 0:E.getCurrentPage())?E=E.visibilityObserver:(b1h||(b1h=EVE()),E=b1h);return E},G[Ew]=[_.Qt(_.qG)],G.skipCache=!0,G));
F.addProvider({provide:_.Od,useClass:tU});F.addProvider({provide:LR,useClass:KUl});C.injector.addProvider({provide:g5E,useValue:u6d});F.addProvider({provide:cFu,useValue:ibq});_.y("web_cow_button_renderer_wiz_token")&&F.addProvider({provide:hYu,useValue:SL8});F.addProvider({provide:qKm,useValue:CIo});F.addProvider({provide:_.v6,useValue:tm5});C=F.addProvider;N0d||(N0d=new ZB8);C.call(F,{provide:_.pI,useValue:N0d});F.addProvider({provide:_.hC,useValue:_.TF("HTML_DIR")==="rtl"?"rtl":"ltr"});F.addProvider({provide:Hvr,
useClass:Ba3});F.addProvider({provide:_.mm,useClass:mc});_.I8().addProvider({provide:yWx,useValue:_.y("enable_web_delhi_icons")?GfU.concat(i1l):Fh3.concat(VQV)});F.addProvider({provide:_.js,useClass:_.js});F.addProvider({provide:_.BiW,useValue:new LNL});F.addProvider({provide:$3s,useClass:JW3});F.addProvider({provide:sN,useClass:sN});F.addProvider({provide:ge,useClass:ge});C={};F.addProvider((C.provide=Q$,C.useClass=Q$,C[Ew]=[_.Qk,_.dB],C));F.addProvider({provide:$3,useClass:$3});F.addProvider({provide:XVr,
useClass:aBd});F.addProvider({provide:oB,useClass:oB});F.addProvider({provide:dT8,useValue:Zno});F.addProvider({provide:_.il,useClass:$aW});_.y("enable_payments_purchase_manager")&&F.addProvider({provide:D_r,useClass:olr});F.addProvider({provide:hdr,useFactory:function(){return function(E){return _.fN_(E)}}});
F.addProvider({provide:_.JGs,useClass:$l8});C={};F.addProvider((C.provide=VQ,C.useClass=VQ,C[Ew]=[_.JGs],C));F.addProvider({provide:RB,useClass:RB});F.addProvider({provide:H9L,useValue:pVx});F.addProvider({provide:IxS,useValue:_.B08});F.addProvider({provide:yNq,useClass:tEs});F.addProvider({provide:OBx,useValue:hBd});C={};F.addProvider((C.provide=XpM,C.useClass=wpr,C[Ew]=[OBx],C));C={};F.addProvider((C.provide=_.vq,C.useClass=eBt,C[Ew]=[XpM],C));C={};F.addProvider((C.provide=_.G9,C.useClass=FO,C[Ew]=
[_.P$,_.Xx],C));if(_.y("web_explore_hub_on_hover")||_.y("web_client_explore_hub_on_hover"))C={},F.addProvider((C.provide=Tj,C.useClass=Tj,C[Ew]=[_.Qk,Ij],C));if(_.y("web_enable_renderer_logger")){var Q=new gbq;FVq(function(){Q.abort()});
F.addProvider({provide:B5W,useValue:new xdM(Q.signal)})}F.addProvider({provide:YPy,useValue:Mk5});F.addProvider({provide:Iki,useClass:bfs});_.y("web_use_flow_state_manager")&&(F.addProvider({provide:_.Oc,useClass:uGh}),C={},F.addProvider((C.provide=XB,C.useClass=XB,C[Ew]=[_.Oc,_.WD],C)))}},nwW);var zKh={},Q1r=(zKh.initialized={priority:10,callback:function(){if(!U4s){kST();yAA("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.Z9(_.$B(yAA,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.y("log_heartbeat_with_lifecycles")){var C={};$W.instance||($W.instance=new $W);$W.instance.install((C.document_visible={callback:Zg5,priority:10},C.document_hidden={callback:Zg5,priority:10},C))}else _.uS(document,"visibilitychange",Zg5);U4s=!0}(C=_.ZQ())&&C!=="UNDEFINED_CSN"&&$7f(C)}},zKh);var IUr={},Ewh=(IUr.initialized={callback:function(C){var F=_.m2(232091),G=C.injector.resolve(_.hS);_.Of(G,F);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?FBq()&&_.wo(G,F):(C=C.injector.resolve(hdr)("refresh_detector"))&&(C.get("first_tab_load")?_.wo(G,F):C.set("first_tab_load","1"))}},IUr);var WhV={},tQl=(WhV.initialized={priority:10,callback:uoo},WhV);var aUx={},kfr=(aUx.initialized={priority:0,callback:function(){var C=new ryl,F="other";_.C2?F="chrome":_.m4?F="firefox":_.KD?F="safari":nO&&(F="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(G){C.increment(_.fD(),G,F)}).catch(function(){C.increment(_.fD(),!1,F)}):C.increment(_.fD(),!1,F)}},aUx);var U13={},H1L=(U13.rendering={priority:8,callback:zHs},U13);var lUW={},y5t=(lUW.rendering={priority:10,callback:Xyq},lUW.rendered={callback:OrZ},lUW),Z18={},NDd=(Z18.rendering={callback:Xyq},Z18.rendered={callback:OrZ},Z18);var O1l=!1,X8_={},w8L=(X8_.initialized={priority:10,callback:function(){O1l||(gvB({didPatch:function(C){C.el&&h6Z(C.el,C.props)},
didUnmount:function(C){vES(C.el)}}),O1l=!0)}},X8_);var MQr=/^\/shorts\/?$/;_.Yn("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:{}}}}}}});_.y("kevlar_use_common_module_manager_ks")?(_.ryw(new wyS),VZs()):Meq();
(function(){var C=document.querySelector("ytd-app");if(!C)throw Error("Wj");C=new VP({root:C,injector:_.I8()});C.install(Q1r);var F={};C.install((F.initialized={priority:10,callback:i$W},F));_.y("wp_lat_b")&&(F={},C.install((F.initialized={priority:10,callback:function(){QGo()}},F)));
F={};C.install((F.rendered={priority:0,callback:F_q},F));F={};C.install((F.rendered={priority:0,callback:function(){_.gT.addLowPriorityJob(function(){_.vO_>1&&(rZS(),CLf())},4E4)}},F));
C.install(bDL);C.install(Ewh);C.install(w8L);YQT();C.install(a9W);C.install(Fxr);C.install(Jy3);C.install(Lgr);C.install(cVW);C.install(WxM);C.install(uPW);_.y("kevlar_enable_mss_lazy_load")&&C.install(tQl);C.install(VPU);C.install(kfr);if(!_.oD("IS_SHELL_LOAD")||_.y("kevlar_fetch_initial_data_promise_client")||_.y("sw_nav_preload_pbj")){var G=_.X$(window.location.href);F=G&&G==="/watch";G=G&&G.match(MQr);F?C.install(NDd):G?C.install(H1L):C.install(y5t)}else C.install(m4V);C.install(u$W);_.y("web_enable_prefetching_videos_on_home")&&
C.install(l93);_.y("start_client_gcf")&&C.install(t_M);C.install(Oft);(new KxG).increment("INSTALLED");C.install(Ue8);C.install(KNt);C.transition("initialized");VFW()})();
_.mD=[[["Zjd6c3k1a2luZCN2cWZ5aWs=","OTRwN3N2YWx1ZSMzeDdzY2lq"],"VF9LSU5EX0VORCM2MG52M2lmMHhnZXlBRF9QTEFDRU1FTg=="]];_.p7=["bENhbGxiYWNrcyM0eGY4NmdxYWIyMXZnbG9iYQ==","dHlEZXRlY3RlZCNmcTE1YnMza2ZwOHFvbkFibm9ybWFsaQ==","dnlvbkFkU2tpcCNkZHI1NXI1bTU1","cl9yZXNwb25zZSNsYWJ6MG1iNXc5ZmlyYXdfcGxheWU=","bWVudENvbmZpZyN0ZjYxYXlmYTJuYWhhZFBsYWNl"];_.uM="bENhbGxiYWNrcyM0eGY4NmdxYWIyMXZnbG9iYQ== dHlEZXRlY3RlZCNmcTE1YnMza2ZwOHFvbkFibm9ybWFsaQ== dnlvbkFkU2tpcCNkZHI1NXI1bTU1 cl9yZXNwb25zZSNsYWJ6MG1iNXc5ZmlyYXdfcGxheWU= ZV9za2lwc19rcyM5ZWN4bmhrd3JmbWl3ZWJfcGxheWxpc3RfcXVldWVfbXVsdGlwbA== ZDlhYl9zYV9lZiN4ZmRyZWFjMXdw bWVudENvbmZpZyN0ZjYxYXlmYTJuYWhhZFBsYWNl".split(" ");
_._ModuleManager_initialize=function(C,F){if(!_.dG){if(!_.xd)return;_.ryw(_.xd())}_.dG.setAllModuleInfoString(C,F)};
_._ModuleManager_initialize('kevlar_base_module/sy3/sy4/sy1:1,2/sy2/sy5:1,2/sy6/sy7/sy8/sy9/NSzT5/syb/syc/kevlar_main_module:3,4,5,6,7,8,9/sye:1/syd:3,b,e/syf:f/syg/syh:6/syi/h8y2qb:5,g,h,i,j/syj/JzFVk:e,i,j,l/syk:8/xwEKAe:2,9,h,j,n/syl:4,c,f,h,l,n/sym:p/nmfa2d:j,q/syn:7,p/syo:i,j,q,s/CF909:t/Tm0L3c:t/L3n37:g,i,j,s/iuT5Oc',['sy3','sy4','sy8','sye','syb','sy1','syk','syj','syg','syd','syc','sy2','syl','sy7','sy6','syn','sym','syi','syh','syf','syo','sy9','sy5','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module','NSzT5']);
}catch(e){_._DumpException(e)}
try{
_.kA=function(C,F,G,V,J){var b={};F&&(b[F]=G);V?b.errorType=V:J&&(b.errorReason=J);_.q1(C,b);_.P8()};
_.UF=function(C){var F=_.Vc();return _.E1r(F,C,1)};
_.kz({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 C=this.query;C&&(this.full||C[0]==="("||(C="("+C+")"),this._mq=window.matchMedia(C),this._add(),this.queryHandler(this._mq))},
queryHandler:function(C){this._setQueryMatches(C.matches)}});var fUh;var hKW;var c5V=function(){};
_.n=c5V.prototype;_.n.addOwnKeyBinding=function(){};
_.n.removeOwnKeyBindings=function(){};
_.n.keyboardEventMatchesKeys=function(){};
_.n._collectKeyBindings=function(){};
_.n._prepKeyBindings=function(){};
_.n._addKeyBinding=function(){};
_.n._resetKeyEventListeners=function(){};
_.n._listenKeyEventListeners=function(){};
_.n._unlistenKeyEventListeners=function(){};
_.n._onKeyBindingEvent=function(){};
_.n._triggerKeyHandler=function(){};
_.n._tapHandler=function(){};
_.n._focusChanged=function(){};
_.n._detectKeyboardFocus=function(){};
_.n._userActivate=function(){};
_.n._upHandler=function(){};
_.n._spaceKeyDownHandler=function(){};
_.n._spaceKeyUpHandler=function(){};
_.n._asyncClick=function(){};
_.n._pressedChanged=function(){};
_.n._ariaActiveAttributeChanged=function(){};
_.n._activeChanged=function(){};
_.n._controlStateChanged=function(){};
_.n._changedButtonState=function(){};
_.n._focusBlurHandler=function(){};
_.n._disabledChanged=function(){};
_.n._changedControlState=function(){};
_.n._downHandler=function(){};
_.n.ensureRipple=function(){};
_.n.getRipple=function(){};
_.n.hasRipple=function(){};
_.n._noinkChanged=function(){};
_.n._focusedChanged=function(){};
_.n._createRipple=function(){};
_.n.registered=function(){};
_.n._invalidChanged=function(){};
_.n.hasValidator=function(){};
_.n.validate=function(){};
_.n._getValidity=function(){};
_.n._requiredChanged=function(){};
_.n._valueChanged=function(){};
_.n._checkedChanged=function(){};
_.n._buttonStateChanged=function(){};
_.n._setPressed=function(){};
_.n._setPointerDown=function(){};
_.n._setReceivedFocusFromKeyboard=function(){};
_.n._setFocused=function(){};
c5V=_.kz({is:"tp-yt-paper-radio-button",_template:function(){if(hKW!==void 0)return hKW;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;fUh===void 0&&(fUh=document.createElement("template"));var V=fUh;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return hKW=C},
behaviors:[_.KSu],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(){_.zH(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var C=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),F=Math.floor(3*C);F%2!==C%2&&F++;this.updateStyles({"--paper-radio-button-ink-size":F+"px"})}})}});var A5s;var eKx;_.kz({_template:function(){if(eKx!==void 0)return eKx;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;A5s===void 0&&(A5s=document.createElement("template"));var V=A5s;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return eKx=C},
is:"tp-yt-paper-radio-group",behaviors:[_.PVm],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(C){var F=this._valueToItem(C);if(!F||!F.hasAttribute("disabled")){if(this.selected){F=this._valueToItem(this.selected);if(this.selected==C)if(this.allowEmptySelection)C="";else{F&&(F.checked=!0);return}F&&
(F.checked=!1)}_.f5.select.apply(this,[C]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(C){this._focusPrevious();C.preventDefault();this._activateFocusedItem()},
_onDownKey:function(C){this._focusNext();C.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(C){_.qdl._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(C){_.qdl._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.f5._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.cP._resetTabindices.apply(this,arguments);this.items.forEach(function(C){C.removeAttribute("aria-selected")},this)}});var d1_;_.ae("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var H5=function(){return _.B.apply(this,arguments)||this};
_.O(H5,_.B);_.n=H5.prototype;_.n.computeHasPrimaryIcon=function(C){return!(!C.icon&&!C.thumbnail)};
_.n.computeHasSecondary=function(C){return!(!C.secondaryIcon&&!C.secondaryNotificationText)};
_.n.computeHideSecondaryString=function(C){return!_.y("disable_hide_empty_secondary_string")&&!C.secondaryNotificationText};
_.n.computeCompactLinkStyle=function(C){return C?C.toLowerCase().replace(/_/g,"-"):""};
_.n.computeHasFitHeight=function(C){return C==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.n.isActiveEndpoint=function(C){return(C=this.get("commandMetadata.webCommandMetadata.url",C))?_.X$(window.location.href)!=="/account_transfer_channel"&&_.X$(window.location.href)!=="/gaia_link"&&_.X$(window.location.href)!=="/channel_switcher"||C!=="/account"?_.X$(window.location.href)===C:!0:!1};
_.n.onTap=function(){var C;((C=this.data)==null?0:C.serviceEndpoint)&&_.DQ(this.hostElement,[this.data.serviceEndpoint])};
H5.prototype.onTap=H5.prototype.onTap;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],H5.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],H5.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.Y("design:type",Boolean)],H5.prototype,"active",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.Y("design:type",String)],H5.prototype,"compactLinkStyle",void 0);
_.R([_.L({computed:"computeIcon_(data.icon)"}),_.Y("design:type",Object)],H5.prototype,"icon",void 0);_.R([_.L({computed:"computeIcon_(data.secondaryIcon)"}),_.Y("design:type",Object)],H5.prototype,"secondaryIcon",void 0);_.R([_.L({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],H5.prototype,"hasSecondary",void 0);_.R([_.L({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],H5.prototype,"hideSecondaryString",void 0);
_.R([_.VG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],H5.prototype,"onTap",null);_.R([_.e({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],H5);
_.q(H5,"ytd-compact-link-renderer",function(){if(d1_!==void 0)return d1_;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return d1_=C},{mode:1});var x1U;_.ae("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var l3=function(){var C=_.B.apply(this,arguments)||this;C.role="link";C.tabindex="0";C.actionMap=_.y("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 C};
_.O(l3,_.B);_.n=l3.prototype;_.n.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.Mz()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.n.getCurrentTheme=function(){return _.Sv()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Mz()};
_.n.onThemeSelected=function(C,F){var G=C||F?C:_.w7(),V=(G&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!G&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.uYZ(_.X$(window.location.href));_.nl(0,165,C);_.nl(0,174,F);this.prefs.save();V&&_.rz(this.hostElement,"yt-dark-mode-toggled-action",[G]);_.rz(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.n.onTap=function(){this.data.serviceEndpoint&&_.DQ(this.hostElement,[this.data.serviceEndpoint])};
_.n.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.n.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.n.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
l3.prototype.onTap=l3.prototype.onTap;l3.prototype.dataChanged=l3.prototype.dataChanged;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],l3.prototype,"actionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],l3.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.F9),_.Y("design:type",Object)],l3.prototype,"paperItemBehaviors",void 0);_.R([_.L(),_.Y("design:type",Object)],l3.prototype,"data",void 0);_.R([_.L({value:function(){return _.bQ()}}),
_.Y("design:type",_.G$)],l3.prototype,"prefs",void 0);_.R([_.L(),_.Y("design:type",Object)],l3.prototype,"label",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],l3.prototype,"role",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],l3.prototype,"tabindex",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],l3.prototype,"dataChanged",null);
_.R([_.VG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],l3.prototype,"onTap",null);_.R([_.e({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],l3);
_.Tp()(l3,"ytd-toggle-theme-compact-link-renderer",function(){if(x1U===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);x1U=C}C=x1U;return C},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var q1U,PS_;_.yP=function(C){return!!C.getOptions("captions")};
_.s1W=function(C){return(C=C.getOption("captions","track"))?!!C.displayName:!1};
_.Zy=function(C,F){_.ud(F,C,function(){return q1U[F]},function(G){q1U[F]=G;
if(!_.y("mweb_player_ve_show_ks")){var V=_.ZQ(0);V&&G&&_.h3(V,G)}})};
_.Ng=function(C){(C=q1U[C])&&_.wo(_.ia(),C)};
q1U={};var gwU;/*

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
*/
_.kz({_template:function(){if(gwU!==void 0)return gwU;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;PS_===void 0&&(PS_=document.createElement("template"));var V=PS_;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return gwU=C},
is:"tp-yt-paper-checkbox",behaviors:[_.KSu],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.zH(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var C=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),F="px",G=C.match(/[A-Za-z]+$/);G!==null&&(F=G[0]);C=parseFloat(C);G=8/3*C;F==="px"&&(G=Math.floor(G),G%2!==C%2&&G++);this.updateStyles({"--paper-checkbox-ink-size":G+
F})}})},
_computeCheckboxClass:function(C,F){var G="";C&&(G+="checked ");F&&(G+="invalid");return G},
_computeCheckmarkClass:function(C){return C?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.okS._createRipple.call(this)}});var RKr=new _.Cx("radioButtonSurveyOptionRenderer"),Y1U=new _.Cx("checkboxSurveyOptionRenderer");var TDr;var ow8;var r5s=0,OF=function(){var C=_.B.call(this)||this;C.selected=!1;C.isOverlay=!1;C.inputId="toggle-option-"+r5s;r5s++;return C};
_.O(OF,_.B);OF.prototype.onTap=function(){_.oo(this.hostElement,"ytd-toggle-option-clicked")};
_.R([_.L(),_.Y("design:type",String)],OF.prototype,"label",void 0);_.R([_.L(),_.Y("design:type",String)],OF.prototype,"inputId",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],OF.prototype,"selected",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],OF.prototype,"isOverlay",void 0);_.R([_.e({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.Y("design:paramtypes",[])],OF);
_.q(OF,"ytd-toggle-option-renderer",function(){if(ow8!==void 0)return ow8;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return ow8=C},{mode:1});var XO=function(){var C=_.B.apply(this,arguments)||this;C.isToggleOption=!1;C.isOverlay=!1;return C};
_.O(XO,_.B);XO.prototype.onTap=function(C){C.preventDefault();this.data&&(C=!this.data.checked,this.set("data.checked",C),_.oo(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:C,value:this.data.value}))};
_.I6.Object.defineProperties(XO.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
XO.prototype.onTap=XO.prototype.onTap;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],XO.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],XO.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],XO.prototype,"isToggleOption",void 0);_.R([_.L(),_.Y("design:type",Object)],XO.prototype,"isOverlay",void 0);_.R([_.M("data.responseText"),_.Y("design:type",String),_.Y("design:paramtypes",[])],XO.prototype,"label",null);
_.R([_.VG("ytd-toggle-option-clicked"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],XO.prototype,"onTap",null);_.R([_.e({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],XO);
_.q(XO,"ytd-checkbox-survey-option-renderer",function(){if(TDr!==void 0)return TDr;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return TDr=C},{mode:1});var Kh_;var D1t;var wu=function(){var C=_.B.apply(this,arguments)||this;C.checked=!1;C.isToggleOption=!1;return C};
_.O(wu,_.B);wu.prototype.onTap=function(){this.data&&(this.checked?_.rz(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.rz(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
wu.prototype.onTap=wu.prototype.onTap;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],wu.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],wu.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],wu.prototype,"checked",void 0);_.R([_.L(),_.Y("design:type",Object)],wu.prototype,"isToggleOption",void 0);_.R([_.VG("ytd-toggle-option-clicked"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],wu.prototype,"onTap",null);
_.R([_.e({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],wu);
_.q(wu,"ytd-radio-button-survey-option-renderer",function(){if(D1t!==void 0)return D1t;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return D1t=C},{mode:1});var Mg=function(){var C=_.B.apply(this,arguments)||this;C.disableAnimation=!1;C.isToggleOption=!0;C.followUpSurveyCommand=null;C.selectedRatingEndpoint=null;C.isSlimlineSurveyFollowUp=!1;C.isShortsStyle=!1;C.styleOverrideAttribute=!0;C.isDarkMode=!1;C.isSubmitted=!1;C.roundedContainer=!0;C.improveShortsResponseRate=_.y("web_improve_shorts_response_rate");C.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 C};
_.O(Mg,_.B);_.n=Mg.prototype;
_.n.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"}}}}};
_.n.attached=function(){var C=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(G){var V;if((V=G[0])!=null&&V.isIntersecting){_.GS().reportShown(C.hostElement);var J;(J=C.intersectionObserver)==null||J.unobserve(C.hostElement)}},{rootMargin:"0px",
threshold:.6});var F;(F=this.intersectionObserver)==null||F.observe(this.hostElement)};
_.n.onDarkModeToggledAction=function(C){this.isDarkMode=C};
_.n.dataChanged=function(){var C;if(((C=this.data)==null?void 0:C.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var F;((F=this.data)==null?void 0:F.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var G,V,J,b;this.darkColorPalette=(G=this.data)==null?void 0:(V=G.inlineContent)==null?void 0:(J=V.compactVideoRenderer)==null?void 0:(b=J.thumbnail)==null?
void 0:b.darkColorPalette;var z,Q,E,t;this.lightColorPalette=(z=this.data)==null?void 0:(Q=z.inlineContent)==null?void 0:(E=Q.compactVideoRenderer)==null?void 0:(t=E.thumbnail)==null?void 0:t.lightColorPalette;var k,U;if(((k=this.data)==null?0:(U=k.inlineContent)==null?0:U.compactVideoRenderer)&&this.isShortsStyle){var H,l,N,S;C=_.Ye((H=this.data)==null?void 0:(l=H.inlineContent)==null?void 0:(N=l.compactVideoRenderer)==null?void 0:(S=N.thumbnail)==null?void 0:S.thumbnails);_.jr(this.hostElement,
{"--yt-background-url":"url("+C+")"})}};
_.n.handleRequestCompletion=function(){this.hostElement.hidden&&_.oo(this.hostElement,"yt-dismissible-item-dismissed")};
_.n.onPopupClosed=function(C){var F;((F=C.detail)==null?void 0:F.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.rz(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.n.handleInlineSurveyRatingSelect=function(C,F){var G=this;this.selectedRatingEndpoint=C;this.followUpSurveyCommand=F;this.expanded=!!C;this.getOptionRenderers().forEach(function(V,J){G.notifyPath("followUpSurveyCommand.followUpOptions."+J+".checkboxSurveyOptionRenderer.checked");G.set("followUpSurveyCommand.followUpOptions."+J+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),C=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.rz(this.hostElement,"yt-reel-non-video-content-dismissal-command",[C]))};
_.n.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.rz(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var C,F=(C=this.data)==null?void 0:C.dismissalEndpoint;F&&this.ytComponentBehavior.resolveCommand(F)}};
_.n.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.rz(this.hostElement,"yt-close-popup-action"))};
_.n.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var C=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{C=this.getOptionRenderers().filter(function(V){return V.checked});
if(C.length===0)return;C=C.map(function(V){return V.responseEndpoint})}var F=[];
C.forEach(function(V,J){J!==0&&(V=_.Z(V,_.Ud))&&V.feedbackToken&&F.push(V.feedbackToken)});
if(C=C[0]){var G={};F.length>0&&(G.extra_feedback_tokens=F);this.ytComponentBehavior.resolveCommand(C,{form:G})}}};
_.n.getOptionRenderers=function(){var C=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(F){C.isSingleSelect=!!_.Z(F,RKr);return C.isSingleSelect?_.Z(F,RKr):_.Z(F,Y1U)}):[]};
_.n.handleInlineSurveyOptionSelect=function(C){C=this.optionSelector.indexOf(C);C!==-1&&this.optionSelector.selectIndex(C)};
_.n.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.n.maybeGetBackgroundColor=function(C){return this.isDarkMode?C.section2Color:C.section3Color};
_.n.colorPaletteChanged=function(){var C=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;C=C&&this.maybeGetBackgroundColor(C);this.dismissibleEl.style.backgroundColor=!C||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.Hr(C)};
_.I6.Object.defineProperties(Mg.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
Mg.prototype.colorPaletteChanged=Mg.prototype.colorPaletteChanged;Mg.prototype.onPopupClosed=Mg.prototype.onPopupClosed;Mg.prototype.handleRequestCompletion=Mg.prototype.handleRequestCompletion;Mg.prototype.dataChanged=Mg.prototype.dataChanged;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Mg.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],Mg.prototype,"actionHandlerBehavior",void 0);
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Mg.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Mg.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.T6),_.Y("design:type",Object)],Mg.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.$z("#follow-up-survey-options"),_.Y("design:type",Object)],Mg.prototype,"optionSelector",void 0);_.R([_.L(),_.Y("design:type",Object)],Mg.prototype,"data",void 0);
_.R([_.L(),_.Y("design:type",Object)],Mg.prototype,"disableAnimation",void 0);_.R([_.L(),_.Y("design:type",Object)],Mg.prototype,"isToggleOption",void 0);_.R([_.L(),_.Y("design:type",Object)],Mg.prototype,"followUpSurveyCommand",void 0);_.R([_.L(),_.Y("design:type",Object)],Mg.prototype,"selectedRatingEndpoint",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Mg.prototype,"expanded",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Mg.prototype,"isSlimlineSurveyFollowUp",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Mg.prototype,"isShortsStyle",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Mg.prototype,"styleOverrideAttribute",void 0);_.R([_.L(),_.Y("design:type",Boolean)],Mg.prototype,"isSingleSelect",void 0);_.R([_.L(),_.Y("design:type",Object)],Mg.prototype,"isDarkMode",void 0);
_.R([_.L(),_.Y("design:type",Object)],Mg.prototype,"lightColorPalette",void 0);_.R([_.L(),_.Y("design:type",Object)],Mg.prototype,"darkColorPalette",void 0);_.R([_.M("selectedRatingEndpoint","isShortsStyle"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Mg.prototype,"isOptionSelected",null);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Mg.prototype,"roundedContainer",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Mg.prototype,"improveShortsResponseRate",void 0);_.R([_.$z("#dismissible"),_.Y("design:type",HTMLElement)],Mg.prototype,"dismissibleEl",void 0);_.R([_.$z("#dismiss-button yt-icon-button"),_.Y("design:type",HTMLElement)],Mg.prototype,"dismissButtonEl",void 0);_.R([_.$z("#inline-survey-header yt-icon-button"),_.Y("design:type",HTMLElement)],Mg.prototype,"inlineHeaderDismissButtonEl",void 0);
_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Mg.prototype,"dataChanged",null);_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Mg.prototype,"handleRequestCompletion",null);_.R([_.VG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Mg.prototype,"onPopupClosed",null);
_.R([_.iP("darkColorPalette","lightColorPalette","isDarkMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Mg.prototype,"colorPaletteChanged",null);_.R([_.e({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],Mg);
_.q(Mg,"ytd-inline-survey-renderer",function(){if(Kh_!==void 0)return Kh_;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Kh_=C},{mode:1});var p8r=["en-CA","en","es-MX","fr-CA"];_.m1U=_.d(function(C){var F=_.xz(C,{isOverlay:!1,isModern:!1}),G=F.captionIconType,V=F.onClick;C=F.ariaLabel;var J=F.ariaPressed,b=F.isOverlay,z=F.isModern;F=_.Jt("button",function(t){_.Zy(t,127299)});
var Q=_.CZ(function(t){_.Ng(127299);V==null||V(t);return!1}),E={};
return _.W("ytm-closed-captioning-button",{class:_.py("ytmClosedCaptioningButtonHost",(E.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return G()===-1&&b()},E.ytmClosedCaptioningButtonIconDisabled=function(){return G()===-1&&!b()},E))},_.W("button",{el:F,
class:"ytmClosedCaptioningButtonButton",title:C,"aria-label":C,"aria-pressed":J,"on:click":Q},_.W(_.i5,{icon:function(){var t="",k=z();var U=k?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";k=k?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var H=_.bQ().get("hl");U=!H||p8r.includes(H)?U:k;k=G();switch(k){case -1:case 0:t=U;break;case 1:t=U+"_FILLED";break;default:_.r2(k)}return t}})))},"hh");
_.m1U.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.gr=function(C){return function(F,G){var V=C||G.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(F,G,{get:function(){var J;return this.$?this.$[V]:(J=_.Jv(this))==null?void 0:J.querySelector("#"+V)},
enumerable:!0,configurable:!0})}};_.Rb=function(C){C=C===void 0?!1:C;_.hV.call(this);this.pubSub_=new _.SP(C);_.Nd(this,this.pubSub_)};
_.RE(_.Rb,_.hV);_.Rb.prototype.subscribe=function(C,F,G){return this.isDisposed()?0:this.pubSub_.subscribe(C,F,G)};
_.Rb.prototype.unsubscribe=function(C,F,G){return this.isDisposed()?!1:this.pubSub_.unsubscribe(C,F,G)};
_.Rb.prototype.unsubscribeByKey=function(C){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(C)};
_.Rb.prototype.publish=function(C,F){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var IA6=function(){_.kA("ypcRedeemFlowStarted")},Eih=function(C){_.kA("ypcRedeemFlowFailed",void 0,void 0,void 0,C)},WW9=function(C,F,G){F&&G&&(C.videos.forEach(function(V){V.videoId===F&&(V.itemId=G)}),C.recommendedVideos.forEach(function(V){V.videoId===F&&(V.itemId=G)}))};var tqT;var aAL;/*

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
*/
_.kz({_template:function(){if(aAL!==void 0)return aAL;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;tqT===void 0&&(tqT=document.createElement("template"));var V=tqT;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return aAL=C},
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(C,F){var G=this._resolveSrc(C);G!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",C===""||F?this._setLoading(!1):(this._resolvedSrc=G,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 C=this.$.sizedImgDiv.style,F=this.$.placeholder.style;C.backgroundSize=F.backgroundSize=this.sizing;C.backgroundPosition=F.backgroundPosition=this.sizing?this.position:"";C.backgroundRepeat=F.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(C){C=_.Hv(C,this.$.baseURIAnchor.href);C.length>=2&&C[0]==="/"&&C[1]!=="/"&&(C=(location.origin||location.protocol+"//"+location.host)+C);return C}});var kEz;var Ufh;_.kz({_template:function(){if(Ufh!==void 0)return Ufh;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;kEz===void 0&&(kEz=document.createElement("template"));var V=kEz;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return Ufh=C},
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(C){return C?"false":"true"},
_headingChanged:function(C){var F=this.getAttribute("heading"),G=this.getAttribute("aria-label");typeof G==="string"&&G!==F||this.setAttribute("aria-label",C)},
_computeHeadingClass:function(C){return C?" over-image":""},
_computeAnimated:function(C){return C}});var H9n=new _.Cx("addRendererToItemSectionAction");var lAT;var em=function(){return _.B.apply(this,arguments)||this};
_.O(em,_.B);em.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],em.prototype,"rendererBehavior",void 0);_.R([_.w(_.T6),_.Y("design:type",Object)],em.prototype,"dismissibleItemBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],em.prototype,"rendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],em.prototype,"data",void 0);_.R([_.e({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],em);
_.q(em,"ytd-comment-history-entry-renderer",function(){if(lAT!==void 0)return lAT;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return lAT=C},{mode:1});var ys0;_.ae("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.ae("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var dH=function(){return _.B.apply(this,arguments)||this};
_.O(dH,_.B);_.n=dH.prototype;_.n.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.n.onKeyUp=function(C){if(C.keyCode===13)this.onTap()};
_.n.onTap=function(){this.data.recordClickEndpoint&&_.I8().resolve(_.WD).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var C=this.data.navigationEndpoint;C&&_.Z(C,_.YD)&&_.I8().resolve(_.WD).resolveCommand(C,{form:{element:this.hostElement}})};
_.n.readChanged=function(){var C;_.pd(this.hostElement,"unread",!((C=this.data)==null?0:C.read))};
_.n.dataChanged=function(){this.data&&_.pd(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.n.computeThumbnailSize=function(){var C;return((C=this.data)==null?0:C.highPriorityNotification)?32:48};
_.n.getEndpointURL=function(C){return C&&!_.Z(C,_.YD)?this.componentBehavior.computeHref_(C):null};
_.n.getEndpointData=function(C){return C&&!_.Z(C,_.YD)?C:null};
dH.prototype.computeThumbnailSize=dH.prototype.computeThumbnailSize;dH.prototype.dataChanged=dH.prototype.dataChanged;dH.prototype.readChanged=dH.prototype.readChanged;dH.prototype.onKeyUp=dH.prototype.onKeyUp;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],dH.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],dH.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],dH.prototype,"componentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],dH.prototype,"data",void 0);_.R([_.L({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.Y("design:type",Number)],dH.prototype,"thumbnailSize",void 0);_.R([_.VG("keyup"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],dH.prototype,"onKeyUp",null);
_.R([_.iP("data.read"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dH.prototype,"readChanged",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dH.prototype,"dataChanged",null);_.R([_.iP("data.highPriorityNotification"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dH.prototype,"computeThumbnailSize",null);
_.R([_.e({is:"ytd-notification-renderer",disableElementRegistration:!0})],dH);
_.q(dH,"ytd-notification-renderer",function(){if(ys0!==void 0)return ys0;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return ys0=C},{mode:1});var Z9Y;var x$=function(){return _.B.apply(this,arguments)||this};
_.O(x$,_.B);x$.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"}}}};
x$.prototype.computeActionButtonClass=function(C){return!C.actionButtons||C.actionButtons.length<=1?"single-button":C.description?"vertical-buttons":"horizontal-buttons"};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],x$.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],x$.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],x$.prototype,"data",void 0);_.R([_.e({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],x$);
_.q(x$,"ytd-playlist-show-metadata-renderer",function(){if(Z9Y!==void 0)return Z9Y;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Z9Y=C},{mode:1});var NIF;_.ae("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var C0=function(){return _.B.apply(this,arguments)||this};
_.O(C0,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],C0.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],C0.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],C0.prototype,"data",void 0);_.R([_.e({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],C0);
_.q(C0,"ytd-purchase-item-renderer",function(){if(NIF!==void 0)return NIF;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return NIF=C},{mode:1});var O9F;var XoB={};XoB.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(C){if(C)return C.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(C){if(C==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.ae("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var jx=function(){return _.B.apply(this,arguments)||this};
_.O(jx,_.B);jx.prototype.onYtNavigate=function(C){var F=this.openPopupBehavior.getNavigationEndpointPopupAction(C.detail.endpoint);F&&(C.stopPropagation(),this.openPopupBehavior.openPopup(F))};
jx.prototype.onYtNavigate=jx.prototype.onYtNavigate;_.R([_.w(XoB.YtSimpleTextSectionBehavior),_.Y("design:type",Object)],jx.prototype,"ytSimpleTextSectionBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],jx.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nK),_.Y("design:type",Object)],jx.prototype,"openPopupBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],jx.prototype,"data",void 0);
_.R([_.VG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],jx.prototype,"onYtNavigate",null);_.R([_.e({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],jx);
_.q(jx,"ytd-simple-text-section-renderer",function(){if(O9F!==void 0)return O9F;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return O9F=C},{mode:1});var wo9;_.ae("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var Mq_=function(){return _.B.apply(this,arguments)||this};
_.O(Mq_,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Mq_.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Mq_.prototype,"data",void 0);_.R([_.e({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],Mq_);
_.q(Mq_,"ytd-unlimited-page-feature-info-renderer",function(){if(wo9!==void 0)return wo9;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return wo9=C},{mode:1});var SBl;var LWl;var F7=function(){return _.B.apply(this,arguments)||this};
_.O(F7,_.B);F7.prototype.dataChanged=function(){if(this.data){var C=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);C&&(C=_.RP(C,screen.width),this.hostElement.style.backgroundImage="url("+C+")")}};
F7.prototype.dataChanged=F7.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],F7.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],F7.prototype,"data",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],F7.prototype,"dataChanged",null);_.R([_.e({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],F7);
_.q(F7,"ytd-post-redemption-section-renderer",function(){if(LWl!==void 0)return LWl;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return LWl=C},{mode:1});var BIF;var Gd=function(){return _.B.apply(this,arguments)||this};
_.O(Gd,_.B);Gd.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Gd.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Gd.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Gd.prototype,"data",void 0);_.R([_.e({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],Gd);
_.q(Gd,"ytd-ypc-post-redemption-renderer",function(){if(BIF!==void 0)return BIF;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return BIF=C},{mode:1});_.ae("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var V4=function(){var C=_.B.apply(this,arguments)||this;C.MIN_CODE_LENGTH=12;C.MAX_CODE_LENGTH=24;return C};
_.O(V4,_.B);_.n=V4.prototype;_.n.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.n.created=function(){this.riskService=new _.Ljq;this.loadPaymentThenable=_.vgB(_.TF("YPC_MB_URL"))};
_.n.ready=function(){var C=this;this.code.addEventListener("keypress",function(F){C.onCodeInputKeypress(F)})};
_.n.dataChanged=function(){var C=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(F){F=_.u(F);for(var G=F.next();!G.done;G=F.next())G=G.value,G.type==="attributes"&&G.attributeName==="dark"&&C.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.n.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var C=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+C+")")}};
_.n.computeRedeemButton=function(C){(C=this.get("redeemButton.buttonRenderer",C))&&(C=Object.assign({},C,{serviceEndpoint:void 0}));return C};
_.n.onRedeemButtonTap=function(C){C.stopPropagation();IA6();this.redeemCode()};
_.n.redeemCode=function(){var C=this;this.isLoading=!0;var F=this.riskService.init();_.NX([F,this.loadPaymentThenable]).then(function(){var G=C.data.redeemButton.buttonRenderer.serviceEndpoint,V=_.BmT(),J=_.dJ.payments.business.integration.ClientTokenFactory.createClientToken(_.Z(G,_.uAP).countryCode,V);V={c:C.code.value.trim(),rd:window.btoa(V),ctk:J};G&&_.I8().resolve(_.WD).resolveCommand(G,{form:Object.assign({},V,{element:C.hostElement})})},function(){C.showGenericError();
Eih("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.ri(Error("Jo"))})};
_.n.onYtServiceRequestCompleted=function(C){C.stopPropagation();this.isLoading=!1;var F,G;this.errorMessage=(F=C.detail)==null?void 0:(G=F.data)==null?void 0:G.errorMessage;var V,J;this.postRedemptionRenderer=(V=C.detail)==null?void 0:(J=V.data)==null?void 0:J.renderer;var b,z;if(C=(b=C.detail)==null?void 0:(z=b.data)==null?void 0:z.redirectEndpoint)this.isLoading=!0,_.oo(this.hostElement,"yt-navigate",{endpoint:C});this.errorMessage?Eih("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
C)&&_.kA("ypcRedeemFlowSucceeded")};
_.n.onYtServiceRequestError=function(C){C.stopPropagation();this.isLoading=!1;if(C=this.get("detail.error.message",C))this.errorMessage=_.eN(C);Eih("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.n.onInvokeInstrumentManagerActionCompleted=function(C){C.stopPropagation();this.redeemCode()};
_.n.onInvokeInstrumentManagerActionError=function(C){C.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",C)){case "instrumentManagerLoadError":this.showGenericError();Eih("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();Eih("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.kA("ypcRedeemFlowCancelled")}};
_.n.onInput=function(){var C=this;_.Bb(this,"onInput",function(){var F=C.code.value.trim();C.redeemButtonDisabled=F.length<C.MIN_CODE_LENGTH||F.length>C.MAX_CODE_LENGTH},200)};
_.n.onCodeInputKeypress=function(C){C.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(IA6(),this.redeemCode())};
_.n.computeImageUrl=function(C){return C?_.RP(C.thumbnails,600):null};
_.n.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
V4.prototype.onInvokeInstrumentManagerActionError=V4.prototype.onInvokeInstrumentManagerActionError;V4.prototype.onInvokeInstrumentManagerActionCompleted=V4.prototype.onInvokeInstrumentManagerActionCompleted;V4.prototype.onYtServiceRequestError=V4.prototype.onYtServiceRequestError;V4.prototype.onYtServiceRequestCompleted=V4.prototype.onYtServiceRequestCompleted;V4.prototype.dataChanged=V4.prototype.dataChanged;
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],V4.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],V4.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],V4.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],V4.prototype,"isLoading",void 0);_.R([_.L(),_.Y("design:type",Boolean)],V4.prototype,"redeemButtonDisabled",void 0);
_.R([_.L(),_.Y("design:type",Object)],V4.prototype,"errorMessage",void 0);_.R([_.L(),_.Y("design:type",Object)],V4.prototype,"postRedemptionRenderer",void 0);_.R([_.L(),_.Y("design:type",Object)],V4.prototype,"observer",void 0);_.R([_.$z("#code"),_.Y("design:type",HTMLInputElement)],V4.prototype,"code",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],V4.prototype,"dataChanged",null);
_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],V4.prototype,"onYtServiceRequestCompleted",null);_.R([_.VG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],V4.prototype,"onYtServiceRequestError",null);
_.R([_.VG("yt-invoke-instrument-manager-action-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],V4.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.R([_.VG("yt-invoke-instrument-manager-action-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],V4.prototype,"onInvokeInstrumentManagerActionError",null);_.R([_.e({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],V4);
_.q(V4,"ytd-redeem-code-renderer",function(){if(SBl!==void 0)return SBl;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return SBl=C},{mode:1});var vi9;_.ae("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var iy=function(){var C=_.B.apply(this,arguments)||this;C.businessEmailDisplayState="HIDE_SECTION";return C};
_.O(iy,_.B);_.n=iy.prototype;_.n.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}}}}}};
_.n.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"};
_.n.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.n.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.LX(_.Two),this.businessEmailDisplayState="CAPTCHA"))};
_.n.onYtServiceRequestCompleted=function(C){var F;if((F=C.detail.data)==null?0:F.businessEmail)this.businessEmail=C.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var G;if((G=C.detail.data)==null?0:G.errorMessage)this.businessEmailErrorMessage=C.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.n.computeEmailHref=function(C){return"mailto:"+C};
_.n.computeSafeUrl=function(C){if(C)return _.Ph(C)};
_.n.onBusinessEmailCaptchaSubmit=function(){var C;(C=this.data)!=null&&C.onBusinessEmailRevealClickCommand&&(C=this.JSC$21984_captchaTextarea.value)&&(C={recaptcha_response_token:C,channel_id:this.data.channelId},_.I8().resolve(_.WD).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},C,{element:this.hostElement})}))};
_.n.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.I6.Object.defineProperties(iy.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 C,F;return!((C=this.data)==null||!C.primaryLinks)&&!((F=this.data)==null?0:F.links)&&this.data.primaryLinks.every(function(G){return G.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var C,F;return!((C=this.data)==null||!C.primaryLinks)&&!((F=this.data)==null?0:F.links)&&!this.shouldShowNewLinks}}});
iy.prototype.onYtServiceRequestCompleted=iy.prototype.onYtServiceRequestCompleted;iy.prototype.dataChanged=iy.prototype.dataChanged;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],iy.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],iy.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],iy.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.$z("#g-recaptcha-response"),_.Y("design:type",HTMLTextAreaElement)],iy.prototype,"JSC$21984_captchaTextarea",void 0);_.R([_.L(),_.Y("design:type",Object)],iy.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",String)],iy.prototype,"businessEmailDisplayState",void 0);_.R([_.L(),_.Y("design:type",String)],iy.prototype,"businessEmail",void 0);_.R([_.L(),_.Y("design:type",String)],iy.prototype,"businessEmailErrorMessage",void 0);
_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],iy.prototype,"hideDetailsSection",null);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iy.prototype,"dataChanged",null);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],iy.prototype,"shouldShowNewLinks",null);_.R([_.M("data","shouldShowLinks"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],iy.prototype,"shouldShowLegacyLinks",null);
_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],iy.prototype,"onYtServiceRequestCompleted",null);_.R([_.e({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],iy);
_.q(iy,"ytd-channel-about-metadata-renderer",function(){if(vi9!==void 0)return vi9;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return vi9=C},{mode:1});var fAT;_.ae("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var J1=function(){return _.B.apply(this,arguments)||this};
_.O(J1,_.B);J1.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer",lockupViewModel:{component:"yt-lockup-view-model",params:{force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailFixedWidth]]",containerType:"[[lockupContainerType]]"}}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],J1.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],J1.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],J1.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Number)],J1.prototype,"lockupContainerType",void 0);_.R([_.L(),_.Y("design:type",String)],J1.prototype,"thumbnailFixedWidth",void 0);
_.R([_.e({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],J1);
_.q(J1,"ytd-channel-featured-content-renderer",function(){if(fAT!==void 0)return fAT;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return fAT=C},{mode:1});var h5F;_.ae("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var $g=function(){var C=_.B.apply(this,arguments)||this;C.roundContainer=!0;C.amsterdamEnabled=_.y("enable_desktop_amsterdam_info_panels");return C};
_.O($g,_.B);_.n=$g.prototype;_.n.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.n.dataChanged=function(){this.imageWidth=this.imageHeight=24;var C=this.data;C.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!C.style&&C.image&&C.image.thumbnails.length&&(C=C.image.thumbnails[0],this.imageWidth=C.width||0,this.imageHeight=C.height||0)};
_.n.computeSource=function(C){return C.secondarySource?_.dd(C.secondarySource):_.dd(C.source)};
_.n.computeClarifyStyle=function(C){return C?C.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.n.isLargeStyle=function(C){return C==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.n.computeBackgroundStyle=function(C){return C?C.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.n.computeHasActionButton=function(C){return!!C.actionButton};
_.n.computeHasBottomSection=function(C){return!!C.ctaHasBottomSection};
_.n.computeIsSourceMissing=function(C){return C.ctaHasBottomSection===!1?!0:C&&this.computeSource(C)?!1:!0};
_.n.computeSecondaryEndpoint=function(C){return C.secondaryEndpoint||C.endpoint};
$g.prototype.dataChanged=$g.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],$g.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],$g.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],$g.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Number)],$g.prototype,"imageWidth",void 0);_.R([_.L(),_.Y("design:type",Number)],$g.prototype,"imageHeight",void 0);
_.R([_.L({computed:"computeSecondaryEndpoint(data)"}),_.Y("design:type",Object)],$g.prototype,"secondaryEndpoint",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.Y("design:type",Boolean)],$g.prototype,"hasActionButton",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.Y("design:type",Boolean)],$g.prototype,"hasBottomSection",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.Y("design:type",Boolean)],$g.prototype,"missingSource",void 0);_.R([_.L({computed:"computeIcon_(data.icon)"}),_.Y("design:type",String)],$g.prototype,"icon",void 0);_.R([_.L({computed:"computeIcon_(data.secondaryIcon)"}),_.Y("design:type",String)],$g.prototype,"secondaryIcon",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.Y("design:type",String)],$g.prototype,"clarifyStyle",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.Y("design:type",String)],$g.prototype,"backgroundStyle",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],$g.prototype,"roundContainer",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],$g.prototype,"amsterdamEnabled",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$g.prototype,"dataChanged",null);
_.R([_.e({is:"ytd-clarification-renderer",disableElementRegistration:!0})],$g);
_.q($g,"ytd-clarification-renderer",function(){if(h5F!==void 0)return h5F;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return h5F=C},{mode:1});var cs9;var AsS;var by=function(){var C=_.B.apply(this,arguments)||this;C.amsterdamEnabled=_.y("enable_desktop_amsterdam_info_panels");return C};
_.O(by,_.B);_.n=by.prototype;_.n.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.n.computeIcon=function(C){return C?"yt-icons:"+C.toLowerCase():null};
_.n.computeUseContacts=function(C){return!!C.contacts&&C.contacts.length>0};
_.n.computePhoneContact=function(C){var F,G;return(F=C.contacts)==null?void 0:(G=F.find(function(V){var J;return(V==null?void 0:(J=V.icon)==null?void 0:J.iconType)==="PHONE"}))==null?void 0:G.actionText};
_.n.computeSmsContact=function(C){var F,G;return(F=C.contacts)==null?void 0:(G=F.find(function(V){var J;return(V==null?void 0:(J=V.icon)==null?void 0:J.iconType)==="SMS"}))==null?void 0:G.actionText};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],by.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],by.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],by.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],by.prototype,"amsterdamEnabled",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.Y("design:type",Boolean)],by.prototype,"useContacts",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.Y("design:type",String)],by.prototype,"phoneContact",void 0);_.R([_.e({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],by);
_.q(by,"ytd-single-action-emergency-support-renderer",function(){if(AsS!==void 0)return AsS;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return AsS=C},{mode:1});_.ae("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var n0=function(){var C=_.B.apply(this,arguments)||this;C.roundedContainer=!0;C.amsterdamEnabled=_.y("enable_desktop_amsterdam_info_panels");return C};
_.O(n0,_.B);n0.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"}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],n0.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],n0.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],n0.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],n0.prototype,"roundedContainer",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],n0.prototype,"amsterdamEnabled",void 0);
_.R([_.e({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],n0);
_.q(n0,"ytd-emergency-onebox-renderer",function(){if(cs9!==void 0)return cs9;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return cs9=C},{mode:1});var e5n;_.ae("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var uy=function(){return _.B.apply(this,arguments)||this};
_.O(uy,_.B);uy.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"}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],uy.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],uy.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],uy.prototype,"data",void 0);_.R([_.e({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],uy);
_.q(uy,"ytd-exploratory-results-renderer",function(){if(e5n!==void 0)return e5n;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return e5n=C},{mode:1});var dfl;_.ae("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var zd=function(){var C=_.B.apply(this,arguments)||this;C.messageData=null;return C};
_.O(zd,_.B);_.n=zd.prototype;_.n.onServiceRequestCompleted=function(C,F){C=F.actions||[];F=0;for(var G=C.length;F<G;F++){var V=C[F],J=void 0,b=void 0;if((J=_.Z(V,_.MS))==null?0:(b=J.item)==null?0:b.messageRenderer)this.messageData=_.Z(V,_.MS).item.messageRenderer}};
_.n.dataChanged=function(){var C=this.data;this.hostElement.hidden=!1;_.pd(this.hostElement,"is-channel",C&&!C.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.n.computeThumbnailWidth=function(C){return C?126:56};
_.n.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.n.onSubmitTap=function(){var C=this.data,F=this.selectedResponseIndex;C!==void 0&&F!==void 0&&(C=C.responses[F],C.responseData&&_.I8().resolve(_.WD).resolveCommand(C.responseData,{form:{element:this.hostElement}}))};
_.n.onDismissTap=function(){this.hostElement.hidden=!0;var C=this.data;C!==void 0&&C.dismissalEndpoint&&_.I8().resolve(_.WD).resolveCommand(C.dismissalEndpoint,{form:{element:this.hostElement}})};
_.n.updateSelectedResponseIndexFromBinding=function(C){this.selectedResponseIndex=C.detail.value};
zd.prototype.onSelectedResponseIndexChange=zd.prototype.onSelectedResponseIndexChange;zd.prototype.dataChanged=zd.prototype.dataChanged;zd.prototype.onServiceRequestCompleted=zd.prototype.onServiceRequestCompleted;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],zd.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],zd.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],zd.prototype,"messageData",void 0);
_.R([_.L(),_.Y("design:type",Number)],zd.prototype,"selectedResponseIndex",void 0);_.R([_.$z("#submit-button"),_.Y("design:type",HTMLButtonElement)],zd.prototype,"submitButton",void 0);_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.en]),_.Y("design:returntype")],zd.prototype,"onServiceRequestCompleted",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zd.prototype,"dataChanged",null);
_.R([_.iP("selectedResponseIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zd.prototype,"onSelectedResponseIndexChange",null);_.R([_.e({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],zd);
_.q(zd,"ytd-feedback-elicitation-single-question-renderer",function(){if(dfl!==void 0)return dfl;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return dfl=C},{mode:1});var xfY;var Q4=function(){return _.B.apply(this,arguments)||this};
_.O(Q4,_.B);Q4.prototype.computeThumbnailWidth=function(C){return C?602:428};
Q4.prototype.updateWideFromBinding=function(C){this.wide=C.detail.value};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Q4.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Q4.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Boolean)],Q4.prototype,"wide",void 0);_.R([_.e({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],Q4);
_.q(Q4,"ytd-newspaper-hero-video-renderer",function(){if(xfY!==void 0)return xfY;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return xfY=C},{mode:1});var sw_;var qBz=function(){return _.B.apply(this,arguments)||this};
_.O(qBz,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],qBz.prototype,"rendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],qBz.prototype,"data",void 0);_.R([_.e({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],qBz);
_.q(qBz,"ytd-newspaper-mini-video-renderer",function(){if(sw_!==void 0)return sw_;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return sw_=C},{mode:1});var PZ6;_.ae("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var Ig=function(){return _.B.apply(this,arguments)||this};
_.O(Ig,_.B);Ig.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"}}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Ig.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Ig.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Ig.prototype,"data",void 0);_.R([_.e({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],Ig);
_.q(Ig,"ytd-newspaper-renderer",function(){if(PZ6!==void 0)return PZ6;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return PZ6=C},{mode:1});var giT;_.ae("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var E$=function(){var C=_.B.apply(this,arguments)||this;C.isSegment=!1;C.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};C.nextContinuation={continuationType:"playlistVideoListContinuation"};return C};
_.O(E$,_.B);_.n=E$.prototype;_.n.created=function(){var C=this;this.JSC$22017_ytReorderableController=new _.oQS(101,function(F){C.handleDrop(F)})};
_.n.attached=function(){_.I8();var C;(C=_.I8().resolve(_.Qt(_.we)))!=null&&(C.playlistVideoListElement=this.hostElement)};
_.n.detached=function(){var C;(C=_.I8().resolve(_.Qt(_.we)))!=null&&(C.playlistVideoListElement=void 0);C=_.I8().resolve(_.Qt(_.lr));_.y("web_enable_voting_animation")&&C&&(C.parentElem=void 0,C.videos=[],C.continuationsPresent=!1,C.showRefreshPill=!1);_.Mj(this.JSC$22017_ytReorderableController)};
_.n.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"}}}}}};
_.n.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.n.dataChanged=function(){var C=_.I8().resolve(_.Qt(_.lr));if(_.y("web_enable_voting_animation")&&this.data&&C){var F=_.ot(this.hostElement).querySelector("#contents");F&&(C.parentElem=F);C.addVideos(this.data.contents)}_.Mj(this.JSC$22017_ytReorderableController)};
_.n.onRendererstamperFinished=function(){this.canReorder&&_.rDu(this.JSC$22017_ytReorderableController,_.ot(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.n.onPlaylistReloading=function(){this.isReloading=!0};
_.n.onUpdateSetVideoId=function(C){if(C.detail&&this.data&&this.data.contents){var F=C.detail;C=this.data.contents.findIndex(function(J){var b;return((b=J.playlistVideoRenderer)==null?void 0:b.videoId)===F.videoId});
if(!(C<0)&&F.setVideoId&&(this.set("data.contents."+C+".playlistVideoRenderer.setVideoId",F.setVideoId),_.y("web_enable_voting_animation"))){var G;if(C=_.Z((G=this.data.contents[C].playlistVideoRenderer)==null?void 0:G.engagementBar,_.DNA)){var V;(V=C.actions)==null||V.forEach(function(J){if(J=_.Z(J,_.pUT))J.itemId=F.setVideoId})}(G=_.I8().resolve(_.Qt(_.lr)))&&WW9(G,F.videoId,F.setVideoId)}}};
_.n.computeContentsClass=function(C){return C?"reloading":""};
_.n.computeIsSortable=function(C,F){return C&&F>0&&!this.isSegment&&!_.y("shorts_in_playlists_web")};
_.n.computeIsEditable=function(C){return C};
_.n.computeCanReorder=function(C){return C};
_.n.handlePlaylistRemoveVideosAction=function(C){if(this.get("playlistRemoveVideosAction.setVideoIds",C)&&this.data&&this.data.contents){C=_.Z(C,_.B38).setVideoIds;for(var F=this.data.contents.length-1;F>=0;){var G=this.data.contents[F].playlistVideoRenderer;G&&G.setVideoId&&C.includes(G.setVideoId)&&this.splice("data.contents",F,1);F--}_.rz(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.n.updateIndices=function(){if(this.data&&this.data.contents)for(var C=0;C<this.data.contents.length;C++)this.set("data.contents."+C+".playlistVideoRenderer.index",_.eN(String(C+1)))};
_.n.handleDrop=function(C){C=C.currDragItem;var F=_.dI(C.parentNode.childNodes,C),G=this.data.contents.splice(Number(_.dd(C.data.index))-1,1)[0];this.data.contents.splice(F,0,G);F=F?this.get("contents."+(F-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();C=this.buildReorderServiceEndpoint(C.data.setVideoId,F);this.ytComponentBehavior.resolveCommand(C)};
_.n.buildReorderServiceEndpoint=function(C,F){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",C),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",F),this.data.onReorderEndpoint):null};
_.n.handleUpdatePlaylistAction=function(C){var F;(C=_.Z((F=_.Z(C,_.vr$))==null?void 0:F.updatedRenderer,_.Bq2))&&this.canReorder!==C.canReorder&&this.set("data.canReorder",C.canReorder);C&&C.contents&&(this.set("data.contents",C.contents),this.isReloading=!1);C&&C.continuations&&this.set("data.continuations",C.continuations)};
_.n.handleAddRendererToItemSectionAction=function(C){var F,G=(F=_.Z(C,H9n))==null?void 0:F.renderer,V;G&&((V=_.Z(C,H9n))==null?void 0:V.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,G),C=_.I8().resolve(_.Qt(_.lr)),_.y("web_enable_voting_animation")&&C&&(G&&(F=_.KJZ(G))&&C.recommendedVideos.push({itemId:F,videoId:_.mNI(G),voteCount:_.Cyo(G),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.n.isVotingEnabledOnPlaylist=function(C){if(!C)return!1;C=_.u(C);for(C=C.next();!C.done;C=C.next()){var F=void 0;return!!_.Z((F=C.value.playlistVideoRenderer)==null?void 0:F.engagementBar,_.DNA)}return!1};
_.n.onAppendContinuationItemsActionFinished=function(){var C;this.isVotingEnabledOnPlaylist((C=this.data)==null?void 0:C.contents)&&(this.updateIndices(),C=_.I8().resolve(_.Qt(_.lr)),_.y("web_enable_voting_animation")&&C&&this.data&&C.addVideos(this.data.contents))};
_.n.updateVideoData=function(C){if(C.detail&&this.data&&this.data.contents){var F=C.detail;C=F.toIdx;var G=F.itemId,V=F.newVoteCount,J=F.voteStatus;F=F.hideItem;var b,z,Q=(b=this.data)==null?void 0:(z=b.contents)==null?void 0:z.findIndex(function(U){return _.KJZ(U)===G});
if(!(Q<0)){b=this.data.contents[Q];var E;if((E=b.playlistVideoRenderer)==null?0:E.voteCount)b.playlistVideoRenderer.voteCount=V;var t;if(E=_.Z((t=b.playlistVideoRenderer)==null?void 0:t.engagementBar,_.DNA)){var k;(k=E.actions)==null||k.forEach(function(U){(U=_.Z(U,_.pUT))&&U.initialState&&(U.initialState.votes=V,U.initialState.status=J)})}this.data.contents.splice(Q,1);
F||this.data.contents.splice(C,0,b);this.updateIndices()}}};
E$.prototype.updateVideoData=E$.prototype.updateVideoData;E$.prototype.onAppendContinuationItemsActionFinished=E$.prototype.onAppendContinuationItemsActionFinished;E$.prototype.onUpdateSetVideoId=E$.prototype.onUpdateSetVideoId;E$.prototype.onPlaylistReloading=E$.prototype.onPlaylistReloading;E$.prototype.onRendererstamperFinished=E$.prototype.onRendererstamperFinished;E$.prototype.dataChanged=E$.prototype.dataChanged;
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],E$.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],E$.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],E$.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.VD.YtNextContinuationBehavior),_.Y("design:type",Object)],E$.prototype,"ytNextContinuationBehavior",void 0);
_.R([_.w(_.G1),_.Y("design:type",Object)],E$.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],E$.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],E$.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Boolean)],E$.prototype,"isReloading",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],E$.prototype,"isSegment",void 0);
_.R([_.L({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.Y("design:type",Boolean)],E$.prototype,"isSortable",void 0);_.R([_.L({computed:"computeIsEditable(data.isEditable)"}),_.Y("design:type",Boolean)],E$.prototype,"isEditable",void 0);_.R([_.L({computed:"computeCanReorder(data.canReorder)"}),_.Y("design:type",Boolean)],E$.prototype,"canReorder",void 0);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],E$.prototype,"dataChanged",null);_.R([_.VG("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],E$.prototype,"onRendererstamperFinished",null);_.R([_.VG("yt-playlist-reloading"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],E$.prototype,"onPlaylistReloading",null);
_.R([_.VG("yt-update-set-video-id"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],E$.prototype,"onUpdateSetVideoId",null);_.R([_.VG("yt-append-continuation-items-action-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],E$.prototype,"onAppendContinuationItemsActionFinished",null);
_.R([_.VG("yt-update-video-data-voting-animation"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],E$.prototype,"updateVideoData",null);_.R([_.e({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],E$);
_.q(E$,"ytd-playlist-video-list-renderer",function(){if(giT!==void 0)return giT;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return giT=C},{mode:_.oN("kevlar_poly_si_batch_j047")?1:2});var R5F;var Wi=function(){return _.B.apply(this,arguments)||this};
_.O(Wi,_.B);Wi.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"}}}}};
Wi.prototype.onTextWrapperTap=function(C){var F=this.data&&this.data.navigationEndpoint;F&&!_.dE(_.AR(C),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.oo(this.hostElement,"yt-navigate",{endpoint:F})};
Wi.prototype.dataChanged=function(){var C=this.get("data.offerButton.buttonRenderer.serviceEndpoint");C&&C.commandMetadata&&_.Z(C.commandMetadata,_.fH)&&_.Z(C.commandMetadata,_.fH).fireAutomatically&&_.I8().resolve(_.WD).resolveCommand(C,{form:{element:this.hostElement}})};
Wi.prototype.dataChanged=Wi.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Wi.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Wi.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.CR),_.Y("design:type",Object)],Wi.prototype,"ytdLockupBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Wi.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,value:function(){return _.y("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],Wi.prototype,"useBiggerThumbs",void 0);_.R([_.L({reflectToAttribute:!0,value:function(){return _.kU("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],Wi.prototype,"biggerThumbsStyle",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Wi.prototype,"leftAligned",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Wi.prototype,"dataChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-movie-renderer"})],Wi);
_.q(Wi,"ytd-movie-renderer",function(){if(R5F!==void 0)return R5F;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return R5F=C},{mode:1});var YB_;var t1=function(){var C=_.B.apply(this,arguments)||this;C.rounded=!0;C.pageAttachedTo=void 0;C.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return C};
_.O(t1,_.B);t1.prototype.attached=function(){this.pageAttachedTo=_.I8().resolve(_.qG).getCurrentPage();_.oo(this.hostElement,"yt-player-attached",this.player)};
t1.prototype.detached=function(){var C;if((C=this.pageAttachedTo)==null?0:C.hostElement)_.oo(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
t1.prototype.dataChanged=function(){var C;if((C=this.data)==null?0:C.videoId)C={video_id:this.data.videoId,autoplay:!0},!_.y("miniplayer_stop_channel_video_autoplay_killswitch")&&_.I8().resolve(_.Od).isMiniplayerActive()&&(C.pause_at_start=!0,C.autoplay=!1),this.player.loadVideoWithPlayerVars(C)};
t1.prototype.handleSignalActionPausePlayer=function(){_.Re().pause()};
t1.prototype.dataChanged=t1.prototype.dataChanged;_.R([_.L(),_.Y("design:type",Object)],t1.prototype,"data",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],t1.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],t1.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],t1.prototype,"rounded",void 0);_.R([_.$z("#player"),_.Y("design:type",Object)],t1.prototype,"player",void 0);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],t1.prototype,"dataChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],t1);
_.q(t1,"ytd-channel-video-player-renderer",function(){if(YB_!==void 0)return YB_;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return YB_=C},{mode:1});var TI6;var oi0;var rsL;var ag=function(){var C=_.B.apply(this,arguments)||this;C.playing=!1;C.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.rI(C);C.active=!1;return C};
_.O(ag,_.B);_.n=ag.prototype;_.n.detached=function(){this.stop()};
_.n.play=function(){var C=this,F,G,V,J,b;return _.I(function(z){if(z.nextAddress==1)return C.active=!0,F=C.get("data.inlinePlaybackEndpoint.watchEndpoint"),G=F.videoId||C.data.videoId,V=F.startTimeSeconds||0,J=F.playerParams||null,_.y("kevlar_player_update_killswitch")?z.yield(C.playerEl.update({args:{video_id:G,startSeconds:V,player_params:J}}),2):(C.playerEl.loadVideoWithPlayerVars({video_id:G,startSeconds:V,player_params:J,autoplay:!0}),z.jumpTo(2));if(z.nextAddress!=4)return z.yield(C.playerEl.getPlayerPromise(),
4);b=z.yieldResult;b.unloadModule("annotations_module");b.addEventListener("onStateChange",function(Q){C.onPlayerStateChange(Q)});
_.S9(z)})};
_.n.onPlayerStateChange=function(C){if(this.active)switch(this.playing=C===1,C){case 1:_.oo(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.oo(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.n.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.n.resize=function(){var C=this,F;return _.I(function(G){if(G.nextAddress==1)return G.yield(C.playerEl.getPlayerPromise(),2);F=G.yieldResult;F.setSize(NaN,NaN);_.S9(G)})};
_.R([_.L(),_.Y("design:type",Object)],ag.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],ag.prototype,"playing",void 0);_.R([_.L(),_.Y("design:type",Object)],ag.prototype,"playerId",void 0);_.R([_.$z("#player"),_.Y("design:type",Object)],ag.prototype,"playerEl",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],ag);
_.q(ag,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(rsL!==void 0)return rsL;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return rsL=C},{mode:1});var KWS;var DfY;var kg=function(){var C=_.B.apply(this,arguments)||this;C.width=0;return C};
_.O(kg,_.B);_.n=kg.prototype;_.n.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.Gp(this,this.onEnded));this.mp4El.addEventListener("error",_.Gp(this,this.onError))};
_.n.detached=function(){this.videoEl.removeEventListener("ended",_.Gp(this,this.onEnded));this.mp4El.removeEventListener("error",_.Gp(this,this.onError))};
_.n.play=function(){var C=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var F=this.videoEl.play();F?F.then(function(){C.handleVideoStartPlaying()}).catch(function(){_.oo(C.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.oo(this.hostElement,"yt-video-thumbnail-not-playing")};
_.n.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.n.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.n.dataChanged=function(){var C;if((C=this.data)==null?0:C.thumbnailPlaceholder)C=_.RP(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+C+")";this.stop();this.autoplay&&this.play()};
_.n.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.n.onEnded=function(){this.stop();_.oo(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.n.onError=function(){_.oo(this.hostElement,"yt-video-thumbnail-error")};
_.n.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.n.getVideoThumbnail=function(C){if(C&&C.length)return C[0]};
kg.prototype.dataChanged=kg.prototype.dataChanged;_.R([_.L(),_.Y("design:type",Object)],kg.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],kg.prototype,"animatePlaceholderOnEntrance",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],kg.prototype,"autoplay",void 0);_.R([_.L({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.Y("design:type",Object)],kg.prototype,"videoThumbnail",void 0);
_.R([_.L(),_.Y("design:type",Boolean)],kg.prototype,"loop",void 0);_.R([_.L(),_.Y("design:type",Boolean)],kg.prototype,"isVideoPlaying",void 0);_.R([_.L(),_.Y("design:type",Object)],kg.prototype,"width",void 0);_.R([_.$z("#mp4"),_.Y("design:type",HTMLElement)],kg.prototype,"mp4El",void 0);_.R([_.$z("#placeholder"),_.Y("design:type",HTMLElement)],kg.prototype,"placeholderEl",void 0);_.R([_.$z("#video"),_.Y("design:type",HTMLVideoElement)],kg.prototype,"videoEl",void 0);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kg.prototype,"dataChanged",null);_.R([_.Z5({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],kg);
_.q(kg,"yt-video-as-thumbnail-details",function(){if(DfY===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;KWS===void 0&&(KWS=document.createElement("template"));var V=KWS;G.call(F,V.content.cloneNode(!0),C.content.firstChild);DfY=C}C=DfY;return C},{mode:2});var U$=function(){var C=_.B.apply(this,arguments)||this;C.disableGridStateAware=!1;C.animationEnabled=_.y("enable_web_ketchup_hero_animation");C.transitioningOut=!1;C.narrow=!1;C.narrower=!1;C.isCarouselInFeed=!1;C.videoTimeoutJobId=0;C.panelTimeoutJobId=0;C.panelTimeoutJobStartMs=0;C.actionMap={"yt-window-resized":"onWindowResized"};return C};
_.O(U$,_.B);_.n=U$.prototype;_.n.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.n.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.n.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var C;this.player&&((C=this.data)==null?0:C.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.n.attached=function(){this.onWindowResized()};
_.n.detached=function(){this.clearTimeouts()};
_.n.onWindowResized=function(){this.updateSize()};
_.n.computePanelLayout=function(C){return C&&C.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.n.playVideo=function(){var C;this.video&&((C=this.data)==null?0:C.videoThumbnail)&&this.video.play();var F;this.player&&((F=this.data)==null?0:F.inlinePlaybackRenderer)&&this.player.play()};
_.n.stopVideo=function(){var C;this.video&&((C=this.data)==null?0:C.videoThumbnail)&&this.video.stop();var F;this.player&&((F=this.data)==null?0:F.inlinePlaybackRenderer)&&this.player.stop()};
_.n.transitionOut=function(){var C=this;this.transitioningOut=!0;return new Promise(function(F){var G=function(){_.ot(C.hostElement).querySelector("#action-button").removeEventListener("animationend",G);_.gT.cancelJob(V);F();C.transitioningOut=!1};
var V=_.c8(_.gT,G,1E3);_.ot(C.hostElement).querySelector("#action-button").addEventListener("animationend",G);C.player&&(C.player.playing=!1)})};
_.n.computeMetadataOrder=function(C){return C&&C.metadataOrder&&C.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?C.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.n.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.n.computeAvatarSize=function(C){return C&&C.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.n.onContentClick=function(C){if(!_.dE(_.AR(C),this.hostElement,["A".toString(),"BUTTON".toString()])){var F;if((F=this.data)==null?0:F.navigationEndpoint){var G;this.componentBehavior.resolveCommand((G=this.data)==null?void 0:G.navigationEndpoint)}}};
_.n.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.n.setBackgroundImage=function(C){if(C=this.getBackgroundImageUrl(C))_.ot(this.hostElement).querySelector("#hero").style.backgroundImage="url("+C+")"};
_.n.setScrimLayer=function(C){var F=this.getScrimLayerColorStops(C);C=((C==null?void 0:C.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(C=180);_.TF("HTML_DIR")==="rtl"&&(C=-C);F&&(_.ot(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+C+"deg, "+F+")")};
_.n.isNarrower=function(){return this.hostElement.clientWidth<U$.NARROW_VERSION_SIZE};
_.n.getScrimLayerColorStops=function(){var C,F=(C=this.data)==null?void 0:C.scrimColorValues;if(!F)return null;if(F.length===1)return C=_.lE(F[0]),C+" 0%, "+C+" 100%";if(F.length===3){var G=[0,72,98];return F.map(function(V,J){return _.lE(V)+" "+G[J]+"%"}).join(",")}return null};
_.n.getBackgroundImageUrl=function(C){return C&&C.largeFormFactorBackgroundThumbnail?_.RP((C.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||C.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.n.onPlaying=function(){this.startVideoTimeout()};
_.n.onEnded=function(){this.rotate()};
_.n.startPanelTimeout=function(){var C=this;if(!this.panelTimeoutJobId){var F=this.get("data.minPanelDisplayDurationMs");F&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.c8(_.gT,function(){C.rotate()},F))}};
_.n.startVideoTimeout=function(){var C=this;if(!this.videoTimeoutJobId){_.gT.cancelJob(this.panelTimeoutJobId);var F=Date.now()-this.panelTimeoutJobStartMs;F=Math.max(0,this.get("data.minPanelDisplayDurationMs")-F);F=Math.max(this.get("data.minVideoPlayDurationMs")||0,F);this.videoTimeoutJobId=_.c8(_.gT,function(){C.rotate()},F)}};
_.n.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.gT.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.gT.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.n.rotate=function(){this.clearTimeouts();_.oo(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.I6.Object.defineProperties(U$.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.ot(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.ot(this.hostElement).querySelector("#video")}}});
_.I6.Object.defineProperties(U$,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
U$.prototype.onEnded=U$.prototype.onEnded;U$.prototype.onPlaying=U$.prototype.onPlaying;U$.prototype.dataChanged=U$.prototype.dataChanged;_.R([_.w(_.rK),_.Y("design:type",Object)],U$.prototype,"ytdGridStateAwareBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],U$.prototype,"componentBehavior",void 0);_.R([_.w(_.DL.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],U$.prototype,"ytdGuideStateAwareBehavior",void 0);
_.R([_.w(_.ey8),_.Y("design:type",Object)],U$.prototype,"ytBooleanLogicBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],U$.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],U$.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],U$.prototype,"ytRendererBehavior",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],U$.prototype,"disableGridStateAware",void 0);_.R([_.L(),_.Y("design:type",Object)],U$.prototype,"data",void 0);_.R([_.L({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.Y("design:type",String)],U$.prototype,"panelLayout",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],U$.prototype,"animationEnabled",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],U$.prototype,"transitioningOut",void 0);
_.R([_.L({computed:"computeMetadataOrder(data)"}),_.Y("design:type",Boolean)],U$.prototype,"metadataOrder",void 0);_.R([_.L({computed:"computeByline(data)"}),_.Y("design:type",Object)],U$.prototype,"byline",void 0);_.R([_.L({computed:"computeAvatarSize(data)"}),_.Y("design:type",Number)],U$.prototype,"avatarSize",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],U$.prototype,"narrow",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],U$.prototype,"narrower",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],U$.prototype,"layoutStyle",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],U$.prototype,"isCarouselInFeed",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],U$.prototype,"dataChanged",null);_.R([_.VG("yt-default-promo-panel-renderer-playing"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],U$.prototype,"onPlaying",null);
_.R([_.VG("yt-default-promo-panel-renderer-ended"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],U$.prototype,"onEnded",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],U$);
_.q(U$,"ytd-default-promo-panel-renderer",function(){if(oi0!==void 0)return oi0;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return oi0=C},{mode:1});_.ae("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var Hi=function(){var C=_.B.apply(this,arguments)||this;C.narrower=!1;C.dotMenuVisible=!1;C.paginationThumbnailsVisible=!1;C.active=!0;C.disableGridStateAware=!1;C.actionMap={"yt-window-resized":"onWindowResized"};return C};
_.O(Hi,_.B);_.n=Hi.prototype;_.n.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]]"}}}}}};
_.n.attached=function(){document.addEventListener("yt-page-type-changed",_.Gp(this,this.onPageTypeChange));this.currentPageSubtype=_.VKI(location.pathname);this.onWindowResized()};
_.n.detached=function(){this.jobId&&_.gT.cancelJob(this.jobId);this.updateSizeJobId&&_.gT.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.Gp(this,this.onPageTypeChange))};
_.n.onPageTypeChange=function(C){this.active=C.detail.newPageSubtype===this.currentPageSubtype};
_.n.onWindowResized=function(){this.updateSize()};
_.n.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.n.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.n.setCarouselItem=function(C){C>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.gT.cancelJob(this.jobId);var F=this.getCurrentPanelElement();F&&F.stopVideo();this.currentItemIndex=C%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(F||(F=this.getCurrentPanelElement()),F.playVideo()):this.startRotationJob()};
_.n.scrollThumbnails=function(C){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var F=this.getCurrentPaginationElement();if(F){var G=_.ot(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?G.style.transform="translateX(0)":(F=F.offsetWidth+8,G.style.transform="translateX(-"+F*(C-Math.ceil(Math.floor(this.overlay.offsetWidth/F)/2)+1)+"px)")}}};
_.n.onDataChanged=function(){var C=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.FD(_.gT,function(){var F;(F=C.getCurrentPanelElement())==null||F.updateSize();C.updateSize()}))};
_.n.getCurrentPanelElement=function(){return _.ot(_.ot(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.n.getCurrentPaginationElement=function(){return _.ot(_.ot(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.n.getNavigationClass=function(C,F){return C===F?"selected":""};
_.n.getNavigationDurationStyle=function(C){return"animation-duration:"+(this.get("data.carouselItems."+C+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.n.onNavigationTap=function(C){var F=this,G=C.model.index;G!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){F.setCarouselItem(G)}),this.autorotateActive=!1)};
_.n.onVideoThumbnailEnded=function(){var C=this;if(this.shouldRotate()){var F=this.getCurrentPaginationElement();F&&(F.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){F.classList.remove("finished");C.setNextCarouselItem()}))}};
_.n.onVideoThumbnailError=function(){this.startRotationJob()};
_.n.onVideoNotPlaying=function(){this.startRotationJob()};
_.n.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.n.startRotationJob=function(){var C=this;_.gT.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.gT.addLowPriorityJob(function(){C.getCurrentPanelElement().transitionOut().then(function(){C.setNextCarouselItem()})},this.rotationTimeout))};
_.n.computeDotMenuVisible=function(C,F){return!!C&&!!C.carouselItems&&C.carouselItems.length>1&&!C.paginationThumbnails||!!F};
_.n.computePaginationThumbnailsVisible=function(C,F){var G,V;return((V=C==null?void 0:(G=C.paginationThumbnails)==null?void 0:G.length)!=null?V:0)>1&&!F};
_.n.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.n.computePaginatorAlignment=function(C){return(C==null?void 0:C.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.n.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.n.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.n.isNarrower=function(C){return(C!=null?C:0)<U$.NARROW_VERSION_SIZE};
Hi.prototype.activeChanged=Hi.prototype.activeChanged;Hi.prototype.onVideoNotPlaying=Hi.prototype.onVideoNotPlaying;Hi.prototype.onVideoThumbnailError=Hi.prototype.onVideoThumbnailError;Hi.prototype.onVideoThumbnailEnded=Hi.prototype.onVideoThumbnailEnded;Hi.prototype.onDataChanged=Hi.prototype.onDataChanged;_.R([_.w(_.rK),_.Y("design:type",Object)],Hi.prototype,"ytdGridStateAwareBehavior",void 0);
_.R([_.w(_.DL.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],Hi.prototype,"ytdGuideStateAwareBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Hi.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Hi.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Hi.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],Hi.prototype,"currentItem",void 0);
_.R([_.L(),_.Y("design:type",Number)],Hi.prototype,"currentItemIndex",void 0);_.R([_.L(),_.Y("design:type",Number)],Hi.prototype,"rotationTimeout",void 0);_.R([_.L(),_.Y("design:type",Number)],Hi.prototype,"loopCount",void 0);_.R([_.L({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.Y("design:type",String)],Hi.prototype,"paginatorAlignment",void 0);_.R([_.L(),_.Y("design:type",Number)],Hi.prototype,"jobId",void 0);
_.R([_.L(),_.Y("design:type",Number)],Hi.prototype,"updateSizeJobId",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Hi.prototype,"isCarouselInFeed",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Hi.prototype,"narrower",void 0);_.R([_.L({computed:"computeDotMenuVisible(data, narrower)"}),_.Y("design:type",Object)],Hi.prototype,"dotMenuVisible",void 0);
_.R([_.L({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.Y("design:type",Object)],Hi.prototype,"paginationThumbnailsVisible",void 0);_.R([_.L({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.Y("design:type",String)],Hi.prototype,"layoutType",void 0);_.R([_.L({value:!0,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Hi.prototype,"autorotateActive",void 0);_.R([_.L(),_.Y("design:type",Object)],Hi.prototype,"active",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Hi.prototype,"disableGridStateAware",void 0);_.R([_.$z("#overlay"),_.Y("design:type",HTMLElement)],Hi.prototype,"overlay",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hi.prototype,"onDataChanged",null);
_.R([_.VG("yt-video-thumbnail-ended"),_.VG("yt-default-promo-panel-renderer-rotate"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hi.prototype,"onVideoThumbnailEnded",null);_.R([_.VG("yt-video-thumbnail-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hi.prototype,"onVideoThumbnailError",null);
_.R([_.VG("yt-video-thumbnail-not-playing"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hi.prototype,"onVideoNotPlaying",null);_.R([_.zp("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hi.prototype,"activeChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],Hi);
_.q(Hi,"ytd-carousel-item-renderer",function(){if(TI6!==void 0)return TI6;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return TI6=C},{mode:2});var po_;var mfY;var C8B;var jlT;var ly=function(){var C=_.B.apply(this,arguments)||this;C.originalQuery=null;C.originalEndpoint=null;return C};
_.O(ly,_.B);ly.prototype.computeShowOriginalQueryWithoutEndpoint_=function(C,F){return!(!C||F)};
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],ly.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],ly.prototype,"correctedText",void 0);_.R([_.L(),_.Y("design:type",Object)],ly.prototype,"correctedQuery",void 0);_.R([_.L(),_.Y("design:type",Object)],ly.prototype,"correctedEndpoint",void 0);_.R([_.L(),_.Y("design:type",Object)],ly.prototype,"originalText",void 0);_.R([_.L(),_.Y("design:type",Object)],ly.prototype,"originalQuery",void 0);
_.R([_.L(),_.Y("design:type",Object)],ly.prototype,"originalEndpoint",void 0);_.R([_.L({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.Y("design:type",Boolean)],ly.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.R([_.Z5({is:"yt-search-query-correction",disableElementRegistration:!0})],ly);
_.q(ly,"yt-search-query-correction",function(){if(jlT===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;C8B===void 0&&(C8B=document.createElement("template"));var V=C8B;G.call(F,V.content.cloneNode(!0),C.content.firstChild);jlT=C}C=jlT;return C},{mode:2});_.ae("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var F$0=function(){return _.B.apply(this,arguments)||this};
_.O(F$0,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],F$0.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],F$0.prototype,"data",void 0);_.R([_.Z5({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],F$0);
_.q(F$0,"yt-did-you-mean-renderer",function(){if(mfY===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;po_===void 0&&(po_=document.createElement("template"));var V=po_;G.call(F,V.content.cloneNode(!0),C.content.firstChild);mfY=C}C=mfY;return C},{mode:2});var G7S;var VG6;_.ae("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var iPY=function(){return _.B.apply(this,arguments)||this};
_.O(iPY,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],iPY.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],iPY.prototype,"data",void 0);_.R([_.Z5({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],iPY);
_.q(iPY,"yt-including-results-for-renderer",function(){if(VG6===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;G7S===void 0&&(G7S=document.createElement("template"));var V=G7S;G.call(F,V.content.cloneNode(!0),C.content.firstChild);VG6=C}C=VG6;return C},{mode:2});var JOL;var $oT;_.ae("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var y4=function(){return _.B.apply(this,arguments)||this};
_.O(y4,_.B);y4.prototype.computeExtraClasses_=function(C,F){var G="";C&&(G+=" "+C.toLowerCase().replace(/_/g,"-"));F&&(G+=" "+F.toLowerCase().replace(/_/g,"-"));return G};
y4.prototype.computeUrlImg_=function(){var C=this.data;C.image&&(_.ot(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.RP(C.image.thumbnails,Number.MAX_VALUE)+")")};
y4.prototype.computeUrlImg_=y4.prototype.computeUrlImg_;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],y4.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],y4.prototype,"data",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],y4.prototype,"computeUrlImg_",null);_.R([_.Z5({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],y4);
_.q(y4,"yt-music-pass-feature-info-renderer",function(){if($oT===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;JOL===void 0&&(JOL=document.createElement("template"));var V=JOL;G.call(F,V.content.cloneNode(!0),C.content.firstChild);$oT=C}C=$oT;return C},{mode:2});var bPY;var nS9;_.ae("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var uEL=function(){return _.B.apply(this,arguments)||this};
_.O(uEL,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],uEL.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],uEL.prototype,"data",void 0);_.R([_.Z5({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],uEL);
_.q(uEL,"yt-no-results-found-showing-results-for-renderer",function(){if(nS9===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;bPY===void 0&&(bPY=document.createElement("template"));var V=bPY;G.call(F,V.content.cloneNode(!0),C.content.firstChild);nS9=C}C=nS9;return C},{mode:2});var zy0;var QlL;_.ae("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var Iun=function(){return _.B.apply(this,arguments)||this};
_.O(Iun,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Iun.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Iun.prototype,"data",void 0);_.R([_.Z5({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],Iun);
_.q(Iun,"yt-results-without-quotes-renderer",function(){if(QlL===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;zy0===void 0&&(zy0=document.createElement("template"));var V=zy0;G.call(F,V.content.cloneNode(!0),C.content.firstChild);QlL=C}C=QlL;return C},{mode:2});var ESF;var W$F;_.ae("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var tGT=function(){return _.B.apply(this,arguments)||this};
_.O(tGT,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],tGT.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],tGT.prototype,"data",void 0);_.R([_.Z5({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],tGT);
_.q(tGT,"yt-search-no-results-renderer",function(){if(W$F===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;ESF===void 0&&(ESF=document.createElement("template"));var V=ESF;G.call(F,V.content.cloneNode(!0),C.content.firstChild);W$F=C}C=W$F;return C},{mode:2});var auS;var k79;_.ae("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var Uo_=function(){return _.B.apply(this,arguments)||this};
_.O(Uo_,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Uo_.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Uo_.prototype,"data",void 0);_.R([_.Z5({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],Uo_);
_.q(Uo_,"yt-showing-results-for-renderer",function(){if(k79===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;auS===void 0&&(auS=document.createElement("template"));var V=auS;G.call(F,V.content.cloneNode(!0),C.content.firstChild);k79=C}C=k79;return C},{mode:2});var HPB;var lu0;var yOh;var ZPF;var ZI=function(){var C=_.B.apply(this,arguments)||this;C.answerExpanded=!1;return C};
_.O(ZI,_.B);ZI.prototype.toggleAnswer_=function(C){var F=_.ev(C);F&&F.classList.contains("yt-simple-endpoint")||(C.preventDefault(),C.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
ZI.prototype.toggleAnswer_=ZI.prototype.toggleAnswer_;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ZI.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],ZI.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],ZI.prototype,"answerExpanded",void 0);_.R([_.VG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],ZI.prototype,"toggleAnswer_",null);
_.R([_.Z5({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],ZI);
_.q(ZI,"yt-generic-faq-question-renderer",function(){if(ZPF===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;yOh===void 0&&(yOh=document.createElement("template"));var V=yOh;G.call(F,V.content.cloneNode(!0),C.content.firstChild);ZPF=C}C=ZPF;return C},{mode:2});_.ae("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var Np=function(){return _.B.apply(this,arguments)||this};
_.O(Np,_.B);Np.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Np.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Np.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Np.prototype,"data",void 0);_.R([_.Z5({is:"yt-faq-section-renderer",disableElementRegistration:!0})],Np);
_.q(Np,"yt-faq-section-renderer",function(){if(lu0===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;HPB===void 0&&(HPB=document.createElement("template"));var V=HPB;G.call(F,V.content.cloneNode(!0),C.content.firstChild);lu0=C}C=lu0;return C},{mode:2});var N2Y;var OPl;_.ae("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var O$=function(){return _.B.apply(this,arguments)||this};
_.O(O$,_.B);
O$.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"}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],O$.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],O$.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],O$.prototype,"data",void 0);_.R([_.Z5({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],O$);
_.q(O$,"yt-offer-item-expanded-renderer",function(){if(OPl===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;N2Y===void 0&&(N2Y=document.createElement("template"));var V=N2Y;G.call(F,V.content.cloneNode(!0),C.content.firstChild);OPl=C}C=OPl;return C},{mode:2});var XuF;var wu0;_.ae("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var X7=function(){return _.B.apply(this,arguments)||this};
_.O(X7,_.B);
X7.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"}}}}};
X7.prototype.computeFullWidthMode=function(C){return!(!C||!C.fullWidthMode)};
X7.prototype.computeBorderlessMode=function(C){return!(!C||!C.borderlessMode)};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],X7.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],X7.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],X7.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.Y("design:type",Boolean)],X7.prototype,"fullWidthMode",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.Y("design:type",Boolean)],X7.prototype,"borderlessMode",void 0);_.R([_.Z5({is:"yt-offer-item-renderer",disableElementRegistration:!0})],X7);
_.q(X7,"yt-offer-item-renderer",function(){if(wu0===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;XuF===void 0&&(XuF=document.createElement("template"));var V=XuF;G.call(F,V.content.cloneNode(!0),C.content.firstChild);wu0=C}C=wu0;return C},{mode:2});var MGY;var Sm_;_.ae("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var wm=function(){return _.B.apply(this,arguments)||this};
_.O(wm,_.B);wm.prototype.computeAriaLevel_=function(C){return this.getLevelID_(C)};
wm.prototype.getLevelID_=function(C){return(C=C.match(/[0-9]+$/))&&C.length==1?C[0]:"1"};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],wm.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],wm.prototype,"data",void 0);_.R([_.L({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.Y("design:type",String)],wm.prototype,"ariaLevel",void 0);_.R([_.L({value:"heading",reflectToAttribute:!0}),_.Y("design:type",String)],wm.prototype,"role",void 0);
_.R([_.L({value:-1,reflectToAttribute:!0}),_.Y("design:type",Number)],wm.prototype,"tabindex",void 0);_.R([_.Z5({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],wm);
_.q(wm,"yt-subscription-product-header-renderer",function(){if(Sm_===void 0){var C=document.createElement("template");_.X(C,"\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");C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;MGY===void 0&&(MGY=document.createElement("template"));var V=MGY;G.call(F,V.content.cloneNode(!0),C.content.firstChild);Sm_=C}C=Sm_;return C},{mode:2});var L$l;var B2F;_.ae("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var Mp=function(){return _.B.apply(this,arguments)||this};
_.O(Mp,_.B);Mp.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:_.kJ("menuRenderer"),events:!0}}};
Mp.prototype.onStampFinished_=function(){_.ot(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
Mp.prototype.onStampFinished_=Mp.prototype.onStampFinished_;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Mp.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Mp.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Mp.prototype,"data",void 0);_.R([_.VG("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Mp.prototype,"onStampFinished_",null);
_.R([_.Z5({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],Mp);
_.q(Mp,"yt-subscription-product-renderer",function(){if(B2F===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;L$l===void 0&&(L$l=document.createElement("template"));var V=L$l;G.call(F,V.content.cloneNode(!0),C.content.firstChild);B2F=C}C=B2F;return C},{mode:2});var vST;var ful;_.ae("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var Sx=function(){return _.B.apply(this,arguments)||this};
_.O(Sx,_.B);Sx.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Sx.prototype.imageScrimColorValuesChanged_=function(){var C,F=(C=this.data)==null?void 0:C.imageScrimColorValues;_.ot(this.hostElement).querySelector("#scrim").style.backgroundColor=F?_.lE(F[0]):"transparent"};
Sx.prototype.imageScrimColorValuesChanged_=Sx.prototype.imageScrimColorValuesChanged_;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Sx.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Sx.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Sx.prototype,"data",void 0);
_.R([_.iP("data.imageScrimColorValues"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Sx.prototype,"imageScrimColorValuesChanged_",null);_.R([_.Z5({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],Sx);
_.q(Sx,"yt-subscription-product-upsell-offer-renderer",function(){if(ful===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;vST===void 0&&(vST=document.createElement("template"));var V=vST;G.call(F,V.content.cloneNode(!0),C.content.firstChild);ful=C}C=ful;return C},{mode:2});var hyz;var cOL;var AO_;var eyF;var doB;var xoY;var L0=function(){return _.B.apply(this,arguments)||this};
_.O(L0,_.B);L0.prototype.onYtServiceRequestError_=function(C){_.Bl(this.hostElement,C.detail.error.message)};
L0.prototype.onYtServiceRequestError_=L0.prototype.onYtServiceRequestError_;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],L0.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],L0.prototype,"data",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],L0.prototype,"collapsible",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],L0.prototype,"isManageRed",void 0);
_.R([_.VG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],L0.prototype,"onYtServiceRequestError_",null);_.R([_.Z5({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],L0);
_.q(L0,"yt-single-ypc-offer-renderer",function(){if(xoY===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;doB===void 0&&(doB=document.createElement("template"));var V=doB;G.call(F,V.content.cloneNode(!0),C.content.firstChild);xoY=C}C=xoY;return C},{mode:2});var Bi=function(){return _.B.apply(this,arguments)||this};
_.O(Bi,_.B);Bi.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Bi.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Bi.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Bi.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Bi.prototype,"isManageRed",void 0);_.R([_.Z5({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],Bi);
_.q(Bi,"yt-single-ypc-offer-list-renderer",function(){if(eyF===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;AO_===void 0&&(AO_=document.createElement("template"));var V=AO_;G.call(F,V.content.cloneNode(!0),C.content.firstChild);eyF=C}C=eyF;return C},{mode:2});var sll;var qmF;_.ae("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var vi=function(){return _.B.apply(this,arguments)||this};
_.O(vi,_.B);vi.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],vi.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],vi.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],vi.prototype,"data",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],vi.prototype,"isManageRed",void 0);_.R([_.Z5({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],vi);
_.q(vi,"yt-ypc-offers-list-renderer",function(){if(qmF===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;sll===void 0&&(sll=document.createElement("template"));var V=sll;G.call(F,V.content.cloneNode(!0),C.content.firstChild);qmF=C}C=qmF;return C},{mode:2});_.ae("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var f0=function(){return _.B.apply(this,arguments)||this};
_.O(f0,_.B);
f0.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}}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],f0.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],f0.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],f0.prototype,"data",void 0);_.R([_.Z5({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],f0);
_.q(f0,"yt-unlimited-manage-subscription-page-renderer",function(){if(cOL===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;hyz===void 0&&(hyz=document.createElement("template"));var V=hyz;G.call(F,V.content.cloneNode(!0),C.content.firstChild);cOL=C}C=cOL;return C},{mode:2});var P8L;var gSL;var h1=function(){return _.B.apply(this,arguments)||this};
_.O(h1,_.B);_.n=h1.prototype;_.n.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.n.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.n.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.n.onKeypress_=function(C){C.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.n.handleHeaderTap_=function(C){C.preventDefault();C.stopPropagation();this.expandOffers_()};
_.n.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.n.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
h1.prototype.dataChanged_=h1.prototype.dataChanged_;_.R([_.w(_.wg),_.Y("design:type",Object)],h1.prototype,"ironA11yKeysBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],h1.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],h1.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],h1.prototype,"data",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],h1.prototype,"offersVisible_",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],h1.prototype,"dataChanged_",null);_.R([_.Z5({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],h1);
_.q(h1,"yt-collapsible-ypc-offer-renderer",function(){if(gSL===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;P8L===void 0&&(P8L=document.createElement("template"));var V=P8L;G.call(F,V.content.cloneNode(!0),C.content.firstChild);gSL=C}C=gSL;return C},{mode:2});var Ryz;var Ymn;_.ae("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var ci=function(){return _.B.apply(this,arguments)||this};
_.O(ci,_.B);_.n=ci.prototype;_.n.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.n.dataChanged_=function(){if(this.data.backgroundImage){var C=_.RP(this.data.backgroundImage.thumbnails,screen.width),F=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=F?"linear-gradient(180deg, "+F+"), url("+C+")":"url("+C+")";this.data.gtmId&&_.fS(this.data.gtmId,_.TF("GL",""))}};
_.n.onYtServiceRequestError_=function(C){_.Bl(this.hostElement,C.detail.error.message)};
_.n.getScrimLayerColorStops_=function(){var C,F,G=(C=this.data.unlimitedHeaderV2Data)==null?void 0:(F=C.unlimitedHeaderV2Data)==null?void 0:F.scrimLayerColors;if(!G)return null;var V=100/G.length;return G.map(function(J,b){b*=V;return _.lE(J)+" "+b+"%"}).join(",")};
_.n.computeLogoWithPadding=function(C){var F,G,V;return(C=(F=C.unlimitedLogoImage)==null?void 0:(G=F.thumbnails)==null?void 0:(V=G[0])==null?void 0:V.height)&&C%31===0?!0:!1};
ci.prototype.onYtServiceRequestError_=ci.prototype.onYtServiceRequestError_;ci.prototype.dataChanged_=ci.prototype.dataChanged_;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],ci.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ci.prototype,"ytRendererBehavior",void 0);_.R([_.L({computed:"computeLogoWithPadding(data)"}),_.Y("design:type",Boolean)],ci.prototype,"logoWithPadding",void 0);
_.R([_.L(),_.Y("design:type",Object)],ci.prototype,"data",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ci.prototype,"dataChanged_",null);_.R([_.VG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],ci.prototype,"onYtServiceRequestError_",null);_.R([_.Z5({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],ci);
_.q(ci,"yt-unlimited-page-header-renderer",function(){if(Ymn===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;Ryz===void 0&&(Ryz=document.createElement("template"));var V=Ryz;G.call(F,V.content.cloneNode(!0),C.content.firstChild);Ymn=C}C=Ymn;return C},{mode:2});var T29;var oS6;_.ae("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var A1=function(){return _.B.apply(this,arguments)||this};
_.O(A1,_.B);A1.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],A1.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],A1.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],A1.prototype,"data",void 0);_.R([_.Z5({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],A1);
_.q(A1,"yt-unlimited-user-notification-renderer",function(){if(oS6===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;T29===void 0&&(T29=document.createElement("template"));var V=T29;G.call(F,V.content.cloneNode(!0),C.content.firstChild);oS6=C}C=oS6;return C},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.Ezl=_.d(function(C){var F=_.xz(C,{numberOfChips:5}).numberOfChips;return _.W("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.W(_.Ag,{each:function(){return Array(F==null?void 0:F())}},function(){return _.W("div",{class:"ytGhostChipShelfChip"})}))},"Vi");_.Wmd=_.d(function(C){var F=function(){var z;return((z=C.data)==null?void 0:z.call(C).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},G=_.FN(),V=_.I8().resolve(_.hC);
_.s0(function(){requestAnimationFrame(function(){var z;(z=G.lottieEl)==null||z.addEventListener("DOMLoaded",function(){var Q;(Q=C.onLottieLoaded)==null||Q.call(C)})})});
var J=function(){var z;return(z=C.data)==null?void 0:z.call(C).loadingAnimationA11yLabel},b={};
return _.W("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var z;return((z=C.data)==null?void 0:z.call(C).targetId)||""},
"aria-label":function(){return J()||""},
role:function(){return J()?"progressbar":void 0}},_.W(_.NQ,{"aria-hidden":"true",
className:_.py((b.ytChatLoadingViewModelRtl=V==="rtl",b)),animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:F()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||F()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:F()}}},
animationRef:G}))},"Xi");
}catch(e){_._DumpException(e)}
try{
var C9s,jxd,FOt,VWs,icW,Jt8,$w8,bcd,nyr,uVW,aeM,B5,tWr,Qxx,WOx,Ey_,Ier,zsr,kAW,Uwh,Hct,led,v5,ytM,ZcW,Xvx,hU,NRr,es,fi,c5,Och,AU,wvM,MWr,S83,LOU,BR3,vyx,feh,ctV,Atx,es8,dwt,xw_,sxW,q8L,P9U,gyr,Rss,TRt,oyM,rtU,DwU,mwW,j6s,F9U,GHt,V38,Jus,$kh,b_L,nv_,uL_,ziL,Q6d,EvL,kHW,acL,W9V,UkW,t3L,H_U,Ntx,Z_L,lcW,yul,xA,O_W,wSU,M3s,SH3,cus,Aud,eit,dkt,xkt,s6_,qHr,Pnr,gvr,RiU,Ttl,ovt,ru3,K9W,DkV,pSd,mkM,Cm3,G_W,VTL,vvl;
_.Ss=function(C){var F=new _.Ay("Error accessing DB");return _.URo().then(function(G){return new Promise(function(V,J){try{var b=G.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(C);b.onsuccess=function(){var z=b.result;V(z?z.value:null)};
b.onerror=function(){F.params={key:C,source:"onerror"};J(F)}}catch(z){F.params={key:C,
thrownError:String(z)},J(F)}})},function(){return null})};
C9s=function(C,F){return _.jN(C.entities,"inlineExpansionEntity",F)};
jxd=function(C,F){return _.jN(C.entities,"flowStateEntity",F)};
FOt=function(C,F){if(C&&F){var G=_.bC();G().set(C,F);_.QcE(G())}};
_.GAd=function(C,F){if(C&&F){var G=_.bC();G().set(C,F);_.QcE(G())}};
VWs=function(C,F){return _.jN(C.entities,"contextNoteUserRatingEntityPayload",F)};
icW=function(C){return _.co(C,function(F){return F.languageCode==="en"})};
Jt8=function(C){var F=Li;if(_.s1W(C))C.setOption("captions","stickyLoading",{}),C.setOption("captions","track",{});else{var G=_.co(_.H0s(C),function(V){return V.displayName===F});
C.setOption("captions","track",G)}};
$w8=function(C){if(!C)return 0;var F=C.getPresentingPlayerType(),G=C.getVideoData();return G&&G.isLive?(C=C.getProgressState(F),C.seekableEnd-C.seekableStart):C.getDuration(F)};
bcd=function(C,F){for(var G=_.u(Object.keys(C)),V=G.next();!V.done;V=G.next())if(V=V.value,C[V]!==F[V])return!1;return!0};
nyr=function(){return document.getElementById("player-control-overlay")};
uVW=function(C){C!==-1&&!_.y("player_controls_log_creation_killswitch")&&nyr()&&(_.NV("pcu_cs",C),_.NV("pcu_ce"))};
aeM=function(C,F){var G=_.dk(C,{}),V=zsr("top",F),J=zsr("bottom",F),b=zsr("left",F),z=zsr("right",F);return _.VA({top:function(){return B5(G().position,V)},
bottom:function(){return B5(G().position,J)},
left:function(){return B5(G().position,b)},
right:function(){return B5(G().position,z)},
position:function(){return B5(G().positionType,Qxx)},
height:function(){return B5(G().height,v5)},
width:function(){return B5(G().width,v5)},
"min-width":function(){return B5(G().minWidth,v5)},
"min-height":function(){return B5(G().minHeight,v5)},
"max-width":function(){return B5(G().maxWidth,v5)},
"max-height":function(){return B5(G().maxHeight,v5)},
"aspect-ratio":function(){return B5(G().aspectRatio,String)},
"margin-top":function(){return B5(G().margin,V)},
"margin-bottom":function(){return B5(G().margin,J)},
"margin-left":function(){return B5(G().margin,b)},
"margin-right":function(){return B5(G().margin,z)},
"padding-top":function(){return B5(G().padding,V)},
"padding-bottom":function(){return B5(G().padding,J)},
"padding-left":function(){return B5(G().padding,b)},
"padding-right":function(){return B5(G().padding,z)},
"flex-direction":function(){return B5(G().flexDirection,Ier)},
"justify-content":function(){return B5(G().justifyContent,Ey_)},
"align-items":function(){return B5(G().alignItems,WOx)},
"flex-grow":function(){return B5(G().flexGrow,String)},
"flex-shrink":function(){return B5(G().flexShrink,String)},
"flex-basis":function(){return B5(G().flexBasis,v5)},
"align-self":function(){return B5(G().alignSelf,WOx)},
"flex-wrap":function(){return B5(G().flexWrap,tWr)},
"align-content":function(){return B5(G().alignContent,WOx)}})};
B5=function(C,F){return C!==void 0?F(C):void 0};
tWr=function(C){switch(C){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
Qxx=function(C){switch(C){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
WOx=function(C){switch(C){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"}};
Ey_=function(C){switch(C){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"}};
Ier=function(C){switch(C){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"}};
zsr=function(C,F){var G=F==="rtl";switch(C){case "top":var V=kAW;break;case "bottom":V=Uwh;break;case "left":V=Hct;break;default:V=led}return function(J){return B5(V(J,G),v5)}};
kAW=function(C){var F=C.top;var G=C.vertical;C=C.all;var V;return(V=F!=null?F:G)!=null?V:C};
Uwh=function(C){var F=C.bottom;var G=C.vertical;C=C.all;var V;return(V=F!=null?F:G)!=null?V:C};
Hct=function(C,F){var G=C.left;var V=C.end;var J=C.start;var b=C.horizontal;C=C.all;var z,Q;return(Q=(z=G!=null?G:F?V:J)!=null?z:b)!=null?Q:C};
led=function(C,F){var G=C.right;var V=C.end;var J=C.start;var b=C.horizontal;C=C.all;var z,Q;return(Q=(z=G!=null?G:F?J:V)!=null?z:b)!=null?Q:C};
v5=function(C){var F=C.value;switch(C.unit){case "YPC_DIMENSION_UNIT_POINT":return F+"px";case "YPC_DIMENSION_UNIT_FRACTION":return F+"%";default:return""+F}};
ytM=function(C){switch(C){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"}};
ZcW=function(C){var F=C!=null?C:{};C=F.fontRole;var G=F.fontSize;F=F.fontWeight;if(C!==null&&G!==null)switch(C){case "YPC_FONT_ROLE_DISPLAY":switch(G){case "YPC_FONT_SIZE_L":return F==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return F==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return F==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return F==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(G){case "YPC_FONT_SIZE_L":return F==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return F==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return F===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return F==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(G){case "YPC_FONT_SIZE_XL":return F==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return F==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return F==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return F==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return F==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
Xvx=function(C,F,G){function V(U){return Object.values(U).map(function(H){var l=H.productId;H=H.pricingOptionIndex;return fi(J(l).pricingOptions,H).pricingOptionId})}
function J(U){return E().get(U)}
function b(U){U=V(U);G(U)}
function z(U,H){return Array.from(hU(U.pricingOptions)).filter(function(l){l=_.u(l);l.next();l=l.next().value;return c5(l.pricingGroupAttributes,H)}).map(function(l){return _.u(l).next().value})}
var Q=AU([C,F],function(U,H){var l=U==null?void 0:U.selectedPricingOptions;U={};var N=!0;if(l&&H.length)for(var S=_.u(H),f=S.next();!f.done;f=S.next()){f=f.value;var c=NRr(f.pricingOptions,function(P){a:{P=P.pricingOptionId;for(var g=_.u(l),r=g.next();!r.done;r=g.next())if(r.value===P){P=!0;break a}P=!1}return P});
if(c>=0){N=!1;var A=fi(f.pricingOptions,c),T=void 0;U[f.groupId]={productId:f.productId,pricingOptionIndex:c,pricingGroupAttributes:(T=A)==null?void 0:T.pricingGroupAttributes}}}N&&H.length&&(N=fi(H[0].pricingOptions,0),U[H[0].groupId]={productId:H[0].productId,pricingOptionIndex:0,pricingGroupAttributes:N==null?void 0:N.pricingGroupAttributes});return U}),E=AU([F],function(U){return new Map(U.map(function(H){return[H.productId,
H]}))}),t=AU([F],function(U){var H=new Map;
U=_.u(U);for(var l=U.next();!l.done;l=U.next()){var N=l.value;l=N.groupId;var S=N.productId;N=_.u(hU(N.pricingOptions));for(var f=N.next();!f.done;f=N.next()){var c=_.u(f.value);f=c.next().value;c=c.next().value;H.set(c.pricingOptionId,{groupId:l,productId:S,index:f,pricingOption:c,pricingGroupAttributes:c.pricingGroupAttributes})}}return H}),k=AU([F],function(U){var H=new Map;
U=_.u(U);for(var l=U.next();!l.done;l=U.next()){var N=l.value;l=N.groupId;var S=N.productId,f=void 0;N=_.u(hU((f=N.pricingGroups)!=null?f:[]));for(f=N.next();!f.done;f=N.next()){var c=_.u(f.value);f=c.next().value;c=c.next().value;H.set(c.pricingGroupId,{groupId:l,productId:S,index:f,pricingGroup:c,pricingGroupAttributes:c.pricingGroupAttributes})}}return H});
return{getProductById:J,isProductSelected:function(U){var H=J(U);if(!H)return!1;var l;return((l=Q()[H.groupId])==null?void 0:l.productId)===U},
getSelectedPricingOptions:function(){return Object.values(Q()).map(function(U){var H=U.productId;U=U.pricingOptionIndex;return fi(J(H).pricingOptions,U)})},
getSelectedPricingGroupAttributesByGroupId:function(U){var H;return(U=(H=Q()[U])==null?void 0:H.pricingGroupAttributes)?Array.from(U):void 0},
getSelectedProductByGroupId:function(U){var H;return(U=(H=Q()[U])==null?void 0:H.productId)?J(U):void 0},
onProductSelected:function(U){var H=J(U);if(H){var l=Q(),N;if(((N=l[H.groupId])==null?void 0:N.productId)!==U){var S=(N=(S=l[H.groupId])==null?void 0:S.productId)?J(N):void 0;var f;N=(f=l[H.groupId])==null?void 0:f.pricingGroupAttributes;var c;f=(c=l[H.groupId])==null?void 0:c.pricingOptionIndex;if(S&&f!==void 0)if(N){c=z(S,N).indexOf(f);if(c===-1)throw Error("Xj`"+f+"`"+S.productId);f=z(H,N);c=c<f.length?f[c]:f.length>0?f[0]:0}else c=f<es(H.pricingOptions)?f:0;else c=0;es(H.pricingOptions)<=c&&(c=
0);f=fi(H.pricingOptions,c);var A;S={};b(Object.assign({},l,(S[H.groupId]={productId:U,pricingOptionIndex:c,pricingGroupAttributes:(A=f==null?void 0:f.pricingGroupAttributes)!=null?A:[]},S)))}}},
onPricingOptionSelected:function(U){var H=t().get(U);if(H){U=H.groupId;var l=H.productId;H=H.index;var N=Q(),S,f;if(((S=N[U])==null?void 0:S.productId)!==l||((f=N[U])==null?void 0:f.pricingOptionIndex)!==H){var c,A;S={};b(Object.assign({},N,(S[U]={productId:l,pricingOptionIndex:H,pricingGroupAttributes:(A=(c=N[U])==null?void 0:c.pricingGroupAttributes)!=null?A:[]},S)))}}},
onPricingGroupSelected:function(U){var H=k().get(U);if(H){U=H.groupId;var l=H.productId,N=H.pricingGroup.pricingGroupAttributes,S=J(l);if(S){H=Q();var f=H[U].pricingGroupAttributes,c;if(((c=H[U])==null?void 0:c.productId)!==l||!c5(Och(f,es(N)),N)){c=Array.from(N);for(N=es(N);N<es(f);N++){var A="",T=!1,P=Array.from(c);P.push(fi(f,N));for(var g=_.u(S.pricingGroups),r=g.next();!r.done;r=g.next())if(r=r.value,c5(r.pricingGroupAttributes,P)){c.push(fi(f,N));T=!0;break}else A===""&&es(r.pricingGroupAttributes)===
P.length&&c5(Och(r.pricingGroupAttributes,c.length),c)&&(A=fi(r.pricingGroupAttributes,N));T||c.push(A)}A=H[U].pricingOptionIndex;N=[];T=new Map;P=0;S=_.u(hU(S.pricingOptions));for(g=S.next();!g.done;g=S.next())r=_.u(g.value),g=r.next().value,r=r.next().value,c5(r.pricingGroupAttributes,c)&&N.push(g),c5(r.pricingGroupAttributes,f)&&T.set(g,P++);N.length===0?f=0:(f=T.get(A),f=f!==void 0&&f<N.length?N[f]:N[0]);S={};b(Object.assign({},H,(S[U]={productId:l,pricingOptionIndex:f,pricingGroupAttributes:c},
S)))}}}},
onClearGroupSelected:function(U){var H=Q();H[U]&&(H=Object.fromEntries(Object.entries(H).filter(function(l){return _.u(l).next().value!==U})),b(H))}}};
hU=function(C){return function G(){var V,J,b,z,Q;return _.DF(G,function(E){switch(E.nextAddress){case 1:_.Oa(E,2),V=0,J=_.u(C),b=J.next();case 4:if(b.done){E.jumpTo(2);break}z=b.value;Q=_.p3;return E.yield([V++,z],7);case 7:Q(E.yieldResult);b=J.next();E.jumpTo(4);break;case 2:_.Na(E),_.XG(E,0)}})}()};
NRr=function(C,F){C=_.u(hU(C));for(var G=C.next();!G.done;G=C.next()){var V=_.u(G.value);G=V.next().value;V=V.next().value;if(F(V))return G}return-1};
es=function(C){var F=0;for(C=C[Symbol.iterator]();!C.next().done;)++F;return F};
fi=function(C,F){C=_.u(hU(C));for(var G=C.next();!G.done;G=C.next()){var V=_.u(G.value);G=V.next().value;V=V.next().value;if(G===F)return V}};
c5=function(C,F){if(!C&&!F)return!0;if(!C||!F)return!1;C=Array.from(C);F=Array.from(F);if(C.length!==F.length)return!1;for(var G=0;G<C.length;G++)if(C[G]!==F[G])return!1;return!0};
Och=function(C,F){F=F===void 0?Infinity:F;var G=[];C=_.u(hU(C));for(var V=C.next();!V.done;V=C.next()){var J=_.u(V.value);V=J.next().value;J=J.next().value;if(V>=F)break;V>=0&&G.push(J)}return G};
AU=function(C,F){var G,V;return function(){for(var J=C.map(function(z){return z()}),b=0;b<J.length;b++)if(!G||J[b]!==G[b]){G=J;
V=F.apply(null,_.da(J));break}return V}};
wvM=function(C,F,G){var V=[];C=_.u(C);for(var J=C.next();!J.done;J=C.next()){J=J.value;var b=void 0;((b=F)==null?0:b.length)&&!c5(J.pricingGroupAttributes,F)||V.push({pricingOption:J,isSelected:G.includes(J.pricingOptionId)})}return V};
MWr=function(C,F){return _.jN(C.entities,"pdpStateEntity",F)};
S83=function(C){var F,G;return!!(C.productId&&C.groupId&&((F=C.pricingOptions)==null?0:F.length)&&C.pricingOptions.every(function(V){return V.pricingOptionId})&&((G=C.pricingGroups)==null||!G.length||Array.isArray(C.pricingGroups)&&C.pricingGroups.every(function(V){return V.pricingGroupId&&V.pricingGroupAttributes&&V.pricingGroupAttributes.length>0})))};
LOU=function(C,F,G){return Xvx(C,AU([F],function(V){return V.filter(S83)}),G)};
BR3=function(C){var F=void 0,G;for(G in C)if(C.hasOwnProperty(G)){F=G;break}return F};
vyx=function(C,F){return F.length===0?[C]:[C.slice(0,F[0]),C.slice(F[0])].filter(function(G){return G.length>0})};
feh=function(C){switch(C){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""}};
ctV=function(C,F,G,V){V=Object.assign({},V);_.ke(V,hsr,{selectedOptionId:C,primaryButtonOverride:G});_.Av().dispatch(_.z3("flowStateEntity",F,V))};
Atx=function(C,F,G){!_.Z(G,hsr)&&C.noPreselect&&F!==""&&C.defaultButtonOverride&&ctV("default",F,C.defaultButtonOverride,G)};
es8=function(C){switch(C){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleContentFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleContentFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleContentFontSizeM";default:return"ytLandingPageViewModelHeaderTitleContentFontSizeL"}};
dwt=function(C){switch(C){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeM";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_L":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XL":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXL";
default:return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL"}};
xw_=function(C,F){if(F)return"ytCardViewModelCardSelected";switch(C){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
sxW=function(C,F){F.includes(C)?F=F.filter(function(G){return G!==C}):F.push(C);
return[].concat(_.da(F))};
q8L=function(C,F){return _.jN(C.entities,"contextNoteFeedEntityPayload",F)};
P9U=function(C,F){switch(C){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return F==null?void 0:F.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return F==null?void 0:F.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return F==null?void 0:F.ratingNotHelpfulText}};
gyr=function(C,F){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:C.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:C.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:C.deleteDialogTitle}]},dialogMessages:[{runs:[{text:C.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:C.deleteActionText}]},command:{performCommentActionEndpoint:{action:F}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:C.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
Rss=function(C,F,G){var V;if(C&&((V=F())==null?0:V.includes(C))){var J;G((J=F())==null?void 0:J.filter(function(b){return b!==C}))}else G([].concat(_.da(F()||[]),[C]))};
TRt=function(C,F){if(C){var G=[];F=_.u((F==null?void 0:F.checkboxes)||[]);for(var V=F.next();!V.done;V=F.next()){V=_.Z(V.value,Y8_);var J=void 0;((J=V)==null?0:J.value)&&C.includes(V.key||"")&&G.push(V.value)}return G}};
oyM=function(C){C.style.height="auto";C.style.height=C.scrollHeight+"px"};
rtU=function(C){return[C.syncStep,C.asyncStep].filter(function(F){return F!==void 0})};
DwU=function(C){var F,G,V;if(C=(F=C.structuredContextNoteFormSchema)==null?void 0:(G=F.fieldSchemas)==null?void 0:(V=G.noteBody)==null?void 0:V.validationSchema)for(F=_.u(rtU(C)),G=F.next();!G.done;G=F.next()){G=G.value.rules;if(!G)break;G=_.u(G);for(G=G.next();!G.done;G=G.next())return _.Z(G.value,_.KOV)}};
mwW=function(C){if(C){C=_.u(rtU(C));for(var F=C.next();!F.done;F=C.next()){F=F.value.rules;if(!F)break;F=_.u(F);for(F=F.next();!F.done;F=F.next())return _.Z(F.value,pv3)}}};
j6s=function(C){if(C){C=_.u(rtU(C));for(var F=C.next();!F.done;F=C.next()){F=F.value.rules;if(!F)break;F=_.u(F);for(F=F.next();!F.done;F=F.next())return _.Z(F.value,Cn3)}}};
F9U=function(C){C=/^https?:\/\//.test(C)?C:"http://"+C;try{var F=_.mg(C)}catch(G){return!1}if(F.toString()!==C)return!1;C=F.JSC$10031_domain_.split(".");return C.length>1&&C.every(function(G){return!!G})};
GHt=function(C,F,G,V){var J;V=(J=V.structuredContextNoteData)==null?void 0:J.createCommentEndpoint;if(J=_.Z(V,_.EPl))return J.commentText=_.eN(C),J.videoPositionMention=F,J.sources=G,V};
V38=function(C){return C==null?void 0:C.stringValue};
Jus=function(C,F,G){C=C.map(function(V,J){return{listItemViewModel:{title:V.title,subtitle:V.subtitle,leadingImage:V.leadingImage,trailingImage:J===F?i_h:void 0,rendererContext:{commandContext:{onTap:V.onTap}}}}});
return Object.assign({},G&&{header:{panelHeaderViewModel:{title:G}}},{content:{listViewModel:{listItems:C}}})};
$kh=function(C,F){if(C&&F)switch(F){case "SELECTION_TYPE_BOOL":return C.boolValue;case "SELECTION_TYPE_INT":return C.intValue;case "SELECTION_TYPE_STRING":return C.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return C.privacyStatusValue}};
b_L=function(C){var F;C=(F=C.options)==null?void 0:F.findIndex(function(G){return G.isSelected});
return C===void 0?-1:C};
nv_=function(C,F,G){var V=function(){return C().label},J={},b=_.py("ytDropdownViewModelLabel",(J.ytDropdownViewModelLabelError=F,J));
return _.W(_.a,{cond:function(){return C().label&&!(G()===-1&&C().label&&!C().placeholderText)},
then:function(){return _.W("div",{class:b},_.W(_.mn,{text:V}))}})};
uL_=function(C,F){var G={};G=_.py("ytDropdownViewModelTitle",(G.ytDropdownViewModelTitlePlaceholder=function(){return F()===-1},G));
return _.W("div",{class:G},_.W(_.mn,{text:function(){var V=C();var J=F();if(J===-1)V=V.placeholderText?V.placeholderText:V.label;else{var b,z;V=(b=V.options)==null?void 0:(z=b[J])==null?void 0:z.title}return V}}))};
ziL=function(C,F){var G=function(){return C().hint};
return _.W(_.WQ,null,_.W(_.a,{cond:function(){return G()&&!F()},
then:function(){return _.W("div",{class:_.py("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.W(_.mn,{text:G,className:"ytDropdownViewModelSupportText"}))}}),_.W(_.a,{cond:F,
then:function(){return _.W("div",{id:"dropdown-view-model-error",role:"alert",class:_.py("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.W(_.i5,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.W(_.mn,{text:F,className:"ytDropdownViewModelSupportText"}))}}))};
Q6d=function(C,F){var G=_.I8().resolve(_.Rdh);_.q4(function(){var V=C().id;V&&G!=null&&G.dropdownMap.set(V,F)})};
EvL=function(C){C=_.Z(C.scheduleButton,Icl);C=_.Z(C==null?void 0:C.primaryButton,_.jl);C=_.Z(C==null?void 0:C.onTap,_.yp);var F,G,V=((G=_.Z(C,_.Cl))==null?void 0:G.commands)||[C];G=_.u(V);for(C=G.next();!C.done&&!(F=_.Z(C.value,_.ISS));C=G.next());var J;F=(J=F)==null?void 0:J.createBroadcastRequest;if(!F)throw Error("dk");return F};
kHW=function(C,F,G){G=G===void 0?{}:G;var V,J;return _.I(function(b){if(V=W9V(F))return b.return(V);(J=t3L(C,F,G))&&acL(F,J);return b.return(J)})};
acL=function(C,F){var G=UkW(C);G&&F.then(function(V){_.I8().resolve(_.lY).put(G,new _.yU({innertubeResponse:V}))})};
W9V=function(C){if(C=UkW(C)){var F=_.I8().resolve(_.lY);if(F.has(C))return F.get(C).then(function(G){return G==null?void 0:_.qx(G)})}return null};
UkW=function(C){var F=_.Z(C.endpoint,_.eT);if(F!=null&&F.videoId)return F={videoId:F.videoId},_.y("web_imp_player_mute_params")&&(F.mutedAtStart=C.startPlaybackInMutedState),_.Ar("inline_playback",F)};
t3L=function(C,F,G){C=_.fZ(C,F.endpoint,H_U(F,G)).then(function(V){return V});
return Promise.resolve(C)};
H_U=function(C,F){F=_.y("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!C.startPlaybackInMutedState},F):Object.assign({},{vis:5,autonav:"1"},F);var G;F={contentPlaybackContext:_.Rv(F,(G=_.Z(C.endpoint.commandMetadata,_.GU))==null?void 0:G.url,window.location.href)};_.y("web_imp_player_mute_params")&&(F.overrideMutedAtStart=!C.startPlaybackInMutedState);return F};
Ntx=function(C,F){var G=window.MutationObserver;G&&(du=new G(function(V,J){V=_.u(V);for(var b=V.next();!b.done;b=V.next()){b=b.value;var z;if(z=b.type==="childList"&&b.target)a:{z=C;b=lcW(b.target);z=lcW(z);for(var Q=null,E=0;E<b.length;E++)if(z.includes(b[E])){if(E===0){z=!1;break a}Q=b[E];break}Q?(b=yul(b,Q),z=yul(z,Q),z=b<z):z=!1}if(z){F();J.disconnect();break}}}),(G=Z_L())&&du.observe(G,{childList:!0,
subtree:!0}))};
Z_L=function(){var C=document.getElementsByTagName("ytd-rich-grid-renderer");if(C.length>0)return C[0];C=document.getElementsByTagName("ytd-section-list-renderer");return C.length>0?C[0]:null};
lcW=function(C){for(var F=[];C;)F.push(C),C=C.parentElement;return F};
yul=function(C,F){var G=Array.from(F.children);F=C.indexOf(F);return F>0?G.indexOf(C[F-1]):-1};
xA=function(C,F,G){G=G===void 0?{}:G;return _.iQ(C,G,F)};
O_W=function(C){switch(C){case "MUSIC":return!0;default:return!1}};
wSU=function(C){if(C=C==null?void 0:C.find(function(V){var J,b;return((J=_.Z(V,XSM))==null?void 0:(b=J.inlinePlaybackBadgeData)==null?void 0:b.replicateAsTimestamp)===!0}))if(C=_.Z(C,XSM),C==null?0:C.icon){var F,G;
if((C=(F=_.V2Z(C.icon))==null?void 0:(G=F.clientResource)==null?void 0:G.imageName)&&O_W(C))return C}};
M3s=function(C){return C==null?void 0:C.filter(function(F){return F.premiereTrailerBadgeRenderer})};
SH3=function(C){var F,G=C==null?void 0:(F=C.find(function(E){return E.thumbnailOverlayTimeStatusRenderer}))==null?void 0:F.thumbnailOverlayTimeStatusRenderer,V,J;
if((G==null?0:(V=G.icon)==null?0:V.iconType)&&O_W(G==null?void 0:(J=G.icon)==null?void 0:J.iconType)){var b;return{icon:G==null?void 0:(b=G.icon)==null?void 0:b.iconType}}var z;if(F=C==null?void 0:(z=C.find(function(E){return E.thumbnailOverlayBadgeViewModel}))==null?void 0:z.thumbnailOverlayBadgeViewModel)if(z=wSU(F.thumbnailBadges))return{icon:z};
var Q;if(C=C==null?void 0:(Q=C.find(function(E){return E.thumbnailBottomOverlayViewModel}))==null?void 0:Q.thumbnailBottomOverlayViewModel)if(Q=wSU(C.badges))return{icon:Q};
return{}};
cus=function(C,F){var G=L9s,V=_.u(_.yH(Bt3(new vvl(function(){},G,F)),void 0,"PAnyd")),J=V.next().value,b=V.next().value,z=new vvl(function(Q){b(Q)},G,F);
_.sq(function(){Promise.resolve().then(function(){var Q,E=(Q=C())!=null?Q:{};z.playerControlsData=E;_.y("player_controls_skip_double_signal_old")&&(z.lastSeenPlayerApi=_.Nb(E.playerApi));_.y("player_controls_skip_double_signal_old")||(z.lastSeenPlayerApi=_.Nb(E.playerApi));fct(z)});
_.q0(function(){hiW(z)})},"HikUP");
_.q0(function(){hiW(z)});
return function(){return J()}};
Aud=function(C){return function(F){var G=C(),V={playerState:F};if(F===1){var J;(J=G.playerApi)==null||J.loadModule("captions")}if(F===0){var b;(b=G.playerApi)==null||b.unloadModule("captions")}F!==-1&&G.setState(V)}};
eit=function(C){return function(F){C().setState({playbackRate:F})}};
dkt=function(C){return function(F){var G=C(),V=G.playerApi,J=V==null?void 0:V.getVideoData(),b=(J==null?void 0:J.isLive)||!1;J=J==null?void 0:J.video_id;b={videoDuration:$w8(V||void 0),isLive:b,videoId:J};b.videoId!==G.videoId&&(b=Object.assign({},_.NZs(V),b));if(F==null?0:F.playertype)b.playerType=F.playertype;if(V){b.captionsAvailable=_.yP(V);F=b;var z;J=(z=V.getStoryboardLevel(V.getNumberOfStoryboardLevels()-1))==null?void 0:z.intervalMs;F.storyboardInterval=J?J/1E3:void 0;b.captionsAvailable&&
(b.captionsEnabled=_.s1W(V))}b.volumeMuted=!(V==null||!V.isMuted());G.setState(b)}};
xkt=function(C){return function(F){var G=C(),V=G.playerApi;if(V){var J=V.getPresentingPlayerType();F={playedTime:F||0,percentLoaded:V.getVideoLoadedFraction(),playerType:J};G.playerState===0&&(F.playedTime=G.videoDuration);G.isLive&&(J=V.getProgressState(J),F.playedTime-=J.seekableStart,F.videoDuration=$w8(V));if(G.playerType===1)V=!1;else{var b;if((b=G.uxConfig)==null?0:b.showCuedOverlay){var z;V=!((z=G.playerApi)==null?0:z.getPlayerStateObject(G.playerType).isDomPaused)}else V=!0}V&&delete F.playedTime;
G.setState(F)}}};
s6_=function(C){return function(){var F=C(),G,V,J,b={volume:(J=(G=F.playerApi)==null?void 0:G.getVolume())!=null?J:0,volumeMuted:!((V=F.playerApi)==null||!V.isMuted())};F.setState(b)}};
qHr=function(C){return function(){var F=C(),G=F.playerApi;if(G){var V={captionsAvailable:_.yP(G)};V.captionsAvailable&&(V.captionsEnabled=_.s1W(G));F.setState(V)}}};
Pnr=function(C){return function(){var F=C();if(F.playerApi&&!(F.volumeMuted||F.controlsVisible&&F.isProbablyAScreenreaderUser)){F.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var G;(G=document.querySelector(".player-control-play-pause-icon"))==null||G.focus()}}};
gvr=function(C){return{appApi:Object.assign({},_.a4T(),{showCaptionsToggleToast:function(F){var G,V;(V=(G=C()).showCaptionsToggleToast)==null||V.call(G,F)},
openInMiniplayer:function(){var F,G;(G=(F=C()).openInMiniplayer)==null||G.call(F)}})}};
RiU=function(C,F){var G,V,J;return!!(C==null?0:(G=C.playerResponse)==null?0:(V=G.playerConfig)==null?0:(J=V.inlinePlaybackConfig)==null?0:J.showScrubbingControls)&&!(F==null?0:F.hideScrubbingControls)};
_.YH3=function(C){var F=!C.miniplayerIsActive;return[5,2,0].includes(C.miniplayerPlaybackState)||F};
Ttl={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};ovt=function(C){this.onStepChangeCallback=function(){};
this.flowRenderer=C};
ovt.prototype.getCurrentStep=function(){var C=this,F;return((F=this.flowRenderer.steps)!=null?F:[]).map(function(G){return _.Z(G,_.cf)}).find(function(G){return G&&G.stepId===C.currentStepId})};
ru3=function(C,F){var G=F.flowStateEntityKey,V=C.flowStates.get(G);if(V)return V;F=new ovt(F);C.flowStates.set(G,F);return F};
K9W=function(C,F){for(var G=_.u(C.flowStates.entries()),V=G.next();!V.done;V=G.next()){var J=_.u(V.value);V=J.next().value;J=J.next().value;if(J.flowRenderer.targetId===F){C.flowStates.delete(V);break}}};
DkV=function(C,F){C.onStepChangeCallback=F;C.onStepChangeCallback(C.getCurrentStep())};
pSd=function(C,F){var G=C.getCurrentStep();if(!G||G.stepId!==F){var V;((V=C.flowRenderer.steps)!=null?V:[]).map(function(J){return _.Z(J,_.cf)}).find(function(J){return J&&J.stepId===F})&&(C.currentStepId=F,C.onStepChangeCallback(C.getCurrentStep()))}};
mkM=function(C,F){var G,V,J,b,z;_.I(function(Q){if(!F.length)return Q.return([]);G=[];V=_.u(F);for(J=V.next();!J.done;J=V.next())b=J.value,(z=C.resolveIcon(b))&&!C.iconCache[z.url]&&G.push(_.sXr(C,z).then(function(){}).catch(function(){}));
return Q.return(Promise.all(G))})};
Cm3=function(C,F){var G=[];F=(new Set(F)).values();F=_.u(F);for(var V=F.next();!V.done;V=F.next()){V=V.value;for(var J=_.u(Object.values(Ttl)),b=J.next();!b.done;b=J.next())G.push({iconName:V,iconStyle:b.value})}mkM(C.iconManager,G)};
_.jol=function(C,F,G){var V=G!=null?G:C.iconsToFetch;V!=null&&V.length?F!==void 0&&F>=0?_.c8(_.gT,function(){Cm3(C,V)},F):Cm3(C,V):Promise.resolve()};
_.FEV=_.u0(function(C,F,G){if(C.nextWireType_!==5)return!1;_.QF(F,G,_.M5(C.decoder_));return!0},function(C,F,G){F=_.luA(F);
F!=null&&(_.In(C,G,5),_.EL(C.encoder_,F))},_.K$r);
G_W=[0,_.f2,_.FEV,-1];VTL={sharedUi:_.LZ7,a11y:_.M0u,entities:{}};_.iXd=function(){return _.rh({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})};
vvl=function(C,F,G){var V=this;this.renderFn=C;this.listeners=F;this.context=G;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var J;this.lastSeenPlayerApi=_.Nb((J=this.playerControlsData)==null?void 0:J.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.NZs(),void 0);_.y("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){Bt3(V).setState({playerState:-1});V.resetRecentlyNavigatedJobId&&_.gT.cancelJob(V.resetRecentlyNavigatedJobId);
V.recentlyNavigated=!0;V.resetRecentlyNavigatedJobId=_.gT.addJob(function(){V.recentlyNavigated=!1},8,1E4)})};
vvl.prototype.setState=function(C){if(!_.y("mweb_player_skip_no_op_state_changes")||!bcd(C,this.state))if(this.state=Object.assign({},this.state,C),!_.y("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)C=-1,_.y("player_controls_log_creation_killswitch")||nyr()||(C=(0,_.Et)()),_.NV("pcu_s"),_.NV("pcu_se"),_.NV("pcu_rs"),this.renderFn(Bt3(this)),_.NV("pcu_re"),uVW(C),_.gT.addJob(function(){_.NV("pcu_ap")},8)};
var Bt3=function(C){var F;var G=_.Nb((F=C.playerControlsData)==null?void 0:F.playerApi);return Object.assign({},C.state,{setState:C.boundSetState,domMeasurements:{progressBarLineRect:C.progressBarLineRect},playerApi:G,appApi:C.context.appApi,playerContainer:C.context.playerContainer,playerControlContainer:C.context.playerControlContainer,uxConfig:C.context.uxConfig})},fct=function(C){C.listeners.forEach(function(F){C.eventListenerCleanupFunctions.push(F.register(function(){return Bt3(C)},function(){return C.getData()}))})},
hiW=function(C){C.eventListenerCleanupFunctions.forEach(function(F){F()});
C.eventListenerCleanupFunctions.length=0};
vvl.prototype.getData=function(){return this.playerControlsData};var Jrr=[0,_.o3,_.Ai,_.o3,-1,_.Ai,[0,_.eX,_.xL,-1],_.o3,-1];var $Ux=[0,[1,2,3],_.Pc,-2];var bXt=[0,_.o3];var n6M=new _.Cx("crowdsourcedContextUserRatingFormFlowState");var uwx=new _.Cx("noteViewModel");var sF=new _.Cx("abuseReportFlowState");var zQd=new _.Cx("feedbackFormFlowState");var Qox=new _.Cx("inputBoxViewModel");_.KOV=new _.Cx("lengthValidationRule");var pv3=new _.Cx("regexValidationRule");var Cn3=new _.Cx("selectedValidationRule");var IQr=[0,_.xL,_.o3,_.pk];var E6l=[0,_.Ai,-2,G_W];var WE3=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(WE3,_.b0);WE3.prototype.getFeature=function(){return _.a3(this,6)};
WE3.prototype.hasFeature=function(){return _.Or(_.ig(this,6))!=null};var tTr=[0,_.xL];var aQd=_.kl(WE3,[0,_.Ai,-2,G_W,_.Ai,_.xL,-1,_.cc,-1,_.xL,-3,_.WdO,_.eX,E6l,_.xL,-1,Jrr,_.cc,_.xL,IQr,[0,[0,_.xL,-2,2,_.xL,-1,[0,_.xL],[0,_.o3,_.xL],[0,_.o3],[0,_.xL],2,[0,_.o3,2,[0,_.o3,-1],[0,_.gn,$Ux],1,[0,bXt],1,[0,_.xL]],[0,_.eX],[0,[1,2],_.R3,[0,_.xL],_.R3,[0,_.xL,_.TG,-1]],[0,_.o3],[0,_.xL,[0,[1,2,3,4],_.R3,[0,[0,_.xL],tTr],_.R3,[0,[0,_.xL],tTr],_.R3,[0,tTr],_.R3,[0,[0,_.xL],tTr]]],[0,_.xL],1,[0,_.xL,_.o3],1,[0,_.xL],[0,_.eX],[0,_.xL,_.o3,-1,[0,_.xL,-4]],[0,_.xL],[0,_.xL,-2],1,[0,_.xL],[0,
_.eX],[0,_.eX],1,[0,_.eX],[0]],_.xL,_.o3,_.f2,1,_.YL,_.xL,_.o3],_.Ai,_.YL,_.o3,-1,_.Ai]);var k_l=new _.Cx("talkToRecsViewModel");var UUh=new _.Cx("creatorGoalSetUpFlowDropdownItemViewModel");var HX_=new _.Cx("creatorGoalSetUpFlowDropdownViewModel");var XSM=new _.Cx("thumbnailBadgeViewModel");var lQM=new _.Cx("checkboxGroupViewModel");var Y8_=new _.Cx("checkboxItemViewModel");_.qg=new _.Cx("radioButtonGroupViewModel");var yrM=new _.Cx("radioButtonItemViewModel");var Icl=new _.Cx("panelFooterViewModel");var ZXM=new _.Cx("ypcCancelRecurrenceCommand");var NzW=new _.Cx("cancellationFlowState");var hsr=new _.Cx("premiumPurchaseFlowState");var OX_=new _.Cx("surveyAnswerCardRenderer");var X9U=new _.Cx("showMoreButtonRenderer");var w98;var MTs,S5_=function(){if(MTs!==void 0)return MTs;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;w98===void 0&&(w98=document.createElement("template"));var V=w98;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return MTs=C};var P5=function(){var C=_.B.apply(this,arguments)||this;C.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";C.goalDescription="";C.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";C.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";C.startButtonId="start-button";C.exampleButtonId="example-button";return C};
_.O(P5,_.B);_.n=P5.prototype;_.n.getGoalDropdownItems=function(){var C,F;return(F=_.Z((C=this.data)==null?void 0:C.purchaseTargetDropdown,HX_))==null?void 0:F.dropdownItems};
_.n.getTimerDropdownItems=function(){var C,F;return(F=_.Z((C=this.data)==null?void 0:C.timerDropdown,HX_))==null?void 0:F.dropdownItems};
_.n.getColorDropdownItems=function(){var C,F;return(F=_.Z((C=this.data)==null?void 0:C.colorDropdown,HX_))==null?void 0:F.dropdownItems};
_.n.getDropdownItemText=function(C){var F;return(F=_.Z(C,UUh))==null?void 0:F.itemLabel};
_.n.getDropdownItemValue=function(C){C=_.Z(C,UUh);return(C==null?void 0:C.timeLimit)||(C==null?void 0:C.purchaseTarget)||(C==null?void 0:C.eligiblePurchaseType)};
_.n.updateFlowState=function(C){_.rz(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:C}])};
_.n.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.n.updateGoalValue=function(C){this.goal=C.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.n.onTextValueChanged=function(C){this.goalDescription=C.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.n.updateTimerValue=function(C){this.timer=C.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.n.updateTierValue=function(C){this.tier=C.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.n.getButtonViewModel=function(C){C=(C==null?void 0:C.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var F,G=_.Z((F=this.data)==null?void 0:F.startGoalButton,_.jl);return Object.assign({},G,{state:C})};
_.I6.Object.defineProperties(P5,{template:{configurable:!0,enumerable:!0,get:function(){return S5_()}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],P5.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],P5.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],P5.prototype,"goal",void 0);_.R([_.L(),_.Y("design:type",Object)],P5.prototype,"goalDescription",void 0);_.R([_.L(),_.Y("design:type",Object)],P5.prototype,"timer",void 0);_.R([_.L(),_.Y("design:type",Object)],P5.prototype,"tier",void 0);
_.R([_.L(),_.Y("design:type",Object)],P5.prototype,"startButtonId",void 0);_.R([_.L(),_.Y("design:type",Object)],P5.prototype,"exampleButtonId",void 0);_.R([_.Z5({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],P5);_.q(P5,"yt-creator-goal-set-up-flow-view-model",function(){return S5_()},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var LEW;LEW=Object.assign({},{continuation:_.BbE,download:_.XqS,canvas:_.I2o,reportChannelAbuse:_.ejm,ui:_.Wk9,share:_.dAE,talkToRecs:_.sSm,watch:_.KQ,ypc:_.Tbo,radioButtonGroup:_.zvi,collabInviteLink:_.nWi},VTL,{voiceSearch:_.kRW,shorts:_.ro});_.gu=_.U4(LEW);_.Bzl=_.HB(_.gu);var v6d;var fQM;var hQs;var crM=function(){return _.B.apply(this,arguments)||this};
_.O(crM,_.B);_.R([_.L(),_.Y("design:type",Object)],crM.prototype,"data",void 0);_.R([_.Z5({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],crM);
_.q(crM,"yt-survey-answer-card-renderer",function(){if(hQs===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;fQM===void 0&&(fQM=document.createElement("template"));var V=fQM;G.call(F,V.content.cloneNode(!0),C.content.firstChild);hQs=C}C=hQs;return C},{mode:2});var Arh;var eQ8;var RK=function(){return _.B.apply(this,arguments)||this};
_.O(RK,_.B);_.n=RK.prototype;_.n.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.n.selectedItemChanged=function(C){_.rz(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[C.feedbackToken||""]}])};
_.n.surveyAnswerCardRendererClicked=function(C){if(C.target&&_.Z(C.model.item,OX_)){var F=C.target;C=_.Z(C.model.item,OX_);C.onTapCommand?_.pX(F,[C.onTapCommand],F):this.data.onTapCommand&&_.pX(F,[this.data.onTapCommand],F);this.selectedItemChanged(C)}};
_.n.checkIsCancellationStyle=function(C){return C==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.n.updateSelectedItemFromBinding=function(C){this.selectedItem=C.detail.value};
RK.prototype.onSelectedItemChanged=RK.prototype.onSelectedItemChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],RK.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],RK.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],RK.prototype,"selectedItem",void 0);_.R([_.L({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],RK.prototype,"isCancellationStyle",void 0);
_.R([_.iP("selectedItem"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RK.prototype,"onSelectedItemChanged",null);_.R([_.Z5({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],RK);
_.q(RK,"yt-survey-flow-step-renderer",function(){if(eQ8===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;Arh===void 0&&(Arh=document.createElement("template"));var V=Arh;G.call(F,V.content.cloneNode(!0),C.content.firstChild);eQ8=C}C=eQ8;return C},{mode:2});var YA=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return C};
_.O(YA,_.B);YA.prototype.handleSurveyFlowStepOptionChanged=function(C){this.ytdReduxBehavior.dispatch(_.rh({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:C}));_.rz(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:C}}])};
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],YA.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],YA.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],YA.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],YA);
_.q(YA,"ytd-survey-flow-step-renderer",function(){if(v6d!==void 0)return v6d;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return v6d=C},{mode:1});_.q5r=_.d(function(C){var F=C.data;var G=C.hideDivider;var V=C.isChannelInfoCard;C={};return _.W("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.W("div",{class:_.py("yt-profile-identity-info-view-model__frame",(C["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!F().channelBanner},C))},_.W(dUW,{profileIdentityInfoData:F}),_.W("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.W("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.W(_.uC,{data:function(){return F().avatar}},{avatarViewModel:_.g$})),_.W(xU8,{profileIdentityInfoData:F})),_.W(_.a,{cond:function(){return F().channelDescription},
then:function(J){var b={};return _.W("div",{class:_.py((b["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(V==null||!V())},b["yt-profile-identity-info-view-model__channel-description"]=function(){return!(V==null?0:V())},b))},J)}}),_.W(soh,{profileIdentityInfoData:F}),_.W(_.a,{cond:function(){return!(G==null?0:G())},
then:function(){return _.W("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"ih");
_.q5r.idomCompat=!0;var soh=_.d(function(C){var F=C.profileIdentityInfoData;return _.W("div",{class:"yt-profile-identity-info-view-model__buttons"},_.W(_.Ag,{each:function(){return F().subscribeButton?[F().subscribeButton,F().channelAccess]:[F().channelAccess]}},function(G){return _.W("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.W("div",{class:"yt-profile-identity-info-view-model--button"},_.W(_.uC,{data:function(){return G}},{buttonViewModel:_.tS,
subscribeButtonViewModel:_.gB})))}))},"jh"),xU8=_.d(function(C){var F=C.profileIdentityInfoData;
return _.W("div",{class:"yt-profile-identity-info-view-model__trio"},_.W("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.W(PmU,{profileIdentityInfoData:F}),_.W(_.uC,{data:function(){return F().threeDotMenu}},{buttonViewModel:_.tS})),_.W(g6U,{profileIdentityInfoData:F}))},"kh"),PmU=_.d(function(C){var F=C.profileIdentityInfoData;
return _.W("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.W("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return F().channelDisplayName}),_.W(_.a,{cond:function(){return F().verifiedOrOacBadge},
then:function(G){return _.W("div",{class:"yt-profile-identity-info-view-model__badge"},_.W(_.AC,{data:function(){return{thumbnails:[{url:G().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"lh"),dUW=_.d(function(C){var F=C.profileIdentityInfoData;
return _.W("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.W(_.uC,{data:function(){var G=F().channelBanner;if(G)return{imageBannerViewModel:{image:G.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(G){return _.W("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.W(_.CF,{data:G.data,
isPositionRelative:!0}))}}))},"mh"),g6U=_.d(function(C){var F=C.profileIdentityInfoData;
return _.W("div",{class:"yt-profile-identity-info-view-model__metadata"},_.W("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.W("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return F().channelHandle}),_.W(_.a,{cond:function(){return F().channelPronouns&&F().channelHandle},
then:function(){return _.W("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.W("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return F().channelPronouns})),_.W("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.W("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return F().leftOfBulletInfo}),_.W(_.a,{cond:function(){return F().leftOfBulletInfo&&F().rightOfBulletInfo},
then:function(){return _.W("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.W("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return F().rightOfBulletInfo})))},"nh");var RQU;var T9=function(){return _.B.apply(this,arguments)||this};
_.O(T9,_.B);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],T9.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],T9.prototype,"data",void 0);_.R([_.e({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],T9);
_.q(T9,"ytd-channel-history-renderer",function(){if(RQU!==void 0)return RQU;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return RQU=C},{mode:1});var Y5V;var TzW=function(){return _.B.apply(this,arguments)||this};
_.O(TzW,_.B);_.R([_.L(),_.Y("design:type",Object)],TzW.prototype,"data",void 0);_.R([_.e({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],TzW);
_.q(TzW,"ytd-feature-enablement-info-renderer",function(){if(Y5V!==void 0)return Y5V;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Y5V=C},{mode:1});var o6r;var rrV;var oK=function(){var C=_.B.apply(this,arguments)||this;C.textBoxMaxLength=_.y("enable_tvod_campaign_code_integration")?15:12;return C};
_.O(oK,_.B);_.n=oK.prototype;_.n.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.n.onSubmit=function(){var C=this.data.serviceEndpoint,F=_.Z(C,_.hm);F&&C&&(F.couponCode=this.userInput,_.I8().resolve(_.WD).resolveCommand(C,{form:{element:this.hostElement}}))};
_.n.validate=function(){var C=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=C&&!this.data.errorMessage;this.showErrorMessage=C&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.y("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.n.computeStyle=function(C){return C};
_.n.computeShowValidationBelowInput=function(C){return C!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.n.updateUserInputFromBinding=function(C){this.userInput=C.currentTarget.value};
_.n.updateShowErrorMessageFromBinding=function(C){this.showErrorMessage=C.detail.value};
_.I6.Object.defineProperties(oK.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
oK.prototype.dataChanged=oK.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],oK.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],oK.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",String)],oK.prototype,"userInput",void 0);_.R([_.L(),_.Y("design:type",Boolean)],oK.prototype,"disableApplyButton",void 0);_.R([_.L(),_.Y("design:type",Boolean)],oK.prototype,"hideApplyButton",void 0);
_.R([_.L(),_.Y("design:type",Boolean)],oK.prototype,"hideErrorMessage",void 0);_.R([_.L(),_.Y("design:type",Boolean)],oK.prototype,"showTick",void 0);_.R([_.L(),_.Y("design:type",Boolean)],oK.prototype,"showErrorMessage",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],oK.prototype,"couponStyle",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.Y("design:type",Boolean)],oK.prototype,"showValidationBelowInput",void 0);_.R([_.L(),_.Y("design:type",Object)],oK.prototype,"textBoxMaxLength",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oK.prototype,"dataChanged",null);
_.R([_.M("showTick","showErrorMessage","userInput"),_.Y("design:type",String),_.Y("design:paramtypes",[])],oK.prototype,"validationState",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],oK);
_.q(oK,"ytd-ypc-coupon-renderer",function(){if(rrV!==void 0)return rrV;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return rrV=C},{mode:1});var ru=function(){return _.B.apply(this,arguments)||this};
_.O(ru,_.B);ru.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"}}}};
ru.prototype.computeStyle=function(C){return C};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ru.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],ru.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],ru.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],ru.prototype,"buttonStyle",void 0);_.R([_.e({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],ru);
_.q(ru,"ytd-flow-bottom-bar-renderer",function(){if(o6r!==void 0)return o6r;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return o6r=C},{mode:1});var KEM;var DUl;var p9s;var Ki=function(){return _.B.apply(this,arguments)||this};
_.O(Ki,_.B);Ki.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Ki.prototype.focus=function(C){this.title&&_.iS(this.title,C)};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Ki.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Ki.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Ki.prototype,"data",void 0);_.R([_.$z("#title"),_.Y("design:type",HTMLElement)],Ki.prototype,"title",void 0);_.R([_.e({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],Ki);
_.q(Ki,"ytd-flow-top-bar-renderer",function(){if(p9s!==void 0)return p9s;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return p9s=C},{mode:1});var mUr;var CQL;var jQh;var Dy=function(){return _.B.apply(this,arguments)||this};
_.O(Dy,_.B);Dy.prototype.freeTextValueChanged=function(){_.rz(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
Dy.prototype.updateFreeTextValueFromBinding=function(C){this.freeTextValue=C.detail.value};
_.I6.Object.defineProperties(Dy.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var C,F,G=(F=(C=this.data)==null?void 0:C.responseMaxLength)!=null?F:500,V;return((V=this.freeTextValue)!=null?V:"").length>=G?"maxed-out":""}}});
Dy.prototype.freeTextValueChanged=Dy.prototype.freeTextValueChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Dy.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Dy.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",String)],Dy.prototype,"freeTextValue",void 0);_.R([_.$z("#user-input"),_.Y("design:type",HTMLTextAreaElement)],Dy.prototype,"input",void 0);
_.R([_.M("freeTextValue"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Dy.prototype,"characterLimitClass",null);_.R([_.iP("freeTextValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Dy.prototype,"freeTextValueChanged",null);_.R([_.Z5({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],Dy);
_.q(Dy,"yt-free-text-input-flow-step-renderer",function(){if(jQh===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;CQL===void 0&&(CQL=document.createElement("template"));var V=CQL;G.call(F,V.content.cloneNode(!0),C.content.firstChild);jQh=C}C=jQh;return C},{mode:2});var pi=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return C};
_.O(pi,_.B);pi.prototype.handleFreeTextFlowStepInputChanged=function(C){_.rz(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:C}}])};
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],pi.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],pi.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],pi.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],pi);
_.q(pi,"ytd-free-text-input-flow-step-renderer",function(){if(mUr!==void 0)return mUr;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return mUr=C},{mode:1});var FyM;var GUr;var Vjt=function(){return _.B.apply(this,arguments)||this};
_.O(Vjt,_.B);_.R([_.L(),_.Y("design:type",Object)],Vjt.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],Vjt);
_.q(Vjt,"ytd-metadata-line-renderer",function(){if(GUr!==void 0)return GUr;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return GUr=C},{mode:1});var mL=function(){return _.B.apply(this,arguments)||this};
_.O(mL,_.B);mL.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],mL.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],mL.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],mL.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],mL.prototype,"isMasthead",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],mL);
_.q(mL,"ytd-media-product-renderer",function(){if(FyM!==void 0)return FyM;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return FyM=C},{mode:1});var ill;var CN=function(){return _.B.apply(this,arguments)||this};
_.O(CN,_.B);CN.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
CN.prototype.onBillboardImageLoaded=function(){_.oo(this.hostElement,"yt-refit")};
CN.prototype.onBillboardImageLoaded=CN.prototype.onBillboardImageLoaded;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],CN.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],CN.prototype,"data",void 0);_.R([_.$z("#billboardImage"),_.Y("design:type",Object)],CN.prototype,"billboardImage",void 0);_.R([_.VG("yt-img-shadow-loaded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],CN.prototype,"onBillboardImageLoaded",null);
_.R([_.e({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],CN);
_.q(CN,"ytd-billboard-masthead-renderer",function(){if(ill!==void 0)return ill;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return ill=C},{mode:1});var J3l;var ja=function(){var C=_.B.apply(this,arguments)||this;C.smallSize=!1;return C};
_.O(ja,_.B);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],ja.prototype,"ytComponentBehaviorType",void 0);_.R([_.L(),_.Y("design:type",Object)],ja.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],ja.prototype,"smallSize",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],ja);
_.q(ja,"ytd-bullet-formatted-string",function(){if(J3l!==void 0)return J3l;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return J3l=C},{mode:1});var $Vx;var F8=function(){return _.B.apply(this,arguments)||this};
_.O(F8,_.B);F8.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],F8.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],F8.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],F8.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],F8);
_.q(F8,"ytd-offer-detail-renderer",function(){if($Vx!==void 0)return $Vx;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return $Vx=C},{mode:1});var blV;var G0=function(){return _.B.apply(this,arguments)||this};
_.O(G0,_.B);G0.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"}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],G0.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],G0.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],G0.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],G0);
_.q(G0,"ytd-offer-detail-step-renderer",function(){if(blV!==void 0)return blV;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return blV=C},{mode:1});var nBL;var Vh=function(){var C=_.B.apply(this,arguments)||this;C.isInOfferModule=!1;return C};
_.O(Vh,_.B);_.n=Vh.prototype;_.n.computeHasEndpoint=function(){var C;return!((C=this.data)==null||!C.onClickCommand)};
_.n.dataChanged=function(){var C;if((C=this.data)==null?0:C.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")};
_.n.detached=function(){var C;if((C=this.data)==null?0:C.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.n.handleClickEvent=function(){var C;if((C=this.data)==null?0:C.onClickCommand){var F;this.componentBehavior.resolveCommand((F=this.data)==null?void 0:F.onClickCommand)}};
_.n.onContentKeyDown=function(C){C.key==="Enter"?this.handleClickEvent(C):C.key===" "&&C.preventDefault()};
_.n.onContentKeyUp=function(C){C.key===" "&&this.handleClickEvent(C)};
Vh.prototype.dataChanged=Vh.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Vh.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Vh.prototype,"componentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Vh.prototype,"data",void 0);_.R([_.L({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Vh.prototype,"hasEndpoint",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Vh.prototype,"isInOfferModule",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Vh.prototype,"dataChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],Vh);
_.q(Vh,"ytd-channel-masthead-renderer",function(){if(nBL!==void 0)return nBL;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return nBL=C},{mode:1});var uIM;var JN=function(){var C=_.B.apply(this,arguments)||this;C.thumbnailObjectFit="CONTAIN";C.thumbnailObjectPosition="LEFT";C.isExpanded=!1;return C};
_.O(JN,_.B);_.n=JN.prototype;_.n.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.n.dataChanged=function(){this.resetStates()};
_.n.computeisTapOnOfferInfoContainerEnabled=function(){var C;return((C=this.data)==null?void 0:C.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.n.onExpandBtnClick=function(){var C,F=_.Z((C=this.data)==null?void 0:C.showMoreButtonRenderer,X9U);F&&_.MJ(_.ia(),F.trackingParams);this.isExpanded=!this.isExpanded};
_.n.onOfferInfoClick=function(C){this.isTapOnOfferInfoContainerEnabled&&(_.dE(_.AR(C)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.s4(_.AR(C)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.n.onBottomBarClick=function(){this.executeTapCommand()};
_.n.executeTapCommand=function(){var C,F=(C=this.data)==null?void 0:C.tapCommand;F&&this.ytComponentBehavior.resolveCommand(F)};
_.n.resetStates=function(){this.isExpanded=!1};
_.I6.Object.defineProperties(JN.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var C=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),F,G,V;return((F=this.data)==null?void 0:F.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&C&&!!((G=this.data)==null?0:(V=G.benefits)==null?0:V.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var C,F,G;return((F=_.Z((C=this.data)==null?void 0:C.showMoreButtonRenderer,X9U))==null?void 0:F.showMoreButtonTitle)||((G=this.data)==null?void 0:G.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var C,F,G;return((F=_.Z((C=this.data)==null?void 0:C.showMoreButtonRenderer,X9U))==null?void 0:F.showLessButtonTitle)||((G=this.data)==null?void 0:G.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var C;return(C=this.showLessButtonTitle)!=null?C:""}var F;return(F=this.showMoreButtonTitle)!=null?F:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var C,F,G;return((C=this.data)==null?void 0:C.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((F=this.data)==null?0:F.footerTitle)||((G=this.data)==null?0:G.footerSubtitle))}}});
JN.prototype.dataChanged=JN.prototype.dataChanged;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],JN.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],JN.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],JN.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",String)],JN.prototype,"thumbnailObjectFit",void 0);
_.R([_.L(),_.Y("design:type",String)],JN.prototype,"thumbnailObjectPosition",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.Y("design:type",Boolean)],JN.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.R([_.L(),_.Y("design:type",Object)],JN.prototype,"isExpanded",void 0);_.R([_.L(),_.Y("design:type",Object)],JN.prototype,"data",void 0);_.R([_.L({computed:"computeIcon_(data.footerIcon)"}),_.Y("design:type",String)],JN.prototype,"icon",void 0);
_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],JN.prototype,"dataChanged",null);_.R([_.M("data.thumbnail"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],JN.prototype,"hasThumbnail",null);_.R([_.M("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],JN.prototype,"enableExpandButton",null);
_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],JN.prototype,"enableOfferContentIcon",null);_.R([_.M("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],JN.prototype,"showMoreButtonTitle",null);_.R([_.M("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],JN.prototype,"showLessButtonTitle",null);
_.R([_.M("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.Y("design:type",String),_.Y("design:paramtypes",[])],JN.prototype,"expandedBtnText",null);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],JN.prototype,"enableBottomBar",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],JN);
_.q(JN,"ytd-offer-card-renderer",function(){if(uIM!==void 0)return uIM;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return uIM=C},{mode:1});var zR_;var $u=function(){return _.B.apply(this,arguments)||this};
_.O($u,_.B);$u.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"}}}};
$u.prototype.onClick=function(C){if(!_.dE(C.composedPath()||[],this.hostElement,["A".toString()])){var F,G;if((C=(G=_.Z((F=this.data)==null?void 0:F.actionButton,_.DY))==null?void 0:G.command)&&!this.ytComponentBehavior.resolveCommand(C)){var V;(V=_.ia())==null||V.clickCommand(C);_.I8().resolve(_.WD).resolveCommand(C,{form:{element:this.hostElement}})}}};
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],$u.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],$u.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],$u.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],$u.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],$u);
_.q($u,"ytd-offer-content-renderer",function(){if(zR_!==void 0)return zR_;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return zR_=C},{mode:1});var QQl;var bt=function(){return _.B.apply(this,arguments)||this};
_.O(bt,_.B);bt.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.I6.Object.defineProperties(bt.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var C,F;return!((C=this.data)==null||!C.title)||!((F=this.data)==null||!F.description)}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],bt.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],bt.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],bt.prototype,"data",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],bt.prototype,"hasHeaderData",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],bt);
_.q(bt,"ytd-offer-section-renderer",function(){if(QQl!==void 0)return QQl;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return QQl=C},{mode:1});var I88;var nN=function(){return _.B.apply(this,arguments)||this};
_.O(nN,_.B);
nN.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"}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],nN.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],nN.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],nN.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],nN);
_.q(nN,"ytd-offer-selection-step-renderer",function(){if(I88!==void 0)return I88;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return I88=C},{mode:1});var EBL;var ut=function(){return _.B.apply(this,arguments)||this};
_.O(ut,_.B);ut.prototype.computeStyle=function(C){return C};
ut.prototype.computeImageWidth=function(C){return C==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.R([_.L({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.Y("design:type",String)],ut.prototype,"containerStyle",void 0);_.R([_.L({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.Y("design:type",String)],ut.prototype,"imageWidth",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ut.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],ut.prototype,"data",void 0);
_.R([_.e({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],ut);
_.q(ut,"ytd-confirmation-masthead-renderer",function(){if(EBL!==void 0)return EBL;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return EBL=C},{mode:1});var Wy8;var z0=function(){return _.B.apply(this,arguments)||this};
_.O(z0,_.B);z0.prototype.computeStyle=function(C){return C};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],z0.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],z0.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.Y("design:type",String)],z0.prototype,"containerStyle",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],z0);
_.q(z0,"ytd-purchase-complete-detail-renderer",function(){if(Wy8!==void 0)return Wy8;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Wy8=C},{mode:1});var tjU;var Qh=function(){var C=_.B.apply(this,arguments)||this;C.scriptsAppended=!1;return C};
_.O(Qh,_.B);Qh.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"}}}};
Qh.prototype.onDataChanged=function(){var C=this.get("data.gtmId");C&&(_.fS(C,_.TF("GL","")),this.setupConversionTracking())};
Qh.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var C=document.createElement("noscript");C.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(C);this.scriptsAppended=!0}};
Qh.prototype.onDataChanged=Qh.prototype.onDataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Qh.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Qh.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Qh.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],Qh.prototype,"scriptsAppended",void 0);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qh.prototype,"onDataChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],Qh);
_.q(Qh,"ytd-purchase-complete-step-renderer",function(){if(tjU!==void 0)return tjU;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return tjU=C},{mode:1});var a8_;var Ib=function(){var C=_.B.apply(this,arguments)||this;C.darkerDarkTheme=_.y("web_darker_dark_theme");return C};
_.O(Ib,_.B);Ib.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Ib.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Ib.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Ib.prototype,"darkerDarkTheme",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],Ib);
_.q(Ib,"ytd-ypc-transaction-error-message-renderer",function(){if(a8_!==void 0)return a8_;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return a8_=C},{mode:1});var kUl;var UVL;var Ey=function(){var C=_.B.apply(this,arguments)||this;C.handlePhoneVerificationSuccess=function(F){if(C.isValidPhoneVerificationCompletionMessageEvent(F)){var G;((G=C.data)==null?0:G.nextStepCommand)&&C.ytComponentBehavior.resolveCommand(C.data.nextStepCommand)}};
return C};
_.O(Ey,_.B);Ey.prototype.isValidPhoneVerificationCompletionMessageEvent=function(C){if(C.data!=="yt-phone-verification-complete")return!1;C=_.bH(C.origin);return C!==null&&C.includes("youtube.com")};
Ey.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
Ey.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Ey.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Ey.prototype,"data",void 0);_.R([_.Z5({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],Ey);
_.q(Ey,"yt-feature-enablement-soft-entry-renderer",function(){if(UVL===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;kUl===void 0&&(kUl=document.createElement("template"));var V=kUl;G.call(F,V.content.cloneNode(!0),C.content.firstChild);UVL=C}C=UVL;return C},{mode:1});var HlL;var l8t;var y3W;var Zll;var Nhr=function(){return _.B.apply(this,arguments)||this};
_.O(Nhr,_.B);_.R([_.L(),_.Y("design:type",Object)],Nhr.prototype,"data",void 0);_.R([_.Z5({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],Nhr);
_.q(Nhr,"yt-benefits-item-renderer",function(){if(Zll===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;y3W===void 0&&(y3W=document.createElement("template"));var V=y3W;G.call(F,V.content.cloneNode(!0),C.content.firstChild);Zll=C}C=Zll;return C},{mode:2});var Olx;var XAx;var Wt=function(){return _.B.apply(this,arguments)||this};
_.O(Wt,_.B);Wt.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Wt.prototype.computeisWithoutPadding=function(){var C;return((C=this.data)==null?void 0:C.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Wt.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Wt.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.Y("design:type",Boolean)],Wt.prototype,"isWithoutPadding",void 0);_.R([_.Z5({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],Wt);
_.q(Wt,"yt-benefits-section-renderer",function(){if(XAx===void 0){var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;Olx===void 0&&(Olx=document.createElement("template"));var V=Olx;G.call(F,V.content.cloneNode(!0),C.content.firstChild);XAx=C}C=XAx;return C},{mode:2});var tN=function(){return _.B.apply(this,arguments)||this};
_.O(tN,_.B);tN.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
tN.prototype.computeisUsingLargeWidth=function(){var C;return((C=this.data)==null?void 0:C.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],tN.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],tN.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.Y("design:type",Boolean)],tN.prototype,"isUsingLargeWidth",void 0);_.R([_.Z5({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],tN);
_.q(tN,"yt-benefits-flow-step-renderer",function(){if(l8t===void 0){var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;HlL===void 0&&(HlL=document.createElement("template"));var V=HlL;G.call(F,V.content.cloneNode(!0),C.content.firstChild);l8t=C}C=l8t;return C},{mode:2});var wA3;var MjV;var ab=function(){return _.B.apply(this,arguments)||this};
_.O(ab,_.B);ab.prototype.checkIsUsingLargeWidth=function(){var C;return((C=this.data)==null?void 0:C.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.R([_.L(),_.Y("design:type",Object)],ab.prototype,"data",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ab.prototype,"ytRendererBehavior",void 0);_.R([_.L({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.Y("design:type",Boolean)],ab.prototype,"isUsingLargeWidth",void 0);_.R([_.Z5({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],ab);
_.q(ab,"yt-confirmation-flow-step-renderer",function(){if(MjV===void 0){var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;wA3===void 0&&(wA3=document.createElement("template"));var V=wA3;G.call(F,V.content.cloneNode(!0),C.content.firstChild);MjV=C}C=MjV;return C},{mode:2});var SZr;var Lyl;var BhM=function(){return _.B.apply(this,arguments)||this};
_.O(BhM,_.B);_.R([_.L(),_.Y("design:type",Object)],BhM.prototype,"data",void 0);_.R([_.Z5({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],BhM);
_.q(BhM,"yt-info-flow-step-renderer",function(){if(Lyl===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;SZr===void 0&&(SZr=document.createElement("template"));var V=SZr;G.call(F,V.content.cloneNode(!0),C.content.firstChild);Lyl=C}C=Lyl;return C},{mode:2});var vB_;var f8L;var hR8=function(){return _.B.apply(this,arguments)||this};
_.O(hR8,_.B);_.R([_.L(),_.Y("design:type",Object)],hR8.prototype,"data",void 0);_.R([_.Z5({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],hR8);
_.q(hR8,"yt-info-list-flow-step-renderer",function(){if(f8L===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;vB_===void 0&&(vB_=document.createElement("template"));var V=vB_;G.call(F,V.content.cloneNode(!0),C.content.firstChild);f8L=C}C=f8L;return C},{mode:2});var c3M=_.d(function(C){var F=C.data;return _.W("styled-text-view-model",{class:_.py("ytStyledTextViewModelHost",function(){return ZcW(F().fontAttributes)},function(){return ytM(F().color)})},_.W(_.mn,{text:function(){return F().text},
ariaLabel:function(){var G,V,J;return(J=(G=F().accessibility)==null?void 0:(V=G.accessibilityData)==null?void 0:V.label)!=null?J:""}}))},"oh");
c3M.idomCompat=!0;var A38=_.d(function(C){var F=function(){var J,b,z,Q;return(Q=(z=(J=C.alt)==null?void 0:J.call(C))!=null?z:(b=C.data().accessibilityData)==null?void 0:b.label)!=null?Q:""},G=function(){return C.data().imageWidth},V=function(){return C.data().imageHeight};
return _.W("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.W(_.a,{cond:function(){var J=C.data();if(J){var b,z,Q;var E=((b=_.I8().resolve(_.Qt(_.v6)))==null?0:b())?(z=J.imageDark)!=null?z:J.imageLight:(Q=J.imageLight)!=null?Q:J.imageDark}else E=void 0;return E},
then:function(J){return _.W(_.AC,Object.assign({},C,{data:J,alt:F,targetWidth:G,targetHeight:V,preserveHeight:!0,preserveWidth:!0}))}}))},"ph");
A38.idomCompat=!0;var ku=_.d(function(C){var F=C.data;C=_.dk(function(){return F().slots},[]);
var G=_.dk(function(){return F().layoutProperties},{}),V=_.I8().resolve(_.hC);
return _.W("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:aeM(G,V)},_.W(_.Ag,{each:C,keyBy:"INDEX"},function(J){return _.W("div",{class:"ytContainerLayoutViewModelSlot",style:aeM(function(){return J().layoutProperties},V)},_.W(_.uC,{data:function(){return J().contents}},{containerLayoutViewModel:ku,
badgeViewModel:_.WI,buttonViewModel:_.tS,styledTextViewModel:c3M,contentPreviewImageViewModel:function(b){return _.W(_.tZ,{data:b.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(b){return _.W(A38,{data:b.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"qh");
ku.idomCompat=!0;var eRV=_.d(function(C){var F=C.data;var G=C.stateFns;var V=function(){var t=F(),k=t.productId;return!(!t.clearGroupId&&!k)},J=function(){var t=F(),k=t.clearGroupId;
return(t=t.productId)?G().isProductSelected(t):k?G().getSelectedProductByGroupId(k)==null:!1},b=function(t){var k=F(),U=k.clearGroupId;
if(k=k.productId)G().onProductSelected(k),t==null||t.forEach(function(H){_.wQ(H)});
else if(U)G().onClearGroupSelected(U)},z=function(){var t=F(),k=t.clearGroupId;
if(t=t.productId){var U;return"group:"+(((U=G().getProductById(t))==null?void 0:U.groupId)||"")}return k?"group:"+k:""},Q=_.dk(function(){return F().header},[]),E=_.dk(function(){return F().body},[]);
return _.W("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.W(_.a,{cond:function(){return Q().length>0||V()},
then:function(){return _.W("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.W("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.W(_.uC,{data:Q},{containerLayoutViewModel:function(t){return _.W("div",{class:"ytPdpCardSectionViewModelContentItem"},_.W(ku,{data:t.data}))},
styledTextViewModel:function(t){return _.W("div",{class:"ytPdpCardSectionViewModelContentItem"},_.W(c3M,{data:t.data}))}})),_.W(_.a,{cond:V,
then:function(){return _.W("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.W(_.TQ,{checked:J,name:z,onChange:function(){b(F().onSelect)}}))}}))}}),_.W(_.a,{cond:function(){return E().length>0},
then:function(){return _.W("div",null,_.W(_.uC,{data:E},{containerLayoutViewModel:function(t){return _.W("div",{class:"ytPdpCardSectionViewModelContentItem"},_.W(ku,{data:t.data}))}}))}}))},"rh");
eRV.idomCompat=!0;var dVd=_.d(function(C){var F=C.data;var G=C.stateFns;return _.W("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.W(_.a,{cond:function(){return F().banner},
then:function(V){return _.W("div",{class:"ytPdpCardViewModelBanner"},_.W(_.mn,{text:V}))}}),_.W(_.uC,{data:function(){return F().sections}},{pdpCardSectionViewModel:function(V){V=V.data;
var J={};return _.W("div",{class:_.py("ytPdpCardViewModelSectionContainer",(J.ytPdpCardViewModelShowDividers=function(){return F().showDividers},J))},_.W(eRV,{data:V,
stateFns:G}))}}))},"sh");
dVd.idomCompat=!0;var xVl=_.d(function(C){var F=C.data;var G=C.isOverlay;C={};return _.W("pdp-masthead-view-model",{class:_.py("ytPdpMastheadViewModelHost",(C.ytPdpMastheadViewModelIsOverlay=G,C))},_.W(_.uC,{data:function(){return F().image}},{contentPreviewImageViewModel:_.tZ,
themedImageViewModel:function(V){return _.W(A38,{data:V.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.W(_.a,{cond:function(){return F().title},
then:function(V){return _.W("h1",{class:"ytPdpMastheadViewModelHeading"},_.W(_.mn,{text:V,isOverlay:G}))}}),_.W(_.Ag,{each:function(){var V;
return(V=F().finePrint)!=null?V:[]}},function(V){return _.W("div",{class:"ytPdpMastheadViewModelFinePrint"},_.W(_.mn,{text:V,
isOverlay:G}))}))},"th");
xVl.idomCompat=!0;var sQx=_.d(function(C){var F=C.data;var G=C.stateFns;var V=function(){return"pdp-pricing-group-selector-"+F().pricingGroupAttributeIds},J=_.dk(function(){return F().pricingGroupSelectorSectionHeader});
return _.W("pdp-pricing-group-selector-view-model",null,_.W(_.a,{cond:function(){return!!J()},
then:function(){return _.W(_.uC,{data:J},{sectionHeaderViewModel:function(b){b=b.data;var z={};return _.W("div",{class:_.py("ytPdpPricingGroupSelectorViewModelSectionHeader",(z.ytPdpPricingGroupSelectorViewModelFullBleed=!0,z.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,z))},_.W(_.Xa,{data:b}))}})}}),_.W("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.W(_.Ag,{each:function(){var b=G().getSelectedProductByGroupId(F().groupId);
if(!b)return _.R1(Error("Yj`"+F().groupId)),[];var z,Q=(z=F().pricingGroupAttributeIds)!=null?z:[],E;if((E=b.pricingGroups)==null||!E.length||!Q.length)return[];z=b.pricingGroups.filter(function(H){return Q.length?H.pricingGroupAttributes.every(function(l){return Q.includes(l)}):!1});
b=[];if(Q.length>0){z=[].concat(_.da(z));E=_.u(Q);for(var t=E.next(),k={};!t.done;k={targetAttrId:void 0},t=E.next())k.targetAttrId=t.value,t=z.findIndex(function(H){return function(l){return l.pricingGroupAttributes.includes(H.targetAttrId)}}(k)),t!==-1&&(b.push(z[t]),z.splice(t,1))}var U=G().getSelectedPricingGroupAttributesByGroupId(F().groupId);
return b.map(function(H){var l=!1;U&&H.pricingGroupAttributes&&(l=c5(H.pricingGroupAttributes,U));return{pricingGroup:H,isSelected:l}})},
keyBy:function(b){return b.pricingGroup.pricingGroupId}},function(b){return _.W("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.W("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.W(_.uC,{data:function(){return b().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:ku})),_.W("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.W(_.TQ,{checked:function(){return b().isSelected},
name:V,onClick:function(){var z=b().pricingGroup;G().onPricingGroupSelected(z.pricingGroupId);if(z=_.ZD(z.onSelectPricingGroup)){var Q;(Q=_.I8().resolve(_.WD))==null||Q.resolveCommand(z)}}})))})))},"uh");
sQx.idomCompat=!0;var qZt=_.d(function(C){var F=C.data;var G=C.stateFns;var V=function(){var z=G().getSelectedPricingOptions().map(function(t){return t.pricingOptionId}),Q=G().getSelectedProductByGroupId(F().groupId);
if(!Q)return _.R1(Error("Zj`"+F().groupId)),[];var E=G().getSelectedPricingGroupAttributesByGroupId(F().groupId);return wvM(Q.pricingOptions,E,z)},J=_.dk(function(){return F().pricingOptionSelectorSectionHeader}),b=function(){return V().length>1};
return _.W("pdp-pricing-option-selector-view-model",null,_.W(_.a,{cond:function(){return!!J()&&b()},
then:function(){return _.W(_.uC,{data:J},{sectionHeaderViewModel:function(z){z=z.data;var Q={};return _.W("div",{class:_.py("ytPdpPricingOptionSelectorViewModelSectionHeader",(Q.ytPdpPricingOptionSelectorViewModelFullBleed=!0,Q.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,Q))},_.W(_.Xa,{data:z}))}})}}),_.W(_.a,{cond:b,
then:function(){return _.W("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.W(_.Ag,{each:V,keyBy:"INDEX"},function(z){return _.W("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.W("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.W(_.uC,{data:function(){return z().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:ku})),_.W("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.W(_.TQ,{checked:function(){return z().isSelected},
onClick:function(){G().onPricingOptionSelected(z().pricingOption.pricingOptionId);var Q=z().pricingOption.onSelectPricingOption;if(Q=_.ZD(Q)){var E;(E=_.I8().resolve(_.WD))==null||E.resolveCommand(Q)}}})))}))}}))},"vh");
qZt.idomCompat=!0;var PQW=_.d(function(C){var F=C.data;var G=C.stateFns;return _.W("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.W(_.uC,{data:function(){var V,J;return(J=(V=G().getSelectedPricingOptions()[0])==null?void 0:V.primaryButton)!=null?J:F().emptyStateButton}},{buttonViewModel:_.tS}))},"wh");
PQW.idomCompat=!0;var gBW=_.d(function(C){var F=C.stateFns;return _.W("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.W(_.uC,{data:function(){return F().getSelectedPricingOptions().flatMap(function(G){return G.summaryLines}).filter(function(G){return!!G})}},{containerLayoutViewModel:function(G){return _.W("div",{class:"ytPdpSummaryViewModelLineItem"},_.W(ku,{data:G.data}))}}))},"xh");
gBW.idomCompat=!0;var RRW=_.d(function(C){function F(f){var c=z();_.er(_.kZ("pdpStateEntity",c,{key:c,selectedPricingOptions:f}))}
var G=C.data;var V=C.internalScrolling;var J=C.stateFnsForTesting;var b=_.dk(function(){return G().allProducts},[]),z=_.dk(function(){return G().pdpStateEntityKey},""),Q=_.$b(MWr,z),E=_.w0(function(){_.g0(!0);
var f;return(f=J==null?void 0:J())!=null?f:LOU(Q,b,F)},void 0,"ryrrHe"),t=_.dk(function(){return G().body},[]),k=_.dk(function(){return G().columnBreakHints},[]),U=function(){return G().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},H=function(){return U()||G().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},l=_.w0(function(){var f=_.Mh(G().background),c;
if(f==null?0:(c=f.sources)==null?0:c.length){var A=A===void 0?!0:A;f=_.$6S(void 0,f.sources,void 0,A,A?1E3:void 0,A?void 0:1E3)}else f=null;return f},void 0,"UVFJic");
C=_.VA({"--pdp-view-model-background":function(){return l()?"url("+l()+")":void 0}});
var N={};V=_.py("ytPdpViewModelHost",(N.ytPdpViewModelHasBackground=function(){return H()||!!l()},N.ytPdpViewModelHasDarkBackground=H,N.ytPdpViewModelHasScrim=U,N.ytPdpViewModelInternalScrolling=_.dk(V,!1),N));
var S=function(f){var c={};return _.py("ytPdpViewModelItem",(c.ytPdpViewModelFullBleed=function(){return BR3(f())==="dividerViewModel"||BR3(f())==="sectionHeaderViewModel"},c.ytPdpViewModelNoVerticalPadding=function(){return BR3(f())==="sectionHeaderViewModel"},c))};
_.q4(function(){var f=G().onStartCommand;if(f&&(f=_.ZD(f))){var c;(c=_.I8().resolve(_.WD))==null||c.resolveCommand(f)}});
return _.W("pdp-view-model",{class:V,style:C},_.W("div",{class:"ytPdpViewModelColumnContainer"},_.W(_.Ag,{each:function(){return vyx(t(),k())},
keyBy:"INDEX"},function(f){return _.W("div",{class:"ytPdpViewModelColumn"},_.W(_.uC,{data:f},{containerLayoutViewModel:function(c,A){c=c.data;return _.W("div",{class:S(function(){return f()[A()]})},_.W(ku,{data:c}))},
dividerViewModel:function(c,A){c=c.data;return _.W("div",{class:S(function(){return f()[A()]})},_.W(_.ekP,{data:c}))},
pdpCardViewModel:function(c,A){c=c.data;return _.W("div",{class:S(function(){return f()[A()]})},_.W(dVd,{data:c,
stateFns:E}))},
pdpMastheadViewModel:function(c,A){c=c.data;return _.W("div",{class:S(function(){return f()[A()]})},_.W(xVl,{data:c,
isOverlay:H}))},
pdpPricingGroupSelectorViewModel:function(c,A){c=c.data;return _.W("div",{class:S(function(){return f()[A()]})},_.W(sQx,{data:c,
stateFns:E}))},
pdpPricingOptionSelectorViewModel:function(c,A){c=c.data;return _.W("div",{class:S(function(){return f()[A()]})},_.W(qZt,{data:c,
stateFns:E}))},
pdpPrimaryButtonViewModel:function(c,A){c=c.data;return _.W("div",{class:S(function(){return f()[A()]})},_.W(PQW,{data:c,
stateFns:E}))},
pdpSummaryViewModel:function(c,A){c=c.data;return _.W("div",{class:S(function(){return f()[A()]})},_.W(gBW,{data:c,
stateFns:E}))},
sectionHeaderViewModel:function(c,A){c=c.data;return _.W("div",{class:S(function(){return f()[A()]})},_.W(_.Xa,{data:c}))}}))})))},"yh");
RRW.idomCompat=!0;_.gQ(RRW,"pdp-view-model",{props:{data:_.CJ,stateFnsForTesting:_.s9,internalScrolling:_.s9}});var YZr=_.d(function(C){var F=C.data;var G=C.className;var V=_.$b(_.cx,function(){return F().flowStateEntityKey});
return _.W("ytm-premium-purchase-button-renderer",{class:_.py("ytPremiumPurchaseButtonRendererHost",G)},_.W(_.uC,{data:function(){var J;return(J=_.Z(V(),hsr))==null?void 0:J.primaryButtonOverride}},{buttonRenderer:function(J){return _.W(_.JZ,{data:J.data,
className:G})},
buttonViewModel:function(J){return _.W(_.tS,{data:J.data,className:G})}}))},"zh");
YZr.idomCompat=!0;var Thl=_.d(function(C){var F=C.data;C=C.className;var G=function(){return feh(F().style)},V=_.py("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",G),J=_.py("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",G);
return _.W("yt-flow-bottom-bar-renderer",{class:_.py("yt-flow-bottom-bar-renderer",C,G)},_.W(_.uC,{data:function(){return F().secondaryButton}},{buttonRenderer:function(b){return _.W(_.JZ,{data:b.data,
className:J})},
buttonViewModel:function(b){return _.W(_.tS,{data:b.data,className:J})},
premiumPurchaseButtonRenderer:function(b){return _.W(YZr,{data:b.data,className:J})}}),_.W(_.uC,{data:function(){return F().primaryButton}},{buttonRenderer:function(b){return _.W(_.JZ,{data:b.data,
className:V})},
buttonViewModel:function(b){return _.W(_.tS,{data:b.data,className:V})},
premiumPurchaseButtonRenderer:function(b){return _.W(YZr,{data:b.data,className:V})}}))},"Ah");
Thl.idomCompat=!0;_.gQ(Thl,"yt-flow-bottom-bar-renderer",{props:{data:_.CJ,className:_.CJ}});var oBW=_.d(function(C){var F=_.py(C.className,"ytOfferSummaryRendererHost");return _.W("yt-offer-summary-renderer",{class:F},_.W("div",{class:"ytOfferSummaryRendererTextContainer"},_.W("div",{class:"ytOfferSummaryRendererEyebrowText"},_.W(_.mn,{text:function(){return C.data().eyebrowText}})),_.W("div",{class:"ytOfferSummaryRendererTitle"},_.W(_.mn,{text:function(){return C.data().title}})),_.W("div",{class:"ytOfferSummaryRendererSubtitle"},_.W(_.mn,{text:function(){return C.data().subtitle}})),_.W("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.W(_.Ag,{each:function(){var G;
return(G=C.data().featureListData)!=null?G:[]}},function(G){var V;
return _.W("div",{class:"ytOfferSummaryRendererFeatureList"},_.W(_.i5,{icon:(V=G.icon)==null?void 0:V.iconType,active:function(){return G.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(G.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.W("div",{class:"ytOfferSummaryRendererFeatureListText"},_.W(_.mn,{text:G.text,
className:function(){return G.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.W("div",{class:"ytOfferSummaryRendererDescription"},_.W(_.mn,{text:function(){return C.data().description}}))))},"Bh");_.gQ(_.d(function(C){var F={};F=_.py("ytOfferSummaryFlowStepRendererHost",(F.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=C.shouldDisableHeaderTopMargin,F));return _.W("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:F},_.W("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.W("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.W(_.mn,{text:function(){return C.data().header}})),_.W("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.W(_.mn,{text:function(){return C.data().subtitle}}))),_.W("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.W(_.uC,{data:function(){return C.data().offerSummary}},{offerSummaryRenderer:function(G){return _.W(oBW,{data:G.data,
className:C.flowClassName})}})))},"Ch"),"yt-offer-summary-flow-step-renderer",{props:{data:_.s9,
flowClassName:_.s9,flowStateEntityKey:_.s9,shouldDisableHeaderTopMargin:_.s9}});var r3V=_.d(function(C){var F=C.data;var G=C.className;var V=C.flowStateEntityKey;var J=C.selectionStepStyle;C=_.CZ(function(E){var t=F(),k=V==null?void 0:V();E.target&&(E.stopPropagation(),E=k||"",k=_.cx(_.Av().getState(),E),t=Object.assign({},k,{premiumPurchaseFlowState:{selectedOptionId:t.optionId,primaryButtonOverride:t.primaryButtonOverride}}),_.Av().dispatch(_.z3("flowStateEntity",E,t)));return!1});
var b=function(){return(V==null?void 0:V())||""},z=_.$b(_.cx,b);
_.q4(function(){var E=F(),t=b(),k=z();E.defaultSelected&&t!==""&&E.primaryButtonOverride&&ctV(E.optionId||"",t,E.primaryButtonOverride,k)});
var Q={};return _.W("ytm-option-item-renderer",{"on:click":C,class:_.py(G,"ytm-option-item-renderer",(Q["ytm-option-item-renderer--lp2-style"]=function(){return(J==null?void 0:J())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},Q))},_.W("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.W("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var E=F(),t=b(),k=z();k=_.Z(k,hsr);return(k?(k==null?void 0:k.selectedOptionId)||"":E.defaultSelected&&t!==""?(E==null?void 0:E.optionId)||"":"")===F().optionId},
name:("input"+_.ve(_.Y1)).toString()})),_.W("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.W(_.uC,{data:function(){return F().titleBadge}},{badgeViewModel:function(E){return _.W(_.WI,{data:E.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.W(_.a,{cond:function(){return F().eyebrowText},
then:function(){return _.W("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.W(_.mn,{text:function(){return F().eyebrowText}}))}}),_.W("div",{class:"ytm-option-item-renderer__option-item-title"},_.W(_.mn,{text:function(){return F().title}})),_.W("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.W(_.mn,{text:function(){return F().subtitle}})),_.W(_.a,{cond:function(){return F().featureListData},
then:function(){return _.W("div",{class:"ytm-option-item-renderer__feature-list-data"},_.W(_.Ag,{each:function(){return F().featureListData||[]}},function(E){var t,k=(t=E.icon)==null?void 0:t.iconType;
a:switch(E.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":t="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":t="ytm-option-item-renderer__feature-list-icon-small";break a;default:t="ytm-option-item-renderer__feature-list-icon-default"}return _.W("div",{class:"ytm-option-item-renderer__feature-list"},_.W(_.i5,{icon:k,className:t,active:function(){return E.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.W("div",{class:"ytm-option-item-renderer__feature-list-text"},_.W(_.mn,{text:E.text,
className:function(){return E.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.W("div",{class:"ytm-option-item-renderer__option-item-description"},_.W(_.mn,{text:function(){return F().description}}))))},"Dh");var KyW=_.d(function(C){var F=C.data;var G=C.flowClassName;var V=C.flowStateEntityKey;var J=C.selectionStepStyle;return _.W("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.W("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.W("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.W(_.mn,{text:function(){return F().title}}),_.W(_.uC,{data:function(){return F().titleBadge}},{badgeViewModel:function(b){return _.W(_.WI,{data:b.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.W(_.a,{cond:function(){return F().subtitle},
then:function(){return _.W("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.W(_.mn,{text:function(){return F().subtitle}}))}}),_.W(_.a,{cond:function(){return F().featureListData},
then:function(b){return _.W("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.W(_.Ag,{each:b},function(z){var Q;return _.W("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.W(_.i5,{icon:(Q=z.icon)==null?void 0:Q.iconType,active:function(){return z.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(z.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconSmall";default:return"ytOptionSectionRendererOptionSectionFeatureItemIconDefault"}}}),_.W("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.W(_.mn,{text:z.text,
className:function(){return z.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.W(_.a,{cond:function(){return F().secondaryTitle},
then:function(){return _.W("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.W(_.mn,{text:function(){return F().secondaryTitle}}))}}),_.W(_.Ag,{each:function(){return F().sectionDisclaimers||[]}},function(b){return _.W("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.W(_.mn,{text:b}))})),_.W(_.uC,{data:function(){return F().optionItems}},{optionItemRenderer:function(b){return _.W("div",{class:"ytOptionSectionRendererOptionItem"},_.W(r3V,{data:b.data,
className:G,flowStateEntityKey:V,selectionStepStyle:J}))}}),_.W(_.a,{cond:function(){return F().offerText},
then:function(){return _.W("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.W(_.mn,{text:function(){return F().offerText}}))}}))},"Eh");
KyW.idomCompat=!0;var DV3=_.d(function(C){var F=C.data;var G=C.flowClassName;var V=C.flowStateEntityKey;C=C.isDesktop;var J=_.Jt("div"),b=function(){var k;return(k=F().flowStateEntityKey)!=null?k:V==null?void 0:V()},z=function(){return(b==null?void 0:b())||""},Q=function(){return F().style},E=_.$b(_.cx,z);
_.q4(function(){Atx(F(),z(),E());setTimeout(function(){var k;(k=J.value)==null||k.focus()})});
var t={};return _.W("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.py("ytm-option-selection-flow-step-renderer",(t["ytm-option-selection-flow-step-renderer--desktop"]=C,t["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return F().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},t))},_.W("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"},
_.W("div",{el:J,
tabindex:-1,role:"heading","aria-level":1,class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.W(_.mn,{text:function(){return F().header}})),_.W("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.W(_.mn,{text:function(){return F().subtitle}}))),_.W(_.uC,{data:function(){return F().optionItems||[]}},{optionItemRenderer:function(k){return _.W("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.W(r3V,{data:k.data,
className:G,flowStateEntityKey:b,selectionStepStyle:Q}))},
optionSectionRenderer:function(k){return _.W("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.W(KyW,{data:k.data,flowClassName:G,flowStateEntityKey:b,selectionStepStyle:Q}))}}))},"Fh");
DV3.idomCompat=!0;_.gQ(DV3,"yt-option-selection-flow-step-renderer",{props:{data:_.CJ,flowClassName:_.CJ,flowStateEntityKey:_.CJ,isDesktop:_.CJ}});_.Uy=_.d(function(C){var F=_.xz(C,{type:1,disablePadding:!1,disablePrimaryButton:!1}),G=F.data,V=F.type;C=F.disablePadding;var J=F.disablePrimaryButton,b=F.onClickPrimaryButton,z=function(){return G().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},Q=function(){return{disabled:J(),
state:J()?"disabled":"active"}},E=function(){return G().leadingLabel||G().trailingLabel};
F={};return _.W("yt-panel-footer-view-model",{class:_.py("yt-panel-footer-view-model",(F["yt-panel-footer-view-model--hide-divider"]=function(){return G().shouldHideDivider},F["yt-panel-footer-view-model--disable-padding"]=C,F))},_.W(_.a,{cond:E,
then:function(){var t={},k={};return _.W("div",{class:_.py("yt-panel-footer-view-model__text-row",(t["yt-panel-footer-view-model--row-bottom-padding"]=function(){var U=G();return!(!U.leadingLabel&&!U.trailingLabel||!U.primaryButton&&!U.secondaryButton)},t))},_.W(_.mn,{text:function(){return G().leadingLabel},
className:_.py((k["yt-panel-footer-view-model--text-padding"]=E,k))}),_.W(_.mn,{text:function(){return G().trailingLabel}}))}}),_.W(_.a,{cond:z,
then:function(){var t={};return _.W("div",{class:"yt-panel-footer-view-model__button-stack"},_.W("div",{class:_.py("yt-panel-footer-view-model__primary-button",(t["yt-panel-footer-view-model__button-stack--top-button"]=function(){return G().secondaryButton},t))},_.W(_.uC,{data:function(){return G().primaryButton}},{buttonViewModel:function(k){return _.W(_.tS,{data:k.data,
buttonOverrides:Q,onClick:b})}})),_.W(_.uC,{data:function(){return G().secondaryButton}},{buttonViewModel:_.tS}))}}),_.W(_.a,{cond:function(){return!z()},
then:function(){var t={},k={},U={};return _.W("div",{class:_.py("yt-panel-footer-view-model__button-row",(t["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===V()},t))},_.W("div",{class:_.py("yt-panel-footer-view-model__button-row--left-button",(k["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===V()},k["yt-panel-footer-view-model__button-row--hidden"]=function(){return!G().secondaryButton||0===V()},k["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===V()},k))},_.W(_.uC,{data:function(){return G().secondaryButton}},{buttonViewModel:_.tS})),_.W("div",{class:_.py("yt-panel-footer-view-model__primary-button",(U["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===V()||1===V()},U["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===V()},U))},_.W(_.uC,{data:function(){return G().primaryButton}},{buttonViewModel:function(H){return _.W(_.tS,{data:H.data,
buttonOverrides:Q,onClick:b})}})))}}))},"Gh");
_.Uy.idomCompat=!0;_.pAt=_.d(function(C){C=_.xz(C,{disablePadding:!1});var F=C.data,G=C.disablePadding;C=_.nQB(function(){return F().formId});
var V=C.submitForm,J=C.isValid,b=C.isSubmitting;return _.W("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.W(_.uC,{data:function(){return F().panelFooter}},{panelFooterViewModel:function(z){return _.W(_.Uy,{data:z.data,
onClickPrimaryButton:function(){V()},
disablePrimaryButton:function(){return!J()||b()},
disablePadding:G})}}))},"Hh");_.gQ(_.pAt,"yt-form-footer-view-model",{props:{data:_.CJ,disablePadding:_.CJ}});var mVd=_.d(function(C){var F=_.y("enable_user_rating_web");return _.W("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.W("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.W(_.a,{cond:function(){var G;return(G=C.data())==null?void 0:G.image},
then:function(G){return _.W(_.AC,{data:G,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.W("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.W(_.mn,{text:function(){var G;
return(G=C.data())==null?void 0:G.title}})),_.W("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.W(_.mn,{text:function(){var G;
return(G=C.data())==null?void 0:G.subtitle}})),_.W(_.a,{cond:function(){return!F},
then:function(){return _.W(_.uC,{data:function(){var G;return(G=C.data())==null?void 0:G.viewTipsButton}},{buttonViewModel:function(G){return _.W(_.tS,{data:G.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"Ih");_.gQ(mVd,"yt-contributor-zero-state-view-model",{props:{data:_.CJ}});var CKU=_.d(function(C){var F=function(){var G;return(G=C.data())==null?void 0:G.image};
return _.W("yt-featured-content-item-view-model",{class:_.py("ytFeaturedContentItemViewModelHost")},_.W("div",{class:_.py(function(){return F()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.W("div",{class:function(){return F()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.W(_.a,{cond:F,
then:function(){return _.W("div",{class:"ytFeaturedContentItemViewModelImage"},_.W(_.uC,{data:function(){return C.data().image}},{themedImageViewModel:function(G){return _.W(A38,{data:G.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.W(_.a,{cond:function(){var G;
return!F()&&((G=C.data())==null?void 0:G.iconName)},
then:function(){return _.W("div",{class:"ytFeaturedContentItemViewModelIcon"},_.W(_.i5,{icon:function(){return C.data().iconName}}))}}),_.W("div",{class:"ytFeaturedContentItemViewModelContent"},_.W(_.a,{cond:function(){var G;
return(G=C.data())==null?void 0:G.title},
then:function(){return _.W("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.W(_.mn,{text:function(){return C.data().title}}))}}),_.W(_.a,{cond:function(){var G;
return(G=C.data())==null?void 0:G.body},
then:function(){return _.W("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.W(_.mn,{text:function(){return C.data().body}}))}})))))},"Jh");var jAd=_.d(function(C){var F=function(){var J;return es8((J=C.data())==null?void 0:J.titleFontSize)},G=function(){var J;
return dwt((J=C.data())==null?void 0:J.descriptionFontSize)},V=function(){var J;
return((J=C.data())==null?void 0:J.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.W("yt-landing-page-view-model",{class:_.py("ytLandingPageViewModelHost",C.className)},_.W("div",{class:"ytLandingPageViewModelHeader"},_.W(_.a,{cond:function(){var J;return(J=C.data())==null?void 0:J.bannerImage},
then:function(J){return _.W("div",{class:"ytLandingPageViewModelHeaderImage"},_.W(_.uC,{data:function(){return J()}},{imageBannerViewModel:function(b){return _.W(_.CF,{data:b.data,
isPositionRelative:!0})}}))}}),_.W(_.a,{cond:function(){var J;
return(J=C.data())==null?void 0:J.bannerAnimation},
then:function(J){return _.W(_.NQ,{data:function(){var b=J();if(b==null?0:b.url){var z;b={path:(z=b==null?void 0:b.url)!=null?z:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(b==null?0:b.payload){var Q;b={animationData:JSON.parse((Q=b==null?void 0:b.payload)!=null?Q:""),autoplay:!0,loop:!0,renderer:"svg"}}else b=void 0;return{animationConfig:b}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.W("div",{class:"ytLandingPageViewModelHeaderTitle"},_.W(_.a,{cond:function(){var J;
return(J=C.data())==null?void 0:J.title},
then:function(J){return _.W("div",{class:_.py("ytLandingPageViewModelHeaderTitleContent",F)},_.W(_.mn,{text:function(){return J()}}))}}),_.W(_.a,{cond:function(){var J;
return(J=C.data())==null?void 0:J.description},
then:function(J){var b={};return _.W(_.mn,{className:_.py("ytLandingPageViewModelHeaderTitleDescription",G,(b.ytLandingPageViewModelHeaderTitleDescriptionMargin=V,b)),text:function(){return J()}})}}))),_.W(_.a,{cond:function(){var J,b;
return(J=C.data())==null?void 0:(b=J.featuredContentList)==null?void 0:b.length},
then:function(){return _.W("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.W(_.uC,{data:function(){return C.data().featuredContentList}},{featuredContentItemViewModel:function(J){return _.W(CKU,{data:J.data})}}))}}),_.W(_.a,{cond:function(){var J,b;
return(J=C.data())==null?void 0:(b=J.expandableContentList)==null?void 0:b.length},
then:function(){return _.W("div",{class:"ytLandingPageViewModelFaqSection"},_.W(_.uC,{data:function(){return C.data().expandableContentList}},{faqEntryViewModel:function(J){return _.W("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.W(_.U2o,{data:J.data}))}}))}}),_.W("div",{class:"ytLandingPageViewModelFooter"},_.W(_.a,{cond:function(){var J;
return(J=C.data())==null?void 0:J.legalCopy},
then:function(J){return _.W("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.W(_.mn,{text:function(){return J()}}))}}),_.W(_.a,{cond:function(){var J;
return(J=C.data())==null?void 0:J.actions},
then:function(J){return _.W("div",null,_.W(_.uC,{data:function(){return J()}},{flexibleActionsViewModel:function(b){return _.W(_.YW,{data:b.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"Kh");_.gQ(_.d(function(C){return _.W("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.W("div",{class:"ytLpSectionGroupViewModelContainer"},_.W(_.uC,{data:function(){return C.data().sections}},{landingPageViewModel:function(F){return _.W(jAd,{data:F.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"Lh"),"yt-lp-section-group-view-model",{props:{data:_.CJ}});var FDh=_.d(function(C){var F=C.data;var G=C.selectedKey;var V=C.onSelected;var J=C.groupName;var b=function(){return F().text},z=function(){return F().attributedText},Q=function(){return F().subtext},E=function(){return F().attributedSubtext},t=_.W("div",{class:"ytRadioButtonItemViewModelLabel"},_.W(_.a,{cond:b,
then:function(){return _.W("div",null,b)}}),_.W(_.a,{cond:z,
then:function(){return _.W(_.mn,{text:z})}}),_.W(_.a,{cond:Q,
then:function(){return _.W("div",{class:"ytRadioButtonItemViewModelSubText"},Q)}}),_.W(_.a,{cond:E,
then:function(){return _.W("div",{class:"ytRadioButtonItemViewModelSubText"},_.W(_.mn,{text:E}))}})),k=function(){if(z()){var H;
return(H=z())==null?void 0:H.content}return b()},U=function(){if(E()){var H;
return(H=E())==null?void 0:H.content}return Q()};
C={};return _.W("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.W(_.TQ,{name:J,checked:function(){return!(G==null||!G()||F().key!==(G==null?void 0:G()))},
onChange:function(H){V==null||V(H.target,F(),J==null?void 0:J())},
labelRenderable:function(){return t},
ariaLabel:function(){return U()?k()+", "+U():k()},
className:_.py((C.ytRadioButtonItemViewModelSubTitle=function(){return!!F().subtext},C))}))},"Mh");_.GcL=_.d(function(C){var F=C.data;var G=function(){var V;return _.Hl((V=F())==null?void 0:V.rendererContext)};
C={};return _.W("content-list-item-view-model",{el:_.dQ(_.lC(function(){return F().rendererContext})),
class:_.py("ytContentListItemViewModelHost",(C.ytContentListItemViewModelTappable=G,C)),role:function(){return G()?"listitem":void 0},
tabindex:function(){return G()?0:void 0}},_.W("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.W("div",{class:"ytContentListItemViewModelImageContainer"},_.W(_.a,{cond:function(){return F().image},
then:function(V){return _.W(_.AC,{data:V,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.W(_.uC,{data:function(){var V;
return(V=F())==null?void 0:V.avatar}},{avatarViewModel:_.g$})),_.W("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.W("div",{class:_.py("ytContentListItemViewModelTitle",function(){a:{switch(F().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var V="ytContentListItemViewModelProminentTitle";
break a}V=void 0}return V})},_.W(_.mn,{text:function(){return F().title}})),_.W("div",{class:"ytContentListItemViewModelMetadata"},_.W(_.uC,{data:function(){return F().metadata}},{contentMetadataViewModel:function(V){return _.W(_.kV,{data:V.data,
layout:1})}})))),_.W("div",{class:"ytContentListItemViewModelActionButton"},_.W(_.uC,{data:function(){var V;
return(V=F())==null?void 0:V.actionButton}},{buttonViewModel:_.tS,
toggleButtonViewModel:_.AS})))},"Nh");var VNV=_.d(function(C){var F=C.data,G=function(){var J;return(J=F())==null?void 0:J.description},V=function(){var J;
return(J=F())==null?void 0:J.title};
return _.W("ytfc-youth-basic-section-header-view-model",{class:_.py("ytfcYouthBasicSectionHeaderViewModelHost",C.className)},_.W("div",{class:"ytfcYouthBasicSectionHeaderViewModelLeading"},_.W(_.uC,{data:function(){var J;return(J=F())==null?void 0:J.avatar}},{avatarViewModel:_.g$}),_.W(_.a,{cond:function(){var J;
return _.Mh((J=F())==null?void 0:J.themedImage)},
then:function(J){return _.W(_.AC,{data:J,alt:function(){var b,z;return(z=(b=V())==null?void 0:b.content)!=null?z:""},
className:"ytfcYouthBasicSectionHeaderViewModelImage"})}})),_.W("div",{class:"ytfcYouthBasicSectionHeaderViewModelDetails"},_.W(_.a,{cond:V,
then:function(){return _.W(_.mn,{text:V,className:"ytfcYouthBasicSectionHeaderViewModelTitle"})}}),_.W("div",{class:"ytfcYouthBasicSectionHeaderViewModelMetadata"},_.W(_.uC,{data:function(){var J;
return(J=F())==null?void 0:J.bottomBadge}},{badgeViewModel:function(J){return _.W("div",{class:"ytfcYouthBasicSectionHeaderViewModelBadge"},_.W(_.WI,{data:J.data}))}}),_.W(_.a,{cond:G,
then:function(){return _.W(_.mn,{text:G,className:"ytfcYouthBasicSectionHeaderViewModelDescription"})}}))))},"Oh");var i7L=_.d(function(C){var F=C.data;return _.W("ytfc-youth-section-body-view-model",{class:_.py("ytfcYouthSectionBodyViewModelHost",C.className)},_.W(_.uC,{data:function(){var G;return(G=F())==null?void 0:G.topContent}},{avatarStackViewModel:function(G){return _.W(_.Y9,{data:G.data,
className:"ytfcYouthSectionBodyViewModelAvatarStack"})}}),_.W(_.mn,{text:function(){var G;
return(G=F())==null?void 0:G.description},
className:"ytfcYouthSectionBodyViewModelDescription"}))},"Ph");var J4W=_.d(function(C){var F=_.u(_.yH(!1,void 0,"i2FDU")),G=F.next().value,V=F.next().value,J=function(){return C.data().inlineExpansionEntityKey},b=_.$b(C9s,J),z=function(){if(C.isSelected!==void 0)return C.isSelected();
if(J()){var E;return(E=b())==null?void 0:E.expanded}return G()};
F={};var Q={};return _.W("yt-inline-expander-view-model",{class:"ytInlineExpanderViewModelHost","on:click":_.CZ(function(){C.isSelected!==void 0||J()||V(!G())})},_.W("div",{class:"ytInlineExpanderViewModelHeader"},_.W(_.uC,{data:function(){return C.data().headerContent}},{youthBasicSectionHeaderViewModel:VNV}),_.W("div",{class:_.py("ytInlineExpanderViewModelButton",(F.ytInlineExpanderViewModelButtonExpanded=z,F))},_.W(_.Wn,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",toggleable:!0,toggled:z(),accessibilityLabel:z()?_.iQ("SHOW_LESS",void 0,"Show Less"):_.iQ("SHOW_MORE",void 0,"Show More")}},
iconName:"chevron_down"}))),_.W("div",{class:_.py("ytInlineExpanderViewModelBody",(Q.ytInlineExpanderViewModelBodyExpanded=z,Q)),"aria-hidden":function(){return!z()}},_.W("div",{class:"ytInlineExpanderViewModelBodyContent"},_.W(_.uC,{data:function(){return C.data().bodyContent}},{youthSectionBodyViewModel:i7L}))))},"Qh");var $Wr=new _.jh("CONTENT_SECTION_VIEW_MODEL_TOKEN");_.b73=_.d(function(C){var F=function(){return C.data().background},G=function(){return C.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},V=function(){return C.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"},J=_.I8().resolve(_.Qt($Wr));
return _.W("yt-card-view-model",{el:_.dQ(_.lC(function(){return C.data().rendererContext})),
class:_.py("ytCardViewModelHost",C.className)},_.W(_.UG,{contentId:function(){return C.data().contentId}},function(){var b={};
return _.W("div",{class:_.py("ytCardViewModelCardViewModelInner",function(){var z;return xw_(C.data().cardStyle,(z=C.isSelected)==null?void 0:z.call(C))},function(){if(C.isSelected===void 0){var z;
a:{switch((z=C.data().cardState)==null?void 0:z.selectionState){case "CARD_SELECTION_STATE_SELECTED":z="ytCardViewModelSelected";break a}z=void 0}return z}})},_.W(_.uC,{data:F},{cinematicContainerViewModel:function(z){return _.W(_.f1$,{data:z.data})}}),_.W("div",{class:"ytCardViewModelContentWrapper"},_.W(_.a,{cond:function(){return!G()},
then:function(){var z={},Q={};return _.W("div",{class:"ytCardViewModelTopContentContainer"},_.W("div",{class:_.py("ytCardViewModelTopContent",(z.ytCardViewModelInnerPadding=function(){return!C.data().disableTopContentPadding&&C.data().topContent},z))},_.W(_.uC,{data:function(){return C.data().topContent}},{contentListItemViewModel:function(E){return _.W(_.GcL,{data:E.data})},
linearLayoutViewModel:_.Kw})),_.W("div",{class:_.py("ytCardViewModelInlineTrailingAction",(Q.ytCardViewModelInlineCenterTrailingAction=V,Q.ytCardViewModelInlineTrailingActionMargin=function(){return C.data().trailingAction},Q))},_.W(_.uC,{data:function(){return C.data().trailingAction}},{buttonViewModel:function(E){return _.W(_.tS,{data:E.data})}})))}}),_.W("div",{class:_.py((b.ytCardViewModelInnerPadding=function(){return!C.data().disableBodyContentPadding&&C.data().bodyContent},b))},_.W(_.uC,{data:function(){return C.data().bodyContent}},
Object.assign({},{channelAttributionViewModel:_.J5h,
contentListItemViewModel:_.GcL,descriptionPreviewViewModel:_.O2,inlineExpanderViewModel:function(z){return _.W(J4W,{data:z.data,isSelected:C.isSelected})},
linearLayoutViewModel:_.Kw,listItemViewModel:_.oi},J&&{contentSectionViewModel:J})))),_.W(_.a,{cond:function(){return G()},
then:function(){return _.W("div",{class:"ytCardViewModelOverlayTrailingAction"},_.W(_.uC,{data:function(){return C.data().trailingAction}},{buttonViewModel:function(z){return _.W(_.tS,{data:z.data})}}))}}))}))},"Rh");var n2r=_.d(function(C){var F=C.data,G=C.onSelected,V=C.selectedKey,J=C.groupName;C=C.className;var b=_.u(_.yH(!1,void 0,"mDtSad")),z=b.next().value,Q=b.next().value,E=function(){if(V!==void 0){var t=V();return!(!t||F().key!==t)}return z()};
b=_.CZ(function(t){G?G(t.currentTarget,F(),J==null?void 0:J()):Q(!z())});
return _.W("yt-selectable-item-view-model",{class:_.py("ytSelectableItemViewModelHost",C,"ytSelectableItemViewModelContainer"),"on:click":b,"prop:checked":E},_.W(_.uC,{data:function(){return F().content}},{cardViewModel:function(t){return _.W(_.b73,{data:t.data,
isSelected:E})}}))},"Sh");_.u0t=_.d(function(C){var F=C.data;var G=C.onSelected;var V=C.selectedKey;var J=C.groupName;var b=function(){return(J==null?void 0:J())||F().key};
return _.W("yt-radio-button-group-view-model",{class:_.py("ytRadioButtonGroupViewModelHost",C.className)},_.W("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.W(_.uC,{data:function(){return F().radioButtons}},{radioButtonItemViewModel:function(z){return _.W(FDh,{data:z.data,
onSelected:G,selectedKey:V,groupName:b})},
selectableItemViewModel:function(z){return _.W(n2r,{data:z.data,onSelected:G,selectedKey:V,groupName:b})}})))},"Th");var zOr=_.d(function(C){_.q4(function(){if(C.controlledMode()&&C.data().defaultSelected)_.gD(Error("$j"));else{var b;!C.controlledMode()&&((b=C.selected)==null?0:b.call(C))&&_.gD(Error("ak"))}});
var F=_.u(_.Gb(function(){if(!C.controlledMode())return C.data().defaultSelected})),G=F.next().value,V=F.next().value,J=function(){if(!C.controlledMode())return G();
var b;return(b=C.selected)==null?void 0:b.call(C)};
return _.W("yt-checkbox-item-view-model",{class:_.py("ytCheckboxItemViewModelHost",C.className)},_.W(_.oi,{data:function(){var b=C.data(),z=J();return{title:b.text,subtitle:b.subtext,superlabel:b.superlabel,isSelected:!!z,isDisabled:b.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!C.controlledMode()&&V(!G());var b,z;(z=C.onTap)==null||z.call(C,!!J(),C.data(),(b=C.groupName)==null?void 0:b.call(C))},
isCompact:C.isCompact}))},"Uh");var QAU=_.d(function(C){var F=C.data;var G=C.controlledMode;var V=C.selectedKeys;var J=C.onItemTap;var b=C.groupName;var z=function(){return(b==null?void 0:b())||F().key};
_.q4(function(){G()&&F().defaultSelectedKeys?_.gD(Error("bk")):!G()&&(V==null?0:V())&&_.gD(Error("ck"))});
C=_.u(_.Gb(function(){if(!G())return F().defaultSelectedKeys}));
var Q=C.next().value,E=C.next().value,t=function(k,U,H){k=[];!G()&&U.key&&(k=sxW(U.key,Q()||[]),E(k));J==null||J(U,k,H)};
return _.W("yt-checkbox-group-view-model",{class:_.py("ytCheckboxGroupViewModelHost")},_.W("fieldset",{class:_.py("ytCheckboxGroupViewModelFieldset")},_.W(_.uC,{data:function(){return F().checkboxes}},{checkboxItemViewModel:function(k){var U=k.data;
return _.W(zOr,{data:U,controlledMode:!0,selected:function(){var H=G()?(V==null?void 0:V())||[]:Q()||[],l=U().key;return l?H.includes(l):!1},
onTap:t,groupName:z})}})))},"Vh");var Ht=_.d(function(C){var F=_.$b(q8L,_.dk(function(){var Q;return(Q=C.data())==null?void 0:Q.noteFeedEntityKey},"")),G=_.$b(VWs,_.dk(function(){var Q;
return(Q=C.data())==null?void 0:Q.userRatingEntityKey},"")),V=_.y("enable_user_rating_web"),J=function(){var Q,E,t;
return((Q=F())==null?0:Q.contributorNote)?(E=F())==null?void 0:E.contributorNote:(t=C.data())==null?void 0:t.existingNote},b=function(){var Q,E;
return!!G()&&!!P9U((Q=G())==null?void 0:Q.helpfulnessValue,(E=C.data())==null?void 0:E.noteData)};
if(V){var z={};return _.W("yt-note-view-model",{class:_.py("ytNoteViewModelHostUserRating",(z.ytNoteViewModelHostUserRatingPublishedNote=function(){var Q,E,t,k;return((Q=C.data())==null?void 0:(E=Q.noteData)==null?void 0:E.isPublished)&&!((t=C.data())==null?0:(k=t.noteData)==null?0:k.isUserRatingForm)},z))},_.W("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.W("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.W(_.a,{cond:function(){var Q,E;
return(Q=C.data())==null?void 0:(E=Q.noteData)==null?void 0:E.isPinned},
then:function(){return _.W(_.i5,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.W(_.a,{cond:function(){var Q,E;return(Q=C.data())==null?void 0:(E=Q.noteData)==null?void 0:E.isPublished},
then:function(){return _.W(_.i5,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.W(_.uC,{data:function(){var Q;
return(Q=C.data())==null?void 0:Q.metadata}},{contentMetadataViewModel:_.kV}),_.W("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var Q,E;
return(E=_.Z((Q=C.data())==null?void 0:Q.metadata,_.bEu))==null?void 0:E.delimiter}),_.W(_.mn,{text:function(){var Q;
return(Q=J())==null?void 0:Q.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.W(_.a,{cond:function(){var Q,E;return!((Q=C.data())==null?0:(E=Q.noteData)==null?0:E.isUserRatingForm)},
then:function(){return _.W(_.uC,{data:function(){var Q,E,t,k,U,H,l,N=!!((Q=C.data())==null?0:(E=Q.noteData)==null?0:E.isPinned);Q=b();E=(t=C.data())==null?void 0:t.noteData;t=(k=F())==null?void 0:(U=k.contributorNote)==null?void 0:U.deleteAction;k=(H=C.data())==null?void 0:H.overflowButtonNoteWithRatingOnTapOverride;H=(l=C.data())==null?void 0:l.overflowButton;return N?gyr(E,t):Q?{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",
buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",onTap:k}}:H}},{buttonViewModel:function(Q){return _.W(_.tS,{data:Q.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.W("div",{class:"ytNoteViewModelNoteContent"},_.W(_.mn,{text:function(){var Q;
return(Q=J())==null?void 0:Q.text}})),_.W(_.a,{cond:function(){var Q,E,t,k;
return!((Q=C.data())==null?0:(E=Q.noteData)==null?0:E.isPinned)&&!((t=C.data())==null?0:(k=t.noteData)==null?0:k.isUserRatingForm)},
then:function(){return _.W(_.a,{cond:b,then:function(){return _.W("div",{class:"ytNoteViewModelUserRatingContainer"},_.W(_.mn,{text:function(){var Q,E;return P9U((Q=G())==null?void 0:Q.helpfulnessValue,(E=C.data())==null?void 0:E.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.W(_.uC,{data:function(){var Q;return(Q=C.data())==null?void 0:Q.userRatingButton}},{buttonViewModel:function(Q){return _.W(_.tS,{data:Q.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.W(_.a,{cond:function(){var Q,E,t,k;
return!((Q=C.data())==null?0:(E=Q.noteData)==null?0:E.ignoreDivider)&&!((t=C.data())==null?0:(k=t.noteData)==null?0:k.isUserRatingForm)},
then:function(){return _.W("div",{class:"ytNoteViewModelDivider"},_.W(_.uC,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(Q){return _.W(_.ekP,{data:Q.data})}}))}}))}return _.W("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.W("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.W("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.W(_.a,{cond:function(){var Q,E;return(Q=C.data())==null?void 0:(E=Q.noteData)==null?void 0:E.isPinned},
then:function(){return _.W(_.i5,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.W(_.a,{cond:function(){var Q,E;return(Q=C.data())==null?void 0:(E=Q.noteData)==null?void 0:E.isPublished},
then:function(){return _.W(_.i5,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.W(_.a,{cond:function(){return V},
then:function(){return _.W(_.uC,{data:function(){var Q;return(Q=C.data())==null?void 0:Q.metadata}},{contentMetadataViewModel:function(Q){return _.W(_.kV,{data:Q.data})}})}}),_.W(_.mn,{text:function(){var Q,E;
return(Q=C.data())==null?void 0:(E=Q.noteData)==null?void 0:E.headerText}}),_.W("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.W(_.mn,{text:function(){var Q,E;
return(Q=C.data())==null?void 0:(E=Q.noteData)==null?void 0:E.delimiter}})),_.W(_.mn,{text:function(){var Q,E;
return(Q=F())==null?void 0:(E=Q.contributorNote)==null?void 0:E.publishedTimeText}})),_.W(_.uC,{data:function(){var Q,E,t;
return gyr((Q=C.data())==null?void 0:Q.noteData,(E=F())==null?void 0:(t=E.contributorNote)==null?void 0:t.deleteAction)}},{buttonViewModel:function(Q){return _.W(_.tS,{data:Q.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.W("div",{class:"ytNoteViewModelNoteContent"},_.W(_.mn,{text:function(){var Q,E;
return(Q=F())==null?void 0:(E=Q.contributorNote)==null?void 0:E.text}})))},"Wh");
Ht.idomCompat=!0;_.gQ(_.d(function(C){var F=_.dk(function(){var A;return(A=C.data())==null?void 0:A.flowStateEntityKey},""),G=_.$b(_.cx,F),V=_.$b(q8L,_.dk(function(){var A;
return(A=C.data())==null?void 0:A.noteFeedEntityKey},"")),J=_.u(_.Gb(function(){var A;
return(A=_.Z(C.data().helpfulnessValue,_.qg))==null?void 0:A.defaultSelectedKey})),b=J.next().value,z=J.next().value;
J=_.u(_.Gb(function(){var A,T,P;return(P=_.Z((A=_.Z(C.data().helpfulnessValue,_.qg))==null?void 0:(T=A.radioButtons)==null?void 0:T.find(function(g){var r;return((r=_.Z(g,yrM))==null?void 0:r.key)===b()}),yrM))==null?void 0:P.value}));
var Q=J.next().value,E=J.next().value;J=_.u(_.Gb(function(){var A;return(A=_.Z(C.data().helpfulReasons,lQM))==null?void 0:A.defaultSelectedKeys}));
var t=J.next().value,k=J.next().value;J=_.u(_.Gb(function(){var A;return(A=_.Z(C.data().notHelpfulReasons,lQM))==null?void 0:A.defaultSelectedKeys}));
var U=J.next().value,H=J.next().value,l=function(A,T){z(T.key);E(T.value);k([]);H([])},N=function(){var A,T;
return((A=Q())==null?void 0:A.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((T=Q())==null?void 0:T.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},S=function(){var A,T;
return((A=Q())==null?void 0:A.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((T=Q())==null?void 0:T.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"},f=function(A){Rss(A.key,t,k)},c=function(A){Rss(A.key,U,H)};
_.q4(function(){var A,T,P;FOt((A=C.data())==null?void 0:(T=A.userRatingFormSchema)==null?void 0:T.id,{isValid:function(){return!!b()},
formData:function(){var g=Q(),r=TRt(t(),_.Z(C.data().helpfulReasons,lQM)),C9=TRt(U(),_.Z(C.data().notHelpfulReasons,lQM));g={helpfulnessValue:g==null?void 0:g.noteHelpfulnessValue};if(r){g.helpfulReasons=[];r=_.u(r);for(var Wo=r.next();!Wo.done;Wo=r.next()){Wo=Wo.value;var EB=void 0;if((EB=Wo)==null?0:EB.noteHelpfulReason)EB=void 0,g.helpfulReasons.push((EB=Wo)==null?void 0:EB.noteHelpfulReason)}}if(C9)for(g.notHelpfulReasons=[],C9=_.u(C9),r=C9.next();!r.done;r=C9.next())if(r=r.value,Wo=void 0,(Wo=
r)==null?0:Wo.noteNotHelpfulReason)Wo=void 0,g.notHelpfulReasons.push((Wo=r)==null?void 0:Wo.noteNotHelpfulReason);return{userRatingFormData:g}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(P=_.Z(G(),n6M))==null?void 0:P.submitFormParams},onSubmitResult:function(){var g,r=(g=_.Z(G(),n6M))==null?void 0:g.userRatingEntityKey,C9;g={key:r,helpfulnessValue:(C9=Q())==null?void 0:C9.noteHelpfulnessValue};r&&_.er(_.z3("contextNoteUserRatingEntityPayload",r,g));var Wo;r=(Wo=C.data())==null?void 0:Wo.viewNoteFlowStepId;var EB;if((EB=V())==null||!EB.contributorNote){var L9;r=(L9=C.data())==null?void 0:L9.zeroStateFlowStepId}(Wo=
Object.assign({},G()))&&r&&(Wo.currentStepId=r,Wo.stepIdStack=[r],_.er(_.z3("flowStateEntity",F(),Wo)));var ki;(Wo=(ki=C.data())==null?void 0:ki.ratingSubmittedSnackbarCommand)&&_.wQ(Wo)},
disableDuringSubmission:!0})});
return _.W("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.W(_.uC,{data:function(){var A=_.Z(G(),n6M);if(A){var T;var P={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:A==null?void 0:(T=A.note)==null?void 0:T.headerText}]}],delimiter:"\u2022"}},existingNote:A.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else P=void 0;return P}},{noteViewModel:function(A){return _.W("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.W(Ht,{data:A.data}))}}),_.W(_.uC,{data:function(){var A;
return(A=C.data())==null?void 0:A.helpfulnessValue}},{radioButtonGroupViewModel:function(A){return _.W("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.W(_.u0t,{data:A.data,
onSelected:l,selectedKey:b}))}}),_.W(_.a,{cond:N,
then:function(){return _.W("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.W("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.W(_.mn,{text:function(){var A;return(A=C.data())==null?void 0:A.helpfulReasonQuestion}})),_.W(_.uC,{data:function(){var A;
return(A=C.data())==null?void 0:A.helpfulReasons}},{checkboxGroupViewModel:function(A){return _.W(QAU,{data:A.data,
onItemTap:f,selectedKeys:t,controlledMode:!0})}}))}}),_.W(_.a,{cond:S,
then:function(){return _.W("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.W("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.W(_.mn,{text:function(){var A;return(A=C.data())==null?void 0:A.notHelpfulReasonQuestion}})),_.W(_.uC,{data:function(){var A;
return(A=C.data())==null?void 0:A.notHelpfulReasons}},{checkboxGroupViewModel:function(A){return _.W(QAU,{data:A.data,
onItemTap:c,selectedKeys:U,controlledMode:!0})}}))}}),_.W(_.a,{cond:function(){return!N()&&!S()},
then:function(){return _.W(_.uC,{data:function(){var A;return(A=C.data())==null?void 0:A.helpfulNoteFeatures}},{alertBannerViewModel:function(A){return _.W("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.W(_.Rku,{data:A.data}))}})}}))},"Xh"),"yt-note-user-rating-view-model",{props:{data:_.CJ}});_.gQ(Ht,"yt-note-view-model",{props:{data:_.CJ}});_.gQ(_.d(function(C){var F=_.$b(q8L,_.dk(function(){var G;return(G=C.data())==null?void 0:G.noteFeedEntityKey},""));
return _.W("yt-notes-wrapper-view-model",{class:_.py("ytNotesWrapperViewModelHost")},_.W(_.a,{cond:function(){var G,V,J;return!((G=C.data())==null||!G.existingNotes)||!((V=C.data())==null||!V.currentNote)&&!((J=F())==null||!J.contributorNote)},
then:function(){return _.W(_.WQ,null,_.W(_.uC,{data:function(){var G,V,J,b;return((V=_.Z((G=C.data())==null?void 0:G.currentNote,uwx))==null?0:(J=V.noteData)==null?0:J.isPublished)?(b=C.data())==null?void 0:b.currentNote:void 0}},{noteViewModel:function(G){return _.W(Ht,{data:G.data})}}),_.W(_.uC,{data:function(){var G;
return(G=C.data())==null?void 0:G.existingNotes}},{noteViewModel:function(G){var V=G.data;
return _.W(_.a,{cond:function(){var J,b;return(J=V())==null?void 0:(b=J.noteData)==null?void 0:b.isPublished},
then:function(){return _.W(Ht,{data:V})}})}}),_.W(_.uC,{data:function(){var G,V,J,b,z;
return((V=_.Z((G=C.data())==null?void 0:G.currentNote,uwx))==null?0:(J=V.noteData)==null?0:J.isPublished)||(b=F())==null||!b.contributorNote?void 0:(z=C.data())==null?void 0:z.currentNote}},{noteViewModel:function(G){return _.W(Ht,{data:G.data})}}),_.W(_.uC,{data:function(){var G;
return(G=C.data())==null?void 0:G.existingNotes}},{noteViewModel:function(G){var V=G.data;
return _.W(_.a,{cond:function(){var J,b;return!((J=V())==null?0:(b=J.noteData)==null?0:b.isPublished)},
then:function(){return _.W(Ht,{data:V})}})}}))},
else:function(){return _.W(_.uC,{data:function(){var G;return(G=C.data())==null?void 0:G.zeroStateData}},{contributorZeroStateViewModel:mVd})}}))},"Yh"),"yt-notes-wrapper-view-model",{props:{data:_.CJ}});var lt=_.d(function(C){var F=_.xz(C,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),G=F.label,V=F.text,J=F.placeholder,b=F.hint;C=F.rows;var z=F.overflowStyle,Q=F.outline,E=F.disabled,t=F.disableNewLines,k=F.characterLimit,U=F.validation,H=F.onInput,l=_.Jt("textarea");F=_.u(_.Gb(function(){return V()}));
var N=F.next().value,S=F.next().value;F=_.u(_.yH(!1,void 0,"u9PDq"));var f=F.next().value,c=F.next().value,A=function(){c(!0)},T=function(){c(!1)};
_.q4(function(){var eq=l.value,OB=z(),yr=N();OB==="expand-vertically"&&yr&&oyM(eq);l.value.addEventListener("focusin",A);l.value.addEventListener("focusout",T)});
_.q0(function(){l.value.removeEventListener("focusin",A);l.value.removeEventListener("focusout",T)});
var P=function(){var eq;return(eq=U())==null?void 0:eq.validate(N())},g=function(){return k()&&!P()&&N().length>k().maxChars},r=function(){return!!P()||g()};
F=_.CZ(function(eq){if(!eq.currentTarget)return!1;eq=eq.currentTarget;S(eq.value);z()==="expand-vertically"&&oyM(eq);H==null||H(eq.value);return!0});
var C9=_.CZ(function(eq){t()&&eq.key==="Enter"&&eq.preventDefault();return!1}),Wo=_.CZ(function(){l.value.focus()}),EB=function(){return J()||G()},L9={},ki={},lZ={};
return _.W("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.W("div",{class:_.py("ytStandardsTextareaShapeTextareaContainer",(L9.ytStandardsTextareaShapeTextareaContainerOutline=Q,L9.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=E,L9.ytStandardsTextareaShapeTextareaContainerOutlineError=r,L9)),"on:click":Wo},_.W("label",{class:_.py("ytStandardsTextareaShapeLabel",(ki.ytStandardsTextareaShapeLabelFocused=f,ki.ytStandardsTextareaShapeLabelDisabled=E,ki.ytStandardsTextareaShapeLabelError=
function(){return r()&&!E()},ki.ytStandardsTextareaShapeLabelHidden=function(){return!f()&&!N()&&!!EB()},ki))},G),_.W("div",{class:_.py("ytStandardsTextareaShapePlaceholder",(lZ.ytStandardsTextareaShapePlaceholderVisible=function(){return!f()&&!N()},lZ)),
"aria-hidden":"true"},EB),_.W("textarea",{el:l,class:"ytStandardsTextareaShapeTextarea",rows:C,disabled:E,placeholder:EB,"on:input":F,"on:keydown":C9},N)),_.W(_.a,{cond:function(){return b()&&!r()},
then:function(){var eq={};return _.W("div",{class:_.py("ytStandardsTextareaShapeHint",(eq.ytStandardsTextareaShapeHintDisabled=E,eq))},_.W("div",{class:"ytStandardsTextareaShapeHintHintMessage"},b))}}),_.W(_.a,{cond:P,
then:function(){return _.W(Ibt,{disabled:E},_.W("div",{class:"ytStandardsTextareaShapeErrorMessage"},P))}}),_.W(_.a,{cond:k,
then:function(eq){return _.W(_.a,{cond:g,then:function(){return _.W(Ibt,{disabled:E},_.W("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return eq().errorMessage}),_.W("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return N().length+"/"+eq().maxChars}))}})}}))},"Zh");
lt.idomCompat={callbacks:{onInput:!0}};var Ibt=_.d(function(C){var F={};return _.W("div",{class:_.py("ytStandardsTextareaShapeError",(F.ytStandardsTextareaShapeErrorDisabled=C.disabled,F)),role:"alert"},_.W(_.i5,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),C.children)},"$h");_.E2U=_.d(function(C){var F=C.data;return _.W("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.W(lt,{text:C.text,label:function(){var G;return(G=F().contentProperties)==null?void 0:G.labelText},
placeholder:function(){var G;return(G=F().contentProperties)==null?void 0:G.placeholderText},
hint:function(){var G;return(G=F().contentProperties)==null?void 0:G.hintText},
outline:function(){var G;return!((G=F().displayProperties)==null?0:G.hideBorder)},
overflowStyle:function(){var G;return((G=F().displayProperties)==null?0:G.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:C.disabled,disableNewLines:function(){var G;return(G=F().displayProperties)==null?void 0:G.disableNewLines},
onInput:C.onInput,characterLimit:C.characterLimit,validation:C.validation,rows:function(){var G;return(G=F().displayProperties)==null?void 0:G.rows}}))},"ai");_.WDL=_.d(function(C){var F=C.data;return _.W("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.W(lt,{text:C.text,label:function(){var G;return(G=F().contentProperties)==null?void 0:G.labelText},
placeholder:function(){var G;return(G=F().contentProperties)==null?void 0:G.placeholderText},
hint:function(){var G;return(G=F().contentProperties)==null?void 0:G.hintText},
outline:function(){var G;return!((G=F().displayProperties)==null?0:G.hideBorder)},
overflowStyle:function(){var G;return((G=F().displayProperties)==null?0:G.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var G;return(G=F().displayProperties)==null?void 0:G.disableNewLines},
onInput:C.onInput,characterLimit:C.characterLimit,validation:C.validation,rows:function(){var G;return(G=F().displayProperties)==null?void 0:G.rows}}))},"bi");var tN8=_.d(function(C){var F=_.u(_.Gb(function(){var EB,L9;return((EB=C.data().structuredContextNoteFormSchema)==null?0:(L9=EB.initialValues)==null?0:L9.noteBody)?C.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),G=F.next().value,V=F.next().value;
F=_.u(_.Gb(function(){C.data();return!1}));
var J=F.next().value,b=F.next().value;F=_.u(_.Gb(function(){C.data();return!1}));
var z=F.next().value,Q=F.next().value;F=_.u(_.Gb(function(){var EB,L9;return((EB=C.data().structuredContextNoteFormSchema)==null?0:(L9=EB.initialValues)==null?0:L9.timestamp)?C.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var E=F.next().value,t=F.next().value;F=_.u(_.Gb(function(){C.data();return!1}));
var k=F.next().value,U=F.next().value;F=_.u(_.Gb(function(){var EB,L9;return((EB=C.data().structuredContextNoteFormSchema)==null?0:(L9=EB.initialValues)==null?0:L9.sources)?[C.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var H=F.next().value,l=F.next().value;F=_.u(_.Gb(function(){C.data();return!1}));
var N=F.next().value,S=F.next().value;F=_.u(_.Gb(function(){return!1}));
var f=F.next().value,c=F.next().value;_.q4(function(){var EB;_.GAd((EB=C.data().structuredContextNoteFormSchema)==null?void 0:EB.id,{isSubmitting:f,onSubmit:function(){c(!0);var L9=GHt(G(),E(),H(),C.data()),ki=_.I8().resolve(_.WD);L9&&ki&&ki.resolveCommand(L9,{commandController:{onSuccess:function(){c(!1)}}})},
isValid:function(){return J()&&!z()&&!k()&&!N()}})});
var A=function(EB){if(EB!==void 0&&(V(EB),!J()&&EB.length>0&&b(!0),J())){var L9=DwU(C.data());if(L9){var ki=L9.minLength;L9=L9.maxLength;ki&&EB.length<ki?Q(!0):L9&&EB.length>L9?Q(!0):Q(!1)}}},T=function(EB){if(EB!==void 0){t(EB);
if(EB.length>0){var L9,ki,lZ,eq,OB=mwW((L9=C.data())==null?void 0:(ki=L9.structuredContextNoteFormSchema)==null?void 0:(lZ=ki.fieldSchemas)==null?void 0:(eq=lZ.timestamp)==null?void 0:eq.validationSchema);if(OB&&(L9=OB.regex)&&!(new RegExp(L9)).test(EB)){U(!0);return}}U(!1)}},P=function(EB){if(EB!==void 0){var L9=EB.split(/[ \n]/).map(function(ki){return ki.trim()});
l(L9);if(EB.length>0)for(EB=_.u(L9),L9=EB.next();!L9.done;L9=EB.next())if(!F9U(L9.value)){S(!0);return}S(!1)}},g=function(){return{validate:function(EB){if(J()){var L9=DwU(C.data());
if(L9){var ki=L9.minLength;L9=L9.translations;if(ki&&EB.length<ki)return L9==null?void 0:L9.minLengthErrorMessage}}}}},r=function(){var EB=DwU(C.data()),L9=EB==null?void 0:EB.maxLength,ki;
EB=EB==null?void 0:(ki=EB.translations)==null?void 0:ki.maxLengthErrorMessage;if(L9&&EB)return{maxChars:L9,errorMessage:EB}},C9=function(){return{validate:function(EB){if(EB){var L9,ki,lZ,eq,OB=mwW((L9=C.data())==null?void 0:(ki=L9.structuredContextNoteFormSchema)==null?void 0:(lZ=ki.fieldSchemas)==null?void 0:(eq=lZ.timestamp)==null?void 0:eq.validationSchema);
if(OB&&(L9=OB.regex,OB=OB.translations,L9&&!(new RegExp(L9)).test(EB)))return OB==null?void 0:OB.regexErrorMessage}}}},Wo=function(){return{validate:function(EB){if(EB){var L9,ki,lZ,eq,OB=j6s((L9=C.data())==null?void 0:(ki=L9.structuredContextNoteFormSchema)==null?void 0:(lZ=ki.fieldSchemas)==null?void 0:(eq=lZ.sources)==null?void 0:eq.validationSchema);
if(OB&&(L9=OB.translations,L9==null?0:L9.selectedErrorMessage))for(EB=EB.split(/[ \n]/).map(function(yr){return yr.trim()}),EB=_.u(EB),ki=EB.next();!ki.done;ki=EB.next())if(!F9U(ki.value))return EB=void 0,(EB=L9)==null?void 0:EB.selectedErrorMessage}}}};
return _.W("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.W("div",{class:"ytStructuredContextNoteViewModelTextField"},_.W(_.uC,{data:function(){var EB;return(EB=C.data())==null?void 0:EB.noteContents}},{textFormFieldViewModel:function(EB){return _.W(_.WDL,{data:EB.data,
onInput:A,validation:g,characterLimit:r})},
textFieldViewModel:function(EB){return _.W(_.E2U,{data:EB.data,onInput:A,validation:g,characterLimit:r})}})),_.W("div",{class:"ytStructuredContextNoteViewModelTextField"},_.W(_.uC,{data:function(){var EB;
return(EB=C.data())==null?void 0:EB.noteTimestamp}},{textFormFieldViewModel:function(EB){return _.W(_.WDL,{data:EB.data,
onInput:T,validation:C9})},
textFieldViewModel:function(EB){return _.W(_.E2U,{data:EB.data,onInput:T,validation:C9})}})),_.W("div",{class:"ytStructuredContextNoteViewModelTextField"},_.W(_.uC,{data:function(){var EB;
return(EB=C.data())==null?void 0:EB.noteSources}},{textFormFieldViewModel:function(EB){return _.W(_.WDL,{data:EB.data,
onInput:P,validation:Wo})},
textFieldViewModel:function(EB){return _.W(_.E2U,{data:EB.data,onInput:P,validation:Wo})}})))},"ci");
tN8.idomCompat=!0;_.gQ(tN8,"yt-structured-context-note-view-model",{props:{data:_.CJ}});var abd=_.d(function(C){var F=_.u(_.Gb(function(){var b;if((b=C.controlled)==null?0:b.call(C))return[];var z;return(((z=C.data())==null?void 0:z.chips)||[]).map(function(Q){Q=_.Z(Q,_.Fu);if(Q==null?0:Q.selected)return V38(Q.chipValue)}).filter(function(Q){return Q!==void 0})})),G=F.next().value,V=F.next().value,J=function(b){var z=V38(b.chipValue);
if(z!==void 0){var Q;if((Q=C.controlled)==null?0:Q.call(C))return void C.controlled().onTap(z);b=G().includes(z)?[].concat(_.da(G().filter(function(t){return t!==z}))):[].concat(_.da(G()),[z]);
V(b);var E;if((E=C.uncontrolled)==null?0:E.call(C))C.uncontrolled().onUpdate(b)}};
return _.W("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.W(_.Ag,{each:function(){return C.data().chips||[]}},function(b){return _.W("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.W(_.cHr,{data:function(){return _.Z(b,_.Fu)},
selected:function(){var z;if(z=_.Z(b,_.Fu)){var Q=V38(z.chipValue);if(Q!==void 0){var E;z=((E=C.controlled)==null?0:E.call(C))?C.controlled().selectedValues.includes(Q):G().includes(Q)}else z=void 0}else z=!1;return z},
callback:J}))}))},"di");var kcM=_.d(function(C){var F=C.data;var G=function(){var Q;return((Q=F())==null?void 0:Q.flowStateKey)||""},V=_.$b(_.cx,G),J=function(){var Q;
return(Q=_.Z(V(),zQd))==null?void 0:Q.chips},b=function(Q){if(Q!==void 0){var E=J()||[];
E=E.find(function(t){return t===Q})?E.filter(function(t){return t!==Q}):[].concat(_.da(E),[Q]);
E=Object.assign({},V(),{feedbackFormFlowState:Object.assign({},_.Z(V(),zQd),{chips:E})});_.er(_.z3("flowStateEntity",G(),E))}},z=function(){var Q;
return _.Z((Q=F())==null?void 0:Q.inputBox,Qox)};
C=_.kk(function(Q){var E=z();E=!(E==null?0:E.maxChars)||Q.length<=E.maxChars;Q=Object.assign({},V(),{feedbackFormFlowState:Object.assign({},_.Z(V(),zQd),{detail:Q}),abuseReportFlowState:Object.assign({},_.Z(V(),sF),{navigationEnabled:E})});_.er(_.z3("flowStateEntity",G(),Q))},150);
return _.W("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.W("div",{class:"ytFeedbackFormViewModelChips"},_.W(_.uC,{data:function(){var Q;return(Q=F())==null?void 0:Q.chipSelection}},{chipSelectionFormFieldViewModel:function(Q){return _.W(abd,{data:Q.data,
controlled:function(){return{selectedValues:J()||[],onTap:b}}})}})),_.W("div",{class:"ytFeedbackFormViewModelInputBox"},_.W(lt,{text:function(){var Q;
return(Q=_.Z(V(),zQd))==null?void 0:Q.detail},
placeholder:function(){var Q;return((Q=z())==null?void 0:Q.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var Q=z();if(Q&&Q.maxChars)return{maxChars:Q.maxChars,errorMessage:Q.maxCharsExceededErrorMessage||""}},
onInput:C})),_.W("div",{class:"ytFeedbackFormViewModelFooterText"},_.W(_.mn,{text:function(){return F().footerText}})))},"ei");
kcM.idomCompat=!0;_.gQ(kcM,"yt-feedback-form-view-model",{props:{data:_.CJ}});var UWM=_.d(function(C){var F=C.data;var G=_.$b(jxd,function(){return F().flowStateKey||""}),V=function(){var J;
_.wQ((J=_.Z(G(),sF))==null?void 0:J.navigationCommand)};
return _.W("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.W("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.W(_.uC,{data:function(){return F().cancelButton}},{buttonViewModel:function(J){return _.W(_.tS,{data:J.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:V})}}),_.W(_.uC,{data:function(){var J;
if(F().navButton){var b=Object;var z=b.assign,Q=_.Z(F().navButton,_.jl),E=((J=_.Z(G(),sF))==null?0:J.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",t,k;J=_.Z((t=_.Z(G(),sF))==null?void 0:t.navigationCommand,_.yp);t=(k=_.Z(J,_.jW))==null?void 0:k.url;b={buttonViewModel:z.call(b,{},Q,{state:E,iconName:t?"OPEN_IN_NEW":""})}}else b=void 0;return b}},{buttonViewModel:function(J){return _.W(_.tS,{data:J.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:V})}})))},"fi");
UWM.idomCompat=!0;_.gQ(UWM,"yt-report-form-bottom-bar-view-model",{props:{data:_.CJ}});var H78=_.d(function(C){var F=C.nextStep;return _.W("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.W("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.W(_.i5,{icon:function(){return F().iconName||""}})),_.W("div",null,_.W(_.mn,{text:function(){return F().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"gi"),lbd=_.d(function(C){var F=C.data;
var G,V=(G=_.I8().resolve(_.Qt(_.v6)))==null?void 0:G(),J=_.$b(_.cx,function(){return F().flowStateKey||""});
return _.W("yt-report-form-confirmation-page-view-model",{class:function(){var b;return((b=_.Z(J(),sF))==null?void 0:b.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.W("div",{class:function(){var b;
return((b=_.Z(J(),sF))==null?void 0:b.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.W(_.AC,{data:function(){return V&&F().imageDark?F().imageDark:F().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.W("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.W("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return F().confirmationHeader}),_.W("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.W(_.mn,{text:function(){return F().confirmationText}})),_.W("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.W(_.mn,{text:function(){return F().lawEnforcementText}})),
_.W("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return F().whatToExpectHeader}),_.W(_.a,{cond:function(){return F().nextSteps},
then:function(b){return _.W("div",null,_.W(_.Ag,{each:b},function(z){return _.W(H78,{nextStep:z})}))}}),_.W(_.a,{cond:function(){return F().legalReportText},
then:function(b){return _.W("div",null,_.W(_.mn,{text:b,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"hi");
lbd.idomCompat=!0;_.gQ(lbd,"yt-report-form-confirmation-page-view-model",{props:{data:_.CJ}});var y4_=_.d(function(C){var F=C.data;var G=function(){var b;return((b=_.Z(F().inputBox,Qox))==null?void 0:b.maxChars)||500},V=function(){return F().flowStateKey||""},J=_.$b(_.cx,V);
C=_.kk(function(b){b=Object.assign({},J(),{flowFormState:{isValid:b.length<=G()},abuseReportFlowState:{userComments:b,navigationEnabled:!(b.length>G()),isReportFormDirty:!0}});_.Av().dispatch(_.kZ("flowStateEntity",V(),b))},150);
_.q4(function(){var b=Object.assign({},J(),{flowFormState:{isValid:!0}});_.Av().dispatch(_.kZ("flowStateEntity",V(),b))});
return _.W("yt-report-form-details-page-view-model",{class:function(){var b;return((b=_.Z(J(),sF))==null?void 0:b.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.W("h1",{class:function(){var b;
return((b=_.Z(J(),sF))==null?void 0:b.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return F().detailsPageHeader}),_.W("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.W(_.mn,{text:function(){return F().bodyText}})),_.W("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.W(lt,{label:function(){var b;
return((b=_.Z(F().inputBox,Qox))==null?void 0:b.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var b;return{errorMessage:((b=_.Z(F().inputBox,Qox))==null?void 0:b.maxCharsExceededErrorMessage)||"",maxChars:G()}},
onInput:C})))},"ii");
y4_.idomCompat=!0;_.gQ(y4_,"yt-report-form-details-page-view-model",{props:{data:_.CJ}});var Z7U=_.d(function(C){var F=C.data;var G=function(){return F().flowStateKey||""},V=_.$b(_.cx,G),J=function(){return _.Z(V(),sF)};
return _.W("yt-report-form-reason-select-page-view-model",{class:function(){var b;return((b=J())==null?void 0:b.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.W("h1",{class:function(){var b;
return((b=J())==null?void 0:b.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return F().pageHeader}),_.W("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.W(_.mn,{text:function(){return F().bodyText}})),_.W("div",{class:function(){var b;
return((b=J())==null?void 0:b.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.W(_.u0t,{data:function(){return _.Z(F().radioButtonGroup,_.qg)},
onSelected:function(b,z){b=Object.assign({},V(),{abuseReportFlowState:Object.assign({},J(),{reasonKey:z.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:z.command})});_.er(_.z3("flowStateEntity",G(),b))},
selectedKey:function(){var b;return(b=J())==null?void 0:b.reasonKey},
groupName:"report-form-reason-select-page"})))},"ji");
Z7U.idomCompat=!0;_.gQ(Z7U,"yt-report-form-reason-select-page-view-model",{props:{data:_.CJ}});var Ndd=_.d(function(C){var F=C.data;var G,V=(G=_.I8().resolve(_.Qt(_.v6)))==null?void 0:G();return _.W("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.W("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.W(_.AC,{data:function(){return V&&F().imageDark?F().imageDark:F().image},
alt:""})),_.W("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.W("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return F().header}),_.W(_.mn,{text:function(){return F().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"ki");
Ndd.idomCompat=!0;_.gQ(Ndd,"yt-report-form-sign-in-page-view-model",{props:{data:_.CJ}});_.O7r=(0,_.Bzl)(_.gu.talkToRecs,{talkToRecsStateSelector:function(C){return C}});_.gQ(_.d(function(C){var F=C.data;var G=_.nZ(_.O7r.talkToRecsStateSelector),V=function(){return F().titleSuperscript},J=function(){return F().answersShelf},b=function(){return F().videoShelf},z=function(){var Wo;
return(Wo=F().textInputPlaceholder)==null?void 0:Wo.content},Q=function(){return F().showOpenTextInput},E=function(){var Wo;
return(Wo=F().textInputValue)==null?void 0:Wo.content},t=function(){return F().isMultiTurnFlow?F().resetButtonViewModel:void 0},k="",U=function(){return F().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
C=_.u(_.yH("",void 0,"EFTZDb"));var H=C.next().value,l=C.next().value;C=_.u(_.yH(!1,void 0,"OgB5Cc"));var N=C.next().value,S=C.next().value,f=function(){return{state:N()||H()?"active":"disabled",disabled:!(N()||H())}};
_.s0(function(){if(Q()){E()&&l(E());var Wo;if(!t()&&((Wo=G())==null?0:Wo.stepStates)){var EB;Wo=Object.keys((EB=G())==null?void 0:EB.stepStates);EB=Wo[Wo.length-1];var L9,ki;(EB=(L9=G().stepStates[EB])==null?void 0:(ki=L9.userQuery)==null?void 0:ki.userQuery)&&l(EB);_.er(_.iXd())}}});
var c=function(Wo){var EB=F().onUpdateText;EB&&_.wQ(EB,{form:{userQuery:Wo}});l(Wo)},A=_.kk(function(Wo){c(Wo.target.value.trim())},150),T=_.CZ(function(Wo){var EB;
k=(EB=Wo.target.value)==null?void 0:EB.trim();A(Wo);return!1}),P=_.CZ(function(Wo){Wo.key==="Enter"&&(N()||H())&&(c(Wo.target.value.trim()),r());
return!1}),g=function(Wo,EB){S(EB);
if(EB){if(F().isMultiTurnFlow&&!k){var L9;c((L9=Wo==null?void 0:Wo.text)!=null?L9:"")}F().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&r()}else l(k)},r=function(){var Wo=void 0,EB=_.Z(F().nextButtonViewModel,_.jl),L9,ki;
if(EB==null?0:(L9=EB.loggingDirectives)==null?0:(ki=L9.clientVeSpec)==null?0:ki.uiType){var lZ,eq;Wo=_.m2((lZ=EB.loggingDirectives)==null?void 0:(eq=lZ.clientVeSpec)==null?void 0:eq.uiType)}(EB=F().onNextStepCommand)&&_.wQ(EB,{clickedVisualElement:Wo})};
C=_.Jt("yt-talk-to-recs-view-model");var C9={};return _.W("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:C},_.W("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.W(_.uC,{data:function(){return F().topCornerButton}},{buttonViewModel:_.tS})),_.W("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.W("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.W(_.mn,{text:function(){return F().title}}),_.W(_.a,{cond:V,
then:function(){return _.W("sup",{class:"ytwTalkToRecsSuperScript"},_.W(_.mn,{text:V}))}})),_.W("div",{class:"ytwTalkToRecsSubtitle"},_.W(_.mn,{text:function(){return F().subtitle}})),_.W("div",{class:"ytwTalkToRecsResultsShelf"},_.W(_.a,{cond:J,
then:function(){return _.W(_.uC,{data:J},{chipsShelfViewModel:function(Wo){return _.W("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.W(_.DT,{data:Wo.data,callback:g,selectionBehavior:U}))}})}}),_.W(_.a,{cond:b,
then:function(){return _.W(_.uC,{data:b},{horizontalShelfViewModel:function(Wo){return _.W("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.W(_.mQ,{data:Wo.data,thumbnailAspectRatio:0}))}})}})),_.W("div",{class:_.py("ytwTalkToRecsRefinementContainer",(C9.ytwTalkToRecsBottomMargin=function(){return F().isMultiTurnFlow},C9))},_.W(_.a,{cond:Q,
then:function(){return _.W("div",{class:"ytwTalkToRecsUserInputBox"},_.W("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:z,value:H,"on:input":T,"on:keyup":P,maxlength:200}))}}),_.W(_.uC,{data:function(){return F().isMultiTurnFlow?F().nextButtonViewModel:void 0}},{buttonViewModel:function(Wo){return _.W("div",{class:"ytwTalkToRecsFlowControlButtons"},_.W(_.tS,{data:Wo.data,
buttonOverrides:f}))}}),_.W(_.uC,{data:t},{buttonViewModel:function(Wo){return _.W("div",{class:"ytwTalkToRecsFlowControlButtons"},_.W(_.tS,{data:Wo.data,
onClick:function(){var EB=_.Z(F().resetButtonViewModel,_.jl);c(H());(EB=EB==null?void 0:EB.onTap)&&_.wQ(EB)}}))}}))))},"mi"),"yt-talk-to-recs-view-model",{props:{data:_.CJ}});var i_h={sources:[{clientResource:{imageName:"CHECK"}}]};_.XYM=_.d(function(C){var F=_.Jt("div");C=_.xz(C,{error:void 0});var G=C.data,V=C.error,J=C.onSelected;C=_.u(_.Gb(function(){return b_L(G())}));
var b=C.next().value,z=C.next().value;Q6d(G,function(H){z(H);var l,N,S=$kh((l=G().options)==null?void 0:(N=l[H])==null?void 0:N.value,G().type);J==null||J(S);F.value.focus()});
C=_.CZ(function(){if(!G().disabled){var H=G(),l=b(),N=F.value;H.options&&(H=Jus(H.options,l,H.label),_.I8().resolve(_.xW).openSheet({viewModel:H},N))}});
var Q=_.xcE(),E=function(){return!!V()},t=function(){return!!G().disabled},k={},U={};
return _.W("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.W("div",{class:_.py("ytDropdownViewModelDropdownContainer",(k.ytDropdownViewModelDropdownContainerErrorBorder=E,k.ytDropdownViewModelDropdownContainerDisabled=t,k)),"on:click":C,el:F,role:"combobox",tabindex:0,"on:keydown":Q,"aria-invalid":E,"aria-disabled":t,"aria-describedby":function(){return E()?"dropdown-view-model-error":void 0}},_.W("div",{class:"ytDropdownViewModelText"},nv_(G,E,b),uL_(G,b)),_.W("div",{class:_.py("ytDropdownViewModelChevronDown",
(U.ytDropdownViewModelChevronDownDisabled=t,U))},_.W(_.i5,{icon:"CHEVRON_DOWN"}))),ziL(G,V))},"ni");_.gQ(_.d(function(C){var F=C.data;var G=function(J){var b=EvL(F());b.videoMetadata||(b.videoMetadata={});b.videoMetadata.sponsorshipsMetadata||(b.videoMetadata.sponsorshipsMetadata={});b.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(J)},V=function(J){var b=EvL(F());
b.scheduledRedirectMetadata||(b.scheduledRedirectMetadata={});b.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(J)};
return _.W("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.W("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.W("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.W(_.mn,{text:function(){return F().title}}),_.W(_.i5,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.W(_.mn,{text:function(){return F().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.W(_.uC,{data:function(){return F().tierChoices}},{dropdownViewModel:function(J){return _.W("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.W(_.XYM,{data:J.data,
onSelected:G}))}}),_.W(_.uC,{data:function(){return F().startTimeChoices}},{dropdownViewModel:function(J){return _.W("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.W(_.XYM,{data:J.data,
onSelected:V}))}}),_.W(_.mn,{text:function(){return F().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.W("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.W(_.uC,{data:function(){return F().scheduleButton}},{panelFooterViewModel:_.Uy})))},"oi"),"ytfz-schedule-fanzone-view-model",{props:{data:_.CJ}});_.gQ(_.d(function(C){var F=C.data;C=C.className===void 0?"":C.className;var G=_.$b(jxd,function(){return F().flowStateEntityKey||""}),V={};
V=_.py("ytFlowBottomBarViewModelFlowBottomBarButtons",(V.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return F().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||F().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},V));
var J={},b=_.py("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",V,(J.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return F().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},J.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return F().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},J));
J={};var z=_.py("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",V,(J.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return F().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},J.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return F().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},J));
V={};V=_.py("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(V.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return F().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},V.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return F().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},V.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return F().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
V));
C=_.py("ytFlowBottomBarViewModelHost",C);return _.W("yt-flow-bottom-bar-view-model",{class:C},_.W(_.a,{cond:function(){var Q;return(Q=F())==null?void 0:Q.textSection},
then:function(Q){return _.W("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.W(_.mn,{text:Q}))}}),_.W("div",{class:V},_.W(_.uC,{data:function(){return F().secondaryButton}},{buttonViewModel:function(Q){return _.W(_.tS,{data:Q.data,
className:z})}}),_.W(_.uC,{data:function(){return F().primaryButton}},{buttonViewModel:function(Q){return _.W(_.tS,{data:Q.data,
className:b,buttonOverrides:function(){var E;return{disabled:!((E=G())==null||!E.primaryButtonDisabled)}}})}})))},"pi"),"yt-flow-bottom-bar-view-model",{props:{data:_.CJ,
className:_.s9}});var wYV="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),yh=function(){var C=_.B.apply(this,arguments)||this;C.enableScrollingFix=!0;C.bottomBar=!1;C.fitContent=!1;return C};
_.O(yh,_.B);_.n=yh.prototype;_.n.ready=function(){_.y("enable_pdp_icon_prefetch")&&_.jol(_.I8().resolve(_.js),0,wYV)};
_.n.focus=function(C){this.topBar?_.iS(this.topBar,C):this.paperDialog.focus(C)};
_.n.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$19313_scroller&&(this.JSC$19313_scroller.dialogElement=this.paperDialog,this.JSC$19313_scroller.attached&&typeof this.JSC$19313_scroller.attached==="function"&&this.JSC$19313_scroller.attached())};
_.n.onDataChanged=function(){var C;this.fitContent=!((C=this.data)==null||!C.fitContent);var F;this.bottomBar=!((F=this.data)==null||!F.bottomBar)};
_.n.onProgressChanged=function(){var C,F,G=((F=(C=this.data)==null?void 0:C.progress)!=null?F:0)*100;this.progressElement.style.width=G+"%"};
_.n.isProgressHidden=function(){var C;return!((C=this.data)==null?0:C.progress)};
_.n.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",lpSectionGroupViewModel:"yt-lp-section-group-view-model",noteUserRatingViewModel:"yt-note-user-rating-view-model",noteViewModel:"yt-note-view-model",
notesWrapperViewModel:"yt-notes-wrapper-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",
reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",
params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},
flowBottomBarRenderer:{matcher:function(C){return C&&!C.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
yh.prototype.onProgressChanged=yh.prototype.onProgressChanged;yh.prototype.onDataChanged=yh.prototype.onDataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],yh.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],yh.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],yh.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],yh.prototype,"enableScrollingFix",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],yh.prototype,"bottomBar",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],yh.prototype,"fitContent",void 0);_.R([_.$z("#progress"),_.Y("design:type",HTMLElement)],yh.prototype,"progressElement",void 0);_.R([_.$z("#scroller"),_.Y("design:type",Object)],yh.prototype,"JSC$19313_scroller",void 0);_.R([_.$z("ytd-flow-top-bar-renderer"),_.Y("design:type",HTMLElement)],yh.prototype,"topBar",void 0);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yh.prototype,"onDataChanged",null);_.R([_.iP("data.progress"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yh.prototype,"onProgressChanged",null);_.R([_.e({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],yh);
_.q(yh,"ytd-flow-step-renderer",function(){if(DUl!==void 0)return DUl;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return DUl=C},{mode:1});var Z_=function(C){this.resolveCommand=C;this.steps={}},MN3=function(C,F){F=_.u(F||[]);
for(var G=F.next();!G.done;G=F.next()){G=G.value;var V=Object.values(G)[0],J=void 0;if((J=V)==null?0:J.stepId)C.steps[V.stepId]=G}},LDV=function(C,F){var G,V,J,b,z;
return _.I(function(Q){if((G=C.state)==null||!G.currentStepId)return Q.return(void 0);V=C.getCurrentStep();if(!V)return Q.return(S3r(C));if(J=_.Z(V,_.cf))C.logVEScreen(J),((b=J)==null?0:b.onStepStartCommand)&&C.resolveCommand((z=J)==null?void 0:z.onStepStartCommand,{});J&&F&&(C.logFlowEvent(J,F),F.steps&&!F.steps.includes(V)&&F.steps.push(V));return Q.return(V)})};
Z_.prototype.back=function(){var C;(C=this.state)!=null&&C.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
Z_.prototype.handleUpdateFlowCommand=function(C){C.steps&&MN3(this,C.steps);C.entityUpdateCommand&&this.resolveCommand(C.entityUpdateCommand,{});C.flowContinuationCommand&&(C=C.flowContinuationCommand)&&(this.getFlowContinuationCommand=C);this.awaitFlowContinuation&&(C=this.getCurrentStep(),this.awaitFlowContinuation(C),this.awaitFlowContinuation=void 0)};
Z_.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var S3r=function(C){return _.I(function(F){return C.getFlowContinuationCommand?F.return(new Promise(function(G){C.awaitFlowContinuation=G;C.getFlowContinuationCommand&&C.resolveCommand(C.getFlowContinuationCommand,{flow_state:C.state})})):F.return(Promise.resolve(void 0))})};
Z_.prototype.getCurrentStep=function(){var C;if((C=this.state)!=null&&C.currentStepId)return this.steps[this.state.currentStepId]};
Z_.prototype.logVEScreen=function(C){var F;((F=C.screenLoggingData)==null?0:F.screenVeType)&&_.NJ(_.ia(),C.screenLoggingData.screenVeType)};
Z_.prototype.logFlowEvent=function(C,F){var G,V,J,b;((G=F.flowLoggingData)==null?0:G.eventNamespace)&&((V=C.flowEventData)==null?0:V.eventType)&&((J=C.flowEventData)==null?0:J.eventMetadata)&&((b=F.flowLoggingData)==null?0:b.flowType)&&(C=_.jv(F.flowLoggingData.eventNamespace,C.flowEventData.eventType,C.flowEventData.eventMetadata),_.Fp().logFlowEvent(C,F.flowLoggingData.flowType))};
_.I6.Object.defineProperties(Z_.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.state)==null?void 0:C.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var C;if((C=this.state)!=null&&C.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(F,G){G.key&&G.value&&(F[G.key]=G.value);return F},{})}}});var NF=function(){var C=_.B.apply(this,arguments)||this;C.flowState=_.y("web_use_flow_state_manager")?void 0:new Z_(function(F,G){G=G===void 0?{}:G;_.Cy.instance.resolveCommand(F,{form:{form:G,element:C.hostElement}})});
C.JSC$19324_flowStateManager=_.y("web_use_flow_state_manager")?_.I8().resolve(_.Oc):void 0;C.currentTargetId="";C.initialState=!0;C.isLoading=!1;C.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"};C.containsTalkToRecs=!1;return C};
_.O(NF,_.B);_.n=NF.prototype;_.n.onPopupClosed=function(C){if(!C||this.hostElement===C.detail.popupRenderer){if(this.JSC$19324_flowStateManager){var F;((F=this.data)==null?0:F.flowStateEntityKey)&&this.JSC$19324_flowStateManager.flowStates.delete(this.data.flowStateEntityKey);this.currentTargetId=""}else this.flowState&&this.flowState.reset();this.currentFlowStep=this.data=void 0;this.initialState=!0}};
_.n.configureRendererStamper=function(){return{"data.topBar":{id:"root-top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.n.focus=function(C){var F=this;_.L5(function(){var G=_.ot(F.hostElement).querySelector("ytd-flow-step-renderer");(G==null?0:G.topBar)?G.focus(C):F.topBar&&_.iS(F.topBar,C)},1)};
_.n.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.n.computeTopBarHidden=function(C){var F;return!((F=_.Z(C,_.cf))==null||!F.topBarOverride)};
_.n.onCurrentFlowChange=function(){if(this.JSC$19324_flowStateManager&&this.data&&this.flow){var C=ru3(this.JSC$19324_flowStateManager,this.data),F;C&&((F=this.flow)==null?0:F.currentStepId)&&(pSd(C,this.flow.currentStepId),this.initialState=!1,this.isLoading=!this.currentFlowStep)}};
_.n.observeData=function(){var C=this;if(this.JSC$19324_flowStateManager){var F=this.currentTargetId,G,V,J=(V=(G=this.data)==null?void 0:G.targetId)!=null?V:"";F!==J&&F&&K9W(this.JSC$19324_flowStateManager,F);this.currentTargetId=J;this.data&&DkV(ru3(this.JSC$19324_flowStateManager,this.data),function(b){b&&(C.initialState=!1,C.currentFlowStep={flowStepRenderer:b},C.isLoading=!C.currentFlowStep,C.autofocusAndRefit(),C.updateContainsTalkToRecs(),C.logVEScreen(),C.logFlowEvent())})}};
_.n.dataChanged=function(){var C=this,F,G;return _.I(function(V){if(V.nextAddress==1){if(!C.flowState)return V.return();((F=C.data)==null?0:F.steps)&&MN3(C.flowState,C.data.steps);if((G=C.data)==null?0:G.flowContinuationCommand){var J=C.flowState,b=C.data.flowContinuationCommand;b&&(J.getFlowContinuationCommand=b)}return V.yield(LDV(C.flowState,C.data),2)}C.currentFlowStep=V.yieldResult;_.S9(V)})};
_.n.flowChanged=function(){var C=this,F;return _.I(function(G){if(G.nextAddress==1){if(!C.flowState||!C.flow)return G.return();C.flowState.state=C.flow;C.isLoading=!0;return G.yield(LDV(C.flowState,C.data),2)}F=G.yieldResult;if(!F||C.flow.isLoading)return G.return();C.currentFlowStep=F;C.initialState=!1;C.isLoading=!1;C.autofocusAndRefit();C.updateContainsTalkToRecs();_.S9(G)})};
_.n.logVEScreen=function(){var C,F,G=(C=_.Z(this.currentFlowStep,_.cf))==null?void 0:(F=C.screenLoggingData)==null?void 0:F.screenVeType;G&&_.NJ(_.I8().resolve(_.hS),G)};
_.n.logFlowEvent=function(){var C=_.Z(this.currentFlowStep,_.cf),F,G,V,J,b,z;(this==null?0:(F=this.data)==null?0:(G=F.flowLoggingData)==null?0:G.eventNamespace)&&(this==null?0:(V=this.data)==null?0:(J=V.flowLoggingData)==null?0:J.flowType)&&(C==null?0:(b=C.flowEventData)==null?0:b.eventType)&&(C==null?0:(z=C.flowEventData)==null?0:z.eventMetadata)&&(C=_.jv(this.data.flowLoggingData.eventNamespace,C.flowEventData.eventType,C.flowEventData.eventMetadata),_.Fp().logFlowEvent(C,this.data.flowLoggingData.flowType))};
_.n.updateContainsTalkToRecs=function(){var C,F=(C=_.Z(this.currentFlowStep,_.cf))==null?void 0:C.content;this.containsTalkToRecs=!!F&&!!_.Z(F,k_l)};
_.n.autofocusAndRefit=function(){var C=this,F=_.I8().resolve(_.Qt(_.uc)),G=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),V=document.querySelector("yt-report-form-confirmation-page-view-model"),J=document.querySelector("yt-report-form-details-page-view-model"),b=document.querySelector("yt-report-form-reason-select-page-view-model"),z=document.querySelector("yt-contributor-zero-state-view-model"),
Q=document.querySelector("yt-structured-context-note-view-model"),E=document.querySelector("yt-note-view-model");(!G&&F&&F.isKeyBoardInUse()||V||!G&&J||!G&&b||z||Q||E)&&_.J5(this.hostElement);_.zH(this,function(){_.oo(C.hostElement,"yt-refit")})};
_.n.handleUpdateFlowCommand=function(C){this.flowState?this.data&&(C=_.Z(C,_.Kwm),C.targetId===this.data.targetId&&(C.flowContinuationCommand&&(this.data.flowContinuationCommand=C.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(C),this.autofocusAndRefit())):this.ytComponentBehavior.resolveCommand(C)};
_.n.handleFlowNextStepCommand=function(C){this.JSC$19324_flowStateManager?this.ytComponentBehavior.resolveCommand(C):this.data&&this.flow&&this.flow.key&&(C=_.Z(C,_.YXy),C.targetId===this.data.targetId&&(C=C.stepId||"",this.ytdReduxBehavior.dispatch(_.kZ("flowStateEntity",this.flow.key,{currentStepId:C,stepIdStack:(this.flow.stepIdStack||[]).concat(C)}))))};
_.n.handleFlowPrevStepCommand=function(C){if(this.JSC$19324_flowStateManager)this.ytComponentBehavior.resolveCommand(C);else if(this.data&&this.flow&&this.flow.key&&(C=_.Z(C,_.TgO),C.targetId===this.data.targetId)){var F=[].concat(_.da(this.flow.stepIdStack||[]));F.length>1?(F.pop(),this.ytdReduxBehavior.dispatch(_.kZ("flowStateEntity",this.flow.key,{currentStepId:F[F.length-1],stepIdStack:F}))):C.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(C.onFirstStepCommand)}};
_.n.handleYpcCancelRecurrenceCommand=function(C){if(this.data&&this.flow&&this.flow.key&&(C=_.Z(C,ZXM),C.targetId===this.data.targetId&&C.endpointCommand)){var F=_.Z(this.flow,NzW);F&&_.Z(C.endpointCommand,_.JZ2)&&(_.Z(C.endpointCommand,_.JZ2).feedbackData=F.surveyFeedback);this.ytComponentBehavior.resolveCommand(C.endpointCommand)}};
_.n.handlePartialUpdateFlowStateEntity=function(C){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.kZ("flowStateEntity",this.flow.key,C,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
NF.prototype.flowChanged=NF.prototype.flowChanged;NF.prototype.dataChanged=NF.prototype.dataChanged;NF.prototype.observeData=NF.prototype.observeData;NF.prototype.onCurrentFlowChange=NF.prototype.onCurrentFlowChange;NF.prototype.onPopupClosed=NF.prototype.onPopupClosed;_.R([_.w(_.Rr),_.Y("design:type",Object)],NF.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],NF.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],NF.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],NF.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],NF.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],NF.prototype,"initialState",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],NF.prototype,"isLoading",void 0);_.R([_.L(),_.Y("design:type",Object)],NF.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],NF.prototype,"currentFlowStep",void 0);_.R([_.VG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],NF.prototype,"onPopupClosed",null);
_.R([_.L({selectorArgs:["data.flowStateEntityKey"],selector:jxd}),_.Y("design:type",Object)],NF.prototype,"flow",void 0);_.R([_.$z("ytd-flow-top-bar-renderer"),_.Y("design:type",HTMLElement)],NF.prototype,"topBar",void 0);_.R([_.iP("data","flow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NF.prototype,"onCurrentFlowChange",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NF.prototype,"observeData",null);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],NF.prototype,"dataChanged",null);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],NF.prototype,"containsTalkToRecs",void 0);_.R([_.zp("flow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],NF.prototype,"flowChanged",null);_.R([_.e({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],NF);
_.Bdt=_.Tp()(NF,"ytd-flow-root-renderer",function(){if(KEM!==void 0)return KEM;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return KEM=C},{mode:_.oN("kevlar_poly_si_batch_j025")?1:2});var v2L;var du=null;_.gQ(_.d(function(C){return _.W("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.W("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.W(_.mn,{text:function(){return C.data().text}}),_.W("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"qi"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.CJ}});var fbr=_.d(function(C){var F=C.playerControlsProps;var G=C.isShortsPage;return _.W("yt-bigboard",null,_.W(_.a,{cond:function(){return F().isDragging},
then:function(){return _.W("div",{class:"ytBigboardStoryboardHost"},_.W(_.UMr,{progressBarProps:F,isShortsPage:G}))}}))},"ri");
fbr.idomCompat=!0;_.Oy={ACCOUNT_LABEL:xA("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:xA("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:xA("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:xA("AD_BADGE_HINT"),AD_BADGE_TEXT:xA("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:xA("ALL_CHANNELS_LABEL"),AMBIENT_MODE:xA("AMBIENT_MODE"),AMBIENT_MODE_OFF:xA("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:xA("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:xA("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:xA("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:xA("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:xA("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:xA("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:xA("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:xA("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:xA("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:xA("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:xA("AUTO_ZOOM","Auto zoom"),BACK:xA("BACK"),CANCEL:xA("CANCEL"),CHANNEL_SWITCHER_LABEL:xA("CHANNEL_SWITCHER_LABEL"),CLOSE:xA("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:xA("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:xA("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:xA("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:xA("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:xA("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:xA("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:xA("COMMENT_MODAL_CONTENT"),CONFIRM_OK:xA("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:xA("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:xA("COPIED_TO_CLIPBOARD"),COPY:xA("COPY"),COPY_DEBUG_INFO:xA("COPY_DEBUG_INFO"),COPY_EMBED_CODE:xA("COPY_EMBED_CODE"),
COPY_LINK_LABEL:xA("COPY_LINK_LABEL"),COPY_VIDEO_URL:xA("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:xA("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:xA("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:xA("DELETE_FROM_DOWNLOADS"),DIALOG:xA("DIALOG"),DONE:xA("DONE"),DOWNLOAD:xA("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:xA("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:xA("FLAG_CONFIRM"),FLAG_CONTENT:xA("FLAG_CONTENT"),FLAG_LABEL:xA("FLAG_LABEL"),FLAG_TITLE:xA("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:xA("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:xA("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:xA("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:xA("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:xA("HIDE_SEARCH_FILTERS_LABEL"),HOME:xA("HOME","Home"),INVALID_RESPONSE_RECEIVED:xA("INVALID_RESPONSE_RECEIVED"),LIBRARY:xA("LIBRARY","Library"),LISTENING:xA("LISTENING"),LOADING:xA("LOADING"),LONG_PRESS_MIC_TO_SPEAK:xA("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:xA("LOOP"),MENU_DESKTOP:xA("MENU_DESKTOP"),
MENU_EXIT:xA("MENU_EXIT"),MENU_FEEDBACK:xA("MENU_FEEDBACK"),MENU_HELP:xA("MENU_HELP"),MENU_IMPRESSUM:xA("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:xA("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:xA("MENU_SETTINGS"),MENU_SIGN_IN:xA("MENU_SIGN_IN"),MENU_TITLE:xA("MENU_TITLE"),MENU_YOUR_DATA:xA("MENU_YOUR_DATA"),MORE_INFO:xA("MORE_INFO"),MORE_OPTIONS:xA("MORE_OPTIONS"),MUTE_VOLUME:xA("MUTE_VOLUME"),NEW_PLAYLIST:xA("NEW_PLAYLIST"),NEXT_VIDEO:xA("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:xA("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:xA("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:xA("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:xA("NOT_FOUND_TITLE"),NO_DOWNLOADS:xA("NO_DOWNLOADS"),NO_MIC_INPUT:xA("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:xA("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:xA("OOPS_MESSAGE"),OPEN_APP:xA("OPEN_APP"),OPEN_YOUTUBE:xA("OPEN_YOUTUBE"),PAUSE:xA("PAUSE"),PLAY:xA("PLAY"),PLAYER_CAPTION:xA("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:xA("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:xA("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:xA("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:xA("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:xA("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:xA("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:xA("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:xA("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:xA("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:xA("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:xA("PLAYER_MINIMIZE"),PLAYER_NEXT:xA("PLAYER_NEXT"),PLAYER_PAUSE:xA("PLAYER_PAUSE"),PLAYER_PLAY:xA("PLAYER_PLAY"),
PLAYER_PREVIOUS:xA("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:xA("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:xA("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:xA("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:xA("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:xA("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:xA("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:xA("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:xA("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:xA("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:xA("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:xA("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:xA("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:xA("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:xA("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:xA("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:xA("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:xA("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:xA("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:xA("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:xA("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:xA("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:xA("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:xA("PLAY_ALL"),PLEASE_FIX_ERRORS:xA("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:xA("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:xA("PREVIOUS_VIDEO"),PRIVACY_POLICY:xA("PRIVACY_POLICY"),RELOAD:xA("RELOAD"),REQUIRED_LABEL:xA("REQUIRED_LABEL"),SAVE_PLAYLIST:xA("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:xA("SCRUB_SLIDE_USER_EDU"),SEARCH:xA("SEARCH","Search"),
SEARCH_APPEND_LABEL:xA("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:xA("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:xA("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:xA("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:xA("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:xA("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:xA("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:xA("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:xA("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:xA("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:xA("SEEK_SLIDER"),SETTINGS_LABEL:xA("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:xA("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:xA("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:xA("SHOW_LESS"),SHOW_MORE:xA("SHOW_MORE"),SHOW_PLAYER_CONTROLS:xA("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:xA("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:xA("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:xA("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:xA("SIGN_IN_ON_WEB"),STABLE_VOLUME:xA("STABLE_VOLUME"),STABLE_VOLUME_OFF:xA("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:xA("STABLE_VOLUME_ON"),STATS_FOR_NERDS:xA("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:xA("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:xA("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:xA("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:xA("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:xA("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:xA("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:xA("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:xA("TIMESTAMP_SECONDS"),TOGGLE_OFF:xA("TOGGLE_OFF"),TOGGLE_ON:xA("TOGGLE_ON"),TRENDING:xA("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:xA("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:xA("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:xA("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:xA("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:xA("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:xA("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:xA("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:xA("VIDEO_LINK_LABEL")};var hOt=_.d(function(C){var F=C.playerApi;C=_.Jt("button",function(V){_.Zy(V,36843)});
var G=xA("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.W("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.W("button",{el:C,class:"ytPlayerControlsJumpForwardButtonButton",title:G,"aria-label":G,"on:click":_.CZ(function(){_.Ng(36843);F&&F().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.W("span",null,_.W(_.i5,{icon:"FAST_FORWARD"}))))},"si");var c4U=_.d(function(C){var F=C.appApi;C=_.Jt("button",function(V){_.Zy(V,62946)});
var G=xA("OPEN_IN_MINIPLAYER");return _.W("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.W("button",{el:C,class:"ytMiniplayerButtonButton",title:G,"aria-label":G,"on:click":_.CZ(function(){_.Ng(62946);var V,J;(J=(V=F()).openInMiniplayer)==null||J.call(V);return!1})},_.W(_.i5,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"ti");var A4s=_.d(function(C){var F=C.playerApi;C=_.Jt("button",function(b){_.Zy(b,142812)});
var G=_.u(_.yH(!1,void 0,"eOMRAb")),V=G.next().value,J=G.next().value;G=function(){return xA("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(V()?1:2)})};
return _.W("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.W("button",{el:C,class:"ytPlaybackSpeedButtonButton",title:G,"aria-label":G,"on:click":_.CZ(function(){_.Ng(142812);if(F){var b=F(),z=V();b.setPlaybackRate(z?1:2);J(!V())}return!1})},_.W("span",null,_.W(_.i5,{icon:function(){return V()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"ui");var eOW=_.d(function(C){var F=C.title;var G=C.ariaLabel;var V=C.icon;var J=C.command;var b=C.visualElementId;C=_.Jt("button",function(z){b&&_.Zy(z,b())});
return _.W("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.W("button",{el:C,class:"ytdThumbnailOverlayButtonButton",title:F,"aria-label":G,"on:click":_.CZ(function(){b&&_.Ng(b());J&&_.I8().resolve(_.WD).resolveCommand(J())})},_.W(_.i5,{icon:V})))},"vi");var Li="";var dWx=_.d(function(C){var F=C.playerControlsProps,G=C.onClickFn;C=_.w0(function(){var b=F(),z=-1;b.captionsAvailable&&(z=b.captionsEnabled?1:0);return z},void 0,"MZ0Wqe");
var V=_.w0(function(){var b=F();return b.captionsAvailable?_.iQ(b.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.iQ("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),J=_.w0(function(){var b=F();
b=b.captionsAvailable?b.captionsEnabled:void 0;return b},void 0,"fhuQRe");
return _.W("yt-closed-captions-toggle-button",null,_.W(_.m1U,{captionIconType:C,ariaLabel:V,ariaPressed:J,onClick:function(b){var z=F();if(z.captionsAvailable){var Q=z.playerApi;if(Q){var E=z.playerApi;if(E){var t=Li;if(t){E=E.getOption("captions","track");var k;Li=(k=E?E.displayName:null)!=null?k:t}else _.yP(E)?(t=_.H0s(E),Li=t.length?(k=icW(t))?k.displayName:t[0].displayName:""):Li=""}Jt8(Q);_.y("mweb_disable_set_state_captions_killswitch")&&z.setState({captionsEnabled:!z.captionsEnabled})}}var U,
H;(H=(U=z.appApi).showCaptionsToggleToast)==null||H.call(U,z);G==null||G(b)},
isOverlay:!0}))},"wi");var xW3=_.d(function(C){var F=C.data;return _.W("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.W(_.KR,{data:function(){return{type:17,text:_.cfw(F().label)}}}))},"xi");var sAr=_.d(function(C){var F=_.py("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return C.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return C.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return C.size()==="small"?C.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
C.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.W("animated-seek-arrows",{class:_.py("ytPlayerControlsAnimatedSeekArrowsHost")},_.W("span",{class:F}),_.W("span",{class:F}),_.W("span",{class:F}))},"yi");
sAr.idomCompat=!0;var q3V=_.d(function(){var C=_.iQ("PLAYER_SECONDS",{seconds_placeholder:"30"}),F=_.u(_.yH(!1,void 0,"iRJu8c")),G=F.next().value,V=F.next().value,J=_.u(_.yH(!1,void 0,"MPnizf"));F=J.next().value;var b=J.next().value;J={};var z=_.py("jumpForwardOverlayOverlay",(J.jumpForwardOverlayOverlayHidden=F,J));_.q4(function(){var Q=null,E=null,t=function(){Q!==null&&_.Ws().cancelJob(Q);E!==null&&_.Ws().cancelJob(E);b(!0);V(!0);_.rQ(_.Ws(),function(){b(!1)});
Q=_.rQ(_.Ws(),function(){b(!0);E=_.rQ(_.Ws(),function(){V(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",t);_.q0(function(){window.removeEventListener("jump-forward-clicked",t)})});
return _.W("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.W(_.a,{cond:G,then:function(){return _.W("div",{class:z},_.W(sAr,{direction:1,size:"large"}),_.W("div",null,C))}}))},"zi");var PK_=_.Oy.MUTE_VOLUME,g28=_.Oy.UNMUTE_VOLUME,ROr=_.d(function(C){var F=C.muteIconType;var G=C.onClick;var V=C.useOutlineIcon;var J=C.useDelhiIcons;C=_.Jt("button",function(Q){_.Zy(Q,28662)});
var b=function(){var Q=F(),E=V==null?void 0:V(),t=J==null?void 0:J(),k="",U="";switch(Q){case -1:case 0:k=E?"VOLUME_OFF":t?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";U=g28;break;case 1:k=E?"VOLUME_UP_OUTLINE":t?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";U=PK_;break;case 2:k=E?"VOLUME_DOWN_OUTLINE":t?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";U=PK_;break;default:_.r2(Q)}return{iconName:k,ariaLabel:U}},z=function(){return b().ariaLabel};
return _.W("ytm-mute-button",{class:"ytmMuteButtonHost"},_.W("button",{el:C,class:"ytmMuteButtonButton",title:z,"aria-label":z,"on:click":_.CZ(function(Q){_.Ng(28662);G==null||G(Q);return!1})},_.W("span",null,_.W(_.i5,{icon:function(){return b().iconName}}))))},"Ai");var Y3L=_.d(function(C){var F=C.volumeProps;var G=C.onClickFn;var V=C.useOutlineIcon;var J=C.useDelhiIcons;return _.W("yt-mute-toggle-button",null,_.W(ROr,{muteIconType:function(){var b=F();return b.volumeMuted||b.volume===0?0:b.volume>50?1:2},
onClick:function(b){var z=F().playerApi;z&&(z.isMuted()?z.unMute():z.mute(!1));G==null||G(b)},
useOutlineIcon:function(){return!(V==null||!V())},
useDelhiIcons:function(){return!(J==null||!J())}}))},"Bi");
Y3L.idomCompat=!0;var Td8=_.d(function(C){var F=C.data;var G=_.Jt("ytm-paid-content-overlay-renderer");return _.W("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:G,"on:animationend":_.CZ(function(){G.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.W(_.zV,{command:function(){return F().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.W(_.a,{cond:function(){var V;return(V=F().icon)==null?void 0:V.iconType},
then:function(){return _.W("span",null,_.W(_.i5,{icon:function(){var V;return(V=F().icon)==null?void 0:V.iconType}}))}}),_.W("div",{class:"ytmPaidContentOverlayText"},_.W(_.mn,{text:function(){return F().text}})),_.W(_.a,{cond:function(){return F().navigationEndpoint},
then:function(){return _.W(_.i5,{icon:"CHEVRON_RIGHT"})}})))},"Ci");
Td8.idomCompat=!0;var L9s=[].concat(_.da([{register:function(C){var F=s6_(C),G;(G=C().playerApi)==null||G.addEventListener("onVolumeChange",F);return function(){}}},
{register:function(C){var F=qHr(C);C=C().playerApi;C==null||C.addEventListener("captionschanged",F);C==null||C.addEventListener("captionssettingschanged",F);C==null||C.addEventListener("onCaptionsTrackListChanged",F);return function(){}}},
{register:function(C){if(!_.y("mweb_screenreader_accessible_player"))return function(){};
var F=Pnr(C),G=document.querySelector("video");G==null||G.addEventListener("touchend",F);return function(){G==null||G.removeEventListener("touchend",F)}}},
{register:function(C){if(!_.y("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var F=Pnr(C),G=document.querySelector("video");G==null||G.addEventListener("focus",F);return function(){G==null||G.removeEventListener("focus",F)}}}]),[{register:function(C){var F=Aud(C),G;
(G=C().playerApi)==null||G.addEventListener("onStateChange",F);return function(){}}},
{register:function(C){var F=eit(C),G;(G=C().playerApi)==null||G.addEventListener("onPlaybackRateChange",F);return function(){}}},
{register:function(C){var F=dkt(C),G;(G=C().playerApi)==null||G.addEventListener("onVideoDataChange",F);return function(){}}},
{register:function(C){var F=xkt(C),G,V;(G=C())==null||(V=G.playerApi)==null||V.addEventListener("onVideoProgress",F);return function(){}}}]);var o28=_.d(function(C){var F=C.data;var G=function(){return _.iQ("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+F().playbackRate})};
return _.W(_.a,{cond:function(){return F().playbackRate&&F().playbackRate!==1},
then:function(){return _.W("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.W("div",{class:"ytPlaybackRateOverlayOverlay"},_.W(sAr,{direction:1,size:"small"}),_.W("div",{class:"ytPlaybackRateOverlayLabel"},G)))}})},"Ei");var r4_=_.d(function(C){var F=C.data;return _.W("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.W(_.a,{cond:function(){var G,V=(G=F())==null?void 0:G.playerResponse,J;return V==null?void 0:(J=V.paidContentOverlay)==null?void 0:J.paidContentOverlayRenderer},
then:function(G){return _.W(Td8,{data:G})}}))},"Gi"),KDr=_.d(function(C){var F=C.props;
var G=C.data;var V=C.options;var J=function(){var t,k,U,H;return(t=G())==null?void 0:(k=t.playerResponse)==null?void 0:(U=k.playerConfig)==null?void 0:(H=U.inlinePlaybackConfig)==null?void 0:H.showAudioControls},b=function(){var t,k;
if(J()&&((t=V())==null?void 0:(k=t.additionalButton)==null?void 0:k.button)!==void 0){var U,H,l;t=(U=G())==null?void 0:(H=U.playerApi)==null?void 0:(l=H.getSize())==null?void 0:l.height;if(!(t===void 0||t<180)){var N,S;return(N=V())==null?void 0:(S=N.additionalButton)==null?void 0:S.button}}},z=function(){var t,k;
return(t=V())==null?void 0:(k=t.additionalButton)==null?void 0:k.thumbnailOverlayButtonRenderers},Q=function(){var t,k;
return(t=V())==null?void 0:(k=t.additionalButton)==null?void 0:k.thumbnailOverlayButtonViewModels},E=function(){var t=[_.W(Y3L,{volumeProps:F}),
_.W(dWx,{playerControlsProps:F})];b()===1&&t.push(_.W(hOt,{playerApi:function(){return F().playerApi}}));
b()===2&&t.push(_.W(c4U,{appApi:function(){return F().appApi}}));
b()===3&&t.push(_.W(A4s,{playerApi:function(){return F().playerApi}}));
var k=z();if(b()===4&&k){k=_.u(k);for(var U=k.next(),H={};!U.done;H={tooltip$jscomp$2:void 0,ariaLabel$jscomp$19:void 0,icon$jscomp$50:void 0,command$jscomp$596:void 0},U=k.next()){U=U.value;H.tooltip$jscomp$2=U.tooltip;var l=void 0,N=void 0;H.ariaLabel$jscomp$19=((l=U.accessibility)==null?void 0:(N=l.accessibilityData)==null?void 0:N.label)||H.tooltip$jscomp$2;l=void 0;H.icon$jscomp$50=(l=U.icon)==null?void 0:l.iconType;H.command$jscomp$596=U.command;H.tooltip$jscomp$2&&H.ariaLabel$jscomp$19&&H.icon$jscomp$50&&
t.push(_.W(eOW,{title:function(S){return function(){return S.tooltip$jscomp$2}}(H),
ariaLabel:function(S){return function(){return S.ariaLabel$jscomp$19}}(H),
icon:function(S){return function(){return S.icon$jscomp$50}}(H),
command:function(S){return function(){return S.command$jscomp$596}}(H)}))}}k=Q();
if(b()===4&&k)for(k=_.u(k),U=k.next(),H={};!U.done;H={tooltip$jscomp$3:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$51:void 0,command$jscomp$597:void 0,trackingParamsVeType:void 0},U=k.next())U=U.value,H.tooltip$jscomp$3=U.title,H.ariaLabel$jscomp$20=U.accessibilityText||H.tooltip$jscomp$3,H.icon$jscomp$51=U.iconName,H.command$jscomp$597=_.ZD(U.onTap),N=l=void 0,H.trackingParamsVeType=((l=U.loggingDirectives)==null?0:l.trackingParams)?(N=aQd(_.p9(U.loggingDirectives.trackingParams)))==null?void 0:
_.Wk(N,2):void 0,H.tooltip$jscomp$3&&H.ariaLabel$jscomp$20&&H.icon$jscomp$51&&t.push(_.W(eOW,{title:function(S){return function(){return S.tooltip$jscomp$3}}(H),
ariaLabel:function(S){return function(){return S.ariaLabel$jscomp$20}}(H),
icon:function(S){return function(){return S.icon$jscomp$51}}(H),
command:function(S){return function(){return S.command$jscomp$597}}(H),
visualElementId:function(S){return function(){return S.trackingParamsVeType}}(H)}));
return t};
return _.W(_.a,{cond:J,then:function(){return _.W("div",{class:"ytInlinePlayerControlsTopRightControls"},_.W(_.Ag,{each:E},function(t){return _.W("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.W("div",{class:"ytInlinePlayerControlsButtonIcon"},t))}))}})},"Hi"),mW8=_.d(function(C){var F=C.props;
var G=C.data;var V=C.options;C={};C=_.py("ytInlinePlayerControlsBottomRightControls",(C.ytInlinePlayerControlsBottomRightControlsHidden=function(){var J;return RiU(G(),V())&&((J=V())==null?void 0:J.insetProgressBar)&&(F().isHovering||F().isDragging)},C));
return _.W("div",{class:C},_.W(DWh,{data:G}),_.W(_.a,{cond:function(){var J;return!((J=V())==null?0:J.hideTimeDisplay)},
then:function(){return _.W(pYV,{props:F,data:G})}}))},"Ii"),DWh=_.d(function(C){var F=C.data;
return _.W(_.uC,{data:function(){var G;return M3s((G=F())==null?void 0:G.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:xW3})},"Ji"),pYV=_.d(function(C){var F=C.props;
var G=C.data;return _.W(_.a,{cond:function(){return F().isLive},
then:function(){return _.W(CEx,{props:F,data:G})},
else:function(){return _.W(jt3,{props:F,data:G})}})},"Ki"),jt3=_.d(function(C){var F=C.props;
var G=C.data;var V=_.w0(function(){var J;return SH3((J=G())==null?void 0:J.thumbnailOverlays)},void 0,"cxM54");
return _.W("div",{class:_.py("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.Oy.PLAYER_TIME_ELAPSED+" "+_.gtT(F().playedTime)}},_.W(_.KR,{data:function(){var J=_.gtT(F().videoDuration-F().playedTime);
return Object.assign({},{type:17,text:J},V())}}))},"Li"),F5l=_.d(function(C){C=C.badgeShapeData;
return _.W("div",{class:_.py("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.W(_.KR,{data:C}))},"Mi"),CEx=_.d(function(C){var F=C.data;
C=_.w0(function(){if(_.y("use_thumbnail_overlay_time_status_renderer_for_live_badge")){var G,V;return(G=F())==null?void 0:(V=G.thumbnailOverlays)==null?void 0:V.find(function(J){return J.thumbnailOverlayTimeStatusRenderer||J.thumbnailOverlayBadgeViewModel})}},void 0,"MJfDhd");
return _.W(_.a,{cond:C,then:function(G){return _.W(_.uC,{data:G},{thumbnailOverlayTimeStatusRenderer:function(V){var J=V.data;V=_.w0(function(){return _.XJs(J(),0)},void 0,"qFhnic");
return _.W(F5l,{badgeShapeData:V})},
thumbnailOverlayBadgeViewModel:function(V){return _.W(_.Iqr,{data:V.data})}})},
else:function(){var G={type:18,text:_.Oy.PLAYER_LIVE_LABEL,icon:"LIVE"};return _.W(F5l,{badgeShapeData:function(){return G}})}})},"Ni"),Gt3=_.d(function(C){var F=C.props;
var G=C.data;var V=C.options;return _.W(_.OOt,{progressBarProps:F,config:function(){var J,b=_.Z((J=G())==null?void 0:J.multiMarkersPlayerBar,_.B$8),z;J=((z=V())==null?0:z.insetProgressBar)?2:1;var Q;z=(Q=V())==null?void 0:Q.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:J,chapterData:b,isInlinePlayback:!0,doSeekOnClick:z,playheadDotBehavior:z?1:0}}})},"Oi");_.gQ(_.d(function(C){var F=C.data;var G=C.appApi;var V=C.options;var J=cus(F,gvr(G));C={};G={};return _.W("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.W("div",{class:_.py("ytInlinePlayerControlsDarkenedOverlay",(C.ytInlinePlayerControlsDarkenedOverlayShow=function(){return J().isHovering},C))}),_.W(q3V,null),_.W(o28,{data:J}),_.W(r4_,{data:F}),_.W(fbr,{playerControlsProps:J,
isShortsPage:!1}),_.W("div",{class:_.py((G.ytInlinePlayerControlsControlsHidden=function(){return J().isDragging},G))},_.W(KDr,{props:J,
data:F,options:V}),_.W(mW8,{props:J,data:F,options:V})),_.W(_.a,{cond:function(){return RiU(F(),V())},
then:function(){return _.W(Gt3,{props:J,data:F,options:V})}}))},"Fi"),"yt-inline-player-controls",{props:{data:_.CJ,
appApi:_.s9,options:_.CJ}});var X8=function(){var C=_.B.apply(this,arguments)||this;C.opts=null;C.playerControlsData=null;C.playerControlsAppApi={openInMiniplayer:function(){C.openInMiniplayer()}};
C.playerControlsOptions={};C.noAnimation=!1;C.playbackIntentTriggered=!1;C.positionData=null;C.hidden=!0;C.active=!1;C.playing=!1;C.videoPreviewDataIndex=0;C.JSC$19368_playerPromise=null;C.player=null;C.enableAudioControls=!1;C.hasBeenUnmuted=!1;C.captionsHaveBeenTurnedOff=!1;C.JSC$19368_playerEvents=new Map;C.videoPreviewFetchRequest=null;C.scheduledPreviewEndJobId=null;C.JSC$19368_preventProgressSaveTimer=null;C.watchEndpointStartTimeUpdaterInterval=null;C.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};C.windowOnBlurFn=function(){C.deactivate()};
return C};
_.O(X8,_.B);_.n=X8.prototype;
_.n.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",
channelDisclosureViewModel:"yt-channel-disclosure-view-model"}}}};
_.n.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19368_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19368_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19368_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19368_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.Gp(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.Gp(this,this.onScroll))};
_.n.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.Gp(this,this.onScroll))};
_.n.onPageTypeChange=function(){this.deactivate()};
_.n.onWindowResized=function(){this.deactivate()};
_.n.onCaptionsChanged=function(C){C=!!C.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!C);this.setCaptionSize()};
_.n.setCaptionSize=function(){var C;if(this.active&&!this.captionsHaveBeenTurnedOff&&((C=this.player)==null?0:C.getCaptionWindowContainerId())){var F;(F=this.player)==null||F.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.n.currentPageAllowed=function(){return!this.isWatchPage};
_.n.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.y("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var C=this.positionData,F=C.initialTopPosition,G=C.initialHorizontalPosition;_.jr(this.hostElement,{"--ytd-video-preview-translate-left":C.finalHorizontalPosition-G+"px","--ytd-video-preview-translate-top":C.finalTopPosition-F+"px","--ytd-video-preview-original-top-position":F+
"px","--ytd-video-preview-original-horizontal-position":G+"px","--ytd-video-preview-initial-scale":"scale("+C.initialScale+")","--ytd-video-preview-width":C.videoPreviewWidth+"px","--ytd-video-preview-height":C.videoPreviewHeight+"px"});return!0};
_.n.isOutOfBounds=function(C){var F=C.initialHorizontalPosition+12;C=F+C.videoPreviewWidth>window.innerWidth;return F<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&F<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&F<72||C};
_.n.handleOpenVideoPreviewAction=function(C){var F=this,G;return _.I(function(V){if(!F.currentPageAllowed())return V.return(0);F.opts=C;return(G=F.alignVideoPreviewForAnimation(C.thumbnail))?V.return(F.activate()):V.return(0)})};
_.n.onMouseLeave=function(C){var F,G;(F=this.opts)==null||(G=F.mouseleaveCallback)==null||G.call(F);this.shouldDeactivateOnMouseLeave(C)&&this.deactivate()};
_.n.onScroll=function(){var C,F;((C=this.opts)==null?0:C.isAutoplay)&&((F=this.opts)==null?0:F.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.n.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.gT.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.n.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.n.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",X8.JSC$19367_DEFAULT_CLICK_LOCATION_BEHAVIOR,X8.JSC$19367_CLICK_LOCATION_ID_MAP)};
_.n.shouldDeactivateOnMouseLeave=function(C){C=C.relatedTarget;if(!C)return!0;var F;return(F=this.opts)!=null&&F.mediaRenderer?!_.r7(this.opts.mediaRenderer).contains(C):!0};
_.n.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.n.onPlaybackStart=function(){var C=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$19368_preventProgressSaveTimer=
_.rQ(_.gT,function(){C.resetPreventProgressSaveTimer()},1E4);
var F;if((F=this.opts)==null?0:F.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.rQ(_.gT,function(){C.hasMultipleVideoPreviews()?C.startPlaybackForNextVideo():C.deactivate()},this.opts.videoPreviewDurationMs);
var G;this.player.setGlobalCrop(((G=this.opts)==null?0:G.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.n.getRoundedCornersSize=function(){var C;if((C=this.opts)==null?0:C.roundedCornersSize){var F;return(F=this.opts)==null?void 0:F.roundedCornersSize}var G;if((G=this.opts)==null?0:G.enableRounding){var V;if(((V=this.opts)==null?void 0:V.thumbnailSize)==="small")return 1;var J;if(((J=this.opts)==null?void 0:J.thumbnailSize)==="medium")return 2;var b;if(((b=this.opts)==null?void 0:b.thumbnailSize)==="large")return 3}return _.y("web_imp_inset_progress_bar")?3:0};
_.n.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.n.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.n.onMediaContainerClick=function(C){this.isShortcutClick(C)||(this.navigateToWatch(C),C.preventDefault(),C.stopPropagation())};
_.n.activate=function(){var C=this,F,G,V,J,b,z,Q,E,t;return _.I(function(k){switch(k.nextAddress){case 1:if(!C.currentPageAllowed())return k.return(0);G=(F=C.videoPreviewData)==null?void 0:F.inlinePlaybackEndpoint;V=_.BB.instance;if(!G||!V)return k.return(0);C.playbackIntentTriggered=!0;((J=C.opts)==null?0:J.mediaRenderer)&&((b=C.opts)==null||!b.isAutoplay)&&Ntx(C.opts.mediaRenderer,function(){C.deactivate()});
_.zH(C,function(){C.revealPreviewUi()});
z={};_.y("enable_unknown_lact_fix_on_html5")&&(_.I8().resolve(_.zb),z.lact=_.I1());C.videoPreviewFetchRequest=kHW(V,C.getInlinePlaybackRequestData(C.videoPreviewData),z);_.yy(k,2);return k.yield(C.videoPreviewFetchRequest,4);case 4:Q=k.yieldResult;if(((E=Q)==null?void 0:(t=E.playabilityStatus)==null?void 0:t.status)==="OK")return k.return(C.handlePlayerResponse(Q));throw Error("ek");case 2:_.wa(k),C.deactivate();case 3:return k.return(1)}})};
_.n.getInlinePlaybackRequestData=function(C){var F,G=_.y("web_imp_player_mute_params")?((F=this.opts)==null?void 0:F.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:C.inlinePlaybackEndpoint,startPlaybackInMutedState:G}};
_.n.handlePlayerResponse=function(C){var F=this,G,V,J,b,z,Q,E,t,k,U,H,l;return _.I(function(N){if(N.nextAddress==1){G=F.getInlinePlaybackVideoId();if(!(((V=C)==null?0:(J=V.videoDetails)==null?0:J.videoId)&&F.currentPageAllowed()&&F.playbackIntentTriggered&&F.opts&&G))return F.deactivate(),N.return(0);if(C.videoDetails.videoId!==G)return N.return(0);F.enableAudioControls=!!((b=C.playerConfig)==null?0:(z=b.inlinePlaybackConfig)==null?0:z.showAudioControls);C.trackingParams=F.getInlinePlaybackTrackingParams();
if(!F.inlinePlayer)return N.return(0);Q={};if(t=_.Z((E=F.videoPreviewData)==null?void 0:E.inlinePlaybackEndpoint,_.eT))Q.watch_endpoint=t;if(F.videoPreviewData){var S,f=(S=_.Z(F.videoPreviewData.inlinePlaybackEndpoint,_.eT))==null?void 0:S.startTimeSeconds;f!==void 0&&(C.playerConfig||(C.playerConfig={}),C.playerConfig.playbackStartConfig||(C.playerConfig.playbackStartConfig={}),C.playerConfig.playbackStartConfig.startPosition||(C.playerConfig.playbackStartConfig.startPosition={}),C.playerConfig.playbackStartConfig.startSeconds=
f,C.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(f*1E3))}F.inlinePlayer.loadVideoWithPlayerResponse(C,Q);if(F.JSC$19368_playerPromise)return N.jumpTo(2);F.JSC$19368_playerPromise=F.inlinePlayer.getPlayerPromise();return N.yield(F.JSC$19368_playerPromise,3)}N.nextAddress!=2&&(k=N.yieldResult,k.setInlinePreview(!0),U=!_.y("web_imp_theater_bugfix"),k.setSizeStyle(!1,U),F.ytPlayerListenerBehavior.listenToPlayerEvents(k,F.JSC$19368_playerEvents),F.player=k,_.oo(F.hostElement,
"player-api-ready"));((H=F.opts)==null?0:H.showPlayerControls)&&F.videoPreviewData&&F.player&&(F.playerControlsData={playerResponse:C,isInlinePlayback:!0,thumbnailOverlays:F.videoPreviewData.thumbnailOverlays,playerApi:F.player},F.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!F.unroundCornersForPlayback,additionalButton:F.getAdditionalButtonType(F.videoPreviewData.thumbnailOverlays),hideTimeDisplay:(l=F.opts)==null?void 0:l.hideTimeDisplay});return N.return(2)})};
_.n.revealPreviewUi=function(){var C=this;this.playbackIntentTriggered&&_.tXq(this,function(){C.hasThumbnailPositionChangedSinceTriggered()||(C.updateActiveState(!0),C.noAnimation=!1)})};
_.n.hasThumbnailPositionChangedSinceTriggered=function(){var C=this.positionData,F=this.getThumbnailPositionData();return(C==null?void 0:C.initialTopPosition)!==(F==null?void 0:F.initialTopPosition)||(C==null?void 0:C.initialHorizontalPosition)!==(F==null?void 0:F.initialHorizontalPosition)};
_.n.getThumbnailPositionData=function(){var C,F;if((F=this.opts)==null||!F.thumbnail)return null;F=this.opts.thumbnail;var G=((C=this.opts)==null?0:C.cropPlayerToFillThumbnailHorizontally)?!1:!0;var V=F.getBoundingClientRect();C=V.width;F=V.height;var J=V.top+window.scrollY;V=V.left+window.scrollX;var b=G?Math.ceil(C):C;G=G?Math.ceil(F):F;var z=C/b;C={initialScale:z,initialTopPosition:J-12*z,finalTopPosition:J-12-(G-F)/2,initialHorizontalPosition:V-(12+(b-C)/2),finalHorizontalPosition:V-12-(b-C)/
2,videoPreviewWidth:b,videoPreviewHeight:G};return C};
_.n.updateActiveState=function(C){this.active=C;this.ytdReduxBehavior.dispatch(_.rh({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:C}))};
_.n.stopPlayer=function(C){C=C.resetWatchEndpointStartTime===void 0?!1:C.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(C)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.gT.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.n.deactivate=function(C){C=C===void 0?{}:C;C=C.resetWatchEndpointStartTime===void 0?!1:C.resetWatchEndpointStartTime;du&&(du.disconnect(),du=null);this.stopPlayer({resetWatchEndpointStartTime:C});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.n.isValidThumbnailOverlayButton=function(C,F){C=C.thumbnailOverlayButtonRenderer;var G;return!!C&&!!C.tooltip&&!((G=C.icon)==null||!G.iconType)&&F.includes(C.icon.iconType)};
_.n.isValidThumbnailOverlayButtonViewModel=function(C,F){var G;C=_.Z((G=C.thumbnailOverlayButtonViewModel)==null?void 0:G.overlayButton,_.jl);return!!C&&!!C.title&&!!C.iconName&&F.includes(C.iconName)};
_.n.getAdditionalButtonType=function(C){var F=this;if(_.y("web_imp_fastforward_button"))return{button:1};if(_.y("web_imp_miniplayer_button"))return{button:2};if(_.y("web_imp_playback_speed_button"))return{button:3};var G=["BOX_STACK_3"],V=(C||[]).filter(function(b){return F.isValidThumbnailOverlayButton(b,G)}).map(function(b){return b.thumbnailOverlayButtonRenderer});
if(V.length)return{button:4,thumbnailOverlayButtonRenderers:V};var J=["BOX_STACK_3"];C=(C||[]).filter(function(b){return F.isValidThumbnailOverlayButtonViewModel(b,J)}).map(function(b){return _.Z(b.thumbnailOverlayButtonViewModel.overlayButton,_.jl)});
if(C.length)return{button:4,thumbnailOverlayButtonViewModels:C}};
_.n.allowCaptions=function(){var C;return!((C=this.opts)==null?0:C.forceCaptionsOff)};
_.n.allowUnmuting=function(){var C;return this.enableAudioControls&&!((C=this.opts)==null?0:C.forceMutedVolume)};
_.n.beginStartTimeUpdater=function(){var C=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.Z9(function(){C.updateWatchEndpointStartTime()},1E3)};
_.n.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.n.resetPreventProgressSaveTimer=function(){this.JSC$19368_preventProgressSaveTimer!==null&&(_.gT.cancelJob(this.JSC$19368_preventProgressSaveTimer),this.JSC$19368_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.n.updateWatchEndpointStartTime=function(C){var F=this.videoPreviewData;if(this.player&&F!=null&&F.inlinePlaybackEndpoint&&!this.JSC$19368_preventProgressSaveTimer){C=C?0:Math.floor(this.player.getCurrentTime());var G=_.Z(F.navigationEndpoint,_.eT);G&&(G.startTimeSeconds=C);if(F=_.Z(F.inlinePlaybackEndpoint,_.eT))F.startTimeSeconds=C}};
_.n.isShortcutClick=function(C){return!!C&&(C.ctrlKey||C.shiftKey||C.metaKey)};
_.n.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.n.openInMiniplayer=function(){var C=this,F,G;return _.I(function(V){if(V.nextAddress==1){G=(F=C.videoPreviewData)==null?void 0:F.navigationEndpoint;if(!G)return V.return();_.v0().lockupActivation=!0;return V.yield(_.OgS(_.I8().resolve(_.Od),G),2)}_.v0().userActivation=!0;_.S9(V)})};
_.n.navigateToWatch=function(C){var F,G=(F=this.videoPreviewData)==null?void 0:F.navigationEndpoint;if(G){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(G,C,!0);else{var V;_.y("web_thumbnail_to_watch_transition")&&((V=this.opts)==null?0:V.thumbnail)&&_.yd7(_.I8().resolve(_.vq),this.opts.thumbnail);_.oo(this.hostElement,"yt-navigate",{endpoint:G})}this.deactivate()}};
_.n.getInlinePlaybackVideoId=function(){var C,F;return(F=_.Z((C=this.videoPreviewData)==null?void 0:C.inlinePlaybackEndpoint,_.eT))==null?void 0:F.videoId};
_.n.getInlinePlaybackTrackingParams=function(){var C,F;return(C=this.videoPreviewData)==null?void 0:(F=C.inlinePlaybackEndpoint)==null?void 0:F.clickTrackingParams};
_.n.hasMultipleVideoPreviews=function(){var C;return!!(((C=this.opts)==null?0:C.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.n.startPlaybackForNextVideo=function(){var C;(C=this.opts)!=null&&C.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())};
_.I6.Object.defineProperties(X8.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.opts)==null?0:C.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.opts)==null||!C.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 C;if(Array.isArray((C=this.opts)==null?void 0:C.videoPreviewData)){var F;return(F=this.opts)==null?void 0:F.videoPreviewData[this.videoPreviewDataIndex]}var G;return(G=this.opts)==null?void 0:G.videoPreviewData}}});
X8.prototype.onIsAdsVideoChange=X8.prototype.onIsAdsVideoChange;X8.prototype.onInlinePreviewIsEnabledChange=X8.prototype.onInlinePreviewIsEnabledChange;X8.prototype.optsChanged=X8.prototype.optsChanged;X8.prototype.onMouseLeave=X8.prototype.onMouseLeave;X8.JSC$19367_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);X8.JSC$19367_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"}];
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],X8.prototype,"actionHandlerBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],X8.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Fi.YtPlayerListenerBehavior),_.Y("design:type",_.GR)],X8.prototype,"ytPlayerListenerBehavior",void 0);_.R([_.w(_.DL.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],X8.prototype,"ytdGuideStateAwareBehavior",void 0);
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],X8.prototype,"componentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],X8.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],X8.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.uY.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],X8.prototype,"ytSparklesClickLocationBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],X8.prototype,"opts",void 0);
_.R([_.L(),_.Y("design:type",Object)],X8.prototype,"playerControlsData",void 0);_.R([_.L(),_.Y("design:type",Object)],X8.prototype,"playerControlsAppApi",void 0);_.R([_.L(),_.Y("design:type",Object)],X8.prototype,"playerControlsOptions",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],X8.prototype,"noAnimation",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],X8.prototype,"hidden",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],X8.prototype,"active",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],X8.prototype,"playing",void 0);_.R([_.L({selector:_.f7Z}),_.Y("design:type",Boolean)],X8.prototype,"inlinePreviewIsEnabled",void 0);_.R([_.L(),_.Y("design:type",String)],X8.prototype,"pagePath",void 0);_.R([_.L({selector:_.LPo}),_.Y("design:type",Boolean)],X8.prototype,"isWatchPage",void 0);
_.R([_.M("videoPreviewData"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],X8.prototype,"thumbnailData",null);_.R([_.M("opts","active"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],X8.prototype,"hidePlayerControls",null);_.R([_.M("opts"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],X8.prototype,"isAdsVideo",null);
_.R([_.M("opts"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],X8.prototype,"roundedCornersSmall",null);_.R([_.M("opts"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],X8.prototype,"roundedCornersMedium",null);_.R([_.M("opts"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],X8.prototype,"roundedCornersLarge",null);
_.R([_.M("opts"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],X8.prototype,"unroundCornersForPlayback",null);_.R([_.M("opts","videoPreviewDataIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],X8.prototype,"videoPreviewData",null);_.R([_.L(),_.Y("design:type",Object)],X8.prototype,"videoPreviewDataIndex",void 0);_.R([_.$z("#inline-player"),_.Y("design:type",Object)],X8.prototype,"inlinePlayer",void 0);
_.R([_.VG("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[MouseEvent]),_.Y("design:returntype")],X8.prototype,"onMouseLeave",null);_.R([_.zp("opts"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],X8.prototype,"optsChanged",null);_.R([_.zp("inlinePreviewIsEnabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],X8.prototype,"onInlinePreviewIsEnabledChange",null);
_.R([_.iP("isAdsVideo"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],X8.prototype,"onIsAdsVideoChange",null);_.R([_.e({is:"ytd-video-preview",disableElementRegistration:!0})],X8);
_.q(X8,"ytd-video-preview",function(){if(v2L!==void 0)return v2L;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return v2L=C},{mode:2});
}catch(e){_._DumpException(e)}
try{
var gfh,R0_,Ys_;gfh=function(C){return _.y("kevlar_watch_cinematics_invisible")||C.fullscreen&&_.y("kevlar_watch_cinematics_invisible_in_fullscreen")||C.theater&&!C.fullscreen&&_.y("kevlar_watch_cinematics_invisible_in_theater")};
R0_=function(){var C=document.createElement("canvas"),F=C.getContext("2d");if(!F)throw Error("No");_.fk(C,{position:"absolute",width:"100%",height:"100%"});return{element:C,context:F}};
Ys_=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.y("kevlar_watch_cinematics_css_blur")};
_.TSL=function(C,F,G){return Math.abs(C-F)<=(G||1E-6)};
_.ofY=function(C,F){return C==F?!0:C&&F?C.width==F.width&&C.height==F.height:!1};_.rGl=new _.Cx("notificationActionRenderer");var KiF=function(C){var F=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.Cd;this.element.addEventListener("load",function(){F.loaded=!0;F.resolver.resolve(F.element)});
this.element.addEventListener("error",function(){F.failed=!0});
this.element.src=C};var DlS=function(C,F){this.image=C;this.frame=F};
DlS.prototype.drawToCanvas=function(C,F){var G=this.frame.width/this.frame.columns,V=this.frame.height/this.frame.rows,J=F.offsetX,b=F.offsetY;gfh(F)?(C.fillStyle=F.fullscreen?"#000":"#0f0f0f",C.fillRect(J,b,(F==null?void 0:F.width)||G,(F==null?void 0:F.height)||V)):C.drawImage(this.image,this.frame.column*G,this.frame.row*V,G,V,J,b,(F==null?void 0:F.width)||G,(F==null?void 0:F.height)||V)};
var pjh=function(C){this.color=C};
pjh.prototype.drawToCanvas=function(C,F){var G=F.offsetX,V=F.offsetY,J=F.width,b=F.height;C.fillStyle=gfh(F)?F.fullscreen?"#000":"#0f0f0f":this.color;C.fillRect(G,V,J,b)};var aG=function(C,F){_.Rb.call(this);this.playerApi=F;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.Ml(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();ml_(this,C);Czh(this);this.update()};
_.O(aG,_.Rb);aG.prototype.addEventListeners=function(){var C=this,F=function(){C.update()},G=function(J){C.paused||(J.type==="newdata"&&(C.mosaics.clear(),jM6(C),kE(C)),Czh(C),C.update())},V=function(){C.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",F);this.playerApi.addEventListener("onVideoDataChange",G);this.playerApi.addEventListener("onStateChange",V);this.addOnDisposeCallback(function(){C.playerApi.removeEventListener("onVideoProgress",F);C.playerApi.removeEventListener("onVideoDataChange",G);C.playerApi.removeEventListener("onStateChange",V)})};
var ml_=function(C,F){C.cinematicContainerRenderer!==F&&(C.cinematicContainerRenderer=F,jM6(C),kE(C),C.colorStoreUpdateJobId=_.gT.addLowPriorityJob(function(){var G;if((G=C.cinematicContainerRenderer.colorStore)!=null&&G.sampledColors){G=Infinity;for(var V=_.u(C.cinematicContainerRenderer.colorStore.sampledColors),J=V.next();!J.done;J=V.next()){J=J.value;var b=Number(J.key);b!==0&&b<G&&(G=b);b=_.lE(J.value);C.colorStore.set(J.key,b)}C.colorStoreTimeInterval=G}}))},jM6=function(C){C.colorStoreUpdateJobId&&
(_.gT.cancelJob(C.colorStoreUpdateJobId),C.colorStoreUpdateJobId=void 0);
C.colorStore.clear();C.currentStoryboardColor=void 0},FgB=function(C,F){var G;
return(G=C.getStoryboardFrame(F))==null?void 0:G.url};
aG.prototype.onPlayerStateChange=function(){this.update()};
aG.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var Czh=function(C){var F=C.getStoryboardFrame(0);F&&(F=new _.Ml(F.width/F.columns,F.height/F.rows),_.ofY(C.currentStoryboardSize,F)||(C.currentStoryboardSize=F,C.publish("STORYBOARD_SIZE_CHANGED",C.currentStoryboardSize)))},GIn=function(C,F){C.currentStoryboardIndex=F;
C.pendingStoryboardIndex=NaN;F=C.getStoryboardFrame(C.currentStoryboardIndex);C.currentStoryboard=new DlS(C.mosaics.get(F.url).element,F);C.publish("STORYBOARD_CHANGED",C.currentStoryboard);C.lastUpdateTime=(0,_.Et)()};
aG.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var kE=function(C){C.currentStoryboardIndex=NaN;C.pendingStoryboardIndex=NaN;C.currentStoryboard&&(C.currentStoryboard=void 0,C.publish("STORYBOARD_CHANGED",void 0));C.lastUpdateTime=NaN};
aG.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)kE(this);else{var C=this.playerApi.getPlayerState(1);if(C===-1||C===5||C===0)kE(this);else if(isNaN(this.lastUpdateTime)||!((0,_.Et)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(C=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){C=""+Math.round(C*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var F=this.colorStore.get(C);F?F!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=F,this.currentStoryboard=new pjh(F),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.Et)()):(_.Yw(new _.Ay("Could not find color for timestamp: "+C,this.cinematicContainerRenderer)),kE(this))}else kE(this);else VoY(this,C)}};
var VoY=function(C,F){var G=C.getStoryboardFrameIndex(F);if(G!==C.currentStoryboardIndex&&G!==C.pendingStoryboardIndex){F=FgB(C,G);var V=C.mosaics.get(F);V?V.loaded&&GIn(C,G):(C.pendingStoryboardIndex=G,G=new KiF(F),C.mosaics.set(F,G),G.resolver.promise.then(function(){if(!C.isDisposed()&&!C.paused&&!isNaN(C.pendingStoryboardIndex)){var J=FgB(C,C.pendingStoryboardIndex);if(J){var b;(b=C.mosaics.get(J))!=null&&b.loaded&&GIn(C,C.pendingStoryboardIndex)}else kE(C)}}))}};
aG.prototype.getStoryboardFrameIndex=function(C){var F=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(C,F)};
aG.prototype.getStoryboardFrame=function(C){var F=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,G,V;return((V=(G=this.playerApi).getStoryboardFrame)==null?void 0:V.call(G,C,F))||null};
aG.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var HH=function(C,F,G,V){V=V===void 0?!1:V;_.hV.call(this);this.cinematicContainerRenderer=F;this.playerApi=G;this.theater=this.fullscreen=!1;var J;this.ambientLightThemeEnabled=!V&&!!(F==null?0:(J=F.config)==null?0:J.enableInLightTheme);this.ambientFullscreenEnabled=V&&_.y("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=V&&_.y("web_cinematic_theater_mode");this.container=document.createElement("div");C.appendChild(this.container);var b;if(_.y("web_cinematic_theater_mode")||_.y("web_cinematic_fullscreen")||
(F==null?0:(b=F.config)==null?0:b.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);ifn(this);C=this.ambientV2Container||this.container;this.backCanvas=R0_();this.frontCanvas=R0_();C.appendChild(this.backCanvas.element);C.appendChild(this.frontCanvas.element);this.storyboardManager=new aG(F,this.playerApi);_.Nd(this,this.storyboardManager);this.addEventListeners();JVL(this)?$dl(this,100+UQ(this)*3*2,100+UQ(this)*3*2):bf0(this);
nd_(this,this.storyboardManager.currentStoryboard)};
_.O(HH,_.hV);var ifn=function(C){C.ambientV2Container?u_T(C):(_.fk(C.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+znT(C)+", "+QMS(C)+")"}),Ys_()&&_.fk(C.container,"filter","blur("+_.a8("cinematic_watch_css_filter_blur_strength",40)+"px)"))},u_T=function(C){if(C.ambientV2Container){var F=C.playerApi.getVideoAspectRatio();
_.fk(C.container,{"aspect-ratio":""+F,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.fk(C.ambientV2Container,{"aspect-ratio":""+F,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+znT(C)+", "+QMS(C)+")"});Ys_()&&_.fk(C.ambientV2Container,"filter","blur("+_.a8("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
HH.prototype.setFullscreen=function(C,F){this.fullscreen=C;this.theater=!!F;ifn(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),C=this.storyboardManager.currentStoryboard,Ial(this),C&&Edz(this,C)};
HH.prototype.addEventListeners=function(){var C=this,F=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(J){nd_(C,J)}),G=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){bf0(C)});
this.addOnDisposeCallback(function(){C.storyboardManager.unsubscribeByKey(F);C.storyboardManager.unsubscribeByKey(G)});
if(this.ambientV2Container){var V=function(){u_T(C)};
this.playerApi.addEventListener("onVideoDataChange",V);this.addOnDisposeCallback(function(){C.playerApi.removeEventListener("onVideoDataChange",V)})}};
var bf0=function(C){if(!JVL(C)){var F=C.storyboardManager.currentStoryboardSize;isNaN(F.width)||isNaN(F.height)||$dl(C,Number(F.width)+UQ(C)*3*2,Number(F.height)+UQ(C)*3*2)}},$dl=function(C,F,G){C.backCanvas.element.width=F;
C.backCanvas.element.height=G;C.frontCanvas.element.width=F;C.frontCanvas.element.height=G},JVL=function(C){return C.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},nd_=function(C,F,G){G=G===void 0?!1:G;
var V=C.frontCanvas.element.getAnimations()[0];V?(V.pause(),C.backCanvas.context.globalAlpha=Number(getComputedStyle(C.frontCanvas.element).opacity),C.frontCanvas.element.style.opacity="0",V.finish()):C.backCanvas.context.globalAlpha=1;C.backCanvas.context.drawImage(C.frontCanvas.element,0,0,C.backCanvas.element.width,C.backCanvas.element.height);Ial(C);F&&Edz(C,F);F=F?C.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.a8("cinematic_watch_fade_out_duration",500);V=_.a8("cinematic_watch_transition_frame_rate")/
1E3;var J={};V&&(J={easing:"steps("+Math.round(F*V)+")"});(G===void 0?0:G)||C.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:F,iterations:1},J));C.frontCanvas.element.style.opacity="1"},Ial=function(C){var F=C.ambientLightThemeEnabled||C.ambientTheaterModeEnabled,G=C.ambientLightThemeEnabled||C.ambientFullscreenEnabled;
C.frontCanvas.context.fillStyle=C.theater&&F||C.fullscreen&&G?"#000":"#0f0f0f";Ys_()||(C.frontCanvas.context.filter="blur(0)");C.frontCanvas.context.fillRect(0,0,C.frontCanvas.element.width,C.frontCanvas.element.height)},Edz=function(C,F){Ys_()||(C.frontCanvas.context.filter="blur("+UQ(C)+"px)");
C.frontCanvas.context.globalAlpha=C.fullscreen&&C.ambientFullscreenEnabled||C.theater&&C.ambientTheaterModeEnabled?_.a8("cinematic_watch_effect_letterbox_opacity",.4):_.a8("cinematic_watch_effect_opacity",.4);var G={offsetX:UQ(C)*3,offsetY:UQ(C)*3,theater:C.theater,fullscreen:C.fullscreen};JVL(C)&&(G.width=100,G.height=100);F.drawToCanvas(C.frontCanvas.context,G);C.frontCanvas.context.globalAlpha=1},UQ=function(C){var F;
return(F=C.cinematicContainerRenderer.config.blurStrength)!=null?F:5},znT=function(C){var F,G;
if((C.fullscreen||C.theater)&&((F=C.cinematicContainerRenderer.config)==null?0:(G=F.watchFullscreenConfig)==null?0:G.colorSourceWidthMultiplier))return C.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var V;return(V=C.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?V:C.cinematicContainerRenderer.config.colorSourceSizeMultiplier},QMS=function(C){var F,G;
if((C.fullscreen||C.theater)&&((F=C.cinematicContainerRenderer.config)==null?0:(G=F.watchFullscreenConfig)==null?0:G.colorSourceHeightMultiplier))return C.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var V;return(V=C.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?V:C.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
HH.prototype.disposeInternal=function(){_.hV.prototype.disposeInternal.call(this);this.container.remove()};
HH.prototype.clear=function(){nd_(this,void 0,!0)};
HH.prototype.pause=function(){this.storyboardManager.pause()};var Wgl;Wgl=_.aF(function(){var C,F,G=!((F=(C=document.createElement("canvas")).getContext)==null||!F.call(C,"2d")),V;C=!((V=CSS)==null||!V.supports("filter: blur(0)"));V=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var J;return G&&C&&V&&!((J=CSS)==null||!J.supports("aspect-ratio: 1 / 1"))});
_.lk=function(C,F){_.Rb.call(this);this.container=C;this.playerApi=F;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=toh(this);this.update()};
_.O(_.lk,_.Rb);_.aa0=function(C){var F=document.documentElement.hasAttribute("dark");C.isDarkModeEnabled=F;C.update()};
_.kIT=function(C,F){C.settingEnabled=F;C.update()};
_.lk.prototype.setFullscreen=function(C,F){this.fullscreen=C;this.theater=!!F;this.update()};
_.Udn=function(C,F){C.cinematicContainerRenderer=F;C.cinematicContainerRenderer&&(C.cinematicsVe=_.m2(C.isShorts()?227858:159022),_.Of(_.ia(),C.cinematicsVe),C.loggingClientData={watchCinematicContainerData:{presentationStyle:C.cinematicContainerRenderer.presentationStyle}});C.update()};
_.lk.prototype.isShorts=function(){var C,F;return((C=this.cinematicContainerRenderer)==null?void 0:(F=C.config)==null?void 0:F.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.lk.prototype.isAllowed=function(){var C;if(C=Wgl()){var F,G,V;C=((G=this.cinematicContainerRenderer)==null?void 0:G.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((V=this.cinematicContainerRenderer)==null||!V.colorStore)||((F=this.cinematicContainerRenderer)==null?void 0:F.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(C)if(_.y("web_cinematics_pausing")){var J,b;C=this.isDarkModeEnabled||!!((J=this.cinematicContainerRenderer)==
null?0:(b=J.config)==null?0:b.enableInLightTheme)}else{var z,Q;J=!!((z=this.cinematicContainerRenderer)==null?0:(Q=z.config)==null?0:Q.enableInLightTheme)&&(_.TF("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);C=this.isDarkModeEnabled||J}if(z=C){var E,t;z=!((t=(E=this.prefersReducedMotionQuery)==null?void 0:E.matches)!=null&&t)}return z};
_.Hf0=function(C){(C=C.currentCinematicEffect)!=null&&(C=C.storyboardManager,C.paused=!1,Czh(C),C.update())};
_.lk.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var toh=function(C){if(!_.y("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var F=window.matchMedia("(prefers-reduced-motion: reduce)"),G=function(){C.update()};
F.addListener(G);C.addOnDisposeCallback(function(){F.removeListener(G)});
return F}};
_.lk.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var C=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new HH(this.container,C,this.playerApi,this.isDarkModeEnabled),_.Nd(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var F=this.currentCinematicEffect;F.cinematicContainerRenderer!==
C&&(F.cinematicContainerRenderer=C,ml_(F.storyboardManager,C),ifn(F));C=_.bQ();_.nl(0,194,!0);C.save();C=_.ZQ();this.cinematicsVe&&C&&_.cA(C,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(C=_.ZQ(),this.cinematicsVe&&C&&_.A3(C,[this.cinematicsVe],!1,this.loggingClientData),_.uz(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.I6.Object.defineProperties(_.lk.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var tyl;var ai_;_.kz({_template:function(){if(ai_!==void 0)return ai_;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=
C.content,G=F.insertBefore;tyl===void 0&&(tyl=document.createElement("template"));var V=tyl;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return ai_=C},
is:"tp-yt-iron-pages",behaviors:[_.AY,_.f5],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var Elz;_.WY6=function(){if(_.y("kevlar_home_skeleton")&&!Elz){var C=document.querySelector("#home-page-skeleton");C&&(_.NV("hgcr"),_.So(C),Elz=!0)}};
Elz=!1;_.FJ=new _.Cx("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var rO6,Dol,mon,Csn,jLF,Fdh,Gh_,VUY,it0,$30,uMh,QLz,E_S,zxY,btY,n_F,ar0,khY;rO6=function(C,F,G,V){var J=!1,b={contentId:void 0,contentType:"video"};F=_.u(Object.entries(F));for(var z=F.next();!z.done;z=F.next()){var Q=_.u(z.value);z=Q.next().value;Q=Q.next().value;C.includes(z)&&!G.has(Q)?(b.contentId=Q,G.add(Q),J=!0):z==="contentType"?Q==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(b.contentType="playlist"):typeof Q==="object"&&Q!==null&&rO6(C,Q,G,V)}J&&V.push(b)};
_.K$F=function(C,F,G){F=F===void 0?5:F;if(F!==0){var V=typeof C==="function"?C():document.querySelector(C);V?(G==null?0:G.enableSmartFocus)?_.Ywf(V):V.focus():setTimeout(function(){_.K$F(C,F-1,G)},500)}};
Dol=function(C){return String.raw.apply(String,[{raw:C}].concat(_.da(_.Rn.apply(1,arguments).map(function(F){return F instanceof Array?F.join(""):F}))))};
mon=function(C){var F=_.Rn.apply(1,arguments),G=F.length;if(!Array.isArray(C)||!Array.isArray(C.raw)||C.length!==C.raw.length||!_.h_8&&C===C.raw||!(_.h_8&&!_.cz8||_.fT(C))||G+1!==C.length)throw new TypeError("$");return new puF(Object.freeze({strings:Object.freeze(C),args:Object.freeze(F)}))};
Csn=function(C){return _.gVS(_.P7B(C&16777215))<.5};
jLF=function(C,F,G){var V=G.minimumRowsOfVideosBetweenSections===void 0?1:G.minimumRowsOfVideosBetweenSections;return C<(G.minimumRowsOfVideosAtStart===void 0?2:G.minimumRowsOfVideosAtStart)||F!==null&&C-F<=V?!1:!0};
Fdh=function(C,F){var G=0,V=0;C=_.u(C);for(var J=C.next();!J.done;J=C.next()){var b=J.value;if(b.richItemRenderer)b.richItemRenderer.rowIndex=V,b.richItemRenderer.colIndex=G++,G===F&&(G=0,V++);else if(b.richGroupRenderer&&b.richGroupRenderer.numColumns!==void 0)b.richGroupRenderer.rowIndex=V,b.richGroupRenderer.colIndex=G,G+=b.richGroupRenderer.numColumns,G===F&&(G=0,V++);else if(b.richSectionRenderer){var z=J=void 0;if(b=_.Z((J=b)==null?void 0:(z=J.richSectionRenderer)==null?void 0:z.content,_.EHE))b.rowIndex=
V++}}};
Gh_=function(C,F){var G=F.contentElement;F=F.rendererToTagNameMap;if(G&&F&&F.size!==0){for(var V=new Map,J=_.u(G.children),b=J.next();!b.done;b=J.next()){b=b.value;var z=b.tagName.toLowerCase(),Q=V.get(z);Q||(Q=[],V.set(z,Q));Q.push(b)}if(V.size!==0)for(J=Math.min(C.length,G.children.length),b=new Map,z=0;z<J;z++){Q=Object.keys(C[z])[0];Q=F.get(Q);if(!Q)break;var E=b.get(Q);E===void 0&&(E=0,b.set(Q,E));var t=V.get(Q);if(!t||E>=t.length)break;b.set(Q,E+1);Q=t[E];E=G.children[z];E!==Q&&(_.qD=!0,_.P6.set(Q,
!0),G.insertBefore(Q,E),_.P6.delete(Q),_.qD=!1)}}};
VUY=function(C,F,G,V,J,b,z){V=V===void 0?{}:V;if(!C||!C.length)return{orderedContent:[]};C=C.slice();var Q=[],E=[];J=null;for(var t=0,k=function(T){E.sort(function(r,C9){return C9.skippedOnRow-r.skippedOnRow});
for(var P,g=(P=E.shift())==null?void 0:P.content;g;)!g.richSectionRenderer&&T||Q.push(g),P=void 0,g=(P=E.shift())==null?void 0:P.content},U=void 0,H=void 0,l=new Set;C.length>0||E.length>0;){for(var N=[],S=F;S>0;){var f=void 0,c=void 0,A=(c=E[0]&&E[0].skippedOnRow<t?(f=E.shift())==null?void 0:f.content:void 0)!=null?c:C.shift();
if(!A)break;if(A.richItemRenderer)f=A.richItemRenderer.targetId,c=void 0,f&&((c=z)==null?0:c.has(f))&&(c=z.get(f),!U||c&&c.timestamp>U.timestamp)&&(U=c,H&&l.add(H),H=f),N.push(A),S--;else if(A.richGroupRenderer&&A.richGroupRenderer.numColumns!==void 0)A.richGroupRenderer.numColumns<=S?(N.push(A),S-=A.richGroupRenderer.numColumns):S===F&&A.richGroupRenderer.numColumns>F?(N.push({richGroupRenderer:Object.assign({},A.richGroupRenderer,{numColumns:F})}),S=0):E.push({content:A,skippedOnRow:t});else if(A.richSectionRenderer)if(jLF(t,
J,V)&&S===F){Q.push(A);J=t;t++;continue}else E.push({content:A,skippedOnRow:t});else if(A.continuationItemRenderer){k(!0);Q.push(A);S=0;break}if(S===0)Q.push.apply(Q,_.da(N));else if(!G&&C.length===0){k(!1);Q.push.apply(Q,_.da(N));S=0;break}}t++;U&&(Q.push(U.content),t++);H=U=void 0}Fdh(Q,F);b&&Gh_(Q,b);return{orderedContent:Q,pinnedContentNotShownTargetIds:l}};
it0=function(){return _.Rn.apply(0,arguments).flat().filter(function(C){return C}).join(";")};
$30=function(){return mon(Jln,it0.apply(null,_.da(_.Rn.apply(0,arguments))))};
uMh=function(C,F){if(F){var G=_.s3().getState().entities.flowStateEntity,V=btY(C),J=[F];V&&V!==F&&J.push(V);var b=!0,z;if(G&&C.flowStateEntityKey&&((z=G[C.flowStateEntityKey])==null?void 0:z.primaryButtonDisabled)!==void 0){var Q;b=!((Q=G[C.flowStateEntityKey])==null||!Q.primaryButtonDisabled)}n_F(C,V!=null?V:F,J,b)}};
QLz=function(C){return _.hK(_.s3(),function(F){return F.entities.flowStateEntity},function(F,G){if(C.flowStateEntityKey){var V,J=F==null?void 0:(V=F[C.flowStateEntityKey])==null?void 0:V.currentStepId,b;
G=G==null?void 0:(b=G[C.flowStateEntityKey])==null?void 0:b.currentStepId;b=_.s3().getState().talkToRecs;if(J&&J!==G){var z;F=(F==null?void 0:(z=F[C.flowStateEntityKey])==null?void 0:z.stepIdStack)||Object.keys(b.stepStates);z=!zxY(b==null?void 0:b.stepStates[J]);n_F(C,J,F,z)}}})};
E_S=function(C){return _.hK(_.s3(),IrB,function(F){var G=btY(C);if(G){var V=Object.keys(F.stepStates);F=!zxY(F==null?void 0:F.stepStates[G]);n_F(C,G,V,F)}})};
zxY=function(C){var F=Object.keys((C==null?void 0:C.selectionStates)||{}).reduce(function(b,z){return b||(C==null?void 0:C.selectionStates[z].isSelected)},!1),G,V,J=!!(C==null?0:(G=C.userQuery)==null?0:(V=G.userQuery)==null?0:V.trim());
return F||J};
btY=function(C){if(C.flowStateEntityKey){var F,G,V=(F=_.s3().getState().entities.flowStateEntity)==null?void 0:(G=F[C.flowStateEntityKey])==null?void 0:G.currentStepId;if(V)return V}};
n_F=function(C,F,G,V){_.s3().dispatch(_.z3("flowStateEntity",C.flowStateEntityKey,{currentStepId:F,stepIdStack:G,key:C.flowStateEntityKey,primaryButtonDisabled:V}))};
_.Wdz=function(C,F){return _.jN(C.entities,"youchatPendingResponseEntity",F)};
_.tU6=function(C){return function(F){_.er(_.z3("youchatPendingResponseEntity",C,{entityKey:C,isPendingResponse:F}))}};
ar0=function(C){C==null||C.addEventListener("DOMLoaded",function(){C.goToAndPlay(C.totalFrames-48,!0)})};
khY=function(C){var F=[];rO6(["videoId","contentId"],C.JSC$18599_pageManager.data,new Set,F);return F};
_.U3T=function(C){return khY(C).filter(function(F){return F.contentType==="video"}).map(function(F){return F.contentId}).filter(function(F){return F!==void 0})};
_.Q1=function(C){this.__isSoyCss=!0;this.css=Dol.apply(null,[C.strings].concat(_.da(C.args)))};
_.Q1.prototype.toString=function(){return this.css};
var puF=function(){_.Q1.apply(this,arguments)};
_.O(puF,_.Q1);var Jln=_.h6(["",""]);var HtS;var lrl;_.kz({_template:function(){if(lrl!==void 0)return lrl;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);
var F=C.content,G=F.insertBefore;HtS===void 0&&(HtS=document.createElement("template"));var V=HtS;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return lrl=C},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var ylz=new _.Cx("flowRootRenderer");var Zth=new _.Cx("chipsShelfViewModel");var NW6=new _.Cx("responsiveContainerConfiguration");_.Ot_=new _.Cx("engagementPanelSectionListRenderer");var XV0=function(){this.horizontal=!1},wVh=function(C,F){C.horizontal=F};
XV0.prototype.position=function(C,F,G,V){V=V===void 0?1:V;C=this.delta(C)*V+F;V=Math.max(F,G);return C>=Math.min(F,G)&&C<=V?C:G};
XV0.prototype.axis=function(C){C=this.direction(C);return C==="up"||C==="down"?"Y":"X"};var ex=function(C,F,G){F=F===void 0?_.MZ():F;this.target=C;this.manager=F;this.touchAction=G;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
ex.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(_.da(this.events)));for(var C=_.u(this.events),F=C.next();!F.done;F=C.next())this.listen(F.value)}};
ex.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.da(this.events)));for(var C=_.u(this.events),F=C.next();!F.done;F=C.next())this.unlisten(F.value)}};
ex.prototype.listen=function(C){this.eventMap[C]&&this.target.addEventListener(C,this.eventMap[C])};
ex.prototype.unlisten=function(C){this.eventMap[C]&&this.target.removeEventListener(C,this.eventMap[C])};var dm=function(){XV0.apply(this,arguments)};
_.O(dm,XV0);dm.prototype.direction=function(C){var F=C.detail;C=F.deltaY;F=F.deltaX;return C&&!this.horizontal?C>0?"down":"up":F&&this.horizontal?F>0?"right":"left":"none"};
dm.prototype.distance=function(C){return Math.abs(this.delta(C))};
dm.prototype.delta=function(C){var F=this.direction(C),G=C.detail;C=G.deltaX;G=G.deltaY;return F==="up"||F==="down"?G||0:C||0};
dm.prototype.velocity=function(C){var F=this.direction(C),G=C.detail;C=G.velocityX;G=G.velocityY;return Math.abs(F==="up"||F==="down"?G||0:C||0)};_.xg=function(C,F,G,V,J,b){J=J===void 0?new dm:J;b=b===void 0?_.MZ():b;ex.call(this,F,b,V);var z=this;this.element=C;this.target=F;this.config=G;this.input=J;this.manager=b;this.events=["panstart","panmove","panend"];this.onPanStart=function(){z.config.draggingClass&&z.element.classList.add(z.config.draggingClass);z.config.startAction&&z.config.startAction()};
this.onPanMove=function(Q){var E=MU_(z,Q);if(E){z.move(Q,E);E.fade&&z.fade(Q,E);var t=z.input.direction(Q);E.moveAction&&E.moveAction(SrY(z,Q,E),t)}};
this.onPanEnd=function(Q){var E,t,k,U,H,l;return _.I(function(N){if(N.nextAddress==1){z.animationRequestId&&cancelAnimationFrame(z.animationRequestId);z.animationRequestId=void 0;E=MU_(z,Q);if(!E)return N.return();t=E;k=t.triggerAction;U=t.fade;H=t.disableFinish;l=t.translateBack;var S=z.input.velocity(Q),f=z.input.distance(Q),c=z.threshold(E);return S>.3&&f>10||f>c?H?N.jumpTo(6):U?N.yield(Ld0(z,Q),6):N.yield(BWF(z,Q,E),6):l?N.yield(z.translateBack(Q),3):N.jumpTo(3)}N.nextAddress!=3&&k&&k();z.config.draggingClass&&
z.element.classList.remove(z.config.draggingClass);z.reset();_.S9(N)})};
C=Object.keys(G.triggers);this.directions=new Set(C);wVh(this.input,this.directions.has("right")||this.directions.has("left"))};
_.O(_.xg,ex);_.xg.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var MU_=function(C,F){F=C.input.direction(F);return C.config.triggers[F]};
_.xg.prototype.move=function(C,F){var G=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var V=G.input.axis(C),J=G.input.position(C,G.config.startPosition,F.endPosition,F.moveRatio||1);G.element.style.transform="translate"+V+"("+J+"px)";G.animationRequestId=void 0}))};
var SrY=function(C,F,G){var V=G.moveRatio||1;G=Math.abs(C.config.startPosition-G.endPosition);return Math.min(C.input.distance(F)*V,G)/G};
_.xg.prototype.fade=function(C,F){var G=F.endOpacity;C=SrY(this,C,F);C>0&&(this.element.style.opacity=""+(((G||0)-1)*C+1))};
_.xg.prototype.threshold=function(C){return C.threshold?C.threshold:Math.abs(C.endPosition-this.config.startPosition)/3};
var BWF=function(C,F,G){var V,J,b,z,Q,E,t;return _.I(function(k){if(k.nextAddress==1)return V=C.input.delta(F)+C.config.startPosition,J=C.input.axis(F),b=G,z=b.endPosition,Q=b.transitionEndPosition,t=(E=Q)!=null?E:z,k.yield(C.element.animate([{transform:"translate"+J+"("+V+"px)"},{transform:"translate"+J+"("+t+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);C.element.style.transform="translate"+J+"("+t+"px)";_.S9(k)})};
_.xg.prototype.translateBack=function(C){var F=this,G,V;return _.I(function(J){if(J.nextAddress==1){if(!F.element.style.transform)return J.return();G=F.input.axis(C);V=F.config.startPosition;return J.yield(F.element.animate([{transform:F.element.style.transform},{transform:"translate"+G+"("+V+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}F.element.style.transform="translate"+G+"("+V+"px)";_.S9(J)})};
var Ld0=function(C,F){var G,V,J,b;return _.I(function(z){if(z.nextAddress==1)return G=C.input.delta(F)+C.config.startPosition,V=C.input.axis(F),J=G+70,b=C.element.style.opacity===""?1:C.element.style.opacity,z.yield(C.element.animate([{transform:"translate"+V+"("+G+"px)",opacity:b},{transform:"translate"+V+"("+J+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);C.element.style.transform="translate"+V+"("+J+"px)";C.element.style.opacity="0";_.S9(z)})};var s$=function(){var C=_.n5.apply(this,arguments)||this;C._noAccessors=!0;C.scrollRate=3;C.autoScrollAnimationStart=0;C.autoScrollPaused=!1;C.autoScrollRafId=0;return C};
_.O(s$,_.n5);_.n=s$.prototype;_.n.created=function(){var C=this;this.boundAutoScrollHandler=function(F){C.autoScroll(F)}};
_.n.detached=function(){this.hostElement.removeEventListener("mouseout",_.Gp(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.Gp(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.Gp(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.n.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.Gp(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.Gp(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.Gp(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.Gp(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.Gp(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.Gp(this,this.endAutoScroll)),this.endAutoScroll())};
_.n.autoScroll=function(C){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=C);var F;if(F=!this.autoScrollPaused&&this.scrollTarget)F=this.scrollTarget,F=F.scrollHeight-F.scrollTop!==F.clientHeight;F&&(F=1E3/this.scrollRate,C-=this.autoScrollAnimationStart,C>F&&(this.scrollTarget.scrollTop+=Math.ceil(C/F),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.n.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.n.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
s$.prototype.autoScrollEnabledChanged=s$.prototype.autoScrollEnabledChanged;_.R([_.L(),_.Y("design:type",Object)],s$.prototype,"scrollRate",void 0);_.R([_.L(),_.Y("design:type",Object)],s$.prototype,"scrollTarget",void 0);_.R([_.L(),_.Y("design:type",Boolean)],s$.prototype,"autoScrollEnabled",void 0);_.R([_.iP("autoScrollEnabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],s$.prototype,"autoScrollEnabledChanged",null);_.R([_.uP()],s$);_.v_0=[s$.prototype];var frn;var qp=function(){var C=_.B.apply(this,arguments)||this;C.buttonUpdate=_.y("web_button_rework");C.dismissButtonOverrides=_.y("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;C.forceDarkTheme=!1;C.forceLightTheme=!1;C.dynamicTextHeight=94;C.hasOverflowButton=!1;C.isInfeedModernization=!1;return C};
_.O(qp,_.B);_.n=qp.prototype;_.n.computeUrlImg=function(C){if(C)return _.Ye(C.thumbnails)};
_.n.getLogoHeight=function(C){return this.logoWithPadding(C)?"31":"24"};
_.n.getLogoClassName=function(C){return this.logoWithPadding(C)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.n.logoWithPadding=function(C){var F,G;return(C=(F=C.thumbnails)==null?void 0:(G=F[0])==null?void 0:G.height)&&C%31===0?!0:!1};
_.n.sendImpressionEndpoints=function(C){C.impressionEndpoints&&_.DQ(this.hostElement,C.impressionEndpoints)};
_.n.observeBasicPalette=function(){var C,F,G=(C=this.data)==null?void 0:(F=C.colorData)==null?void 0:F.basicColorPaletteData;G?_.WB(this.hostElement,G):_.WB(this.hostElement,{})};
_.n.observeDataChanged=function(){var C;this.dynamicTextHeight=((C=this.data)==null?0:C.supplementalText)?74:94;var F;this.hasSupplementalText=!((F=this.data)==null||!F.supplementalText);if(_.y("web_button_rework")){var G,V,J,b;C=(G=this.data)==null?void 0:(V=G.actionButton)==null?void 0:(J=V.buttonRenderer)==null?void 0:(b=J.colorData)==null?void 0:b.basicColorPaletteData;var z,Q,E;if(!((z=this.data)==null?0:(Q=z.actionButton)==null?0:(E=Q.buttonRenderer)==null?0:E.style)&&C){this.computeIsInfeedModernization(this.data)||
(C.borderColor=C.foregroundTitleColor);var t,k;this.set("data.actionButton.buttonRenderer",_.xf.unsafeClone((t=this.data)==null?void 0:(k=t.actionButton)==null?void 0:k.buttonRenderer))}}};
_.n.observeDataForCounterfactual=function(){if(_.y("kevlar_banner_cf_extra_logging")){var C;((C=this.data)==null?0:C.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.n.computeSupplementalStyle=function(){var C;if((C=this.data)!=null&&C.supplementalText){var F,G,V;if((F=this.data)==null?0:(G=F.colorData)==null?0:(V=G.basicColorPaletteData)==null?0:V.foregroundActivatedColor)return C=_.Hr(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+C+"; --yt-endpoint-hover-color:"+C+"; --yt-endpoint-visited-color:"+C+"; --yt-formatted-string-bold-font-weight:700;"}};
_.n.computeForcedDarkTheme=function(){var C,F,G,V=(C=this.data)==null?void 0:(F=C.actionButton)==null?void 0:(G=F.buttonRenderer)==null?void 0:G.style,J,b,z;C=Csn(((J=this.data)==null?void 0:(b=J.colorData)==null?void 0:(z=b.basicColorPaletteData)==null?void 0:z.backgroundColor)||0);return V&&C};
_.n.computeForcedLightTheme=function(){var C,F,G,V=(C=this.data)==null?void 0:(F=C.actionButton)==null?void 0:(G=F.buttonRenderer)==null?void 0:G.style,J,b,z;C=!Csn(((J=this.data)==null?void 0:(b=J.colorData)==null?void 0:(z=b.basicColorPaletteData)==null?void 0:z.backgroundColor)||0);return V&&C};
_.n.computeHasOverflowButton=function(C){return!!C.overflowButton};
_.n.computeHasTitle=function(C){return!!C.title};
_.n.computeTitleMaxFontSize=function(C){return this.computeHasOverflowButton(C)?28:64};
_.n.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.n.computeIsInfeedModernization=function(){var C,F,G,V,J=(C=this.data)==null?void 0:(F=C.actionButton)==null?void 0:(G=F.buttonRenderer)==null?void 0:(V=G.colorData)==null?void 0:V.basicColorPaletteData;return(J==null?void 0:J.backgroundColor)===452984831||(J==null?void 0:J.backgroundColor)===218103808};
qp.prototype.observeDataForCounterfactual=qp.prototype.observeDataForCounterfactual;qp.prototype.observeDataChanged=qp.prototype.observeDataChanged;qp.prototype.observeBasicPalette=qp.prototype.observeBasicPalette;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],qp.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.T6),_.Y("design:type",Object)],qp.prototype,"ytdDismissibleItemBehavior",void 0);
_.R([_.w(_.DL.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],qp.prototype,"ytdGuideStateAwareBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],qp.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],qp.prototype,"buttonUpdate",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],qp.prototype,"hasSupplementalText",void 0);_.R([_.L(),_.Y("design:type",Object)],qp.prototype,"dismissButtonOverrides",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.Y("design:type",Boolean)],qp.prototype,"hasTitle",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.Y("design:type",Object)],qp.prototype,"forceDarkTheme",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.Y("design:type",Object)],qp.prototype,"forceLightTheme",void 0);_.R([_.L(),_.Y("design:type",Object)],qp.prototype,"dynamicTextHeight",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.Y("design:type",Object)],qp.prototype,"hasOverflowButton",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.Y("design:type",Object)],qp.prototype,"isInfeedModernization",void 0);_.R([_.iP("data.colorData.basicColorPaletteData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qp.prototype,"observeBasicPalette",null);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qp.prototype,"observeDataChanged",null);_.R([_.iP("data.isVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qp.prototype,"observeDataForCounterfactual",null);_.R([_.e({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],qp);
_.q(qp,"ytd-banner-promo-renderer",function(){if(frn!==void 0)return frn;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return frn=C},{mode:1});var hxL;var clF;var Alh;var ex0=function(){return _.B.apply(this,arguments)||this};
_.O(ex0,_.B);_.R([_.L(),_.Y("design:type",Object)],ex0.prototype,"data",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ex0.prototype,"ytRendererBehavior",void 0);_.R([_.e({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],ex0);
_.q(ex0,"ytd-hashtag-grid-tile-renderer",function(){if(Alh!==void 0)return Alh;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Alh=C},{mode:1});var Pi=function(){return _.B.apply(this,arguments)||this};
_.O(Pi,_.B);Pi.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
Pi.prototype.updateRichGridTrendingHashtagsVisibility=function(){var C,F;if(((C=this.data)==null||!C.isExpanded)&&(F=this.data)!=null&&F.tiles){C=this.data.tiles.length;F=C>this.richGridItemsPerRow?this.richGridItemsPerRow+1:C;var G=Math.ceil(C/F);this.fullyVisibleRows=C%F===1&&G===2?1:Math.min(G,2);this.isShowMoreVisible=this.fullyVisibleRows<G}};
Pi.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Pi.prototype.updateRichGridTrendingHashtagsVisibility=Pi.prototype.updateRichGridTrendingHashtagsVisibility;_.R([_.L(),_.Y("design:type",Object)],Pi.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Number)],Pi.prototype,"fullyVisibleRows",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Pi.prototype,"isShowMoreVisible",void 0);_.R([_.L({selector:_.lK,value:0}),_.Y("design:type",Number)],Pi.prototype,"richGridItemsPerRow",void 0);
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Pi.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Pi.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],Pi.prototype,"ytdReduxBehavior",void 0);_.R([_.iP("data","richGridItemsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Pi.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.R([_.e({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],Pi);
_.q(Pi,"ytd-hashtag-grid-shelf-renderer",function(){if(clF!==void 0)return clF;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return clF=C},{mode:1});var d3F;var x3B;var gm=function(){var C=_.B.apply(this,arguments)||this;C.visibleVideos=[];C.hiddenVideos=[];C.modern=_.y("web_modern_buttons");C.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return C};
_.O(gm,_.B);_.n=gm.prototype;_.n.attached=function(){var C=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",C);this.onDarkModeToggledAction(C)};
_.n.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"}}}};
_.n.dataChanged=function(){var C=this;this.requestElementsPerRow();var F,G;this.currentColorPalette=this.isDarkTheme?(F=this.data)==null?void 0:F.darkColorData:(G=this.data)==null?void 0:G.lightColorData;var V;if((V=this.currentColorPalette)==null?0:V.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.zH(this,function(){C.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.n.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.n.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.n.computeIsFirstFeedItem=function(C){return C};
_.n.onDarkModeToggledAction=function(C){C!==this.isDarkTheme&&this.set("isDarkTheme",C);this.data&&(this.currentColorPalette=C?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.n.getCurrentLogo=function(C,F){if(C)return F?C.darkLogoImage:C.lightLogoImage};
_.n.computeTitleStyle=function(C){var F;if((F=this.data)!=null&&F.title&&C&&C.textPrimary!==void 0)return"color:"+_.Hr(C.textPrimary)+";"};
_.n.computeSubtitleStyle=function(C){var F;if((F=this.data)!=null&&F.subtitle&&C&&C.textSecondary!==void 0)return"color:"+_.Hr(C.textSecondary)+";"};
_.n.computeDismissIconStyle=function(C){if(this.data&&this.data.dismissButton&&C&&C.textPrimary!==void 0)return"--yt-button-color:"+_.Hr(C.textPrimary)+";"};
_.n.computeOverflowButtonStyle=function(C){if(this.data&&this.data.overflowButton&&C&&C.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.Hr(C.textPrimary)+";--yt-spec-icon-active-other:"+_.Hr(C.textPrimary)+";"};
_.n.computeBackgroundStyle=function(C){if(C&&this.data){var F="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var G=_.Ye((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);G&&(F+='background-image:url("'+G+'");')}C.backgroundColor!==void 0&&(F+="background-color:"+_.lE(C.backgroundColor)+";");return F}};
_.n.computeButton=function(){var C,F=Object.assign({},_.Z((C=this.data)==null?void 0:C.showMoreButton,_.DY));if(this.modern&&F){F.style="STYLE_MONO_OUTLINE";var G;if(C=(G=this.currentColorPalette)==null?void 0:G.textPrimary)F.colorData={basicColorPaletteData:{foregroundTitleColor:C,borderColor:C}}}return F};
_.n.shouldShowBottomButton=function(C,F){return!(C==null?0:C.header)&&!(C==null||!C.primaryButton)&&F<3};
_.n.checkExpanded=function(C){this.isExpanded=C&&C.content?this.hiddenVideos.length===0:!0};
_.n.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.n.getLogoHeight=function(C){return this.logoWithPadding(C)?"26":"20"};
_.n.getLogoImageId=function(C){return this.logoWithPadding(C)?"logo-image-with-padding":"logo-image"};
_.n.computeHasSectionHeader=function(C){return!!C.header};
_.n.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var C;if((C=this.data.primaryButton)==null?0:C.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 F;((F=this.data.dismissButton)==null?0:F.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var G,V;((G=this.data)==null?0:(V=G.primaryButton)==null?0:V.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.n.setVisibleVideos=function(C){if(this.data&&this.data.content)if(this.data.content.length){var F=this.data.content.length;this.data.header?C?(this.visibleVideos=this.data.content.slice(0,Math.min(F,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(F,this.slimItemsPerRow),F)):(this.visibleVideos=this.data.content.slice(0,Math.min(F,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(F,this.elementsPerRow),F)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(F,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(F,this.elementsPerRow),F)):(this.visibleVideos=this.data.content.slice(0,Math.min(F,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(F,this.elementsPerRow-1),F))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.n.setHasMovieRenderer=function(){var C;if((C=this.data)!=null&&C.content){var F;this.hasMovieRenderer=!!_.Z((F=this.data)==null?void 0:F.content[0],_.lSO)}else this.hasMovieRenderer=!1};
_.n.requestElementsPerRow=function(){_.oo(this.hostElement,"yt-request-elements-per-row")};
_.n.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var C=_.u(this.hiddenMediaRenderers),F=C.next();!F.done;F=C.next())F.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(C=_.ot(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&C.focus()}};
_.n.updateTitleSpec=function(){var C;(C=this.data)!=null&&C.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.n.logoWithPadding=function(C){var F,G,V;return(C=(F=this.getCurrentLogo(C,this.isDarkTheme))==null?void 0:(G=F.thumbnails)==null?void 0:(V=G[0])==null?void 0:V.height)&&C%31===0?!0:!1};
_.n.onUpdateElementsPerRowAction=function(C,F,G){C&&this.elementsPerRow!==C&&(this.elementsPerRow=C);G&&this.slimItemsPerRow!==G&&(this.slimItemsPerRow=G)};
gm.prototype.slimItemsPerRowChanged=gm.prototype.slimItemsPerRowChanged;gm.prototype.elementsPerRowChanged=gm.prototype.elementsPerRowChanged;gm.prototype.dataChanged=gm.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],gm.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],gm.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.T6),_.Y("design:type",Object)],gm.prototype,"ytdDismissibleItemBehavior",void 0);
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],gm.prototype,"actionHandlerBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],gm.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],gm.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],gm.prototype,"currentColorPalette",void 0);_.R([_.L(),_.Y("design:type",Array)],gm.prototype,"visibleVideos",void 0);_.R([_.L(),_.Y("design:type",Array)],gm.prototype,"hiddenVideos",void 0);
_.R([_.L(),_.Y("design:type",Object)],gm.prototype,"primaryButton",void 0);_.R([_.L({reflectToAttribute:!0,value:3}),_.Y("design:type",Number)],gm.prototype,"elementsPerRow",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],gm.prototype,"isDarkTheme",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],gm.prototype,"isExpanded",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],gm.prototype,"largeTitle",void 0);
_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],gm.prototype,"hasMovieRenderer",void 0);_.R([_.L(),_.Y("design:type",Number)],gm.prototype,"slimItemsPerRow",void 0);_.R([_.L(),_.Y("design:type",Boolean)],gm.prototype,"showLightVideoMetadata",void 0);_.R([_.L(),_.Y("design:type",Boolean)],gm.prototype,"showDarkVideoMetadata",void 0);_.R([_.L(),_.Y("design:type",Number)],gm.prototype,"videoMetadataColor",void 0);
_.R([_.L({reflectToAttribute:!0,selector:_.HY}),_.Y("design:type",Boolean)],gm.prototype,"miniMode",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.Y("design:type",Boolean)],gm.prototype,"isFirstFeedItem",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.Y("design:type",Boolean)],gm.prototype,"hasSectionHeader",void 0);
_.R([_.L({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],gm.prototype,"roundedContainer",void 0);_.R([_.bP("#visible-video-container ytd-rich-grid-media"),_.Y("design:type",Array)],gm.prototype,"visibleMediaRenderers",void 0);_.R([_.bP("#hidden-video-container ytd-rich-grid-media"),_.Y("design:type",Array)],gm.prototype,"hiddenMediaRenderers",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],gm.prototype,"modern",void 0);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gm.prototype,"dataChanged",null);_.R([_.iP("elementsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gm.prototype,"elementsPerRowChanged",null);_.R([_.iP("slimItemsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gm.prototype,"slimItemsPerRowChanged",null);
_.R([_.e({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],gm);
_.q(gm,"ytd-brand-video-shelf-renderer",function(){if(x3B!==void 0)return x3B;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return x3B=C},{mode:1});var sLB;var Rg=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return C};
_.O(Rg,_.B);_.n=Rg.prototype;_.n.attached=function(){var C=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",C);this.onDarkModeToggledAction(C)};
_.n.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"}}}};
_.n.dataChanged=function(){this.requestElementsPerRow();var C,F;this.currentColorPalette=this.isDarkTheme?(C=this.data)==null?void 0:C.darkColorData:(F=this.data)==null?void 0:F.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.n.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.n.computeIsFirstFeedItem=function(C){return C};
_.n.onDarkModeToggledAction=function(C){C!==this.isDarkTheme&&this.set("isDarkTheme",C);this.data&&(this.currentColorPalette=C?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(C),this.updateButtonPalette())};
_.n.shouldShowThumbnailInMetadata=function(C){return C<=1};
_.n.computeVideoMetadataColor=function(){if(this.data){var C;if((C=this.currentColorPalette)==null?0:C.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.n.computeTitleStyle=function(C){var F;if((F=this.data)!=null&&F.title&&C&&C.textPrimary!==void 0)return"color:"+_.Hr(C.textPrimary)+";"};
_.n.computeSubtitleStyle=function(C){var F;if((F=this.data)!=null&&F.subtitle&&C&&C.textSecondary!==void 0)return"color:"+_.Hr(C.textSecondary)+";"};
_.n.computeOverflowButtonStyle=function(C){if(this.data&&this.data.overflowButton&&C.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.Hr(C.textPrimary)+";--yt-spec-icon-active-other:"+_.Hr(C.textPrimary)+";"};
_.n.computeBackgroundStyle=function(C){if(C&&this.data){var F="";C.backgroundColor!==void 0&&(F+="background-color:"+_.lE(C.backgroundColor)+";");return F}};
_.n.computeHasOverflowButton=function(C){return!!C.overflowButton};
_.n.updateButtonPalette=function(){if(this.data){var C;if((C=this.data.primaryButton)==null?0:C.buttonRenderer){var F;if((F=this.currentColorPalette)==null?0:F.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var G;((G=this.currentColorPalette)==null?0:G.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)})}}};
_.n.requestElementsPerRow=function(){_.oo(this.hostElement,"yt-request-elements-per-row")};
_.n.updateTitleSpec=function(){var C;(C=this.data)!=null&&C.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")};
_.n.onUpdateElementsPerRowAction=function(C){C&&this.elementsPerRow!==C&&(this.elementsPerRow=C)};
Rg.prototype.elementsPerRowChanged=Rg.prototype.elementsPerRowChanged;Rg.prototype.dataChanged=Rg.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Rg.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Rg.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.T6),_.Y("design:type",Object)],Rg.prototype,"ytdDismissibleItemBehavior",void 0);
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],Rg.prototype,"actionHandlerBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],Rg.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Rg.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],Rg.prototype,"currentColorPalette",void 0);_.R([_.L(),_.Y("design:type",Object)],Rg.prototype,"primaryButton",void 0);
_.R([_.L({reflectToAttribute:!0,value:3}),_.Y("design:type",Number)],Rg.prototype,"elementsPerRow",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Rg.prototype,"isDarkTheme",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],Rg.prototype,"titleSize",void 0);_.R([_.L(),_.Y("design:type",Number)],Rg.prototype,"videoMetadataColor",void 0);_.R([_.L({reflectToAttribute:!0,selector:_.HY}),_.Y("design:type",Boolean)],Rg.prototype,"miniMode",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.Y("design:type",Boolean)],Rg.prototype,"isFirstFeedItem",void 0);_.R([_.L({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],Rg.prototype,"roundedContainer",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.Y("design:type",Boolean)],Rg.prototype,"hasOverflowButton",void 0);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Rg.prototype,"dataChanged",null);_.R([_.iP("elementsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Rg.prototype,"elementsPerRowChanged",null);_.R([_.e({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],Rg);
_.q(Rg,"ytd-brand-video-singleton-renderer",function(){if(sLB!==void 0)return sLB;var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return sLB=C},{mode:_.oN("kevlar_poly_si_batch_j070")?1:2});var qrL;var Ps_=_.d(function(C){var F=C.data;return _.W(_.AC,{data:function(){return F().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(F().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var G=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":G=88;break a;default:G=88}return G},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return F().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"wm"),RxF=_.d(function(C){var F=C.metadataRow;
var G=C.delimiter;return _.W(_.Ag,{each:function(){return F().textParts||[]},
keyBy:"INDEX"},function(V,J){return _.W(_.WQ,null,_.W(_.mn,{text:V,noWrap:!0,userInput:!0}),_.W(g_6,{delimiter:G,max:function(){return F().textParts.length},
index:J}))})},"xm"),g_6=_.d(function(C){var F=C.delimiter;
var G=C.max;var V=C.index;return _.W(_.a,{cond:function(){return(F==null?void 0:F())&&G()-1>V()},
then:function(){return _.W("span",null,F)}})},"ym"),Yr9=_.d(function(C){var F=C.data;
C={};return _.W("yt-profile-page-header-information-view-model",{class:_.py("profilePageHeaderInformationViewModelHost",(C.profilePageHeaderInformationViewModelMobile=!1,C))},_.W(_.a,{cond:function(){return F().onTap},
then:function(){return _.W(_.zV,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.ZD(F().onTap)}},_.W(_.uC,{data:function(){return F().thumbnail}},{profilePageHeaderThumbnailViewModel:Ps_}))},
else:function(){return _.W("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.W(_.uC,{data:function(){return F().thumbnail}},{profilePageHeaderThumbnailViewModel:Ps_}))}}),_.W("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.W(_.a,{cond:function(){return F().onTap},
then:function(){return _.W(_.uC,{data:function(){return F().title}},{profilePageHeaderTitleViewModel:function(G){var V=G.data;
return _.W(_.zV,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.ZD(V().onTap)}},_.W(_.mn,{text:function(){return V().title}}))}})},
else:function(){return _.W(_.uC,{data:function(){return F().title}},{profilePageHeaderTitleViewModel:function(G){var V=G.data;
return _.W(_.mn,{text:function(){return V().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.W(_.uC,{data:function(){return F().metadata}},{profilePageHeaderMetadataViewModel:function(G){var V=G.data;
return _.W(_.a,{cond:function(){return V().metadataRows},
then:function(J){return _.W("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.W(_.Ag,{each:J,keyBy:"INDEX"},function(b,z){return _.W(_.WQ,null,_.W(RxF,{metadataRow:b,delimiter:" \u2022 "}),_.W(g_6,{delimiter:" \u2022 ",max:function(){return J().length},
index:z}))}))}})}})))},"zm");
Yr9.idomCompat=!0;_.gQ(Yr9,"yt-profile-page-header-information-view-model",{props:{data:_.CJ}});var Yg=function(){return _.B.apply(this,arguments)||this};
_.O(Yg,_.B);Yg.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Yg.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Yg.prototype,"data",void 0);_.R([_.e({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],Yg);
_.q(Yg,"ytd-effect-pivot-header-view-model",function(){if(qrL!==void 0)return qrL;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return qrL=
C},{mode:1});var TWl;var Td=function(){return _.B.apply(this,arguments)||this};
_.O(Td,_.B);Td.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Td.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Td.prototype,"data",void 0);_.R([_.e({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],Td);
_.q(Td,"ytd-source-pivot-header-renderer",function(){if(TWl!==void 0)return TWl;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return TWl=C},{mode:1});_.gQ(_.b73,"yt-card-view-model",{props:{data:_.CJ,className:_.CJ,isSelected:_.CJ}});var IrB=_.O7r.talkToRecsStateSelector;_.gQ(_.d(function(C){var F=function(){return _.Z(C.data().flowRoot,ylz)};
_.q4(function(){var G=F(),V=function(){},J=function(){};
if(G){var b,z,Q,E=((Q=_.Z((b=F())==null?void 0:(z=b.steps)==null?void 0:z[0],_.cf))==null?void 0:Q.stepId)||"";uMh(G,E);V=QLz(G);J=E_S(G)}_.q0(function(){var t=F();t&&_.s3().dispatch(_.z3("flowStateEntity",t.flowStateEntityKey));V();V=function(){};
J();J=function(){};
_.er(_.iXd())})});
return _.W("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.W(_.UG,{contentId:function(){return C.data().contentId}},function(){return _.W("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.W(_.a,{cond:F,
then:function(G){return _.W(_.Bdt,{data:G})}}))}))},"Am"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.CJ}});_.gQ(_.d(function(){return _.W("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.W("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.W("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.W(_.Ezl,null)),_.W(_.BCu,{data:{rows:1},isExploreHub:!0}))},"Bm"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.gQ(_.d(function(C){var F=C.data;var G=C.standardUnitMinWidth;C=_.u((0,_.cq8)(F));var V=C.next().value,J=C.next().value,b=function(){var Q,E=(Q=V())==null?void 0:Q.contents;return E==null||E.length===0},z=function(){J(Object.assign({},V(),{contents:[]}))};
return _.W("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.dQ(_.Wv({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var Q=_.Z(F().chipsShelf,Zth);if(Q!=null&&Q!=null&&Q.autoselectChipOnVisible){var E,t,k=_.Z(Q==null?void 0:(E=Q.contents)==null?void 0:E[(t=Q.autoselectedChipIndex)!=null?t:0],_.Fu);k&&k.tapCommand&&_.wQ(k.tapCommand)}}}))},_.W(_.UG,{contentId:function(){return F().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.W("div",null,_.W("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.W(_.uC,{data:function(){return F().header}},{sectionHeaderViewModel:function(Q){return _.W(_.Xa,{data:Q.data,
disableHorizontalPadding:!0})}})),_.W("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.W(_.uC,{data:function(){return F().chipsShelf}},{chipsShelfViewModel:function(Q){return _.W(_.DT,{data:Q.data,
callback:z,selectionBehavior:1})}})),_.W("div",null,_.W(_.a,{cond:b,
then:function(){return _.W("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.W(_.BCu,{data:{rows:1},isExploreHub:!0}))}}),_.W(_.uC,{data:function(){var Q;
return(Q=V())==null?void 0:Q.contents}},{richShelfRenderer:function(Q){return _.W(_.qT$,{data:Q.data,
isInnerShelf:!0,standardUnitMinWidth:G})}})))}))},"Cm"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.CJ,
standardUnitMinWidth:_.CJ}});var og=function(){return _.B.apply(this,arguments)||this};
_.O(og,_.B);
og.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},
messageRenderer:"ytd-message-renderer",alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
og.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.R([_.w(_.Rr),_.Y("design:type",Object)],og.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],og.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.G1),_.Y("design:type",Object)],og.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],og.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],og.prototype,"data",void 0);
_.R([_.L(),_.Y("design:type",Number)],og.prototype,"standardUnitMinWidth",void 0);_.R([_.e({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],og);
_.q(og,"ytd-rich-section-renderer",function(){if(d3F!==void 0)return d3F;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return d3F=C},{mode:_.oN("kevlar_poly_si_batch_j029")?
1:2});_.gQ(_.q5r,"yt-profile-identity-info-view-model",{props:{data:_.CJ,hideDivider:_.CJ,isChannelInfoCard:_.CJ}});_.gQ(_.qoS,"yt-page-header-view-model",{props:{data:_.CJ,noPadding:_.CJ,enableBanner:_.CJ,cinematicContainerTopbarOffset:_.CJ,allowCinematicContainerOverflow:_.CJ,displayAsSidebar:_.CJ,displayAsPanel:_.CJ,alwaysUseMediumTextDescription:_.CJ}});_.gQ(_.d(function(C){var F=C.data;var G=function(){var J;return(J=F().numColumns)!=null?J:2},V=function(){return G()>1?3:2};
C={};return _.W("ytd-rich-grid-group",{class:_.py("ytdRichGridGroupHost",(C.ytdRichGridGroupHostFirstColumn=function(){return F().colIndex===0},C)),
style:_.VA({"--ytd-rich-grid-group-num-columns":G,"--ytd-rich-grid-items-per-group":V})},_.W("div",{class:"ytdRichGridGroupContents"},_.W(_.uC,{data:function(){var J;return(J=F().contents)==null?void 0:J.slice(0,V())}},{richItemRenderer:function(J){return _.W(_.xT2,{data:J.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Dm"),"ytd-rich-grid-group",{props:{data:_.CJ}});var rm=function(){var C=_.B.apply(this,arguments)||this;C.resizeOnObserverInit=!1;C.isInlinePreviewDisabled=_.y("web_disable_inline_preview");C.disableStickyFilterBar=!1;C.transparentBackgroundChipsBar=!1;C.hideChipsBar=!1;C.isWatchDefaultLayout=!0;C.continuationShowButton=!1;C.rowReducedHorizontalMargin=!1;C.useCompactList=!1;C.manualDownloadsPresent=!1;C.smartDownloadsPresent=!1;C.isOnline=!1;C.shouldRenderDownloadsBanner=!1;C.shouldRenderDownloadsBannerUpsell=!1;C.hasOptedIntoSmartDownloads=!1;
C.elementsPerRow=4;C.typographyBump=!1;C.slimItemsPerRow=1;C.pageLoadingFromNavigation=!1;C.resizeObserver=null;C.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"};C.rendererToTagNameMap=new Map(Object.entries(C.contentMapping()).map(function(F){var G=
_.u(F);F=G.next().value;G=G.next().value;return[F,G.component]}));
C.insertedContent=new Map;return C};
_.O(rm,_.B);_.n=rm.prototype;_.n.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var C=_.u(_.ot(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),F=C.next();!F.done;F=C.next())F.value.useCompactList=this.useCompactList};
_.n.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var C=_.u(_.ot(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),F=C.next();!F.done;F=C.next())F=F.value,F.sizing=this.sizing,F.typographyBump=this.typographyBump};
_.n.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.n.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]]"}}}};
_.n.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}}};
_.n.attached=function(){document.addEventListener("yt-page-type-changed",_.Gp(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$22174_throttledOnResize=new _.FX(this.resizeObserved,_.a8("rich_grid_resize_delay_ms",50),this)};
_.n.detached=function(){var C;(C=this.resizeObserver)==null||C.disconnect();document.removeEventListener("yt-page-type-changed",_.Gp(this,this.onPageChange))};
_.n.insertRichSection=function(C){var F=C.richItemTargetId;C=C.richSectionRendererToInsert;F&&C&&(this.insertedContent.set(F,{content:C,timestamp:Date.now()}),this.reflowContent())};
_.n.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.n.computeIsInlinePreviewEnabled=function(C,F,G){return _.y("web_disable_inline_preview")?!1:!G&&_.YH3({miniplayerIsActive:C,miniplayerPlaybackState:F})};
_.n.computeSizing=function(){var C=_.fKf(this.data);if(C||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return C?this.useCompactList?"COMPACT":C:this.miniMode?"COMPACT":"STANDARD"};
_.n.updateItemMinAndMaxWidth=function(){var C=_.a8("rich_grid_max_item_width",500);C>0&&_.jr(this.hostElement,{"--ytd-rich-grid-item-max-width":C+"px"});var F;C=this.getRichItemMinWidth((F=this.hostElement)==null?void 0:F.clientWidth);C>0&&_.jr(this.hostElement,{"--ytd-rich-grid-item-min-width":C+"px"})};
_.n.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.n.resizeObserved=function(){_.KX(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.n.onPageChange=function(){var C=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.KX(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.gT.addJob(function(){C.pageLoadingFromNavigation=!1;C.setMasthead();C.maybeSetBigYoodle();C.forceRefreshAndLog();C.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.n.dataChanged=function(){var C=this;_.KX(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.zH(this,function(){C.updateRichItemGridPositions();C.contentsElement&&_.jr(C.hostElement,{"--ytd-rich-grid-content-offset-top":C.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.n.initResizeObserver=function(){var C=this;if(window.ResizeObserver){var F;(F=this.resizeObserver)==null||F.disconnect();var G=!1;this.resizeObserver=new ResizeObserver(function(){if(G){var V;(V=C.resizeObserver)==null||V.disconnect();var J;(J=C.JSC$22174_throttledOnResize)==null||J.fire();requestAnimationFrame(function(){var z;(z=C.JSC$22174_throttledOnResize)==null||z.fire();C.initResizeObserver()})}else if(G=!0,C.resizeOnObserverInit){var b;
(b=C.JSC$22174_throttledOnResize)==null||b.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.n.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.KX(this.hostElement,"ytd-rich-item-index-update-action")};
_.n.updateElementsPerRow=function(){_.KX(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.rh({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.rh({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.n.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.n.onRichShelfRendererCollapse=function(C){if(this.shownItems){var F=C.detail;C=this.shownItems.findIndex(function(V){var J,b;return((b=_.Z(V==null?void 0:(J=V.richSectionRenderer)==null?void 0:J.content,_.EHE))==null?void 0:b.trackingParams)===F});
var G=C+1;C<0||G>=this.contentsElement.children.length||!this.shownItems[G].richItemRenderer||this.contentsElement.children[G].scrollIntoView({behavior:"smooth",block:"start"})}};
_.n.onSoftReloadPage=function(){this.scrollUpToTop()};
_.n.handleRerenderDownloadsData=function(){_.y("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.n.handlePlaylistRemoveVideosAction=function(C){var F;if(((F=_.Z(C,_.B38))==null?0:F.setVideoIds)&&this.data&&this.data.contents){C=_.Z(C,_.B38).setVideoIds;for(F=this.data.contents.length-1;F>=0;){var G=_.Z(this.data.contents[F],_.ha);(G=G&&_.Z(G.content,_.rf))&&G.setVideoId&&C.includes(G.setVideoId)&&this.splice("data.contents",F,1);F--}this.updateIndices()}};
_.n.updateIndices=function(){if(this.data&&this.data.contents)for(var C=0;C<this.data.contents.length;C++)this.set("data.contents."+C+".richItemRenderer.index",_.eN(String(C+1)))};
_.n.hasTopRowInlinePlayableVideoWithEndorsement=function(C){var F;return!((F=C.slice(0,this.getItemsPerRow()))==null||!F.some(function(G){var V;G=_.Z(G==null?void 0:(V=G.richItemRenderer)==null?void 0:V.content,_.mV);var J;return(G==null?void 0:G.inlinePlaybackEndpoint)&&(G==null?void 0:(J=G.thumbnailOverlays)==null?void 0:J.some(function(b){return b.thumbnailOverlayEndorsementRenderer}))}))};
_.n.refreshGridLayoutNew=function(C,F,G,V){var J=V.postsPerRow;var b=V.slimItemsPerRow;var z=V.gameCardsPerRow;V=V.miniGameCardsPerRow;var Q;if((Q=this.data)==null||!Q.contents||!this.containerWidth)return!1;var E;if((E=this.data.responsiveContainerConfiguration)==null?0:E.responsiveSize){var t=_.Q2s(this.data.responsiveContainerConfiguration,this.containerWidth),k;Q=_.XN(Object.assign({},t,{standardUnitMinWidth:(k=this.data)==null?void 0:k.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&t.isCompactList)}else Q=_.XN({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(t=this.data)==null?void 0:t.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=Q.typographyBump;k=!1;if(C||this.elementsPerRow!==Q.numItems||this.postsPerRow!==J||this.slimItemsPerRow!==b||this.gameCardsPerRow!==
z||this.miniGameCardsPerRow!==V||this.gutter!==Q.gutter)k=this.elementsPerRow!==Q.numItems,this.elementsPerRow=Q.numItems,this.postsPerRow=J,this.slimItemsPerRow=b,this.gameCardsPerRow=z,this.miniGameCardsPerRow=V,this.gutter=Q.gutter,this.itemWidth=Q.itemWidth,this.reflowContent(F),_.jr(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":Q.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(G);this.ytdReduxBehavior.dispatch(_.rh({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:Q.maxContainerWidth}));return k};
_.n.refreshGridLayout=function(C,F){var G,V=(G=this.hostElement)==null?void 0:G.clientWidth;this.containerWidth=this.adjustRichGridWidth(V,!0);var J;if((J=this.data)==null||!J.contents||!this.containerWidth)return C&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(C=!0,this.pendingForceReflow=!1);G=this.getRichItemMinWidth(V);var b=this.isShortsPanel?146:194,z=this.getMiniGameCardMinWidth(),Q=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;V=G=this.calcElementsPerRow(G,
Q);(J=G<=3&&this.miniModeAllowed())&&(G=this.calcElementsPerRow(240,4));var E=this.calcMaxSlimElementsPerRow(G,Q,this.isDefaultGrid);Q=this.calcElementsPerRow(b,E);var t=this.calcElementsPerRow(this.isCompactGrid?b:154,E);b=this.calcElementsPerRow(this.isCompactGrid?b:z,E);z=!1;if(this.sizing)return this.refreshGridLayoutNew(C,F,J,{postsPerRow:V,slimItemsPerRow:Q,gameCardsPerRow:t,miniGameCardsPerRow:b});if(C||this.elementsPerRow!==G||this.postsPerRow!==V||this.slimItemsPerRow!==Q||this.gameCardsPerRow!==
t||this.miniGameCardsPerRow!==b)z=this.elementsPerRow!==G,this.elementsPerRow=G,this.postsPerRow=V,this.slimItemsPerRow=Q,this.gameCardsPerRow=t,this.miniGameCardsPerRow=b,this.reflowContent(F),this.updateElementsPerRow(),_.jr(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)&&_.jr(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(J);_.KX(this.hostElement,"yt-rich-grid-layout-refreshed");return z};
_.n.getRichItemMinWidth=function(C){var F=_.a8("rich_grid_min_item_width",310);if(!_.y("kevlar_disable_min_width_override")){var G,V;F=(V=(G=this.data)==null?void 0:G.minItemWidth)!=null?V:F}return F+_.wTZ(C)};
_.n.calcMaxSlimElementsPerRow=function(C,F,G){return(G===void 0?0:G)?C===1?2:C%2===0?C/2*3:C+2:F*2};
_.n.adjustRichGridWidth=function(C,F){var G=_.y("disable_rich_grid_guide_compensation");if(!this.isWatch&&!G){G=_.I8().resolve(_.Qt(_.KK));var V=G==null?void 0:G.guideElement;if(!(!G||G.getData()||V!=null&&V.opened||G.getMiniGuideVisible()))if(G.canFitPersistentGuide(C)&&G.getGuideExpandsAutomatically()){var J,b,z=Number((J=window.getComputedStyle(this.hostElement))==null?void 0:(b=J.getPropertyValue("--app-drawer-width"))==null?void 0:b.replace("px",""));C-=z||0}else if(G.canFitMiniGuide(C)){var Q;
J=Number((z=window.getComputedStyle(this.hostElement))==null?void 0:(Q=z.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:Q.replace("px",""));C-=J||0}}C>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(C-=F?32:48));return C};
_.n.calcElementsPerRow=function(C,F){var G=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),V=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((G+V)/(C+V))||1,F)};
_.n.reflowContent=function(C){var F=this;if(!this.isReflowing){this.isReflowing=!0;var G,V,J=!!((G=this.data)==null?0:(V=G.contents)==null?0:V.some(function(Q){return _.Z(Q,_.eZ)}));
G=this.getItemsPerRow();var b;V=(b=this.data)==null?void 0:b.reflowOptions;C&&(_.NV("rgr_s"),_.zH(this,function(){_.NV("rgr_nrf")}));
C={};(b=_.ot(this.hostElement).querySelector("#contents"))&&(C={contentElement:b,rendererToTagNameMap:this.rendererToTagNameMap});b=(b=this.data.contents)?b.slice():[];J=VUY(b,G,J,V,this.getRichGridStyle(),C,this.insertedContent);var z=J.orderedContent;if(J=J.pinnedContentNotShownTargetIds)for(J=_.u(J),G=J.next();!G.done;G=J.next())this.insertedContent.delete(G.value);J=function(){F.shownItems=z;F.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(z),_.zH(this,J)):J()}};
_.n.getFirstRowItems=function(C){for(var F=[],G=0;G<C.length;G++){var V=void 0,J=void 0,b=void 0,z=void 0,Q=void 0,E=void 0;if(((V=C[G])==null?void 0:(J=V.richItemRenderer)==null?void 0:J.rowIndex)===0||((b=C[G])==null?void 0:(z=b.richGroupRenderer)==null?void 0:z.rowIndex)===0||((Q=C[G])==null?void 0:(E=Q.richSectionRenderer)==null?void 0:E.rowIndex)===0)F.push(C[G]);else break}return F};
_.n.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.n.resetInsertedContentIfNeeded=function(){(_.y("web_explore_hub_on_hover")||_.y("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.n.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.n.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.n.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.n.terminateVideoPreview=function(){_.KX(this.hostElement,"yt-terminate-video-preview-action")};
_.n.updateRichItemGridPositions=function(){var C={gridData:{gridColumnCount:this.elementsPerRow}},F;((F=this.data)==null?0:F.trackingParams)&&(F=_.ZQ())&&_.xB(F,_.zS(this.data.trackingParams),C);_.KX(this.hostElement,"ytd-rich-item-index-update-action")};
_.n.miniModeAllowed=function(){return this.isChannelPage};
_.n.getMiniGameCardMinWidth=function(){return 154};
_.n.updateMiniMode=function(C){this.miniMode=this.miniModeAllowed()&&C;this.ytdReduxBehavior.dispatch(_.rh({type:"SET_RICH_GRID_MINI_MODE",payload:C}))};
_.n.isCurrentPage=function(){return location.pathname===this.pagePath};
_.n.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var C=_.I8().resolve(_.qG).getCurrentPage();C&&C.setScrollTop(0)}};
_.n.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.n.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.n.maybeSetBigYoodle=function(){var C,F=(C=this.data)==null?void 0:C.bigYoodle;this.bigYoodleData!==F&&(this.bigYoodleData=F)};
_.n.setMasthead=function(){var C;((C=this.data)==null?0:C.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.n.getRichGridStyle=function(){var C,F;return(F=(C=this.data)==null?void 0:C.style)!=null?F:"RICH_GRID_STYLE_UNKNOWN"};
_.n.onIsShortsGridChange=function(){var C=this.ytdReduxBehavior,F=C.dispatch,G=this.getRichGridStyle();F.call(C,_.rh({type:"SET_RICH_GRID_STYLE",payload:G}))};
_.I6.Object.defineProperties(rm.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var C;return(((C=this.data)==null?void 0:C.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var C;return(((C=this.data)==null?void 0:C.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var C=_.I8().resolve(_.qG).getCurrentPage(),F,G,V;return(((F=this.data)==null?void 0:F.targetId)==="browse-feedFEsfv_audio_pivot"||_.y("web_enable_channel_pivot_panel")&&((G=this.data)==null?void 0:G.targetId)==="browse-feedFEsfv_channel_pivot"||_.y("web_enable_effect_pivot_panel")&&((V=this.data)==null?void 0:V.targetId)==="browse-feedFEsfv_effect_pivot")&&(C==null?void 0:C.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.y("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 C;return!((C=this.data)==null?0:C.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var C;return((C=_.I8().resolve(_.qG).getCurrentPage())==null?void 0:C.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var C;return((C=_.I8().resolve(_.qG).getCurrentPage())==null?void 0:C.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var C;return(((C=this.data)==null?void 0:C.targetId)||"")==="watch-next-feed"}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var C,F,G;return((C=this.data)==null?0:C.enableContentSpecificAspectRatio)||((F=this.data)==null?0:(G=F.responsiveContainerConfiguration)==null?0:G.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.a8("web_continuation_handler_margin",0):0}}});
rm.prototype.onIsShortsGridChange=rm.prototype.onIsShortsGridChange;rm.prototype.onReloadContinuationFinish=rm.prototype.onReloadContinuationFinish;rm.prototype.reflowContent=rm.prototype.reflowContent;rm.prototype.handleRerenderDownloadsData=rm.prototype.handleRerenderDownloadsData;rm.prototype.onRichShelfRendererCollapse=rm.prototype.onRichShelfRendererCollapse;rm.prototype.onRequestElementsPerRow=rm.prototype.onRequestElementsPerRow;rm.prototype.contentLengthChanged=rm.prototype.contentLengthChanged;
rm.prototype.dataChanged=rm.prototype.dataChanged;rm.prototype.onSizingChange=rm.prototype.onSizingChange;rm.prototype.onUseCompactListChange=rm.prototype.onUseCompactListChange;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],rm.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],rm.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.AY),_.Y("design:type",Object)],rm.prototype,"ironResizableBehavior",void 0);
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],rm.prototype,"actionHandlerBehavior",void 0);_.R([_.w(_.G1),_.Y("design:type",Object)],rm.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],rm.prototype,"componentBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],rm.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],rm.prototype,"data",void 0);
_.R([_.L({reflectToAttribute:!0,selector:_.HY}),_.Y("design:type",Boolean)],rm.prototype,"miniMode",void 0);_.R([_.L({value:[]}),_.Y("design:type",Array)],rm.prototype,"shownItems",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],rm.prototype,"isReflowing",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],rm.prototype,"isFilteredFeed",void 0);_.R([_.L({selector:_.Mpw}),_.Y("design:type",Boolean)],rm.prototype,"guideIsExpanded",void 0);
_.R([_.L({selectorArgs:["entitySelectorType"],selector:function(C,F){if(_.y("kevlar_modern_downloads_page")&&F&&F!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(F){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":F=C.entities;var G=_.aA(F),V=_.k2(F),J=_.Tqo(C),b=_.Ybi(C),z=_.oa9(C),Q=_.kVS(F),E=_.zc(G),t=_.U3(F);return _.imI(G,V,Q,_.ySS(F),J,b,E,t,z,_.KPB(C),_.NW(C));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return C=_.aA(C.entities),_.$Cs(C);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return C=
_.WPw(C.entities),_.bmS(C);default:_.Yw(new _.Ay("Error: entitySelectorType defined but not matched in selector.",C,F))}}}),
_.Y("design:type",Object)],rm.prototype,"entityDrivenRichGridData",void 0);_.R([_.L(),_.Y("design:type",Object)],rm.prototype,"resizeOnObserverInit",void 0);_.R([_.L(),_.Y("design:type",Object)],rm.prototype,"bigYoodleData",void 0);_.R([_.L(),_.Y("design:type",Object)],rm.prototype,"mastheadData",void 0);_.R([_.L(),_.Y("design:type",Boolean)],rm.prototype,"isInlinePreviewDisabled",void 0);_.R([_.L(),_.Y("design:type",Object)],rm.prototype,"disableStickyFilterBar",void 0);
_.R([_.L(),_.Y("design:type",Object)],rm.prototype,"transparentBackgroundChipsBar",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],rm.prototype,"hideChipsBar",void 0);_.R([_.L(),_.Y("design:type",Object)],rm.prototype,"isWatchDefaultLayout",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],rm.prototype,"continuationShowButton",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],rm.prototype,"rowReducedHorizontalMargin",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],rm.prototype,"useCompactList",void 0);_.R([_.L({selector:function(C){return _.k2(C.entities).length>0}}),
_.Y("design:type",Object)],rm.prototype,"manualDownloadsPresent",void 0);_.R([_.L({selector:function(C){return _.aA(C.entities).length>0}}),
_.Y("design:type",Object)],rm.prototype,"smartDownloadsPresent",void 0);_.R([_.L({selector:_.NW}),_.Y("design:type",Object)],rm.prototype,"isOnline",void 0);_.R([_.L({selector:_.Ybi}),_.Y("design:type",Object)],rm.prototype,"shouldRenderDownloadsBanner",void 0);_.R([_.L({selector:_.KPB}),_.Y("design:type",Object)],rm.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.R([_.L({selector:_.Tqo}),_.Y("design:type",Object)],rm.prototype,"hasOptedIntoSmartDownloads",void 0);
_.R([_.iP("useCompactList"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rm.prototype,"onUseCompactListChange",null);_.R([_.iP("sizing","typographyBump"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rm.prototype,"onSizingChange",null);_.R([_.L({selector:_.hhE}),_.Y("design:type",Number)],rm.prototype,"miniplayerPlaybackState",void 0);_.R([_.L({selector:_.yj}),_.Y("design:type",Boolean)],rm.prototype,"miniplayerIsActive",void 0);
_.R([_.L({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.Y("design:type",Boolean)],rm.prototype,"isInlinePreviewEnabled",void 0);_.R([_.L({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.Y("design:type",String)],rm.prototype,"sizing",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],rm.prototype,"elementsPerRow",void 0);
_.R([_.L(),_.Y("design:type",Object)],rm.prototype,"typographyBump",void 0);_.R([_.L(),_.Y("design:type",Number)],rm.prototype,"itemWidth",void 0);_.R([_.$z("#header"),_.Y("design:type",HTMLElement)],rm.prototype,"headerElement",void 0);_.R([_.$z("#contents"),_.Y("design:type",HTMLElement)],rm.prototype,"contentsElement",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rm.prototype,"dataChanged",null);
_.R([_.zp("data.contents.length"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rm.prototype,"contentLengthChanged",null);_.R([_.VG("yt-request-elements-per-row"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rm.prototype,"onRequestElementsPerRow",null);
_.R([_.VG("yt-rich-shelf-renderer-collapse"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],rm.prototype,"onRichShelfRendererCollapse",null);_.R([_.zp("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rm.prototype,"handleRerenderDownloadsData",null);
_.R([_.M("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],rm.prototype,"entitySelectorType",null);_.R([_.L({reflectToAttribute:!0}),_.M("data.targetId"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rm.prototype,"isSub",null);_.R([_.L({reflectToAttribute:!0}),_.M("data.targetId"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rm.prototype,"isWatch",null);
_.R([_.L({reflectToAttribute:!0}),_.M("data.targetId"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rm.prototype,"isShortsPanel",null);_.R([_.L({reflectToAttribute:!0}),_.M("isWatch"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rm.prototype,"reducedTopMargin",null);_.R([_.L({reflectToAttribute:!0}),_.M("data","isWatch","isWatchDefaultLayout"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rm.prototype,"noTopMargin",null);
_.R([_.L({reflectToAttribute:!0}),_.M("isInlinePreviewEnabled","shownItems"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rm.prototype,"topRowEndorsement",null);_.R([_.M("data.header"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rm.prototype,"hideHeader",null);_.R([_.VG("yt-rich-grid-reflow"),_.Y("design:type",Function),_.Y("design:paramtypes",[Boolean]),_.Y("design:returntype")],rm.prototype,"reflowContent",null);
_.R([_.VG("yt-reload-continuation-finish"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rm.prototype,"onReloadContinuationFinish",null);_.R([_.M("data"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rm.prototype,"isSlimGrid",null);_.R([_.M("data"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rm.prototype,"isShortsGrid",null);
_.R([_.M("data","isSlimGrid","isShortsGrid"),_.L(),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rm.prototype,"noRichItemGutterMargins",null);_.R([_.M("data"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rm.prototype,"isShortsGridSlim",null);_.R([_.M("data"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rm.prototype,"isCompactGrid",null);
_.R([_.M("data"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rm.prototype,"isDefaultGrid",null);_.R([_.M("data.targetId"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rm.prototype,"hideChipsBarOnWatch",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rm.prototype,"onIsShortsGridChange",null);
_.R([_.M("data.enableContentSpecificAspectRatio"),_.L(),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rm.prototype,"force16By9ThumbnailAspectRatio",null);_.R([_.M("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],rm.prototype,"continuationTriggerOffset",null);_.R([_.e({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],rm);
_.q(rm,"ytd-rich-grid-renderer",function(){if(hxL!==void 0)return hxL;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return hxL=C},{mode:2});var o_6=_.d(function(C){return _.W("yt-feedback-prompt-view-model",{class:_.py("ytFeedbackPromptViewModelHost",C.className)},_.W(_.a,{cond:function(){return C.data().text},
then:function(F){return _.W(_.mn,{text:F})}}),_.W("div",{class:"ytFeedbackPromptViewModelButtons"},_.W(_.uC,{data:function(){return C.data().likeButton}},{likeButtonViewModel:_.of}),_.W(_.uC,{data:function(){return C.data().dislikeButton}},{dislikeButtonViewModel:_.TR})))},"Em");var rll=_.d(function(C){var F=C.thumbsUp,G=C.thumbsDown,V=C.rightAlignThumbs;C=_.u(_.yH(!1,void 0,"OxPsH"));var J=C.next().value,b=C.next().value;C=_.u(_.yH(!1,void 0,"V5vWne"));var z=C.next().value,Q=C.next().value;C={};return _.W("div",{class:_.py("ytwThumbsUpDownThumbs",(C.ytwThumbsUpDownRightAlign=function(){return V==null?void 0:V()},C))},_.W(_.AS,{data:F,
onToggle:function(E){b(E);z()&&Q(!1)},
buttonShapeOverrides:function(){return{toggled:J()}}}),_.W(_.AS,{data:G,
onToggle:function(E){Q(E);J()&&b(!1)},
buttonShapeOverrides:function(){return{toggled:z()}}}))},"Fm");
rll.idomCompat=!0;var D30=_.d(function(C){var F=function(){return C.data().pendingStateEntityKey||""},G=_.$b(_.Wdz,F),V=function(){var Q;
if(!(Q=C.disabled())){var E;Q=!((E=G())==null||!E.isPendingResponse)}return Q},J=_.u(_.yH($30(""),void 0,"YGalFd")),b=J.next().value,z=J.next().value;
_.s0(function(){requestAnimationFrame(function(){var Q=C.data().onShowAnimationMs||0;Q=Q>0?$30("--chip-animation-duration: "+Q+"ms;"):$30("");z(Q)})});
return _.W("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:b},_.W(_.Ag,{each:function(){return C.data().chipData||[]},
keyBy:"REFERENCE"},function(Q){return _.W(Kdl,{data:Q,disabled:V,pendingStateKey:F,onError:C.onError})}))},"Hm"),Kdl=_.d(function(C){var F=_.nc("button"),G=_.u(_.yH(!0,void 0,"hspx2d")),V=G.next().value,J=G.next().value,b=function(){return C.data().text.content},z=function(){return C.data().transparentWhenLoading},Q=_.nZ(_.SV.currentPageSubTypeSelector),E=function(){if(_.y("enable_ai_companion")){var k=_.I8().resolve(_.Qt(_.Glt));
switch(Q()){case "watch":var U,H;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(U=_.jV())==null?void 0:(H=U.getVideoData())==null?void 0:H.video_id};case "search":var l,N;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(l=k==null?void 0:_.U3T(k))!=null?l:[],entityId:(N=(new URLSearchParams(window.location.search)).get("search_query"))!=null?N:void 0};case "companion-canvas":var S;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(S=k==null?void 0:_.U3T(k))!=null?S:[]}}}},t=_.CZ(function(k){var U,
H,l,N,S,f,c,A;
return _.I(function(T){switch(T.nextAddress){case 1:k.stopPropagation();if(C.disabled())return T.return();H=String(Math.floor(((U=_.jV())==null?void 0:U.getCurrentTime())||0)*1E3);l="youchat-"+Date.now();N=function(){_.ND(C.data().onClick||{});var P={continuationCommand:{token:C.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},g={inputComposerFormData:{clientMessageId:l,playerOffsetMs:H,pageContext:E()}};return new Promise(function(r,C9){_.ND(P,{form:{formData:g},commandController:{onSuccess:function(Wo,
EB){r(EB)},
onServerError:function(Wo,EB){C9(EB.error)}}})})};
S=_.tU6(C.pendingStateKey());S(!0);_.K$F("#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");J(!1);_.yy(T,2);return T.yield(N(),4);case 4:_.Gn(T,3);break;case 2:f=_.wa(T),(A=(c=C).onError)==null||A.call(c,f);case 3:S(!1),_.S9(T)}})});
return _.W(_.a,{cond:V,then:function(){return _.W("div",{class:"ytwYouChatChipsDataChipWrapper"},_.W("button",{el:F,class:"ytwYouChatChipsDataChip","data-disabled":C.disabled,"data-transparent-loading":z,"on:click":t,tabindex:0},b))}})},"Im");var pV_=_.d(function(C){var F=C.data;var G=C.initiallyExpanded;var V=function(){var t;return(t=F().conversationResourceData)==null?void 0:t.learningGuideData};
C=_.u(_.Gb(function(){var t;return(t=G==null?void 0:G())!=null?t:!1}));
var J=C.next().value,b=C.next().value,z=function(){b(!0)},Q=_.w0(function(){var t,k;
return(k=(t=V())==null?void 0:t.sections)!=null?k:[]},void 0,"QxyRyf"),E=_.w0(function(){return Q().length>4},void 0,"MEbwoe");
C=_.w0(function(){var t;return!J()&&E()&&(t=V())!=null&&t.expandButton?Q().slice(0,4):Q()},void 0,"hIE70b");
return _.W("yt-conversation-resource-view-model",{class:_.py("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.W(_.uC,{data:C},{expandableMetadataViewModel:_.B08}),_.W(_.a,{cond:function(){return E()&&!J()},
then:function(){return _.W("div",{id:"showMoreButton"},_.W(_.uC,{data:function(){var t;return(t=V())==null?void 0:t.expandButton}},{buttonViewModel:function(t){return _.W(_.tS,{data:t.data,
onClick:z})}}))}}))},"Jm");var m3L=_.d(function(C){var F=function(){var A;return(A=C.data().text)==null?void 0:A.content},G=function(){var A,T;
return(A=C.data().webData)==null?void 0:(T=A.textResult)==null?void 0:T.content},V=_.I8().resolve(_.hC),J=_.FN(),b=function(){return C.data().chatResponseStyle},z=function(){return!C.data().transparentBackground},Q=function(){return C.data().rightAlignThumbs},E=function(){return C.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||C.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},t=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:E()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:C.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},k=function(){var A;
return C.data().webData||((A=C.data().text)==null?void 0:A.content)||C.data().videoResultsData||C.data().conversationResourceViewModel||C.data().quiz||C.data().richContent},U=function(){return!!C.data().sectionHeader||k()},H=function(){var A;
return(A=C.data().videoResultsData)==null?void 0:A.videoShelf},l=function(){var A;
return(A=C.data().webData)==null?void 0:A.sourcesShelf},N=function(){return b()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||b()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:C.data().thumbsDownViewModel&&C.data().thumbsUpViewModel},S=function(){return _.Z(C.data().thumbsUpViewModel,_.Gz)},f=function(){return _.Z(C.data().thumbsDownViewModel,_.Gz)};
_.s0(function(){requestAnimationFrame(function(){var A;(A=C.shouldAnimateIcon)!=null&&A.call(C)&&ar0(J.lottieEl)})});
var c={};return _.W("you-chat-item-view-model",{class:_.py("ytwYouChatItemViewModelYouChatItemViewModel",(c.ytwYouChatItemViewModelColumnLayout=function(){return E()},c)),
"data-target-id":function(){return C.data().id||""}},_.W(_.a,{cond:function(){return C.data().removeIcon?!1:U()},
then:function(){var A={};return _.W("div",{"aria-hidden":"true"},_.W(_.NQ,{className:_.py("ytwYouChatItemViewModelIcon",(A.ytwYouChatItemViewModelRtl=V==="rtl",A.ytwYouChatItemViewModelHidden=function(){return!(C.data().hideIcon||b()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||b()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:U())},A)),
animationName:"YOUCHAT_ICON",data:t,animationRef:J}))}}),_.W(_.a,{cond:U,
then:function(){var A={};return _.W("div",{class:_.py("ytwYouChatItemViewModelHost",(A.ytwYouChatItemViewModelHostNoPadding=function(){return!!C.data().sectionHeader&&!k()},A.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return b()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},A.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return b()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},A.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return b()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
A.ytwYouChatItemViewModelGradientBackground=z,A)),
role:"alert"},_.W(_.a,{cond:F,then:function(T){return _.W(_.jb,{text:T,wrapCodeBlocks:!0})}}),_.W(_.uC,{data:function(){return C.data().sectionHeader}},{sectionHeaderViewModel:function(T){var P={};
return _.W(_.Xa,{data:T.data,className:_.py("ytwYouChatItemViewModelSectionHeader",(P.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!C.data().sectionHeader&&!k()},P)),
forceSmallLayout:!0})}}),_.W(_.a,{cond:G,
then:function(T){return _.W(_.jb,{text:T,wrapCodeBlocks:!0})}}),_.W(_.a,{cond:H,
then:function(){return _.W("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.W(_.uC,{data:function(){var T;return(T=C.data().videoResultsData)==null?void 0:T.videoShelf}},{horizontalShelfViewModel:function(T){return _.W(_.mQ,{data:T.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.W(_.a,{cond:l,
then:function(){return _.W("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.W(_.uC,{data:function(){var T;return(T=C.data().webData)==null?void 0:T.sourcesShelf}},{horizontalShelfViewModel:function(T){return _.W(_.mQ,{data:T.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.W(_.uC,{data:function(){return C.data().conversationResourceViewModel}},{conversationResourceViewModel:pV_}),_.W(_.uC,{data:function(){return C.data().quiz}},{learningJourneyQuizViewModel:_.UHy}),_.W(_.uC,{data:function(){return C.data().richContent}},{cardViewModel:_.b73,
linearLayoutViewModel:_.Kw}),_.W(_.a,{cond:N,then:function(){return _.W(rll,{thumbsUp:S,thumbsDown:f,rightAlignThumbs:Q})}}))}}),_.W(_.a,{cond:function(){return C.data().chipsData},
then:function(A){return _.W(D30,{data:A,disabled:C.pending,onError:C.onError})}}))},"Lm");
m3L.idomCompat={callbacks:{onError:!0,onSend:!0}};var C00=_.d(function(C){var F=function(){return C.data().choiceSelectedText},G=function(){return C.data().hasGradientBackground},V={};
return _.W("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.W(_.a,{cond:F,then:function(){return _.W("div",{class:"ytYouChatUserTurnChoiceSelected"},_.W(_.mn,{text:F}))}}),_.W("div",{class:_.py("ytYouChatUserTurnUserMessage",(V.ytYouChatUserTurnGradientContainer=G,V.ytYouChatUserTurnDefaultContainer=function(){return!G()},V))},function(){return C.data().text}))},"Mm");var jn9=_.d(function(C){var F=_.u((0,_.dCl)(C.data)).next().value;return _.W("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return C.data().targetId||""},
"aria-busy":function(){var G,V;return(V=(G=F().contents)==null?void 0:G.some(function(J){return!!J.chatLoadingViewModel}))!=null?V:!1}},_.W(_.uC,{data:function(){return C.data().header}},{chipBarViewModel:_.AH$,
sectionHeaderViewModel:_.Xa}),_.W(_.uC,{data:function(){return F().contents}},{accordionViewModel:_.Zr$,
alertBannerViewModel:_.Rku,chatLoadingViewModel:_.Wmd,chatUserTurnViewModel:C00,feedbackPromptViewModel:o_6,gridShelfViewModel:function(G){return _.W(_.P18,{data:G.data,shouldUseOwnContainerSize:!0})},
learningJourneyLoaderViewModel:_.teu,linearLayoutViewModel:_.Kw,lockupViewModel:function(G){return _.W(_.ZM,{data:G.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:C.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.Xa,videoOverviewViewModel:_.vc$,youChatItemViewModel:function(G){return _.W(m3L,{data:G.data,pending:!1})}}))},"Nm");_.gQ(_.d(function(C){var F=_.u((0,_.dCl)(C.data)).next().value,G=_.Jt("yt-section-list-renderer"),V=_.u(_.yH(void 0,void 0,"Wuldnb")),J=V.next().value,b=V.next().value,z=function(){var Q;return _.Z((Q=C.data().sectionListLayoutConfiguration)==null?void 0:Q.layoutConfiguration,NW6)};
_.q4(function(){var Q,E=(Q=G.value)==null?void 0:Q.clientWidth;if(z()){Q=z();var t=Q.responsiveSize;E=E<528?"CONTAINER_SIZE_NARROW":E<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var k=_.u(Q.responsiveMap||[]);for(var U=k.next();!U.done;U=k.next())if(U=U.value,U.containerSize===E){k=U.containerType;break b}k=void 0}if(k&&t){b:{if(k==="CONTAINER_TYPE_VERTICAL_LIST")if(t==="RESPONSIVE_SIZE_STANDARD"){if(E!=="CONTAINER_SIZE_NARROW"){U="50%";break b}}else{U=E==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}U=void 0}Q={responsiveSize:t,containerSize:E,containerType:k,force16By9ThumbnailAspectRatio:!Q.enableContentSpecificAspectRatio,contentPreviewWidth:U,fullbleed:(k==="CONTAINER_TYPE_VERTICAL_LIST"||k==="CONTAINER_TYPE_GRID")&&E==="CONTAINER_SIZE_NARROW"&&!1}}else Q=void 0}else Q=void 0;b(Q)});
return _.W("yt-section-list-renderer",{class:_.py("ytSectionListRendererHost",C.className),el:G,"data-target-id":function(){return C.data().targetId||""}},_.W(_.uC,{data:function(){return F().contents}},{itemSectionRenderer:function(Q){return _.W(jn9,{data:Q.data,
containerLayoutConfig:J})}}))},"Om"),"yt-section-list-renderer",{props:{data:_.CJ,
className:_.s9}});var FYn;var GBB;var VS6=function(){return _.B.apply(this,arguments)||this};
_.O(VS6,_.B);_.R([_.L(),_.Y("design:type",Object)],VS6.prototype,"data",void 0);_.R([_.Z5({is:"yt-alert-renderer",disableElementRegistration:!0})],VS6);
_.q(VS6,"yt-alert-renderer",function(){if(GBB===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;FYn===void 0&&(FYn=document.createElement("template"));var V=FYn;G.call(F,V.content.cloneNode(!0),C.content.firstChild);GBB=C}C=GBB;return C},{mode:2});
}catch(e){_._DumpException(e)}
try{
var Vvt;Vvt=function(C,F,G,V){G||(C?V&&(V.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||V.WINDOW_SIZE_CHANGED&&(F.width!==window.innerWidth||F.height!==window.innerHeight)||V.SAFARI_ABORTED_BY_NEW_TRANSITION&&C instanceof DOMException&&C.name==="AbortError"&&C.message.includes("Old view transition aborted by new view transition"))||_.gD(C):_.gD(Error("vj")))};
_.idt=function(C,F){F=F===void 0?{}:F;var G,V,J,b,z,Q,E,t,k,U,H,l,N;return _.I(function(S){switch(S.nextAddress){case 1:G=F;V=G.shouldWrap===void 0?!0:G.shouldWrap;J=G.skipTransitionTimeoutMs===void 0?300:G.skipTransitionTimeoutMs;b=G.beforeTransition;z=G.afterTransition;if(!V||!document.startViewTransition||document.visibilityState==="hidden")return S.return(C());Q={width:window.innerWidth,height:window.innerHeight};E=!1;(t=b)==null||t();_.yy(S,2);k=document.startViewTransition(C);U=setTimeout(function(){k.skipTransition();
E=!0},J);
return S.yield(k.ready,4);case 4:return clearTimeout(U),S.yield(k.finished,5);case 5:clearTimeout(U);(H=z)==null||H();_.Gn(S,0);break;case 2:l=_.wa(S),(N=z)==null||N(),Vvt(l,Q,E,F.ignoredErrors),_.S9(S)}})};
_.JRr=function(C,F){var G=_.nO5(F);G!=="javascript:"&&G!=="data:"&&C.setAttribute("href",F)};
_.wr=function(){for(var C=Array(36),F=0,G,V=0;V<36;V++)V==8||V==13||V==18||V==23?C[V]="-":V==14?C[V]="4":(F<=2&&(F=33554432+Math.random()*16777216|0),G=F&15,F>>=4,C[V]=_.gk5[V==19?G&3|8:G]);return C.join("")};
_.$z_=function(C,F,G){C.persistentPanelContainerMap.set(G,F)};/*

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 bd8=_.h6(['<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>']),
nTr=_.Bkm(bd8);nTr.setAttribute("style","display: none;");document.head.appendChild(nTr.content);_.MF=_.Exs(function(C){var F=_.Md("DIV");C&&(F.className=C);F.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";C=_.Md("DIV");_.BSu(C,"200px","200px");F.appendChild(C);document.body.appendChild(F);C=F.offsetWidth-F.clientWidth;_.So(F);return C});var up_;var zus;var Sa=function(){var C=_.B.apply(this,arguments)||this;C.icon=null;return C};
_.O(Sa,_.B);Sa.prototype.dismiss=function(){_.oo(this.hostElement,"yt-live-chat-error-message-dismiss")};
Sa.prototype.computeIcon=function(C){return C&&C.iconType?"yt-icons:"+C.iconType.toLowerCase():"yt-icons:close"};
_.R([_.L(),_.Y("design:type",Object)],Sa.prototype,"data",void 0);_.R([_.L({computed:"computeIcon(data.icon)"}),_.Y("design:type",Object)],Sa.prototype,"icon",void 0);_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],Sa);
_.q(Sa,"yt-live-chat-error-message-renderer",function(){if(zus===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;up_===void 0&&(up_=document.createElement("template"));var V=up_;G.call(F,V.content.cloneNode(!0),C.content.firstChild);zus=C}C=zus;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var HBL,lB9,y2B,ZBF,wp0,Lv_,B0F,vKB,fBS,hlz,c2S,vH,A29,elF,d0B,x0n,sXL,qqh,PbS,gKT,Rlz,YqF,T0S,oK_,r20,Kv0,D09,ppY,m0_,CRz,jDl,FN0,GFn,V_l,iWY,JgL,$4_,uFl,QDY,Enl,WNS,t_6,aNh,bWh,nn0,HWT,lN0,ygL,ZWY,NiY,kFL;HBL=function(C,F){return _.jN(C.entities,"timedMarkersListSyncEntity",F)};
lB9=function(C,F){return _.jN(C.entities,"liveReactionsDataEntity",F)};
y2B=function(C,F){C=_.jN(C.entities,"booleanEntity",F);return!(!C||!C.value)};
ZBF=function(C,F){var G=_.ZQ();G&&C&&_.vA(G,_.zS(C),F)};
_.N0Y=function(C){return C.watch.isWatchActive};
_.OB_=function(C){return _.l5(C)||_.yA(C)||_.jKA(C)};
_.Xp6=function(C){return!_.OB_(C)};
_.BH=function(C){return C.watch.watchScrollTop};
wp0=function(C){return C.watch.isLiveChatCollapsed};
_.MEL=function(){_.y("web_watch_log_theater_mode")&&_.Oss("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.Sq_=function(C,F,G){if(!C.includes("START_TIME_PLACEHOLDER")||!C.includes("END_TIME_PLACEHOLDER"))return C;var V=new Date(0),J=new Date(0);V.setUTCMilliseconds(F);J.setUTCMilliseconds(G);return C.replace("START_TIME_PLACEHOLDER",_.h4(V,7)).replace("END_TIME_PLACEHOLDER",_.h4(J,7))};
Lv_=function(C,F){return _.jN(C.entities,"booleanEntity",F)};
B0F=function(){return function(C){_.er(_.z3("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:C}))}};
vKB=function(C){switch(C){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}};
fBS=function(C,F,G){var V=_.ZD(G);C&&F&&V&&C.getPlayerPromise().then(function(J){_.SyI(V)&&_.P8();(new _.xV(J)).executeCommand(V,F);_.y("continue_playback_on_desktop_companion_click")||J.pauseVideo()})};
hlz=function(C){var F=_.gE(),G;if(G=_.mN("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var V;G=(V=G())==null?void 0:V.layoutId}else G=null;fBS(F,G,C)};
c2S=function(C){var F=_.gE(),G;if(G=_.mN("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var V;G=(V=G())==null?void 0:V.layoutId}else G=null;fBS(F,G,C)};
vH=function(C,F){var G=C<0?"-":"";C=Math.abs(C);var V=Math.floor(C/3600),J=Math.floor(C)%3600,b=Math.floor(J/60);J=Math.floor(J)%60;var z="";(F===void 0?0:F)&&(z="."+Math.round((C-Math.floor(C))*10));return V>0?G+V+":"+(b<10?"0"+b:""+b)+":"+(J<10?"0"+J:""+J)+z:G+b+":"+(J<10?"0"+J:""+J)+z};
A29=function(C){var F=C.match(/[^0-9:\.]/g);if(F&&F.length>0)return null;C=C.split(":");if(C.length===0||C.length>3)return null;F=1;for(var G=0;C.length>0;){var V=C.pop();if(V===void 0)break;var J=Number(V);if(V===""||isNaN(J))return null;G+=J*F;F*=60}return G};
elF=function(C,F,G,V){C=Math.max(G,C);F=Math.min(F,V-G);C+F>V?(G=V,C=G-F):G=C+F;return{start:C,end:G}};
d0B=function(C,F,G,V,J,b){C<G?C=G:C+J>V&&(C=V-J);F>V&&(F=V);F=Math.min(C+b,Math.max(C+J,F));return{start:C,end:F}};
x0n=function(C,F,G,V,J,b){F>V?F=V:F-J<G&&(F=G+J);C<G&&(C=G);C=Math.min(F-J,Math.max(F-b,C));return{start:C,end:F}};
sXL=function(C){return _.y("web_transcript_cue_id_killswitch")?String(C):"ytd-transcript-renderer_"+C};
qqh=function(C){return _.y("web_transcript_cue_id_killswitch")?!0:C.startsWith("ytd-transcript-renderer")};
PbS=function(C){var F=_.gE(),G;if(G=_.mN("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var V;G=(V=G())==null?void 0:V.layoutId}else G=null;fBS(F,G,C)};
gKT=function(C){C.style.height="auto";C.style.height=Math.min(C.scrollHeight||20,80)+"px"};
Rlz=function(C,F,G){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:F,hasGradientBackground:G}}],insertByPositionInSection:{sectionTargetId:C,position:"INSERTION_POSITION_LAST"}}}]}}}};
YqF=function(C){return{listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:C}}]}}}};
T0S=function(){var C;return String(Math.floor(((C=_.jV())==null?void 0:C.getCurrentTime())||0)*1E3)};
oK_=function(C){var F=_.gE(),G;G=(G=_.mN("yt.www.ads.eventcache.getLastCompanionData"))?(G=G())&&G.layoutId:null;fBS(F,G,C)};
r20=function(C){var F=_.gE(),G;G=(G=_.mN("yt.www.ads.eventcache.getLastCompanionData"))?(G=G())&&G.layoutId:null;fBS(F,G,C)};
Kv0=function(C){if(C.simpleText)return[{text:C.simpleText}];var F;return(F=C.runs)!=null?F:[]};
D09=function(C){var F=C.startEndTimeTemplate,G=C.startTimeUtcMillis;C=C.endTimeUtcMillis;if(F&&G&&C)return _.eN(_.Sq_(_.dd(F),Number(G),Number(C)))};
ppY=function(C,F){var G,V,J=C==null?void 0:(G=C.viewCount)==null?void 0:(V=G.videoViewCountRenderer)==null?void 0:V.shortViewCount;if(!F&&J)return J;var b,z;return C==null?void 0:(b=C.viewCount)==null?void 0:(z=b.videoViewCountRenderer)==null?void 0:z.viewCount};
m0_=function(C,F){var G=C==null?void 0:C.relativeDateText;return!F&&G?[G,!0]:[C==null?void 0:C.dateText,!1]};
CRz=function(C,F,G,V,J){V=V===void 0?"":V;J=J===void 0?!1:J;var b=ppY(C,F),z=_.u(m0_(C,F)),Q=z.next().value;z=z.next().value;F=F?C==null?void 0:C.sponsorsOnlyFirstTimeLongText:C==null?void 0:C.sponsorsOnlyFirstTimeShortText;var E=[];G&&b&&E.push(b);!G&&z||!Q||E.push(Q);C=[J?C==null?void 0:C.subtitle:void 0].concat(_.da(E),[F,C==null?void 0:C.stationName,C==null?void 0:C.rating,C?D09(C):void 0,C==null?void 0:C.upNextProgramText,C==null?void 0:C.superTitleLink]).filter(function(t){return!!t});
G={runs:[]};for(J=0;J<C.length;J++)G.runs.push.apply(G.runs,_.da(Kv0(C[J]))),J<C.length-1&&G.runs.push({text:" "+V+" "});return G};
jDl=function(C){return C.filter(function(F){return!_.Z(F,_.gf)})};
FN0=function(C){var F,G,V,J;if(C=C==null?void 0:(F=C.contents)==null?void 0:(G=F.twoColumnWatchNextResults)==null?void 0:(V=G.results)==null?void 0:(J=V.results)==null?void 0:J.contents){var b,z;return(z=(b=C.find(function(Q){return!!Q.videoPrimaryInfoRenderer}))==null?void 0:b.videoPrimaryInfoRenderer)==null?void 0:z.updatedMetadataEndpoint}};
GFn=function(C,F){var G;return(G=C.sourceConfigs)==null?void 0:G.find(function(V){return V.videoId===F})};
V_l=function(C){return C==="End of video"||C==="End of playlist"};
iWY=function(C){var F,G,V,J;return(F=C.getWatchNextResponse())==null?void 0:(G=F.contents)==null?void 0:(V=G.twoColumnWatchNextResults)==null?void 0:(J=V.playlist)==null?void 0:J.playlist};
JgL=function(C){var F,G,V,J,b,z;return(F=iWY(C))==null?void 0:(G=F.playlistButtons)==null?void 0:(V=G.menuRenderer)==null?void 0:(J=V.topLevelButtons)==null?void 0:(b=J[0])==null?void 0:(z=b.playlistLoopButtonRenderer)==null?void 0:z.playlistLoopStateEntityKey};
$4_=function(C){var F=_.I8().resolve(_.Fx),G;return(F=(G=_.Z(F.getAutoplayEndpoint(),_.eT))==null?void 0:G.playlistId)&&F===C};
uFl=function(C,F,G,V,J){function b(){_.gT.cancelJob(fg);var z=bWh(F,G/C.getPlaybackRate()),Q=z.hours,E=z.minutes;z=(z.seconds*1E3||6E4)/C.getPlaybackRate();C.setVideoTimeLeft(nn0(Q,E));V&&C.getPlayerState()!==0&&C.setSleepTimerTimeLeft(nn0(Q,E,!0));(Q>0||E>0)&&!J&&(fg=_.Iy(_.gT,b,z))}
_.gT.cancelJob(fg);fg=_.Iy(_.gT,b)};
QDY=function(C,F,G){function V(){_.gT.cancelJob(z7S);var J=bWh(F,G),b=J.hours;J=J.minutes;var z=6E4/C.getPlaybackRate();if(b>0||J>0)C.setSleepTimerTimeLeft(nn0(b,J,!0)),z7S=_.Iy(_.gT,V,z)}
_.gT.cancelJob(z7S);z7S=_.Iy(_.gT,V)};
Enl=function(C,F){var G=C.getVolume()/(F/500),V=function(J){_.gT.cancelJob(INY);var b=Math.floor(J-G);C.setVolume(b,!1);b>0&&(INY=_.Iy(_.gT,function(){V(b)},500))};
_.gT.cancelJob(INY);INY=_.Iy(_.gT,function(){V(C.getVolume())})};
WNS=function(C,F){_.gT.cancelJob(INY);F&&C.syncVolume()};
t_6=function(){var C={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.iQ("SLEEP_TIMER_DISRUPTED")}}}}};_.I8().resolve(_.WD).resolveCommand(C)};
aNh=function(C){return(C.getDuration()-C.getProgressState().current)*1E3};
bWh=function(C,F){C=C+F-(0,_.Et)();if(C<=0)return{hours:0,minutes:0,seconds:0};var G=new kFL(0,0,0,0,0,0,C);C=G.getHours();F=G.getMinutes();G=G.getSeconds();G!==0&&F++;F!==0&&F%60===0&&(C++,F=0);return{hours:C,minutes:F,seconds:G}};
nn0=function(C,F,G){return C>0&&F>0?G?_.iQ("TIME_LEFT_HOURS_MINUTES",{hours:C.toString(),minutes:F.toString()}):_.iQ("TIME_HOURS_MINUTES",{hours:C.toString(),minutes:F.toString()}):C>0?G?_.J3("TIME_LEFT_HOURS",C):_.J3("TIME_HOURS",C):G?_.iQ("TIME_LEFT_MINUTES",{minutes:F.toString()}):_.iQ("TIME_MINUTES",{minutes:F.toString()})};
HWT=function(C,F){if(C.timelyActions)return C.timelyActions.find(function(G){var V;return((V=_.Z(G,U40))==null?void 0:V.cueRangeId)===F})};
lN0=function(C){var F=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.n4(C);C.keyMap_.forEach(function(G,V){_.sB(F,V)||this.remove(V)},C)};
ygL=function(C,F){C.reloadContinuationItemsCommandMatcher=F};
_.hA=function(C,F){C.insertBefore(F,C.childNodes[0]||null)};
ZWY=function(C){if(C>=48&&C<=57||C>=96&&C<=106||C>=65&&C<=90||_.Do&&C==0)return!0;switch(C){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 _.KV;default:return!1}};
NiY=function(C){if(C.altKey&&!C.ctrlKey||C.metaKey||C.keyCode>=112&&C.keyCode<=123)return!1;if(ZWY(C.keyCode))return!0;switch(C.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!_.KV;default:return C.keyCode<166||C.keyCode>183}};
kFL=function(C,F,G,V,J,b,z){this.date=typeof C==="number"?new Date(C,F||0,G||1,V||0,J||0,b||0,z||0):new Date(C&&C.getTime?C.getTime():_.gp())};
_.RE(kFL,_.Mi);_.n=kFL.prototype;_.n.getHours=function(){return this.date.getHours()};
_.n.getMinutes=function(){return this.date.getMinutes()};
_.n.getSeconds=function(){return this.date.getSeconds()};
_.n.getMilliseconds=function(){return this.date.getMilliseconds()};
_.n.getUTCDay=function(){return this.date.getUTCDay()};
_.n.getUTCHours=function(){return this.date.getUTCHours()};
_.n.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.n.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.n.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.n.setHours=function(C){this.date.setHours(C)};
_.n.setMinutes=function(C){this.date.setMinutes(C)};
_.n.setSeconds=function(C){this.date.setSeconds(C)};
_.n.setMilliseconds=function(C){this.date.setMilliseconds(C)};
_.n.setUTCHours=function(C){this.date.setUTCHours(C)};
_.n.setUTCMinutes=function(C){this.date.setUTCMinutes(C)};
_.n.setUTCSeconds=function(C){this.date.setUTCSeconds(C)};
_.n.setUTCMilliseconds=function(C){this.date.setUTCMilliseconds(C)};
_.n.add=function(C){_.Mi.prototype.add.call(this,C);C.hours&&this.setUTCHours(this.date.getUTCHours()+C.hours);C.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+C.minutes);C.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+C.seconds)};
_.n.JSC$11333_toIsoString=function(C){var F=_.Mi.prototype.JSC$11333_toIsoString.call(this,C);return C?F+"T"+_.jI(this.getHours(),2)+":"+_.jI(this.getMinutes(),2)+":"+_.jI(this.getSeconds(),2):F+"T"+_.jI(this.getHours(),2)+_.jI(this.getMinutes(),2)+_.jI(this.getSeconds(),2)};
_.n.equals=function(C){return this.getTime()==C.getTime()};
_.n.toString=function(){return this.JSC$11333_toIsoString()};
_.n.clone=function(){var C=new kFL(this.date);C.firstDayOfWeek_=this.firstDayOfWeek_;C.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return C};
_.OWT=function(C){return _.rh({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:C}})};var XQ0=new _.Cx("imageTileRenderer");var wQ9=new _.Cx("promotedSparklesWebRenderer");var M_L=new _.Cx("adGridCardCollectionViewModel");var S0L=new _.Cx("carouselTitleViewModel");var LNn=new _.Cx("ctaCarouselItemViewModel");var Bi9=new _.Cx("textFieldViewModel");_.vn_=new _.Cx("engagementPanelHeaderShowNavigationButtonCommand");var fNl=new _.Cx("hideEngagementPanelScrimAction");var h7l=new _.Cx("setActivePanelItemAction");var cg6=new _.Cx("showEngagementPanelScrimAction");var Agn=new _.Cx("updateEngagementPanelAction");var e7B=new _.Cx("updateSearchInVideoResultsAction");var d46=new _.Cx("transcriptCueGroupRenderer");var x4F=new _.Cx("transcriptCueRenderer");var sDz=new _.Cx("transcriptFooterRenderer");var q0B=new _.Cx("engagementPanelAdSubtitleRenderer");var PRB=new _.Cx("videoDescriptionFantasySectionViewModel");var gnh=new _.Cx("deleteClipEngagementPanelCommand");var R7S=new _.Cx("loopCommand");var Y0S=new _.Cx("changeCreatorEndscreenVisibilityCommand");var Til=new _.Cx("liveChatCallForQuestionsRenderer");var on9=new _.Cx("updateTimedMarkersSyncObserverCommand");var U40=new _.Cx("timelyActionViewModel");var rgS=new _.Cx("timelyActionsOverlayViewModel");var KNT=new _.Cx("repeatChapterCommand");var D4z=new _.Cx("watchPlayerOverflowMenuCommand");var pQF=new _.Cx("compositeVideoOverlayRenderer");var m4h=new _.Cx("sortFilterSubMenuRenderer");var CH6=new _.Cx("switchListItemViewModel");var j8l=new _.Cx("inputComposerViewModel");var Fx0=new _.Cx("transcriptEditSegmentCommand");var GN6=new _.Cx("transcriptUpdateSegmentTextCommand");var VPS=new _.Cx("transcriptSearchBoxRenderer");var iDY=new _.Cx("transcriptSegmentListRenderer");var Jy_=new _.Cx("transcriptSegmentRenderer");_.$eS=new _.Cx("updateDateTextAction");var bDn=new _.Cx("updateTitleAction");var nUL=new _.Cx("updateViewershipAction");var u$9=new _.Cx("relatedChipCommand");var zBT=new _.Cx("carouselLockupRenderer");var cH=new _.Cx("expandableVideoDescriptionBodyRenderer");var Q80=new _.Cx("videoDescriptionHeaderRenderer");var I9l=new _.Cx("videoDescriptionYouchatSectionViewModel");_.AA=_.a8("kevlar_watch_page_horizontal_margin",24);_.EUY=_.a8("kevlar_watch_page_columns_top_padding",24);_.Wx6=426+_.AA*2;_.eF=_.a8("kevlar_watch_two_column_width_threshold",1E3);_.tPS=_.AA*2;_.a99=_.a8("kevlar_watch_secondary_width",402);_.kNF=_.a8("kevlar_watch_max_player_width",1280);_.UeF=_.a8("kevlar_watch_flexy_metadata_height",136);_.HD6=_.tPS+310+_.AA;_.l9_=_.tPS+360+_.AA;var yy0={PAUSE_CHAT:18};var ZD_;var NjT;var dA=function(){return _.B.apply(this,arguments)||this};
_.O(dA,_.B);dA.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
dA.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var C=_.Z(this.data.button,_.jl);C&&(C.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.I6.Object.defineProperties(dA,{template:{configurable:!0,enumerable:!0,get:function(){if(NjT===void 0){var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;ZD_===void 0&&(ZD_=document.createElement("template"));var V=ZD_;G.call(F,V.content.cloneNode(!0),C.content.firstChild);NjT=C}C=NjT;return C}}});
_.R([_.w(_.g6),_.Y("design:type",Object)],dA.prototype,"ytLiveChatReduxBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],dA.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L({selectorArgs:["data.enabledEntityKey"],selector:y2B,observer:"onEnabledChange"}),_.Y("design:type",Boolean)],dA.prototype,"enabled",void 0);_.R([_.L(),_.Y("design:type",Object)],dA.prototype,"data",void 0);_.R([_.Z5({is:"yt-disableable-button-view-model",noInjection:!0})],dA);var OD0;var XD_;var wD_=["transVert01","transVert02","transVert03"],MPL="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),xE=function(){var C=_.B.apply(this,arguments)||this;C.emojiManager=_.mP;C.isDarkTheme=document.documentElement.hasAttribute("dark");C.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};C.reactionBuckets=[];C.noEmojiIdentifier="NO_EMOJI";return C};
_.O(xE,_.B);_.n=xE.prototype;_.n.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.n.desktopFountainEmojiSizePxChanged=function(){_.jr(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.n.createUserReactionAnimation=function(C){this.createEmojiAnimation(C,!0)};
_.n.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var C;((C=this.data)==null?0:C.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.z3("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.da(this.emojiContainer.children)).forEach(function(F){F.remove()})};
_.n.detached=function(){this.cleanupFountain()};
_.n.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var C;this.reactionBuckets=_.xf.unsafeClone((C=this.emojiFountainData)==null?void 0:C.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.n.processEmojiBucket=function(C){var F=this;if(this.reactionBuckets&&!(C>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var G=this.reactionBuckets[C];this.generateEmojiAnimations(G);if(C<this.reactionBuckets.length-1){var V;if(G==null?0:(V=G.duration)==null?0:V.seconds)this.emojiBucketTimerId=setTimeout(function(){F.processEmojiBucket(C+1)},Number(G.duration.seconds)*1E3)}}};
_.n.generateEmojiAnimations=function(C){var F=this,G=this.getRandomEmojiIdFromBucketWithOverride(C);if(G&&G!==this.noEmojiIdentifier){var V=0;C.targetEps?(V=this.linearInterpolateBounded(1,20,100,12,C.emojiSizeIndex||0),this.createEmojiAnimation(G,!1,C.emojiAnimationMs,V),V=this.getEmojiDelayMsFromTargetEps(C.targetEps)):(this.createEmojiAnimation(G),V=this.getEmojiDelayMsFromDistribution(C.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){F.generateEmojiAnimations(C)},V)}};
_.n.getRandomEmojiIdFromBucketWithOverride=function(C){if(!(C&&C.reactionsData&&C.reactionsData.length&&C.totalReactions))return this.noEmojiIdentifier;for(var F=C.totalReactions,G=1,V=_.u(C.reactionsData),J=V.next();!J.done;J=V.next())J=J.value,(J.reactionWeightOverride||J.reactionWeightOverride===0)&&J.reactionCount&&(F-=J.reactionCount,G-=J.reactionWeightOverride);V=!0;G<0&&(V=!1,F=C.totalReactions,G=1);if(V&&G>0&&F===0)if(G===1){J=0;for(var b=_.u(C.reactionsData),z=b.next();!z.done;z=b.next())z=
z.value,z.reactionCount&&z.reactionCount>0&&J++;J=1/J;b=_.u(C.reactionsData);for(z=b.next();!z.done;z=b.next())z.value.reactionWeightOverride=J}else for(J=1/(1-G),b=_.u(C.reactionsData),z=b.next();!z.done;z=b.next())z=z.value,z.reactionWeightOverride&&(z.reactionWeightOverride*=J);J=Math.random();b=0;z=_.u(C.reactionsData);for(var Q=z.next();!Q.done;Q=z.next())if(Q=Q.value,Q.reactionCount&&(b=(Q.reactionWeightOverride||Q.reactionWeightOverride===0)&&V?b+Q.reactionWeightOverride:b+G*Q.reactionCount/
F,b>J&&(Q.reactionCount--,C.totalReactions--,Q=this.reactionItemToEmojiString(Q),Q!==this.noEmojiIdentifier)))return Q;return this.noEmojiIdentifier};
_.n.reactionItemToEmojiString=function(C){if(C.unicodeEmojiId)return C.unicodeEmojiId;if(C.emoteId)return C.emoteId;if(C.videoReactionType)switch(C.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.n.createEmojiAnimation=function(C,F,G,V){F=F===void 0?!1:F;this.lastEmojiRequestedForTesting=C;var J=C.startsWith("yt-icons:"),b=_.D7(this.emojiManager,C);if(b||J){var z=document.createElement("emoji");z.classList.add("yt-emoji-fountain-view-model");z.classList.add(wD_[Math.floor(Math.random()*wD_.length)]);var Q=document.createElement("div");Q.classList.add("yt-emoji-fountain-view-model");Q.classList.add("horizontal-container");Q.classList.add(MPL[Math.floor(Math.random()*MPL.length)]);F?(G=document.createElement("div"),
G.classList.add("user-reaction-bubble"),G.classList.add("yt-emoji-fountain-view-model"),Q.appendChild(G)):(G&&(z.style.animationDuration=G+"ms",Q.style.animationDuration=G+"ms"),V&&(z.style.width=V+"px",z.style.height=V+"px"));J?(J=document.createElement("yt-icon"),J.polymerController.icon=C,V&&(J.style.width=V+"px",J.style.height=V+"px"),C=J):C=this.emojiManager.createEmoji(b,!1);C.classList.add("yt-emoji-fountain-view-model");Q.appendChild(C);z.appendChild(Q);this.emojiContainer.appendChild(z);
z.addEventListener("animationend",function(){z.remove()});
var E,t;if((E=this.data)==null?0:(t=E.loggingDirectives)==null?0:t.trackingParams)F=F?_.m2(183501):_.m2(183500),ZBF(this.data.loggingDirectives.trackingParams,F),_.QZS(F);setTimeout(function(){z&&z.remove()},2E3)}};
_.n.getEmojiDelayMsFromDistribution=function(C){return Math.random()*(C||1)*1E3};
_.n.getEmojiDelayMsFromTargetEps=function(C){return Math.random()*2*(1/C)*1E3};
_.n.linearInterpolateBounded=function(C,F,G,V,J){J=Math.min(Math.max(J,C),G);return(F*(G-J)+V*(J-C))/(G-C)};
xE.prototype.onEmojiFountainDataEntityUpdate=xE.prototype.onEmojiFountainDataEntityUpdate;xE.prototype.desktopFountainEmojiSizePxChanged=xE.prototype.desktopFountainEmojiSizePxChanged;xE.prototype.isActiveChanged=xE.prototype.isActiveChanged;_.R([_.L(),_.Y("design:type",_.KJ)],xE.prototype,"emojiManager",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],xE.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.g6),_.Y("design:type",Object)],xE.prototype,"ytLiveChatReduxBehavior",void 0);
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],xE.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],xE.prototype,"data",void 0);_.R([_.L({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(C,F){return _.jN(C.entities,"emojiFountainDataEntity",F)}}),
_.Y("design:type",Object)],xE.prototype,"emojiFountainData",void 0);_.R([_.L(),_.Y("design:type",Boolean)],xE.prototype,"isActive",void 0);_.R([_.iP("isActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xE.prototype,"isActiveChanged",null);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],xE.prototype,"isDarkTheme",void 0);_.R([_.L(),_.Y("design:type",String)],xE.prototype,"lastEmojiRequestedForTesting",void 0);
_.R([_.L({value:function(){return _.a8("desktop_fountain_emoji_size_px",20)}}),
_.Y("design:type",Number)],xE.prototype,"desktopFountainEmojiSizePx",void 0);_.R([_.iP("desktopFountainEmojiSizePx"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xE.prototype,"desktopFountainEmojiSizePxChanged",null);_.R([_.$z("#emoji-container"),_.Y("design:type",HTMLElement)],xE.prototype,"emojiContainer",void 0);
_.R([_.iP("emojiFountainData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xE.prototype,"onEmojiFountainDataEntityUpdate",null);_.R([_.Z5({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],xE);
_.q(xE,"yt-emoji-fountain-view-model",function(){if(XD_===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;OD0===void 0&&(OD0=document.createElement("template"));var V=OD0;G.call(F,V.content.cloneNode(!0),C.content.firstChild);XD_=C}C=XD_;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var Sw6;var Lx_;var sQ=function(){return _.B.apply(this,arguments)||this};
_.O(sQ,_.B);sQ.prototype.onChoiceChanged=function(){this.data&&_.jr(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
sQ.prototype.onChoiceChanged=sQ.prototype.onChoiceChanged;_.R([_.L(),_.Y("design:type",Object)],sQ.prototype,"data",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sQ.prototype,"onChoiceChanged",null);_.R([_.e({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],sQ);
_.q(sQ,"yt-live-chat-banner-poll-choice",function(){if(Lx_===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;Sw6===void 0&&(Sw6=document.createElement("template"));var V=Sw6;G.call(F,V.content.cloneNode(!0),C.content.firstChild);Lx_=C}C=Lx_;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var BjS;var vU0;var qu=function(){var C=_.B.apply(this,arguments)||this;C.modern=_.y("web_button_rework_with_live");C.small=!1;return C};
_.O(qu,_.B);qu.prototype.computeIsSmall=function(){var C;return((C=this.buttonOverrides)==null?void 0:C.size)==="S"};
qu.prototype.computeId=function(){return this.data&&this.data.targetId};
_.R([_.w(_.Rm.YtLiveChatTooltipTargetingBehavior),_.Y("design:type",Object)],qu.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.R([_.L({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Y("design:type",String)],qu.prototype,"id",void 0);_.R([_.L(),_.Y("design:type",Object)],qu.prototype,"buttonOverrides",void 0);_.R([_.L(),_.Y("design:type",Object)],qu.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],qu.prototype,"modern",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.Y("design:type",Object)],qu.prototype,"small",void 0);_.R([_.e({disableElementRegistration:!0,is:"yt-live-chat-button"})],qu);
_.q(qu,"yt-live-chat-button",function(){if(vU0===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;BjS===void 0&&(BjS=document.createElement("template"));var V=BjS;G.call(F,V.content.cloneNode(!0),C.content.firstChild);vU0=C}C=vU0;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var f9z;var hBY;var PH=function(){var C=_.B.apply(this,arguments)||this;C.inCollapsedBanner=!1;C.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};C.questionButtonOverrides={style:"mono",type:"filled"};return C};
_.O(PH,_.B);_.n=PH.prototype;_.n.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]]"}}}}}};
_.n.onContextMenuButtonClick=function(C){this.ytLiveChatItemBehavior.showContextMenu(C)};
_.n.onYtRendererstamperFinished=function(){this.menuButton=_.ot(this.hostElement).querySelector("#menu-button")};
_.n.dataChanged=function(){var C,F;if((F=_.Z((C=this.data)==null?void 0:C.overflowMenuButton,_.DY))==null?0:F.command)this.data.contextMenuEndpoint=_.Z(this.data.overflowMenuButton,_.DY).command};
_.n.onButtonClick=function(){var C,F=_.Z((C=this.data)==null?void 0:C.askQuestionButton,_.DY);if(F){if(F.trackingParams&&(C=_.zS(F.trackingParams))){var G=_.ZQ();G&&_.ej(G,C)}_.oo(this.hostElement,"innertube-command",F.command)}};
PH.prototype.onYtRendererstamperFinished=PH.prototype.onYtRendererstamperFinished;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],PH.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.g6),_.Y("design:type",Object)],PH.prototype,"ytLiveChatReduxBehavior",void 0);_.R([_.w(_.CK.YtLiveChatItemBehavior),_.Y("design:type",_.ji)],PH.prototype,"ytLiveChatItemBehavior",void 0);_.R([_.L({observer:"dataChanged"}),_.Y("design:type",Object)],PH.prototype,"data",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],PH.prototype,"inCollapsedBanner",void 0);_.R([_.L(),_.Y("design:type",Object)],PH.prototype,"buttonOverrides",void 0);_.R([_.L(),_.Y("design:type",Object)],PH.prototype,"questionButtonOverrides",void 0);_.R([_.VG("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PH.prototype,"onYtRendererstamperFinished",null);
_.R([_.e({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],PH);
_.q(PH,"yt-live-chat-call-for-questions-renderer",function(){if(hBY===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;f9z===void 0&&(f9z=document.createElement("template"));var V=f9z;G.call(F,V.content.cloneNode(!0),C.content.firstChild);hBY=C}C=hBY;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var cyh={};cyh.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 C=this;window.requestAnimationFrame(function(){C.restoreFocusNode_||(C.restoreFocusNode_=document.activeElement);var F=_.MI8(C.hostElement);F.length&&F[F.length-1].focus()})},
isAttachedChanged_:function(C,F){C?this.focusChild_():F&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(C){this.hidden||_.AR(C).indexOf(this.hostElement)!==-1||(C.stopPropagation(),this.focusChild_())}};var Ayh;var eBT;var gA=function(){return _.B.apply(this,arguments)||this};
_.O(gA,_.B);gA.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
gA.prototype.onClick=function(C){C.target!==this.confirmButton&&C.target!==this.cancelButton&&(this.hidden=!0)};
_.R([_.$z("#confirm_button"),_.Y("design:type",Object)],gA.prototype,"confirmButton",void 0);_.R([_.$z("#cancel_button"),_.Y("design:type",Object)],gA.prototype,"cancelButton",void 0);_.R([_.L(),_.Y("design:type",de0)],gA.prototype,"data",void 0);_.R([_.L({value:!0,reflectToAttribute:!0}),_.Y("design:type",Boolean)],gA.prototype,"hidden",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],gA.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.w(cyh.YtLiveChatDialogBehavior),_.Y("design:type",Object)],gA.prototype,"ytLiveChatDialogBehavior",void 0);_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],gA);
var de0=_.q(gA,"yt-live-chat-dialog-renderer",function(){if(eBT===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;Ayh===void 0&&(Ayh=document.createElement("template"));var V=Ayh;G.call(F,V.content.cloneNode(!0),C.content.firstChild);eBT=C}C=eBT;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var xe9;var s89,qwT=function(){if(s89!==void 0)return s89;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;xe9===void 0&&(xe9=document.createElement("template"));var V=xe9;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return s89=C};var PHF;var gU9;var RG=function(){var C=_.B.apply(this,arguments)||this;C.tooltip=null;C.data=null;C.id="";C.active=!1;C.icon="";C.disabled=!1;C.showTooltip=!1;C.useToggledActiveState=!0;C.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return C};
_.O(RG,_.B);_.n=RG.prototype;
_.n.dataChanged=function(){var C;((C=this.data)==null?0:C.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,_.C5)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var F;if((F=this.data)==null?0:F.disabled)this.disabled=!0};
_.n.computeId=function(C){return C};
_.n.computeIcon=function(C,F){if(!C)return"";if(this.useToggledActiveState)return"yt-icons:"+C.toLowerCase();var G,V;return F&&((G=this.data)==null?0:(V=G.toggledIcon)==null?0:V.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+C.toLowerCase()};
_.n.logPDGEntryPoint=function(){_.C75(_.jv("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")};
_.n.immediatelyShowTooltip=function(){var C=_.ot(this.hostElement).querySelector("#tooltip");C.animationDelay=0;C.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};C.show()};
_.n.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.n.onClick=function(C){var F;((F=this.data)==null?0:F.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(),C.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.oo(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.n.computeShowTooltip=function(C,F){return!!(C&&C.tooltip&&F)};
_.n.maybeUpdateTooltipText=function(){var C=this,F;if((F=this.data)==null?0:F.tooltip){var G=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.C5)(C.tooltip).textContent=G},250)}};
_.n.handleLiveChatActions=function(C){var F=this;C.length&&(this.id!=="creator"&&this.id!=="product-picker"||C.forEach(function(G){(G=F.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",G))&&G.durationSec===G.fullDurationSec&&F.startBubble(F.colorFromDecimal(G.startBackgroundColor))}))};
_.n.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.n.startBubble=function(C){_.jr(this.hostElement,{"--yt-live-chat-monetization-button-glow":C});this.hostElement.setAttribute("bubble","")};
_.n.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.n.colorFromDecimal=function(C){typeof C==="string"&&(C=Number(C));return"rgba("+[C>>16&255,C>>8&255,C&255,(C>>24&255)/255].join()+")"};
RG.prototype.onAnimationEnd=RG.prototype.onAnimationEnd;RG.prototype.disabledChanged=RG.prototype.disabledChanged;RG.prototype.dataChanged=RG.prototype.dataChanged;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],RG.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],RG.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.Rm.YtLiveChatTooltipTargetingBehavior),_.Y("design:type",Object)],RG.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],RG.prototype,"data",void 0);_.R([_.L({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Y("design:type",Object)],RG.prototype,"id",void 0);_.R([_.L({notify:!0,reflectToAttribute:!0}),_.Y("design:type",Object)],RG.prototype,"active",void 0);
_.R([_.L({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.Y("design:type",Object)],RG.prototype,"icon",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],RG.prototype,"disabled",void 0);_.R([_.L({computed:"computeShowTooltip(data, disabled)"}),_.Y("design:type",Object)],RG.prototype,"showTooltip",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],RG.prototype,"useToggledActiveState",void 0);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RG.prototype,"dataChanged",null);_.R([_.iP("disabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RG.prototype,"disabledChanged",null);_.R([_.VG("animationend"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],RG.prototype,"onAnimationEnd",null);
_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],RG);
_.q(RG,"yt-live-chat-icon-toggle-button-renderer",function(){if(gU9===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;PHF===void 0&&(PHF=document.createElement("template"));var V=PHF;G.call(F,V.content.cloneNode(!0),C.content.firstChild);gU9=C}C=gU9;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var RBB;var Yw_;var YE=function(){return _.B.apply(this,arguments)||this};
_.O(YE,_.B);YE.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.R([_.L(),_.Y("design:type",Object)],YE.prototype,"data",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],YE.prototype,"ytRendererstamperBehavior",void 0);_.R([_.e({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],YE);
_.q(YE,"yt-live-chat-message-input-prompt-header-renderer",function(){if(Yw_===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;RBB===void 0&&(RBB=document.createElement("template"));var V=RBB;G.call(F,V.content.cloneNode(!0),C.content.firstChild);Yw_=C}C=Yw_;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var Tjn;var oUF;var ryn;var KxS;var DeB;var pDF;var meS=function(){return _.B.apply(this,arguments)||this};
_.O(meS,_.B);_.R([_.L(),_.Y("design:type",Object)],meS.prototype,"data",void 0);_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],meS);
_.q(meS,"yt-live-chat-message-subtext-renderer",function(){if(pDF===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;DeB===void 0&&(DeB=document.createElement("template"));var V=DeB;G.call(F,V.content.cloneNode(!0),C.content.firstChild);pDF=C}C=pDF;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var Tq=function(){var C=_.B.apply(this,arguments)||this;C.subtextOnBottom=!1;C.buttonOverrides={style:"mono",type:"tonal"};return C};
_.O(Tq,_.B);Tq.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"}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Tq.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Tq.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Tq.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Tq.prototype,"subtextOnBottom",void 0);_.R([_.L(),_.Y("design:type",Object)],Tq.prototype,"buttonOverrides",void 0);
_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],Tq);
_.q(Tq,"yt-live-chat-message-renderer",function(){if(KxS===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;ryn===void 0&&(ryn=document.createElement("template"));var V=ryn;G.call(F,V.content.cloneNode(!0),C.content.firstChild);KxS=C}C=KxS;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var CwS;var ja0;var oG=function(){var C=_.B.apply(this,arguments)||this;C.isRemovable=!1;C.hasPrefilledText=!1;C.isInputDirty=!1;C.overCharacterLimit=!1;C.underCharacterLimit=!1;C.showErrorMessage=!1;return C};
_.O(oG,_.B);_.n=oG.prototype;_.n.computeId=function(){return this.data.id};
_.n.computeInputData=function(){return this.data.inputData};
_.n.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.n.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.n.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.n.getLiveChatRichMessageInput=function(){return _.ot(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.n.clearInput=function(){_.ot(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.n.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.n.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.n.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.n.handleTextInputCharCountChanged=function(C){C=C.detail&&C.detail.characterCount;C!==void 0&&(this.characterCount=C,C!==0&&(this.isInputDirty=!0))};
_.n.onInputFocusOut=function(){this.isInputDirty=!0};
_.n.onClickCloseButton=function(){_.oo(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
oG.prototype.handleTextInputCharCountChanged=oG.prototype.handleTextInputCharCountChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],oG.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],oG.prototype,"data",void 0);_.R([_.L({computed:"computeId(data.id)"}),_.Y("design:type",String)],oG.prototype,"id",void 0);_.R([_.L({computed:"computeInputData(data.inputData)"}),_.Y("design:type",Object)],oG.prototype,"inputData",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.Y("design:type",Object)],oG.prototype,"isRemovable",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.Y("design:type",Object)],oG.prototype,"hasPrefilledText",void 0);_.R([_.L({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.Y("design:type",Number)],oG.prototype,"charactersRemaining",void 0);
_.R([_.L(),_.Y("design:type",Number)],oG.prototype,"characterCount",void 0);_.R([_.L(),_.Y("design:type",Object)],oG.prototype,"isInputDirty",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.Y("design:type",Object)],oG.prototype,"overCharacterLimit",void 0);_.R([_.L({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.Y("design:type",Object)],oG.prototype,"underCharacterLimit",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.Y("design:type",Object)],oG.prototype,"showErrorMessage",void 0);_.R([_.VG("yt-live-chat-text-input-field-renderer-character-count-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],oG.prototype,"handleTextInputCharCountChanged",null);
_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],oG);
_.q(oG,"yt-live-chat-poll-editor-input",function(){if(ja0===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;CwS===void 0&&(CwS=document.createElement("template"));var V=CwS;G.call(F,V.content.cloneNode(!0),C.content.firstChild);ja0=C}C=ja0;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var Fp6;var GnL;var VM0={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},rA=function(){var C=_.B.apply(this,arguments)||this;C.modern=_.y("web_button_rework_with_live");C.closeButtonOverrides={iconPosition:"icon-only"};C.startButtonOverrides={style:"mono",type:"filled"};C.addOptionButtonOverrides={style:"mono",type:"text"};return C};
_.O(rA,_.B);_.n=rA.prototype;
_.n.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"}}}}};
_.n.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var C;_.Z((C=this.data)==null?void 0:C.startButton,_.DY)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.n.computeId=function(){return this.data&&this.data.id||""};
_.n.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.n.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.n.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.n.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.n.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var C=0;C<this.pollEditorInfoWithDefaults.minPollOptions;C++)this.addPollOptionData()};
_.n.getIsValidPoll=function(){var C=this;if(!this.pollEditorInfoWithDefaults)return!1;var F=this.pollEditorInfoWithDefaults,G=F.minPollOptionChars,V=F.maxPollOptionChars,J=F.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>F.maxPollQuestionChars)return!1;F=_.ot(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(F).every(function(b,z){b=b.characterCount;!b&&J[z]&&(b=C.ytRendererBehavior.getSimpleString(J[z]).length);return b!==void 0&&b>=G&&b<=V})};
_.n.isValidPollChanged=function(){var C;_.Z((C=this.data)==null?void 0:C.startButton,_.DY)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.n.addPollOptionData=function(){var C=this.pollEditorInfoWithDefaults,F=C.maxPollOptionChars,G=C.optionPlaceholderText,V=C.customOptionPlaceholderText,J=C.pollOptionData;this.currentNumPollOptions>=C.maxPollOptions||(C={liveChatPollOptionInput:{inputData:{placeholder:V[this.currentNumPollOptions]||G,maxCharacterLimit:F},maxCharacterLimit:F,minCharacterLimit:C.minPollOptionChars,hasPrefilledText:!!V[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=C.minPollOptions}},J.charCountErrorText&&
(C.liveChatPollOptionInput.charCountErrorText=J.charCountErrorText),J.charsRemainingAltLabel&&(C.liveChatPollOptionInput.charsRemainingAltLabel=J.charsRemainingAltLabel),J.removeOptionAltText&&(C.liveChatPollOptionInput.removeOptionAltText=J.removeOptionAltText),this.push("pollOptionsData",C),J=Array.from(_.ot(_.ot(this.hostElement).querySelector("#poll-options")).children),J.forEach(function(b,z){b.polymerController.set("data.id",z)}),_.ot(J[J.length-1]).querySelector("#input").focus())};
_.n.getPollOptionInputValues=function(){var C=this,F=[],G=_.ot(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),V=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(G).forEach(function(J,b){var z=null;J=J.getLiveChatRichMessageInput();var Q;(J==null?0:(Q=J.textSegments)==null?0:Q.length)?z=_.MG(J):V[b]&&(z=C.formattedStringToLiveChatRichMessageInput(V[b]));F.push(z)});
return F};
_.n.requestCreateAndStartPoll=function(C){var F=this.getPollOptionInputValues();if(!F.some(function(V){return!V})){F={optionText:F};
var G=_.ot(_.ot(this.hostElement).querySelector("#poll-question")).firstChild;G&&G.liveChatRichMessageInput&&(F.questionText=_.MG(G.liveChatRichMessageInput));_.DQ(this.hostElement,[C,F])}};
_.n.selectedChanged=function(){if(this.selected){var C=_.ot(_.ot(this.hostElement).querySelector("#start-button")).firstElementChild;if(C){var F;(F=_.ot(C).querySelector("#button")||_.r7(C).querySelector("button"))==null||F.focus()}}};
_.n.handleTextInputChanged=function(C){var F;((F=C.target)==null?void 0:F.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=C.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.n.handleStartButtonAction=function(C){C.detail.actionName==="yt-service-request"&&(C.stopPropagation(),(C=C.detail.args[1])&&this.requestCreateAndStartPoll(C))};
_.n.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.n.handleServiceRequestCompleted=function(C){this.createPollRequestInFlight=!1;(C=C.detail&&C.detail.data)&&C.success&&(_.oo(this.hostElement,"picker-cancelled"),_.rz(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.n.onCloseClick=function(){_.oo(this.hostElement,"picker-cancelled");_.rz(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.n.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.n.handlePollEditorInputClosed=function(C){var F=this.pollOptionsData.findIndex(function(G){return G.liveChatPollOptionInput.id===C.detail.id});
this.splice("pollOptionsData",F,1);this.isValidPoll=this.getIsValidPoll()};
_.n.onPickerCancelled=function(){this.reset()};
_.n.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var C=_.ot(_.ot(this.hostElement).querySelector("#poll-question")).firstChild;C&&C.setLiveChatRichMessageInput(null);if(C=_.ot(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){C=_.u(Array.from(C));for(var F=C.next();!F.done;F=C.next())F.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.n.formattedStringToLiveChatRichMessageInput=function(C){return C.simpleText?{text_segments:[C.simpleText]}:{text_segments:C.runs}};
_.I6.Object.defineProperties(rA.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(VM0,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
rA.prototype.onPickerCancelled=rA.prototype.onPickerCancelled;rA.prototype.handlePollEditorInputClosed=rA.prototype.handlePollEditorInputClosed;rA.prototype.handleServiceRequestCompleted=rA.prototype.handleServiceRequestCompleted;rA.prototype.handleServiceRequestSent=rA.prototype.handleServiceRequestSent;rA.prototype.handleTextInputChanged=rA.prototype.handleTextInputChanged;rA.prototype.selectedChanged=rA.prototype.selectedChanged;rA.prototype.isValidPollChanged=rA.prototype.isValidPollChanged;
rA.prototype.shouldInitializePollChanged=rA.prototype.shouldInitializePollChanged;rA.prototype.dataChanged=rA.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],rA.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],rA.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],rA.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],rA.prototype,"modern",void 0);
_.R([_.L(),_.Y("design:type",Object)],rA.prototype,"closeButtonOverrides",void 0);_.R([_.L(),_.Y("design:type",Object)],rA.prototype,"startButtonOverrides",void 0);_.R([_.L(),_.Y("design:type",Object)],rA.prototype,"addOptionButtonOverrides",void 0);_.R([_.L({computed:"computeId(data.id)",reflectToAttribute:!0}),_.Y("design:type",String)],rA.prototype,"id",void 0);_.R([_.L({value:function(){return[]}}),
_.Y("design:type",Array)],rA.prototype,"pollOptionsData",void 0);_.R([_.M("pollEditorInfoWithDefaults"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],rA.prototype,"pollQuestionData",null);_.R([_.L({value:0}),_.Y("design:type",Number)],rA.prototype,"pollQuestionCharacterCount",void 0);_.R([_.M("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],rA.prototype,"pollQuestionCharactersRemaining",null);
_.R([_.L({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.Y("design:type",Boolean)],rA.prototype,"overQuestionCharacterLimit",void 0);_.R([_.M("data.pollEditorInfo"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],rA.prototype,"pollEditorInfoWithDefaults",null);_.R([_.L({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.Y("design:type",Number)],rA.prototype,"currentNumPollOptions",void 0);
_.R([_.L({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],rA.prototype,"hasMaxNumPollOptions",void 0);_.R([_.M("pollEditorInfoWithDefaults","pollOptionsData"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rA.prototype,"shouldInitializePoll",null);_.R([_.L(),_.Y("design:type",Object)],rA.prototype,"isValidPoll",void 0);
_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],rA.prototype,"createPollRequestInFlight",void 0);_.R([_.L(),_.Y("design:type",Object)],rA.prototype,"selected",void 0);_.R([_.L({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.Y("design:type",Boolean)],rA.prototype,"showQuestionErrorMessage",void 0);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rA.prototype,"dataChanged",null);_.R([_.iP("shouldInitializePoll"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rA.prototype,"shouldInitializePollChanged",null);_.R([_.iP("isValidPoll"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rA.prototype,"isValidPollChanged",null);
_.R([_.iP("selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rA.prototype,"selectedChanged",null);_.R([_.VG("yt-live-chat-text-input-field-renderer-character-count-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],rA.prototype,"handleTextInputChanged",null);
_.R([_.VG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rA.prototype,"handleServiceRequestSent",null);_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],rA.prototype,"handleServiceRequestCompleted",null);
_.R([_.VG("yt-live-chat-poll-editor-input-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],rA.prototype,"handlePollEditorInputClosed",null);_.R([_.VG("picker-cancelled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rA.prototype,"onPickerCancelled",null);_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],rA);
_.q(rA,"yt-live-chat-poll-editor-panel-renderer",function(){if(GnL===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;Fp6===void 0&&(Fp6=document.createElement("template"));var V=Fp6;G.call(F,V.content.cloneNode(!0),C.content.firstChild);GnL=C}C=GnL;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var iO0;var JnY;var Kg=function(){return _.B.apply(this,arguments)||this};
_.O(Kg,_.B);Kg.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
Kg.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.I6.Object.defineProperties(Kg.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var C,F;return(C=this.data)==null?void 0:(F=C.title)==null?void 0:F.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var C;return _.ZD((C=this.data)==null?void 0:C.onTapCommand)}}});
_.R([_.w(_.yR.YtEndpointBehavior),_.Y("design:type",Object)],Kg.prototype,"ytEndpointBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Kg.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Kg.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Kg.prototype,"itemId",null);
_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Kg.prototype,"hasPromotion",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Kg.prototype,"innertubeCommand",null);_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],Kg);
_.q(Kg,"yt-live-chat-product-picker-panel-item-view-model",function(){if(JnY===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;iO0===void 0&&(iO0=document.createElement("template"));var V=iO0;G.call(F,V.content.cloneNode(!0),C.content.firstChild);JnY=C}C=JnY;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var $MB;var bOn;var Dg=function(){var C=_.B.apply(this,arguments)||this;C.id="product-picker";C.selected=!1;C.closeButtonId="close-button";C.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return C};
_.O(Dg,_.B);_.n=Dg.prototype;_.n.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.n.observeSelected=function(){this.selected&&this.hostElement.focus();var C=_.ot(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");C.length&&C[0].focus()};
_.n.onCloseBuyFlow=function(){_.oo(this.hostElement,"picker-cancelled")};
_.n.onCloseClick=function(){_.oo(this.hostElement,"picker-cancelled");var C;((C=this.data)==null?0:C.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.Z(this.data.closeButton,_.jl))};
_.n.onCloseEngageWithAudienceEditorPanels=function(){_.oo(this.hostElement,"picker-cancelled")};
Dg.prototype.observeSelected=Dg.prototype.observeSelected;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],Dg.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Dg.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Dg.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Dg.prototype,"data",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Dg.prototype,"id",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Dg.prototype,"selected",void 0);_.R([_.L(),_.Y("design:type",Object)],Dg.prototype,"closeButtonId",void 0);_.R([_.iP("selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Dg.prototype,"observeSelected",null);
_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],Dg);
_.q(Dg,"yt-live-chat-product-picker-panel-view-model",function(){if(bOn===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;$MB===void 0&&($MB=document.createElement("template"));var V=$MB;G.call(F,V.content.cloneNode(!0),C.content.firstChild);bOn=C}C=bOn;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var nx_;var uTz;var pg=function(){var C=_.B.apply(this,arguments)||this;C.iconId="";C.icon="";C.disabled=!1;C.systemIcons=_.y("kevlar_system_icons");return C};
_.O(pg,_.B);_.n=pg.prototype;_.n.computeIconId=function(C){return C&&C.icon&&C.icon.iconType?C.icon.iconType.toLowerCase():""};
_.n.computeIcon=function(C){return C&&C.icon&&C.icon.iconType?(C=C.icon.iconType.toLowerCase(),(C.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+C):""};
_.n.computeDisabled=function(C){return!!C};
_.n.computeCommand=function(C,F){return F?void 0:C};
_.n.computeTooltip=function(C,F){return F&&C?C:""};
_.n.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.I6.Object.defineProperties(pg.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var C="",F,G,V;if((F=this.data)==null?0:(G=F.text)==null?0:(V=G.runs)==null?0:V.length)C=this.data.text.runs[0].text||"";else{var J,b;if((J=this.data)==null?0:(b=J.text)==null?0:b.simpleText)C=this.data.text.simpleText}var z,Q,E;if((z=this.data)==null?0:(Q=z.subtext)==null?0:(E=Q.runs)==null?0:E.length)C&&(C+=". "),C+=this.data.subtext.runs[0].text||"";else{var t,k;if((t=this.data)==null?0:(k=t.subtext)==
null?0:k.simpleText)C&&(C+=". "),C+=this.data.subtext.simpleText}return C}}});
_.R([_.w(_.yR.YtEndpointBehavior),_.Y("design:type",Object)],pg.prototype,"ytEndpointBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],pg.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],pg.prototype,"data",void 0);_.R([_.L({computed:"computeIconId(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],pg.prototype,"iconId",void 0);
_.R([_.L({computed:"computeIcon(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],pg.prototype,"icon",void 0);_.R([_.L({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.Y("design:type",Object)],pg.prototype,"disabled",void 0);_.R([_.L({computed:"computeCommand(data.command, disabled)"}),_.Y("design:type",Object)],pg.prototype,"command",void 0);_.R([_.L({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.Y("design:type",String)],pg.prototype,"tooltip",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],pg.prototype,"systemIcons",void 0);_.R([_.M("data.text","data.subtext"),_.L(),_.Y("design:type",String),_.Y("design:paramtypes",[])],pg.prototype,"ariaLabel",null);_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],pg);
_.q(pg,"yt-live-chat-product-button-renderer",function(){if(uTz===void 0){var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" aria-label$="[[ariaLabel]]" disabled$="[[disabled]]" role="menuitem" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;nx_===void 0&&(nx_=document.createElement("template"));var V=nx_;G.call(F,V.content.cloneNode(!0),C.content.firstChild);uTz=C}C=uTz;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var z8l;var Qa0;var mC=function(){var C=_.B.apply(this,arguments)||this;C.selected=!1;C.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels","yt-signal-action-close-engage-with-audience-editor-panel":"onCloseEngageWithAudienceEditorPanels"};return C};
_.O(mC,_.B);_.n=mC.prototype;_.n.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"}}}};
_.n.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.n.computeId=function(C){return C.id||""};
_.n.onCloseClick=function(){_.oo(this.hostElement,"picker-cancelled")};
_.n.observeSelected=function(){this.selected&&this.hostElement.focus();var C=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");C.length&&C[0].focus()};
_.n.onCloseBuyFlow=function(){_.oo(this.hostElement,"picker-cancelled")};
_.n.onCloseEngageWithAudienceEditorPanels=function(){_.oo(this.hostElement,"picker-cancelled")};
mC.prototype.observeSelected=mC.prototype.observeSelected;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],mC.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],mC.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],mC.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],mC.prototype,"data",void 0);
_.R([_.L({computed:"computeId(data)",reflectToAttribute:!0}),_.Y("design:type",String)],mC.prototype,"id",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],mC.prototype,"selected",void 0);_.R([_.iP("selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mC.prototype,"observeSelected",null);_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],mC);
_.q(mC,"yt-live-chat-product-picker-renderer",function(){if(Qa0===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;z8l===void 0&&(z8l=document.createElement("template"));var V=z8l;G.call(F,V.content.cloneNode(!0),C.content.firstChild);Qa0=C}C=Qa0;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var Is9;var Exz;var Wp0;var tM6;var Ch=function(){return _.B.apply(this,arguments)||this};
_.O(Ch,_.B);Ch.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()};
Ch.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
Ch.prototype.created=function(){this.ids={background:_.wr(),maskOne:_.wr(),maskTwo:_.wr(),gradient:_.wr(),largeBackground:_.wr(),largeGradientOne:_.wr(),largeGradientTwo:_.wr(),largeGradientPath:_.wr()}};
Ch.prototype.maybeLoadAnimationBackground=Ch.prototype.maybeLoadAnimationBackground;_.R([_.L({value:!1}),_.Y("design:type",Boolean)],Ch.prototype,"useLargeBackground",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],Ch.prototype,"useAnimationBackground",void 0);_.R([_.L({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.Y("design:type",Boolean)],Ch.prototype,"useRegularBackground",void 0);
_.R([_.L(),_.Y("design:type",Object)],Ch.prototype,"ids",void 0);_.R([_.L(),_.Y("design:type",Object)],Ch.prototype,"lottieAnimation",void 0);_.R([_.$z("#animation-background"),_.Y("design:type",HTMLDivElement)],Ch.prototype,"animationBackground",void 0);_.R([_.iP("useAnimationBackground"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ch.prototype,"maybeLoadAnimationBackground",null);
_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],Ch);
_.q(Ch,"yt-live-interactivity-component-background",function(){if(tM6===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;Wp0===void 0&&(Wp0=document.createElement("template"));var V=Wp0;G.call(F,V.content.cloneNode(!0),C.content.firstChild);tM6=C}C=tM6;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var jJ=function(){var C=_.B.apply(this,arguments)||this;C.characterCount=0;C.showInputErrorMessage=!1;C.startQnaRequestInFlight=!1;C.modern=_.y("web_button_rework_with_live");C.buttonOverrides={style:"mono",type:"filled"};C.closeButtonOverrides={iconPosition:"icon-only"};C.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return C};
_.O(jJ,_.B);_.n=jJ.prototype;
_.n.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]]"}}}}}};
_.n.onCharacterCountChanged=function(C){var F,G,V,J,b=(G=_.Z(this==null?void 0:(F=this.data)==null?void 0:F.creatorCallForQuestions,Til))==null?void 0:(V=G.inputField)==null?void 0:(J=V.liveChatTextInputFieldRenderer)==null?void 0:J.maxCharacterLimit,z,Q;b!=null&&(C==null?void 0:(z=C.detail)==null?void 0:z.characterCount)!=null&&_.Z(this==null?void 0:(Q=this.data)==null?void 0:Q.startButton,_.DY)&&(F=C.detail.characterCount>b,this.set("data.startButton.buttonRenderer.isDisabled",C.detail.characterCount===
0||F),this.showInputErrorMessage=F)};
_.n.onCloseClick=function(){_.oo(this.hostElement,"picker-cancelled");_.rz(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.n.onPickerCancelled=function(){var C=_.ot(this.hostElement).querySelector("#qna-creator-text-input-field");C&&C.setLiveChatRichMessageInput(null)};
_.n.handleOpenQnaStartPanel=function(){var C=_.ot(this.hostElement).querySelector("#qna-creator-text-input-field");C&&C.focus()};
_.n.handleStartButtonAction=function(C){var F=this;if(C.detail.actionName==="yt-service-request"&&(C.stopPropagation(),C=C.detail.args[1])){var G=_.ot(this.hostElement).querySelector("#qna-creator-text-input-field"),V;(G==null?0:(V=G.liveChatRichMessageInput)==null?0:V.textSegments)&&G.liveChatRichMessageInput.textSegments.length!==0&&(V={rich_message:_.MG(G.liveChatRichMessageInput)},_.DQ(this.hostElement,[C,V]).then(function(){_.oo(F.hostElement,"picker-cancelled")}))}};
_.n.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.n.handleServiceRequestCompleted=function(C){var F;C=C==null?void 0:(F=C.detail)==null?void 0:F.data;(C==null?0:C.actions)&&C.actions.length>0?this.startQnaRequestInFlight=!1:_.rz(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.n.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
jJ.prototype.handleServiceRequestError=jJ.prototype.handleServiceRequestError;jJ.prototype.handleServiceRequestCompleted=jJ.prototype.handleServiceRequestCompleted;jJ.prototype.handleServiceRequestSent=jJ.prototype.handleServiceRequestSent;jJ.prototype.onPickerCancelled=jJ.prototype.onPickerCancelled;jJ.prototype.onCharacterCountChanged=jJ.prototype.onCharacterCountChanged;_.R([_.L(),_.Y("design:type",Object)],jJ.prototype,"characterCount",void 0);
_.R([_.L(),_.Y("design:type",Object)],jJ.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],jJ.prototype,"showInputErrorMessage",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],jJ.prototype,"startQnaRequestInFlight",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],jJ.prototype,"modern",void 0);_.R([_.L(),_.Y("design:type",Object)],jJ.prototype,"buttonOverrides",void 0);
_.R([_.L(),_.Y("design:type",Object)],jJ.prototype,"closeButtonOverrides",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],jJ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.g6),_.Y("design:type",Object)],jJ.prototype,"ytLiveChatReduxBehavior",void 0);_.R([_.w(_.CK.YtLiveChatItemBehavior),_.Y("design:type",_.ji)],jJ.prototype,"ytLiveChatItemBehavior",void 0);
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],jJ.prototype,"ytActionHandlerBehavior",void 0);_.R([_.VG("yt-live-chat-text-input-field-renderer-character-count-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],jJ.prototype,"onCharacterCountChanged",null);_.R([_.VG("picker-cancelled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jJ.prototype,"onPickerCancelled",null);
_.R([_.VG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jJ.prototype,"handleServiceRequestSent",null);_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],jJ.prototype,"handleServiceRequestCompleted",null);
_.R([_.VG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],jJ.prototype,"handleServiceRequestError",null);_.R([_.e({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],jJ);
_.q(jJ,"yt-live-chat-qna-start-panel-renderer",function(){if(Exz===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;Is9===void 0&&(Is9=document.createElement("template"));var V=Is9;G.call(F,V.content.cloneNode(!0),C.content.firstChild);Exz=C}C=Exz;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var ash;var kn9;var FQ=function(){return _.B.apply(this,arguments)||this};
_.O(FQ,_.B);FQ.prototype.dismiss=function(){_.oo(this.hostElement,"yt-live-chat-error-message-dismiss")};
FQ.prototype.edit=function(){_.oo(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.R([_.L(),_.Y("design:type",Object)],FQ.prototype,"data",void 0);_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],FQ);
_.q(FQ,"yt-live-chat-text-actions-error-message-renderer",function(){if(kn9===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;ash===void 0&&(ash=document.createElement("template"));var V=ash;G.call(F,V.content.cloneNode(!0),C.content.firstChild);kn9=C}C=kn9;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var UML;var HO9;var lsT;var yn9;var Gx=function(){var C=_.B.apply(this,arguments)||this;C.isDarkTheme=document.documentElement.hasAttribute("dark");C.newnessDotEligible=!1;return C};
_.O(Gx,_.B);Gx.prototype.sendReaction=function(){var C,F,G=((C=this.data)==null?void 0:C.emojiId)||((F=this.data)==null?void 0:F.emoteId),V;G&&((V=this.data)==null?0:V.shouldTriggerAnimation)&&_.rz(this.hostElement,"yt-create-user-reaction-animation",[G]);var J;(C=_.ZD((J=this.data)==null?void 0:J.onTap))&&_.jR(C,this.hostElement);this.showNewnessDot&&_.rz(this.hostElement,"yt-hide-newness-dot")};
Gx.prototype.onClick=function(C){(!C||C.clientX||C.clientY)&&this.sendReaction()};
Gx.prototype.onKeyDown=function(C){C.key!=="Enter"&&C.key!==" "||C.repeat||this.sendReaction()};
_.I6.Object.defineProperties(Gx.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var C,F;return!!(((C=this.data)==null?0:C.emojiId)||((F=this.data)==null?0:F.emoteId))}}});
_.R([_.L(),_.Y("design:type",Object)],Gx.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Gx.prototype,"isDarkTheme",void 0);_.R([_.L(),_.Y("design:type",Object)],Gx.prototype,"newnessDotEligible",void 0);_.R([_.M("data.maybeShowNewnessDot"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Gx.prototype,"showNewnessDot",null);_.R([_.M("data.emojiId","data.emoteId"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Gx.prototype,"useYtImage",null);
_.R([_.Z5({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],Gx);
_.q(Gx,"yt-reaction-control-panel-button-view-model",function(){if(yn9===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;lsT===void 0&&(lsT=document.createElement("template"));var V=lsT;G.call(F,V.content.cloneNode(!0),C.content.firstChild);yn9=C}C=yn9;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var ZO0;var NTT;var Ve=function(){var C=_.B.apply(this,arguments)||this;C.reactionControlPanelExpanded=!1;C.isDarkTheme=document.documentElement.hasAttribute("dark");C.newnessDotEligible=!1;return C};
_.O(Ve,_.B);_.n=Ve.prototype;_.n.expandedButtonsChanged=function(){var C,F;_.jr(this.hostElement,{"--expanded-buttons-height":((F=(C=this.expandedButtonsData)==null?void 0:C.length)!=null?F:0)*36+"px"})};
_.n.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}}};
_.n.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.n.onMouseLeave=function(){var C=this;this.collapseTimer=setTimeout(function(){C.reactionControlPanelExpanded=!1},500)};
_.n.onFocusIn=function(){this.onMouseEnter()};
_.n.onFocusOut=function(){this.onMouseLeave()};
_.n.onCollapsedButtonFocusIn=function(){var C=this;setTimeout(function(){var F;(F=C.expandedButtons.querySelector("button"))==null||F.focus()},100)};
_.n.onCollapsedButtonFocusOut=function(C){C.stopPropagation()};
_.I6.Object.defineProperties(Ve.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var C,F;return _.xf.unsafeClone((C=this.liveReactionsData)==null?void 0:C.emojiButtonData)||((F=this.data)==null?void 0:F.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var C;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((C=this.data)==null||!C.maybeShowNewnessDot)}}});
Ve.prototype.expandedButtonsChanged=Ve.prototype.expandedButtonsChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Ve.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Ve.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.g6),_.Y("design:type",Object)],Ve.prototype,"ytLiveChatReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Ve.prototype,"data",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Ve.prototype,"reactionControlPanelExpanded",void 0);_.R([_.L({selectorArgs:["data.liveReactionsDataEntityKey"],selector:lB9}),_.Y("design:type",Object)],Ve.prototype,"liveReactionsData",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Ve.prototype,"isDarkTheme",void 0);_.R([_.L(),_.Y("design:type",Object)],Ve.prototype,"newnessDotEligible",void 0);
_.R([_.M("liveReactionsData","data.expandedButtons"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ve.prototype,"expandedButtonsData",null);_.R([_.M("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.L({reflectToAttribute:!0}),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ve.prototype,"showNewnessDot",null);_.R([_.$z("#expanded-buttons"),_.Y("design:type",HTMLElement)],Ve.prototype,"expandedButtons",void 0);
_.R([_.iP("expandedButtonsData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ve.prototype,"expandedButtonsChanged",null);_.R([_.Z5({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],Ve);
_.q(Ve,"yt-reaction-control-panel-view-model",function(){if(NTT===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;ZO0===void 0&&(ZO0=document.createElement("template"));var V=ZO0;G.call(F,V.content.cloneNode(!0),C.content.firstChild);NTT=C}C=NTT;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var i1=new _.rT("yt-live-chat"),OOT=Date.parse("2024-7-24"),JH=function(){var C=_.B.apply(this,arguments)||this;C.emojiManager=_.mP;C.newnessDotEligible=!1;C.newnessDotImpressionCounted=!1;C.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return C};
_.O(JH,_.B);_.n=JH.prototype;_.n.emojiCustomizationEnabledChanged=function(){var C;((C=this.data)==null?0:C.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((C=i1.getCreationTime("emoji-customization-count"))&&C<OOT&&i1.set("emoji-customization-count","0"),C=Number(i1.get("emoji-customization-count"))||0,C<3&&(this.newnessDotEligible=!0,i1.set("emoji-customization-count",(C+1).toString())),this.newnessDotImpressionCounted=!0)};
_.n.hideNewnessDot=function(){this.newnessDotEligible=!1;i1.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.n.handleReactionsMute=function(C){var F=_.ZQ(),G=_.m2(206221),V={checkboxData:{state:C?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};F&&_.ej(F,G,V);this.reactionsMuted=C};
_.n.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.n.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}}};
_.I6.Object.defineProperties(JH.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var C;return(!((C=this.liveReactionsData)==null||!C.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
JH.prototype.liveReactionsSettingChanged=JH.prototype.liveReactionsSettingChanged;JH.prototype.emojiCustomizationEnabledChanged=JH.prototype.emojiCustomizationEnabledChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],JH.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],JH.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.g6),_.Y("design:type",Object)],JH.prototype,"ytLiveChatReduxBehavior",void 0);
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],JH.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],JH.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",_.KJ)],JH.prototype,"emojiManager",void 0);_.R([_.L(),_.Y("design:type",Object)],JH.prototype,"newnessDotEligible",void 0);_.R([_.L(),_.Y("design:type",Object)],JH.prototype,"newnessDotImpressionCounted",void 0);
_.R([_.L({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:y2B}),_.Y("design:type",Boolean)],JH.prototype,"liveReactionsSetting",void 0);_.R([_.L({selectorArgs:["data.liveReactionsDataEntityKey"],selector:lB9}),_.Y("design:type",Object)],JH.prototype,"liveReactionsData",void 0);_.R([_.L({value:function(){var C=_.y("enable_lwe_web_mute"),F=i1.get("allow-reactions");return F===void 0?!1:!F&&C}}),
_.Y("design:type",Boolean)],JH.prototype,"reactionsMuted",void 0);_.R([_.L({reflectToAttribute:!0}),_.M("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],JH.prototype,"liveReactionsEnabled",null);_.R([_.iP("data.emojiCustomizationEnabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],JH.prototype,"emojiCustomizationEnabledChanged",null);
_.R([_.iP("liveReactionsEnabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],JH.prototype,"liveReactionsSettingChanged",null);_.R([_.Z5({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],JH);
_.q(JH,"yt-reaction-control-panel-overlay-view-model",function(){if(HO9===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;UML===void 0&&(UML=document.createElement("template"));var V=UML;G.call(F,V.content.cloneNode(!0),C.content.firstChild);HO9=C}C=HO9;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var Xg6={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(C){var F=this.$.pickers.selected;if(F){_.ot(this.hostElement).removeAttribute(F+"-open");var G="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(G="#picker-buttons",F==="emoji"&&_.ot(this.hostElement).querySelector("#emoji-picker-button")&&(G="#emoji-picker-button"));if(G=_.ot(this.hostElement).querySelector(G).querySelector("#"+F))G.active=!1}G=C;F==C&&(G=null);F!=
C&&_.ot(this.hostElement).setAttribute(C+"-open","");this.$.pickers.selected=G;_.rz(this.hostElement,"yt-live-chat-picker-changed",[G])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var $t=function(){var C=_.B.apply(this,arguments)||this;C.numSentMessages=0;C.timeoutDurationMs=0;C.timeoutMs=0;C.lastTimeoutTimeMs=0;C.pendingMessageId="";C.hasFiredInitialFocusActions=!1;C.isBeforeFocusEnabled=!0;C.id="";C.characterCount=0;C.maxCharacterLimit=0;C.remainingCharacterCount=0;C.inputExpanded=!1;C.buttonOverrides={iconPosition:"icon-only"};C.inReplyPanel=!1;C.countdownRatio=0;C.isTooltipVisible=!1;C.tooltipTimeout=1E4;C.systemIcons=_.y("kevlar_system_icons");C.tallerEmojiPicker=_.y("live_chat_taller_emoji_picker");
C.sendReplyMessageInFlight=!1;C.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"};C.onResize=function(){C.maybeToggleCharacterCount()};
return C};
_.O($t,_.B);_.n=$t.prototype;
_.n.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"}}}};
_.n.attached=function(){window.addEventListener("resize",this.onResize)};
_.n.detached=function(){window.removeEventListener("resize",this.onResize)};
_.n.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.n.sendMessage=function(){var C=this,F,G,V,J;return _.I(function(b){if(C.sendDisabled)return b.return();C.isTooltipVisible&&_.rz(C.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(C.data.sendButton&&C.data.sendButton.buttonRenderer){C.input.completeEmojis();F=C.data.sendButton.buttonRenderer.serviceEndpoint;if(!F)return b.return();V=((G=_.Z(F,_.bQo))==null?void 0:G.clientIdPrefix)||"";J={client_message_id:V+String(C.numSentMessages++),rich_message:_.MG(C.input.liveChatRichMessageInput)};
C.pendingMessageId=J.client_message_id;C.inReplyPanel&&(C.sendReplyMessageInFlight=!0);_.DQ(C.hostElement,[F,J]);C.input.setLiveChatRichMessageInput(null)}_.S9(b)})};
_.n.handleSendButtonAction=function(C){C.detail.actionName==="yt-service-request"&&(C.stopPropagation(),this.sendMessage())};
_.n.onSendCompleted=function(C,F){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(C=this.get("timeoutDurationUsec",F.data))&&this.handleTimeout(Number(C)/1E3);this.errorMessage=this.get("errorMessage",F.data);this.pendingMessageId=""};
_.n.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.rz(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.n.handlePickerButtonToggle=function(C){C=C.detail.targetId;this.ytPickerBehavior.togglePicker_(C);if(C==="emoji")this.input.focus();else if(C==="qna-start-panel"){var F,G;(F=_.ot(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(G=F.querySelector("#qna-creator-text-input-field"))==null||G.focus()}};
_.n.onComponentReplaced=function(C){var F,G;C.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((F=C.replacement.liveChatMessageInputRenderer)==null?0:(G=F.headerRenderer)==null?0:G.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.n.onEmojiSelect=function(C){this.input.focus();this.input.insertEmoji(C.detail)};
_.n.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.n.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.rz(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.rz(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.n.onOpenPopupAction=function(C,F){var G=this;F===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.rz(G.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.n.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.n.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.n.focusChanged=function(){this.maybeToggleCharacterCount()};
_.n.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var C=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",C>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.n.computeId=function(){return this.data&&this.data.targetId||""};
_.n.computeSendDisabled=function(C,F,G,V){C=!!(!C||F&&C>F||V);(F=_.ot(this.hostElement).querySelector("#send-button"))&&F.children.length&&(F.children[0].disabled=C);return C};
_.n.handleTimeout=function(C){this.timeoutDurationMs=this.timeoutMs=C;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.n.updateTimeout=function(C){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(C-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=C,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.n.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.n.onErrorMessageEdit=function(C){this.input.setLiveChatRichMessageInput(C.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.n.errorMessageChanged=function(){var C=this;_.L5(function(){_.rz(C.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.n.computeAuthorNameColor=function(C){var F;if(_.y("live_chat_author_name_color_usernames")&&(C==null?0:(F=C.authorName)==null?0:F.simpleText))return _.IzE(_.ERW(C.authorName.simpleText));if(_.y("live_chat_seed_color_usernames")&&(C==null?0:C.authorSeedColorArgb))return _.IzE(_.K5(C.authorSeedColorArgb));if(_.y("live_chat_colored_usernames"))return"#cc0000";var G;return _.y("live_chat_simple_color_usernames")&&(C==null?0:(G=C.authorName)==null?0:G.simpleText)&&(C==null?0:C.authorUsernameColorLight)&&
(C==null?0:C.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.K5(C.authorUsernameColorDark):_.K5(C.authorUsernameColorLight):""};
_.n.onIsTooltipVisibleChanged=function(){var C=_.ot(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){C.hidden=!1;C.setAttribute("role","alert")},0):(C.hidden=!0,C.removeAttribute("role"))};
_.n.onFocusedChanged=function(C){this.inputFocused=C.detail.value};
_.I6.Object.defineProperties($t.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 C;return!((C=this.data)==null||!C.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var C,F;return((C=this.data)==null?void 0:(F=C.pickers)==null?void 0:F.find(function(G){return G.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var C=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return C?this.ytRendererBehavior.getSimpleString(C):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
$t.prototype.onIsTooltipVisibleChanged=$t.prototype.onIsTooltipVisibleChanged;$t.prototype.errorMessageChanged=$t.prototype.errorMessageChanged;$t.prototype.onErrorMessageEdit=$t.prototype.onErrorMessageEdit;$t.prototype.onErrorMessageDismiss=$t.prototype.onErrorMessageDismiss;$t.prototype.focusChanged=$t.prototype.focusChanged;$t.prototype.characterCountChanged=$t.prototype.characterCountChanged;$t.prototype.onEmojiSelect=$t.prototype.onEmojiSelect;$t.prototype.handlePickerButtonToggle=$t.prototype.handlePickerButtonToggle;
$t.prototype.onSendError=$t.prototype.onSendError;$t.prototype.onSendCompleted=$t.prototype.onSendCompleted;$t.prototype.sendMessage=$t.prototype.sendMessage;$t.prototype.dataChanged=$t.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],$t.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],$t.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.w(Xg6.YtPickerBehavior),_.Y("design:type",Object)],$t.prototype,"ytPickerBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],$t.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Rm.YtLiveChatTooltipTargetingBehavior),_.Y("design:type",Object)],$t.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],$t.prototype,"hasFiredInitialFocusActions",void 0);
_.R([_.L(),_.Y("design:type",Object)],$t.prototype,"isBeforeFocusEnabled",void 0);_.R([_.L(),_.Y("design:type",Object)],$t.prototype,"data",void 0);_.R([_.L({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Y("design:type",Object)],$t.prototype,"id",void 0);_.R([_.L(),_.Y("design:type",Object)],$t.prototype,"characterCount",void 0);_.R([_.L(),_.Y("design:type",Object)],$t.prototype,"maxCharacterLimit",void 0);
_.R([_.L(),_.Y("design:type",Object)],$t.prototype,"remainingCharacterCount",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],$t.prototype,"inputExpanded",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],$t.prototype,"inputFocused",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],$t.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.R([_.L(),_.Y("design:type",_.VN)],$t.prototype,"participantsManager",void 0);
_.R([_.L(),_.Y("design:type",Object)],$t.prototype,"buttonOverrides",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],$t.prototype,"inReplyPanel",void 0);_.R([_.M("characterCount, maxCharacterLimit, countdownActive"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],$t.prototype,"sendDisabled",null);_.R([_.L(),_.Y("design:type",Object)],$t.prototype,"countdownRatio",void 0);
_.R([_.M("countdownRatio"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],$t.prototype,"countdownStrokeDashOffset",null);_.R([_.M("countdownRatio"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],$t.prototype,"countdownActive",null);_.R([_.M("data.interactionMessage"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],$t.prototype,"hasInteractionMessage",null);
_.R([_.M("data.emojiPickerButton"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],$t.prototype,"hasEmojiPickerButton",null);_.R([_.M("data, characterCount"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],$t.prototype,"showAvatar",null);_.R([_.M("data.pickers"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],$t.prototype,"hasProductPickerPanelViewModel",null);
_.R([_.L(),_.Y("design:type",Object)],$t.prototype,"errorMessage",void 0);_.R([_.L(),_.Y("design:type",Object)],$t.prototype,"genericErrorMessage",void 0);_.R([_.L(),_.Y("design:type",Object)],$t.prototype,"isTooltipVisible",void 0);_.R([_.L(),_.Y("design:type",Object)],$t.prototype,"tooltipTimeout",void 0);_.R([_.M("data.onInitialFocusCommand"),_.Y("design:type",String),_.Y("design:paramtypes",[])],$t.prototype,"tooltipMessage",null);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],$t.prototype,"systemIcons",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],$t.prototype,"tallerEmojiPicker",void 0);_.R([_.M("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],$t.prototype,"authorNameColor",null);_.R([_.L(),_.Y("design:type",Object)],$t.prototype,"sendReplyMessageInFlight",void 0);_.R([_.$z("#input"),_.Y("design:type",_.d8O)],$t.prototype,"input",void 0);
_.R([_.$z("#count"),_.Y("design:type",HTMLElement)],$t.prototype,"count",void 0);_.R([_.$z("#input-container"),_.Y("design:type",HTMLElement)],$t.prototype,"inputContainer",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$t.prototype,"dataChanged",null);_.R([_.VG("yt-live-chat-send-message"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],$t.prototype,"sendMessage",null);
_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,_.en]),_.Y("design:returntype")],$t.prototype,"onSendCompleted",null);_.R([_.VG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$t.prototype,"onSendError",null);
_.R([_.VG("yt-live-chat-icon-toggle-button-renderer-toggle"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],$t.prototype,"handlePickerButtonToggle",null);_.R([_.VG("yt-emoji-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],$t.prototype,"onEmojiSelect",null);
_.R([_.iP("characterCount"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$t.prototype,"characterCountChanged",null);_.R([_.iP("inputFocused"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$t.prototype,"focusChanged",null);_.R([_.VG("yt-live-chat-error-message-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$t.prototype,"onErrorMessageDismiss",null);
_.R([_.VG("yt-live-chat-error-message-edit"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],$t.prototype,"onErrorMessageEdit",null);_.R([_.iP("errorMessage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$t.prototype,"errorMessageChanged",null);_.R([_.iP("isTooltipVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$t.prototype,"onIsTooltipVisibleChanged",null);
_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],$t);
_.q($t,"yt-live-chat-message-input-renderer",function(){if(oUF===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;Tjn===void 0&&(Tjn=document.createElement("template"));var V=Tjn;G.call(F,V.content.cloneNode(!0),C.content.firstChild);oUF=C}C=oUF;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var wg_;var MM9;var b1=function(){var C=_.B.apply(this,arguments)||this;C.systemIcons=_.y("kevlar_system_icons");C.firedOnClickCommand=!1;C.inReplyPanel=!1;return C};
_.O(b1,_.B);
b1.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"}}}};
b1.prototype.onButtonToggle=function(C){C.target.disabled||this.ytPickerBehavior.togglePicker_(C.detail.targetId)};
b1.prototype.onClick=function(){var C=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.rz(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return C.firedOnClickCommand=!1},5E3))};
_.I6.Object.defineProperties(b1.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var C,F;return((C=this.data)==null?void 0:(F=C.panels)==null?void 0:F.find(function(G){return G.liveChatProductPickerPanelViewModel}))!==void 0}}});
b1.prototype.onButtonToggle=b1.prototype.onButtonToggle;_.R([_.w(Xg6.YtPickerBehavior),_.Y("design:type",Object)],b1.prototype,"ytPickerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],b1.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],b1.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],b1.prototype,"data",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],b1.prototype,"systemIcons",void 0);_.R([_.L({reflectToAttribute:!1}),_.Y("design:type",Object)],b1.prototype,"firedOnClickCommand",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],b1.prototype,"inReplyPanel",void 0);_.R([_.M("data.pickers"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],b1.prototype,"hasProductPickerPanelViewModel",null);
_.R([_.VG("yt-live-chat-icon-toggle-button-renderer-toggle"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],b1.prototype,"onButtonToggle",null);_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],b1);
_.q(b1,"yt-live-chat-restricted-participation-renderer",function(){if(MM9===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;wg_===void 0&&(wg_=document.createElement("template"));var V=wg_;G.call(F,V.content.cloneNode(!0),C.content.firstChild);MM9=C}C=MM9;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var nh=function(){var C=_.B.apply(this,arguments)||this;C.genericErrorMessage=_.eN("Error, try again.");C.inReplyPanel=!1;C.hideBorder=!1;return C};
_.O(nh,_.B);nh.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}}}}}};
_.I6.Object.defineProperties(nh,{template:{configurable:!0,enumerable:!0,get:function(){return qwT()}}});
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],nh.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],nh.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],nh.prototype,"genericErrorMessage",void 0);_.R([_.L(),_.Y("design:type",Object)],nh.prototype,"inReplyPanel",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],nh.prototype,"hideBorder",void 0);
_.R([_.Z5({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],nh);_.q(nh,"yt-live-chat-engagement-panel-input-renderer",function(){return qwT()},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var St_,LpF;St_=_.m2(115994);LpF=_.m2(115993);_.u1=function(C,F,G){var V=this;var J=G.dragDownAction;this.layer=0;this.JSC$22787_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return V.dragDownAction()}}}};
this.JSC$22787_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return V.dragDownAction()}}}};
this.fullscreen=!1;var b=_.ia();_.Xu(b,St_,this.layer);_.Xu(b,LpF,this.layer);this.dragDownAction=function(){J();_.LZ(b,{visualElement:V.fullscreen?St_:LpF})};
this.gesture=new _.xg(C,F,this.getConfig(!1),"pandown");this.attach()};
_.u1.prototype.attach=function(){this.gesture.attach()};
_.u1.prototype.detach=function(){this.gesture.detach()};
_.u1.prototype.update=function(C){this.fullscreen=C;var F=this.gesture;C=this.getConfig(C);F.config=C};
_.u1.prototype.getConfig=function(C){return C?this.JSC$22787_watchFullScreenConfig:this.JSC$22787_watchConfig};var BTT={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(C){if(C&&C.length==1&&Array.isArray(C[0].loggingUrls)){C=_.xf.unsafeClone(C[0]);var F=this.macros||{},G=this.getAdModuleClient_();if(!G)return _.mE();C.loggingUrls.forEach(function(V){if(V.baseUrl){var J=V.baseUrl;var b=F;b=b===void 0?{}:b;J=G.getOptions().includes("replaceUrlMacros")?_.GXG(G,"replaceUrlMacros",{url:J,additionalMapping:b}):J;V.baseUrl=J}},this);
C=[C]}return _.DQ(this.hostElement,C)},
getAdModuleClient_:function(){var C=_.gE(this);return C?(C=C.getPlayer())?new _.xV(C):null:null}}]};var vx0;var fsL;var zx=function(){return _.B.apply(this,arguments)||this};
_.O(zx,_.B);zx.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],zx.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],zx.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],zx.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],zx);
_.q(zx,"ytd-compact-tvfilm-entry-point-renderer",function(){if(fsL!==void 0)return fsL;var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return fsL=C},{mode:1});var h8_;var cnl;var AnF;var Qe=function(){return _.B.apply(this,arguments)||this};
_.O(Qe,_.B);Qe.prototype.ready=function(){this.initializeDefs()};
Qe.prototype.initializeDefs=function(){var C=this.meta.byKey("yt-icons"),F=_.ot(C).querySelector("#star"),G=_.ot(C).querySelector("#star_half");C=_.ot(C).querySelector("#star_border");F&&this.defs.appendChild(F.cloneNode(!0));G&&this.defs.appendChild(G.cloneNode(!0));C&&this.defs.appendChild(C.cloneNode(!0))};
Qe.prototype.percentChanged=function(){for(var C=this.rating;C.firstChild;)C.removeChild(C.firstChild);var F=Math.round(this.percent/10);C=Math.floor(F/2);F%=2;var G=5-C-F;this.appendStars("star",C,0);this.appendStars("star_half",F,C);this.appendStars("star_border",G,C+F)};
Qe.prototype.appendStars=function(C,F,G){for(var V=0;V<F;V++){var J=(18+this.spacing)*(V+G),b=document.createElementNS("http://www.w3.org/2000/svg","use");_.JRr(b,"#"+C);b.setAttribute("x",""+J);b.setAttribute("y","0");this.rating.appendChild(b)}};
Qe.prototype.percentChanged=Qe.prototype.percentChanged;_.R([_.$z("#defs"),_.Y("design:type",HTMLElement)],Qe.prototype,"defs",void 0);_.R([_.$z("#rating"),_.Y("design:type",HTMLElement)],Qe.prototype,"rating",void 0);_.R([_.L(),_.Y("design:type",Number)],Qe.prototype,"percent",void 0);_.R([_.L({value:6}),_.Y("design:type",Number)],Qe.prototype,"spacing",void 0);_.R([_.L({value:_.w3.create("iron-meta",{type:"iconset"})}),_.Y("design:type",_.vP)],Qe.prototype,"meta",void 0);
_.R([_.iP("percent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qe.prototype,"percentChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-ratings"})],Qe);
_.q(Qe,"ytd-ratings",function(){if(AnF!==void 0)return AnF;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return AnF=C},{mode:1});var e8L=function(){return _.B.apply(this,arguments)||this};
_.O(e8L,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],e8L.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],e8L.prototype,"data",void 0);_.R([_.e({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],e8L);
_.q(e8L,"ytd-offer-review-renderer",function(){if(cnl!==void 0)return cnl;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return cnl=C},{mode:1});var II=function(){var C=_.B.apply(this,arguments)||this;C.badges=[{textBadge:{label:_.eN("CC")}}];return C};
_.O(II,_.B);_.n=II.prototype;_.n.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.n.dataChanged=function(){var C=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(C&&C.commandMetadata&&_.Z(C.commandMetadata,_.fH)&&_.Z(C.commandMetadata,_.fH).fireAutomatically)_.I8().resolve(_.WD).resolveCommand(C,{form:{element:this.hostElement}});else{var F;C&&((F=_.Z(C,_.fH))==null?0:F.fireAutomatically)&&_.I8().resolve(_.WD).resolveCommand(C,{form:{element:this.hostElement}})}};
_.n.isEmptyContent=function(C){return this.isStorefrontEntryPointEmpty(C)&&this.shouldHideOfferModule(C)};
_.n.isStorefrontEntryPointEmpty=function(C){return!C||!C.storefrontEntryPoint};
_.n.shouldHideOfferModule=function(C){return!!C.hideVideoDetails};
_.n.isOfferModuleNavigationInactive=function(C){return!C.navigationEndpoint&&!C.serviceEndpoint};
_.n.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.I8().resolve(_.WD).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
II.prototype.dataChanged=II.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],II.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],II.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],II.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.Y("design:type",Boolean)],II.prototype,"hidden",void 0);
_.R([_.L(),_.Y("design:type",Object)],II.prototype,"badges",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],II.prototype,"dataChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],II);
_.q(II,"ytd-movie-offer-module-renderer",function(){if(h8_!==void 0)return h8_;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return h8_=C},{mode:1});var dMT;var xMS=function(){return _.B.apply(this,arguments)||this};
_.O(xMS,_.B);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],xMS.prototype,"componentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],xMS.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],xMS);
_.q(xMS,"ytd-media-masthead-renderer",function(){if(dMT!==void 0)return dMT;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return dMT=C},{mode:1});var saz;_.gQ(_.eHE,"course-metadata-view-model",{props:{data:_.s9,isOverlay:_.s9}});var Eg=function(){var C=_.B.apply(this,arguments)||this;C.isMetadataVisible=!1;C.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return C};
_.O(Eg,_.B);_.n=Eg.prototype;
_.n.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"}}}}};
_.n.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.n.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.n.expanderChanged=function(){var C;if((C=this.data)==null?0:C.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.n.isExpandButtonToggled=function(){var C,F;return(F=_.Z((C=this.data)==null?void 0:C.expandMetadataButton,_.Gz))==null?void 0:F.isToggled};
_.n.onVisibilityButtonClick=function(){var C;if((C=this.data)==null?0:C.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.n.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
Eg.prototype.expanderChanged=Eg.prototype.expanderChanged;Eg.prototype.dataChanged=Eg.prototype.dataChanged;Eg.prototype.descriptionChanged=Eg.prototype.descriptionChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Eg.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Eg.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w([_.Z7.YtActionHandlerBehavior]),_.Y("design:type",Object)],Eg.prototype,"actionHandlerBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],Eg.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],Eg.prototype,"isMetadataVisible",void 0);_.R([_.$z("#expander"),_.Y("design:type",Object)],Eg.prototype,"expander",void 0);_.R([_.iP("data.description"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Eg.prototype,"descriptionChanged",null);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Eg.prototype,"dataChanged",null);_.R([_.iP("isMetadataVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Eg.prototype,"expanderChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],Eg);
_.q(Eg,"ytd-tvfilm-offer-module-renderer",function(){if(saz!==void 0)return saz;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return saz=C},{mode:2});var qtB;var WC=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return C};
_.O(WC,_.B);WC.prototype.dataChanged=function(){this.hostElement.hidden=!1};
WC.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
WC.prototype.onThumbnailTap=function(C){this.data&&this.data.serviceEndpoint&&(_.I8().resolve(_.WD).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),C.stopPropagation())};
WC.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
WC.prototype.dataChanged=WC.prototype.dataChanged;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],WC.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],WC.prototype,"rendererBehaviors",void 0);_.R([_.w([_.Z7.YtActionHandlerBehavior]),_.Y("design:type",Object)],WC.prototype,"actionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],WC.prototype,"data",void 0);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WC.prototype,"dataChanged",null);_.R([_.e({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],WC);
_.q(WC,"ytd-unlimited-offer-module-renderer",function(){if(qtB!==void 0)return qtB;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return qtB=C},{mode:1});var Pw0;var gxT;var tH=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return C};
_.O(tH,_.B);tH.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
tH.prototype.handleRelatedChipCommand=function(C){C=_.Z(C,u$9);var F=C.contents;F?_.KX(this.hostElement,"yt-item-section-replace-action",[F,C.targetSectionIdentifier]):_.KX(this.hostElement,"yt-item-section-continuation-action",[C.continuationData,C.targetSectionIdentifier])};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],tH.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],tH.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],tH.prototype,"actionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],tH.prototype,"data",void 0);_.R([_.Z5({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],tH);
_.q(tH,"yt-related-chip-cloud-renderer",function(){if(gxT===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;Pw0===void 0&&(Pw0=document.createElement("template"));var V=Pw0;G.call(F,V.content.cloneNode(!0),C.content.firstChild);gxT=C}C=gxT;return C},{mode:2});var aI=function(){var C=_.B.apply(this,arguments)||this;C.isTwoColumns=!0;C.watchFeedBigThumbs=_.y("kevlar_watch_feed_big_thumbs");C.watchFeedBigThumbsOnLockup=_.y("web_watch_next_big_thumbs");C.watchNextGridHideChips=_.y("kevlar_watch_grid_hide_chips");C.eligibleToSwitchToGrid=!0;C.disableShortsShelfHeightOverride=_.y("web_shorts_wn_shelf_ratio_tuning");C.isWatchNextGrid=!1;C.reuseComponents=!_.y("kevlar_watch_grid");C.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return C};
_.O(aI,_.B);_.n=aI.prototype;
_.n.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]",
useBigThumbs:"[[watchFeedBigThumbsOnLockup]]"}},reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.y("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}}};
_.n.getItemsPath=function(){return"data.results"};
_.n.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.n.created=function(){this.ytLazyListBehavior.initialCount=1};
_.n.ready=function(){_.jr(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%"})};
_.n.resultsChanged=function(){if(this.data&&this.data.results){for(var C=this.data.results,F=null,G=null,V=0;V<C.length;V++)C[V].relatedChipCloudRenderer?F=C[V].relatedChipCloudRenderer:C[V].itemSectionRenderer&&(G=C[V].itemSectionRenderer);if(F&&G)for(this.set("data.continuations",[]),C=_.Z(F.content,_.pn8).chips,F=0;F<C.length;F++)if(V=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",C[F]),V.loadCached||!V.contents){V.contents=G.contents;break}}};
_.n.dataChanged=function(){var C=this,F;if((F=this.data)!=null&&F.results&&this.hasAllowedInstreamAd(this.playerData)){if(F=this.data.results.filter(function(Q){return!!Q.promotedSparklesWebRenderer})){for(var G=0;G<F.length;G++){var V=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",F[G]);
if(V)for(var J=0;J<V.length;J++)V[J]&&V[J].baseUrl&&_.C1(V[J].baseUrl)}this.set("data.results",this.data.results.filter(function(Q){return!Q.promotedSparklesWebRenderer}))}if(F=this.data.results.filter(function(Q){return!!C.getSparklesAd(Q)})){F=_.u(F);
for(J=F.next();!J.done;J=F.next())if(V=G=void 0,J=(G=this.getSparklesAd(J.value))==null?void 0:(V=G.errorCommand)==null?void 0:V.loggingUrls)for(G=_.u(J),V=G.next();!V.done;V=G.next())(V=V.value)&&V.baseUrl&&_.C1(V.baseUrl);var b,z;this.set("data.results",(b=this.data)==null?void 0:(z=b.results)==null?void 0:z.filter(function(Q){return!Q.adSlotRenderer}))}}};
_.n.getSparklesAd=function(C){var F,G;C=_.Z((F=C.adSlotRenderer)==null?void 0:(G=F.fulfillmentContent)==null?void 0:G.fulfilledLayout,_.Ox7);return _.Z(C==null?void 0:C.renderingContent,wQ9)};
_.n.hasAllowedInstreamAd=function(C){C=this.get("adPlacements",C)||[];for(var F=0;F<C.length;F++){var G=this.get("adPlacementRenderer.config.adPlacementConfig",C[F]);if(G&&G.suppressDisplayAd)return!0}return!1};
_.n.computeHideUnlimitedOfferModule=function(C,F){return C&&C.offerModule&&F&&C.offerModule.unlimitedOfferModuleRenderer&&C.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(F)?!0:!1};
_.n.hideUnlimitedOfferModuleChanged=function(){var C=_.ot(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");C&&(C.hidden=this.hideUnlimitedOfferModule)};
_.n.updateLockupContainerTypes=function(C){if(this.eligibleToSwitchToGrid){var F;(F=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||F.forEach(function(G){G.containerType=C})}};
_.n.computeHideTvfilmOfferModule=function(C,F){var G,V;return!!((C==null?0:(G=C.offerModule)==null?0:(V=G.tvfilmOfferModuleRenderer)==null?0:V.clientShouldSuppressIfCompanionAdDisplayed)&&F&&this.hasCompanionAds(F))};
_.n.hideTvfilmOfferModuleChanged=function(){var C=_.ot(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");C&&(C.hidden=this.hideTvfilmOfferModule)};
_.n.hasCompanionAds=function(C){C=this.get("adPlacements",C)||[];for(var F=0;F<C.length;F++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",C[F]))return!0;var G=void 0,V=void 0,J=void 0;if(!_.y("web_watch_top_banner_companion_check_killswitch")&&((G=C[F])==null?0:(V=G.adPlacementRenderer)==null?0:(J=V.renderer)==null?0:J.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.n.hasSuppressedResults=function(C){return C==null?!0:C.filter(function(F){return!F.continuationItemRenderer&&!F.compactPromotedVideoRenderer&&!F.promotedSparklesWebRenderer}).length===0};
_.n.computeShowButton=function(C,F){return this.isWatchNextGrid?C:C||this.hasSuppressedResults(F)};
_.n.showButtonChanged=function(){if(this.isWatchNextGrid){var C=_.ot(this.hostElement).querySelector("ytd-rich-grid-renderer");C&&this.showButton!==null&&(C.continuationShowButton=this.showButton)}else{C=_.ot(this.hostElement).querySelector("yt-next-continuation");var F=_.ot(this.hostElement).querySelector("ytd-continuation-item-renderer"),G=_.ot(this.hostElement).querySelector("ytd-item-section-renderer");C&&(C.showButton=this.showButton);F&&(F.showButton=this.showButton);G&&(G.continuationShowButton=
this.showButton)}};
_.n.continuationTap=function(C){var F;if(((F=this.data)==null?void 0:F.continuations)!=null&&C.target.tagName==="TP-YT-PAPER-BUTTON")for(C=this.data.continuations,F=0;F<C.length;F++)C[F].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(C[F].nextContinuationData||{})};
_.n.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G6("shown-items-changed",this.shownItems))};
_.I6.Object.defineProperties(aI.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.watchFeedBigThumbsOnLockup?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.shownItems)==null||!C.some(function(F){return!!F.lockupViewModel||F.compactVideoRenderer}))}}});
aI.prototype.shownItemsChangedForBinding=aI.prototype.shownItemsChangedForBinding;aI.prototype.showButtonChanged=aI.prototype.showButtonChanged;aI.prototype.hideTvfilmOfferModuleChanged=aI.prototype.hideTvfilmOfferModuleChanged;aI.prototype.updateLockupContainerTypes=aI.prototype.updateLockupContainerTypes;aI.prototype.hideUnlimitedOfferModuleChanged=aI.prototype.hideUnlimitedOfferModuleChanged;aI.prototype.dataChanged=aI.prototype.dataChanged;aI.prototype.resultsChanged=aI.prototype.resultsChanged;
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],aI.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],aI.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.zR.YtLazyListBehavior),_.Y("design:type",Object)],aI.prototype,"ytLazyListBehavior",void 0);_.R([_.w(_.VD.YtNextContinuationBehavior),_.Y("design:type",Object)],aI.prototype,"ytNextContinuationBehavior",void 0);
_.R([_.w(_.G1),_.Y("design:type",Object)],aI.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],aI.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],aI.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],aI.prototype,"playerData",void 0);_.R([_.L({value:!0}),_.Y("design:type",Boolean)],aI.prototype,"autoFill",void 0);_.R([_.L({value:60}),_.Y("design:type",Number)],aI.prototype,"targetFramerate",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],aI.prototype,"isTwoColumns",void 0);_.R([_.L(),_.Y("design:type",Object)],aI.prototype,"shownItems",void 0);_.R([_.L({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.Y("design:type",Boolean)],aI.prototype,"hideUnlimitedOfferModule",void 0);_.R([_.L({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.Y("design:type",Boolean)],aI.prototype,"hideTvfilmOfferModule",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],aI.prototype,"watchFeedBigThumbs",void 0);_.R([_.L(),_.Y("design:type",Object)],aI.prototype,"watchFeedBigThumbsOnLockup",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],aI.prototype,"watchNextGridHideChips",void 0);_.R([_.L(),_.Y("design:type",Object)],aI.prototype,"eligibleToSwitchToGrid",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],aI.prototype,"disableShortsShelfHeightOverride",void 0);
_.R([_.L({selector:_.ZH,reflectToAttribute:!0}),_.Y("design:type",Object)],aI.prototype,"isGridViewEnabled",void 0);_.R([_.L({selector:_.C3I,reflectToAttribute:!0}),_.Y("design:type",Object)],aI.prototype,"isSwatcherooActive",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],aI.prototype,"showMoreButton",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],aI.prototype,"isWatchNextGrid",void 0);
_.R([_.L({computed:"computeShowButton(showMoreButton, data.results)"}),_.Y("design:type",Boolean)],aI.prototype,"showButton",void 0);_.R([_.zp("data.results.*"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aI.prototype,"resultsChanged",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aI.prototype,"dataChanged",null);
_.R([_.iP("hideUnlimitedOfferModule"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aI.prototype,"hideUnlimitedOfferModuleChanged",null);_.R([_.M("isGridViewEnabled","containsLockups","data"),_.L({reflectToAttribute:!0}),_.Y("design:type",Number),_.Y("design:paramtypes",[])],aI.prototype,"lockupContainerType",null);
_.R([_.iP("lockupContainerType","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[Number]),_.Y("design:returntype")],aI.prototype,"updateLockupContainerTypes",null);_.R([_.iP("hideTvfilmOfferModule"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aI.prototype,"hideTvfilmOfferModuleChanged",null);_.R([_.iP("showButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aI.prototype,"showButtonChanged",null);
_.R([_.iP("shownItems"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aI.prototype,"shownItemsChangedForBinding",null);_.R([_.M("shownItems"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aI.prototype,"containsLockups",null);
_.q(aI,"ytd-watch-next-secondary-results-renderer",function(){if(vx0===void 0){var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);vx0=C}C=vx0;return C},{mode:1});var R8n;var kt=function(){var C=_.B.apply(this,arguments)||this;C.isCollapsed=!1;C.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return C};
_.O(kt,_.B);_.n=kt.prototype;_.n.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.n.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.n.onDonateTap=function(){var C=this.get("data.donateButton.buttonRenderer.command");if(C){var F=_.ZQ(),G=this.get("data.donateButton.buttonRenderer.trackingParams");F&&G&&_.ej(F,_.zS(G));this.ytOpenPopupBehavior.openPopup(C)}};
_.n.onShowMore=function(){this.isCollapsed=!1;var C=_.ZQ(),F=this.get("data.expandButton.buttonRenderer.trackingParams");C&&F&&_.ej(C,_.zS(F))};
_.n.onShowLess=function(){this.isCollapsed=!0};
_.n.dataChanged=function(){_.jr(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.n.onDarkModeToggledAction=function(C){this.isDarkTheme=C};
_.n.handleUpdate=function(C){if(C=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",C))this.set("data.startLabel",C.startLabel),this.set("data.endLabel",C.endLabel),this.set("data.progress",C.progress),this.set("data.amountRaisedLabel",C.amountRaisedLabel),this.dataChanged()};
_.n.handleOpenPopupAction=function(C){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",C)&&_.rz(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.n.computeHeaderBackgroundUrl=function(C,F){if(C)return F?C.headerBackgroundDarkUrl:C.headerBackgroundUrl};
_.n.isProgressBarVisible=function(C){return!(!C||C.progress===void 0)};
_.n.headerBackgroundClass=function(){return _.TF("HTML_DIR")==="rtl"?"flip":""};
kt.prototype.dataChanged=kt.prototype.dataChanged;_.R([_.w(_.lc.YtOpenPopupBehavior),_.Y("design:type",Object)],kt.prototype,"ytOpenPopupBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],kt.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],kt.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],kt.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],kt.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],kt.prototype,"isCollapsed",void 0);_.R([_.L({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.Y("design:type",String)],kt.prototype,"headerBackgroundUrl",void 0);_.R([_.L(),_.Y("design:type",Boolean)],kt.prototype,"isDarkTheme",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kt.prototype,"dataChanged",null);
_.R([_.e({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],kt);
_.q(kt,"ytd-donation-shelf-renderer",function(){if(R8n!==void 0)return R8n;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return R8n=C},{mode:1});var Yt9;var TT9=function(){return _.B.apply(this,arguments)||this};
_.O(TT9,_.B);_.R([_.L(),_.Y("design:type",Object)],TT9.prototype,"data",void 0);_.R([_.e({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],TT9);
_.q(TT9,"ytd-donation-unavailable-renderer",function(){if(Yt9!==void 0)return Yt9;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Yt9=C},{mode:1});var ox6;var Ug=function(){return _.B.apply(this,arguments)||this};
_.O(Ug,_.B);Ug.prototype.computeIconType=function(C){return C?"yt-icons:"+C.toLowerCase():null};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Ug.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Ug.prototype,"data",void 0);_.R([_.e({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],Ug);
_.q(Ug,"ytd-limited-state-message-renderer",function(){if(ox6!==void 0)return ox6;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return ox6=C},{mode:1});var rnL;var HC=function(){return _.B.apply(this,arguments)||this};
_.O(HC,_.B);HC.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
HC.prototype.onTap=function(C){var F=this.data&&this.data.endpoint;F&&!_.dE(_.AR(C),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.oo(this.hostElement,"yt-navigate",{endpoint:F})};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],HC.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],HC.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],HC.prototype,"data",void 0);_.R([_.e({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],HC);
_.q(HC,"ytd-autotagging-metadata-renderer",function(){if(rnL!==void 0)return rnL;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return rnL=C},{mode:1});var Kpz;var l1=function(){return _.B.apply(this,arguments)||this};
_.O(l1,_.B);l1.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],l1.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],l1.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],l1.prototype,"data",void 0);_.R([_.e({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],l1);
_.q(l1,"ytd-autotagging-metadata-row-renderer",function(){if(Kpz!==void 0)return Kpz;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Kpz=C},{mode:1});var DM9;var pgn;var ye=function(){var C=_.B.apply(this,arguments)||this;C.engagementPanelContent=!1;return C};
_.O(ye,_.B);ye.prototype.computeHasDividerLine=function(C,F){return C&&!F};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ye.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],ye.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.Y("design:type",Boolean)],ye.prototype,"hasDividerLine",void 0);_.R([_.L(),_.Y("design:type",Object)],ye.prototype,"engagementPanelContent",void 0);
_.R([_.e({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],ye);
_.q(ye,"ytd-metadata-row-header-renderer",function(){if(pgn!==void 0)return pgn;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return pgn=C},{mode:1});var mMz;var Z4=function(){return _.B.apply(this,arguments)||this};
_.O(Z4,_.B);Z4.prototype.computeHasDividerLine=function(C){return C};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Z4.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Z4.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.Y("design:type",Boolean)],Z4.prototype,"hasDividerLine",void 0);_.R([_.e({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],Z4);
_.q(Z4,"ytd-metadata-row-renderer",function(){if(mMz!==void 0)return mMz;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return mMz=C},{mode:1});var CSF;var j1z=function(){return _.B.apply(this,arguments)||this};
_.O(j1z,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],j1z.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],j1z.prototype,"data",void 0);_.R([_.e({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],j1z);
_.q(j1z,"ytd-metadata-with-image-row-renderer",function(){if(CSF!==void 0)return CSF;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return CSF=C},{mode:1});var Fh_;var N2=function(){var C=_.B.apply(this,arguments)||this;C.rounded=!0;C.fixie=!1;C.fullWidth=!1;return C};
_.O(N2,_.B);_.n=N2.prototype;_.n.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.n.onDataChanged=function(){var C=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(F){C.onEndpointLinkKeyPress(F)}))};
_.n.onEndpointLinkKeyPress=function(C){C.target===this.endpointLink&&C.keyCode===13&&_.oo(this.hostElement,"click")};
_.n.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var C;if((C=this.data)==null?0:C.endpoint)_.pX(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.n.onYtNavigate=function(C){this.endpointHref||(C.stopPropagation(),C.preventDefault())};
_.n.onInformationButtonContainerClick=function(C){C.target.id!=="information-button-container"&&(C.stopPropagation(),C.preventDefault())};
_.n.computeStyle=function(C){return C};
_.n.computeIsThumbnailStyle=function(C){return C==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.n.computeThumbnailWidth=function(C){switch(C){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}};
_.n.computeThumbnailObjectFit=function(C){switch(C){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.I6.Object.defineProperties(N2.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?0:C.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
N2.prototype.onYtNavigate=N2.prototype.onYtNavigate;N2.prototype.onClick=N2.prototype.onClick;N2.prototype.onDataChanged=N2.prototype.onDataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],N2.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],N2.prototype,"componentBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],N2.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],N2.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],N2.prototype,"componentStyle",void 0);_.R([_.L({computed:"computeIsThumbnailStyle(data.style)"}),_.Y("design:type",Boolean)],N2.prototype,"isThumbnailStyle",void 0);_.R([_.L({computed:"computeThumbnailObjectFit(data.style)"}),_.Y("design:type",String)],N2.prototype,"thumbnailObjectFit",void 0);
_.R([_.L({computed:"computeThumbnailWidth(data.style)"}),_.Y("design:type",Number)],N2.prototype,"thumbnailWidth",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],N2.prototype,"rounded",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],N2.prototype,"fixie",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],N2.prototype,"fullWidth",void 0);_.R([_.$z("#endpoint-link"),_.Y("design:type",HTMLAnchorElement)],N2.prototype,"endpointLink",void 0);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],N2.prototype,"onDataChanged",null);_.R([_.M("data.endpoint"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],N2.prototype,"endpointHref",null);_.R([_.VG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],N2.prototype,"onClick",null);
_.R([_.VG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],N2.prototype,"onYtNavigate",null);_.R([_.e({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],N2);
_.q(N2,"ytd-rich-metadata-renderer",function(){if(Fh_!==void 0)return Fh_;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Fh_=C},{mode:_.oN("kevlar_poly_si_batch_j075")?1:2});var GfS;var Og=function(){var C=_.B.apply(this,arguments)||this;C.fixie=!1;C.fullWidth=!1;return C};
_.O(Og,_.B);Og.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
Og.prototype.computeHasDividerLine=function(C){return C};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Og.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Og.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.Y("design:type",Boolean)],Og.prototype,"hasDividerLine",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Og.prototype,"fixie",void 0);_.R([_.L(),_.Y("design:type",Object)],Og.prototype,"fullWidth",void 0);
_.R([_.e({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],Og);
_.q(Og,"ytd-rich-metadata-row-renderer",function(){if(GfS!==void 0)return GfS;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return GfS=C},{mode:1});var XQ=function(){var C=_.B.apply(this,arguments)||this;C.engagementPanelContent=!1;C.fixie=!1;C.fullWidth=!1;return C};
_.O(XQ,_.B);
XQ.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"}}}};
XQ.prototype.computeCollapsibleItems=function(C,F,G){return C===void 0||F===void 0||G===void 0||G?[]:C.slice(F)};
XQ.prototype.computeAlwaysShownItems=function(C,F){return C&&C.length?C.slice(0,F):[]};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],XQ.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],XQ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],XQ.prototype,"data",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],XQ.prototype,"collapsed",void 0);
_.R([_.L({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.Y("design:type",Array)],XQ.prototype,"alwaysShownItems",void 0);_.R([_.L({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.Y("design:type",Array)],XQ.prototype,"collapsibleItems",void 0);_.R([_.L(),_.Y("design:type",Object)],XQ.prototype,"engagementPanelContent",void 0);_.R([_.L(),_.Y("design:type",Object)],XQ.prototype,"fixie",void 0);
_.R([_.L(),_.Y("design:type",Object)],XQ.prototype,"fullWidth",void 0);_.R([_.e({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],XQ);
_.q(XQ,"ytd-metadata-row-container-renderer",function(){if(DM9!==void 0)return DM9;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return DM9=C},{mode:1});var VQh;var wZ=function(){var C=_.B.apply(this,arguments)||this;C.currentPageUrl="";C.baseUrl="";C.isHiddenByUser=null;C.hidden=!1;C.showAboveScrim=!1;C.watchNextGrid=_.y("kevlar_watch_grid");C.modernButtons=_.y("web_modern_buttons");C.roundedContainer=!0;C.noBorder=!1;C.roundBackground=!_.y("live_chat_round_background_killswitch");C.overflowHideChat=_.y("live_chat_overflow_hide_chat");C.forceDarkTheme=!1;C.theaterWatchWhile=!1;C.isListeningForPlayerProgress=!1;C.JSC$22858_playerEvents=new Map;C.isFrameReady=
!1;C.player=null;C.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 C};
_.O(wZ,_.B);_.n=wZ.prototype;_.n.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.KX(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.n.created=function(){var C=this;this.handleIframeEventListener=function(F){C.handleIframeEvent(F)};
this.handleKeyboardEventListener=function(F){C.handleKeyboardEvent(F)};
this.JSC$22858_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22858_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22858_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22858_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22858_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.n.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()};
_.n.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};
_.n.computeBaseUrl=function(C){var F="/live_chat";this.isChatReplay()&&(F="/live_chat_replay");return _.VV(_.Ge(_.F4(_.mg(C),F),null),"").toString()};
_.n.dataChanged=function(){_.y("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.n.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var C=this.url;if(this.isChatReplay()&&this.player){var F=Math.floor(this.player.getProgressState().current*1E3);C=_.jE(_.mg(C),"playerOffsetMs",F.toString()).toString()}F=this.chatframe;try{var G=C==="about:blank"?_.Az$:_.Ph(C),V=F.contentDocument.location,J=_.Yl(G);J!==void 0&&V.replace(J)}catch(b){F.src=C}}};
_.n.collapsedChanged=function(){_.oo(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.n.handleIframeEvent=function(C){if(C&&this.baseUrl.startsWith(C.origin)&&C.source===this.chatframe.contentWindow&&_.TE(C.data))if(C.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(C);else if(C.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(C.data["yt-show-feedback-dialog"]){var F=_.I8().resolve(_.Qt(_.U_s));if(F){var G=C.ports,V;G&&G.length&&(V=function(){G[0].postMessage({})});
C=C.data["yt-show-feedback-dialog"];F.showFeedbackDialog(C.customProductData,C.feedbackContent,V,C.bucket)}}else if(C.data["yt-show-survey"])_.oo(this.hostElement,"yt-show-survey",C.data["yt-show-survey"]);else if(C.data["yt-purchase-membership"])_.I8().resolve(_.WD).resolveCommand(C.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(C.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(C.data["yt-tunnel-out-live-service-request"]);else if(C.data["yt-user-activity"])_.Q2();
else if(C.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(C.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(C.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(C.data["yt-open-popup"]);else if(C.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(C.data["yt-log-flow-logging-event-command"]);else if(C.data["yt-hide-live-chat"])this.onShowHideChat();else C.data["yt-report-moderation-state-log"]&&
this.player&&(F={cpn:this.player.getVideoData().cpn},_.q1("liveChatBeingModerated",F))};
_.n.attachLiveChatResponseVeTrackingParams=function(C){C=_.zS(C);var F=_.ZQ(),G=_.mN("liveChatRenderer.trackingParams",this.data);F&&G&&_.vA(F,_.zS(G),C)};
_.n.handleBuyflowMessages=function(C){var F=C.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,G=C.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,V=C.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.c1w(_.xZ(_.cr),F.replace(/-/g,"+").replace(/_/g,"/"),function(J){C.ports[0].postMessage({success:!0,buyFlowResponse:J})},void 0,function(J){C.ports[0].postMessage({success:!1,
error:J&&J.message||"Buyflow rejected without error."})},_.bQ().get("hl"),void 0,function(){C.ports[0].postMessage({closed:!0})},G,V)};
_.n.setupPlayerProgressRelay=function(){var C=this;if(!this.isListeningForPlayerProgress){var F=_.Re();F!=null&&F.getPlayerPromise&&(F.getPlayerPromise().then(function(G){C.playerApiReady(G)}),this.isListeningForPlayerProgress=!0)}};
_.n.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.n.playerApiReady=function(C){this.setPlayer(C)};
_.n.playerProgressHandler=function(){if(this.player){var C=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":C.current})}};
_.n.playerAdStartHandler=function(C){this.postToContentWindow({"yt-player-ad-start":C})};
_.n.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.n.playerStateChangeHandler=function(C){this.postToContentWindow({"yt-player-state-change":C})};
_.n.setPlayer=function(C){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22858_playerEvents);C&&(this.player=C,this.ytPlayerListenerBehavior.listenToPlayerEvents(C,this.JSC$22858_playerEvents),_.oo(this.hostElement,"player-api-ready"))};
_.n.liveChatPageUrl=function(C,F,G,V){return!G||F?"about:blank":G.liveChatRenderer?(F=_.mg(this.currentPageUrl).JSC$10031_queryData_,lN0(F),C=_.mg(C),F.add("continuation",G.liveChatRenderer.continuations[0].reloadContinuationData.continuation),G=_.Mz()==="USER_INTERFACE_THEME_DARK",(V||G)&&F.add("dark_theme","true"),_.Ge(C,F),V=_.mg(C.toString()),G=V.JSC$10031_queryData_,"SESSION_INDEX"in _.RD&&(G.add("authuser",_.TF("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.RD&&G.add("pageId",_.TF("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.RD&&G.add("sdc",_.TF("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),V.toString()):""};
_.n.isCollapsed=function(C,F){return F!==null?F:this.isChatReplay()||C&&C.conversationBarRenderer&&C.conversationBarRenderer.availabilityMessage?!0:C?C.liveChatRenderer?C.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.y("live_chat_hide_premiere_replay_message")||C.conversationBarRenderer&&C.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.n.isHidden=function(C,F,G){var V=F&&F.conversationBarRenderer&&F.conversationBarRenderer.availabilityMessage,J=F&&F.liveChatRenderer&&F.liveChatRenderer.showHideButton,b=F&&F.liveChatRenderer&&F.liveChatRenderer.showButton;return G&&C&&!V&&!b||!G&&C&&!V&&!J?!0:F&&F.liveChatRenderer&&F.liveChatRenderer.initialDisplayState?F.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.n.computeButtonOverride=function(C,F){if(C&&F)return{type:"outline"}};
_.n.setCollapsedState=function(C){_.Z(C,_.NfO)&&((this.isHiddenByUser=!!_.Z(C,_.NfO).collapsed)||_.rz(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.n.forwardReduxActionToIframe=function(C){this.postToContentWindow({"yt-live-chat-forward-redux-action":C})};
_.n.onLoopRangeChange=function(C){this.showAboveScrim=!(C==null||!C.postId)};
_.n.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.n.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.n.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.n.sendDarkThemePostMessage=function(C){this.postToContentWindow({"yt-live-chat-set-dark-theme":C})};
_.n.onLiveChatBuyFlowCallback=function(C){this.postToContentWindow({"yt-live-chat-buy-flow-callback":C})};
_.n.handleKeyboardEvent=function(C){(0,_.xf.containsValue)(yy0,C.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:C.type,keyCode:C.keyCode}})};
_.n.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.n.postToContentWindow=function(C){if(this.isFrameReady)try{var F=window.location.protocol+"//"+window.location.host,G;(G=this.chatframe)!=null&&G.contentWindow?this.chatframe.contentWindow.postMessage(C,F):_.Yw(new _.Ay("Tried posting a message to an iframe with no content window",C))}catch(V){_.gD(V)}};
_.n.shouldHideChatFrame=function(C){return C&&_.y("hide_live_chat_button_when_collapsed")};
_.I6.Object.defineProperties(wZ.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.y("live_chat_overflow_hide_chat")||_.y("web_watch_chat_hide_button_killswitch"))return _.y("live_chat_overflow_hide_chat");var C,F,G,V;return!!((C=this.data)==null?0:(F=C.liveChatRenderer)==null?0:(G=F.header)==null?0:(V=G.liveChatHeaderRenderer)==null?0:V.collapseButton)}}});
wZ.prototype.collapsedChanged=wZ.prototype.collapsedChanged;wZ.prototype.urlChanged=wZ.prototype.urlChanged;wZ.prototype.dataChanged=wZ.prototype.dataChanged;wZ.prototype.onShowHideChat=wZ.prototype.onShowHideChat;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],wZ.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],wZ.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],wZ.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.Fi.YtPlayerListenerBehavior),_.Y("design:type",_.GR)],wZ.prototype,"ytPlayerListenerBehavior",void 0);_.R([_.w(_.lc.YtOpenPopupBehavior),_.Y("design:type",Object)],wZ.prototype,"ytOpenPopupBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],wZ.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],wZ.prototype,"currentPageUrl",void 0);
_.R([_.L({computed:"computeBaseUrl(currentPageUrl,data)"}),_.Y("design:type",Object)],wZ.prototype,"baseUrl",void 0);_.R([_.L({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.Y("design:type",String)],wZ.prototype,"url",void 0);_.R([_.L(),_.Y("design:type",Object)],wZ.prototype,"isHiddenByUser",void 0);_.R([_.L({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.Y("design:type",Object)],wZ.prototype,"hidden",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.Y("design:type",Boolean)],wZ.prototype,"collapsed",void 0);_.R([_.L({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.Y("design:type",Boolean)],wZ.prototype,"hideChatFrame",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],wZ.prototype,"showAboveScrim",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],wZ.prototype,"watchNextGrid",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],wZ.prototype,"modernButtons",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],wZ.prototype,"roundedContainer",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],wZ.prototype,"noBorder",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],wZ.prototype,"roundBackground",void 0);
_.R([_.L({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.Y("design:type",Object)],wZ.prototype,"toggleButtonOverride",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],wZ.prototype,"overflowHideChat",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],wZ.prototype,"forceDarkTheme",void 0);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],wZ.prototype,"enableShowWithoutHideChatButton",null);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],wZ.prototype,"theaterWatchWhile",void 0);_.R([_.$z("#chatframe"),_.Y("design:type",HTMLIFrameElement)],wZ.prototype,"chatframe",void 0);_.R([_.VG("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wZ.prototype,"onShowHideChat",null);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wZ.prototype,"dataChanged",null);
_.R([_.iP("url"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wZ.prototype,"urlChanged",null);_.R([_.iP("collapsed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wZ.prototype,"collapsedChanged",null);_.R([_.e({is:"ytd-live-chat-frame",disableElementRegistration:!0})],wZ);
_.q(wZ,"ytd-live-chat-frame",function(){if(VQh!==void 0)return VQh;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return VQh=C},{mode:1});var i1z;var M2=function(){var C=_.B.apply(this,arguments)||this;C.modern=_.y("web_modern_buttons");C.buttonOverrides={style:"call-to-action",type:"filled"};return C};
_.O(M2,_.B);M2.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=_.Hr(this.data.backgroundColor)))};
M2.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var C=this.getFormattedStringLoggingDirectives(this.data.headline);C&&this.rendererBehavior.logExplicitClick(C)}};
M2.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var C=this.getFormattedStringLoggingDirectives(this.data.description);C&&this.rendererBehavior.logExplicitClick(C)}};
M2.prototype.getFormattedStringLoggingDirectives=function(C){return C&&C.runs&&C.runs.length>0&&C.runs[0]&&C.runs[0].loggingDirectives?C.runs[0].loggingDirectives:null};
M2.prototype.dataChanged=M2.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],M2.prototype,"rendererBehavior",void 0);_.R([_.w(BTT.YtMacroReplacementBehavior),_.Y("design:type",Object)],M2.prototype,"macroReplacementBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],M2.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],M2.prototype,"navigationEndpoint",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],M2.prototype,"enableColors",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],M2.prototype,"modern",void 0);_.R([_.L(),_.Y("design:type",Object)],M2.prototype,"buttonOverrides",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],M2.prototype,"dataChanged",null);_.R([_.e({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],M2);
_.q(M2,"ytd-action-basic-immersive-content-renderer",function(){if(i1z!==void 0)return i1z;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return i1z=C},{mode:1});var J5B;var $1n;var SJ=function(){return _.B.apply(this,arguments)||this};
_.O(SJ,_.B);SJ.prototype.dataChanged=function(){var C;((C=this.data)==null?void 0:C.backgroundColor)!==void 0&&_.jr(this.hostElement,{"--bgu-color":_.Hr(this.data.backgroundColor)})};
SJ.prototype.onImageTileClick=function(){var C;((C=this.data)==null?0:C.navigationEndpoint)&&_.oo(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var F;((F=this.data)==null?0:F.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.I6.Object.defineProperties(SJ.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var C;if(((C=this.data)==null?void 0:C.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 C;return((C=this.data)==null?void 0:C.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var C,F,G;if(((C=this.data)==null?void 0:(F=C.detailsLine)==null?void 0:F.texts)!=null&&((G=this.data)==null?void 0:G.detailsLine.texts.length)>0){var V;return(V=this.data)==null?void 0:V.detailsLine.texts.map(function(J){return J.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var C,F,G;if(((C=this.data)==null?void 0:(F=C.optionalDetailsLine)==null?void 0:F.texts)!=null&&((G=this.data)==null?void 0:G.optionalDetailsLine.texts.length)>0){var V;return(V=this.data)==null?void 0:V.optionalDetailsLine.texts.map(function(J){return J.text}).join("")}return null}}});
SJ.prototype.dataChanged=SJ.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],SJ.prototype,"rendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],SJ.prototype,"componentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],SJ.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.M("data.backgroundColor"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],SJ.prototype,"hasBackgroundColor",null);
_.R([_.M("data.objectFit"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],SJ.prototype,"getObjectFit",null);_.R([_.L({reflectToAttribute:!0}),_.M("data.tileRenderingStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],SJ.prototype,"hasTileMetadata",null);_.R([_.M("data.detailsLine"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],SJ.prototype,"getSecondaryDetails",null);
_.R([_.M("data.optionalDetailsLine"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],SJ.prototype,"getOptionalDetails",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],SJ.prototype,"dataChanged",null);_.R([_.e({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],SJ);
_.q(SJ,"ytd-image-tile-renderer",function(){if($1n!==void 0)return $1n;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return $1n=C},{mode:1});var b1B;var Lh=function(){return _.B.apply(this,arguments)||this};
_.O(Lh,_.B);Lh.prototype.getOpenLinkIcon=function(){return _.y("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
Lh.prototype.onSitelinkTap=function(){_.oo(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.y("kevlar_command_handler_migration_killswitch"))_.pX(this.hostElement,this.data.clickCommands,this.hostElement);else for(var C=_.u(this.data.clickCommands),F=C.next();!F.done;F=C.next())this.ytComponentBehavior.resolveCommand(F.value)};
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Lh.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Lh.prototype,"rendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Lh.prototype,"data",void 0);_.R([_.e({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],Lh);
_.q(Lh,"ytd-sitelink-renderer",function(){if(b1B!==void 0)return b1B;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return b1B=C},{mode:1});var BC=function(){var C=_.B.apply(this,arguments)||this;C.paddingFix=_.y("enable_ads_web_ep_buenos_aires_and_padding_fix");return C};
_.O(BC,_.B);BC.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"}}}};
BC.prototype.dataChanged=function(){var C=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(F){F.clickTrackingParams&&delete F.clickTrackingParams;C.ytMacroReplacementBehavior.sendServiceRequestAction([F])})};
BC.prototype.shouldHideFooter=function(C){return!(C&&_.y("use_ads_engagement_panel_desktop_footer_cta"))};
_.I6.Object.defineProperties(BC.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var C,F;return((C=this.data)==null?void 0:C.imageTileRenderers)===void 0||((F=this.data)==null?void 0:F.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(G){var V;return(V=_.Z(G,XQ0))==null?void 0:V.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var C,F;return((C=this.data)==null?void 0:C.imageTileRenderers)===void 0||((F=this.data)==null?void 0:F.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(G){var V;return((V=_.Z(G,XQ0))==null?void 0:V.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
BC.prototype.dataChanged=BC.prototype.dataChanged;_.R([_.w(BTT.YtMacroReplacementBehavior),_.Y("design:type",Object)],BC.prototype,"ytMacroReplacementBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],BC.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],BC.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],BC.prototype,"data",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],BC.prototype,"paddingFix",void 0);_.R([_.L({reflectToAttribute:!0}),_.M("data.imageTileRenderers"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],BC.prototype,"removeBorderFromImageTiles",null);_.R([_.L({reflectToAttribute:!0}),_.M("data.imageTileRenderers"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],BC.prototype,"useFooteredMetadataRenderingStyle",null);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BC.prototype,"dataChanged",null);_.R([_.e({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],BC);
_.q(BC,"ytd-action-engagement-panel-content-renderer",function(){if(J5B!==void 0)return J5B;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return J5B=C},{mode:1});var nw9;var uP9=_.d(function(C){var F=C.data;var G=C.customCommandResolver;return _.W("ad-grid-card-image-full-metadata-view-model",{class:function(){var V;return((V=F().interaction)==null?0:V.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.dQ(_.Wv({visibilityCallback:function(V){var J,b=(J=F().interaction)==null?void 0:J.onFirstVisible;V&&b&&_.wQ(b)},
showOption:_.Qm}),_.OI(function(){return F().interaction},G)),
"aria-label":function(){var V,J;return(V=F().interaction)==null?void 0:(J=V.accessibility)==null?void 0:J.label}},_.W("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.W(_.uC,{data:function(){return F().adImage}},{adImageViewModel:function(V){return _.W(_.f$,{data:V.data,
customCommandResolver:G})}})),_.W("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.W(_.a,{cond:function(){return F().headline},
then:function(V){return _.W(_.mn,{text:V,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.W(_.a,{cond:function(){return F().detailsLine},
then:function(V){return _.W("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.W(_.uC,{data:V},{adDetailsLineViewModel:function(J){return _.W(_.l7,{data:J.data,customCommandResolver:G,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.W(_.a,{cond:function(){return F().secondaryDetailsLine},
then:function(V){return _.W("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.W(_.uC,{data:V},{adDetailsLineViewModel:function(J){return _.W(_.l7,{data:J.data,customCommandResolver:G,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"en");var zKB=_.d(function(C){var F=C.data;var G=C.customCommandResolver;return _.W("ad-grid-card-image-view-model",{class:function(){var V;return((V=F().interaction)==null?0:V.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.dQ(_.Wv({visibilityCallback:function(V){var J,b=(J=F().interaction)==null?void 0:J.onFirstVisible;V&&b&&_.wQ(b)},
showOption:_.Qm}),_.OI(function(){return F().interaction},G)),
"aria-label":function(){var V,J;return(V=F().interaction)==null?void 0:(J=V.accessibility)==null?void 0:J.label}},_.W(_.uC,{data:function(){return F().adImage}},{adImageViewModel:function(V){return _.W(_.f$,{data:V.data,
customCommandResolver:G})}}),_.W("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.W(_.uC,{data:function(){return F().adCardBadge}},{adCardBadgeViewModel:_.S_u})))},"fn");var Q1L=_.d(function(C){var F=C.data;var G=C.customCommandResolver;return _.W("ad-grid-card-text-view-model",{class:function(){var V;return((V=F().interaction)==null?0:V.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.dQ(_.Wv({visibilityCallback:function(V){var J,b=(J=F().interaction)==null?void 0:J.onFirstVisible;V&&b&&_.wQ(b)},
showOption:_.Qm}),_.OI(function(){return F().interaction},G)),
"aria-label":function(){var V,J;return(V=F().interaction)==null?void 0:(J=V.accessibility)==null?void 0:J.label}},_.W("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.W(_.a,{cond:function(){return F().title},
then:function(V){return _.W(_.mn,{text:V,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.W("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.W(_.Ag,{each:function(){var V;
return((V=F())==null?void 0:V.descriptions)||[]},
keyBy:"INDEX"},function(V){return _.W(_.mn,{text:V,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.W("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.W(_.uC,{data:function(){return F().moreInfoButton}},{adButtonViewModel:function(V){return _.W(_.EG,{data:V.data,
customCommandResolver:G})}})))},"gn");var IUL=_.d(function(C){var F=C.data;var G=C.customCommandResolver;var V=C.adGridCardCollectionStyle;return _.W("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.dQ(_.Wv({visibilityCallback:function(J){var b,z=(b=F().interaction)==null?void 0:b.onFirstVisible;J&&z&&_.wQ(z)},
showOption:_.Qm})),style:function(){return"grid-template-columns: repeat("+vKB(V?V():F().style)+", minmax(0, 1fr));"}},_.W(_.uC,{data:function(){var J;
return(J=F())==null?void 0:J.gridCards}},{adGridCardImageViewModel:function(J){return _.W(zKB,{data:J.data,
customCommandResolver:G})},
adGridCardImageFullMetadataViewModel:function(J){return _.W(uP9,{data:J.data,customCommandResolver:G})},
adGridCardTextViewModel:function(J){return _.W(Q1L,{data:J.data,customCommandResolver:G})}}))},"hn");_.gQ(_.d(function(C){var F=C.data;return _.W("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.dQ(_.Wv({visibilityCallback:function(G){var V,J=(V=F().interaction)==null?void 0:V.onFirstVisible;G&&J&&_.wQ(J)},
showOption:_.Qm}),_.OI(function(){return F().interaction},hlz))},_.W("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.W(_.a,{cond:_.ICS("(min-width: "+((0,_.MF)()+_.eF)+"px)"),
then:function(){return _.W(_.uC,{data:function(){return F().adGridCardCollection}},{adGridCardCollectionViewModel:function(G){return _.W(IUL,{data:G.data,
customCommandResolver:hlz})}})},
else:function(){return _.W(_.uC,{data:function(){return F().adGridCardCollection}},{adGridCardCollectionViewModel:function(G){return _.W(IUL,{data:G.data,
customCommandResolver:hlz,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.W("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.W(_.uC,{data:function(){return F().adButton}},{adButtonViewModel:function(G){return _.W(_.EG,{data:G.data,
customCommandResolver:hlz})}})))},"jn"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.CJ}});_.gQ(_.d(function(C){var F=C.data;return _.W("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.dQ(_.Wv({visibilityCallback:function(G){var V,J=(V=F().interaction)==null?void 0:V.onFirstVisible;G&&J&&_.wQ(J)},
showOption:_.Qm}),_.OI(function(){return F().interaction},c2S))},_.W("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.W(_.uC,{data:function(){if(_.ICS("(min-width: "+((0,_.MF)()+_.eF)+"px)")())var G=F().adGridCardCollection;
else{G=Object.assign({},_.Z(F().adGridCardCollection,M_L));var V;G.gridCards!==void 0&&((V=G.gridCards)==null?void 0:V.length)>1?G.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":G.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";G={adGridCardCollectionViewModel:G}}return G}},{adGridCardCollectionViewModel:function(G){return _.W(IUL,{data:G.data,
customCommandResolver:c2S})}})),_.W("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.W(_.uC,{data:function(){return F().adButton}},{adButtonViewModel:function(G){return _.W(_.EG,{data:G.data,
customCommandResolver:c2S})}})))},"kn"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.CJ}});var vC=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return C};
_.O(vC,_.B);_.n=vC.prototype;_.n.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"}}}};
_.n.attached=function(){this.getDataFromPlayerAndRender()};
_.n.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.n.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.n.getDataFromPlayerAndRender=function(){var C=this,F=_.gE(this.hostElement);F&&F.getPlayerPromise().then(function(G){C.getCachedDataAndListen(G)})};
_.n.getCachedDataAndListen=function(C){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(C,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(C,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=C)};
_.n.resolveCachedActions=function(){var C=_.mN("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(C=C&&C())&&!_.xf.isEmpty(C)&&this.sendUpdateEngagementPanelAction(C);(C=(C=_.mN("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&C())&&!_.xf.isEmpty(C)&&this.sendChangeEngagementPanelVisibilityAction(C);(C=(C=_.mN("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&C())&&!_.xf.isEmpty(C)&&this.sendScrollToEngagementPanelCommand(C)};
_.n.sendUpdateEngagementPanelAction=function(C){var F;_.rz(this.hostElement,"yt-update-engagement-panel-action",[(F=_.xf.get(C,"action"))!=null?F:C])};
_.n.sendChangeEngagementPanelVisibilityAction=function(C){_.rz(this.hostElement,"yt-change-engagement-panel-visibility-action",[C])};
_.n.sendScrollToEngagementPanelCommand=function(C){_.rz(this.hostElement,"yt-scroll-to-engagement-panel-command",[C])};
_.n.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.y("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.Yw(Error("Xo"))};
vC.prototype.dataChanged=vC.prototype.dataChanged;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],vC.prototype,"actionHandlerBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],vC.prototype,"componentBehavior",void 0);_.R([_.w(_.Fi.YtPlayerListenerBehavior),_.Y("design:type",_.GR)],vC.prototype,"ytPlayerListenerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],vC.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],vC.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],vC.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],vC.prototype,"player",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vC.prototype,"dataChanged",null);_.R([_.e({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],vC);
_.q(vC,"ytd-ads-engagement-panel-content-renderer",function(){if(nw9!==void 0)return nw9;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);
return nw9=C},{mode:1});var EwB;var fh=function(){var C=_.B.apply(this,arguments)||this;C.player=null;C.JSC$22895_playerEvents=new Map;C.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return C};
_.O(fh,_.B);_.n=fh.prototype;_.n.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]]"}}}}}};
_.n.created=function(){this.player=null;this.JSC$22895_playerEvents=new Map;this.JSC$22895_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$22895_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22895_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22895_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.n.attached=function(){var C=this,F=_.gE();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));F&&F.getPlayerPromise().then(function(G){C.setPlayer(G);C.set("isPageLoad",!1)})};
_.n.setPlayer=function(C){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22895_playerEvents);this.set("player",C);C&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(C,this.JSC$22895_playerEvents),C.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.n.onLoopRangeChange=function(C){var F=_.I8().resolve(_.Qt(_.qG));if((!F||F.isOnWatch())&&this.hostElement.clientHeight){var G;!C&&((G=this.data)==null?0:G.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.n.onVideoProgress=function(C){var F,G,V=((F=this.player)==null?void 0:(G=F.getPresentingPlayerType)==null?void 0:G.call(F))===2;this.isAdPlaying!==V&&this.set("isAdPlaying",V);var J;if(!V&&(J=this.player)!=null&&J.getLoopRange()){G=this.player.getLoopRange();F=G.startTimeMs;G=G.endTimeMs;V=this.player.getProgressState(1).seekableStart;var b;F<V*1E3&&((b=this.data)==null?0:b.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
C=G<C*1E3;var z;((z=this.player)==null?0:z.getLoopRange())&&C&&this.player.seekTo(F/1E3)}};
_.n.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.n.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.n.onYtDeleteClipEngagementPanelCommand=function(C){_.Z(C,gnh).command&&this.ytComponentBehavior.resolveCommand(_.Z(C,gnh).command)};
_.I6.Object.defineProperties(fh.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.voteCount)||_.eN("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)==null?void 0:C.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],fh.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],fh.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],fh.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],fh.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.Fi.YtPlayerListenerBehavior),_.Y("design:type",_.GR)],fh.prototype,"ytPlayerListenerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],fh.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],fh.prototype,"isAdPlaying",void 0);_.R([_.L({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],fh.prototype,"isPageLoad",void 0);_.R([_.L({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],fh.prototype,"isDarkTheme",void 0);
_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],fh.prototype,"voteCount",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],fh.prototype,"channelEndpoint",null);_.R([_.M("channelEndpoint"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],fh.prototype,"channelHref",null);_.R([_.e({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],fh);
_.q(fh,"ytd-clip-attribution-renderer",function(){if(EwB!==void 0)return EwB;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return EwB=C},{mode:1});var Whh;var hH=function(){var C=_.B.apply(this,arguments)||this;C.player=null;C.JSC$22900_playerEvents=new Map;return C};
_.O(hH,_.B);_.n=hH.prototype;_.n.created=function(){this.player=null;this.JSC$22900_playerEvents=new Map;this.JSC$22900_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22900_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22900_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.n.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.n.attached=function(){var C=this,F=_.gE();F&&F.getPlayerPromise().then(function(G){C.setPlayer(G);C.set("isPageLoad",!1)})};
_.n.setPlayer=function(C){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22900_playerEvents);this.set("player",C);if(C){this.ytPlayerListenerBehavior.listenToPlayerEvents(C,this.JSC$22900_playerEvents);var F;(C==null?void 0:(F=C.getPresentingPlayerType)==null?void 0:F.call(C))===2&&this.playerAdStartHandler()}};
_.n.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.n.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.n.onVideoProgress=function(){var C,F,G=((C=this.player)==null?void 0:(F=C.getPresentingPlayerType)==null?void 0:F.call(C))===2;this.isAdPlaying!==G&&this.set("isAdPlaying",G)};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],hH.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],hH.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Fi.YtPlayerListenerBehavior),_.Y("design:type",_.GR)],hH.prototype,"ytPlayerListenerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],hH.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],hH.prototype,"isAdPlaying",void 0);
_.R([_.L({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],hH.prototype,"isPageLoad",void 0);_.R([_.e({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],hH);
_.q(hH,"ytd-clip-section-footer-renderer",function(){if(Whh!==void 0)return Whh;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Whh=C},{mode:1});var tQz;var aU_;var kfL=function(){return _.B.apply(this,arguments)||this};
_.O(kfL,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],kfL.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],kfL.prototype,"data",void 0);_.R([_.e({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],kfL);
_.q(kfL,"ytd-clip-ad-state-renderer",function(){if(aU_!==void 0)return aU_;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return aU_=C},{mode:1});var U1_;var cC=function(){var C=_.B.apply(this,arguments)||this;C.value="";C.valid=!1;C.userChangedValue=!1;C.disabled=!1;C.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return C};
_.O(cC,_.B);_.n=cC.prototype;_.n.detached=function(){this.userChangedValue=!1};
_.n.handleKeyDown=function(C){if(_.KV)var F=13;else _.e5l&&_.Do?F=13:F=13;C.keyCode===F&&C.preventDefault()};
_.n.handleInput=function(){var C=_.ot(this.hostElement).querySelector("#title");if(C){var F=(C.value||"").replace(/\r|\n/g," ");this.set("value",F);C.value=F;this.valid=C.validate();this.userChangedValue=!0}};
_.n.handleBlur=function(){this.valid=_.ot(this.hostElement).querySelector("#title").validate()};
_.n.onValueChanged=function(){_.oo(this.hostElement,"title-changed",{title:this.value})};
_.n.onValidChanged=function(){_.oo(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.n.setInput=function(C,F){var G=_.ot(this.hostElement).querySelector("#title");G&&(G.value=C,this.handleInput(),F&&(G.invalid=!1,this.valid=!0))};
_.n.onClipCreationDisable=function(){this.set("disabled",!0)};
_.n.onClipCreationEnable=function(){this.set("disabled",!1)};
_.n.onClipCreationVisibilityChange=function(C){var F=this;C.visible?requestAnimationFrame(function(){var G;((G=_.ot(F.hostElement).querySelector("#title"))==null?void 0:G.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
cC.prototype.onValidChanged=cC.prototype.onValidChanged;cC.prototype.onValueChanged=cC.prototype.onValueChanged;cC.prototype.handleBlur=cC.prototype.handleBlur;cC.prototype.handleInput=cC.prototype.handleInput;cC.prototype.handleKeyDown=cC.prototype.handleKeyDown;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],cC.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],cC.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],cC.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],cC.prototype,"value",void 0);_.R([_.L(),_.Y("design:type",Object)],cC.prototype,"valid",void 0);_.R([_.L(),_.Y("design:type",Object)],cC.prototype,"userChangedValue",void 0);_.R([_.L(),_.Y("design:type",Object)],cC.prototype,"disabled",void 0);_.R([_.VG("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],cC.prototype,"handleKeyDown",null);
_.R([_.VG("input"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cC.prototype,"handleInput",null);_.R([_.VG("blur"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cC.prototype,"handleBlur",null);_.R([_.iP("value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cC.prototype,"onValueChanged",null);
_.R([_.iP("valid"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cC.prototype,"onValidChanged",null);_.R([_.e({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],cC);
_.q(cC,"ytd-clip-creation-text-input-renderer",function(){if(U1_!==void 0)return U1_;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return U1_=C},{mode:1});var H1n;var lU9;var y5T;var Z1F;var NDY;var AH=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};C.pendingStoryboardImages_={};C.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];C.tickLabelInterval=30;C.mediumTickInterval=5;C.largeTickInterval=15;C.aboveRulerHeight=32;C.rulerHeight=50;C.smallTickHeight=4;C.mediumTickHeight=8;C.largeTickHeight=16;C.mediaListeners_=
{};return C};
_.O(AH,_.B);_.n=AH.prototype;_.n.attached=function(){var C=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(F){F=_.u(["screen and (min-resolution: "+F+")","screen and (max-resolution: "+F+")"]);for(var G=F.next();!G.done;G=F.next()){G=G.value;var V=window.matchMedia(G);V&&(C.mediaListeners_[G]=C.updatePixelRatio_.bind(C),V.addEventListener?V.addEventListener("change",C.mediaListeners_[G]):V.addListener?V.addListener(C.mediaListeners_[G]):delete C.mediaListeners_[G])}})};
_.n.detached=function(){this.setPlayer(null);for(var C=_.u(Object.keys(this.mediaListeners_)),F=C.next();!F.done;F=C.next()){var G=F.value;F=this.mediaListeners_[G];(G=window.matchMedia(G))&&(G.removeEventListener?G.removeEventListener("change",F):G.removeListener&&G.removeListener(F))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.n.onVisibilityChangedAction_=function(C){var F=this;C.visible&&!this.player_&&(C=_.gE())&&C.getPlayerPromise().then(function(G){F.setPlayer(G)})};
_.n.setPlayer=function(C){C&&this.set("player_",C)};
_.n.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.n.setUpCanvas_=function(){var C=this.rulerWidth,F=this.devicePixelRatio_,G=this.visible;this.set("canvasReady_",!1);if(G&&F!==0){G=this.aboveRulerHeight+this.rulerHeight;var V=_.ot(this.hostElement).querySelector("#ticks");V.width=C*F;V.height=G*F;V.style.width=C+"px";V.style.height=G+"px";V.getContext("2d").scale(F,F);this.set("canvasReady_",!0)}};
_.n.drawRuler_=function(C,F,G,V,J,b,z,Q,E,t,k,U){C&&G&&F&&(C=_.ot(this.hostElement).querySelector("#ticks"),F=C.getContext("2d"),F.clearRect(0,0,C.width,C.height),F.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),F.lineWidth=2,F.beginPath(),F.moveTo(0,this.aboveRulerHeight),F.lineTo(C.width,this.aboveRulerHeight),F.moveTo(0,C.height),F.lineTo(C.width,C.height),F.stroke(),this.drawRulerTicks_(C,b,J,V),this.drawStoryboardImages_(C,G,b,J,V),F.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
F.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(z-b,V,!1),this.rulerHeight),G=this.timeToPixels_(Q-b,V,!1),F.fillRect(G,this.aboveRulerHeight,C.width-G,this.rulerHeight),this.drawSpeedLines_(C,b,U))};
_.n.drawRulerTicks_=function(C,F,G,V){var J=C.getContext("2d");J.save();J.lineWidth=1;for(var b=Math.floor(Math.max(0,F-this.tickLabelInterval));b<F+G;b++){J.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var z=(b-F)*V;J.beginPath();J.moveTo(z,C.height);var Q=this.smallTickHeight;b%this.largeTickInterval===0?Q=this.largeTickHeight:b%this.mediumTickInterval===0&&(Q=this.mediumTickHeight);J.lineTo(z,C.height-Q);J.stroke();b%this.tickLabelInterval===0&&(J.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),J.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),J.fillText(vH(b),z+4,12),J.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),J.moveTo(z,0),J.lineTo(z,this.aboveRulerHeight),J.stroke())}J.restore()};
_.n.percentToHex_=function(C){C=Math.round(C*255).toString(16);C.length<2&&(C="0"+C);return C};
_.n.drawSpeedLines_=function(C,F,G){var V=C.getContext("2d");V.save();var J=Math.min(25,Math.abs(G)-15)/25,b=C.width*.3*J,z=C.width*-.3,Q=C.width*1.3,E=this.aboveRulerHeight;C=C.height;var t=Math.round(4*J),k=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");k.length<7&&(k="#"+k.substring(1,4).repeat(2));var U=this.percentToHex_(.5+J/2);U=k+U;k+="00";if(J>0)for(J=0;J<t;J++){var H=z+Math.random()*(Q-z),l=E+Math.random()*(C-E),N=b+F%b,S=V.createLinearGradient(H,l,H+N,l);
G<0?(S.addColorStop(0,U),S.addColorStop(.4,U),S.addColorStop(.9,k)):(S.addColorStop(.1,k),S.addColorStop(.6,U),S.addColorStop(1,U));V.strokeStyle=S;V.lineWidth=1;V.beginPath();V.moveTo(H,l);V.lineTo(H+N,l);V.stroke()}V.restore()};
_.n.getStoryboardForTime_=function(C,F,G){G===void 0&&(G=F.getNumberOfStoryboardLevels()-1);C=F.getStoryboardFrameIndex(C,G);return F.getStoryboardFrame(C,G)};
_.n.drawStoryboardImages_=function(C,F,G,V,J){if(!this.disabled){C=C.getContext("2d");var b=this.getStoryboardForTime_(0,F);if(b){var z=b.width/b.columns;b=b.height/b.rows;var Q=z/b,E=this.rulerHeight*Q;E=this.tickLabelInterval*(Q<this.tickLabelInterval*J/this.rulerHeight?1/Math.floor(this.tickLabelInterval*J/E):Math.round(E/(this.tickLabelInterval*J)));var t=E*J,k=this.rulerHeight,U=t/this.rulerHeight,H=Math.floor(Math.max(0,G-E));for(H-=H%E;H<G+V;H+=E){var l=this.getStoryboardForTime_(H,F),N=this.getPreloadedStoryboard_(l.url);
if(N){var S=(H-G)*J,f=this.aboveRulerHeight,c=l.column*z,A=l.row*b;if(Q<U){var T=k/(t/Q);l=z;T*=b;A+=(b-T)/2}else l=t/(k*Q)*z,T=b,c+=(z-l)/2;C.drawImage(N,c,A,l,T,S,f,t,k)}else this.fetchStoryboardImage_(l)}}}};
_.n.getPreloadedStoryboard_=function(C){return this.storyboardImages_.find(function(F){if(F.src==C)return!0;var G=F.src.indexOf(C);return G!=-1&&G==F.src.length-C.length})};
_.n.fetchStoryboardImage_=function(C){var F=this,G=this.getPreloadedStoryboard_(C.url),V=this.pendingStoryboardImages_[C.url];G||V!==void 0||(G=new Promise(function(J){var b=new Image(C.width,C.height);b.src=C.url;b.onload=function(){J(b)};
b.onerror=function(){J(null)}}),this.pendingStoryboardImages_[C.url]=G,G.then(function(J){J&&F.push("storyboardImages_",J);
return J}).finally(function(){delete F.pendingStoryboardImages_[C.url]}))};
_.n.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.n.timeToPixels_=function(C,F,G){C*=F;return G===void 0||G?C+"px":C};
_.n.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
AH.prototype.drawRuler_=AH.prototype.drawRuler_;AH.prototype.setUpCanvas_=AH.prototype.setUpCanvas_;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],AH.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],AH.prototype,"ytRendererBehavior",void 0);_.R([_.L({value:0}),_.Y("design:type",Number)],AH.prototype,"start",void 0);_.R([_.L({value:30}),_.Y("design:type",Number)],AH.prototype,"end",void 0);
_.R([_.L({value:!1}),_.Y("design:type",Boolean)],AH.prototype,"visible",void 0);_.R([_.L(),_.Y("design:type",Object)],AH.prototype,"player_",void 0);_.R([_.L(),_.Y("design:type",Number)],AH.prototype,"tickSpacing",void 0);_.R([_.L(),_.Y("design:type",Number)],AH.prototype,"windowSizeSec",void 0);_.R([_.L({value:0}),_.Y("design:type",Number)],AH.prototype,"rulerWidth",void 0);_.R([_.L({value:0}),_.Y("design:type",Number)],AH.prototype,"rulerShift",void 0);
_.R([_.L({value:!1}),_.Y("design:type",Boolean)],AH.prototype,"canvasReady_",void 0);_.R([_.L({value:function(){return[]}}),
_.Y("design:type",Array)],AH.prototype,"storyboardImages_",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],AH.prototype,"disabled",void 0);_.R([_.L({value:0}),_.Y("design:type",Number)],AH.prototype,"forceRender_",void 0);_.R([_.L({value:1}),_.Y("design:type",Number)],AH.prototype,"devicePixelRatio_",void 0);_.R([_.L({value:0}),_.Y("design:type",Number)],AH.prototype,"windowSpeed",void 0);
_.R([_.iP("visible","devicePixelRatio_","rulerWidth"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AH.prototype,"setUpCanvas_",null);
_.R([_.iP("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.Y("design:returntype")],AH.prototype,"drawRuler_",null);_.R([_.Z5({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],AH);
_.q(AH,"yt-clip-creation-scrubber-canvas",function(){if(NDY===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);NDY=C}C=NDY;return C},
{mode:2});var O1z;var X8l;var eJ=function(){var C=_.B.apply(this,arguments)||this;C.start=0;C.end=30;C.visible=!1;C.draggingLeft_=!1;C.draggingRight_=!1;C.draggingRuler_=!1;C.draggingWindow_=!1;C.seekableStart=0;C.seekableEnd=0;C.rulerWidth_=0;C.rulerShift_=0;C.windowSlideSpeed=0;C.disabled=!1;C.initialized=!1;C.durationAccessibilityLabel="";C.activeLoopRange_=!1;C.rulerDragMouseStart_=0;C.rulerDragRulerStart_=0;C.rulerDragStartTime_=0;C.rulerDragEndTime_=0;C.dragMouseLastX_=0;C.scrollInterval_=null;C.scrubberVe_=null;C.boundHandlers_=
{};C.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return C};
_.O(eJ,_.B);_.n=eJ.prototype;
_.n.created=function(){var C=this;this.JSC$22913_playerEvents=new Map;this.JSC$22913_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$22913_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$22913_playerEvents.set("onStateChange",this.onStateChange_);var F={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(F).forEach(function(G){C.boundHandlers_[G]=F[G].bind(C)})};
_.n.attached=function(){this.activeLoopRange_=!1;_.ot(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.ot(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.m2(156731)};
_.n.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.ot(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.ot(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.n.onVisibilityChangedAction_=function(C){var F=this;C.visible&&!this.player_&&(C=_.gE())&&C.getPlayerPromise().then(function(G){F.setPlayer(G)})};
_.n.setPlayer=function(C){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22913_playerEvents);C&&(this.set("player_",C),this.ytPlayerListenerBehavior.listenToPlayerEvents(C,this.JSC$22913_playerEvents))};
_.n.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.n.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.n.beginHandleDrag_=function(C){this.disabled||(C.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=C.clientX,C.target===_.ot(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():C.target===_.ot(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.n.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.n.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.n.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.n.beginRulerDrag_=function(C){this.disabled||(C.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=C.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.n.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.n.beginWindowScroll_=function(){var C=this;this.scrollInterval_=setInterval(function(){var F=C.windowSlideSpeed;if(F=_.TSL(C.start,C.boundedRulerStartLimit_())?F-.1:_.TSL(C.end,C.boundedRulerEndLimit_())?F+.1:0){var G=C.capRulerOffset_(C.rulerShift_+F);G==C.rulerShift_?F=0:(C.set("rulerShift_",G),_.oo(C.hostElement,"set-fixed-length-range",{start:C.start+F,duration:C.end-C.start}))}C.set("windowSlideSpeed",F)},33)};
_.n.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.n.endDrag_=function(){this.logClick();var C=void 0;this.draggingRight_?C=this.end-1:this.draggingLeft_&&(C=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,C);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))};
_.n.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.n.updateRulerSize_=function(){this.set("rulerWidth_",_.ot(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.n.handleMouseDrag_=function(C){C.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(C):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(C):this.draggingWindow_&&this.handleWindowDrag_(C))};
_.n.handleRulerDrag_=function(C){C=this.pixelsToTime_(C.clientX-this.rulerDragMouseStart_);C=this.capRulerOffset_(this.rulerDragRulerStart_-C);this.set("rulerShift_",C);var F=this.rulerDragStartTime_-(this.rulerDragRulerStart_-C);_.oo(this.hostElement,"set-fixed-length-range",{start:F,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-C)-F})};
_.n.handleWindowDrag_=function(C){var F=C.clientX-this.dragMouseLastX_;this.dragMouseLastX_=C.clientX;C=this.pixelsToTime_(F);_.oo(this.hostElement,"set-fixed-length-range",{start:this.start+C,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.n.capRulerOffset_=function(C){var F=this.seekableStart-this.pixelsToTime_(16),G=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(F,C),G)};
_.n.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.n.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.n.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.n.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.n.handleWindowHandleDrag_=function(C){var F=C.clientX-this.dragMouseLastX_;this.dragMouseLastX_=C.clientX;C=this.pixelsToTime_(F);if(this.draggingLeft_){var G=this.start+C;var V=this.end}else this.draggingRight_&&(G=this.start,V=this.end+C);_.oo(this.hostElement,"set-range",{start:G,end:V,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.n.onVideoProgress_=function(C){this.disabled||(C=this.timeToPixels_(C-this.rulerShift_,this.tickSpacing_),_.ot(this.hostElement).querySelector("#playhead").style.transform="translateX("+C+")")};
_.n.onClipCreationDisable_=function(){this.endDrag_()};
_.n.timeToPixels_=function(C,F,G){C*=F;return G===void 0||G?C+"px":C};
_.n.pixelsToTime_=function(C){return C/this.tickSpacing_};
_.n.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.n.centerRuler_=function(C,F,G){this.set("rulerShift_",this.capRulerOffset_(C+(F-C)/2-G/2))};
_.n.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.n.updateLoopRange_=function(C,F,G,V,J,b,z){C&&(F&&V&&!G?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(C.pauseVideo(),C.seekTo(J,!1,void 0,void 0,50)):this.draggingRight_?(C.pauseVideo(),C.seekTo(b-.1,!1,void 0,void 0,50)):(z!==void 0?C.seekTo(z,!0,void 0,void 0,50):(F=C.getCurrentTime(),F<J||F>b?C.seekTo(J,!0,void 0,void 0,50):C.seekTo(F,!0,void 0,void 0,50)),C.playVideo()),C.setLoopRange({startTimeMs:J*1E3,endTimeMs:b*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(C.getCurrentTime())):
this.activeLoopRange_&&(C.setLoopRange(null),this.activeLoopRange_=!1))};
_.n.updateHandles_=function(){_.ot(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.ot(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.n.updateRuler_=function(){var C=this.end,F=this.start,G=this.draggableStartLimit_(),V=this.draggableEndLimit_();(F<G-.001||C>V+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.n.computeDurationLabel_=function(C,F){return C?C.replace("$clip_length",parseFloat(F).toFixed(1)):""};
_.n.computeDuration_=function(C,F){return this.isValidTime_(C)&&this.isValidTime_(F)&&C<F?F-C:0};
_.n.isValidTime_=function(C){return isNaN(parseFloat(C))||C<0?!1:this.player_?C>=this.seekableStart&&C<=this.seekableEnd:!0};
_.n.computeWindowSizeSec_=function(C,F,G){return Math.min((C||12E4)/1E3,G-F)};
_.n.computeTickSpacing_=function(C,F){return F?F/C:1};
_.n.onDragStateChanged_=function(){_.oo(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.n.centerRangeOnTime_=function(C){var F=this.duration;C=elF(C-F/2,F,this.seekableStart,this.seekableEnd);_.oo(this.hostElement,"set-fixed-length-range",{start:C.start,duration:C.end-C.start})};
_.n.nearlyLessThan_=function(C,F,G){return C+(G===void 0?1E-6:G)<F};
_.n.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var C=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(C,this.start)||this.nearlyLessThan_(this.end,C))&&this.centerRangeOnTime_(C)}};
_.n.onStateChange_=function(C){this.visible&&!this.disabled&&C==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.n.computeDragState_=function(C,F,G,V){return C?"left":F?"right":G?"ruler":V?"window":"none"};
_.n.logClick=function(){var C=_.ZQ(),F=_.lm();C&&F&&this.scrubberVe_&&(_.y("combine_ve_grafts")?_.Of(_.ia(),this.scrubberVe_,F):_.vA(C,F,this.scrubberVe_),_.ej(C,this.scrubberVe_))};
eJ.prototype.onDragStateChanged_=eJ.prototype.onDragStateChanged_;eJ.prototype.updateRuler_=eJ.prototype.updateRuler_;eJ.prototype.updateHandles_=eJ.prototype.updateHandles_;eJ.prototype.onUpdateLoopRange=eJ.prototype.onUpdateLoopRange;eJ.prototype.onInitializedChanged_=eJ.prototype.onInitializedChanged_;eJ.prototype.onVisibleChanged_=eJ.prototype.onVisibleChanged_;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],eJ.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.w(_.Fi.YtPlayerListenerBehavior),_.Y("design:type",Object)],eJ.prototype,"ytPlayerListenerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],eJ.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],eJ.prototype,"start",void 0);_.R([_.L(),_.Y("design:type",Object)],eJ.prototype,"end",void 0);_.R([_.L({computed:"computeDuration_(start, end)"}),_.Y("design:type",Number)],eJ.prototype,"duration",void 0);
_.R([_.L(),_.Y("design:type",String)],eJ.prototype,"lengthTemplate",void 0);_.R([_.L({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.Y("design:type",String)],eJ.prototype,"durationLabel",void 0);_.R([_.L(),_.Y("design:type",Object)],eJ.prototype,"visible",void 0);_.R([_.L(),_.Y("design:type",Object)],eJ.prototype,"player_",void 0);_.R([_.L(),_.Y("design:type",Object)],eJ.prototype,"draggingLeft_",void 0);_.R([_.L(),_.Y("design:type",Object)],eJ.prototype,"draggingRight_",void 0);
_.R([_.L(),_.Y("design:type",Object)],eJ.prototype,"draggingRuler_",void 0);_.R([_.L({value:!1}),_.Y("design:type",Object)],eJ.prototype,"draggingWindow_",void 0);_.R([_.L({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.Y("design:type",Number)],eJ.prototype,"tickSpacing_",void 0);_.R([_.L(),_.Y("design:type",Object)],eJ.prototype,"seekableStart",void 0);_.R([_.L(),_.Y("design:type",Object)],eJ.prototype,"seekableEnd",void 0);
_.R([_.L(),_.Y("design:type",Number)],eJ.prototype,"windowSizeMs",void 0);_.R([_.L({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.Y("design:type",Number)],eJ.prototype,"windowSizeSec_",void 0);_.R([_.L(),_.Y("design:type",Object)],eJ.prototype,"rulerWidth_",void 0);_.R([_.L(),_.Y("design:type",Object)],eJ.prototype,"rulerShift_",void 0);_.R([_.L(),_.Y("design:type",Object)],eJ.prototype,"windowSlideSpeed",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],eJ.prototype,"disabled",void 0);_.R([_.L(),_.Y("design:type",Object)],eJ.prototype,"initialized",void 0);_.R([_.L(),_.Y("design:type",Object)],eJ.prototype,"durationAccessibilityLabel",void 0);_.R([_.L({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.Y("design:type",String)],eJ.prototype,"dragState",void 0);
_.R([_.iP("visible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eJ.prototype,"onVisibleChanged_",null);_.R([_.iP("initialized"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eJ.prototype,"onInitializedChanged_",null);_.R([_.iP("player_","visible","disabled","initialized","start","end"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eJ.prototype,"onUpdateLoopRange",null);
_.R([_.iP("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eJ.prototype,"updateHandles_",null);_.R([_.iP("start","end"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eJ.prototype,"updateRuler_",null);
_.R([_.iP("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eJ.prototype,"onDragStateChanged_",null);_.R([_.Z5({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],eJ);
_.q(eJ,"yt-clip-creation-scrubber-view",function(){if(X8l===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;O1z===void 0&&(O1z=document.createElement("template"));var V=O1z;G.call(F,V.content.cloneNode(!0),C.content.firstChild);X8l=C}C=X8l;return C},{mode:2});var dZ=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};C.startHighlightTimeout=0;C.endHighlightTimeout=0;return C};
_.O(dZ,_.B);_.n=dZ.prototype;_.n.attached=function(){var C=this;this.startInput.addEventListener("input",function(F){return C.handleStartInput_(F)});
this.endInput.addEventListener("input",function(F){return C.handleEndInput_(F)});
this.startInput.addEventListener("focusout",function(F){return C.handleStartBlur_(F)});
this.endInput.addEventListener("focusout",function(F){return C.handleEndBlur_(F)})};
_.n.setPlayer=function(C){this.set("player_",C)};
_.n.onSetFixedLengthRange_=function(C){var F=C.detail;C=F.start;var G=F.duration,V=F.startLimit;F=F.endLimit;V||(V=this.seekableStart_);F||(F=this.seekableEnd_);C=elF(C,G,V,F);this.start=C.start;this.end=C.end};
_.n.onSetRange_=function(C){var F=C.detail;C=F.start;var G=F.end,V=F.startLimit;F=F.endLimit;V||(V=this.seekableStart_);F||(F=this.seekableEnd_);if(C=d0B(C,G,V,F,this.minLengthSec,this.maxLengthSec))this.start=C.start,this.end=C.end};
_.n.updateInputs_=function(){var C=this.end,F=this.start;this.startInput.focused||(this.startInput.value=vH(F,!0));this.endInput.focused||(this.endInput.value=vH(C,!0))};
_.n.handleStartInput_=function(C){C=A29(C.target.value);if(C===null)this.set("startValid",!1);else{var F=this.end,G=d0B(C,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);G?(this.set("endWillUpdate",G.end!==F),this.set("startValid",G.start===C)):this.set("startValid",!1)}};
_.n.handleEndInput_=function(C){C=A29(C.target.value);if(C===null)this.set("endValid",!1);else{var F=this.start,G=x0n(this.start,C,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);G?(this.set("startWillUpdate",G.start!==F),this.set("endValid",G.end===C)):this.set("endValid",!1)}};
_.n.handleStartBlur_=function(C){C=A29(C.target.value);C===null?this.startInput.value=vH(this.start,!0):this.forceUpdateInputs_(d0B(C,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.n.handleEndBlur_=function(C){C=A29(C.target.value);C===null?this.endInput.value=vH(this.end,!0):this.forceUpdateInputs_(x0n(this.start,C,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.n.forceUpdateInputs_=function(C){C&&(this.start=C.start,this.end=C.end);this.startInput.value=vH(this.start,!0);this.endInput.value=vH(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.n.initializeClipRange_=function(){var C=this.seekableEnd_,F=this.seekableStart_,G=this.visible_,V=this.player_;if(!V||!G||F===null||!C)this.set("initialized",!1);else if(!this.initialized){var J=V.getCurrentTime(),b=this.getDefaultLengthSec_();G=V.getVideoData();var z=V.getPlayerState()==1,Q=G.isLive;b=Math.min(b,C-F);J=Math.max(0,J);C=Q?x0n(J-b,J,F,C,this.minLengthSec,this.maxLengthSec):z?elF(J-b/2,b,F,C):elF(J,b,F,C);this.start=C.start;this.end=C.end;this.set("initialized",!0);G.isLive&&V.seekTo(C.start);
this.startInput.value=vH(this.start,!0);this.endInput.value=vH(this.end,!0)}};
_.n.onStartChanged_=function(){var C=this;_.oo(this.hostElement,"start-changed",{start:this.start});var F;isNaN((F=this.oldStart)!=null?F:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){C.set("highlightStart",!1);C.startHighlightTimeout=0;C.oldStart=C.start},3E3))};
_.n.onEndChanged_=function(){var C=this;_.oo(this.hostElement,"end-changed",{end:this.end});var F;isNaN((F=this.oldEnd)!=null?F:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){C.set("highlightEnd",!1);C.endHighlightTimeout=0;C.oldEnd=C.end},3E3))};
_.n.onVisibilityChangedAction_=function(C){var F=this;this.set("visible_",C.visible);this.visible_&&!this.player_&&(C=_.gE())&&C.getPlayerPromise().then(function(G){F.setPlayer(G)})};
_.n.computeMinLengthSec_=function(C){return C/1E3||5};
_.n.computeMaxLengthSec_=function(C){return C/1E3||60};
_.n.computeDefaultLengthSec_=function(C){return C/1E3};
_.n.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.n.computeSeekableStart_=function(C,F){return C&&F?C.getProgressState(1).seekableStart:0};
_.n.computeSeekableEnd_=function(C,F){return C&&F?C.getProgressState(1).seekableEnd:0};
_.n.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.n.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.n.onDragState_=function(C){this.set("highlightStart",C.detail.startChanging);this.set("highlightEnd",C.detail.endChanging)};
dZ.prototype.onDragState_=dZ.prototype.onDragState_;dZ.prototype.onEndChanged_=dZ.prototype.onEndChanged_;dZ.prototype.onStartChanged_=dZ.prototype.onStartChanged_;dZ.prototype.initializeClipRange_=dZ.prototype.initializeClipRange_;dZ.prototype.updateInputs_=dZ.prototype.updateInputs_;dZ.prototype.onSetRange_=dZ.prototype.onSetRange_;dZ.prototype.onSetFixedLengthRange_=dZ.prototype.onSetFixedLengthRange_;
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],dZ.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],dZ.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],dZ.prototype,"data",void 0);_.R([_.L({value:0}),_.Y("design:type",Number)],dZ.prototype,"start",void 0);_.R([_.L({value:!0}),_.Y("design:type",Boolean)],dZ.prototype,"startValid",void 0);
_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],dZ.prototype,"startWillUpdate",void 0);_.R([_.L({value:30}),_.Y("design:type",Number)],dZ.prototype,"end",void 0);_.R([_.L({value:!0}),_.Y("design:type",Boolean)],dZ.prototype,"endValid",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],dZ.prototype,"endWillUpdate",void 0);_.R([_.L({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.Y("design:type",Number)],dZ.prototype,"minLengthSec",void 0);
_.R([_.L({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.Y("design:type",Number)],dZ.prototype,"maxLengthSec",void 0);_.R([_.L({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.Y("design:type",Number)],dZ.prototype,"defaultLengthSec",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],dZ.prototype,"visible_",void 0);_.R([_.L(),_.Y("design:type",Object)],dZ.prototype,"player_",void 0);
_.R([_.L({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.Y("design:type",Number)],dZ.prototype,"seekableStart_",void 0);_.R([_.L({computed:"computeSeekableEnd_(player_, visible_)"}),_.Y("design:type",Number)],dZ.prototype,"seekableEnd_",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],dZ.prototype,"initialized",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],dZ.prototype,"disabled",void 0);
_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],dZ.prototype,"highlightStart",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],dZ.prototype,"highlightEnd",void 0);_.R([_.$z("#start"),_.Y("design:type",HTMLInputElement)],dZ.prototype,"startInput",void 0);_.R([_.$z("#end"),_.Y("design:type",HTMLInputElement)],dZ.prototype,"endInput",void 0);
_.R([_.VG("set-fixed-length-range"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],dZ.prototype,"onSetFixedLengthRange_",null);_.R([_.VG("set-range"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],dZ.prototype,"onSetRange_",null);_.R([_.iP("start","end"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dZ.prototype,"updateInputs_",null);
_.R([_.iP("player_","visible_","seekableStart_","seekableEnd_"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dZ.prototype,"initializeClipRange_",null);_.R([_.iP("start"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dZ.prototype,"onStartChanged_",null);_.R([_.iP("end"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dZ.prototype,"onEndChanged_",null);
_.R([_.VG("clips-drag-state"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],dZ.prototype,"onDragState_",null);_.R([_.Z5({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],dZ);
_.q(dZ,"yt-clip-creation-scrubber-renderer",function(){if(Z1F===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;y5T===void 0&&(y5T=document.createElement("template"));var V=y5T;G.call(F,V.content.cloneNode(!0),C.content.firstChild);Z1F=C}C=Z1F;return C},{mode:2});var xt=function(){var C=_.B.apply(this,arguments)||this;C.player_=null;C.JSC$22927_playerEvents=new Map;C.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return C};
_.O(xt,_.B);_.n=xt.prototype;_.n.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"}}}};
_.n.created=function(){this.JSC$22927_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$22927_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$22927_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$22927_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.n.detached=function(){this.setPlayer(null)};
_.n.onVisibilityChangedAction_=function(C){var F=this,G;if((G=this.data)==null?0:G.externalVideoId){var V;this.videoId=(V=this.data)==null?void 0:V.externalVideoId}this.getPlayer().then(function(J){if(C.visible)F.returnTime=J.getCurrentTime(),F.isAtLiveHead=J.getProgressState().isAtLiveHead;else{var b=F.returnTime;F.isAtLiveHead&&(b=Number.POSITIVE_INFINITY);J.seekTo(b,void 0,void 0,void 0,51)}})};
_.n.getPlayer=function(){var C=this;if(!this.player_){var F=_.gE();if(F)return F.getPlayerPromise().then(function(G){C.setPlayer(G);return G})}return Promise.resolve(this.player_)};
_.n.setPlayer=function(C){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22927_playerEvents);if(C){this.player_=C;var F;((F=this.data)==null?0:F.externalVideoId)||this.set("videoId",C.getVideoData().video_id||"");var G;(C==null?void 0:(G=C.getPresentingPlayerType)==null?void 0:G.call(C))===2&&(this.set("isAdPlaying",!0),_.rz(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(C,this.JSC$22927_playerEvents)}};
_.n.ready=function(){_.ot(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.n.onTitleChanged_=function(C){this.set("titleValue",C.detail.title)};
_.n.onStartChanged_=function(C){this.set("start",C.detail.start)};
_.n.onEndChanged_=function(C){this.set("end",C.detail.end)};
_.n.onTitleValidChanged_=function(C){this.set("titleValid",C.detail.valid)};
_.n.onStartValidChanged_=function(C){this.set("startValid",C.detail.valid)};
_.n.onEndValidChanged_=function(C){this.set("endValid",C.detail.valid)};
_.n.onVideoDataChange_=function(){var C;if((C=this.data)==null||!C.externalVideoId){var F;this.set("videoId",((F=this.player_)==null?void 0:F.getVideoData().video_id)||"")}};
_.n.computeFormValid_=function(C,F,G,V){return!!(C&&F&&G&&V)};
_.n.computeCancelButton_=function(C,F,G){return C&&_.Z(C,_.DY)?{buttonRenderer:Object.assign({},_.Z(C,_.DY),{isDisabled:F||G})}:null};
_.n.computeSubmitButton_=function(C,F,G){return C&&_.Z(C,_.DY)?{buttonRenderer:Object.assign({},_.Z(C,_.DY),{command:void 0,isDisabled:!this.formValid||F||G})}:null};
_.n.computeSubmitCommand_=function(C){return C||null};
_.n.onSubmit_=function(C){var F=this;C.stopPropagation();C.preventDefault();this.submitCommand_&&(C={},C.comment_text=this.titleValue,C.clip_external_video_id=this.videoId,C.clip_offset_ms=parseInt(this.start*1E3,10),C.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.DQ(this.hostElement,[this.submitCommand_,C]).then(function(){F.set("isLoading_",!1)},function(){F.set("isLoading_",!1)}))};
_.n.playerAdStartHandler_=function(){_.rz(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.n.playerAdEndHandler_=function(){_.rz(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.n.onVideoProgress_=function(){var C=this;this.getPlayer().then(function(F){var G,V=(F==null?void 0:(G=F.getPresentingPlayerType)==null?void 0:G.call(F))===2;C.isAdPlaying!==V&&(V?C.playerAdStartHandler_():C.playerAdEndHandler_())})};
xt.prototype.onEndValidChanged_=xt.prototype.onEndValidChanged_;xt.prototype.onStartValidChanged_=xt.prototype.onStartValidChanged_;xt.prototype.onTitleValidChanged_=xt.prototype.onTitleValidChanged_;xt.prototype.onEndChanged_=xt.prototype.onEndChanged_;xt.prototype.onStartChanged_=xt.prototype.onStartChanged_;xt.prototype.onTitleChanged_=xt.prototype.onTitleChanged_;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],xt.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.w(_.Fi.YtPlayerListenerBehavior),_.Y("design:type",Object)],xt.prototype,"ytPlayerListenerBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],xt.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],xt.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],xt.prototype,"data",void 0);_.R([_.L({value:""}),_.Y("design:type",String)],xt.prototype,"titleValue",void 0);
_.R([_.L({value:!1}),_.Y("design:type",Boolean)],xt.prototype,"titleValid",void 0);_.R([_.L({value:0}),_.Y("design:type",Number)],xt.prototype,"start",void 0);_.R([_.L({value:!0}),_.Y("design:type",Boolean)],xt.prototype,"startValid",void 0);_.R([_.L({value:0}),_.Y("design:type",Number)],xt.prototype,"end",void 0);_.R([_.L({value:!0}),_.Y("design:type",Boolean)],xt.prototype,"endValid",void 0);_.R([_.L({value:""}),_.Y("design:type",String)],xt.prototype,"videoId",void 0);
_.R([_.L({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.Y("design:type",Boolean)],xt.prototype,"formValid",void 0);_.R([_.L({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.Y("design:type",Object)],xt.prototype,"submitButton_",void 0);_.R([_.L({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.Y("design:type",Object)],xt.prototype,"submitCommand_",void 0);
_.R([_.L({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.Y("design:type",Object)],xt.prototype,"cancelButton_",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],xt.prototype,"isLoading_",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],xt.prototype,"isAdPlaying",void 0);_.R([_.L({value:0}),_.Y("design:type",Number)],xt.prototype,"returnTime",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],xt.prototype,"isAtLiveHead",void 0);
_.R([_.VG("title-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],xt.prototype,"onTitleChanged_",null);_.R([_.VG("start-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],xt.prototype,"onStartChanged_",null);_.R([_.VG("end-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],xt.prototype,"onEndChanged_",null);
_.R([_.VG("title-valid-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],xt.prototype,"onTitleValidChanged_",null);_.R([_.VG("start-valid-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],xt.prototype,"onStartValidChanged_",null);_.R([_.VG("end-valid-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],xt.prototype,"onEndValidChanged_",null);
_.R([_.Z5({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],xt);
_.q(xt,"yt-clip-creation-renderer",function(){if(lU9===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;H1n===void 0&&(H1n=document.createElement("template"));var V=H1n;G.call(F,V.content.cloneNode(!0),C.content.firstChild);lU9=C}C=lU9;return C},{mode:2});var sg=function(){return _.B.apply(this,arguments)||this};
_.O(sg,_.B);sg.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"}}}};
sg.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(C){return C.hasOwnProperty("clipCreationRenderer")})&&_.rz(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
sg.prototype.onPanelContentVisibleChanged=sg.prototype.onPanelContentVisibleChanged;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],sg.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],sg.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.r6.YtVisibilityBehavior),_.Y("design:type",Object)],sg.prototype,"ytVisibilityBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],sg.prototype,"ytdReduxBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],sg.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],sg.prototype,"panelContentVisible",void 0);_.R([_.iP("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sg.prototype,"onPanelContentVisibleChanged",null);_.R([_.e({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],sg);
_.q(sg,"ytd-clip-section-renderer",function(){if(tQz!==void 0)return tQz;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return tQz=C},{mode:1});var w8n;var q2=function(){return _.B.apply(this,arguments)||this};
_.O(q2,_.B);_.n=q2.prototype;
_.n.onKeyDown=function(C){if(this.snippetElements.length!==0&&(C=C.keyCode,C===38||C===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);C===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.lV(this.highlightedIndex,-1,this.snippetElements.length);C=this.snippetElements.length;var F=this.highlightedIndex%C;this.highlightedIndex=F*C<0?F+C:F;C=this.snippetElements[this.highlightedIndex];this.highlightSnippet(C);this.ensureVisible(C)}};
_.n.onKeyUp=function(C){var F=this;NiY(C)&&(C.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.gT.cancelJob(this.inputTimerId),this.inputTimerId=_.gT.addLowPriorityJob(function(){F.typedValue&&(F.fetchSnippets(F.typedValue),F.logInputGesture(F.data))},1E3))};
_.n.onClick=function(C){(C=_.wjy(C.target,null,"snippet-item"))&&this.selectSnippet(C)};
_.n.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.n.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.n.ready=function(){var C=this;this.inputElement.addEventListener("focus",function(){C.snippetsWrapper.style.removeProperty("display")})};
_.n.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.n.getSourceTimelines=function(){if(!this.data)return[];var C=[];if(this.data.searchInVideoSources)for(var F=_.u(this.data.searchInVideoSources),G=F.next();!G.done;G=F.next())G=G.value,G==="SEARCH_IN_VIDEO_SOURCE_ASR"?C.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):G==="SEARCH_IN_VIDEO_SOURCE_OCR"&&C.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return C};
_.n.fetchSnippets=function(C){var F=_.rz(this.hostElement,"yt-get-current-video-id-action")[0],G=this.getSourceTimelines();C={getSearchInVideoCommand:{externalVideoId:F,query:C!=null?C:"",sourceTimelines:G},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.I8().resolve(_.WD).resolveCommand(C,{form:{element:this.hostElement}})};
_.n.filterSnippets=function(C,F){var G=this;if(F){this.filteredSnippets=(0,_.xf.unsafeClone)(C);var V=RegExp(_.Mhw(F),"i");this.filteredSnippets=this.filteredSnippets.filter(function(z){return V.test(G.ytRendererBehavior.getSimpleString(z.snippet))});
C=_.u(this.filteredSnippets);for(var J=C.next();!J.done;J=C.next()){J=J.value;var b=this.ytRendererBehavior.getSimpleString(J.snippet);J.snippet={runs:[{text:b.substring(0,b.toLowerCase().indexOf(F))},{text:b.substring(b.toLowerCase().indexOf(F),b.toLowerCase().indexOf(F)+F.length),bold:!0},{text:b.substring(b.toLowerCase().indexOf(F)+F.length,b.length)}]}}}else this.filteredSnippets=C};
_.n.onUpdateSearchInVideoResults=function(C){if(!(this.snippets.length>0)){var F,G,V;if((V=(F=_.Z(C,e7B))==null?void 0:(G=F.results)==null?void 0:G.length)!=null&&V){var J;this.filteredSnippets=this.snippets=((J=_.Z(C,e7B))==null?void 0:J.results).map(function(b){var z,Q,E;return{startMs:b==null?void 0:(z=b.searchInVideoResultRenderer)==null?void 0:z.startMs,startTimeText:b==null?void 0:(Q=b.searchInVideoResultRenderer)==null?void 0:Q.startTimeText,snippet:b==null?void 0:(E=b.searchInVideoResultRenderer)==
null?void 0:E.snippet}})}}};
_.n.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};
_.n.highlightSnippet=function(C){C.classList.add("highlighted")};
_.n.removeSnippetHighlight=function(C){C.classList.remove("highlighted")};
_.n.selectSnippet=function(C){this.typedValue=String(C.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(C);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.n.ensureVisible=function(C){var F=this.snippetsWrapper.scrollTop,G=F+this.snippetsWrapper.clientHeight,V=C.offsetTop-this.snippetsWrapper.offsetTop;C=V+C.clientHeight;V<F?this.snippetsWrapper.scrollTop-=F-V:C>G&&(this.snippetsWrapper.scrollTop+=C-G)};
_.n.seekPlayer=function(C){var F,G;return _.I(function(V){if(V.nextAddress==1){if(!C)return V.jumpTo(0);F=Number(C.dataset.startOffset);return V.yield(_.Re().getPlayerPromise(),3)}G=V.yieldResult;G.seekTo(F/1E3,!0);G.wakeUpControls();_.S9(V)})};
_.n.logInputGesture=function(C){var F=_.ZQ();F&&(C==null?0:C.trackingParams)&&_.dh(F,_.zS(C.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.n.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G6("typed-value-changed",this.typedValue))};
_.n.updateTypedValueFromBinding=function(C){this.typedValue=C.currentTarget.value};
q2.prototype.typedValueChangedForBinding=q2.prototype.typedValueChangedForBinding;q2.prototype.dataChanged=q2.prototype.dataChanged;q2.prototype.panelContentVisibleChanged=q2.prototype.panelContentVisibleChanged;q2.prototype.onClick=q2.prototype.onClick;q2.prototype.onKeyUp=q2.prototype.onKeyUp;q2.prototype.onKeyDown=q2.prototype.onKeyDown;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],q2.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],q2.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],q2.prototype,"data",void 0);_.R([_.L({value:[]}),_.Y("design:type",Array)],q2.prototype,"snippets",void 0);_.R([_.L({value:[]}),_.Y("design:type",Array)],q2.prototype,"filteredSnippets",void 0);_.R([_.L({value:[]}),_.Y("design:type",Array)],q2.prototype,"snippetElements",void 0);
_.R([_.$z("#siv-input"),_.Y("design:type",HTMLElement)],q2.prototype,"inputElement",void 0);_.R([_.$z("#siv-snippets-wrapper"),_.Y("design:type",HTMLElement)],q2.prototype,"snippetsWrapper",void 0);_.R([_.L(),_.Y("design:type",String)],q2.prototype,"typedValue",void 0);_.R([_.L({value:-1}),_.Y("design:type",Number)],q2.prototype,"highlightedIndex",void 0);_.R([_.VG("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[_.a5]),_.Y("design:returntype")],q2.prototype,"onKeyDown",null);
_.R([_.VG("keyup"),_.Y("design:type",Function),_.Y("design:paramtypes",[_.a5]),_.Y("design:returntype")],q2.prototype,"onKeyUp",null);_.R([_.VG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],q2.prototype,"onClick",null);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],q2.prototype,"panelContentVisible",void 0);
_.R([_.iP("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],q2.prototype,"panelContentVisibleChanged",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],q2.prototype,"dataChanged",null);_.R([_.iP("typedValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],q2.prototype,"typedValueChangedForBinding",null);
_.R([_.e({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],q2);
_.q(q2,"ytd-search-in-video-renderer",function(){if(w8n!==void 0)return w8n;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return w8n=C},{mode:1});var MQL;var PC=function(){return _.B.apply(this,arguments)||this};
_.O(PC,_.B);PC.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
PC.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]]"}}}}}};
PC.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var C,F,G,V,J=(F=_.Z((C=this.data)==null?void 0:C.onClickCommand,_.k$7))==null?void 0:(G=F.item)==null?void 0:(V=G.notificationTextRenderer)==null?void 0:V.successResponseText;J&&_.IqT(this.hostElement,J)}};
_.I6.Object.defineProperties(PC.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var C,F,G,V;return this.isProductPlaceholder&&((C=this.data)==null?void 0:(F=C.hiddenProductOptions)==null?void 0:F.showDropCountdown)&&!!((G=this.data)==null?0:(V=G.hiddenProductOptions)==null?0:V.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var C;return!this.isProductPlaceholder&&!((C=this.data)==null?0:C.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var C,F;return!((C=this.data)==null?0:C.priceReplacementText)&&!((F=this.data)==null||!F.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],PC.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],PC.prototype,"componentBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],PC.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],PC.prototype,"data",void 0);
_.R([_.L({reflectToAttribute:!0}),_.M("isProductPlaceholder"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PC.prototype,"useCenterLayoutContainer",null);_.R([_.L({computed:"computeButtonOverride(data)"}),_.Y("design:type",Object)],PC.prototype,"buttonOverride",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PC.prototype,"isProductPlaceholder",null);
_.R([_.M("isProductPlaceholder"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PC.prototype,"showDropCountdown",null);_.R([_.M("isProductPlaceholder","data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PC.prototype,"showBrandName",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PC.prototype,"showPriceReplacementText",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PC.prototype,"showPrice",null);
_.R([_.M("isProductPlaceholder"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PC.prototype,"showMetadata",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],PC);
_.q(PC,"ytd-product-list-item-renderer",function(){if(MQL!==void 0)return MQL;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return MQL=C},{mode:1});var S1_;var gZ=function(){return _.B.apply(this,arguments)||this};
_.O(gZ,_.B);gZ.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
gZ.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
gZ.prototype.panelContentVisibleChanged=function(){var C=this,F;return _.I(function(G){if(G.nextAddress==1)return C.playerApi?G.jumpTo(2):G.yield(_.Re().getPlayerPromise(),3);G.nextAddress!=2&&(C.playerApi=G.yieldResult);(F=C.playerApi)==null||F.productsInVideoVisibilityUpdated(!!C.panelContentVisible);_.S9(G)})};
gZ.prototype.panelContentVisibleChanged=gZ.prototype.panelContentVisibleChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],gZ.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],gZ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],gZ.prototype,"panelContentVisible",void 0);_.R([_.L(),_.Y("design:type",Object)],gZ.prototype,"data",void 0);
_.R([_.iP("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],gZ.prototype,"panelContentVisibleChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],gZ);
_.q(gZ,"ytd-product-list-renderer",function(){if(S1_!==void 0)return S1_;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return S1_=C},{mode:1});var LhT;var RI=function(){var C=_.B.apply(this,arguments)||this;C.hideTimestamps=!!_.Wr("hide-transcript-timestamps");C.currentCueIndex=-1;C.flatCues=[];C.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};C.TEST_ONLY={getFlatCues:function(){return C.flatCues}};
return C};
_.O(RI,_.B);_.n=RI.prototype;_.n.hideTimestampsChanged=function(){_.E6("hide-transcript-timestamps",this.hideTimestamps)};
_.n.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.n.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.n.dataChanged=function(){var C;if((C=this.data)!=null&&C.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;C=_.u(this.data.cueGroups);for(var F=C.next();!F.done;F=C.next()){F=_.u(_.Z(F.value,d46).cues);for(var G=F.next();!G.done;G=F.next())this.flatCues.push(Number(_.Z(G.value,x4F).startOffsetMs))}}};
_.n.onYtPlayerTimeChanged=function(C){if(!(C<0)){for(var F=this.currentCueIndex,G=F;;){var V=G>=0?this.flatCues[G]/1E3:-1;if(C+.5<V)--G;else if(V=G+1<this.flatCues.length?this.flatCues[G+1]/1E3:Infinity,C+.5>V)G+=1;else break}G!==F&&(F>=0&&((C=this.getCueElement(F))&&C.classList.remove("active"),(F=this.getCueGroupElement(F))&&F.classList.remove("active")),(F=this.getCueElement(G))&&F.classList.add("active"),(F=this.getCueGroupElement(G))&&F.classList.add("active"),this.currentCueIndex=G,this.isHovered||
this.scrollElementToTop(G))}};
_.n.scrollElementToTop=function(C){C=this.getCueElement(C>=3?C-3:0);this.hostElement.scrollTop=Math.min(C.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.n.getCueElement=function(C){return _.ot(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[C]+'"]')};
_.n.getCueGroupElement=function(C){return(C=this.getCueElement(C))&&C.parentElement?C.parentElement.parentElement:null};
_.n.onTap=function(C){var F=_.ev(C);C.target.classList.contains("cue")&&this.seekCueElement(F)};
_.n.onKeyPress=function(C){C.keyCode==13&&(C=_.wjy(C.target,null,"cue"))&&this.seekCueElement(C)};
_.n.seekCueElement=function(C){C=Number(C.getAttribute("start-offset"));_.rz(this.hostElement,"yt-transcript-player-seek",[C/1E3])};
_.n.onMouseEnter=function(){this.isHovered=!0};
_.n.onMouseLeave=function(){this.isHovered=!1};
RI.prototype.onMouseLeave=RI.prototype.onMouseLeave;RI.prototype.onMouseEnter=RI.prototype.onMouseEnter;RI.prototype.onKeyPress=RI.prototype.onKeyPress;RI.prototype.onTap=RI.prototype.onTap;RI.prototype.dataChanged=RI.prototype.dataChanged;RI.prototype.hideTimestampsChanged=RI.prototype.hideTimestampsChanged;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],RI.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],RI.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],RI.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],RI.prototype,"hideTimestamps",void 0);_.R([_.L(),_.Y("design:type",Boolean)],RI.prototype,"isHovered",void 0);_.R([_.iP("hideTimestamps"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RI.prototype,"hideTimestampsChanged",null);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RI.prototype,"dataChanged",null);_.R([_.VG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],RI.prototype,"onTap",null);_.R([_.VG("keypress"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],RI.prototype,"onKeyPress",null);
_.R([_.VG("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RI.prototype,"onMouseEnter",null);_.R([_.VG("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RI.prototype,"onMouseLeave",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],RI);
_.q(RI,"ytd-transcript-body-renderer",function(){if(LhT!==void 0)return LhT;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return LhT=C},{mode:1});var BDF;var Yt=function(){var C=_.B.apply(this,arguments)||this;C.darkerPanels=_.y("web_watch_darker_panels");return C};
_.O(Yt,_.B);Yt.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Yt.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Yt.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Yt.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Yt.prototype,"darkerPanels",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],Yt);
_.q(Yt,"ytd-transcript-footer-renderer",function(){if(BDF!==void 0)return BDF;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return BDF=C},{mode:1});var vw_;var fUB;var Tx=function(){var C=_.B.apply(this,arguments)||this;C.systemIcons=_.y("kevlar_system_icons");C.showClearButton=!1;return C};
_.O(Tx,_.B);_.n=Tx.prototype;_.n.handleInput=function(C){var F=this;C.target.value.length?_.Bb(this,"ytdTranscriptSearchBoxSearch",function(){F.emitSearchEvent(C)},500):(_.ULi(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=C.target.value.length>0};
_.n.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.n.handleClick=function(){var C,F=(C=this.data)==null?void 0:C.trackingParams;F&&_.MJ(_.ia(),F)};
_.n.handleClear=function(){_.ULi(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var C,F,G=(F=_.Z((C=this.data)==null?void 0:C.clearButton,_.DY))==null?void 0:F.trackingParams;G&&_.MJ(_.ia(),G);this.clear()};
_.n.emitSearchEvent=function(C){_.oo(this.hostElement,"yt-transcript-search-box-search",{query:C.target.value});var F,G;(C=(G=_.Z((F=this.data)==null?void 0:F.searchButton,_.DY))==null?void 0:G.trackingParams)&&_.MJ(_.ia(),C)};
_.n.emitClearEvent=function(){_.oo(this.hostElement,"yt-transcript-search-box-clear")};
_.I6.Object.defineProperties(Tx.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.ot(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Tx.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Tx.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Tx.prototype,"systemIcons",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],Tx);
_.q(Tx,"ytd-transcript-search-box-renderer",function(){if(fUB!==void 0)return fUB;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return fUB=C},{mode:1});var hK9;var c5h;var oI=function(){return _.B.apply(this,arguments)||this};
_.O(oI,_.B);oI.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var C,F;this.sectionHeaderAriaLabel=(C=this.data)==null?void 0:(F=C.accessibility)==null?void 0:F.accessibilityData.label}};
oI.prototype.fireSelectedEvent=function(C){_.oo(this.hostElement,"ytd-transcript-section-header",{startMs:C})};
oI.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
oI.prototype.handleKeyPress=function(C){this.data&&C.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.I6.Object.defineProperties(oI.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var C,F;return(F=(C=this.data)==null?void 0:C.enableTappableTranscriptHeader)!=null?F:!1}}});
oI.prototype.dataChanged=oI.prototype.dataChanged;_.R([_.L(),_.Y("design:type",Object)],oI.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",String)],oI.prototype,"sectionHeaderAriaLabel",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],oI.prototype,"enableTappableTranscriptHeader",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oI.prototype,"dataChanged",null);
_.R([_.e({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],oI);
_.q(oI,"ytd-transcript-section-header-renderer",function(){if(c5h!==void 0)return c5h;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return c5h=C},{mode:1});var A50;var eK_;var rZ=function(){var C=_.B.apply(this,arguments)||this;C.isEditMode=!1;C.touchCaptionsEnabled=!1;C.deleteCaptionCorrectionPopupCommand=null;C.voteCaptionCorrectionPopupCommand=null;C.roundedContainer=!0;C.mouseOver=!1;C.textChanged=!1;C.messages={suggest_correction:_.iQ("suggest_correction",void 0,"Edit caption"),suggested_caption:_.iQ("suggested_caption",void 0,"Suggested caption"),submit_correction:_.iQ("submit_correction",void 0,"Submit for review"),cancel_correction:_.iQ("cancel_correction",
void 0,"Cancel"),replay_segment:_.iQ("replay_segment",void 0,"Re-play segment"),delete_correction:_.iQ("delete_correction",void 0,"Delete correction")};C.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return C};
_.O(rZ,_.B);_.n=rZ.prototype;_.n.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)};
_.n.handleDelete=function(C){if(this.deleteCaptionCorrectionPopupCommand){var F=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);F&&this.ytdOpenPopupBehavior.openPopup(F);C.stopPropagation()}};
_.n.handleSubmit=function(C){if(this.data&&this.data.submitCaptionCorrectionCommand&&(C.stopPropagation(),this.textChanged)){var F;C=(F=_.Z(this.data.submitCaptionCorrectionCommand,_.lOy))==null?void 0:F.params;F=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:C,correctionText:String(this.ironTextAreaElement.value),originalText:_.dd(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(F);this.isEditMode=!1}};
_.n.handleUpdateSegmentText=function(C){(C=_.Z(C,GN6))&&C.targetId&&this.data&&C.targetId===this.data.targetId&&(C.userCorrection&&(this.editedText=C.userCorrection),C.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.dd(this.data.snippet)),C.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=C.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=C.voteCaptionCorrectionPopupCommand?
C.voteCaptionCorrectionPopupCommand:null,C.accessibility&&(this.segmentAriaLabel=C.accessibility.accessibilityData.label))};
_.n.handleCancel=function(C){this.isEditMode=!1;C.stopPropagation();this.logClientVe(159409)};
_.n.handleEditSegmentCommand=function(C){(C=_.Z(C,Fx0))&&C.targetId&&this.data&&C.targetId===this.data.targetId&&this.handleEdit()};
_.n.handleEditButtonClick=function(C){this.data&&(this.handleEdit(),C.stopPropagation())};
_.n.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var C;(C=this.ironTextAreaElement.textarea)==null||C.focus();this.logClientVe(159407)}};
_.n.handleMouseEnter=function(){this.mouseOver=!0};
_.n.handleMouseLeave=function(){this.mouseOver=!1};
_.n.handleReplay=function(C){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),C.stopPropagation(),this.logClientVe(159408))};
_.n.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()))};
_.n.handleKeypress=function(C){this.data&&(this.isEditMode?C.stopPropagation():this.isEnterPress(C)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(C)&&this.logClientVe(138758))};
_.n.handleTextboxClick=function(C){C.stopPropagation()};
_.n.handleTextboxKeydown=function(C){this.isControlEnterPress(C)?this.handleSubmit(C):C.key==="Escape"&&this.handleCancel(C)};
_.n.handleTextboxKeyup=function(){this.textChanged=_.dd(this.latestText)!==String(this.ironTextAreaElement.value)};
_.n.fireSelectedEvent=function(C){_.oo(this.hostElement,"yt-transcript-segment-selected",{startMs:C})};
_.n.fireReplayEvent=function(C,F){_.oo(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(C-100,0),endMs:F})};
_.n.fireEditEvent=function(C,F){_.oo(this.hostElement,"yt-transcript-segment-edit",{startMs:C,endMs:F})};
_.n.isEnterPress=function(C){return C.key==="Enter"||C.code==="Enter"||C.code==="NumpadEnter"||C.keyCode===13?!0:!1};
_.n.isControlEnterPress=function(C){var F=C.key==="Enter"||C.code==="Enter"||C.code==="NumpadEnter"||C.keyCode===13;return(C.ctrlKey||C.metaKey)&&F};
_.n.isCopyPress=function(C){var F=C.ctrlKey;return C.key==="c"&&F};
_.n.logClick=function(){var C,F=(C=this.data)==null?void 0:C.trackingParams;F&&_.MJ(_.ia(),F)};
_.n.logClientVe=function(C){_.wo(_.ia(),_.m2(C))};
_.I6.Object.defineProperties(rZ.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}}});
rZ.prototype.handleMouseLeave=rZ.prototype.handleMouseLeave;rZ.prototype.handleMouseEnter=rZ.prototype.handleMouseEnter;rZ.prototype.dataChanged=rZ.prototype.dataChanged;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],rZ.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.nK),_.Y("design:type",Object)],rZ.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],rZ.prototype,"ytRendererBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],rZ.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],rZ.prototype,"isEditMode",void 0);_.R([_.L(),_.Y("design:type",Object)],rZ.prototype,"touchCaptionsEnabled",void 0);_.R([_.L(),_.Y("design:type",Object)],rZ.prototype,"editedText",void 0);_.R([_.L(),_.Y("design:type",Object)],rZ.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.R([_.L(),_.Y("design:type",Object)],rZ.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.R([_.L(),_.Y("design:type",String)],rZ.prototype,"segmentAriaLabel",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],rZ.prototype,"roundedContainer",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],rZ.prototype,"mouseOver",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],rZ.prototype,"textChanged",void 0);_.R([_.L(),_.Y("design:type",Object)],rZ.prototype,"messages",void 0);
_.R([_.$z("#suggestion"),_.Y("design:type",Object)],rZ.prototype,"ironTextAreaElement",void 0);_.R([_.M("data","editedText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],rZ.prototype,"latestText",null);_.R([_.M("touchCaptionsEnabled","isEditMode"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rZ.prototype,"enableEditButton",null);
_.R([_.M("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rZ.prototype,"enableUndoButton",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rZ.prototype,"dataChanged",null);_.R([_.VG("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rZ.prototype,"handleMouseEnter",null);
_.R([_.VG("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rZ.prototype,"handleMouseLeave",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],rZ);
_.q(rZ,"ytd-transcript-segment-renderer",function(){if(eK_!==void 0)return eK_;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return eK_=C},{mode:1});var Kh=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};C.isError=!1;C.darkerPanels=_.y("web_watch_darker_panels");C.useParentMaxHeight=_.y("web_watch_transscript_use_parent_max_height");C.segmentOffsets=[];C.segmentIndex=-1;return C};
_.O(Kh,_.B);_.n=Kh.prototype;_.n.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"}}}}};
_.n.segmentsChanged=function(){this.updateOffsets()};
_.n.onYtPlayerTimeChanged=function(C){for(var F=this.segmentIndex,G=F;;){if(G>=0){var V=this.segmentOffsets[G].start;var J=this.segmentOffsets[G].isAutoScrollable}else V=-1,J=!0;var b=C+.5;if(!J){V=G+1<this.segmentOffsets.length?this.segmentOffsets[G+1].start:Infinity;if(b>=V){G+=1;continue}G=-1;break}if(b<V)V=G-1>=0&&this.segmentOffsets[G-1].isAutoScrollable,J=G===0||V?1:2,G-=J;else if(J=G+1<this.segmentOffsets.length&&this.segmentOffsets[G+1].isAutoScrollable?1:2,V=G+J<this.segmentOffsets.length?
this.segmentOffsets[G+J].start:Infinity,b>V)G+=J;else{if(G<0)break;G<this.segmentOffsets.length&&b>this.segmentOffsets[G].end&&(G=-1);break}}if(F!==G){if(F>=0){var z;(z=this.getSegmentElement(F))==null||z.classList.remove("active")}this.segmentIndex=G;if(!(G<0)){var Q;(Q=this.getSegmentElement(G))==null||Q.classList.add("active");this.isHovered||this.scrollElementToTop(G)}}};
_.n.handleSegmentEdit=function(C){C.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=C.target,_.rz(this.hostElement,"yt-transcript-player-edit",[C.detail.startMs/1E3,C.detail.endMs/1E3]))};
_.n.handleSegmentSelected=function(C){_.rz(this.hostElement,"yt-transcript-player-seek",[C.detail.startMs/1E3])};
_.n.handleSegmentReplay=function(C){_.rz(this.hostElement,"yt-transcript-player-replay",[C.detail.startMs/1E3,C.detail.endMs/1E3])};
_.n.handleSectionHeaderSelected=function(C){_.rz(this.hostElement,"yt-transcript-player-seek",[C.detail.startMs/1E3])};
_.n.onMouseEnter=function(){this.isHovered=!0};
_.n.onMouseLeave=function(){this.isHovered=!1};
_.n.onRetryButtonClick=function(){_.oo(this.hostElement,"transcript-retry-button-click")};
_.n.getSegmentElement=function(C){return _.ot(this.hostElement).querySelector(":nth-child("+(C+1)+")")};
_.n.scrollElementToTop=function(C){C=this.getSegmentElement(C>=2?C-2:0);this.hostElement.scrollTop=Math.min(C.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.n.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(C){var F,G=(F=C.transcriptSegmentRenderer)!=null?F:C.transcriptSectionHeaderRenderer;return{start:Number(G.startMs)/1E3,end:Number(G.endMs)/1E3,isAutoScrollable:C.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.n.clearHighlightedSegments=function(){var C=_.ot(this.hostElement);C=_.u(C.querySelectorAll("ytd-transcript-segment-renderer"));for(var F=C.next();!F.done;F=C.next())F.value.classList.remove("active")};
_.I6.Object.defineProperties(Kh.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var C,F;return((C=this.data)==null?void 0:C.searchResultSegments)||((F=this.data)==null?void 0:F.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
Kh.prototype.onMouseLeave=Kh.prototype.onMouseLeave;Kh.prototype.onMouseEnter=Kh.prototype.onMouseEnter;Kh.prototype.handleSectionHeaderSelected=Kh.prototype.handleSectionHeaderSelected;Kh.prototype.handleSegmentReplay=Kh.prototype.handleSegmentReplay;Kh.prototype.handleSegmentSelected=Kh.prototype.handleSegmentSelected;Kh.prototype.handleSegmentEdit=Kh.prototype.handleSegmentEdit;Kh.prototype.segmentsChanged=Kh.prototype.segmentsChanged;
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],Kh.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Kh.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Kh.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Kh.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],Kh.prototype,"isError",void 0);
_.R([_.L(),_.Y("design:type",Object)],Kh.prototype,"noResultLabel",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Kh.prototype,"darkerPanels",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Kh.prototype,"useParentMaxHeight",void 0);_.R([_.M("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],Kh.prototype,"segments",null);
_.R([_.M("segments","noResultLabel"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Kh.prototype,"displayNoResults",null);_.R([_.iP("segments"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Kh.prototype,"segmentsChanged",null);_.R([_.VG("yt-transcript-segment-edit"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Kh.prototype,"handleSegmentEdit",null);
_.R([_.VG("yt-transcript-segment-selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Kh.prototype,"handleSegmentSelected",null);_.R([_.VG("yt-transcript-segment-replay"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Kh.prototype,"handleSegmentReplay",null);
_.R([_.VG("ytd-transcript-section-header"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Kh.prototype,"handleSectionHeaderSelected",null);_.R([_.VG("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Kh.prototype,"onMouseEnter",null);_.R([_.VG("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Kh.prototype,"onMouseLeave",null);
_.R([_.e({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],Kh);
_.q(Kh,"ytd-transcript-segment-list-renderer",function(){if(A50!==void 0)return A50;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return A50=C},{mode:1});var D4=function(){var C=_.B.apply(this,arguments)||this;C.hideTimestamps=!!_.Wr("hide-transcript-timestamps");C.isLoadingTranscripts=!1;C.darkerPanels=_.y("web_watch_darker_panels");C.isError=!1;C.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return C};
_.O(D4,_.B);_.n=D4.prototype;_.n.headerChanged=function(){var C,F;this.baseGetTranscriptsCommand=(F=_.Z((C=this.data)==null?void 0:C.header,VPS))==null?void 0:F.onTextChangeCommand};
_.n.bodyChanged=function(){var C=this.getBodyRenderer();C&&(C.initialSegments&&(this.initialTranscriptsRenderer=C),C.noResultLabel&&(this.noResultLabel=C.noResultLabel),C.retryLabel&&(this.retryLabel=C.retryLabel))};
_.n.detached=function(){this.clearSearchBoxText()};
_.n.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.n.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"}}}};
_.n.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.n.fireSearch=function(C){var F=this;if(C){var G=C.detail.query;if(this.baseGetTranscriptsCommand){var V;C=(V=_.Z(this.baseGetTranscriptsCommand,_.lwu))==null?void 0:V.params;var J;V=_.Z((J=this.data)==null?void 0:J.footer,sDz);var b;if((J=(b=_.Z(V==null?void 0:V.languageMenu,m4h))==null?void 0:b.subMenuItems)&&J.length>0&&(b=J.find(function(E){return E.selected}))){var z,Q;
C=(z=b.continuation)==null?void 0:(Q=z.reloadContinuationData)==null?void 0:Q.continuation}z=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:C,searchQuery:G}});this.ytComponentBehavior.resolveCommand(z,{commandController:{onServerError:function(){F.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});ygL(this.ytContinuationHandlerBehavior,function(){return G===F.getCurrentSearchBoxText()})}}};
_.n.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.n.onRetryButtonClick=function(){this.isError=!1;var C={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:C}))};
_.n.hideTimestampsChanged=function(){_.E6("hide-transcript-timestamps",this.hideTimestamps)};
_.n.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.n.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.n.handleSignalActionCopyTranscript=function(){var C=this,F=this.getBodyRenderer();F&&(F=((F==null?void 0:F.searchResultSegments)||(F==null?void 0:F.initialSegments)||[]).map(function(G){return _.Z(G,Jy_)}).filter(function(G){return!!G}).map(function(G){return{snippet:G.snippet||{runs:[{text:""}]},
startTimeText:G.startTimeText||{simpleText:""}}}).map(function(G){var V=(G.snippet.runs||[]).reduce(function(J,b){return J+b.text},"");
return C.hideTimestamps?V:G.startTimeText.simpleText+" "+V}).join("\n"),this.copyToClipboard(F))};
_.n.copyToClipboard=function(C){navigator.clipboard&&navigator.clipboard.writeText(C)};
_.n.getCurrentSearchBoxText=function(){var C;return(C=this.searchBox)==null?void 0:C.value};
_.n.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.n.getBodyRenderer=function(){var C;return _.Z((C=this.data)==null?void 0:C.body,iDY)};
_.n.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.I6.Object.defineProperties(D4.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.ot(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
D4.prototype.hideTimestampsChanged=D4.prototype.hideTimestampsChanged;D4.prototype.searchCleared=D4.prototype.searchCleared;D4.prototype.fireSearch=D4.prototype.fireSearch;D4.prototype.onReloadContinuationFinish=D4.prototype.onReloadContinuationFinish;D4.prototype.bodyChanged=D4.prototype.bodyChanged;D4.prototype.headerChanged=D4.prototype.headerChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],D4.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],D4.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],D4.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.G1),_.Y("design:type",Object)],D4.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],D4.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],D4.prototype,"hideTimestamps",void 0);
_.R([_.L(),_.Y("design:type",Object)],D4.prototype,"isLoadingTranscripts",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],D4.prototype,"darkerPanels",void 0);_.R([_.L(),_.Y("design:type",Object)],D4.prototype,"isError",void 0);_.R([_.iP("data.header"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],D4.prototype,"headerChanged",null);
_.R([_.zp("data.body"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],D4.prototype,"bodyChanged",null);_.R([_.VG("yt-reload-continuation-finish"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],D4.prototype,"onReloadContinuationFinish",null);_.R([_.VG("yt-transcript-search-box-search"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],D4.prototype,"fireSearch",null);
_.R([_.VG("yt-transcript-search-box-clear"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],D4.prototype,"searchCleared",null);_.R([_.iP("hideTimestamps"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],D4.prototype,"hideTimestampsChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],D4);
_.q(D4,"ytd-transcript-search-panel-renderer",function(){if(hK9!==void 0)return hK9;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return hK9=C},{mode:1});var ph=function(){var C=_.B.apply(this,arguments)||this;C.player=null;C.playerPollJobId=0;return C};
_.O(ph,_.B);_.n=ph.prototype;_.n.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.n.onLoadReloadContinuation=function(C){_.y("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:C.target.data.continuation}}):(C={clickTrackingParams:C.target.data.clickTrackingParams,getTranscriptEndpoint:{params:C.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.I8().resolve(_.WD).resolveCommand(C,{form:{element:this.hostElement}}))};
_.n.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"}}}};
_.n.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.n.attached=function(){this.updatePlayerListening()};
_.n.detached=function(){this.updatePlayerListening()};
_.n.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.n.startPlayerListening=function(){var C=this,F;return _.I(function(G){if(G.nextAddress==1)return(F=_.gE())?G.yield(F.getPlayerPromise(),2):G.return();C.player=G.yieldResult;C.playerPollJobId=_.gT.addLowPriorityJob(function(){C.getPlayerVideoProgress()},1E3);
C.player.addEventListener("onCueRangeEnter",function(V){C.onCueRangeEnter(V)});
C.player.addEventListener("onCueRangeExit",function(V){C.onCueRangeExit(V)});
C.player.addEventListener("onStateChange",function(V){C.onPlayerStateChange(V)});
C.player.addEventListener("SEEK_TO",function(V){C.onPlayerSeek(V)});
_.S9(G)})};
_.n.getPlayerVideoProgress=function(){var C=this;_.gT.cancelJob(this.playerPollJobId);if(this.player){var F=this.player.getCurrentTime();_.rz(this.hostElement,"yt-player-time-changed",[F])}this.playerPollJobId=_.gT.addLowPriorityJob(function(){C.getPlayerVideoProgress()},1E3)};
_.n.stopPlayerListening=function(){this.player=null;_.gT.cancelJob(this.playerPollJobId)};
_.n.onPlayerStateChange=function(C){C===2&&this.removePendingCue()};
_.n.onPlayerSeek=function(C){var F;if(F=this.pendingReplayCueId)F=this.pendingReplayCueId,F=C===(_.y("web_transcript_cue_id_killswitch")?Number(F):Number(F.split("_")[1]));F||this.removePendingCue()};
_.n.onCueRangeEnter=function(C){qqh(C)&&(this.pendingReplayCueId=C)};
_.n.onCueRangeExit=function(C){qqh(C)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.n.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.n.onYtTranscriptPlayerSeek=function(C){this.player&&this.player.seekTo(C,!0)};
_.n.onYtTranscriptPlayerReplay=function(C,F){this.player&&(this.player.addCueRange(sXL(C),C,F),this.player.seekTo(C,!0),this.player.playVideo())};
_.n.onYtTranscriptPlayerEdit=function(C,F){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(sXL(C),C,F),this.player.seekTo(C,!0))};
ph.prototype.onLoadReloadContinuation=ph.prototype.onLoadReloadContinuation;ph.prototype.panelContentVisibleChanged=ph.prototype.panelContentVisibleChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ph.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],ph.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],ph.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],ph.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],ph.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],ph.prototype,"panelContentVisible",void 0);_.R([_.iP("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ph.prototype,"panelContentVisibleChanged",null);
_.R([_.VG("yt-load-reload-continuation"),_.Y("design:type",Function),_.Y("design:paramtypes",[Object]),_.Y("design:returntype")],ph.prototype,"onLoadReloadContinuation",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],ph);
_.q(ph,"ytd-transcript-renderer",function(){if(vw_!==void 0)return vw_;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return vw_=C},{mode:1});var d1l;var x1S;var ms=function(){return _.B.apply(this,arguments)||this};
_.O(ms,_.B);ms.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.oo(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.pX(this.hostElement,[this.data.clickCommand],this.hostElement))};
ms.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.MF)()+_.eF)+"px)"};
ms.prototype.updateShouldHideFromBinding=function(C){this.shouldHide=C.detail.value};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ms.prototype,"rendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],ms.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Boolean)],ms.prototype,"shouldHide",void 0);_.R([_.e({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],ms);
_.q(ms,"ytd-ad-engagement-panel-banner-renderer",function(){if(x1S!==void 0)return x1S;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return x1S=C},{mode:_.oN("kevlar_poly_si_batch_j070")?1:2});var s19;var Cr=function(){var C=_.B.apply(this,arguments)||this;C.buttonUpdate=_.y("web_modern_buttons");C.adsSemanticText=_.y("enable_ads_web_ep_buenos_aires_and_padding_fix");return C};
_.O(Cr,_.B);Cr.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.R([_.L(),_.Y("design:type",Object)],Cr.prototype,"data",void 0);_.R([_.L({computed:"computeHideDefaultAdBadge(data)"}),_.Y("design:type",Boolean)],Cr.prototype,"hideDefaultAdBadge",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Cr.prototype,"buttonUpdate",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Cr.prototype,"adsSemanticText",void 0);_.R([_.e({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],Cr);
_.q(Cr,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(s19!==void 0)return s19;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return s19=C},{mode:1});var q1S;var je=function(){var C=_.B.apply(this,arguments)||this;C.darkerPanels=_.y("web_watch_darker_panels");C.enableSqueezebackPanels=_.y("web_shorts_enable_squeezeback_panels");C.enableAnchoredPanel=_.y("desktop_shorts_v2_anchored_panel");C.headerClickListener=function(F){C.onHeaderClick(F)};
C.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return C};
_.O(je,_.B);_.n=je.prototype;_.n.computeAdsInfoButton=function(){if(_.y("web_modern_buttons")){var C,F;return(F=_.Z((C=this.data)==null?void 0:C.subtitleComplex,q0B))==null?void 0:F.adInfoRenderer}};
_.n.updateHeaderClickListener=function(){var C,F,G;((C=this.data)==null?0:C.navigationEndpoint)||((F=this.data)==null?0:F.onClickCommand)||_.Z((G=this.data)==null?void 0:G.visibilityButton,_.pH)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.n.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}}}}}};
_.n.collapsedChanged=function(){var C;(C=this.data)!=null&&C.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.y("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.n.focus=function(C){var F=this;this.titleElement&&_.gT.addJob(function(){_.iS(F.titleElement,C)},0,500)};
_.n.computeTitleAriaLabel=function(C){var F=[];if(C.title){var G,V;F.push(this.ytRendererBehavior.getSimpleString(C.title)||((G=C.title.accessibility)==null?void 0:(V=G.accessibilityData)==null?void 0:V.label))}C.contextualInfo&&F.push(this.ytRendererBehavior.getSimpleString(C.contextualInfo));return F.join(" ")};
_.n.onHeaderClick=function(C){this.shouldTriggerHeaderClick(C)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.oo(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.pX(this.hostElement,[this.data.onClickCommand],this.hostElement)):(C=this.getVisibilityToggleButton())&&C.click())};
_.n.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var C=_.Z(this.data.visibilityButton,_.DY)||_.Z(this.data.visibilityButton,_.pH);C&&this.ytRendererBehavior.logExplicitClick(C)}};
_.n.getVisibilityToggleButton=function(){var C=_.ot(this.hostElement).querySelector("#visibility-button").firstElementChild;return(C==null?void 0:C.is)==="ytd-toggle-button-renderer"?C:null};
_.n.shouldTriggerHeaderClick=function(C){return!_.dE(_.AR(C),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.n.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(C){C=_.Z(C,_.vn_);this.targetId&&(C==null?void 0:C.targetId)===this.targetId&&(C=C.navigationButton)&&this.set("data.navigationButton",C)};
_.I6.Object.defineProperties(je.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.y("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var C;return!!(((C=this.entity)==null?0:C.isActionButtonHidden)||this.hideActionButton)}}});
je.prototype.collapsedChanged=je.prototype.collapsedChanged;je.prototype.updateHeaderClickListener=je.prototype.updateHeaderClickListener;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],je.prototype,"actionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],je.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],je.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.w(_.Rr),_.Y("design:type",Object)],je.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],je.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",String)],je.prototype,"targetId",void 0);_.R([_.L(),_.Y("design:type",Boolean)],je.prototype,"collapsed",void 0);_.R([_.L(),_.Y("design:type",Boolean)],je.prototype,"hideActionButton",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],je.prototype,"shortsPanel",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],je.prototype,"liveChatEngagementPanel",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],je.prototype,"learningChatEngagementPanel",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],je.prototype,"darkerPanels",void 0);_.R([_.$z("#title"),_.Y("design:type",HTMLElement)],je.prototype,"titleElement",void 0);_.R([_.$z("#header"),_.Y("design:type",HTMLElement)],je.prototype,"headerElement",void 0);
_.R([_.L({computed:"computeAdsInfoButton(data)"}),_.Y("design:type",Object)],je.prototype,"adsInfoButton",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],je.prototype,"enableSqueezebackPanels",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],je.prototype,"enableAnchoredPanel",void 0);_.R([_.L({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(C,F){return _.jN(C.entities,"engagementPanelTitleHeaderEntity",F)}}),
_.Y("design:type",Object)],je.prototype,"entity",void 0);_.R([_.L({reflectToAttribute:!0}),_.M("targetId"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],je.prototype,"adsSemanticText",null);_.R([_.iP("data","data.navigationEndpoint","data.onClickCommand"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],je.prototype,"updateHeaderClickListener",null);
_.R([_.zp("collapsed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],je.prototype,"collapsedChanged",null);_.R([_.M("entity","hideActionButton"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],je.prototype,"isActionButtonHidden",null);_.R([_.e({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],je);
_.q(je,"ytd-engagement-panel-title-header-renderer",function(){if(q1S!==void 0)return q1S;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return q1S=C},{mode:1});var PSl;var Fo=function(){return _.B.apply(this,arguments)||this};
_.O(Fo,_.B);Fo.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Fo.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Fo.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Fo.prototype,"data",void 0);_.R([_.e({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],Fo);
_.q(Fo,"ytd-macro-markers-info-item-renderer",function(){if(PSl!==void 0)return PSl;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return PSl=C},{mode:1});var gwS;var Gw=function(C,F,G,V,J,b){_.hV.call(this);var z=this;this.JSC$23028_containerElement=C;this.hostElement=F;this.supportedSyncItems=G;this.syncEntityKey=V;this.options=J;this.renderLazyListItems=b;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;RKL(this);Y1S(this);this.JSC$23028_scrollAnimation=new _.VI(function(Q){C.scrollTop=Q});
_.Nd(this,this.JSC$23028_scrollAnimation);this.addOnDisposeCallback(function(){TD0(z,!1);z.activeItem&&z.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.O(Gw,_.hV);var RKL=function(C){var F=_.hK(_.I8().resolve(_.P$),function(G){return G.entities.markersEngagementPanelSyncEntity||{}},function(G,V){var J;
if(G[C.syncEntityKey]!==V[C.syncEntityKey]&&((J=G[C.syncEntityKey])==null?void 0:J.activeItemIndex)!==void 0)if(V=G[C.syncEntityKey].activeItemIndex,G=C.getItemByIndex(V)){if(owF(C,G),C.contentVisible)if(C.browsingMode){var b;((b=C.options)==null?void 0:b.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(b=r50(C),G.offsetTop<C.JSC$23028_containerElement.clientHeight+C.JSC$23028_containerElement.scrollTop&&b&&!C.activeItemBelowSyncPosition&&TD0(C,!1));Khl(C)}else C.scrollToItem(G)}else _.Yw(new _.Ay("Could not find "+
C.supportedSyncItems+" sync child to set active.",V,C.JSC$23028_containerElement.querySelectorAll(C.supportedSyncItems).length))});
C.unsubscribeFromTimedMarkersListSyncEntity=F;C.addOnDisposeCallback(F);D1T(C)},D1T=function(C){var F=_.I8().resolve(_.P$);
F=_.Eof(F.getState(),C.syncEntityKey);(F==null?void 0:F.activeItemIndex)!==void 0&&(F=C.getItemByIndex(F.activeItemIndex))&&owF(C,F)},Y1S=function(C){var F=new _.FX(C.onScroll,50,C);
_.Nd(C,F);var G=function(){F.fire()};
C.JSC$23028_containerElement.addEventListener("scroll",G);C.addOnDisposeCallback(function(){C.JSC$23028_containerElement.removeEventListener("scroll",G)})};
Gw.prototype.getItemByIndex=function(C){var F;(F=this.renderLazyListItems)==null||F.call(this,C);F=this.JSC$23028_containerElement.querySelectorAll(this.supportedSyncItems);if(F.length>C)return F[C]};
var owF=function(C,F){C.activeItem&&C.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));F.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));C.activeItem=F};
Gw.prototype.scrollToItem=function(C){C=this.getScrollPositionForItem(C);this.JSC$23028_containerElement.scrollTop!==C&&this.JSC$23028_scrollAnimation.start(this.JSC$23028_containerElement.scrollTop,C,300)};
Gw.prototype.getScrollPositionForItem=function(C){if(this.JSC$23028_containerElement.querySelectorAll(this.supportedSyncItems)[0]===C)return 0;var F,G=((F=this.options)==null?0:F.percentOffset)?this.JSC$23028_containerElement.clientHeight*this.options.percentOffset:0;C=_.RR(C).y+this.JSC$23028_containerElement.scrollTop-(_.RR(this.JSC$23028_containerElement).y+G);return Math.max(0,Math.min(C,this.JSC$23028_containerElement.scrollHeight-this.JSC$23028_containerElement.offsetHeight))};
Gw.prototype.onScroll=function(){this.activeItemBelowSyncPosition=r50(this);if(this.activeItem&&!this.JSC$23028_scrollAnimation.isAnimating()&&Math.abs(this.JSC$23028_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var C;switch((C=this.options)==null?void 0:C.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":p8L(this,!m1S(this));Khl(this);break;default:p8L(this,!0)}}};
var p8L=function(C,F){var G,V;_.I(function(J){if(J.nextAddress==1){if(C.browsingMode)return J.return();C.browsingMode=!0;F&&C.hostElement.classList.add("browsing-mode");C.playerExitBrowsingModeListener=function(){TD0(C,!1)};
return J.yield(_.CY(),2)}G=J.yieldResult;(V=G)==null||V.addEventListener("SEEK_TO",C.playerExitBrowsingModeListener);_.S9(J)})},TD0=function(C,F){F=F===void 0?!0:F;
C.browsingMode&&(C.browsingMode=!1,C.hostElement.classList.remove("browsing-mode"),F&&C.scrollToItem(C.activeItem),C90(C))},C90=function(C){var F,G;
_.I(function(V){if(V.nextAddress==1)return C.playerExitBrowsingModeListener?V.yield(_.CY(),3):V.jumpTo(0);F=V.yieldResult;(G=F)==null||G.removeEventListener("SEEK_TO",C.playerExitBrowsingModeListener);C.playerExitBrowsingModeListener=void 0;_.S9(V)})},Khl=function(C){var F;
((F=C.options)==null?void 0:F.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(m1S(C)?C.hostElement.classList.remove("browsing-mode"):C.activeItem&&C.hostElement.classList.add("browsing-mode"))},r50=function(C){if(!C.activeItem)return!1;
var F,G=((F=C.options)==null?0:F.percentOffset)?C.JSC$23028_containerElement.clientHeight*C.options.percentOffset:0;return C.activeItem.offsetTop>=C.JSC$23028_containerElement.scrollTop+G},m1S=function(C){if(!C.activeItem)return!1;
var F=C.activeItem.offsetTop+14<=C.JSC$23028_containerElement.scrollTop+C.JSC$23028_containerElement.clientHeight;return C.activeItem.offsetTop+C.activeItem.clientHeight-14>=C.JSC$23028_containerElement.scrollTop&&F};
Gw.prototype.panelContentVisibleChanged=function(C){(this.contentVisible=C)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var jxY=function(C,F){C.syncEntityKey=F;var G;(G=C.unsubscribeFromTimedMarkersListSyncEntity)==null||G.call(C);RKL(C)},FOT=function(C,F){C.options=F};var Vo=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return C};
_.O(Vo,_.B);_.n=Vo.prototype;_.n.detached=function(){var C;(C=this.scrollController)==null||C.dispose();this.scrollController=void 0};
_.n.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"}}}};
_.n.dataChanged=function(){var C=this;_.zH(this,function(){if(C.scrollController){var F;(F=C.scrollController)==null||TD0(F,!1);var G,V,J;(V=C.scrollController)==null||jxY(V,(J=(G=C.data)==null?void 0:G.syncModelEntityKey)!=null?J:"default-macro-markers-list-renderer-entity-key");var b,z,Q;(Q=C.scrollController)==null||FOT(Q,{percentOffset:(b=C.data)==null?void 0:b.selectedItemAlignmentPercentOffset,floatingPillType:(z=C.data)==null?void 0:z.floatingPillType})}else{var E,t,k,U;C.scrollController=
new Gw(C.contents,C.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(U=(E=C.data)==null?void 0:E.syncModelEntityKey)!=null?U:"default-macro-markers-list-renderer-entity-key",{percentOffset:(t=C.data)==null?void 0:t.selectedItemAlignmentPercentOffset,floatingPillType:(k=C.data)==null?void 0:k.floatingPillType},function(H){C.renderLazyListItems(H)})}C.scrollController.panelContentVisibleChanged(!!C.panelContentVisible)})};
_.n.computeButtonShape=function(){var C=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){C.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.n.renderLazyListItems=function(C){for(var F=this.contents.children,G=0,V=0;V<F.length;V++){var J=void 0;(J=F[V].ytLazyListBehavior)==null||J.fillRemainingListItems();var b=void 0,z=void 0;J=_.Z((b=this.data)==null?void 0:(z=b.contents)==null?void 0:z[V],_.FMm);z=b=void 0;if((b=J)==null?0:(z=b.contents)==null?0:z.length)G+=J.contents.length;if(G>=C)break}};
_.n.handleSetActivePanelItemAction=function(C){if((C=_.Z(C,h7l))&&this.panelTargetId===C.panelTargetId){C=C.itemIndex;var F,G,V=(G=(F=this.data)==null?void 0:F.syncModelEntityKey)!=null?G:"default-macro-markers-list-renderer-entity-key",J;((J=this.syncEntity)==null?void 0:J.activeItemIndex)!==C&&this.ytdReduxBehavior.dispatch(_.z3("markersEngagementPanelSyncEntity",V,{key:V,activeItemIndex:C}))}};
_.n.onSyncClick=function(){var C;(C=this.scrollController)==null||TD0(C)};
_.n.panelContentVisibleChanged=function(){var C;(C=this.scrollController)==null||C.panelContentVisibleChanged(!!this.panelContentVisible)};
Vo.prototype.panelContentVisibleChanged=Vo.prototype.panelContentVisibleChanged;Vo.prototype.dataChanged=Vo.prototype.dataChanged;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],Vo.prototype,"actionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Vo.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Vo.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.w(_.Rr),_.Y("design:type",Object)],Vo.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Vo.prototype,"data",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Vo.prototype,"useCustomColors",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],Vo.prototype,"panelTargetId",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Vo.prototype,"panelContentVisible",void 0);
_.R([_.$z("#contents"),_.Y("design:type",HTMLElement)],Vo.prototype,"contents",void 0);_.R([_.L({selectorArgs:["data.syncModelEntityKey"],selector:_.Eof}),_.Y("design:type",Object)],Vo.prototype,"syncEntity",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Vo.prototype,"dataChanged",null);
_.R([_.iP("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Vo.prototype,"panelContentVisibleChanged",null);_.R([_.e({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],Vo);
_.q(Vo,"ytd-macro-markers-list-renderer",function(){if(gwS!==void 0)return gwS;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" class="style-scope ytd-macro-markers-list-renderer">\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return gwS=C},{mode:1});var GAY;var iX=function(){return _.B.apply(this,arguments)||this};
_.O(iX,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],iX.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],iX.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],iX.prototype,"data",void 0);_.R([_.e({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],iX);
_.q(iX,"ytd-error-corrections-section-item-renderer",function(){if(GAY!==void 0)return GAY;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return GAY=C},{mode:1});var VW0;var Jb=function(){return _.B.apply(this,arguments)||this};
_.O(Jb,_.B);Jb.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Jb.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Jb.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Jb.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Jb.prototype,"data",void 0);_.R([_.e({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],Jb);
_.q(Jb,"ytd-error-corrections-section-renderer",function(){if(VW0!==void 0)return VW0;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return VW0=C},{mode:1});var ic9;var $c=function(){return _.B.apply(this,arguments)||this};
_.O($c,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],$c.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],$c.prototype,"componentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],$c.prototype,"data",void 0);_.R([_.e({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],$c);
_.q($c,"ytd-topic-link-renderer",function(){if(ic9!==void 0)return ic9;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return ic9=C},{mode:1});var JtF;var bX=function(){var C=_.B.apply(this,arguments)||this;C.modern=_.y("kevlar_modern_sd_v2");C.modernLockupV2=_.y("modernize_structured_description_playlist_lockups_v2");return C};
_.O(bX,_.B);bX.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"}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],bX.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],bX.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],bX.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],bX.prototype,"modern",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],bX.prototype,"modernLockupV2",void 0);
_.R([_.e({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],bX);
_.q(bX,"ytd-video-description-course-section-renderer",function(){if(JtF!==void 0)return JtF;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return JtF=C},{mode:1});var $wF;var nr=function(){var C=_.B.apply(this,arguments)||this;C.modern=_.y("kevlar_modern_sd_v2");return C};
_.O(nr,_.B);nr.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"}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],nr.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],nr.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],nr.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],nr.prototype,"modern",void 0);_.R([_.e({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],nr);
_.q(nr,"ytd-video-description-files-section-renderer",function(){if($wF!==void 0)return $wF;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return $wF=C},{mode:1});var bcY;var uX=function(){return _.B.apply(this,arguments)||this};
_.O(uX,_.B);uX.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"}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],uX.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],uX.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],uX.prototype,"data",void 0);_.R([_.e({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],uX);
_.q(uX,"ytd-video-description-gaming-section-renderer",function(){if(bcY!==void 0)return bcY;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return bcY=C},{mode:1});var nyL;var zw=function(){var C=_.B.apply(this,arguments)||this;C.isExpanded=!1;return C};
_.O(zw,_.B);zw.prototype.computeHasDefaultMetadataEndpoint=function(C){var F;C=C==null?void 0:(F=C.defaultMetadata)==null?void 0:F.runs;return!(!C||C.length!==1||!C[0].navigationEndpoint)};
zw.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.I6.Object.defineProperties(zw.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],zw.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],zw.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],zw.prototype,"isExpanded",void 0);_.R([_.L({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],zw.prototype,"hasDefaultMetadataEndpoint",void 0);
_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],zw.prototype,"isExpandable",null);_.R([_.M("data","isExpandable","isExpanded"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],zw.prototype,"showExpandedMetadata",null);_.R([_.e({is:"ytd-info-row-renderer",disableElementRegistration:!0})],zw);
_.q(zw,"ytd-info-row-renderer",function(){if(nyL!==void 0)return nyL;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return nyL=C},{mode:1});var uV9;var Qo=function(){var C=_.B.apply(this,arguments)||this;C.currentIndex=0;C.supportComponentResize=!0;C.modern=_.y("kevlar_modern_sd_v2");C.JSC$23058_lastScrollContainerWidth=NaN;return C};
_.O(Qo,_.B);_.n=Qo.prototype;
_.n.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"}}}};
_.n.getItemsPath=function(){return"videoLockups"};
_.n.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.n.onIronResize=function(){this.updateVideoLockupStyles()};
_.n.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.n.updateVideoLockupStyles=function(){var C;this.JSC$23058_scrollContainer!==void 0&&(C=this.videoLockups)!=null&&C.length&&(C=this.JSC$23058_scrollContainer.clientWidth,C!==this.JSC$23058_lastScrollContainerWidth&&(this.JSC$23058_lastScrollContainerWidth=C,_.jr(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(C*.8,415)+"px"}),_.oo(this.hostElement,"iron-resize")))};
_.I6.Object.defineProperties(Qo.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var C=[],F;if((F=this.data)==null||!F.carouselLockups)return C;F=_.u(this.data.carouselLockups);for(var G=F.next();!G.done;G=F.next()){G=G.value;var V=void 0;((V=_.Z(G,zBT))==null?0:V.videoLockup)&&C.push(_.Z(G,zBT).videoLockup)}return C}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.videoLockups)==null||!C.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var C=[],F;if((F=this.data)==null||!F.carouselLockups)return C;var G;return(G=_.Z(this.data.carouselLockups[this.scrollCount],zBT))==null?void 0:G.infoRows}}});
Qo.prototype.dataChanged=Qo.prototype.dataChanged;Qo.prototype.onIronResize=Qo.prototype.onIronResize;Qo.prototype.hiddenChanged=Qo.prototype.hiddenChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Qo.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Qo.prototype,"componentBehavior",void 0);_.R([_.w(_.QU.YtdHorizontalListBehavior),_.Y("design:type",Object)],Qo.prototype,"ytdHorizontalListBehavior",void 0);
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Qo.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Qo.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Qo.prototype,"inlineStructuredDescription",void 0);_.R([_.L({value:2}),_.Y("design:type",Number)],Qo.prototype,"initialCount",void 0);_.R([_.L(),_.Y("design:type",Object)],Qo.prototype,"currentIndex",void 0);
_.R([_.L(),_.Y("design:type",Number)],Qo.prototype,"scrollCount",void 0);_.R([_.L(),_.Y("design:type",Object)],Qo.prototype,"supportComponentResize",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Qo.prototype,"contentHidden",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Qo.prototype,"modern",void 0);_.R([_.$z("#scroll-container"),_.Y("design:type",HTMLDivElement)],Qo.prototype,"JSC$23058_scrollContainer",void 0);
_.R([_.iP("contentHidden"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qo.prototype,"hiddenChanged",null);_.R([_.M("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],Qo.prototype,"videoLockups",null);_.R([_.M("videoLockups"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Qo.prototype,"hasVideoLockups",null);
_.R([_.VG("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qo.prototype,"onIronResize",null);_.R([_.M("data","scrollCount"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Qo.prototype,"infoRows",null);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qo.prototype,"dataChanged",null);_.R([_.e({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],Qo);
_.q(Qo,"ytd-video-description-music-section-renderer",function(){if(uV9!==void 0)return uV9;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return uV9=C},{mode:_.oN("kevlar_poly_si_batch_j081")?1:2});var zs0;var IW=function(){var C=_.B.apply(this,arguments)||this;C.modern=_.y("kevlar_modern_sd_v2");return C};
_.O(IW,_.B);IW.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],IW.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],IW.prototype,"ytRendererBehavior",void 0);_.R([_.L({}),_.Y("design:type",Object)],IW.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],IW.prototype,"modern",void 0);_.R([_.e({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],IW);
_.q(IW,"ytd-video-description-transcript-section-renderer",function(){if(zs0!==void 0)return zs0;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return zs0=C},{mode:1});var Qx_;_.gQ(_.d(function(C){var F=_.$b(_.aPs,function(){return C.data().firstProviderLinkStatusEntityKey}),G=_.$b(_.aPs,function(){return C.data().secondProviderLinkStatusEntityKey}),V=function(){var J,b;
return((J=F())==null?void 0:J.linked)||((b=G())==null?void 0:b.linked)};
return _.W("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.W(_.mn,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return C.data().sectionTitle}}),_.W(_.mn,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return V()?C.data().connectedMessage:C.data().notConnectedMessage}}),_.W(_.a,{cond:V,
then:function(){return _.W(_.uC,{data:function(){return C.data().connectedButton}},{buttonViewModel:function(J){return _.W(_.tS,{data:J.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.W(_.a,{cond:function(){return!V()},
then:function(){return _.W(_.uC,{data:function(){return C.data().notConnectedButton}},{buttonViewModel:function(J){return _.W(_.tS,{data:J.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"ln"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.CJ}});_.gQ(_.d(function(C){var F=C.data;return _.W("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.W("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.W(_.mn,{text:function(){return F().sectionTitle}})),_.W("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.W(_.mn,{text:function(){return F().bodyHeader}})),_.W("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.W(_.mn,{text:function(){return F().bodyText}})),_.W(_.a,{cond:function(){return F().attributionText},
then:function(){return _.W("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.W(_.mn,{text:function(){return F().attributionText}}))}}))},"mn"),"how-this-was-made-section-view-model",{props:{data:_.CJ}});_.gQ(_.d(function(C){return _.W("yt-video-description-youchat-section-view-model",{class:_.py("ytVideoDescriptionYouchatSectionViewModelHost")},_.W("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.W(_.mn,{text:function(){return C.data().sectionTitle}})),_.W("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.W(_.mn,{text:function(){return C.data().subHeaderText}})),_.W("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.W(_.tS,{data:function(){return _.Z(C.data().primaryButton,
_.jl)}})))},"nn"),"yt-video-description-youchat-section-view-model",{props:{data:_.CJ}});var Eo=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return C};
_.O(Eo,_.B);_.n=Eo.prototype;
_.n.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}}}}}};
_.n.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.n.dataChanged=function(){var C,F;this.hasDescriptionOnly=!(((C=this.data)==null?void 0:(F=C.items)==null?void 0:F.length)!==1||!_.Z(this.data.items[0],cH))};
_.n.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.n.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.n.autoFocusDescription=function(){var C;((C=_.I8().resolve(_.Qt(_.uc)))==null?0:C.isKeyBoardInUse())&&this.description&&_.J5(this.description)};
_.n.resize=function(){if(_.y("kevlar_disable_sd_resize"))this.JSC$23067_cardList&&_.oo(this.JSC$23067_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.oo(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.oo(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.n.scrollToSection=function(C){if(C=this.getSectionElement(C))_.rz(this.hostElement,"yt-scroll-to-watch-element",[C]),C.focus()};
_.n.getSectionElement=function(C){switch(C){case "infocards-item-section":var F;return(F=this.infocardsSection)!=null?F:null;case "transcript-item-section":var G;return(G=this.transcriptSection)!=null?G:null;case "how-this-was-made-section-item-section":var V;return(V=this.howThisWasMadeSection)!=null?V:null;case "files-item-section":var J;return(J=this.filesSection)!=null?J:null;default:return null}};
_.n.handleSetActiveItemAction=function(C){var F=_.Z(C,h7l),G=F&&(F==null?void 0:F.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$23067_cardList;if(F&&G){C=this.currentActiveChapter;var V=this.currentActiveProblem;F=G==null?void 0:G.getItemByIndex(F.itemIndex);var J=G=!0;F&&(F.active=!0,F.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(G=C!==F,J=!1,this.currentActiveChapter=F):(F==null?void 0:F.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(G=!1,J=V!==F,this.currentActiveProblem=F));C&&G&&(C.active=!1);V&&J&&(V.active=!1)}};
_.I6.Object.defineProperties(Eo.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.y("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
Eo.prototype.onYtExpanderMoreTapped=Eo.prototype.onYtExpanderMoreTapped;Eo.prototype.onHiddenChanged=Eo.prototype.onHiddenChanged;Eo.prototype.dataChanged=Eo.prototype.dataChanged;Eo.prototype.panelContentVisibleChanged=Eo.prototype.panelContentVisibleChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Eo.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Eo.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],Eo.prototype,"actionHandlerBehavior",void 0);_.R([_.w(_.AY),_.Y("design:type",Object)],Eo.prototype,"ironResizableBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Eo.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Boolean)],Eo.prototype,"panelContentVisible",void 0);_.R([_.L(),_.Y("design:type",Boolean)],Eo.prototype,"hasDescriptionOnly",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Eo.prototype,"inlineStructuredDescription",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Eo.prototype,"hidden",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Eo.prototype,"shortsPanel",void 0);_.R([_.L(),_.Y("design:type",Object)],Eo.prototype,"videoSummary",void 0);_.R([_.L(),_.Y("design:type",Object)],Eo.prototype,"merchShelf",void 0);
_.R([_.M("videoSummary"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Eo.prototype,"showVideoSummary",null);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Eo.prototype,"engagementPanel",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Eo.prototype,"watchWhileSdp",void 0);_.R([_.$z("ytd-expandable-video-description-body-renderer"),_.Y("design:type",Object)],Eo.prototype,"description",void 0);
_.R([_.$z("ytd-horizontal-card-list-renderer"),_.Y("design:type",Object)],Eo.prototype,"JSC$23067_cardList",void 0);_.R([_.$z("ytd-horizontal-card-list-renderer[center-items]"),_.Y("design:type",Object)],Eo.prototype,"problemWalkthroughCardList",void 0);_.R([_.$z("ytd-shelf-renderer"),_.Y("design:type",Object)],Eo.prototype,"shelfSection",void 0);_.R([_.$z("ytd-video-description-music-section-renderer"),_.Y("design:type",Object)],Eo.prototype,"musicMetadataSection",void 0);
_.R([_.$z("ytd-video-description-infocards-section-renderer"),_.Y("design:type",Object)],Eo.prototype,"infocardsSection",void 0);_.R([_.$z("ytd-video-description-transcript-section-renderer"),_.Y("design:type",Object)],Eo.prototype,"transcriptSection",void 0);_.R([_.$z("how-this-was-made-section-view-model"),_.Y("design:type",Object)],Eo.prototype,"howThisWasMadeSection",void 0);_.R([_.$z("ytd-video-description-files-section-renderer"),_.Y("design:type",Object)],Eo.prototype,"filesSection",void 0);
_.R([_.iP("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Eo.prototype,"panelContentVisibleChanged",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Eo.prototype,"dataChanged",null);_.R([_.iP("hidden"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Eo.prototype,"onHiddenChanged",null);
_.R([_.VG("yt-expander-more-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Eo.prototype,"onYtExpanderMoreTapped",null);_.R([_.e({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],Eo);
_.q(Eo,"ytd-structured-description-content-renderer",function(){if(Qx_!==void 0)return Qx_;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Qx_=C},{mode:2});var IeL;var Eyl;var Wy=function(){return _.B.apply(this,arguments)||this};
_.O(Wy,_.B);Wy.prototype.computeAriaLabel=function(C){var F,G;return(C==null?void 0:(F=C.accessibility)==null?void 0:(G=F.accessibilityData)==null?void 0:G.label)||_.iQ("LOADING",void 0,"Loading")};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Wy.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Wy.prototype,"data",void 0);_.R([_.L({computed:"computeAriaLabel(data)"}),_.Y("design:type",String)],Wy.prototype,"ariaLabel",void 0);_.R([_.Z5({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],Wy);
_.q(Wy,"yt-content-loading-renderer",function(){if(Eyl===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;IeL===void 0&&(IeL=document.createElement("template"));var V=IeL;G.call(F,V.content.cloneNode(!0),C.content.firstChild);Eyl=C}C=Eyl;return C},{mode:_.oN("kevlar_poly_si_batch_j043")?1:2});_.gQ(_.d(function(C){var F=_.u(_.yH(!1,void 0,"OZMtVb")),G=F.next().value,V=F.next().value;F=_.u(_.yH(!1,void 0,"qWERsf"));var J=F.next().value,b=F.next().value;_.q4(function(){var E=_.Z(C.data().collaboratePlaylistCollaborationSetting,CH6);E&&V(E.switchedOnByDefault);var t=_.Z(C.data().allowNewCollaboratorsPlaylistCollaborationSetting,CH6);t&&b(t.switchedOnByDefault);if(!E&&!t||!E&&C.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")V(!0),b(!0)});
var z=function(E){V(E);b(E);var t=C.data().playlistCollaborationEntityKey||"";var k=_.Av().getState();(k=_.jN(k.entities,"playlistCollaborationEntity",t))&&(k==null?void 0:k.isCollaborative)===E||_.Av().dispatch(_.z3("playlistCollaborationEntity",t,Object.assign({},k,{isCollaborative:E})))},Q=function(E){b(E)};
return _.W("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.W("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.W(_.uC,{data:function(){return C.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(E){return _.W(_.GwG,{data:E.data,
onSwitch:z})}})),_.W(_.a,{cond:G,
then:function(){return _.W(_.WQ,null,_.W("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.W(_.uC,{data:function(){return C.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(E){return _.W(_.GwG,{data:E.data,
onSwitch:Q,overrideDisabled:!1})}})),_.W(_.a,{cond:J,
then:function(){return _.W("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.W(_.uC,{data:function(){return C.data().copyLinkButton}},{buttonViewModel:_.tS}))}}),_.W("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.W(_.uC,{data:function(){return C.data().playlistCollaborators}},{contentListItemViewModel:_.GcL})))}}))},"on"),"playlist-collaboration-view-model",{props:{data:_.CJ}});var WO_=_.d(function(C){var F=C.data;var G=C.customCommandResolver;return _.W(_.WQ,null,_.W("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.W(_.uC,{data:function(){return F().adAvatar}},{adAvatarViewModel:function(V){return _.W(_.Sxo,{data:V.data,
customCommandResolver:G})}})),_.W("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.W(_.a,{cond:function(){return F().headline},
then:function(V){return _.W(_.mn,{text:V,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.W("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.W(_.uC,{data:function(){return F().adBadge}},{adBadgeViewModel:function(V){return _.W(_.HI,{data:V.data,
hasDot:function(){return F().primaryDetailsLine!==void 0},
customCommandResolver:G,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.W(_.uC,{data:function(){return F().primaryDetailsLine}},{adDetailsLineViewModel:function(V){return _.W(_.l7,{data:V.data,
customCommandResolver:G,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"pn"),tWL=_.d(function(C){var F=C.data;
var G=C.customCommandResolver;return _.W("ad-avatar-lockup-view-model",{class:function(){var V;return((V=F().interaction)==null?0:V.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.dQ(_.Wv({visibilityCallback:function(V){var J,b=(J=F().interaction)==null?void 0:J.onFirstVisible;V&&b&&_.wQ(b)},
showOption:_.Qm}),_.OI(function(){return F().interaction},G)),
"aria-label":function(){var V,J;return(V=F().interaction)==null?void 0:(J=V.accessibility)==null?void 0:J.label}},_.W(_.e_,null,_.W(_.hg,{when:function(){return F().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.W(WO_,{data:F,
customCommandResolver:G})}),_.W(_.cQ,null,function(){return null})))},"qn");_.gQ(_.d(function(C){var F=C.data;var G=C.panelContentVisibility;C=_.Wv({visibilityCallback:function(b){var z,Q=(z=F().interaction)==null?void 0:z.onFirstVisible;b&&Q&&_.wQ(Q)},
showOption:_.Qm});var V=_.OI(function(){return F().interaction},PbS);
_.RX(function(){var b,z;if(z=_.mN("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Q;z=(Q=z())==null?void 0:Q.onLayoutVisibleCallback}else z=null;(b=z)==null||b()},"rn");
var J=function(){return G()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.W("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.dQ(C,V)},_.W("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.W("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.W(_.a,{cond:_.ICS("(min-width: "+((0,_.MF)()+_.eF)+"px) or (max-width: 600px)"),then:function(){return _.W(_.uC,{data:function(){return F().adImage}},{adImageViewModel:function(b){return _.W(_.f$,{data:b.data,
targetHeight:80,customCommandResolver:PbS})}})}})),_.W("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.W("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.W(_.uC,{data:function(){return F().adAvatarLockup}},{adAvatarLockupViewModel:function(b){return _.W(tWL,{data:b.data,
customCommandResolver:PbS})}})),_.W(_.a,{cond:J,
then:function(){return _.W(_.uC,{data:function(){return F().adButton}},{adButtonViewModel:function(b){return _.W(_.EG,{data:b.data,
customCommandResolver:PbS})}})},
else:function(){return _.W(_.uC,{data:function(){return F().menu}},{buttonViewModel:_.tS})}}),_.W("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.W(_.uC,{data:function(){var b=_.Z(F().toggleButton,_.Gz);
return{toggleButtonViewModel:Object.assign({},b,{isTogglingDisabled:!0,isToggled:J()})}}},{toggleButtonViewModel:_.AS})))))},"sn"),"panel-ad-header-image-lockup-view-model",{props:{data:_.CJ,
panelContentVisibility:_.CJ}});_.gQ(_.d(function(C){var F=function(){return _.Z(C.data().inputComposerViewModel,j8l)},G=_.nZ(_.SV.currentPageSubTypeSelector),V=_.nZ(_.SV.persistentPanelVisibleSelector),J=_.u(_.yH(!1,void 0,"ZdYZ1d")),b=J.next().value,z=J.next().value;
J=_.u(_.yH(!1,void 0,"iu0Tnf"));var Q=J.next().value,E=J.next().value,t=function(){S(!0);var lZ;_.wQ(((lZ=F())==null?void 0:lZ.onSubmitCommand)||{})},k=function(){if(V()&&!Q()){var lZ;
(lZ=_.jV())==null||lZ.removeCueRange("aic-proactive");z(!1);E(!0);t();lZ={continuationCommand:{token:F().endOfVideoContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var eq={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),pageContext:L9()}};_.ND(lZ,{form:{formData:eq},commandController:{onSuccess:function(){S(!1)},
onServerError:function(){_.ND(YqF(T()));S(!1)}}})}},U=function(){var lZ=_.jV();
if(lZ&&!b()&&!Q()){var eq=lZ.getDuration();eq>60&&(lZ.addCueRange("aic-proactive",eq-60,eq-20),z(!0))}},H=function(){var lZ;
return((lZ=F())==null?void 0:lZ.youchatPendingResponseEntityKey)||""},l=_.$b(_.Wdz,H),N=function(){var lZ;
return!((lZ=l())==null||!lZ.isPendingResponse)},S=function(lZ){_.tU6(H())(lZ)};
J=_.u(_.yH(!0,void 0,"FwVSpb"));var f=J.next().value,c=J.next().value,A=function(){var lZ,eq;var OB=_.Z((eq=F())==null?void 0:eq.inputFormField,Bi9);return OB==null?void 0:(lZ=OB.contentProperties)==null?void 0:lZ.placeholderText},T=function(){return F().sectionTargetId||"youchat_messages_section"};
J=_.nc("yt-chat-input-view-model");var P=_.Jt("textarea"),g=_.$b(Lv_,"chat_input_view_model_state"),r=B0F(),C9=function(){var lZ;return!((lZ=g())==null||!lZ.value)},Wo=function(){return C.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},EB=function(){var lZ;
(lZ=_.jV())==null||lZ.removeCueRange("aic-proactive");z(!1);E(!1);var eq;((eq=F())==null?0:eq.navigationContinuation)&&V()&&(t(),lZ={continuationCommand:{token:F().navigationContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},eq={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:T0S(),pageContext:L9()}},_.ND(lZ,{form:{formData:eq},commandController:{onSuccess:function(){S(!1)},
onServerError:function(){_.ND(YqF(T()));S(!1)}}}))},L9=function(){if(_.y("enable_ai_companion")){var lZ=_.I8().resolve(_.Qt(_.Glt));
switch(G()){case "watch":var eq,OB;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(eq=_.jV())==null?void 0:(OB=eq.getVideoData())==null?void 0:OB.video_id};case "search":var yr,Rl;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(yr=lZ==null?void 0:_.U3T(lZ))!=null?yr:[],entityId:(Rl=(new URLSearchParams(window.location.search)).get("search_query"))!=null?Rl:void 0};case "companion-canvas":var w2;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(w2=lZ==null?void 0:_.U3T(lZ))!=null?w2:[]}}}};
_.q4(function(){var lZ;if(!C9()&&((lZ=F())==null?0:lZ.welcomeFeatureContinuation)){var eq;((eq=F())==null?0:eq.setPendingResponseOnWelcome)&&S(!0);lZ={continuationCommand:{token:F().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};eq={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:T0S(),pageContext:L9()}};_.ND(lZ,{form:{formData:eq}});r(!0)}var OB=T(),yr=_.I8().resolve(_.Qt(_.Xx)),Rl=function(){_.nY.remove(OB);r(!1)},w2=function(){_.lb(function(){if(Wo()&&
(EB(OB),G()==="watch")){var jG=_.jV();
jG&&(jG.addEventListener("onStateChange",U),jG.addEventListener("onCueRangeEnter",k))}})};
lZ=_.y("enable_ai_companion")?!Wo():!0;yr==null||yr.addEventListener("yt-navigate-start",Rl,{once:lZ});yr==null||yr.addEventListener("yt-navigate-finish",w2,{once:lZ});_.q0(function(){yr==null||yr.removeEventListener("yt-navigate-start",Rl);yr==null||yr.removeEventListener("yt-navigate-finish",w2);var jG=_.jV();jG&&(jG.removeEventListener("onCueRangeEnter",k),jG.removeEventListener("onStateChange",U),jG.removeCueRange("aic-proactive"))})});
var ki=function(){var lZ=P.value.value;P.value.value="";gKT(P.value);var eq,OB=((eq=F())==null?void 0:eq.enableGradientColorBg)||!1;eq=Rlz(T(),lZ,OB);_.ND(eq);t();var yr;eq={continuationCommand:{token:(yr=F())==null?void 0:yr.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};lZ={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:lZ,playerOffsetMs:T0S(),pageContext:L9()}};_.ND(eq,{form:{formData:lZ},commandController:{onSuccess:function(){S(!1)},
onServerError:function(){_.ND(YqF(T()));S(!1)}}})};
return _.W("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:J},_.W("div",{class:"chatInputViewModelChatInputWrapper"},_.W("form",{class:"chatInputViewModelChatInputForm"},_.W("textarea",{class:"chatInputViewModelChatInput",el:P,"on:keydown":_.CZ(function(lZ){var eq=N()||!1;gKT(P.value);eq||lZ.key!=="Enter"||lZ.shiftKey||(lZ.preventDefault(),ki());return!1}),
"on:keyup":_.CZ(function(){c(P.value.value.length===0);return!1}),
"aria-label":function(){return N()?C.data().loadingAnimationA11yLabel||"":A()},
placeholder:A,rows:1}),_.W(_.tS,{data:function(){return _.Z(C.data().sendButton,_.jl)},
onClick:function(lZ){lZ.preventDefault();ki();c(P.value.value.length===0)},
buttonOverrides:function(){return{disabled:f()||N()}}})),_.W(_.mn,{className:"chatInputViewModelChatDisclaimer",
text:function(){var lZ;return(lZ=_.Z(C.data().disclaimer,_.G6S))==null?void 0:lZ.text}})))},"tn"),"yt-chat-input-view-model",{props:{data:_.CJ}});var ae6=["engagement-panel-clip-create","engagement-panel-clip-view"],kA9=0,tb=function(){var C=_.B.apply(this,arguments)||this;var F;C.headerData=(F=C.data)==null?void 0:F.header;C.darkerPanels=_.y("web_watch_darker_panels");C.matchContentTheme=_.y("web_watch_panel_content_match_theme");C.disableAutoFill=!1;C.isFullscreen=!1;C.isTheaterMode=!1;C.liveChatReplyPanel=!1;C.enableAnchoredPanel=_.y("desktop_shorts_v2_anchored_panel");C.disableBackdropFilter=_.y("web_disable_backdrop_filter");C.isPersistentPanel=
!1;C.trackEngagementPanelVisibility=_.y("web_watch_track_engagement_panel_visibility");C.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 C};
_.O(tb,_.B);_.n=tb.prototype;
_.n.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]",learningChatEngagementPanel:"[[learningChatEngagementPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},
"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(C){var F;return(C==null?void 0:(F=C.webComponentHint)==null?void 0:F.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.n.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var C;if((C=this.hostElement.parentElement)==null?0:C.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.n.detached=function(){this.updateTheaterDisablement()};
_.n.showPanel=function(){var C=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.gT.addJob(function(){C.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.n.maybeScrollToItemSection=function(C){var F=this,G,V=C==null?void 0:(G=C.sectionListEngagementPanelExtras)==null?void 0:G.scrollToItemSectionIdentifier;V&&_.gT.addJob(function(){var J;(J=F.sectionListRendererElement)==null||J.scrollToItemSection(V)},8)};
_.n.hidePanel=function(){var C=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.gT.addJob(function(){C.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.n.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.n.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.n.updatePanel=function(C,F,G,V){var J=this;if((C=C==null?void 0:C.engagementPanelSectionListRenderer)||V){if(C){V=C.header;var b=C.content,z=C.footer;(C=C.targetId)&&this.set("data.targetId",C);V&&this.set("data.header",V);b&&this.set("data.content",b);z&&this.set("data.footer",z)}else V&&(C=V.content,b=V.secondaryHeaderContent,(V=V.targetId)&&this.set("data.targetId",V),C&&this.set("data.content",C),b&&(this.secondaryHeaderData=b));this.updateChildVisibilityProperties();if(F){var Q;_.y("kevlar_update_panel_focus_scroll_killswitch")||
(Q={preventScroll:!0});this.focus(Q)}_.zH(this,function(){_.oo(J.hostElement,"yt-refit");J.maybeScrollToItemSection(G)})}};
_.n.computeHeaderData=function(){var C,F=(0,_.xf.unsafeClone)((C=this.data)==null?void 0:C.header);if(F){C=new _.Cx(Object.keys(F)[0]);var G=_.Z(F,C),V=_.Z(this.secondaryHeaderData,C);V&&_.ke(F,C,Object.assign({},V,G))}return F};
_.n.getReloadContinuation=function(){var C,F,G,V=_.u(((C=this.data)==null?void 0:(F=C.content)==null?void 0:(G=F.sectionListRenderer)==null?void 0:G.continuations)||[]);for(C=V.next();!C.done;C=V.next())if(C=C.value,C.reloadContinuationData)return C.reloadContinuationData.continuation};
_.n.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var C;((C=this.data)==null?0:C.targetId)&&(C=this.contentElement.firstElementChild)&&C.setAttribute("panel-target-id",this.data.targetId)};
_.n.forwardPopupClosedToFlowRootRenderer=function(){var C=_.ot(this.hostElement).querySelector("ytd-flow-root-renderer");if(C)C.onPopupClosed()};
_.n.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var C;if(!ae6.includes((C=this.theaterDisablementPanelIdentifier)!=null?C:""))if(C=_.y("web_watch_imax_theater_mode")&&this.isTheaterMode,C=_.y("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||C,_.y("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||C){var F;this.visibility=(F=this.data)==null?void 0:F.visibility;var G;this.trackEngagementPanelVisibility&&((G=this.data)==null?void 0:G.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var V,J,b,z;this.contentEmpty=!!(((V=this.data)==null?0:(J=V.content)==null?0:J.structuredDescriptionContentRenderer)&&Object.keys((b=this.data)==null?void 0:(z=b.content)==null?void 0:
z.structuredDescriptionContentRenderer).length===0);(F=_.I8().resolve(_.dB))&&F.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.n.isTheaterModeChanged=function(){_.y("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.n.isFullscreenChanged=function(){_.y("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.n.focus=function(C){if(this.header)this.header.focus(C);else{var F;(F=_.ot(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||F.focus(C)}};
_.n.visibilityChanged=function(){if(!_.y("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var C=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",F=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",G=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",V=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",J=V||!this.lastVisibility,b,z,Q,E=((b=this.data)==null?void 0:(z=b.identifier)==null?void 0:
z.tag)||((Q=this.data)==null?void 0:Q.panelIdentifier);if(C&&J){var t;((t=this.data)==null?0:t.onShowCommands)&&_.pX(this.hostElement,this.data.onShowCommands,this.hostElement);E&&_.s3().dispatch(_.rh({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:E}}))}else if(F&&G){var k;((k=this.data)==null?0:k.onHideCommands)&&_.pX(this.hostElement,this.data.onHideCommands,this.hostElement);E&&_.s3().dispatch(_.rh({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:E}}))}C&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*kA9++));_.y("kevlar_watch_focus_on_engagement_panels")&&C&&V&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.n.notifyVisibilityChanged=function(C){var F;_.KX(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,C,(F=this.data)==null?void 0:F.targetId]);if(_.y("autonav_pause_for_comments_ep")){var G;_.oo(this.hostElement,"yt-autonav-engagement-panel-visible-changed",{visible:C==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",targetId:(G=this.data)==null?void 0:G.targetId})}};
_.n.updateTheaterDisablement=function(){if(!_.y("kevlar_watch_theater_disablement_killswitch")){var C=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&ae6.includes(C)&&!_.y("watch_next_grid_ignore_disallowed_panels")){var F=_.l5(_.s3().getState()),G=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";C!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():G?(this.originalTheaterState===void 0&&(this.originalTheaterState=F,this.theaterDisablementPanelIdentifier=
C),F&&_.rz(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.n.clearTheaterDisablement=function(){_.rz(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.n.updateChildVisibilityProperties=function(){this.hostElement||_.y("kevlar_panel_property_init_killswitch")||this._enableProperties();var C=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=C);var F,G=(F=this.headerElement)==null?void 0:F.firstElementChild;if(G&&!this.adHeaderImageLockupViewModel){F=C==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";G.collapsed=F;G=_.ot(G).querySelector("#visibility-button");if(!G)return;(G=G.firstElementChild)&&
G.polymerController.is==="ytd-toggle-button-renderer"&&G.polymerController.data.isToggled!==F&&G.polymerController.set("data.isToggled",F)}var V;if(F=(V=this.contentElement)==null?void 0:V.firstElementChild)if(C&&C!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")F.removeAttribute("panel-content-visible");else{F.setAttribute("panel-content-visible","");var J;(J=F.markDirty)==null||J.call(F)}};
_.n.onYtChangeEngagementPanelVisibilityAction=function(C){var F=this,G,V=(G=this.data)==null?void 0:G.targetId,J,b,z;G=((J=this.data)==null?void 0:(b=J.identifier)==null?void 0:b.tag)||((z=this.data)==null?void 0:z.panelIdentifier);var Q=_.Z(C,_.w3o),E;C=V&&(Q==null?void 0:Q.targetId)===V||G&&(Q==null?void 0:(E=Q.panelIdentifier)==null?void 0:E.tag)===G;this.dialog&&C&&(Q==null?void 0:Q.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(V==="engagement-panel-comments-section"?_.rz(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.rz(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",G]));!_.y("kevlar_use_engagement_panel_management_component")&&C&&(V=Q.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!V?_.gT.addJob(function(){F.visibility=Q.visibility},2,this.hideDelayMs):this.visibility=Q.visibility,Q.visibility&&this.notifyVisibilityChanged(Q.visibility))};
_.n.onYtScrollToEngagementPanelCommand=function(C){var F,G=(F=this.data)==null?void 0:F.targetId,V,J,b;F=((V=this.data)==null?void 0:(J=V.identifier)==null?void 0:J.tag)||((b=this.data)==null?void 0:b.panelIdentifier);C=_.Z(C,_.xiy);var z;(G&&(C==null?void 0:C.targetId)===G||F&&(C==null?void 0:(z=C.panelIdentifier)==null?void 0:z.tag)===F)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.rz(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.n.attachVEs=function(C){var F,G;(C==null?0:(F=C.content)==null?0:(G=F.productListRenderer)==null?0:G.trackingParams)&&_.ia().graftServerVe(C.content.productListRenderer.trackingParams);var V,J;(C==null?0:(V=C.content)==null?0:(J=V.transcriptRenderer)==null?0:J.trackingParams)&&_.ia().graftServerVe(C.content.transcriptRenderer.trackingParams)};
_.n.onYtUpdateEngagementPanelAction=function(C){var F,G=(F=this.data)==null?void 0:F.targetId;C=_.Z(C,Agn);G&&(C==null?void 0:C.targetId)===G&&(this.updatePanel({engagementPanelSectionListRenderer:{header:C==null?void 0:C.header,content:C==null?void 0:C.content}},!1),this.attachVEs(C))};
_.n.onYtShowEngagementPanelScrimAction=function(C){var F,G=(F=this.data)==null?void 0:F.targetId;C=_.Z(C,cg6);G&&(C==null?void 0:C.engagementPanelTargetId)===G&&(this.scrimmed=!0)};
_.n.onYtHideEngagementPanelScrimAction=function(C){var F,G=(F=this.data)==null?void 0:F.targetId;C=_.Z(C,fNl);G&&(C==null?void 0:C.engagementPanelTargetId)===G&&(this.scrimmed=!1)};
_.n.getIdentifier=function(){var C,F,G;return((C=this.data)==null?void 0:C.panelIdentifier)||((F=this.data)==null?void 0:(G=F.identifier)==null?void 0:G.tag)};
_.n.getSurface=function(){var C,F;return(C=this.data)==null?void 0:(F=C.identifier)==null?void 0:F.surface};
_.I6.Object.defineProperties(tb.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)==null?void 0:C.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)==null?void 0:C.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var C=this.getIdentifier();return C==="engagement-panel-youchat"||C==="PAyouchat"}}});
tb.prototype.visibilityChanged=tb.prototype.visibilityChanged;tb.prototype.isFullscreenChanged=tb.prototype.isFullscreenChanged;tb.prototype.isTheaterModeChanged=tb.prototype.isTheaterModeChanged;tb.prototype.dataChanged=tb.prototype.dataChanged;tb.prototype.forwardPopupClosedToFlowRootRenderer=tb.prototype.forwardPopupClosedToFlowRootRenderer;tb.prototype.onYtRendererstamperFinished=tb.prototype.onYtRendererstamperFinished;
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],tb.prototype,"actionHandlerBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],tb.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],tb.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.h9.YtEventForwardingBehavior),_.Y("design:type",Object)],tb.prototype,"ytEventForwardingBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],tb.prototype,"data",void 0);
_.R([_.L({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.Y("design:type",Object)],tb.prototype,"headerData",void 0);_.R([_.L(),_.Y("design:type",Object)],tb.prototype,"secondaryHeaderData",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],tb.prototype,"visibility",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],tb.prototype,"contentEmpty",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],tb.prototype,"scrimmed",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],tb.prototype,"dialog",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],tb.prototype,"dropdown",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],tb.prototype,"darkerPanels",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],tb.prototype,"matchContentTheme",void 0);_.R([_.L(),_.Y("design:type",Object)],tb.prototype,"disableAutoFill",void 0);
_.R([_.L({reflectToAttribute:!0,value:_.y("optimal_reading_width_comments_ep")}),_.Y("design:type",Boolean)],tb.prototype,"optimalReadingWidthComments",void 0);_.R([_.L(),_.Y("design:type",Number)],tb.prototype,"hideDelayMs",void 0);_.R([_.L({selector:_.yA,reflectToAttribute:!0}),_.Y("design:type",Object)],tb.prototype,"isFullscreen",void 0);_.R([_.L({selector:_.l5,reflectToAttribute:!0}),_.Y("design:type",Object)],tb.prototype,"isTheaterMode",void 0);
_.R([_.L(),_.Y("design:type",Number)],tb.prototype,"showDelayMs",void 0);_.R([_.L({reflectToAttribute:!0}),_.M("data.targetId"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],tb.prototype,"targetId",null);_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],tb.prototype,"webSize",null);_.R([_.L(),_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],tb.prototype,"hideFooterBorder",null);
_.R([_.L(),_.Y("design:type",Object)],tb.prototype,"isWatch",void 0);_.R([_.L(),_.Y("design:type",Object)],tb.prototype,"originalTheaterState",void 0);_.R([_.L(),_.Y("design:type",Object)],tb.prototype,"theaterDisablementPanelIdentifier",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],tb.prototype,"isWatchWhilePanel",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],tb.prototype,"shortsPanel",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],tb.prototype,"liveChatEngagementPanel",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],tb.prototype,"learningChatEngagementPanel",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],tb.prototype,"liveChatReplyPanel",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],tb.prototype,"enableAnchoredPanel",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],tb.prototype,"disableBackdropFilter",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],tb.prototype,"isPersistentPanel",void 0);_.R([_.L(),_.Y("design:type",Object)],tb.prototype,"trackEngagementPanelVisibility",void 0);_.R([_.$z("#header"),_.Y("design:type",HTMLElement)],tb.prototype,"headerElement",void 0);_.R([_.$z("#header > *"),_.Y("design:type",HTMLElement)],tb.prototype,"header",void 0);
_.R([_.$z("ytd-section-list-renderer"),_.Y("design:type",Object)],tb.prototype,"sectionListRendererElement",void 0);_.R([_.$z("panel-ad-header-image-lockup-view-model"),_.Y("design:type",HTMLElement)],tb.prototype,"adHeaderImageLockupViewModel",void 0);_.R([_.$z("#content"),_.Y("design:type",HTMLElement)],tb.prototype,"contentElement",void 0);
_.R([_.VG("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tb.prototype,"onYtRendererstamperFinished",null);_.R([_.VG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tb.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.R([_.zp("data","isFullscreen","isTheaterMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tb.prototype,"dataChanged",null);
_.R([_.iP("isTheaterMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tb.prototype,"isTheaterModeChanged",null);_.R([_.iP("isFullscreen"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tb.prototype,"isFullscreenChanged",null);_.R([_.iP("visibility"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tb.prototype,"visibilityChanged",null);
_.R([_.e({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],tb);
_.q(tb,"ytd-engagement-panel-section-list-renderer",function(){if(d1l!==void 0)return d1l;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return d1l=C},{mode:_.oN("kevlar_poly_si_batch_j028")?1:2});var UwB;var aW=function(){var C=_.B.apply(this,arguments)||this;C.lastRenderedPanelIds=new Set;C.visiblePanels=[];C.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return C};
_.O(aW,_.B);_.n=aW.prototype;_.n.dataChanged=function(){if(this.data){for(var C=[],F=_.u(this.data),G=F.next();!G.done;G=F.next()){G=G.value;var V=void 0,J=void 0,b=(V=G)==null?void 0:(J=V.engagementPanelSectionListRenderer)==null?void 0:J.visibility;J=V=void 0;((V=G)==null?0:(J=V.engagementPanelSectionListRenderer)==null?0:J.targetId)&&b!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&C.push(G)}this.visiblePanels=C}else this.visiblePanels=[]};
_.n.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}}};
_.n.withoutVisiblePanelById=function(C){return this.visiblePanels.filter(function(F){var G;return((G=F.engagementPanelSectionListRenderer)==null?void 0:G.targetId)!==C})};
_.n.onYtChangeEngagementPanelVisibilityAction=function(C){var F=this,G=_.Z(C,_.w3o);if(this.data&&(G==null?0:G.targetId)&&(G==null?0:G.visibility)){var V,J=(V=this.data.find(function(z){var Q;return((Q=z.engagementPanelSectionListRenderer)==null?void 0:Q.targetId)===G.targetId}))==null?void 0:V.engagementPanelSectionListRenderer;
if(J){var b=this.withoutVisiblePanelById(G.targetId);G.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(C=this.data.find(function(z){var Q;return((Q=z.engagementPanelSectionListRenderer)==null?void 0:Q.targetId)===G.targetId}))&&(b=[C].concat(_.da(b)));
this.hideDelayMs&&G.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&b.length===0?_.gT.addJob(function(){J.visibility=G.visibility;F.visiblePanels=b},10,this.hideDelayMs):(J.visibility=G.visibility,this.visiblePanels=b);
_.KX(this.hostElement,"yt-engagement-panels-visible-changed",[b])}}};
_.n.onRendererstamperFinished=function(){var C=new Set(this.visiblePanels.map(function(F){var G;return(G=F.engagementPanelSectionListRenderer)==null?void 0:G.targetId}));
this.handlePanelVisibilityChange(C,this.lastRenderedPanelIds);this.lastRenderedPanelIds=C};
_.n.handlePanelVisibilityChange=function(C,F){C=C===void 0?new Set:C;F=F===void 0?new Set:F;if(this.data)for(var G=_.u(this.data),V=G.next();!V.done;V=G.next()){V=V.value;var J=void 0,b=void 0,z=(J=V)==null?void 0:(b=J.engagementPanelSectionListRenderer)==null?void 0:b.targetId;if(z&&(J=F.has(z),b=C.has(z),z=void 0,!J&&b?(b=J=void 0,z=(J=V)==null?void 0:(b=J.engagementPanelSectionListRenderer)==null?void 0:b.onShowCommands):J&&!b&&(b=J=void 0,z=(J=V)==null?void 0:(b=J.engagementPanelSectionListRenderer)==
null?void 0:b.onHideCommands),z))for(V=_.u(z),z=V.next();!z.done;z=V.next())this.ytComponentBehavior.resolveCommand(z.value)}};
aW.prototype.onRendererstamperFinished=aW.prototype.onRendererstamperFinished;aW.prototype.dataChanged=aW.prototype.dataChanged;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],aW.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],aW.prototype,"actionHandlerBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],aW.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],aW.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],aW.prototype,"lastRenderedPanelIds",void 0);_.R([_.L(),_.Y("design:type",Number)],aW.prototype,"hideDelayMs",void 0);_.R([_.L(),_.Y("design:type",Array)],aW.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Array)],aW.prototype,"visiblePanels",void 0);_.R([_.L(),_.Y("design:type",Boolean)],aW.prototype,"isWatchWhilePanel",void 0);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aW.prototype,"dataChanged",null);_.R([_.VG("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aW.prototype,"onRendererstamperFinished",null);_.R([_.e({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],aW);
_.q(aW,"ytd-watch-engagement-panels",function(){if(UwB!==void 0)return UwB;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return UwB=C},{mode:1});var HcT;var kc=function(){return _.B.apply(this,arguments)||this};
_.O(kc,_.B);kc.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.$O(_.ot(this.hostElement).querySelector("#text"),_.gOl(_.Ta8,this.data.companionLegalText))};
kc.prototype.computeAutoScrollEnabled=function(C,F){return C&&!F};
kc.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
kc.prototype.onToggleTap=function(){this.expanded=!this.expanded};
kc.prototype.expandedChanged=kc.prototype.expandedChanged;kc.prototype.dataChanged=kc.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],kc.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.v_0),_.Y("design:type",Object)],kc.prototype,"ytdAutoScrollBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],kc.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],kc.prototype,"expanded",void 0);
_.R([_.L({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.Y("design:type",Boolean)],kc.prototype,"autoScrollEnabled",void 0);_.R([_.L(),_.Y("design:type",String)],kc.prototype,"expanderIcon",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kc.prototype,"dataChanged",null);
_.R([_.iP("expanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kc.prototype,"expandedChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],kc);
_.q(kc,"ytd-companion-legal-text-renderer",function(){if(HcT!==void 0)return HcT;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return HcT=C},{mode:1});var leY;var Uo=function(){var C=_.B.apply(this,arguments)||this;C.buttonUpdate=_.y("web_modern_buttons");C.kevlarWatchGrid=_.y("kevlar_watch_grid");C.centerAlignDescription=_.y("action_companion_center_align_description");C.truncateDomain=_.y("action_companion_truncate_domain");C.enableMonoStyle=_.y("enable_default_mono_cta_migration_web_client");return C};
_.O(Uo,_.B);_.n=Uo.prototype;_.n.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.n.getOnLayoutVisibleCallback=function(){var C=_.mN("yt.www.ads.eventcache.getLastCompanionData");return C?(C=C())&&C.onLayoutVisibleCallback:null};
_.n.getLayoutId=function(){var C=_.mN("yt.www.ads.eventcache.getLastCompanionData");return C?(C=C())&&C.layoutId:null};
_.n.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",Uo.JSC$23115_DEFAULT_AD_BADGE_RENDERER);var C=this.getOnLayoutVisibleCallback();C&&C()}};
_.n.getButtonRenderer=function(C){return C.actionButton&&_.Z(C.actionButton,_.DY)?(delete _.Z(C.actionButton,_.DY).navigationEndpoint,_.Z(C.actionButton,_.DY)):{}};
_.n.onClick=function(C){var F=this;if((!_.y("web_modern_buttons")||!_.dE(_.AR(C),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){C=_.gE();var G=this.getLayoutId();C&&G&&_.y("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?C.getPlayerPromise().then(function(V){(new _.xV(V)).executeCommand(F.data.navigationEndpoint,G)}):_.y("kevlar_companion_resolve_command_killswitch")?_.oo(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.rz(this.hostElement,"yt-companion-ad-clicked",["action-companion",G])}};
_.I6.Object.defineProperties(Uo.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var C,F,G;return((C=this.data)==null?0:(F=C.detailsLine)==null?0:(G=F.adRating)==null?0:G.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 C,F,G,V;return((C=this.data)==null?0:(F=C.detailsLine)==null?0:(G=F.adRating)==null?0:(V=G.ratingIcon)==null?0:V.iconType)?_.p5(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var C,F,G,V;return((C=this.data)==null?0:(F=C.detailsLine)==null?0:(G=F.texts)==null?0:(V=G[0])==null?0:V.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 C,F;return((C=this.data)==null?0:(F=C.description)==null?0:F.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var C=_.mN("yt.www.ads.eventcache.getLastCompanionData");return C?(C=C())&&C.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var C=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return C?C.indexOf("/default_banner")!==-1:!0}}});
Uo.prototype.onClick=Uo.prototype.onClick;Uo.prototype.dataChanged=Uo.prototype.dataChanged;Uo.JSC$23115_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.iQ("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Uo.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Uo.prototype,"rendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Uo.prototype,"data",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Uo.prototype,"buttonUpdate",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Uo.prototype,"kevlarWatchGrid",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Uo.prototype,"centerAlignDescription",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Uo.prototype,"truncateDomain",void 0);
_.R([_.L({computed:"computeButtonOverride(buttonUpdate)"}),_.Y("design:type",Object)],Uo.prototype,"buttonOverride",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Uo.prototype,"enableMonoStyle",void 0);_.R([_.M("data.detailsLine.adRating.ratingText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Uo.prototype,"getRating",null);_.R([_.M("getRating"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Uo.prototype,"computeRatingHidden",null);
_.R([_.M("data.detailsLine.adRating.ratingIcon.iconType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Uo.prototype,"iconType",null);_.R([_.M("data.detailsLine.texts.0.text"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Uo.prototype,"getDetailsLine",null);_.R([_.M("getDetailsLine"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Uo.prototype,"computeDetailsLineHidden",null);
_.R([_.M("data.description.text"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Uo.prototype,"getDescriptionText",null);_.R([_.M("getDescriptionText"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Uo.prototype,"computeDescriptionTextHidden",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Uo.prototype,"interactionLoggingClientData",null);
_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Uo.prototype,"hideBanner",null);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Uo.prototype,"dataChanged",null);_.R([_.VG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Uo.prototype,"onClick",null);_.R([_.e({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],Uo);
_.q(Uo,"ytd-action-companion-ad-renderer",function(){if(leY!==void 0)return leY;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return leY=C},{mode:_.oN("kevlar_poly_si_batch_j067")?1:2});var yt6;var Zc9;var Hy=function(){var C=_.B.apply(this,arguments)||this;C.buttonUpdate=_.y("web_modern_buttons");C.hideLegacyBanner=_.y("enable_dsa_one_click_ata_translators_infeed_elements");C.adInfoButtonStyle="mono";C.adInfoButtonType="text";C.noDotAdBadge=!0;return C};
_.O(Hy,_.B);_.n=Hy.prototype;_.n.getOnLayoutVisibleCallback=function(){var C=_.mN("yt.www.ads.eventcache.getLastCompanionData");return C?(C=C())&&C.onLayoutVisibleCallback:null};
_.n.getLayoutId=function(){var C=_.mN("yt.www.ads.eventcache.getLastCompanionData");return C?(C=C())&&C.layoutId:null};
_.n.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 C=this.data.image.thumbnail.thumbnails[0];this.imageSrc=C.url?_.Ph(C.url):void 0;this.imageWidth=C.width||0;this.imageHeight=C.height||0}this.data.clickthroughEndpoint&&_.Z(this.data.clickthroughEndpoint,_.jW)&&(C=_.Z(this.data.clickthroughEndpoint,_.jW).url,_.y("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
C||"":C?(C=_.Ph(C),this.clickThroughUrl=_.eS(C)):this.clickThroughUrl=void 0);(C=this.getOnLayoutVisibleCallback())&&C()}};
_.n.onClick=function(C){_.dE(_.AR(C),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(C)};
_.n.handleClick=function(){var C=this;this.data&&this.data.clickthroughEndpoint&&(_.oo(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(F){C.macroReplacementBehavior.sendServiceRequestAction([F])}),_.rz(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.n.onLoad=function(){_.KX(this.hostElement,"yt-refit-popups-action")};
_.I6.Object.defineProperties(Hy.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var C=_.mN("yt.www.ads.eventcache.getLastCompanionData");return C?(C=C())&&C.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var C=_.mN("yt.www.ads.eventcache.getLastCompanionData");return C?(C=C())&&C.interactionLoggingClientData:null}}});
Hy.prototype.onLoad=Hy.prototype.onLoad;Hy.prototype.onClick=Hy.prototype.onClick;Hy.prototype.dataChanged=Hy.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Hy.prototype,"rendererBehavior",void 0);_.R([_.w(BTT.YtMacroReplacementBehavior),_.Y("design:type",Object)],Hy.prototype,"macroReplacementBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Hy.prototype,"data",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Hy.prototype,"buttonUpdate",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Hy.prototype,"hideLegacyBanner",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Hy.prototype,"adInfoButtonStyle",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Hy.prototype,"adInfoButtonType",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Hy.prototype,"macros",null);
_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Hy.prototype,"interactionLoggingClientData",null);_.R([_.L(),_.Y("design:type",String)],Hy.prototype,"clickThroughUrl",void 0);_.R([_.L(),_.Y("design:type",_.hz)],Hy.prototype,"imageSrc",void 0);_.R([_.L(),_.Y("design:type",Number)],Hy.prototype,"imageWidth",void 0);_.R([_.L(),_.Y("design:type",Number)],Hy.prototype,"imageHeight",void 0);_.R([_.L(),_.Y("design:type",Object)],Hy.prototype,"noDotAdBadge",void 0);
_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hy.prototype,"dataChanged",null);_.R([_.VG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Hy.prototype,"onClick",null);_.R([_.VG("load"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hy.prototype,"onLoad",null);_.R([_.e({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],Hy);
_.q(Hy,"ytd-image-companion-renderer",function(){if(Zc9!==void 0)return Zc9;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Zc9=C},{mode:_.oN("kevlar_poly_si_batch_j067")?1:2});var NR0;var lX=function(){return _.B.apply(this,arguments)||this};
_.O(lX,_.B);_.n=lX.prototype;_.n.dataChanged=function(){this.set("data.adBadge",lX.JSC$23124_DEFAULT_AD_BADGE_RENDERER);if(this.data){var C=this.getOnLayoutVisibleCallback();C&&C()}};
_.n.getOnLayoutVisibleCallback=function(){var C=_.mN("yt.www.ads.eventcache.getLastCompanionData");return C?(C=C())&&C.onLayoutVisibleCallback:null};
_.n.getLayoutId=function(){var C=_.mN("yt.www.ads.eventcache.getLastCompanionData");return C?(C=C())&&C.layoutId:null};
_.n.onCompanionClicked=function(C){this.data&&(C.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.rz(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.n.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var C=_.gE(),F=this.getLayoutId(),G=this.data.clickToAdvSiteEndpoint;C&&F&&_.y("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?C.getPlayerPromise().then(function(V){(new _.xV(V)).executeCommand(G,F)}):_.oo(this.hostElement,"yt-navigate",{endpoint:G})}};
_.n.sendTrackingPings=function(C){if(C&&C.length!==0&&C[0].loggingUrls&&(C=C[0].loggingUrls.map(this.getBaseUrl)))for(var F=0;F<C.length;F++)_.C1(C[F])};
_.n.getBaseUrl=function(C){return C.baseUrl||""};
_.I6.Object.defineProperties(lX.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var C=_.mN("yt.www.ads.eventcache.getLastCompanionData");return C?(C=C())&&C.interactionLoggingClientData:null}}});
lX.prototype.onCompanionClicked=lX.prototype.onCompanionClicked;lX.prototype.dataChanged=lX.prototype.dataChanged;lX.JSC$23124_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.iQ("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],lX.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],lX.prototype,"data",void 0);_.R([_.$z("#title"),_.Y("design:type",HTMLElement)],lX.prototype,"shopTitle",void 0);
_.R([_.zp("data.impressionEndpoints"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lX.prototype,"dataChanged",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],lX.prototype,"interactionLoggingClientData",null);_.R([_.VG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],lX.prototype,"onCompanionClicked",null);
_.R([_.e({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],lX);
_.q(lX,"ytd-shopping-companion-renderer",function(){if(NR0!==void 0)return NR0;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return NR0=C},{mode:1});_.gQ(_.d(function(C){var F=C.data;C=_.Wv({visibilityCallback:function(V){var J,b=(J=F().interaction)==null?void 0:J.onFirstVisible;V&&b&&_.wQ(b)},
showOption:_.Qm});var G=_.OI(function(){return F().interaction},oK_);
_.RX(function(){var V,J;J=(J=_.mN("yt.www.ads.eventcache.getLastCompanionData"))?(J=J())&&J.onLayoutVisibleCallback:null;(V=J)==null||V()},"un");
return _.W("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.CZ(function(V){_.KX(V.currentTarget,"yt-refit-popups-action")}),
el:_.dQ(C,G),"aria-label":function(){var V,J;return(V=F().interaction)==null?void 0:(J=V.accessibility)==null?void 0:J.label}},_.W("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.W(_.uC,{data:function(){return F().adImage}},{adImageViewModel:function(V){return _.W(_.f$,{data:V.data,
targetHeight:80,customCommandResolver:oK_})}})),_.W("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.W("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.W(_.uC,{data:function(){return F().adBadge}},{adBadgeViewModel:function(V){return _.W(_.HI,{data:V.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.W("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.W(_.uC,{data:function(){return F().menu}},{buttonViewModel:_.tS}))))},"vn"),"banner-image-layout-view-model",{props:{data:_.CJ}});_.gQ(_.d(function(C){var F=C.data;C=_.Wv({visibilityCallback:function(V){var J,b=(J=F().interaction)==null?void 0:J.onFirstVisible;V&&b&&_.wQ(b)},
showOption:_.Qm});var G=_.OI(function(){return F().interaction},r20);
_.RX(function(){var V,J;J=(J=_.mN("yt.www.ads.eventcache.getLastCompanionData"))?(J=J())&&J.onLayoutVisibleCallback:null;(V=J)==null||V()},"wn");
return _.W("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.dQ(C,G)},_.W("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.W(_.uC,{data:function(){return F().adImage}},{adImageViewModel:function(V){return _.W(_.f$,{data:V.data,
targetHeight:80,customCommandResolver:r20})}})),_.W("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.W("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.W(_.uC,{data:function(){return F().adAvatarLockup}},{adAvatarLockupViewModel:function(V){return _.W(tWL,{data:V.data,
customCommandResolver:r20})}})),_.W(_.uC,{data:function(){return F().adButton}},{adButtonViewModel:function(V){return _.W(_.EG,{data:V.data,
customCommandResolver:r20})}}),_.W("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.W(_.uC,{data:function(){return F().menu}},{buttonViewModel:_.tS}))))},"xn"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.CJ}});var OcB={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"},yo=function(){var C=_.B.apply(this,arguments)||this;C.updateCompanionDataJobId=0;C.contentVideoId=null;C.player=null;C.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return C};
_.O(yo,_.B);_.n=yo.prototype;_.n.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:OcB}}};
_.n.attached=function(){var C=this,F=_.gE();F&&F.getPlayerPromise().then(function(G){C.getCachedDataAndListen(G)})};
_.n.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.n.updateRendererStamper=function(){var C={};if(this.data)for(var F in OcB)if(this.data[F]){C[F]=this.data[F];break}if(this.oneofRenderer!=void 0||Object.keys(C).length)this.oneofRenderer=C};
_.n.getCachedDataAndListen=function(C){var F=this.retrieveCachedCompanionData();F&&Object.keys(F).length&&this.receiveCompanionData(F);this.ytPlayerListenerBehavior.listenToPlayerEvent(C,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=C};
_.n.retrieveCachedCompanionData=function(){return _.VT.yt&&_.VT.yt.www&&_.VT.yt.www.ads&&_.VT.yt.www.ads.eventcache&&_.VT.yt.www.ads.eventcache.getLastCompanionData?_.VT.yt.www.ads.eventcache.getLastCompanionData():null};
_.n.receiveCompanionData=function(C){C&&Object.keys(C).length?(this.contentVideoId=C.contentVideoId,this.setCompanionData(C)):this.setCompanionData(C)};
_.n.setCompanionData=function(C){this.cancelPendingCompanionAdJobs();if(C){this.updateCompanionDataJobId=0;for(var F in OcB)OcB.hasOwnProperty(F)&&(this.data[F]=void 0);C.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",C.shoppingCompanionCarouselRenderer):C.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",C.imageCompanionAdRenderer):C.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",C.actionCompanionAdRenderer),_.KX(this.hostElement,
"yt-hide-unlimited-offer-module"),_.KX(this.hostElement,"yt-hide-tvfilm-offer-module")):C.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",C.bannerImageLayoutViewModel):C.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",C.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.n.dataChanged=function(){var C=this,F=_.gE();F?F.getPlayerPromise().then(function(G){C.contentVideoId&&G.getVideoUrl().includes("v="+C.contentVideoId)||(C.cancelPendingCompanionAdJobs(),C.updateRendererStamper())}):_.CD(Error("Yo"))};
_.n.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.gT.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.n.handleCompanionAdClicked=function(C,F){this.player.onAdUxClicked(C,F);this.player.pauseVideo()};
yo.prototype.dataChanged=yo.prototype.dataChanged;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],yo.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],yo.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],yo.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],yo.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.w(_.Fi.YtPlayerListenerBehavior),_.Y("design:type",_.GR)],yo.prototype,"ytPlayerListenerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],yo.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],yo.prototype,"oneofRenderer",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yo.prototype,"dataChanged",null);_.R([_.e({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],yo);
_.q(yo,"ytd-companion-slot-renderer",function(){if(yt6!==void 0)return yt6;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return yt6=C},{mode:_.oN("kevlar_poly_si_batch_j067")?
1:2});var Xv_;var Z1=function(){return _.B.apply(this,arguments)||this};
_.O(Z1,_.B);Z1.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
Z1.prototype.dataChanged=Z1.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Z1.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Z1.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],Z1.prototype,"companionSlotData",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Z1.prototype,"dataChanged",null);
_.R([_.e({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],Z1);
_.q(Z1,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(Xv_!==void 0)return Xv_;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Xv_=C},{mode:1});var wv6;var NH=function(){var C=_.B.apply(this,arguments)||this;C.skinnyMode=!1;C.COMPACT_EVENT_COUNT=4;C.onShelfToggleButtonTap=function(){C.logTap(C.data);C.showingMore=!C.showingMore};
C.onShelfToggleButtonFocus=function(){C.showingMore||(C.logTap(C.data),C.showingMore=!0,_.zH(C,function(){var F=C.COMPACT_EVENT_COUNT-1,G;(G=_.ot(C.hostElement).querySelector("#event-"+F))==null||G.focus()}))};
return C};
_.O(NH,_.B);_.n=NH.prototype;_.n.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.n.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.n.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.Gp(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.Gp(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.Gp(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.Gp(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.Gp(this.infoTooltip,this.infoTooltip.hide))};
_.n.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.Gp(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.Gp(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.Gp(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.Gp(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.Gp(this.infoTooltip,this.infoTooltip.hide))};
_.n.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)};
_.n.onShowingMoreChanged=function(){var C;this.showingMoreChanged((C=this.showingMore)!=null?C:!1)};
_.n.showingMoreChanged=function(C){var F=this.get("data.events")||[];this.set("restEvents",F.slice(1,C?F.length:this.COMPACT_EVENT_COUNT).map(function(G){return G.ticketEventRenderer}));
F.slice(0,C?F.length:this.COMPACT_EVENT_COUNT).forEach(function(G){var V=_.ZQ();G=G.ticketEventRenderer.trackingParams;_.lm()&&V&&G&&(G=_.zS(G),V&&_.h3(V,G))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.n.computeAriaLabel=function(C){return C.subtitle1+", "+C.subtitle2};
_.n.logTap=function(C){_.lm()&&this.ytRendererBehavior.logExplicitClick(C)};
_.n.isKeyboardAction=function(C){return this.get("detail.x",C)===0&&this.get("detail.y",C)===0};
_.n.onFirstEventTap=function(C){C.target&&this.handleTap(C.target,this.firstEvent,this.isKeyboardAction(C))};
_.n.onTicketLinkTap=function(C){C.target&&this.handleTap(C.target,C.model.item,this.isKeyboardAction(C))};
_.n.handleTap=function(C,F,G){if(F.buttonCommand)if(F.hasMultipleOffers)Object.assign(_.Z(F.buttonCommand,_.vf),{properties:{source:G?"keyboard":"tap"}}),this.logTap(F),this.popupPositionTarget=C,_.pX(this.hostElement,[F.buttonCommand],this.hostElement);else{var V;if((V=_.Z(F.buttonCommand,_.jW))==null?0:V.url)this.logTap(F),_.Cv(window,_.Z(F.buttonCommand,_.jW).url)}};
NH.prototype.onShowingMoreChanged=NH.prototype.onShowingMoreChanged;NH.prototype.dataChanged=NH.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],NH.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],NH.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],NH.prototype,"firstEvent",void 0);_.R([_.L(),_.Y("design:type",Object)],NH.prototype,"restEvents",void 0);_.R([_.L(),_.Y("design:type",String)],NH.prototype,"imageUrl",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],NH.prototype,"showingMore",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],NH.prototype,"canShowMore",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],NH.prototype,"skinnyMode",void 0);_.R([_.L(),_.Y("design:type",HTMLElement)],NH.prototype,"popupPositionTarget",void 0);_.R([_.$z("#banner-info-tooltip"),_.Y("design:type",Object)],NH.prototype,"infoTooltip",void 0);
_.R([_.$z("#info-container"),_.Y("design:type",HTMLElement)],NH.prototype,"infoContainer",void 0);_.R([_.$z("#shelf-toggler"),_.Y("design:type",HTMLElement)],NH.prototype,"shelfToggleButton",void 0);_.R([_.$z("#separator"),_.Y("design:type",HTMLDivElement)],NH.prototype,"separator",void 0);_.R([_.L(),_.Y("design:type",String)],NH.prototype,"shelfTogglerLabelText",void 0);_.R([_.L(),_.Y("design:type",String)],NH.prototype,"shelfTogglerIcon",void 0);
_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NH.prototype,"dataChanged",null);_.R([_.zp("showingMore"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NH.prototype,"onShowingMoreChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],NH);
_.q(NH,"ytd-ticket-shelf-renderer",function(){if(wv6!==void 0)return wv6;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return wv6=C},{mode:1});var MWL;var S8_;var LOS=function(){return _.B.apply(this,arguments)||this};
_.O(LOS,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],LOS.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],LOS.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],LOS);
_.q(LOS,"ytd-comments-entry-point-message-renderer",function(){if(S8_!==void 0)return S8_;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return S8_=C},{mode:1});var BR_;var Oo=function(){return _.B.apply(this,arguments)||this};
_.O(Oo,_.B);_.I6.Object.defineProperties(Oo.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.teaserAvatar)}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Oo.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Oo.prototype,"data",void 0);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Oo.prototype,"hasAvatar",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],Oo);
_.q(Oo,"ytd-comments-entry-point-teaser-renderer",function(){if(BR_!==void 0)return BR_;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return BR_=C},{mode:1});var vy_;var feB=function(){return _.B.apply(this,arguments)||this};
_.O(feB,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],feB.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],feB.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],feB);
_.q(feB,"ytd-comments-simplebox-renderer",function(){if(vy_!==void 0)return vy_;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return vy_=C},{mode:1});var Xo=function(){var C=_.B.apply(this,arguments)||this;C.fullHeight=!_.y("comment_teaser_full_height_kill_switch")&&_.y("kevlar_watch_grid");return C};
_.O(Xo,_.B);Xo.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"}}}};
Xo.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Xo.prototype.onTap=function(){var C=this.tapCommand;C&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(C))};
Xo.prototype.onKeyUp=function(C){if(C.keyCode===13)this.onTap()};
_.I6.Object.defineProperties(Xo.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var C;if((C=this.data)==null?0:C.onTap)return this.data.onTap;var F,G;if(((F=this.data)==null?0:F.teaserContent)||((G=this.data)==null?0:G.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)==null?void 0:C.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)==null?void 0:C.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)==null?void 0:C.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)==null?void 0:C.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)==null?void 0:C.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)==null?void 0:C.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)!=null&&C.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
Xo.prototype.onKeyUp=Xo.prototype.onKeyUp;Xo.prototype.onTap=Xo.prototype.onTap;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Xo.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Xo.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Xo.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Xo.prototype,"data",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Xo.prototype,"fullHeight",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xo.prototype,"tapCommand",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xo.prototype,"simpleboxPlaceholder",null);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xo.prototype,"hasSimpleboxPlaceholder",null);
_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xo.prototype,"simpleboxAvatar",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xo.prototype,"teaserContent",null);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xo.prototype,"hasTeaserContent",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xo.prototype,"teaserAvatar",null);
_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xo.prototype,"hasTeaserAvatar",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xo.prototype,"messageText",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xo.prototype,"contentRenderer",null);_.R([_.M("data"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xo.prototype,"hasContents",null);
_.R([_.M("data"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xo.prototype,"hasContentRenderer",null);_.R([_.VG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Xo.prototype,"onTap",null);_.R([_.VG("keypress"),_.Y("design:type",Function),_.Y("design:paramtypes",[_.a5]),_.Y("design:returntype")],Xo.prototype,"onKeyUp",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],Xo);
_.q(Xo,"ytd-comments-entry-point-header-renderer",function(){if(MWL!==void 0)return MWL;var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return MWL=C},{mode:1});var hsL;_.gQ(_.XmP,"yt-animated-rolling-number",{props:{numberText:_.CJ,numberValue:_.CJ,heightPx:_.CJ,fontSizeMultiplier:_.CJ,shouldAnimate:_.CJ,forceRollUp:_.CJ}});var cth=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),At_={numberText:"",heightPx:2*cth,shouldAnimate:!1},wU=function(){var C=_.B.apply(this,arguments)||this;C.usingAnimatedComponents=!0;C.wasDetailed=!1;C.JSC$23161_browserSupportsAnimation=_.y("web_supports_animations_api");C.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};C.detailed=!1;C.shouldAnimate=!1;C.viewCountProps=At_;C.dateTextProps=
At_;C.metadataBadgesInDescription=_.y("web_metadata_badges_in_description");return C};
_.O(wU,_.B);_.n=wU.prototype;_.n.attached=function(){var C=this;_.I8().resolve(_.bo).subtitleChangeCallbackMap.set("ytd-watch-info-text",function(F){C.set("videoPrimaryInfoRenderer.subtitle",F)})};
_.n.detached=function(){_.I8().resolve(_.bo).subtitleChangeCallbackMap.delete("ytd-watch-info-text")};
_.n.resetAnimationState=function(){this.shouldAnimate=!1};
_.n.updateDynamicMetadata=function(){if(this.JSC$23161_browserSupportsAnimation){if(!this.detailed){var C,F,G,V;var J=(C=this.videoPrimaryInfoRenderer)==null?void 0:(F=C.viewCount)==null?void 0:(G=F.videoViewCountRenderer)==null?void 0:(V=G.extraShortViewCount)==null?void 0:V.simpleText;var b,z,Q,E;var t=(b=this.videoPrimaryInfoRenderer)==null?void 0:(z=b.viewCount)==null?void 0:(Q=z.videoViewCountRenderer)==null?void 0:(E=Q.shortViewCount)==null?void 0:E.simpleText}if(!t){var k,U,H,l;J=(k=this.videoPrimaryInfoRenderer)==
null?void 0:(U=k.viewCount)==null?void 0:(H=U.videoViewCountRenderer)==null?void 0:(l=H.unlabeledViewCountValue)==null?void 0:l.simpleText;var N,S,f,c;t=(N=this.videoPrimaryInfoRenderer)==null?void 0:(S=N.viewCount)==null?void 0:(f=S.videoViewCountRenderer)==null?void 0:(c=f.viewCount)==null?void 0:c.simpleText}var A,T,P;C=Number((A=this.videoPrimaryInfoRenderer)==null?void 0:(T=A.viewCount)==null?void 0:(P=T.videoViewCountRenderer)==null?void 0:P.originalViewCount);var g,r;A=(g=this.videoPrimaryInfoRenderer)==
null?void 0:(r=g.relativeDateText)==null?void 0:r.simpleText;var C9;g=!((C9=this.videoPrimaryInfoRenderer)==null||!C9.relativeDateText);if(J&&t&&C&&(A||!g)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;C9=t.split(new RegExp("("+J+")"));J=_.eN(C9[0]);var Wo;t={numberText:(Wo=C9[1])!=null?Wo:"",numberValue:C,heightPx:2*cth,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var EB;Wo=((EB=C9[2])!=null?EB:"")+"  ";this.setViewCount(t,J,_.eN(Wo));
if(!this.detailed&&g){J=A.split(/(\d+)/);EB=_.eN(J[0]);var L9;Wo={numberText:(L9=J[1])!=null?L9:"",heightPx:2*cth,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var ki;L9=((ki=J[2])!=null?ki:"")+"  ";this.setDateText(Wo,EB,_.eN(L9))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.n.setViewCount=function(C,F,G){_.dd(F)!==_.dd(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=F);this.viewCountProps.numberText!==(C==null?void 0:C.numberText)&&(this.viewCountProps=C||At_);_.dd(G)!==_.dd(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=G)};
_.n.setDateText=function(C,F,G){_.dd(F)!==_.dd(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=F);this.dateTextProps.numberText!==(C==null?void 0:C.numberText)&&(this.dateTextProps=C||At_);_.dd(G)!==_.dd(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=G)};
_.n.onYtUpdateViewershipAction=function(C){this.videoPrimaryInfoRenderer&&(_.Z(C,nUL).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.Z(C,nUL).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.Z(C,nUL).viewCount)))};
_.n.onYtUpdateDateTextAction=function(C){if(this.videoPrimaryInfoRenderer){C=_.Z(C,_.$eS).dateText;this.shouldAnimate=!0;var F;((F=this.videoPrimaryInfoRenderer)==null?0:F.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",C):this.set("videoPrimaryInfoRenderer.dateText",C)}};
_.I6.Object.defineProperties(wU.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return CRz(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.dd(CRz(this.videoPrimaryInfoRenderer,!0,!0,"\u2022",!0))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.dd(this.viewCountPreNumberText),this.viewCountProps.numberText,_.dd(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.dd(this.dateTextPreNumberText),this.dateTextProps.numberText,_.dd(this.dateTextPostNumberText)].join("")}}});
wU.prototype.updateDynamicMetadata=wU.prototype.updateDynamicMetadata;wU.prototype.resetAnimationState=wU.prototype.resetAnimationState;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],wU.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],wU.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],wU.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],wU.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],wU.prototype,"videoPrimaryInfoRenderer",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],wU.prototype,"detailed",void 0);_.R([_.L(),_.Y("design:type",Object)],wU.prototype,"shouldAnimate",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],wU.prototype,"viewCountPreNumberText",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],wU.prototype,"viewCountProps",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],wU.prototype,"viewCountPostNumberText",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],wU.prototype,"dateTextPreNumberText",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],wU.prototype,"dateTextProps",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],wU.prototype,"dateTextPostNumberText",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],wU.prototype,"metadataBadgesInDescription",void 0);_.R([_.M("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],wU.prototype,"infoText",null);
_.R([_.M("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.Y("design:type",String),_.Y("design:paramtypes",[])],wU.prototype,"descriptionInfoTooltipText",null);_.R([_.M("detailed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],wU.prototype,"showDescriptionInfoTooltip",null);
_.R([_.M("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.Y("design:type",String),_.Y("design:paramtypes",[])],wU.prototype,"animatedViewCountAccessibilityLabel",null);_.R([_.M("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.Y("design:type",String),_.Y("design:paramtypes",[])],wU.prototype,"animatedDateTextAccessibilityLabel",null);
_.R([_.iP("videoPrimaryInfoRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wU.prototype,"resetAnimationState",null);_.R([_.iP("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wU.prototype,"updateDynamicMetadata",null);
_.R([_.e({disableElementRegistration:!0,is:"ytd-watch-info-text"})],wU);
_.q(wU,"ytd-watch-info-text",function(){if(hsL!==void 0)return hsL;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <template is="dom-if" if="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    </yt-formatted-string>\n  </template>\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return hsL=C},{mode:1});var esF;var dwT="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var xwl=_.d(function(C){var F=C.data;var G=C.setTapCommand;_.sq(function(){var V=_.ZD(F().onTap);G(V)},"CLm0Xe");
return _.W("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.W(_.uC,{data:function(){return F().avatar}},{avatarViewModel:_.g$}),_.W("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.W("span",null,function(){return F().simpleboxText})))},"zn");var sx9=_.d(function(C){return _.W("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.W(_.a,{cond:function(){return _.Z(C.data().avatar,_.yJ)},
then:function(F){return _.W(_.g$,{data:F,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.W("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.W(_.mn,{text:function(){return C.data().teaserText}})))},"An");var q8n=_.d(function(C){var F=C.data;var G=C.setTapCommand;_.sq(function(){var V=_.ZD(F().onTap);G(V)},"qxjCCd");
return _.W("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.W(_.uC,{data:function(){return F().teasers}},{commentsEntryPointTeaserViewModel:sx9}))},"Cn");var P9S=_.d(function(C){var F=C.data;var G=C.setTapCommand;_.sq(function(){var V=_.ZD(F().onTap);G(V)},"CRZByf");
return _.W("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.W(_.mn,{text:function(){return F().messageText}}))},"En");var gy0=_.d(function(C){var F=C.data;var G=C.setTapCommand;var V=C.isDisabled;_.sq(function(){var J=(V==null?0:V())?void 0:_.ZD(F().onTap);G(J)},"GZxRqd");
return _.W("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.W(_.i5,{icon:function(){return F().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.W(_.a,{cond:function(){return F().image},
then:function(J){return _.W(_.AC,{data:J,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.W(_.mn,{text:function(){return F().text},
className:function(){return F().image||F().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.W(_.uC,{data:function(){return F().button}},{buttonViewModel:function(J){return _.W(_.tS,{data:J.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:V==null?void 0:V()}}})}}))},"Gn");var Rs0=_.d(function(C){var F=C.data;var G=C.itemIndex;var V=C.selectedIndex;var J=C.indexUpdatedCallback;var b=C.observer;C=C.title;var z=_.Jt("yt-carousel-item-view-model",function(U){b&&b().observe(U)}),Q=function(U){G()===V()&&J(U)},E=_.nZ(wp0),t=_.nZ(_.FLq),k=function(){var U,H,l,N,S;
return((U=F())==null?void 0:U.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!E()||((H=F())==null?void 0:H.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&((l=t())==null?void 0:l.includes("PAposts_by_host"))||((N=F())==null?void 0:N.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&((S=t())==null?void 0:S.includes("PAyouchat"))};
return _.W("yt-carousel-item-view-model",{el:z,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":C},_.W(_.uC,{data:function(){var U,H;return(H=(U=_.Z(F().carouselItem,LNn))==null?void 0:U.textCarousel)!=null?H:F().carouselItem}},{textCarouselItemViewModel:function(U){return _.W(gy0,{data:U.data,
setTapCommand:Q,isDisabled:k})},
commentTeaserCarouselItemViewModel:function(U){return _.W(q8n,{data:U.data,setTapCommand:Q})},
commentInputBoxCarouselItemViewModel:function(U){return _.W(xwl,{data:U.data,setTapCommand:Q})},
commentsEntryPointMessageViewModel:function(U){return _.W(P9S,{data:U.data,setTapCommand:Q})}}))},"Hn");var Y8l=_.d(function(C){var F=C.numDots;var G=C.activeIndex;return _.W("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.W(_.Ag,{each:function(){return Array.from({length:F()})},
keyBy:"INDEX"},function(V,J){return _.W("div",{class:function(){var b={};return _.tm("ytCarouselDotsShapeDot",(b.ytCarouselDotsShapeDotActive=J===G(),b))}})}))},"In");var TRT=_.d(function(C){var F=C.data;var G=C.handleCarouselNavigation;var V=C.numItems;var J=C.selectedIndex;var b=function(){return{disabled:J()===0}},z=function(){return{disabled:J()===V()-1}};
return _.W("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.W("div",null,_.W("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return F().title}),_.W(_.a,{cond:function(){return F().subtitle},
then:function(Q){return _.W("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return F().subtitleAccessibilityText}},Q)}})),_.W(_.a,{cond:function(){return V()>1},
then:function(){return _.W("div",{class:"ytCarouselTitleViewModelNavigation"},_.W(Y8l,{numDots:V,activeIndex:J}),_.W(_.a,{cond:function(){return F().previousButton},
then:function(Q){return _.W(_.uC,{data:Q},{buttonViewModel:function(E){return _.W(_.tS,{data:E.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return G(-1)},
buttonOverrides:b})}})}}),_.W(_.a,{cond:function(){return F().nextButton},
then:function(Q){return _.W(_.uC,{data:Q},{buttonViewModel:function(E){return _.W(_.tS,{data:E.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return G(1)},
buttonOverrides:z})}})}}))}}))},"Jn");_.gQ(_.d(function(C){var F=C.data;var G,V=_.Jt("yt-video-metadata-carousel-view-model"),J=_.Jt("div",function(g){var r=function(){var C9=g.offsetWidth*S(),Wo=24*(S()-1);H(C9+Wo)};
r();window.ResizeObserver&&(G=new ResizeObserver(r),G.observe(g))}),b=_.TF("HTML_DIR")==="rtl",z=!1,Q=0,E=0;
C=_.u(_.yH(0,void 0,"M49TDf"));var t=C.next().value,k=C.next().value;C=_.u(_.yH(0,void 0,"zLIok"));var U=C.next().value,H=C.next().value;C=_.u(_.yH(!1,void 0,"bhelhc"));var l=C.next().value,N=C.next().value,S=function(){var g,r,C9;return(C9=(g=F())==null?void 0:(r=g.carouselTitles)==null?void 0:r.length)!=null?C9:0},f=function(){J.value&&J.value.scrollLeft!==Q&&k((b?J.value.scrollLeft<Q:J.value.scrollLeft>Q)?Math.min(t()+1,S()-1):Math.max(t()-1,0))},c;
window.IntersectionObserver&&(c=new IntersectionObserver(function(g){g=_.u(g);for(var r=g.next();!r.done;r=g.next())if(r.value.isIntersecting){if(z){z=!1;break}f()}else k(E)},{threshold:.2}));
_.sq(function(){if(J.value){var g=(b?-1:1)*(U()/S()+12)*(l()&&c?E:t());typeof J.value.scrollTo==="function"?J.value.scrollTo({left:g,behavior:"smooth"}):J.value.scrollLeft=g;Q=g;E=l()&&c?E:t()}},"s9rbgc");
var A,T=function(g){A=g};
_.q0(function(){var g;(g=G)==null||g.disconnect();var r;(r=c)==null||r.disconnect()});
var P=function(g){g=t()+g;g>=0&&g<S()&&(z=!0,k(g))};
return _.W("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:V,"on:click":_.CZ(function(g){if(_.kb(_.ay(g),V.value,["BUTTON".toString()])||!A)return!1;_.I8().resolve(_.WD).resolveCommand(A,{forceClickLogging:!0});return!1}),
"on:touchstart":_.CZ(function(){N(!0);return!1}),
"on:touchend":_.CZ(function(){c||f();N(!1);return!1}),
hidden:function(){var g,r;return!((g=F())==null?0:(r=g.carouselItems)==null?0:r.length)}},_.W("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.W(_.a,{cond:function(){return F().carouselTitles},
then:function(g){return _.W(_.uC,{data:function(){return g()[l()&&c?E:t()]}},{carouselTitleViewModel:function(r){return _.W(TRT,{data:r.data,
handleCarouselNavigation:P,numItems:S,selectedIndex:t})}})}})),_.W("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:J},_.W("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+U()+"px;"}},_.W(_.a,{cond:function(){return F().carouselItems},
then:function(g){return _.W(_.Ag,{each:g},function(r,C9){return _.W(_.uC,{data:function(){return r}},{carouselItemViewModel:function(Wo){return _.W(Rs0,{data:Wo.data,
itemIndex:C9,selectedIndex:t,indexUpdatedCallback:T,observer:c,title:function(){a:{var EB=C9();var L9,ki=(L9=F())==null?void 0:L9.carouselTitles;if(ki&&(EB=ki[EB])){var lZ;EB=(lZ=_.Z(EB,S0L))==null?void 0:lZ.title;break a}EB=void 0}return EB}})}})})}}))))},"Ln"),"yt-video-metadata-carousel-view-model",{props:{data:_.CJ}});var oy6=_.y("web_action_buttons_update_owner_width")?32:12,MH=function(){var C=_.B.apply(this,arguments)||this;C.isHovering=!1;C.enableColorSampling=_.y("web_delhi_colorful_sd");C.metadataBadgesInDescription=_.y("web_metadata_badges_in_description");C.descriptionCollapsed=!0;C.useFadedScrimDescription=_.y("kevlar_enable_faded_scrim_on_description");C.skinnyMode=!1;C.playlist=!1;C.isDark=document.documentElement.hasAttribute("dark");C.disableVideoOwnerOnTap=_.y("swatchie_video_owner_on_tap_ks");C.swatcherooDelayLoad=
_.y("swatcheroo_enable_ghost_cards");C.primaryMenuWidth=0;C.videoId="";C.titleHeadlineXs=_.y("web_watch_typography_title_headline_xs");C.titleHeadlineS=_.y("web_watch_typography_title_headline_s");C.titleHeadlineM=_.y("web_watch_typography_title_headline_m");C.titleHashtagBlackLinkified=_.y("web_title_hashtag_black_linkified");C.titleHashtagGreyLinkified=_.y("web_title_hashtag_grey_linkified");C.actionButtonsUpdateOwnerWidth=_.y("web_action_buttons_update_owner_width");C.shouldForceIconOnly=!1;C.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};C.isFullscreen=!1;C.isTheaterMode=!1;return C};
_.O(MH,_.B);_.n=MH.prototype;_.n.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.n.updateOwnerAndDescriptionPosition=function(){_.y("kevlar_watch_grid")&&this.titleElement&&this.descriptionElement&&this.bottomRowElement&&this.ownerElement&&this.topRowElement&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.hA(this.bottomRowElement,this.ownerElement)):(_.hA(this.bottomRowElement,this.descriptionElement),_.hA(this.topRowElement,this.ownerElement)))};
_.n.titleOnTap=function(C){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.dE(_.AR(C)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var F;((F=window.getSelection())==null?0:F.toString().length)||this.handleExpandDescriptionCommands()}};
_.n.videoOwnerOnTap=function(C){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.dE(_.AR(C)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.n.detached=function(){var C=this,F;return _.I(function(G){(F=C.resizeObserver)==null||F.disconnect();_.S9(G)})};
_.n.maybeAttachResizeObserver=function(){var C=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.FX(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){C.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.n.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var C=this.hostElement.clientWidth,F=Math.max(this.largerItemWrap?400:350,C/2-oy6);_.y("web_action_buttons_update_owner_width")&&(F=this.ownerElement.clientWidth+oy6);this.actionsOnSeparateLine=this.primaryMenuWidth>C-F?!0:!1}};
_.n.stripAttributedDescription=function(C){return{content:C.content.replace(/[\r\n]{2,}/g,"\n")}};
_.n.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.y("web_modern_buttons"),forceIconButton:!_.y("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:_.y("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"}}}};
_.n.videoPrimaryInfoRendererChanged=function(){var C;if((C=this.videoPrimaryInfoRenderer)==null?0:C.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.n.videoSecondaryInfoRendererChanged=function(){var C,F;(C=this.descriptionInlineExpander)==null||(F=C.collapse)==null||F.call(C);this.descriptionExpandClientVe=_.m2(110509);this.descriptionCollapseClientVe=_.m2(110510);C=_.ZQ();F=_.lm();C&&F&&(_.y("combine_ve_grafts")?(_.Of(_.ia(),this.descriptionExpandClientVe,F),_.Of(_.ia(),this.descriptionCollapseClientVe,F)):_.fl(C,F,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.n.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.n.updateTopLevelIconsOnly=function(){var C=this;_.y("top_level_update_killswitch")||this.menu&&_.gT.addLowPriorityJob(function(){C.menu.topLevelIconsOnly=C.skinnyMode},_.a8("swathceroo_delay_flexible_menu_update",100))};
_.n.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.y("web_action_buttons_minimize_subscribe")};
_.n.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.n.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.n.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.n.onYtTextInlineExpanderExpandedChanged=function(){if(!_.y("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var C,F;(F=(C=this.structuredDescriptionContentRendererElement).resize)==null||F.call(C)}};
_.n.onRenderStamperFinished=function(C){(C==null?void 0:C.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.n.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.n.onYtExpanderLessTapped=function(){var C,F=(C=this.videoSecondaryInfoRenderer)==null?void 0:C.showLessCommand;F&&this.ytComponentBehavior.resolveCommand(F)};
_.n.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.n.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.n.onDescriptionClick=function(C){if(!_.dE(_.AR(C)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var F;((F=window.getSelection())==null?0:F.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.y("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.n.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.n.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.n.logCollapseClick=function(){var C=_.ZQ();C&&this.descriptionCollapseClientVe&&_.ej(C,this.descriptionCollapseClientVe)};
_.n.logExpandClick=function(){var C=_.ZQ();C&&this.descriptionExpandClientVe&&_.ej(C,this.descriptionExpandClientVe)};
_.n.collapseDescription=function(){this.descriptionCollapsed=!0};
_.n.scrollToTopOfContainer=function(){_.rz(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.n.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.n.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.n.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.n.resize=function(){if(this.videoSecondaryInfoRenderer)if(this.descriptionInlineExpander){var C,F;(F=(C=this.descriptionInlineExpander).resize)==null||F.call(C)}else _.Yw(new _.Ay("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var G;(G=this.menu)==null||G.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.n.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var C,F,G,V,J=_.y("web_action_buttons_update_owner_width")?(G=(C=_.ot(this.menu).querySelector("#button-shape"))==null?void 0:C.clientWidth)!=null?G:0:(V=(F=_.ot(this.menu).querySelector("#button"))==null?void 0:F.clientWidth)!=null?V:0,b,z;C=((z=(b=_.ot(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:b.clientWidth)!=null?z:0)+8+J;var Q,E;J=(E=(Q=_.ot(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:Q.children.length)!=null?E:2;C<=8*J||(this.primaryMenuWidth=C)}};
_.n.onYtUpdateTitleAction=function(C){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.Z(C,bDn).title)};
_.n.onYtUpdateDescriptionAction=function(C){if(C=_.Z(C,_.XWr)){var F,G=!((F=this.videoSecondaryInfoRenderer)==null||!F.attributedDescription);C.isEmpty||!C.description&&!C.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):C.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",C.attributedDescription):C.description&&(G?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.U9(C.description)):this.set("videoSecondaryInfoRenderer.description",C.description))}};
_.n.onYtDarkModeToggledAction=function(C){this.isDark=C};
_.n.registerPanel=function(){if(!_.y("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var C=_.y("web_watch_imax_theater_mode")&&this.isTheaterMode;C=_.y("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||C;var F=_.I8().resolve(_.dB);F&&!C&&F.registerPanel("engagement-panel-structured-description",this)}};
_.n.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.n.parseColorSamplingData=function(){var C;if(_.y("web_delhi_colorful_sd")&&((C=this.structuredDescriptionContentRenderer)==null?0:C.items)&&(C=this.structuredDescriptionContentRenderer.items.find(function(J){return!!_.Z(J,cH)}))){var F,G;
this.hoverColor={lightTheme:(F=_.Z(C,cH))==null?void 0:F.lightThemeColorPalette,darkTheme:(G=_.Z(C,cH))==null?void 0:G.darkThemeColorPalette};var V;this.hoverText=(V=_.Z(C,cH))==null?void 0:V.colorSampledDescriptionBodyText}};
_.n.updateHoverColor=function(){if(_.y("web_delhi_colorful_sd")){var C=this.hoverColor,F={},G;C=(G=this.isDark?C==null?void 0:C.darkTheme:C==null?void 0:C.lightTheme)!=null?G:{};G=_.u(dwT);for(var V=G.next();!V.done;V=G.next()){V=V.value;var J=C[V];F["--yt-saturated-"+_.Jr(V)]=J?_.lE(J):"initial"}_.jr(this.hostElement,F)}};
_.n.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.n.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.n.showPanel=function(C){this.expandDescription();var F=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;F.resize();var G,V=C==null?void 0:(G=C.sectionListEngagementPanelExtras)==null?void 0:G.scrollToItemSectionIdentifier;V?_.gT.addJob(function(){F==null||F.scrollToSection(V)},8):this.scrollToTopOfContainer()};
_.n.isVisible=function(){return!this.descriptionCollapsed};
_.n.getReloadContinuation=function(){};
_.n.hidePanel=function(){};
_.n.updatePanel=function(){};
_.I6.Object.defineProperties(MH.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var C;return _.y("web_delhi_colorful_sd")&&(C=this.structuredDescriptionContentRenderer)!=null&&C.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(F){return!_.Z(F,cH)&&!_.Z(F,Q80)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var C;if((C=this.structuredDescriptionContentRendererComputed)!=null&&C.items){var F;C=_.u((F=this.structuredDescriptionContentRendererComputed)==null?void 0:F.items);for(F=C.next();!F.done;F=C.next())if(F=_.Z(F.value,_.kWu))return F}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.videoPrimaryInfoRenderer)==null?0:C.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var C,F,G;return!!((C=this.videoSecondaryInfoRenderer)==null?0:(F=C.owner)==null?0:(G=F.videoOwnerRenderer)==null?0:G.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var C,F;if((C=this.videoSecondaryInfoRenderer)==null?0:(F=C.attributedDescription)==null?0:F.content){var G,V;return(V=this.stripAttributedDescription((G=this.videoSecondaryInfoRenderer)==null?void 0:G.attributedDescription))!=null?V:{runs:[]}}}if(_.y("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var J,b,z,Q;return(Q=(z=(J=this.videoSecondaryInfoRenderer)==
null?void 0:J.description)!=null?z:(b=this.videoSecondaryInfoRenderer)==null?void 0:b.attributedDescription)!=null?Q:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var C,F;return(F=(C=this.videoSecondaryInfoRenderer)==null?void 0:C.headerRuns)!=null?F:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.commentsEntryPointHeaderRenderer)==null||!C.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.videoMetadataCarousel)==null||!C.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.a8("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var C,F,G=Object.assign({},(C=this.videoSecondaryInfoRenderer)==null?void 0:(F=C.metadataRowContainer)==null?void 0:F.metadataRowContainerRenderer);if(G&&G.rows&&G.collapsedItemCount!==void 0&&!(G.rows.length<=G.collapsedItemCount))return G.rows=G.rows.slice(G.collapsedItemCount),G.collapsedItemCount=0,G}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var C,F,G=Object.assign({},(C=this.videoSecondaryInfoRenderer)==null?void 0:(F=C.metadataRowContainer)==null?void 0:F.metadataRowContainerRenderer);if(G&&G.rows&&G.collapsedItemCount!==void 0)return G.rows=G.rows.slice(0,G.collapsedItemCount),G.collapsedItemCount=G.rows.length,G}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var C,F;return!!((C=this.structuredDescriptionContentRendererComputed)==null?0:(F=C.items)==null?0:F.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRendererComputed)return null;var C;return(C=this.videoSecondaryInfoRenderer)==null?void 0:C.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var C,F,G;return((C=this.videoSecondaryInfoRenderer)==null?0:(F=C.owner)==null?0:(G=F.videoOwnerRenderer)==null?0:G.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var C,F,G,V;return!!((C=this.videoPrimaryInfoRenderer)==null?0:(F=C.videoActions)==null?0:(G=F.menuRenderer)==null?0:(V=G.flexibleItems)==null?0:V.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.fy(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.fy(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var C=this;if(_.y("web_title_hashtag_grey_delinkified")){var F,G=_.xf.unsafeClone((F=this.videoPrimaryInfoRenderer)==null?void 0:F.title);(F=G==null?void 0:G.runs)&&F.forEach(function(V){if(V==null?0:V.navigationEndpoint)V.textColor=4284506208,C.isDark&&(V.textColor=4289374890)});
return G}return(G=this.videoPrimaryInfoRenderer)==null?void 0:G.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.y("web_title_hashtag_black_delinkified")||_.y("web_title_hashtag_grey_delinkified")}}});
MH.prototype.updateHoverColor=MH.prototype.updateHoverColor;MH.prototype.parseColorSamplingData=MH.prototype.parseColorSamplingData;MH.prototype.resetDescriptionState=MH.prototype.resetDescriptionState;MH.prototype.registerPanel=MH.prototype.registerPanel;MH.prototype.onYtExpanderLessTapped=MH.prototype.onYtExpanderLessTapped;MH.prototype.onYtExpanderMoreTapped=MH.prototype.onYtExpanderMoreTapped;MH.prototype.onRenderStamperFinished=MH.prototype.onRenderStamperFinished;
MH.prototype.onYtTextInlineExpanderExpandedChanged=MH.prototype.onYtTextInlineExpanderExpandedChanged;MH.prototype.onYtTextInlineExpanderCollapseClicked=MH.prototype.onYtTextInlineExpanderCollapseClicked;MH.prototype.onYtTextInlineExpanderExpandClicked=MH.prototype.onYtTextInlineExpanderExpandClicked;MH.prototype.moveActionsElement=MH.prototype.moveActionsElement;MH.prototype.updateShouldForceIconOnly=MH.prototype.updateShouldForceIconOnly;MH.prototype.updateTopLevelIconsOnly=MH.prototype.updateTopLevelIconsOnly;
MH.prototype.structuredDescriptionContentRendererChanged=MH.prototype.structuredDescriptionContentRendererChanged;MH.prototype.videoSecondaryInfoRendererChanged=MH.prototype.videoSecondaryInfoRendererChanged;MH.prototype.videoPrimaryInfoRendererChanged=MH.prototype.videoPrimaryInfoRendererChanged;MH.prototype.maybeUpdateActionsOnSeparateLine=MH.prototype.maybeUpdateActionsOnSeparateLine;MH.prototype.updateOwnerAndDescriptionPosition=MH.prototype.updateOwnerAndDescriptionPosition;
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],MH.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],MH.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],MH.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],MH.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.w(_.Rr),_.Y("design:type",Object)],MH.prototype,"ytdReduxBehavior",void 0);_.R([_.$z("#above-the-fold"),_.Y("design:type",HTMLElement)],MH.prototype,"aboveTheFoldContainer",void 0);_.R([_.$z("#menu ytd-menu-renderer"),_.Y("design:type",Object)],MH.prototype,"menu",void 0);_.R([_.$z("#description-inline-expander"),_.Y("design:type",Object)],MH.prototype,"descriptionInlineExpander",void 0);
_.R([_.$z("#faded-structured-description"),_.Y("design:type",Object)],MH.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.R([_.$z("#structured-description"),_.Y("design:type",Object)],MH.prototype,"structuredDescriptionContentRendererElement",void 0);_.R([_.$z("#title"),_.Y("design:type",HTMLElement)],MH.prototype,"titleElement",void 0);_.R([_.$z("#description"),_.Y("design:type",HTMLElement)],MH.prototype,"descriptionElement",void 0);
_.R([_.$z("#description-interaction"),_.Y("design:type",Object)],MH.prototype,"descriptionInteraction",void 0);_.R([_.$z("#owner"),_.Y("design:type",HTMLElement)],MH.prototype,"ownerElement",void 0);_.R([_.$z("#top-row"),_.Y("design:type",HTMLElement)],MH.prototype,"topRowElement",void 0);_.R([_.$z("#bottom-row"),_.Y("design:type",HTMLElement)],MH.prototype,"bottomRowElement",void 0);_.R([_.$z("#actions"),_.Y("design:type",HTMLElement)],MH.prototype,"actionsElement",void 0);
_.R([_.$z("#bottom-actions"),_.Y("design:type",HTMLElement)],MH.prototype,"bottomActionsElement",void 0);_.R([_.$z("#ytd-watch-info-text"),_.Y("design:type",Object)],MH.prototype,"watchInfoTextElement",void 0);_.R([_.L(),_.Y("design:type",Object)],MH.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],MH.prototype,"videoPrimaryInfoRenderer",void 0);_.R([_.L(),_.Y("design:type",Object)],MH.prototype,"videoSecondaryInfoRenderer",void 0);
_.R([_.L(),_.Y("design:type",Object)],MH.prototype,"commentsEntryPointHeaderRenderer",void 0);_.R([_.L(),_.Y("design:type",Object)],MH.prototype,"videoMetadataCarousel",void 0);_.R([_.L(),_.Y("design:type",Object)],MH.prototype,"structuredDescriptionContentRenderer",void 0);_.R([_.M("structuredDescriptionContentRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],MH.prototype,"structuredDescriptionContentRendererComputed",null);
_.R([_.L(),_.Y("design:type",Object)],MH.prototype,"videoSummary",void 0);_.R([_.L(),_.Y("design:type",Object)],MH.prototype,"merchShelf",void 0);_.R([_.L(),_.Y("design:type",Object)],MH.prototype,"infoPanelBelowMetadata",void 0);_.R([_.L(),_.Y("design:type",Object)],MH.prototype,"hoverColor",void 0);_.R([_.L(),_.Y("design:type",Object)],MH.prototype,"hoverText",void 0);_.R([_.L(),_.Y("design:type",Object)],MH.prototype,"isHovering",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],MH.prototype,"enableColorSampling",void 0);_.R([_.M("structuredDescriptionContentRendererComputed"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],MH.prototype,"productShelf",null);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],MH.prototype,"metadataBadgesInDescription",void 0);_.R([_.M("videoPrimaryInfoRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],MH.prototype,"shouldHideBadges",null);
_.R([_.M("productShelf","descriptionCollapsed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],MH.prototype,"shouldShowProductShelf",null);_.R([_.L(),_.Y("design:type",Boolean)],MH.prototype,"isWatchFlexy",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],MH.prototype,"descriptionCollapsed",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],MH.prototype,"useFadedScrimDescription",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],MH.prototype,"skinnyMode",void 0);_.R([_.L({reflectToAttribute:!0}),_.M("videoSecondaryInfoRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],MH.prototype,"largerItemWrap",null);_.R([_.L(),_.Y("design:type",Object)],MH.prototype,"playlist",void 0);_.R([_.L(),_.Y("design:type",Object)],MH.prototype,"clarifyBox",void 0);_.R([_.L(),_.Y("design:type",Object)],MH.prototype,"playerAds",void 0);
_.R([_.L(),_.Y("design:type",Boolean)],MH.prototype,"isDark",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],MH.prototype,"actionsOnSeparateLine",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],MH.prototype,"disableVideoOwnerOnTap",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],MH.prototype,"swatcherooDelayLoad",void 0);_.R([_.L(),_.Y("design:type",Boolean)],MH.prototype,"suppressTopLevelMetadataRows",void 0);
_.R([_.L(),_.Y("design:type",Object)],MH.prototype,"primaryMenuWidth",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],MH.prototype,"videoId",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],MH.prototype,"titleHeadlineXs",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],MH.prototype,"titleHeadlineS",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],MH.prototype,"titleHeadlineM",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],MH.prototype,"titleHashtagBlackLinkified",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],MH.prototype,"titleHashtagGreyLinkified",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],MH.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.R([_.L(),_.Y("design:type",Object)],MH.prototype,"shouldForceIconOnly",void 0);
_.R([_.zp("skinnyMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MH.prototype,"updateOwnerAndDescriptionPosition",null);_.R([_.zp("skinnyMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MH.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.R([_.M("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],MH.prototype,"descriptionText",null);_.R([_.M("videoSecondaryInfoRenderer.headerRuns"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],MH.prototype,"headerRuns",null);
_.R([_.L({value:!1}),_.M("commentsEntryPointHeaderRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],MH.prototype,"hasTeaser",null);_.R([_.L({value:!1,reflectToAttribute:!0}),_.M("videoMetadataCarousel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],MH.prototype,"hasTeaserCarousel",null);_.R([_.L({value:3}),_.M("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],MH.prototype,"descriptionMaxLines",null);
_.R([_.M("videoSecondaryInfoRenderer.metadataRowContainer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],MH.prototype,"collapsibleMetadataRows",null);_.R([_.M("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],MH.prototype,"alwaysVisibleMetadataRows",null);
_.R([_.M("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],MH.prototype,"hasInlineStructuredDescription",null);_.R([_.M("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],MH.prototype,"showInlineStructuredDescription",null);
_.R([_.M("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],MH.prototype,"descriptionExpandCommand",null);_.R([_.M("videoSecondaryInfoRenderer.owner"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],MH.prototype,"videoOwnerCommand",null);_.R([_.L({reflectToAttribute:!0}),_.M("videoPrimaryInfoRenderer.videoActions"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],MH.prototype,"flexMenuEnabled",null);
_.R([_.L({selector:_.yA,reflectToAttribute:!0}),_.Y("design:type",Object)],MH.prototype,"isFullscreen",void 0);_.R([_.L({selector:_.l5,reflectToAttribute:!0}),_.Y("design:type",Object)],MH.prototype,"isTheaterMode",void 0);_.R([_.M("descriptionText","useFadedScrimDescription"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],MH.prototype,"showAttributedStringDescription",null);
_.R([_.M("descriptionText","useFadedScrimDescription"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],MH.prototype,"showFormattedStringDescription",null);_.R([_.M("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],MH.prototype,"showFadedStructuredDescription",null);
_.R([_.zp("videoPrimaryInfoRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MH.prototype,"videoPrimaryInfoRendererChanged",null);_.R([_.M("videoPrimaryInfoRenderer.title"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],MH.prototype,"videoTitle",null);_.R([_.M("videoPrimaryInfoRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],MH.prototype,"noEndpoints",null);
_.R([_.zp("videoSecondaryInfoRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MH.prototype,"videoSecondaryInfoRendererChanged",null);_.R([_.iP("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MH.prototype,"structuredDescriptionContentRendererChanged",null);
_.R([_.iP("skinnyMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MH.prototype,"updateTopLevelIconsOnly",null);_.R([_.iP("skinnyMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MH.prototype,"updateShouldForceIconOnly",null);_.R([_.iP("skinnyMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MH.prototype,"moveActionsElement",null);
_.R([_.VG("yt-text-inline-expander-expand-clicked"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MH.prototype,"onYtTextInlineExpanderExpandClicked",null);_.R([_.VG("yt-text-inline-expander-collapse-clicked"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MH.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.R([_.VG("yt-text-inline-expander-expanded-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MH.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.R([_.VG("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],MH.prototype,"onRenderStamperFinished",null);
_.R([_.VG("yt-expander-more-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MH.prototype,"onYtExpanderMoreTapped",null);_.R([_.VG("yt-expander-less-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MH.prototype,"onYtExpanderLessTapped",null);
_.R([_.iP("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MH.prototype,"registerPanel",null);_.R([_.iP("videoSecondaryInfoRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MH.prototype,"resetDescriptionState",null);
_.R([_.iP("structuredDescriptionContentRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MH.prototype,"parseColorSamplingData",null);_.R([_.iP("hoverColor","isDark"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MH.prototype,"updateHoverColor",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-watch-metadata"})],MH);
_.q(MH,"ytd-watch-metadata",function(){if(esF!==void 0)return esF;var C=document.createElement("template");_.X(C,'\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    <template is="dom-if" if="[[videoSecondaryInfoRenderer]]" id="description-wrapper" class="style-scope ytd-watch-metadata">\n      <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\n        <div id="description-inner" class="style-scope ytd-watch-metadata">\n          <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n          \n          <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n            <ytd-merch-shelf-renderer data="[[productShelf]]" detailed-description-override="[[!descriptionCollapsed]]" 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="[[structuredDescriptionContentRendererComputed]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n            <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n          </div>\n          <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n            <div slot="extra-content" class="style-scope ytd-watch-metadata">\n              <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRendererComputed]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n              </ytd-structured-description-content-renderer>\n              <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n              </ytd-metadata-row-container-renderer>\n            </div>\n          </ytd-text-inline-expander>\n        </div>\n        <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n      </div>\n    </template>\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return esF=C},{mode:2});_.F9S=function(C){_.hV.call(this);this.JSC$23186_watchApi=C;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;rtS(this);KOh(this);DwS(this);pv_(this);mw9(this);Cn_(this);j60(this)};
_.O(_.F9S,_.hV);var DwS=function(C){var F=function(){_.y("kevlar_is_pupi_enabled")||Se(C)};
C.JSC$23186_watchApi.getRoot().addEventListener("yt-player-updated",F);C.addOnDisposeCallback(function(){C.JSC$23186_watchApi.getRoot().removeEventListener("yt-player-updated",F)})},mw9=function(C){if(_.y("kevlar_endscreen_auto_theater_mode")){var F=C.JSC$23186_watchApi.subscribeToActiveChanged(function(){GHT(C)},!1);
C.addOnDisposeCallback(F)}},rtS=function(C){var F,G,V,J,b;
_.I(function(z){if(z.nextAddress==1)return z.yield(C.JSC$23186_watchApi.playerApi,2);F=z.yieldResult;G=function(Q){Q=!!Q;V3F(C)&&(Q=Q?2:1,_.Ef.getInstance().setState(Q,!0,!1))};
V=function(Q){Q&&_.Xp6(_.s3().getState())&&(_.rz(C.JSC$23186_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),C.temporaryTheaterMode=!0)};
J=function(Q){_.y("kevlar_player_update_autonav_on_new_data")&&Q.type==="newdata"&&(_.y("kevlar_is_pupi_enabled")||Se(C))};
b=function(Q){C.onPlayerStateChange(Q)};
_.y("kevlar_endscreen_auto_theater_mode")&&F.addEventListener("onAutonavCancelled",V);F.addEventListener("onAutonavChangeRequest",G);F.addEventListener("onVideoDataChange",J);F.addEventListener("onStateChange",b);C.addOnDisposeCallback(function(){F.removeEventListener("onAutonavChangeRequest",G);F.removeEventListener("onVideoDataChange",J);F.removeEventListener("onStateChange",b);_.y("kevlar_endscreen_auto_theater_mode")&&F.removeEventListener("onAutonavCancelled",V)});
_.S9(z)})},KOh=function(C){C.JSC$23186_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){C.autonavCancelledBySignal=!0;
_.y("kevlar_is_pupi_enabled")||Se(C)});
C.JSC$23186_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(F,G,V){G&&Se(C,V)});
C.JSC$23186_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){V3F(C)&&_.Ef.getInstance().setState(2,!0,!0)});
C.JSC$23186_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){V3F(C)&&_.Ef.getInstance().setState(1,!0,!0)});
C.addOnDisposeCallback(function(){C.JSC$23186_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");C.JSC$23186_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");C.JSC$23186_watchApi.unregisterActionHandler("yt-enable-autoplay-command");C.JSC$23186_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},pv_=function(C){var F=C.JSC$23186_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){j60(C)}),G=C.JSC$23186_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){Cn_(C)});
C.addOnDisposeCallback(function(){C.JSC$23186_watchApi.unsubscribeByKey(F);C.JSC$23186_watchApi.unsubscribeByKey(G)})},j60=function(C){C.autonavCancelledBySignal=!1;
_.y("kevlar_is_pupi_enabled")||Se(C)},Cn_=function(C){var F=C.JSC$23186_watchApi.getWatchNextResponse(),G,V;
var J=(F=(V=_.Z(F==null?void 0:(J=F.playerOverlays)==null?void 0:(G=J.playerOverlayRenderer)==null?void 0:G.autonavToggle,_.L17))==null?void 0:V.enabled)?2:1;_.y("kevlar_is_pupi_enabled")?_.Ef.getInstance().setState(J,!1,!1):Se(C);_.y("web_persist_server_autonav_state_on_client")&&typeof F==="boolean"&&_.zbI(J===2)},V3F=function(C){if(C.autonavCancelledBySignal)return!1;
var F,G,V,J;return!!((F=C.JSC$23186_watchApi.getWatchNextResponse())==null?0:(G=F.contents)==null?0:(V=G.twoColumnWatchNextResults)==null?0:(J=V.autoplay)==null?0:J.autoplay)};
_.F9S.prototype.onPlayerStateChange=function(C){if(C===0){C=!_.Ef.getInstance().isAutoplaySetExplicitly();var F=this.JSC$23186_watchApi.getWatchNextResponse(),G,V,J,b;F=_.Z(F==null?void 0:(G=F.contents)==null?void 0:(V=G.twoColumnWatchNextResults)==null?void 0:(J=V.autoplay)==null?void 0:(b=J.autoplay)==null?void 0:b.autoplayExplicitChoiceDialogRenderer,_.Tqu);V3F(this)&&C&&F&&_.Cy.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:F},popupType:"DIALOG"}})}else GHT(this)};
var GHT=function(C){C.temporaryTheaterMode&&(C.temporaryTheaterMode=!1,_.rz(C.JSC$23186_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},Se=function(C,F){F=F===void 0?!1:F;
var G;_.I(function(V){if(V.nextAddress==1)return V.yield(C.JSC$23186_watchApi.playerApi,2);G=V.yieldResult;V3F(C)?G.setAutonavState(_.Ef.getInstance().getState(),F):G.setAutonavState(1,F);_.S9(V)})};var i_B={PLAYLIST:"PLAYLIST",ERROR_SCREEN:"ERROR_SCREEN",PRIMARY_INFO:"PRIMARY_INFO",SECONDARY_INFO:"SECONDARY_INFO",CLARIFICATION:"CLARIFICATION",INFO_PANEL_BELOW_METADATA:"INFO_PANEL_BELOW_METADATA",RICH_METADATA:"RICH_METADATA",COMMENTS_ENTRY_POINT_HEADER:"COMMENTS_ENTRY_POINT_HEADER",MERCH_SHELF:"MERCH_SHELF",MERCH_SHELF_IN_SD:"MERCH_SHELF_IN_SD",DONATION_SHELF:"DONATION_SHELF",OFFER_MODULE:"OFFER_MODULE",TICKET_SHELF:"TICKET_SHELF",LIMITED_STATE:"LIMITED_STATE",ALERTS:"ALERTS",SINGLE_COLUMN_CONTENTS:"SINGLE_COLUMN_CONTENTS",
COMMENTS:"COMMENTS",ENGAGEMENT_PANELS:"ENGAGEMENT_PANELS",INLINE_ENGAGEMENT_PANELS:"INLINE_ENGAGEMENT_PANELS",RICH_GRID_RENDERER:"RICH_GRID_RENDERER",WATCH_NEXT_SECONDARY_RESULTS:"WATCH_NEXT_SECONDARY_RESULTS",EXPANDABLE_METADATA:"EXPANDABLE_METADATA",LIVE_CHAT:"LIVE_CHAT",VIDEO_METADATA_CAROUSEL:"VIDEO_METADATA_CAROUSEL",SHOPPING_TIMELY_SHELF:"SHOPPING_TIMELY_SHELF"};_.$kB=function(C){_.hV.call(this);var F=this;this.JSC$23191_watchApi=C;var G=this.JSC$23191_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Ju0(F)});
this.addOnDisposeCallback(function(){F.JSC$23191_watchApi.unsubscribeByKey(G)});
Ju0(this)};
_.O(_.$kB,_.hV);var Ju0=function(C){var F=C.JSC$23191_watchApi.getPlayerResponse(),G=C.JSC$23191_watchApi.getWatchNextResponse();if(!_.Adq(F==null?void 0:F.playabilityStatus,G==null?void 0:G.playerOverlays)){var V;var J=F==null?void 0:(V=F.playabilityStatus)==null?void 0:V.errorScreen}C.JSC$23191_watchApi.provideRenderingData("ERROR_SCREEN",J)};var b_n=_.d(function(C){var F=C.data;C=_.y("web_watch_video_details_hide_subtitle");var G=_.y("web_watch_video_details_single_line_title"),V=_.CZ(function(){var Q=F().onTap;Q&&_.I8().resolve(_.WD).resolveCommand(Q)}),J={},b={},z={};
return _.W("yt-player-overlay-video-details-renderer",{class:_.py("ytPlayerOverlayVideoDetailsRendererHost",(J.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.y("web_watch_video_details_transparent_background"),J)),"on:click":V,role:"button"},_.W("h2",{class:_.py("ytPlayerOverlayVideoDetailsRendererTitle",(b.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return G},b))},_.W(_.mn,{text:function(){return F().title}})),_.W("div",{class:_.py("ytPlayerOverlayVideoDetailsRendererSubtitle",
(z.ytPlayerOverlayVideoDetailsRendererHideSubtitle=C,z))},_.W(_.mn,{text:function(){return F().subtitle}})))},"Mn");var Lr={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},nvl=_.d(function(C){var F=C.data;var G=_.nZ(_.yA),V=_.y("web_watch_action_bar_resize_buttons"),J=_.y("web_watch_video_action_dsdvb"),b=_.y("delhi_modern_web_player_icons")&&!_.y("enable_web_delhi_icons");C=_.y("delhi_modern_web_player_disable_frosted_glass");var z=_.y("delhi_modern_web_player_compact_video_actions_controls"),
Q=_.y("web_player_quick_action_buttons_icon_only"),E=function(){var k=V&&!G(),U={};z?U.size="S":k&&(U.size="M");Q&&(U.iconPosition="icon-only");if(Object.keys(U).length!==0)return U},t={};
return _.W("yt-player-quick-action-buttons",{class:_.py("ytPlayerQuickActionButtonsHost",(t.ytPlayerQuickActionButtonsHostCompactControls=function(){return!G()||z},t.ytPlayerQuickActionButtonsHostDisableBackdropFilter=C,t))},_.W(_.Ag,{each:function(){var k=F();
if(b){k=JSON.parse(JSON.stringify(k));for(var U=_.u(k),H=U.next();!H.done;H=U.next()){var l=H.value,N=void 0;H=_.Z((N=_.Z(l,_.Rd))==null?void 0:N.toggleButtonViewModel,_.Gz);var S=void 0;N=_.Z((S=_.Z(l,_.gf))==null?void 0:S.toggleButtonViewModel,_.Gz);S=_.Z(l,_.jl);l=_.Z(l,_.Gz);if(H)N=_.Z(H.defaultButtonViewModel,_.jl),H=_.Z(H.toggledButtonViewModel,_.jl),N&&N.iconName&&(N.iconName=Lr[N.iconName]),H&&H.iconName&&(H.iconName=Lr[H.iconName]);else if(N)H=_.Z(N.defaultButtonViewModel,_.jl),N=_.Z(N.toggledButtonViewModel,
_.jl),H&&H.iconName&&(H.iconName=Lr[H.iconName]),N&&N.iconName&&(N.iconName=Lr[N.iconName]);else if(S)S.iconName&&(S.iconName=Lr[S.iconName]);else if(l){H=_.Z(l.defaultButtonViewModel,_.jl);N=_.Z(l.toggledButtonViewModel,_.jl);l=void 0;if((l=H)==null?0:l.iconName)H.iconName=Lr[H.iconName];H=void 0;if((H=N)==null?0:H.iconName)N.iconName=Lr[N.iconName]}}}J&&(k=jDl(k));return k}},function(k){return _.W(_.uC,{data:function(){return k}},{buttonViewModel:function(U){return _.W(_.tS,{data:U.data,
buttonOverrides:E})},
likeButtonViewModel:function(U){return _.W(_.of,{data:U.data,buttonShapeOverrideables:E})},
dislikeButtonViewModel:function(U){return _.W(_.TR,{data:U.data,buttonShapeOverrideables:E})},
toggleButtonViewModel:function(U){return _.W(_.AS,{data:U.data,buttonShapeOverrides:E})}})}))},"Nn");_.zin=function(C){_.hV.call(this);var F=this;this.JSC$23195_watchApi=C;C=_.u(_.yH({},void 0,"n9wCVe"));this.quickActionsViewModel=C.next().value;this.setQuickActionsViewModel=C.next().value;C=_.u(_.yH({},void 0,"JD2YUd"));this.playerOverlayVideoDetailsRenderer=C.next().value;this.setPlayerOverlayVideoDetailsRenderer=C.next().value;var G=this.JSC$23195_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){uLl(F)});
this.addOnDisposeCallback(function(){F.JSC$23195_watchApi.unsubscribeByKey(G)});
uLl(this)};
_.O(_.zin,_.hV);
var uLl=function(C){var F,G,V,J,b,z,Q,E,t,k,U,H,l,N;_.I(function(S){if(S.nextAddress==1)return S.yield(C.JSC$23195_watchApi.playerApi,2);F=S.yieldResult;G=C.JSC$23195_watchApi.getWatchNextResponse();b=(V=G)==null?void 0:(J=V.playerOverlays)==null?void 0:J.playerOverlayRenderer;Q=_.Z((z=b)==null?void 0:z.fullscreenQuickActionsBar,_.Mpl);(t=(E=C).setQuickActionsViewModel)==null||t.call(E,Q||{});Q&&Q6Y(C,F);H=(k=b)==null?void 0:(U=k.videoDetails)==null?void 0:U.playerOverlayVideoDetailsRenderer;(N=(l=
C).setPlayerOverlayVideoDetailsRenderer)==null||N.call(l,H||{});H&&Icz(C,F);_.S9(S)})},Q6Y=function(C,F){if(!C.quickActionButtonsContainer)if(F.setFullscreenQuickActions){C.quickActionButtonsContainer=document.createElement("div");
F.setFullscreenQuickActions(C.quickActionButtonsContainer);var G=function(){return C.quickActionsViewModel().quickActionButtons||[]},V=_.xn(C.quickActionButtonsContainer,function(){return _.W(nvl,{data:G})},"On");
C.addOnDisposeCallback(function(){F.setFullscreenQuickActions(void 0);V()})}else _.Yw(new _.Ay("setFullscreenQuickActions not defined",{playerApi:Object.keys(F),
isReady:F.isReady(),appState:F.getAppState()}))},Icz=function(C,F){if(!C.playerOverlayVideoDetailsRendererContainer)if(F.setPlayerOverlayVideoDetailsRenderer){C.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
F.setPlayerOverlayVideoDetailsRenderer(C.playerOverlayVideoDetailsRendererContainer);var G=_.xn(C.playerOverlayVideoDetailsRendererContainer,function(){return _.W(b_n,{data:C.playerOverlayVideoDetailsRenderer})},"Pn");
C.addOnDisposeCallback(function(){F.setPlayerOverlayVideoDetailsRenderer(void 0);G()})}else _.Yw(new _.Ay("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(F),
isReady:F.isReady(),appState:F.getAppState()}))};_.By=function(C){_.hV.call(this);var F=this;this.JSC$23201_watchApi=C;this.JSC$23201_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;C=_.hK(_.s3(),_.yA,function(G){F.onFullscreenChanged(G)});
this.addOnDisposeCallback(C);C=_.hK(_.s3(),_.BH,function(G){F.onWatchScroll(G)});
this.addOnDisposeCallback(C);_.y("kevlar_watch_while_v2")&&(C=_.hK(_.s3(),_.yj,function(G){Evn(F,G)}),this.addOnDisposeCallback(C));
W9h(this);t3n(this);acn();this.onWatchScroll(_.BH(_.s3().getState()));_.oD("START_IN_FULL_WINDOW_MODE")&&this.JSC$23201_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.O(_.By,_.hV);var W9h=function(C){C.JSC$23201_watchApi.registerActionHandler("yt-fullscreen-change-action",function(F){var G=C.JSC$23201_watchApi.isActive();F&&!G||_.s3().dispatch(_.rh({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!F}}))});
C.addOnDisposeCallback(function(){C.JSC$23201_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},t3n=function(C){var F,G;
_.I(function(V){if(V.nextAddress==1)return V.yield(C.JSC$23201_watchApi.playerApi,2);F=V.yieldResult;G=function(){C.onFullerscreenEduClicked()};
F.addEventListener("onFullerscreenEduClicked",G);C.addOnDisposeCallback(function(){F.removeEventListener("onFullerscreenEduClicked",G)});
_.S9(V)})};
_.By.prototype.onFullscreenChanged=function(C){var F=this,G;return _.I(function(V){if(V.nextAddress==1)return F.isFullscreen=!!_.gz(),V.yield(F.JSC$23201_watchApi.playerApi,2);G=V.yieldResult;F.JSC$23201_miniplayerActive||G.setFauxFullscreen(F.isFullscreen);if(C&&(F.JSC$23201_watchApi.focusOnPlayer(),!F.fullerscreenEduButtonShownThisPlayback)){F.fullerscreenEduButtonShownThisPlayback=!0;var J=_.Wr("yt-fullerscreen-edu-button-shown-count")||0;_.E6("yt-fullerscreen-edu-button-shown-count",J+1,31536E3);
F.updateFullerscreenEduButtonSubtleModeState()}_.S9(V)})};
var Evn=function(C,F){var G;_.I(function(V){if(V.nextAddress==1)return C.JSC$23201_miniplayerActive=F,V.yield(C.JSC$23201_watchApi.playerApi,2);G=V.yieldResult;G.setFauxFullscreen(!C.JSC$23201_miniplayerActive&&C.isFullscreen);_.S9(V)})};
_.By.prototype.onWatchScroll=function(C){var F=this,G,V;return _.I(function(J){if(J.nextAddress==1)return _.y("external_fullscreen_with_edu")?J.yield(F.JSC$23201_watchApi.playerApi,2):J.return();G=J.yieldResult;V=C<=0;F.shouldShowFullerscreenEdu!==V&&(F.shouldShowFullerscreenEdu=V,G.updateFullerscreenEduButtonVisibility(!F.shouldShowFullerscreenEdu));_.S9(J)})};
_.By.prototype.onFullerscreenEduClicked=function(){this.JSC$23201_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var C=_.Wr("yt-fullerscreen-edu-button-click-count")||0;_.E6("yt-fullerscreen-edu-button-click-count",C+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.By.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var C=this,F,G,V,J,b,z;return _.I(function(Q){if(Q.nextAddress==1)return F=_.Wr("yt-fullerscreen-edu-button-click-count")||0,G=_.Wr("yt-fullerscreen-edu-button-shown-count")||0,V=_.a8("external_fullscreen_button_click_threshold"),J=_.a8("external_fullscreen_button_shown_threshold"),b=F>=V||G>=J,Q.yield(C.JSC$23201_watchApi.playerApi,2);z=Q.yieldResult;z.updateFullerscreenEduButtonSubtleModeState(b);_.S9(Q)})};
_.By.prototype.disposeInternal=function(){_.hV.prototype.disposeInternal.call(this);var C=_.gz();_.y("kevlar_exit_fullscreen_leaving_watch")&&C&&_.Ro(C)};
var acn=function(){if(_.y("web_watch_add_viewport_meta_tag")){var C=document.querySelector("meta[name=viewport]"),F=document.head;F&&!C&&(C=document.createElement("meta"),C.name="viewport",C.content="width=device-width, initial-scale=1.0, viewport-fit=cover",F.appendChild(C))}};_.Uk9=function(C){_.hV.call(this);var F=this;this.JSC$23204_watchApi=C;this.jobId=0;this.pendingRequestId=void 0;var G=this.JSC$23204_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){kH9(F)});
this.addOnDisposeCallback(function(){F.JSC$23204_watchApi.unsubscribeByKey(G)});
kH9(this)};
_.O(_.Uk9,_.hV);var H_S=function(C){_.gT.cancelJob(C.jobId);C.pendingRequestId=void 0},kH9=function(C){H_S(C);
var F=FN0(C.JSC$23204_watchApi.getWatchNextResponse());if(F){var G=250,V,J=(V=_.Z(F,_.XL$))==null?void 0:V.initialDelayMs;_.y("web_watch_updated_metadata_server_initial_delay")&&J&&(G=J);C.jobId=_.gT.addLowPriorityJob(function(){return C.fetchUpdatedMetadata(F)},G)}};
_.Uk9.prototype.fetchUpdatedMetadata=function(C,F){var G=this,V,J,b,z,Q,E,t,k,U,H,l,N,S,f,c;return _.I(function(A){switch(A.nextAddress){case 1:F&&(V={continuation:F});if(!_.y("web_get_updated_metadata_fantasy_panel_continuation_params")){A.jumpTo(2);break}J=_.I8().resolve(_.dB);b="PAsports_fantasy";return A.yield(J.isVisible(b,!0),3);case 3:A.yieldResult&&(t=(Q=(z=J).getUpdatePanelContinuationData)==null?void 0:(E=Q.call(z,b))==null?void 0:E.updatePanelContinuationRequest)&&(V||(V={}),V.clientParams=
{panelContinuationParams:{panelContinuation:t}});case 2:k=_.I8().resolve(_.Qk);if(!k)return _.gD(Error("Zo")),A.return();U={};G.pendingRequestId=U;return A.yield(_.fZ(k,C,V),4);case 4:H=A.yieldResult;if(U!==G.pendingRequestId)return A.return();S=(l=H)==null?void 0:(N=l.continuation)==null?void 0:N.timedContinuationData;((f=S)==null?0:f.continuation)&&((c=S)==null?0:c.timeoutMs)&&(G.jobId=_.gT.addLowPriorityJob(function(){return G.fetchUpdatedMetadata(C,S.continuation)},S.timeoutMs));
_.S9(A)}})};
_.Uk9.prototype.disposeInternal=function(){_.hV.prototype.disposeInternal.call(this);H_S(this)};var lc9=_.d(function(C){var F=_.CZ(function(){var V=C.data().videoId;if(C.active())V=_.RQ(V),_.I8().resolve(_.WD).resolveCommand(V);else{var J=C.playerApi(),b=J.getAvailableAudioTracks(),z,Q,E=(z=C.sourceVideoConfig().audioTracks)==null?void 0:(Q=z.find(function(t){return t.isDefaultForSource}))==null?void 0:Q.id;
if(b=b.find(function(t){return t.getLanguageInfo().getId()===E}))J.setAudioTrack(b,!0),J.setCompositeParam({activeVideoId:V}),C.setActiveSourceId(V)}}),G={};
return _.W("ytw-composite-source-video-overlay",{class:_.py("ytwCompositeSourceVideoOverlayHost",(G.ytwCompositeSourceVideoOverlayActive=C.active,G.ytwCompositeSourceVideoOverlayInteracting=C.interacting,G)),style:_.VA({left:function(){var V;return((V=C.data().topLeftCornerX)!=null?V:0)*100+"%"},
top:function(){var V;return((V=C.data().topLeftCornerY)!=null?V:0)*100+"%"},
width:function(){var V;return((V=C.data().width)!=null?V:0)*100+"%"},
height:function(){var V;return((V=C.data().height)!=null?V:0)*100+"%"}}),
"on:click":F},_.W("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Qn");var yuz=_.d(function(C){var F=_.u(_.Gb(function(){var z,Q=(z=C.data().sources)==null?void 0:z.find(function(E){return E.isActive});
if(Q)return Q.videoId})),G=F.next().value,V=F.next().value;
F=_.u(_.yH(!1,void 0,"yNRzwd"));var J=F.next().value,b=F.next().value;return _.W("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.CZ(function(){b(!0)}),
"on:mouseout":_.CZ(function(){b(!1)})},_.W(_.a,{cond:function(){return C.data().sources},
then:function(z){return _.W(_.Ag,{each:z},function(Q){return _.W(lc9,{data:Q,active:function(){return Q.videoId===G()},
setActiveSourceId:V,interacting:J,playerApi:C.playerApi,sourceVideoConfig:function(){return GFn(C.compositeVideoConfig(),Q.videoId)}})})}}))},"Rn");_.O_9=function(C){_.hV.call(this);this.JSC$23220_watchApi=C;C=_.u(_.yH({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=C.next().value;this.setCompositeVideoOverlayRenderer=C.next().value;C=_.u(_.yH({},void 0,"OlaJpc"));this.compositeVideoConfig=C.next().value;this.setCompositeVideoConfig=C.next().value;Z_n(this);Nt_(this)};
_.O(_.O_9,_.hV);var Z_n=function(C){var F=C.JSC$23220_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Nt_(C)});
C.addOnDisposeCallback(function(){C.JSC$23220_watchApi.unsubscribeByKey(F)})},XS6=function(C){var F;
return _.I(function(G){if(G.nextAddress==1)return G.yield(C.JSC$23220_watchApi.playerApi,2);F=G.yieldResult;F.setCompositeVideoOverlayRendererComponent(C.container);_.S9(G)})},wSS=function(C){var F;
return _.I(function(G){if(G.nextAddress==1)return G.yield(C.JSC$23220_watchApi.playerApi,2);F=G.yieldResult;F.setCompositeVideoOverlayRendererComponent(void 0);_.S9(G)})},M30=function(C){var F,G;
return _.I(function(V){if(V.nextAddress==1)return V.yield(C.JSC$23220_watchApi.playerApi,2);F=V.yieldResult;C.container=document.createElement("div");G=_.xn(C.container,function(){return _.W(yuz,{data:C.compositeVideoOverlayRenderer,compositeVideoConfig:C.compositeVideoConfig,playerApi:F})},"Sn");
C.addOnDisposeCallback(G);_.S9(V)})},Nt_=function(C){var F,G,V,J,b,z,Q,E;
_.I(function(t){return t.nextAddress==1?(F=C.JSC$23220_watchApi.getPlayerResponse(),b=_.Z((G=F)==null?void 0:(V=G.overlay)==null?void 0:(J=V.playerControlsOverlayRenderer)==null?void 0:J.compositeVideoOverlay,pQF),E=(z=F)==null?void 0:(Q=z.playerConfig)==null?void 0:Q.compositeVideoConfig,b&&C.setCompositeVideoOverlayRenderer(b),E&&C.setCompositeVideoConfig(E),b&&E?C.container?t.jumpTo(6):t.yield(M30(C),6):SH_(C)?t.yield(wSS(C),0):t.jumpTo(0)):SH_(C)?t.jumpTo(0):t.yield(XS6(C),0)})},SH_=function(C){var F;
return!((F=C.container)==null||!F.parentElement)};
_.O_9.prototype.disposeInternal=function(){SH_(this)&&wSS(this);_.hV.prototype.disposeInternal.call(this)};_.hi9=function(C){_.hV.call(this);var F=this;this.JSC$23226_watchApi=C;var G=this.JSC$23226_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var V=F.JSC$23226_watchApi.getPlayerResponse();if(V){var J,b;if(V=_.Z((J=V.endscreen)==null?void 0:(b=J.endscreenRenderer)==null?void 0:b.hideButton,_.Gz)){var z;(z=F.setEndscreenHideButton)==null||z.call(F,V);L90(F)}}});
this.addOnDisposeCallback(function(){F.JSC$23226_watchApi.unsubscribeByKey(G)});
C=_.u(_.yH({},void 0,"ER3tqb"));this.endscreenHideButton=C.next().value;this.setEndscreenHideButton=C.next().value;Bt_(this);vvz(this);fcT(this)};
_.O(_.hi9,_.hV);
var L90=function(C){var F,G;_.I(function(V){if(V.nextAddress==1)return C.creatorEndscreenHideButtonContainer?V.return():V.yield(C.JSC$23226_watchApi.playerApi,2);F=V.yieldResult;C.creatorEndscreenHideButtonContainer=document.createElement("div");_.F5(C.creatorEndscreenHideButtonContainer,!1);F.setCreatorEndscreenHideButton(C.creatorEndscreenHideButtonContainer);G=_.xn(C.creatorEndscreenHideButtonContainer,function(){return _.W(_.AS,{data:C.endscreenHideButton,useOutlinedIcon:!0})},"Tn");
C.addOnDisposeCallback(function(){G();var J;(J=F)==null||J.setCreatorEndscreenHideButton(void 0)});
_.S9(V)})},Bt_=function(C){var F,G;
_.I(function(V){if(V.nextAddress==1)return V.yield(C.JSC$23226_watchApi.playerApi,2);F=V.yieldResult;G=function(){C.creatorEndscreenHideButtonContainer&&_.F5(C.creatorEndscreenHideButtonContainer,!0)};
F.addEventListener("endscreenelementshown",G);C.addOnDisposeCallback(function(){var J;(J=F)==null||J.removeEventListener("endscreenelementshown",G)});
_.S9(V)})},vvz=function(C){var F=function(){C.creatorEndscreenHideButtonContainer&&_.F5(C.creatorEndscreenHideButtonContainer,!1)},G=C.JSC$23226_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",F),V=C.JSC$23226_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",F);
C.addOnDisposeCallback(function(){C.JSC$23226_watchApi.unsubscribeByKey(G);C.JSC$23226_watchApi.unsubscribeByKey(V)})},fcT=function(C){C.JSC$23226_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(F){var G=_.Z(F,Y0S);
C.JSC$23226_watchApi.playerApi.then(function(V){V==null||V.setCreatorEndscreenVisibility(!!G.hide)})});
C.addOnDisposeCallback(function(){C.JSC$23226_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.AuY=function(C){_.hV.call(this);this.JSC$23232_watchApi=C;cu0(this)};
_.O(_.AuY,_.hV);var cu0=function(C){var F,G;_.I(function(V){if(V.nextAddress==1)return V.yield(C.JSC$23232_watchApi.playerApi,2);F=V.yieldResult;G=function(J){_.s3().dispatch(_.rh({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:J}}))};
F.addEventListener("onRetroModeChanged",G);C.addOnDisposeCallback(function(){F.removeEventListener("onRetroModeChanged",G)});
_.S9(V)})};var z7S=0,fg=0,INY=0;var eiT;eiT=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.vy=function(C){_.hV.call(this);this.JSC$23237_watchApi=C;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;dkT(this)};
_.O(_.vy,_.hV);
var dkT=function(C){var F,G,V;_.I(function(J){if(J.nextAddress==1)return J.yield(C.JSC$23237_watchApi.playerApi,2);F=J.yieldResult;if(C.isDisposed())return J.return();C.sessionStorage=_.fN_("yt-sleep-timer");C.sessionStorage||_.Yw(new _.Ay("SessionStorage for Sleep Timer is undefined."));((G=C.sessionStorage)==null?void 0:G.get("yt-sleep-timer"))==="true"&&(t_6(),(V=C.sessionStorage)==null||V.remove("yt-sleep-timer"),F.syncVolume());xkT(C,F);s6l(C,F);qH0(C,F);_.S9(J)})},xkT=function(C,F){var G=function(t){C.onSleepTimerSettingsChanged(t,
F)},V=function(t){C.onPlayerStateChange(t,F)},J=function(){C.onLoopChange(F)},b=function(){C.onCloseMiniplayer(F)},z=function(){uFl(F,(0,_.Et)(),aNh(F),C.selectedOption==="End of video",F.getPlayerState()!==1)},Q=function(){C.onSeekComplete(F)},E=function(){_.gT.cancelJob(fg);
var t=F.getCurrentTime()>=F.getDuration(),k=C.selectedOption==="End of video"||C.selectedOption==="End of playlist"&&!$4_(C.playlistId);t&&k&&Pn0(C,F)};
F.addEventListener("onSleepTimerSettingsChanged",G);F.addEventListener("onLoopChange",J);F.addEventListener("onLoopRangeChange",J);F.addEventListener("onStateChange",V);F.addEventListener("onCloseMiniplayer",b);F.addEventListener("onSleepTimerFeatureAvailable",z);F.addEventListener("SEEK_COMPLETE",Q);F.addEventListener("onAdStart",E);C.addOnDisposeCallback(function(){F.removeEventListener("onSleepTimerSettingsChanged",G);F.removeEventListener("onLoopChange",J);F.removeEventListener("onLoopRangeChange",
J);F.removeEventListener("onStateChange",V);F.removeEventListener("onCloseMiniplayer",b);F.removeEventListener("onSleepTimerFeatureAvailable",z);F.removeEventListener("SEEK_COMPLETE",Q);F.removeEventListener("onAdStart",E)})},s6l=function(C,F){var G=C.JSC$23237_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var V=F.getVideoData().video_id,J,b=(J=iWY(C.JSC$23237_watchApi))==null?void 0:J.playlistId;
C.pauseAutonavPlayback&&(F.pauseVideo(),F.syncVolume(),C.pauseAutonavPlayback=!1);if(C.selectedOption==="End of video"&&V!==C.videoId)fr(C,F);else{if(C.selectedOption==="End of playlist"){J=$4_(C.playlistId);if(b!==C.playlistId){fr(C,F);break a}J?J&&gvL(C,F):RiS(C,F)}C.videoId=V;C.playlistId=b}}});
C.addOnDisposeCallback(function(){C.JSC$23237_watchApi.unsubscribeByKey(G)})},qH0=function(C,F){var G=_.I8().resolve(_.P$),V=_.hK(G,_.BqI,function(b){b&&C.selectedOption!=="Off"&&fr(C,F)}),J=C.JSC$23237_watchApi.subscribeToActiveChanged(function(b){var z,Q;
return _.I(function(E){if(E.nextAddress==1)return E.yield(_.v0().navigationFinishPromise,2);z=!_.oFu();Q=_.I8().resolve(_.Od).isMiniplayerActive();b||!V_l(C.selectedOption)||Q||z||fr(C,F);_.S9(E)})},!1);
G=_.hK(G,function(b){return b.entities.playlistLoopStateEntity||{}},function(b){b=b===void 0?{}:b;
var z=JgL(C.JSC$23237_watchApi);if(z){var Q;((Q=b[z])==null?void 0:Q.state)==="PLAYLIST_LOOP_STATE_ALL"&&V_l(C.selectedOption)&&fr(C,F)}});
C.addOnDisposeCallback(V);C.addOnDisposeCallback(G);C.addOnDisposeCallback(J)};
_.vy.prototype.onSleepTimerSettingsChanged=function(C,F){switch(C){case "Off":this.selectedOption!=="Off"&&fr(this,F);break;case "End of video":case "End of playlist":YH_(this,C,F);break;default:YH_(this,C,F,eiT.get(C))}};
_.vy.prototype.onLoopChange=function(C){(C.getLoopVideo()||C.getLoopRange())&&V_l(this.selectedOption)&&fr(this,C)};
_.vy.prototype.onCloseMiniplayer=function(C){V_l(this.selectedOption)&&fr(this,C)};
var YH_=function(C,F,G,V){Ttz(C,G);C.selectedOption=F;C.videoId=G.getVideoData().video_id;C.playlistId="";var J;(J=C.sessionStorage)==null||J.set("yt-sleep-timer","true");C.adjustmentsCount++;uFl(G,(0,_.Et)(),aNh(G),C.selectedOption==="End of video");if(C.selectedOption==="End of video")RiS(C,G),ovT(C,G);else if(C.selectedOption==="End of playlist"){ovT(C,G);var b,z;C.playlistId=(z=(b=iWY(C.JSC$23237_watchApi))==null?void 0:b.playlistId)!=null?z:"";$4_(C.playlistId)||RiS(C,G)}else V&&(C.presetFadeSchedulerId=
_.Iy(_.gT,function(){Enl(G,15E3)},V-15E3),C.presetPauseSchedulerId=_.Iy(_.gT,function(){Pn0(C,G)},V),QDY(G,(0,_.Et)(),V))},Pn0=function(C,F){if(C.JSC$23237_watchApi.isActive()){var G={dismissDialogEndpoint:{}};
var V={commandExecutorCommand:{commands:[G,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};G={buttonViewModel:{title:_.iQ("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:G}}};V={buttonViewModel:{title:_.iQ("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:V}}};var J={dialogHeaderViewModel:{headline:{content:_.iQ("SLEEP_TIMER_ENDED_TITLE")}}},
b={basicContentViewModel:{paragraphs:[{text:{content:_.iQ("SLEEP_TIMER_ENDED_TEXT")}}]}};G={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:J,content:b,footer:{panelFooterViewModel:{primaryButton:G,secondaryButton:V,shouldHideDivider:!0}}}}}}};_.I8().resolve(_.WD).resolveCommand(G,{form:{element:C}})}else t_6();ru_(C,!1);K99(C,F);F.pauseVideo();_.Ef.getInstance().getState()===2&&F.getPlayerState()===5&&(C.pauseAutonavPlayback=!0)},fr=function(C,F){ru_(C,!0);
K99(C,F);t_6()},K99=function(C,F){Ttz(C,F);
C.selectedOption="Off";C.videoId="";C.playlistId="";C.adjustmentsCount=0;var G;(G=C.sessionStorage)==null||G.remove("yt-sleep-timer");_.gT.cancelJob(z7S);F.resetSleepTimerMenuSettings()},ru_=function(C,F){F={timer_length_adjustment_times_during_session:C.adjustmentsCount-1,
is_session_cancelled:F};switch(C.selectedOption){case "Off":F.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":F.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":F.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:F.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",F.option_duration_in_minutes=eiT.get(C.selectedOption)/6E4}_.q1("sleepTimerSessionFinishEvent",F)};
_.vy.prototype.onPlayerStateChange=function(C,F){C===1?uFl(F,(0,_.Et)(),aNh(F),this.selectedOption==="End of video"):C===0?(_.gT.cancelJob(fg),F.setVideoTimeLeft(nn0(0,0))):C===2&&_.gT.cancelJob(fg);this.selectedOption==="End of video"?C===0?Pn0(this,F):C===2&&WNS(F):this.selectedOption!=="End of playlist"||$4_(this.playlistId)||(C===0?Pn0(this,F):C===2&&WNS(F))};
_.vy.prototype.onSeekComplete=function(C){C.getPlayerState()===2&&uFl(C,(0,_.Et)(),aNh(C),this.selectedOption==="End of video",!0)};
_.vy.prototype.onCueRangeEnter=function(C,F){C==="sleep-timer-fade-audio"&&Enl(F,(F.getDuration()-F.getProgressState().current)*1E3)};
_.vy.prototype.onCueRangeExit=function(C,F){C==="sleep-timer-fade-audio"&&F.getPlayerState()!==0&&WNS(F,!0)};
var RiS=function(C,F){F.addCueRange("sleep-timer-fade-audio",F.getDuration()-15,F.getDuration());F.addEventListener("onCueRangeEnter",function(G){C.onCueRangeEnter(G,F)});
F.addEventListener("onCueRangeExit",function(G){C.onCueRangeExit(G,F)})},gvL=function(C,F){F.removeCueRange("sleep-timer-fade-audio");
F.removeEventListener("onCueRangeEnter",function(G){C.onCueRangeEnter(G,F)});
F.removeEventListener("onCueRangeExit",function(G){C.onCueRangeExit(G,F)})},Ttz=function(C,F){V_l(C.selectedOption)?gvL(C,F):(_.gT.cancelJob(C.presetPauseSchedulerId),_.gT.cancelJob(C.presetFadeSchedulerId),C.presetPauseSchedulerId=0,C.presetFadeSchedulerId=0);
WNS(F,!0)},ovT=function(C,F){F.setLoop(!1);
F.setLoopVideo(!1);F.setLoopRange(null);(C=JgL(C.JSC$23237_watchApi))&&_.I8().resolve(_.P$).dispatch(_.z3("playlistLoopStateEntity",C,{key:C,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.Cm_=function(C){_.hV.call(this);var F=this;this.JSC$23240_watchApi=C;Dkh(this);pSY(this);mk6(this);var G=this.JSC$23240_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){_.a8("theater_mode_cookie_max_age_seconds",-1)!==-1&&_.BD.get("wide",void 0)==="1"&&_.vD("wide","1",_.a8("theater_mode_cookie_max_age_seconds",-1))});
this.addOnDisposeCallback(function(){F.JSC$23240_watchApi.unsubscribeByKey(G)});
C=C.getRoot();if(C.is==="ytd-watch-flexy"||C.is==="ytd-watch-grid")C.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.MEL();_.y("web_watch_log_theater_mode_cookie_state")&&_.BD.get("wide","0")==="1"&&_.Oss("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.O(_.Cm_,_.hV);var Dkh=function(C){var F,G;_.I(function(V){if(V.nextAddress==1)return V.yield(C.JSC$23240_watchApi.playerApi,2);F=V.yieldResult;G=function(J){joz(C,!!J)};
F.addEventListener("SIZE_CLICKED",G);C.addOnDisposeCallback(function(){F.removeEventListener("SIZE_CLICKED",G)});
_.S9(V)})},pSY=function(C){C.JSC$23240_watchApi.registerActionHandler("yt-toggle-theater-mode",function(F,G){joz(C,F,G===void 0?!0:G)});
C.addOnDisposeCallback(function(){C.JSC$23240_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.Cm_.prototype.getState=function(){return _.l5(_.s3().getState())};
var joz=function(C,F,G){G=G===void 0?!0:G;var V,J,b,z=_.y("enable_player_resize_transition")&&!!C.JSC$23240_watchApi.getWatchNextResponse()&&!((V=C.JSC$23240_watchApi.getWatchNextResponse())==null?0:(J=V.contents)==null?0:(b=J.twoColumnWatchNextResults)==null?0:b.conversationBar);_.idt(function(){_.s3().dispatch(_.rh({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:F}}));_.y("theater_mode_scroll_to_top_killswitch")||C.JSC$23240_watchApi.scrollWatchTo(0,!1);_.gz()&&_.y("external_fullscreen")&&_.Ro(document.documentElement);
mk6(C);G&&_.vD("wide",F?"1":"0",_.a8("theater_mode_cookie_max_age_seconds",-1));_.rz(C.JSC$23240_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);C.JSC$23240_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:F});F&&_.MEL()},{shouldWrap:z})},mk6=function(C){var F;
_.I(function(G){if(G.nextAddress==1)return G.yield(C.JSC$23240_watchApi.playerApi,2);F=G.yieldResult;F.setSizeStyle(!0,C.getState());_.S9(G)})};var VTn=function(C){_.hV.call(this);var F=this;this.playerApi=C;this.timeToPanelSyncKeyMap={};var G;if(C==null?0:(G=C.isReady)==null?0:G.call(C)){G=_.hK(_.I8().resolve(_.P$),function(J){return J.entities.timedMarkersListSyncEntity||{}},function(J,b){J=J===void 0?{}:J;
b=b===void 0?{}:b;for(var z=_.u(Object.keys(b)),Q=z.next();!Q.done;Q=z.next())Q=Q.value,J[Q]!==b[Q]&&FEh(F,b[Q]);b=_.u(Object.keys(J));for(z=b.next();!z.done;z=b.next())z=z.value,Q=J[z],F.timeToPanelSyncKeyMap[z]&&G_9(F,Q)});
this.addOnDisposeCallback(G);var V=function(J){F.onCueRangeEnter(J)};
C.addEventListener("onCueRangeEnter",V);this.addOnDisposeCallback(function(){var J;(J=C.removeEventListener)==null||J.call(C,"onCueRangeEnter",V)})}};
_.O(VTn,_.hV);
var G_9=function(C,F){var G,V;if((G=C.playerApi)==null?0:(V=G.isReady)==null?0:V.call(G)){var J;if((G=F==null?void 0:(J=F.timedListData)==null?void 0:J.sections)&&F!=null&&F.key)for(J=_.u(G),G=J.next();!G.done;G=J.next())if(G=G.value,G.timedSyncDataList&&G.sectionId)for(V=0;V<G.timedSyncDataList.length;V++){var b=G.timedSyncDataList[V];b.syncItemId&&C.playerApi.addCueRange(G.sectionId+"_"+F.key+"_"+b.syncItemId,Number(b.videoTimeMs)/1E3,V===G.timedSyncDataList.length-1?0x8000000000000:Number(G.timedSyncDataList[V+
1].videoTimeMs)/1E3)}}},FEh=function(C,F){var G,V;
if((G=C.playerApi)==null?0:(V=G.isReady)==null?0:V.call(G)){var J;if((G=F==null?void 0:(J=F.timedListData)==null?void 0:J.sections)&&F!=null&&F.key)for(J=_.u(G),G=J.next();!G.done;G=J.next())if(G=G.value,G.timedSyncDataList&&G.sectionId){V=_.u(G.timedSyncDataList);for(var b=V.next();!b.done;b=V.next())b=b.value,b.syncItemId&&C.playerApi.removeCueRange(G.sectionId+"_"+F.key+"_"+b.syncItemId)}}};
VTn.prototype.onCueRangeEnter=function(C){for(var F=_.u(Object.keys(this.timeToPanelSyncKeyMap)),G=F.next();!G.done;G=F.next()){G=G.value;var V=_.u(C.split("_"+G+"_")),J=V.next().value;V=V.next().value;if(J&&V){C=_.I8().resolve(_.P$);F=this.timeToPanelSyncKeyMap[G];var b=_.Eof(C.getState(),F);G=iXY(G,J,V);if(G===-1)break;G={activeSyncId:V,activeItemIndex:G,activeSectionInfo:{sectionIdentifier:J}};b?C.dispatch(_.kZ("markersEngagementPanelSyncEntity",F,G)):C.dispatch(_.z3("markersEngagementPanelSyncEntity",
F,Object.assign({},{key:F},G)));break}}};
var iXY=function(C,F,G){var V=_.I8().resolve(_.P$),J,b;C=(J=HBL(V.getState(),C))==null?void 0:(b=J.timedListData)==null?void 0:b.sections;if(!C)return-1;J=0;b=_.u(C);for(C=b.next();!C.done;C=b.next()){C=C.value;V=C.timedSyncDataList||[];if(C.sectionId===F)return F=V.findIndex(function(z){return z.syncItemId===G}),F===-1?F:J+F;
J+=V.length}return-1};_.bXT=function(C){_.hV.call(this);var F=this;this.JSC$23253_watchApi=C;this.unresolvedCommands=[];this.JSC$23253_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(G){JrL(F,G)});
this.addOnDisposeCallback(function(){F.JSC$23253_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
$U_(this)};
_.O(_.bXT,_.hV);var $U_=function(C){var F;_.I(function(G){if(G.nextAddress==1)return G.yield(C.JSC$23253_watchApi.playerApi,2);F=G.yieldResult;if(C.isDisposed())return G.return();C.timedSyncObserver=new VTn(F);C.unresolvedCommands.length&&(C.unresolvedCommands.forEach(function(V){return JrL(C,V)}),C.unresolvedCommands=[]);
_.Nd(C,C.timedSyncObserver);_.S9(G)})},JrL=function(C,F){if(C.timedSyncObserver){var G=_.Z(F,on9);
if(G&&G.timedSyncEntityKey&&G.panelSyncEntityKey){C=C.timedSyncObserver;F=G.timedSyncEntityKey;var V=G.panelSyncEntityKey;G=!!G.isEnabled;G=G===void 0?!0:G;var J=_.I8().resolve(_.P$);J=HBL(J.getState(),F);G?C.timeToPanelSyncKeyMap[F]||(C.timeToPanelSyncKeyMap[F]=V,G_9(C,J)):(delete C.timeToPanelSyncKeyMap[F],FEh(C,J))}}else C.unresolvedCommands.push(F)};var n66=_.d(function(C){var F=C.data,G=C.maybeLogSmartSkipClientData,V=null,J=null,b=_.y("web_enable_auto_focus_for_timely_action_button"),z=function(){V=document.activeElement},Q=function(){F().smartSkipMetadata&&(V=document.activeElement,_.K$F(function(){return J}))},E=function(k){if(F().smartSkipMetadata&&(!k||k.key!=="Enter")){V&&V.isConnected&&(_.K$F(function(){return V}),V=null);
var U;(U=J)==null||U.blur()}};
C=_.CZ(function(){G==null||G(!0,F());return!1});
var t=_.dQ(_.lC(function(){return F().rendererContext},{onTap:function(k,U){U({disableClickTracking:!0})}}),_.Wv({visibilityCallback:function(k){if(b)k?J&&F().smartSkipMetadata&&(Q(),document.addEventListener("focusin",z)):(document.removeEventListener("focusin",z),E());
else if(k){k=_.UI(F().rendererContext);var U=Number(F().maxVisibleDurationMilliseconds),H,l=(H=_.Z(F().rendererContext,_.$Z))==null?void 0:H.label;k&&U&&l&&(H={label:l,command:k,durationMs:U},_.I8().resolve(_.G9).enqueue(H))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.s0(function(){if(b){var k;if((J=(k=t.value)==null?void 0:k.querySelector("button"))&&F().smartSkipMetadata){var U;(U=t.value)==null||U.addEventListener("keydown",E)}}});
_.q0(function(){b&&(J&&F().smartSkipMetadata&&J.removeEventListener("keydown",E),document.removeEventListener("focusin",z),E())});
return _.W("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:t,"on:click":C},_.W(_.uC,{data:function(){return F().content}},{buttonViewModel:_.tS}))},"Vn");var uw_=_.d(function(C){var F=C.data,G=C.playerApi,V=_.I8().resolve(_.JGs);C=_.u(_.Gb(function(){F()}));
var J=C.next().value,b=C.next().value,z=function(){return HWT(F(),J())},Q=function(t,k){var U,H,l=(U=_.Z(k==null?void 0:k.rendererContext,_.$e))==null?void 0:(H=U.loggingDirectives)==null?void 0:H.trackingParams;
if((k=k==null?void 0:k.smartSkipMetadata)&&k.loggingData&&(H=k.loggingData,k=H.algorithmId,U=H.startMilliseconds,H=H.endMilliseconds,k&&U!==void 0&&H!==void 0)){var N,S;t={smartSkipData:Object.assign({},{versionName:k,startMediaTimeMs:U,endMediaTimeMs:H},t&&{userInteractionMediaTimeMs:(Math.floor(((N=_.gE())==null?void 0:(S=N.getPlayer())==null?void 0:S.getCurrentTime())||0)*1E3).toString()})};N=_.ZQ();var f;l&&(f=_.zS(l));N&&f&&_.xB(N,f,t)}},E=function(t,k){var U=HWT(F(),t);
if(U){var H=_.Z(U,U40),l;if(l=k)l=G(),U=_.Z(U,U40),l=U!=null&&U.smartSkipMetadata?!(l==null?0:l.isSameMarkerTypeVisible((U==null?void 0:U.smartSkipMetadata.markerKey)||"")):!0;if(l){var N,S;(H==null?0:(N=H.smartSkipMetadata)==null?0:(S=N.loggingData)==null?0:S.isCounterfactual)||(Q(!1,H),b(t))}else k||J()!==t||b(void 0)}};
_.sq(function(){var t=F().timelyActions;if(t){t=_.u(t);for(var k=t.next();!k.done;k=t.next()){k=_.Z(k.value,U40);var U=void 0;(U=k)!=null&&U.cueRangeId&&V.timelyActionsMap.set(k.cueRangeId,E)}_.q0(function(){V.timelyActionsMap.clear()})}},"PSaw4c");
return _.W("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.W(_.uC,{data:z},{timelyActionViewModel:function(t){return _.W(n66,{data:t.data,maybeLogSmartSkipClientData:function(){Q(!0,_.Z(z(),U40))}})}}))},"Xn");_.Qo_=function(C){_.hV.call(this);this.JSC$23265_watchApi=C;C=_.u(_.yH({},void 0,"UN7k5e"));this.timelyActionsOverlay=C.next().value;this.setTimelyActionsOverlay=C.next().value;zQY(this)};
_.O(_.Qo_,_.hV);var zQY=function(C){var F,G,V,J;_.I(function(b){if(b.nextAddress==1)return IQ0(C),E6z(C),C.timelyActionsContainer=document.createElement("div"),b.yield(C.JSC$23265_watchApi.playerApi,2);F=b.yieldResult;(V=(G=F).insertTimelyActionUi)==null||V.call(G,C.timelyActionsContainer);J=_.xn(C.timelyActionsContainer,function(){return _.W(uw_,{data:C.timelyActionsOverlay,playerApi:F})},"Yn");
C.addOnDisposeCallback(J);_.S9(b)})},E6z=function(C){var F=C.JSC$23265_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){IQ0(C)});
C.addOnDisposeCallback(function(){C.JSC$23265_watchApi.unsubscribeByKey(F)})},IQ0=function(C){var F=C.JSC$23265_watchApi.getWatchNextResponse();
if(F){var G,V;if(F=_.Z((G=F.playerOverlays)==null?void 0:(V=G.playerOverlayRenderer)==null?void 0:V.timelyActionsOverlayViewModel,rgS)){var J;(J=C.setTimelyActionsOverlay)==null||J.call(C,F)}}};_.tTL=function(C){_.hV.call(this);this.JSC$23269_watchApi=C;WE_(this)};
_.O(_.tTL,_.hV);var WE_=function(C){var F,G;_.I(function(V){if(V.nextAddress==1)return V.yield(C.JSC$23269_watchApi.playerApi,2);F=V.yieldResult;G=function(J){_.Cy.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.Z(J,_.rGl)},popupType:"TOAST"}})};
F.addEventListener("onYtShowToast",G);C.addOnDisposeCallback(function(){F.removeEventListener("onYtShowToast",G)});
_.S9(V)})};var aQY,HXl,OXl,k_z,UUB,Nz9,yr6,ZX6,X9S,MT0;aQY=!1;_.lQ6=function(C){_.hV.call(this);this.JSC$23272_watchApi=C;this.fullscreen=this.theater=!1;k_z(this);UUB(this);HXl(this)};
_.O(_.lQ6,_.hV);HXl=function(C){var F,G,V;_.I(function(J){if(J.nextAddress==1)return J.yield(C.JSC$23272_watchApi.playerApi,2);F=J.yieldResult;if(C.isDisposed())return J.return();G=C.JSC$23272_watchApi.getElement("CINEMATICS");if(!G)return J.return();C.JSC$23272_cinematicController=new _.lk(G,F);_.Nd(C,C.JSC$23272_cinematicController);_.aa0(C.JSC$23272_cinematicController);yr6(C,_.Kjf());V=C.JSC$23272_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(b){ZX6(C,b)});
C.addOnDisposeCallback(function(){C.JSC$23272_watchApi.unsubscribeByKey(V)});
Nz9(C);ZX6(C,C.JSC$23272_cinematicController.isAllowed());OXl(C);X9S(C);_.S9(J)})};
OXl=function(C){C.fullscreen=_.yA(_.s3().getState());C.theater=_.l5(_.s3().getState());_.w9F(C,C.fullscreen,C.theater);var F=_.hK(_.s3(),_.yA,function(V){C.fullscreen=V;_.w9F(C,C.fullscreen,C.theater)}),G=_.hK(_.s3(),_.l5,function(V){C.theater=V;
_.w9F(C,C.fullscreen,C.theater)});
C.addOnDisposeCallback(F);C.addOnDisposeCallback(G)};
k_z=function(C){var F=C.JSC$23272_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Nz9(C)});
C.addOnDisposeCallback(function(){C.JSC$23272_watchApi.unsubscribeByKey(F)})};
UUB=function(C){var F,G;_.I(function(V){if(V.nextAddress==1)return V.yield(C.JSC$23272_watchApi.playerApi,2);F=V.yieldResult;G=function(J){yr6(C,J)};
F.addEventListener("cinematicSettingsToggleChange",G);C.addOnDisposeCallback(function(){F.removeEventListener("cinematicSettingsToggleChange",G)});
_.S9(V)})};
Nz9=function(C){var F=C.JSC$23272_watchApi.getWatchNextResponse(),G;F=_.Z(F==null?void 0:(G=F.pageVisualEffects)==null?void 0:G[0],_.FJ);var V;(V=C.JSC$23272_cinematicController)==null||_.Udn(V,F)};
yr6=function(C,F){var G;(G=C.JSC$23272_cinematicController)==null||_.kIT(G,F);MT0(C)};
ZX6=function(C,F){var G;_.I(function(V){if(V.nextAddress==1)return _.y("kevlar_watch_cinematics_invisible")&&(F=!1),V.yield(C.JSC$23272_watchApi.playerApi,2);G=V.yieldResult;G.updateCinematicSettings(F);MT0(C);_.S9(V)})};
X9S=function(C){var F=_.bQ();if(_.y("kevlar_measure_ambient_mode_idle")&&!F.getFlag(192)&&!aQY){aQY=!0;var G=_.c8(_.gT,function(){_.I8().resolve(_.BiW).start(1E4)},5E3);
C.addOnDisposeCallback(function(){_.gT.cancelJob(G);_.I8().resolve(_.BiW).stop()})}};
_.w9F=function(C,F,G){C.fullscreen=F;C.theater=G;var V;(V=C.JSC$23272_cinematicController)==null||V.setFullscreen(C.fullscreen,C.theater);if(_.y("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(C.theater||C.fullscreen){var J;(J=C.JSC$23272_cinematicController)==null||_.Hf0(J)}else if((C=C.JSC$23272_cinematicController)!=null){var b;(b=C.currentCinematicEffect)==null||b.pause()}};
MT0=function(C){if(_.y("web_cinematic_theater_mode")||_.y("web_cinematic_fullscreen")){var F;C.JSC$23272_watchApi.getRoot().toggleCinematicsActive(!((F=C.JSC$23272_cinematicController)==null||!F.isEnabled()))}};_.v6Y=function(C){_.hV.call(this);var F=this;this.JSC$23275_watchApi=C;this.commentsReady=!1;this.setCommentsJobId=0;C=_.hK(_.s3(),_.BH,function(){S5l(F)});
this.addOnDisposeCallback(C);var G=this.JSC$23275_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){LE9(F)}),V=this.JSC$23275_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){LE9(F)});
this.addOnDisposeCallback(function(){F.JSC$23275_watchApi.unsubscribeByKey(G);F.JSC$23275_watchApi.unsubscribeByKey(V)});
var J=function(){_.y("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&Bzz(F,"false")};
this.JSC$23275_watchApi.getRoot().addEventListener("yt-page-data-will-update",J);this.addOnDisposeCallback(function(){F.JSC$23275_watchApi.getRoot().removeEventListener("yt-page-data-will-update",J)});
LE9(this)};
_.O(_.v6Y,_.hV);var LE9=function(C){C.commentsReady=!1;_.gT.cancelJob(C.setCommentsJobId);C.setCommentsJobId=_.c8(_.gT,function(){S5l(C)},1E3)},S5l=function(C){if(!C.commentsReady){_.NV("cmi");
_.gT.cancelJob(C.setCommentsJobId);var F,G,V,J,b=(F=C.JSC$23275_watchApi.getWatchNextResponse())==null?void 0:(G=F.contents)==null?void 0:(V=G.twoColumnWatchNextResults)==null?void 0:(J=V.results)==null?void 0:J.results.contents;F=void 0;if(b&&b.length)for(b=_.u(b),G=b.next();!G.done;G=b.next())if(G=G.value,J=V=void 0,((V=G)==null?void 0:(J=V.itemSectionRenderer)==null?void 0:J.sectionIdentifier)==="comment-item-section"){_.y("web_watch_provide_undefined_comments")?F=G.itemSectionRenderer:C.JSC$23275_watchApi.provideRenderingData("COMMENTS",
G.itemSectionRenderer);Bzz(C,"true");break}_.y("web_watch_provide_undefined_comments")&&C.JSC$23275_watchApi.provideRenderingData("COMMENTS",F);C.commentsReady=!0;C.JSC$23275_watchApi.dispatchEvent("yt-watch-comments-ready")}},Bzz=function(C,F){var G;
(G=C.JSC$23275_watchApi.getElement("COMMENTS"))==null||G.setAttribute("canScheduleJobs",F)};_.eQF=function(C){_.hV.call(this);var F=this;this.JSC$23278_watchApi=C;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.y("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.y("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.y("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.a8("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)fQ6(this);
else{var G=this.JSC$23278_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){hQ0(F);hb(F)}),V=this.JSC$23278_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){cy(F);
hb(F)});
this.JSC$23278_watchApi.getRoot().is==="ytd-watch-grid"&&_.y("swatcheroo_pbs_load_grid")&&(cr6(this),ArB(this));this.addOnDisposeCallback(function(){F.JSC$23278_watchApi.unsubscribeByKey(G);F.JSC$23278_watchApi.unsubscribeByKey(V);_.gT.cancelJob(F.provideRichGridJobId)});
hQ0(this);cy(this)}};
_.O(_.eQF,_.hV);var fQ6=function(C){var F=C.JSC$23278_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){C.providePlayerJobId=_.FD(_.gT,function(){hQ0(C);hb(C)},C.provideAllDataDelayMs)}),G=C.JSC$23278_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){C.provideWatchNextJobId=_.FD(_.gT,function(){cy(C);
hb(C)},C.provideAllDataDelayMs)}),V=C.JSC$23278_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){C.provideWatchNextJobId=_.FD(_.gT,function(){cy(C);
hb(C)},C.provideAllDataDelayMs)});
C.JSC$23278_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.c8(_.gT,function(){hQ0(C);cy(C);hb(C)},100)});
C.JSC$23278_watchApi.addPageDisposeJob(function(){_.gT.cancelJob(C.provideWatchNextJobId);_.gT.cancelJob(C.providePlayerJobId)});
C.addOnDisposeCallback(function(){C.JSC$23278_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");C.JSC$23278_watchApi.unsubscribeByKey(F);C.JSC$23278_watchApi.unsubscribeByKey(G);C.JSC$23278_watchApi.unsubscribeByKey(V);_.gT.cancelJob(C.providePlayerJobId);_.gT.cancelJob(C.provideWatchNextJobId)});
hQ0(C);cy(C)},hQ0=function(C){var F=C.JSC$23278_watchApi.getPlayerResponse(),G,V,J=(V=F==null?void 0:(G=F.playabilityStatus)==null?void 0:G.messageRenderers)!=null?V:[],b,z;
F=(z=F==null?void 0:(b=F.playabilityStatus)==null?void 0:b.messages)!=null?z:[];b=_.u(F);for(z=b.next();!z.done;z=b.next())J.push({alertRenderer:{text:_.eN(z.value),type:"WARNING"}});C.JSC$23278_watchApi.provideRenderingData("ALERTS",J)},cy=function(C){var F=[],G,V,J,b=C.JSC$23278_watchApi.getWatchNextResponse(),z,Q,E,t,k=b==null?void 0:(z=b.contents)==null?void 0:(Q=z.twoColumnWatchNextResults)==null?void 0:(E=Q.results)==null?void 0:(t=E.results)==null?void 0:t.contents;
if(k)for(z=_.u(k),Q=z.next();!Q.done;Q=z.next())if(Q=Q.value,Q.videoPrimaryInfoRenderer)var U=Q;else if(Q.videoSecondaryInfoRenderer){var H=Q;t=E=void 0;Q=Object.assign({},(E=Q.videoSecondaryInfoRenderer)==null?void 0:(t=E.metadataRowContainer)==null?void 0:t.metadataRowContainerRenderer);if(Q.rows&&Q.collapsedItemCount!==void 0){Q.rows=Q.rows.slice(0,Q.collapsedItemCount).filter(function(Gh){return!!Gh.richMetadataRowRenderer});
Q.collapsedItemCount=Q.rows.length;var l={metadataRowContainerRenderer:Q}}}else if(Q.merchandiseShelfRenderer)var N=Q;else if(Q.ticketShelfRenderer)var S=Q;else if(Q.expandableMetadataRenderer)var f=Q;else if(Q.itemSectionRenderer)if(E=Q.itemSectionRenderer.contents,t=void 0,C.directlyProvideComments&&((t=Q.itemSectionRenderer)==null?void 0:t.sectionIdentifier)==="comment-item-section")_.NV("cmi"),C.JSC$23278_watchApi.provideRenderingData("COMMENTS",Q.itemSectionRenderer);else if(E)for(Q=_.u(E),E=
Q.next();!E.done;E=Q.next())if(E=E.value,E.commentsEntryPointHeaderRenderer)var c=E;else if(E.clarificationRenderer||E.infoPanelContainerRenderer||E.infoPanelContentRenderer||E.emergencyOneboxRenderer){F.push(E);var A=A||!!H}else E.limitedStateMessageRenderer?V=E:E.videoMetadataCarouselViewModel&&(J=E);if(_.y("web_watch_merch_in_sd_when_ticket_shelf_present")&&N&&S){var T=N;N=void 0}if(C.provideWatchNextSecondaryResults){var P,g,r;C.JSC$23278_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
b==null?void 0:(P=b.contents)==null?void 0:(g=P.twoColumnWatchNextResults)==null?void 0:(r=g.secondaryResults)==null?void 0:r.secondaryResults)}if(C.JSC$23278_watchApi.getRoot().is==="ytd-watch-grid"){var C9,Wo;C.JSC$23278_watchApi.provideRenderingData("LIVE_CHAT",b==null?void 0:(C9=b.contents)==null?void 0:(Wo=C9.twoColumnWatchNextResults)==null?void 0:Wo.conversationBar)}var EB,L9,ki,lZ;(P=b==null?void 0:(EB=b.contents)==null?void 0:(L9=EB.twoColumnWatchNextResults)==null?void 0:(ki=L9.secondaryResults)==
null?void 0:(lZ=ki.secondaryResults)==null?void 0:lZ.offerModule)&&(P.donationShelfRenderer||P.donationUnavailableRenderer)&&C.JSC$23278_watchApi.getRoot().is!=="ytd-watch-grid"&&(G=P);EB=C.JSC$23278_watchApi.getPlayerResponse();if(!EB||!_.Adq(EB.playabilityStatus,b==null?void 0:b.playerOverlays)){var eq;if(b==null?0:(eq=b.contents)==null?0:eq.singleColumnWatchNextResults){var OB,yr;var Rl=b==null?void 0:(OB=b.contents.singleColumnWatchNextResults.results)==null?void 0:(yr=OB.results)==null?void 0:
yr.contents}else{var w2,jG,Il,Bu;eq=!!(k==null?0:(w2=k[0])==null?0:(jG=w2.itemSectionRenderer)==null?0:(Il=jG.contents)==null?0:(Bu=Il[0])==null?0:Bu.backgroundPromoRenderer);var vu,Zr;w2=!!(b==null?0:(vu=b.contents)==null?0:(Zr=vu.twoColumnWatchNextResults)==null?0:Zr.secondaryResults);eq&&!w2&&(Rl=k)}}k=F[0];vu=F[1];A&&F.length===1&&(vu=k,k=void 0);C.JSC$23278_watchApi.provideRenderingData("PRIMARY_INFO",U);C.JSC$23278_watchApi.provideRenderingData("SECONDARY_INFO",H);C.JSC$23278_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
c);C.JSC$23278_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",J);C.JSC$23278_watchApi.provideRenderingData("CLARIFICATION",k);C.JSC$23278_watchApi.provideRenderingData("RICH_METADATA",l);C.JSC$23278_watchApi.provideRenderingData("MERCH_SHELF",N);_.y("web_watch_merch_in_sd_when_ticket_shelf_present")&&C.JSC$23278_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",T);C.JSC$23278_watchApi.provideRenderingData("TICKET_SHELF",S);C.JSC$23278_watchApi.provideRenderingData("LIMITED_STATE",V);C.JSC$23278_watchApi.getRoot().is!==
"ytd-watch-grid"&&C.JSC$23278_watchApi.provideRenderingData("DONATION_SHELF",G);C.JSC$23278_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",Rl);C.JSC$23278_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",vu);C.JSC$23278_watchApi.provideRenderingData("EXPANDABLE_METADATA",f);if(C.swatcherooProvideAllDataOnScheduledJob){var k_,$i,Vr,Um,V8,Hu;U=b==null?void 0:(k_=b.contents)==null?void 0:($i=k_.twoColumnWatchNextResults)==null?void 0:(Vr=$i.secondaryResults)==null?void 0:(Um=Vr.secondaryResults)==
null?void 0:(V8=Um.results)==null?void 0:(Hu=V8[0])==null?void 0:Hu.richGridRenderer;C.JSC$23278_watchApi.provideRenderingData("RICH_GRID_RENDERER",U)}};
_.eQF.prototype.hasCompanionAds=function(C){var F,G;return(G=C==null?void 0:(F=C.adPlacements)==null?void 0:F.some(function(V){var J,b,z,Q;return(V==null?void 0:(J=V.adPlacementRenderer)==null?void 0:(b=J.renderer)==null?void 0:b.actionCompanionAdRenderer)||(V==null?void 0:(z=V.adPlacementRenderer)==null?void 0:(Q=z.renderer)==null?void 0:Q.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?G:!1};
var hb=function(C){if(!_.y("swaterdoo_ps_wn_handle_ks")){C.swatcherooProvideAllDataOnScheduledJob||ArB(C,3E3);var F=C.JSC$23278_watchApi.getPlayerResponse(),G,V,J,b,z,Q=(G=C.JSC$23278_watchApi.getWatchNextResponse())==null?void 0:(V=G.contents)==null?void 0:(J=V.twoColumnWatchNextResults)==null?void 0:(b=J.secondaryResults)==null?void 0:(z=b.secondaryResults)==null?void 0:z.offerModule;F=C.hasCompanionAds(F);var E,t;G=(Q==null?void 0:(E=Q.tvfilmOfferModuleRenderer)==null?void 0:E.clientShouldSuppressIfCompanionAdDisplayed)||
(Q==null?void 0:(t=Q.unlimitedOfferModuleRenderer)==null?void 0:t.suppressIfCompanionAds);E=F&&G;C.JSC$23278_watchApi.getRoot().is==="ytd-watch-grid"&&C.JSC$23278_watchApi.provideRenderingData("OFFER_MODULE",E?void 0:Q)}},ArB=function(C,F){_.y("swatcheroo_pbs_load_grid")&&(C.provideRichGridJobId&&_.gT.cancelJob(C.provideRichGridJobId),C.provideRichGridJobId=_.FD(_.gT,function(){C.provideRichGridJobId=0;
var G,V,J,b,z,Q,E,t=(G=C.JSC$23278_watchApi.getWatchNextResponse())==null?void 0:(V=G.contents)==null?void 0:(J=V.twoColumnWatchNextResults)==null?void 0:(b=J.secondaryResults)==null?void 0:(z=b.secondaryResults)==null?void 0:(Q=z.results)==null?void 0:(E=Q[0])==null?void 0:E.richGridRenderer;t&&C.JSC$23278_watchApi.provideRenderingData("RICH_GRID_RENDERER",t)},F))},cr6=function(C){var F,G;
_.I(function(V){if(V.nextAddress==1)return V.yield(C.JSC$23278_watchApi.playerApi,2);F=V.yieldResult;G=function(){C.onPlaybackStart()};
F.addEventListener("onPlaybackStartExternal",G);C.addOnDisposeCallback(function(){F.removeEventListener("onPlaybackStartExternal",G)});
_.S9(V)})};
_.eQF.prototype.onPlaybackStart=function(){ArB(this)};_.xUF=function(C){_.hV.call(this);var F=this;this.JSC$23291_watchApi=C;C.playerApi.then(function(G){F.player=G});
this.gestures=new _.u1(this.JSC$23291_watchApi.getRoot(),C.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.N0Y(_.s3().getState())&&_.BH(_.s3().getState())<=0)if(_.yA(_.s3().getState())){var G;(G=F.player)==null||G.toggleFullscreen()}else _.rz(F.JSC$23291_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
dU9(this)};
_.O(_.xUF,_.hV);var dU9=function(C){var F=_.hK(_.s3(),_.yA,function(G){C.onFullscreenChanged(G)});
C.addOnDisposeCallback(F);F=_.hK(_.s3(),_.BH,function(G){C.gestures&&(G>0?C.gestures.detach():C.gestures.attach())});
C.addOnDisposeCallback(F)};
_.xUF.prototype.onFullscreenChanged=function(C){this.gestures&&this.gestures.update(C)};_.q50=function(C){_.hV.call(this);var F=this;this.JSC$23294_watchApi=C;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(C.subscribeToActiveChanged(function(G){F.onActiveChanged(G)}));
soB(this)};
_.O(_.q50,_.hV);var PmS=function(C){if(_.y("swatcheroo_page_dispose_all_watch_data"))C.pageDisposalDataTypes=Object.values(i_B).filter(function(G){return G!=="PLAYLIST"});
else if(_.y("swatcheroo_page_dispose_rich_grid")){var F;(F=C.pageDisposalDataTypes)==null||F.push("RICH_GRID_RENDERER")}},soB=function(C){_.y("swatcheroo_enable_ghost_cards")&&(PmS(C),C.JSC$23294_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.gT.cancelJob(C.clearDataJobId);
C.clearDataJobId=0}),C.runPageDisposeJob=function(){var F=_.I8().resolve(_.qG).getDestinationPageType()==="watch";
C.clearDataJobId=_.FD(_.gT,C.runClearDataJob,F?0:_.a8("web_watch_delay_page_dispose_ms",1E4))},C.runClearDataJob=function(){g6S(C)},C.runOnYtNavigateAwayFinish=function(){C.clearDataJobId&&(_.gT.cancelJob(C.clearDataJobId),C.clearDataJobId=0,g6S(C))},document.addEventListener("yt-navigate-finish",C.runOnYtNavigateAwayFinish),C.JSC$23294_watchApi.addPageDisposeJob(C.runPageDisposeJob),C.addOnDisposeCallback(function(){C.JSC$23294_watchApi.removePageDisposeJob(C.runPageDisposeJob);
C.JSC$23294_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",C.runOnYtNavigateAwayFinish)}))},g6S=function(C){C.pageDisposalDataTypes.forEach(function(F){C.JSC$23294_watchApi.provideRenderingData(F,void 0)});
C.clearDataJobId=0};
_.q50.prototype.onActiveChanged=function(C){C&&((C=document.querySelector("#watch-page-skeleton"))&&_.So(C),RQS(this),document.body.removeAttribute("no-y-overflow"),_.oD("IS_SHELL_LOAD")&&_.WY6())};
var RQS=function(C){_.I(function(F){if(F.nextAddress==1)return F.yield(C.JSC$23294_watchApi.playerApi,2);_.Mx();_.S9(F)})};var Y5h;Y5h=_.y("kevlar_watch_while_counterfactual")?0:.25;_.KE6=function(C){_.hV.call(this);this.JSC$23297_watchApi=C;this.JSC$23297_watchWhileEnabled=_.y("kevlar_watch_while_v2");this.pipEnabled=_.y("web_enable_pip_on_miniplayer");Tz9(this);o6L(this);rrh(this)};
_.O(_.KE6,_.hV);var Tz9=function(C){C.JSC$23297_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){DUz(C)});
C.addOnDisposeCallback(function(){C.JSC$23297_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},o6L=function(C){var F,G;
_.I(function(V){if(V.nextAddress==1)return V.yield(C.JSC$23297_watchApi.playerApi,2);F=V.yieldResult;G=function(){DUz(C)};
F.addEventListener("onCollapseMiniplayer",G);C.addOnDisposeCallback(function(){F.removeEventListener("onCollapseMiniplayer",G)});
_.S9(V)})},rrh=function(C){var F=C.JSC$23297_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&F&&C.JSC$23297_watchWhileEnabled&&(C.playerIntersectionObserver=new IntersectionObserver(function(G){C.handleIntersect(G)},{threshold:[Y5h]}),C.playerIntersectionObserver.observe(F),C.addOnDisposeCallback(function(){var G;
(G=C.playerIntersectionObserver)==null||G.disconnect()}))},DUz=function(C){var F,G,V;
_.I(function(J){if(J.nextAddress==1){F=_.I8().resolve(_.qG);G=F.data;V=_.Hs(G.response,!1,G.playerResponse);_.v0().miniplayerButtonActivation=!0;if(C.pipEnabled)return _.v0().watchPipActivation=!0,J.jumpTo(2);_.I8().resolve(_.Od).collapse();return J.yield(_.v0().navigationFinishPromise,2)}if(J.nextAddress!=4)return _.v0().currentEndpoint=V.watchEndpoint||null,J.yield(_.I8().resolve(_.Od).activate(C.JSC$23297_watchApi.getElement("PLAYER"),V,G),4);_.v0().userActivation=!0;_.S9(J)})};
_.KE6.prototype.handleIntersect=function(C){p90(this,C[C.length-1])};
var p90=function(C,F){C.watchWhileJobId&&_.gT.cancelJob(C.watchWhileJobId);C.watchWhileJobId=_.gT.addLowPriorityJob(function(){var G,V;return _.I(function(J){if(J.nextAddress==1)return C.watchWhileJobId=void 0,G=_.I8().resolve(_.Od),F.intersectionRatio>Y5h?G.isMiniplayerActive()?J.yield(G.deactivate(),0):J.jumpTo(0):(V=!G.isMiniplayerActive())?J.yield(mUL(C),5):J.jumpTo(4);J.nextAddress!=4&&(V=J.yieldResult);if(!V)return J.jumpTo(0);_.v0().watchWhileActivation=!0;return J.yield(CQn(C),0)})},100)},
mUL=function(C){return _.I(function(F){return F.nextAddress==1?_.y("kevlar_watch_while_paused")?F.return(!0):F.yield(C.isPlayerPlaying(),2):F.return(F.yieldResult)})};
_.KE6.prototype.isPlayerPlaying=function(){var C=this,F;return _.I(function(G){if(G.nextAddress==1)return G.yield(C.JSC$23297_watchApi.playerApi,2);F=G.yieldResult;return G.return(F.getPlayerStateObject().isPlaying)})};
var CQn=function(C){var F,G;return _.I(function(V){F=_.I8().resolve(_.qG).data;G=_.Hs(F.response,!1,F.playerResponse);_.v0().currentEndpoint=G.watchEndpoint||null;return V.yield(_.I8().resolve(_.Od).activate(C.JSC$23297_watchApi.getElement("PLAYER"),G,F),0)})};_.GU0=function(C){_.hV.call(this);this.JSC$23301_watchApi=C;jQB(this);Fy6(this)};
_.O(_.GU0,_.hV);var Fy6=function(C){var F,G;_.I(function(V){if(V.nextAddress==1)return V.yield(C.JSC$23301_watchApi.playerApi,2);F=V.yieldResult;G=function(J){var b;J.sessionData&&J.sessionData.itct&&(b=J.sessionData.itct);var z=J.watchEndpoint;if(z&&J.sessionData&&J.sessionData.autonav)z=_.dgB(z,b);else{var Q;z=_.RQ(J.videoId,(Q=J.listId)!=null?Q:void 0,b)}b={endpoint:z};J.sessionData&&(b.tempData=J.sessionData);C.JSC$23301_watchApi.dispatchEvent("yt-navigate",b)};
F.addEventListener("onPlayVideo",G);C.addOnDisposeCallback(function(){F.removeEventListener("onPlayVideo",G)});
_.S9(V)})},jQB=function(C){var F=function(G){C.onYtNavigate(G)};
C.JSC$23301_watchApi.getRoot().addEventListener("yt-navigate",F);C.addOnDisposeCallback(function(){C.JSC$23301_watchApi.getRoot().removeEventListener("yt-navigate",F)})};
_.GU0.prototype.onYtNavigate=function(C){var F=this,G,V,J,b,z,Q,E,t,k;return _.I(function(U){if(U.nextAddress==1){if(!((G=C.detail)==null?0:(V=G.endpoint)==null?0:V.watchEndpoint))return U.return();J=C.detail.endpoint.watchEndpoint;b=F.JSC$23301_watchApi.getWatchNextResponse();Q=_.Z((z=b)==null?void 0:z.currentVideoEndpoint,_.eT);if(!Q)return U.return();if(J.videoId!==Q.videoId||J.playlistId&&J.playlistId!==Q.playlistId||typeof J.startTimeSeconds!=="number")return U.jumpTo(0);C.stopPropagation();
(E=_.y("kevlar_watch_while_v2")&&!_.y("kevlar_watch_while_counterfactual"))&&_.I8().resolve(_.Od).isMiniplayerActive()||F.JSC$23301_watchApi.scrollWatchTo(0,!0);return U.yield(F.JSC$23301_watchApi.playerApi,3)}t=U.yieldResult;k=J.startTimeSeconds;t.seekTo(k,void 0,void 0,void 0,84);t.wakeUpControls();k<t.getDuration()&&t.playVideo();_.S9(U)})};_.ilz=function(C){_.hV.call(this);var F=this;this.JSC$23304_watchApi=C;var G=this.JSC$23304_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){VjT(F)});
this.addOnDisposeCallback(function(){F.JSC$23304_watchApi.unsubscribeByKey(G)});
VjT(this);_.y("enable_ai_companion")&&(C=this.JSC$23304_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&_.$z_(_.I8().resolve(_.qj),C,"WATCH")};
_.O(_.ilz,_.hV);var VjT=function(C){var F=C.JSC$23304_watchApi.getWatchNextResponse();if(F){var G,V=[].concat(_.da((G=F==null?void 0:F.engagementPanels)!=null?G:[]));V.unshift.apply(V,_.da(J3z(F)));C.JSC$23304_watchApi.provideRenderingData("ENGAGEMENT_PANELS",V)}},$V_=function(C){var F,G,V,J=(F=C.engagementPanels)==null?void 0:(G=F.find(function(l){var N;
return((N=l.engagementPanelSectionListRenderer)==null?void 0:N.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(V=G.engagementPanelSectionListRenderer.content)==null?void 0:V.structuredDescriptionContentRenderer,b;
if(_.Z(J==null?void 0:(b=J.items)==null?void 0:b.find(function(l){return!!_.Z(l,I9l)}),I9l))return!0;
var z,Q,E,t;if(C=(((z=C.contents)==null?void 0:(Q=z.twoColumnWatchNextResults)==null?void 0:(E=Q.results)==null?void 0:(t=E.results)==null?void 0:t.contents)||[]).find(function(l){return l.videoPrimaryInfoRenderer})){var k,U,H;
return(((k=C.videoPrimaryInfoRenderer)==null?void 0:(U=k.videoActions)==null?void 0:(H=U.menuRenderer)==null?void 0:H.flexibleItems)||[]).some(function(l){l=_.Z(l,_.rSE);if(!l)return!1;var N,S;l=(N=l.topLevelButton)==null?void 0:(S=N.buttonViewModel)==null?void 0:S.onTap;if(!l)return!1;N=_.ZD(l);if(!N)return!1;var f;return((f=_.Z(N,_.kC))==null?void 0:f.panelIdentifier)==="PAyouchat"})}return!1},J3z=function(C){var F=[];
if(!_.y("web_watch_inject_placeholder_fantasy_panel_killswitch")){var G,V,J,b=(G=C.engagementPanels)==null?void 0:(V=G.find(function(Q){var E;return((E=Q.engagementPanelSectionListRenderer)==null?void 0:E.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(J=V.engagementPanelSectionListRenderer.content)==null?void 0:J.structuredDescriptionContentRenderer,z;
_.Z(b==null?void 0:(z=b.items)==null?void 0:z.find(function(Q){return!!_.Z(Q,PRB)}),PRB)&&(G=_.aIo("PAsports_fantasy"),G.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",F.push(G))}$V_(C)&&(C=_.aIo("PAyouchat"),C.engagementPanelSectionListRenderer.targetId="PAyouchat",C.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",F.push(C));
return F};_.nBn=function(C){_.hV.call(this);this.JSC$23307_watchApi=C;blh(this)};
_.O(_.nBn,_.hV);var blh=function(C){C.JSC$23307_watchApi.registerActionHandler("yt-loop-command",function(F){uI6(C,F)});
C.JSC$23307_watchApi.registerActionHandler("yt-repeat-chapter-command",function(F){zRl(C,F)});
C.addOnDisposeCallback(function(){C.JSC$23307_watchApi.unregisterActionHandler("yt-loop-command");C.JSC$23307_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},uI6=function(C,F){var G;
_.I(function(V){if(V.nextAddress==1)return V.yield(C.JSC$23307_watchApi.playerApi,2);G=V.yieldResult;_.Z(F,R7S).loop?(G.setLoopRange({startTimeMs:Number(_.Z(F,R7S).startTimeMs),endTimeMs:Number(_.Z(F,R7S).endTimeMs),postId:_.Z(F,R7S).postId,type:"clips"}),G.playVideo()):G.setLoopRange(null);_.S9(V)})},zRl=function(C,F){var G,V;
_.I(function(J){if(J.nextAddress==1)return J.yield(C.JSC$23307_watchApi.playerApi,2);G=J.yieldResult;V=_.Z(F,KNT).repeat;V==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(G.setLoopRange({startTimeMs:Number(_.Z(F,KNT).startTimeMs),endTimeMs:Number(_.Z(F,KNT).endTimeMs),type:"repeatChapter"}),G.playVideo()):V==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&G.setLoopRange(null);_.S9(J)})};_.I8F=function(C){_.hV.call(this);this.JSC$23312_watchApi=C;QQz(this)};
_.O(_.I8F,_.hV);var QQz=function(C){C.JSC$23312_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(F){EBn(C,F)});
C.addOnDisposeCallback(function(){C.JSC$23312_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},EBn=function(C,F){var G,V,J,b,z,Q,E,t,k,U,H;
_.I(function(l){if(l.nextAddress==1)return l.yield(C.JSC$23312_watchApi.playerApi,2);G=l.yieldResult;if(b=(J=(V=_.Z(F,D4z))==null?void 0:V.highlightedMenuItemKey)!=null?J:"")(Q=(z=G).highlightSettingsMenuItem)==null||Q.call(z,b);if(k=(t=(E=_.Z(F,D4z))==null?void 0:E.openMenuItemKey)!=null?t:"")(H=(U=G).openSettingsMenuItem)==null||H.call(U,k);_.S9(l)})};var WyF=_.C7("/youtube/app/watch/player_state","playerStateEntity");_.Ab=function(C){_.hV.call(this);this.JSC$23315_watchApi=C;tjS(this)};
_.O(_.Ab,_.hV);var a8l=function(C){switch(C){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"}},tjS=function(C){var F,G,V,J;
_.I(function(b){if(b.nextAddress==1)return b.yield(C.JSC$23315_watchApi.playerApi,2);F=b.yieldResult;if(C.isDisposed())return b.return();G=function(z){C.onPlayerStateChange(z)};
V=function(z){C.onAdStateChange(z)};
J=function(){C.onAdSkip()};
F.addEventListener("onStateChange",G);F.addEventListener("onAdStateChange",V);F.addEventListener("onAdSkip",J);C.addOnDisposeCallback(function(){F.removeEventListener("onStateChange",G);F.removeEventListener("onAdStateChange",V);F.removeEventListener("onAdSkip",J)});
_.S9(b)})},kUz=function(C){var F=_.Av(),G=F.dispatch;
a:switch(C.adsState){case -1:case 0:var V="ADS_STATE_NONE";break a;case 1:case 2:case 3:V="ADS_STATE_PLAYING";break a;default:V="ADS_STATE_UNKNOWN"}G.call(F,_.z3("playerStateEntity",WyF,{key:WyF,playerState:a8l(C.playerState),adsState:V,videoId:C.videoId}))};
_.Ab.prototype.onPlayerStateChange=function(C){var F=this,G;return _.I(function(V){if(V.nextAddress==1)return V.yield(F.JSC$23315_watchApi.playerApi,2);G=V.yieldResult;if(F.isDisposed())return V.return();F.playerState=C;F.videoId=G.getVideoData().video_id;kUz(F);_.S9(V)})};
_.Ab.prototype.onAdStateChange=function(C){this.adsState=C;kUz(this)};
_.Ab.prototype.onAdSkip=function(){this.adsState=0;kUz(this)};_.Hln=function(C){_.hV.call(this);var F=this;this.JSC$23319_watchApi=C;this.enableExternalPlaylistPanelInPlayer=_.y("delhi_web_player_use_external_playlist_panel");_.I8().resolve(_.Fx).setPlayer(this.JSC$23319_watchApi.getElement("PLAYER"));C=this.JSC$23319_watchApi.subscribeToActiveChanged(function(G){F.onActiveChanged(G)});
this.addOnDisposeCallback(C);UVn(this)};
_.O(_.Hln,_.hV);var UVn=function(C){var F,G;_.I(function(V){if(V.nextAddress==1)return C.enableExternalPlaylistPanelInPlayer?V.yield(C.JSC$23319_watchApi.playerApi,2):V.return();F=V.yieldResult;G=function(){if(C.playlistPanelElement)C.playlistPanelElement.onToggleExpanded()};
F.addEventListener("onToggleExternalPlaylistPanel",G);C.addOnDisposeCallback(function(){F.removeEventListener("onToggleExternalPlaylistPanel",G)});
_.S9(V)})};
_.Hln.prototype.onActiveChanged=function(C){var F=this,G=_.I8().resolve(_.Fx),V=function(){l8T(F)};
C?(this.playlistPanelElement=this.JSC$23319_watchApi.getElement("PLAYLIST_PANEL"))?(G.setPlaylistComponent(this.playlistPanelElement),G.addEventListener("yt-playlist-data-updated",V),this.addOnDisposeCallback(function(){G.removeEventListener("yt-playlist-data-updated",V)}),l8T(this)):_.CD(Error("$o")):(G.removeEventListener("yt-playlist-data-updated",V),G.cancelVideoSkip())};
var l8T=function(C){var F=_.I8().resolve(_.Fx);C.JSC$23319_watchApi.provideRenderingData("PLAYLIST",F.getPlaylistData())};_.ee=function(C){_.hV.call(this);var F=this;this.JSC$23322_watchApi=C;this.onPageScroll=function(){F.scrollThrottle.fire();F.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.FX(this.onThrottledScroll,200,this);_.Nd(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.FX(this.onMastheadThrottledScroll,50,this);_.Nd(this,this.mastheadScrollThrottle);this.animation=new _.VI(function(G){F.JSC$23322_watchApi.getRoot().setScrollTop(G)});
C=_.hK(_.s3(),_.yA,function(){F.onFullscreenChanged()});
this.addOnDisposeCallback(C);y39(this);Zlz(this);this.onThrottledScroll()};
_.O(_.ee,_.hV);
_.ee.prototype.onFullscreenChanged=function(){var C=this,F=this.JSC$23322_watchApi.getRoot();!this.pageScrollElement&&F.pageScrollElement?(this.pageScrollElement=F.pageScrollElement,F.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){C.pageScrollElement&&C.pageScrollElement.removeEventListener("scroll",C.onPageScroll)})):this.pageScrollElement&&!F.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var y39=function(C){window.addEventListener("scroll",C.onPageScroll);C.addOnDisposeCallback(function(){window.removeEventListener("scroll",C.onPageScroll)})},Zlz=function(C){C.JSC$23322_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(F){a:{var G;
if(G=C.JSC$23322_watchApi.getRoot().contains(F)&&!C.animation.isAnimating()){G=F.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var V,J,b=(F==null?void 0:(V=F.parentElement)==null?void 0:(J=V.parentElement)==null?void 0:J.id)==="fixed-secondary";G=!(G&&b)}if(G){if(_.y("kevlar_watch_scroll_manager_absolute_offset_killswitch"))V=F.offsetTop;else for(V=0,J=F;J!==null;)V+=J.offsetTop,V-=J.scrollTop,J=J.offsetParent;J=V;V=J-24;F=J+F.offsetHeight+24;J=C.JSC$23322_watchApi.getRoot().getPageScrollingElement();
G=C.JSC$23322_watchApi.getRoot().getScrollTop();b=G+J.clientHeight-56;if(V<G+56)F=V-56;else if(F>b)F-=J.clientHeight;else break a;C.scrollWatchTo(Math.max(0,F),!0)}}});
C.addOnDisposeCallback(function(){C.JSC$23322_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.ee.prototype.onThrottledScroll=function(){var C=_.s3(),F=C.dispatch,G=this.JSC$23322_watchApi.getRoot().getScrollTop();F.call(C,_.rh({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:G}}))};
_.ee.prototype.onMastheadThrottledScroll=function(){this.JSC$23322_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23322_watchApi.getRoot().getScrollTop())};
_.ee.prototype.scrollWatchTo=function(C,F){(F===void 0?0:F)?this.animation.start(this.JSC$23322_watchApi.getRoot().getScrollTop(),Math.max(0,C),500):this.JSC$23322_watchApi.getRoot().setScrollTop(C)};_.XA_=function(C){_.hV.call(this);var F=this;this.JSC$23325_watchApi=C;var G=this.JSC$23325_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Nh0(F)}),V=this.JSC$23325_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Ol_(F)});
this.addOnDisposeCallback(function(){F.JSC$23325_watchApi.unsubscribeByKey(G);F.JSC$23325_watchApi.unsubscribeByKey(V)});
Nh0(this);Ol_(this)};
_.O(_.XA_,_.hV);
var Nh0=function(C){var F,G,V,J=(V=(F=C.JSC$23325_watchApi.getPlayerResponse())==null?void 0:(G=F.videoDetails)==null?void 0:G.title)!=null?V:"";C.JSC$23325_watchApi.dispatchEvent("yt-update-title",J)},Ol_=function(C){var F,G,V,J,b,z,Q,E=(Q=((z=(F=C.JSC$23325_watchApi.getWatchNextResponse())==null?void 0:(G=F.contents)==null?void 0:(V=G.twoColumnWatchNextResults)==null?void 0:(J=V.results)==null?void 0:(b=J.results)==null?void 0:b.contents)!=null?z:[]).find(function(t){return!!t.videoPrimaryInfoRenderer}))==null?
void 0:Q.videoPrimaryInfoRenderer;
(F=_.dd(E==null?void 0:E.title))&&C.JSC$23325_watchApi.dispatchEvent("yt-update-title",F)};_.Mjh=function(C){_.hV.call(this);this.JSC$23328_watchApi=C;wA_(this)};
_.O(_.Mjh,_.hV);var wA_=function(C){var F,G;_.I(function(V){if(V.nextAddress==1)return V.yield(C.JSC$23328_watchApi.playerApi,2);F=V.yieldResult;G=function(){C.onYpcContentRequest()};
F.addEventListener("onYpcContentRequest",G);C.addOnDisposeCallback(function(){F.removeEventListener("onYpcContentRequest",G)});
_.S9(V)})};
_.Mjh.prototype.onYpcContentRequest=function(){var C,F,G,V,J,b=(C=this.JSC$23328_watchApi.getWatchNextResponse())==null?void 0:(F=C.contents)==null?void 0:(G=F.twoColumnWatchNextResults)==null?void 0:(V=G.secondaryResults)==null?void 0:(J=V.secondaryResults)==null?void 0:J.offerModule,z,Q,E,t;C=(t=(E=(Q=(z=b==null?void 0:b.episodeOfferModuleRenderer)!=null?z:b==null?void 0:b.movieOfferModuleRenderer)!=null?Q:b==null?void 0:b.unlimitedOfferModuleRenderer)!=null?E:b==null?void 0:b.liveOfferModuleRenderer)!=
null?t:b==null?void 0:b.tvfilmOfferModuleRenderer;var k,U,H;b=(H=b==null?void 0:(k=b.tvfilmOfferModuleRenderer)==null?void 0:(U=k.actionButtons)==null?void 0:U.length)!=null?H:0;U=Math.max(b-1,0);var l,N,S;k=(S=C==null?void 0:(l=C.offerButton)==null?void 0:l.buttonRenderer)!=null?S:C==null?void 0:(N=C.actionButtons)==null?void 0:N[U].buttonRenderer;var f,c;(l=(c=(f=k==null?void 0:k.navigationEndpoint)!=null?f:k==null?void 0:k.serviceEndpoint)!=null?c:k==null?void 0:k.command)&&_.Cy.instance.resolveCommand(l)};
}catch(e){_._DumpException(e)}
try{
var oT8,Rut,PEt;_.gTL=function(){var C=_.xf.clone(q6s),F;return(new _.N1(function(G,V){C.onSuccess=function(J){_.J3s(J)?G(new PEt(J)):V(new _.sy("Request failed, status="+_.HD(J),"net.badstatus",J))};
C.onError=function(J){V(new _.sy("Unknown request error","net.unknown",J))};
C.onTimeout=function(J){V(new _.sy("Request timed out","net.timeout",J))};
F=_.wj("//googleads.g.doubleclick.net/pagead/id",C)})).thenCatch(function(G){if(G instanceof _.Op){var V;
(V=F)==null||V.abort()}return _.W6(G)})};
_.Y6_=function(C){a:{var F="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(F="EMBEDDED_PLAYER_MODE_PFL");var G=C.raw_embedded_player_response;if(!G&&(C=C.embedded_player_response))try{G=JSON.parse(C)}catch(J){break a}if(G)b:for(var V in Rut)if(Rut[V]==G.embeddedPlayerMode){F=Rut[V];break b}}return F==="EMBEDDED_PLAYER_MODE_PFL"};
_.T7h=function(){if(_.y("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("xf");if(!_.YX5())return Error("yf");var C=_.TF("PLAYER_VARS",{});if(_.xf.get(C,"privembed",!1)=="1")return Error("zf");if(_.Y6_(C))return Error("Af")};
oT8=function(C){switch(C){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:_.r2(C,"unknown result type")}};
_.rRl=function(C,F,G){F=_.pW5[F];G={detected:C===0,source:F.uCY,detectionResult:oT8(C),contentCpn:G};_.q1("biscottiBasedDetection",G);_.eEo.increment(F.uCY,C);F.kCS!==void 0&&_.Yn("CATSTAT",_.K1q(C,F))};
_.qF=function(C,F){var G={};G.key=C;G.value=F;return _.URo().then(function(V){return new Promise(function(J,b){try{var z=V.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(G);z.onsuccess=function(){J()};
z.onerror=function(){b()}}catch(Q){b(Q)}})})};
_.Dzr=function(){var C=_.a8("user_engagement_experiments_rate_limit_ms"),F=K5U.get("last-user-engagement-exp-trigger-timestamp");return!F||(0,_.Et)()>=F+C?(K5U.set("last-user-engagement-exp-trigger-timestamp",(0,_.Et)()),!0):!1};
_.Pt=function(C,F,G,V,J){F=F===void 0?null:F;G=G===void 0?null:G;V=V===void 0?null:V;J=J===void 0?null:J;C={youThereEventType:C};G&&(C.lactThresholdMs=G.lactThresholdMs,C.mediaPosSec=G.promptDelaySec,C.lactServerRequestMs=G.lactServerRequestMs,C.triggerReason=G.triggerReason);J!=null&&(C.renderingMediaPosSec=Math.round(J));F||(F=_.ZQ());F&&(C.clientScreenNonce=F);V&&(C.clientPlaybackNonce=V);_.q1("youThere",C)};
Rut={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"};PEt=function(C){this.xhr=C};
_.sy=function(C,F,G){_.FS.call(this,C+", errorCode="+F);this.errorCode=F;this.xhr=G;this.name="PromiseAjaxError"};
_.O(_.sy,_.FS);var q6s={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var K5U=new _.rT("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.sts=function(C){return _.rh({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:C})};
}catch(e){_._DumpException(e)}
try{
var Py,Gcn,i7n,J49,$W0,b7_,u0T,UW6,H7F,lbY,n2L,VNh,E2S,IbT,NdY;_.FDB=function(){var C=window.location.hash;C.charAt(0)==="#"&&(C=C.charAt(1)==="!"?C.substring(2):C.substring(1));return _.GN(C)};
Py=function(C,F,G){var V;return _.I(function(J){if(J.nextAddress==1)return J.yield(F(),2);V=J.yieldResult;G(V,C);_.S9(J)})};
Gcn=function(){return _.I(function(C){return C.nextAddress==1?C.yield((_.T7h()!==void 0?_.W6(Error("Bf")):_.gTL()).then(function(){return 1},function(F){if(F.message==="Biscotti id is disabled")return 3;
_.Yw("Failed fetching bid");return 0}),2):C.return(C.yieldResult)})};
i7n=function(){var C=_.RA("YmVkLXBsYXllciNmcm9kamJkeHRnMzN5dC1oYXZlbi1lbQ=="),F=_.RA("d202ZmlmcmFtZSM0NmM3b2NkZQ==");return document.querySelector(F+VNh+C)?0:1};
J49=function(){return _.A9W(_.uM)};
$W0=function(){return _.e2Z()===0?0:_.dsT()};
b7_=function(){return _.g9s(_.VCi([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
u0T=function(){return _.MCE(n2L)};
_.zOL=function(C){_.I(function(F){switch(F.nextAddress){case 1:return F.yield(Py("b.f_",Gcn,C),2);case 2:return F.yield(Py("j.s_",_.XWT,C),3);case 3:return F.yield(Py("r.s_",_.ZEA,C),4);case 4:return F.yield(Py("e.h_",u0T,C),5);case 5:if(!_.y("ab_det_sc_inj")){F.jumpTo(6);break}return F.yield(Py("s.i_",_.h2W,C),6);case 6:if(_.y("ab_deg_unex_thr")){F.jumpTo(8);break}return F.yield(Py("a.o_",_.v9i,C),8);case 8:if(_.y("ks_get_o_pp")){F.jumpTo(10);break}return F.yield(Py("g.o_",_.B$Z,C),10);case 10:if(_.y("ks_det_gpbl")){F.jumpTo(12);
break}return F.yield(Py("p.i_",_.L1E,C),12);case 12:return F.yield(Py("f.i_",_.Q7i,C),14);case 14:return F.yield(Py("a.b_",_.lO5,C),15);case 15:return F.yield(Py("p.m_",_.W1s,C),16);case 16:if(!_.y("ab_det_el_h_v2")){F.jumpTo(17);break}return F.yield(Py("n.h_",b7_,C),17);case 17:return F.yield(Py("o.p_",J49,C),19);case 19:return F.yield(Py("e.i_",i7n,C),20);case 20:if(_.y("ab_det_apm"))return F.yield(Py("o.a_",$W0,C),0);F.jumpTo(0)}})};
_.QAS=function(C,F){C={videoId:C};F&&(C.playlistId=F);return C};
_.WDn=function(){if(_.YX5()){var C=_.TF("PLAYER_VARS",{});if(_.xf.get(C,"privembed",!1)!="1"&&!_.Y6_(C)){var F=function(){IbT=!0;"google_ad_status"in window?_.Yn("DCLKSTAT",1):_.Yn("DCLKSTAT",2)};
try{_.LX(_.f0x,F)}catch(G){}E2S.push(_.gT.addLowPriorityJob(function(){if(!(IbT||"google_ad_status"in window)){try{_.eaq(_.f0x.toString(),F)}catch(G){}IbT=!0;_.Yn("DCLKSTAT",3)}},5E3))}}};
_.tNF=function(C,F,G){G=G===void 0?!1:G;var V=Math.max(C.width,_.Wx6);if(_.y("kevlar_watch_feed_big_thumbs")&&C.width>=1550-_.MF()&&C.height>=800)V-=_.l9_;else if(C.width>=_.eF){var J=_.tPS+_.a99+_.AA;_.y("kevlar_watch_feed_big_thumbs")&&(J=_.HD6);V-=J}else V-=_.tPS;V=Math.min(V,_.kNF);J=240;G&&(J=380);F<.5624||(!_.y("kevlar_watch_flexy_disable_small_window_sizing")&&(C.height<630&&C.width>=657||C.height>=630&&C.width>=_.eF&&C.width<1327)?J=360:!_.y("kevlar_watch_flexy_disable_large_window_sizing")&&
C.height>=630&&C.width>=1327&&(J=480));var b=Math.min(V*F,C.height-(56+_.EUY+_.UeF));b=Math.max(b,J);F<1?V=b/F:C.width>=_.eF&&(V=_.tNF(C,.5625,G).width);return new _.Ml(Math.round(V),Math.round(b))};
_.abY=function(C){var F=0;C.indexOf("h")!=-1&&(C=C.split("h"),F=C[0]*60*60,C=C[1]);C.indexOf("m")!=-1&&(C=C.split("m"),F=C[0]*60+F,C=C[1]);C.indexOf("s")!=-1?(C=C.split("s"),F=C[0]*1+F):F=C*1+F;return F};
_.kc6=function(){_.a8("service_worker_push_logged_out_prompt_watches")!=-1&&_.Ss("WatchCount").then(function(C){C>=100||_.qF("WatchCount",C+1)})};
UW6=function(C){var F=C.externalVideoId||"";return F?C.isShortsEligible?"https://www.youtube.com/shorts/"+F:"https://www.youtube.com/watch?v="+F:""};
H7F=function(C){var F=[];C.viewCount&&F.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:C.viewCount});C.likeCount&&F.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:C.likeCount});return F};
lbY=function(C){var F,G,V={"@context":"https://schema.org","@type":"VideoObject",description:_.dd(C.description),duration:"PT"+(C.lengthSeconds||"0")+"S",embedUrl:C.embed?C.embed.iframeUrl:"",name:_.dd(C.title),thumbnailUrl:((F=C.thumbnail)==null?void 0:(G=F.thumbnails)==null?void 0:G.map(function(k){return k&&k.url||""}))||[],
uploadDate:C.publishDate};_.y("mweb_video_schema_id_killswitch")||(V["@id"]=UW6(C));F=H7F(C);F.length&&(V.interactionStatistic=F);C.category&&(V.genre=C.category);C.ownerChannelName&&(V.author=C.ownerChannelName);C.liveBroadcastDetails&&(V.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:C.liveBroadcastDetails.startTimestamp,endDate:C.liveBroadcastDetails.endTimestamp}]);if(C.learningResource){C=C.learningResource;V["@type"]=["VideoObject","LearningResource"];var J;if((J=C.learningResourceType)==
null?0:J.length)V.learningResourceType=C.learningResourceType[0];var b;if((b=C.educationalAlignment)==null?0:b.length)V.educationalAlignment={"@type":"AlignmentObject",targetName:C.educationalAlignment[0]};var z;if((z=C.educationalLevel)==null?0:z.length){J=C.educationalLevel[0];var Q;if((Q=C.educationalLevelCountry)==null?0:Q.length)J+=" ("+C.educationalLevelCountry+")";V.educationalLevel=J}var E,t;if(((E=C.learningResourceType)==null?0:E.length)&&C.learningResourceType[0]==="Problem walkthrough"&&
((t=C.problemDescriptions)==null?0:t.length))for(V.hasPart=[],Q=_.u(C.problemDescriptions),E=Q.next();!E.done;E=Q.next())J=E.value,E=J.problemDescriptionText,t=J.startOffset,J=J.url,E&&t!==void 0&&J&&V.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:E,text:E,startOffset:t,url:J})}return V};
_.y4l=function(C){return _.rh({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:C}})};
n2L=[[["MDA0cHJpbWFyeSM3MWNycTlvMTg=",null,null],[null,["cy1yZW5kZXJlciNtcGE4eXppdGo5c2t5dGQtdHdvLWNvbHVtbi1icm93c2UtcmVzdWx0","dHlsZS1zY29wZSNteTY3OXlkMmtqaGpz"],null],["YXN0aGVhZC1hZCNmcWRuajF0cnB4azRt",["ZC1yZW5kZXJlciN4cTZnMDNvN2hqZGV5dGQtcmljaC1ncmk="],null],[null,["ZC1yZW5kZXJlciN2aWI3MWxjdDJxNHN5dGQtcmljaC1ncmk=","dHlsZS1zY29wZSNwYmlobmlheHBrNzNz"],null],[null,["by1yZW5kZXJlciNmN2t0aGVtMHNwNjB5dGQtYmFubmVyLXByb20=","dHlsZS1zY29wZSN3c29paXd6aDZxZnNz"],null],[null,["dC1yZW5kZXJlciN0ZGZldnJob2s0dWl5dGQtYWQtc2xv"],
null]],[["cGxheWVyLWFkcyM1enl4eHM2ODl4OWY=",null,null]],[[null,null,"YS1yZW5kZXJlciNzcGkzYWQyZXRwZHB5dGxyLWJhbm5lci1jdA=="]]];VNh="#";E2S=[];IbT=!1;_.Z7S=["engagement-panel-ads"];NdY=new _.Cx("updateSentimentBarStateCommand");_.O70=new _.Cx("showSurveyCommand");_.gU=new _.Cx("changeMarkersVisibilityCommand");var wYh,MN_,v2n,BdT,LDh,RW;_.XY6=function(C,F){this.playerProvider_=C;this.actionSenderElement_=F;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.XY6.prototype.reset=function(){wYh(this);this.isUserPredictedAbsent_=!1};
wYh=function(C,F){!C.youThereData_||C.showWarningJob_||F!==void 0&&F||(_.Pt("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.ZQ(),C.youThereData_,C.clientPlaybackNonce_),_.P8());_.gT.cancelJob(C.showWarningJob_);C.showWarningJob_=0;_.gT.cancelJob(C.showBlockingWarningJob_);C.showBlockingWarningJob_=0;_.gT.cancelJob(C.pausePlaybackJob_);C.pausePlaybackJob_=0;C.youThereData_=null;C.clientPlaybackNonce_=void 0;C.inYouThereFlow_=!1};
_.S30=function(C,F){var G,V,J;_.I(function(b){if(b.nextAddress==1)return C.reset(),b.yield(C.playerProvider_().getPlayerPromise(),2);G=b.yieldResult;C.clientPlaybackNonce_=G.getVideoData().cpn;C.youThereData_=F.configData.youThereData;if(!C.youThereData_)return b.return();if(C.youThereData_.triggerReason&&C.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.Dzr())return _.Pt("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.ZQ(),C.youThereData_,C.clientPlaybackNonce_),b.return();V=C.youThereData_.promptDelaySec;
J=G.getCurrentTime();C.showWarningJob_=_.gT.addLowPriorityJob(function(){return _.I(function(z){C.showWarningJob_=0;return z.yield(MN_(C),0)})},Math.max(V-J,0)*1E3);
_.S9(b)})};
MN_=function(C){var F,G,V,J,b,z;return _.I(function(Q){if(Q.nextAddress==1)return Q.yield(C.playerProvider_().getPlayerPromise(),2);if(Q.nextAddress!=3)return F=Q.yieldResult,G=F.getCurrentTime(),Q.yield(LDh(C),3);V=Q.yieldResult;if(!V||!C.youThereData_)return Q.return();if(_.y("check_user_lact_at_prompt_shown_time_on_web")&&(J=parseInt(C.youThereData_.lactThresholdMs,10),_.I1()<J))return _.Pt("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.ZQ(),C.youThereData_,C.clientPlaybackNonce_),Q.return();if(C.youThereData_.playbackPauseDelayMs<=
0)return BdT(C),Q.return();!_.y("external_fullscreen")&&(b=_.gz())&&(C.ignoreFullscreenExitUserActivity_=!0,_.gT.addLowPriorityJob(function(){C.ignoreFullscreenExitUserActivity_=!1},2E3),_.Ro(b));
C.youThereData_.showToastWarningPrompt&&(RW(C,C.youThereData_.showWarningActions),C.inYouThereFlow_=!0,_.Pt("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.ZQ(),C.youThereData_,C.clientPlaybackNonce_,G),_.Pt("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.ZQ(),C.youThereData_,C.clientPlaybackNonce_,G));z=0;C.youThereData_.blockingPromptDelayMs&&(z=C.youThereData_.blockingPromptDelayMs);C.showBlockingWarningJob_=_.gT.addLowPriorityJob(function(){return _.I(function(E){C.showBlockingWarningJob_=0;return E.yield(v2n(C),
0)})},z);
_.S9(Q)})};
v2n=function(C){var F,G,V;return _.I(function(J){if(J.nextAddress==1)return J.yield(LDh(C),2);F=J.yieldResult;if(!C.youThereData_)return J.return();F&&(C.youThereData_.showBlockingWarningAction&&(_.Pt("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.ZQ(),C.youThereData_,C.clientPlaybackNonce_),(G=_.Z(C.youThereData_.showBlockingWarningAction,_.Cl))?RW(C,G.commands):RW(C,[C.youThereData_.showBlockingWarningAction]),C.inYouThereFlow_=!0),V=C.youThereData_.playbackPauseDelayMs,C.pausePlaybackJob_=
_.gT.addLowPriorityJob(function(){return _.I(function(b){C.pausePlaybackJob_=0;return b.yield(BdT(C),0)})},V));
_.S9(J)})};
BdT=function(C){var F;return _.I(function(G){if(G.nextAddress==1)return G.yield(LDh(C),2);F=G.yieldResult;if(!C.youThereData_)return G.return();F&&(_.Pt("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.ZQ(),C.youThereData_,C.clientPlaybackNonce_),RW(C,C.youThereData_.showPausedActions),C.inYouThereFlow_=!0);_.S9(G)})};
_.XY6.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var C=_.Z(this.youThereData_.userActiveDuringFlowAction,_.Cl);C?RW(this,C.commands):RW(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.Pt("YOU_THERE_EVENT_TYPE_LACT_RESET",_.ZQ(),this.youThereData_,this.clientPlaybackNonce_),_.P8());wYh(this,!0)}_.fbL(this,!1)};
_.hOT=function(C){_.Pt("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.ZQ(),C.youThereData_,C.clientPlaybackNonce_)};
LDh=function(C){var F,G;return _.I(function(V){if(V.nextAddress==1)return V.yield(C.playerProvider_().getPlayerPromise(),2);F=V.yieldResult;G=F.getPlayerState();return V.return(G==-1||G==1||G==3)})};
_.fbL=function(C,F){var G;_.I(function(V){if(V.nextAddress==1){if(C.isUserPredictedAbsent_==F)return V.jumpTo(0);C.isUserPredictedAbsent_=F;return V.yield(C.playerProvider_().getPlayerPromise(),3)}G=V.yieldResult;G.setUserEngagement(F);F&&_.Pt("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.ZQ(),C.youThereData_,C.clientPlaybackNonce_);_.S9(V)})};
RW=function(C,F){if(_.y("handle_service_request_actions")||_.y("kevlar_youthere_service_endpoint_actions_killswitch"))_.pX(C.actionSenderElement_,F,C.actionSenderElement_);else{F=_.u(F);for(var G=F.next();!G.done;G=F.next())G=G.value,G.commandMetadata&&G.commandMetadata.webCommandMetadata&&G.commandMetadata.webCommandMetadata.sendPost?_.DQ(C.actionSenderElement_,[G]):_.pX(C.actionSenderElement_,[G],C.actionSenderElement_)}};var c4S;var A40;var Yc=function(){var C=_.B.apply(this,arguments)||this;C.systemIcons=_.y("kevlar_system_icons");C.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return C};
_.O(Yc,_.B);Yc.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var C=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(C=this.data.percentIfLiked||0,this.activated=!0):(C=this.data.percentIfIndifferent||0,this.activated=!1);_.ot(this.hostElement).querySelector("#like-bar").style.width=C+"%"}};
Yc.prototype.handleUpdateSentimentBarStateCommand=function(C){this.data&&this.set("data.likeStatus",_.Z(C,NdY).likeStatus)};
Yc.prototype.observeLikeStatus=Yc.prototype.observeLikeStatus;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Yc.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],Yc.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Yc.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Yc.prototype,"activated",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Yc.prototype,"systemIcons",void 0);_.R([_.iP("data.likeStatus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Yc.prototype,"observeLikeStatus",null);_.R([_.e({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],Yc);
_.q(Yc,"ytd-sentiment-bar-renderer",function(){if(A40!==void 0)return A40;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return A40=C},{mode:1});var eO9;var Tw=function(){var C=_.B.apply(this,arguments)||this;C.small=!0;return C};
_.O(Tw,_.B);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Tw.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Tw.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Tw.prototype,"small",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],Tw);
_.q(Tw,"ytd-video-view-count-renderer",function(){if(eO9!==void 0)return eO9;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return eO9=C},{mode:_.oN("kevlar_poly_si_batch_j080")?1:2});var oW=function(){var C=_.B.apply(this,arguments)||this;C.infoFormattedStrings=[];C.wrapVideoActions=_.y("kevar_watch_wrap_video_actions");C.hideSentimentBar=_.y("kevlar_watch_hide_sentiment_bar");C.actionMap={};return C};
_.O(oW,_.B);_.n=oW.prototype;_.n.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.y("web_modern_buttons"),forceIconButton:!_.y("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.n.dataChanged=function(){_.y("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.n.computeInfoFormattedStrings=function(C){if(!C)return[];var F=[];C.dateText&&F.push(C.dateText);C.stationName&&F.push(C.stationName);C.rating&&F.push(C.rating);C.startEndTimeTemplate&&C.startTimeUtcMillis&&C.endTimeUtcMillis&&F.push(_.eN(_.Sq_(_.dd(C.startEndTimeTemplate),Number(C.startTimeUtcMillis),Number(C.endTimeUtcMillis))));C.upNextProgramText&&F.push(C.upNextProgramText);return F};
_.n.scheduleInitialUpdatedMetadataRequest=function(){var C,F=(C=this.data)==null?void 0:C.updatedMetadataEndpoint;if(F){var G;C=Number((G=_.Z(F,_.XL$))==null?void 0:G.initialDelayMs);G=isNaN(C)?250:C;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),G)}};
_.n.setSentimentBarWidth=function(){var C=this;_.zH(this,function(){var F=_.ot(C.hostElement).querySelector("ytd-menu-renderer");if(F){F=F.topLevelButtons;for(var G=0,V=0;V<F.length;V++){var J=F[V],b=C.get("toggleButtonSupportedData.toggleButtonIdData.id",J.data);if(b==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||b==="TOGGLE_BUTTON_ID_TYPE_LIKE")G+=J.clientWidth+8;else break}G&&(C.sentiment.style.width=G-8+" px")}})};
_.n.fetchUpdatedMetadata=function(C){var F;C&&(F={continuation:C});var G;(C=(G=this.data)==null?void 0:G.updatedMetadataEndpoint)&&_.I8().resolve(_.WD).resolveCommand(C,{form:Object.assign({},F,{element:this.hostElement})})};
_.n.onYtServiceRequestSent=function(C,F){F.endpoint&&_.Z(F.endpoint,_.Nx)&&(this.hasUpdateSentimentBarStateCommands()&&!_.y("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.Z(F.endpoint,_.Nx).status),this.setSentimentBarWidth())};
_.n.hasUpdateSentimentBarStateCommands=function(){var C,F,G,V,J=(V=(C=this.data)==null?void 0:(F=C.videoActions)==null?void 0:(G=F.menuRenderer)==null?void 0:G.topLevelButtons)!=null?V:[];C=_.u(J);for(F=C.next();!F.done;F=C.next()){F=F.value;J=V=G=void 0;var b=(G=F.toggleButtonRenderer)==null?void 0:(V=G.toggleButtonSupportedData)==null?void 0:(J=V.toggleButtonIdData)==null?void 0:J.id;if(b==="TOGGLE_BUTTON_ID_TYPE_LIKE"||b==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){V=G=void 0;F=(V=_.Z((G=F.toggleButtonRenderer)==
null?void 0:G.defaultServiceEndpoint,_.Cl))==null?void 0:V.commands;if(!F)break;F=_.u(F);for(G=F.next();!G.done;G=F.next())if(_.Z(G.value,NdY))return!0}}return!1};
_.n.onYtServiceRequestCompleted=function(C,F){var G;(C=(G=F.data)==null?void 0:G.loggingDirectives)&&_.sGs(_.ia(),C);this.get("continuation.timedContinuationData",F.data)&&this.data&&this.data.updatedMetadataEndpoint&&(F=F.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,F.continuation),F.timeoutMs))};
_.n.computeHasDateText=function(C){return!!C&&!!C.dateText};
_.I6.Object.defineProperties(oW.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var C,F,G,V;return!((V=(C=this.data)==null?void 0:(F=C.videoActions)==null?void 0:(G=F.menuRenderer)==null?void 0:G.flexibleItems)==null||!V.length)}}});
oW.prototype.onYtServiceRequestCompleted=oW.prototype.onYtServiceRequestCompleted;oW.prototype.onYtServiceRequestSent=oW.prototype.onYtServiceRequestSent;oW.prototype.dataChanged=oW.prototype.dataChanged;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],oW.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],oW.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],oW.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.ic.YtTaskEmitterBehavior),_.Y("design:type",Object)],oW.prototype,"ytTaskEmitterBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],oW.prototype,"data",void 0);_.R([_.L({computed:"computeInfoFormattedStrings(data)"}),_.Y("design:type",Array)],oW.prototype,"infoFormattedStrings",void 0);
_.R([_.L({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],oW.prototype,"hasDateText",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],oW.prototype,"wrapVideoActions",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],oW.prototype,"hideSentimentBar",void 0);_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],oW.prototype,"flexMenuEnabled",null);
_.R([_.$z("#sentiment"),_.Y("design:type",Object)],oW.prototype,"sentiment",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oW.prototype,"dataChanged",null);_.R([_.VG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Sn]),_.Y("design:returntype")],oW.prototype,"onYtServiceRequestSent",null);
_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.en]),_.Y("design:returntype")],oW.prototype,"onYtServiceRequestCompleted",null);
_.q(oW,"ytd-video-primary-info-renderer",function(){if(c4S===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);c4S=C}C=c4S;return C},{mode:1});var dW_;var rU=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return C};
_.O(rU,_.B);_.n=rU.prototype;_.n.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"}}}};
_.n.dataChanged=function(){var C;this.descriptionToggled=!((C=this.data)==null||!C.defaultExpanded);var F;this.collapsed=this.descriptionAlwaysCollapsed||!((F=this.data)==null?0:F.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.m2(110509);this.showLessClientVe=_.m2(110510);C=_.ZQ();F=_.lm();C&&F&&_.fl(C,F,[this.showMoreClientVe,this.showLessClientVe])};
_.n.onYtExpanderMoreTapped=function(){var C,F=(C=this.data)==null?void 0:C.showMoreCommand;F&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(F);(C=_.ZQ())&&this.showMoreClientVe&&_.ej(C,this.showMoreClientVe)};
_.n.onYtExpanderLessTapped=function(){var C=_.ZQ();C&&this.showLessClientVe&&_.ej(C,this.showLessClientVe);var F;(C=(F=this.data)==null?void 0:F.showLessCommand)&&this.componentBehavior.resolveCommand(C)};
_.n.handleUpdateDateTextAction=function(C){this.data&&this.data.dateText&&this.set("data.dateText",_.Z(C,_.$eS).dateText)};
_.n.handleUpdateDescriptionAction=function(C){if(C=_.Z(C,_.XWr))C.isEmpty||!C.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.U9(C.description)):this.set("data.description",C.description)};
_.n.onYtChangeEngagementPanelVisibilityAction=function(C){if(_.y("web_structured_description_show_more")||_.y("web_engagement_panel_open_description")){var F,G=(F=_.Z(C,_.w3o))==null?void 0:F.targetId,V;C=((V=_.Z(C,_.w3o))==null?void 0:V.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";G==="engagement-panel-structured-description"&&C&&(this.descriptionToggled=!0)}};
_.n.updateCollapsedFromBinding=function(C){this.collapsed=C.detail.value};
_.n.updateDescriptionToggledFromBinding=function(C){this.descriptionToggled=C.detail.value};
_.n.updateCanCollapseFromBinding=function(C){this.canCollapse=C.detail.value};
_.I6.Object.defineProperties(rU.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var C,F,G=(C=this.data)==null?void 0:(F=C.metadataRowContainer)==null?void 0:F.metadataRowContainerRenderer;return!!G&&!!G.rows&&G.rows.length>G.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.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}}});
rU.prototype.onYtExpanderLessTapped=rU.prototype.onYtExpanderLessTapped;rU.prototype.onYtExpanderMoreTapped=rU.prototype.onYtExpanderMoreTapped;rU.prototype.dataChanged=rU.prototype.dataChanged;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],rU.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],rU.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],rU.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],rU.prototype,"componentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],rU.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Boolean)],rU.prototype,"collapsed",void 0);_.R([_.L(),_.Y("design:type",Boolean)],rU.prototype,"descriptionToggled",void 0);
_.R([_.L(),_.Y("design:type",Boolean)],rU.prototype,"canCollapse",void 0);_.R([_.L(),_.Y("design:type",Object)],rU.prototype,"subscribeButtonData",void 0);_.R([_.L(),_.Y("design:type",Number)],rU.prototype,"descriptionCollapsedHeight",void 0);_.R([_.L(),_.Y("design:type",Object)],rU.prototype,"structuredDescriptionContentRenderer",void 0);_.R([_.L({value:function(){return _.y("web_watch_description_always_collapsed")}}),
_.Y("design:type",Boolean)],rU.prototype,"descriptionAlwaysCollapsed",void 0);_.R([_.$z("#description"),_.Y("design:type",HTMLDivElement)],rU.prototype,"description",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rU.prototype,"dataChanged",null);_.R([_.VG("yt-expander-more-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rU.prototype,"onYtExpanderMoreTapped",null);
_.R([_.VG("yt-expander-less-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rU.prototype,"onYtExpanderLessTapped",null);_.R([_.M("data.metadataRowContainer"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rU.prototype,"metadataCollapsible",null);_.R([_.M("data","structuredDescriptionContentRenderer"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rU.prototype,"hasInlineStructuredDescription",null);
_.R([_.M("data.attributedDescription"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rU.prototype,"hasAttributedDescription",null);_.R([_.M("hasInlineStructuredDescription","collapsed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rU.prototype,"loadStructuredDescription",null);_.R([_.M("data","structuredDescriptionContentRenderer","collapsed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rU.prototype,"showInlineStructuredDescription",null);
_.R([_.M("data","hasInlineStructuredDescription","metadataCollapsible"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rU.prototype,"descriptionAlwaysCollapsible",null);
_.q(rU,"ytd-video-secondary-info-renderer",function(){if(dW_===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);dW_=C}C=dW_;return C},{mode:2});var xW_;var Kr=function(){return _.B.apply(this,arguments)||this};
_.O(Kr,_.B);Kr.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:_.y("web_modern_buttons"),forceIconButton:!_.y("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
Kr.prototype.activate=function(C){C.appendTo(this.player);C.getPlayerPromise().then(function(F){F.setMinimized(!0)});
this.active=!0};
Kr.prototype.deactivate=function(){var C=this.player.firstElementChild;C.getPlayerPromise().then(function(F){F.setMinimized(!1)});
this.active=!1;return C};
Kr.prototype.onScrollUpTap=function(){var C=_.I8().resolve(_.qG).getCurrentPage();C&&C.setScrollTop(0)};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Kr.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Kr.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Kr.prototype,"componentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Kr.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Kr.prototype,"active",void 0);
_.R([_.L({reflectToAttribute:!0,value:function(){return _.y("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.Y("design:type",Boolean)],Kr.prototype,"darkLaunch",void 0);_.R([_.$z("#player"),_.Y("design:type",HTMLDivElement)],Kr.prototype,"player",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],Kr);
_.q(Kr,"ytd-miniplayer-bar-renderer",function(){if(xW_!==void 0)return xW_;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return xW_=C},{mode:1});_.gQ(_.d(function(C){var F=_.Jt("script");_.sq(function(){var G;if(G=JSON)G=lbY(C.data()),G=_.GO(JSON.stringify(G).replace(/</g,"\\u003C"));var V=C.data(),J=_.dd(V.title).trim().length===0,b=!V.publishDate||V.publishDate.trim().length===0,z,Q,E,t,k=!((z=V.thumbnail)==null?0:(Q=z.thumbnails)==null?0:Q.length)||!((E=V.thumbnail)==null?0:E.thumbnails[0].url)||((t=V.thumbnail)==null?void 0:t.thumbnails[0].url.trim().length)===0;F.value&&G&&!(J||b||k)&&_.ii(F.value,G)},"Vy9K7b");
return _.W("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.W("script",{el:F,type:"application/ld+json"}))},"$n"),"player-microformat-renderer",{props:{data:_.s9}});
}catch(e){_._DumpException(e)}
try{
var Lyz,Bh6,f8n;_.SZL=function(C){return C.watch.watchWindowSize};
Lyz=function(C,F){var G=document.querySelector(C);G?F(G):setTimeout(function(){Lyz(C,F)},1E3)};
Bh6=function(C,F,G,V){if(C.isLockupToWatchTransitionEnabled){if(F){var J={};J=(J["watch-next-appears"]="player-watch-next-loaded",J);J["lockup-to-watch"]=C.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";C.viewTransitionCoordinator.registerElement(F,J)}G&&(F={},C.viewTransitionCoordinator.registerElement(G,(F["lockup-to-watch"]="below-lockup-to-watch",F["watch-next-appears"]="below-watch-next-loaded",F)));V&&(G={},C.viewTransitionCoordinator.registerElement(V,
(G["watch-next-appears"]="secondary-watch-next-loaded",G)))}};
_.vBl=function(C){return _.rh({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:C}})};
f8n=new _.Cx("webWatchNextResponseExtensionData");var c36=function(C){_.hV.call(this);var F=this;this.JSC$23332_watchApi=C;this.observer=null;var G=this.JSC$23332_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){hRF(F)});
this.addOnDisposeCallback(function(){F.JSC$23332_watchApi.unsubscribeByKey(G);F.observer&&(F.observer.disconnect(),F.observer=null)});
hRF(this)};
_.O(c36,_.hV);
var hRF=function(C){var F,G,V,J;_.I(function(b){if(b.nextAddress==1){C.observer&&(C.observer.disconnect(),C.observer=null);F=C.JSC$23332_watchApi.getWatchNextResponse();if(!F)return b.return();G=_.Z(F,f8n);return((V=G)==null?0:V.enableCreatorChatbot)&&G.creatorChannelId?b.yield((0,_.GZZ)("NSzT5"),3):b.jumpTo(0)}J=_.$rx;J(G.creatorChannelId);Lyz("ytd-watch-metadata",function(z){C.observer=new MutationObserver(function(){var Q,E;(Q=document.querySelector('ytd-watch-metadata #flexible-item-buttons button[aria-label="Ask"]'))==null||
(E=Q.closest("yt-button-view-model.ytd-menu-renderer"))==null||E.remove()});
C.observer.observe(z,{childList:!0,subtree:!0})});
_.S9(b)})};var dU=function(C){_.hV.call(this);this.JSC$23336_watchApi=C;this.isShelfVisible=this.isAdPlaying=this.isSeeking=!1;A3F(this)};
_.O(dU,_.hV);var A3F=function(C){_.I(function(F){if(F.nextAddress==1)return F.yield(eRh(C),2);dVY(C);_.S9(F)})},eRh=function(C){var F,G,V,J,b,z,Q,E;
return _.I(function(t){if(t.nextAddress==1)return t.yield(C.JSC$23336_watchApi.playerApi,2);F=t.yieldResult;C.JSC$23336_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){xVz(C)});
C.JSC$23336_watchApi.registerActionHandler("yt-request-timely-shelf-state",function(){C.isShelfVisible?sQ_(C):qZT(C)});
G=C.JSC$23336_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){dVY(C)});
V=function(k){C.onCueRangeEnter(k)};
F.addEventListener("onCueRangeEnter",V);J=function(k){C.onCueRangeExit(k)};
F.addEventListener("onCueRangeExit",J);b=function(){C.isSeeking=!0};
F.addEventListener("SEEK_TO",b);z=function(){C.onSeekComplete()};
F.addEventListener("SEEK_COMPLETE",z);Q=function(){C.onAdStart()};
F.addEventListener("onAdStart",Q);E=function(){C.onAdComplete()};
F.addEventListener("onAdComplete",E);C.addOnDisposeCallback(function(){C.JSC$23336_watchApi.unsubscribeByKey(G);F.removeEventListener("onCueRangeEnter",V);F.removeEventListener("onCueRangeExit",J);F.removeEventListener("SEEK_TO",b);F.removeEventListener("SEEK_COMPLETE",z);F.removeEventListener("onAdStart",Q);F.removeEventListener("onAdComplete",E)});
_.S9(t)})},PQ9=function(C){var F,G,V,J,b,z,Q,E,t;
return(b=(F=C.contents)==null?void 0:(G=F.twoColumnWatchNextResults)==null?void 0:(V=G.results)==null?void 0:(J=V.results)==null?void 0:J.contents)==null?void 0:(z=b.find(function(k){var U,H,l;return(U=k.itemSectionRenderer)==null?void 0:(H=U.contents)==null?void 0:(l=H[0])==null?void 0:l.shoppingTimelyShelfViewModel}))==null?void 0:(Q=z.itemSectionRenderer)==null?void 0:(E=Q.contents)==null?void 0:(t=E[0])==null?void 0:t.shoppingTimelyShelfViewModel},dVY=function(C){var F;
_.I(function(G){if(G.nextAddress==1)return(F=C.JSC$23336_watchApi.getWatchNextResponse())?G.yield(xVz(C),2):G.return();C.shoppingTimelyShelfViewModel=PQ9(F);gB9(C);RR9(C);_.S9(G)})},gB9=function(C){var F,G=(F=C.shoppingTimelyShelfViewModel)==null?void 0:F.offerIdToVariants;
G&&(F=G.filter(function(V){return V.key&&V.value}).map(function(V){return[V.key,
V.value]}),C.variantsMap=new Map(F))},RR9=function(C){var F,G,V,J,b,z;
_.I(function(Q){if(Q.nextAddress==1)return(G=(F=C.shoppingTimelyShelfViewModel)==null?void 0:F.cueRanges)?Q.yield(C.JSC$23336_watchApi.playerApi,2):Q.return();V=Q.yieldResult;C.cueRanges=G;J=_.u(G);for(b=J.next();!b.done;b=J.next())z=b.value,z.startTime!==void 0&&z.endTime!==void 0&&z.id!==void 0&&V.addCueRange("shopping_timely_shelf"+z.id,YZ0(z.startTime),YZ0(z.endTime));_.S9(Q)})},YZ0=function(C){return Number(C.seconds||0)+(C.nanos||0)/1E9};
dU.prototype.onCueRangeEnter=function(C){if(C.startsWith("shopping_timely_shelf")&&(this.activeCueId=C,!this.isSeeking&&!this.isAdPlaying)){var F=C.substring(21),G,V;C=(G=this.variantsMap)==null?void 0:(V=G.get(F))==null?void 0:V.shelf;if(_.y("web_enable_shopping_timely_shelf_client_overwrite")){var J,b,z,Q,E;G=C==null?void 0:(J=C.shoppingTimelyShelfContentViewModel)==null?void 0:(b=J.button)==null?void 0:(z=b[1])==null?void 0:(Q=z.buttonViewModel)==null?void 0:(E=Q.onTap)==null?void 0:E.innertubeCommand;
var t,k;if(G==null?0:(t=G.menuEndpoint)==null?0:(k=t.menu)==null?0:k.menuRenderer)G.openPopupAction=G.menuEndpoint,G.openPopupAction.popup=G.openPopupAction.menu,G.openPopupAction.popup.menuPopupRenderer=G.openPopupAction.popup.menuRenderer,G.openPopupAction.popupType="DROPDOWN",delete G.menuEndpoint,delete G.openPopupAction.menu,delete G.openPopupAction.popup.menuRenderer}C&&(this.JSC$23336_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",C),sQ_(this))}};
dU.prototype.onCueRangeExit=function(C){C.startsWith("shopping_timely_shelf")&&(this.activeCueId=void 0,this.isSeeking||qZT(this))};
dU.prototype.onSeekComplete=function(){this.isSeeking=!1;Thz(this)};
var sQ_=function(C){C.shoppingTimelyShelfViewModel&&(C.isShelfVisible=!0,_.FV.getInstance().triggerAction("yt-show-shopping-timely-shelf"))},qZT=function(C){C.shoppingTimelyShelfViewModel&&(C.isShelfVisible=!1,_.FV.getInstance().triggerAction("yt-hide-shopping-timely-shelf"))},xVz=function(C){var F,G,V,J,b;
return _.I(function(z){if(z.nextAddress==1)return z.yield(C.JSC$23336_watchApi.playerApi,2);F=z.yieldResult;if(C.cueRanges)for(G=_.u(C.cueRanges),V=G.next();!V.done;V=G.next())J=V.value,J.id&&(b="shopping_timely_shelf"+J.id,F.removeCueRange(b));C.JSC$23336_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});qZT(C);C.shoppingTimelyShelfViewModel=void 0;C.cueRanges=void 0;C.variantsMap=void 0;C.isSeeking=!1;C.activeCueId=void 0;_.S9(z)})};
dU.prototype.onAdStart=function(){this.isAdPlaying=!0;qZT(this)};
dU.prototype.onAdComplete=function(){this.isAdPlaying=!1;Thz(this)};
var Thz=function(C){if(C.activeCueId)C.onCueRangeEnter(C.activeCueId);else qZT(C)};var pAT=function(C){_.hV.call(this);var F=this;this.JSC$23343_watchApi=C;C=_.hK(_.s3(),_.jKA,function(){oB9(F)});
this.addOnDisposeCallback(C);C=_.hK(_.s3(),_.SZL,function(){oB9(F)});
this.addOnDisposeCallback(C);r3h(this);Ky9(this);DV_()};
_.O(pAT,_.hV);var r3h=function(C){var F=function(V){_.s3().dispatch(_.OWT(V.matches))},G=window.matchMedia("(max-width: "+(999+_.MF())+"px)");
G.addListener(F);C.addOnDisposeCallback(function(){G.removeListener(F)});
F(G)},Ky9=function(C){C.JSC$23343_watchApi.registerActionHandler("yt-window-resized",function(){DV_()});
C.addOnDisposeCallback(function(){C.JSC$23343_watchApi.unregisterActionHandler("yt-window-resized")})},DV_=function(){var C=_.bE();
_.s3().dispatch(_.rh({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:C.width,height:C.height}}}))},oB9=function(C){var F;
_.I(function(G){if(G.nextAddress==1)return G.yield(C.JSC$23343_watchApi.playerApi,2);F=G.yieldResult;F.setSize(NaN,NaN);_.S9(G)})};var mVY=function(C){_.hV.call(this);var F=_.I8().resolve(_.vq);Bh6(F,C.getElement("PLAYER_CONTAINER"),C.getElement("BELOW_THE_PLAYER"),C.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var G=C.getElement("PLAYER_CONTAINER"),V=C.getElement("BELOW_THE_PLAYER"),J=C.getElement("SECONDARY");F.isLockupToWatchTransitionEnabled&&(G&&_.Nh(F.viewTransitionCoordinator,G),V&&_.Nh(F.viewTransitionCoordinator,V),J&&_.Nh(F.viewTransitionCoordinator,J))})};
_.O(mVY,_.hV);_.xc=function(C){_.Rb.call(this);var F=this;this.rootElement=C;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return F.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(G){F.initOrDisposeActiveModules(G)}));
this.onAttached()};
_.O(_.xc,_.Rb);_.n=_.xc.prototype;_.n.getRoot=function(){return this.rootElement};
_.n.getElement=function(C){return this.rootElement.getElement(C)};
_.n.setPlayerResponse=function(C){this.playerResponse=C;this.publish("PLAYER_RESPONSE_UPDATED",C)};
_.n.getPlayerResponse=function(){return this.playerResponse};
_.n.setWatchNextResponse=function(C){this.watchNextResponse===C?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=C,this.publish("WATCH_NEXT_RESPONSE_UPDATED",C))};
_.n.getWatchNextResponse=function(){return this.watchNextResponse};
_.n.registerActionHandler=function(C,F){var G=this;if(_.y("web_watch_controller_reg_multiple_handlers_killswitch")){var V={};_.GA(_.FV.getInstance(),(V[C]=F,V),this.getRoot())}else this.actionHandlers.has(C)||(this.actionHandlers.set(C,[]),V={},_.GA(_.FV.getInstance(),(V[C]=function(){var J=_.Rn.apply(0,arguments);return(G.actionHandlers.get(C)||[]).map(function(b){return b.apply(null,_.da(J))})},V),this.getRoot())),this.actionHandlers.get(C).push(F)};
_.n.unregisterActionHandler=function(C){if(_.y("web_watch_controller_reg_multiple_handlers_killswitch")){var F={};_.V3(_.FV.getInstance(),(F[C]=!0,F),this.getRoot())}else(F=this.actionHandlers.get(C))?(F.pop(),F.length===0&&(F={},_.V3(_.FV.getInstance(),(F[C]=!0,F),this.getRoot()),this.actionHandlers.delete(C))):_.Yw(new _.Ay("Attempted to unregister an action handler which is not registered.",C))};
_.n.addPageDisposeJob=function(C){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.LWi(this.rootElement.pageDisposeJobs,C)};
_.n.removePageDisposeJob=function(C){this.rootElement.pageDisposeJobs&&_.qf(this.rootElement.pageDisposeJobs,C)};
_.n.dispatchEvent=function(C,F){_.oo(this.rootElement,C,F)};
_.n.provideRenderingData=function(C,F){this.rootElement.provideRenderingData(C,F)};
_.n.scrollWatchTo=function(C,F){var G;(G=this.watchScrollManager)==null||G.scrollWatchTo(C,F)};
_.n.focusOnPlayer=function(){var C=this.getElement("PLAYER");_.zH(C,function(){if(C&&C.firstElementChild){var F=C.querySelector(".html5-video-player");F&&(_.nR(_.I8().resolve(_.zb)),F.focus())}else _.Yw(Error("ap"))})};
_.n.subscribeToActiveChanged=function(C,F){F=F===void 0?!0:F;var G=_.hK(_.s3(),_.N0Y,function(V){C(V)});
F&&C(_.N0Y(_.s3().getState()));return G};
_.n.isActive=function(){return _.N0Y(_.s3().getState())};
_.n.onAttached=function(){var C=_.y("external_fullscreen");_.y("use_unified_flag_accessor")&&(C=_.I8().resolve(_.QDd).retriever.getFlag(_.asu));(C||_.oD("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var CKS=function(C){return C.getRoot().is==="ytd-watch-flexy"||C.getRoot().is==="ytd-watch-grid"},so=function(C){return C.getRoot().is==="ytd-watch-fixie"};
_.xc.prototype.initPersistentModules=function(){if(so(this)||CKS(this)&&_.y("kevlar_watch_flexy_theater_manager")){var C=new _.Cm_(this);_.Nd(this,C)}C=new _.q50(this);_.Nd(this,C);C=new _.By(this);_.Nd(this,C);C=new _.eQF(this);_.Nd(this,C);C=new _.Ab(this);_.Nd(this,C);C=new _.vy(this);_.Nd(this,C);if(so(this)||CKS(this)&&_.y("kevlar_watch_flexy_playlist_manager"))C=new _.Hln(this),_.Nd(this,C);_.y("web_thumbnail_to_watch_transition")&&(C=new mVY(this),_.Nd(this,C))};
_.xc.prototype.initOrDisposeActiveModules=function(C){C?(this.watchScrollManager=new _.ee(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.GU0(this)),_.y("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new dU(this)),this.activeModules.push(new _.F9S(this)),so(this)&&this.activeModules.push(new pAT(this)),this.activeModules.push(new _.XA_(this)),this.activeModules.push(new _.KE6(this)),(so(this)||_.y("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.$kB(this)),this.activeModules.push(new _.nBn(this)),(so(this)||_.y("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.Mjh(this)),(so(this)||_.y("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.tTL(this)),_.y("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.lQ6(this),this.activeModules.push(this.watchCinematicManager)),_.y("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.I8F(this)),_.y("kevlar_watch_flexy_gestures_manager")&&
this.activeModules.push(new _.xUF(this)),C=_.y("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.y("kevlar_watch_flexy_comments_manager")&&!C&&this.activeModules.push(new _.v6Y(this)),_.y("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Uk9(this)),this.activeModules.push(new _.bXT(this)),this.activeModules.push(new _.ilz(this)),_.y("web_enable_timely_actions")&&this.activeModules.push(new _.Qo_(this)),_.y("web_enable_player_creator_endscreen_manager")&&
this.activeModules.push(new _.hi9(this)),_.y("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.O_9(this)),_.y("web_fullscreen_components")&&this.activeModules.push(new _.zin(this)),_.y("web_player_rtr_ctrls")&&this.activeModules.push(new _.AuY(this)),_.y("enable_creator_chatbot")&&this.activeModules.push(new c36(this))):(_.zI(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.xc.prototype.disposeInternal=function(){_.Rb.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.I6.Object.defineProperties(_.xc.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var a0L,Vg,kB6,U_0,l06,yzB,HTh,ZTS;a0L=function(){var C=_.uQ();C.info||(C.info={});return C.info};
Vg=function(C){return Math.round(_.EZ()+C)};
kB6=function(){var C;if(_.y("csi_use_performance_navigation_timing")){var F,G,V,J=_.IQ==null?void 0:(C=_.IQ.getEntriesByType)==null?void 0:(F=C.call(_.IQ,"navigation"))==null?void 0:(G=F[0])==null?void 0:(V=G.toJSON)==null?void 0:V.call(G);J?(J.requestStart=Vg(J.requestStart),J.responseEnd=Vg(J.responseEnd),J.redirectStart=Vg(J.redirectStart),J.redirectEnd=Vg(J.redirectEnd),J.domainLookupEnd=Vg(J.domainLookupEnd),J.connectStart=Vg(J.connectStart),J.connectEnd=Vg(J.connectEnd),J.responseStart=Vg(J.responseStart),
J.secureConnectionStart=Vg(J.secureConnectionStart),J.domainLookupStart=Vg(J.domainLookupStart),J.isPerformanceNavigationTiming=!0,C=J):C=_.IQ.timing}else C=_.y("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.IQ.timing)):_.IQ.timing;return C};
U_0=function(){if(_.IQ.getEntriesByType){var C=_.IQ.getEntriesByType("paint");if(C=_.co(C,function(G){return G.name==="first-paint"}))return Vg(C.startTime)}var F;
_.y("csi_use_performance_navigation_timing")?F=_.IQ.getEntriesByType("first-paint")[0].startTime:F=_.IQ.timing.msFirstPaint;return F?Math.max(0,F):0};
l06=function(){var C=window.location.protocol,F=_.IQ.getEntriesByType("resource");F=_.TC(F,function(G){return G.name.indexOf(C+"//fonts.gstatic.com/s/")===0});
(F=HTh(F,function(G,V){return V.duration>G.duration?V:G}))&&F.startTime>0&&F.responseEnd>0&&(_.WA("wffs",Vg(F.startTime)),_.WA("wffe",Vg(F.responseEnd)))};
yzB=function(C,F){C=document.querySelector(C);if(!C)return!1;var G="",V=C.nodeName;V==="SCRIPT"?(G=C.src,G||(G=C.getAttribute("data-timing-href"))&&(G=window.location.protocol+G)):V==="LINK"&&(G=C.href);_.j9(document)&&C.setAttribute("nonce",_.j9(document));return G?(C=_.IQ.getEntriesByName(G))&&C[0]&&(C=C[0],G=_.EZ(),_.WA("rsf_"+F,G+Math.round(C.fetchStart)),_.WA("rse_"+F,G+Math.round(C.responseEnd)),C.transferSize!==void 0&&C.transferSize===0)?!0:!1:!1};
_.N9n=function(C,F){_.pW(function(){_.QO("").info.actionType=C;F&&_.Yn("TIMING_AFT_KEYS",F);_.Yn("TIMING_ACTION",C);var G=_.Aai(_.TF("TIMING_INFO",{}));Object.keys(G).length>0&&_.t3(G);G={isNavigation:!0,actionType:_.ZHE(_.TF("TIMING_ACTION"))};var V=_.TF("PREVIOUS_ACTION");V&&(G.previousAction=_.ZHE(V));if(V=_.TF("CLIENT_PROTOCOL"))G.httpProtocol=V;if(V=_.TF("CLIENT_TRANSPORT"))G.transportProtocol=V;(V=_.ZQ())&&V!=="UNDEFINED_CSN"&&(G.clientScreenNonce=V);V=_.ca9();if(V===1||V===-1)G.isVisible=!0;
V=_.WVI().loadType==="cold";var J=a0L();V||(V=J.yt_lt==="cold");if(V){G.loadType="cold";V=a0L();J=kB6();var b=_.EZ(),z=_.TF("CSI_START_TIMESTAMP_MILLIS",0);z>0&&!_.y("embeds_web_enable_csi_start_override_killswitch")&&(b=z);b&&(_.WA("srt",J.responseStart),V.prerender!==1&&_.M6q(b));V=U_0();V>0&&_.WA("fpt",V);V=kB6();V.isPerformanceNavigationTiming&&_.t3({performanceNavigationTiming:!0},void 0);_.WA("nreqs",V.requestStart,void 0);_.WA("nress",V.responseStart,void 0);_.WA("nrese",V.responseEnd,void 0);
V.redirectEnd-V.redirectStart>0&&(_.WA("nrs",V.redirectStart,void 0),_.WA("nre",V.redirectEnd,void 0));V.domainLookupEnd-V.domainLookupStart>0&&(_.WA("ndnss",V.domainLookupStart,void 0),_.WA("ndnse",V.domainLookupEnd,void 0));V.connectEnd-V.connectStart>0&&(_.WA("ntcps",V.connectStart,void 0),_.WA("ntcpe",V.connectEnd,void 0));V.secureConnectionStart>=_.EZ()&&V.connectEnd-V.secureConnectionStart>0&&(_.WA("nstcps",V.secureConnectionStart,void 0),_.WA("ntcpe",V.connectEnd,void 0));_.IQ&&"getEntriesByType"in
_.IQ&&l06();V=[];if(document.querySelector&&_.IQ&&_.IQ.getEntriesByName)for(var Q in ZTS)ZTS.hasOwnProperty(Q)&&(J=ZTS[Q],yzB(Q,J)&&V.push(J));if(V.length>0)for(G.resourceInfo=[],Q=_.u(V),V=Q.next();!V.done;V=Q.next())G.resourceInfo.push({resourceCache:V.value})}_.t3(G);G=_.zU();G.preLoggedGelInfos||(G.preLoggedGelInfos=[]);Q=G.preLoggedGelInfos;G=_.aYZ();V=void 0;for(J=0;J<Q.length;J++)if(b=Q[J],b.loadType){V=b.loadType;break}if(_.WVI().loadType==="cold"&&(G.loadType==="cold"||V==="cold")){V=_.t6w();
J=_.zU();J=J.gelTicks?J.gelTicks:J.gelTicks={};for(var E in V)if(!(E in J))if(typeof V[E]==="number")_.WA(E,_.aQ(E));else if(_.y("log_repeated_ytcsi_ticks"))for(b=_.u(V[E]),z=b.next();!z.done;z=b.next())z=z.value,_.WA(E.slice(1),z);E={};V=!1;Q=_.u(Q);for(J=Q.next();!J.done;J=Q.next())V=J.value,_.wz(G,V),_.wz(E,V),V=!0;V&&_.t3(E)}_.sds(!0);E=_.TF("TIMING_ACTION");_.mN("ytglobal.timingready_")&&E&&_.KVT()&&_.xSq()&&_.fYS()})()};
HTh=function(C,F){return Array.prototype.reduce.call(C,F,{duration:0})};
ZTS={'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 OTB={};OTB.YtVisibilityRootBehavior=[_.JQu.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.uz(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.TF("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var C=_.TF("INNERTUBE_CLIENT_NAME")!=="WEB";_.y("kevlar_use_vimio_behavior")&&C&&_.wXy()}}];_.ij={};_.ij.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(C){C.detail.contextProvider=this;C.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
OTB.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.hM();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(C){var F=this;this.pageCount+=1;_.y("kevlar_use_vimio_behavior")&&(_.TF("INNERTUBE_CLIENT_NAME")==="WEB"?_.gT.addJob(function(){F.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(C)},
loadPage_:function(C){this.data=C},
ytPageBehaviorActiveObserver_:function(C){var F=this;_.y("kevlar_use_vimio_behavior")&&(C?_.TF("INNERTUBE_CLIENT_NAME")==="WEB"?_.gT.addJob(function(){F.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(C){if(!this.setScrollTopJobId_){var F=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){F.setScrollTopJobId_=0;var G=_.I8().resolve(_.Qt(_.zb));G&&_.nR(G);this.getPageScrollingElement().scrollTop=C}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.Zn(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var tSl;var G2=function(){var C=_.B.apply(this,arguments)||this;C.playerListenerConfig=null;C.actionMap={"yt-show-watch-page-survey":"openSurvey"};return C};
_.O(G2,_.B);_.n=G2.prototype;_.n.dataChanged=function(){var C=this,F=_.gE();F&&F.getPlayerPromise().then(function(V){C.maybeRemovePlayerListeners(V)});
var G=this.data&&this.data.survey;G&&((G=(G=G.singleOptionSurveyRenderer||G.checkboxSurveyRenderer||G.multiStageSurveyRenderer)&&G.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(F,G):this.openSurvey())};
_.n.triggerWatchPageSurvey=function(C,F){var G=this,V,J,b,z,Q,E,t,k,U;return _.I(function(H){if(H.nextAddress==1)return C?H.yield(C.getPlayerPromise(),2):H.return();G.player=H.yieldResult;if(!G.player)return H.return();V={};J=_.u(F);for(b=J.next();!b.done;b=J.next())z=b.value,Q=_.u(G.createEventListenerPair(z)),E=Q.next().value,t=Q.next().value,k=E,U=t,k&&U&&(V[k]=U,G.ytPlayerListenerBehavior.listenToPlayerEvent(G.player,k,U));G.playerListenerConfig=V;_.S9(H)})};
_.n.createEventListenerPair=function(C){var F=C.playbackEventTrigger;return F?this.handlePlaybackTrigger(F):(C=C.watchTimeTrigger)?this.handleWatchTimeTrigger(C):[void 0,void 0]};
_.n.handleWatchTimeTrigger=function(C){var F=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var G=C.videoWatchFraction,V=C.watchTimeSec;return V&&G?["onVideoProgress",function(){F.player&&F.isWatchTimeConditionMet(F.player,G,V)&&F.showSurvey()}]:[void 0,
void 0]};
_.n.isWatchTimeConditionMet=function(C,F,G){var V=C.getProgressState(),J=V.current-this.lastKnownPlaybackPosition;J<5&&(this.accumulatedMediaTime+=J);this.lastKnownPlaybackPosition=V.current;V=Math.round(this.accumulatedMediaTime/V.duration*1E3)/1E3;return C.getPresentingPlayerType&&C.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>G||V>F)};
_.n.handlePlaybackTrigger=function(C){var F=this;C=C.playbackEvent;if(C==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var G="onStateChange";var V=function(J){J===0&&F.showSurvey()}}else C==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(G="onVideoProgress",V=function(J){F.player&&F.player.getPresentingPlayerType&&F.player.getPresentingPlayerType()===1&&J&&F.showSurvey()}):C==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(G="onAdEnd",V=this.showSurvey);
return[G,V]};
_.n.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.n.openSurvey=function(){var C=this,F=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.sts(!!F));_.gT.addJob(function(){C.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:F}})},0,0)};
_.n.maybeRemovePlayerListeners=function(C){if(this.playerListenerConfig){for(var F=_.u(Object.keys(this.playerListenerConfig)),G=F.next();!G.done;G=F.next())G=G.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(C,G,this.playerListenerConfig[G]);this.playerListenerConfig=null}};
G2.prototype.dataChanged=G2.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],G2.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nK),_.Y("design:type",Object)],G2.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.w(_.Fi.YtPlayerListenerBehavior),_.Y("design:type",_.GR)],G2.prototype,"ytPlayerListenerBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],G2.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.w(_.Rr),_.Y("design:type",Object)],G2.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],G2.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],G2.prototype,"playerListenerConfig",void 0);_.R([_.L({value:0}),_.Y("design:type",Number)],G2.prototype,"lastKnownPlaybackPosition",void 0);_.R([_.L({value:0}),_.Y("design:type",Number)],G2.prototype,"accumulatedMediaTime",void 0);_.R([_.L(),_.Y("design:type",Object)],G2.prototype,"player",void 0);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],G2.prototype,"dataChanged",null);_.R([_.e({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],G2);
_.q(G2,"ytd-survey-trigger-renderer",function(){if(tSl!==void 0)return tSl;var C=document.createElement("template");_.X(C,"\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");C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return tSl=C},{mode:1});
}catch(e){_._DumpException(e)}
try{
var iT0=new _.Cx("replaceFeedContentAction");var Jzn;var $__;var bTL=function(){return _.B.apply(this,arguments)||this};
_.O(bTL,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],bTL.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],bTL.prototype,"data",void 0);_.R([_.e({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],bTL);
_.q(bTL,"ytd-sub-feed-option-renderer",function(){if($__!==void 0)return $__;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return $__=C},{mode:1});var nl0;var K0=function(){return _.B.apply(this,arguments)||this};
_.O(K0,_.B);K0.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],K0.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],K0.prototype,"ytRendererStamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],K0.prototype,"data",void 0);_.R([_.e({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],K0);
_.q(K0,"ytd-sub-feed-selector-renderer",function(){if(nl0!==void 0)return nl0;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return nl0=C},{mode:1});var DI=function(){return _.B.apply(this,arguments)||this};
_.O(DI,_.B);
DI.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}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],DI.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],DI.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],DI.prototype,"data",void 0);_.R([_.e({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],DI);
_.q(DI,"ytd-browse-feed-actions-renderer",function(){if(Jzn!==void 0)return Jzn;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Jzn=C},{mode:1});var u6Y;var z_T;var p0=function(){return _.B.apply(this,arguments)||this};
_.O(p0,_.B);p0.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],p0.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],p0.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],p0.prototype,"data",void 0);_.R([_.e({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],p0);
_.q(p0,"ytd-mini-channel-renderer",function(){if(z_T!==void 0)return z_T;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return z_T=C},{mode:1});var Qn6;var mj=function(){return _.B.apply(this,arguments)||this};
_.O(mj,_.B);mj.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],mj.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],mj.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],mj.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],mj);
_.q(mj,"ytd-vertical-channel-section-renderer",function(){if(Qn6!==void 0)return Qn6;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Qn6=C},{mode:1});var Cn=function(){return _.B.apply(this,arguments)||this};
_.O(Cn,_.B);Cn.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Cn.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Cn.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Cn.prototype,"data",void 0);_.R([_.e({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],Cn);
_.q(Cn,"ytd-browse-secondary-contents-renderer",function(){if(u6Y!==void 0)return u6Y;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);
return u6Y=C},{mode:1});var I0S;var j5=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};C.notActive=!1;C.isConstrainedList=!1;return C};
_.O(j5,_.B);_.n=j5.prototype;
_.n.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(C){var F;return(C==null?void 0:(F=C.webComponentHint)==null?void 0:F.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}}}}};
_.n.getPath=function(C,F){var G="data.tabs.#"+F+".";C.tabs[F].tabRenderer?G+="tabRenderer.":C.tabs[F].expandableTabRenderer&&(G+="expandableTabRenderer.");return G+"content.sectionListRenderer"};
_.n.computeDisplayedContent=function(C){this.unlinkPaths("content");if(C&&C.tabs)for(var F=C.tabs.length,G=0;G<F;G++){var V=C.tabs[G].tabRenderer||C.tabs[G].expandableTabRenderer;if(V.selected&&V.content)return this.linkPaths("content",this.getPath(C,G)),V.content}return null};
_.n.computeHasSecondaryColumnData=function(C){return!!C&&!!C.secondaryContents};
_.n.onRetrieveLocation=function(C,F){F.locationRetrieved(F.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);C.stopPropagation()};
_.n.onYtServiceRequestSent=function(C,F){_.y("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(F)};
_.n.onYtServiceRequestCompleted=function(C,F){_.y("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(F)};
_.n.onReplaceFeedContentAction=function(C){if(!_.y("replace_feed_content_action_killswitch")&&!this.notActive){var F;(C=(F=_.Z(C,iT0))==null?void 0:F.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(C)}};
_.n.handleServiceRequestActions=function(C){if(C=C.actions){C=_.u(C);for(var F=C.next();!F.done;F=C.next()){F=F.value;var G=void 0;((G=_.Z(F,iT0))==null?0:G.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.Z(F,iT0).items)}}};
j5.prototype.onYtServiceRequestCompleted=j5.prototype.onYtServiceRequestCompleted;j5.prototype.onYtServiceRequestSent=j5.prototype.onYtServiceRequestSent;j5.prototype.onRetrieveLocation=j5.prototype.onRetrieveLocation;_.R([_.w(_.rK),_.Y("design:type",Object)],j5.prototype,"ytdGridStateAwareBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],j5.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],j5.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],j5.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],j5.prototype,"data",void 0);_.R([_.L({computed:"computeDisplayedContent(data)"}),_.Y("design:type",Object)],j5.prototype,"content",void 0);
_.R([_.L({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],j5.prototype,"hasSecondaryColumnData",void 0);_.R([_.L({value:function(){return window.outerHeight>1024?3:2}}),
_.Y("design:type",Number)],j5.prototype,"initialCount",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],j5.prototype,"pageSubtype",void 0);_.R([_.$z("ytd-section-list-renderer"),_.Y("design:type",Object)],j5.prototype,"listRenderer",void 0);_.R([_.L(),_.Y("design:type",Object)],j5.prototype,"notActive",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],j5.prototype,"isConstrainedList",void 0);
_.R([_.L(),_.Y("design:type",String)],j5.prototype,"responsiveSizing",void 0);_.R([_.VG("yt-retrieve-location"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],j5.prototype,"onRetrieveLocation",null);_.R([_.VG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Sn]),_.Y("design:returntype")],j5.prototype,"onYtServiceRequestSent",null);
_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.en]),_.Y("design:returntype")],j5.prototype,"onYtServiceRequestCompleted",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],j5);
_.q(j5,"ytd-two-column-browse-results-renderer",function(){if(I0S!==void 0)return I0S;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return I0S=C},{mode:2});
}catch(e){_._DumpException(e)}
try{
var sA0=function(C){if((C==null?void 0:C.value)===void 0||C==null||!C.unit)return"initial";a:{switch(C.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var F="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":F="%";break a}F=void 0}return F?""+C.value+F:"initial"};_.gQ(_.d(function(C){var F=C.data;C=_.u(_.yH(!1,void 0,"leWY9b"));var G=C.next().value,V=C.next().value;_.q4(function(){_.FV.getInstance().triggerAction("yt-request-timely-shelf-state")});
_.GA(_.FV.getInstance(),{"yt-hide-shopping-timely-shelf":function(){V(!1)},
"yt-show-shopping-timely-shelf":function(){requestAnimationFrame(function(){V(!0)})}});
var J=function(){var b;return((b=F().image)==null?void 0:b.height)||40};
C={};return _.W("yt-shopping-timely-shelf-content-view-model",{el:_.dQ(_.lC(function(){return F().rendererContext})),
class:_.py("ytShoppingTimelyShelfContentViewModelHost",(C.ytShoppingTimelyShelfContentViewModelIsVisible=function(){return!!(F().image||F().avatar||F().line1)&&G()},C)),
style:_.VA({"--shopping-timely-shelf-content-padding-top":function(){var b;return sA0((b=F().padding)==null?void 0:b.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var b;return sA0((b=F().padding)==null?void 0:b.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var b;return sA0((b=F().padding)==null?void 0:b.start)},
"--shopping-timely-shelf-content-padding-end":function(){var b;return sA0((b=F().padding)==null?void 0:b.end)},
"--yt-shopping-timely-shelf-background-color":function(){return F().backgroundColor!==void 0?_.lE(F().backgroundColor):"initial"},
"--yt-shopping-timely-shelf-image-corner-radius":function(){var b,z;return((z=(b=F().image)==null?void 0:b.cornerRadius)!=null?z:0)+"px"}})},_.W(_.a,{cond:function(){var b;
return(b=F().image)==null?void 0:b.image},
then:function(b){return _.W(_.AC,{preserveHeight:!0,preserveWidth:!0,height:J,data:b,alt:"",className:"ytShoppingTimelyShelfContentViewModelImage"})}}),_.W(_.uC,{data:function(){return F().avatar}},{avatarViewModel:_.g$}),_.W("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.W(_.uC,{data:function(){return F().line1}},{shoppingContentLineViewModel:function(b){return _.W(_.G8,{data:b.data})}}),_.W(_.uC,{data:function(){return F().line2}},{shoppingContentLineViewModel:function(b){return _.W(_.G8,
{data:b.data})}})),_.W("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.W(_.uC,{data:function(){var b;
return(b=F().button)!=null?b:[]}},{buttonViewModel:function(b){var z=b.data;
return _.W(_.tS,{data:z,className:"ytShoppingTimelyShelfContentViewModelButton",onClick:function(Q){z().onTap&&Q.stopPropagation()}})}})))},"ao"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.CJ}});_.q3h={};
_.q3h.YtdWatchBehavior=[_.D.YtRendererBehavior,_.Fi.YtPlayerListenerBehavior,_.nJ.YtRendererstamperBehavior,_.Z7.YtActionHandlerBehavior,_.ij.YtPageBehavior,_.yR.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},shoppingTimelyShelf:{type:Object,computed:"getShoppingTimelyShelf(data, shoppingTimelyShelfValue)"},offerModule:{type:Object},
engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},shoppingTimelyShelfValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,
computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},
theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.oD("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.y("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 _.oD("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isTwoColumnsInitialized:{type:Boolean,value:!1},isSingleColumn:{type:Boolean,reflectToAttribute:!0,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},
isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},
showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.y("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,
computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded,liveChatPresentAndExpanded, playlistPanelExpanded, fullscreen, theater)"},
richItemMinWidth:{type:Number,value:function(){return _.a8("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.a8("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},
newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.y("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isSingleColumn)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.y("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.y("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("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 _.y("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("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 _.y("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean},persistentPanelVisible:{type:Boolean,value:!1,reflectToAttribute:!0},aiCompanionEnabled:{type:Boolean,value:function(){return _.y("enable_ai_companion")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var C={info:{id:"info-contents",mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},
offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",
properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},
donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},shoppingTimelyShelf:{id:"shopping-timely-shelf",mapping:{shoppingTimelyShelfContentViewModel:"yt-shopping-timely-shelf-content-view-model"}},clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},
limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.UF(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.UF(["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"||_.y("swa_prov_panels_ks")?C.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(C.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},C.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return C},
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 C=this;this.watchController=void 0;this.pageDisposeJobs=[function(){C.showMetadataPlaceholder_()},
function(){_.y("web_watch_dont_clear_comments")||C.clearComments_()},
function(){C.clearPlayerAds_()},
function(){C.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=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;_.y("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.y("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=
!1);this.youThereManager_=new _.XY6(function(){return _.PB(C)},this.hostElement);
this.pageDisposeJobs.push(function(){C.youThereManager_.reset()});
_.y("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){C.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.EX;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",this.onAdStateChange_);this.playerEvents_.set("onStateChange",
this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;this.watchMetadata=void 0;_.y("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));_.y("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Gp(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(C){C&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:C}),C.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(C){_.y("kevlar_watch_flexy_theater_manager")&&(this.theater=C,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(C){!_.y("kevlar_watch_while_v2")&&!_.y("web_watch_pip")||C||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(C){this.active!==void 0&&(this.fullscreen=C,_.y("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(C){this.active!==void 0&&(_.oo(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.y("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(C>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(C){this.initCsi_();this.updatePageData_(C)},
updatePageData_:function(C){var F=this;if(C)if(this.data===C){this.onPageLoadWithSameData_();var G;(G=this.watchController)==null||G.setWatchNextResponse(this.data)}else this.data=C;this.playlist&&_.UZ({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.NV("nw");this.loading=!1;_.c8(_.gT,function(){F.initDclkstatus_();var V,J=((V=F.player)==null?void 0:V.getVideoData().cpn)||"";_.zOL(function(b,z){_.rRl(b,z,J)})})},
onPageLoadWithSameData_:function(){_.y("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 C=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!C);this.set("loadingData.playlistLoading",C&&C!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),C=this.watchNextSkeletonEl_.firstElementChild;C;)C.classList.remove("hidden"),C=C.nextElementSibling;if(_.y("kevlar_watch_frame0_loading_state")){var F,G,V;C=(F=this.loadingData)==null?void 0:(G=F.endpoint)==null?void 0:(V=G.watchEndpoint)==null?void 0:V.videoId;var J;C&&(J="https://i.ytimg.com/vi/"+C+"/frame0.jpg");_.ot(this.hostElement).querySelector("#player").style.backgroundImage=J?"url("+J+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var C=_.ot(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&C&&(C.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var F,G;(G=(F=this.watchMetadata).updateSentimentBarWidth)==
null||G.call(F);var V,J;(J=(V=this.watchMetadata).resize)==null||J.call(V)}_.y("kevlar_watch_frame0_loading_state")&&(_.ot(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(C){var F=_.ot(this.hostElement).querySelector(C);F?_.Y6(F,!1):_.Yw(new _.Ay("Overscroll monitor not found for component: ",C))},
removeSplitScrollMouseTrap:function(C){var F=_.ot(this.hostElement).querySelector(C);F?_.T_(F):_.Yw(new _.Ay("Disposal component for  overscroll monitoring not found: ",C))},
onLoadingChanged_:function(C){C?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.y("web_thumbnail_to_watch_transition")&&!_.vUr||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.y("web_thumbnail_to_watch_transition")&&!_.vUr||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(C){var F=this;C?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.gT.addLowPriorityJob(function(){F.onWindowResized_(_.bE(!0))})},
updateTheaterModeState_:function(C){if(!_.y("kevlar_watch_flexy_theater_manager")){C=C||this.fullWindowMode_;if(this.theater!==void 0||C)this.theater=C;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();C&&_.MEL()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var C=this.fullBleedPlayer?_.ot(this.hostElement).querySelector("#player-full-bleed-container"):_.ot(this.hostElement).querySelector("#player-container-inner");var F=this.getPlayerContainer(),G=_.y("kevlar_watch_while_v2")||_.y("web_watch_pip");F.parentElement!==C&&(G&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.PB(this).appendTo(C,F))},
updateErrorScreenLocation:function(){var C=_.ot(this.hostElement).querySelector("#error-screen"),F=this.fullBleedPlayer?_.ot(this.hostElement).querySelector("#player-full-bleed-container"):_.ot(this.hostElement).querySelector("#player");C.parentElement!==F&&F.appendChild(C)},
deactivateMiniplayerAndResetPlayer:function(){var C=this;return _.I(function(F){if(F.nextAddress==1)return F.yield(_.I8().resolve(_.Od).deactivate(),2);C.updatePlayerLocation();_.S9(F)})},
updateCinematicsLocation:function(){var C=this.getElement("CINEMATICS");if(C){var F=this.getCinematicsLocationContainer();C.parentElement!==F&&F.appendChild(C)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.ot(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.ot(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(C,F,G){var V=document.documentElement.hasAttribute("dark"),J=V&&_.y("web_cinematic_theater_mode"),b=V&&_.y("web_cinematic_fullscreen");V=!V&&this.cinematicLightTheme;return G||C&&J||F&&b||(F||C)&&V},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var C=this,F;(F=this.watchController)==null||F.setWatchNextResponse(this.data);_.y("kevlar_watch_flexy_comments_manager")||this.initComments_();_.y("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.I8().resolve(_.Fx).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,_.y("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.gT.addLowPriorityJob(function(){_.KX(C.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.y("web_watch_start_chat_in_theater_mode")){var G,V,J;if((G=this.data)==null?0:(V=G.contents)==null?0:(J=V.twoColumnWatchNextResults)==null?0:J.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var b,z;((b=this.data)==null?0:(z=b.contents)==null?0:z.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(C){var F;(F=this.watchController)==null||F.setPlayerResponse(this.playerData);C&&C.playabilityStatus&&(F=this.isVideoPlayable_(C.playabilityStatus,this.getPlayerOverlays_(this.data)),C=this.isLiveStreamOffline_(C.playabilityStatus),F&&!C||_.zH(this,function(){_.NV("pbu")}));
this.setPlayerAds_();_.KX(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(C,F){if((_.y("kevlar_watch_while_v2")||_.y("web_watch_pip"))&&this.playerData&&F)return this.playerData.videoDetails},
watchPageActiveChanged_:function(C){_.s3().dispatch(_.vBl(this.active));C?this.activate_():this.deactivate_()},
attached:function(){var C=this;this.watchController=new _.xc(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);_.y("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var F=_.PB(this);_.y("kevlar_disable_prepare_player")||
F.preparePlayer();_.y("kevlar_watch_flexy_playlist_manager")||_.I8().resolve(_.Fx).setPlayer(F);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();F={"--ytd-watch-flexy-scrollbar-width":_.MF()+"px"};this.is==="ytd-watch-grid"&&(_.s3().dispatch(_.rh({type:"SET_IS_SWATCHEROO_ACTIVE",payload:{isSwatcherooActive:!0}})),F["--ytd-watch-flexy-sidebar-width"]=_.a99+"px",F["--ytd-watch-grid-horizontal-page-margins"]=_.AA+"px",F["--ytd-watch-grid-columns-top-margins"]=
_.EUY+"px",F["--ytd-watch-grid-min-player-height-medium"]="360px");!_.a8("kv_pl_mx_sz_ks")&&_.a8("kevlar_watch_max_player_width")&&(F["--ytd-watch-flexy-max-player-width-wide-screen"]=_.kNF+"px");_.a8("kevlar_watch_flexy_metadata_height")&&(F["--ytd-watch-flexy-space-below-player"]=_.UeF+"px");this.safeUpdateStyles(F);_.y("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.u1(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return C.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.ot(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var C=_.MF(),F=_.eF+C,G=F;this.fixedPanels&&(F+=_.a99);var V=657+C;C=1327+C;_.ot(this.hostElement).querySelector("#two-column-query").query="(min-width: "+F+"px)";_.ot(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(V+"px), (min-height: 630px) and (min-width: ")+(F+"px) and (max-width: ")+(C+"px)");_.ot(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(C+"px)");
_.ot(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+G+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var C=_.ot(this.hostElement).querySelector("#miniplayer-bar").firstChild,F=this.squeezeback&&!_.y("web_watch_squeezeback_player_size_killswitch");return C&&C.active||this.theater||_.y("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||F||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.Ml(NaN,NaN):_.tNF(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.tNF(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.uz(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var C=this;this.onWindowResized_(_.bE());_.y("browse_skeleton_removal_on_watch_killswitch")||_.oD("IS_SHELL_LOAD")&&_.WY6();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var F=_.PB(this);F.addEventListener("yt-player-updated",_.Gp(this,this.onPlayerUpdated_));F.getPlayerPromise().then(function(G){C.playerApiReady_(G)});
_.y("kevlar_watch_flexy_playlist_manager")||(F=_.I8().resolve(_.Fx),_.y("kevlar_watch_observe_playlist_navigations_killswitch")&&F.addEventListener("yt-navigate",_.Gp(this,this.onYtNavigate_)),F.setPlaylistComponent(_.ot(this.hostElement).querySelector("#playlist")),F.addEventListener("yt-playlist-data-updated",_.Gp(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.gT.addLowPriorityJob(function(){_.oo(C.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.PB(this).removeEventListener("yt-player-updated",_.Gp(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.y("kevlar_watch_flexy_playlist_manager")){var C=_.I8().resolve(_.Fx);_.y("kevlar_watch_observe_playlist_navigations_killswitch")&&C.removeEventListener("yt-navigate",_.Gp(this,this.onYtNavigate_));
C.cancelVideoSkip();C.removeEventListener("yt-playlist-data-updated",_.Gp(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.oo(this.hostElement,"yt-autonav-pause-player",!1);C=_.gz();_.y("kevlar_exit_fullscreen_leaving_watch")&&C&&_.Ro(C)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(C){this.player&&this.player.updateVideoData({rvs:C.rvs})},
getPageContents:function(C){return C&&C.contents&&C.contents.twoColumnWatchNextResults&&C.contents.twoColumnWatchNextResults.results&&C.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getShoppingTimelyShelf:function(){return this.shoppingTimelyShelfValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(C){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",C)},
onRetrieveLocation_:function(C,F){F.hasComments?F.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):F.locationRetrieved("/related_ajax",void 0);C.stopPropagation()},
onSubscriptionChanged_:function(C,F){this.player&&(F?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.N9n("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.ot(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.ot(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(C){this.player=C;this.setPlayerState(C.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.y("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.y("kevlar_unified_player")||_.y("kevlar_player_new_bootstrap_adoption"))&&_.Mx()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(C,F){F=F===void 0?!0:F;_.gz()&&_.y("external_fullscreen")&&_.Ro(document.documentElement);this.theaterRequested_=C;F&&_.vD("wide",C?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.rz(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.oo(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(C){_.Tf(C,typeof this.player),this.player&&_.Tf(C,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var C;((C=this.player)==null?0:C.isFullscreen())?this.player.toggleFullscreen():_.rz(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(C,F){return this.loading?F:!!Object.keys(C).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(C){if(C){C=_.u(C);for(var F=C.next();!F.done;F=C.next())F=F.value,F.youThereRenderer&&_.S30(this.youThereManager_,F.youThereRenderer)}},
setPlaylistData_:function(C){return C||{}},
userEngagementConfigDataChanged_:function(C){if(C)if(C.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var F=this.youThereManager_;_.I1()<C.lowEngagementThresholdMs||_.fbL(F,!0)}else C.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.rz(this.hostElement,"yt-autonav-pause-user-engagement",[C])},
isPlayerUnavailable_:function(C,F,G){return!!C&&!this.isVideoPlayable_(C,G)&&!F},
getPlayerOverlays_:function(C){return(C==null?void 0:C.playerOverlays)||null},
isVideoPlayable_:function(C,F){if(!C)return!1;var G=C.status==="OK"||C.status==="LIVE_STREAM_OFFLINE",V=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",C)||this.get("errorScreen.ypcTrailerRenderer",C);C=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",C);var J;F=F==null?void 0:(J=F.playerOverlayRenderer)==null?void 0:J.gatedActionsOverlayRenderer;return!!G||!!V||!!C||!!F},
hasWatchNextResponseErrorRenderer:function(C){var F=this.getPageContents(C),G,V,J,b,z;return!(C==null?0:(G=C.contents)==null?0:(V=G.twoColumnWatchNextResults)==null?0:V.secondaryResults)&&!!((J=F[0])==null?0:(b=J.itemSectionRenderer)==null?0:(z=b.contents[0])==null?0:z.backgroundPromoRenderer)},
isLiveStreamOffline_:function(C){return C?C.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(C,F,G){var V=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",F),J=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];J=_.y("web_no_skip_video_on_verification_checks")?(C==null?void 0:C.status)&&J.includes(C.status):C&&C.status==="AGE_CHECK_REQUIRED";var b=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",C);b==void 0&&(b=!0);!G||this.isVideoPlayable_(C,this.getPlayerOverlays_(F))||
V||J||!b||_.I8().resolve(_.Fx).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.kc6()},
onPlayerFeedbackStartRequest_:function(C){_.rz(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:C}])},
onPlayerFeedbackArticleRequest_:function(C){_.rz(this.hostElement,"yt-help-dialog-requested",[C])},
onPlayerYpcContentRequest_:function(){var C,F,G,V,J,b,z,Q,E=((C=this.data)==null?NaN:(F=C.contents)==null?NaN:(G=F.twoColumnWatchNextResults)==null?NaN:(V=G.secondaryResults)==null?NaN:(J=V.secondaryResults)==null?NaN:(b=J.offerModule)==null?NaN:(z=b.tvfilmOfferModuleRenderer)==null?NaN:(Q=z.actionButtons)==null?NaN:Q.length)-1;C=[".offerButton.buttonRenderer.",".actionButtons."+(E>=0?E:0)+".buttonRenderer."];F=_.u(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(G=F.next();!G.done;G=F.next())for(G=G.value,V=_.u(C),J=V.next();!J.done;J=V.next())if(J="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+G+J.value,J=this.get(J+"navigationEndpoint",this.data)||this.get(J+"serviceEndpoint",this.data)||this.get(J+"command",this.data)){_.jR(J,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(C){_.oo(this.hostElement,"yt-autonav-pause-player",C)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(C){C()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(C){switch(C){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(C){switch(C){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.oo(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(C)},
setPlayerState:function(C){_.s3().dispatch(_.YUr(C))},
onPlayerSubscribe_:function(C){_.rz(this.hostElement,"yt-player-subscribe",[C])},
onPlayerUnsubscribe_:function(C){_.rz(this.hostElement,"yt-player-unsubscribe",[C])},
onPlayerAdYtShowToast_:function(C){_.rz(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:C.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(C){if(C)return C},
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(C){return!_.y("web_watch_move_summary_to_sd")&&!!C},
computeWatchMetadataRefresh:function(){return _.y("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.y("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var C,F,G,V;this.watchNextSecondaryResults=(C=this.data)==null?void 0:(F=C.contents)==null?void 0:(G=F.twoColumnWatchNextResults)==null?void 0:(V=G.secondaryResults)==null?void 0:V.secondaryResults}},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var C,F=(C=this.data)==null?void 0:C.engagementPanels;if(F==null?0:F.length){C=null;F=_.u(F);for(var G=F.next();!G.done;G=F.next()){G=G.value;var V=void 0;if(((V=G.engagementPanelSectionListRenderer)==null?void 0:V.targetId)==="engagement-panel-structured-description"){C=G;break}}var J,b,z;C=(J=C)==null?void 0:(b=J.engagementPanelSectionListRenderer)==null?void 0:(z=b.content)==null?void 0:z.structuredDescriptionContentRenderer;if(C==null?0:C.items){J=
[];b=_.u(C.items);for(z=b.next();!z.done;z=b.next()){z=z.value;if(!_.y("sd_horizontal_list_show_nav_killswitch")){var Q=V=G=F=C=void 0,E=void 0,t=(C=z.horizontalCardListRenderer)==null?void 0:(F=C.header)==null?void 0:(G=F.richListHeaderRenderer)==null?void 0:(V=G.navigationButton)==null?void 0:(Q=V.buttonRenderer)==null?void 0:(E=Q.command)==null?void 0:E.commandExecutorCommand;t&&t.commands&&(t.commands=t.commands.filter(function(k){return!_.Z(k,_.vn_)}))}(!z.expandableVideoDescriptionBodyRenderer&&
!z.videoDescriptionHeaderRenderer||_.y("web_delhi_colorful_sd"))&&J.push(z)}return{items:J}}}},
constructWarning_:function(C){return{text:_.eN(C),type:"WARNING"}},
isPlaShelfEnabled_:function(C){if((this.get("adPlacements",C)||[]).length)return!0;C=this.get("playerAds",C)||[];return!(!C.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",C[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var C=this;_.oo(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var F=this.getScrollTop()>0;this.gestures_&&(F?this.gestures_.detach():this.gestures_.attach());F!==this.showFullerscreenEdu_&&_.y("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=F,_.PB(this).getPlayerPromise().then(function(G){G.updateFullerscreenEduButtonVisibility(C.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.oo(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var C=this;this.commentsReady=!1;_.gT.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.c8(_.gT,function(){C.setComments_()},1E3)},
setComments_:function(){if(!_.y("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.NV("cmi");_.gT.cancelJob(this.setCommentsJobId_);var C=this.getPageContents(this.data);if(C&&C.length){C=_.u(C);for(var F=C.next();!F.done;F=C.next())if(F=F.value,this.get("itemSectionRenderer.sectionIdentifier",F)==="comment-item-section"){this.comments=F.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.oo(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.y("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.y("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.NV("cmc")},
doRemoveComments_:function(){this.comments={};_.y("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.gT.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.gT.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(C,F){var G=_.Z(F.endpoint,_.eT);G&&(!(F=this.get("data.currentVideoEndpoint.watchEndpoint"))||G.videoId!==F.videoId||G.playlistId&&G.playlistId!==F.playlistId||G.index!==void 0&&G.index!==F.index||typeof G.startTimeSeconds!=="number"||(C.stopPropagation(),this.setScrollTop(0),_.PB(this).getPlayerPromise().then(function(V){var J=G.startTimeSeconds;V.seekTo(J);V.wakeUpControls();J<V.getDuration()&&V.playVideo()})))},
updatePlayerStartTime_:function(){var C=_.FDB();"t"in C&&(C=_.abY(C.t),this.player.seekTo(C,!0))},
updateTitleFromWatchNext:function(C){C=this.getPageContents(C);var F,G;(C=_.dd(C==null?void 0:(F=C[0])==null?void 0:(G=F.videoPrimaryInfoRenderer)==null?void 0:G.title))&&_.oo(this.hostElement,"yt-update-title",C)},
updateTitle_:function(C){C=this.get("videoDetails.title",C)||"";_.oo(this.hostElement,"yt-update-title",C)},
syncWithRemoteVideo_:function(C,F,G){if(this.active&&this.player){var V=this.player.getVideoData();if(V.video_id===G&&(G=V.list,_.y("polymer_enable_mdx_queue")&&G&&G.startsWith("RQ")&&(G=void 0),V.video_id!==C||G!=F)){var J;_.y("kevlar_player_watch_endpoint_navigation")?J=_.dgB(_.QAS(C,F)):J=this.buildWatchEndpoint_(C,F);_.oo(this.hostElement,"yt-navigate",{endpoint:J,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(C,F,G){return _.RQ(C,F,G)},
initDclkstatus_:function(){_.WDn()},
attachWatchPageSkeleton_:function(){var C=document.querySelector("#watch-page-skeleton");if(C){var F=C.querySelector("#primary-info"),G=C.querySelector("#secondary-info"),V=C.querySelector("#related");F&&_.ot(this.hostElement).querySelector("#info-skeleton").appendChild(F);G&&_.ot(this.hostElement).querySelector("#meta-skeleton").appendChild(G);V&&(_.ot(this.hostElement).querySelector("#related-skeleton").appendChild(V),this.watchNextSkeletonEl_=V);_.So(C)}},
handlePlayerUpdated_:function(){_.PB(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(C,F){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof F!=="undefined"){var G=this.watchNextSkeletonEl_.children,V=C&&C.indexSplices.length?C.indexSplices[0].index:0;C=Math.min(this.watchNextShownItems.length,G.length);F||(V=0,C=G.length);for(F=V;F<C;F++)G[F].classList.add("hidden")}},
onPlayerFullscreenChange_:function(C){_.y("external_fullscreen")||_.rz(this.hostElement,"yt-player-fullscreen",[C.fullscreen])},
onFullscreenChange_:function(C){this.fullscreen=C;this.gestures_&&this.gestures_.update(this.fullscreen);var F=_.PB(this);F.getPlayerPromise().then(function(G){G.setFauxFullscreen(!!_.gz())});
this.updateFullBleedElementLocations();C&&(F.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(C,F){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!F},
computeIsDonationShelfCollapsed_:function(C){return C},
computeShouldShowMerchShelf:function(C,F){return F&&!!C},
computeResponseHasComments:function(C){var F,G,V,J,b;return!!(C==null?0:(F=C.contents)==null?0:(G=F.twoColumnWatchNextResults)==null?0:(V=G.results)==null?0:(J=V.results)==null?0:(b=J.contents)==null?0:b.some(function(z){var Q;return(z==null?void 0:(Q=z.itemSectionRenderer)==null?void 0:Q.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(C,F,G,V){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&V?!1:!!C&&!!Object.keys(C).length&&!F},
identity:_.As,onWindowResized_:function(C){this.windowSize_=C;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(C){var F=this;C&&C.type!=="dataloaded"&&C.type!=="dataupdated"||_.PB(this).getPlayerPromise().then(function(G){var V=G.getPlayerState();V!==5&&V!==0&&(G=1/G.getVideoAspectRatio(),F.videoHeightToWidthRatio_!==G&&(F.videoHeightToWidthRatio_=G))})},
schedulePlayerSizeUpdate_:function(C){var F=this,G=_.y("kevlar_watch_while_v2")||_.y("web_watch_pip"),V=function(){if(F.watchMetadata){var J,b;(b=(J=F.watchMetadata).resize)==null||b.call(J)}_.PB(F).getPlayerPromise().then(function(z){if(_.y("kevlar_set_internal_player_size")){if(!G||!F.isMiniplayerActive()){var Q=F.calculateCurrentPlayerSize_();z.setInternalSize(Q.width,Q.height)}}else z.setSize(NaN,NaN);_.y("kevlar_watch_while")&&F.updateWatchWhileScrollThreshold_()})};
C?V():_.FD(_.gT,V)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(C){this.set("data.survey",C.detail)},
onYtShowSurveyCommand_:function(C){this.set("data.survey",_.Z(C,_.O70).survey)},
onDownloadedVideoDeleted:function(C){var F=this,G,V;return _.I(function(J){if(J.nextAddress==1){if(!F.active||(G=F.playerData)==null||!G.offlineState||F.videoId!==C)return J.return();(V=F.player)==null||V.stopVideo();_.v0().navigatingAwayFromWatchDeletedVideo=!0;_.jR(_.gmi,F.hostElement);return J.yield(_.v0().navigationFinishPromise,2)}_.v0().navigatingAwayFromWatchDeletedVideo=!1;_.S9(J)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var C;this.theater?C=_.lV(.5625*this.windowSize_.width,480,this.windowSize_.height-185):C=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==C&&(this.watchWhileScrollThreshold_=C,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var C=_.ot(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&C){var F=this.windowSize_.height>=624,G=this.active?this.getScrollTop():0;!C.active&&F&&G>=this.watchWhileScrollThreshold_?(C.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):C.active&&(!F||G<this.watchWhileScrollThreshold_&&!_.gz())&&(C.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var C=_.ot(this.hostElement).querySelector("#secondary-inner");if(C){var F=_.ot(this.hostElement).querySelector("#below"),G=_.ot(this.hostElement).querySelector("#secondary"),V=_.ot(this.hostElement).querySelector("#comments");V&&G&&F&&(this.defaultTwoColumnLayout?(C.appendChild(V),G.appendChild(C)):(F.appendChild(V),_.hA(F,C)))}}},
isTwoColumnsChanged_:function(C,F){if(C!==!0||F!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(C=_.ot(this.hostElement).querySelector("#secondary-inner"))){F=_.ot(this.hostElement).querySelector("#below");var G=_.ot(this.hostElement).querySelector("#secondary"),V=_.ot(this.hostElement).querySelector("#comments");V&&G&&F&&(this.isTwoColumns_?(C.appendChild(V),G.appendChild(C)):(F.appendChild(V),_.hA(F,C)))}}else{C=!_.y("web_watch_enable_fs_squeezeback_panels")||
!(this.fullscreen||this.iMaxTheaterMode&&this.theater);F=_.ot(this.hostElement).querySelector("#panels");var J=_.ot(this.hostElement).querySelector("#alerts"),b=_.ot(this.hostElement).querySelector("#shopping-timely-shelf");G=_.ot(this.hostElement).querySelector("#playlist");V=_.ot(this.hostElement).querySelector("#related");var z=_.ot(this.hostElement).querySelector("#donation-shelf"),Q=_.ot(this.hostElement).querySelector("#comments"),E=_.ot(this.hostElement).querySelector("#persistent-panel-container");
this.isTwoColumns_?(J=_.ot(this.hostElement).querySelector("#secondary-inner"),C&&(J.appendChild(F),J.appendChild(G),this.aiCompanionEnabled&&E&&J.appendChild(E)),J.appendChild(z),J.appendChild(V)):(C&&(_.ME(F,J),_.ME(G,J),this.aiCompanionEnabled&&E&&_.ME(E,J),_.ME(b,G)),_.ME(z,J),Q&&_.ME(V,Q));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.y("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.y("web_watch_enable_fs_squeezeback_panels")&&_.y("web_watch_theater_chat")){var C=_.ot(this.hostElement).querySelector("#chat-container"),F=this.theater&&!this.fullscreen||_.y("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&F?(F=_.ot(this.hostElement).querySelector("#columns"),(C==null?void 0:C.parentElement)!==F&&F.append(C),this.fixedPanels=!0):(this.fixedPanels=
!1,F=_.ot(this.hostElement).querySelector("#playlist"),C&&F?_.SI(C,F):_.Yw(new _.Ay("Missing element when updating chat location",{"chatContainer defined":!!C,"playlist defined":!!F})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(C,F){return _.y("sw_metadata_vis_toggle_ks")?!0:!!C||!!F},
computeForceDarkPanelTheme:function(C){return _.y("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&C:!1},
safeUpdateStyles:function(C){try{_.jr(this.hostElement,C)}catch(F){_.Yw(F)}},
videoHeightToWidthRatioChanged_:function(C,F){F&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(C){this.videoHeightToWidthRatio_=1/C},
computeIsVerticalVideo_:function(C){return C>=1},
computeIsFourThreeToSixteenNineVideo_:function(C){return C<=.7501&&C>=.5624},
computeIsExtraWideVideo_:function(C){return C<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.PB(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.PB(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.hOT(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(C){var F=_.Wr(C)||0;_.E6(C,F+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var C=_.Wr("yt-fullerscreen-edu-button-click-count")||0,F=_.Wr("yt-fullerscreen-edu-button-shown-count")||0,G=_.a8("external_fullscreen_button_shown_threshold"),V=C>=_.a8("external_fullscreen_button_click_threshold")||F>=G;_.PB(this).getPlayerPromise().then(function(J){J.updateFullerscreenEduButtonSubtleModeState(V)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(C,F){return F},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.I8().resolve(_.Fx).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var C=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.gT.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.gT.addLowPriorityJob(function(){C.fullHeightPanelPositionUpdateJobId=0;var F=_.ot(C.hostElement).querySelector("#secondary"),G=_.ot(C.hostElement).querySelector("#fixed-secondary");F=F.getBoundingClientRect();var V=F.width;C.swatcherooSqueezeback&&
(V+=_.AA);if(C.swatcherooSqueezeback){var J=_.ot(C.hostElement).querySelector("#squeezeback-constraining-container");J.style.width=V+"px";J.style.flex="0 0 "+V+"px"}G.style.width=V+"px";G.style.left=F.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var C=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.gT.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.gT.addLowPriorityJob(function(){C.panelMaxHeightUpdateJob_=0;var F;!C.isTwoColumns_||C.theater||C.fullscreen?F=460:F=C.calculateNormalPlayerSize_().height;var G=F+"px";_.y("live_chat_taller_height")&&!C.theater&&(G="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.y("live_chat_medium_height")&&!C.theater&&(G="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.y("live_chat_scaled_height")&&!C.theater&&(G="calc(100vh - var(--ytd-toolbar-height) - 238px)");C.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":F+"px","--ytd-watch-flexy-chat-max-height":G,"--ytd-watch-flexy-structured-description-max-height":F+"px","--ytd-watch-flexy-comments-panel-max-height":F+"px","--ytd-comments-engagement-panel-content-height":F+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(C){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",C)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.pX(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(C){var F=_.ot(this.hostElement).querySelector("#engagement-panel-scrim");C?F.addEventListener("tap",_.Gp(this,this.onEngagementPanelScrimClick_)):F.removeEventListener("tap",_.Gp(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(C){if(this.hostElement.contains(C)&&!this.scrollToAnimation_.isAnimating()){var F=C.offsetTop-24;C=C.offsetTop+C.offsetHeight+24;var G=this.getPageScrollingElement(),V=this.getScrollTop(),J=V+G.clientHeight-56;if(F<V+56)F-=56;else if(C>J)F=C-G.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,F),500)}},
onYtSignalActionScrollToComments:function(){var C=this.hostElement.querySelector("#comments");if(C&&!this.scrollToAnimation_.isAnimating()){C=C.offsetTop-56-24;if(_.y("kevlar_comment_teaser_scroll_to_midpoint")&&(C-=_.LA().height/3,C<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,C),500)}},
onYtEngagementPanelVisibleChanged:function(C,F,G){if(this.active&&this.trackEngagementPanelVisibility&&!_.Z7S.includes(G)){if(F==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.KX(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var V=_.I8().resolve(_.dB);this.visiblePanelIdentifiers_.forEach(function(J){J!==G&&V.hidePanel({identifier:J})})}this.visiblePanelIdentifiers_.add(G)}F!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&F!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(G);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(C){return C?"":"watch-active-metadata"},
computeNewMetadataClass:function(C){return C?"watch-active-metadata":""},
computeIsSingleColumn:function(C,F){return F&&!C},
computeFullBleedPlayer:function(C,F,G){return _.y("external_fullscreen")&&C||F||G},
computeDefaultLayout:function(C){return!C},
computeDefaultTwoColumnLayout:function(C,F){return!C&&F},
updatePanelsLocation:function(){if(_.y("web_watch_enable_fs_squeezeback_panels")){var C=_.ot(this.hostElement).querySelector("#below"),F=_.ot(this.hostElement).querySelector("#panels"),G=_.ot(this.hostElement).querySelector("#playlist"),V=_.ot(this.hostElement).querySelector("#chat-container"),J=_.ot(this.hostElement).querySelector("#panels-full-bleed-container"),b=_.ot(this.hostElement).querySelector("#secondary-inner"),z=_.ot(this.hostElement).querySelector("#shopping-timely-shelf"),Q=_.ot(this.hostElement).querySelector("#persistent-panel-container");
if(C&&F&&G&&V&&J&&b&&z&&(this.aiCompanionEnabled?Q:1)){var E=this.fullscreen||this.theater&&this.iMaxTheaterMode,t=this.theater&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;E?(J.appendChild(F),J.appendChild(V),J.appendChild(G),this.aiCompanionEnabled&&Q&&J.appendChild(Q)):this.isTwoColumns_?(t?(C=_.ot(this.hostElement).querySelector("#columns"),(V==null?void 0:V.parentElement)!==C&&C.append(V),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):
_.hA(b,V),_.hA(b,F),_.hA(b,G),this.aiCompanionEnabled&&Q&&_.hA(b,Q)):(C.appendChild(F),C.appendChild(z),C.appendChild(V),C.appendChild(G),this.aiCompanionEnabled&&Q&&C.appendChild(Q))}}},
swatcherooUpdatePanelsLocation:function(C,F,G,V,J,b){if(this.is==="ytd-watch-grid"){F=C&&!F;this.swatcherooSplitScroll&&(F?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));G=_.ot(this.hostElement).querySelector("#panels");var z=_.ot(this.hostElement).querySelector("#playlist"),Q=_.ot(this.hostElement).querySelector("#persistent-panel-container"),
E=_.ot(this.hostElement).querySelector("#fixed-secondary"),t=_.ot(this.hostElement).querySelector("#fixed-below"),k=_.ot(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),U=_.ot(this.hostElement).querySelector("#chat-container");b&&(C?(E.appendChild(G),this.aiCompanionEnabled&&Q&&E.appendChild(Q)):(t.appendChild(G),this.aiCompanionEnabled&&Q&&t.appendChild(Q)));J?C?E.appendChild(U):t.appendChild(U):_.SI(U,k);V?C?E.appendChild(z):t.appendChild(z):_.SI(z,
k);this.swatcherooSplitScroll&&(C=_.ot(this.hostElement).querySelector("#secondary"),V=_.ot(this.hostElement).querySelector("#columns"),J=_.ot(this.hostElement).querySelector("#fixed-columns-secondary"),F?J.appendChild(C):V.appendChild(C))}},
computeMetadataSkinnyMode:function(C,F,G){return this.is!=="ytd-watch-grid"?!1:C?G:F},
computeWatchWhilePanelsActive:function(C,F){return C||F},
computeNoBorderOnChat:function(C){return _.y("web_watch_theater_chat_no_border")&&C},
computeLiveChatPresentAndExpanded:function(C,F){return C&&!F},
computePanelExpanded:function(C,F,G){return C||F||G},
computeSqueezeback:function(C,F,G,V){if(_.y("web_watch_enable_fs_squeezeback_panels")){var J=this.iMaxTheaterMode&&this.theater,b=this.theater&&!this.iMaxTheaterMode;return(C||F||G)&&(J||V)||F&&b}},
computeSwatcherooSqueezeback:function(C,F,G){return this.is!=="ytd-watch-grid"||_.y("ww_squeezeback_killswitch")?!1:C&&F&&G},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(C){_.PB(this).getPlayerPromise().then(function(F){var G;(G=F.changeMarkerVisibility)==null||G.call(F,_.Z(C,_.gU).isVisible||!1,_.Z(C,_.gU).entityKeys||[],_.Z(C,_.gU).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(C){this.liveChatCollapsed=C.detail;_.s3().dispatch(_.y4l(C.detail));if(!this.liveChatCollapsed&&this.squeezeback){var F=_.I8().resolve(_.dB);this.visiblePanelIdentifiers_.forEach(function(G){F.hidePanel({identifier:G})})}},
onSetPlaylistCollapsed:function(C){_.y("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!C)},
provideRenderingData:function(C,F){switch(C){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=F;break;case "PRIMARY_INFO":_.y("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=F);this.videoPrimaryInfoRendererValue=F==null?void 0:F.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.y("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=F);this.videoSecondaryInfoRendererValue=F==null?void 0:F.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
F;break;case "CLARIFICATION":this.clarifyBoxValue=F;break;case "LIVE_CHAT":this.conversationBar=F;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=F;break;case "PLAYLIST":this.externalPlaylistData_=F!=null?F:{};break;case "MERCH_SHELF":this.merchShelfValue=F==null?void 0:F.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=F;break;case "TICKET_SHELF":this.ticket=F;break;case "OFFER_MODULE":this.offerModule=F;break;case "LIMITED_STATE":this.limitedStateValue=
F;break;case "DONATION_SHELF":this.donation=F;break;case "ALERTS":this.alertsValue=F;break;case "COMMENTS":this.comments=F;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=F;break;case "ENGAGEMENT_PANELS":this.engagementPanels=F;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=F;break;case "RICH_GRID_RENDERER":this.richGridRendererData=F;break;case "EXPANDABLE_METADATA":this.expandableMetadata=F;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
F;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=F}},
toggleCinematicsActive:function(C){this.cinematicsActive=C},
isMiniplayerActive:function(){return _.I8().resolve(_.Od).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var mzh;_.prU=function(C){if(!(0,_.zyu)(C))throw Error("K``"+String(C));};
_.CPr=function(C){return C.findIndex(function(F){return mzh.indexOf(F.tagName)>-1})>-1};
_.jN8=function(){var C=_.I8().resolve(_.k3);_.byo(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(C.isFullscreenEnabled()?_.Ro(document.documentElement):_.m7w(document.documentElement))};
mzh=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.Yu=new Map;_.Yu.set(32,59972);_.Yu.set(27,50765);_.Yu.set(70,60102);_.Yu.set(76,60221);_.Yu.set(77,60222);_.Yu.set(74,60223);_.Yu.set(84,60224);_.Yu.set(38,61941);_.Yu.set(40,61942);_.Yu.set(73,62521);_.Yu.set(67,62522);_.Yu.set(80,63390);_.Yu.set(78,63397);_.Yu.set(75,59972);_.Yu.set(188,63385);_.Yu.set(190,63384);_.Yu.set(36,63387);
_.Yu.set(35,63386);_.Yu.set(37,63388);_.Yu.set(39,63389);_.Yu.set(79,63423);_.Yu.set(87,63424);_.Yu.set(107,63426);_.Yu.set(109,63425);_.Yu.set(65,63428);_.Yu.set(83,63430);_.Yu.set(68,63429);_.Yu.set(221,63431);_.Yu.set(219,63432);_.Yu.set(97,63439);_.Yu.set(98,63440);_.Yu.set(99,63441);_.Yu.set(100,63442);_.Yu.set(101,63443);_.Yu.set(102,63444);_.Yu.set(103,63445);_.Yu.set(104,63446);_.Yu.set(105,63447);_.T0=new Map;_.T0.set(80,63390);_.T0.set(78,63397);_.T0.set(188,63400);_.T0.set(190,63401);
_.T0.set(191,60765);_.T0.set(13,247917);_.ob=new Map;_.rr=new Map;
}catch(e){_._DumpException(e)}
try{
var tvl,Uzs,Hds,lth;_.Qth=function(C){return C.ui.guideIsVisibleButNotPersistent};
_.It3=function(C){return C.ui.tabGesturesIsActive};
_.ET8=function(){var C=_.kU("service_worker_scope");try{return navigator.serviceWorker.getRegistration(C)}catch(F){return Promise.reject(F)}};
_.W5r=function(C){return!(!C||!C.pushManager)};
tvl=function(){return _.ET8().then(_.W5r).catch(function(){return!1})};
_.att=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?tvl():Promise.resolve(!1)};
_.ktU=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
Uzs=function(){var C,F,G;return _.I(function(V){switch(V.nextAddress){case 1:return V.yield(_.P0.getInstance(),2);case 2:C=V.yieldResult;if(!C){F=void 0;V.jumpTo(3);break}return V.yield(C.get("lmqf"),4);case 4:F=V.yieldResult;case 3:switch((G=F)||(G="SD"),G){case "HD":return V.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return V.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return V.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return V.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return V.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
Hds=function(C){var F,G,V;return _.I(function(J){if(J.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.y("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(F=C===b)return J.jumpTo(2);V=G=C;return J.yield(Uzs(),3)}J.nextAddress!=2&&(F=V===J.yieldResult);return J.return(F)})};var yRr;var ZdW=_.Lq.IronButtonState,N7d=(0,_.Xt)(HTMLElement);
_.kz({_template:function(){if(yRr!==void 0)return yRr;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;lth===void 0&&(lth=document.createElement("template"));var V=lth;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return yRr=C},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[ZdW,_.M7,_.BP,_.hY],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(C){var F=(0,_.vv)(this);F.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:C});F.shadowRoot.appendChild(C);return N7d.prototype._attachDom.call(this,C)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var C=this.contentElement;C&&C.selectedItem&&this._setSelectedItem(C.selectedItem)},
get contentElement(){for(var C=_.E5(this.$.content).getDistributedNodes(),F=0,G=C.length;F<G;F++)if(C[F].nodeType===Node.ELEMENT_NODE)return C[F]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(C){this._setSelectedItem(C.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(C){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(C)===this&&this.open()},
_selectedItemChanged:function(C){var F="";C?F=C.label||C.getAttribute("label")||C.textContent.trim():F="";this.value=F;this._setSelectedItemLabel(F)},
_computeMenuVerticalOffset:function(C,F){return F?F:C?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var C=this.opened?"true":"false",F=this.contentElement;F&&F.setAttribute("aria-expanded",C)}});_.LN=new _.Cx("navigateAction");var Odr=new _.Cx("formRenderer");var Bt=function(){var C=_.n5.apply(this,arguments)||this;C.showInput=!1;return C};
_.O(Bt,_.n5);_.n=Bt.prototype;_.n.detached=function(){this.showInput&&window.removeEventListener("click",_.Gp(this,this.closeOnOutsideClick_))};
_.n.stopPropagation_=function(C){this.showInput&&C.stopPropagation()};
_.n.closeOnOutsideClick_=function(C){this.closeOnOutsideClickCondition(C)&&(this.showInput=!1,window.removeEventListener("click",_.Gp(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.n.closeOnOutsideClickCondition=function(){return!0};
_.n.closeOnOutsideClickHandler=function(){};
_.n.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.Gp(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.n.openOnClickHandler=function(){};
_.n.showInputChanged=function(){};
_.n.setShowInput=function(C){this.showInput=C};
Bt.prototype.setShowInput=Bt.prototype.setShowInput;Bt.prototype.showInputChanged=Bt.prototype.showInputChanged;Bt.prototype.openOnClickHandler=Bt.prototype.openOnClickHandler;Bt.prototype.openOnClick_=Bt.prototype.openOnClick_;Bt.prototype.closeOnOutsideClickHandler=Bt.prototype.closeOnOutsideClickHandler;Bt.prototype.closeOnOutsideClickCondition=Bt.prototype.closeOnOutsideClickCondition;Bt.prototype.closeOnOutsideClick_=Bt.prototype.closeOnOutsideClick_;Bt.prototype.stopPropagation_=Bt.prototype.stopPropagation_;
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Bt.prototype,"showInput",void 0);_.R([_.VG("click"),_.VG("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Bt.prototype,"stopPropagation_",null);_.R([_.iP("showInput"),_.Y("design:type",Function),_.Y("design:paramtypes",[Boolean]),_.Y("design:returntype")],Bt.prototype,"showInputChanged",null);_.R([_.uP()],Bt);_.XrL=[Bt.prototype];var wrd;var Mvd;var vt=function(){return _.B.apply(this,arguments)||this};
_.O(vt,_.B);_.n=vt.prototype;_.n.computePreselectedOption=function(C,F){return F===this.itemSelected_?C:void 0};
_.n.dataChanged_=function(){var C=this;this.preselectedSubreason=this.itemSelected_=-1;var F;(F=this.data)!=null&&F.key&&_.zH(this,function(){var G,V=Number((G=C.data)==null?void 0:G.key);!Number.isNaN(V)&&(C.itemSelected_=V,G=(G=(C.data.items||[])[V])&&G.optionSelectableItemRenderer&&G.optionSelectableItemRenderer.preselectedIndex)&&(C.preselectedSubreason=G)})};
_.n.isSubReasonHidden_=function(C,F){return C!=F};
_.n.onTopItemSelected_=function(C,F){for(var G=_.ot(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),V=0,J=G.length;V<J;V++)G[V].select(0);_.rz(this.hostElement,"yt-report-form-update",[F.item.value]);C.stopPropagation()};
_.n.onItemSelected_=function(C,F){_.rz(this.hostElement,"yt-report-form-update",[F.item.value]);C.stopPropagation()};
_.n.getItem_=function(C){return C.serviceItem?C.serviceItem:C.navigationItem?C.navigationItem:C.optionSelectableItemRenderer?C.optionSelectableItemRenderer:null};
_.n.computeText_=function(C){return(C=this.getItem_(C))?this.ytRendererBehavior.getSimpleString(C.text):null};
_.n.validate=function(){return this.itemSelected_!==-1};
_.n.computeAriaLabel_=function(C){var F=_.dd(C.text);(C=C.accessibility&&C.accessibility.accessibilityData&&C.accessibility.accessibilityData.label)&&(F+=". "+C);return F};
_.n.computeItemSelected_=function(C){return C};
_.n.preventSelection_=function(C){C.stopPropagation();this.tooltipTapped=!0};
_.n.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.n.updateItemSelectedFromBinding=function(C){this.itemSelected_=C.detail.value};
_.n.save=function(){var C;this.validate()&&(C=this.data)!=null&&C.items&&(C=this.data.items[this.itemSelected_],C!=null&&C.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(C.optionSelectableItemRenderer.submitEndpoint)||_.DQ(this.hostElement,[C.optionSelectableItemRenderer.submitEndpoint])))};
vt.prototype.onPaperRippleTransitionEnd_=vt.prototype.onPaperRippleTransitionEnd_;vt.prototype.dataChanged_=vt.prototype.dataChanged_;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],vt.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],vt.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],vt.prototype,"data",void 0);_.R([_.L({value:-1}),_.Y("design:type",Number)],vt.prototype,"itemSelected_",void 0);
_.R([_.L({computed:"computeItemSelected_(itemSelected_)"}),_.Y("design:type",Number)],vt.prototype,"value",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],vt.prototype,"restoreFocusOnClose",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],vt.prototype,"tooltipTapped",void 0);_.R([_.L({value:-1}),_.Y("design:type",Number)],vt.prototype,"preselectedSubreason",void 0);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vt.prototype,"dataChanged_",null);_.R([_.VG("transitionend"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vt.prototype,"onPaperRippleTransitionEnd_",null);_.R([_.Z5({is:"yt-options-renderer",disableElementRegistration:!0})],vt);
_.q(vt,"yt-options-renderer",function(){if(Mvd===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;wrd===void 0&&(wrd=document.createElement("template"));var V=wrd;G.call(F,V.content.cloneNode(!0),C.content.firstChild);Mvd=C}C=Mvd;return C},{mode:2});var S6U;var L5d;var B7h;var vTV;var ftV;var hur;var fN=function(){return _.B.apply(this,arguments)||this};
_.O(fN,_.B);fN.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
fN.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
fN.prototype.onTap=function(C){if(this.hostElement.classList.contains("selected")||_.rz(this.hostElement,"yt-share-panel-can-select-contact-action")[0])C&&C.detail&&(C.detail.x||C.detail.y)&&_.ot(this.hostElement).querySelector("#target").blur(),(C=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),C={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:C?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.rz(this.hostElement,"yt-share-panel-select-contact-action",[C])};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],fN.prototype,"ytRendererBehavior",void 0);_.R([_.L({observer:"onDataChanged"}),_.Y("design:type",Object)],fN.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.Y("design:type",String)],fN.prototype,"componentTitle",void 0);_.R([_.$z("#thumbnail"),_.Y("design:type",Object)],fN.prototype,"thumbnail",void 0);_.R([_.Z5({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],fN);
_.q(fN,"yt-enrolled-contact-renderer",function(){if(hur===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;ftV===void 0&&(ftV=document.createElement("template"));var V=ftV;G.call(F,V.content.cloneNode(!0),C.content.firstChild);hur=C}C=hur;return C},{mode:2});var cRh;var ARx;var hN=function(){return _.B.apply(this,arguments)||this};
_.O(hN,_.B);hN.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
hN.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
hN.prototype.onTap=function(C){if(this.hostElement.classList.contains("selected")||_.rz(this.hostElement,"yt-share-panel-can-select-contact-action")[0])C&&C.detail&&(C.detail.x||C.detail.y)&&_.ot(this.hostElement).querySelector("#target").blur(),(C=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),C={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:C?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.rz(this.hostElement,"yt-share-panel-select-contact-action",[C])};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],hN.prototype,"ytRendererBehavior",void 0);_.R([_.L({observer:"onDataChanged"}),_.Y("design:type",Object)],hN.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.Y("design:type",String)],hN.prototype,"componentTitle",void 0);_.R([_.$z("#thumbnail"),_.Y("design:type",Object)],hN.prototype,"thumbnail",void 0);_.R([_.Z5({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],hN);
_.q(hN,"yt-suggested-contact-renderer",function(){if(ARx===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;cRh===void 0&&(cRh=document.createElement("template"));var V=cRh;G.call(F,V.content.cloneNode(!0),C.content.firstChild);ARx=C}C=ARx;return C},{mode:2});var ct=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-share-panel-reset-action":"onReset"};return C};
_.O(ct,_.B);ct.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"}}}}}};
ct.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.rz(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
ct.prototype.onReset=function(){for(var C=_.ot(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),F=C.length-1;F>=0;F--)C[F].classList.toggle("selected")};
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],ct.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ct.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],ct.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L({observer:"onDataChanged"}),_.Y("design:type",Object)],ct.prototype,"data",void 0);
_.R([_.Z5({is:"yt-contact-section-renderer",disableElementRegistration:!0})],ct);
_.q(ct,"yt-contact-section-renderer",function(){if(vTV===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;B7h===void 0&&(B7h=document.createElement("template"));var V=B7h;G.call(F,V.content.cloneNode(!0),C.content.firstChild);vTV=C}C=vTV;return C},{mode:2});var AN=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return C};
_.O(AN,_.B);_.n=AN.prototype;_.n.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"}}}};
_.n.onYtRefreshFormCommand=function(C){var F;(C=_.Z((F=_.Z(C,_.eSr))==null?void 0:F.formRenderer,Odr))&&this.set("data",C)};
_.n.reset=function(){var C=_.ot(this.hostElement).querySelector("#fields").children;C=_.u(C);for(var F=C.next();!F.done;F=C.next())F=F.value,F.reset&&F.reset()};
_.n.getForm=function(){var C={},F=_.ot(this.hostElement).querySelector("#fields").children;F=_.u(F);for(var G=F.next();!G.done;G=F.next()){G=G.value;if(!G.validate())return null;C[G.data.key]=G.value}return C};
_.n.submitFormFields=function(){if(this.fields)for(var C=_.u(this.fields),F=C.next();!F.done;F=C.next())F=F.value,F.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?F.save():F.nodeName==="YT-OPTIONS-RENDERER"&&F.save()};
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],AN.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],AN.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],AN.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],AN.prototype,"data",void 0);_.R([_.bP("#fields > *"),_.Y("design:type",Array)],AN.prototype,"fields",void 0);
_.R([_.Z5({is:"yt-form-renderer",disableElementRegistration:!0})],AN);
_.q(AN,"yt-form-renderer",function(){if(L5d===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;S6U===void 0&&(S6U=document.createElement("template"));var V=S6U;G.call(F,V.content.cloneNode(!0),C.content.firstChild);L5d=C}C=L5d;return C},{mode:2});var eu_;var ea=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return C};
_.O(ea,_.B);ea.prototype.onCheckboxChange=function(C){this.data&&(C=(this.checked=_.ev(C).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.I8().resolve(_.WD).resolveCommand(C,{form:{element:this.hostElement}})};
ea.prototype.handleUpdateCheckboxCommand=function(C){(C=_.Z(C,_.jYu))&&this.data&&this.data.id===C.id&&(this.set("data.disabled",C.disabled),this.set("data.title",C.title))};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ea.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],ea.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],ea.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Boolean)],ea.prototype,"checked",void 0);_.R([_.e({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],ea);
_.q(ea,"ytd-settings-checkbox-renderer",function(){if(eu_!==void 0)return eu_;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return eu_=C},{mode:1});var dzl;var dr=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return C};
_.O(dr,_.B);dr.prototype.dataChanged=function(){var C=this,F;return _.I(function(G){if(G.nextAddress==1)return C.radio.removeAttribute("checked"),!C.data||!C.data.id||C.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.ktU()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(F=C.data&&C.data.id)?G.yield(Hds(C.data.id),4):G.jumpTo(3):(C.set("data.hidden",!0),G.jumpTo(0));G.nextAddress!=3&&(F=G.yieldResult);F&&_.rz(C.hostElement,"yt-select-settings-radio-option",[C.data.id]);_.S9(G)})};
dr.prototype.onButtonChanged=function(C){_.ev(C).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.I8().resolve(_.WD).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.rz(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
dr.prototype.onSelectOption=function(C){this.data&&this.data.id&&(this.data.id===C?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
dr.prototype.dataChanged=dr.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],dr.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],dr.prototype,"ytActionHandlerBehavior",void 0);_.R([_.$z("#radio"),_.Y("design:type",Object)],dr.prototype,"radio",void 0);_.R([_.L(),_.Y("design:type",Object)],dr.prototype,"data",void 0);
_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],dr.prototype,"dataChanged",null);_.R([_.e({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],dr);
_.q(dr,"ytd-settings-radio-option-renderer",function(){if(dzl!==void 0)return dzl;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return dzl=C},{mode:1});var xzW;var xu=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return C};
_.O(xu,_.B);
xu.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"}}}};
xu.prototype.handleUpdateTextCommand=function(C){(C=_.Z(C,_.FwG))&&this.data&&this.data.id===C.id&&this.set("data",C)};
xu.prototype.handleUpdateConnectedAppRendererCommand=function(C){if(_.Z(C,_.iqP)&&this.data){var F,G;if(C=(F=_.Z(C,_.iqP))==null?void 0:(G=F.newConnectedAppRenderer)==null?void 0:G.connectedAppRenderer)this.data=C}};
xu.prototype.computeConnectedAppStyle=function(C){return C.style?C.style.toLowerCase().replace(/_/g,"-"):""};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],xu.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],xu.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],xu.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],xu.prototype,"data",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.Y("design:type",String)],xu.prototype,"connectedAppStyle",void 0);_.R([_.e({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],xu);
_.q(xu,"ytd-connected-app-renderer",function(){if(xzW!==void 0)return xzW;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return xzW=C},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.qd("iuT5Oc");

_.Pk();
}catch(e){_._DumpException(e)}
try{
_.qd("L3n37");
var r4l=function(C){return C.watch.isLearningJourneyActive},KD0=_.m2(115994),DWB=_.m2(115993),pYh=function(C,F,G){var V=this;
var J=G.dragDownAction;this.layer=0;this.JSC$23411_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return V.dragDownAction()}}}};
this.JSC$23411_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return V.dragDownAction()}}}};
this.fullscreen=!1;var b=_.ia();_.Xu(b,KD0,this.layer);_.Xu(b,DWB,this.layer);this.dragDownAction=function(){J();_.LZ(b,{visualElement:V.fullscreen?KD0:DWB})};
this.gesture=new _.xg(C,F,this.getConfig(!1),"pandown");this.attach()};
pYh.prototype.attach=function(){this.gesture.attach()};
pYh.prototype.detach=function(){this.gesture.detach()};
pYh.prototype.update=function(C){this.fullscreen=C;var F=this.gesture;C=this.getConfig(C);F.config=C};
pYh.prototype.getConfig=function(C){return C?this.JSC$23411_watchFullScreenConfig:this.JSC$23411_watchConfig};var mWF=function(C){_.Rb.call(this);var F=this;this.rootElement=C;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return F.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(G){F.initOrDisposeActiveModules(G)}));
this.onAttached()};
_.O(mWF,_.Rb);_.n=mWF.prototype;_.n.getRoot=function(){return this.rootElement};
_.n.getElement=function(C){return this.rootElement.getElement(C)};
_.n.setPlayerResponse=function(C){this.playerResponse=C;this.publish("PLAYER_RESPONSE_UPDATED",C)};
_.n.getPlayerResponse=function(){return this.playerResponse};
_.n.setWatchNextResponse=function(C){this.watchNextResponse===C?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=C,this.publish("WATCH_NEXT_RESPONSE_UPDATED",C))};
_.n.getWatchNextResponse=function(){return this.watchNextResponse};
_.n.registerActionHandler=function(C,F){var G=this;if(_.y("web_watch_controller_reg_multiple_handlers_killswitch")){var V={};_.GA(_.FV.getInstance(),(V[C]=F,V),this.getRoot())}else this.actionHandlers.has(C)||(this.actionHandlers.set(C,[]),V={},_.GA(_.FV.getInstance(),(V[C]=function(){var J=_.Rn.apply(0,arguments);return(G.actionHandlers.get(C)||[]).map(function(b){return b.apply(null,_.da(J))})},V),this.getRoot())),this.actionHandlers.get(C).push(F)};
_.n.unregisterActionHandler=function(C){if(_.y("web_watch_controller_reg_multiple_handlers_killswitch")){var F={};_.V3(_.FV.getInstance(),(F[C]=!0,F),this.getRoot())}else(F=this.actionHandlers.get(C))?(F.pop(),F.length===0&&(F={},_.V3(_.FV.getInstance(),(F[C]=!0,F),this.getRoot()),this.actionHandlers.delete(C))):_.Yw(new _.Ay("Attempted to unregister an action handler which is not registered.",C))};
_.n.addPageDisposeJob=function(C){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.LWi(this.rootElement.pageDisposeJobs,C)};
_.n.removePageDisposeJob=function(C){this.rootElement.pageDisposeJobs&&_.qf(this.rootElement.pageDisposeJobs,C)};
_.n.dispatchEvent=function(C,F){_.oo(this.rootElement,C,F)};
_.n.provideRenderingData=function(C,F){this.rootElement.provideRenderingData(C,F)};
_.n.scrollWatchTo=function(C,F){var G;(G=this.watchScrollManager)==null||G.scrollWatchTo(C,F)};
_.n.focusOnPlayer=function(){var C=this.getElement("PLAYER");_.zH(C,function(){if(C&&C.firstElementChild){var F=C.querySelector(".html5-video-player");F&&(_.nR(_.I8().resolve(_.zb)),F.focus())}else _.Yw(Error("ap"))})};
var CE_=function(C){var F=!!C.rootElement.theater,G=!!C.rootElement.fullscreen,V;(V=C.watchCinematicManager)==null||_.w9F(V,G,F)};
_.n=mWF.prototype;_.n.subscribeToActiveChanged=function(C,F){F=F===void 0?!0:F;var G=_.hK(_.s3(),r4l,function(V){C(V)});
F&&C(r4l(_.s3().getState()));return G};
_.n.isActive=function(){return r4l(_.s3().getState())};
_.n.onAttached=function(){var C=_.y("external_fullscreen");_.y("use_unified_flag_accessor")&&(C=_.I8().resolve(_.QDd).retriever.getFlag(_.asu));(C||_.oD("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.n.initPersistentModules=function(){if(_.y("kevlar_watch_flexy_theater_manager")){var C=new _.Cm_(this);_.Nd(this,C)}C=new _.q50(this);_.Nd(this,C);C=new _.By(this);_.Nd(this,C);C=new _.eQF(this);_.Nd(this,C);C=new _.Ab(this);_.Nd(this,C);C=new _.vy(this);_.Nd(this,C);_.y("kevlar_watch_flexy_playlist_manager")&&(C=new _.Hln(this),_.Nd(this,C))};
_.n.initOrDisposeActiveModules=function(C){C?(this.watchScrollManager=new _.ee(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.GU0(this)),this.activeModules.push(new _.F9S(this)),this.activeModules.push(new _.XA_(this)),this.activeModules.push(new _.KE6(this)),_.y("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.$kB(this)),this.activeModules.push(new _.nBn(this)),_.y("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.Mjh(this)),
_.y("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.tTL(this)),_.y("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.lQ6(this),this.activeModules.push(this.watchCinematicManager),CE_(this)),_.y("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.I8F(this)),_.y("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.xUF(this)),C=_.y("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.y("kevlar_watch_flexy_comments_manager")&&
!C&&this.activeModules.push(new _.v6Y(this)),_.y("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Uk9(this)),this.activeModules.push(new _.bXT(this)),this.activeModules.push(new _.ilz(this)),_.y("web_enable_timely_actions")&&this.activeModules.push(new _.Qo_(this)),_.y("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.hi9(this)),_.y("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.O_9(this)),_.y("web_fullscreen_components")&&
this.activeModules.push(new _.zin(this)),_.y("web_player_rtr_ctrls")&&this.activeModules.push(new _.AuY(this))):(_.zI(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.n.disposeInternal=function(){_.Rb.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.I6.Object.defineProperties(mWF.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var jt_={},F5z=["learning-journey-engagement-panel","PAlearning_chat"];
jt_.YtdLearningJourneyWatchBehavior=[_.D.YtRendererBehavior,_.Fi.YtPlayerListenerBehavior,_.nJ.YtRendererstamperBehavior,_.Z7.YtActionHandlerBehavior,_.ij.YtPageBehavior,_.yR.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 _.oD("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.y("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 _.oD("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 _.y("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.y("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 _.a8("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.a8("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,
reflectToAttribute:!0,value:function(){return _.y("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("web_watch_rounded_player_large")||_.y("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 _.y("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.y("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("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 _.y("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);updateChatLocation(liveChatPresentAndExpanded);watchNextSecondaryResultsChanged(data)".split(";"),monitorScroll:!0,configureRendererStamper:function(){return{info:{id:"info-contents",
mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",
properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},
tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},
clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},
initialRenderPriority:3,waitForSignal:_.UF(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.UF(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0,learningChatEngagementPanel:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var C=this;this.watchController=void 0;this.pageDisposeJobs=[function(){C.showMetadataPlaceholder_()},
function(){_.y("web_watch_dont_clear_comments")||C.clearComments_()},
function(){C.clearPlayerAds_()},
function(){C.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.y("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.y("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=new _.XY6(function(){return _.PB(C)},
this.hostElement);
this.pageDisposeJobs.push(function(){C.youThereManager_.reset()});
_.y("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){C.resetFullerscreenEduButtonForNewPlayback_()}));
_.y("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.EX;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;_.y("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.y("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));_.y("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Gp(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(C){C&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:C}),C.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(C){_.y("kevlar_watch_flexy_theater_manager")&&(this.theater=C,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.y("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(C){!_.y("kevlar_watch_while_v2")&&!_.y("web_watch_pip")||C||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(C){this.active!==void 0&&(this.fullscreen=C,_.y("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(C){this.active!==void 0&&(_.oo(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.y("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(C>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(C){this.initCsi_();this.updatePageData_(C)},
updatePageData_:function(C){var F=this;if(C)if(this.data===C){this.onPageLoadWithSameData_();var G;(G=this.watchController)==null||G.setWatchNextResponse(this.data)}else this.data=C;this.playlist&&_.UZ({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.NV("nw");this.loading=!1;_.c8(_.gT,function(){F.initDclkstatus_();var V,J=((V=F.player)==null?void 0:V.getVideoData().cpn)||"";_.zOL(function(b,z){_.rRl(b,z,J)})})},
onPageLoadWithSameData_:function(){_.y("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 C=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!C);this.set("loadingData.playlistLoading",C&&C!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),C=this.watchNextSkeletonEl_.firstElementChild;C;)C.classList.remove("hidden"),C=C.nextElementSibling;var F,G,V;C=(F=this.loadingData)==null?void 0:(G=F.endpoint)==null?void 0:(V=G.watchEndpoint)==null?void 0:V.videoId;var J;C&&(J="https://i.ytimg.com/vi/"+C+"/frame0.jpg");_.ot(this.hostElement).querySelector("#player").style.backgroundImage=J?"url("+J+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var C=_.ot(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&C&&(C.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var F,G;(G=(F=this.watchMetadata).updateSentimentBarWidth)==
null||G.call(F);var V,J;(J=(V=this.watchMetadata).resize)==null||J.call(V)}_.ot(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(C){var F=_.ot(this.hostElement).querySelector(C);F?_.Y6(F,!1):_.Yw(new _.Ay("Overscroll monitor not found for component: ",C))},
removeSplitScrollMouseTrap:function(C){var F=_.ot(this.hostElement).querySelector(C);F?_.T_(F):_.Yw(new _.Ay("Disposal component for  overscroll monitoring not found: ",C))},
onLoadingChanged_:function(C){C?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(C){var F=this;C?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.gT.addLowPriorityJob(function(){F.onWindowResized_(_.bE(!0))})},
updateTheaterModeState_:function(C){if(!_.y("kevlar_watch_flexy_theater_manager")){C=C||this.fullWindowMode_;if(this.theater!==void 0||C)this.theater=C;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();C&&_.MEL()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var C=this.theater;_.y("external_fullscreen")&&this.fullscreen&&(C=!0);C=C?_.ot(this.hostElement).querySelector("#player-full-bleed-container"):_.ot(this.hostElement).querySelector("#player-container-inner");var F=this.getPlayerContainer(),G=_.y("kevlar_watch_while_v2")||_.y("web_watch_pip");F.parentElement!==C&&(G&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.PB(this).appendTo(C,F),C.appendChild(_.ot(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var C=this;return _.I(function(F){if(F.nextAddress==1)return F.yield(_.I8().resolve(_.Od).deactivate(),2);C.updatePlayerLocation();_.S9(F)})},
updateCinematicsLocation:function(){var C=this.getElement("CINEMATICS");if(C){var F=this.getCinematicsLocationContainer();C.parentElement!==F&&F.appendChild(C);var G;(G=this.watchController)==null||CE_(G)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.ot(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.ot(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(C,F){var G=document.documentElement.hasAttribute("dark"),V=G&&_.y("web_cinematic_theater_mode"),J=G&&_.y("web_cinematic_fullscreen");G=!G&&this.cinematicLightTheme;return C&&V||F&&J||(F||C)&&G},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var C;(C=this.watchController)==null||C.setWatchNextResponse(this.data);_.y("kevlar_watch_flexy_comments_manager")||this.initComments_();_.y("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.I8().resolve(_.Fx).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.y("web_watch_start_chat_in_theater_mode")){var F,
G,V;if((F=this.data)==null?0:(G=F.contents)==null?0:(V=G.twoColumnWatchNextResults)==null?0:V.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var J,b;((J=this.data)==null?0:(b=J.contents)==null?0:b.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(C){var F;(F=this.watchController)==null||F.setPlayerResponse(this.playerData);C&&C.playabilityStatus&&(F=this.isVideoPlayable_(C.playabilityStatus,this.getPlayerOverlays_(this.data)),C=this.isLiveStreamOffline_(C.playabilityStatus),F&&!C||_.zH(this,function(){_.NV("pbu")}));
this.setPlayerAds_();_.KX(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(C){_.s3().dispatch(_.rh({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));C?this.activate_():this.deactivate_()},
attached:function(){var C=this;this.watchController=new mWF(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.y("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var F=_.PB(this);_.y("kevlar_disable_prepare_player")||F.preparePlayer();_.y("kevlar_watch_flexy_playlist_manager")||_.I8().resolve(_.Fx).setPlayer(F);this.updatePageMediaQueries();F={"--ytd-watch-flexy-scrollbar-width":_.MF()+
"px"};!_.a8("kv_pl_mx_sz_ks")&&_.a8("kevlar_watch_max_player_width")&&(F["--ytd-watch-flexy-max-player-width-wide-screen"]=_.kNF+"px");_.a8("kevlar_watch_flexy_metadata_height")&&(F["--ytd-watch-flexy-space-below-player"]=_.UeF+"px");this.safeUpdateStyles(F);_.y("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new pYh(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return C.onPlayerTouchPanDown_()}}));
_.y("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.ot(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var C=_.MF(),F=_.eF+C,G=F;this.fixedPanels&&(F+=_.a99);var V=657+C;C=1327+C;_.ot(this.hostElement).querySelector("#two-column-query").query="(min-width: "+F+"px)";_.ot(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(V+"px), (min-height: 630px) and (min-width: ")+(F+"px) and (max-width: ")+(C+"px)");_.ot(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(C+"px)");
_.ot(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+G+"px)"},
calculateCurrentPlayerSize_:function(){var C=_.ot(this.hostElement).querySelector("#miniplayer-bar").firstChild;return C&&C.active||this.theater||_.y("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.Ml(NaN,NaN):_.tNF(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.tNF(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.uz(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var C=this;this.onWindowResized_(_.bE());_.y("browse_skeleton_removal_on_watch_killswitch")||_.oD("IS_SHELL_LOAD")&&_.WY6();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var F=_.PB(this);F.addEventListener("yt-player-updated",_.Gp(this,this.onPlayerUpdated_));F.getPlayerPromise().then(function(G){C.playerApiReady_(G)});
_.y("kevlar_watch_flexy_playlist_manager")||(F=_.I8().resolve(_.Fx),_.y("kevlar_watch_observe_playlist_navigations_killswitch")&&F.addEventListener("yt-navigate",_.Gp(this,this.onYtNavigate_)),F.setPlaylistComponent(_.ot(this.hostElement).querySelector("#playlist")),F.addEventListener("yt-playlist-data-updated",_.Gp(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.gT.addLowPriorityJob(function(){_.oo(C.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.PB(this).removeEventListener("yt-player-updated",_.Gp(this,this.onPlayerUpdated_));if(!_.y("kevlar_watch_flexy_playlist_manager")){var C=_.I8().resolve(_.Fx);_.y("kevlar_watch_observe_playlist_navigations_killswitch")&&C.removeEventListener("yt-navigate",_.Gp(this,this.onYtNavigate_));C.cancelVideoSkip();C.removeEventListener("yt-playlist-data-updated",_.Gp(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.y("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.oo(this.hostElement,"yt-autonav-pause-player",!1);C=_.gz();_.y("kevlar_exit_fullscreen_leaving_watch")&&C&&_.Ro(C)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(C){this.player&&this.player.updateVideoData({rvs:C.rvs})},
getPageContents:function(C){return C&&C.contents&&C.contents.twoColumnWatchNextResults&&C.contents.twoColumnWatchNextResults.results&&C.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(C){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",C)},
onRetrieveLocation_:function(C,F){F.hasComments?F.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):F.locationRetrieved("/related_ajax",void 0);C.stopPropagation()},
onSubscriptionChanged_:function(C,F){this.player&&(F?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.N9n("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.ot(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.ot(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(C){this.player=C;this.setPlayerState(C.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.y("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.y("kevlar_unified_player")||_.y("kevlar_player_new_bootstrap_adoption"))&&_.Mx()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(C,F){F=F===void 0?!0:F;_.gz()&&_.y("external_fullscreen")&&_.Ro(document.documentElement);this.theaterRequested_=C;F&&_.vD("wide",C?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.y("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.rz(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.oo(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(C){_.Tf(C,typeof this.player),this.player&&_.Tf(C,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var C;((C=this.player)==null?0:C.isFullscreen())?this.player.toggleFullscreen():_.rz(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(C,F){return this.loading?F:!!Object.keys(C).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(C){if(C){C=_.u(C);for(var F=C.next();!F.done;F=C.next())F=F.value,F.youThereRenderer&&_.S30(this.youThereManager_,F.youThereRenderer)}},
setPlaylistData_:function(C){return C||{}},
userEngagementConfigDataChanged_:function(C){if(C)if(C.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var F=this.youThereManager_;_.I1()<C.lowEngagementThresholdMs||_.fbL(F,!0)}else C.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.rz(this.hostElement,"yt-autonav-pause-user-engagement",[C])},
isPlayerUnavailable_:function(C,F,G){return!!C&&!this.isVideoPlayable_(C,G)&&!F},
getPlayerOverlays_:function(C){return(C==null?void 0:C.playerOverlays)||null},
isVideoPlayable_:function(C,F){if(!C)return!1;var G=C.status==="OK"||C.status==="LIVE_STREAM_OFFLINE",V=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",C)||this.get("errorScreen.ypcTrailerRenderer",C);C=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",C);var J;F=F==null?void 0:(J=F.playerOverlayRenderer)==null?void 0:J.gatedActionsOverlayRenderer;return!!G||!!V||!!C||!!F},
hasWatchNextResponseErrorRenderer:function(C){var F=this.getPageContents(C),G,V,J,b,z;return!(C==null?0:(G=C.contents)==null?0:(V=G.twoColumnWatchNextResults)==null?0:V.secondaryResults)&&!!((J=F[0])==null?0:(b=J.itemSectionRenderer)==null?0:(z=b.contents[0])==null?0:z.backgroundPromoRenderer)},
isLiveStreamOffline_:function(C){return C?C.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(C,F,G){var V=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",F),J=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];J=_.y("web_no_skip_video_on_verification_checks")?(C==null?void 0:C.status)&&J.includes(C.status):C&&C.status==="AGE_CHECK_REQUIRED";var b=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",C);b==void 0&&(b=!0);!G||this.isVideoPlayable_(C,this.getPlayerOverlays_(F))||
V||J||!b||_.I8().resolve(_.Fx).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.kc6()},
onPlayerFeedbackStartRequest_:function(C){_.rz(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:C}])},
onPlayerFeedbackArticleRequest_:function(C){_.rz(this.hostElement,"yt-help-dialog-requested",[C])},
onPlayerYpcContentRequest_:function(){var C,F,G,V,J,b,z,Q,E=((C=this.data)==null?NaN:(F=C.contents)==null?NaN:(G=F.twoColumnWatchNextResults)==null?NaN:(V=G.secondaryResults)==null?NaN:(J=V.secondaryResults)==null?NaN:(b=J.offerModule)==null?NaN:(z=b.tvfilmOfferModuleRenderer)==null?NaN:(Q=z.actionButtons)==null?NaN:Q.length)-1;C=[".offerButton.buttonRenderer.",".actionButtons."+(E>=0?E:0)+".buttonRenderer."];F=_.u(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(G=F.next();!G.done;G=F.next())for(G=G.value,V=_.u(C),J=V.next();!J.done;J=V.next())if(J="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+G+J.value,J=this.get(J+"navigationEndpoint",this.data)||this.get(J+"serviceEndpoint",this.data)||this.get(J+"command",this.data)){_.jR(J,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(C){_.oo(this.hostElement,"yt-autonav-pause-player",C)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(C){C()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(C){switch(C){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(C){switch(C){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.oo(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(C)},
setPlayerState:function(C){_.s3().dispatch(_.YUr(C))},
onPlayerSubscribe_:function(C){_.rz(this.hostElement,"yt-player-subscribe",[C])},
onPlayerUnsubscribe_:function(C){_.rz(this.hostElement,"yt-player-unsubscribe",[C])},
onPlayerAdYtShowToast_:function(C){_.rz(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:C.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(C){if(C)return C},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(C){return!_.y("web_watch_move_summary_to_sd")&&!!C},
computeWatchMetadataRefresh:function(){return _.y("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var C,F,G,V;this.watchNextSecondaryResults=(C=this.data)==null?void 0:(F=C.contents)==null?void 0:(G=F.twoColumnWatchNextResults)==null?void 0:(V=G.secondaryResults)==null?void 0:V.secondaryResults}},
setRichGridRendererData:function(C){this.richGridRendererData=C},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var C,F=(C=this.data)==null?void 0:C.engagementPanels;if(F==null?0:F.length){C=null;F=_.u(F);for(var G=F.next();!G.done;G=F.next()){G=G.value;var V=void 0;if(((V=G.engagementPanelSectionListRenderer)==null?void 0:V.targetId)==="engagement-panel-structured-description"){C=G;break}}var J,b,z;C=(J=C)==null?void 0:(b=J.engagementPanelSectionListRenderer)==null?void 0:(z=b.content)==null?void 0:z.structuredDescriptionContentRenderer;if(C==null?0:C.items){J=
[];b=_.u(C.items);for(z=b.next();!z.done;z=b.next()){z=z.value;if(!_.y("sd_horizontal_list_show_nav_killswitch")){var Q=V=G=F=C=void 0,E=void 0,t=(C=z.horizontalCardListRenderer)==null?void 0:(F=C.header)==null?void 0:(G=F.richListHeaderRenderer)==null?void 0:(V=G.navigationButton)==null?void 0:(Q=V.buttonRenderer)==null?void 0:(E=Q.command)==null?void 0:E.commandExecutorCommand;t&&t.commands&&(t.commands=t.commands.filter(function(k){return!_.Z(k,_.vn_)}))}z.expandableVideoDescriptionBodyRenderer||
z.videoDescriptionHeaderRenderer||J.push(z)}return{items:J}}}},
constructWarning_:function(C){return{text:_.eN(C),type:"WARNING"}},
isPlaShelfEnabled_:function(C){if((this.get("adPlacements",C)||[]).length)return!0;C=this.get("playerAds",C)||[];return!(!C.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",C[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var C=this;_.oo(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var F=this.getScrollTop()>0;this.gestures_&&(F?this.gestures_.detach():this.gestures_.attach());F!==this.showFullerscreenEdu_&&_.y("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=F,_.PB(this).getPlayerPromise().then(function(G){G.updateFullerscreenEduButtonVisibility(C.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.oo(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var C=this;this.commentsReady=!1;_.gT.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.c8(_.gT,function(){C.setComments_()},1E3)},
setComments_:function(){if(!_.y("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.NV("cmi");_.gT.cancelJob(this.setCommentsJobId_);var C=this.getPageContents(this.data);if(C&&C.length){C=_.u(C);for(var F=C.next();!F.done;F=C.next())if(F=F.value,this.get("itemSectionRenderer.sectionIdentifier",F)==="comment-item-section"){this.comments=F.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.oo(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.y("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.y("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.NV("cmc")},
doRemoveComments_:function(){this.comments={};_.y("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.gT.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.gT.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(C,F){var G=_.Z(F.endpoint,_.eT);G&&(!(F=this.get("data.currentVideoEndpoint.watchEndpoint"))||G.videoId!==F.videoId||G.playlistId&&G.playlistId!==F.playlistId||G.index!==void 0&&G.index!==F.index||typeof G.startTimeSeconds!=="number"||(C.stopPropagation(),this.setScrollTop(0),_.PB(this).getPlayerPromise().then(function(V){var J=G.startTimeSeconds;V.seekTo(J);V.wakeUpControls();J<V.getDuration()&&V.playVideo()})))},
updatePlayerStartTime_:function(){var C=_.FDB();"t"in C&&(C=_.abY(C.t),this.player.seekTo(C,!0))},
updateTitleFromWatchNext:function(C){C=this.getPageContents(C);var F,G;(C=_.dd(C==null?void 0:(F=C[0])==null?void 0:(G=F.videoPrimaryInfoRenderer)==null?void 0:G.title))&&_.oo(this.hostElement,"yt-update-title",C)},
updateTitle_:function(C){C=this.get("videoDetails.title",C)||"";_.oo(this.hostElement,"yt-update-title",C)},
syncWithRemoteVideo_:function(C,F,G){if(this.active&&this.player){var V=this.player.getVideoData();if(V.video_id===G&&(G=V.list,_.y("polymer_enable_mdx_queue")&&G&&G.startsWith("RQ")&&(G=void 0),V.video_id!==C||G!=F)){var J;_.y("kevlar_player_watch_endpoint_navigation")?J=_.dgB(_.QAS(C,F)):J=this.buildWatchEndpoint_(C,F);_.oo(this.hostElement,"yt-navigate",{endpoint:J,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(C,F,G){return _.RQ(C,F,G)},
initDclkstatus_:function(){_.WDn()},
attachWatchPageSkeleton_:function(){var C=document.querySelector("#watch-page-skeleton");if(C){var F=C.querySelector("#primary-info"),G=C.querySelector("#secondary-info"),V=C.querySelector("#related");F&&_.ot(this.hostElement).querySelector("#info-skeleton").appendChild(F);G&&_.ot(this.hostElement).querySelector("#meta-skeleton").appendChild(G);V&&(_.ot(this.hostElement).querySelector("#related-skeleton").appendChild(V),this.watchNextSkeletonEl_=V);_.So(C)}},
handlePlayerUpdated_:function(){_.PB(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(C,F){if(this.watchNextSkeletonEl_&&typeof F!=="undefined"){var G=this.watchNextSkeletonEl_.children,V=C&&C.indexSplices.length?C.indexSplices[0].index:0;C=Math.min(this.watchNextShownItems.length,G.length);F||(V=0,C=G.length);for(F=V;F<C;F++)G[F].classList.add("hidden")}},
onPlayerFullscreenChange_:function(C){_.y("external_fullscreen")||_.rz(this.hostElement,"yt-player-fullscreen",[C.fullscreen])},
onFullscreenChange_:function(C){this.fullscreen=C;this.gestures_&&this.gestures_.update(this.fullscreen);var F=_.PB(this);F.getPlayerPromise().then(function(G){G.setFauxFullscreen(!!_.gz())});
this.updateFullBleedElementLocations();C&&(F.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(C,F){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!F},
computeIsDonationShelfCollapsed_:function(C){return C},
computeShouldShowMerchShelf:function(C,F){return F&&!!C},
computeResponseHasComments:function(C){var F,G,V,J,b;return!!(C==null?0:(F=C.contents)==null?0:(G=F.twoColumnWatchNextResults)==null?0:(V=G.results)==null?0:(J=V.results)==null?0:(b=J.contents)==null?0:b.some(function(z){var Q;return(z==null?void 0:(Q=z.itemSectionRenderer)==null?void 0:Q.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(C,F){this.responseHasComments=this.computeResponseHasComments(this.data);return!!C&&!!Object.keys(C).length&&!F},
identity:_.As,onWindowResized_:function(C){this.windowSize_=C;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.y("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(C){var F=this;C&&C.type!=="dataloaded"&&C.type!=="dataupdated"||_.PB(this).getPlayerPromise().then(function(G){var V=G.getPlayerState();V!==5&&V!==0&&(G=1/G.getVideoAspectRatio(),F.videoHeightToWidthRatio_!==G&&(F.videoHeightToWidthRatio_=G))})},
schedulePlayerSizeUpdate_:function(C){var F=this,G=_.y("kevlar_watch_while_v2")||_.y("web_watch_pip"),V=function(){if(F.watchMetadata){var J,b;(b=(J=F.watchMetadata).resize)==null||b.call(J)}_.PB(F).getPlayerPromise().then(function(z){if(_.y("kevlar_set_internal_player_size")){if(!G||!F.isMiniplayerActive()){var Q=F.calculateCurrentPlayerSize_();z.setInternalSize(Q.width,Q.height)}}else z.setSize(NaN,NaN);_.y("kevlar_watch_while")&&F.updateWatchWhileScrollThreshold_()})};
C?V():_.FD(_.gT,V)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(C){this.set("data.survey",C.detail)},
onYtShowSurveyCommand_:function(C){this.set("data.survey",_.Z(C,_.O70).survey)},
onDownloadedVideoDeleted:function(C){var F=this,G,V;return _.I(function(J){if(J.nextAddress==1){if(!F.active||(G=F.playerData)==null||!G.offlineState||F.videoId!==C)return J.return();(V=F.player)==null||V.stopVideo();_.v0().navigatingAwayFromWatchDeletedVideo=!0;_.jR(_.gmi,F.hostElement);return J.yield(_.v0().navigationFinishPromise,2)}_.v0().navigatingAwayFromWatchDeletedVideo=!1;_.S9(J)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var C;this.theater?C=_.lV(.5625*this.windowSize_.width,480,this.windowSize_.height-185):C=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==C&&(this.watchWhileScrollThreshold_=C,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var C=_.ot(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&C){var F=this.windowSize_.height>=624,G=this.active?this.getScrollTop():0;!C.active&&F&&G>=this.watchWhileScrollThreshold_?(C.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):C.active&&(!F||G<this.watchWhileScrollThreshold_&&!_.gz())&&(C.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(C,F){if(C!==!0||F!==void 0){C=!_.y("live_chat_over_engagement_panels");F=_.ot(this.hostElement).querySelector("#chat-container");var G=_.ot(this.hostElement).querySelector("#plj-sidebar"),V=_.ot(this.hostElement).querySelector("#panels"),J=_.ot(this.hostElement).querySelector("#plj-panels"),b=_.ot(this.hostElement).querySelector("#plj-playlist"),z=_.ot(this.hostElement).querySelector("#alerts"),Q=_.ot(this.hostElement).querySelector("#playlist"),E=_.ot(this.hostElement).querySelector("#related"),
t=_.ot(this.hostElement).querySelector("#donation-shelf"),k=_.ot(this.hostElement).querySelector("#comments");this.isTwoColumns_?(z=_.ot(this.hostElement).querySelector("#secondary-inner"),z.appendChild(G),G.appendChild(b),b.appendChild(Q),G.appendChild(J),C&&z.appendChild(V),_.y("web_watch_theater_chat")||z.appendChild(F),C||z.appendChild(V),z.appendChild(t),z.appendChild(E)):(C&&_.ME(V,z),_.ME(Q,z),_.y("web_watch_theater_chat")||_.ME(F,z),C||_.ME(V,z),_.ME(t,z),k&&(J&&_.ME(J,k),_.ME(E,k)));_.y("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.y("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.y("web_watch_theater_chat")){var C=_.ot(this.hostElement).querySelector("#chat-container"),F=this.theater&&!this.fullscreen||_.y("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&F?_.y("web_watch_theater_chat_beside_player")?(F=_.ot(this.hostElement).querySelector("#panels-full-bleed-container"),(C==null?void 0:C.parentElement)!==F&&F.append(C),this.panelsBesidePlayer=!0):_.y("web_watch_theater_fixed_chat")&&
(F=_.ot(this.hostElement).querySelector("#columns"),(C==null?void 0:C.parentElement)!==F&&F.append(C),this.fixedPanels=!0):(_.y("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.y("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),F=_.ot(this.hostElement).querySelector("#playlist"),C&&F?_.SI(C,F):_.Yw(new _.Ay("Missing element when updating chat location",{"chatContainer defined":!!C,"playlist defined":!!F})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(C,F){return _.y("sw_metadata_vis_toggle_ks")?!0:!!C||!!F},
computeForceDarkPanelTheme:function(C){return _.y("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&C:!1},
safeUpdateStyles:function(C){try{_.jr(this.hostElement,C)}catch(F){_.Yw(F)}},
videoHeightToWidthRatioChanged_:function(C,F){F&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.y("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(C){this.videoHeightToWidthRatio_=1/C},
computeIsVerticalVideo_:function(C){return C>=1},
computeIsFourThreeToSixteenNineVideo_:function(C){return C<=.7501&&C>=.5624},
computeIsExtraWideVideo_:function(C){return C<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.PB(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.PB(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.hOT(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(C){var F=_.Wr(C)||0;_.E6(C,F+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var C=_.Wr("yt-fullerscreen-edu-button-click-count")||0,F=_.Wr("yt-fullerscreen-edu-button-shown-count")||0,G=_.a8("external_fullscreen_button_shown_threshold"),V=C>=_.a8("external_fullscreen_button_click_threshold")||F>=G;_.PB(this).getPlayerPromise().then(function(J){J.updateFullerscreenEduButtonSubtleModeState(V)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(C,F){return F},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.I8().resolve(_.Fx).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var C=this;this.panelMaxHeightUpdateJob_&&_.gT.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.gT.addLowPriorityJob(function(){C.panelMaxHeightUpdateJob_=0;var F;!C.isTwoColumns_||C.theater||C.fullscreen?F=460:F=C.calculateNormalPlayerSize_().height;var G=F+"px";_.y("live_chat_taller_height")&&!C.theater&&(G="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.y("live_chat_medium_height")&&
!C.theater&&(G="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.y("live_chat_scaled_height")&&!C.theater&&(G="calc(100vh - var(--ytd-toolbar-height) - 238px)");C.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":F+"px","--ytd-watch-flexy-chat-max-height":G,"--ytd-watch-flexy-structured-description-max-height":F+"px","--ytd-watch-flexy-comments-panel-max-height":F+"px","--ytd-comments-engagement-panel-content-height":F+"px"})})},
onYtShowEngagementPanelScrimAction_:function(C){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",C)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.pX(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(C){var F=_.ot(this.hostElement).querySelector("#engagement-panel-scrim");C?F.addEventListener("tap",_.Gp(this,this.onEngagementPanelScrimClick_)):F.removeEventListener("tap",_.Gp(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(C){if(this.hostElement.contains(C)&&!this.scrollToAnimation_.isAnimating()){var F=C.offsetTop-24;C=C.offsetTop+C.offsetHeight+24;var G=this.getPageScrollingElement(),V=this.getScrollTop(),J=V+G.clientHeight-56;if(F<V+56)F-=56;else if(C>J)F=C-G.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,F),500)}},
onYtSignalActionScrollToComments:function(){var C=this.hostElement.querySelector("#comments");if(C&&!this.scrollToAnimation_.isAnimating()){C=C.offsetTop-56-24;if(_.y("kevlar_comment_teaser_scroll_to_midpoint")&&(C-=_.LA().height/3,C<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,C),500)}},
onYtEngagementPanelVisibleChanged:function(C,F,G){this.active&&this.trackEngagementPanelVisibility&&!_.Z7S.includes(G)&&(F==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(G),F!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&F!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(G),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(C){return C?"":"watch-active-metadata"},
computeNewMetadataClass:function(C){return C?"watch-active-metadata":""},
computeFullBleedPlayer:function(C,F){return C||F},
computeDefaultLayout:function(C){return!C},
computeDefaultTwoColumnLayout:function(C,F){return!C&&F},
computeWatchWhilePanelsActive:function(C,F){return C||F},
computeNoBorderOnChat:function(C){return _.y("web_watch_theater_chat_no_border")&&C},
computeLiveChatPresentAndExpanded:function(C,F){return C&&!F},
computePanelExpanded:function(C,F,G){return C||F||G},
onChangeMarkersVisibility:function(C){_.PB(this).getPlayerPromise().then(function(F){var G;(G=F.changeMarkerVisibility)==null||G.call(F,_.Z(C,_.gU).isVisible||!1,_.Z(C,_.gU).entityKeys||[],_.Z(C,_.gU).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(C){this.liveChatCollapsed=C.detail;_.s3().dispatch(_.y4l(C.detail))},
provideRenderingData:function(C,F){switch(C){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=F;break;case "PRIMARY_INFO":_.y("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=F);this.videoPrimaryInfoRendererValue=F==null?void 0:F.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.y("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=F);this.videoSecondaryInfoRendererValue=F==null?void 0:F.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
F;break;case "CLARIFICATION":this.clarifyBoxValue=F;break;case "LIVE_CHAT":this.conversationBar=F;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=F;break;case "PLAYLIST":this.externalPlaylistData_=F!=null?F:{};break;case "MERCH_SHELF":this.merchShelfValue=F==null?void 0:F.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=F;break;case "OFFER_MODULE":this.offerModule=F;break;case "LIMITED_STATE":this.limitedStateValue=F;break;case "DONATION_SHELF":this.donation=F;break;
case "ALERTS":this.alertsValue=F;break;case "COMMENTS":this.comments=F;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=F;break;case "ENGAGEMENT_PANELS":this.engagementPanels=F;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=F;break;case "RICH_GRID_RENDERER":this.richGridRendererData=F;break;case "EXPANDABLE_METADATA":this.expandableMetadata=F;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=F}},
toggleCinematicsActive:function(C){this.cinematicsActive=C},
isMiniplayerActive:function(){return _.I8().resolve(_.Od).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(C){return F5z.map(function(F){return C.find(function(G){var V;return(G==null?void 0:(V=G.engagementPanelSectionListRenderer)==null?void 0:V.targetId)===F})}).filter(function(F){return F!==void 0})},
getNonLearningJourneyEngagementPanels:function(C){return C.filter(function(F){var G;return!F5z.includes((F==null?void 0:(G=F.engagementPanelSectionListRenderer)==null?void 0:G.targetId)||"")})}}];var Gt_;var mB=function(){var C=_.B.apply(this,arguments)||this;C.flexy=!0;C.learningJourney=!0;C.viewTransitionEnabled=_.y("enable_player_resize_transition");C.smallerChatMinHeight=_.y("live_chat_smaller_min_height");C.cinematicTheaterMode=_.y("web_cinematic_theater_mode");C.transparentTheaterMode=_.y("web_transparent_theater_mode");C.cinematicFullscreen=_.y("web_cinematic_fullscreen");C.cinematicFullscreenV2=_.y("web_cinematic_fullscreen_v2");C.isDarkTheme=document.documentElement.hasAttribute("dark");
C.theaterLargerPlayer=_.y("web_watch_theater_larger_player");C.defaultCollapsePlaylist=_.y("web_watch_default_collapse_playlist");C.enableCanvasLayout=_.y("web_enable_canvas_on_learning_journey");return C};
_.O(mB,_.B);_.n=mB.prototype;_.n.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.n.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.n.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.n.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.n.ready=function(){var C=this,F=function(){C.onColumnScroll()};
this.primary.addEventListener("scroll",F);this.secondary.addEventListener("scroll",F)};
_.n.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.n.updateIsTwoColumnsFromBinding=function(C){_.y("web_watch_update_narrow_width_killswitch")||_.s3().dispatch(_.OWT(!C.detail.value));this.ytdWatchBehavior.isTwoColumns_=C.detail.value};
_.n.updateFlexySmallWindowFromBinding=function(C){this.ytdWatchBehavior.flexySmallWindow_=C.detail.value};
_.n.updateFlexyLargeWindowFromBinding=function(C){this.ytdWatchBehavior.flexyLargeWindow_=C.detail.value};
_.n.updateWatchWhileWindowSizeSufficientFromBinding=function(C){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=C.detail.value};
_.n.updateWatchNextCanShowMoreFromBinding=function(C){this.ytdWatchBehavior.watchNextCanShowMore=C.detail.value};
_.n.updateShownItemsFromBinding=function(C){C.detail.path?this.set(C.detail.path,C.detail.value):this.ytdWatchBehavior.watchNextShownItems=C.detail.value};
_.n.getElement=function(C){switch(C){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23420_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23420_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.I6.Object.defineProperties(mB.prototype,{showBrowseResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.browseData&&!this.playerData&&this.enableCanvasLayout}},
showWatchResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.playerData||!this.enableCanvasLayout}},
cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var C;if((C=this.data)==null||!C.pageVisualEffects)return!1;for(var F=0;F<this.data.pageVisualEffects.length;F++)if(C=_.Z(this.data.pageVisualEffects[F],_.FJ))return F=void 0,(F=C.config)==null?void 0:F.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.learningJourneyEngagementPanels)==null?void 0:C.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var C,F=(C=this.learningJourneyEngagementPanels)==null?void 0:C.find(function(H){var l;return(H==null?void 0:(l=H.engagementPanelSectionListRenderer)==null?void 0:l.panelIdentifier)==="learning-journey-engagement-panel"});
if(F){var G,V,J,b,z,Q,E,t,k;if(C=(t=((E=(z=((b=F==null?void 0:(G=F.engagementPanelSectionListRenderer)==null?void 0:(V=G.content)==null?void 0:(J=V.sectionListRenderer)==null?void 0:J.contents)!=null?b:[])[0])==null?void 0:(Q=z.itemSectionRenderer)==null?void 0:Q.contents)!=null?E:[])[0])==null?void 0:(k=t.accordionViewModel)==null?void 0:k.onTitleTap){var U=_.ZD(C);if(U)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.Cy.instance.resolveCommand(U)}}}}}}});
_.I6.Object.defineProperties(mB,{template:{configurable:!0,enumerable:!0,get:function(){if(Gt_===void 0){var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="watch-content" hidden="[[!showWatchResponse]]" class="style-scope ytd-watch-learning-journey">\n        <div id="player" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n            <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n              <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n                <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n                </ytd-player>\n              </div>\n            </div>\n            <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n              <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n            </yt-button-shape></div>\n          </div>\n          <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n          </yt-playability-error-supported-renderers>\n        </div>\n        <div id="below" class="style-scope ytd-watch-learning-journey">\n          <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n          </ytd-watch-metadata>\n          <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n            <div id="info" class="style-scope ytd-watch-learning-journey">\n              <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n            <div id="meta" class="style-scope ytd-watch-learning-journey">\n              <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n          </div>\n          <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n          \n          <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n            <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-comments>\n        </div>\n      </div>\n      <div id="browse-content" hidden="[[!showBrowseResponse]]" class="style-scope ytd-watch-learning-journey">\n        <ytd-two-column-browse-results-renderer id="ytd-plj-browse" data="[[browseData.contents.twoColumnBrowseResultsRenderer]]" class="style-scope ytd-watch-learning-journey"></ytd-two-column-browse-results-renderer>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);Gt_=C}C=Gt_;return C}}});
mB.prototype.updateMiniplayerIsActiveValue=mB.prototype.updateMiniplayerIsActiveValue;mB.prototype.updateScrollTopValue=mB.prototype.updateScrollTopValue;mB.prototype.updateFullscreenValue=mB.prototype.updateFullscreenValue;mB.prototype.updateTheaterValue=mB.prototype.updateTheaterValue;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],mB.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],mB.prototype,"ytComponentBehavior",void 0);
_.R([_.w(jt_.YtdLearningJourneyWatchBehavior),_.Y("design:type",Object)],mB.prototype,"ytdWatchBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],mB.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],mB.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],mB.prototype,"playerData",void 0);_.R([_.L(),_.Y("design:type",Object)],mB.prototype,"browseData",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],mB.prototype,"flexy",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],mB.prototype,"learningJourney",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],mB.prototype,"viewTransitionEnabled",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],mB.prototype,"smallerChatMinHeight",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],mB.prototype,"cinematicTheaterMode",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],mB.prototype,"transparentTheaterMode",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],mB.prototype,"cinematicFullscreen",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],mB.prototype,"cinematicFullscreenV2",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],mB.prototype,"isDarkTheme",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],mB.prototype,"theaterLargerPlayer",void 0);_.R([_.L(),_.Y("design:type",Object)],mB.prototype,"defaultCollapsePlaylist",void 0);_.R([_.L(),_.Y("design:type",Object)],mB.prototype,"enableCanvasLayout",void 0);_.R([_.L({reflectToAttribute:!0}),_.M("playerData","browseData","enableCanvasLayout"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],mB.prototype,"showBrowseResponse",null);
_.R([_.L({reflectToAttribute:!0}),_.M("playerData","enableCanvasLayout"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],mB.prototype,"showWatchResponse",null);_.R([_.L({selector:_.l5}),_.Y("design:type",Object)],mB.prototype,"theaterValue",void 0);_.R([_.L({selector:_.yA}),_.Y("design:type",Object)],mB.prototype,"fullscreenValue",void 0);_.R([_.L({selector:_.BH}),_.Y("design:type",Object)],mB.prototype,"scrollTopValue",void 0);
_.R([_.L({selector:_.yj}),_.Y("design:type",Object)],mB.prototype,"miniplayerIsActiveValue",void 0);_.R([_.$z("#ytd-plj-player"),_.Y("design:type",HTMLElement)],mB.prototype,"ytdPlayer",void 0);_.R([_.$z("#playlist"),_.Y("design:type",HTMLElement)],mB.prototype,"JSC$23420_ytdPlaylistPanelRenderer",void 0);_.R([_.gr("ytd-comments"),_.Y("design:type",HTMLElement)],mB.prototype,"ytdComments",void 0);_.R([_.$z("#primary"),_.Y("design:type",HTMLElement)],mB.prototype,"primary",void 0);
_.R([_.$z("#secondary"),_.Y("design:type",HTMLElement)],mB.prototype,"secondary",void 0);_.R([_.$z("#player-container"),_.Y("design:type",HTMLElement)],mB.prototype,"playerContainer",void 0);_.R([_.$z("#cinematics"),_.Y("design:type",HTMLElement)],mB.prototype,"JSC$23420_cinematics",void 0);_.R([_.iP("theaterValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mB.prototype,"updateTheaterValue",null);
_.R([_.iP("fullscreenValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mB.prototype,"updateFullscreenValue",null);_.R([_.iP("scrollTopValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mB.prototype,"updateScrollTopValue",null);_.R([_.iP("miniplayerIsActiveValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mB.prototype,"updateMiniplayerIsActiveValue",null);
_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],mB.prototype,"cinematicLightTheme",null);_.R([_.L({reflectToAttribute:!0}),_.M("learningJourneyEngagementPanels"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],mB.prototype,"hasLearningJourneyPanels",null);_.R([_.M("learningJourneyEngagementPanels"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],mB.prototype,"backButtonData",null);_.R([_.e({is:"ytd-watch-learning-journey"})],mB);_.Ya.registerService(_.ncT,mB);
_.Pk();
}catch(e){_._DumpException(e)}
try{
_.qd("Tm0L3c");
var g2F;var RO0;var Y3n=function(){return _.B.apply(this,arguments)||this};
_.O(Y3n,_.B);_.R([_.e({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],Y3n);
_.q(Y3n,"ytd-ghost-comments-renderer",function(){if(RO0===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);RO0=C}C=RO0;return C},{mode:1});var TdF;var o2F=function(){return _.B.apply(this,arguments)||this};
_.O(o2F,_.B);_.R([_.e({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],o2F);
_.q(o2F,"ytd-ghost-watch-metadata-renderer",function(){if(TdF===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);TdF=C}C=TdF;return C},{mode:1});var pr=function(){var C=_.B.apply(this,arguments)||this;C.ghostGridRenderer={rows:6};C.smallerChatMinHeight=_.y("live_chat_smaller_min_height");C.cinematicTheaterMode=_.y("web_cinematic_theater_mode");C.transparentTheaterMode=_.y("web_transparent_theater_mode");C.darkerPanels=_.y("web_watch_darker_panels");C.cinematicFullscreen=_.y("web_cinematic_fullscreen");C.cinematicFullscreenV2=_.y("web_cinematic_fullscreen_v2");C.isDarkTheme=document.documentElement.hasAttribute("dark");return C};
_.O(pr,_.B);_.n=pr.prototype;_.n.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.n.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.n.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.n.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.n.ready=function(){var C=this,F=function(){C.onColumnScroll()};
this.primary.addEventListener("scroll",F);this.secondary.addEventListener("scroll",F)};
_.n.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.n.updateIsTwoColumnsFromBinding=function(C){this.ytdWatchBehavior.isTwoColumns_=C.detail.value};
_.n.updateFlexySmallWindowFromBinding=function(C){this.ytdWatchBehavior.flexySmallWindow_=C.detail.value};
_.n.updateFlexyLargeWindowFromBinding=function(C){this.ytdWatchBehavior.flexyLargeWindow_=C.detail.value};
_.n.updateWatchWhileWindowSizeSufficientFromBinding=function(C){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=C.detail.value};
_.n.updateWatchNextCanShowMoreFromBinding=function(C){this.ytdWatchBehavior.watchNextCanShowMore=C.detail.value};
_.n.updateShownItemsFromBinding=function(C){_.y("swatcheroo_direct_use_rich_grid")||(C.detail.path?this.set(C.detail.path,C.detail.value):this.ytdWatchBehavior.watchNextShownItems=C.detail.value)};
_.n.getElement=function(C){switch(C){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23408_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23408_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.I6.Object.defineProperties(pr.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var C;if((C=this.data)==null||!C.pageVisualEffects)return!1;for(var F=0;F<this.data.pageVisualEffects.length;F++)if(C=_.Z(this.data.pageVisualEffects[F],_.FJ))return F=void 0,(F=C.config)==null?void 0:F.enableInLightTheme;return!1}}});
pr.prototype.updateMiniplayerIsActiveValue=pr.prototype.updateMiniplayerIsActiveValue;pr.prototype.updateScrollTopValue=pr.prototype.updateScrollTopValue;pr.prototype.updateFullscreenValue=pr.prototype.updateFullscreenValue;pr.prototype.updateTheaterValue=pr.prototype.updateTheaterValue;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],pr.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],pr.prototype,"ytComponentBehavior",void 0);
_.R([_.w(_.q3h.YtdWatchBehavior),_.Y("design:type",Object)],pr.prototype,"ytdWatchBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],pr.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],pr.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],pr.prototype,"ghostGridRenderer",void 0);_.R([_.L(),_.Y("design:type",Object)],pr.prototype,"playerData",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],pr.prototype,"smallerChatMinHeight",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],pr.prototype,"cinematicTheaterMode",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],pr.prototype,"transparentTheaterMode",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],pr.prototype,"darkerPanels",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],pr.prototype,"cinematicFullscreen",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],pr.prototype,"cinematicFullscreenV2",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],pr.prototype,"isDarkTheme",void 0);_.R([_.L({selector:_.l5}),_.Y("design:type",Object)],pr.prototype,"theaterValue",void 0);_.R([_.L({selector:_.yA}),_.Y("design:type",Object)],pr.prototype,"fullscreenValue",void 0);_.R([_.L({selector:_.BH}),_.Y("design:type",Object)],pr.prototype,"scrollTopValue",void 0);
_.R([_.L({selector:_.yj}),_.Y("design:type",Object)],pr.prototype,"miniplayerIsActiveValue",void 0);_.R([_.$z("#ytd-player"),_.Y("design:type",HTMLElement)],pr.prototype,"ytdPlayer",void 0);_.R([_.$z("#playlist"),_.Y("design:type",HTMLElement)],pr.prototype,"JSC$23408_ytdPlaylistPanelRenderer",void 0);_.R([_.$z("#ytd-comments"),_.Y("design:type",HTMLElement)],pr.prototype,"ytdComments",void 0);_.R([_.$z("#primary"),_.Y("design:type",HTMLElement)],pr.prototype,"primary",void 0);
_.R([_.$z("#secondary"),_.Y("design:type",HTMLElement)],pr.prototype,"secondary",void 0);_.R([_.$z("#player-container"),_.Y("design:type",HTMLElement)],pr.prototype,"playerContainer",void 0);_.R([_.$z("#cinematics"),_.Y("design:type",HTMLElement)],pr.prototype,"JSC$23408_cinematics",void 0);_.R([_.iP("theaterValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pr.prototype,"updateTheaterValue",null);
_.R([_.iP("fullscreenValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pr.prototype,"updateFullscreenValue",null);_.R([_.iP("scrollTopValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pr.prototype,"updateScrollTopValue",null);_.R([_.iP("miniplayerIsActiveValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pr.prototype,"updateMiniplayerIsActiveValue",null);
_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],pr.prototype,"cinematicLightTheme",null);
_.q(pr,"ytd-watch-grid",function(){if(g2F===void 0){var C=document.createElement("template");_.X(C,'\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-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" hide-offer-modules="[[hideOfferModules]]" is-two-columns="[[isTwoColumns_]]" is-watch-next-grid="" 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-grid">\n          </ytd-watch-next-secondary-results-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" 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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);g2F=C}C=g2F;return C},{mode:2});_.Ya.registerService(_.br5,pr);
_.Pk();
}catch(e){_._DumpException(e)}
try{
_.qd("CF909");
var PKl;var D1=function(){var C=_.B.apply(this,arguments)||this;C.viewTransitionEnabled=_.y("enable_player_resize_transition");C.smallerChatMinHeight=_.y("live_chat_smaller_min_height");C.cinematicTheaterMode=_.y("web_cinematic_theater_mode");C.transparentTheaterMode=_.y("web_transparent_theater_mode");C.cinematicFullscreen=_.y("web_cinematic_fullscreen");C.isDarkTheme=document.documentElement.hasAttribute("dark");C.defaultCollapsePlaylist=_.y("web_watch_default_collapse_playlist");C.retroModeReduxValue=
!1;C.persistentPanelVisibleValue=!1;return C};
_.O(D1,_.B);_.n=D1.prototype;_.n.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.n.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.n.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.n.updateRetroModeReduxValue=function(){_.y("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.n.updatePersistentPanelVisibleValue=function(){_.y("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.n.ready=function(){var C=this,F=function(){C.onColumnScroll()};
this.primary.addEventListener("scroll",F);this.secondary.addEventListener("scroll",F)};
_.n.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.n.updateIsTwoColumnsFromBinding=function(C){_.y("web_watch_update_narrow_width_killswitch")||_.s3().dispatch(_.OWT(!C.detail.value));this.ytdWatchBehavior.isTwoColumns_=C.detail.value};
_.n.updateFlexySmallWindowFromBinding=function(C){this.ytdWatchBehavior.flexySmallWindow_=C.detail.value};
_.n.updateFlexyLargeWindowFromBinding=function(C){this.ytdWatchBehavior.flexyLargeWindow_=C.detail.value};
_.n.updateWatchWhileWindowSizeSufficientFromBinding=function(C){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=C.detail.value};
_.n.updateWatchNextCanShowMoreFromBinding=function(C){this.ytdWatchBehavior.watchNextCanShowMore=C.detail.value};
_.n.updateShownItemsFromBinding=function(C){C.detail.path?this.set(C.detail.path,C.detail.value):this.ytdWatchBehavior.watchNextShownItems=C.detail.value};
_.n.getElement=function(C){switch(C){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23403_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23403_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary;case "PERSISTENT_PANEL_CONTAINER":return this.persistentPanelContainer}};
_.I6.Object.defineProperties(D1.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var C;if((C=this.data)==null||!C.pageVisualEffects)return!1;for(var F=0;F<this.data.pageVisualEffects.length;F++)if(C=_.Z(this.data.pageVisualEffects[F],_.FJ))return F=void 0,(F=C.config)==null?void 0:F.enableInLightTheme;return!1}}});
_.I6.Object.defineProperties(D1,{template:{configurable:!0,enumerable:!0,get:function(){if(PKl===void 0){var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n      <div id="persistent-panel-container" class="style-scope ytd-watch-flexy"></div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);PKl=C}C=PKl;return C}}});
D1.prototype.updatePersistentPanelVisibleValue=D1.prototype.updatePersistentPanelVisibleValue;D1.prototype.updateRetroModeReduxValue=D1.prototype.updateRetroModeReduxValue;D1.prototype.updateScrollTopValue=D1.prototype.updateScrollTopValue;D1.prototype.updateFullscreenValue=D1.prototype.updateFullscreenValue;D1.prototype.updateTheaterValue=D1.prototype.updateTheaterValue;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],D1.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],D1.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.q3h.YtdWatchBehavior),_.Y("design:type",Object)],D1.prototype,"ytdWatchBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],D1.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],D1.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],D1.prototype,"playerData",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],D1.prototype,"viewTransitionEnabled",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],D1.prototype,"smallerChatMinHeight",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],D1.prototype,"cinematicTheaterMode",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],D1.prototype,"transparentTheaterMode",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],D1.prototype,"cinematicFullscreen",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],D1.prototype,"isDarkTheme",void 0);_.R([_.L(),_.Y("design:type",Object)],D1.prototype,"defaultCollapsePlaylist",void 0);_.R([_.L({selector:_.l5}),_.Y("design:type",Object)],D1.prototype,"theaterValue",void 0);_.R([_.L({selector:_.yA}),_.Y("design:type",Object)],D1.prototype,"fullscreenValue",void 0);
_.R([_.L({selector:_.BH}),_.Y("design:type",Object)],D1.prototype,"scrollTopValue",void 0);_.R([_.L({selector:_.yj}),_.Y("design:type",Object)],D1.prototype,"miniplayerIsActive",void 0);_.R([_.L({selector:function(C){return C.watch.isWatchRetroMode}}),
_.Y("design:type",Object)],D1.prototype,"retroModeReduxValue",void 0);_.R([_.L({selector:_.SV.persistentPanelVisibleSelector}),_.Y("design:type",Object)],D1.prototype,"persistentPanelVisibleValue",void 0);_.R([_.gr("ytd-player"),_.Y("design:type",HTMLElement)],D1.prototype,"ytdPlayer",void 0);_.R([_.$z("#playlist"),_.Y("design:type",HTMLElement)],D1.prototype,"JSC$23403_ytdPlaylistPanelRenderer",void 0);_.R([_.gr("ytd-comments"),_.Y("design:type",HTMLElement)],D1.prototype,"ytdComments",void 0);
_.R([_.$z("#primary"),_.Y("design:type",HTMLElement)],D1.prototype,"primary",void 0);_.R([_.$z("#secondary"),_.Y("design:type",HTMLElement)],D1.prototype,"secondary",void 0);_.R([_.$z("#player-container"),_.Y("design:type",HTMLElement)],D1.prototype,"playerContainer",void 0);_.R([_.$z("#below"),_.Y("design:type",HTMLElement)],D1.prototype,"below",void 0);_.R([_.$z("#cinematics"),_.Y("design:type",HTMLElement)],D1.prototype,"JSC$23403_cinematics",void 0);
_.R([_.$z("#persistent-panel-container"),_.Y("design:type",HTMLElement)],D1.prototype,"persistentPanelContainer",void 0);_.R([_.iP("theaterValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],D1.prototype,"updateTheaterValue",null);_.R([_.iP("fullscreenValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],D1.prototype,"updateFullscreenValue",null);
_.R([_.iP("scrollTopValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],D1.prototype,"updateScrollTopValue",null);_.R([_.iP("retroModeReduxValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],D1.prototype,"updateRetroModeReduxValue",null);_.R([_.iP("persistentPanelVisibleValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],D1.prototype,"updatePersistentPanelVisibleValue",null);
_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],D1.prototype,"cinematicLightTheme",null);_.R([_.e({is:"ytd-watch-flexy"})],D1);_.Ya.registerService(_.$H9,D1);
_.Pk();
}catch(e){_._DumpException(e)}
try{
_.qd("nmfa2d");
var jAY;var qH=function(){var C=_.B.apply(this,arguments)||this;C.hidden=!1;C.errorScreen=null;C.playlistData={};return C};
_.O(qH,_.B);_.n=qH.prototype;_.n.getPlayer=function(){return this.ytdPlayer};
_.n.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:_.UF(["aa","eocs"])}}};
_.n.onActiveChanged=function(){_.s3().dispatch(_.vBl(this.ytPageBehavior.active))};
_.n.playerDataChanged=function(){var C;(C=this.watchController)==null||C.setPlayerResponse(this.playerData)};
_.n.dataChanged=function(){var C;(C=this.watchController)==null||C.setWatchNextResponse(this.data)};
_.n.sizeChanged=function(){var C,F;(F=(C=this.metadata).resize)==null||F.call(C)};
_.n.attached=function(){this.watchController=new _.xc(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.n.detached=function(){_.uz(this.watchController);this.watchController=void 0};
_.n.getPlayerContainer=function(){return this.playerContainer};
_.n.getElement=function(C){switch(C){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.n.provideRenderingData=function(C,F){switch(C){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=F;break;case "ERROR_SCREEN":this.errorScreen=F!=null?F:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=F;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=F;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=F;break;case "RICH_METADATA":this.richMetadataRowContainer=F;break;case "CLARIFICATION":this.clarificationData=F;break;case "PLAYLIST":this.playlistData=
F!=null?F:{};break;case "MERCH_SHELF":this.merchShelf=F;break;case "TICKET_SHELF":this.ticketShelf=F;break;case "LIMITED_STATE":this.limitedState=F;break;case "DONATION_SHELF":this.donationShelf=F;break;case "ALERTS":this.alerts=F}};
_.I6.Object.defineProperties(qH.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var C,F,G;return!this.hidden&&!!((C=this.data)==null?0:(F=C.contents)==null?0:(G=F.twoColumnWatchNextResults)==null?0:G.conversationBar)}}});
qH.prototype.sizeChanged=qH.prototype.sizeChanged;qH.prototype.dataChanged=qH.prototype.dataChanged;qH.prototype.playerDataChanged=qH.prototype.playerDataChanged;qH.prototype.onActiveChanged=qH.prototype.onActiveChanged;_.R([_.w(_.ij.YtPageBehavior),_.Y("design:type",Object)],qH.prototype,"ytPageBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],qH.prototype,"ytComponentBehavior",void 0);
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],qH.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],qH.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],qH.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],qH.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],qH.prototype,"playerData",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],qH.prototype,"hidden",void 0);_.R([_.$z("#ytd-player"),_.Y("design:type",HTMLElement)],qH.prototype,"ytdPlayer",void 0);_.R([_.$z("#player-container"),_.Y("design:type",HTMLElement)],qH.prototype,"playerContainer",void 0);_.R([_.$z("#metadata"),_.Y("design:type",Object)],qH.prototype,"metadata",void 0);_.R([_.$z("#playlist"),_.Y("design:type",HTMLElement)],qH.prototype,"playlistPanel",void 0);
_.R([_.L({selector:_.Xp6,reflectToAttribute:!0}),_.Y("design:type",Object)],qH.prototype,"fixie",void 0);_.R([_.L({selector:_.OB_,reflectToAttribute:!0}),_.Y("design:type",Object)],qH.prototype,"singleColumn",void 0);_.R([_.L({selector:function(C){return _.l5(C)&&!_.yA(C)},
reflectToAttribute:!0}),_.Y("design:type",Object)],qH.prototype,"theater",void 0);_.R([_.L({selector:_.yA,reflectToAttribute:!0}),_.Y("design:type",Object)],qH.prototype,"fullscreen",void 0);_.R([_.L({selector:_.SZL}),_.Y("design:type",Object)],qH.prototype,"windowSize",void 0);_.R([_.L(),_.Y("design:type",Object)],qH.prototype,"singleColumnContents",void 0);_.R([_.L(),_.Y("design:type",Object)],qH.prototype,"errorScreen",void 0);_.R([_.L(),_.Y("design:type",Object)],qH.prototype,"playlistData",void 0);
_.R([_.L(),_.Y("design:type",Object)],qH.prototype,"videoPrimaryInfoRenderer",void 0);_.R([_.L(),_.Y("design:type",Object)],qH.prototype,"videoSecondaryInfoRenderer",void 0);_.R([_.L(),_.Y("design:type",Object)],qH.prototype,"richMetadataRowContainer",void 0);_.R([_.L(),_.Y("design:type",Object)],qH.prototype,"clarificationData",void 0);_.R([_.L(),_.Y("design:type",Object)],qH.prototype,"commentsEntryPointHeaderRenderer",void 0);_.R([_.L(),_.Y("design:type",Object)],qH.prototype,"ticketShelf",void 0);
_.R([_.L(),_.Y("design:type",Object)],qH.prototype,"merchShelf",void 0);_.R([_.L(),_.Y("design:type",Object)],qH.prototype,"donationShelf",void 0);_.R([_.L(),_.Y("design:type",Object)],qH.prototype,"limitedState",void 0);_.R([_.L(),_.Y("design:type",Object)],qH.prototype,"alerts",void 0);_.R([_.M("playlistData"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],qH.prototype,"hasPlaylistData",null);
_.R([_.M("data","hidden"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],qH.prototype,"hasChat",null);_.R([_.iP("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qH.prototype,"onActiveChanged",null);_.R([_.iP("playerData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qH.prototype,"playerDataChanged",null);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qH.prototype,"dataChanged",null);_.R([_.iP("windowSize","singleColumn"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qH.prototype,"sizeChanged",null);
_.q(qH,"ytd-watch-fixie",function(){if(jAY===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);jAY=C}C=jAY;return C},{mode:1});_.Ya.registerService(_.JbZ,qH);
_.Pk();
}catch(e){_._DumpException(e)}
try{
_.qd("xwEKAe");
var laY=function(C){C=C.command;var F=_.Z(C,_.nd);return{command:C,reelPlayerOverlayRenderer:_.Z(F==null?void 0:F.overlay,_.qbl),thumbnail:F==null?void 0:F.thumbnail,videoId:F.videoId}},yVT=function(C){C=C.command;
var F=_.Z(C,_.od);return{command:C,reelNonVideoContentRenderer:_.Z(F==null?void 0:F.renderer,_.KH)}},ZfL=function(C){return C.entries?C.entries.map(function(F){return _.Z(F==null?void 0:F.command,_.nd)?laY(F):yVT(F)}):[]},NGL=function(C){return C.prevEntries?C.prevEntries.map(function(F){return _.Z(F==null?void 0:F.command,_.nd)?laY(F):yVT(F)}):[]},OfT=function(C){return _.$w(C)?C.getAttribute("jsname")==="coFSxe":!1},XkB=function(C,F){F.id||(F.id="ow"+_.rI(F));
C.setAttribute("jsowner",F.id);C.__owner=F;var G=_.Yf(F,OfT);G&&(_.BzO.has(G)||_.BzO.set(G,[]),_.BzO.get(G).push(C));(G=_.LE2.get(F))||_.LE2.set(F,G=[]);G.includes(C)||G.push(C);F.setAttribute("__IS_OWNER",!0)},wkT=function(){var C=_.HOI(1);
C=_.bb(C,_.XgS);if(!(_.UMB(C)||C[_.UUE]&&!C.__hasBeenSet))return C.value},Mo_=function(C){return(C=_.jTW(C))?_.Gaq(C):0},SDY=function(C){return C.shorts.isSmallScreenSqueezeback},LgL=function(C){return C.shorts.isPlaybackStarted},BG_=function(C){var F=_.bQ();
if(F.getFlag(202))F=F.getFlag(201);else{var G;F=(C==null?void 0:(G=C.config)==null?void 0:G.settingOnByDefault)!==void 0?C.config.settingOnByDefault:!_.y("web_shorts_cinematics_disabled_by_default")}return F},vdB=function(C){var F=_.bQ();
_.nl(0,201,C);_.nl(0,202,!0);F.save()},cV9=function(C){var F=_.HOI(2),G=new Set;
_.q0(function(){return void G.forEach(function(V){return void V()})});
return function(V){var J=_.$K(F);try{var b=faz(hnS(C),V);G.add(b);return function(){b();G.delete(b)}}finally{_.$K(J)}}},AVB=function(C){var F=C.children;
var G=C.root;_.s0(function(){var V=cV9(G)(F);_.q0(V)});
return document.createTextNode("")},faz=function(C,F){var G=enz(C);
(C=wkT())&&XkB(G,C);_.ZN.setUp();F=_.u(_.PCi(F,!0));C=F.next().value;var V=F.next().value;F=_.u(C);for(C=F.next();!C.done;C=F.next())G.appendChild(C.value);_.ZN.log(G);_.ZN.tearDown();return function(){V();G.remove()}},hnS=function(C){if(typeof C==="string")return C=document.querySelector(C),_.prU(C),C;
if(_.aD(C)&&C.nodeType===Node.ELEMENT_NODE)return C;if(!C.__value&&!C.__optional){var F=_.lQS.USE_ELEMENT_NOT_ASSIGNED(C.__expectedTagName);C.__hasErrored=!0;throw F;}return C.value},enz=function(C){var F=document.createElementNS(C.namespaceURI,C.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return C.appendChild(F)},ddY=function(C,F,G,V){C=F-C;
G=V-G;return Math.sqrt(C*C+G*G)},xd6=function(C){var F=C>>8&255,G=C&255;
return"#"+(C>>16&255).toString(16).padStart(2,"0")+F.toString(16).padStart(2,"0")+G.toString(16).padStart(2,"0")},sMl=function(C,F){C&&_.I8().resolve(_.WD).resolveCommand(C,{forceClickLogging:!0,
form:{element:F}})},qDY=function(){return _.I8().resolve(_.k3).dismissedIndices},PzY=function(C,F){var G,V,J,b,z,Q,E,t,k;
return _.I(function(U){if(U.nextAddress==1){G=_.I8().resolve(_.Xjs);b=(V=G)==null?void 0:(J=V.reelWatchEndpointMap)==null?void 0:J.reelWatchSequence;Q=(z=C.innertubeTransportService)!=null?z:_.I8().resolve(_.Qk);if(!b)return U.jumpTo(2);E=b();return(t=E.JSC$14167_getRequest(F,{}))?U.yield(_.j8(Q,t.innerTubeRequest,t.input,F.clickTrackingParams,t.config),4):U.jumpTo(2)}return U.nextAddress!=2?(k=U.yieldResult,U.return(k)):U.return(void 0)})},gdT=function(C,F,G){var V,J=(V=_.Z(F,_.nd))==null?void 0:
V.videoId;
V=!(!J||!C.find(function(z){return z.videoId&&z.videoId===J}));
var b=!!C.find(function(z){var Q;return((Q=_.Z(z.command,_.nd))==null?void 0:Q.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"});
C=!!C.find(function(z){return!!_.Z(z.command,_.od)&&!!_.Z(F,_.od)&&z.command===F});
return G?V||C:V||b||C},Rnz=function(C,F,G){var V=[].concat(_.da(C)),J=0,b=G?ZfL(G):[];
G=G?NGL(G):[];F&&!gdT(C,F.command)&&V.unshift(F);b.length&&!gdT(C,b[0].command,!0)&&V.push.apply(V,_.da(b));F&&G.length&&!gdT(C,G[0].command)&&(V.unshift.apply(V,_.da(G.reverse())),J=G.length);return{newContentList:V,indexChange:J}},YDh=function(C){return _.rh({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:C}})},TG6=function(C){return _.rh({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:C}})},odh=function(C){return _.rh({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:C}})};var y5=function(C,F){if(C instanceof y5)this.array_=C.array_;else{var G;if(G=_.gI(C))a:{for(var V=G=0;V<C.length;V++){if(!_.gI(C[V])||G>0&&C[V].length!=G){G=!1;break a}for(var J=0;J<C[V].length;J++)if(typeof C[V][J]!=="number"){G=!1;break a}G==0&&(G=C[V].length)}G=G!=0}if(G)this.array_=_.Po(C);else if(C instanceof _.Ml)this.array_=rVL(C.height,C.width);else if(typeof C==="number"&&typeof F==="number"&&C>0&&F>0)this.array_=rVL(C,F);else throw Error("Oo");}this.size_=new _.Ml(this.array_[0].length,
this.array_.length)},Kg0=function(C,F,G){for(var V=0;V<C.getSize().height;V++)for(var J=0;J<C.getSize().width;J++)F.call(G,C.array_[V][J],V,J,C)},DdY=function(C,F){var G=new y5(C.getSize());
Kg0(C,function(V,J,b){G.array_[J][b]=F.call(void 0,V,J,b,C)});
return G},rVL=function(C,F){for(var G=[],V=0;V<C;V++){G[V]=[];
for(var J=0;J<F;J++)G[V][J]=0}return G};
y5.prototype.add=function(C){if(!_.ofY(this.size_,C.getSize()))throw Error("Po");return DdY(this,function(F,G,V){return F+C.array_[G][V]})};
y5.prototype.equals=function(C,F){if(this.size_.width!=C.size_.width||this.size_.height!=C.size_.height)return!1;F=F||0;for(var G=0;G<this.size_.height;G++)for(var V=0;V<this.size_.width;V++)if(!_.TSL(this.array_[G][V],C.array_[G][V],F))return!1;return!0};
y5.prototype.getSize=function(){return this.size_};
var Zg=function(C,F,G){return F>=0&&F<C.size_.height&&G>=0&&G<C.size_.width?C.array_[F][G]:null};
y5.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var pk6=function(C,F,G,V){if(!(F>=0&&F<C.size_.height&&G>=0&&G<C.size_.width))throw Error("Qo`"+F+"`"+G+"`"+C.size_.height+"`"+C.size_.width);C.array_[F][G]=V};
y5.prototype.multiply=function(C){if(C instanceof y5){if(this.size_.width!=C.getSize().height)throw Error("Ro");return mdL(this,C)}if(typeof C==="number")return CbT(this,C);throw Error("So");};
var mdL=function(C,F){var G=new y5(C.size_.height,F.getSize().width);Kg0(G,function(V,J,b){for(var z=V=0;z<this.size_.width;z++)V+=Zg(this,J,z)*Zg(F,z,b);pk6(G,J,b,V)},C);
return G},CbT=function(C,F){return DdY(C,function(G){return G*F})};var jXn=new _.Cx("inlineSurveyRenderer");var Fv0=new _.Cx("interstitialViewModel");var GlT=new _.Cx("reelNavigateCommand");var VEl=new _.Cx("reelNonVideoContentDismissalCommand");var iBY=new _.Cx("showReelsCommentsOverlayCommand");var J2L=new _.Cx("videoInteractionPopUpRenderer");var $0B=new _.Cx("pollChoiceData");var bB0;var nK_;var u5T;var Nu=function(){var C=_.B.apply(this,arguments)||this;C.ctaVisualElement=null;C.currentCsn=null;return C};
_.O(Nu,_.B);_.n=Nu.prototype;_.n.onDataChanged=function(){this.maybeLogShows()};
_.n.computeButtonShape=function(){var C=this;if(this.data)return{buttonText:_.dd(this.data.text),state:"active",onTap:function(){C.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.n.maybeCreateCtaVe=function(){var C;if((C=this.data)!=null&&C.badgeInteractionLogging){var F;if(C=(F=this.data.badgeInteractionLogging)==null?void 0:F.trackingParams)this.ctaVisualElement=_.zS(C)}};
_.n.maybeLogClicks=function(){this.currentCsn=_.ZQ(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.ej(this.currentCsn,this.ctaVisualElement)};
_.n.maybeLogShows=function(){this.currentCsn=_.ZQ(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.cA(this.currentCsn,[this.ctaVisualElement])};
_.n.onTap=function(){var C;if((C=this.data)!=null&&C.onClickCommand){var F;this.ytComponentBehavior.resolveCommand((F=this.data)==null?void 0:F.onClickCommand);this.maybeLogClicks()}};
Nu.prototype.onDataChanged=Nu.prototype.onDataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Nu.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Nu.prototype,"ytComponentBehavior",void 0);_.R([_.L({}),_.Y("design:type",Object)],Nu.prototype,"data",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Nu.prototype,"onDataChanged",null);
_.R([_.e({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],Nu);
_.q(Nu,"ytd-shopping-overlay-badge-renderer",function(){if(u5T!==void 0)return u5T;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return u5T=C},{mode:1});_.gQ(_.fBU,"reel-sound-metadata-view-model",{props:{data:_.s9,overlayDensity:_.s9}});_.gQ(_.Stx,"player-disclosure-view-model",{props:{data:_.CJ,extractOverlay:_.CJ}});_.gQ(_.hDu,"pivot-button-view-model",{props:{data:_.s9,className:_.s9}});_.gQ(_.c07,"reel-action-bar-view-model",{props:{data:_.CJ,buttonShapeOverrideables:_.CJ}});_.gQ(_.h8x,"yt-reel-metapanel-view-model",{props:{data:_.CJ,overlayDensity:_.CJ,extractOverlay:_.CJ}});var zl9=_.d(function(C){var F=C.children;var G=C.region;C=_.u(_.yH(void 0,void 0,"ETdpAf"));var V=C.next().value,J=C.next().value;C=_.u(_.yH("0px",void 0,"hVADeb"));var b=C.next().value,z=C.next().value;C=_.u(_.yH("0px",void 0,"Fckooc"));var Q=C.next().value,E=C.next().value;C=_.u(_.yH(0,void 0,"zYatBd"));var t=C.next().value,k=C.next().value;C=_.u(_.yH(0,void 0,"BVlSnb"));var U=C.next().value,H=C.next().value,l=function(){var T=V();if(T){var P;if(((P=_.jV())==null?void 0:P.getPlayerState())!==-1){T.style.display=
"inherit";var g;(g=_.jV())==null||g.removeEventListener("onStateChange",l)}else T.style.display="none";S()}},N=function(){var T;
return(T=_.gE())==null?void 0:T.querySelector("video")},S=function(){var T=N();
if(T){k(T.getBoundingClientRect().width);H(T.getBoundingClientRect().height);var P;z((T==null?void 0:(P=T.style)==null?void 0:P.left)||"0px");var g;E((T==null?void 0:(g=T.style)==null?void 0:g.top)||"0px")}};
_.sq(function(){var T=V();if(T){var P,g,r;if(((P=_.jV())==null?void 0:P.getPlayerState())===-1&&Math.round(((r=(g=_.jV())==null?void 0:g.getVideoAspectRatio())!=null?r:0)*100)!==Math.round(t()/U()*100)){T.style.display="none";var C9,Wo;H(t()/((Wo=(C9=_.jV())==null?void 0:C9.getVideoAspectRatio())!=null?Wo:1))}}},"ZQVR6d");
var f=function(){S()},c;
_.s0(function(){S();var T;if(!(G==null?0:(T=G())==null?0:T.transformationMatrix))throw Error("Wo");var P;(P=_.jV())==null||P.addEventListener("onStateChange",l);if(window.ResizeObserver){if(T=N())c=new ResizeObserver(f),c.observe(T)}else window.addEventListener("resize",S);_.q0(function(){var g;(g=_.jV())==null||g.removeEventListener("onStateChange",l);c?c.disconnect():window.removeEventListener("resize",S)})});
var A=function(){var T,P,g=(P=G==null?void 0:(T=G())==null?void 0:T.transformationMatrix)!=null?P:[];T=t();P=U();for(var r=[],C9=0,Wo=-1;C9<g.length;C9++)C9%3===0&&(Wo++,r[Wo]=[]),r[Wo].push(g[C9]);g=new y5(r);r=new y5([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);r=g.multiply(r);g=new y5([[0,0],[0,0],[0,0],[0,0]]);for(C9=0;C9<r.getSize().width;C9++){Wo=Zg(r,0,C9);var EB=Zg(r,1,C9);if(Wo===null||EB===null)throw Error("Vo`"+(C9+1).toString());pk6(g,C9,0,Wo*T);pk6(g,C9,1,EB*P)}T=Zg(g,0,0);C9=Zg(g,1,0);P=Zg(g,0,
1);Wo=Zg(g,1,1);if(T===null||C9===null||P===null||Wo===null)throw Error("To");r=ddY(T,C9,P,Wo);EB=Zg(g,3,0);g=Zg(g,3,1);if(EB===null||g===null)throw Error("Uo");g=ddY(T,EB,P,g);Wo=(Number((Wo*-1).toFixed(2))-Number((P*-1).toFixed(2)))/(Number(C9.toFixed(2))-Number(T.toFixed(2)));EB=Math.atan(Wo)*180/Math.PI;C9=Wo===Number.POSITIVE_INFINITY?-90:Wo===Number.NEGATIVE_INFINITY?90:Object.is(Wo,-0)?180:Wo===0?0:Wo>0?EB*-1:T<C9?EB*-1:Math.abs(EB)+180;return"left:calc("+T+"px + "+b()+"); top:calc("+(P+"px + "+
Q()+"); width:")+(r+"px; height:")+(g+"px; transform:rotate(")+(C9+"deg);\n        --sticker-width:"+r+";")};
return _.W(AVB,{root:"#sticker-layer"},function(){return _.W("yt-overlay-sticker",{el:_.dQ(J),style:A,class:"ytOverlayStickerHost"},F)})},"Xm");var QXY=_.d(function(C){function F(){var l,N,S,f,c=(N=_.Z((l=E())==null?void 0:l.command,_.k$7))==null?void 0:(S=N.item)==null?void 0:(f=S.notificationTextRenderer)==null?void 0:f.successResponseText;if(c)l=_.PY(c),_.rz(V.value,"yt-open-popup-action",[l,V.value]);else if(t())sMl(t(),V.value);else{var A;sMl((A=E())==null?void 0:A.command,V.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var G=C.data;var V=_.Jt("svg"),J=_.u(_.yH(!1,void 0,"i4BL1"));C=J.next().value;var b=J.next().value,z=_.u(_.yH(!1,void 0,"FzRJKd"));J=z.next().value;var Q=z.next().value,E=function(){var l;return _.Z((l=G())==null?void 0:l.popUp,J2L)},t=function(){var l;
return(l=G())==null?void 0:l.command},k=function(){return _.Z(t(),_.nhq)!==void 0};
z=_.CZ(function(){F();return!1});
var U={},H={};return _.W("svg",{"on:mouseover":_.CZ(function(){k()&&b(!0);Q(!0);return!1}),
"on:mouseout":_.CZ(function(){b(!1);Q(!1);return!1}),
"on:keydown":_.CZ(function(l){l.key==="Enter"&&F();return!1}),
"on:focus":_.CZ(function(){k()&&b(!0);return!1}),
"on:blur":_.CZ(function(){k()&&b(!1);return!1}),
el:V,tabindex:0,"aria-label":function(){var l;return(l=G())==null?void 0:l.a11yString},
id:"player-overlay-video-interaction-svg",class:_.py("ytPlayerOverlayInteractionInteractionsSvg",(U.ytPlayerOverlayInteractionInteractionsSvgHover=C,U),(H.ytPlayerOverlayInteractionInteractionsSvgHideOutline=J,H)),role:"button","on:click":z})},"$m");_.gQ(_.d(function(C){var F=C.data;_.s0(function(){var G;if((G=F())==null?0:G.trackingParams){var V;_.ia().graftServerVe((V=F().trackingParams)!=null?V:"")}});
return _.W("yt-player-overlay-interaction",null,_.W(zl9,{region:function(){var G,V;return(G=F())==null?void 0:(V=G.regions)==null?void 0:V[0]}},_.W(QXY,Object.assign({},C))))},"Zm"),"yt-player-overlay-interaction",{props:{data:_.CJ}});var IB_=_.d(function(C){var F=C.data;var G=C.index;var V=C.selectedChoice;var J=function(){var b;return _.Z((b=F())==null?void 0:b.renderer,$0B)};
C={};return _.W("yt-overlay-poll-sticker-choice",{class:_.py("ytOverlayPollStickerChoiceHost"),style:_.VA({"--displayed-percentage":function(){var b,z,Q,E;return""+Math.ceil(Number((V==null?void 0:V())===G()?(b=J())==null?void 0:(z=b.selected)==null?void 0:z.progressBarWidth:(Q=J())==null?void 0:(E=Q.unselected)==null?void 0:E.progressBarWidth)*100)}})},_.W("div",{class:_.py("ytOverlayPollStickerChoicePollChoice",(C.ytOverlayPollStickerChoiceShowVotePercentage=function(){return(V==null?void 0:V())!==
void 0},C.ytOverlayPollStickerChoicePollChoiceSelected=function(){return(V==null?void 0:V())===G()},C))},_.W("div",{class:"ytOverlayPollStickerChoicePollChoiceText"},function(){var b;
return((b=J())==null?void 0:b.text)||""}),_.W("div",{class:"ytOverlayPollStickerChoiceVotePercentage"},function(){if(typeof(V==null?void 0:V())==="undefined")var b="";
else{var z,Q,E,t;b=(V==null?void 0:V())===G()?(z=J())==null?void 0:(Q=z.selected)==null?void 0:Q.votePercentage:(E=J())==null?void 0:(t=E.unselected)==null?void 0:t.votePercentage}return b})))},"an");var EKn=_.d(function(C){var F=C.data;C=_.u(_.yH(void 0,void 0,"sDpzBb"));var G=C.next().value,V=C.next().value;return _.W("yt-overlay-poll-sticker",null,_.W(zl9,{region:function(){var J,b;return(J=F())==null?void 0:(b=J.region)==null?void 0:b.interactionRegion}},_.W("div",{class:_.py("ytOverlayPollStickerHost"),
style:_.VA({"--original-height":function(){var J;return""+(((J=F())==null?void 0:J.mainBodyHeight)||1)},
"--original-width":function(){var J;return""+(((J=F())==null?void 0:J.mainBodyWidth)||1)},
"--scaled-width":function(){var J;return""+(((J=F())==null?void 0:J.mainBodyWidth)||1)},
"--primary-surface":function(){var J,b;return xd6(((J=F())==null?void 0:(b=J.theme)==null?void 0:b.primarySurface)||0)},
"--raised-surface":function(){var J,b;return xd6(((J=F())==null?void 0:(b=J.theme)==null?void 0:b.raisedSurface)||0)},
"--secondary-surface":function(){var J,b;return xd6(((J=F())==null?void 0:(b=J.theme)==null?void 0:b.secondarySurface)||0)},
"--primary-text":function(){var J,b;return xd6(((J=F())==null?void 0:(b=J.theme)==null?void 0:b.primaryText)||0)},
"--secondary-text":function(){var J,b;return xd6(((J=F())==null?void 0:(b=J.theme)==null?void 0:b.secondaryText)||0)}})},_.W("h1",{class:"ytOverlayPollStickerQuestionText"}," ",function(){return F().questionText}," "),_.W(_.Ag,{each:function(){return F().pollChoiceConfigs||[]}},function(J,b){return _.W("div",{class:"ytOverlayPollStickerPollChoice",
"on:click":_.CZ(function(){V(G()===b()?void 0:b())})},_.W(IB_,{data:J,
index:b,selectedChoice:G}))}),_.W("div",{class:"ytOverlayPollStickerVoteCount"},function(){return typeof(G==null?void 0:G())==="undefined"?F().preVoteCountText:F().postVoteCountText}))))},"bn");_.gQ(_.d(function(C){var F=C.data;return _.W("yt-stickers-layer",null,_.W(_.Ag,{each:function(){var G;return((G=F())==null?void 0:G.stickers)||[]}},function(G){return _.W(_.a,{cond:function(){return _.y("enable_shorts_poll_stickers_web")},
then:function(){return _.W(_.a,{cond:function(){return G==null?void 0:G.pollSticker},
then:function(V){return _.W(EKn,{data:V})}})}})}))},"cn"),"yt-stickers-layer",{props:{data:_.CJ}});var OQ=function(){var C=_.B.apply(this,arguments)||this;C.showScrubber=!1;C.isWatchWhileMode=!1;C.enableAnchoredPanel=_.y("desktop_shorts_v2_anchored_panel");C.enablePollStickers=_.y("enable_shorts_poll_stickers_web");C.enableShortsModernControls=_.y("web_shorts_modern_controls");C.anchoredPanelActive=!1;C.enableLivingroomLayout=_.y("reels_enable_livingroom_layout");C.enablePlayerMetadataContainer=_.y("reels_web_enable_metadata_container");C.enableSqueezebackPanels=_.y("web_shorts_enable_squeezeback_panels");
C.useAspectRatio=_.y("web_use_aspect_ratio");C.isSqueezebackActive=!1;C.smallScreenSqueezeback=!1;C.isPlayerStarted=!1;C.overlayDensity=0;C.extractOverlay=!1;C.extractActionBar=!1;C.isOverlay=!1;C.isImmersive=!1;C.isImmersiveHorizontal=!1;C.isFullscreen=!1;C.onWindowResized=function(){var F;C.set("isImmersive",((F=window.getComputedStyle(C.hostElement))==null?void 0:F.getPropertyValue("--immersive-mode-on"))==="1");C.set("isImmersiveHorizontal",C.isImmersive&&C.enableLivingroomLayout&&!C.isWatchWhileMode)};
return C};
_.O(OQ,_.B);_.n=OQ.prototype;_.n.updateIsOverlay=function(C){this.isOverlay=C.detail.value};
_.n.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.n.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.n.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.n.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.n.onOverlayDensityChange=function(){var C=_.ot(this.hostElement).querySelector("ytd-info-panel-container-renderer");C&&(C.set("extractOverlay",this.extractOverlay),C.set("roundedContainer",this.extractOverlay))};
_.n.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.n.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.n.ready=function(){(_.y("enable_reel_action_bar_view_model")||this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer"))&&(!_.y("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.kU("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.kU("reels_action_justified_content")||"flex-start")};
_.n.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",properties:{roundedContainer:"[[extractOverlay]]",extractOverlay:"[[extractOverlay]]"}}},renderPriority:0}}};
_.n.setFakeLoadingButtons=function(){_.y("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.iQ("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.iQ("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.iQ("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.iQ("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.iQ("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()};
_.n.setEmptyOverlayMetadata=function(){_.y("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}))};
_.I6.Object.defineProperties(OQ.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.infoPanel)}}});
OQ.prototype.onOverlayDensityChange=OQ.prototype.onOverlayDensityChange;OQ.prototype.onIsActiveChanged=OQ.prototype.onIsActiveChanged;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],OQ.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],OQ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],OQ.prototype,"ytdReduxBehavior",void 0);
_.R([_.w(_.DL.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],OQ.prototype,"ytdGuideStateAwareBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],OQ.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Boolean)],OQ.prototype,"isActive",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],OQ.prototype,"hidden",void 0);_.R([_.L({value:!0}),_.Y("design:type",Boolean)],OQ.prototype,"useShortsIcon",void 0);
_.R([_.L({value:"left"}),_.Y("design:type",String)],OQ.prototype,"buttonTooltipPosition",void 0);_.R([_.L({value:_.y("reels_enable_livingroom_layout")?"top":"left"}),_.Y("design:type",String)],OQ.prototype,"likeButtonTooltipPosition",void 0);_.R([_.L({value:"none"}),_.Y("design:type",String)],OQ.prototype,"textTransform",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],OQ.prototype,"showScrubber",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],OQ.prototype,"isWatchWhileMode",void 0);_.R([_.L({reflectToAttribute:!0}),_.M("data.infoPanel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],OQ.prototype,"hasInfoPanel",null);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],OQ.prototype,"enableAnchoredPanel",void 0);_.R([_.L(),_.Y("design:type",Object)],OQ.prototype,"enablePollStickers",void 0);
_.R([_.L(),_.Y("design:type",Object)],OQ.prototype,"enableShortsModernControls",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],OQ.prototype,"anchoredPanelActive",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],OQ.prototype,"enableLivingroomLayout",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],OQ.prototype,"enablePlayerMetadataContainer",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],OQ.prototype,"enableSqueezebackPanels",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],OQ.prototype,"useAspectRatio",void 0);_.R([_.L({selector:_.Y7f,reflectToAttribute:!0}),_.Y("design:type",Object)],OQ.prototype,"isSqueezebackActive",void 0);_.R([_.L({selector:SDY,reflectToAttribute:!0}),_.Y("design:type",Object)],OQ.prototype,"smallScreenSqueezeback",void 0);
_.R([_.L({selector:LgL}),_.Y("design:type",Object)],OQ.prototype,"isPlayerStarted",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],OQ.prototype,"overlayDensity",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],OQ.prototype,"extractOverlay",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],OQ.prototype,"extractActionBar",void 0);_.R([_.L(),_.Y("design:type",Object)],OQ.prototype,"isOverlay",void 0);
_.R([_.L(),_.Y("design:type",Object)],OQ.prototype,"isImmersive",void 0);_.R([_.L(),_.Y("design:type",Object)],OQ.prototype,"isImmersiveHorizontal",void 0);_.R([_.L({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.Y("design:type",Boolean)],OQ.prototype,"isShortsImmersive",void 0);_.R([_.L({computed:"computeButtonOverride(extractActionBar)"}),_.Y("design:type",Object)],OQ.prototype,"buttonOverride",void 0);
_.R([_.L({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.Y("design:type",Object)],OQ.prototype,"actionBarButtonOverride",void 0);_.R([_.L({selector:_.gv,reflectToAttribute:!0}),_.Y("design:type",Object)],OQ.prototype,"isFullscreen",void 0);_.R([_.iP("isActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],OQ.prototype,"onIsActiveChanged",null);
_.R([_.iP("extractOverlay"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],OQ.prototype,"onOverlayDensityChange",null);_.R([_.e({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],OQ);
_.q(OQ,"ytd-reel-player-overlay-renderer",function(){if(nK_!==void 0)return nK_;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!data.videoInteractions.elementsInteractionsLayer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer"> </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enablePollStickers &amp;&amp; data.videoInteractions.elementsInteractionsLayer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <yt-stickers-layer data="[[data.videoInteractions.elementsInteractionsLayer.stickersLayerRenderer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      </yt-stickers-layer>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" extract-overlay="[[extractOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableShortsModernControls]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[!extractActionBar]]" overrides="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return nK_=C},{mode:1});var Wv9;var Xn=function(){var C=_.B.apply(this,arguments)||this;C.videoDuration=0;C.playedTime=0;C.isActive=!1;C.JSC$22606_playerEvents=new Map;return C};
_.O(Xn,_.B);_.n=Xn.prototype;_.n.created=function(){this.JSC$22606_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22606_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.n.attached=function(){this.getPlayerAndInitializeListeners()};
_.n.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22606_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.Gp(this,this.onPageChanged))};
_.n.getPlayerAndInitializeListeners=function(){var C=this,F;return _.I(function(G){if(G.nextAddress==1)return F=_.gE(),F?G.yield(F.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Gp(C,C.onPageChanged)),G.jumpTo(0));C.player=G.yieldResult;C.initializePlayerListeners();_.S9(G)})};
_.n.onPageChanged=function(C){var F=this;return _.I(function(G){if(G.nextAddress==1)return C.detail.newPageType!=="ytd-shorts"?G.return():G.yield(_.Re().getPlayerPromise(),2);F.player=G.yieldResult;F.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Gp(F,F.onPageChanged));_.S9(G)})};
_.n.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22606_playerEvents)};
_.n.onVideoDataChange=function(C){var F=this;return _.I(function(G){if(!F.player||C.type!=="newdata")return G.return();F.videoDuration=_.y("web_shorts_use_progress_state_for_gapless")?F.player.getProgressState(C.playertype).seekableEnd:F.player.getDuration(C.playertype);F.playedTime=0;_.S9(G)})};
_.n.onVideoProgress=function(C){var F=this,G,V;return _.I(function(J){if(!F.player)return J.return();G=F.player.getPresentingPlayerType();V=F.player.getPlayerState();F.videoDuration=_.y("web_shorts_use_progress_state_for_gapless")?F.player.getProgressState(G).seekableEnd:F.player.getDuration(G);F.playedTime=V===0?F.videoDuration:C;_.S9(J)})};
_.n.getPercentPlayed=function(C,F){return C?_.lV(F/C,0,1):0};
_.I6.Object.defineProperties(Xn.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 C="";return C=this.videoDuration&&this.playedTime?C+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):C+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Xn.prototype,"componentBehavior",void 0);_.R([_.w(_.Fi.YtPlayerListenerBehavior),_.Y("design:type",_.GR)],Xn.prototype,"ytPlayerListenerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Xn.prototype,"player",void 0);_.R([_.L(),_.Y("design:type",Object)],Xn.prototype,"videoDuration",void 0);_.R([_.L(),_.Y("design:type",Object)],Xn.prototype,"playedTime",void 0);_.R([_.L(),_.Y("design:type",Object)],Xn.prototype,"isActive",void 0);
_.R([_.M("videoDuration","playedTime"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Xn.prototype,"percentPlayed",null);_.R([_.M("videoDuration","playedTime"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xn.prototype,"percentPlayedStyle",null);_.R([_.M("videoDuration","isActive"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xn.prototype,"hideProgressBar",null);
_.q(Xn,"ytd-progress-bar-line",function(){if(Wv9===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);Wv9=C}C=Wv9;return C},{mode:_.oN("kevlar_poly_si_batch_j028")?1:2});var tE0;_.gQ(_.m1U,"ytm-closed-captioning-button",{props:{captionIconType:_.CJ,onClick:_.s9,ariaLabel:_.CJ,ariaPressed:_.CJ,isOverlay:_.s9,isModern:_.s9}});_.gQ(_.MMW,"desktop-shorts-volume-controls",{props:{orientation:_.CJ}});var wA=function(){var C=_.B.apply(this,arguments)||this;C.playerState=null;C.isMuted=!1;C.shortsModernControlsEnabled=_.y("web_shorts_modern_controls");C.volumeControlsOrientationState="horizontal_right";C.isOverlay=!0;C.isAdsOverlay=!1;C.captionIconType=-1;C.ariaLabel="";C.overlayDensity=0;C.JSC$22609_playerEvents=new Map;C.onClosedCaptionsButtonClick=function(){C.player&&_.yP(C.player)&&(C.player.toggleSubtitles(),C.updateCaptionIconType())};
return C};
_.O(wA,_.B);_.n=wA.prototype;_.n.created=function(){this.JSC$22609_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22609_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22609_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.n.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.m2(28662);this.playPauseButtonClientVE=_.m2(36842);this.fullscreenButtonToggleOffClientVE=_.m2(222256);this.fullscreenButtonToggleOnClientVE=_.m2(222257);var C=_.ZQ(),F=_.lm();C&&F&&(_.y("combine_ve_grafts")?(_.Of(_.ia(),this.muteButtonClientVE,F),_.Of(_.ia(),this.playPauseButtonClientVE,F)):_.fl(C,F,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.n.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22609_playerEvents),this.player=null)};
_.n.updateCaptionIconType=function(){var C=-1,F=void 0,G=_.iQ("CLOSED_CAPTIONS_DISABLED");this.player&&_.yP(this.player)&&(_.s1W(this.player)?(F=!0,G=_.iQ("CLOSED_CAPTIONS_ON"),C=1):(F=!1,G=_.iQ("CLOSED_CAPTIONS_OFF"),C=0));this.captionIconType=C;this.ariaPressedState=F;this.ariaLabel=G};
_.n.computeActionBarButtonOverride=function(){return{style:"overlay-dark",iconPosition:"icon-only",size:"L",disableBackdropFilter:!0,customColors:{backgroundColor:"transparent",color:"var(--yt-spec-static-overlay-icon-active-other)"}}};
_.n.getPlayerAndInitializeListeners=function(){var C=this,F;return _.I(function(G){if(G.nextAddress==1)return F=_.gE(),F?G.yield(F.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Gp(C,C.onPageChanged)),G.jumpTo(0));C.player=G.yieldResult;C.initializePlayerListeners();_.S9(G)})};
_.n.onPageChanged=function(C){var F=this;return _.I(function(G){if(G.nextAddress==1)return C.detail.newPageType!=="ytd-shorts"?G.return():G.yield(_.Re().getPlayerPromise(),2);F.player=G.yieldResult;F.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Gp(F,F.onPageChanged));_.S9(G)})};
_.n.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22609_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.n.onPlayerStateChange=function(C){this.playerState=C};
_.n.onPlayerVolumeChange=function(C){this.isMuted=C.muted};
_.n.onPlayPauseButtonClick=function(){var C=this,F,G;return _.I(function(V){if(V.nextAddress==1)return V.yield(_.Re().getPlayerPromise(),2);F=V.yieldResult;(G=_.ZQ())&&C.playPauseButtonClientVE&&_.ej(G,C.playPauseButtonClientVE);F.getPlayerState()!==1?F.playVideo():F.pauseVideo();_.S9(V)})};
_.n.computePlayPauseIcon=function(C){return C===2||C===-1||C===5?_.y("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.y("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.y("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.n.computeFullscreenLabel=function(C){return C?_.iQ("FULLSCREEN_EXIT_LABEL"):_.iQ("FULLSCREEN_ENTER_LABEL")};
_.n.computePlayPauseLabel=function(C){return C===1||C===3?_.iQ("PLAYER_LABEL_PAUSE"):_.iQ("PLAYER_LABEL_PLAY")};
_.n.onMuteButtonClick=function(){var C=this,F,G;return _.I(function(V){if(V.nextAddress==1)return V.yield(_.Re().getPlayerPromise(),2);F=V.yieldResult;(G=_.ZQ())&&C.muteButtonClientVE&&_.ej(G,C.muteButtonClientVE);F.isMuted()?F.unMute(!0):F.mute(!0);_.S9(V)})};
_.n.computeMuteIcon=function(C){return C?"miniplayer:volume-off":"miniplayer:volume-up"};
_.n.computeMuteLabel=function(C){return C?_.iQ("PLAYER_LABEL_UNMUTE"):_.iQ("PLAYER_LABEL_MUTE")};
_.n.onFullscreenButtonClick=function(){var C=_.ZQ();C&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.ej(C,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.ej(C,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.jN8()};
_.I6.Object.defineProperties(wA.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var C=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(){C.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-static-overlay-background-medium-light)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.y("web_shorts_modern_controls")?"player_full_exit_alt":_.y("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.y("web_shorts_modern_controls")?"player_full_enter_alt":_.y("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],wA.prototype,"componentBehavior",void 0);_.R([_.w(_.Fi.YtPlayerListenerBehavior),_.Y("design:type",_.GR)],wA.prototype,"ytPlayerListenerBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],wA.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],wA.prototype,"player",void 0);_.R([_.L(),_.Y("design:type",Object)],wA.prototype,"playerState",void 0);_.R([_.L(),_.Y("design:type",Object)],wA.prototype,"isMuted",void 0);
_.R([_.L({computed:"computePlayPauseIcon(playerState)"}),_.Y("design:type",String)],wA.prototype,"playPauseIcon",void 0);_.R([_.L({computed:"computeMuteIcon(isMuted)"}),_.Y("design:type",String)],wA.prototype,"muteIcon",void 0);_.R([_.L({selector:_.gv}),_.Y("design:type",Boolean)],wA.prototype,"isFullscreen",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],wA.prototype,"shortsModernControlsEnabled",void 0);
_.R([_.L(),_.Y("design:type",Object)],wA.prototype,"volumeControlsOrientationState",void 0);_.R([_.L(),_.Y("design:type",Object)],wA.prototype,"isOverlay",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],wA.prototype,"isAdsOverlay",void 0);_.R([_.L(),_.Y("design:type",Object)],wA.prototype,"captionIconType",void 0);_.R([_.L(),_.Y("design:type",Object)],wA.prototype,"ariaLabel",void 0);_.R([_.L(),_.Y("design:type",Object)],wA.prototype,"ariaPressedState",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],wA.prototype,"overlayDensity",void 0);_.R([_.L(),_.Y("design:type",Object)],wA.prototype,"data",void 0);_.R([_.L({computed:"computeActionBarButtonOverride()"}),_.Y("design:type",Object)],wA.prototype,"actionBarButtonOverride",void 0);_.R([_.M("playerState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],wA.prototype,"playPauseButtonData",null);
_.R([_.M("isFullscreen"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],wA.prototype,"fullscreenButtonData",null);_.R([_.L(),_.Y("design:type",Object)],wA.prototype,"onClosedCaptionsButtonClick",void 0);_.R([_.M("isFullscreen"),_.Y("design:type",String),_.Y("design:paramtypes",[])],wA.prototype,"fullscreenIcon",null);
_.q(wA,"ytd-shorts-player-controls",function(){if(tE0===void 0){var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="left-controls" class="style-scope ytd-shorts-player-controls">\n    <yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  </div>\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <div id="menu-button" class="button-container style-scope ytd-shorts-player-controls">\n      <ytd-menu-renderer data="[[data]]" is-overlay="[[isOverlay]]" three-dot-button-override="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-shorts-player-controls"></ytd-menu-renderer>\n    </div>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);tE0=C}C=tE0;return C},{mode:1});var aBY;_.gQ(_.Xhd,"yt-interstitial-view-model",{props:{data:_.CJ}});var klB=_.d(function(C){var F=C.data;return _.W("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.W("h1",{class:"reelWatchBreakViewModelHostTitle"},_.W(_.mn,{text:function(){return F().title}})),_.W("h2",{class:"reelWatchBreakViewModelHostBody"},_.W(_.mn,{text:function(){return F().body},
isOverlay:!0})),_.W(_.uC,{data:function(){return F().buttons}},{buttonViewModel:function(G,V){return _.W("div",{class:function(){return V()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.W(_.tS,{data:G.data}))}}))},"dn");
klB.idomCompat=!0;_.gQ(klB,"reel-watch-break-view-model",{props:{data:_.CJ}});var Mu=function(){return _.B.apply(this,arguments)||this};
_.O(Mu,_.B);Mu.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}}};
_.I6.Object.defineProperties(Mu.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var C;return!!_.Z((C=this.data)==null?void 0:C.renderer,jXn)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var C;return!!_.Z((C=this.data)==null?void 0:C.renderer,Fv0)}}});
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Mu.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Mu.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],Mu.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Mu.prototype,"data",void 0);
_.R([_.L({reflectToAttribute:!0}),_.M("data.renderer"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Mu.prototype,"isSurvey",null);_.R([_.L({reflectToAttribute:!0}),_.M("data.renderer"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Mu.prototype,"isInterstitialViewModel",null);_.R([_.e({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],Mu);
_.q(Mu,"ytd-reel-non-video-content-renderer",function(){if(aBY!==void 0)return aBY;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);
return aBY=C},{mode:_.oN("kevlar_poly_si_batch_j028")?1:2});var U0h;_.gQ(_.wgx,"desktop-shorts-player-controls",{});var SF=function(){var C=_.B.apply(this,arguments)||this;C.isPlayerPaused=!1;C.isPlayerStarted=!1;C.showPlayerControls=!1;C.showScrubber=!1;C.autoHideJobId=0;C.modern=_.y("web_button_rework");C.overlayType=_.kU("web_shorts_expanded_overlay_type");C.panelData=void 0;C.isWatchWhileMode=!1;C.hasError=!1;C.panelShowDelayMs=1;C.scrubberComponent={};C.isFullscreen=!1;C.shouldHideOverlay=!1;C.enableAnchoredPanel=_.y("desktop_shorts_v2_anchored_panel");C.enablePersistentAnchoredPanel=_.y("desktop_shorts_v2_persistent_anchored_panel");
C.hideWatchWhilePanel=_.y("web_shorts_hide_watch_while_panel");C.useAspectRatio=_.y("web_use_aspect_ratio");C.enableShortsModernControls=_.y("web_shorts_modern_controls");C.isPersistentPanelActive=!1;C.anchoredPanelActive=!1;C.isShortsPipActive=!1;C.smallScreenSqueezeback=!1;C.enableFlexibleOverlay=_.y("web_enable_flexible_overlay");C.overlayDensity=0;C.extractOverlay=!1;C.extractActionBar=!1;C.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
C.onWindowResized=function(){_.Bb(C,"calculateOverlayDensity",function(){C.calculateOverlayDensity()},100)};
return C};
_.O(SF,_.B);_.n=SF.prototype;_.n.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.n.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.n.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var C=_.I8().resolve(_.dB);this.isWatchWhileMode&&_.gT.addJob(function(){C.showPanel({identifier:"shorts-comments-panel",target:null})},0)}}else this.panelData=void 0};
_.n.handleShowReelsCommentsOverlayCommand=function(C){C=_.Z(C,iBY);this.isActive&&(C==null?0:C.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))};
_.n.updateEngagementPanelVisibility=function(C,F){C&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:F?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:C}})};
_.n.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.n.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.I8().resolve(_.k3).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.n.handleWatchWhilePanelScrimClick=function(){var C=_.I8().resolve(_.dB);this.activeWatchWhilePanel&&(C.hidePanel({identifier:this.activeWatchWhilePanel}),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.n.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.n.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}},renderPriority:0}}};
_.n.handlePlayerClick=function(C){var F=this,G,V;if((V=(G=window).matchMedia)!=null&&V.call(G,"(any-pointer: coarse)").matches||!C)this.showPlayerControls=!0,_.gT.cancelJob(this.autoHideJobId),this.autoHideJobId=_.c8(_.gT,function(){F.showPlayerControls=!1},4E3)};
_.n.isFirstReel=function(){return this.index===0};
_.n.handleMouseenter=function(){_.gT.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.n.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.n.handleScrubberEnter=function(){this.showScrubber=!0};
_.n.handleScrubberLeave=function(){this.showScrubber=!1};
_.n.maybeLogNonDefaultAspectRatio=function(){var C;(C=this.data)!=null&&C.thumbnail&&this.isActive&&.5625!==Mo_(this.data.thumbnail)&&_.Oss("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.n.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var C=document.querySelector("#shorts-container");if(C){var F=!1,G,V=this.playerContainer.offsetWidth,J=this.playerContainer.offsetHeight;C=C.offsetWidth/2-V/2;C>=368?(C=1,F=G=!0):C>=72?(C=0,G=!0):(C=2,G=!1);V>=600&&J>=840?C=1:window.innerWidth<=599&&(C=2,G=F=!1);this.isPersistentPanelActive&&(C=0,F=!1);this.extractActionBar=G;_.y("web_enable_flexible_overlay")&&(this.overlayDensity=C,this.extractOverlay=
F);var b;(b=this.onOverlayDensityChanged)==null||b.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar)}}};
_.n.onOverlayDensityChange=function(){var C;(C=this.onOverlayDensityChanged)==null||C.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(C=_.ot(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))C.set("overlayDensity",this.overlayDensity),C.set("extractOverlay",this.extractOverlay),C.set("extractActionBar",this.extractActionBar);if(C=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))C.overlayDensity=this.overlayDensity,C.extractOverlay=
this.extractOverlay,C.extractActionBar=this.extractActionBar};
_.n.isVideoContent=function(C){_.I8().resolve(_.k3);return!!_.Z(C,_.nd)};
_.n.isNonVideoContent=function(C){_.I8().resolve(_.k3);return!!_.Z(C,_.od)};
_.n.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.I6.Object.defineProperties(SF.prototype,{isAdsOverlay:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.adsOverlay)}},
enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var C,F;return _.y("web_enable_format_first")||((C=this.data)==null?void 0:C.adsOverlay)&&_.y("web_enable_format_first_ads_only")||((F=this.data)==null?void 0:F.reelPlayerOverlayRenderer)&&_.y("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.y("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var C;return!this.isActive||!this.isPlayerStarted||(C=this.data)!=null&&C.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var C;if(((C=this.data)==null?0:C.command)&&this.isVideoContent(this.data.command)){var F,G;if(((F=this.data)==null?0:F.adsOverlay)&&Object.keys((G=this.data)==null?void 0:G.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var V,J;if(((V=this.data)==null?0:V.reelPlayerOverlayRenderer)&&Object.keys((J=this.data)==null?void 0:J.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
SF.prototype.onOverlayDensityChange=SF.prototype.onOverlayDensityChange;SF.prototype.calculateOverlayDensity=SF.prototype.calculateOverlayDensity;SF.prototype.maybeLogNonDefaultAspectRatio=SF.prototype.maybeLogNonDefaultAspectRatio;SF.prototype.onEngagementPanelsChanged=SF.prototype.onEngagementPanelsChanged;SF.prototype.onScrubberDataChange=SF.prototype.onScrubberDataChange;SF.prototype.updateShouldHideOverlay=SF.prototype.updateShouldHideOverlay;
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],SF.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],SF.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.DL.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],SF.prototype,"ytdGuideStateAwareBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],SF.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Number)],SF.prototype,"index",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],SF.prototype,"isActive",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],SF.prototype,"isHiddenInDom",void 0);_.R([_.L(),_.Y("design:type",Object)],SF.prototype,"isPlayerPaused",void 0);_.R([_.L({selector:LgL}),_.Y("design:type",Object)],SF.prototype,"isPlayerStarted",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],SF.prototype,"showPlayerControls",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],SF.prototype,"showScrubber",void 0);_.R([_.L(),_.Y("design:type",Object)],SF.prototype,"autoHideJobId",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],SF.prototype,"modern",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],SF.prototype,"overlayType",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],SF.prototype,"ytdReduxBehavior",void 0);
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],SF.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],SF.prototype,"watchWhileEngagementPanels",void 0);_.R([_.L(),_.Y("design:type",Object)],SF.prototype,"panelData",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],SF.prototype,"isWatchWhileMode",void 0);_.R([_.L(),_.Y("design:type",String)],SF.prototype,"activeWatchWhilePanel",void 0);
_.R([_.L(),_.Y("design:type",Object)],SF.prototype,"hasError",void 0);_.R([_.L(),_.Y("design:type",Object)],SF.prototype,"panelShowDelayMs",void 0);_.R([_.L(),_.Y("design:type",Object)],SF.prototype,"scrubberComponent",void 0);_.R([_.L({selector:_.gv,reflectToAttribute:!0}),_.Y("design:type",Object)],SF.prototype,"isFullscreen",void 0);_.R([_.L(),_.Y("design:type",Object)],SF.prototype,"shouldHideOverlay",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],SF.prototype,"enableAnchoredPanel",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],SF.prototype,"enablePersistentAnchoredPanel",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],SF.prototype,"hideWatchWhilePanel",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],SF.prototype,"useAspectRatio",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],SF.prototype,"enableShortsModernControls",void 0);_.R([_.L({selector:_.Y7f,reflectToAttribute:!0}),_.Y("design:type",Object)],SF.prototype,"isPersistentPanelActive",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],SF.prototype,"anchoredPanelActive",void 0);_.R([_.L({selector:_.Ry,reflectToAttribute:!0}),_.Y("design:type",Object)],SF.prototype,"isShortsPipActive",void 0);
_.R([_.L({selector:SDY,reflectToAttribute:!0}),_.Y("design:type",Object)],SF.prototype,"smallScreenSqueezeback",void 0);_.R([_.L({reflectToAttribute:!0}),_.M("data.adsOverlay"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],SF.prototype,"isAdsOverlay",null);_.R([_.L({reflectToAttribute:!0}),_.M("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],SF.prototype,"enableFormatFirst",null);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],SF.prototype,"enableFlexibleOverlay",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],SF.prototype,"overlayDensity",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],SF.prototype,"extractOverlay",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],SF.prototype,"extractActionBar",void 0);_.R([_.L(),_.Y("design:type",Function)],SF.prototype,"onOverlayDensityChanged",void 0);
_.R([_.L(),_.M("isActive","hasError","isPlayerStarted"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],SF.prototype,"shouldRenderPlayerElements",null);_.R([_.L(),_.M("isActive","isWatchWhileMode"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],SF.prototype,"watchWhileOrPersistentActive",null);_.R([_.iP("isActive","hasError","showingExpandedOverlay"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],SF.prototype,"updateShouldHideOverlay",null);
_.R([_.L({reflectToAttribute:!0}),_.M("isActive","isPlayerStarted","data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],SF.prototype,"shouldRenderScrubber",null);_.R([_.iP("shouldRenderScrubber"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],SF.prototype,"onScrubberDataChange",null);_.R([_.M("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],SF.prototype,"overlayComponent",null);
_.R([_.iP("watchWhileEngagementPanels"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],SF.prototype,"onEngagementPanelsChanged",null);_.R([_.$z("#player-container"),_.Y("design:type",HTMLElement)],SF.prototype,"playerContainer",void 0);_.R([_.$z("#cinematic-container"),_.Y("design:type",HTMLElement)],SF.prototype,"cinematicContainer",void 0);
_.R([_.iP("isPersistentPanelActive","data.thumbnail"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],SF.prototype,"maybeLogNonDefaultAspectRatio",null);_.R([_.iP("isPersistentPanelActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],SF.prototype,"calculateOverlayDensity",null);
_.R([_.iP("overlayDensity","extractOverlay","extractActionBar"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],SF.prototype,"onOverlayDensityChange",null);_.R([_.e({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],SF);
_.q(SF,"ytd-reel-video-renderer",function(){if(U0h!==void 0)return U0h;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls data="[[data.reelPlayerOverlayRenderer.menu.menuRenderer]]" disable-upgrade="[[!isActive]]" is-ads-overlay="[[isAdsOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return U0h=C},{mode:_.oN("kevlar_poly_si_batch_j028")?1:2});var Lg=function(){var C=_.B.apply(this,arguments)||this;C.isPreviousPageShorts=!1;C.index=0;C.delayedActiveIndex=0;C.playablePreviousIndex=null;C.isPlayerPaused=!1;C.isPlayerStarted=!1;C.intersectionObserverThreshold=.6;C.fitToVisibleBounds=!1;C.pageSubtype="shorts";C.enablePreviousContinuation=_.y("shorts_in_playlists_web");C.shortsPipEnabled=_.y("web_shorts_pip");C.isDark=document.documentElement.hasAttribute("dark");C.shortsViewTransitions=_.y("web_shorts_view_transitions");C.isFullscreen=!1;C.isShortsPipActive=
!1;C.buttonOverride={iconPosition:"icon-only",size:"XL"};C.anchoredPanelActive=!1;C.isActive=!1;C.smallScreenPersistentPanel=!1;C.isPersistentPanelActive=!1;C.smallScreenSqueezeBack=!1;C.enableScrollIntoViewCenter=_.y("web_scroll_into_view_center");C.formatFirst=_.y("web_enable_format_first")||_.y("web_enable_format_first_ads_only")||_.y("web_enable_format_first_organic_only");C.enableFlexibleOverlay=_.y("web_enable_flexible_overlay");C.extractOverlay=!1;C.useAspectRatio=_.y("web_use_aspect_ratio");
C.enableShortsSequenceRefactorUnify=_.y("web_enable_shorts_sequence_refactor_unify");C.isShortsInitialized=!1;C.shortsContentList=[];C.hasDataUpdated=!1;C.playerInPosition=!1;C.hidePreviousButtonImmediately=!1;C.showPreviousButtonImmediately=!1;C.endOfNextContinuation=!1;C.currentPlayerIndex=0;C.nextReelVe=_.m2(56921);C.prevReelVe=_.m2(56922);C.loopToggleOffVe=_.m2(198013);C.loopToggleOnVe=_.m2(198014);C.ambientModeToggleVe=_.m2(227860);C.reelPlayerPausedStateRendererVe=_.m2(141313);C.storedPlaybackSpeed=
null;C.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"};C.onOverlayDensityChanged=function(F,G,V,J){F=C.getActiveReelVideo(F);C.extractOverlay=!!V;F==null||F.setAttribute("overlay-density",String(G));V===void 0||F!=null&&F.toggleAttribute("extract-overlay",
V);J===void 0||F!=null&&F.toggleAttribute("extract-action-bar",J)};
return C};
_.O(Lg,_.B);_.n=Lg.prototype;_.n.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.n.setShortsContentList=function(){var C=this,F=this.shortsContentList?[].concat(_.da(this.shortsContentList)):[],G=this.firstShortsData,V=this.reelWatchSequenceResponse;if(V=this.shortsController==null?void 0:Rnz(F,G,V!=null?V:null))G=V.newContentList,V=V.indexChange,G.length!==F.length&&(this.shortsContentList=G,V!==0&&(this.index=V,this.scrollToVideoThrottle.fire(this.index)),_.zH(this,function(){var J;(J=C.intersectionObserver)==null||J.disconnect();C.observeShorts()}))};
_.n.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.n.onResize=function(){var C=_.s3(),F=C.dispatch,G=this.calculateIsSmallWidth();F.call(C,_.rh({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:G}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.n.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatchWhilePanel:!0,shortsPanel:!0}}},
renderPriority:0}}};
_.n.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var C=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,F=C,G=0;C<250&&(F=C+this.shortsInnerContainer.clientWidth,G=24);_.jr(this.hostElement,{"--ytd-shorts-header-width":F+"px","--ytd-shorts-top-spacing":G+"px"})}};
_.n.isFirstShorts=function(C){return C&&!this.enableShortsSequenceRefactorUnify?this.index===-C.length:this.index===0};
_.n.isActiveReel=function(C,F,G){G&&(F=this.calculatePrevIndex(F,G));return C===F};
_.n.onFullscreenChange=function(){if(_.y("web_fullscreen_shorts")){var C;(C=this.getActiveReelVideo(this.activeIndex))==null||C.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.I8().resolve(_.Od).close(!0)}};
_.n.engagementPanelsChanged=function(){var C;this.watchWhileEngagementPanels=(C=this.data)==null?void 0:C.engagementPanels};
_.n.unregisterPanels=function(){var C=_.I8().resolve(_.dB);if(this.watchWhileEngagementPanels)for(var F=_.u(this.watchWhileEngagementPanels),G=F.next();!G.done;G=F.next()){var V=G.value,J=void 0,b=void 0;G=(J=V.engagementPanelSectionListRenderer)==null?void 0:(b=J.identifier)==null?void 0:b.tag;V=this.getPanelContentIdentifier(V.engagementPanelSectionListRenderer);C&&(G&&C.panelMap.delete(G),V&&_.y("web_shorts_panel_caching_bugfix")&&(J=G=void 0,(J=(G=C).unregisterPanelContent)==null||J.call(G,V)))}};
_.n.isVideoContent=function(C){return this.isVideoContentCommand(C==null?void 0:C.command)};
_.n.getActiveReelVideo=function(C){return _.ot(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+C+'"]')};
_.n.calculatePrevIndex=function(C,F){return F?C-((F==null?void 0:F.length)||0):-1};
_.n.onKeydown=function(C){var F=_.AR(C)||[];if(!_.CPr(F))if(C.code==="ArrowUp")C.preventDefault(),this.handlePrevButtonClick();else if(C.code==="ArrowDown")C.preventDefault(),this.handleNextButtonClick();else if(C.code==="KeyM")this.toggleMuteUnmuteVideo();else if(C.code==="KeyK"||C.code==="Space")this.togglePlayPauseVideo();else if((C.code==="KeyA"||C.code==="ArrowLeft")&&_.y("web_shorts_keyboard_enable_seek_shortcuts")){var G;(G=this.player)==null||G.seekBy(-5)}else if((C.code==="KeyD"||C.code===
"ArrowRight")&&_.y("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var V;(V=this.player)==null||V.seekBy(5)}};
_.n.onServiceRequestCompleted=function(C,F){C=F.data;this.enableShortsSequenceRefactorUnify?C.continuationEndpoint||C.prevContinuationEndpoint?this.reelWatchSequenceResponse=C:this.endOfNextContinuation=!0:C.continuationEndpoint&&C.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:C.entries,continuationEndpoint:C.continuationEndpoint}}),_.y("web_enable_shorts_sequence_cache_fix")&&(this.cachedReelWatchSequenceResponse=
C)):C.prevContinuationEndpoint&&C.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:C.prevEntries,prevContinuationEndpoint:C.prevContinuationEndpoint}}):this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.n.handleEngagementPanelVisibilityChanged=function(C,F){var G=_.I8().resolve(_.dB);if(C&&G){var V=this.getPanelIdentifier(C);if(F==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==V){G.hidePanel({identifier:this.activePanel});var J;this.activePanel=((J=C.identifier)==null?void 0:J.tag)||C.panelIdentifier}else this.isPersistentPanelActive=!0,_.s3().dispatch(YDh(!0)),this.anchoredPanelActive=!0,this.activePanel=V;else F==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===V&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.s3().dispatch(YDh(!1)))}};
_.n.handlePanelScrimClick=function(){var C=_.I8().resolve(_.dB);this.activePanel&&(C.hidePanel({identifier:this.activePanel}),_.s3().dispatch(YDh(!1)))};
_.n.getShortsLoopSetting=function(){var C,F,G,V,J;return _.I(function(b){switch(b.nextAddress){case 1:return _.y("kevlar_shorts_auto_advance")?b.yield(_.P0.getInstance(),2):b.return(!0);case 2:return(C=b.yieldResult)?b.yield(C.get("sfvles"),3):b.return(!0);case 3:return G=(F=b.yieldResult)!=null?F:!1,b.yield(C.get("sfvle"),4);case 4:return J=(V=b.yieldResult)!=null?V:!0,G?b.return(J):b.return(!0)}})};
_.n.handleSignalActionToggleLoopShortsOff=function(){var C=this,F,G,V;return _.I(function(J){switch(J.nextAddress){case 1:if(!C.player)return J.return();C.player.setLoopVideo(!1);F=_.ia();_.wo(F,C.loopToggleOffVe);return J.yield(_.P0.getInstance(),2);case 2:return(G=J.yieldResult)?J.yield(G.set("sfvle",!1),3):J.return();case 3:return J.yield(G.set("sfvles",!0),4);case 4:V=_.bQ(),_.nl(0,203,!1),_.nl(0,204,!0),V.save(),_.S9(J)}})};
_.n.handleSignalActionToggleLoopShortsOn=function(){var C=this,F,G,V;return _.I(function(J){switch(J.nextAddress){case 1:if(!C.player)return J.return();C.player.setLoopVideo(!0);F=_.ia();_.wo(F,C.loopToggleOnVe);return J.yield(_.P0.getInstance(),2);case 2:return(G=J.yieldResult)?J.yield(G.set("sfvle",!0),3):J.return();case 3:return J.yield(G.set("sfvles",!0),4);case 4:V=_.bQ(),_.nl(0,203,!0),_.nl(0,204,!0),V.save(),_.S9(J)}})};
_.n.handleSignalActionToggleCinematicShortsOn=function(){vdB(!0);var C;(C=this.JSC$22633_cinematicController)==null||_.kIT(C,!0);_.wo(_.ia(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.n.handleSignalActionToggleCinematicShortsOff=function(){vdB(!1);var C;(C=this.JSC$22633_cinematicController)==null||_.kIT(C,!1);_.wo(_.ia(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.n.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.n.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.n.unhideCurrentOverlay=function(){this.hasDataUpdated=!0;if(this.overlayContainer&&this.playerInPosition){var C=this.overlayContainer.querySelector("#experiment-overlay");C&&_.gT.addLowPriorityJob(function(){C.style.display="unset"},100)}};
_.n.getCurrentShort=function(){if(this.currentEndpoint){var C=this.currentEndpoint;if(this.isNonVideoContentCommand(C)){var F=_.Z(C,_.od);return{reelNonVideoContentRenderer:_.Z(F==null?void 0:F.renderer,_.KH),command:C}}if(this.data){var G;F=(G=_.Z(this.currentEndpoint,_.nd))==null?void 0:G.thumbnail;var V;G=(V=this.data.overlay)==null?void 0:V.reelPlayerOverlayRenderer;_.I8().resolve(_.k3);C=this.data;var J,b;V=(J=C.overlay)==null?void 0:(b=J.shortsAdsRenderer)==null?void 0:b.adSlots;if(V!==void 0)V.length===
0?(_.LY("Shorts ads returned no ad slots."),C=void 0):(V.length>1&&_.LY("Shorts ads has more than one ad slots."),C=_.Z(V[0],_.wa$));else{var z,Q;C=_.Z((z=C.overlay)==null?void 0:(Q=z.shortsAdsRenderer)==null?void 0:Q.overlay,_.wa$)}z=C;C=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.Z(this.currentEndpoint,_.nd),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});var E;return{reelPlayerOverlayRenderer:G,thumbnail:F,command:C,adsOverlay:z,
videoId:(E=_.Z(this.currentEndpoint,_.nd))==null?void 0:E.videoId}}}};
_.n.created=function(){var C=this;this.scrollToVideoThrottle=new _.FX(function(F){var G;(G=C.getActiveReelVideo(F))==null||G.scrollIntoView({behavior:"smooth",block:"nearest",inline:C.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.FX(function(F){var G;(G=C.getActiveReelVideo(F))==null||G.scrollIntoView({behavior:"auto",block:"nearest",inline:C.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.shortsController=_.I8().resolve(_.k3);this.maybeCreateIntersectionObserver()};
_.n.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.n.attached=function(){var C=this;_.I8().resolve(_.k3).registerRootElement(this);this.pageScrollElement=_.ot(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.Gp(this,this.processResetAction));_.y("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var F=C.getActiveReelVideo(C.activeIndex);C.maybeCreateIntersectionObserver();F==null||F.scrollIntoView({behavior:"instant",
block:"nearest",inline:C.enableScrollIntoViewCenter?"center":"start"});C.shortsContainer.style.overflowY="scroll"}))};
_.n.updateReelWatchSequenceResponse=function(){var C=this,F;if(_.y("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&((F=_.Z(this.currentEndpoint,_.nd))==null?0:F.sequenceParams)&&!this.reelWatchSequenceResponse){var G;(G=this.shortsController)==null||PzY(G,this.currentEndpoint).then(function(V){V&&(C.reelWatchSequenceResponse=V,_.gT.addLowPriorityJob(function(){C.observeShorts()}))})}};
_.n.calculateSqueezebackPanelSize=function(){var C=this,F=window.innerWidth-456-(window.innerHeight-106)*.5625;_.gT.addLowPriorityJob(function(){F<360?_.s3().dispatch(TG6(!0)):(C.hostElement.style.setProperty("--anchored-panel-width",Math.min(F,480)+"px"),_.s3().dispatch(TG6(!1)))})};
_.n.detached=function(){var C=_.I8().resolve(_.k3);C.rootElement=void 0;var F;(F=C.unsubscribeFromStore)==null||F.call(C);C.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.Gp(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.n.onResizeFinished=function(C,F){var G=this,V=new ResizeObserver(function(){G.shortsContainer.style.overflowY="hidden";_.gT.addLowPriorityJob(function(){F()},100)});
V.observe(C);return V};
_.n.resetDocumentScrollTop=function(){var C,F;if((C=document)==null?0:(F=C.scrollingElement)==null?0:F.scrollTop)document.scrollingElement.scrollTop=0};
_.n.loadPage_=function(C){var F=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),C){var G;!_.y("web_enable_delay_shorts_sequence_call")&&((G=_.Z(this.currentEndpoint,_.nd))==null?0:G.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=C;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){F.isPlayerStarted&&(F.handleOnPlaybackCommand(),F.afterPlayerStarted=function(){})};
this.registerPanel(C)}};
_.n.afterPlayerStarted=function(){};
_.n.handleOnPlaybackCommand=function(){if(_.y("web_shorts_comment_stickers")&&this.isPlayerStarted){var C,F=(C=_.Z(this.currentEndpoint,_.nd))==null?void 0:C.onPlaybackCommand;F&&this.ytComponentBehavior.resolveCommand(F)}};
_.n.maybeCreateIntersectionObserver=function(){var C=this,F=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==F){this.intersectionObserverThreshold=F;var G={rootMargin:"0px",threshold:F},V;(V=this.intersectionObserver)==null||V.disconnect();this.intersectionObserver=new IntersectionObserver(function(J){J=_.u(J);for(var b=J.next();!b.done;b=J.next())if(b=b.value,b.intersectionRatio>F){b=Number(b.target.id);if(isNaN(b))break;if(b===C.index)break;
_.Tfw();C.loadVideo(b);_.XI("r_vtc")}},G);
this.enableShortsSequenceRefactorUnify||this.observeShorts()}};
_.n.observeShorts=function(){var C=[].concat(_.da(_.ot(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));C=_.u(C);for(var F=C.next();!F.done;F=C.next()){F=F.value;var G=void 0;(G=this.intersectionObserver)==null||G.observe(F)}};
_.n.initCsi=function(){_.N9n("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var C={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"}},F,G;if((F=this.playerData)==null?0:(G=F.cacheMetadata)==null?0:G.isCacheHit)C.isCacheHit=!0;var V;if(F=(V=_.Z(this.currentEndpoint,_.nd))==null?void 0:
V.prefetchTaskId)C.prefetchInfo={taskId:F};_.UZ(C)};
_.n.isAd=function(){var C,F;return!!((C=_.Z(this.currentEndpoint,_.nd))==null?0:(F=C.adClientParams)==null?0:F.isAd)};
_.n.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.n.getPlayerContainer=function(){var C;return(C=_.ot(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:C.playerContainer};
_.n.onPlayerStateChange=function(C){var F=this;this.isPlayerPaused=C===2;C!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?C===1&&this.index===0&&(this.isPlayerStarted||_.s3().dispatch(odh(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.s3().dispatch(odh(!0)));this.player&&!this.player.getLoopVideo()&&_.gT.addLowPriorityJob(function(){F.getShortsLoopSetting().then(function(G){var V;(V=F.player)==null||V.setLoopVideo(G)})});
this.isPlayerPaused&&_.y("web_shorts_paused_state_logging")&&_.cA(_.ZQ(),[this.reelPlayerPausedStateRendererVe])};
_.n.isShortPlayable=function(){if(_.y("kevlar_playable_short_killswitch"))return!0;var C;return(C=this.playerData)!=null&&C.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.n.setNormalPlaybackSpeed=function(){var C=this,F,G;return _.I(function(V){if(V.nextAddress==1)return V.yield(C.getPlayer().getPlayerPromise(),2);F=V.yieldResult;G=F.getPlaybackRate();G!==1&&(C.storedPlaybackSpeed=G,F.setPlaybackRate(1));_.S9(V)})};
_.n.restorePlaybackSpeed=function(){var C=this,F;return _.I(function(G){if(G.nextAddress==1)return C.storedPlaybackSpeed===null?G.jumpTo(0):G.yield(C.getPlayer().getPlayerPromise(),3);F=G.yieldResult;F.setPlaybackRate(C.storedPlaybackSpeed);C.storedPlaybackSpeed=null;_.S9(G)})};
_.n.playerDataChanged=function(){var C=this,F,G,V,J,b,z,Q,E,t;return _.I(function(k){if(k.nextAddress==1){F=C.getPlayer();C.enableShortsSequenceRefactorUnify||(G=C.intersectionObserver)==null||G.disconnect();if(C.playerData){if(((V=C.playerData.videoDetails)==null?void 0:V.videoId)!==((J=F.getPlayer())==null?void 0:J.getVideoData().video_id)){b={};if(z=_.Z(C.currentEndpoint,_.nd))b.watch_endpoint=z,z.endTimeSeconds&&(b.end=z.endTimeSeconds);F.loadVideoWithPlayerResponse(C.playerData,b)}}else return k.return();
return C.player?k.jumpTo(2):k.yield(F.getPlayerPromise(),3)}k.nextAddress!=2&&(C.player=k.yieldResult,C.JSC$22633_playerStateChangeListener=C.onPlayerStateChange.bind(C),C.player.addEventListener("onStateChange",C.JSC$22633_playerStateChangeListener),_.y("kevlar_client_enable_shorts_player_bootstrap")&&_.Mx(),C.scrollToVideoThrottle.fire(C.index),C.movePlayerToVideo(C.index),_.gT.addLowPriorityJob(function(){C.getShortsLoopSetting().then(function(U){var H;(H=C.player)==null||H.setLoopVideo(U)})}),
_.cpP.resolve(C.player),C.player.syncVolume(),C.getPlayer().focusOnPlayer());
C.enableShortsSequenceRefactorUnify||_.gT.addLowPriorityJob(function(){C.observeShorts()},100);
Q=C.player.getPlayerState(C.player.getPresentingPlayerType());Q!==1||C.isPlayerStarted||_.s3().dispatch(odh(!0));C.updateBackNavContainerWidth();E=_.Z(C.currentEndpoint,_.nd);((t=E)==null?0:t.startTimeSeconds)&&C.player.seekTo(E.startTimeSeconds);if(C.JSC$22633_cinematicController||C.cinematicsInitializeJobId)return k.return();C.cinematicsInitializeJobId=_.gT.addLowPriorityJob(function(){C.initCinematicController();C.cinematicsInitializeJobId=void 0});
_.S9(k)})};
_.n.onShortUndoDismiss=function(){var C=this,F=qDY().pop();F!==void 0&&(_.zH(this,function(){C.showCardWithIndex(F)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.n.onShortsDismiss=function(C){if(C=C.detail.reelDismissalActionRenderer)(C=_.Z(C.onDismissalCompletionRenderer,_.rGl))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:C}}}),this.scrollAndDismissCard()};
_.n.processReelNonVideoContentDismissalCommand=function(C){var F=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);C=_.Z(C,VEl);this.activeDimissalTimeout=setTimeout(function(){F.scrollAndDismissCard()},Number(C==null?void 0:C.delayMs))};
_.n.scrollAndDismissCard=function(){var C=this,F=this.index;qDY().push(F);_.zH(this,function(){var G=C.getPlayableNextIndex();G!==null&&(G=C.getActiveReelVideo(G),C.hideCardWithIndex(F),G==null||G.scrollIntoView({behavior:"smooth",block:"nearest",inline:C.enableScrollIntoViewCenter?"center":"start"}))})};
_.n.hideCardWithIndex=function(C){if(C=this.getActiveReelVideo(C))C.hidden=!0};
_.n.showCardWithIndex=function(C){if(C=this.getActiveReelVideo(C))C.hidden=!1};
_.n.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.n.activeChanged=function(C){_.s3().dispatch(_.rh({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:C}}));if(C)document.addEventListener("keydown",_.Gp(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var F;(F=this.player)==null||F.sendAbandonmentPing()}var G;(G=this.player)==null||G.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.Gp(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.n.graftClientVisualElements=function(){if(this.data){var C=_.ia();_.B4G(C,_.mE({response:this.reelWatchSequenceResponse}));_.Of(C,this.nextReelVe);_.Of(C,this.prevReelVe);_.y("kevlar_shorts_auto_advance")&&(_.Of(C,this.loopToggleOffVe),_.Of(C,this.loopToggleOnVe));_.Of(C,this.ambientModeToggleVe);_.cA(_.ZQ(),[this.nextReelVe,this.prevReelVe]);_.y("web_shorts_paused_state_logging")&&_.Of(C,this.reelPlayerPausedStateRendererVe)}};
_.n.graftNvcRenderer=function(){var C,F,G,V,J,b,z=this.enableShortsSequenceRefactorUnify?(C=this.shortsContentList)==null?void 0:(F=C[this.index])==null?void 0:F.command:this.index<0?(G=this.shortsProcessedPrevSequence)==null?void 0:(V=G[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:V.command:(J=this.shortsProcessedSequence)==null?void 0:(b=J[this.index])==null?void 0:b.command;if(z&&this.isNonVideoContentCommand(z)){C=_.Z(z,_.od);var Q,E;(C=(Q=_.Z(C==null?void 0:C.renderer,_.KH))==
null?void 0:(E=Q.loggingDirectives)==null?void 0:E.trackingParams)&&_.ia().graftServerVe(C)}};
_.n.setActiveIndex=function(){_.I8().resolve(_.k3).setActiveIndex(this.index)};
_.n.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.n.lazyUpdateMiniplayerData=function(){var C=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.gT.addLowPriorityJob(function(){C.updateMiniplayerData();C.updateMiniplayerDataJobId=void 0}))};
_.n.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.gT.cancelJob(this.updateMiniplayerDataJobId)};
_.n.updateMiniplayerData=function(){var C,F,G,V=_.I8().resolve(_.Od),J={shortsData:this.getCurrentShort(),previousButtonDisabled:!((C=this.prevButtonData)==null||!C.isDisabled),nextButtonDisabled:!((F=this.nextButtonData)==null||!F.isDisabled),playabilityStatus:(G=this.playerData)==null?void 0:G.playabilityStatus};_.aK(V,J)};
_.n.resetPlayerLocation=function(){var C=this.getPlayer();this.initialPlayerContainer&&C.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.n.movePlayerToVideo=function(C,F){var G=this;F=F===void 0?!0:F;var V=this.getActiveReelVideo(C),J=this.getPlayer();if(V){this.overlayContainer?V.appendChild(this.overlayContainer):(this.overlayContainer=_.ot(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,V.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||J.appendTo(this.overlayContainer.playerContainer,void 0,!0));var b;(b=this.player)==null||b.setSize(NaN,NaN);this.isActive||_.c8(_.gT,function(){G.isActive=
!0});
J.style.visibility="visible";this.playerInPosition=!0;this.hasDataUpdated&&this.unhideCurrentOverlay();_.y("reels_web_disable_rtr_tick")||_.y("reels_web_use_pbs_first_shorts")&&C===0||_.NV("r_tr");this.currentPlayerIndex=C;V.appendChild(this.errorScreenContainer);var z;(z=this.JSC$22633_cinematicController)==null||_.Hf0(z)}else F?_.gT.addLowPriorityJob(function(){G.movePlayerToVideo(G.index,!1)}):Math.random()<=_.a8("web_shorts_error_logging_threshold")&&_.R1(new _.Ay("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:F,
index:C}))};
_.n.enableFormatFirst=function(C){return _.y("web_enable_format_first")||C.adsOverlay&&_.y("web_enable_format_first_ads_only")||C.reelPlayerOverlayRenderer&&_.y("web_enable_format_first_organic_only")};
_.n.getAspectRatio=function(C){if(this.enableFormatFirst(C))return(C==null?0:C.thumbnail)&&Mo_(C.thumbnail)?"--ytd-shorts-player-ratio: "+Mo_(C.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.n.getBackgroundImage=function(C){if(C!=null&&C.thumbnail)return(C=_.Ye(C.thumbnail.thumbnails))?'background-image:url("'+C+'");':"background-color:black;"};
_.n.onPersistentPanelActiveChanged=function(){var C=this.getCurrentShort();if(C&&this.enableFormatFirst(C)&&(C==null?0:C.thumbnail)&&Mo_(C.thumbnail)!==.5625){var F;(F=this.player)==null||F.setSize(NaN,NaN)}};
_.n.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.n.moveCinematicsToVideo=function(){var C=_.ot(this.hostElement).querySelector("ytd-reel-video-renderer");(C==null?0:C.cinematicContainer)&&C.cinematicContainer!==this.shortsCinematicContainer.parentElement&&C.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.n.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.n.updatePrevButtonData=function(){var C=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(C){var F;this.prevButtonData=C=Object.assign({},C,{accessibility:{label:_.iQ("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:C.isDisabled||this.index===-(((F=this.shortsProcessedPrevSequence)==null?void 0:F.length)||0),tooltip:this.isUpArrowHidden?"":_.iQ("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=C=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.n.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.n.updateNextButtonData=function(){var C=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(C){var F;this.nextButtonData=C=Object.assign({},C,{accessibility:{label:_.iQ("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:C.isDisabled||this.index===((F=this.shortsProcessedSequence)==null?void 0:F.length),tooltip:_.iQ("NEXT_VIDEO_LABEL")||""})}};
_.n.getPlayablePreviousIndex=function(){for(var C,F=this.index-1;F>=-(((C=this.prevShortsSequence)==null?void 0:C.length)||0);F--)if(!qDY().includes(F))return F;return null};
_.n.getIndexInSequence=function(C,F){return C.findIndex(function(G){var V;return((V=_.Z(G.command,_.nd))==null?void 0:V.videoId)===F})};
_.n.handlePrevButtonClick=function(C){var F=this,G,V;return _.I(function(J){G=F.getPlayablePreviousIndex();if(G===null)return J.return();F.gestureType=((V=C)==null?void 0:V.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";G===0&&(F.hidePreviousButtonImmediately=!0);if(F.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){F.transitionToVideoThrottle.fire(G)}),J.return();
F.scrollToVideoThrottle.fire(G);_.S9(J)})};
_.n.getPlayableNextIndex=function(){for(var C,F,G=this.index+1;G<(this.enableShortsSequenceRefactorUnify?(C=this.shortsContentList)==null?void 0:C.length:((F=this.shortsProcessedSequence)==null?void 0:F.length)||0);G++)if(!qDY().includes(G))return G;return null};
_.n.handleNextButtonClick=function(C,F){var G=this,V,J;return _.I(function(b){V=G.getPlayableNextIndex();if(V===null)return b.return();V===1&&(G.showPreviousButtonImmediately=!0);G.gestureType=((J=C)==null?void 0:J.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";F&&(G.gestureType=F);if(G.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){G.transitionToVideoThrottle.fire(V)}),b.return();
G.scrollToVideoThrottle.fire(V);_.S9(b)})};
_.n.handleReelNavigateCommand=function(C,F,G){(C=_.Z(C,GlT))&&F&&C.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(G)};
_.n.loadVideo=function(C,F){F=F===void 0?!1:F;if(C!==this.currentPlayerIndex){_.s3().dispatch(odh(!1));if(this.isAd()&&!F){var G;(G=this.player)==null||G.notifyShortsAdSwipeEvent()}if((F=this.JSC$22633_cinematicController)!=null){var V;(V=F.currentCinematicEffect)==null||V.pause()}if((V=this.JSC$22633_cinematicController)!=null){var J;(J=V.currentCinematicEffect)==null||J.clear()}V=C>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(V));
this.getPlayer().style.visibility="hidden";this.hasDataUpdated=this.playerInPosition=!1;this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var b,z,Q,E,t,k;J=this.enableShortsSequenceRefactorUnify?(b=this.shortsContentList)==null?void 0:(z=b[C])==null?void 0:z.command:C<0?(Q=this.shortsProcessedPrevSequence)==null?void 0:(E=Q[this.shortsProcessedPrevSequence.length+C])==null?void 0:E.command:(t=this.shortsProcessedSequence)==null?void 0:(k=t[C])==
null?void 0:k.command;this.index=C;this.gestureType||(this.gestureType=V?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");J&&this.isVideoContentCommand(J)&&(this.ytComponentBehavior.resolveCommand(J,{form:{createScreenConfig:{clickedVisualElement:V?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(J&&this.isNonVideoContentCommand(J)){this.currentEndpoint=J;this.data=void 0;b=_.ia();z=_.Z(J,_.od);var U,H;(z=(U=
_.Z(z==null?void 0:z.renderer,_.KH))==null?void 0:(H=U.screenLoggingData)==null?void 0:H.screenVeType)&&_.NJ(b,z);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo();(U=this.getActiveReelVideo(C))&&U.appendChild(this.overlayContainer)}var l,N;U=this.enableShortsSequenceRefactorUnify?((l=this.shortsContentList)==null?void 0:l.length)===C+1:((N=this.reelWatchSequenceResponse)==null?void 0:N.entries)&&C===this.reelWatchSequenceResponse.entries.length-1;var S;if(((S=
this.reelWatchSequenceResponse)==null?0:S.continuationEndpoint)&&U){var f,c;l={contentPlaybackContext:_.Rv({},(c=_.Z((f=this.currentEndpoint)==null?void 0:f.commandMetadata,_.GU))==null?void 0:c.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:l})}var A,T,P;((A=this.reelWatchSequenceResponse)==null?0:A.prevContinuationEndpoint)&&C===-(((T=this.reelWatchSequenceResponse)==null?void 0:(P=T.prevEntries)==null?void 0:P.length)||
0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.n.setMiniplayerPreview=function(C){C=(C===void 0?0:C)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var F,G,V,J,b=_.I8().resolve(_.Od),z={shortsData:void 0,shortsPreviewThumbnail:C?this.enableShortsSequenceRefactorUnify?(F=this.shortsContentList)==null?void 0:(G=F[C])==null?void 0:G.thumbnail:(V=this.shortsProcessedSequence)==null?void 0:(J=V[C])==null?void 0:J.thumbnail:void 0};_.aK(b,z)};
_.n.updateTitle=function(C){var F,G;C=(C==null?0:C.adSlots)?"":(G=C==null?void 0:(F=C.videoDetails)==null?void 0:F.title)!=null?G:"";_.oo(this.hostElement,"yt-update-title",C)};
_.n.registerPanel=function(C){var F=_.I8().resolve(_.dB);if(F){C=_.u(C.engagementPanels||[]);for(var G=C.next();!G.done;G=C.next()){G=G.value;var V=this.getPanelContentIdentifier(G.engagementPanelSectionListRenderer),J=void 0,b=void 0;(b=(J=F).registerPanelContent)==null||b.call(J,V,G)}}};
_.n.getPanelIdentifier=function(C){var F;return(C==null?void 0:(F=C.identifier)==null?void 0:F.tag)||(C==null?void 0:C.panelIdentifier)||(C==null?void 0:C.targetId)};
_.n.getPanelContentIdentifier=function(C){var F;return(C==null?void 0:C.targetId)||(C==null?void 0:C.panelIdentifier)||(C==null?void 0:(F=C.identifier)==null?void 0:F.tag)};
_.n.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.reelWatchSequenceResponse=this.data=void 0;this.shortsContentList=[];this.currentEndpoint=void 0;this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.s3().dispatch(odh(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.firstShortsData=void 0;_.s3().dispatch(YDh(!1));var C;(C=this.shortsController)!=
null&&(C.dismissedIndices=[]);var F;(F=this.shortsController)!=null&&F.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.I8().resolve(_.Od).close(!0)};
_.n.processAppendReelWatchSequenceContinuationEntriesAction=function(C){var F=this,G;(G=this.intersectionObserver)==null||G.disconnect();C=C.appendReelWatchSequenceContinuationEntriesAction;if(C==null?0:C.entries){var V;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.da(((V=this.reelWatchSequenceResponse)==null?void 0:V.entries)||[]),_.da(C.entries)),continuationEndpoint:C.continuationEndpoint})}else if(C==null?0:C.prevEntries){var J;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.da(((J=this.reelWatchSequenceResponse)==null?void 0:J.prevEntries)||[]),_.da(C.prevEntries)),prevContinuationEndpoint:C.prevContinuationEndpoint});_.gT.addLowPriorityJob(function(){F.movePlayerToVideo(F.index);var b;(b=F.getActiveReelVideo(F.index))==null||b.scrollIntoView({block:"nearest",inline:F.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.gT.addLowPriorityJob(function(){F.observeShorts()},100)};
_.n.processWatchSequence=function(C){var F=this;return C.map(function(G){G=G.command;if(F.isVideoContentCommand(G)){var V=_.Z(G,_.nd);return{reelPlayerOverlayRenderer:_.Z(V==null?void 0:V.overlay,_.qbl),thumbnail:V.thumbnail,command:G}}return F.isNonVideoContentCommand(G)?(V=_.Z(G,_.od),{reelNonVideoContentRenderer:_.Z(V==null?void 0:V.renderer,_.KH),command:G}):{command:G}})};
_.n.calculateIntersectionObserverThreshold=function(){var C=_.ot(this.hostElement).querySelector("ytd-reel-video-renderer"),F=1;(C==null?0:C.offsetHeight)&&(C==null?0:C.offsetWidth)&&(F=Math.min(C.offsetHeight,this.shortsContainer.offsetHeight)/C.offsetHeight*(Math.min(C.offsetWidth,this.shortsContainer.offsetWidth)/C.offsetWidth));return Math.round(F*.6*10)/10};
_.n.isVideoContentCommand=function(C){_.I8().resolve(_.k3);return!!_.Z(C,_.nd)};
_.n.isNonVideoContentCommand=function(C){_.I8().resolve(_.k3);return!!_.Z(C,_.od)};
_.n.initCinematicController=function(){var C=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22633_cinematicController=new _.lk(this.shortsCinematicContainer,this.player);var F,G=_.Z((F=this.data)==null?void 0:F.background,_.FJ);_.Udn(this.JSC$22633_cinematicController,G);_.kIT(this.JSC$22633_cinematicController,BG_(G));_.aa0(this.JSC$22633_cinematicController);_.gT.addLowPriorityJob(function(){C.moveCinematicsToVideo()})}};
_.n.handleMiniplayerNavigateShorts=function(C){C==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():C==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.n.handleSignalActionToggleShortsPictureInPicture=function(){if(_.I8().resolve(_.Od).pictureInPictureSupported()){var C=_.I8().resolve(_.k3);if(_.y("web_shorts_pip")){var F=_.I8().resolve(_.Od);C.isShortsPipActive()?F.deactivate():F.isMiniplayerActive()||(_.v0().shortsPipActivation=!0,_.dMt(F))}}else(C=this.player)==null||C.togglePictureInPicture()};
_.I6.Object.defineProperties(Lg.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var C;if((C=this.reelWatchSequenceResponse)!=null&&C.prevEntries)return this.processWatchSequence([].concat(_.da(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence)return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.da(this.prevShortsSequence))}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var C;if((C=this.reelWatchSequenceResponse)!=null&&C.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var C=this;if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var F;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((F=this.shortsProcessedSequence)==null?void 0:F.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var G;F=_.Z((G=this.firstShortsData)==null?void 0:G.command,_.nd);if(F==null||!F.videoId)return this.shortsProcessedSequence;G=this.getIndexInSequence(this.shortsSequence,
F.videoId);if(G!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=G,_.gT.addLowPriorityJob(function(){C.transitionToVideoThrottle.fire(C.index);C.movePlayerToVideo(C.index)}));
return[].concat(_.da(this.shortsSequence))}return[this.firstShortsData].concat(_.da(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var C=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;C&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(C)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 C,F;return this.index===((C=this.reelWatchSequenceResponse)==null?void 0:(F=C.entries)==null?void 0:F.length)}var G;return!((G=this.reelWatchSequenceResponse)==null?0:G.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var C;(C=this.delayedActiveIndexUpdateDebouncer)==null||C.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var C,F,G;return this.isShortPlayable()||((F=_.Z((C=this.data)==null?void 0:C.watchStatus,_.DQy))==null?void 0:(G=F.style)==null?void 0:G.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var C=this,F=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),G;if((this.data||F)&&(((G=this.data)==null?0:G.engagementPanels)||this.isAd()||F)){F=!1;this.activePanel="shorts-comments-panel";var V;G=_.u(((V=this.data)==null?void 0:V.engagementPanels)||[]);for(V=G.next();!V.done;V=G.next())if(this.getPanelIdentifier(V.value.engagementPanelSectionListRenderer)===this.activePanel){F=!0;break}if(this.isPersistentPanelActive){var J=
_.I8().resolve(_.dB);_.c8(_.gT,function(){J.showPanel({identifier:C.activePanel,target:null})},100)}var b;
V=[].concat(_.da(Object.values(((b=this.data)==null?void 0:b.engagementPanels)||{})));b=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);G=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return b===void 0&&G===void 0||(b==null?0:b.isDisabled)||(G==null?void 0:G.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||
!F?(F=V==null?void 0:V.findIndex(function(z){var Q,E;return((Q=z.engagementPanelSectionListRenderer)==null?void 0:(E=Q.identifier)==null?void 0:E.tag)==="shorts-comments-panel"}),F===-1||F===void 0||V!=null&&V.splice(F,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.iQ("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.iQ("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:_.iQ("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.iQ("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(_.da(Object.values(V||
{})))):V}}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var C=this,F,G,V;if((F=this.playerData)==null?0:(G=F.playabilityStatus)==null?0:(V=G.errorScreen)==null?0:V.playerInterstitialRenderer)return _.gT.addLowPriorityJob(function(){C.movePlayerToVideo(C.index)}),this.playerData.playabilityStatus.errorScreen;
var J,b;return((J=this.data)==null?void 0:J.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((b=this.data)==null?0:b.watchStatus)&&_.Z(this.data.watchStatus,_.kLl)?(_.gT.addLowPriorityJob(function(){C.movePlayerToVideo(C.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.I6.Object.defineProperties(Lg,{template:{configurable:!0,enumerable:!0,get:function(){if(bB0===void 0){var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[!enableShortsSequenceRefactorUnify]]" 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      <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    </template>\n    <template is="dom-if" if="[[enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsContentList]]" 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    </template>\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);bB0=C}C=bB0;return C}}});
Lg.prototype.onNextButtonDataChange=Lg.prototype.onNextButtonDataChange;Lg.prototype.onPrevButtonDataChange=Lg.prototype.onPrevButtonDataChange;Lg.prototype.onPersistentPanelActiveChanged=Lg.prototype.onPersistentPanelActiveChanged;Lg.prototype.lazyUpdateMiniplayerData=Lg.prototype.lazyUpdateMiniplayerData;Lg.prototype.onShortsPipActiveChanged=Lg.prototype.onShortsPipActiveChanged;Lg.prototype.setActiveIndex=Lg.prototype.setActiveIndex;Lg.prototype.graftNvcRenderer=Lg.prototype.graftNvcRenderer;
Lg.prototype.graftClientVisualElements=Lg.prototype.graftClientVisualElements;Lg.prototype.onActiveChanged=Lg.prototype.onActiveChanged;Lg.prototype.onShortsDismiss=Lg.prototype.onShortsDismiss;Lg.prototype.onShortUndoDismiss=Lg.prototype.onShortUndoDismiss;Lg.prototype.playerDataChanged=Lg.prototype.playerDataChanged;Lg.prototype.afterPlayerStarted=Lg.prototype.afterPlayerStarted;Lg.prototype.updateReelWatchSequenceResponse=Lg.prototype.updateReelWatchSequenceResponse;
Lg.prototype.unhideCurrentOverlay=Lg.prototype.unhideCurrentOverlay;Lg.prototype.onServiceRequestCompleted=Lg.prototype.onServiceRequestCompleted;Lg.prototype.engagementPanelsChanged=Lg.prototype.engagementPanelsChanged;Lg.prototype.onFullscreenChange=Lg.prototype.onFullscreenChange;Lg.prototype.onResize=Lg.prototype.onResize;Lg.prototype.setShortsContentList=Lg.prototype.setShortsContentList;Lg.prototype.setFirstShortsData=Lg.prototype.setFirstShortsData;
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Lg.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.ij.YtPageBehavior),_.Y("design:type",Object)],Lg.prototype,"ytPageBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],Lg.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.AY),_.Y("design:type",Object)],Lg.prototype,"ironResizableBehavior",void 0);
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Lg.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.T6),_.Y("design:type",Object)],Lg.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.w(_.DL.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],Lg.prototype,"ytdGuideStateAwareBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],Lg.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Lg.prototype,"data",void 0);
_.R([_.L(),_.Y("design:type",Object)],Lg.prototype,"playerData",void 0);_.R([_.L(),_.Y("design:type",Object)],Lg.prototype,"reelWatchSequenceResponse",void 0);_.R([_.L(),_.Y("design:type",Object)],Lg.prototype,"cachedReelWatchSequenceResponse",void 0);_.R([_.L(),_.Y("design:type",Object)],Lg.prototype,"cachedSequenceParams",void 0);_.R([_.L(),_.Y("design:type",Object)],Lg.prototype,"cachedSequenceProvider",void 0);_.R([_.L(),_.Y("design:type",Object)],Lg.prototype,"currentEndpoint",void 0);
_.R([_.L(),_.Y("design:type",Object)],Lg.prototype,"nextButtonData",void 0);_.R([_.L(),_.Y("design:type",Object)],Lg.prototype,"prevButtonData",void 0);_.R([_.L(),_.Y("design:type",Object)],Lg.prototype,"isPreviousPageShorts",void 0);_.R([_.L(),_.Y("design:type",Object)],Lg.prototype,"index",void 0);_.R([_.L(),_.Y("design:type",Object)],Lg.prototype,"delayedActiveIndex",void 0);_.R([_.L(),_.Y("design:type",Object)],Lg.prototype,"playablePreviousIndex",void 0);
_.R([_.L(),_.Y("design:type",Object)],Lg.prototype,"player",void 0);_.R([_.L(),_.Y("design:type",Object)],Lg.prototype,"isPlayerPaused",void 0);_.R([_.L({selector:LgL}),_.Y("design:type",Object)],Lg.prototype,"isPlayerStarted",void 0);_.R([_.L(),_.Y("design:type",Object)],Lg.prototype,"intersectionObserver",void 0);_.R([_.L(),_.Y("design:type",Number)],Lg.prototype,"cinematicsInitializeJobId",void 0);_.R([_.L(),_.Y("design:type",Number)],Lg.prototype,"updateMiniplayerDataJobId",void 0);
_.R([_.L(),_.Y("design:type",Object)],Lg.prototype,"fitToVisibleBounds",void 0);_.R([_.L(),_.Y("design:type",Object)],Lg.prototype,"pageSubtype",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Lg.prototype,"enablePreviousContinuation",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Lg.prototype,"shortsPipEnabled",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Lg.prototype,"isDark",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Lg.prototype,"shortsViewTransitions",void 0);_.R([_.L({selector:_.gv,reflectToAttribute:!0}),_.Y("design:type",Object)],Lg.prototype,"isFullscreen",void 0);_.R([_.L({selector:_.Ry,reflectToAttribute:!0}),_.Y("design:type",Object)],Lg.prototype,"isShortsPipActive",void 0);_.R([_.$z("#shorts-inner-container"),_.Y("design:type",HTMLElement)],Lg.prototype,"shortsInnerContainer",void 0);
_.R([_.$z("#back-nav-button ytd-button-renderer"),_.Y("design:type",_.z6)],Lg.prototype,"backNavButton",void 0);_.R([_.$z("#shorts-container"),_.Y("design:type",HTMLElement)],Lg.prototype,"shortsContainer",void 0);_.R([_.gr("error-screen"),_.Y("design:type",HTMLElement)],Lg.prototype,"errorScreenContainer",void 0);_.R([_.gr("player"),_.Y("design:type",Object)],Lg.prototype,"playerElement",void 0);
_.R([_.gr("shorts-cinematic-container"),_.Y("design:type",HTMLElement)],Lg.prototype,"shortsCinematicContainer",void 0);_.R([_.gr("initial-player-container"),_.Y("design:type",HTMLElement)],Lg.prototype,"initialPlayerContainer",void 0);_.R([_.L(),_.Y("design:type",Object)],Lg.prototype,"buttonOverride",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Lg.prototype,"anchoredPanelActive",void 0);_.R([_.L(),_.Y("design:type",String)],Lg.prototype,"activePanel",void 0);
_.R([_.L(),_.Y("design:type",Object)],Lg.prototype,"isActive",void 0);_.R([_.L({selector:SDY,reflectToAttribute:!0}),_.Y("design:type",Object)],Lg.prototype,"smallScreenPersistentPanel",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Lg.prototype,"isPersistentPanelActive",void 0);_.R([_.L(),_.Y("design:type",Object)],Lg.prototype,"smallScreenSqueezeBack",void 0);_.R([_.L(),_.Y("design:type",Object)],Lg.prototype,"enableScrollIntoViewCenter",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Lg.prototype,"formatFirst",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Lg.prototype,"enableFlexibleOverlay",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Lg.prototype,"extractOverlay",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Lg.prototype,"useAspectRatio",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Lg.prototype,"enableShortsSequenceRefactorUnify",void 0);_.R([_.L(),_.Y("design:type",Object)],Lg.prototype,"shortsController",void 0);_.R([_.L(),_.Y("design:type",Object)],Lg.prototype,"panelContainer",void 0);_.R([_.L(),_.Y("design:type",Object)],Lg.prototype,"overlayContainer",void 0);_.R([_.L(),_.Y("design:type",Object)],Lg.prototype,"isShortsInitialized",void 0);_.R([_.L(),_.Y("design:type",Object)],Lg.prototype,"firstShortsData",void 0);
_.R([_.L(),_.Y("design:type",Object)],Lg.prototype,"firstShortsDataModel",void 0);_.R([_.L(),_.Y("design:type",Array)],Lg.prototype,"shortsContentList",void 0);_.R([_.M("reelWatchSequenceResponse"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Lg.prototype,"prevShortsSequence",null);_.R([_.M("data","prevShortsSequence"),_.M("data","prevShortsSequence"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Lg.prototype,"shortsProcessedPrevSequence",null);
_.R([_.M("reelWatchSequenceResponse"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Lg.prototype,"shortsSequence",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lg.prototype,"setFirstShortsData",null);_.R([_.iP("reelWatchSequenceResponse","firstShortsData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lg.prototype,"setShortsContentList",null);
_.R([_.M("data","shortsSequence","firstShortsData"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Lg.prototype,"shortsProcessedSequence",null);_.R([_.L({reflectToAttribute:!0}),_.M("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Lg.prototype,"isUpArrowHidden",null);
_.R([_.L({reflectToAttribute:!0}),_.M("reelWatchSequenceResponse","index","endOfNextContinuation"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Lg.prototype,"isDownArrowHidden",null);_.R([_.L(),_.M("index"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Lg.prototype,"activeIndex",null);_.R([_.M("isShortPlayable","data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Lg.prototype,"shouldRenderOfflineContent",null);
_.R([_.VG("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lg.prototype,"onResize",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Lg.prototype,"anchoredEngagementPanels",null);_.R([_.L(),_.Y("design:type",Object)],Lg.prototype,"watchWhileEngagementPanels",void 0);_.R([_.iP("isFullscreen"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lg.prototype,"onFullscreenChange",null);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lg.prototype,"engagementPanelsChanged",null);_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.en]),_.Y("design:returntype")],Lg.prototype,"onServiceRequestCompleted",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lg.prototype,"unhideCurrentOverlay",null);
_.R([_.iP("currentEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lg.prototype,"updateReelWatchSequenceResponse",null);_.R([_.iP("isPlayerStarted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lg.prototype,"afterPlayerStarted",null);_.R([_.M("playerData","reelWatchSequenceResponse","data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Lg.prototype,"errorScreen",null);
_.R([_.M("errorScreen"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Lg.prototype,"hasError",null);_.R([_.iP("playerData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],Lg.prototype,"playerDataChanged",null);_.R([_.VG("yt-dismissible-item-undo-feedback"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lg.prototype,"onShortUndoDismiss",null);
_.R([_.VG("yt-disable-lockup-interaction"),_.Y("design:type",Function),_.Y("design:paramtypes",[Object]),_.Y("design:returntype")],Lg.prototype,"onShortsDismiss",null);_.R([_.zp("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lg.prototype,"onActiveChanged",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lg.prototype,"graftClientVisualElements",null);
_.R([_.iP("currentPlayerIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lg.prototype,"graftNvcRenderer",null);_.R([_.iP("index"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lg.prototype,"setActiveIndex",null);_.R([_.iP("isShortsPipActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lg.prototype,"onShortsPipActiveChanged",null);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lg.prototype,"lazyUpdateMiniplayerData",null);_.R([_.L(),_.Y("design:type",Object)],Lg.prototype,"onOverlayDensityChanged",void 0);_.R([_.iP("isPersistentPanelActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lg.prototype,"onPersistentPanelActiveChanged",null);
_.R([_.iP("index","data","isUpArrowHidden"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lg.prototype,"onPrevButtonDataChange",null);_.R([_.iP("index","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lg.prototype,"onNextButtonDataChange",null);_.R([_.e({is:"ytd-shorts"})],Lg);_.Ya.registerService(_.irq,Lg);
_.Pk();
}catch(e){_._DumpException(e)}
try{
_.qd("JzFVk");
var kkL;var Uln;var jF=function(){return _.B.apply(this,arguments)||this};
_.O(jF,_.B);jF.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
jF.prototype.computeBlueBottomLink=function(C){return C};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],jF.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],jF.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],jF.prototype,"data",void 0);_.R([_.L({computed:"computeIcon_(data.bottomIcon)"}),_.Y("design:type",String)],jF.prototype,"bottomIcon",void 0);
_.R([_.L({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],jF.prototype,"enableBlueBottomLink",void 0);_.R([_.e({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],jF);
_.q(jF,"ytd-web-answer-renderer",function(){if(Uln!==void 0)return Uln;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Uln=C},{mode:_.oN("kevlar_poly_si_batch_j035")?1:2});var HAT;var Fn=function(){var C=_.B.apply(this,arguments)||this;C.hasChipBar=!1;return C};
_.O(Fn,_.B);Fn.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}}};
Fn.prototype.computeHasChipBar=function(C){return!(C==null||!C.chipBar)};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Fn.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Fn.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Fn.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.Y("design:type",Object)],Fn.prototype,"hasChipBar",void 0);_.R([_.e({is:"ytd-search-header-renderer",disableElementRegistration:!0})],Fn);
_.q(Fn,"ytd-search-header-renderer",function(){if(HAT!==void 0)return HAT;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return HAT=C},{mode:1});var lih;var Gq=function(){return _.B.apply(this,arguments)||this};
_.O(Gq,_.B);Gq.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Gq.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Gq.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Gq.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-page-continuation"})],Gq);
_.q(Gq,"ytd-page-continuation",function(){if(lih!==void 0)return lih;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return lih=C},{mode:1});var yGn;var ZA6;var NS_;var OAF=function(){return _.B.apply(this,arguments)||this};
_.O(OAF,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],OAF.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],OAF.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],OAF);
_.q(OAF,"ytd-watch-card-one-vs-one-event",function(){if(NS_!==void 0)return NS_;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return NS_=C},{mode:1});var Xj0=function(){return _.B.apply(this,arguments)||this};
_.O(Xj0,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Xj0.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Xj0.prototype,"data",void 0);_.R([_.e({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],Xj0);
_.q(Xj0,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(ZA6!==void 0)return ZA6;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return ZA6=C},{mode:1});var wj_;var My0=function(){return _.B.apply(this,arguments)||this};
_.O(My0,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],My0.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],My0.prototype,"data",void 0);_.R([_.e({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],My0);
_.q(My0,"ytd-banner-and-box-hero-image-renderer",function(){if(wj_!==void 0)return wj_;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return wj_=C},{mode:1});var Ssh;var V5=function(){var C=_.B.apply(this,arguments)||this;C.modern=_.y("web_modern_buttons");return C};
_.O(V5,_.B);V5.prototype.computeIcon=function(){var C,F,G=(C=this.data)==null?void 0:(F=C.icon)==null?void 0:F.iconType;if(G)return _.p5(G)};
V5.prototype.computeButtonShape=function(){var C;return{buttonText:_.dd((C=this.data)==null?void 0:C.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.I6.Object.defineProperties(V5.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"}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],V5.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],V5.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],V5.prototype,"modern",void 0);_.R([_.L({type:_.y("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.M("data.style"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],V5.prototype,"buttonColor",null);
_.R([_.e({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],V5);
_.q(V5,"ytd-call-to-action-button-renderer",function(){if(Ssh!==void 0)return Ssh;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Ssh=C},{mode:1});var LiS;var ik=function(){return _.B.apply(this,arguments)||this};
_.O(ik,_.B);ik.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.ot(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.RP(this.data.leftThumbnail.thumbnails,216)+")")};
ik.prototype.onLeftThumbnailChanged=ik.prototype.onLeftThumbnailChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ik.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],ik.prototype,"data",void 0);_.R([_.iP("data.leftThumbnail"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ik.prototype,"onLeftThumbnailChanged",null);_.R([_.e({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],ik);
_.q(ik,"ytd-collage-hero-image-renderer",function(){if(LiS!==void 0)return LiS;var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return LiS=C},{mode:1});var BS0;var JA=function(){return _.B.apply(this,arguments)||this};
_.O(JA,_.B);JA.prototype.computeStyle=function(C){return C};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],JA.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],JA.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],JA.prototype,"componentStyle",void 0);_.R([_.e({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],JA);
_.q(JA,"ytd-single-hero-image-renderer",function(){if(BS0!==void 0)return BS0;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return BS0=C},{mode:1});var vfT;var $E=function(){return _.B.apply(this,arguments)||this};
_.O($E,_.B);_.n=$E.prototype;
_.n.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:_.y("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.n.computeSubtitle=function(C){if(this.data){var F;if(this.data.upcomingEventData){C=_.dd(C.subtitle);var G=Number(this.data.upcomingEventData.startTime);isNaN(G)||(F=_.eN(_.EI(C,G)))}else F=C.subtitle;return F}};
_.n.onHeroTap=function(C){C.preventDefault();var F=this.data&&this.data.navigationEndpoint;!F||!_.dE(_.AR(C),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.dE(_.AR(C),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.y("kevlar_watchcard_hero_video_renderer_killswitch")?_.oo(this.hostElement,"yt-navigate",{navigationEndpoint:F}):this.ytComponentBehavior.resolveCommand(F))};
_.n.computeHeroTabIndex=function(C){return C&&C.simpleText?-1:0};
_.n.computeHeroRole=function(C){return C&&C.simpleText?"":"link"};
_.n.computeIsReminderButtonPresent=function(C){return!(!C||!C.reminderButton)};
_.n.computeHideBottomItems=function(C){return!(this.computeIsReminderButtonPresent(C)||C.subtitle)};
_.n.dataChanged=function(){var C=this.get("data.buttons.buttonRenderer.serviceEndpoint"),F;((F=_.Z(C==null?void 0:C.commandMetadata,_.fH))==null?0:F.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(C)};
$E.prototype.dataChanged=$E.prototype.dataChanged;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],$E.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],$E.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],$E.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],$E.prototype,"data",void 0);
_.R([_.L({computed:"computeSubtitle(data)"}),_.Y("design:type",String)],$E.prototype,"subtitle",void 0);_.R([_.L({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],$E.prototype,"isReminderButtonPresent",void 0);_.R([_.L({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],$E.prototype,"hideBottomItems",void 0);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$E.prototype,"dataChanged",null);_.R([_.e({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],$E);
_.q($E,"ytd-watch-card-hero-video-renderer",function(){if(vfT!==void 0)return vfT;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return vfT=C},{mode:1});var fi0;var bk=function(){return _.B.apply(this,arguments)||this};
_.O(bk,_.B);_.n=bk.prototype;_.n.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"}}}};
_.n.computeTitleBadges=function(C){return C?[C]:[]};
_.n.computeHeaderStyle=function(C){return C?C.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.n.computeAvatarAriaLabel=function(C){if(C){var F,G,V,J;return(J=(F=C.avatar)==null?void 0:(G=F.accessibility)==null?void 0:(V=G.accessibilityData)==null?void 0:V.label)!=null?J:_.dd(C==null?void 0:C.title)}};
_.n.computeAvatarHeight=function(C){return C==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.n.computeBadgeRowClass=function(C){return(C==null?0:C[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],bk.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],bk.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],bk.prototype,"data",void 0);_.R([_.L({computed:"computeTitleBadges(data.titleBadge)"}),_.Y("design:type",Array)],bk.prototype,"titleBadges",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.Y("design:type",String)],bk.prototype,"headerStyle",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.Y("design:type",String)],bk.prototype,"badgeRowClass",void 0);_.R([_.e({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],bk);
_.q(bk,"ytd-watch-card-rich-header-renderer",function(){if(fi0!==void 0)return fi0;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return fi0=C},{mode:1});var h0h;var cG_;var ng=function(){return _.B.apply(this,arguments)||this};
_.O(ng,_.B);ng.prototype.onMetadataTap=function(C){var F=this.data&&this.data.navigationEndpoint;F&&!_.dE(_.AR(C),this.hostElement,["A".toString()])&&_.oo(this.hostElement,"yt-navigate",{endpoint:F})};
_.I6.Object.defineProperties(ng.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 C;if(this.data.upcomingEventData){var F=_.dd(this.data.subtitle),G=Number(this.data.upcomingEventData.startTime);isNaN(G)||(C=_.eN(_.EI(F,G)))}else C=this.data.subtitle;return C}}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ng.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],ng.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.M("data.style"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ng.prototype,"isCondensed",null);_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ng.prototype,"subtitle",null);
_.R([_.e({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],ng);
_.q(ng,"ytd-watch-card-compact-video-renderer",function(){if(cG_!==void 0)return cG_;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return cG_=C},{mode:1});var AG6;var e0n=function(){return _.B.apply(this,arguments)||this};
_.O(e0n,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],e0n.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],e0n.prototype,"data",void 0);_.R([_.e({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],e0n);
_.q(e0n,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(AG6!==void 0)return AG6;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return AG6=C},{mode:1});var uk=function(){return _.B.apply(this,arguments)||this};
_.O(uk,_.B);uk.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}}}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],uk.prototype,"ytRendererStamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],uk.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],uk.prototype,"data",void 0);_.R([_.e({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],uk);
_.q(uk,"ytd-vertical-watch-card-list-renderer",function(){if(h0h!==void 0)return h0h;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return h0h=C},{mode:1});var dlh;var zq=function(){var C=_.B.apply(this,arguments)||this;C.ariaExpanded="false";return C};
_.O(zq,_.B);_.n=zq.prototype;_.n.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.n.dataChanged=function(){var C;this.currentSeasonIndex=((C=this.data)==null?void 0:C.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.n.computeEpisodesInfo=function(C,F,G){if(C!==void 0&&F.length===C.length)return C[G]};
_.n.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.n.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.n.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.n.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.n.getUppercaseSimpleString=function(C){return this.ytRendererBehavior.getSimpleString(C).toUpperCase()};
_.n.updateCurrentSeasonIndexFromBinding=function(C){this.currentSeasonIndex=C.detail.value};
zq.prototype.onIronOverlayClosed=zq.prototype.onIronOverlayClosed;zq.prototype.currentSeasonIndexChanged=zq.prototype.currentSeasonIndexChanged;zq.prototype.dataChanged=zq.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],zq.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],zq.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],zq.prototype,"data",void 0);
_.R([_.L(),_.Y("design:type",String)],zq.prototype,"label",void 0);_.R([_.L({value:0}),_.Y("design:type",Number)],zq.prototype,"currentSeasonIndex",void 0);_.R([_.L({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.Y("design:type",Object)],zq.prototype,"episodesInfo",void 0);_.R([_.L({value:"false"}),_.Y("design:type",Object)],zq.prototype,"ariaExpanded",void 0);_.R([_.$z("#lists"),_.Y("design:type",Object)],zq.prototype,"lists",void 0);
_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zq.prototype,"dataChanged",null);_.R([_.zp("currentSeasonIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zq.prototype,"currentSeasonIndexChanged",null);_.R([_.VG("iron-overlay-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],zq.prototype,"onIronOverlayClosed",null);
_.R([_.e({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],zq);
_.q(zq,"ytd-watch-card-section-dropdown-renderer",function(){if(dlh!==void 0)return dlh;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return dlh=C},{mode:1});var xl_;var Q5=function(){var C=_.B.apply(this,arguments)||this;C.isSearch=!1;return C};
_.O(Q5,_.B);Q5.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}}}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Q5.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Q5.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Q5.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],Q5.prototype,"isSearch",void 0);_.R([_.e({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],Q5);
_.q(Q5,"ytd-watch-card-section-sequence-renderer",function(){if(xl_!==void 0)return xl_;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);
return xl_=C},{mode:1});var sRS=_.d(function(C){return _.W("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.W(_.uC,{data:function(){return C.data().ctaButton}},{buttonViewModel:_.tS}),_.W(_.mn,{text:function(){return C.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"Sm");
sRS.idomCompat=!0;_.gQ(sRS,"ytd-button-banner-view-model",{props:{data:_.CJ}});var IG=function(){var C=_.B.apply(this,arguments)||this;C.isSearch=!1;return C};
_.O(IG,_.B);
IG.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"}}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],IG.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],IG.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],IG.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],IG.prototype,"rounded",void 0);_.R([_.L(),_.Y("design:type",Object)],IG.prototype,"isSearch",void 0);
_.R([_.e({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],IG);
_.q(IG,"ytd-universal-watch-card-renderer",function(){if(yGn!==void 0)return yGn;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return yGn=C},{mode:1});var qsS;_.gQ(_.d(function(C){var F=C.data;var G;C=!((G=_.I8().resolve(_.Qt(_.v6)))==null||!G());G={};return _.W("overview-message-view-model",{class:_.py("ytwOverviewMessageViewModelHost",(G.ytwOverviewMessageViewModelDarkBackground=C,G.ytwOverviewMessageViewModelLightBackground=!C,G))},_.W(_.a,{cond:function(){return F().primaryImage},
then:function(V){return _.W(_.AC,{data:V,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.W(_.a,{cond:function(){return F().primaryText},
then:function(){return _.W("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.W(_.mn,{text:function(){return F().primaryText}}))}}),_.W(_.a,{cond:function(){return F().secondaryText},
then:function(){return _.W("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.W(_.mn,{text:function(){return F().secondaryText}}))}}))},"Tm"),"overview-message-view-model",{props:{data:_.CJ}});_.gQ(_.ocG,"ytd-overview-answer-view-model",{props:{data:_.CJ}});var EQ=function(){return _.B.apply(this,arguments)||this};
_.O(EQ,_.B);EQ.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"}}}};
EQ.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],EQ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],EQ.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.G1),_.Y("design:type",Object)],EQ.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],EQ.prototype,"data",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],EQ.prototype,"isSearch",void 0);
_.R([_.e({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],EQ);
_.q(EQ,"ytd-secondary-search-container-renderer",function(){if(qsS!==void 0)return qsS;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);
return qsS=C},{mode:1});var PhF;var WH=function(){var C=_.B.apply(this,arguments)||this;C.renderSecondarySearchContainer=!1;C.isSearch=!1;return C};
_.O(WH,_.B);_.n=WH.prototype;_.n.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.n.created=function(){var C=this;this.boundStampSecondarySearchContainerIfFits=function(){C.stampSecondarySearchContainerIfFits()};
_.Yn("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.n.computeIsSearchFrictionPage=function(C){var F,G,V,J,b;C=C==null?void 0:(F=C.primaryContents)==null?void 0:(G=F.sectionListRenderer)==null?void 0:(V=G.contents)==null?void 0:(J=V[0])==null?void 0:(b=J.itemSectionRenderer)==null?void 0:b.contents;if(!C)return!1;F=_.u(C);for(G=F.next();!G.done;G=F.next())if(V=void 0,(V=G.value)==null?0:V.searchFrictionViewModel)return!0;return!1};
_.n.computeShowSecondaryColumn=function(C,F){return!!(F&&F.secondaryContents&&C)};
_.n.activeChanged=function(){var C=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.Gp(this,this.debounceStampSecondarySearchContainerIfFits)),_.L5(function(){C.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.Gp(this,this.debounceStampSecondarySearchContainerIfFits))};
_.n.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.n.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.n.debounceStampSecondarySearchContainerIfFits=function(){_.Bb(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.n.onRetrieveLocation=function(C,F){F.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);C.stopPropagation()};
_.n.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
WH.prototype.dataChanged=WH.prototype.dataChanged;WH.prototype.onRetrieveLocation=WH.prototype.onRetrieveLocation;WH.prototype.persistentGuideChanged=WH.prototype.persistentGuideChanged;WH.prototype.activeChanged=WH.prototype.activeChanged;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],WH.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],WH.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.DL.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],WH.prototype,"ytdGuideStateAwareBehavior",void 0);_.R([_.w(_.AY),_.Y("design:type",Object)],WH.prototype,"ironResizableBehavior",void 0);_.R([_.L(),_.Y("design:type",Boolean)],WH.prototype,"active",void 0);_.R([_.L(),_.Y("design:type",Object)],WH.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,value:function(){return _.y("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],WH.prototype,"useBiggerThumbs",void 0);_.R([_.L({reflectToAttribute:!0,value:function(){return _.kU("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],WH.prototype,"biggerThumbsStyle",void 0);_.R([_.L(),_.Y("design:type",Object)],WH.prototype,"renderSecondarySearchContainer",void 0);_.R([_.L({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.Y("design:type",Boolean)],WH.prototype,"showSecondaryColumn",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.Y("design:type",Boolean)],WH.prototype,"isSearchFrictionPage",void 0);
_.R([_.L(),_.Y("design:type",Object)],WH.prototype,"isSearch",void 0);_.R([_.iP("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WH.prototype,"activeChanged",null);_.R([_.iP("guidePersistentAndVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WH.prototype,"persistentGuideChanged",null);
_.R([_.VG("yt-retrieve-location"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],WH.prototype,"onRetrieveLocation",null);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WH.prototype,"dataChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],WH);
_.q(WH,"ytd-two-column-search-results-renderer",function(){if(PhF!==void 0)return PhF;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return PhF=C},{mode:1});var tA=function(){var C=_.B.apply(this,arguments)||this;C.hasSearchHeader=!1;C.hasSecondaryContent=!1;C.hasBiggerThumbs=_.y("enable_desktop_search_bigger_thumbs");C.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return C};
_.O(tA,_.B);_.n=tA.prototype;_.n.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:_.UF(["aa","eocs"])}}};
_.n.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.n.loadPage_=function(C){this.initCsi();C&&(this.data=C,_.Yn("REFINEMENTS_TUPLE",["FromSearchResponse",C.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.J5(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.n.initCsi=function(){_.N9n("results",["ol","cpt"])};
_.n.updateTitle=function(){var C=_.Da(window.location.href,"q");C||(C=_.Da(window.location.href,"search_query"));_.oo(this.hostElement,"yt-update-title",C||"")};
_.n.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.n.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.y("web_srp_data_changed_terminate_imp_killswitch")||_.rz(this.hostElement,"yt-terminate-video-preview-action")};
_.n.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.n.computeHasSearchHeader=function(C){var F;C=C==null?void 0:(F=C.header)==null?void 0:F.searchHeaderRenderer;return!!C&&(!!C.searchFilterButton||!!C.chipBar)};
_.n.computeHasSecondaryContent=function(C){var F,G;return!!(C==null?0:(F=C.contents)==null?0:(G=F.twoColumnSearchResultsRenderer)==null?0:G.secondaryContents)};
_.I6.Object.defineProperties(tA,{template:{configurable:!0,enumerable:!0,get:function(){if(kkL===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);kkL=C}C=kkL;return C}}});
tA.prototype.onReloadContinuationFinish=tA.prototype.onReloadContinuationFinish;tA.prototype.dataChanged=tA.prototype.dataChanged;_.R([_.w(_.ij.YtPageBehavior),_.Y("design:type",Object)],tA.prototype,"ytPageBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],tA.prototype,"actionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],tA.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],tA.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.G1),_.Y("design:type",Object)],tA.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],tA.prototype,"data",void 0);_.R([_.L({value:!0}),_.Y("design:type",Boolean)],tA.prototype,"monitorScroll",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],tA.prototype,"hasSearchHeader",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],tA.prototype,"hasSecondaryContent",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],tA.prototype,"hasBiggerThumbs",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tA.prototype,"dataChanged",null);
_.R([_.VG("yt-reload-continuation-finish"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tA.prototype,"onReloadContinuationFinish",null);_.R([_.e({is:"ytd-search"})],tA);_.Ya.registerService(_.VeB,tA);
_.Pk();
}catch(e){_._DumpException(e)}
try{
_.qd("h8y2qb");
var XhY=function(C){if(C=_.jTW(C)){var F;(F=C.sources)!=null&&F[0]?(F=_.Gaq(C),F=F<1?"VERTICAL":F>1?"HORIZONTAL":"SQUARE"):F=void 0;return F}},Jd=function(C){_.yV.call(this,"upload");
this.opts.query=C},MS_=function(C,F){return _.W(whS,{data:C,
onYtNavigate:F})},SLF=function(C,F){return _.jN(C.entities,"pageHeaderEntity",F)},B9B=function(C,F){return C.map(function(G){if(G.tabRenderer)return LYl(G.tabRenderer);
if(G.expandableTabRenderer&&F){var V=G.expandableTabRenderer;return{customTabRenderable:function(){return F(V)}}}return{}})},LYl=function(C){return{identifier:C.tabIdentifier,
aTagConfig:_.O9({innertubeCommand:C.endpoint,forceNewState:!0}),title:C.title,selected:C.selected,disabled:C.unselectable,icon:C.icon}},vl9=function(C){return _.rh({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:C})},f0_=function(C){if(!_.YJ(document,"gtm-noscript")){var F=document.createElement("noscript");
F.id="gtm-noscript";F.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+C+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(F)}};_.RE(Jd,_.yV);Jd.prototype.JSC$10073_setLabel=function(C){Jd.superClass_.JSC$10073_setLabel.call(this,C);return this};
Jd.prototype.addUploadMetadata=function(C,F){Jd.superClass_.addUploadMetadata.call(this,C,F);return this};var h_0=function(C){if(C!=="youtubebanner"&&C!=="youtube-channel-banner")throw Error("Ko");Jd.call(this,C)};
_.O(h_0,Jd);h_0.prototype.JSC$10073_setLabel=function(C){Jd.prototype.JSC$10073_setLabel.call(this,C);return this};
h_0.prototype.addUploadMetadata=function(C,F){Jd.prototype.addUploadMetadata.call(this,C,F);return this};var cz0=[_.AY,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(C){_.E5(C).path[0]!==this&&(this.resetLayout(),C.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var C=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.Qq(this._layoutDebouncer,_.E9,C);_.I4(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var C=this;requestAnimationFrame(function(){C.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(C){this.resizerShouldNotify(C)&&this._notifyDescendant(C)},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 AzY=[_.RTE,{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(C,F){var G=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[C];if(!G)throw new ReferenceError(this._getUndefinedMsg(C));C=this._boundEffect(G,F||{});C.setUp();return C},
_effectsChanged:function(C,F,G){this._tearDownEffects();C&&G&&(C.split(" ").forEach(function(V){var J;V!==""&&((J=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[V])?this._effects.push(this._boundEffect(J,F[V])):console.warn(this._getUndefinedMsg(V)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(C,F){F=F||{};var G=parseFloat(F.startsAt||0),V=parseFloat(F.endsAt||1),J=V-G,b=function(){};
V=G===0&&V===1?C.run:function(z,Q){C.run.call(this,Math.max(0,(z-G)/J),Q)};
return{setUp:C.setUp?C.setUp.bind(this,F):b,run:C.run?V.bind(this):b,tearDown:C.tearDown?C.tearDown.bind(this):b}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(C){C.setUp()!==!1&&this._effectsRunFn.push(C.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(C){C.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(C,F){this._effectsRunFn&&this._effectsRunFn.forEach(function(G){G(C,F)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var C=this._clampedScrollTop;this._updateScrollState(C);this.threshold>0&&this._setThresholdTriggered(C>=this.threshold)}},
_getDOMRef:function(C){console.warn("_getDOMRef","`"+C+"` is undefined")},
_getUndefinedMsg:function(C){return"Scroll effect `"+C+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+C+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Lo`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(C){var F={};C=parseFloat(C.scalar);F.background=this._getDOMRef("background");F.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");F.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");F.deltaBg=F.backgroundFrontLayer.offsetHeight-F.background.offsetHeight;F.deltaBg===0?(isNaN(C)&&(C=.8),F.deltaBg=(this._dHeight||0)*C):(isNaN(C)&&(C=
1),F.deltaBg*=C);this._fxParallaxBackground=F},
run:function(C){var F=this._fxParallaxBackground;this.transform("translate3d(0px, "+F.deltaBg*Math.min(1,C)+"px, 0px)",F.backgroundFrontLayer);F.backgroundRearLayer&&this.transform("translate3d(0px, "+F.deltaBg*Math.min(1,C)+"px, 0px)",F.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var e_L;var d__;var x_n=function(){};
_.n=x_n.prototype;_.n._scrollTargetChanged=function(){};
_.n.scroll=function(){};
_.n._isValidScrollTarget=function(){};
_.n._toggleScrollListener=function(){};
_.n.toggleScrollListener=function(){};
_.n.createEffect=function(){};
_.n._effectsChanged=function(){};
_.n._layoutIfDirty=function(){};
_.n._boundEffect=function(){};
_.n._setUpEffect=function(){};
_.n._tearDownEffects=function(){};
_.n._runEffects=function(){};
_.n._scrollHandler=function(){};
_.n._scrollStateChanged=function(){};
_.n._getUndefinedMsg=function(){};
_.n.notifyResize=function(){};
_.n.assignParentResizable=function(){};
_.n.stopResizeNotificationsFor=function(){};
_.n._subscribeIronResize=function(){};
_.n._unsubscribeIronResize=function(){};
_.n.resizerShouldNotify=function(){};
_.n._onDescendantIronResize=function(){};
_.n._fireResize=function(){};
_.n._onIronRequestResizeNotifications=function(){};
_.n._parentResizableChanged=function(){};
_.n._notifyDescendant=function(){};
_.n._requestResizeNotifications=function(){};
_.n._findParent=function(){};
_.n._appResetLayoutHandler=function(){};
_.n.resetLayout=function(){};
_.n._notifyLayoutChanged=function(){};
_.n._notifyDescendantResize=function(){};
_.n._setThresholdTriggered=function(){};
x_n=_.kz({_template:function(){if(d__!==void 0)return d__;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;e_L===void 0&&(e_L=document.createElement("template"));var V=e_L;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return d__=C},
is:"tp-yt-app-header",behaviors:[AzY,cz0],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 C=_.E5(this.$.slot).getDistributedNodes(),F=0,G;G=C[F];F++)if(G.nodeType===Node.ELEMENT_NODE)if(G.hasAttribute("sticky")){this._stickyElRef=G;break}else this._stickyElRef||(this._stickyElRef=G);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var C=this._clampedScrollTop,F=this._height===0||C===0,G=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;F||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();F?this._updateScrollState(C,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=G}},
_updateScrollState:function(C,F){if(this._height!==0){var G=0,V=this._top;var J=this._maxHeaderTop;var b=C-this._lastScrollTop,z=Math.abs(b),Q=C>this._lastScrollTop,E=performance.now();this._mayMove()&&(G=this._clamp(this.reveals?V+b:C,0,J));C>=this._dHeight&&(G=this.condenses&&!this.fixed?Math.max(this._dHeight,G):G,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&z<100){if(E-this._initTimestamp>300||this._wasScrollingDown!==Q)this._initScrollTop=C,this._initTimestamp=E;C>=J&&
(Math.abs(this._initScrollTop-C)>30||z>10?(Q&&C>=J?G=J:!Q&&C>=this._dHeight&&(G=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((G-V)/(b/(E-this._lastTimestamp)),0,300)+"ms"):G=this._top)}J=this._dHeight===0?C>0?1:0:G/this._dHeight;F||(this._lastScrollTop=C,this._top=G,this._wasScrollingDown=Q,this._lastTimestamp=E);if(F||J!==this._progress||V!==G||C===0)this._progress=J,this._runEffects(J,G),this._transformHeader(G)}},
_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(C){this.translate3d(0,-C+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&C>=this._stickyElTop?Math.min(C,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(C,F,G){return Math.min(G,Math.max(F,C))},
_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),_.E5(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(C){switch(C){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.E5(this).querySelector("[main-title]");case "condensedTitle":return _.E5(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var snn;var qLL;_.kz({_template:function(){if(qLL!==void 0)return qLL;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;snn===void 0&&(snn=document.createElement("template"));var V=snn;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return qLL=C},
is:"tp-yt-app-header-layout",behaviors:[cz0],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.E5(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var C=this.header;if(this.isAttached&&C){this.$.wrapper.classList.remove("initializing");C.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)C.style.left=
"",C.style.right="";else{var F=this.getBoundingClientRect(),G=document.documentElement.clientWidth-F.right;C.style.left=F.left+"px";C.style.right=G+"px"}F=this.$.contentContainer.style;G=C.offsetHeight;C.fixed&&!C.condenses&&this.hasScrollingRegion?(F.marginTop=G+"px",F.paddingTop=""):(F.paddingTop=G+"px",F.marginTop="")}}});var P0T=new _.Cx("alertCommand");var gl6=new _.Cx("manageLabsStateCommand");var R__=new _.Cx("inlineFormRenderer");var YLF=new _.Cx("playlistSidebarPrimaryInfoRenderer");var T9L=new _.Cx("productDetailsThumbnailRenderer"),olL=new _.Cx("productDetailsVariantRenderer"),rzL=new _.Cx("productDetailsVariantOptionRenderer"),KY0=new _.Cx("productDetailsOffersContainerRenderer"),D_L=new _.Cx("productDetailsOfferRenderer");var phT=new _.Cx("shoppingFlaggingRenderer");var m_z=new _.Cx("playlistBylineRenderer");var CiB=new _.Cx("insertChannelTabCommand");var $G=function(){return _.n5.apply(this,arguments)||this};
_.O($G,_.n5);_.n=$G.prototype;_.n.activeChanged=function(){if(this.active){var C=_.ot(this.hostElement).querySelector("#header");C&&_.oo(C,"iron-resize");window.addEventListener("scroll",_.Gp(this,this.onScroll))}else window.removeEventListener("scroll",_.Gp(this,this.onScroll)),_.oo(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.n.guideVisibleChanged=function(){var C=_.ot(this.hostElement).querySelector("#header");C&&_.oo(C,"iron-resize")};
_.n.onScroll=function(){var C=this;_.Bb(this,"onScroll",function(){var F=_.ot(C.hostElement).querySelector("#header");F&&F.polymerController&&(F=F.polymerController.getScrollState().progress===1?"standard":"seamed",_.oo(C.hostElement,"yt-request-panel-mode-change",{mode:F}))},10)};
_.n.tabsChanged=function(){if(this.tabs){for(var C=null,F=0,G=this.tabs.length;F<G;++F){var V=this.tabs[F].tabRenderer;if(V&&V.selected){C=F;break}}this.selected=C}};
_.n.onTabsActivate=function(C){_.oo(this.hostElement,"yt-navigate",{endpoint:this.tabs[C.detail.selected].tabRenderer.endpoint})};
$G.prototype.tabsChanged=$G.prototype.tabsChanged;$G.prototype.guideVisibleChanged=$G.prototype.guideVisibleChanged;$G.prototype.activeChanged=$G.prototype.activeChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],$G.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.DL.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],$G.prototype,"ytdGuideStateAwareBehavior",void 0);_.R([_.L(),_.Y("design:type",Array)],$G.prototype,"tabs",void 0);
_.R([_.L(),_.Y("design:type",Object)],$G.prototype,"selected",void 0);_.R([_.L(),_.Y("design:type",Boolean)],$G.prototype,"active",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],$G.prototype,"disableHeaderFluidWidth",void 0);_.R([_.iP("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$G.prototype,"activeChanged",null);
_.R([_.iP("guidePersistentAndVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$G.prototype,"guideVisibleChanged",null);_.R([_.iP("tabs"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$G.prototype,"tabsChanged",null);_.R([_.uP()],$G);var jpz=[_.D.YtRendererBehavior,_.DL.YtdGuideStateAwareBehavior,$G.prototype];var FbB=2/3,GOB=_.m2(130749),V9z=function(C,F){var G=this;this.element=C;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){G.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:FbB,moveAction:function(V){G.moveAction(V)},
triggerAction:function(){G.element.isReloading=!0;_.LZ(_.ia(),{visualElement:GOB});_.Cy.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:G.element}})}}}};
_.Xu(_.ia(),GOB,this.layer);this.gesture=new _.xg(C,F,this.refreshConfig,"pan-down");this.attach()};
_.n=V9z.prototype;_.n.attach=function(){this.gesture.attach()};
_.n.detach=function(){this.gesture.detach()};
_.n.reset=function(){this.element.close()};
_.n.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.n.moveAction=function(C){this.element.rotation=C*360};var iv0=_.m2(130750),$a9=function(C,F,G,V,J){var b=this;this.element=C;this.parent=G;this.channelHeader=V;this.ytdReduxDispatch=J;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 z;(z=b.selectedTab)!=null&&z.title&&(z=_.I8().resolve(_.Qt(_.qG)))&&(z=z.getCurrentPage(),b.lastVisitedTabScrollPosition=z.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,z.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:JW_(),triggerAction:function(){b.navigate(b.previousTab)},
moveAction:function(z,Q){b.moveAction(z,Q)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-JW_(),triggerAction:function(){b.navigate(b.nextTab)},
moveAction:function(z,Q){b.moveAction(z,Q)}}}};
_.Xu(_.ia(),iv0,this.layer);this.gesture=new _.xg(C,F,this.tabConfig);this.attach()};
_.n=$a9.prototype;_.n.attach=function(){this.gesture.attach()};
_.n.detach=function(){this.gesture.detach()};
_.n.tabsChanged=function(C){if(C){var F=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;C=_.u(C);for(var G=C.next();!G.done;G=C.next()){G=G.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=G);var V=void 0;if((V=G)==null?0:V.selected)this.previousTab=F,this.selectedTab=G;F=G}F=this.gesture;C=this.getConfig();F.config=C;this.scrollPositionNeedsUpdate=!0}};
_.n.getConfig=function(){return this.previousTab?this.nextTab?this.tabConfig:Object.assign({},this.tabConfig,{triggers:{right:this.tabConfig.triggers.right}}):Object.assign({},this.tabConfig,{triggers:{left:this.tabConfig.triggers.left}})};
_.n.moveAction=function(C,F){if(!this.tabsElement){var G;this.tabsElement=(G=this.parent.header)==null?void 0:G.tabsElement;F==="right"&&this.previousTab?(G=this.previousTab.endpoint,_.qsU(_.I8().resolve(_.Q7),G,{},"")):F==="left"&&this.nextTab&&(G=this.nextTab.endpoint,_.qsU(_.I8().resolve(_.Q7),G,{},""));if(!this.tabsElement)return}G=this.tabsElement._pos;F==="right"&&(C*=-1);this.tabsElement._positionBar(G.width,G.left*1+G.width*C)};
var JW_=function(){var C,F;return(F=(C=_.I8().resolve(_.qG).getCurrentPage())==null?void 0:C.clientWidth)!=null?F:0};
$a9.prototype.navigate=function(C){this.element.data=void 0;if(C=C==null?void 0:C.endpoint)this.ytdReduxDispatch(vl9(!0)),_.LZ(_.ia(),{visualElement:iv0}),_.Cy.instance.resolveCommand({navigateAction:{endpoint:C}},{form:{element:this.element}})};var bvF;var nO_;var bj=function(){return _.B.apply(this,arguments)||this};
_.O(bj,_.B);bj.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],bj.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],bj.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],bj.prototype,"data",void 0);_.R([_.e({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],bj);
_.q(bj,"ytd-labs-edit-renderer",function(){if(nO_!==void 0)return nO_;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return nO_=C},{mode:1});var uGB;var nn=function(){var C=_.B.apply(this,arguments)||this;C.dark=!1;C.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";C.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";C.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return C};
_.O(nn,_.B);nn.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
nn.prototype.ready=function(){var C=document.documentElement.hasAttribute("dark");this.setBackgroundImage(C);this.dark=C};
nn.prototype.onDarkModeToggledAction=function(C){this.setBackgroundImage(C);this.dark=C};
nn.prototype.setBackgroundImage=function(C){_.jr(this.hostElement,{"--yt-labs-header-background":"url("+(C?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],nn.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],nn.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],nn.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],nn.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],nn.prototype,"dark",void 0);
_.R([_.e({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],nn);
_.q(nn,"ytd-labs-header-renderer",function(){if(uGB!==void 0)return uGB;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return uGB=C},{mode:1});var zdS;var uj=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return C};
_.O(uj,_.B);uj.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"}}}}}};
uj.prototype.onYtToggleButton=function(C){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",C.detail.toggled)};
uj.prototype.onManageLabsState=function(C){if(C=_.Z(C,gl6))C.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?C.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&C.labsItemId===this.data.labsItemId&&(C.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.rz(this.hostElement,"yt-check-labs-opted-in-state").some(function(F){return F})&&this.data.confirmationDialogCommand?_.pX(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.I8().resolve(_.WD).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&C.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.I8().resolve(_.WD).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
uj.prototype.onCheckLabsOptedInState=function(){var C=this.get("data.primaryButton.toggleButtonRenderer");return C?C.isToggled:!1};
_.I6.Object.defineProperties(uj.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
uj.prototype.onYtToggleButton=uj.prototype.onYtToggleButton;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],uj.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],uj.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],uj.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],uj.prototype,"data",void 0);
_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],uj.prototype,"itemStyle",null);_.R([_.VG("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],uj.prototype,"onYtToggleButton",null);_.R([_.e({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],uj);
_.q(uj,"ytd-labs-item-renderer",function(){if(zdS!==void 0)return zdS;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return zdS=C},{mode:1});var QpS;var I6h;var EO6=function(){return _.B.apply(this,arguments)||this};
_.O(EO6,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],EO6.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],EO6.prototype,"data",void 0);_.R([_.e({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],EO6);
_.q(EO6,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(I6h!==void 0)return I6h;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return I6h=C},{mode:1});var Wb_;var z2=function(){return _.B.apply(this,arguments)||this};
_.O(z2,_.B);z2.prototype.observeSuperchatChip=function(){if(this.data){var C={"--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)};_.jr(this.hostElement,C)}};
z2.prototype.colorFromDecimal=function(C){return _.lE(Number(C||0))};
z2.prototype.observeSuperchatChip=z2.prototype.observeSuperchatChip;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],z2.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],z2.prototype,"data",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],z2.prototype,"observeSuperchatChip",null);_.R([_.e({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],z2);
_.q(z2,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(Wb_!==void 0)return Wb_;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Wb_=C},{mode:1});var Qg=function(){return _.B.apply(this,arguments)||this};
_.O(Qg,_.B);Qg.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"}}}};
_.I6.Object.defineProperties(Qg.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Qg.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Qg.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.T6),_.Y("design:type",Object)],Qg.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Qg.prototype,"data",void 0);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Qg.prototype,"hideMessageBlock",null);
_.R([_.e({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],Qg);
_.q(Qg,"ytd-live-chat-history-entry-renderer",function(){if(QpS!==void 0)return QpS;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return QpS=C},{mode:1});var t96;var a6L=function(){return _.B.apply(this,arguments)||this};
_.O(a6L,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],a6L.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],a6L.prototype,"data",void 0);_.R([_.e({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],a6L);
_.q(a6L,"ytd-channel-options-renderer",function(){if(t96!==void 0)return t96;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return t96=C},{mode:1});var kO_;var IC=function(){return _.B.apply(this,arguments)||this};
_.O(IC,_.B);IC.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],IC.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],IC.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],IC.prototype,"data",void 0);_.R([_.e({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],IC);
_.q(IC,"ytd-settings-email-item-renderer",function(){if(kO_!==void 0)return kO_;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return kO_=C},{mode:1});var Ua6;var ET=function(){return _.B.apply(this,arguments)||this};
_.O(ET,_.B);ET.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"}}}};
ET.prototype.getExpansionIcon=function(C){return C?"COLLAPSE":"EXPAND"};
ET.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.I6.Object.defineProperties(ET.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ET.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],ET.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],ET.prototype,"data",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],ET.prototype,"expanded",void 0);_.R([_.M("expanded"),_.Y("design:type",String),_.Y("design:paramtypes",[])],ET.prototype,"emailListExpanded",null);
_.R([_.$z("#options"),_.Y("design:type",Object)],ET.prototype,"options",void 0);_.R([_.e({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],ET);
_.q(ET,"ytd-settings-email-list-renderer",function(){if(Ua6!==void 0)return Ua6;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Ua6=C},{mode:1});var Hv0;var Wz=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return C};
_.O(Wz,_.B);Wz.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"}}}};
Wz.prototype.handleSignalActionSubmitForm=function(){var C,F=(C=this.formRenderer)==null?void 0:C.getForm();F&&this.data.serviceEndpoint&&_.I8().resolve(_.WD).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},F,{element:this.hostElement})})};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Wz.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Wz.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],Wz.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Wz.prototype,"data",void 0);_.R([_.$z("yt-form-renderer"),_.Y("design:type",Object)],Wz.prototype,"formRenderer",void 0);
_.R([_.e({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],Wz);
_.q(Wz,"ytd-settings-gaia-link-renderer",function(){if(Hv0!==void 0)return Hv0;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Hv0=C},{mode:1});var l6n;var td=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return C};
_.O(td,_.B);td.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.ktU()&&this.set("data.hidden",!1)};
td.prototype.onSwitchReady=function(){var C=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.y("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.att().then(function(F){F&&(Notification.permission==="default"?C.set("data.hidden",!1):Notification.permission==="granted"&&_.Ss("NotificationsDisabled").then(function(G){G||_.rz(C.hostElement,"yt-toggle-settings-switch",[C.data.id,!G]);C.set("data.hidden",!1)}).catch(function(){}))})})};
td.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}}}}};
td.prototype.handleUpdateOptionsCommand=function(C){(C=_.Z(C,_.GD7))&&this.data&&this.data.id===C.id&&(this.set("data.hidden",C.hidden),C.text!==void 0&&this.set("data.text",C.text),C.clearOptions&&this.set("data.options",[]))};
td.prototype.onSwitchReady=td.prototype.onSwitchReady;td.prototype.dataChanged=td.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],td.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],td.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],td.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],td.prototype,"data",void 0);
_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],td.prototype,"dataChanged",null);_.R([_.VG("yt-settings-switch-ready"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],td.prototype,"onSwitchReady",null);_.R([_.e({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],td);
_.q(td,"ytd-settings-options-renderer",function(){if(l6n!==void 0)return l6n;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return l6n=C},{mode:1});var yW_;var aC=function(){return _.B.apply(this,arguments)||this};
_.O(aC,_.B);aC.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
aC.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
aC.prototype.onYtExpanderMoreTapped=aC.prototype.onYtExpanderMoreTapped;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],aC.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],aC.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],aC.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],aC.prototype,"data",void 0);
_.R([_.VG("yt-expander-more-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aC.prototype,"onYtExpanderMoreTapped",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],aC);
_.q(aC,"ytd-product-details-description-renderer",function(){if(yW_!==void 0)return yW_;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return yW_=C},{mode:1});var Zv6;var kG=function(){var C=_.B.apply(this,arguments)||this;C.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";C.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";C.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";C.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return C};
_.O(kG,_.B);kG.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.I6.Object.defineProperties(kG.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var C,F;return((C=this.data)==null?void 0:(F=C.offerData)==null?void 0:F.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var C,F;return((C=this.data)==null?void 0:C.purchaseButtonRenderers)!==void 0&&((F=this.data)==null?void 0:F.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var C,F;return!((C=this.data)==null||!C.formattedFromMerchantText)&&(!((F=this.data)==null||!F.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],kG.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],kG.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],kG.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],kG.prototype,"data",void 0);
_.R([_.L({type:_.y("kevlar_property_type_migration_killswitch")?String:void 0}),_.Y("design:type",Object)],kG.prototype,"shippingIcon",void 0);_.R([_.L({type:_.y("kevlar_property_type_migration_killswitch")?String:void 0}),_.Y("design:type",Object)],kG.prototype,"shippingAddressIcon",void 0);_.R([_.L({type:_.y("kevlar_property_type_migration_killswitch")?String:void 0}),_.Y("design:type",Object)],kG.prototype,"googleGuaranteeIcon",void 0);
_.R([_.L({type:_.y("kevlar_property_type_migration_killswitch")?String:void 0}),_.Y("design:type",Object)],kG.prototype,"returnPolicyIcon",void 0);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],kG.prototype,"showAdditionalFees",null);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],kG.prototype,"showMultiPurchaseButtons",null);
_.R([_.M("data","showMultiPurchaseButtons"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],kG.prototype,"showPurchaseData",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],kG);
_.q(kG,"ytd-product-details-hero-offer-renderer",function(){if(Zv6!==void 0)return Zv6;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Zv6=C},{mode:1});var NaB;var OvF;var UT=function(){return _.B.apply(this,arguments)||this};
_.O(UT,_.B);_.n=UT.prototype;_.n.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.n.onKeyDown=function(C){C=C.keyCode;C!==13&&C!==32||this.handleSelection()};
_.n.onMouseEnterImage=function(){var C;((C=this.data)==null?void 0:C.thumbnailDetails)!==void 0&&_.KX(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.n.onMouseLeaveImage=function(){_.KX(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.n.handleSelection=function(){this.data&&_.oo(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.I6.Object.defineProperties(UT.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.isSelected)}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],UT.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],UT.prototype,"data",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],UT.prototype,"isSelected",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],UT);
_.q(UT,"ytd-product-details-thumbnail-renderer",function(){if(OvF!==void 0)return OvF;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return OvF=C},{mode:1});var Hz=function(){var C=_.B.apply(this,arguments)||this;var F={};C.actionMap=(F["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",F["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",F);C.selectedThumbnailIndex=0;C.selectItem=function(G){G.target.onKeyDown(G)};
return C};
_.O(Hz,_.B);_.n=Hz.prototype;_.n.handlePreviewImageSelect=function(C){this.hoverThumbnail=C};
_.n.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.n.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.n.onThumbnailSelected=function(C,F){this.selectedThumbnailIndex=F};
_.n.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.n.updateOffset=function(){var C=_.ot(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-C));this.ytdHorizontalListBehavior.reposition_()};
_.I6.Object.defineProperties(Hz.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var C;if((C=this.data)==null?0:C.imageRenderer){var F,G;return((F=this.data)==null?void 0:(G=F.imageRenderer)==null?void 0:G.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var C;if((C=this.data)==null?0:C.imageRenderer){var F;return(F=_.Z(this.data.imageRenderer[this.selectedThumbnailIndex],T9L))==null?void 0:F.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var C=this,F,G,V,J=(V=(F=this.data)==null?void 0:(G=F.imageRenderer)==null?void 0:G.map(function(b,z){return{productDetailsThumbnailRenderer:Object.assign({},_.Z(b,T9L),{index:z,isSelected:z===C.selectedThumbnailIndex})}}))!=null?V:[];
return Object.assign({},this.data,{imageRenderer:J})}}});
Hz.prototype.updateOffset=Hz.prototype.updateOffset;Hz.prototype.dataChanged=Hz.prototype.dataChanged;Hz.prototype.onThumbnailSelected=Hz.prototype.onThumbnailSelected;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Hz.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Hz.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.QU.YtdHorizontalListBehavior),_.Y("design:type",Object)],Hz.prototype,"ytdHorizontalListBehavior",void 0);
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Hz.prototype,"componentBehavior",void 0);_.R([_.w([_.Z7.YtActionHandlerBehavior]),_.Y("design:type",Object)],Hz.prototype,"actionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Hz.prototype,"data",void 0);_.R([_.L({value:"$.items.children"}),_.Y("design:type",String)],Hz.prototype,"itemsPath",void 0);_.R([_.L({value:3}),_.Y("design:type",Number)],Hz.prototype,"initialCount",void 0);
_.R([_.$z("#items"),_.Y("design:type",Object)],Hz.prototype,"items",void 0);_.R([_.L(),_.Y("design:type",Object)],Hz.prototype,"selectedThumbnailIndex",void 0);_.R([_.L(),_.Y("design:type",Object)],Hz.prototype,"hoverThumbnail",void 0);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Hz.prototype,"showThumbnails",null);
_.R([_.VG("ytd-product-details-thumbnail-renderer-selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Number]),_.Y("design:returntype")],Hz.prototype,"onThumbnailSelected",null);_.R([_.M("data","selectedThumbnailIndex","hoverThumbnail"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Hz.prototype,"thumbnailDetails",null);_.R([_.M("data","selectedThumbnailIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Hz.prototype,"populatedData",null);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hz.prototype,"dataChanged",null);_.R([_.VG("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hz.prototype,"updateOffset",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],Hz);
_.q(Hz,"ytd-product-details-image-carousel-renderer",function(){if(NaB!==void 0)return NaB;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return NaB=C},{mode:_.oN("kevlar_poly_si_batch_j079")?1:2});var XwS;var lj=function(){return _.B.apply(this,arguments)||this};
_.O(lj,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],lj.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],lj.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],lj.prototype,"componentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],lj.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],lj);
_.q(lj,"ytd-product-details-offer-renderer",function(){if(XwS!==void 0)return XwS;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return XwS=C},{mode:1});var wwY;var yg=function(){var C=_.B.apply(this,arguments)||this;C.isOffersHidden=!0;return C};
_.O(yg,_.B);yg.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var C,F=_.Z((C=this.data)==null?void 0:C.viewOffersButton,_.DY);F&&this.ytRendererBehavior.logExplicitClick(F)};
yg.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.I6.Object.defineProperties(yg.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var C,F,G,V;return(G=_.Z((C=this.data)==null?void 0:(F=C.offers)==null?void 0:F[0],D_L))==null?void 0:(V=G.offerData)==null?void 0:V.vendorLogoUrl}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],yg.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],yg.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],yg.prototype,"componentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],yg.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],yg.prototype,"isOffersHidden",void 0);
_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yg.prototype,"firstOfferVendorLogoUrl",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],yg);
_.q(yg,"ytd-product-details-offers-container-renderer",function(){if(wwY!==void 0)return wwY;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return wwY=C},{mode:1});var M9B;var Sa_;var ZX=function(){return _.B.apply(this,arguments)||this};
_.O(ZX,_.B);ZX.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
ZX.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.KX(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
ZX.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.KX(this,"ytd-product-details-variant-image-unselect")};
_.I6.Object.defineProperties(ZX.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 C;return((C=this.data)==null?void 0:C.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var C,F,G;return((C=this.data)==null?void 0:C.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((F=this.data)==null?void 0:F.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((G=this.data)==null?void 0:G.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var C;if(((C=this.data)==null?void 0:C.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var C,F;return this.isUnavailable?(C=this.data)==null?void 0:C.variantOptionUnavailableAccessibilityLabel:(F=this.data)==null?void 0:F.variantOptionAccessibilityLabel}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ZX.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],ZX.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],ZX.prototype,"componentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],ZX.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",String)],ZX.prototype,"displayType",void 0);
_.R([_.M("displayType","data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ZX.prototype,"isImageButton",null);_.R([_.M("displayType","data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ZX.prototype,"isPillButton",null);_.R([_.M("data"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ZX.prototype,"isActive",null);
_.R([_.M("data"),_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ZX.prototype,"isUnavailable",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ZX.prototype,"thumbnailDetails",null);_.R([_.M("isUnavailable","data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ZX.prototype,"accessibilityLabel",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],ZX);
_.q(ZX,"ytd-product-details-variant-option-renderer",function(){if(Sa_!==void 0)return Sa_;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Sa_=C},{mode:1});var LbL;var NT=function(){var C=_.B.apply(this,arguments)||this;C.variantsExpanded=!1;C.hideShowMoreLessVariantButton=!0;C.initialized=!1;C.computeVariantsDebouncer=null;C.computeVariants=function(F){F=F===void 0?!1:F;C.variantsExpanded||C.showOptions()||!F||(C.variantsExpanded=!0);if(C.variantsExpanded){F=_.u(C.items.children);for(var G=F.next();!G.done;G=F.next())G.value.hidden=!1}C.initialized=!0};
return C};
_.O(NT,_.B);_.n=NT.prototype;_.n.ready=function(){var C=this;setTimeout(function(){C.computeVariants(!0)})};
_.n.showOptions=function(){for(var C=_.u(this.items.children),F=C.next();!F.done;F=C.next())F.value.hidden=!0;var G=this.container.getBoundingClientRect().width,V=0,J=C=0;F=!1;for(var b=_.u(this.items.children),z=b.next();!z.done;z=b.next()){z=z.value;z.hidden=!1;var Q=z.getBoundingClientRect().width;if(V+Q<G)V+=Q;else if(++J<2)V=Q;else break;C+=1;z.hasAttribute("is-active")&&(F=!0)}for(G=C;G<this.items.children.length;G++)this.items.children[G].hidden=!0;this.hideShowMoreLessVariantButton=C===this.items.children.length;
return F};
_.n.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.Qq(this.computeVariantsDebouncer,_.Ca.after(100),this.computeVariants)};
_.n.onShowMoreLessVariantsButtonClick=function(){var C;(C=this.data)!=null&&C.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.n.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.I6.Object.defineProperties(NT.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var C,F,G=(C=this.data)==null?void 0:(F=C.variantOptionRenderers)==null?void 0:F.find(function(b){return _.Z(b,rzL).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),V,J;
return(J=(V=_.Z(G,rzL))==null?void 0:V.name)!=null?J:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.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"}}}});
NT.prototype.debouncedComputeVariants=NT.prototype.debouncedComputeVariants;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],NT.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],NT.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],NT.prototype,"componentBehavior",void 0);_.R([_.w(_.AY),_.Y("design:type",Object)],NT.prototype,"ironResizableBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],NT.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],NT.prototype,"variantsExpanded",void 0);_.R([_.L(),_.Y("design:type",Object)],NT.prototype,"hideShowMoreLessVariantButton",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],NT.prototype,"initialized",void 0);_.R([_.$z("#items"),_.Y("design:type",HTMLDivElement)],NT.prototype,"items",void 0);_.R([_.$z("#container"),_.Y("design:type",HTMLDivElement)],NT.prototype,"container",void 0);
_.R([_.$z("#more-variants-button"),_.Y("design:type",HTMLElement)],NT.prototype,"moreVariantsButton",void 0);_.R([_.M("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],NT.prototype,"selectedOptionName",null);_.R([_.iP("data","variantsExpanded"),_.VG("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NT.prototype,"debouncedComputeVariants",null);
_.R([_.M("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],NT.prototype,"displayType",null);_.R([_.M("displayType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],NT.prototype,"variantItemsClassname",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],NT);
_.q(NT,"ytd-product-details-variant-renderer",function(){if(LbL!==void 0)return LbL;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return LbL=C},{mode:1});var OT=function(){return _.B.apply(this,arguments)||this};
_.O(OT,_.B);
OT.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"}}}};
_.I6.Object.defineProperties(OT.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var C,F,G=(F=_.Z((C=this.data)==null?void 0:C.offersContainerRenderer,KY0))==null?void 0:F.offers;return G!==void 0&&(G==null?void 0:G.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 C,F,G;return((G=(C=this.data)==null?void 0:(F=C.variants)==null?void 0:F.map(function(V){var J,b;V=(b=(J=_.Z(V,olL))==null?void 0:J.variantOptionRenderers)==null?void 0:b.find(function(Q){var E;return((E=_.Z(Q,rzL))==null?void 0:E.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var z;return(z=_.Z(V,rzL))==null?void 0:z.name}).filter(function(V){return typeof V==="string"}))!=null?G:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var C,F,G,V=(F=_.Z((C=this.data)==null?void 0:C.shoppingFlaggingRenderer,phT))==null?void 0:(G=F.reportButton)==null?void 0:G.buttonRenderer;if(V)return{text:V.text,command:V.command,icon:{iconType:"FLAG"},accessibilityData:V.accessibilityData,trackingParams:V.trackingParams,loggingDirectives:V.loggingDirectives}}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],OT.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],OT.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],OT.prototype,"componentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],OT.prototype,"data",void 0);_.R([_.$z("#image-carousel-renderer"),_.Y("design:type",Object)],OT.prototype,"imageCarouselRenderer",void 0);
_.R([_.$z("#hero-offer-renderer"),_.Y("design:type",Object)],OT.prototype,"productDetailsHeroOfferRenderer",void 0);_.R([_.$z("#variants"),_.Y("design:type",Object)],OT.prototype,"productDetailsVariantRenderer",void 0);_.R([_.$z("#offers"),_.Y("design:type",Object)],OT.prototype,"productDetailsOffersContainerRenderer",void 0);_.R([_.$z("#description-renderer"),_.Y("design:type",Object)],OT.prototype,"productDetailsDescriptionRenderer",void 0);
_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],OT.prototype,"showPurchaseData",null);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],OT.prototype,"showHeroOfferRenderer",null);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],OT.prototype,"showBrandText",null);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],OT.prototype,"showOffers",null);
_.R([_.M("showOffers","showPurchaseData"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],OT.prototype,"showBuySeparator",null);_.R([_.M("showOffers","showPurchaseData"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],OT.prototype,"showBuyCard",null);_.R([_.M("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],OT.prototype,"selectedVariantsText",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],OT.prototype,"shoppingReportingButtonData",null);
_.R([_.e({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],OT);
_.q(OT,"ytd-product-details-renderer",function(){if(M9B!==void 0)return M9B;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return M9B=C},{mode:1});var Ba_;var vOl;var f66;var XJ=function(){return _.B.apply(this,arguments)||this};
_.O(XJ,_.B);XJ.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.I6.Object.defineProperties(XJ.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],XJ.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],XJ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],XJ.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",String)],XJ.prototype,"formattedAmount",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],XJ.prototype,"ariaLabel",void 0);
_.R([_.L({reflectToAttribute:!0}),_.M("data.style"),_.Y("design:type",String),_.Y("design:paramtypes",[])],XJ.prototype,"vcBalanceWidgetStyle",null);_.R([_.Z5({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],XJ);
_.q(XJ,"yt-vc-balance-renderer",function(){if(f66===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;vOl===void 0&&(vOl=document.createElement("template"));var V=vOl;G.call(F,V.content.cloneNode(!0),C.content.firstChild);f66=C}C=f66;return C},{mode:2});_.ae("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var ww=function(){return _.B.apply(this,arguments)||this};
_.O(ww,_.B);_.I6.Object.defineProperties(ww.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:""}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ww.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],ww.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],ww.prototype,"data",void 0);_.R([_.L({selectorArgs:["data.vcBalanceEntityKey"],selector:function(C,F){return _.jN(C.entities,"vcBalanceEntity",F)}}),
_.Y("design:type",Object)],ww.prototype,"vcBalanceEntity",void 0);_.R([_.M("vcBalanceEntity"),_.Y("design:type",String),_.Y("design:paramtypes",[])],ww.prototype,"formattedAmount",null);_.R([_.M("vcBalanceEntity"),_.Y("design:type",String),_.Y("design:paramtypes",[])],ww.prototype,"vcBalanceAriaLabel",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],ww);
_.q(ww,"ytd-vc-balance-renderer",function(){if(Ba_!==void 0)return Ba_;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Ba_=C},{mode:1});var hd0;var MT=function(){var C=_.B.apply(this,arguments)||this;C.rotation=0;C.isReloading=!1;return C};
_.O(MT,_.B);MT.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
MT.prototype.reset=function(){this.hostElement.style.opacity=""};
MT.prototype.close=function(){var C=this;return _.I(function(F){if(F.nextAddress==1)return F.yield(C.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);C.hostElement.style.opacity="0";_.S9(F)})};
MT.prototype.rotationChanged=MT.prototype.rotationChanged;_.R([_.L(),_.Y("design:type",Object)],MT.prototype,"rotation",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],MT.prototype,"isReloading",void 0);_.R([_.$z("#icon"),_.Y("design:type",HTMLElement)],MT.prototype,"icon",void 0);_.R([_.iP("rotation"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MT.prototype,"rotationChanged",null);
_.R([_.e({disableElementRegistration:!0,is:"ytd-refresh"})],MT);
_.q(MT,"ytd-refresh",function(){if(hd0!==void 0)return hd0;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return hd0=C},{mode:1});var cWF;var S5=function(){return _.B.apply(this,arguments)||this};
_.O(S5,_.B);S5.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"}}}};
S5.prototype.dataChanged=function(){if(this.data){var C=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var F=_.RP(this.data.banner.thumbnails,this.hostElement.clientWidth);F&&(F.indexOf("//")===0&&(F="https:"+F),this.hasBannerArt=!0,_.jr(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+F+")"}))}this.hasBannerArt!==C&&_.ot(this.hostElement).querySelector("#header").fire("iron-resize")}};
S5.prototype.updateSelectedFromBinding=function(C){this.selected=C.detail.value};
S5.prototype.dataChanged=S5.prototype.dataChanged;_.R([_.w(jpz),_.Y("design:type",Object)],S5.prototype,"ytdTabbedHeaderBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],S5.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.rK),_.Y("design:type",Object)],S5.prototype,"ytdGridStateAwareBehavior",void 0);_.R([_.w(_.DL.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],S5.prototype,"ytdGuideStateAwareBehavior",void 0);
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],S5.prototype,"componentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],S5.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Number)],S5.prototype,"selected",void 0);_.R([_.L(),_.Y("design:type",Boolean)],S5.prototype,"active",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],S5.prototype,"hasBannerArt",void 0);
_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],S5.prototype,"dataChanged",null);_.R([_.e({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],S5);
_.q(S5,"ytd-interactive-tabbed-header-renderer",function(){if(cWF!==void 0)return cWF;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return cWF=C},{mode:1});var AW6;var Ln=function(){return _.B.apply(this,arguments)||this};
_.O(Ln,_.B);Ln.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Ln.prototype.computeActionsAlignment=function(C){return(C==null?void 0:C.actionsAlignment)||""};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Ln.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Ln.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Ln.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.Y("design:type",String)],Ln.prototype,"actionsAlignment",void 0);_.R([_.e({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],Ln);
_.q(Ln,"ytd-page-footer-renderer",function(){if(AW6!==void 0)return AW6;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return AW6=C},{mode:1});var edY;var daT;var Bz=function(){var C=_.B.apply(this,arguments)||this;C.isEditing=!1;C.useSlot=!1;C.isMultiline=!1;return C};
_.O(Bz,_.B);_.n=Bz.prototype;_.n.onKeydown=function(C){if(C.keyCode===13&&!this.isMultiline)this.onSave();else if(C.keyCode===27)this.onCancel()};
_.n.computeComponentStyle=function(C){return(C==null?0:C.style)?C.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.n.computeisMultiline=function(C){if(this.multilineOverride!==void 0)return this.multilineOverride;var F,G;return!!(C==null?0:(F=C.formField)==null?0:(G=F.textInputFormFieldRenderer)==null?0:G.isMultiline)};
_.n.computeTextDisplayed=function(C,F){if(C)return C;if(F)return F};
_.n.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.n.onSave=function(){if(this.textForm.validate()){this.textForm.save();var C=this.textForm.value;if(C)this.set("data.textDisplayed",_.eN(C));else{var F;((F=this.data)==null?0:F.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.G6("inline-form-changed",this.data));this.isEditing=!1}};
_.n.onCancel=function(){var C=_.dd(this.data.textDisplayed);C===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(C);this.isEditing=!1};
Bz.prototype.onKeydown=Bz.prototype.onKeydown;_.R([_.w(_.h9.YtEventForwardingBehavior),_.Y("design:type",Object)],Bz.prototype,"ytEventForwardingBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Bz.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Bz.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Bz.prototype,"data",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Bz.prototype,"isEditing",void 0);_.R([_.L(),_.Y("design:type",Object)],Bz.prototype,"useSlot",void 0);_.R([_.L(),_.Y("design:type",Boolean)],Bz.prototype,"multilineOverride",void 0);_.R([_.L(),_.Y("design:type",Boolean)],Bz.prototype,"enableOverlayTheme",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.Y("design:type",String)],Bz.prototype,"componentStyle",void 0);
_.R([_.L({computed:"computeisMultiline(data)"}),_.Y("design:type",Object)],Bz.prototype,"isMultiline",void 0);_.R([_.$z("#text-form"),_.Y("design:type",Object)],Bz.prototype,"textForm",void 0);_.R([_.VG("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],Bz.prototype,"onKeydown",null);_.R([_.e({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],Bz);
_.q(Bz,"ytd-inline-form-renderer",function(){if(daT!==void 0)return daT;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return daT=C},{mode:1});var xaz;var vz=function(){var C=_.B.apply(this,arguments)||this;C.previousSelectValue=void 0;C.selectedItemMessage=void 0;return C};
_.O(vz,_.B);vz.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
vz.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var C,F,G,V,J=(C=this.data)==null?void 0:(F=C.dropdown)==null?void 0:(G=F.dropdownRenderer)==null?void 0:(V=G.entries)==null?void 0:V.map(function(Q){return Q.privacyDropdownItemRenderer});
C=_.u(J!=null?J:[]);for(F=C.next();!F.done;F=C.next())if((F=F.value)&&F.int32Value===this.selectedValue){this.selectedItemMessage=F.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 z;(z=this.data)!=null&&z.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
vz.prototype.onValueChangedForSelectedValue=function(C){this.selectedValue=C.detail.value};
vz.prototype.selectedValueChanged=vz.prototype.selectedValueChanged;_.R([_.w(_.h9.YtEventForwardingBehavior),_.Y("design:type",Object)],vz.prototype,"ytEventForwardingBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],vz.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],vz.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],vz.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],vz.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",String)],vz.prototype,"theme",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Number)],vz.prototype,"selectedValue",void 0);_.R([_.L(),_.Y("design:type",Function)],vz.prototype,"onValueChanged",void 0);
_.R([_.zp("selectedValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vz.prototype,"selectedValueChanged",null);_.R([_.e({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],vz);
_.q(vz,"ytd-dropdown-form-field-renderer",function(){if(xaz!==void 0)return xaz;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return xaz=C},{mode:_.oN("kevlar_poly_si_batch_j025")?1:2});var spS;var fn=function(){return _.B.apply(this,arguments)||this};
_.O(fn,_.B);_.I6.Object.defineProperties(fn.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var C=[],F=_.u(this.data||[]),G=F.next();!G.done;G=F.next())(G=_.Z(G.value,m_z))&&C.push(G);return C}}});
_.R([_.L(),_.Y("design:type",Array)],fn.prototype,"data",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],fn.prototype,"byline",null);_.R([_.e({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],fn);
_.q(fn,"ytd-playlist-byline-renderer",function(){if(spS!==void 0)return spS;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return spS=C},{mode:1});var qaS;var hd=function(){var C=_.B.apply(this,arguments)||this;C.rtlBullet=_.y("web_playlist_stats_rtl_bullet_icon_killswitch");C.modern=_.y("web_modern_buttons");C.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return C};
_.O(hd,_.B);_.n=hd.prototype;_.n.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"}}}}};
_.n.attached=function(){};
_.n.computeIsCustomThumbnail=function(C){return C?!!C.playlistCustomThumbnailRenderer:!1};
_.n.onYtNavigate=function(C,F){if(F&&F.actions&&F.actions.indexOf("shuffle")>-1){C=_.I8().resolve(_.Fx);var G=F.tempData||{};G.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);F.tempData=G;C.isShuffleNextPlaylist=!0}};
_.n.onUpdatePlaylistAction=function(C){var F;C=(F=_.Z(C,_.vr$))==null?void 0:F.updatedRenderer;if(F=_.Z(C,YLF))this.data=F};
_.n.computeStyleType=function(C){return C?C.toLowerCase().replace(/_/g,"-"):""};
_.n.computeThumbnailWidth=function(C){return C==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.n.computeHideThumbnailAria=function(C){if(C==null?0:C.thumbnailOverlays)for(var F=0;F<C.thumbnailOverlays.length;F++){var G=void 0;if((G=C.thumbnailOverlays[F])==null?0:G.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
hd.prototype.onYtNavigate=hd.prototype.onYtNavigate;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],hd.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],hd.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],hd.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],hd.prototype,"ytComponentBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],hd.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],hd.prototype,"rtlBullet",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.Y("design:type",String)],hd.prototype,"styleType",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.Y("design:type",Number)],hd.prototype,"thumbnailWidth",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],hd.prototype,"modern",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.Y("design:type",Boolean)],hd.prototype,"isCustomThumbnail",void 0);_.R([_.VG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,Object]),_.Y("design:returntype")],hd.prototype,"onYtNavigate",null);_.R([_.e({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],hd);
_.q(hd,"ytd-playlist-sidebar-primary-info-renderer",function(){if(qaS!==void 0)return qaS;var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return qaS=C},{mode:1});var Pi0;var cz=function(){return _.B.apply(this,arguments)||this};
_.O(cz,_.B);cz.prototype.computeOwnerVisibility=function(C){return!(!C.videoOwner&&!C.button)};
cz.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"}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],cz.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],cz.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],cz.prototype,"data",void 0);_.R([_.e({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],cz);
_.q(cz,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(Pi0!==void 0)return Pi0;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Pi0=C},{mode:1});var gOn;var Ad=function(){var C=_.B.apply(this,arguments)||this;C.expanded=!1;C.isCompact=!1;return C};
_.O(Ad,_.B);_.n=Ad.prototype;_.n.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.n.dataChanged=function(){this.data&&_.$O(_.ot(this.text),_.gOl(_.Ta8,_.dd(this.data.text||null)))};
_.n.computeAutoScrollEnabled=function(C,F){return C&&!F};
_.n.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.n.toggleOnTap=function(){this.expanded=!this.expanded};
Ad.prototype.expandedChanged=Ad.prototype.expandedChanged;Ad.prototype.dataChanged=Ad.prototype.dataChanged;_.R([_.w(_.v_0),_.Y("design:type",Object)],Ad.prototype,"ytdAutoScrollBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Ad.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Ad.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Ad.prototype,"expanded",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Ad.prototype,"isCompact",void 0);_.R([_.L({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.Y("design:type",Boolean)],Ad.prototype,"autoScrollEnabled",void 0);_.R([_.$z("#text"),_.Y("design:type",Object)],Ad.prototype,"text",void 0);_.R([_.$z("#expander-icon"),_.Y("design:type",Object)],Ad.prototype,"expanderIcon",void 0);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ad.prototype,"dataChanged",null);_.R([_.iP("expanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ad.prototype,"expandedChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],Ad);
_.q(Ad,"ytd-channel-legal-info-renderer",function(){if(gOn!==void 0)return gOn;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return gOn=C},{mode:1});var RdB;var YaS=_.iQ("DOWNLOAD",{},"Download"),Ta0=_.iQ("DOWNLOADING",{},"Downloading"),oO0=_.iQ("DOWNLOADED",{},"Downloaded"),e5=function(){var C=_.B.apply(this,arguments)||this;C.downloadProgress=0;C.isDownloadComplete=!1;C.transferState="TRANSFER_STATE_UNKNOWN";return C};
_.O(e5,_.B);_.n=e5.prototype;_.n.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.n.dataChanged=function(){var C;(C=this.data)!=null&&C.tooltip||(C=_.X0(_.s3().getState(),this.playlistId),this.updateButtonState(C))};
_.n.computePlaylistId=function(C){return C};
_.n.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.n.updateButtonState=function(C){if(this.data&&(this.data.tooltip!==Ta0||!_.uK(C))){this.isDownloadComplete=!1;switch(C){case "TRANSFER_STATE_UNKNOWN":C=YaS;var F="OFFLINE_DOWNLOAD";var G="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":C=oO0;F="OFFLINE_PIN";G="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":C=Ta0;F="OFFLINE_DOWNLOADING_ZERO";G="ACTION_REMOVE_WITH_PROMPT";
break;default:C=YaS,F="OFFLINE_DOWNLOAD",G="ACTION_ADD"}var V=Object.assign({},this.data);V.tooltip=C;V.accessibilityData={accessibilityData:{label:C}};V.icon={iconType:F};V.size="SIZE_DEFAULT";_.Z(V.command,_.Jm)&&(_.Z(V.command,_.Jm).action=G);this.set("data",V)}};
_.n.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var C="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?C="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?C="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?C="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?C="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?C="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(C="OFFLINE_PIN",this.isDownloadComplete=!0);var F;C!==((F=this.data.icon)==null?void 0:F.iconType)&&(F=Object.assign({},this.data),F.tooltip=Ta0,F.accessibilityData={accessibilityData:{label:Ta0}},F.icon={iconType:C},_.Z(F.command,_.Jm)&&(_.Z(F.command,_.Jm).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",F))}};
e5.prototype.updateProgress=e5.prototype.updateProgress;e5.prototype.onTransferStateChanged=e5.prototype.onTransferStateChanged;e5.prototype.dataChanged=e5.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],e5.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],e5.prototype,"ytdReduxBehavior",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],e5.prototype,"forceIconButton",void 0);
_.R([_.L({value:!0}),_.Y("design:type",Boolean)],e5.prototype,"forceIconOnly",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],e5.prototype,"overrides",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],e5.prototype,"buttonTooltipPosition",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],e5.prototype,"styleActionButton",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],e5.prototype,"disableTextTransform",void 0);
_.R([_.L({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.Y("design:type",String)],e5.prototype,"playlistId",void 0);_.R([_.L(),_.Y("design:type",Object)],e5.prototype,"data",void 0);_.R([_.L({selector:_.qbw,selectorArgs:["playlistId"]}),_.Y("design:type",Object)],e5.prototype,"downloadProgress",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],e5.prototype,"isDownloadComplete",void 0);
_.R([_.L({selector:_.X0,selectorArgs:["playlistId"]}),_.Y("design:type",String)],e5.prototype,"transferState",void 0);_.R([_.L({value:!0}),_.Y("design:type",Boolean)],e5.prototype,"showTooltips",void 0);_.R([_.L({value:!0}),_.Y("design:type",Boolean)],e5.prototype,"sendCommandWhenDisabled",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],e5.prototype,"disabled",void 0);
_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],e5.prototype,"dataChanged",null);_.R([_.zp("transferState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],e5.prototype,"onTransferStateChanged",null);_.R([_.zp("downloadProgress"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],e5.prototype,"updateProgress",null);
_.R([_.e({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],e5);
_.q(e5,"ytd-download-playlist-button-renderer",function(){if(RdB!==void 0)return RdB;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return RdB=C},{mode:1});var rWY;_.gQ(_.Jf7,"thumbnail-overlay-button-view-model",{props:{data:_.CJ,lockupExperiments:_.CJ}});var dw=function(){var C=_.B.apply(this,arguments)||this;C.isSquare=!1;C.isVertical=!1;return C};
_.O(dw,_.B);dw.prototype.computeIsSquare=function(C){return C!=null&&C.thumbnail?XhY(C.thumbnail)==="SQUARE":!1};
dw.prototype.computeIsVertical=function(C){return C!=null&&C.thumbnail?XhY(C.thumbnail)==="VERTICAL":!1};
dw.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],dw.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],dw.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.Y("design:type",Object)],dw.prototype,"isSquare",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.Y("design:type",Object)],dw.prototype,"isVertical",void 0);
_.R([_.L(),_.Y("design:type",Object)],dw.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],dw);
_.q(dw,"ytd-hero-playlist-thumbnail-renderer",function(){if(rWY!==void 0)return rWY;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return rWY=C},{mode:1});var xG=function(){var C=_.B.apply(this,arguments)||this;C.isDarkTheme=!1;C.isUltraWide=!1;C.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return C};
_.O(xG,_.B);_.n=xG.prototype;_.n.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.I8();var C;(C=_.I8().resolve(_.Qt(_.we)))!=null&&(C.headerElement=this.hostElement)};
_.n.detached=function(){var C;(C=_.I8().resolve(_.Qt(_.we)))!=null&&(C.headerElement=void 0)};
_.n.onUpdateHeader=function(C){(C=C.detail)&&this.set("data",C)};
_.n.computeTextDisplayed=function(C){if(C)return C.textDisplayed?C.textDisplayed:C.placeholder};
_.n.gradientColorToLinearGradientStop=function(C){var F=this.isDarkTheme?C.darkThemeColor:C.lightThemeColor;return F?_.lE(F)+" "+((C==null?void 0:C.startLocation)||0)*100+"%":"transparent"};
_.n.onWindowResize=function(){var C;((C=this.data)==null?0:C.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.n.onIronResize=function(C){this.isUltraWide=!C.detail.value};
_.n.onDarkModeToggledAction=function(C){this.isDarkTheme=C};
_.n.onUpdatePlaylistName=function(C){var F=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},C.detail.value));_.zH(this,function(){var G;(G=F.editableTitle)==null||G.resize()})};
_.n.onUpdatePlaylistDescription=function(C){var F=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},C.detail.value));_.zH(this,function(){var G;(G=F.editableDescriptionInlineExpander)==null||G.resize()})};
_.n.getCinematicData=function(C){return _.Z(C==null?void 0:C.cinematicContainer,_.FJ)};
_.I6.Object.defineProperties(xG.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 C,F=(C=this.getCinematicData(this.data))==null?void 0:C.config;return(C=this.isDarkTheme?F==null?void 0:F.darkThemeBackgroundColor:F==null?void 0:F.lightThemeBackgroundColor)?"background-color:"+_.Hr(C)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var C;return _.Z((C=this.data)==null?void 0:C.descriptionForm,R__)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var C=this,F,G,V;return"background:linear-gradient(to bottom, "+(((V=(F=this.getCinematicData(this.data))==null?void 0:(G=F.gradientColorConfig)==null?void 0:G.map(function(J){return C.gradientColorToLinearGradientStop(J)}))==null?void 0:V.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var C;return _.dd((C=this.data)==null?void 0:C.descriptionTapText)}}});
xG.prototype.onUpdateHeader=xG.prototype.onUpdateHeader;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],xG.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],xG.prototype,"actionHandlerBehavior",void 0);_.R([_.$z("#description-inline-expander"),_.Y("design:type",Object)],xG.prototype,"descriptionInlineExpander",void 0);
_.R([_.$z("#editable-description-inline-expander"),_.Y("design:type",Object)],xG.prototype,"editableDescriptionInlineExpander",void 0);_.R([_.L(),_.Y("design:type",Object)],xG.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],xG.prototype,"isUltraWide",void 0);_.R([_.$z("#editable-title-display"),_.Y("design:type",Object)],xG.prototype,"editableTitle",void 0);_.R([_.M("isUltraWide"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],xG.prototype,"maxDescriptionLines",null);
_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],xG.prototype,"noCinematicData",null);_.R([_.VG("yt-new-playlist-header"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],xG.prototype,"onUpdateHeader",null);_.R([_.M("data","isDarkTheme"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],xG.prototype,"backgroundStyle",null);
_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],xG.prototype,"descriptionFormData",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],xG.prototype,"getDropdownTheme",null);_.R([_.M("data","isDarkTheme"),_.Y("design:type",String),_.Y("design:paramtypes",[])],xG.prototype,"gradientStyle",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],xG.prototype,"descriptionTapText",null);
_.R([_.e({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],xG);
_.q(xG,"ytd-playlist-header-renderer",function(){if(edY!==void 0)return edY;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return edY=C},{mode:_.oN("kevlar_poly_si_batch_j078")?1:2});var KbL;var Da9;var sT=function(){return _.B.apply(this,arguments)||this};
_.O(sT,_.B);sT.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],sT.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],sT.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],sT.prototype,"data",void 0);_.R([_.e({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],sT);
_.q(sT,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(Da9!==void 0)return Da9;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Da9=C},{mode:1});var qT=function(){return _.B.apply(this,arguments)||this};
_.O(qT,_.B);
qT.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}}}}};
qT.prototype.computeUsePremiumShowStyle=function(C){if(!C||!C.items)return!1;for(var F=0;F<C.items.length;F++)if(_.Z(C.items[F],YLF)){var G=void 0;return((G=_.Z(C.items[F],YLF))==null?void 0:G.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],qT.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],qT.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],qT.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.Y("design:type",Boolean)],qT.prototype,"usePremiumShowStyle",void 0);
_.R([_.e({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],qT);
_.q(qT,"ytd-playlist-sidebar-renderer",function(){if(KbL!==void 0)return KbL;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return KbL=C},{mode:1});var pwn;var maS;var Ch0=function(C,F,G,V,J,b,z,Q){this.minWidth=C;this.minHeight=F;this.recommendedWidth=G;this.recommendedHeight=V;this.JSC$22414_maxFileSize=J;this.title=b;this.bannerGalleryTitle=z;this.channelId=Q;this.picker_=null;C=_.uA9("yt-banner");F=C.addView;G=(new h_0("youtubebanner")).addUploadMetadata("silo_id","19");G.opts.ytMaxFileSize=this.JSC$22414_maxFileSize;V=this.recommendedHeight;G.opts.ytRecWidth=this.recommendedWidth;G.opts.ytRecHeight=V;F.call(C,G);C.addView(new _.Ov);F=C.addView;G=new _.Ov;
G.opts.type="ytbanner";F.call(C,G.JSC$10073_setLabel(this.bannerGalleryTitle));F=C.setTitle(this.title).setSize(1E3);F.urlParamMap_.set("thumbs","orig");G=this.minWidth;V=this.minHeight;if(isNaN(G)||isNaN(V))throw Error("gb`"+G+"`"+V);F.urlParamMap_.set("minSize",G+"x"+V);F.urlParamMap_.set("cropMode","ytcb");this.builder_=C};
Ch0.prototype.open=function(){var C=this;return new _.N1(function(F,G){_.S8o(C.builder_,function(V){V.action=="picked"?F(V):V.action=="cancel"&&G(Error("Mo"))});
C.picker_&&C.picker_.dispose();C.picker_=C.builder_.build();C.picker_.setVisible(!0)})};
Ch0.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var jRh=function(C){this.channelId=C};
jRh.prototype.upload=function(C){var F="";C.viewToken&&(F=C.viewToken[2].type);var G=C.docs[0];C=G.crop;F={channel_id:this.channelId,fife_url:G.thumbnails[0].url,photo_id:G.id,is_gallery_image:F=="ytbanner"};C&&(F.crop_top=C.top,F.crop_right=C.right,F.crop_bottom=C.bottom,F.crop_left=C.left);return _.zrS("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:F})};var Pz=function(){var C=_.B.apply(this,arguments)||this;C.ariaLabel=null;return C};
_.O(Pz,_.B);_.n=Pz.prototype;_.n.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.n.detached=function(){this.picker&&this.picker.dispose()};
_.n.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.n.computeAriaLabel=function(C){return C};
_.n.onTap=function(){var C=this,F;if((F=this.data)==null||!F.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new Ch0(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 G;(G=this.picker)==null||G.open().then(function(V){C.handleBannerPicked(V)},function(){})}};
_.n.handleBannerPicked=function(C){var F=this;this.uploader||(this.uploader=new jRh(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(C).then(function(G){F.handleBannerUploadSucceeded(G)},function(G){F.handleBannerUploadFailed(G)})};
_.n.handleBannerUploadSucceeded=function(C){C&&C.errors?this.handleBannerUploadFailed(C):(_.oo(this.hostElement,"yt-banner-updated",C),this.message=null)};
_.n.handleBannerUploadFailed=function(C){this.message=C&&C.errors&&C.errors.length?C.errors[0]:null};
Pz.prototype.dataChanged=Pz.prototype.dataChanged;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Pz.prototype,"componentBehavior",void 0);_.R([_.w(_.dg),_.Y("design:type",Object)],Pz.prototype,"ironButtonState",void 0);_.R([_.L(),_.Y("design:type",Object)],Pz.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.Y("design:type",Object)],Pz.prototype,"ariaLabel",void 0);
_.R([_.L(),_.Y("design:type",Object)],Pz.prototype,"message",void 0);_.R([_.L(),_.Y("design:type",Object)],Pz.prototype,"picker",void 0);_.R([_.L(),_.Y("design:type",Object)],Pz.prototype,"uploader",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Pz.prototype,"dataChanged",null);_.R([_.e({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],Pz);
_.q(Pz,"ytd-channel-banner-editor-renderer",function(){if(maS!==void 0)return maS;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return maS=C},{mode:1});var FiF;var Gk_=_.h6(["#"]),gw=function(){return _.B.apply(this,arguments)||this};
_.O(gw,_.B);gw.prototype.computeHrefWithDefault=function(C){return this.ytComponentBehavior.computeHref_(C,!0)||_.$aI(Gk_)};
gw.prototype.dataChanged=function(){var C=this.data;C&&C.targetId&&_.k8o(_.w6(),C.targetId,this.moreIcon)};
gw.prototype.dataChanged=gw.prototype.dataChanged;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],gw.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],gw.prototype,"data",void 0);_.R([_.$z("#more-icon"),_.Y("design:type",Object)],gw.prototype,"moreIcon",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gw.prototype,"dataChanged",null);
_.R([_.e({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],gw);
_.q(gw,"ytd-channel-tagline-renderer",function(){if(FiF!==void 0)return FiF;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return FiF=C},{mode:1});var VyS;var RC=function(){return _.B.apply(this,arguments)||this};
_.O(RC,_.B);_.n=RC.prototype;_.n.ready=function(){var C=this;_.ot(this.hostElement).querySelector("#form").addEventListener("submit",function(F){C.onSubmit(F)})};
_.n.onDataChanged=function(){var C;((C=this.data)==null?0:C.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.n.onIconButtonKeydown=function(C){C.keyCode===13&&this.iconButton.click()};
_.n.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.n.openOnClickHandler=function(){this.input.focus()};
_.n.onSubmit=function(C){C.preventDefault();return!1};
_.n.submitOnEnterKeyUp=function(C){var F;if(C.keyCode===13&&((F=this.data)==null?0:F.expandedText)){C=this.data.endpoint;F=_.xf.unsafeClone(C);var G;((G=_.Z(F==null?void 0:F.commandMetadata,_.GU))==null?0:G.url)?(_.Z(F.commandMetadata,_.GU).url=_.rD(_.Z(F.commandMetadata,_.GU).url,"query",this.data.expandedText),_.Z(F,_.iE)&&(_.Z(F,_.iE).query=this.data.expandedText),_.oo(this.hostElement,"yt-navigate",{endpoint:F,tempData:{disableCache:!0}})):(G=new _.Ay("Error: Trying to navigate to an endpoint without url",
C),_.gD(G))}};
_.n.updateDataExpandedTextFromBinding=function(C){this.set("data.expandedText",C.detail.value)};
_.I6.Object.defineProperties(RC.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.y("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
RC.prototype.onDataChanged=RC.prototype.onDataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],RC.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.XrL),_.Y("design:type",Object)],RC.prototype,"ytdExpandableInputBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],RC.prototype,"data",void 0);_.R([_.$z("#input"),_.Y("design:type",Object)],RC.prototype,"input",void 0);_.R([_.$z("#icon-button"),_.Y("design:type",HTMLElement)],RC.prototype,"iconButton",void 0);
_.R([_.L(),_.Y("design:type",String),_.Y("design:paramtypes",[])],RC.prototype,"searchIcon",null);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RC.prototype,"onDataChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],RC);
var whS=_.Tp()(RC,"ytd-expandable-tab-renderer",function(){if(VyS===void 0){var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="[[searchIcon]]" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);VyS=C}C=VyS;return C},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var iAL;var YG=function(){var C=_.B.apply(this,arguments)||this;C.avatarSize=80;C.ariaLabel=_.iQ("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return C};
_.O(YG,_.B);YG.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
YG.prototype.computeHref=function(C){var F;return((F=_.Z(C,_.jW))==null?0:F.url)?this.componentBehavior.computeHref_(C):null};
YG.prototype.onTap=function(){var C,F;(C=this.data)==null||!C.editAvatarServiceEndpoint||((F=_.Z(this.data.editAvatarServiceEndpoint,_.jW))==null?0:F.url)||_.I8().resolve(_.WD).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.R([_.w(_.dg),_.Y("design:type",Object)],YG.prototype,"ironButtonState",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],YG.prototype,"componentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],YG.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],YG.prototype,"avatarSize",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],YG.prototype,"ariaLabel",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],YG);
_.q(YG,"ytd-channel-avatar-editor",function(){if(iAL!==void 0)return iAL;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return iAL=C},{mode:1});var JG0=_.d(function(C){var F=C.data;var G=C.noPadding;var V=C.enableBanner;var J=C.cinematicContainerTopbarOffset;var b=C.allowCinematicContainerOverflow;var z=C.displayAsSidebar;C=C.className;_.sq(function(){F().tagManagerId&&(_.fS(F().tagManagerId,_.TF("GL")),f0_(F().tagManagerId))},"vUc8md");
var Q=_.$b(SLF,function(){return F().pageHeaderEntityKey});
return _.W("yt-page-header-renderer",{class:_.py("pageHeaderRendererHost",C)},_.W(_.uC,{data:function(){var E;return((E=Q())==null?0:E.header)?Q().header:(z==null?0:z())&&F().sidebarContent?F().sidebarContent:F().content}},{pageHeaderViewModel:function(E){return _.W(_.qoS,{data:E.data,
noPadding:G,enableBanner:V,cinematicContainerTopbarOffset:J,allowCinematicContainerOverflow:b,displayAsSidebar:function(){return(z==null?void 0:z())&&F().enableSidebarView}})}}))},"Qm");
JG0.idomCompat=!0;_.gQ(JG0,"yt-page-header-renderer",{props:{data:_.CJ,noPadding:_.CJ,enableBanner:_.CJ,cinematicContainerTopbarOffset:_.CJ,allowCinematicContainerOverflow:_.CJ,displayAsSidebar:_.CJ,className:_.CJ}});_.gQ(_.CF,"yt-image-banner-view-model",{props:{data:_.CJ,isPositionRelative:_.CJ}});_.gQ(_.$fl,"yt-tab-group-shape",{props:{shape:_.CJ}});var $lF=_.SV.persistentPanelVisibleSelector,T2=function(){var C=_.B.apply(this,arguments)||this;C.expandableCustomTabRenderable=function(F){return MS_(F,function(){return void C.onSearchNavigate()})};
C.isRichGrid=!1;C.isConstrainedList=!1;C.richGridMiniMode=!1;C.richGridStyle="RICH_GRID_STYLE_UNKNOWN";C.isRichGridShorts=!1;C.responsiveSizing="COMPACT";C.disableGridStateAware=!1;C.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return C};
_.O(T2,_.B);_.n=T2.prototype;_.n.computeHeaderDisabled=function(C,F){return F||!C||this.tabsHidden};
_.n.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.n.computeIsRichGridShorts=function(C){return C==="RICH_GRID_STYLE_SHORTS_GRID"||C==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.n.computeImageBannerViewModel=function(){var C,F;return _.Z((F=_.Z((C=this.data)==null?void 0:C.content,_.uC$))==null?void 0:F.banner,_.GvG)};
_.n.computeHasCinematicContainer=function(){var C,F;return!((F=_.Z((C=this.data)==null?void 0:C.content,_.uC$))==null||!F.background)};
_.n.handleHeaderResize=function(){var C=_.ot(this.hostElement).querySelector("#header");C&&_.oo(C,"iron-resize")};
_.n.handleInsertTabCommand=function(C){var F=_.Z(C,CiB);F&&(F.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(G){return G.tabRenderer&&G.tabRenderer.tabIdentifier===F.tabIdentifier})||this.splice("tabs",F.tabIndex||-1,0,F.tab))};
_.n.handleRefreshChannelTabAction=function(C){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===C&&_.oo(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.n.persistentPanelVisibleChanged=function(){this.handleHeaderResize()};
_.n.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.jr(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.n.observerRichGridSlimItemsPerRow=function(){_.jr(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.n.updateCssVars=function(){this.richGridItemsPerRow&&_.jr(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.a8("rich_grid_max_item_width",500))+16)-16+"px"})};
_.n.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.jr(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.n.onDataChanged=function(){this.handleHeaderResize()};
_.n.onWindowResize=function(){this.handleHeaderResize()};
_.n.onFocusedChanged=function(C){(C=_.ev(C))&&C.is==="tp-yt-paper-tab"&&C.hasRipple()&&(C.getRipple().holdDown=!C.pointerDown&&C.focused)};
_.n.updateSelectedFromBinding=function(C){this.ytdTabbedHeaderBehavior.selected=C.detail.value};
_.n.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.I6.Object.defineProperties(T2.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:B9B(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.imageBannerViewModel)==null?void 0:C.style)==="IMAGE_BANNER_STYLE_INSET"}}});
T2.prototype.onDataChanged=T2.prototype.onDataChanged;T2.prototype.updateCssVarsForResponsiveGrid=T2.prototype.updateCssVarsForResponsiveGrid;T2.prototype.updateCssVars=T2.prototype.updateCssVars;T2.prototype.observerRichGridSlimItemsPerRow=T2.prototype.observerRichGridSlimItemsPerRow;T2.prototype.observerRichGridItemsPerRow=T2.prototype.observerRichGridItemsPerRow;T2.prototype.persistentPanelVisibleChanged=T2.prototype.persistentPanelVisibleChanged;
_.R([_.w(_.rK),_.Y("design:type",Object)],T2.prototype,"ytdGridStateAwareBehavior",void 0);_.R([_.w(jpz),_.Y("design:type",Object)],T2.prototype,"ytdTabbedHeaderBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],T2.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],T2.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.w(_.DL.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],T2.prototype,"ytdGuideStateAwareBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],T2.prototype,"ytdReduxBehavior",void 0);_.R([_.$z("#tabs"),_.Y("design:type",Object)],T2.prototype,"tabsElement",void 0);_.R([_.L(),_.Y("design:type",Array)],T2.prototype,"tabs",void 0);_.R([_.L(),_.Y("design:type",Object)],T2.prototype,"expandableCustomTabRenderable",void 0);
_.R([_.M("tabs.*"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],T2.prototype,"tabGroupShape",null);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],T2.prototype,"isRichGrid",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],T2.prototype,"isConstrainedList",void 0);_.R([_.L({reflectToAttribute:!0,selector:_.HY}),_.Y("design:type",Object)],T2.prototype,"richGridMiniMode",void 0);_.R([_.L({selector:function(C){return C.ui.richGridStyle}}),
_.Y("design:type",Object)],T2.prototype,"richGridStyle",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.Y("design:type",Object)],T2.prototype,"isRichGridShorts",void 0);_.R([_.L({selector:_.lK}),_.Y("design:type",Number)],T2.prototype,"richGridItemsPerRow",void 0);_.R([_.L({selector:function(C){return C.ui.richGridContainerWidth}}),
_.Y("design:type",Number)],T2.prototype,"richGridContainerWidth",void 0);_.R([_.L({selector:_.wni}),_.Y("design:type",Number)],T2.prototype,"richGridSlimItemsPerRow",void 0);_.R([_.L(),_.Y("design:type",Object)],T2.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],T2.prototype,"responsiveSizing",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],T2.prototype,"disableGridStateAware",void 0);
_.R([_.L({computed:"computeImageBannerViewModel(data)"}),_.Y("design:type",Object)],T2.prototype,"imageBannerViewModel",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.Y("design:type",Boolean)],T2.prototype,"hasCinematicContainer",void 0);_.R([_.L({selector:_.Qth,reflectToAttribute:!0}),_.Y("design:type",Boolean)],T2.prototype,"guideIsVisibleButNotPersistent",void 0);
_.R([_.L({selector:$lF}),_.Y("design:type",Boolean)],T2.prototype,"persistentPanelVisible",void 0);_.R([_.L({reflectToAttribute:!0}),_.M("imageBannerViewModel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],T2.prototype,"hasBanner",null);_.R([_.L({reflectToAttribute:!0}),_.M("imageBannerViewModel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],T2.prototype,"hasInsetBanner",null);
_.R([_.L({computed:"computeTabsHidden(tabs)",value:!0}),_.Y("design:type",Boolean)],T2.prototype,"tabsHidden",void 0);_.R([_.iP("persistentPanelVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],T2.prototype,"persistentPanelVisibleChanged",null);_.R([_.iP("richGridItemsPerRow","isRichGrid"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],T2.prototype,"observerRichGridItemsPerRow",null);
_.R([_.iP("richGridSlimItemsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],T2.prototype,"observerRichGridSlimItemsPerRow",null);_.R([_.iP("richGridItemsPerRow","richGridMiniMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],T2.prototype,"updateCssVars",null);
_.R([_.iP("richGridContainerWidth"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],T2.prototype,"updateCssVarsForResponsiveGrid",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],T2.prototype,"onDataChanged",null);_.R([_.e({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],T2);
_.q(T2,"ytd-tabbed-page-header",function(){if(pwn!==void 0)return pwn;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return pwn=C},{mode:1});var bAn;var oC=function(){return _.B.apply(this,arguments)||this};
_.O(oC,_.B);oC.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.jr(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.I6.Object.defineProperties(oC.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var C,F;return this.componentBehavior.computeIcon_(((F=_.Z((C=this.data)==null?void 0:C.badge,_.Wwu))==null?void 0:F.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var C,F;return(F=_.Z((C=this.data)==null?void 0:C.badge,_.Wwu))==null?void 0:F.label}}});
oC.prototype.observerRichGridItemsPerRow=oC.prototype.observerRichGridItemsPerRow;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],oC.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],oC.prototype,"componentBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],oC.prototype,"ytdReduxBehavior",void 0);_.R([_.L({reflectToAttribute:!0,selector:_.HY}),_.Y("design:type",Boolean)],oC.prototype,"richGridMiniMode",void 0);
_.R([_.L({selector:_.lK}),_.Y("design:type",Number)],oC.prototype,"richGridItemsPerRow",void 0);_.R([_.L(),_.Y("design:type",Object)],oC.prototype,"data",void 0);_.R([_.iP("richGridItemsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oC.prototype,"observerRichGridItemsPerRow",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],oC.prototype,"badgeIconName",null);
_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],oC.prototype,"badgeLabel",null);_.R([_.e({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],oC);
_.q(oC,"ytd-member-hub-profile-renderer",function(){if(bAn!==void 0)return bAn;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return bAn=C},{mode:1});var nf0;var rw=function(){return _.B.apply(this,arguments)||this};
_.O(rw,_.B);rw.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],rw.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],rw.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],rw.prototype,"data",void 0);_.R([_.e({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],rw);
_.q(rw,"ytd-settings-sidebar-renderer",function(){if(nf0!==void 0)return nf0;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return nf0=C},{mode:1});var uf_;var Kn=function(){var C=_.B.apply(this,arguments)||this;C.expandableCustomTabRenderable=function(F){return MS_(F,function(){return void C.onSearchNavigate()})};
return C};
_.O(Kn,_.B);Kn.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
Kn.prototype.onSearchNavigate=function(){this.selected=void 0};
Kn.prototype.onTabsChange=function(){var C,F=(C=this.tabs)==null?void 0:C.findIndex(function(G){var V;return G==null?void 0:(V=G.tabRenderer)==null?void 0:V.selected});
F!==void 0&&(this.selected=F)};
Kn.prototype.onTabsActive=function(C){if(this.tabs!==void 0){var F,G;(C=(F=this.tabs[C.detail.selected])==null?void 0:(G=F.tabRenderer)==null?void 0:G.endpoint)&&_.oo(this.hostElement,"yt-navigate",{endpoint:C})}};
_.I6.Object.defineProperties(Kn.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:B9B(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
Kn.prototype.onTabsChange=Kn.prototype.onTabsChange;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Kn.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.rK),_.Y("design:type",Object)],Kn.prototype,"ytdGridStateAwareBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Kn.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.DL.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],Kn.prototype,"ytdGuideStateAwareBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],Kn.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Array)],Kn.prototype,"tabs",void 0);_.R([_.L(),_.Y("design:type",Number)],Kn.prototype,"selected",void 0);_.R([_.M("tabs.*"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Kn.prototype,"tabGroupShape",null);_.R([_.L(),_.Y("design:type",Object)],Kn.prototype,"expandableCustomTabRenderable",void 0);
_.R([_.M("tabs"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Kn.prototype,"tabsEnabled",null);_.R([_.zp("tabs"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Kn.prototype,"onTabsChange",null);_.R([_.e({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],Kn);
_.q(Kn,"ytd-topic-channel-details-renderer",function(){if(uf_!==void 0)return uf_;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <template is="dom-if" if="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer">\n          <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n        </template>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return uf_=C},{mode:1});var z0_;var DX=function(){var C=_.B.apply(this,arguments)||this;C.disableGridStateAware=!1;return C};
_.O(DX,_.B);DX.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]]"}}}}}};
DX.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
DX.prototype.updateCssVars=function(){_.jr(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.a8("rich_grid_max_item_width",500))+16)-16+"px"})};
DX.prototype.updateCssVars=DX.prototype.updateCssVars;DX.prototype.activeChanged=DX.prototype.activeChanged;_.R([_.w(_.DL.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],DX.prototype,"ytdGuideStateAwareBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],DX.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],DX.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],DX.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],DX.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Array)],DX.prototype,"tabs",void 0);_.R([_.L(),_.Y("design:type",Boolean)],DX.prototype,"active",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],DX.prototype,"disableGridStateAware",void 0);
_.R([_.L({selector:_.lK}),_.Y("design:type",Number)],DX.prototype,"richGridItemsPerRow",void 0);_.R([_.L({selector:_.HY}),_.Y("design:type",Boolean)],DX.prototype,"richGridMiniMode",void 0);_.R([_.$z("ytd-carousel-item-renderer"),_.Y("design:type",Object)],DX.prototype,"carousel",void 0);_.R([_.iP("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DX.prototype,"activeChanged",null);
_.R([_.iP("richGridItemsPerRow","richGridMiniMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DX.prototype,"updateCssVars",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],DX);
_.q(DX,"ytd-carousel-header-renderer",function(){if(z0_!==void 0)return z0_;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return z0_=C},{mode:1});var QR_;var IiB=_.h6(["https://www.google-analytics.com/analytics.js"]),pn=function(){var C=_.B.apply(this,arguments)||this;C.scriptAnalyticsAdded=!1;return C};
_.O(pn,_.B);pn.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var C,F=(C=this.data)==null?void 0:C.tagManagerId;F&&(_.fS(F,_.TF("GL")),f0_(F))};
pn.prototype.sendGoogleAnalyticsPageview=function(C){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var G=_.Rn.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(G)};
var F=window.ga;F("set","page",window.location.pathname);F.l=+new Date;F("set","forceSSL",!0);F("create",C,"'auto'");F("send","pageview")};
pn.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var C=_.Md("SCRIPT");C.name="ga-analytics";var F=_.kf(IiB);_.JW(C,F);C.async=!0;_.ot(this.hostElement).appendChild(C)};
pn.prototype.dataChanged=pn.prototype.dataChanged;_.R([_.L(),_.Y("design:type",Object)],pn.prototype,"data",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pn.prototype,"dataChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],pn);
_.q(pn,"ytd-channel-metadata-renderer",function(){if(QR_!==void 0)return QR_;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return QR_=C},{mode:1});var EfL;var Wih;var m6=function(){var C=_.B.apply(this,arguments)||this;C.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"]);C.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"]);C.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return C};
_.O(m6,_.B);_.n=m6.prototype;_.n.attached=function(){this.requestElementsPerRow()};
_.n.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_]]"}}}}}};
_.n.onUpdateElementsPerRowAction=function(C){C&&this.elementsPerRow!==C&&(this.elementsPerRow=C)};
_.n.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.n.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.n.computeAlertStyle_=function(C){return C};
_.n.observerElementsPerRow=function(){this.elementsPerRow&&_.jr(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.n.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.n.requestElementsPerRow=function(){_.oo(this.hostElement,"yt-request-elements-per-row")};
m6.prototype.onIsVisibleChanged_=m6.prototype.onIsVisibleChanged_;m6.prototype.observerElementsPerRow=m6.prototype.observerElementsPerRow;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],m6.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],m6.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],m6.prototype,"actionHandlerBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],m6.prototype,"data",void 0);_.R([_.L({value:6,reflectToAttribute:!0}),_.Y("design:type",Number)],m6.prototype,"elementsPerRow",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],m6.prototype,"wrapButtons",void 0);_.R([_.L({value:_.TF("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.Y("design:type",Boolean)],m6.prototype,"isMusic",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.Y("design:type",String)],m6.prototype,"alertStyle",void 0);_.R([_.L({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.Y("design:type",Function)],m6.prototype,"dismissBoundButtonTap_",void 0);_.R([_.L({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.Y("design:type",Function)],m6.prototype,"acceptBoundButtonTap_",void 0);_.R([_.iP("elementsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],m6.prototype,"observerElementsPerRow",null);_.R([_.iP("data.isVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],m6.prototype,"onIsVisibleChanged_",null);_.R([_.Z5({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],m6);
_.q(m6,"yt-alert-with-actions-renderer",function(){if(Wih===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;EfL===void 0&&(EfL=document.createElement("template"));var V=EfL;G.call(F,V.content.cloneNode(!0),C.content.firstChild);Wih=C}C=Wih;return C},{mode:2});_.gQ(_.d(function(C){function F(H){var l={};return _.W(_.mn,{text:H,className:_.py("ytPersonalGreetingViewModelHeadline",(l.ytPersonalGreetingViewModelHeadlineSmall=function(){return Q()===48},l))})}
function G(H,l){return _.W("span",{el:H,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},F(l))}
var V=_.dQ(_.lC(function(){var H;return(H=C.data())==null?void 0:H.rendererContext},void 0,void 0,void 0,!0)),J=_.Jt("span"),b=_.Jt("span"),z=function(){return C.data().canvasPromoData},Q=function(){var H;
return(H=C.data().bannerHeight)!=null?H:56},E=_.h4T(V,{throttleMs:100}),t=_.h4T(J,{throttleMs:100}),k=_.h4T(b,{throttleMs:100}),U=function(){return t.width()-E.width()>1};
return _.W("yt-personal-greeting-view-model",{el:V,"aria-hidden":U,class:_.py(C.className,"ytPersonalGreetingViewModelHost"),style:_.VA({height:(0,_.bd)(function(){return U()?0:Q()})})},_.W(_.a,{cond:function(){return C.data().avatar&&!(k.width()+(C.data().avatar?48:0)-E.width()>1)},
then:function(){return _.W(_.uC,{data:function(){return C.data().avatar}},{decoratedAvatarViewModel:function(H){return _.W(_.R7,{data:H.data,
className:_.py("ytPersonalGreetingViewModelAvatar")})}})}}),_.W("h1",null,F(function(){var H;
return(z==null?void 0:(H=z())==null?void 0:H.headline)||(k.width()+(C.data().avatar?48:0)-E.width()>1?C.data().shorterGreeting:C.data().greeting)})),G(b,function(){return C.data().greeting}),G(J,function(){return C.data().shorterGreeting}))},"Rm"),"yt-personal-greeting-view-model",{props:{data:_.CJ,
className:_.CJ}});var Cg=function(){var C=_.B.apply(this,arguments)||this;C.hidden=!1;C.isConstrainedList=!1;C.darkerDarkTheme=_.y("web_darker_dark_theme");C.responsiveSizing="COMPACT";C.attachedPlayers=_.y("kevlar_channel_trailer_multi_attach")?[]:void 0;C.player=null;C.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return C};
_.O(Cg,_.B);_.n=Cg.prototype;
_.n.configureRendererStamper=function(){return{mastheadAdData:{id:"masthead-ad",mapping:{bannerPromoRenderer:{component:"ytd-banner-promo-renderer",noInjection:!0},videoMastheadAdV3Renderer:{component:"ytd-video-masthead-ad-v3-renderer",noInjection:!0}},reuseComponents:!1},alertBannerData:{id:"alert-banner",mapping:{alertWithActionsRenderer:{component:"yt-alert-with-actions-renderer",noInjection:!0}}},greetingData:{id:"personal-greeting",mapping:{personalGreetingViewModel:{component:"yt-personal-greeting-view-model",properties:{className:"[[is]]"},
noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{alertRenderer:{component:"yt-alert-renderer",noInjection:!0},unlimitedUserNotificationRenderer:{component:"yt-unlimited-user-notification-renderer",noInjection:!0},alertWithButtonRenderer:{component:"ytd-alert-with-button-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},
"data.metadata":{id:"metadata",mapping:{channelMetadataRenderer:{component:"ytd-channel-metadata-renderer",noInjection:!0}}},"data.header":{id:"header",mapping:{pageHeaderRenderer:{component:"ytd-tabbed-page-header",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[richGrid]]",disableGridStateAware:"[[fluidWidth]]",disableHeaderFluidWidth:"[[disableHeaderFluidWidth]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}},
interactiveTabbedHeaderRenderer:{component:"ytd-interactive-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},carouselHeaderRenderer:{component:"ytd-carousel-header-renderer",properties:{active:"[[active]]",disableGridStateAware:"[[fluidWidth]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},memberHubProfileRenderer:{component:"ytd-member-hub-profile-renderer",noInjection:!0}},events:!0},
"data.footer":{id:"footer",mapping:{pageFooterRenderer:{component:"ytd-page-footer-renderer",noInjection:!0}}}}};
_.n.created=function(){var C=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){C.disposeMastheadAd()}]};
_.n.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new V9z(this.refresh,this.contents))};
_.n.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.n.activeChanged=function(){var C=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=C)};
_.n.tabsChanged=function(){var C=this,F,G;if(this.pageSubtype==="channels"||_.y("kevlar_tab_gestures_for_tabbed_header_data")&&((F=this.data)==null?0:(G=F.header)==null?0:G.carouselHeaderRenderer))this.tabGestures=new $a9(this.contents,this.contents,this.hostElement,this.header,function(z){C.ytdReduxBehavior.dispatch(z)});
var V,J,b;F=(V=this.data)==null?void 0:(J=V.contents)==null?void 0:(b=J.twoColumnBrowseResultsRenderer)==null?void 0:b.tabs;this.tabGestures&&this.tabGestures.tabsChanged(F)};
_.n.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.n.engagementPanelsChanged=function(){var C=_.I8().resolve(_.dB);if(C){if(this.engagementPanels)for(var F=_.u(this.engagementPanels),G=F.next();!G.done;G=F.next()){var V=void 0;(G=(V=G.value.identifier)==null?void 0:V.tag)&&C.panelMap.delete(G)}this.engagementPanels=[];var J;F=_.u(((J=this.data)==null?void 0:J.panels)||[]);for(J=F.next();!J.done;J=F.next()){J=_.Z(J.value,_.Ot_);var b=G=void 0,z=void 0,Q=void 0;if(V=((G=J)==null?void 0:G.targetId)||((b=J)==null?void 0:b.panelIdentifier)||((z=J)==
null?void 0:(Q=z.identifier)==null?void 0:Q.tag))b=G=void 0,(b=(G=C).registerPanelContent)==null||b.call(G,V,{engagementPanelSectionListRenderer:J}),this.engagementPanels.push(J)}}};
_.n.onStampFinished=function(){var C=this;_.zH(this,function(){if(C.tabGestures){var F=C.tabGestures;if(F.scrollPositionNeedsUpdate){var G=_.I8().resolve(_.Qt(_.qG)),V;if((V=F.selectedTab)!=null&&V.title&&G&&(V=G.getCurrentPage())){if(F.scrollPositionForTabs.has(F.selectedTab.title)){var J,b;G=(b=(J=G.getCurrentPage())==null?void 0:J.clientHeight)!=null?b:0;J=F.scrollPositionForTabs.get(F.selectedTab.title);V.setScrollTop(J);G>J+100&&(F.scrollPositionNeedsUpdate=!1)}else V.setScrollTop(Math.min(F.lastVisitedTabScrollPosition!==
void 0?F.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,F.tabsStartAtInPx)),F.scrollPositionNeedsUpdate=!1;F.ytdReduxDispatch(vl9(!1))}}}})};
_.n.loadPage_=function(C){this.initCsi();C&&(this.data=C);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.n.getTitle=function(C){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",C))return this.get("microformat.microformatDataRenderer.title",C);if(this.get("header.feedTabbedHeaderRenderer.title",C))return _.dd(this.get("header.feedTabbedHeaderRenderer.title",C));if(this.get("header.interactiveTabbedHeaderRenderer.title",C))return this.get("header.interactiveTabbedHeaderRenderer.title",C);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
C))return _.dd(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",C));var F,G;return(C==null?0:(F=C.header)==null?0:(G=F.pageHeaderRenderer)==null?0:G.pageTitle)?C.header.pageHeaderRenderer.pageTitle:""};
_.n.updateTitle=function(C){_.oo(this.hostElement,"yt-update-title",this.getTitle(C))};
_.n.initCsi=function(){_.N9n(this.pageSubtype||"browse",["ol","cpt"])};
_.n.getPlayer=function(){if(_.y("kevlar_channel_trailer_multi_attach")){for(var C=_.u(this.attachedPlayers),F=C.next();!F.done;F=C.next())if(F=F.value,F.isConnected||_.Kf(this.hostElement,F))return F;return null}return this.player};
_.n.getPlayerContainer=function(){return null};
_.n.onPlayerAttached=function(C,F){_.y("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(F):this.player=F};
_.n.onPlayerDetached=function(C,F){_.y("kevlar_channel_trailer_multi_attach")?(C=this.attachedPlayers.indexOf(F),C<0||this.attachedPlayers.splice(C,1)):this.player=null};
_.n.getServiceTrackingParams=function(){var C,F;return((C=this.data)==null?void 0:(F=C.responseContext)==null?void 0:F.serviceTrackingParams)||[]};
_.n.setMastheadAd=function(C){C&&C.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=C&&C.mastheadAd};
_.n.dataChanged=function(){var C=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.WY6();_.zH(this,function(){_.KX(C.hostElement,"ytd-update-grid-state-action")})};
_.n.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.n.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var C=this.data.alerts;return C&&C.find(function(F){return!!F.alertWithActionsRenderer})}};
_.n.computeGreetingData=function(){if(this.data&&this.data.alerts){var C=this.data.alerts;return C&&C.find(function(F){return!!F.personalGreetingViewModel})}};
_.n.computeHasMemberHubProfileRenderer=function(C){var F;return!!(C==null?0:(F=C.header)==null?0:F.memberHubProfileRenderer)};
_.n.handleAlertCommand=function(C){this.get("alertCommand.alert.alertWithActionsRenderer",C)&&(C=_.Z(C,P0T),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",C.alert))};
_.n.handleYtPlaylistDeletionRedirect=function(C){C=this.get("playlistDeletionRedirectCommand.redirectEndpoint",C);_.oo(this.hostElement,"yt-navigate",{endpoint:C})};
_.n.computeFluidWidth=function(C,F,G){if(F==="mini_app"||G)return!0;var V,J,b;C=C==null?void 0:(V=C.contents)==null?void 0:(J=V.twoColumnBrowseResultsRenderer)==null?void 0:(b=J.tabs)==null?void 0:b.find(function(E){var t;return E==null?void 0:(t=E.tabRenderer)==null?void 0:t.selected});
if(!C)return!1;var z,Q;return!!((z=C.tabRenderer)==null?0:(Q=z.content)==null?0:Q.richGridRenderer)&&!["channel","channels","playables"].includes(F)};
_.n.computeHeaderFluidWidth=function(C){return C==="hashtag-landing-page"};
_.n.computeHasSidebar=function(C){var F;return!!(C.sidebar||((F=C.header)==null?0:F.playlistHeaderRenderer))};
_.n.computeHasPageHeaderSidebar=function(C){var F,G;return!!((F=C.header)==null?0:(G=F.pageHeaderRenderer)==null?0:G.enableSidebarView)};
_.n.computeUseUnifiedShowPageLayout=function(C){if(!C||this.pageSubtype!=="show"||!C.sidebar||!C.sidebar.playlistSidebarRenderer)return!1;C=C.sidebar.playlistSidebarRenderer;if(!C.items)return!1;for(var F=0;F<C.items.length;F++)if(_.Z(C.items[F],YLF)){var G=void 0;return((G=_.Z(C.items[F],YLF))==null?void 0:G.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.n.computeIsConstrainedList=function(C){return _.y("web_enable_constrained_list_subscriptions_channels")&&C==="subscriptions-channels"};
_.n.computeResponsiveSizing=function(C){return C==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.I6.Object.defineProperties(Cg.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var C,F;return((C=this.data)==null?0:(F=C.header)==null?0:F.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var C,F;if(!((C=this.data)==null?0:(F=C.sidebar)==null?0:F.playlistSidebarRenderer))return!1;var G;return(G=this.data)!=null&&G.header?!1:!0}}});
_.I6.Object.defineProperties(Cg,{template:{configurable:!0,enumerable:!0,get:function(){if(bvF===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);bvF=C}C=bvF;return C}}});
Cg.prototype.dataChanged=Cg.prototype.dataChanged;Cg.prototype.onPlayerDetached=Cg.prototype.onPlayerDetached;Cg.prototype.onPlayerAttached=Cg.prototype.onPlayerAttached;Cg.prototype.onStampFinished=Cg.prototype.onStampFinished;Cg.prototype.engagementPanelsChanged=Cg.prototype.engagementPanelsChanged;Cg.prototype.scrollAtTopChanged=Cg.prototype.scrollAtTopChanged;Cg.prototype.tabsChanged=Cg.prototype.tabsChanged;Cg.prototype.activeChanged=Cg.prototype.activeChanged;
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],Cg.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.nK),_.Y("design:type",Object)],Cg.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Cg.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],Cg.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.ij.YtPageBehavior),_.Y("design:type",Object)],Cg.prototype,"ytPageBehavior",void 0);
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Cg.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.DL.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],Cg.prototype,"ytdGuideStateAwareBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Cg.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Cg.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Cg.prototype,"hidden",void 0);
_.R([_.L(),_.Y("design:type",Object)],Cg.prototype,"mastheadAdData",void 0);_.R([_.L({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.Y("design:type",Object)],Cg.prototype,"alertBannerData",void 0);_.R([_.L({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.Y("design:type",Object)],Cg.prototype,"greetingData",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],Cg.prototype,"pageSubtype",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.Y("design:type",Boolean)],Cg.prototype,"hasMemberHubProfileRenderer",void 0);_.R([_.L({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Cg.prototype,"hasSidebar",void 0);_.R([_.L({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Cg.prototype,"hasPageHeaderSidebar",void 0);
_.R([_.L({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],Cg.prototype,"roundedContainer",void 0);_.R([_.L({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Cg.prototype,"useUnifiedShowPageLayout",void 0);_.R([_.L({computed:"computeIsConstrainedList(pageSubtype)"}),_.Y("design:type",Object)],Cg.prototype,"isConstrainedList",void 0);
_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Cg.prototype,"usePlaylistHeaderRenderer",null);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Cg.prototype,"useOldPlaylistSidebarRenderer",null);_.R([_.L({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.Y("design:type",Boolean)],Cg.prototype,"fluidWidth",void 0);_.R([_.L({selector:function(C){return C.ui.scrollAtTop}}),
_.Y("design:type",Boolean)],Cg.prototype,"scrollAtTop",void 0);_.R([_.L({selector:_.It3}),_.Y("design:type",Boolean)],Cg.prototype,"tabGesturesIsActive",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Cg.prototype,"darkerDarkTheme",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.Y("design:type",Boolean)],Cg.prototype,"disableHeaderFluidWidth",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.Y("design:type",String)],Cg.prototype,"responsiveSizing",void 0);_.R([_.$z("ytd-two-column-browse-results-renderer"),_.Y("design:type",HTMLElement)],Cg.prototype,"contents",void 0);_.R([_.$z("#header"),_.Y("design:type",HTMLElement)],Cg.prototype,"header",void 0);_.R([_.$z("ytd-refresh"),_.Y("design:type",Object)],Cg.prototype,"refresh",void 0);
_.R([_.iP("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cg.prototype,"activeChanged",null);_.R([_.iP("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cg.prototype,"tabsChanged",null);_.R([_.iP("scrollAtTop"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cg.prototype,"scrollAtTopChanged",null);
_.R([_.L(),_.Y("design:type",Object)],Cg.prototype,"engagementPanels",void 0);_.R([_.iP("data.panels"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cg.prototype,"engagementPanelsChanged",null);_.R([_.VG("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cg.prototype,"onStampFinished",null);
_.R([_.VG("yt-player-attached"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Element]),_.Y("design:returntype")],Cg.prototype,"onPlayerAttached",null);_.R([_.VG("yt-player-detached"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Element]),_.Y("design:returntype")],Cg.prototype,"onPlayerDetached",null);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cg.prototype,"dataChanged",null);
_.R([_.e({is:"ytd-browse"})],Cg);_.Ya.registerService(_.Gwq,Cg);
_.Pk();
}catch(e){_._DumpException(e)}
try{
_.qd("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 FK,trL,a5W,kp3,Urr,H5s,l5U,yvd,Z5L,Nkd,O5t,XbM,Mr3,SAr,Bkr,vzs,f5s,cvM,Av8,eGs,drx,Gu,sNV,Vb,qAt,PPr,gzx,RGU,YAr,ozx,Kmr,Tkr,wbd,DrV,pbx,mr8,CaU,jPL,Frx,GSr,VR8,iy3,$Dr,byV,u1W,QPd,IDM,Eel,tRh,kS8,UD_,HyU,lDs,yCM,Zyd,NQl,OyV,X6x,w6t,MRt,S9h,BQr,ve3,fDr,htl,cCd,ACU,et_,dDh,sP_,q9r,Pas,geM,RtM,Y9d,TQx,oet,rCd,Krh,DDV,p6x,mDM,C5W,jes,F2V,Gbl,Vn3,iZs,JM_,$Gr,bZr,nJl,uXh,Ic,zI3,Qe3,W2r,NEW,MnM,S4L,hIs,cMr,fHh,BEh,xG8,P5s,rMr,L2x,RIx,ser,UO,DGd,CCx,G3L,jyh,Fes,VVM,bYW,Jms,nbs,uNh,$hM,iYV,zNh,Zk,Nv,
aRd,k3W,OO,Uh8,HYs,lRL,wlx,MVM,XK,w5,LeU,SIV,Bvt,vbl,fR_,hNt,Mv,S1,Lu,PC_,gbU,RNh,v2,KeL,YIr,rmx,Dhs,Tvs,mhr,obs,F8U,Cd8,jvx,fu,VZl,GZs,b3x,Qvl,e1,d5,ucL,EZ8,z1t,IFr,sO,P2,g5,Rc,ck8,O3x,dx3,xx8,sv_,qpL,gZW,H3L,lF8,oc,Z3l,YQ,Tu,NJl,PdV,Akx,ykW,Ku,px3,CVV,jEt,mx8,oZM,GC_,J6W,jA,mU,Cs,nCr,TJh,G5,iV_,rk8,Vuh,Dxd,Ypr,K8r,zT8,QEr,Ioh,W4U,aoU,kCs,Ubd,HVs,y6V,lo8,Np8,OVs,wsl,MuL,L4V,Bpt,vCd,fol,hTd,c6V,A68,dbd,eTM,xb8,qdL,PVr,JX,gCl,RTM,$h,Ydr,Tph,oC_,r6r,K4l,Db8,psW,mbx,j3W,bq,F73,GGs,JiV,b2l,nLl,zqr,uhM,
Q3r,IWr,ELM,tXU,aWW,kGM,U5V,H2W,lWt,yit,Z2r,Nnl,O2t,Xcx,wcL,Bn_,vLd,SjU,L7l,MXd,fWx,AiW,hqM,ciU,x5W,eqr,d5r,s3t,qjM,Pgs,gLV,YjV,Tn3,oLL,K73,D5U,m58,jFx,Gix,ikV,$Et,nkW,zXM,InL,tIt,an3,kir,HkL,UEr,y8r,Zkh,N8V,OkU,uq,XNl,wN_,MIs,dE_,sFx,qVV,YVd,WJ,T8M,ok_,r8t,DEs,KSr,pNt,mEr,CTr,j53,FAr,EO,GYr,tX,VI8,VLx,iCW,zts,JPx,$Xr,bC3,n8_,u3s,zPU;
FK=function(C){if(!C)return"browse";var F=C.page,G=C.url,V,J,b,z=(V=C.response)==null?void 0:(J=V.responseContext)==null?void 0:(b=J.webResponseContextExtensionData)==null?void 0:b.pageTheme;if(z)F=z.toLowerCase().replace(/_/g,"-");else if(F!=="watch"&&F!=="learning_journey_watch"){var Q,E;if((F==="browse"||F==="settings")&&((Q=C.response)==null?0:(E=Q.sidebar)==null?0:E.settingsSidebarRenderer))F="WEB_PAGE_TYPE_SETTINGS";else{var t,k;F==="browse"&&((t=C.response)==null?0:(k=t.metadata)==null?0:k.channelMetadataRenderer)?
F="channel":G&&(F=_.VKI(G)||F)}}return F};
trL=function(){var C=_.mN("yt.aba.att");return C?C:_.NB.instance!==void 0?_.NB.instance.wMJ.bind(_.NB.instance):null};
a5W=function(C,F){var G;return _.I(function(V){return(G=trL())?V.return(G(C,F,6E4)):V.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
kp3=function(C,F,G,V,J){F=F===void 0?[]:F;J=J?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:J}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.YB(C),dialogMessages:F.map(function(b){return _.YB(b)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.YB(G),serviceEndpoint:J}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.YB(V)}}}}}};
Urr=function(C,F,G){G=G===void 0?!1:G;var V=_.v0(),J=!!_.$s().queueProxy,b,z,Q;C=C==null?void 0:(b=C.response)==null?void 0:(z=b.currentVideoEndpoint)==null?void 0:(Q=z.watchEndpoint)==null?void 0:Q.playlistId;if((J||C)&&!_.y("web_watch_disable_playlist_auto_miniplayer"))return G&&(V.playlistWatchPageActivation=!0),!0;switch(FK(F)){case "yts-products":return G&&(V.productDetailsPageActivation=!0),!0;case "mini_app":return G&&(V.miniAppPageActivation=!0),!0;case "playables":return G&&(V.playablesDestPageActivation=
!0),!0;case "companion-canvas":return G&&(V.companionCanvasActivation=!0),!0;default:return!1}};
H5s=function(C){C=_.$fs(C);C.length>0&&C[0].focus()};
l5U=function(C,F,G){for(var V=typeof C==="string"?C.split(""):C,J=C.length-1;J>=0;--J)J in V&&F.call(G,V[J],J,C)};
yvd=function(C,F){F=_.Mq5(C,F);F>=0&&_.BIT(C,F)};
Z5L=function(C){return Array.prototype.concat.apply([],arguments)};
Nkd=function(C){var F=0;F=F===void 0?0:F;if(!_.jU(C))throw _.CP("uint64");var G=typeof C;switch(F){case 512:switch(G){case "string":return _.B2T(C);case "bigint":return String((0,_.Ur)(64,C));default:return _.Sm5(C)}case 1024:switch(G){case "string":return _.vS9(C);case "bigint":return _.eG((0,_.Ur)(64,C));default:return _.L$i(C)}case 0:switch(G){case "string":return _.B2T(C);case "bigint":return _.eG((0,_.Ur)(64,C));default:return _.MGW(C)}default:return _.r2(F,"Unknown format requested type for int64")}};
O5t=function(C){C!=null&&(C=C.JSC$8819_value_||"",C=typeof C==="string"?C:new Uint8Array(C));return C};
XbM=function(C,F){if(/-[a-z]/.test(F))return null;if(_.JVm&&C.dataset){if(_.Ufo()&&!(F in C.dataset))return null;C=C.dataset[F];return C===void 0?null:C}return C.getAttribute("data-"+_.Jr(F))};
Mr3=function(){var C=wbd;_.mN("yt.ads.biscotti.getId_")||_.zn("yt.ads.biscotti.getId_",C)};
SAr=function(C){_.zn("yt.ads.biscotti.lastId_",C)};
Bkr=function(){var C={};for(_.qe=new Lmx(C.handleError===void 0?_.R1:C.handleError,C.logEvent===void 0?_.q1:C.logEvent);_.PD.length>0;)switch(C=_.PD.shift(),C.type){case "ERROR":_.qe.logError(C.payload);break;case "EVENT":_.qe.logEvent(C.eventType,C.payload)}};
vzs=function(C,F,G){return _.n2B(function(V){return G?V.userIdentifier!==void 0&&!C.includes(V.userIdentifier)&&G.includes(V.publicName):V.userIdentifier!==void 0&&!C.includes(V.userIdentifier)},F)};
f5s=function(C){var F,G;return _.I(function(V){if(V.nextAddress==1)return F=_.hy("YtIdbMeta hasAnyMeta other"),V.yield(_.n2B(function(J){return J.userIdentifier!==void 0&&J.userIdentifier!==F},C),2);
G=V.yieldResult;return V.return(G.length>0)})};
cvM=function(C,F){hGr||(hGr=_.gT.addLowPriorityJob(function(){var G,V,J,b,z;return _.I(function(Q){switch(Q.nextAddress){case 1:return Q.yield(_.Qn(),2);case 2:G=Q.yieldResult;if(!G)return Q.return();V=!0;_.yy(Q,3);return Q.yield(vzs(C,G,F),5);case 5:J=Q.yieldResult;if(!J.length){V=!1;Q.jumpTo(6);break}b=J[0];return Q.yield(_.Vn(b.actualName),7);case 7:return Q.yield(_.$x(b.actualName,G),6);case 6:_.Gn(Q,4);break;case 3:z=_.wa(Q),_.gj(z),V=!1;case 4:_.gT.cancelJob(hGr),hGr=0,V&&cvM(C,F),_.S9(Q)}})}))};
Av8=function(){var C;return _.I(function(F){return F.nextAddress==1?F.yield(_.Qn(),2):(C=F.yieldResult)?F.return(f5s(C)):F.return(!1)})};
eGs=function(C){var F=100;F=F===void 0?500:F;var G,V,J,b,z,Q;return _.I(function(E){return E.nextAddress==1?(G=_.TF("INNERTUBE_CONTEXT_CLIENT_NAME",0),V=[G,(0,_.Et)()-2592E6],J=[G,(0,_.Et)()],b=IDBKeyRange.bound(V,J),E.yield(_.cvS(C),2)):E.nextAddress!=3?(z=E.yieldResult,Q=[],E.yield(_.Jn(z,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(t){Q.length=0;return _.Wg(t.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:b,direction:"prev"},function(k){if(k.getValue()&&Q.length<
F)return Q.push(k.getValue()),k.delete().then(function(){return k.continue()})})}),3)):E.return(Q)})};
drx=function(){var C;return _.I(function(F){if(F.nextAddress==1)return F.yield(_.Qn(),2);C=F.yieldResult;if(!C||!_.cD()&&!_.y("nwl_init_require_datasync_id_killswitch")||!_.jPw())return F.jumpTo(0);_.GSB=!0;_.Fr5.isNwlInitialized=_.GSB;return F.yield(_.y4S().awaitInitialization(),0)})};
Gu=function(C,F){_.Hyq[C]=!0;var G=_.E1();G&&G.publish.apply(G,arguments);_.Hyq[C]=!1};
sNV=function(){if(_.DzA()&&!xrt){var C=function(G){G=G.data;if(G.op==="serializedGelBatch"){var V=_.lHS.get(G.key);V&&(_.ZZI(G.serializedBatch,V.client,V.resolve,V.networklessOptions,V.isIsolated,V.useVSSEndpoint,V.dangerousLogToVisitorSession,V.requestsOutstanding),_.lHS.delete(G.key))}},F=_.K5q();
F&&(F.addEventListener("message",C),F.onerror=function(){_.lHS.clear()});
xrt=!0}};
Vb=function(){this.relativeTimeStart_=_.gp()};
qAt=function(C,F){C!=null&&this.append.apply(this,arguments)};
PPr=function(){return _.MU("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
gzx=function(C,F,G){G=G===void 0?!1:G;var V,J,b,z,Q;return _.I(function(E){switch(E.nextAddress){case 1:_.vD("SOCS",C,34128E3,"youtube.com",!0);if(_.m4)return J=fetch(F,{method:"POST",mode:_.hr(F),credentials:_.fX(F),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),b=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.hr("/upgrade_visitor_cookie?eom=1"),credentials:_.fX("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),E.yield(Promise.all([J,b]).then(function(t){return t[1]}),5);
fetch(F,{method:"POST",mode:_.hr(F),credentials:_.fX(F),cache:"no-store",headers:{"Content-Type":"text/plain"}});return E.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.hr("/upgrade_visitor_cookie?eom=1"),credentials:_.fX("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:V=E.yieldResult;E.jumpTo(3);break;case 5:V=z=E.yieldResult;case 3:if(!V.ok)throw Error("wf");return E.yield(V.text(),7);case 7:Q=E.yieldResult,
!Q.includes('"state_switch":true')&&!G||Q.includes("skip_reload_for_test")||window.location.reload(),_.S9(E)}})};
RGU=function(C){return _.I(function(F){return F.nextAddress==1?F.yield(gzx(C.socsCookie,C.savePreferenceUrl,!0),2):F.return()})};
YAr=function(C){return _.I(function(F){return F.nextAddress==1?F.yield(gzx(C.socsCookie,C.savePreferenceUrl),2):F.return()})};
ozx=function(C){C=C.xhr.responseText;if(!_.Js(C,")]}'"))throw new i2;C=JSON.parse(C.substr(4));if((C.type||1)>1)throw new i2;C=C.id;SAr(C);JD=_.bW(C);Tkr(18E5,2);return C};
Kmr=function(C,F){F=new rvM(F);SAr("");JD=_.ZpP(F);C>0&&Tkr(12E4,C-1);throw F;};
Tkr=function(C,F){_.lH(function(){_.gTL().then(ozx,function(G){return Kmr(F,G)}).thenCatch(_.t8)},C)};
wbd=function(){var C=_.T7h();if(C!==void 0)return _.W6(C);JD||(JD=_.gTL().then(ozx).thenCatch(function(F){return Kmr(2,F)}));
return JD};
DrV=function(){var C=document;return _.co(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(F){return"on"+F.toLowerCase()in C})};
pbx=function(C){C.addEventListener("click",function(F){var G=F.target;G&&G.getAttribute("href")&&(G=G.getAttribute("href"),_.Cv(window,G,"_blank"),F.preventDefault(),F.stopImmediatePropagation())})};
mr8=function(C){var F,G,V,J=(V=(G=((F=C.mainDownloadsListEntity)!=null?F:{})[_.UQf])==null?void 0:G.refresh)!=null?V:"",b;C=(b=C.refresh)==null?void 0:b[J];J=C!=null?C:{};return(J==null?0:J.refreshTime)?Number(J==null?void 0:J.refreshTime):0};
CaU=function(C,F){var G=_.WY(C);return F.every(function(V){var J;V=V==null?void 0:(J=V.playbackDataEntity)==null?void 0:J.key;if(!V)return!1;J=_.C7(_.D8(V).entityId,"mainVideoEntity");return!!G[J]})};
jPL=function(C){C=_.Qj(C.entities);return _.fSA(C).length};
Frx=function(C,F){if(F){var G;C=(G=_.jN(C.entities,"downloadQualityPickerEntity",F))!=null?G:void 0}else C=void 0;return C};
GSr=function(C){var F=document.getElementsByTagName("ytd-enforcement-message-view-model");F.length===0||getComputedStyle(F[0]).display==="none"?C(0,"p.h_"):C(1,"p.h_")};
VR8=function(){$Q=0;var C=[_.bE(!0)];b2&&_.KX(b2,"yt-window-resized",C)};
iy3=function(){$Q||($Q=_.gT.addLowPriorityJob(VR8,200))};
$Dr=function(){nu=0;JCM=_.$lr(document);var C=[JCM];b2&&_.KX(b2,"yt-window-scrolled",C)};
byV=function(){nu||(nu=_.gT.addLowPriorityJob($Dr,200))};
u1W=function(C){C=C===void 0?null:C;ned.push(_.uS(window,"resize",iy3));ned.push(_.uS(window,"scroll",byV));C&&(b2=C)};
QPd=function(){var C=_.It.getLocalStorage();C&&zts(C,C.mechanism.__iterator__(!0))};
IDM=function(C){_.I(function(F){if(F.nextAddress==1)return F.yield(C.delete("yt-appshell-assets"),2);_.S9(F)})};
Eel=function(C){return _.iw((0,_.w42)(),C)};
tRh=function(){var C;_.I(function(F){return F.nextAddress==1?F.yield(u2.getInstance(),2):(C=F.yieldResult)?F.yield(WrM(C),0):F.jumpTo(0)})};
kS8=function(){var C;_.I(function(F){return F.nextAddress==1?F.yield(zu.getInstance(),2):(C=F.yieldResult)?F.yield(aDU(C),0):F.jumpTo(0)})};
UD_=function(C){IDM(C);tRh();kS8()};
HyU=function(C){var F,G;return _.I(function(V){if(V.nextAddress==1)return V.yield(_.XIo(C),2);if(F=V.yieldResult){var J;a:{if(F.headers&&(J=F.headers.get("date"))&&(J=Date.parse(J),!isNaN(J))){J=Math.round((0,_.Et)()-J);break a}J=-1}G=J;if(G>-1)return V.return(G)}return V.return(-1)})};
lDs=function(){var C=_.VT.caches,F=_.oD("IS_SHELL_LOAD"),G,V;_.I(function(J){if(J.nextAddress==1)return G=-1,F?J.yield(HyU(C),3):(V=_.EZ(),G=Math.round((0,_.Et)()-V),J.jumpTo(2));J.nextAddress!=2&&(G=J.yieldResult);G>=0&&G<2147483648&&_.UZ({appInstallDataAgeMs:G});_.S9(J)})};
yCM=function(C){var F=_.mg(_.VT.location.href),G={};"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(V){var J=F.JSC$10031_queryData_.getValues(V);if(J==null?0:J.length)G[V]=J});
return _.Us(C,new Map(Object.entries(G)))};
Zyd=function(C){C=C.match(/(.*)::.*::.*/);if(C!==null)return C[1]};
NQl=function(C){if(_.R3E()){var F=Object.keys(window.localStorage);F=_.u(F);for(var G=F.next();!G.done;G=F.next()){G=G.value;var V=Zyd(G);V===void 0||C.includes(V)||self.localStorage.removeItem(G)}}};
OyV=function(){if(!_.R3E())return!1;var C=_.hy(),F=Object.keys(window.localStorage);F=_.u(F);for(var G=F.next();!G.done;G=F.next())if(G=Zyd(G.value),G!==void 0&&G!==C)return!0;return!1};
X6x=function(C){return _.qF("NotificationsDisabled",C)};
w6t=function(){return Notification.permission!="granted"?Promise.resolve():_.ET8().then(function(C){return C?C.pushManager.getSubscription().then(function(F){if(F)return Promise.resolve();F={userVisibleOnly:!0,applicationServerKey:_.p9("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return C.pushManager.subscribe(F).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
MRt=function(C){return _.ET8().then(function(F){if(!F||!F.active)return Promise.reject(new _.Ay("serviceworker.postMessage",C,F));try{return F.active.postMessage(C),Promise.resolve()}catch(G){return Promise.reject(G)}})};
S9h=function(){MRt({type:"notifications_register",data:_.TF("ID_TOKEN")})};
BQr=function(){var C={isWide:_.BD.get("wide","0")==="1"},F=_.bQ();if(F=F.getFlag(165)||F.getFlag(174))C.theme=_.Mz(!0);if(_.nNi()){var G=_.w7()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";C.systemTheme=G}!F&&_.y("parent_tools_enable_app_settings")&&_.Vt(window.location.href).theme!==void 0&&(C.theme=_.Mz());if((F=Qb)?!_.xf.equals(F,C):C)F={currentValue:C},Lrr&&(F.timeSinceLastSnapshotSecs=Math.round(((0,_.Et)()-Lrr)/1E3)),Qb&&(F.previousValue=Qb),_.q1("appSettingsCaptured",F),Qb=C,Lrr=
(0,_.Et)()};
ve3=function(){if(!_.oD("LOGGED_IN"))return Promise.resolve(!1);var C=_.kU("service_worker_push_force_notification_prompt_tag");return C?_.Ss("PromptTags").then(function(F){if(!F)return!0;var G=[];try{G=JSON.parse(F)}catch(V){return!1}return G&&G.indexOf(C)==-1}):Promise.resolve(!1)};
fDr=function(){var C=_.a8("service_worker_push_prompt_delay_microseconds");return C?_.Ss("PromptTime").then(function(F){return Promise.resolve(Date.now()-C>(F||0))}):Promise.resolve(!0)};
htl=function(){var C=_.a8("service_worker_push_logged_out_prompt_watches");return C==-1?Promise.resolve(!1):_.Ss("WatchCount").then(function(F){return F>=C})};
cCd=function(){var C=_.YJ(document,"yt-push-prompt-modal-bg");C&&_.So(C)};
ACU=function(){return _.a8("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.Ss("PromptCount").then(function(C){C||(C=0);return Promise.resolve(C<_.a8("service_worker_push_prompt_cap"))})};
et_=function(C){return _.oD("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.oD("LOGGED_IN")&&(C===void 0?0:C)?ve3().then(function(F){if(F)return!0;F=[ACU(),fDr()];_.oD("LOGGED_IN")||F.push(htl());return Promise.all(F).then(function(G){return G.every(function(V){return V})})}):Promise.resolve(!1)};
dDh=function(){_.Ss("PromptCount").then(function(C){return _.qF("PromptCount",C+1)}).then(function(){return _.qF("PromptTime",Date.now())}).then(function(){var C=_.kU("service_worker_push_force_notification_prompt_tag");
if(C)return _.Ss("PromptTags").then(function(F){var G=[];if(F)try{G=JSON.parse(F)}catch(V){return!1}G||(G=[]);G.push(C);return _.qF("PromptTags",JSON.stringify(G))})})};
sP_=function(){xDV||cCd()};
q9r=function(C){C.style.zIndex=2147483648;C.style.pointerEvents="auto";C.style.backgroundColor="rgba(0, 0, 0, 0.6)";C.style.width="100%";C.style.height="100vh";C.style.position="absolute";C.style.top="0";C.style.left="0";C.style.border="none"};
Pas=function(){var C=_.YJ(document,"yt-push-prompt-modal-bg");xDV=_.y("service_worker_push_prompt_modal_ignore_click");C?q9r(C):(C=_.NE("div",{id:"yt-push-prompt-modal-bg"}),q9r(C),document.body.appendChild(C),_.WrS(document,"click",sP_))};
geM=function(){var C=arguments;_.y("service_worker_push_prompt_modal_enable")&&Pas();return Notification.requestPermission().then(function(F){cCd();var G=document.getElementById("ticker");G&&(G.className=G.classList.remove("show"));if(F=="granted")return w6t().then(function(){X6x(!1);S9h();return Promise.resolve(!0)});
F=="denied"&&S9h();return Promise.resolve(!1)}).catch(function(){cCd();
return Promise.reject.apply(Promise,_.da(C))})};
RtM=function(C){C=C===void 0?!1:C;var F=_.ENZ().client;if(F&&F.browserVersion){var G=F.browserVersion,V=F.browserName=="CHROME"&&_.ts(G,"50.0.0")<0;F=F.browserName=="OPERA"&&_.ts(G,"42.0.0")<0;if(V||F)return Promise.resolve()}return _.att().then(function(J){if(!J)return Promise.resolve();J=w6t().then(function(){return MRt({type:"notifications_check_registration",data:_.TF("ID_TOKEN")})});
return Notification.permission!="default"?J.catch(function(){}):J.then(function(){return et_(C)}).then(function(b){if(b)return dDh(),geM().then(function(){})}).catch(function(){})})};
Y9d=function(C){return _.W5r(C)?RtM():Promise.resolve()};
TQx=function(C){var F=C.installing||C.waiting;return C.active||!F?Promise.resolve(C):new Promise(function(G){var V=function(J){J=J.target;if(J.state==="activated"||J.state==="redundant")F.removeEventListener("statechange",V),G(C)};
F.addEventListener("statechange",V)})};
oet=function(){var C=new _.NgB("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.m8(C,{mainAppWeb:_.vr()});var F=_.oqu;_.y("service_worker_forward_exp_params")&&(F=yCM(F));try{var G=_.aZZ(F).catch(function(){_.CV(C,"FAILURE");return new Promise(function(){})});
_.y("service_worker_push_enabled")&&G.then(function(V){_.CV(C,"SUCCESS");return V}).then(TQx).then(Y9d)}catch(V){if(_.CV(C,"FAILURE"),V.name!=="SecurityError")throw V;
}};
rCd=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&oet()};
Krh=function(C,F){var G={};F&&(G.serializedYpcFamilyCreateLoggingParams=F);_.q1(C,G);_.P8()};
DDV=function(C,F){var G={};G.serializedYpcRefundFlowLoggingParams=F;C&&(G.eventType=C);_.q1("ypcRefundFlowEvent",G);_.P8()};
p6x=function(C){C&&_.UOs("transactionFlowSucceeded",C)};
mDM=function(C){C&&_.kA("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",C,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
C5W=function(C){var F,G,V,J,b,z,Q;_.I(function(E){if(E.nextAddress==1)return E.yield(_.CAE(),2);if(E.nextAddress!=3){if(!E.yieldResult)return E.return(!1);F=[];return E.yield(_.Ky.keys(),3)}G=E.yieldResult;V=_.u(G);for(J=V.next();!J.done;J=V.next())b=J.value,z=_.pmS(b),Q=z.datasyncId,!Q||C.includes(Q)||F.push(_.Ky.delete(b));return E.return(Promise.all(F).then(function(t){return t.some(function(k){return k})}))})};
jes=function(){var C,F,G,V,J,b,z;return _.I(function(Q){if(Q.nextAddress==1)return Q.yield(_.CAE(),2);if(Q.nextAddress!=3){if(!Q.yieldResult)return Q.return(!1);C=_.hy("cache contains other");return Q.yield(_.Ky.keys(),3)}F=Q.yieldResult;G=_.u(F);for(V=G.next();!V.done;V=G.next())if(J=V.value,b=_.pmS(J),(z=b.datasyncId)&&z!==C)return Q.return(!0);return Q.return(!1)})};
F2V=function(){var C=_.I8().resolve(_.Qt(_.Trm));return C?C.getCurrentTime():0};
Gbl=function(){var C,F,G,V,J,b,z,Q,E,t,k,U,H,l;return _.I(function(N){switch(N.nextAddress){case 1:C={},F=_.G0T(),G=_.u(Object.entries(F)),V=G.next();case 4:if(V.done){N.jumpTo(3);break}J=V.value;b=_.u(J);z=b.next().value;Q=b.next().value;E=z;t=Q;if(!t){N.jumpTo(5);break}return N.yield(t(),8);case 8:C[E]=N.yieldResult;case 5:V=G.next();N.jumpTo(4);break;case 2:k=_.u(),U=k.next();case 9:if(U.done){N.jumpTo(3);break}H=U.value;l=F[H];if(!l){N.jumpTo(10);break}return N.yield(l(),13);case 13:C[H]=N.yieldResult;
case 10:U=k.next();N.jumpTo(9);break;case 3:return N.return(C)}})};
Vn3=function(){var C;_.I(function(F){if(F.nextAddress==1)return F.yield(Gbl(),2);C=F.yieldResult;return F.yield(navigator.clipboard.writeText(JSON.stringify(C,null,2)),0)})};
iZs=function(C,F){return _.jN(C.entities,"superThanksSelectedTierEntity",F)};
JM_=function(C,F){return{popup:{searchSuggestionReportDialog:{searchQuery:C,title:_.iQ("SBOX_INAPPROPRIATE_TITLE"),suggestions:F,categoryLabel:_.iQ("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.iQ("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.iQ("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.iQ("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.iQ("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.iQ("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.iQ("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.iQ("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.iQ("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.iQ("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
$Gr=function(C){var F,G,V,J,b,z,Q,E,t,k,U,H,l,N,S,f,c,A,T;return _.I(function(P){switch(P.nextAddress){case 1:return P.yield(_.Vj(),2);case 2:return(F=P.yieldResult)?P.yield(_.uJI(F),3):P.return();case 3:G=P.yieldResult;if(!G)return P.return();J=((V=G.offlineVideos)==null?void 0:V.length)||0;z=((b=G.offlinePlaylists)==null?void 0:b.length)||0;if(J===0&&z===0)return P.return();Q=0;if(G.offlineVideos)for(E=_.u(G.offlineVideos),t=E.next();!t.done;t=E.next())k=t.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
k.videoState&&(Q+=1);C.offline_videos_count=J.toString();_.y("kevlar_log_offline_current_network_type_ks")||(C.offline_current_network_type=(U=_.eRo())!=null?U:"CONN_INVALID");_.y("kevlar_log_updated_time_for_smart_downloads")&&(H=_.s3().getState().entities,l=_.U3(H),N=mr8(H),C.offline_smart_downloads_last_sync_time_ms=l.toString(),C.offline_smart_downloads_next_sync_time_ms=N.toString());C.offline_videos_playable=Q.toString();C.offline_playlists_count=z.toString();G.offlineVideos&&(S=G.offlineVideos.reduce(function(g,
r){r.downloadedBytes&&(g+=Number(r.downloadedBytes));return g},0).toString())&&(C.offline_used_disk_space_bytes=S);
if(!((f=navigator)==null?0:(c=f.storage)==null?0:c.estimate)){P.jumpTo(4);break}return P.yield(navigator.storage.estimate(),5);case 5:A=P.yieldResult,C.offline_free_disk_space_bytes=(((T=A)==null?void 0:T.quota)||0).toString();case 4:C.offline_client_state=JSON.stringify(G),_.S9(P)}})};
bZr=function(C){C=C.match(/(.*)::.*::.*/);if(C!==null)return C[1]};
nJl=function(C){if(_.wHw()){var F=Object.keys(window.sessionStorage);F=_.u(F);for(var G=F.next();!G.done;G=F.next()){G=G.value;var V=bZr(G);V===void 0||C.includes(V)||self.sessionStorage.removeItem(G)}}};
uXh=function(){if(!_.wHw())return!1;var C=_.hy(),F=Object.keys(window.sessionStorage);F=_.u(F);for(var G=F.next();!G.done;G=F.next())if(G=bZr(G.value),G!==void 0&&G!==C)return!0;return!1};
Ic=function(C,F,G){(_.y("desktop_keyboard_shortcut_usage_log")||G&&_.y("web_shorts_keyboard_shortcut_usage_log"))&&(F?_.T0.get(C):_.Yu.get(C))&&(C=F?_.rr.get(C):_.ob.get(C))&&_.ej(_.ZQ(),C)};
zI3=function(C,F){return C.findIndex(function(G){return G.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(F.keyCode):!1};
Qe3=function(C,F){F.stack&&(C.stack+="\n"+F.stack);return C};
W2r=function(C){var F=EO(C,"Content-Type");if(!F)return null;F=F.toLowerCase();if(F.startsWith("application/json"))return F.startsWith("application/json+protobuf")?new IHl:new _.zD;if(F.startsWith("application/x-protobuf")){C=EO(C,"Content-Transfer-Encoding");if(!C)return new W2;if(C.toLowerCase()=="base64")return new EJx}return null};
NEW=function(C,F,G,V){var J=new tnW(function(Q,E){return aHU.has(E)?Q.sentinel==="gal"&&Q.event!==void 0:!1},function(Q){Q.event?(Q=kbt(Q.event),Q=!Q||UGL(V,Q)?!0:_.$L(C.lastEvent,tD,2,ac)?!_.$L(Q,kQ,1,ac)&&!_.$L(Q,tD,2,ac):!_.$L(Q,kQ,1,ac)&&!_.$L(Q,tD,3,ac)):Q=!0;
return Q});
G=_.Us(C.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",HZM(G)]]));if(C.nestedOrigins!==void 0)for(var b=_.u(C.nestedOrigins),z=b.next();!z.done;z=b.next())G=_.Us(G,new Map([["origin",z.value]]));return lHM(J,G,F).then(function(Q){Q=yMd(Q.event);if(_.$L(Q,kQ,1,ac)){var E,t=(E=_.yZ(Q,kQ,1,ac))==null?void 0:_.kL(E,2);t&&V.JSC$19650_logErrorEvent(ZZW(t));E=_.yZ(Q,kQ,1,ac);_.kL(E,2)===4?(Q=_.yZ(Q,kQ,1,ac),Q={statusCode:11,statusMessage:_.a3(Q,
3)}):(Q=_.yZ(Q,kQ,1,ac),Q={statusCode:12,statusMessage:_.a3(Q,3)});return Q}_.$L(Q,tD,3,ac)?(Q=_.yZ(Q,tD,3,ac),Q={statusCode:1,consentLanguageKeys:_.a3(Q,2)}):Q={statusCode:1};return Q}).catch(function(Q){return Q.errorCode!==void 0?{statusCode:Q.errorCode,
statusMessage:Q.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
MnM=function(C){var F={};if(C===void 0||C===null)return F;C.getToken()!==void 0&&OZ8(C.getToken())&&OZ8(C.getToken()).length>0&&(F.scopes=new Set(OZ8(C.getToken())));C.getToken()!==void 0&&XBr(C.getToken())&&XBr(C.getToken()).length>0&&(F.capabilities=new Set(XBr(C.getToken())));_.a3(C,3)!==void 0&&(F.consistencyKey=_.a3(C,3));C.getName()!==void 0&&C.getName()!==""&&(F.linkName=C.getName());_.Ji(C,wBs,4)&&(C=_.aa(C,wBs,4),C=Object.assign({},_.a3(C,1)&&{userId:_.a3(C,1)},_.a3(C,2)&&{displayName:_.a3(C,
2)},_.a3(C,3)&&{email:_.a3(C,3)},_.a3(C,5)&&{username:_.a3(C,5)},_.a3(C,4)&&{profilePicture:_.a3(C,4)}),F.profile=C);return F};
S4L=function(C,F){var G=C.flowParams,V;return{serviceId:G.serviceId,sessionId:G.sessionId,currentFlow:C.currentFlow,googleScopesString:F,linkingSessionSerialized:C.session.serialize(),consentLanguageKeys:G.consentLanguageKeys,callerState:C.callerState,dynamicUrlParameters:G.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(V=G.partnerConfigMinReadTimestamp)==null?void 0:V.serialize()}};
hIs=function(C){var F=C.googleScopes!==void 0?Array.from(C.googleScopes).join(","):"";L2x(S4L(C,F));F=BEh(C);return F===null?Promise.resolve(vJL):F.start().then(function(G){var V,J=(V=G.link)==null?void 0:V.consistencyKey;return G.statusCode===1&&C.googleScopes!==void 0&&C.googleScopes.size>0&&J!==void 0?(V=C.flowParams,fHh(V.serviceId,V.sessionId,C.googleScopes,J,V.galService,C.config,G)):G})};
cMr=function(C){var F=BEh(C);return F===null?Promise.resolve(UO({statusCode:7,statusMessage:"Failed to create flow object"},C.callerState)):F.complete().then(function(G){var V,J=(V=G.link)==null?void 0:V.consistencyKey;return G.statusCode===1&&C.googleScopes!==void 0&&C.googleScopes.size>0&&J!==void 0?(V=C.flowParams,fHh(V.serviceId,V.sessionId,C.googleScopes,J,V.galService,C.config,G)):UO(G,C.callerState)},function(G){return UO({statusCode:12,
statusMessage:"Failed to complete the flow: "+G.message},C.callerState)})};
fHh=function(C,F,G,V,J,b,z){return AMs(J,{serviceId:C,sessionId:F,googleScopes:G,consistencyKey:V}).then(function(){return z},function(Q){return J.deleteLink({serviceId:C,
sessionId:F,accountLinkingEntryPoint:b.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+Q.message}},function(E){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+E.message}})})};
BEh=function(C){switch(C.currentFlow){case 1:var F=C.flowParams;C=_.aa(C.session,eIt,1);return H2.createOAuthFlow(F,C);case 2:case 3:return F=C.flowParams,C=_.aa(C.session,dGt,6),l2.createStreamlinedFlow(F,C);default:return null}};
xG8=function(C,F){C===2&&(C=3);var G=0;yb.indexOf(C)!==-1&&(G=yb.indexOf(C)+1);for(C=G;C<yb.length;C++)if(F.has(yb[C]))return yb[C]};
P5s=function(C){var F=C.serviceId;var G=C.sessionId;var V=C.config;var J=C.galService;var b=C.capabilities;var z=C.scopes;var Q=C.loginHint;var E=C.callerState;var t=C.consentLanguageKeys;var k=C.linkName;var U=C.dynamicUrlParameters;var H=C.partnerConfigMinReadTimestamp;C=V.dataUsageNoticeConfig?V.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return J.startLinkingSession({serviceId:F,sessionId:G,capabilities:b,scopes:z,loginHint:Q,callerState:E,supportedFlows:ser(V.supportedFlows),completionUrl:V.completionUrl,
accountLinkingEntryPoint:V.accountLinkingEntryPoint,consentLanguageKeys:t,dataUsageNoticeConfig:C,linkName:k,dynamicUrlParameters:U,partnerConfigMinReadTimestamp:H}).then(function(l){return new q4W(F,G,V,J,l,void 0,E,t,U,H)})};
rMr=function(C,F,G){var V=(new gJr).getSession(C);if(V===null)return Promise.resolve({statusCode:2});RIx(C);var J=Y4L(V.linkingSessionSerialized),b=V.googleScopesString!==""&&V.googleScopesString!==void 0?new Set(V.googleScopesString.split(",")):void 0,z=V.partnerConfigMinReadTimestampSerialized?TE_(V.partnerConfigMinReadTimestampSerialized):void 0;return oJU(new q4W(C,V.sessionId,F,G,J,b,V.callerState,V.consentLanguageKeys,V.dynamicUrlParameters,z),V.currentFlow,V.consentLanguageKeys)};
L2x=function(C){var F=new gJr;F.storage!==null&&F.storage.set("SAVED_SESSION",C)};
RIx=function(C){var F=new gJr;if(F.storage!==null){var G=F.storage.get("SAVED_SESSION");G!==void 0&&G.serviceId===C&&F.storage.remove("SAVED_SESSION")}};
ser=function(C){var F=new Set;C=_.u(C);for(var G=C.next();!G.done;G=C.next())G=G.value,G!==1&&K2U.has(G)&&F.add(K2U.get(G));return F};
UO=function(C,F){F!==void 0&&(C.callerState=F);return C};
DGd=function(C){switch(C){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
CCx=function(C){return new pBs(C,new mGV(C))};
G3L=function(C,F){F=F===void 0?!1:F;var G=document.createElement("div");C&&(G.style.transform="scaleX(-1)");G.style.backgroundColor=F?"rgba(138,180,248,.24)":"#e8f0fe";G.style.height="4px";G.style.overflow="hidden";G.style.position="absolute";G.style.top="0";G.style.width="100%";G.style.zIndex="1500";G.setAttribute("aria-label","Loading");G.setAttribute("aria-live","polite");C=document.createElement("style");C.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  }";
G.appendChild(C);C=jyh();C.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";C.style.left="-145.166611%";var V=Fes(F);V.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";C.appendChild(V);G.appendChild(C);C=jyh();C.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";C.style.left="-54.888891%";F=Fes(F);F.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
C.appendChild(F);G.appendChild(C);return G};
jyh=function(){var C=document.createElement("div");C.style.height="100%";C.style.position="absolute";C.style.transformOrigin="top left";C.style.width="100%";return C};
Fes=function(C){var F=document.createElement("span");F.style.borderTop=C?"4px solid #669df6":"4px solid #4285f4";F.style.display="inline-block";F.style.position="absolute";F.style.width="100%";return F};
VVM=function(C){return C==null?void 0:_.EdO(C).valueOf()};
bYW=function(C){var F=document.body,G=!1,V=function(){G||(G=!0,iYV(J,b),setTimeout(function(){F.removeChild(b);F.removeChild(J)},150))},J=Jms(C,getComputedStyle(F).direction==="rtl",V),b=$hM(V);
iYV(J,b);F.appendChild(b);F.appendChild(J);window.requestAnimationFrame(function(){b.style.opacity="1";J.style.opacity="1";J.style.transform="translate(-50%, -50%) scale(1)";J.children[0].focus()})};
Jms=function(C,F,G){var V=document.createElement("div");V.style.position="fixed";V.style.alignItems="center";V.style.backgroundColor=C?"rgb(32, 33, 36)":"white";V.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";V.style.display="flex";V.style.flexDirection="column";V.style.justifyContent="center";V.style.left="50%";V.style.top="50%";V.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";V.style.zIndex="2002";document.body.clientWidth>=
660?(V.style.borderRadius="8px",V.style.minHeight="220px",V.style.maxHeight="90%",V.style.maxWidth="90%",V.style.minWidth="540px"):(V.style.height="100%",V.style.width="100%");V.setAttribute("aria-label","Error");V.setAttribute("aria-modal","true");V.setAttribute("role","alertdialog");V.addEventListener("keydown",function(b){b.key==="Escape"&&G()});
F=nbs(C,F,G);V.appendChild(uNh(F));V.appendChild(F);var J=document.createElement("img");J.src=C?"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";J.style.height="72px";J.style.width="72px";J.style.color="#9aa0a6";J.setAttribute("alt","");V.appendChild(J);J=document.createElement("h1");J.textContent="Something went wrong.  Try again.";
J.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";J.style.lineHeight="24px";J.style.fontSize="16px";J.style.textAlign="center";J.style.letterSpacing="0.1px";J.style.color=C?"rgb(232,234,237)":"#3c4043";V.appendChild(J);V.appendChild(uNh(F));return V};
nbs=function(C,F,G){var V=document.createElement("button");V.style.backgroundColor="transparent";V.style.border="none";V.style.borderRadius="50%";V.style.cursor="pointer";V.style.outline="none";V.style.padding="12px";V.setAttribute("aria-label","Close dialog");V.style.position="absolute";V.style.top="0";F?V.style.right="0":V.style.left="0";V.addEventListener("focus",function(){V.style.backgroundColor=C?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
V.addEventListener("blur",function(){V.style.backgroundColor="transparent"});
V.addEventListener("mouseenter",function(){V.style.backgroundColor=C?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
V.addEventListener("mouseleave",function(){V.style.backgroundColor="transparent"});
V.addEventListener("click",G);V.addEventListener("keydown",function(J){J.key!=="Enter"&&J.key!=="Space"||G()});
F=document.createElement("img");F.src=C?"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";F.style.display="block";F.style.height="24px";F.style.width="24px";F.setAttribute("alt","");V.appendChild(F);return V};
uNh=function(C){var F=document.createElement("div");F.setAttribute("tabindex","0");F.setAttribute("aria-hidden","true");F.addEventListener("focus",function(){return void C.focus()});
return F};
$hM=function(C){var F=document.createElement("div");F.style.backgroundColor="rgba(32,33,36,0.6)";F.style.bottom="0";F.style.left="0";F.style.position="fixed";F.style.right="0";F.style.top="0";F.style.transition=" opacity 150 ms linear";F.style.zIndex="2001";F.addEventListener("click",C);return F};
iYV=function(C,F){F.style.opacity="0";C.style.opacity="0";C.style.transform="translate(-50%, -50%) scale(0.8)"};
zNh=function(C,F){C.sandbox&&C.sandbox.add&&(C.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),C.sandbox.add("allow-downloads"));C.src=F};
Zk=function(C){QyU.call(this,C)};
Nv=function(C,F){F=F===void 0?!1:F;this.parsedImageUrl_=null;C instanceof IRr||(Eb_==void 0&&(Eb_=new Wer),C=Eb_.parse(C.toString(),F));C=this.parsedImageUrl_=C;C.JSC$19862_parsedOptions_==void 0&&((F=C.getOptions())||(F=""),C.JSC$19862_parsedOptions_=(new tVx).parse(F));QyU.call(this,C.JSC$19862_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;C=this.parsedImageUrl_;F=C.uri_.JSC$10031_port_;this.JSC$19864_domain_=C.uri_.JSC$10031_domain_+(F?":"+F:"");this.JSC$19864_query_=
this.parsedImageUrl_.uri_.JSC$10031_queryData_.toString()};
aRd=function(C){this.mode=4;this.data=C;this.parsedData=[];C=0;for(var F=this.data.length;C<F;C++){var G=[],V=this.data.charCodeAt(C);V>65536?(G[0]=240|(V&1835008)>>>18,G[1]=128|(V&258048)>>>12,G[2]=128|(V&4032)>>>6,G[3]=128|V&63):V>2048?(G[0]=224|(V&61440)>>>12,G[1]=128|(V&4032)>>>6,G[2]=128|V&63):V>128?(G[0]=192|(V&1984)>>>6,G[1]=128|V&63):G[0]=V;this.parsedData.push(G)}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))};
k3W=function(C){this.typeNumber=0;this.errorCorrectLevel=C===void 0?2:C;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
OO=function(C,F){if(C.length==void 0)throw Error("Ok`"+C.length+"`"+F);for(var G=0;G<C.length&&C[G]==0;)G++;this.num=Array(C.length-G+F);for(F=0;F<C.length-G;F++)this.num[F]=C[F+G]};
Uh8=function(C,F){this.totalCount=C;this.dataCount=F};
HYs=function(){this.buffer=[];this.length=0};
lRL=function(){var C=!1;if(_.Z9W()){C=_.UB();var F="";_.XoE()?(F=/Windows (?:NT|Phone) ([0-9.]+)/,F=(C=F.exec(C))?C[1]:"0.0"):_.vo()?(F=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,F=(C=F.exec(C))&&C[1].replace(/_/g,".")):_.O9T()?(F=/Mac OS X ([0-9_.]+)/,F=(C=F.exec(C))?C[1].replace(/_/g,"."):"10"):_.QT(_.UB(),"KaiOS")?(F=/(?:KaiOS)\/(\S+)/i,F=(C=F.exec(C))&&C[1]):_.Z9W()?(F=/Android\s+([^\);]+)(\)|;)/,F=(C=F.exec(C))&&C[1]):_.woI()&&(F=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,F=(C=F.exec(C))&&C[1]);C=
F||""}return C};
wlx=function(C,F){this.JSC$19887__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(F)for(var G in F)this.JSC$19887__htOption[G]=F[G];this.JSC$19887__htOption.useSVG&&(ym3=ZYL);this.JSC$19887__android=lRL();this.JSC$19887__el=C;this._oQRCode=null;this._oDrawing=new ym3(this.JSC$19887__el,this.JSC$19887__htOption);this.JSC$19887__htOption.text&&(C=this.JSC$19887__htOption.text,this._oQRCode=new k3W(this.JSC$19887__htOption.correctLevel),Nvr(this._oQRCode,
C),F=this._oQRCode,OY8(F,!1,Xlr(F)),this.JSC$19887__el.title=C,this._oDrawing.draw(this._oQRCode),this.makeImage())};
MVM=function(C,F,G,V,J){C.save();var b=new Path2D;b.roundRect(F,G,V*7,V*7,V*2);b.roundRect(F+V,G+V,V*5,V*5,V*1.3);b.roundRect(F+2*V,G+2*V,V*3,V*3,V);C.clip(b,"evenodd");C.fillStyle=J;C.fillRect(0,0,C.canvas.width,C.canvas.height);C.restore()};
XK=function(C,F){if(typeof C!=="function")throw Error("Rk");return _.VT.setTimeout(function(){C()},F)};
w5=function(){};
LeU=function(C,F,G,V,J){(new w5).debug("TestLoadImageWithRetries: "+J);if(V==0)G(!1);else{var b=J||0;V--;SIV(C,F,function(z){z?G(!0):_.VT.setTimeout(function(){LeU(C,F,G,V,b)},b)})}};
SIV=function(C,F,G){var V=new w5;V.debug("TestLoadImage: loading "+C);var J=new Image;J.onload=function(){try{V.debug("TestLoadImage: loaded"),Bvt(J),G(!0)}catch(b){}};
J.onerror=function(){try{V.debug("TestLoadImage: error"),Bvt(J),G(!1)}catch(b){}};
J.onabort=function(){try{V.debug("TestLoadImage: abort"),Bvt(J),G(!1)}catch(b){}};
J.ontimeout=function(){try{V.debug("TestLoadImage: timeout"),Bvt(J),G(!1)}catch(b){}};
_.VT.setTimeout(function(){if(J.ontimeout)J.ontimeout()},F);
J.src=C};
Bvt=function(C){C.onload=null;C.onerror=null;C.onabort=null;C.ontimeout=null};
vbl=function(){this.front_=[];this.back_=[]};
fR_=function(C,F){this.action=C;this.params=F||{}};
hNt=function(C,F){_.hV.call(this);this.delay_=new _.AV(this.JSC$20013_onTick_,0,this);_.Nd(this,this.delay_);this.JSC$20011_interval_=5E3;this.nextTickTime_=0;if(typeof C==="function")F&&(C=(0,_.ck)(C,F));else if(C&&typeof C.handleEvent==="function")C=(0,_.ck)(C.handleEvent,C);else throw Error("ya");this.JSC$20013_listener_=C};
Mv=function(C,F,G,V,J,b,z,Q,E,t,k,U,H,l){G=G===void 0?!1:G;V=V===void 0?function(){return""}:V;
J=J===void 0?!1:J;b=b===void 0?!1:b;z=z===void 0?!1:z;Q=Q===void 0?function(){return _.mE({})}:Q;
E=E===void 0?!1:E;k=k===void 0?!1:k;U=U===void 0?!1:U;H=H===void 0?!1:H;l=l===void 0?!1:l;this.JSC$20014_pathPrefix_=C;this.defaultQueryParams_=F;this.pubsub_=new _.SP;this.reconnectTimer_=new hNt(this.safeReconnect_,this);this.JSC$20014_channel_=null;this.JSC$20014_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$20014_pendingMessages_=[];this.enableAsyncTest_=G;this.JSC$20014_getXsrfToken_=V;this.useAsyncBrowserChannelHandler_=b;this.getAuthorizationHeader_=
Q;this.getAuthorizationHeaderSync_=t;this.enableCachedUpdateAuthorizationHeader_=z;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.mE();this.enableLoungeTokenRefresh_=J;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=E;this.disableMdxAuthForNonPlaybackMessages_=k;this.disableMdxAuthForAdMessages_=U;this.enableMdxAuthForConnectionOnly_=H;this.disableMdxAuthForShortsMessages_=l;this.JSC$20014_channelOpenedCounter=new cmh;this.JSC$20014_channelClosedCounter=new Amt;this.channelMessageSentCounter=
new eNt;this.JSC$20014_channelMessageReceivedCounter=new dhV;this.JSC$20014_channelErrorCounter=new xhh;this.pendingMapsOnClosedCounter=new syW;this.undeliveredMapsOnClosedCounter=new qIr};
S1=function(C){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;C=C||document.location.href;var F=Number(_.$U(C)[4]||null)||"";F&&(this.port=":"+F);this.domain=_.bH(C)||"";C=_.UB();C.search("MSIE")>=0&&_.ts(C.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
Lu=function(C){C=C||{};this.name=C.name||"";this.id=C.id||C.screenId||"";this.token=C.token||C.loungeToken||"";this.uuid=C.uuid||C.dialId||"";this.idType=C.screenIdType||"normal";this.secret=C.screenIdSecret||""};
PC_=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(C){var F=Math.random()*16|0;return(C=="x"?F:F&3|8).toString(16)})};
gbU=function(C){return _.ss(C,function(F){return{key:F.id,name:F.name}})};
RNh=function(C,F){return _.co(C,function(G){return G||F?!G!=!F?!1:G.id==F.id:!0})};
v2=function(C,F){return _.co(C,function(G){return B2(G,F)})};
KeL=function(){var C=YIr(),F=Tvs();if(obs()){var G=C,V=_.Asq(G,F);V<0&&_.fA9(G,-(V+1),0,F)}C=rmx(C);if(C.length==0)try{_.f8w("remote_sid")}catch(J){}else try{_.vD("remote_sid",C.join(","),-1)}catch(J){}};
YIr=function(){var C=_.Wr("yt-remote-connected-devices")||[];C.sort(_.csI);return C};
rmx=function(C){if(C.length==0)return[];var F=C[0].indexOf("#"),G=F==-1?C[0]:C[0].substring(0,F);return _.ss(C,function(V,J){return J==0?V:V.substring(G.length)})};
Dhs=function(C){_.E6("yt-remote-connected-devices",C,86400)};
Tvs=function(){if(pl3)return pl3;var C=_.Wr("yt-remote-device-id");C||(C=PC_(),_.E6("yt-remote-device-id",C,31536E3));for(var F=YIr(),G=1,V=C;_.sB(F,V);)G++,V=C+"#"+G;return pl3=V};
mhr=function(){return _.Wr("yt-remote-session-browser-channel")};
obs=function(){return _.Wr("yt-remote-session-screen-id")};
F8U=function(C){C.length>5&&(C=C.slice(C.length-5));var F=_.ss(Cd8(),function(V){return V.loungeToken}),G=_.ss(C,function(V){return V.loungeToken});
_.qGq(G,function(V){return!_.sB(F,V)})&&jvx();
_.E6("yt-remote-local-screens",C,31536E3)};
Cd8=function(){return _.Wr("yt-remote-local-screens")||[]};
jvx=function(){_.E6("yt-remote-lounge-token-expiration",!0,86400)};
fu=function(C){C||(_.tR("yt-remote-session-screen-id"),_.tR("yt-remote-session-video-id"));KeL();C=YIr();_.qf(C,Tvs());Dhs(C)};
VZl=function(){GZs();return hD?!!hD.get("yt-remote-use-staging-server"):!1};
GZs=function(){if(!hD){var C=_.PQI();C&&(hD=new _.eP(C))}};
b3x=function(C,F,G,V,J){G=G===void 0?function(){return""}:G;
var b=function(){return new Mv(c2(C,"/bc"),F,!1,G,V)};
return _.y("enable_mdx_web_channel_desktop")?new i3V(function(){return new JkL(c2(C,"/wc"),F,G)}):new $xM(b,J)};
Qvl=function(){var C=nZM;ucL();AD.push(C);z1t()};
e1=function(C,F){ucL();var G=IFr(C,String(F));AD.length==0?EZ8(G):(z1t(),_.F$(AD,function(V){V(G)}))};
d5=function(C){e1("CP",C)};
ucL=function(){AD||(AD=_.mN("yt.mdx.remote.debug.handlers_")||[],_.zn("yt.mdx.remote.debug.handlers_",AD))};
EZ8=function(C){var F=(xQ+1)%50;xQ=F;W8W[F]=C;tZx||(tZx=F==49)};
z1t=function(){var C=AD;if(W8W[0]){var F=tZx?xQ:-1,G={};do G={record$jscomp$15:void 0},F=(F+1)%50,G.record$jscomp$15=W8W[F],_.F$(C,function(V){return function(J){J(V.record$jscomp$15)}}(G));
while(F!=xQ);W8W=Array(50);xQ=-1;tZx=!1}};
IFr=function(C,F){var G=(Date.now()-aFh)/1E3;G.toFixed&&(G=G.toFixed(3));var V=[];V.push("[",G+"s","] ");V.push("[","yt.mdx.remote","] ");V.push(C+": "+F,"\n");return V.join("")};
sO=function(C){_.Rb.call(this);this.JSC$20038_logName_=C;this.screens=[]};
P2=function(C){sO.call(this,"LocalScreenService");this.JSC$20045_http_=C;this.loungeTokenRefreshTimer_=NaN;qv(this);this.info("Initializing with "+kZ8(this.screens))};
g5=function(C,F){F=F===void 0?!1:F;sO.call(this,"ScreenService");this.JSC$20051_http_=C;this.disableAutomaticScreenCache_=F;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};Ux8(this)};
Rc=function(C,F,G){_.Rb.call(this);this.JSC$20055_logName_=G;this.JSC$20055_screenService_=C;this.receiver_=F;this.screen_=null};
ck8=function(C,F,G){G.disableCastApi?YQ("Cannot initialize because disabled by Mdx config."):H3L()?lF8(C,G)&&(ykW(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?Z3l(F):(window.__onGCastApiAvailable=function(V,J){V?Z3l(F):(Tu("Failed to load cast API: "+J),NJl(!1),ykW(!1),_.tR("yt-remote-cast-available"),_.tR("yt-remote-cast-receiver"),O3x(),F(!1))},G.loadCastApiSetupScript?_.LX(Xxt):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
wxV()>=60&&MZr():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?Sp8():wxV()>=89?L8_():(BJt(),vZx(fF3.map(h1s))))):YQ("Cannot initialize because not running Chrome")};
O3x=function(){YQ("dispose");var C=oc();C&&C.dispose();_.zn("yt.mdx.remote.cloudview.instance_",null);Akx(!1);_.lDZ(e1L);e1L.length=0};
dx3=function(){return!!_.Wr("yt-remote-cast-installed")};
xx8=function(){var C=_.Wr("yt-remote-cast-receiver");return C?C.friendlyName:null};
sv_=function(){YQ("clearCurrentReceiver");_.tR("yt-remote-cast-receiver")};
qpL=function(){return dx3()?oc()?oc().getCastSession():(Tu("getCastSelector: Cast is not initialized."),null):(Tu("getCastSelector: Cast API is not installed!"),null)};
gZW=function(C,F){PdV()?oc().setConnectedScreenStatus(C,F):Tu("setConnectedScreenStatus called before ready.")};
H3L=function(){var C=_.UB().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.C2||C};
lF8=function(C,F){var G=!1;oc()||(C=new r5(C,F),C.subscribe("yt-remote-cast2-availability-change",function(V){_.E6("yt-remote-cast-available",V);Gu("yt-remote-cast2-availability-change",V)}),C.subscribe("yt-remote-cast2-receiver-selected",function(V){YQ("onReceiverSelected: "+V.friendlyName);
_.E6("yt-remote-cast-receiver",V);Gu("yt-remote-cast2-receiver-selected",V)}),C.subscribe("yt-remote-cast2-receiver-resumed",function(V){YQ("onReceiverResumed: "+V.friendlyName);
_.E6("yt-remote-cast-receiver",V);Gu("yt-remote-cast2-receiver-resumed",V)}),C.subscribe("yt-remote-cast2-session-change",function(V){YQ("onSessionChange: "+R1V(V));
V||_.tR("yt-remote-cast-receiver");Gu("yt-remote-cast2-session-change",V)}),_.zn("yt.mdx.remote.cloudview.instance_",C),G=!0);
YQ("cloudview.createSingleton_: "+G);return G};
oc=function(){return _.mN("yt.mdx.remote.cloudview.instance_")};
Z3l=function(C){NJl(!0);ykW(!1);oc().init(!1,function(F){F?(Akx(!0),_.yCS("yt-remote-cast2-api-ready")):(Tu("Failed to initialize cast API."),NJl(!1),_.tR("yt-remote-cast-available"),_.tR("yt-remote-cast-receiver"),O3x());C(F)})};
YQ=function(C){e1("cloudview",C)};
Tu=function(C){e1("cloudview",C)};
NJl=function(C){YQ("setCastInstalled_ "+C);_.E6("yt-remote-cast-installed",C)};
PdV=function(){return!!_.mN("yt.mdx.remote.cloudview.apiReady_")};
Akx=function(C){YQ("setApiReady_ "+C);_.zn("yt.mdx.remote.cloudview.apiReady_",C)};
ykW=function(C){_.zn("yt.mdx.remote.cloudview.initializing_",C)};
Ku=function(C){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(C)};
px3=function(C){GZs();if(!hD||!hD.get("yt-remote-disable-remote-module-for-dev")){C=_.TF("MDX_CONFIG")||C;QPd();KeL();Dk||(Dk=new S1(C?C.loungeApiHost:void 0),VZl()&&(Dk.basePath="/api/loungedev"));pu||(pu=_.mN("yt.mdx.remote.deferredProxies_")||[],_.zn("yt.mdx.remote.deferredProxies_",pu));Ypr();var F=mU();if(!F){var G=new g5(Dk,C?C.disableAutomaticScreenCache||!1:!1);_.zn("yt.mdx.remote.screenService_",G);F=mU();var V={};C&&(V={appId:C.appId,disableDial:C.disableDial,theme:C.theme,loadCastApiSetupScript:C.loadCastApiSetupScript,
disableCastApi:C.disableCastApi,enableDialLoungeToken:C.enableDialLoungeToken,enableCastLoungeToken:C.enableCastLoungeToken,forceMirroring:C.forceMirroring});_.zn("yt.mdx.remote.enableConnectWithInitialState_",C?C.enableConnectWithInitialState||!1:!1);ck8(G,function(b){b?Cs()&&gZW(Cs(),"YouTube TV"):G.subscribe("onlineScreenChange",function(){Gu("yt-remote-receiver-availability-change")})},V)}if(C&&!_.mN("yt.mdx.remote.initialized_")){_.zn("yt.mdx.remote.initialized_",!0);
jA("Initializing: "+(0,_.MX)(C));Fj.push(_.a1("yt-remote-cast2-api-ready",function(){Gu("yt-remote-api-ready")}));
Fj.push(_.a1("yt-remote-cast2-availability-change",function(){Gu("yt-remote-receiver-availability-change")}));
Fj.push(_.a1("yt-remote-cast2-receiver-selected",function(){TJh();Gu("yt-remote-auto-connect","cast-selector-receiver")}));
Fj.push(_.a1("yt-remote-cast2-receiver-resumed",function(){Gu("yt-remote-receiver-resumed","cast-selector-receiver")}));
Fj.push(_.a1("yt-remote-cast2-session-change",oZM));Fj.push(_.a1("yt-remote-connection-change",function(b){b?gZW(Cs(),"YouTube TV"):rk8()||(gZW(null,null),sv_())}));
Fj.push(_.a1("yt-remote-cast2-session-failed",function(){Gu("yt-remote-connection-failed")}));
V=K8r();C.isAuto&&(V.id+="#dial");var J=C.capabilities||[];J.length>0&&(V.capabilities=J);V.name=C.device;V.app=C.app;(C=C.theme)&&(V.theme=C);jA(" -- with channel params: "+(0,_.MX)(V));V?(_.E6("yt-remote-session-app",V.app),_.E6("yt-remote-session-name",V.name)):(_.tR("yt-remote-session-app"),_.tR("yt-remote-session-name"));_.zn("yt.mdx.remote.channelParams_",V);F.start();Cs()||Dxd()}}};
CVV=function(){var C=mU().instance_.$_gos();var F=mx8();F&&G5()&&(RNh(C,F)||C.push(F));return gbU(C)};
jEt=function(){var C=CVV(),F=mx8();F||(F=rk8());return _.co(C,function(G){return F&&B2(F,G.key)?!0:!1})};
mx8=function(){var C=Cs();if(!C)return null;var F=mU().getScreens();return v2(F,C)};
oZM=function(C){jA("remote.onCastSessionChange_: "+R1V(C));if(C){var F=mx8();if(F&&F.id==C.id){if(gZW(F.id,"YouTube TV"),C.idType=="shortLived"&&(C=C.token))F4h&&(F4h.token=C),(F=G5())&&F.setLoungeToken(C)}else F&&GC_(),Vuh(C,1)}else G5()&&GC_()};
GC_=function(){PdV()?oc().stopSession():Tu("stopSession called before API ready.");var C=G5();C&&(C.disconnect(1),iV_(null))};
J6W=function(){var C=G5();return C&&C.getProxyState()!=3?new Va(G5(),void 0):null};
jA=function(C){e1("remote",C)};
mU=function(){if(!$bV){var C=_.mN("yt.mdx.remote.screenService_");$bV=C?new bV3(C):null}return $bV};
Cs=function(){return _.mN("yt.mdx.remote.currentScreenId_")};
nCr=function(C){_.zn("yt.mdx.remote.currentScreenId_",C)};
TJh=function(){_.zn("yt.mdx.remote.connectData_",null)};
G5=function(){return _.mN("yt.mdx.remote.connection_")};
iV_=function(C){var F=G5();TJh();C||nCr("");_.zn("yt.mdx.remote.connection_",C);pu&&(_.F$(pu,function(G){G(C)}),pu.length=0);
F&&!C?Gu("yt-remote-connection-change",!1):!F&&C&&Gu("yt-remote-connection-change",!0)};
rk8=function(){var C=obs();if(!C)return null;var F=mU();if(!F)return null;F=F.getScreens();return v2(F,C)};
Vuh=function(C,F){uDs?F4h=C:(nCr(C.id),C=new iq(Dk,C,K8r(),_.mN("yt.mdx.remote.enableConnectWithInitialState_")||!1),C.connect(F,_.mN("yt.mdx.remote.connectData_")),C.subscribe("beforeDisconnect",function(G){Gu("yt-remote-before-disconnect",G)}),C.subscribe("beforeDispose",function(){G5()&&iV_(null)}),C.subscribe("browserChannelAuthError",function(){var G=mx8();
G&&G.idType=="shortLived"&&(PdV()?oc().handleBrowserChannelAuthError():Tu("refreshLoungeToken called before API ready."))}),iV_(C))};
Dxd=function(){var C=rk8();C?(jA("Resume connection to: "+R1V(C)),Vuh(C,0)):(fu(),sv_(),jA("Skipping connecting because no session screen found."))};
Ypr=function(){var C=K8r();if(_.xf.isEmpty(C)){C=Tvs();var F=_.Wr("yt-remote-session-name")||"",G=_.Wr("yt-remote-session-app")||"";C={device:"REMOTE_CONTROL",id:C,name:F,app:G,mdxVersion:3};C.authuser=String(_.TF("SESSION_INDEX","0"));(F=_.TF("DELEGATED_SESSION_ID"))&&(C.pageId=String(F));_.zn("yt.mdx.remote.channelParams_",C)}};
K8r=function(){return _.mN("yt.mdx.remote.channelParams_")||{}};
zT8=function(){var C,F;return _.I(function(G){if(G.nextAddress==1)return(_.VRT()||_.y("use_new_nwl"))&&_.Caq().isNetworkAvailable()?G.yield(_.Qn(),2):G.return();if(G.nextAddress!=3)return(C=G.yieldResult)?G.yield(eGs(C),3):G.return();F=G.yieldResult;if(!F.length)return G.return();F.forEach(function(V){var J={timestamp:V.timestamp};V=V.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:V.appShellAssetLoadReport,options:J}:V.clientError?{payloadName:"clientError",payload:V.clientError,
options:J}:void 0;V&&_.q1(V.payloadName,V.payload,V.options)});
F.length===100&&_.gT.addLowPriorityJob(zT8);_.S9(G)})};
QEr=function(C){if(C.playerResponse){if(C=C.playerResponse,C.messages&&C.messages.length>0&&(C=C.messages.find(function(F){return!(!F||!F.mealbarPromoRenderer)}))&&C.mealbarPromoRenderer)return C.mealbarPromoRenderer}else if(C.response&&(C=C.response)&&C.overlay&&C.overlay.mealbarPromoRenderer)return C.overlay.mealbarPromoRenderer};
Ioh=function(C){if(C.response){var F=C.response;if(F&&F.overlay&&F.overlay.tooltipRenderer)return F.overlay.tooltipRenderer}if(C.playerResponse&&(C=C.playerResponse,C.messages&&C.messages.length>0&&(C=C.messages.find(function(G){return!(!G||!G.tooltipRenderer)}))&&C.tooltipRenderer))return C.tooltipRenderer};
W4U=function(C){if(!ECs&&(C=C||_.TF("ZWIEBACK_PING_URLS"))&&C.length){ECs=!0;for(var F=0;F<C.length;F++)_.C1(C[F])}};
aoU=function(C){if(_.xf.get(_.TF("PLAYER_VARS",{}),"privembed",!1)!="1"){C&&Mr3();try{tur().then(function(){},function(){}),_.lH(aoU,18E5)}catch(F){_.ri(F)}}};
kCs=function(){var C=_.bQ(),F=C.getFlag(119),G=window.devicePixelRatio>1;document.body&&_.Pd(document.body,"exp-invert-logo")&&(G&&!_.Pd(document.body,"inverted-hdpi")?_.eR(document.body,"inverted-hdpi"):!G&&_.Pd(document.body,"inverted-hdpi")&&_.c6(document.body,"inverted-hdpi"));F!=G&&(_.nl(0,119,G),C.save())};
Ubd=function(C){return C.filter(function(F){return"ypcGetCartEndpoint"in F||"ypcFixInstrumentEndpoint"in F})};
HVs=function(C){return C.filter(function(F){return!_.Z(F,_.bpy)})};
y6V=function(C,F){var G,V,J,b,z,Q,E;_.I(function(t){switch(t.nextAddress){case 1:G=_.Br.getInstance();V=_.Cy.instance;J=_.BB.instance;if(!J)return lo8(C,V,F),t.return();_.yy(t,2);C.onLoadingCommand&&V.resolveCommand(C.onLoadingCommand);return t.yield(G.getCurrentPositionFromGeolocation(),4);case 4:b=t.yieldResult;if(!C.resolveLocationCommand){t.jumpTo(5);break}z=G.createLocationInfo(b);return t.yield(_.fZ(J,C.resolveLocationCommand,{locationInfo:z}),6);case 6:Q=t.yieldResult;if(!Q||"error"in Q&&Q.error||
Q.errorMetadata)return lo8(C,V,F),t.return();var k;if(Q==null?0:(k=Q.onResponseReceivedActions)==null?0:k.length){k=_.u(Q.onResponseReceivedActions);for(var U=k.next();!U.done;U=k.next())V.resolveCommand(U.value)}(_.Z(C.onSuccessCommand,_.eT)||_.Z(C.onSuccessCommand,_.iE))&&_.oo(F.hostElement,"yt-navigate",{endpoint:C.onSuccessCommand,reload:!0});case 5:_.Gn(t,0);break;case 2:E=_.wa(t);if(E instanceof GeolocationPositionError&&E.code===GeolocationPositionError.PERMISSION_DENIED)return C.onDeniedCommand&&
V.resolveCommand(C.onDeniedCommand),t.return();lo8(C,V,F);_.S9(t)}})};
lo8=function(C,F,G){C.onFailureCommand&&(F.resolveCommand(C.onFailureCommand),_.rz(G.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
Np8=function(C,F){var G=_.Z(C,_.fE$);if(G&&F){C=G.videoIds||[G.videoId];var V;F=(V=_.oo(F,"yt-lockup-requested",{videoIds:C}).detail)==null?void 0:V.returnValue;var J;G.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?J=F?F:C.map(function(b){return{videoId:b,navigationEndpoint:G.videoCommand}}):F&&(J=F);
J&&(V=J.map(function(b){var z=Object,Q=z.assign;var E=b.navigationEndpoint;if(!_.Z(E,_.nd)){var t=_.Z(E,_.eT);if(t){if(delete t.index,delete t.playlistId,t=_.Z(E==null?void 0:E.commandMetadata,_.GU),t==null?0:t.url){var k=t.url;k=_.P9(k,"list");k=_.P9(k,"index");t.url=k}}else E=void 0}return Q.call(z,{},b,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:E})}),ZVl(V,G))}};
OVs=function(C){var F=_.$s();if(C=_.Z(C,_.hSu))C.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&F.clearQueue(),C.closeMiniplayer&&_.I8().resolve(_.Od).close(!0)};
wsl=function(C){Xs3(_.$s(),C)};
MuL=function(C){var F;(C=(F=_.Z(C,_.B38))==null?void 0:F.setVideoIds)&&C.forEach(function(G){_.yI2(_.$s(),G)})};
L4V=function(C){SdW(_.$s(),C)};
Bpt=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(C){return!1}};
vCd=function(C){var F=["h","m","s"],G=_.Po(F);G.reverse();var V={};C=(C.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(z){var Q=(z.match(/[hms]/)||[""])[0];return Q?(V[Q]=parseInt(z.match(/\d+/)[0],10),!1):!0});
for(C.reverse();C.length&&G.length;){var J=G.shift();J in V||(V[J]=parseInt(C.shift(),10))}if(C.length||V.s>59||V.m>59||V.h>9)return null;var b="";F.forEach(function(z){V[z]&&(b+=""+V[z]+z)});
return b||null};
fol=function(C,F){var G=_.FHm(F,{},C,!0);return new Promise(function(V,J){G.listenOnce("n",function(){J(Error("Cl`"+G.JSC$29736_getErrorDescription()))});
G.listenOnce("l",function(){var b=G.getResponseCode();if(b!==200)J(Error("Dl`"+F+"`"+C.type+"`"+C.size+"`"+b));else try{V(JSON.parse(G.getResponseText()).encryptedBlobId)}catch(z){J(z)}});
G.run()})};
hTd=function(C){return C.substring(C.indexOf(":")+1,C.indexOf(";"))};
c6V=function(C){return new Promise(function(F,G){var V=new FileReader;V.onloadend=function(){try{var J=new Uint8Array(V.result);J.length<8&&G(void 0);var b=J.subarray(0,8);J="";for(var z=0;z<b.length;z++)J+=("0"+b[z].toString(16)).substr(-2);J.startsWith("ffd8ff")?F("image/jpeg"):J.startsWith("47494638")?F("image/gif"):J.startsWith("89504e470d0a1a0a")?F("image/png"):J.startsWith("424d")?F("image/bmp"):F(void 0)}catch(Q){G(Q)}};
V.onerror=G;V.readAsArrayBuffer(C)})};
A68=function(C){return new Promise(function(F,G){var V=new Image;V.crossOrigin="anonymous";V.onload=function(){var J=document.createElement("canvas");J.width=V.naturalWidth;J.height=V.naturalHeight;var b=J.getContext("2d");if(!b)throw Error("El");b.drawImage(V,0,0);b=hTd(C);J.toBlob(function(z){z?F(z):G()},b)};
V.src=C})};
dbd=function(C,F){var G;if(((G=_.Z(C,_.nd))==null?void 0:G.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var V;_.oo((V=F.hostElement)!=null?V:F,"yt-shorts-reset");_.dlV(_.I8().resolve(_.k3),C).then(function(b){eTM(b,F,C)})}else{var J;
_.DQ((J=F.hostElement)!=null?J:F,[C]).then(function(b){b&&eTM(b.data,F,C)})}};
eTM=function(C,F,G){if(C){var V=_.Z(C.replacementEndpoint,_.nd);if(V){C.sequenceContinuation&&(V.sequenceParams=C.sequenceContinuation);var J;_.oo((J=F.hostElement)!=null?J:F,"yt-navigate",{endpoint:C.replacementEndpoint})}else if((C==null?void 0:C.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(C==null?0:C.watchStatus)&&_.Z(C.watchStatus,_.kLl)){var b;_.oo((b=F.hostElement)!=null?b:F,"yt-navigate",{endpoint:G})}}};
xb8=function(C){var F=_.I8().resolve(_.P$),G=_.SV.currentPageTypeSelector(F.getState())||"";F=_.SV.currentPageSubTypeSelector(F.getState())||"";G=G==="ytd-browse"&&F==="home";return _.y("web_guide_entry_enable_cache_for_non_home_pages")?(C=(C==null?void 0:C.navigationEndpoint)&&_.Vk(C.navigationEndpoint)==="home",{disableCache:G&&C}):{disableCache:G}};
qdL=function(C,F,G){if(F!=null&&F.isPrimary){a:{if(G&&G.length){var V=F.formattedTitle;var J={};V&&(J.header={panelHeaderViewModel:{title:_.U9(V)}});V=[];G=_.u(G);for(var b=G.next();!b.done;b=G.next()){b=_.Z(b.value,sEV);var z=void 0,Q=void 0,E=((z=b)==null?0:z.formattedTitle)?_.U9((Q=b)==null?void 0:Q.formattedTitle):void 0;z=void 0;Q=(z=b)==null?void 0:z.isPrimary;if(b&&E&&!Q){E={title:E};b.navigationEndpoint&&(E.rendererContext={commandContext:{onTap:{innertubeCommand:b.navigationEndpoint}}});
z=[];var t=Q=void 0;if(((Q=b)==null?0:(t=Q.thumbnail)==null?0:t.thumbnails)&&b.thumbnail.thumbnails.length>0){Q=_.u(b.thumbnail.thumbnails);for(t=Q.next();!t.done;t=Q.next())z.push({url:t.value.url});E.leadingAccessory={avatarViewModel:{image:{sources:z},avatarImageSize:"AVATAR_SIZE_XS"}}}else if(Q=void 0,(Q=b.icon)==null?0:Q.iconType)z.push({clientResource:{imageName:b.icon.iconType||""}}),E.leadingImage={sources:z};Q=z=void 0;((z=b)==null?0:(Q=z.badges)==null?0:Q.liveBroadcasting)?E.trailingImage=
{sources:[{clientResource:{imageName:"live"}}]}:b.count&&(E.trailingLabel={content:b.count.toString()});V.push({listItemViewModel:E})}}V.length!==0?J.content={listViewModel:{listItems:V}}:J=void 0;if(J){J={showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:J}},contextualSheetPresentationConfig:{position:"SHEET_POSITION_RIGHT"}}};break a}}J=void 0}J&&(F.mouseEnterEndpoint=J,F.mouseLeaveEndpoint={hideSheetCommand:{}});C.push({guideEntryRenderer:F})}};
PVr=function(C){if(!C)return!1;try{if(C.host&&C.host.tagName==="YT-FORMATTED-STRING"&&C.host.id==="contenteditable-textarea"||C.nodeType===Node.ELEMENT_NODE&&C.tagName==="YTD-COMMENT-INPUT")return!0}catch(F){return!1}return PVr(C.parentNode)};
JX=function(C){return C?C.tagName==="A"&&C.href&&C.classList.contains("yt-simple-endpoint"):!1};
gCl=function(C){return C?C.tagName==="IMG"&&C.classList.contains("emoji"):!1};
RTM=function(C,F,G){if(!C)return null;var V=JX(C);if(V&&G)return F=C.pathname.substring(C.pathname.indexOf("/channel/")+9),document.createTextNode("@"+F);if(V&&!G)return document.createTextNode("");if(gCl(C))return G=C.alt,C=C.dataset.emojiId,!C&&F&&(F=_.T3(F,G))&&F.isCustomEmoji&&(C=F.emojiId),C?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+C+">"):document.createTextNode(G);V=C.cloneNode(!1);for(var J=0;J<C.childNodes.length;++J){var b=RTM(C.childNodes[J],F,G);b&&V.appendChild(b)}return V};
$h=function(C){return C?JX(C)?C:$h(C.lastChild):null};
Ydr=function(C){return C?JX(C)?C:Ydr(C.firstChild):null};
Tph=function(C){if(!C)return null;for(var F=C.previousSibling;F;)if(F.nodeType===Node.ELEMENT_NODE&&F.nodeName==="BR")F=F.previousSibling;else if(F.nodeType===Node.TEXT_NODE&&/\s+/.test(F.textContent))F=F.previousSibling;else break;(F=$h(F))?C=F:C=(C=C.parentNode)?$h(C.previousElementSibling):null;return C};
oC_=function(C){if(!C)return null;for(var F=C.nextSibling;F;)if(F.nodeType===Node.ELEMENT_NODE&&F.nodeName==="BR")F=F.nextSibling;else if(F.nodeType===Node.TEXT_NODE&&/\s+/.test(F.textContent))F=F.nextSibling;else break;return(F=Ydr(F))?F:oC_(C.parentNode)};
r6r=function(C){var F=_.rv(),G=F.JSC$11350_getStartNode();if(!PVr(G.parentNode))return null;F=F.JSC$11350_getStartOffset();if(G.nodeType===Node.TEXT_NODE){var V=_.Yf(G,JX);if(V){if(C&&F===0||!C&&F===G.length)return V}else{if(C&&F===G.length)return!G||G.nodeName==="BR"||G.nextElementSibling&&_.KY(G.nextElementSibling,"display")==="block"?null:Ydr(G.nextElementSibling);if(!C&&F===0)return G?$h(G.previousElementSibling):null}}if(G.nodeType===Node.ELEMENT_NODE)if(C){if(0<=F&&F<G.childNodes.length)return Ydr(G.childNodes[F])}else if(0<
F&&F<=G.childNodes.length)return $h(G.childNodes[F-1]);return null};
K4l=function(C,F,G){if(!C)return null;if(C.nodeType===Node.TEXT_NODE)if(G){var V=Tph(C);if(V&&!/^\s+\S/.test(C.wholeText.substr(0,F)))return V}else if((V=oC_(C))&&!/\S\s+/.test(C.wholeText.substr(F,C.wholeText.length)))return V;return C.nodeType===Node.ELEMENT_NODE?G?Tph(C.childNodes[F]):oC_(C.childNodes[F]):K4l(C.parentNode,F,G)};
Db8=function(C){if(C.hasChildNodes())switch(C.tagName){case "DIV":case "A":case "SPAN":var F="";for(C=C.firstChild;C;C=C.nextSibling)F+=Db8(C);return F;default:return""}else switch(C.nodeType){case 3:return C.textContent;default:return""}};
psW=function(C){switch(C){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"}};
mbx=function(C){return C.map(function(F){return{settingsRadioOptionRenderer:{title:_.oQ(F.name),asideText:_.oQ(F.approximateSize),id:psW(F.format)}}})};
j3W=function(C){if(C&&C.length!==0)return C.filter(Cgt()).map(function(F){return{settingsRadioOptionRenderer:{title:F.name,asideText:F.approximateSize,id:psW(F.formatType)}}})};
bq=function(C){if(C)return C.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
F73=function(C,F){C=new Set(C!=null?C:[]);if(C.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(C.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(C.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(C.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(C.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(F)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
GGs=function(C){var F=C.indexOf("(");return F!==-1?C.substring(F+1,C.length-1):C};
_.i2M=function(C,F,G,V,J,b){G||(G=VX_);var z;(z=_.Z(G.commandMetadata,_.GU))!=null&&z.url||(G=Error("Jl`"+JSON.stringify(G)),_.gD(G),G=VX_);G=_.xf.unsafeClone(G);z=_.rD(_.Z(G.commandMetadata,_.GU).url,"search_query",C);_.Da(location.href,"sv")==="1"&&(_.Z(G,_.JR).params="EgOAAgE%3D",z=_.rD(z,"sv","1"));_.Z(G,_.JR)&&(_.Z(G,_.JR).query=C);z=z.replace(/%20/g,"+");_.Z(G.commandMetadata,_.GU).url=z;J=_.y("desktop_enable_entity_suggest")?{entityMid:J}:{};_.I8().resolve(_.WD).resolveCommand(G,{form:{tempData:Object.assign({},
{gs_l:F,oq:V!=null?V:C},J,{isFromShorts:b})}})};
JiV=function(C){switch(C){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
b2l=function(C,F,G,V,J,b){var z=_.xf.clone($5W);z.locale=_.TF("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;z.report={description:J||"<empty>"};J=_.TF("SBOX_SETTINGS",{});F=F.join(",");var Q=Date.now();C={choice_cc:V,choice_id_cc:G,choices_sc:F,gl:J.REQUEST_DOMAIN,hl:J.REQUEST_LANGUAGE,query:C,time:Q};b&&(C.choice_additional_comment_cc=b);_.bx$(z,C)};
nLl=function(C){var F=new Map;F.set("authuser",_.TF("SESSION_INDEX","0"));return _.Us(C,F)};
zqr=function(C){var F;return _.I(function(G){switch(G.nextAddress){case 1:if(!C||!uhM(C))return G.return(null);F=null;switch(_.TF("INNERTUBE_CLIENT_NAME")){case "WEB":return G.jumpTo(2);case "WEB_REMIX":F=C.getPlayer()}G.jumpTo(3);break;case 2:return G.yield(C.getPlayerPromise(),4);case 4:F=G.yieldResult;G.jumpTo(3);break;case 3:return G.return(F)}})};
uhM=function(C){return["ytd-player","ytmusic-player"].includes(String(C.tagName||"").toLowerCase())};
Q3r=function(C){C=Math.round(C);return C%2?C-1:C};
IWr=function(C){C=Math.round(C);return C%2===0?C-1:C};
ELM=function(C){var F,G,V;if(C=(F=C.createPlaylistDialogFormSchema)==null?void 0:(G=F.fieldSchemas)==null?void 0:(V=G.title)==null?void 0:V.validationSchema)for(F=[C.syncStep,C.asyncStep].filter(function(J){return J!==void 0}),F=_.u(F),G=F.next();!G.done;G=F.next()){G=G.value.rules;
if(!G)break;G=_.u(G);for(G=G.next();!G.done;G=G.next())return _.Z(G.value,_.KOV)}};
tXU=function(C){var F,G,V;if(C=(F=C.createPlaylistDialogFormSchema)==null?void 0:(G=F.fieldSchemas)==null?void 0:(V=G.visibility)==null?void 0:V.validationSchema)for(F=[C.syncStep,C.asyncStep].filter(function(J){return J!==void 0}),F=_.u(F),G=F.next();!G.done;G=F.next()){G=G.value.rules;
if(!G)break;G=_.u(G);for(V=G.next();!V.done;V=G.next())if(V=_.Z(V.value,W7U))return F=void 0,(F=V.translations)==null?void 0:F.visibilityNotValidErrorMessage}};
aWW=function(){var C,F;return(F=(C=_.I8().resolve(_.Qt(_.v6)))==null?void 0:C())!=null?F:!1};
kGM=function(C){var F=21;if(!C)return F;F+=C.headerTitle?27:0;F+=C.headerTitle&&C.hasHeaderActionHeader?4:0;return F+=C.headerTitle&&C.headerSubtitle?16:0};
U5V=function(C){var F=0;if(!C)return F;F+=C.hasFooterPrimaryButton||C.hasFooterSecondaryButton?48:0;F+=C.footerTrailingLabel||C.footerLeadingLabel?30:0;return F+=C.hasFooterPrimaryButton||C.hasFooterSecondaryButton||!C.footerTrailingLabel&&!C.footerLeadingLabel?0:12};
H2W=function(C){var F=new _.SP,G=C;return{subscribe:function(V){F.subscribe("changed",V)},
dispatch:function(V,J){var b=G;V==="Touch Start"?G=Object.assign({},b,{isAnimating:!1,initialY:J.event.touches[0].clientY}):V==="Touch Move"?(V=Math.min(J.fullContentWrapperHeight,J.contentHeightMap[J.contentWrapperId]+kGM(J.header)-U5V(J.footer)),G=Object.assign({},b,{currentY:Math.max(J.contentScrollable?-1*(b.initialY-24):0,J.event.touches[0].clientY-b.initialY),maxHeightForContentWrapper:Math.min(V,Math.max(0,(b.isFullScreen?V:J.contentWrapperHeight)-b.currentY))})):G=V==="Snap To Full Screen"?
Object.assign({},b,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:J.maxHeight}):V==="Snap To Neutral Position"?Object.assign({},b,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:J.maxHeight}):V==="Close Sheet"?Object.assign({},b,{isAnimating:!0,currentY:J.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:J.maxHeight}):b;F.publish("changed",G)}}};
lWt=function(C){return _.CZ(function(F){C(F);return!1})};
yit=function(){_.I8().resolve(_.xW).closeSheet()};
Z2r=function(C){var F,G,V,J,b,z,Q,E,t,k,U;return{headerTitle:(F=C.headerTitle)==null?void 0:F.call(C),headerSubtitle:(G=C.headerSubtitle)==null?void 0:G.call(C),headerActionHeader:C.headerActionHeader,footerPrimaryButton:C.footerPrimaryButton,footerSecondaryButton:C.footerSecondaryButton,footerButtonType:(V=C.footerButtonType)==null?void 0:V.call(C),footerLeadingLabel:(J=C.footerLeadingLabel)==null?void 0:J.call(C),footerTrailingLabel:(b=C.footerTrailingLabel)==null?void 0:b.call(C),shouldShowIcons:(z=
C.shouldShowIcons)==null?void 0:z.call(C),skipContentClick:(Q=C.skipContentClick)==null?void 0:Q.call(C),additionalClassName:(E=C.additionalClassName)==null?void 0:E.call(C),onClosedCallback:C.onClosedCallback,focusOnClose:(t=C.focusOnClose)==null?void 0:t.call(C),isDisabled:(k=C.isDisabled)==null?void 0:k.call(C),disabledCommand:(U=C.disabledCommand)==null?void 0:U.call(C),headerFn:C.headerFn,contentFn:C.contentFn,footerFn:C.footerFn,hasHeaderFn:C.hasHeaderFn(),hasContentFn:C.hasContentFn(),hasFooterFn:C.hasFooterFn(),
hasFooterPrimaryButton:C.hasFooterPrimaryButton(),hasFooterSecondaryButton:C.hasFooterSecondaryButton(),hasHeaderActionHeader:C.hasHeaderActionHeader()}};
Nnl=function(C){switch(C){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""}};
O2t=function(C){switch(C){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""}};
Xcx=function(C){switch(C){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""}};
wcL=function(C,F,G){F.forEach(function(V){_.MJ(_.I8().resolve(_.hS),V)});
_.rz(C,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",G])};
Bn_=function(C,F,G,V){var J=_.Z(G,_.Vs).commandLifeCycleConfig;J&&J.onStartCommand&&_.pX(C,[J.onStartCommand],F);_.Xc(F);var b=_.BB.instance;b&&_.vB(b,G)?_.fZ(b,G,V).then(function(z){if(!z||(z==null?0:z.error))return z=_.Z(G,_.Vs).serializedTransactionFlowLoggingParams,_.wJ(F),_.W6(new ns("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",z));_.wJ(F);return{data:z}}).then(function(z){_.wJ(F);
MXd(z.data);var Q=z.data.command;Q&&_.pX(C,[Q],F);Q=SjU(G,z.data);if(!Q){var E=z.data;z=!1;if(E&&E.command&&_.Z(E.command,_.Cl)){var t;E=((t=_.Z(E.command,_.Cl))==null?void 0:t.commands)||[];for(t=0;t<E.length;t++)if(_.Z(E[t],_.R2m)){z=!0;break}}z||_.hh('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!Q&&J&&J.onSuccessCommand?_.pX(C,[J.onSuccessCommand],F):Q&&J&&J.onFailureCommand&&_.pX(C,[J.onFailureCommand],F)},function(){_.wJ(F);
J&&J.onFailureCommand&&_.pX(C,[J.onFailureCommand],F);L7l(G)}):_.gD(Error("Vl"),"ERROR")};
vLd=function(C,F,G){var V=[F];G&&V.push(G);return _.DQ(C,V).then(function(J){var b=_.Z(F,_.Vs).serializedTransactionFlowLoggingParams,z=J.data,Q=SjU(F,z);Q?J=_.W6(new ns(Q,b)):MXd(z);return J},function(){var J=_.Z(F,_.Vs).serializedTransactionFlowLoggingParams;
L7l(F);return _.W6(new ns("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",J))})};
SjU=function(C,F){C=_.Z(C,_.Vs).serializedTransactionFlowLoggingParams;var G=null;switch(F.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":G="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":G="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":G="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}G?_.hR(G,C):p6x(C);return G};
L7l=function(C){_.hR("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.Z(C,_.Vs).serializedTransactionFlowLoggingParams)};
MXd=function(C){if(C.trackingParams){var F=_.ZQ(),G=_.lm();F&&G&&_.vA(F,G,_.zS(C.trackingParams))}};
fWx=function(C,F,G){var V=_.BB.instance,J=_.vgB(_.TF("YPC_MB_URL")),b=(new _.Ljq).init(),z=_.BmT(),Q=_.Z(G,_.s72).languageCode;Q===void 0?_.gD(Error("Ii"),"ERROR"):_.NX([b,J]).then(function(){var E={ctk:_.dJ.payments.business.integration.ClientTokenFactory.createClientToken(Q,z)};V&&_.vB(V,G)?_.fZ(V,G,E).then(function(t){return{data:t}}).then(function(t){_.oo(F,"yt-service-request-completed",t);
t.code!=="ERROR"&&(t=t.data.command)&&_.pX(C,[t],F)}):_.gD(Error("Vl"),"ERROR")})};
AiW=function(C,F,G,V){var J=_.BB.instance;J&&_.vB(J,G)?_.fZ(J,G,V).then(function(b){return{data:b}}).then(function(b){hqM(C,F,G,b)},function(){ciU(G)}):(J=_.I8().resolve(_.Qt(_.zt)))&&J.requestDataForServiceEndpoint(G,V).then(function(b){hqM(C,F,G,b)},function(){ciU(G)})};
hqM=function(C,F,G,V){_.oo(F,"yt-service-request-completed",V);if(V.code&&V.code=="ERROR")ciU(G);else{(V=V.data.commands)&&_.pX(C,V,F);var J;(C=(J=_.Z(G,_.T$7))==null?void 0:J.serializedYpcPauseFlowLoggingParams)&&C&&_.kA("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",C)}};
ciU=function(C){var F;(C=(F=_.Z(C,_.T$7))==null?void 0:F.serializedYpcPauseFlowLoggingParams)&&C&&_.kA("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",C,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
x5W=function(C,F,G){var V=_.BB.instance;V&&_.vB(V,G)?_.fZ(V,G).then(function(J){return{data:J}}).then(function(J){eqr(C,F,G,J)},function(){d5r(G)}):(V=_.I8().resolve(_.Qt(_.zt)))&&V.requestDataForServiceEndpoint(G).then(function(J){eqr(C,F,G,J)},function(){d5r(G)})};
eqr=function(C,F,G,V){_.oo(F,"yt-service-request-completed",V);V.code&&V.code=="ERROR"?d5r(G):((V=V.data.commands)&&_.pX(C,V,F),(C=_.Z(G,_.o9r).serializedYpcResumeFlowLoggingParams)&&C&&_.kA("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",C))};
d5r=function(C){(C=_.Z(C,_.o9r).serializedYpcResumeFlowLoggingParams)&&C&&_.kA("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",C,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
s3t=function(C){C=C===void 0?{}:C;_.I8().resolve(_.U_s).showFeedbackDialog(C.customProductData,C.feedbackContent,C.onFeedbackSubmitted,C.bucket)};
qjM=function(C){C=C===void 0?{}:C;_.I8().resolve(_.U_s).showHelpDialog(C.helpContext,C.articleId,C.productData)};
Pgs=function(){qjM()};
gLV=function(){s3t()};
YjV=function(C,F,G){var V,J,b,z,Q,E,t;return _.I(function(k){switch(k.nextAddress){case 1:V=_.Z(C,Rq_);if((J=V)==null?0:J.productId){E={productId:V.productId,bucket:V.bucket,enableAnonymousFeedback:(Q=V.enableAnonymousFeedback)!=null?Q:!0,allowNonLoggedInFeedback:!0};t={feedbackChoice:G.feedbackChoice};if(!_.y("web_collect_offline_state")){k.jumpTo(8);break}_.yy(k,9);return k.yield($Gr(t),11)}z={bucket:(b=V)==null?void 0:b.bucket};if(!_.y("web_collect_offline_state")){k.jumpTo(4);break}z.customProductData=
{};_.yy(k,5);return k.yield($Gr(z.customProductData),7);case 7:_.Gn(k,4);break;case 5:_.wa(k);case 4:s3t(z);k.jumpTo(0);break;case 11:_.Gn(k,8);break;case 9:_.wa(k);case 8:_.k4i(t),_.a$f("GFEEDBACK",t),V.productId==="5295751"&&(t.client_attestation=Number(_.TF("CATSTAT",0))),V.productId==="5295751"&&(t.client_time=Date.now()/1E3/3600),V.productId==="5295751"&&(t.original_playback_id=_.fTP||""),_.bx$(E,t),_.S9(k)}})};
Tn3=function(C){if(C=_.Z(C,_.y_I)){var F={bucket:C.bucketIdentifier};C.additionalDatas&&(F.customProductData={},C.additionalDatas.forEach(function(G){if(G=G.userFeedbackEndpointProductSpecificValueData)F.customProductData[G.key]=G.value}));
s3t(F)}};
oLL=function(C){var F=_.FV.getInstance();var G=_.iQ("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var V=_.iQ("DELETE",void 0,"Delete"),J=_.iQ("CANCEL",void 0,"Cancel");G=kp3(G,void 0,V,J,{signal:"DELETE_ALL_DOWNLOADS"});_.AB(F,[{openPopupAction:G}],C)};
K73=function(){return _.I(function(C){return C.nextAddress==1?C.yield(_.I8().resolve(_.gy),2):C.yield(rih(),0)})};
D5U=function(C){var F,G;return _.I(function(V){return V.nextAddress==1?(G=(F=_.Z(C,_.DU))==null?void 0:F.targetId)?V.yield(_.I8().resolve(_.gy),3):V.jumpTo(0):V.yield(_.I8().resolve(_.P7).deleteVideo(G),0)})};
m58=function(C){var F,G;return _.I(function(V){return V.nextAddress==1?(G=(F=_.Z(C,_.DU))==null?void 0:F.targetId)?V.yield(_.I8().resolve(_.gy),3):V.jumpTo(0):V.yield(pcW(_.I8().resolve(_.P7),G),0)})};
jFx=function(C){var F,G;return _.I(function(V){return(G=(F=_.Z(C,_.DU))==null?void 0:F.targetId)?V.yield(CGh(G),0):V.jumpTo(0)})};
Gix=function(){_.y("kevlar_woffle_refresh_dl_load_killswitch")||FS_()};
ikV=function(){_.y("kevlar_woffle")&&_.Ld.instance&&VI8()};
$Et=function(C){var F;if((F=_.Z(C,_.VJ))==null||!F.videoId)return!1;J88(_.I8().resolve(_.P7),_.Z(C,_.VJ),C.clickTrackingParams);return!0};
nkW=function(C){var F;if((F=_.Z(C,_.Jm))==null||!F.playlistId)return!1;bkl(_.I8().resolve(_.P7),_.Z(C,_.Jm),C.clickTrackingParams);return!0};
zXM=function(C){var F=_.Z(C,_.Mio);(F==null?void 0:F.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(F==null?void 0:F.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||udV(_.I8().resolve(_.P7),_.Z(C,_.Mio))};
InL=function(C){C=_.Z(C,_.JS2);var F;(C==null?0:(F=C.actions)==null?0:F.length)&&QFr(C)};
tIt=function(C){var F,G;return _.I(function(V){F=_.Z(C,Ekt);return(G=F)!=null&&G.localWatchHistoryCommandType?V.yield(WSL(F),0):V.return()})};
an3=function(C){setTimeout(function(){requestAnimationFrame(C)},80)};
kir=function(C){return Object.entries(C).map(function(F){return F.join(":")}).join(";")};
HkL=function(C){var F,G,V;_.I(function(J){if(J.nextAddress==1)return J.yield(UEr(),2);F=J.yieldResult;G=_.Cy.instance;switch(F){case "granted":V=C.getLocationCommand;break;case "denied":V=C.openDeniedDialogAction;break;case "prompt":V=C.openCollectionDialogAction;break;default:V=C.openCollectionDialogAction}V&&G.resolveCommand(V);_.S9(J)})};
UEr=function(){var C,F;return _.I(function(G){if(G.nextAddress==1)return C="prompt",navigator.permissions?G.yield(navigator.permissions.query({name:"geolocation"}),3):G.jumpTo(2);G.nextAddress!=2&&(F=G.yieldResult,C=F.state);return G.return(C)})};
y8r=function(){_.I(function(C){return C.yield(_.lnt(),0)})};
Zkh=function(){var C,F,G;return _.I(function(V){if(V.nextAddress==1)return C=_.I8().resolve(_.Qk),C?V.yield(_.fZ(C,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.Yw(Error("Yl")),V.return(void 0));if(F=V.yieldResult){if(F.errorMetadata)return _.Yw(Error("Zl`"+F.errorMetadata.status+"`"+F.error)),V.return(void 0);G=F.datasyncIds;_.vO_=G.length;return V.return(G)}_.Yw(Error("$l"));return V.return(void 0)})};
N8V=function(){Zkh().then(function(C){C&&(cvM(C),C5W(C),NQl(C),nJl(C))})};
OkU=function(C){_.gT.addLowPriorityJob(function(){var F,G,V,J,b;return _.I(function(z){switch(z.nextAddress){case 1:if(_.y("ytidb_clear_optimizations_killswitch")){z.jumpTo(2);break}F=_.hy("clear");if(F.startsWith("V")&&F.endsWith("||")){var Q=[F];cvM(Q);C5W(Q);NQl(Q);nJl(Q);return z.return()}G=OyV();V=uXh();return z.yield(jes(),3);case 3:return J=z.yieldResult,z.yield(Av8(),4);case 4:if(b=z.yieldResult,!(G||V||J||b))return z.return();case 2:C.isNetworkAvailable()?N8V():C.listenOnce("publicytnetworkstatus-online",
N8V),_.S9(z)}})})};
uq=function(C){C={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.eN(C)}}}};_.Cy.instance&&_.Cy.instance.resolveCommand(C)};
XNl=function(C){if(C){var F=_.ia();_.NJ(F,3854,void 0,{layer:0,parentLayer:4});switch(C){case 1:var G=238708;break;case 2:G=238715;break;case 3:G=238710;break;case 6:G=238709}G&&(C=_.Vp(F,{veType:G}))&&_.wo(F,C)}};
wN_=function(C){if(C){var F=_.ia();_.NJ(F,3854,void 0,{layer:0,parentLayer:4});switch(C){case 1:var G=238714;break;case 2:G=238711;break;case 8:G=238709;break;case 7:G=238713;break;case 3:case 4:case 5:G=238712}G&&(C=_.Vp(F,{veType:G}))&&_.wo(F,C)}};
MIs=function(C){switch(C.latencyType){case 0:_.Z8("consent_primitive_flow");_.NV("cpit",C.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.NV("cpist",C.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.NV("cprtif",C.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.NV("cprtli",C.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.NV("cprt",C.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.NV("cpdt",C.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.NV("cpjct",C.timestampEpochMillis,"consent_primitive_flow")}};
dE_=function(C,F){var G,V,J,b,z,Q,E,t,k,U,H,l,N,S,f,c,A,T,P,g;return _.I(function(r){switch(r.nextAddress){case 1:_.yy(r,2);(V=(G=_.Z(C,SVr))==null?void 0:G.serializedConsentRequest)||(V=(J=_.Z(C,LSr))==null?void 0:J.serializedConsentRequest);V&&(b=B83(_.p9(V)));if(b===void 0)return r.return();z=vkr(b);z.latencyCallback=MIs;F&&fn8(z,function(){F.then(function(C9){C9.pauseVideo();(new hXr).increment()})});
return((Q=_.Z(C,SVr))==null?void 0:Q.consentAction)==="CONSENT_ACTION_PREWARM"||((E=_.Z(C,LSr))==null?void 0:E.consentAction)==="CONSENT_ACTION_PREWARM"?r.yield(c8d(z),5):r.yield(A8U(z),6);case 6:t=r.yieldResult;k=_.ug(t,z5);if(k===1){if(((U=_.yZ(t,Qa,1,z5))==null?void 0:_.kL(U,1))===1||((H=_.yZ(t,Qa,1,z5))==null?void 0:_.kL(H,1))===2||((l=_.yZ(t,Qa,1,z5))==null?void 0:_.kL(l,1))===3)_.Z(C,LSr)?uq(_.iQ("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
uq(_.iQ("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));XNl((N=_.yZ(t,Qa,1,z5))==null?void 0:_.kL(N,1),_.IM(t,eXV,3,_.ED()))}else k===2?(((S=I0(t))==null?void 0:_.kL(S,1))===5?_.Z(C,LSr)?uq(_.iQ("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):uq(_.iQ("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((f=I0(t))==null?void 0:_.kL(f,1))===1||((c=I0(t))==null?void 0:_.kL(c,1))===4?uq(_.iQ("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((A=I0(t))==null?void 0:_.kL(A,1))===7&&((T=b)==null?void 0:(P=_.aa(T,EK,4))==null?void 0:_.kL(P,4))!==1&&uq(_.iQ("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),wN_((g=I0(t))==null?void 0:_.kL(g,1))):uq(_.iQ("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));r.jumpTo(5);break;case 5:_.Gn(r,0);break;case 2:_.wa(r),uq(_.iQ("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.S9(r)}})};
sFx=function(){if(!xEr.has("Worker")){xEr.set("Worker",!0);var C={api:"BROWSER_API_WEB_WORKER"};C.available="Worker"in window?!0:!1;_.q1("apiTest",C)}};
qVV=function(C){return typeof C==="undefined"?"-1":String(Math.ceil(C/1048576))};
YVd=function(C,F){PGs(new gkx(_.Z(F,RXW).addToken,_.Z(F,RXW).commonToken)).then(function(){_.oo(C,"yt-invoke-instrument-manager-action-completed")},function(G){_.oo(C,"yt-invoke-instrument-manager-action-error",G)})};
WJ=function(){return _.TF("HTML_DIR")==="rtl"};
T8M=function(){var C,F;return(F=(C=window).matchMedia)==null?void 0:F.call(C,"(prefers-reduced-motion: reduce)").matches};
ok_=function(C){var F=_.I8().resolve(_.Qt(_.vq));if(F&&F.isAnyTransitionEnabled){var G={};F.viewTransitionCoordinator.registerElement(C,(G.slide="miniplayer-page-transition",G["lockup-to-watch"]="miniplayer-page-transition",G["learning-journey"]="miniplayer-page-transition",G))}};
r8t=function(C,F,G){return{horizontalAlignment:C.x+G.width/2<F.width/2?"west":"east",verticalAlignment:C.y+G.height/2<F.height/2?"north":"south"}};
DEs=function(C,F,G,V,J){J=J===void 0?new _.ql(0,0):J;C=KSr(C,F,G,V,!1);return new _.ql(C.x+J.x,C.y+J.y)};
KSr=function(C,F,G,V,J){J=(J===void 0?0:J)?400:0;return new _.ql(C==="west"?16+(WJ()?J:0):G.width-V.width-16-(WJ()?0:J),F==="north"?16:G.height-V.height-16)};
pNt=function(C,F){var G=0;C&&(G+=76);F&&(G+=285);return G};
mEr=function(C){return _.wn(C)};
CTr=function(C){var F=1;C=C.split(":");for(var G=[];F>0&&C.length;)G.push(C.shift()),F--;C.length&&G.push(C.join(":"));return G};
j53=function(C){var F=new _.bT;return _.ZW(F,11,C)};
FAr=function(C){var F={};C=C.getAllResponseHeaders().split("\r\n");for(var G=0;G<C.length;G++)if(!_.uZ(C[G])){var V=CTr(C[G]),J=V[0];V=V[1];if(typeof V==="string"){V=V.trim();var b=F[J]||[];F[J]=b;b.push(V)}}return _.xf.map(F,function(z){return z.join(", ")})};
EO=function(C,F){return C.JSC$9795_xhr_?C.JSC$9795_xhr_.getResponseHeader(F):null};
GYr=function(C,F){if(C.isDisposed())throw Error("Ea");C.tE.dk("n");var G=_.vd(C.tE,function(){return C.igH([F.aC,F.j6S,F.b3x,F.k4H])},"n");
C.tE.hNt(G.length);C.tE.r9();return G};
tX=function(C,F,G){Array.isArray(G)||(G=[String(G)]);_.Q1m(C.JSC$10031_queryData_,F,G);return C};
VI8=function(){var C=_.Ld.instance;_.I(function(F){return C.deferredInstallPrompt?F.yield(C.deferredInstallPrompt.prompt(),0):F.jumpTo(0)})};
VLx=function(C,F,G){if(_.gI(C))_.F$(C,F,G);else for(C=_.l8P(C);;){var V=C.next();if(V.done)break;F.call(G,V.value,void 0,C)}};
iCW=function(C,F){var G=[];VLx(F,function(V){try{var J=_.Zc.prototype.getWrapper.call(this,V,!0)}catch(b){if(b=="Storage: Invalid value was encountered")return;throw b;}J===void 0?G.push(V):_.Hll(J)&&G.push(V)},C);
return G};
zts=function(C,F){iCW(C,F).forEach(function(G){_.Zc.prototype.remove.call(this,G)},C)};
JPx=function(C){var F=_.Dw;F._minimumZ=Math.max(F._minimumZ,C)};
$Xr=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];bC3=function(C,F){_.uz(C.vm);C.vm=F};
n8_=function(C,F,G,V){C.setState(5);var J=!!C.xzu&&$Xr.includes(_.bH(C.xzu)||"");try{var b=new _.fC({program:F,globalName:G,c9C:{disable:!_.y("att_web_record_metrics")||!_.y("att_skip_metrics_for_cookieless_domains_ks")&&J,qx:"aGIf"}});b.ye1.then(function(){C.setState(6);V&&V(F)});
bC3(C,b)}catch(z){C.setState(7),z instanceof Error&&_.Yw(z)}};
u3s=function(C,F,G,V,J,b){var z=z===void 0?"trayride":z;G?(C.setState(2),_.LX(_.eo(G),function(){if(window[z])n8_(C,V,z,J);else{C.setState(3);var Q=_.d7Z(G),E=document.getElementById(Q);E&&(_.NQs(Q),E.parentNode.removeChild(E));_.Yw(new _.Ay("BL:ULB",G))}},b)):F?(b=_.Md("SCRIPT"),F instanceof _.FG?_.ii(b,F):b.textContent=F,b.nonce=_.j9(document),document.head.appendChild(b),document.head.removeChild(b),window[z]?n8_(C,V,z,J):(C.setState(4),_.Yw(new _.Ay("BL:ULBJ")))):_.Yw(new _.Ay("BL:ULV"))};
zPU=function(){this.state=1;this.vm=null;this.xzu=void 0};
_.n=zPU.prototype;_.n.initialize=function(C,F,G,V){this.xzu=V;if(C.program){var J;V=(J=C.interpreterUrl)!=null?J:null;if(C.interpreterSafeScript)J=_.Y6i(C.interpreterSafeScript);else{var b;J=(b=C.interpreterScript)!=null?b:null}C.interpreterSafeUrl&&(V=_.Ra(C.interpreterSafeUrl).toString());u3s(this,J,V,C.program,F,G)}else _.Yw(Error("uf"))};
_.n.isInitialized=function(){return!!this.vm};
_.n.getState=function(){return this.state};
_.n.isLoading=function(){return this.state===2};
_.n.invoke=function(C){C=C===void 0?{}:C;var F;this.vm?F=GYr(this.vm,{aC:C}):F=null;return F};
_.n.dispose=function(){bC3(this,null);this.setState(8)};
_.n.setState=function(C){this.state=C};
var Q5W=function(C,F){return C.vm.snapshot(F)},IfU=function(C,F){var G=_.a8("botguard_async_snapshot_timeout_ms",3E3);
F=F===void 0?{}:F;G=G===void 0?3E3:G;return C.vm?new Promise(function(V,J){var b=!1,z=_.gT.addJob(function(){b=!0;J(Error("vf"))},1,G);
C.vm?Q5W(C,{aC:F}).then(function(Q){_.gT.cancelJob(z);b||V(Q)}).catch(function(Q){_.gT.cancelJob(z);
b||J(Q)}):(_.gT.cancelJob(z),V(null))}):Promise.resolve(null)},E8h=["att/log"],VX_;
VX_={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var WAh={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},tLs=function(C,F){return _.$2(C,{mode:"readwrite",enableRetries:!0},function(G){return _.kWA(G,F,"settingEntity")})},aft=function(C,F,G){return _.$2(C,{mode:"readonly",
enableRetries:!0},function(V){return _.aJm(V,F,G)})},kY8=function(C){if(!C.storage)return!1;
a:{if(C.storage){try{var F=C.storage.get("TLPQtimestamp")}catch(G){}C=Number(F);if(!isNaN(C))break a}C=void 0}return C?Date.now()-C<864E5:!1},UXV=function(C){if(C.storage){try{var F=C.storage.get("TLPQindex")}catch(G){}C=Number(F);
if(!isNaN(C))return C}},HC_=function(C,F){C.queueProxy&&F.forEach(function(G){if(G.videoId&&G.trackingParams&&C.queueProxy instanceof _.mo){var V=_.ZQ();
C.queueProxy.attributionData.set(G.videoId,{enqueueingVe:_.zS(G.trackingParams).getAsJson(),enqueueingCsn:V?V:void 0,clientEnqueueingTimeMs:Math.floor((0,_.Et)()).toString()})}})},lf_=function(C){var F=_.pOo(C);
F!=C.currentSnapState_&&(C.currentSnapState_=F,C.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},a0=function(C){this.JSC$13220_networkManager_=C;
this.partCallbacks_=[]};
a0.prototype.getCacheKeyForEndpoint=function(C){return _.nVI(C,!1)};
a0.prototype.onPartsCallback_=function(C){this.partCallbacks_.forEach(function(F){C&&F(C)})};
var kh=function(C,F,G){a0.call(this,C);this.player_=F;this.autoplayData_=G};
_.O(kh,a0);kh.prototype.getCacheKeyForEndpoint=function(C){return _.nVI(C,!!this.autoplayData_)};
kh.prototype.getTempData=function(C,F){F=F.timeBeforeNextVideo;C={itct:C.clickTrackingParams,lact:_.I1(),pbis:F,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(C.autonav=1);return C};
kh.prototype.getXhrParams=function(C){return Object.assign({pbj:"prefetch"},C)};
kh.prototype.getParams=function(C){C={frags:C.fragmentsRequested.join(",")};_.y("kevlar_droppable_prefetchable_requests")&&(C.prefetch=1);return C};
var yP8=function(C){C.playerEvents_.forEach(function(F){C.player.removeEventListener(F.eventName,F.callback)});
C.playerEvents_.length=0},UK=function(C,F,G){this.player=C;
this.JSC$13230_taskManager=F;this.prefetchDelay=G;this.completionResolver_=null;this.playerEvents_=[]};
UK.prototype.start=function(){var C=this;this.completionResolver_=_.hM();_.OW(this.completionResolver_.promise,function(){yP8(C);C.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var ZCr=function(C,F,G){C.player.addEventListener(F,G);C.playerEvents_.push({eventName:F,callback:G})},N1h={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},OCx={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},Xd_=function(C,F,G){UK.call(this,C,F,G);this.cueId_="playbackTrigger-"+Math.random()};
_.O(Xd_,UK);
Xd_.prototype.prepareTrigger=function(C){var F=this,G=this.player.getDuration(),V=this.player.getVideoData(),J=V.isLive&&V.hasProgressBarBoundaries;if(J&&V.progressBarEndPositionUtcTimeMillis){var b=V.progressBarEndPositionUtcTimeMillis/1E3;isNaN(b)||(G=b)}var z=0;this.prefetchDelay>=0?J?V.progressBarStartPositionUtcTimeMillis&&(V=V.progressBarStartPositionUtcTimeMillis/1E3,isNaN(V)||(z=V+this.prefetchDelay)):z=this.prefetchDelay:z=G+this.prefetchDelay;J?this.player.addUtcCueRange(this.cueId_,z,G):
this.player.addCueRange(this.cueId_,z,G);_.OW(C.promise,function(){F.player.removeCueRange(F.cueId_)});
ZCr(this,"onCueRangeEnter",function(Q){Q==F.cueId_&&C.resolve(G-z)})};
var wdr=function(C,F){C.fragmentConfiguration_[F].requiredKeys.every(function(G){return!!C.prefetchedData_[G]})&&(C.validatedFragments_.push(F),F=C.missingFragments_.indexOf(F),F!==-1&&C.missingFragments_.splice(F,1))},MLh=function(C){C.prefetchedFragments_.forEach(function(F){wdr(C,F)})},SWM=function(C,F,G){this.pageFragments_=C;
this.prefetchedFragments_=F;this.fragmentConfiguration_=OCx;this.prefetchedData_=G;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;MLh(this)},LAV=function(){},B1_=function(C){this.JSC$13244_playlistManager_=C};
_.O(B1_,LAV);B1_.prototype.getPrefetchEndpoint=function(){return this.JSC$13244_playlistManager_.getAutoplayEndpoint()};
var v8V=function(C){this.autonavEndpoints_=C};
_.O(v8V,LAV);v8V.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var ffU=function(C,F,G,V,J){this.autonavEndpoints=C;this.foregroundTrigger=F;this.backgroundTrigger=G;this.pageType=V;this.isInPlaylist=J},hP8=function(C,F){if(C.webPrefetchData&&C.webPrefetchData.navigationEndpoints&&C.webPrefetchData.navigationEndpoints.length){C=C.webPrefetchData.navigationEndpoints;
var G=_.Z(C[0],_.eT);if(G.watchEndpointSupportedPrefetchConfig&&G.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var V=G.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;G=V.playbackRelativeSecondsPrefetchCondition;G=typeof G==="number"&&Math.abs(G)<F.videoDuration?G:void 0;V=V.countdownUiRelativeSecondsPrefetchCondition;V=typeof V!=="number"||_.y("prefetch_job_config_cleanup_ks")&&F.inPlaylist?void 0:V;if(typeof V==="number")return new ffU(C,F.makeUpNextTrigger(V),F.makePlaybackTrigger(V),
"watch",F.inPlaylist);if(typeof G==="number")return new ffU(C,F.makePlaybackTrigger(G),null,"watch",F.inPlaylist)}}},cPh=function(C){return C.prefetchJobConfig_.backgroundTrigger?_.pW(_.ca9)()==0?C.prefetchJobConfig_.backgroundTrigger:C.prefetchJobConfig_.foregroundTrigger:C.prefetchJobConfig_.foregroundTrigger},AP_=function(C){_.Hd(document,"visibilitychange",C.onVisibilityChange_,!1,C)},HJ=function(C){a0.call(this,C)};
_.O(HJ,a0);HJ.prototype.getCacheKeyForEndpoint=function(C){return a0.prototype.getCacheKeyForEndpoint.call(this,C)};
HJ.prototype.getTempData=function(){return{}};
HJ.prototype.getXhrParams=function(C){return C};
HJ.prototype.getParams=function(){return{}};
var eP3=function(C,F,G){var V=C.prefetchDelay*1E3;if(Math.abs(V)>F)G.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var J=V,b=F-V;V<0&&(J=F+V,b=Math.abs(V));var z=C.JSC$13230_taskManager.addJob(function(){G.resolve(b/1E3)},10,J);
G.promise.thenCatch(function(){C.JSC$13230_taskManager.cancelJob(z)})}},dXx=function(C,F,G){UK.call(this,C,F,G)};
_.O(dXx,UK);dXx.prototype.prepareTrigger=function(C){var F=this;ZCr(this,"onAutonavCoundownStarted",function(G){eP3(F,G,C)})};
var xXL=function(C){C.pendingPrefetchJob_&&(C.pendingPrefetchJob_.cancel(),C.pendingPrefetchJob_=null)},s5U=function(C,F,G){if(!C.triggeredTargets.has(F)){var V=_.a3m(C,F);
V.action=G;_.W3u(C,F,V)}},qWU=function(C){_.Jx7();
_.raq("cpt")&&_.Yw(Error("lh"));_.VT.requestAnimationFrame(function(){_.VT.setTimeout(function(){_.NV("cpt");var F=_.wh("vpl"),G=_.wh("cpt");F&&G&&_.NV("ol",Math.max(F,G))})});
try{_.NV("fr_s"),C()}catch(F){_.gD(F)}_.VT.requestAnimationFrame(function(){_.NV("bcp")})},PTs=function(C,F){C.serviceEndpointHandlers.push(F)},g8U=function(C,F){F=C.pendingPages_.indexOf(F);
F>-1&&C.pendingPages_.splice(F,1)},RPl=function(C,F){var G=_.f_8.indexOf(F);
G>-1&&_.f_8.splice(G,1);C.targetPage_==F?(C.abort(),_.cN7(C)):g8U(C,F)},YWL=function(C,F,G,V){F={challenge:F};
G&&(F.webResponse=G);return _.j8(C.innertubeTransportService,F,_.qW(E8h),V)},T1V=function(C,F,G){if(!F.challenge)throw Error("qi");
if(F.botguardData&&F.botguardData.program){var V=new zPU;V.initialize(F.botguardData,function(){IfU(V,{atr_challenge:F.challenge}).then(function(J){if(!J)throw Error("ri");return YWL(C,F.challenge,J,G)}).catch(function(J){_.Yw(J);
return YWL(C,F.challenge,void 0,G)})},void 0)}else YWL(C,F.challenge,void 0,G)},o8s=function(C,F,G){var V={};
F.ids&&(V.ids=[].concat(_.da(F.ids)));F.engagementType&&(V.engagementType=F.engagementType);return _.j8(C.innertubeTransportService,V,_.qW(_.vVS),G).then(function(J){if(!J)throw new _.Ay("GetAttestationChallenge returned falsy");T1V(C,J,G)}).thenCatch(function(J){_.gD(J)})},rPM=function(C,F,G){return new _.N1(function(V,J){var b;
return _.I(function(z){if(z.nextAddress==1){var Q=z.yield,E=F.engagementType,t=F.ids,k={};t=_.u(t!=null?t:[]);for(var U=t.next();!U.done;U=t.next())U=U.value,U.encryptedVideoId?k.encryptedVideoId=U.encryptedVideoId:U.externalChannelId?k.externalChannelId=U.externalChannelId:U.commentId?k.commentId=U.commentId:U.externalOwnerId?k.externalOwnerId=U.externalOwnerId:U.artistId?k.artistId=U.artistId:U.playlistId?k.playlistId=U.playlistId:U.externalPostId?k.externalPostId=U.externalPostId:U.shareId&&(k.shareId=
U.shareId);return Q.call(z,a5W(E,k),2)}b=z.yieldResult;if(!b.challenge)return _.Yw(Error("si")),o8s(C,F,G).then(V,J),z.return();Q=b;E={challenge:Q.challenge};E.webResponse=Q.webResponse;E.engagementType=F.engagementType;E.ids=F.ids;_.j8(C.innertubeTransportService,E,_.qW(E8h),G).then(V,J);_.S9(z)})})},SdW=function(C,F){var G,V,J,b;
_.I(function(z){if(z.nextAddress==1){G=_.Z(F,_.ALl);if(!(G&&G.listId&&C.response&&C.response.playingVideoId)||C.listId!==G.listId)return z.return();C.index===void 0&&(C.index=0);return z.yield(_.Cr7(C.JSC$13083_playlistNetworkManager,G.listId,C.index,C.response.playingVideoId),2)}V=z.yieldResult;if(!V)return z.return();J=V.playlistId;b=V.playlistPanelRenderer;C.setPlaylistData(J,b,V.autoplayRenderer);_.S9(z)})},KA3=function(C,F,G){var V=C.getParams(G),J=_.FeZ(F,V),b=C.getTempData(F,G);
b.endpoint=JSON.stringify(F);_.y("enable_unknown_lact_fix_on_html5")&&(_.I8().resolve(_.zb),b.lact=_.I1());var z={headers:{"X-YouTube-STS":_.TF("STS"),"x-youtube-csoc":1}};_.qU(J,b);return new _.N1(function(Q,E){var t=C.getXhrParams(V),k;_.y("kevlar_cache_on_ttl_player")&&(k=_.I8().resolve(_.Q7));k&&_.cGx(k,F)?_.qsU(k,F,b,window.location.href).then(function(U){U?Q(U):E()},E):_.SSE(C.JSC$13220_networkManager_,F,t,C.onPartsCallback_.bind(C),z).then(function(U){U?Q(U):E()},E)})},DX_=function(C,F){C.triggerPromise_=
F.start();
C.triggerPromise_.then(function(G){var V=C.prefetchEndpointProvider_.getPrefetchEndpoint();if(V){var J=N1h[C.prefetchJobConfig_.pageType].prefetchedFragments;C.prefetchRequestPromise_=KA3(C.JSC$13256_networkPrefetchRequest_,V,{fragmentsRequested:J,timeBeforeNextVideo:G});C.prefetchResponseCacheKey_=C.JSC$13256_networkPrefetchRequest_.getCacheKeyForEndpoint(V);AP_(C);C.prefetchRequestPromise_.then(function(b){C.storePrefetchedDataCallback_(C.prefetchResponseCacheKey_,b);if(_.y("web_prefetch_preload_video")&&
J.length===1&&J[0]==="pl"&&b&&!b.playerAds&&!b.adPlacements){var z=_.Z(V,_.nd),Q=z!=null,E={raw_player_response:b,watch_endpoint:z};(b=_.I8().resolve(Q?_.Apr:_.rE))&&V&&b.then(function(t){Q&&_.y("web_queue_preload_video")?(E.prefer_gapless=!0,t.queueNextVideo(E)):t.preloadVideoByPlayerVars(E)})}})}})},lq=function(C,F,G,V){this.prefetchEndpointProvider_=C;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=F;this.prefetchJobConfig_=G;this.JSC$13256_networkPrefetchRequest_=V;this.prefetchResponseCacheKey_=null};
lq.prototype.enqueue=function(){this.triggerPromise_||(DX_(this,cPh(this)),_.IP(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
lq.prototype.resolve=function(){this.cancel()};
lq.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.");AP_(this)};
lq.prototype.onVisibilityChange_=function(){var C=this;_.pW(_.ca9)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){C.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||DX_(this,cPh(this))};
var pdr=function(C,F,G,V,J){F&&(F==null?0:F.videoId)&&G&&G.entries&&_.y("kevlar_enable_shorts_prefetch_in_sequence")&&(xXL(C),F=G.entries.map(function(b){var z;return(z=_.Z(b.command,_.nd))==null?void 0:z.videoId}).indexOf(F.videoId),G=G.entries[F+1],G!=null&&G.command&&!_.Z(G==null?void 0:G.command,_.od)&&(V=new ffU([G.command],new Xd_(V,_.gT,1),null,"shorts",!1),C.pendingPrefetchJob_=new lq(new v8V(V.autonavEndpoints),function(){return!1},V,new HJ(J)),C.pendingPrefetchJob_.enqueue()))},mXh=function(C,
F,G,V,J,b){var z=_.Ef.getInstance();
if(!_.y("block_all_player_prefetch_requests")){xXL(C);var Q=!!G.getPlaylistId(),E=G.getVideoData().isLive&&G.getVideoData().hasProgressBarBoundaries;if((z.getState()==2||Q||E)&&(!G.getVideoData().isLive||E)){z={inPlaylist:Q,videoDuration:G.getDuration(),makeUpNextTrigger:function(k){return new dXx(G,_.gT,k)},
makePlaybackTrigger:function(k){return new Xd_(G,_.gT,k)}};
var t=hP8(F,z);t&&(C.pendingPrefetchJob_=new lq(t.isInPlaylist?new B1_(J):new v8V(t.autonavEndpoints),function(k,U){U=new SWM(N1h[t.pageType].pageFragments,N1h[t.pageType].prefetchedFragments,U);return _.J7o(U)?(C.prefetchCache_.set(k,U),!0):!1},t,new kh(V,G,b,J)),C.pendingPrefetchJob_.enqueue())}}},Cxx=function(){var C=_.$s();
C.signals.parkOrScheduleJob(function(){var F=C.storage;if(F.storage)if(kY8(F)){var G=F.getPlaylistId();F=UXV(F);G=!!G&&F!==void 0}else F.clear(),G=!1;else G=!1;if(G){G=C.JSC$13083_pageManager.isOnWatch();a:{var V=C.storage;if(V.storage&&kY8(V)&&(F=V.getPlaylistId(),V=UXV(V),F&&V!==void 0)){G={recoverPlaylistCommand:{listId:F,index:V,openMiniplayer:!G,openListPanel:G,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}G=void 0}G&&_.AB(C.JSC$13083_actionRouter,[G],null)}},0,"ma")},jqV=function(C,F,G,
V,J,b){var z=_.m2(7111);
_.Of(C.JSC$18563_screenManager,z,b?_.zS(b):void 0);_.wo(C.JSC$18563_screenManager,z,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:V,offlineId:F,offlineabilityFormatType:G,isDefaultFormatType:J==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:J}})},Fls=function(C,F,G,V,J){var b,z,Q,E,t;
return _.I(function(k){if(k.nextAddress==1)return k.yield(C.JSC$18563_playerApiPromise,2);b=k.yieldResult;jqV(C,F,G,"OFFLINE_OBJECT_TYPE_PLAYLIST",V,J);if(Q=_.Nb7[C.entityTypeMap.listEntityType])t={},z=(t[Q]={maximumDownloadQuality:(E=G)!=null?E:void 0},t);return k.yield(b.queueOfflineAction(F,C.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",z),0)})},Ge_=function(C,F){var G,V,J,b;
return _.I(function(z){if(z.nextAddress==1)return z.yield(C.JSC$18563_persistentStorePromiseAccessor(),2);if(z.nextAddress!=3){G=z.yieldResult;if(!G)return _.Yw(new _.Ay("PES is undefined")),z.return();V=_.C7(F,"downloadStatusEntity");return z.yield(aft(G,V,"downloadStatusEntity"),3)}J=z.yieldResult;return z.return((b=J)==null?void 0:b.downloadState)})},VB8=function(C,F,G,V,J){var b,z,Q,E,t,k;
return _.I(function(U){switch(U.nextAddress){case 1:return U.yield(C.JSC$18563_playerApiPromise,2);case 2:b=U.yieldResult;jqV(C,F,G,"OFFLINE_OBJECT_TYPE_VIDEO",V,J);if(Q=_.Nb7[C.entityTypeMap.singleEntityType])t={},z=(t[Q]={maximumDownloadQuality:(E=G)!=null?E:void 0},t);return U.yield(Ge_(C,F),3);case 3:k=U.yieldResult;if(k!=="DOWNLOAD_STATE_USER_DELETED"){U.jumpTo(4);break}return U.yield(C.deleteVideo(F),4);case 4:return U.yield(b.queueOfflineAction(F,C.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
z),0)}})},i4U=function(C,F,G,V,J){return _.I(function(b){return b.nextAddress==1?b.yield(C.deleteVideo(F,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):b.yield(VB8(C,F,G,V,J),0)})},Jch=function(C,F,G){var V,J;
return _.I(function(b){if(b.nextAddress==1)return b.yield(C.JSC$18563_playerApiPromise,2);V=b.yieldResult;J=_.C7(F,"mainVideoDownloadStateEntity");return b.yield(V.updateDownloadState(J,G),0)})},CGh=function(C){var F=_.I8().resolve(_.P7);
return _.I(function(G){if(G.nextAddress==1)return F.previousDownloadStateForVideo[C]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&F.previousDownloadStateForVideo[C]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?G.jumpTo(2):G.yield(F.resumeVideoDownload(C),2);if(G.nextAddress!=4)return G.yield(Jch(F,C,F.previousDownloadStateForVideo[C]),4);delete F.previousDownloadStateForVideo[C];_.S9(G)})},pcW=function(C,F){var G;
return _.I(function(V){if(V.nextAddress==1)return V.yield(C.JSC$18563_playerApiPromise,2);G=V.yieldResult;return V.yield(G.queueOfflineAction(F,C.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},rih=function(){var C=_.I8().resolve(_.P7),F,G;
return _.I(function(V){if(V.nextAddress==1)return V.yield(C.JSC$18563_playerApiPromise,2);if(V.nextAddress!=3)return F=V.yieldResult,G={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},V.yield(F.queueOfflineAction("!*$_ALL_ENTITIES_!*$",C.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",G),3);var J=C.JSC$18563_commandHandler,b=J.resolveCommand,z=_.iQ("DELETING_ALL",void 0,"Downloads are being deleted");b.call(J,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.YB(z)}},
popupType:"TOAST"}});_.S9(V)})},$Y8=function(C,F){var G,V,J,b,z,Q;
return _.I(function(E){if(E.nextAddress==1)return E.yield(C.JSC$18563_persistentStorePromiseAccessor(),2);if(E.nextAddress!=3)return G=E.yieldResult,G?E.yield(aft(G,_.t4,"downloadsPageViewConfigurationEntity"),3):(_.Yw(new _.Ay("PES is undefined")),E.return());J=(V=E.yieldResult)!=null?V:{};Q=(z=(b=J)==null?void 0:b.downloadsUpsellBannerVisibility)!=null?z:{};return Q.visibleWithConnection?E.yield(F.refreshAllStaleEntities(0),0):E.jumpTo(0)})},b4t=function(C){var F,G;
return _.I(function(V){if(V.nextAddress==1)return V.yield(C.JSC$18563_prefStorage,2);F=V.yieldResult;return V.return((G=F)==null?void 0:G.get("sdois"))})},n0s=function(C){var F,G,V,J,b,z;
return _.I(function(Q){if(Q.nextAddress==1)return Q.yield(C.JSC$18563_persistentStorePromiseAccessor(),2);if(Q.nextAddress!=3){F=Q.yieldResult;if(!F)return _.Yw(new _.Ay("PES is undefined")),Q.return();G=_.C7("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return Q.yield(aft(F,G,"settingEntity"),3)}V=Q.yieldResult;return Q.return((z=(J=V)==null?void 0:(b=J.settingOptionValue)==null?void 0:b.boolValue)!=null?z:!1)})},u4h=function(C,F){var G,V,J,b;
return _.I(function(z){switch(z.nextAddress){case 1:return((G=F)==null?void 0:G.formatType)===void 0?z.return():z.yield(C.JSC$18563_prefStorage,2);case 2:V=z.yieldResult;if(V===void 0)return z.return();if(((J=F)==null?void 0:J.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return z.yield(V.set("lmqf",F.formatType),8);if(((b=F)==null?void 0:b.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){z.jumpTo(0);break}return z.yield(V.set("lmqf",F.formatType),6);case 6:return z.yield(V.set("lmqflst",
Math.floor((0,_.Et)())),0);case 8:return z.yield(V.remove("lmqflst"),0)}})},zmW=function(C){var F,G;
return _.I(function(V){switch(V.nextAddress){case 1:return V.yield(C.JSC$18563_prefStorage,2);case 2:F=V.yieldResult;if(!F){V.jumpTo(3);break}return V.yield(F.get("lmqflst"),4);case 4:if(G=V.yieldResult,G!==void 0)return V.return(G);case 3:return V.return(0)}})},Qqx=function(C){var F,G;
return _.I(function(V){switch(V.nextAddress){case 1:return V.yield(C.JSC$18563_prefStorage,2);case 2:F=V.yieldResult;if(F===void 0){V.jumpTo(3);break}return V.yield(F.get("lmqf"),4);case 4:if(G=V.yieldResult,G!==void 0)return V.return(G);case 3:return V.return("SD")}})},bkl=function(C,F,G){var V,J,b,z,Q,E,t,k;
_.I(function(U){switch(U.nextAddress){case 1:return U.yield(u4h(C,(V=F)==null?void 0:V.actionParams),2);case 2:J=F.playlistId;if(!J)return U.return();if(F.action==="ACTION_ADD")return((z=F.actionParams)==null?0:z.formatType)?U.yield(Fls(C,J,F.actionParams.formatType,(k=F.actionParams)==null?void 0:k.settingsAction,G),0):U.yield(C.offlineWebClientEligibility,14);if(F.action==="ACTION_REMOVE_WITH_PROMPT"){var H=C.JSC$18563_commandHandler,l=H.resolveCommand,N=_.TF("INNERTUBE_CLIENT_NAME");var S=N===
"WEB_REMIX"?_.iQ("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.iQ("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var f=N==="WEB_REMIX"?[_.iQ("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];N=N==="WEB_REMIX"?_.iQ("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.iQ("DELETE",void 0,"Delete");var c=_.iQ("CANCEL",void 0,"Cancel");S=kp3(S,f,N,c,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:J});l.call(H,{openPopupAction:S});return U.return()}if(F.action===
"ACTION_REMOVE")return U.yield(pcW(C,J),0);if(F.action!=="ACTION_SYNC"){U.jumpTo(0);break}return U.yield(C.JSC$18563_playerApiPromise,9);case 9:return b=U.yieldResult,U.yield(b.queueOfflineAction(J,C.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return Q=U.yieldResult,U.yield(Qqx(C),15);case 15:return E=U.yieldResult,U.yield(zmW(C),16);case 16:t=U.yieldResult,F.onAddCommand&&C.JSC$18563_commandHandler.resolveCommand(F.onAddCommand,{form:{preferredFormatType:E,
offlineWebClientEligibility:Q,lastOfflineQualitySettingsSavedMs:t.toString()}}),U.jumpTo(0)}})},J88=function(C,F,G){var V,J,b,z,Q,E,t,k,U,H,l,N,S,f;
_.I(function(c){switch(c.nextAddress){case 1:return c.yield(u4h(C,(V=F)==null?void 0:V.actionParams),2);case 2:J=F.videoId;if(!J)return c.return();if(F.action==="ACTION_REMOVE_WITH_PROMPT"){var A=C.JSC$18563_commandHandler,T=A.resolveCommand,P=_.TF("INNERTUBE_CLIENT_NAME");var g=P==="WEB_REMIX"?_.iQ("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.iQ("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var r=P==="WEB_REMIX"?[_.iQ("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,"This track won't be available to listen offline.")]:
[];P=P==="WEB_REMIX"?_.iQ("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.iQ("DELETE",void 0,"Delete");var C9=_.iQ("CANCEL",void 0,"Cancel");g=kp3(g,r,P,C9,{signal:"DELETE_DOWNLOAD",targetId:J});T.call(A,{openPopupAction:g});return c.return()}if(F.action==="ACTION_ADD")return((H=F.actionParams)==null?0:H.formatType)?c.yield(VB8(C,J,F.actionParams.formatType,(f=F.actionParams)==null?void 0:f.settingsAction,G),0):c.yield(C.offlineWebClientEligibility,23);if(F.action==="ACTION_RETRY")return c.yield(Qqx(C),
19);if(F.action==="ACTION_PAUSE")return c.yield(C.pauseVideoDownload(J),0);if(F.action==="ACTION_RESUME")return c.yield(C.resumeVideoDownload(J),0);if(F.action!=="ACTION_REMOVE"){c.jumpTo(0);break}return c.yield(Ge_(C,J),13);case 13:return b=c.yieldResult,C.previousDownloadStateForVideo[J]=(z=b)!=null?z:"DOWNLOAD_STATE_UNKNOWN",c.yield(Jch(C,J,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(C.previousDownloadStateForVideo[J]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&C.previousDownloadStateForVideo[J]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){c.jumpTo(15);break}return c.yield(C.pauseVideoDownload(J),15);case 15:A=_.iQ("DELETED_VIDEO",void 0,"Video deleted from downloads.");T=_.iQ("UNDO_ACTION",void 0,"Undo");g=_.iQ("CLOSE",void 0,"Close");Q={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.YB(A),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.YB(T),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:J}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:A+" "+T}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:J}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:g}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};C.JSC$18563_commandHandler.resolveCommand(Q);
c.jumpTo(0);break;case 19:E=c.yieldResult;E==="UNKNOWN_FORMAT_TYPE"&&(E="SD");t="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((k=F.actionParams)==null?0:k.formatType)E=F.actionParams.formatType,t=(U=F.actionParams)==null?void 0:U.settingsAction;return c.yield(i4U(C,J,E,t,G),20);case 20:return c.return();case 23:return l=c.yieldResult,c.yield(Qqx(C),24);case 24:return N=c.yieldResult,c.yield(zmW(C),25);case 25:S=c.yieldResult,F.onAddCommand&&C.JSC$18563_commandHandler.resolveCommand(F.onAddCommand,
{form:{preferredFormatType:N,offlineWebClientEligibility:l,lastOfflineQualitySettingsSavedMs:S.toString()}}),c.jumpTo(0)}})},Id_=function(C,F){var G,V,J,b,z,Q,E;
return _.I(function(t){if(t.nextAddress==1)return t.yield(C.JSC$18563_persistentStorePromiseAccessor(),2);G=t.yieldResult;if(!G)return _.Yw(new _.Ay("PES is undefined")),t.return();if((V=F)==null||!V.settingItemId)return t.return();J=F;b=J.settingItemId;z=J.boolValue;Q=_.C7(b,"settingEntity");E={key:Q,settingOptionValue:{boolValue:z}};return t.yield(tLs(G,E),0)})},E0M=function(C,F){var G,V,J,b,z,Q,E;
return _.I(function(t){switch(t.nextAddress){case 1:return t.yield(C.JSC$18563_prefStorage,2);case 2:return G=t.yieldResult,V=_.bQ(),t.yield(C.JSC$18563_persistentStorePromiseAccessor(),3);case 3:return J=t.yieldResult,G?J?t.yield(G.get("sdois"),4):(_.Yw(new _.Ay("PES is undefined")),t.return()):(_.Yw(new _.Ay("prefStorage is undefined")),t.return());case 4:b=t.yieldResult;Q=(z=F)==null?void 0:z.boolValue;Q===void 0||_.y("kevlar_set_sd_enabled_flag_killswitch")||_.nl(0,197,!0);b===void 0&&Q===void 0&&
(Q=!1);if(Q===void 0){t.jumpTo(0);break}return t.yield(G.set("sdois",Q),6);case 6:return _.y("kevlar_set_sd_enabled_flag_killswitch")||(_.nl(0,196,Q),V.save()),E={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:Q},t.yield(Id_(C,E),0)}})},Wlt=function(C,F,G){var V,J,b,z,Q;
return _.I(function(E){switch(E.nextAddress){case 1:return E.yield(b4t(C),2);case 2:return V=E.yieldResult,E.yield(E0M(C,G),3);case 3:return E.yield(b4t(C),4);case 4:return J=E.yieldResult,b=J!==V,E.yield(n0s(C),5);case 5:z=E.yieldResult&&!_.y("kevlar_modern_downloads_page");if((Q=!J&&!z)||b)return E.yield(F.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);E.jumpTo(0)}})},FS_=function(){var C=_.I8().resolve(_.P7),
F;
_.I(function(G){switch(G.nextAddress){case 1:return G.yield(C.JSC$18563_playerApiPromise,2);case 2:F=G.yieldResult;if(!_.y("kevlar_force_refresh_smart_downloads")){G.jumpTo(3);break}return G.yield(F.refreshAllStaleEntities(0),4);case 4:return G.return();case 3:return G.yield(F.refreshAllStaleEntities(),5);case 5:return G.yield(Wlt(C,F),6);case 6:if(_.y("enable_download_pep_for_premium_countries_web"))return G.yield($Y8(C,F),0);G.jumpTo(0)}})},udV=function(C,F){var G,V;
_.I(function(J){switch(J.nextAddress){case 1:return J.yield(C.JSC$18563_playerApiPromise,2);case 2:G=J.yieldResult;switch((V=F)==null?void 0:V.settingItemId){case "SMART_DOWNLOADS_ENABLED":return J.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return J.jumpTo(4)}J.jumpTo(0);break;case 3:return J.yield(Wlt(C,G,F),6);case 6:J.jumpTo(0);break;case 4:return J.yield(Id_(C,F),7);case 7:J.jumpTo(0)}})},tBW=function(C,F){var G,V,J;
return _.I(function(b){if(b.nextAddress==1)return b.yield(C.JSC$18563_persistentStorePromiseAccessor(),2);if(b.nextAddress!=3){G=b.yieldResult;if(!G)return _.Yw(new _.Ay("PES is undefined")),b.return(!1);if(!F)return b.return(!1);V=_.C7(F,"mainVideoEntity");return b.yield(aft(G,V,"mainVideoEntity"),3)}J=b.yieldResult;return b.return(J!==void 0)})},QFr=function(C){var F=_.I8().resolve(_.P7),G,V,J,b,z,Q,E,t,k,U,H;
_.I(function(l){switch(l.nextAddress){case 1:return l.yield(F.JSC$18563_playerApiPromise,2);case 2:G=l.yieldResult;J=(V=C)==null?void 0:V.actions;if(!J)return l.return();b=_.u(J);z=b.next();case 3:if(z.done){l.jumpTo(0);break}Q=z.value;t=E=void 0;if(!(((E=Q)==null?0:E.entityKey)&&((t=Q)==null?0:t.actionType))){l.jumpTo(4);break}k=_.D8(Q.entityKey);U=k.entityId;H=k.entityType;return l.yield(G.queueOfflineAction(U,H,Q.actionType),4);case 4:z=b.next(),l.jumpTo(3)}})},adr=function(C,F){var G,V,J,b,z;
return _.I(function(Q){if(Q.nextAddress==1)return Q.yield(C.JSC$18563_prefStorage,2);if(Q.nextAddress!=3)return(G=Q.yieldResult)?Q.yield(G.get("psi"),3):Q.return();V=Q.yieldResult;z={isPaused:F,lastSyncTimestamp:(b=(J=V)==null?void 0:J.lastSyncTimestamp)!=null?b:"0"};return Q.yield(G.set("psi",z),0)})},WSL=function(C){var F=_.I8().resolve(_.P7),G,V,J,b,z,Q,E,t;
return _.I(function(k){switch(k.nextAddress){case 1:return k.yield(F.JSC$18563_playerApiPromise,2);case 2:G=k.yieldResult;J=((V=C)==null?void 0:V.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((Q=C)==null?void 0:Q.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":b="!*$_ALL_ENTITIES_!*$";z="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return k.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return k.jumpTo(4)}k.jumpTo(5);break;case 3:return k.yield(adr(F,J),6);case 6:k.jumpTo(5);break;case 4:return k.yield(tBW(F,(E=C)==null?void 0:E.videoId),7);case 7:k.yieldResult&&(b=(t=C)==null?void 0:t.videoId,z="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");k.jumpTo(5);break;case 5:if(b&&z)return k.yield(G.queueOfflineAction(b,"videoPlaybackPositionEntity",z),0);k.jumpTo(0)}})},kes=function(C,F){var G;
F!==1||((G=C.currentPersistentToast)==null?0:G.isOpened())?C.openToast():C.currentPersistentToast=void 0},UYM=function(C,F){var G;
return(G=C.transitionTasksMap.get(F))!=null?G:[]},H4t=function(C,F){var G=[];
C.elementTasksMap.forEach(function(V){(V=V.get(F))&&G.push(V)});
return G},ldh=function(C,F,G,V,J){J=J===void 0?{}:J;
var b=F.defaultViewTransitionOptions;return Object.assign({},b,J,{beforeTransition:function(){V.forEach(function(t){t.beforeTransition()});
var z;(z=b.beforeTransition)==null||z.call(b);var Q,E;(E=(Q=J).beforeTransition)==null||E.call(Q);G.forEach(function(t){t.beforeTransition()})},
afterTransition:function(){V.forEach(function(t){t.afterTransition()});
var z;(z=b.afterTransition)==null||z.call(b);var Q,E;(E=(Q=J).afterTransition)==null||E.call(Q);G.forEach(function(t){t.afterTransition()})},
ignoredErrors:C.config.ignoredErrors})},yc_=function(C,F,G){C.transitionTasksMap.has(F)?C.transitionTasksMap.get(F).push(G):(C=new _.Ay("Transition task registered for unknown transition type",F),_.gD(C))},Z4s=function(C,F,G){if(C.transitionTasksMap.has(F)){var V=C.transitionTasksMap.get(F).filter(function(J){return J!==G});
C.transitionTasksMap.set(F,V)}},Ncx=function(C,F){var G=UYM(C,F);
G=_.u(G);for(var V=G.next();!V.done;V=G.next())V=V.value,V.runOnce&&Z4s(C,F,V);C.elementTasksMap.forEach(function(J,b){J.forEach(function(z,Q){z.runOnce&&F===Q&&(J.delete(Q),J.size===0&&C.elementTasksMap.delete(b))})})},O4L=function(C,F,G){var V,J,b,z,Q,E,t,k,U;
_.I(function(H){if(H.nextAddress==1){if(C.config.disableAllTransitions)return H.return(F());if((V=G)==null||!V.transitionType)return H.return(_.idt(F,Object.assign({},(J=G)==null?void 0:J.viewTransitionOptions,{ignoredErrors:C.config.ignoredErrors})));b=G;z=b.transitionType;Q=b.viewTransitionOptions;E=C.config.transitionConfigs.get(z);if(!E)return H.return(F());t=UYM(C,z);k=H4t(C,z);U=_.idt(F,ldh(C,E,t,k,Q));return H.yield(U,2)}Ncx(C,z);_.S9(H)})},Xe8=function(){var C,F,G,V;
return _.I(function(J){if(J.nextAddress==1)return C=navigator,(F=C.storage)!=null&&F.persisted?J.yield((G=C.storage)==null?void 0:G.persisted(),2):J.return("PERSISTED_STATE_NOT_SUPPORTED");V=J.yieldResult;return J.return(V?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},weU=function(){var C,F,G,V;
return _.I(function(J){if(J.nextAddress==1)return C=navigator,(F=C.storage)!=null&&F.persist?J.yield((G=C.storage)==null?void 0:G.persist(),2):J.return("PERSISTED_STATE_NOT_SUPPORTED");V=J.yieldResult;return J.return(V?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},MBr=function(){var C,F;
return _.I(function(G){switch(G.nextAddress){case 1:return C="PERSISTED_STATE_NOT_SUPPORTED",_.yy(G,2),G.yield(Xe8(),4);case 4:C=G.yieldResult;if(C!=="PERSISTED_STATE_NOT_GRANTED"){G.jumpTo(5);break}return G.yield(weU(),6);case 6:C=G.yieldResult;case 5:_.Gn(G,3);break;case 2:F=_.wa(G),F instanceof Error&&_.gD(F);case 3:return _.q1("persistentStorageStateChecked",{persistedState:C}),G.return(C)}})},SvV=function(C,F){var G=[],V=!1;
F=_.u(F);for(var J=F.next();!J.done;J=F.next()){J=C.moduleRegistry[J.value];var b=void 0,z=void 0;((b=J)==null?0:b.isFetching)&&((z=J)==null?0:z.resolver)?(G.push(J.resolver.promise),V=!0):(J=new _.Cd,J.resolve(void 0),G.push(J.promise))}return V?Promise.all(G):void 0},Ll_=function(C,F,G){if(C.isAnyTransitionEnabled){var V={beforeTransition:function(){G(!0);
F.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){F.style.viewTransitionName&&(F.style.viewTransitionName="",G(!1))}};
yc_(C.viewTransitionCoordinator,"slide",V);yc_(C.viewTransitionCoordinator,"lockup-to-watch",V);yc_(C.viewTransitionCoordinator,"watch-next-appears",V);yc_(C.viewTransitionCoordinator,"learning-journey",V)}},Bcr=function(C,F){C.isBrowseTransitionEnabled?O4L(C.viewTransitionCoordinator,F,{transitionType:"slide"}):(F(),Promise.resolve())},v0r=function(C,F){C.isLockupToWatchTransitionEnabled?O4L(C.viewTransitionCoordinator,F,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){C.registeredLockupThumbnail=void 0;C.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(F(),Promise.resolve())},fdh=function(C,F){C.isLockupToWatchTransitionEnabled?O4L(C.viewTransitionCoordinator,F,{transitionType:"watch-next-appears"}):(F(),Promise.resolve())},hmd=function(C,F){C.isLearningJourneyTransitionEnabled?O4L(C.viewTransitionCoordinator,F,{transitionType:"learning-journey"}):(F(),Promise.resolve())},ccV=function(C,F,G){if(C.isInitialized()){var V=
FK(G),J=V==="watch";
V=V==="shorts";var b=FK(F)==="watch";if(J)b||(C.backgroundPageData=F),C.watchPipMode&&b||C.deactivate(G.endpoint);else if(V){if(FK(F)!=="shorts"){var z;(z=C.getPlayerElement())==null||z.pause()}}else b&&!C.watchPipMode&&(Urr(F,G,!0)?(C.watchWhileMode&&_.gxt(C,!1),_.e8r(C,F)):C.isMiniplayerActive()&&C.watchWhileMode&&C.deactivate());b&&_.YtW(C);C.shortsPipMode&&!V&&(window.focus(),C.deactivate());if(C.pictureInPictureEnabled())if(V&&C.shortsPipEnabled||J&&C.watchPipEnabled)_.k2B(C.handleMediaSessionPipActivation);
else if(!C.isMiniplayerActive()&&(C.shortsPipEnabled||C.watchPipEnabled)&&window.documentPictureInPicture&&_.Mf()&&_.ysZ("Chromium")>=120){C=_.aXw().mediaSession;try{C.setActionHandler("enterpictureinpicture",null)}catch(Q){}}}},AcV=function(C,F){var G,V;
_.I(function(J){if(J.nextAddress==1){if(!C||!C.navigationEndpoint)return J.return();_.v0().lockupActivation=!0;var b;F?b=_.eN(_.iQ("QUEUE",void 0,"Queue")):b=C.longBylineText;V=(G=b)&&C.title?{miniplayerTitle:C.title,miniplayerSubtitle:G,playlistData:null}:void 0;return J.yield(_.OgS(_.I8().resolve(_.Od),C.navigationEndpoint,!0,V),2)}_.v0().userActivation=!0;_.S9(J)})},Xs3=function(C,F){var G,V,J,b,z,Q;
_.I(function(E){if(E.nextAddress==1){G=_.Z(F,_.cLo);if(!G||!G.listId)return E.return();C.index=G.index||C.index||0;V=C.response&&C.response.playingVideoId||void 0;return E.yield(_.Cr7(C.JSC$13083_playlistNetworkManager,G.listId,C.index,V),2)}J=E.yieldResult;if(!J)return E.return();b=J.playlistId;z=J.playlistPanelRenderer;!C.queueProxy&&b&&z&&b.startsWith("TLPQ")&&(C.queueProxy=new _.mo(C.JSC$13083_playlistNetworkManager,b,C.setPlaylistData.bind(C),C.clearQueue.bind(C),_.mj9(z),C.storage));if(G.openMiniplayer&&
(Q=_.Cp5(z))&&!C.JSC$13083_pageManager.isOnWatch()){var t=Q,k=G.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";C.isMiniplayerActive()?C.openToast(t):AcV(t,k)}C.setPlaylistData(b,z,J.autoplayRenderer);_.S9(E)})},ZVl=function(C,F){var G=_.$s();
G.index===void 0&&(G.index=0);G.temporaryItems.push.apply(G.temporaryItems,_.da(C));if((F.videoId||F.videoIds)&&G.index!==void 0&&F.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!G.queueProxy){var V=[];if(G.response){var J=_.I8().resolve(_.Od).isMiniplayerActive();if(G.response.playlistPanelRenderer&&G.response.playlistId&&!G.response.playlistId.startsWith("TLPQ")){if(G.JSC$13083_pageManager.isOnWatch()||J)V=_.mj9(G.response.playlistPanelRenderer)}else G.response.playingVideoId&&!F.openMiniplayer?
V.push(G.response.playingVideoId):J&&G.response.playingVideoId&&F.openMiniplayer&&V.push(G.response.playingVideoId)}G.queueProxy=new _.mo(G.JSC$13083_playlistNetworkManager,"",G.setPlaylistData.bind(G),G.clearQueue.bind(G),V,G.storage);G.queueProxy.JSC$13029_setCurrentIndex(G.index)}G.queueProxy.addVideos(F.videoIds||[F.videoId],F)}HC_(G,C);G.response&&_.bM(G,_.nS(G,G.response.autoplayRenderer));G.JSC$13083_pageManager.isOnWatch()?G.isMiniplayerActive()&&G.openToast(C[0]):(C=C[0],F=F.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",
G.isMiniplayerActive()?G.openToast(C):AcV(C,F))},emd=function(C){var F=_.m$(C);
if(F=="object"||F=="array"){if(typeof C.clone==="function")return C.clone();if(typeof Map!=="undefined"&&C instanceof Map)return new Map(C);if(typeof Set!=="undefined"&&C instanceof Set)return new Set(C);F=F=="array"?[]:{};for(var G in C)F[G]=emd(C[G]);return F}return C},ya=function(C,F){return _.k7I(_.ig(C,F,void 0,_.VZ))},ZP=function(C,F){return _.nt(_.ig(C,F,void 0,_.VZ))},Nc=function(C,F){return _.AO5(_.ig(C,F,void 0,_.VZ))},OK=function(C,F){return _.ig(C,F,void 0,_.VZ,_.Du)},dYx=_.u0(function(C,
F,G,V){if(C.nextWireType_!==0)return!1;
_.n2(F,G,V,_.Xh(C.decoder_,_.tG9));return!0},_.tz,_.Bc),xYh=_.u0(function(C,F,G){if(C.nextWireType_!==1)return!1;
var V=C.decoder_;C=_.M5(V);V=_.M5(V);C=_.qo(C,V);_.QF(F,G,C);return!0},_.AzW,_.mol),sqU=_.u0(function(C,F,G){if(C.nextWireType_!==2)return!1;
C=_.AOy(C);_.QF(F,G,C===_.LP()?void 0:C);return!0},_.qLB,_.Fdu),qvL=_.whq(function(C,F,G){if(C.nextWireType_!==0&&C.nextWireType_!==2)return!1;
F=_.F6(F,F[_.JO]|0,G);C.nextWireType_==2?_.eyr(C,mEr,F):F.push(_.wn(C.decoder_));return!0},function(C,F,G){F=_.XhW(_.nt,F,!0);
if(F!=null&&F.length){G=_.gSm(C,G);for(var V=0;V<F.length;V++)_.f05(C.encoder_,F[V]);_.RyO(C,G)}},_.Gho),Pxd=_.u0(function(C,F,G,V){if(C.nextWireType_!==0)return!1;
_.n2(F,G,V,_.wn(C.decoder_));return!0},_.glS,_.Gho),g0M=function(C){return C.previousElementSibling!==void 0?C.previousElementSibling:_.Efm(C.previousSibling,!1)},Rm8=function(C,F){var G=[];
for(F=F||0;F<C.length;F+=2)_.GIl(C[F],C[F+1],G);return G.join("&")},Yvt=function(C,F){var G=arguments.length==2?Rm8(arguments[1],0):Rm8(arguments,1);
return _.Fg7(C,G)},TE_=_.Z0(_.Up),Tcl=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Tcl,_.b0);Tcl.prototype.getTypeName=function(){return _.a3(this,1).split("/").pop()};
Tcl.prototype.getValue=function(){var C=_.ig(this,2);if(Array.isArray(C)||C instanceof _.b0)throw Error("W");return _.bg(this,2)};
var cmh=function(){var C=_.K7();this.JSC$9916_streamzService=C;C.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.kd("channel_type"))};
cmh.prototype.increment=function(C){this.JSC$9916_streamzService.JSC$9786_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",C)};
var Amt=function(){var C=_.K7();this.JSC$9919_streamzService=C;C.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.kd("channel_type"))};
Amt.prototype.increment=function(C){this.JSC$9919_streamzService.JSC$9786_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",C)};
var dhV=function(){var C=_.K7();this.JSC$9922_streamzService=C;C.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.kd("channel_type"))};
dhV.prototype.increment=function(C){this.JSC$9922_streamzService.JSC$9786_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",C)};
var eNt=function(){var C=_.K7();this.JSC$9925_streamzService=C;C.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
eNt.prototype.increment=function(){this.JSC$9925_streamzService.JSC$9786_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var xhh=function(){var C=_.K7();this.JSC$9928_streamzService=C;C.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.kd("channel_type"),_.kd("error_type"))};
xhh.prototype.increment=function(C,F){this.JSC$9928_streamzService.JSC$9786_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",C,F)};
var syW=function(){var C=_.K7();this.JSC$9931_streamzService=C;C.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
syW.prototype.increment=function(){this.JSC$9931_streamzService.JSC$9786_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var qIr=function(){var C=_.K7();this.JSC$9934_streamzService=C;C.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
qIr.prototype.increment=function(){this.JSC$9934_streamzService.JSC$9786_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var hXr=function(){var C=_.K7();this.JSC$9940_streamzService=C;C.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
hXr.prototype.increment=function(){this.JSC$9940_streamzService.JSC$9786_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var o0l=function(C){return C.getCount&&typeof C.getCount=="function"?C.getCount():_.gI(C)||typeof C==="string"?C.length:_.xf.getCount(C)},rc_=function(C,F){if(typeof C.every=="function")return C.every(F,void 0);
if(_.gI(C)||typeof C==="string")return Array.prototype.every.call(C,F,void 0);for(var G=_.GfG(C),V=_.pC(C),J=V.length,b=0;b<J;b++)if(!F.call(void 0,V[b],G&&G[b],C))return!1;return!0},Kll=function(C,F,G,V){var J=new _.dz(null);
C&&_.mA(J,C);F&&_.C4(J,F);G&&_.jB(J,G);V&&_.F4(J,V);return J},DYW=function(){var C=_.KD&&_.ts(_.acl,10)>=0,F;
if(F=_.giP)F=_.ts(_.t3l,10)>=0;var G=_.C2&&_.ts(_.acl,85)>=0;return _.KV||C||F||G},peU=function(C){var F=_.AGE(C);
return F&&DYW()?-C.scrollLeft:F&&_.rG(C,"overflowX")!="visible"?C.scrollWidth-C.clientWidth-C.scrollLeft:C.scrollLeft},mYr=function(C,F){F=Math.max(F,0);
_.AGE(C)?DYW()?C.scrollLeft=-F:C.scrollLeft=C.scrollWidth-F-C.clientWidth:C.scrollLeft=F},hGr=0,xrt=!1;
Vb.prototype.set=function(C){this.relativeTimeStart_=C};
Vb.prototype.reset=function(){this.set(_.gp())};
Vb.prototype.get=function(){return this.relativeTimeStart_};
var CeU=null,jsV=function(){CeU||(CeU=new Vb)},FHr=function(){CeU||(CeU=new Vb)};
_.RE(FHr,jsV);_.n=qAt.prototype;_.n.JSC$11359_buffer_="";_.n.set=function(C){this.JSC$11359_buffer_=""+C};
_.n.append=function(C,F,G){this.JSC$11359_buffer_+=String(C);if(F!=null)for(var V=1;V<arguments.length;V++)this.JSC$11359_buffer_+=arguments[V];return this};
_.n.clear=function(){this.JSC$11359_buffer_=""};
_.n.getLength=function(){return this.JSC$11359_buffer_.length};
_.n.toString=function(){return this.JSC$11359_buffer_};
var G$8=!1,rvM=function(C){_.FS.call(this,C.message||C.description||C.name);this.isMissing=C instanceof i2;this.isTimeout=C instanceof _.sy&&C.errorCode=="net.timeout";this.isCanceled=C instanceof _.Op};
_.O(rvM,_.FS);rvM.prototype.name="BiscottiError";var i2=function(){_.FS.call(this,"Biscotti ID is missing from server")};
_.O(i2,_.FS);i2.prototype.name="BiscottiMissingError";var JD=null,tur=function(){try{var C=_.mN("yt.ads.biscotti.getId_");return C?C():wbd()}catch(F){return _.W6(F)}},VhU=function(C,F){return _.rh({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:C,command:F}})},ixW=function(C){return _.rh({type:"SET_GUIDE_IS_EXPANDED",
payload:C})},JBt=function(C){return _.rh({type:"SET_ONLINE_STATUS",
payload:C})},$qU=function(C,F){return _.rh({type:"SET_TRANSCRIPTION_STATE",
payload:{high:C,low:F}})},bxd=function(C){return _.rh({type:"SET_OVERLAY_STATE",
payload:C})},np_=0,u2V=function(C,F,G){var V=this;
this.priority=F;this.delay=G;this.jobId=0;this.completionCallback=_.t8;this.wrappedJob=function(){C();V.completionCallback()};
this.id=++np_};
u2V.prototype.enqueue=function(C){this.completionCallback=C;this.jobId=_.gT.addJob(this.wrappedJob,this.priority,this.delay)};
var Xj=function(){_.VC.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.O(Xj,_.VC);Xj.prototype.addJob=function(C,F,G){C=new u2V(C,F,G);this.taskIdToTask.set(C.id,C);this.isActive?zwx(this,C):this.suspendedTasks.add(C);return C.id};
var zwx=function(C,F){C.scheduledTasks.add(F);F.enqueue(function(){C.scheduledTasks.delete(F)})};
Xj.prototype.cancelJob=function(C){(C=this.taskIdToTask.get(C))&&(this.scheduledTasks.delete(C)?_.gT.cancelJob(C.jobId):this.suspendedTasks.delete(C))};
Xj.prototype.pause=function(){var C=this;this.isActive=!1;this.scheduledTasks.forEach(function(F){_.gT.cancelJob(F.jobId);C.suspendedTasks.add(F)});
this.scheduledTasks.clear()};
Xj.prototype.start=function(){var C=this;this.isActive=!0;this.suspendedTasks.forEach(function(F){zwx(C,F)});
this.suspendedTasks.clear()};
Xj.prototype.reset=function(){this.scheduledTasks.forEach(function(C){_.gT.cancelJob(C.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var wX=function(C,F){this.JSC$13209_networkService_=C;this.pageRequestPromise=F};
wX.prototype.fetchData=function(C){Qsd(this,this.JSC$13209_networkService_.fetchData(C))};
wX.prototype.postData=function(C,F){Qsd(this,this.JSC$13209_networkService_.postData(C,F))};
wX.prototype.requestDataForServiceEndpoint=function(C,F){Qsd(this,this.JSC$13209_networkService_.requestDataForServiceEndpoint(C,F))};
var Qsd=function(C,F){F.then(C.pageRequestPromise.onSuccess,C.pageRequestPromise.onFailure,C.pageRequestPromise)};
wX.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var Mc=function(C){this.buildNetworkRequest_=C;this.pendingRequests_=new Set};
Mc.prototype.reset=function(){this.pendingRequests_.forEach(function(C){C.cancel()});
this.pendingRequests_.clear()};
Mc.prototype.fetchData=function(C){var F=Ihd(this);F.fetchData(C);return F.pageRequestPromise};
Mc.prototype.postData=function(C,F){var G=Ihd(this);G.postData(C,F);return G.pageRequestPromise};
Mc.prototype.requestDataForServiceEndpoint=function(C,F){var G=Ihd(this);G.requestDataForServiceEndpoint(C,F);return G.pageRequestPromise};
var Ihd=function(C){var F=C.buildNetworkRequest_();C.pendingRequests_.add(F);var G=function(){C.pendingRequests_.delete(F)};
F.pageRequestPromise.then(G,G);return F},Epx=function(C){var F=new Xj;
this.JSC$13216_networkService_=C;this.JSC$13216_taskManager_=F;this.JSC$13216_networkManager_=new Mc(this.networkRequestFactory_.bind(this))};
_.n=Epx.prototype;_.n.networkRequestFactory_=function(){return new wX(this.JSC$13216_networkService_,new _.NZ(this.JSC$13216_taskManager_))};
_.n.reset=function(){this.JSC$13216_taskManager_.reset();this.JSC$13216_networkManager_.reset()};
_.n.start=function(){this.JSC$13216_taskManager_.start()};
_.n.pause=function(){this.JSC$13216_taskManager_.pause()};
_.n.getTaskManager=function(){return this.JSC$13216_taskManager_};
_.n.getNetworkManager=function(){return this.JSC$13216_networkManager_};
var JCM=null,ned=[],$Q=0,nu=0,b2=null,zu=function(C){this.token=C};
zu.getInstance=function(){var C;return _.I(function(F){if(F.nextAddress==1)return F.yield(_.Qn(),2);C=F.yieldResult;if(!C)return F.return();zu.instance||(zu.instance=new zu(C));return F.return(zu.instance)})};
var aDU=function(C){var F;return _.I(function(G){if(G.nextAddress==1)return G.yield(Eel(C.token),2);F=G.yieldResult;return G.return(F.clear("resource-manifest-assets"))})},u2=function(C){this.token=C};
u2.getInstance=function(){var C;return _.I(function(F){if(F.nextAddress==1)return F.yield(_.Qn(),2);C=F.yieldResult;if(!C)return F.return();u2.instance||(u2.instance=new u2(C));return F.return(u2.instance)})};
var WrM=function(C){var F;return _.I(function(G){if(G.nextAddress==1)return G.yield(Eel(C.token),2);F=G.yieldResult;return G.yield(F.clear("auth"),0)})},WHd=!1,Qb=null,Lrr=void 0,xDV=!1,thx=function(C){_.FS.call(this,C)};
_.O(thx,_.NCP);var wxV=function(){var C=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return C?parseInt(C[1],10):0},ah_=function(C){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+C)!=-1||document.currentScript.src.indexOf("&"+C)!=-1)},k$h=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},vZx=function(C){C.length?Uql(C.shift(),function(){vZx(C)}):Sp8()},h1s=function(C){return"chrome-extension://"+C+"/cast_sender.js"},Uql=function(C,
F,G){var V=document.createElement("script");
V.onerror=F;G&&(V.onload=G);_.JW(V,_.eo(C));(document.head||document.documentElement).appendChild(V)},HxW=function(){var C=wxV(),F=[];
if(C>1){var G=C-1;F.push("//www.gstatic.com/eureka/clank/"+C+"/cast_sender.js");F.push("//www.gstatic.com/eureka/clank/"+G+"/cast_sender.js")}return F},Sp8=function(){var C=k$h();
C&&C(!1,"No cast extension found")},BJt=function(){if(lhW){var C=2,F=k$h(),G=function(){C--;
C==0&&F&&F(!0)};
window.__onGCastApiAvailable=G;Uql("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",Sp8,G)}},MZr=function(){BJt();
var C=HxW();C.push("//www.gstatic.com/eureka/clank/cast_sender.js");vZx(C)},L8_=function(){BJt();
var C=HxW();C.push.apply(C,_.da(fF3.map(h1s)));C.push("//www.gstatic.com/eureka/clank/cast_sender.js");vZx(C)},lhW=ah_("loadCastFramework")||ah_("loadCastApplicationFramework"),fF3=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var yB8=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(yB8,_.b0);var Zx8=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Zx8,_.b0);var NVr=function(){var C=new Zx8;return _.N5(C,1,3)};var SA=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(SA,_.b0);var wBs=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(wBs,_.b0);var Oxh=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Oxh,_.b0);Oxh.prototype.getToken=function(){return _.a3(this,1)};
Oxh.prototype.setToken=function(C){return _.L3(this,1,C)};
var OZ8=function(C){return _.Dr(C,3,_.Or,_.ED())},XBr=function(C){return _.Dr(C,6,_.Or,_.ED())};var Ls=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Ls,_.b0);Ls.prototype.getToken=function(){return _.aa(this,Oxh,2)};
Ls.prototype.setToken=function(C){return _.OL(this,2,C)};
Ls.prototype.getName=function(){return _.a3(this,6)};
var Xad=_.Z0(Ls);var wad=function(C,F,G){this.requestMessage=C;this.methodDescriptor=F;this.metadata=G};
wad.prototype.getMetadata=function(){return this.metadata};var MhL=function(C,F){F=F===void 0?{}:F;this.responseMessage=C;this.metadata=F;this.status=null};
MhL.prototype.getMetadata=function(){return this.metadata};
MhL.prototype.getStatus=function(){return this.status};var BJ=function(C,F,G,V,J){this.name=C;this.methodType="unary";this.requestType=F;this.responseType=G;this.requestSerializeFn=V;this.responseDeserializeFn=J},Skt=function(C,F,G){G=G===void 0?{}:G;
return new wad(F,C,G)};
BJ.prototype.getName=function(){return this.name};var vJ=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(vJ,_.b0);vJ.prototype.getHeader=function(){return _.aa(this,SA,1)};
vJ.prototype.setHeader=function(C){return _.OL(this,1,C)};
vJ.prototype.hasHeader=function(){return _.Ji(this,SA,1)};var LHW=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(LHW,_.b0);var BVU=new BJ("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",vJ,LHW,function(C){return C.serialize()},_.Z0(LHW));var hX=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(hX,_.b0);hX.prototype.getHeader=function(){return _.aa(this,SA,1)};
hX.prototype.setHeader=function(C){return _.OL(this,1,C)};
hX.prototype.hasHeader=function(){return _.Ji(this,SA,1)};var vp8=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(vp8,_.b0);var fhV=new BJ("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",hX,vp8,function(C){return C.serialize()},_.Z0(vp8));var cJ=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(cJ,_.b0);cJ.prototype.getHeader=function(){return _.aa(this,SA,1)};
cJ.prototype.setHeader=function(C){return _.OL(this,1,C)};
cJ.prototype.hasHeader=function(){return _.Ji(this,SA,1)};var hwr=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(hwr,_.b0);hwr.prototype.getLink=function(){return _.aa(this,Ls,1)};var cB3=new BJ("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",cJ,hwr,function(C){return C.serialize()},_.Z0(hwr));var AX=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(AX,_.b0);AX.prototype.getHeader=function(){return _.aa(this,SA,1)};
AX.prototype.setHeader=function(C){return _.OL(this,1,C)};
AX.prototype.hasHeader=function(){return _.Ji(this,SA,1)};var ABh=new BJ("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",AX,Ls,function(C){return C.serialize()},Xad);var ewt=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(ewt,_.b0);var dqt=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(dqt,_.b0);dqt.prototype.getUrl=function(){return _.a3(this,2)};
dqt.prototype.setUrl=function(C){return _.L3(this,2,C)};var xql=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(xql,_.b0);var ssL=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(ssL,_.b0);var qkW=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(qkW,_.b0);var dGt=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(dGt,_.b0);var eIt=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(eIt,_.b0);var Pex=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Pex,_.b0);var Y4L=_.Z0(Pex);var gpr=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(gpr,_.b0);var Rw3=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Rw3,_.b0);_.n=Rw3.prototype;_.n.getHeader=function(){return _.aa(this,SA,1)};
_.n.setHeader=function(C){return _.OL(this,1,C)};
_.n.hasHeader=function(){return _.Ji(this,SA,1)};
_.n.getCompletionUrl=function(){return _.a3(this,6)};
_.n.getDeviceId=function(){return _.a3(this,11)};var Ykd=new BJ("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",Rw3,Pex,function(C){return C.serialize()},Y4L);var TVM=new Set(["SAPISIDHASH","APISIDHASH"]);var opU=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(opU,_.b0);opU.prototype.getMessage=function(){return _.a3(this,2)};
var rBW=_.Z0(opU);var DqL=function(C,F){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=C.nodeReadableStream;this.grpcResponseDeserializeFn=F;this.xhr=C.xhr;this.xhrNodeReadableStream&&KHd(this)},GTd=function(C,F){var G=new pax;
_.IP(C.xhr,"complete",function(){if(C.xhr.isSuccess()){var V=C.xhr.getResponseText();var J;if(J=F)J=C.xhr,J.JSC$9795_xhr_&&J.isComplete()?(J=J.JSC$9795_xhr_.getResponseHeader("Content-Type"),J=J===null?void 0:J):J=void 0,J=J==="text/plain";if(J){if(!atob)throw Error("hk");V=atob(V)}try{var b=C.grpcResponseDeserializeFn(V)}catch(Q){eA(C,Qe3(new _.w1(13,"Error when deserializing response data; error: "+Q+(", response: "+V)),G));return}V=_.u$I(C.xhr.getStatus());mq_(C,CNs(C));V===0?j4V(C,b):eA(C,Qe3(new _.w1(V,
"Xhr succeeded but the status code is not 200"),G))}else{V=C.xhr.getResponseText();b=CNs(C);if(V){var z=FF3(C,V);V=z.code;J=z.details;z=z.metadata}else V=2,J="Rpc failed due to xhr error. uri: "+String(C.xhr.JSC$9795_lastUri_)+", error code: "+(C.xhr.JSC$9795_lastErrorCode_+", error: ")+C.xhr.getLastError(),z=b;mq_(C,b);eA(C,Qe3(new _.w1(V,J,z),G))}})},KHd=function(C){C.xhrNodeReadableStream.on("data",function(F){if("1"in F){var G=F["1"];
try{var V=C.grpcResponseDeserializeFn(G)}catch(J){eA(C,new _.w1(13,"Error when deserializing response data; error: "+J+(", response: "+G)))}V&&j4V(C,V)}if("2"in F)for(F=FF3(C,F["2"]),G=0;G<C.onStatusCallbacks.length;G++)C.onStatusCallbacks[G](F)});
C.xhrNodeReadableStream.on("end",function(){mq_(C,CNs(C));for(var F=0;F<C.onEndCallbacks.length;F++)C.onEndCallbacks[F]()});
C.xhrNodeReadableStream.on("error",function(){if(C.onErrorCallbacks.length!==0){var F=C.xhr.JSC$9795_lastErrorCode_;F!==0||C.xhr.isSuccess()||(F=6);var G=-1;switch(F){case 0:var V=2;break;case 7:V=10;break;case 8:V=4;break;case 6:G=C.xhr.getStatus();V=_.u$I(G);break;default:V=14}mq_(C,CNs(C));F=_.h7S(F)+", error: "+C.xhr.getLastError();G!==-1&&(F+=", http status code: "+G);eA(C,new _.w1(V,F))}})},CNs=function(C){var F={},G=FAr(C.xhr);
Object.keys(G).forEach(function(V){F[V]=G[V]});
return F},FF3=function(C,F){var G=2,V={};
try{var J=rBW(F);G=_.Wk(J,1);var b=J.getMessage();_.IM(J,Tcl,3,_.ED()).length&&(V["grpc-web-status-details-bin"]=F)}catch(z){C.xhr&&C.xhr.getStatus()===404?(G=5,b="Not Found: "+String(C.xhr.JSC$9795_lastUri_)):(G=14,b="Unable to parse RpcStatus: "+z)}return{code:G,details:b,metadata:V}};
DqL.prototype.on=function(C,F){C==="data"?this.onDataCallbacks.push(F):C==="metadata"?this.onMetadataCallbacks.push(F):C==="status"?this.onStatusCallbacks.push(F):C==="end"?this.onEndCallbacks.push(F):C==="error"&&this.onErrorCallbacks.push(F);return this};
var dX=function(C,F){F=C.indexOf(F);F>-1&&C.splice(F,1)};
DqL.prototype.removeListener=function(C,F){C==="data"?dX(this.onDataCallbacks,F):C==="metadata"?dX(this.onMetadataCallbacks,F):C==="status"?dX(this.onStatusCallbacks,F):C==="end"?dX(this.onEndCallbacks,F):C==="error"&&dX(this.onErrorCallbacks,F);return this};
DqL.prototype.cancel=function(){this.xhr.abort()};
var j4V=function(C,F){for(var G=0;G<C.onDataCallbacks.length;G++)C.onDataCallbacks[G](F)},mq_=function(C,F){for(var G=0;G<C.onMetadataCallbacks.length;G++)C.onMetadataCallbacks[G](F)},eA=function(C,F){for(var G=0;G<C.onErrorCallbacks.length;G++)C.onErrorCallbacks[G](F)},pax=function(){var C=Error.call(this);
this.message=C.message;"stack"in C&&(this.stack=C.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};
_.O(pax,Error);var V$8=function(C){this.JSC$19585_worker_=C.worker||null;this.JSC$19585_streamBinaryChunks_=C.streamBinaryChunks||!1;this.JSC$19585_credentialsMode_=void 0};
_.RE(V$8,_.Q8Z);V$8.prototype.createInstance=function(){var C=new xh(this.JSC$19585_worker_,this.JSC$19585_streamBinaryChunks_);this.JSC$19585_credentialsMode_&&C.setCredentialsMode(this.JSC$19585_credentialsMode_);return C};
V$8.prototype.setCredentialsMode=function(C){this.JSC$19585_credentialsMode_=C};
var xh=function(C,F){_.lT.call(this);this.JSC$19589_worker_=C;this.JSC$19589_streamBinaryChunks_=F;this.JSC$19589_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$19589_responseHeaders_=null;this.JSC$19589_method_="GET";this.JSC$19589_url_="";this.inProgress_=!1;this.JSC$19589_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.RE(xh,_.lT);xh.prototype.open=function(C,F){if(this.readyState!=0)throw this.abort(),Error("ik");this.JSC$19589_method_=C;this.JSC$19589_url_=F;this.readyState=1;iaW(this)};
xh.prototype.send=function(C){if(this.readyState!=1)throw this.abort(),Error("jk");if(this.abortController_.signal.aborted)throw this.abort(),Error("kk");this.inProgress_=!0;var F={headers:this.requestHeaders_,method:this.JSC$19589_method_,credentials:this.JSC$19589_credentialsMode_,cache:void 0,signal:this.abortController_.signal};C&&(F.body=C);(this.JSC$19589_worker_||_.VT).fetch(new Request(this.JSC$19589_url_,F)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
xh.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort("Request was aborted.");this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,JLr(this));this.readyState=0};
xh.prototype.handleResponse_=function(C){if(this.inProgress_&&(this.fetchResponse_=C,this.JSC$19589_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19589_responseHeaders_=C.headers,this.readyState=2,iaW(this)),this.inProgress_&&(this.readyState=3,iaW(this),this.inProgress_)))if(this.responseType==="arraybuffer")C.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.VT.ReadableStream!==
"undefined"&&"body"in C){this.currentReader_=C.body.getReader();if(this.JSC$19589_streamBinaryChunks_){if(this.responseType)throw Error("lk");this.response=[]}else this.response=this.responseText="",this.JSC$19589_textDecoder_=new TextDecoder;$is(this)}else C.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var $is=function(C){C.currentReader_.read().then(C.handleDataFromStream_.bind(C)).catch(C.handleSendFailure_.bind(C))};
xh.prototype.handleDataFromStream_=function(C){if(this.inProgress_){if(this.JSC$19589_streamBinaryChunks_&&C.value)this.response.push(C.value);else if(!this.JSC$19589_streamBinaryChunks_){var F=C.value?C.value:new Uint8Array(0);if(F=this.JSC$19589_textDecoder_.decode(F,{stream:!C.done}))this.response=this.responseText+=F}C.done?JLr(this):iaW(this);this.readyState==3&&$is(this)}};
xh.prototype.handleResponseText_=function(C){this.inProgress_&&(this.response=this.responseText=C,JLr(this))};
xh.prototype.handleResponseArrayBuffer_=function(C){this.inProgress_&&(this.response=C,JLr(this))};
xh.prototype.handleSendFailure_=function(){this.inProgress_&&JLr(this)};
var JLr=function(C){C.readyState=4;C.fetchResponse_=null;C.currentReader_=null;C.JSC$19589_textDecoder_=null;iaW(C)};
xh.prototype.setRequestHeader=function(C,F){this.requestHeaders_.append(C,F)};
xh.prototype.getResponseHeader=function(C){return this.JSC$19589_responseHeaders_?this.JSC$19589_responseHeaders_.get(C.toLowerCase())||"":""};
xh.prototype.getAllResponseHeaders=function(){if(!this.JSC$19589_responseHeaders_)return"";for(var C=[],F=this.JSC$19589_responseHeaders_.entries(),G=F.next();!G.done;)G=G.value,C.push(G[0]+": "+G[1]),G=F.next();return C.join("\r\n")};
xh.prototype.setCredentialsMode=function(C){this.JSC$19589_credentialsMode_=C};
var iaW=function(C){C.onreadystatechange&&C.onreadystatechange.call(C)};
Object.defineProperty(xh.prototype,"withCredentials",{get:function(){return this.JSC$19589_credentialsMode_==="include"},
set:function(C){this.setCredentialsMode(C?"include":"same-origin")}});var bad=function(C){var F="";_.xf.forEach(C,function(G,V){F+=V;F+=":";F+=G;F+="\r\n"});
return F},nrL=function(C,F,G){if(_.xf.isEmpty(G))return C;
G=bad(G);if(typeof C==="string")return _.xk(C,_.jP(F),G);_.jE(C,F,G);return C};var ut_=function(){this.isInputValid_=!0;this.JSC$19595_streamPos_=0;this.leftoverInput_=""};
ut_.prototype.isInputValid=function(){return this.isInputValid_};
ut_.prototype.decode=function(C){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("mk`"+this.JSC$19595_streamPos_+"`stream already broken`"+C);this.leftoverInput_+=C;C=Math.floor(this.leftoverInput_.length/4);if(C==0)return null;try{var F=_.f$I(this.leftoverInput_.slice(0,C*4))}catch(G){throw F=this.leftoverInput_,C=G.message,this.isInputValid_=!1,Error("mk`"+this.JSC$19595_streamPos_+"`"+C+"`"+F);}this.JSC$19595_streamPos_+=C*4;this.leftoverInput_=this.leftoverInput_.slice(C*4);return F};var W2=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19598_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
W2.prototype.isInputValid=function(){return this.state_!=3};
var zS_=function(C,F,G,V){C.state_=3;C.errorMessage_="The stream is broken @"+C.JSC$19598_streamPos_+"/"+G+". Error: "+V+". With input:\n"+F;throw Error(C.errorMessage_);};
W2.prototype.acceptsBinaryInput=function(){return!0};
W2.prototype.parse=function(C){function F(E){E&128&&zS_(b,z,Q,"invalid tag");(E&7)!=2&&zS_(b,z,Q,"invalid wire type");b.tag_=E>>>3;b.tag_!=1&&b.tag_!=2&&b.tag_!=15&&zS_(b,z,Q,"unexpected tag");b.state_=1;b.length_=0;b.countLengthBytes_=0}
function G(E){b.countLengthBytes_++;b.countLengthBytes_==5&&E&240&&zS_(b,z,Q,"message length too long");b.length_|=(E&127)<<(b.countLengthBytes_-1)*7;E&128||(b.state_=2,b.countMessageBytes_=0,typeof Uint8Array!=="undefined"?b.messageBuffer_=new Uint8Array(b.length_):b.messageBuffer_=Array(b.length_),b.length_==0&&J())}
function V(E){b.messageBuffer_[b.countMessageBytes_++]=E;b.countMessageBytes_==b.length_&&J()}
function J(){if(b.tag_<15){var E={};E[b.tag_]=b.messageBuffer_;b.result_.push(E)}b.state_=0}
for(var b=this,z=C instanceof Array?C:new Uint8Array(C),Q=0;Q<z.length;){switch(b.state_){case 3:zS_(b,z,Q,"stream already broken");break;case 0:F(z[Q]);break;case 1:G(z[Q]);break;case 2:V(z[Q]);break;default:throw Error("nk`"+b.state_);}b.JSC$19598_streamPos_++;Q++}C=b.result_;b.result_=[];return C.length>0?C:null};var EJx=function(){this.errorMessage_=null;this.JSC$19601_streamPos_=0;this.base64Decoder_=new ut_;this.pbParser_=new W2};
EJx.prototype.isInputValid=function(){return this.errorMessage_===null};
var Q4W=function(C,F,G){C.errorMessage_="The stream is broken @"+C.JSC$19601_streamPos_+". Error: "+G+". With input:\n"+F;throw Error(C.errorMessage_);};
EJx.prototype.acceptsBinaryInput=function(){return!1};
EJx.prototype.parse=function(C){this.errorMessage_!==null&&Q4W(this,C,"stream already broken");var F=null;try{var G=this.base64Decoder_.decode(C);F=G===null?null:this.pbParser_.parse(G)}catch(V){Q4W(this,C,V.message)}this.JSC$19601_streamPos_+=C.length;return F};var IHl=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19604_streamPos_=0;this.result_=[];this.statusParsed_=!1};
IHl.prototype.isInputValid=function(){return this.errorMessage_===null};
IHl.prototype.acceptsBinaryInput=function(){return!1};
IHl.prototype.parse=function(C){function F(E){b.state_=6;b.errorMessage_="The stream is broken @"+b.JSC$19604_streamPos_+"/"+z+". Error: "+E+". With input:\n";throw Error(b.errorMessage_);}
function G(){b.jsonStreamParser_=new _.zD({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function V(E){if(E)for(var t=0;t<E.length;t++){var k={};k[1]=E[t];b.result_.push(k)}}
function J(E){if(E){(b.statusParsed_||E.length>1)&&F("extra status: "+E);b.statusParsed_=!0;var t={};t[2]=E[0];b.result_.push(t)}}
for(var b=this,z=0;z<C.length;){var Q;if(Q=b.state_!==2){a:{for(;z<C.length;){if(!_.uJ(C[z])){Q=!0;break a}z++;b.JSC$19604_streamPos_++}Q=!1}Q=!Q}if(Q)return null;switch(b.state_){case 6:F("stream already broken");break;case 0:C[z]==="["?(b.state_=1,z++,b.JSC$19604_streamPos_++):F("unexpected input token");break;case 1:C[z]==="["?(b.state_=2,G()):C[z]===","||C.slice(z,z+5)=="null,"?b.state_=3:C[z]==="]"?(b.state_=5,z++,b.JSC$19604_streamPos_++):F("unexpected input token");break;case 2:Q=b.jsonStreamParser_.parse(C.substring(z));
V(Q);b.jsonStreamParser_.done()?(b.state_=3,Q=b.jsonStreamParser_.JSC$11486_buffer_,b.JSC$19604_streamPos_+=C.length-z-Q.length,C=Q,z=0):(b.JSC$19604_streamPos_+=C.length-z,z=C.length);break;case 3:C[z]===","||C.slice(z,z+5)=="null,"?(b.state_=4,G(),b.jsonStreamParser_.parse("["),z+=C[z]===","?1:5,b.JSC$19604_streamPos_++):C[z]==="]"&&(b.state_=5,z++,b.JSC$19604_streamPos_++);break;case 4:Q=b.jsonStreamParser_.parse(C.substring(z));J(Q);b.jsonStreamParser_.done()?(b.state_=5,Q=b.jsonStreamParser_.JSC$11486_buffer_,
b.JSC$19604_streamPos_+=C.length-z-Q.length,C=Q,z=0):(b.JSC$19604_streamPos_+=C.length-z,z=C.length);break;case 5:F("extra input after stream end")}}return b.result_.length>0?(C=b.result_,b.result_=[],C):null};var IEx=function(C){this.JSC$19607_xhr_=C;this.JSC$19607_parser_=null;this.status_=this.JSC$19607_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19607_textDecoder_=null;this.JSC$19607_eventHandler_=new _.ln(this);this.JSC$19607_eventHandler_.listen(this.JSC$19607_xhr_,"readystatechange",this.JSC$19609_readyStateChangeHandler_)},sK=function(C,F){C.status_!=F&&(C.status_=F,C.statusHandler_&&C.statusHandler_())},Erl=function(C){C.JSC$19607_eventHandler_.removeAll();
if(C.JSC$19607_xhr_){var F=C.JSC$19607_xhr_;C.JSC$19607_xhr_=null;F.abort();F.dispose()}};
IEx.prototype.getStatus=function(){return this.status_};
IEx.prototype.JSC$19609_readyStateChangeHandler_=function(C){C=C.target;try{if(C==this.JSC$19607_xhr_)a:{var F=_.LC(this.JSC$19607_xhr_),G=this.JSC$19607_xhr_.JSC$9795_lastErrorCode_,V=this.JSC$19607_xhr_.getStatus(),J=this.JSC$19607_xhr_.getResponseText();C=[];if(this.JSC$19607_xhr_.getResponse()instanceof Array){var b=this.JSC$19607_xhr_.getResponse();b.length>0&&b[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,C=b)}if(!(F<3||F==3&&!J&&C.length==0))if(V=V==200||V==206,F==4&&(G==8?sK(this,
7):G==7?sK(this,8):V||sK(this,3)),this.JSC$19607_parser_||(this.JSC$19607_parser_=W2r(this.JSC$19607_xhr_),this.JSC$19607_parser_==null&&sK(this,5)),this.status_>2)Erl(this);else{if(C.length>this.JSC$19607_pos_){var z=C.length;G=[];try{if(this.JSC$19607_parser_.acceptsBinaryInput())for(var Q=0;Q<z;Q++){var E=this.JSC$19607_parser_.parse(Array.from(C[Q]));E&&(G=G.concat(E))}else{E="";if(!this.JSC$19607_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("ok");this.JSC$19607_textDecoder_=
new TextDecoder}for(Q=0;Q<z;Q++)E+=this.JSC$19607_textDecoder_.decode(C[Q],{stream:F==4&&Q==z-1});G=this.JSC$19607_parser_.parse(E)}C.splice(0,z);G&&this.dataHandler_(G)}catch(k){sK(this,5);Erl(this);break a}}else if(J.length>this.JSC$19607_pos_){Q=J.slice(this.JSC$19607_pos_);this.JSC$19607_pos_=J.length;try{var t=this.JSC$19607_parser_.parse(Q);t!=null&&this.dataHandler_&&this.dataHandler_(t)}catch(k){sK(this,5);Erl(this);break a}}F==4?(J.length!=0||this.hasStreamingResponseData_?sK(this,2):sK(this,
4),Erl(this)):sK(this,1)}}}catch(k){sK(this,6),Erl(this)}};var WFd=function(C){C=this.xhrReader_=C;var F=(0,_.ck)(this.onData_,this);C.dataHandler_=F;C=this.xhrReader_;F=(0,_.ck)(this.onStatusChange_,this);C.statusHandler_=F;this.JSC$19611_callbackMap_={};this.callbackOnceMap_={}};
_.n=WFd.prototype;_.n.on=function(C,F){var G=this.JSC$19611_callbackMap_[C];G||(G=[],this.JSC$19611_callbackMap_[C]=G);G.push(F);return this};
_.n.addListener=function(C,F){this.on(C,F);return this};
_.n.removeListener=function(C,F){var G=this.JSC$19611_callbackMap_[C];G&&_.qf(G,F);(C=this.callbackOnceMap_[C])&&_.qf(C,F);return this};
_.n.once=function(C,F){var G=this.callbackOnceMap_[C];G||(G=[],this.callbackOnceMap_[C]=G);G.push(F);return this};
_.n.onData_=function(C){var F=this.JSC$19611_callbackMap_.data;F&&t$h(C,F);(F=this.callbackOnceMap_.data)&&t$h(C,F);this.callbackOnceMap_.data=[]};
var t$h=function(C,F){for(var G={},V=0;V<C.length;G={message$jscomp$1008:void 0},V++)G.message$jscomp$1008=C[V],F.forEach(function(J){return function(b){try{b(J.message$jscomp$1008)}catch(z){}}}(G))};
WFd.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:aEr(this,"readable");break;case 5:case 6:case 4:case 7:case 3:aEr(this,"error");break;case 8:aEr(this,"close");break;case 2:aEr(this,"end")}};
var aEr=function(C,F){var G=C.JSC$19611_callbackMap_[F];G&&G.forEach(function(V){try{V()}catch(J){}});
(G=C.callbackOnceMap_[F])&&G.forEach(function(V){V()});
C.callbackOnceMap_[F]=[]};var kTh=function(){var C={format:"jspb"};C=C===void 0?{}:C;this.suppressCorsPreflight=C.suppressCorsPreflight||_.mN("suppressCorsPreflight",C)||!1;this.withCredentials=C.withCredentials||_.mN("withCredentials",C)||!1;this.streamInterceptors=C.streamInterceptors||[];this.unaryInterceptors=C.unaryInterceptors||[];this.workerScope=C.workerScope;this.chunkedServerStreaming=C.useFetchDownloadStreams||!1},lEh=function(C,F,G,V,J,b){b=b===void 0?{}:b;
var z=F.substring(0,F.length-J.name.length),Q,E=(Q=b)==null?void 0:Q.signal;return Uir(function(t){return new Promise(function(k,U){if(E==null?0:E.aborted){var H=new _.w1(1,"Aborted");H.cause=E.reason;U(H)}else{var l={},N=Has(C,t,z);N.on("error",function(S){return void U(S)});
N.on("metadata",function(S){l=S});
N.on("data",function(S){var f=l;f=f===void 0?{}:f;k(new MhL(S,f))});
E&&E.addEventListener("abort",function(){N.cancel();var S=new _.w1(1,"Aborted");S.cause=E.reason;U(S)})}})},C.unaryInterceptors).call(C,Skt(J,G,V)).then(function(t){return t.responseMessage})},yLr=function(C,F,G,V,J,b){b=b===void 0?{}:b;
return lEh(C,F,G,V,J,b)};
kTh.prototype.serverStreaming=function(C,F,G,V){var J=this,b=C.substring(0,C.length-V.name.length);return ZaW(function(z){var Q=z.methodDescriptor,E=z.getMetadata(),t=N3L(J,!1);E=Oat(J,E,t,b+Q.getName());var k=X3d(t,Q.responseDeserializeFn,!0);z=Q.requestSerializeFn(z.requestMessage);t.send(E,"POST",z);return k},this.streamInterceptors).call(this,Skt(V,F,G))};
var Has=function(C,F,G){var V=F.methodDescriptor,J=F.getMetadata(),b=N3L(C,!0);C=Oat(C,J,b,G+V.getName());G=X3d(b,V.responseDeserializeFn,!1);GTd(G,J["X-Goog-Encode-Response-If-Executable"]==="base64");F=V.requestSerializeFn(F.requestMessage);b.send(C,"POST",F);return G},N3L=function(C,F){F=C.chunkedServerStreaming&&!F;
return C.workerScope||F?new _.SL(new V$8({worker:C.workerScope,streamBinaryChunks:F})):new _.SL},Oat=function(C,F,G,V){F["Content-Type"]="application/json+protobuf";
F["X-User-Agent"]="grpc-web-javascript/0.1";var J=F.Authorization;if(J&&TVM.has(J.split(" ")[0])||C.withCredentials)G.JSC$9795_withCredentials_=!0;if(C.suppressCorsPreflight)V=nrL(V,"$httpHeaders",F);else for(C=_.u(Object.keys(F)),J=C.next();!J.done;J=C.next())J=J.value,G.headers.set(J,F[J]);return V},X3d=function(C,F,G){if(G){G=new IEx(C);
var V=new WFd(G)}return new DqL({xhr:C,nodeReadableStream:V},F)},ZaW=function(C,F){return F.reduce(function(G,V){return function(J){return V.intercept(J,G)}},C)},Uir=function(C,F){return F.reduce(function(G,V){return function(J){return V.intercept(J,G)}},C)};var w33=function(C){this.client_=new kTh;this.hostname_=C==void 0?C:C.replace(/\/+$/,"")};
_.n=w33.prototype;_.n.JSC$19629_depositGoogleCredential=function(C,F,G){return yLr(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",C,F||{},fhV,G)};
_.n.deleteLink=function(C,F,G){return yLr(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",C,F||{},BVU,G)};
_.n.JSC$19629_finishOAuth=function(C,F,G){return yLr(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",C,F||{},cB3,G)};
_.n.getLink=function(C,F,G){return yLr(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",C,F||{},ABh,G)};
_.n.startLinkingSession=function(C,F,G){return yLr(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",C,F||{},Ykd,G)};var M$V=[0,_.dn,1,qvL,[0,_.gn,[0,_.q5,-1]],[0,sqU],[0,_.rn,-1],[0,sqU]];var Szx=function(){this.storage=new Map},B3s=function(C,F,G,V,J){if(!C.storage.has(F))return null;
C=_.u(C.storage.get(F));for(F=C.next();!F.done;F=C.next())if(F=F.value,!J||F.linkName===J)if(G&&F.scopes&&LF3(F.scopes,G)||V&&F.capabilities&&LF3(F.capabilities,V))return F;return null},vrd=function(C,F,G){if(!G)C.storage.delete(F);
else if(C.storage.has(F)){var V=C.storage.get(F).filter(function(J){return J.linkName!==G});
V.length>0?C.storage.set(F,V):C.storage.delete(F)}},LF3=function(C,F){F=_.u(F);
for(var G=F.next();!G.done;G=F.next())if(!C.has(G.value))return!1;return!0};var fEd=function(){var C=_.TF("LINK_GAL_DOMAIN");this.alsDomain1p=_.TF("LINK_GAL_DOMAIN");this.alsDomain3p=C;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},hSr=function(C,F){C.apiKey=F;
return C};
fEd.prototype.build=function(){var C={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("pk");C.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("qk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("rk");C.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(C.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)C.apiKey=
this.apiKey,C.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("sk");C.oauthToken=this.oauthToken;C.alsDomain=this.alsDomain3p}C.clientXd3=this.clientXd3;C.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(C.authUser=this.authUser);this.bucket!==void 0&&(C.bucket=this.bucket);this.completionUrl!==void 0&&(C.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(C.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(C.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(C.locale=this.locale);C.loggerType=this.loggerType;C.clientEnvironment=this.clientEnvironment;C.colorScheme=this.colorScheme;C.showCloseOption=this.showCloseOption;return C};var tD=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(tD,_.b0);var cL3=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(cL3,_.b0);var ALL=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(ALL,_.b0);var kQ=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(kQ,_.b0);var eS8=function(C){return _.kL(C,1)};var diU=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(diU,_.b0);var yMd=_.Z0(diU),ac=[1,2,3,4,5];var kbt=function(C){try{return yMd(C)}catch(F){return null}},xix=function(){},UGL=function(C,F){switch(_.ug(F,ac)){case 4:return(F=_.yZ(F,ALL,4,ac))&&C.logStateTransition(_.kL(F,1)),!0;
case 5:return(F=_.yZ(F,cL3,5,ac))&&C.logInternalEvent(_.kL(F,1)),!0}return!1},ZZW=function(C){switch(C){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.r2(C)}};var tnW=function(C,F){var G=this;this.validator=C;this.messageListener=F;this.dismissCallback=function(){s4t(G,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19658_receiveMessage=function(V){V.type==="message"&&(V=V.event_,V!==null&&(new URL(G.iframe.src)).origin===V.origin&&G.validator(V.data,V.origin)&&!G.messageListener(V.data)&&(G.JSC$19658_resolveCb!==void 0&&G.JSC$19658_resolveCb(V.data),qzM(G)))}},lHM=function(C,F,G){C.uiHandler!==void 0&&s4t(C,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(V,J){C.JSC$19658_resolveCb=V;C.JSC$19658_rejectCb=J;C.iframe=document.createElement("iframe");_.mY(C.iframe,F);C.uiHandler=G.displayContent(C.iframe,C.dismissCallback);_.IP(window,"message",C.JSC$19658_receiveMessage,!1,C)})},s4t=function(C,F){C.JSC$19658_rejectCb!==void 0&&C.JSC$19658_rejectCb(F);
qzM(C)},qzM=function(C){C.uiHandler!==void 0&&C.uiHandler.hideContent();
_.Hd(window,"message",C.JSC$19658_receiveMessage,!1,C);C.JSC$19658_resolveCb=void 0;C.JSC$19658_rejectCb=void 0;C.uiHandler=void 0;C.iframe=void 0};var PNU=function(C){if(C===2){var F;C=((F=window)==null?0:F.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return C},HZM=function(C){C=PNU(C);
switch(C){case 0:return"light";case 1:return"dark";default:_.r2(C)}};var aHU=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),grL=function(C,F){this.JSC$19670_linkingSession=C;this.noticeConfig=F;this.displayInfoMap=new Map;var G=new Map;if(_.Ji(this.JSC$19670_linkingSession,xql,7))for(C=_.aa(this.JSC$19670_linkingSession,xql,7),C=_.IM(C,dqt,1,_.ED()),C=_.u(C),F=C.next();!F.done;F=C.next())F=F.value,G.set(_.kL(F,1),_.XDf(_.aa(F,_.dNS,3)));if(G.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){F=this.noticeConfig.enabledDataUsageNoticeUis;C=F.has(0)?G.get(1):void 0;F=F.has(1)?G.get(2):void 0;G=C!==void 0&&F!==void 0?G.get(3):void 0;var V=this.noticeConfig.nestedOrigins;var J=new diU;var b=new tD;J=_.X6(J,2,ac,b);b=new diU;var z=new tD;b=_.X6(b,3,ac,z);z=[];C!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:C,lastEvent:J,nestedOrigins:V}]),z.push({trustedUrl:C,lastEvent:J,nestedOrigins:V}));F!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:F,lastEvent:b,nestedOrigins:V}]),z.push({trustedUrl:F,lastEvent:b,nestedOrigins:V}));G!==void 0?this.displayInfoMap.set(3,[{trustedUrl:G,lastEvent:b,nestedOrigins:V}]):this.displayInfoMap.set(3,z)}};var RSL=function(C){var F=new Szx;this.galService=C;this.galCache=F};
RSL.prototype.getLink=function(C){var F=C.serviceId;var G=C.scopes;var V=C.capabilities;var J=C.linkName;var b=this,z;return _.I(function(Q){if(V!==void 0&&G!==void 0)throw Error("tk");z=B3s(b.galCache,F,G,V,J);return z!==null?Q.return(z):Q.return(b.galService.getLink({serviceId:F,sessionId:Math.floor(Math.random()*2147483648),scopes:G,capabilities:V,linkName:J}).then(function(E){E=MnM(E);var t=b.galCache;t.storage.has(F)?t.storage.get(F).push(E):t.storage.set(F,[E]);return E}))})};
RSL.prototype.deleteLink=function(C,F,G){var V=this;return _.I(function(J){vrd(V.galCache,C,G);return J.return(V.galService.deleteLink({serviceId:C,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:F,linkName:G}).then(function(){return!0}))})};var T3M=function(C,F){var G=this;this.validator=C;this.msgHandler=F;this.closedPopupTimeout=this.JSC$19692_rejectCb=this.JSC$19692_resolveCb=this.popup=null;this.JSC$19692_receiveMessage=function(V){if(V!==null&&(V=V.event_,V.source===G.popup)){var J=V.data;if(G.validator(J,V.origin)){var b;(b=G.msgHandler)!=null&&b.call(G,J)||(G.JSC$19692_resolveCb!==null&&G.JSC$19692_resolveCb(J),Yz3(G))}}}};
T3M.prototype.open=function(C,F){var G=this;this.popup!==null&&orW(this);return new Promise(function(V,J){G.JSC$19692_resolveCb=V;G.JSC$19692_rejectCb=J;G.popup=_.Cv(window,C,"",F);_.IP(window,"message",G.JSC$19692_receiveMessage,!1,G);rLr(G)})};
var orW=function(C,F){C.JSC$19692_rejectCb!==null&&C.JSC$19692_rejectCb(F);Yz3(C)},Yz3=function(C){C.closedPopupTimeout&&(C.closedPopupTimeout.cancel(),C.closedPopupTimeout=null);
C.popup&&C.popup.close();_.Hd(window,"message",C.JSC$19692_receiveMessage,!1,C);C.popup=null;C.JSC$19692_resolveCb=null;C.JSC$19692_rejectCb=null},rLr=function(C){C.closedPopupTimeout=_.S0m(100).then(function(){C.popup?C.popup.closed?KFW(C):rLr(C):orW(C,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},KFW=function(C){C.closedPopupTimeout=_.S0m(100).then(function(){orW(C,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var Dis=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),p3x=function(C,F,G,V,J,b,z,Q,E,t){var k=this;this.serviceId=C;this.sessionId=F;this.galService=G;this.oauthDetails=V;this.galLogger=J;this.interactionMode=b;this.redirectServiceUrl=z;this.consentLanguageKeys=Q;this.dynamicUrlParameters=E;this.partnerConfigMinReadTimestamp=t;this.started=!1;this.JSC$19698_dataValidator=function(U,
H){var l=Dis.has(H);l||k.redirectServiceUrl===void 0||(l=k.redirectServiceUrl===H);return l?U.sentinel==="gdi":!1}};
p3x.prototype.complete=function(){var C=this,F;return _.I(function(G){if(C.interactionMode!==1)return G.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));F=H2.getRedirectStateFromUri();return F===null?G.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):G.return(mir(C,F))})};
p3x.prototype.start=function(){var C=this,F;return _.I(function(G){if(C.started)return G.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.a3(C.oauthDetails,1))return G.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(C.interactionMode===1)return H2.setLocation(_.a3(C.oauthDetails,1)),G.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));C.started=!0;C.galLogger.logStateTransition(5);
F=H2.getPostMessagePopup(C.JSC$19698_dataValidator);return G.return(F.open(_.a3(C.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(V){C.started=!1;var J=C.galLogger;if((V==null?void 0:V.error)!==void 0)throw J.logInternalEvent(59),Error("uk");if((V==null?void 0:V.redirect_state)===void 0)throw J.logInternalEvent(131),Error("vk");return mir(C,V.redirect_state)}).catch(function(V){C.started=
!1;
return V.errorCode!==void 0?{statusCode:V.errorCode,statusMessage:V.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var mir=function(C,F){return _.I(function(G){return G.return(CJl(C.galService,{serviceId:C.serviceId,sessionId:C.sessionId,dynamicUrlParameters:C.dynamicUrlParameters,redirectState:F,consentLanguageKeys:C.consentLanguageKeys,partnerConfigMinReadTimestamp:C.partnerConfigMinReadTimestamp}).then(function(V){var J={statusCode:1,link:MnM(V.getLink())};O5t(_.bg(V,3))!==void 0&&(J.callerState=O5t(_.bg(V,3)));C.galLogger.logInternalEvent(134);return J}))})},H2={getPostMessagePopup:function(C){return new T3M(C)},
getRedirectStateFromUri:function(){var C=_.mg(H2.getLocation()).fragment_;return(new _.Jc(C)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(C){_.kOf(window.location,_.Ph(C))},
createOAuthFlow:function(C,F){return new p3x(C.serviceId,C.sessionId,C.galService,F,C.galLogger,C.interactionMode,C.redirectServiceUrl,C.consentLanguageKeys,C.dynamicUrlParameters,C.partnerConfigMinReadTimestamp)}};var jYr=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(jYr,_.b0);var FwU=_.Z0(jYr);var GDh=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),VHs=function(C,F,G,V,J,b,z,Q,E){var t=this;this.serviceId=C;this.sessionId=F;this.galService=G;this.gsiWebFlowDetails=V;this.colorScheme=J;this.showCloseOption=b;this.galLogger=z;this.interactionMode=Q;this.redirectServiceUrl=E;this.started=!1;this.JSC$19710_dataValidator=function(k,U){var H=GDh.has(U);H||t.redirectServiceUrl===
void 0||(H=t.redirectServiceUrl===U);return H?k.sentinel==="gal":!1};
this.logEventProcessor=function(k){return k.result?(k=kbt(k.result))?UGL(t.galLogger,k):!1:!1}};
VHs.prototype.complete=function(){var C=this,F,G;return _.I(function(V){if(C.interactionMode!==1)return V.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));F=l2.getRedirectStateFromUri();if(F===void 0)return C.galLogger.JSC$19650_logErrorEvent(131),V.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return G=iqt(C,F),V.return(JYh(C,G))}catch(J){return V.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
VHs.prototype.start=function(){var C=this,F;return _.I(function(G){if(C.started)return G.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.a3(C.gsiWebFlowDetails,1))return G.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(C.interactionMode===1)return l2.setLocation($73(C,_.a3(C.gsiWebFlowDetails,1))),G.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
C.started=!0;F=l2.getPostMessagePopup(C.JSC$19710_dataValidator,C.logEventProcessor);return G.return(F.open($73(C,_.a3(C.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(V){C.started=!1;if((V==null?void 0:V.result)===void 0)throw C.galLogger.JSC$19650_logErrorEvent(131),Error("vk");V=iqt(C,V.result);return JYh(C,V)}).catch(function(V){C.started=!1;
return V.errorCode!==void 0?{statusCode:V.errorCode,statusMessage:V.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var $73=function(C,F){C=["result_channel",C.interactionMode===1?"2":"1","color_scheme",HZM(C.colorScheme),"show_close_option",C.showCloseOption];return Yvt(F,C)},JYh=function(C,F){if(F!==null&&_.Ji(F,kQ,2)){var G,V=F==null?void 0:(G=_.aa(F,kQ,2))==null?void 0:_.kL(G,2);
V&&C.galLogger.JSC$19650_logErrorEvent(ZZW(V));return eS8(_.aa(F,kQ,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 C.galService.getLink({serviceId:C.serviceId,sessionId:C.sessionId,consistencyKey:_.a3(F,1)}).then(function(J){J=MnM(J);C.galLogger.logInternalEvent(134);return{statusCode:1,link:J}})},iqt=function(C,F){F=FwU(F);
if(!_.Ji(F,kQ,2)&&_.a3(F,1)==="")throw C.galLogger.JSC$19650_logErrorEvent(5),Error("wk");return F},l2={getPostMessagePopup:function(C,F){return new T3M(C,F)},
getRedirectStateFromUri:function(){return _.CB(_.mg(l2.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(C){_.kOf(window.location,_.Ph(C))},
createStreamlinedFlow:function(C,F){return new VHs(C.serviceId,C.sessionId,C.galService,F,C.colorScheme,C.showCloseOption,C.galLogger,C.interactionMode,C.redirectServiceUrl)}};var gJr=function(){var C=_.gBI("GAL");this.storage=C?new _.eP(C):null};
gJr.prototype.getSession=function(C){if(this.storage!==null)try{var F=this.storage.get("SAVED_SESSION");if(F===void 0)return null;if(F.serviceId===C)return F}catch(G){}return null};var bqU=function(){};
_.O(bqU,xix);bqU.prototype.logStateTransition=function(){};
bqU.prototype.logInternalEvent=function(){};
bqU.prototype.JSC$19650_logErrorEvent=function(){};var nHs=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(nHs,_.b0);nHs.prototype.getCompletionUrl=function(){return _.a3(this,15)};var qc=function(C,F,G,V,J,b){this.serviceId=C;this.environment=F;this.sessionId=G;this.colorSchemeSelected=V;this.colorThemeDisplayed=J;this.JSC$19723_transport=b;this.currentState=1};
_.O(qc,xix);qc.prototype.logStateTransition=function(C){var F=usd(this);F=_.kx(F,3,this.currentState);F=_.kx(F,1,C);this.currentState=C;C=j53(1);this.dispatch(F,C)};
qc.prototype.logInternalEvent=function(C){C=j53(C);this.dispatch(usd(this),C)};
qc.prototype.JSC$19650_logErrorEvent=function(C){var F=usd(this);F=_.kx(F,1,10);C=j53(C);this.dispatch(F,C)};
var usd=function(C){var F=new nHs;F=_.kx(F,1,C.currentState);F=_.fA(F,7,C.serviceId);var G,V;var J=((G=window)==null?0:(V=G.location)==null?0:V.href)?_.mg(window.location.href).JSC$10031_domain_:"NO_PACKAGE_NAME";G=_.fA(F,8,J);G=_.kx(G,6,C.environment);G=_.fA(G,5,"100");G=_.kx(G,11,C.colorSchemeSelected);return _.kx(G,12,C.colorThemeDisplayed)};
qc.prototype.dispatch=function(C,F){F===void 0&&(F=new _.bT);var G=F;C=C.serialize();G=_.fA(G,8,C);_.f1(G,12,this.sessionId);this.JSC$19723_transport.dispatch(F)};var zal=function(C,F){this.loggerType=C;this.sessionIndex=F!=null?F:0},QYx;
zal.prototype.create=function(C,F,G,V,J){switch(this.loggerType){case 0:return new bqU;case 1:return QYx||(QYx=(new _.Za(555,this.sessionIndex.toString())).build()),new qc(C,F,G,V,J,QYx);default:_.r2(this.loggerType,"unknown logger type")}};var yb=[6,2,3,1],K2U=new Map([[4,1],[1,6],[2,2],[3,3]]),vJL={statusCode:7,statusMessage:"Failed to create flow object"},q4W=function(C,F,G,V,J,b,z,Q,E,t){this.serviceId=C;this.sessionId=F;this.config=G;this.galService=V;this.JSC$19730_linkingSession=J;this.googleScopes=b;this.callerState=z;this.consentLanguageKeys=Q;this.dynamicUrlParameters=E;this.partnerConfigMinReadTimestamp=t;this.currentFlow=0;V=this.JSC$19730_linkingSession;J=new Set;_.Ji(V,eIt,1)&&J.add(1);_.Ji(V,qkW,2)&&_.Ji(V,dGt,6)&&J.add(2);
_.Ji(V,ssL,3)&&_.Ji(V,dGt,6)&&J.add(3);_.Ji(V,ewt,4)&&J.add(6);this.supportedFlows=J;V=G.loggerType;J=G.clientEnvironment;a:{b=G.colorScheme;switch(b){case 0:b=1;break a;case 1:b=2;break a;case 2:b=3;break a;default:_.r2(b)}b=void 0}a:{z=G.colorScheme;z=PNU(z);switch(z){case 0:z=1;break a;case 1:z=2;break a;default:_.r2(z)}z=void 0}this.galLogger=(new zal(V,G.authUser)).create(C,J,F,b,z)},EHM=function(C){return new Promise(function(F){var G,V,J,b,z,Q,E,t,k,U;
return _.I(function(H){switch(H.nextAddress){case 1:G=xG8(C.currentFlow,C.supportedFlows),V=!1,J=new grL(C.JSC$19730_linkingSession,C.config.dataUsageNoticeConfig);case 2:if(G===void 0){H.jumpTo(4);break}_.yy(H,5);var l=J,N=G,S=void 0;V?N===1&&(S=l.displayInfoMap.get(2)):N===2||N===3?S=l.displayInfoMap.get(1):N===1&&(S=l.displayInfoMap.get(3));b=S?S:[];z=C.consentLanguageKeys;Q=_.u(b);E=Q.next();case 7:if(E.done)return C.currentFlow=G,H.yield(hIs(Iws(C,z)),11);t=E.value;return H.yield(NEW(t,C.config.dataUsageNoticeConfig.uiAdapter,
C.config.colorScheme,C.galLogger),10);case 10:k=H.yieldResult;if(k.statusCode!==1)return RIx(C.serviceId),C.currentFlow=0,F(UO({statusCode:k.statusCode,statusMessage:k.statusMessage},C.callerState)),H.return();k.consentLanguageKeys!==void 0&&(z=k.consentLanguageKeys);E=Q.next();H.jumpTo(7);break;case 11:U=H.yieldResult;if(U.statusCode!==10)return U.statusCode!==6&&(RIx(C.serviceId),C.currentFlow=0),U.statusCode!==1&&C.callerState!==void 0&&(U.callerState=C.callerState),F(U),H.return();_.Gn(H,6);break;
case 5:_.wa(H);case 6:G=xG8(C.currentFlow,C.supportedFlows);V=!0;H.jumpTo(2);break;case 4:RIx(C.serviceId),C.currentFlow=0,F(UO({statusCode:12,statusMessage:"Linking failed"},C.callerState)),_.S9(H)}})})},oJU=function(C,F,G){C.currentFlow=F;
return cMr(Iws(C,G)).then(function(V){return V.statusCode===10&&C.config.interactionMode===1&&xG8(C.currentFlow,C.supportedFlows)!==void 0?EHM(C):V})},Iws=function(C,F){return{flowParams:{serviceId:C.serviceId,
sessionId:C.sessionId,galService:C.galService,galLogger:C.galLogger,interactionMode:C.config.interactionMode,redirectServiceUrl:C.config.redirectServiceUrl,colorScheme:C.config.colorScheme,consentLanguageKeys:F,dynamicUrlParameters:C.dynamicUrlParameters,showCloseOption:C.config.showCloseOption,partnerConfigMinReadTimestamp:C.partnerConfigMinReadTimestamp},currentFlow:C.currentFlow,config:C.config,session:C.JSC$19730_linkingSession,googleScopes:C.googleScopes,callerState:C.callerState}};var pBs=function(C,F){this.config=C;this.galService=F.getService();this.JSC$19743_galRepository=F.JSC$19761_galRepository};
pBs.prototype.getLink=function(C,F){return Wwr(this,C,F)};
var Wwr=function(C,F,G){return C.JSC$19743_galRepository.getLink({serviceId:F,scopes:void 0,capabilities:void 0,linkName:G}).then(function(V){return{statusCode:1,link:V}}).catch(function(V){return{statusCode:DGd(V.code),
statusMessage:V.message}})};
pBs.prototype.deleteLink=function(C,F){return this.JSC$19743_galRepository.deleteLink(C,this.config.accountLinkingEntryPoint,F).then(function(){return{statusCode:1}}).catch(function(G){return{statusCode:DGd(G.code),
statusMessage:G.message}})};
pBs.prototype.startLinkingSession=function(C){var F=C.serviceId;var G=C.sessionId;return P5s({serviceId:F,sessionId:G!==void 0?G:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:C.loginHint,callerState:C.callerState,consentLanguageKeys:C.consentLanguageKeys,linkName:C.linkName,dynamicUrlParameters:C.dynamicUrlParameters,partnerConfigMinReadTimestamp:C.partnerConfigMinReadTimestamp})};var PJ=function(C,F,G,V,J,b,z){this.apiKey=F;this.authUser=G;this.oauthToken=V;this.bucket=J;this.locale=b;this.galSdkEventHandler=z;if(V===void 0){if(F===void 0)throw Error("xk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new w33(C)};
PJ.prototype.deleteLink=function(C){var F=C.serviceId;var G=C.sessionId;var V=C.accountLinkingEntryPoint;var J=C.linkName;var b=this,z;return _.I(function(Q){var E=(new vJ).setHeader(b.getHeader(G));var t=tHM({serviceId:F,linkName:J});E=_.OL(E,2,t);z=_.N5(E,3,V);return Q.return(b.makeRequest(b.galServiceClient.deleteLink,z,[1,3],[2,4]))})};
var CJl=function(C,F){var G=F.serviceId;var V=F.sessionId;var J=F.dynamicUrlParameters;var b=F.redirectState;var z=F.consentLanguageKeys;var Q=F.partnerConfigMinReadTimestamp;var E;return _.I(function(t){var k=(new cJ).setHeader(C.getHeader(V,J));k=_.L3(k,2,G);E=_.L3(k,4,b);z!==void 0&&_.L3(E,5,z);Q!==void 0&&_.OL(E,6,Q);return t.return(C.makeRequest(C.galServiceClient.JSC$19629_finishOAuth,E,[1,3],[2,4]))})};
PJ.prototype.getLink=function(C){var F=C.serviceId;var G=C.sessionId;var V=C.scopes;var J=C.capabilities;var b=C.consistencyKey;var z=C.linkName;var Q=this,E;return _.I(function(t){var k=(new AX).setHeader(Q.getHeader(G)),U=tHM({serviceId:F,scopes:V,capabilities:J,linkName:z});E=_.OL(k,2,U);b!==void 0&&(k=NVr(),k=_.L3(k,2,b),_.OL(E,3,k));return t.return(Q.makeRequest(Q.galServiceClient.getLink,E,[1,3],[2,4]))})};
var AMs=function(C,F){var G=F.serviceId;var V=F.sessionId;var J=F.googleScopes;var b=F.consistencyKey;var z;return _.I(function(Q){var E=(new hX).setHeader(C.getHeader(V));E=_.L3(E,2,G);var t=Array.from(J.values());E=_.CT(E,3,t,_.y8);t=NVr();t=_.L3(t,2,b);z=_.OL(E,4,t);return Q.return(C.makeRequest(C.galServiceClient.JSC$19629_depositGoogleCredential,z,[1,3],[2,4]))})};
PJ.prototype.startLinkingSession=function(C){var F=C.serviceId;var G=C.sessionId;var V=C.scopes;var J=C.capabilities;var b=C.loginHint;var z=C.supportedFlows;var Q=C.completionUrl;var E=C.usePingPong;var t=C.twoWayLinking;var k=C.accountLinkingEntryPoint;var U=C.callerState;var H=C.consentLanguageKeys;var l=C.googleScopes;var N=C.dataUsageNoticeConfig;var S=C.linkName;var f=C.dynamicUrlParameters;var c=C.partnerConfigMinReadTimestamp;var A=this,T,P;return _.I(function(g){if(J!==void 0&&V!==void 0)throw Error("tk");
var r=(new Rw3).setHeader(A.getHeader(G,f));T=_.L3(r,2,F);S!==void 0&&_.L3(T,14,S);if(J!==void 0){r=T;var C9=Array.from(J.values());_.CT(r,5,C9,_.y8)}else V!==void 0&&(r=T,C9=Array.from(V.values()),_.CT(r,3,C9,_.y8));Q!==void 0&&_.L3(T,6,Q);E!==void 0&&_.k6(T,15,E);z!==void 0&&(r=T,C9=Array.from(z.values()),_.CT(r,4,C9,_.Jl));if(t!==void 0){if(t&&(!l||l.size===0))throw Error("yk");_.k6(T,8,t)}k!==void 0&&_.N5(T,9,k);b!==void 0&&_.L3(T,13,b);U!==void 0&&(r=T,C9=(new TextEncoder).encode(U),_.jS(r,12,
_.fP(C9,!1),_.LP()));H!==void 0&&_.L3(T,16,H);c!==void 0&&_.OL(T,18,c);if(N!==void 0&&N.size>0||l!==void 0&&l.size>0)P=new gpr,l!==void 0&&l.size>0&&(r=P,C9=Array.from(l.values()),_.CT(r,1,C9,_.y8)),N!==void 0&&(N.has(0)&&_.sLE(P,2,_.Jl,1,_.$_),N.has(1)&&_.sLE(P,2,_.Jl,2,_.$_)),_.OL(T,17,P);return g.return(A.makeRequest(A.galServiceClient.startLinkingSession,T,[1],[2]))})};
PJ.prototype.getMetadata=function(){var C=this,F,G;return _.I(function(V){F={};C.useFpa?(F["X-Goog-Api-Key"]=C.apiKey,F["X-Goog-AuthUser"]=C.authUser!==void 0?C.authUser.toString():"0",(G=_.WmW([]))&&(F.Authorization=G)):F.Authorization="Bearer "+C.oauthToken;C.locale&&(F["accept-language"]=C.locale);return V.return(F)})};
PJ.prototype.makeRequest=function(C,F,G,V){var J=this,b;return _.I(function(z){if(z.nextAddress==1)return z.yield(J.getMetadata(),2);b=z.yieldResult;awd(J,G);return z.return(C.bind(J.galServiceClient)(F,b).finally(function(){awd(J,V)}))})};
var awd=function(C,F){C.galSdkEventHandler!==void 0&&F.forEach(function(G){C.galSdkEventHandler.onEvent(G)})};
PJ.prototype.getHeader=function(C,F){var G=new SA;C=_.jS(G,2,_.bs(C),0);C=_.N5(C,5,3);F=_.CT(C,8,F,_.y8);this.bucket!==void 0&&_.L3(F,1,this.bucket);return F};
var tHM=function(C){var F=C.serviceId;var G=C.scopes;var V=C.capabilities;C=C.linkName;if(V!==void 0&&G!==void 0)throw Error("tk");var J=new yB8;F=_.L3(J,1,F);V!==void 0?(G=Array.from(V.values()),_.CT(F,5,G,_.y8)):G!==void 0&&(G=Array.from(G.values()),_.CT(F,3,G,_.y8));C!==void 0&&_.L3(F,6,C);return F};var mGV=function(C){this.galService=new PJ(C.alsDomain,C.apiKey,C.authUser,C.oauthToken,C.bucket,C.locale,C.galSdkEventHandler);this.JSC$19761_galRepository=new RSL(this.galService)};
mGV.prototype.getService=function(){return this.galService};var kD3=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(kD3,_.b0);var U7d=function(C){var F=new kD3;return _.kx(F,1,C)};
kD3.prototype.setErrorMessage=function(C){return _.fA(this,2,C)};var HqM=[0,_.o3,_.xL,_.o3];var gX=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(gX,_.b0);var lwV=[0,[1,2,3],_.R3,[0,_.n_r,_.FEV,-1],_.R3,[0,xYh,-1],_.Pc];var yYr=[0,_.Ai,1,_.o3,_.xL,-1,1,_.YL,_.f2,_.o3,-1,lwV];var Zqd=[0,_.o3,[0,_.YL,_.f2,[0,_.xL]],_.eX,[0,_.o3,-1]];var EK=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(EK,_.b0);var Ngr=[0,_.xL,_.o3,-2,_.Ai,_.o3,_.Ai,_.o3,-2,1,_.eX];var Oqs=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Oqs,_.b0);var XPl=[0,_.Ai];var wPr=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(wPr,_.b0);var MHV=[0,_.o3,Zqd,XPl,Ngr,yYr];var B83=_.kl(wPr,MHV);var SXr=[0,M$V];var eXV=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(eXV,_.b0);var LwV=[0,[1,3],Pxd,_.o3,Pxd];var Qa=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(Qa,_.b0);var BgW=[0,_.o3];var vHh=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(vHh,_.b0);var I0=function(C){return _.yZ(C,kD3,2,z5)},fw8=function(C){var F=new vHh;
return _.X6(F,2,z5,C)},z5=[1,
2];var har=[0,z5,_.R3,BgW,_.R3,HqM,_.gn,LwV,1,_.o3,SXr];var cY3=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(cY3,_.b0);var eaU=function(C){var F=new cY3;return _.X6(F,3,AYs,C)},AYs=[2,
3];var d7s=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(d7s,_.b0);var x7t=function(C,F){return _.OL(C,2,F)},sYU=function(C,F){return _.OL(C,8,F)},qXd=function(C,F){return _.OL(C,3,F)};var PJx=[0,_.o3,har,MHV,_.pk,[0,[5,6,7],[0,_.o3,-2],[0,_.Ai,_.o3,_.xL],[0,lwV],[0,_.xL,_.o3,-1,_.Dn,_.o3],_.R3,[0,[0,_.Ai],_.o3,-1],_.R3,[0,[3,4],_.o3,-1,_.R3,[0,[0,_.o3,_.eX]],_.R3,[0,[0,[0,[1,2,3],_.R3,[0],_.R3,[0],_.R3,[0]]]]],_.R3,[0,_.o3]],_.pk,-1,[0,AYs,_.o3,_.R3,BgW,_.R3,HqM,_.gn,LwV,[0,M$V]]];var gHt=_.kl(d7s,PJx),Rad=_.Hh(PJx);var YXx=function(){_.hV.call(this)};
_.O(YXx,_.hV);YXx.prototype.init=function(){};
new YXx;var Tgl=_.h6(["data-"]),oHV=_.h6(["aria-"]),rYW=_.h6(["aria-"]),R0=function(C,F){this.isLatencyMeasurementExperiment=C===void 0?!1:C;this.enableDialogA11yFix=F===void 0?!1:F;this.win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.pju(_.VT.location.href)},fn8=function(C,F){C.onConsentPrimitiveShownCallback=F},Kwr=function(C,F){return C.overriddenIframeLoadTimeout?C.overriddenIframeLoadTimeout:F!==void 0?F:5E3},c8d=function(C){if(C.prewarmPromise!==void 0)return C.prewarmPromise;
C.prewarmPromise=new Promise(function(F,G){Yh(C,1);D73(C,pP8(C,!0),m7L(C));C.iframe?C.prewarmChannel||Cur(C,C.iframe,F):G(Error("zk"))});
C.prewarmPromise.finally(function(){C.prewarmPromise=void 0});
return C.prewarmPromise};
R0.prototype.showPrimitive=function(){var C=this;if(this.consentPromise!==void 0)return this.consentPromise;var F=Date.now();jds(this,F);this.consentPromise=new Promise(function(G,V){Yh(C,0,F);var J=C.isDarkTheme();C.isLatencyMeasurementExperiment||C.initialLoadingStrategy===1||C.initialLoadingStrategy===2||(C.loadingBar||(C.loadingBar=G3L(getComputedStyle(document.body).direction==="rtl",J),C.loadingBar.style.position="fixed",C.loadingBar.style.zIndex="15000"),document.body.appendChild(C.loadingBar));
D73(C,pP8(C),m7L(C));C.iframe?C.channel||FVU(C,C.iframe,G,V):(GLt(C),V(Error("zk")))});
this.consentPromise.finally(function(){C.consentPromise=void 0});
return this.consentPromise};
var FVU=function(C,F,G,V){var J,b;_.I(function(z){switch(z.nextAddress){case 1:Yh(C,3);J=!1;setTimeout(function(){if(!J){GLt(C);V6W(C);iHl(C);var Q=U7d(7).setErrorMessage("Timeout connecting to iframe");G(sYU(x7t(new d7s,fw8(Q)),eaU(Q)))}},Kwr(C,Jal(C)));
if(!C.prewarmPromise){z.jumpTo(2);break}_.yy(z,3);return z.yield(C.prewarmPromise,5);case 5:_.Gn(z,2);break;case 3:_.wa(z),b=U7d(4).setErrorMessage("Error while prewarming."),G(sYU(x7t(new d7s,fw8(b)),eaU(b)));case 2:C.prewarmChannel&&C.prewarmChannel.send(Rad(qXd(new d7s,C.consentPrimitiveRequest))),C.channel=_.p2({destination:C.win,iframe:F,origin:$SL(C),channelName:"cpw",onEstablished:function(){J=!0;GLt(C);C.isLatencyMeasurementExperiment||(C.JSC$19790_previousBodyOverflow=document.body.style.overflow,
C.JSC$19790_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,C.JSC$19790_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",C.enableDialogA11yFix&&window.addEventListener("blur",C.focusChangeListener));var Q=C.iframe;Q.style.bottom="0";Q.style.position="fixed";Q.style.right="0";Q.style.border="none";Q.style.left="0";Q.style.top=
"0";Q.style.zIndex="5000";Q.style.pointerEvents="";Q.style.visibility="";C.initialLoadingStrategy===2||C.initialLoadingStrategy===3?Yh(C,4):Yh(C,6);var E;(E=C.onConsentPrimitiveShownCallback)==null||E.call(C)},
onMessage:function(Q){Q=gHt(Q.data);switch(_.kL(Q,1)){case 1:V6W(C);var E=VVM(_.aa(Q,_.Up,7));E&&(C.initialLoadingStrategy!==2&&C.initialLoadingStrategy!==3||Yh(C,6,E),Yh(C,5,E));if(E=VVM(_.aa(Q,_.Up,6)))Yh(C,7,E),Yh(C,8);var t,k;((t=_.aa(Q,vHh,2))==null?void 0:_.ug(t,z5))!==0&&((k=_.aa(Q,cY3,8))==null?void 0:_.ug(k,AYs))!==0||V(Error("Ak"));G(Q);break;case 2:iHl(C)}}}),_.S9(z)}})},Cur=function(C,F,G){C.prewarmChannel=_.p2({destination:C.win,
iframe:F,origin:$SL(C),channelName:"pwcp",onEstablished:function(){Yh(C,2);G()}})},$SL=function(C){var F=_.vh(C.src).toString();
return F&&F.indexOf("://")<0&&F.indexOf("//")!==0?C.origin:_.pju(F)},pP8=function(C,F){F=F===void 0?!1:F;
var G,V=new Map([["origin",C.origin],["hl",(G=bHl(C))!=null?G:null]]);F&&V.set("pw","1");F=_.u([["cpr",C.consentPrimitiveRequest.serialize()]]);for(G=F.next();!G.done;G=F.next()){var J=_.u(G.value);G=J.next().value;J=J.next().value;V.set(G,J)}C.isDarkTheme()&&V.set("color_scheme","dark");return _.Us(C.src,V)},GLt=function(C){C.isLatencyMeasurementExperiment||C.loadingBar&&document.body.removeChild(C.loadingBar)};
R0.prototype.getSrc=function(){var C=_.bH(this.origin),F;var G=(F=_.aa(this.consentPrimitiveRequest,Oqs,3))==null?void 0:_.Wk(F,1);F="consent.google.com";G=G?"/u/"+encodeURIComponent(G.toString()):"";(C==null?0:C.endsWith("youtube.com"))?F="consent.youtube.com":(C=C==null?void 0:C.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(F="consent.google."+((C[1]?"co.":"")+encodeURIComponent(C[2])));return _.LT("https://"+F+"/signedin"+G+"/landing")};
var D73=function(C,F,G){C.iframe||(C.iframe=document.createElement("iframe"),C.iframe.style.width="100%",C.iframe.style.height="100%",G!==112496729&&(C.iframe.style.colorScheme="auto"),C.isLatencyMeasurementExperiment&&(C.iframe.style.display="none"),_.mY(C.iframe,F),C.iframe.setAttribute("jsname","C5o1O"),nD8(C.iframe),document.body.appendChild(C.iframe))},nD8=function(C){C.style.bottom="-200vh";
C.style.position="fixed";C.style.right="-200vw";C.style.border="";C.style.left="";C.style.top="";C.style.zIndex="";C.style.pointerEvents="none";C.style.visibility="hidden"},V6W=function(C){C.iframe&&(C.isLatencyMeasurementExperiment||(C.JSC$19790_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=C.JSC$19790_previousHtmlOverscroll),C.JSC$19790_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=C.JSC$19790_previousBodyOverscroll),C.JSC$19790_previousBodyOverflow!==
void 0&&(document.body.style.overflow=C.JSC$19790_previousBodyOverflow),C.enableDialogA11yFix&&u9U(C,!1)),nD8(C.iframe))};
R0.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(u9U(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var u9U=function(C,F){var G,V,J=(G=C.iframe)==null?void 0:(V=G.parentElement)==null?void 0:V.children;if(J)for(G=0;G<J.length;G++)V=J[G],V!==C.iframe&&(F?(V.hasAttribute("aria-hidden")&&_.bi([_.Wj(Tgl)],V,"data-old-aria-hidden",V.getAttribute("aria-hidden")),_.bi([_.Wj(oHV)],V,"aria-hidden","true")):(V.removeAttribute("aria-hidden"),V.hasAttribute("data-old-aria-hidden")&&(_.bi([_.Wj(rYW)],V,"aria-hidden",V.getAttribute("data-old-aria-hidden")),V.removeAttribute("data-old-aria-hidden"))))},Yh=function(C,
F,G){var V;
(V=C.latencyCallback)==null||V.call(C,{latencyType:F,timestampEpochMillis:G!=null?G:Date.now()})};var zbW=function(C,F,G){R0.call(this,F,G===void 0?!1:G);this.consentPrimitiveRequest=C;C=bHl(this);_.prU(C);this.src=this.getSrc();var V;this.initialLoadingStrategy=(V=_.aa(this.consentPrimitiveRequest,EK,4))==null?void 0:_.kL(V,4)},Qdd;
_.O(zbW,R0);var vkr=function(C){var F=_.y("enable_primitive_dialog_aria_hide_siblings");C={request:C,enableDialogA11yFix:F===void 0?!1:F};Qdd||(Qdd=new zbW(C.request,C.isLatencyMeasurementExperiment||_.kL(C.request,1)===2,C.enableDialogA11yFix));return Qdd},bHl=function(C){var F;
return(F=_.aa(C.consentPrimitiveRequest,EK,4))==null?void 0:_.a3(F,1)},jds=function(C,F){if(!_.Ji(C.consentPrimitiveRequest,gX,5)){var G=C.consentPrimitiveRequest,V=new gX;
_.OL(G,5,V)}var J;if((J=_.aa(C.consentPrimitiveRequest,gX,5))==null||_.hys(_.ig(J,8))==null){var b;(b=_.aa(C.consentPrimitiveRequest,gX,5))!=null&&_.f1(b,8,F)}},m7L=function(C){var F;
return(F=_.aa(C.consentPrimitiveRequest,gX,5))==null?void 0:_.Wk(F,1)};
zbW.prototype.isDarkTheme=function(){var C;return((C=_.aa(this.consentPrimitiveRequest,EK,4))==null?void 0:_.kL(C,2))===2};
var Jal=function(C){var F;return((F=_.aa(C.consentPrimitiveRequest,EK,4))==null?void 0:_.Wk(F,5))||void 0},iHl=function(C){C.channel=void 0;
C.prewarmChannel=void 0;C.iframe&&(document.body.contains(C.iframe)&&document.body.removeChild(C.iframe),C.iframe=void 0);Qdd=void 0},A8U=function(C){return R0.prototype.showPrimitive.call(C).then(function(F){return _.aa(F,vHh,2)})};for(var T5={},IYl=(T5[64]="ma",T5[73]="ogb",T5[89]="cr",T5[21]="test",T5[0]="unkn",T5[137]="con",T5[155]="hl",T5[78]="yt",T5[171]="lp",T5[172]="ap",T5[177]="amo",T5[178]="pqe",T5[74]="gg",T5[1]="gm",T5[140]="am",T5[193]="sc",T5),ED8=_.u(Object.keys(IYl)),WVW=ED8.next();!WVW.done;WVW=ED8.next());var t6L=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(t6L,_.b0);var aYs=[0,[2,3,4],_.o3,dYx,Pxd,_.Pc];var kLL=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(kLL,_.b0);var USM=_.kl(kLL,[0,_.rn,_.xL,_.o3,_.xL,_.o3,aYs]);var HHh=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(HHh,_.b0);HHh.prototype.getCommand=function(){return _.kL(this,1)};
var lYM=function(){var C=new HHh;return _.N5(C,1,0)};var ya8=_.Hh([0,_.rn,_.xL,[0,_.o3,_.xL,-1]]);var ZHh=new _.EW("s"),Nfl=new _.EW("t"),OHr=new _.EW("u"),Xfd=new _.EW("v"),wf_=function(C,F,G){_.tP.call(this,ZHh);this.mediaKey=C;this.photoUrl=F;this.photoSource=G};
_.O(wf_,_.tP);var M6U=function(){_.tP.call(this,Nfl)};
_.O(M6U,_.tP);var SRt=function(C){C=C===void 0?!1:C;_.tP.call(this,OHr);this.isError=C};
_.O(SRt,_.tP);var LVM=function(){_.tP.call(this,Xfd)};
_.O(LVM,_.tP);var Bf_=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,cat=function(C){if(typeof C=="string"){if(C.charAt(0)==".")return vDr(C.substr(1));if(C.charAt(0)=="["){var F=Bf_.exec(C);C=C.indexOf("=")==-1?void 0:F[3];return fYM(F[1],C)}return hb8(C)}return C},vDr=function(C){return function(F){return F.getAttribute&&_.Pd(F,C)}},fYM=function(C,F){return function(G){return F!==void 0?G.getAttribute&&G.getAttribute(C)==F:G.hasAttribute&&G.hasAttribute(C)}},hb8=function(C){C=C.toUpperCase();
return function(F){return(F=F.tagName)&&F.toUpperCase()==C}},Aa_=function(){return!0};var o0=function(C,F){this.JSC$19818_key_=C;this.JSC$19818_value_=F},ebW=function(C){throw Error("Bk`"+C.JSC$19818_key_);
},dSt=function(C,F){return new TypeError("Ck`"+F+"`"+C.JSC$19818_key_+"`"+C.JSC$19818_value_+"`"+typeof C.JSC$19818_value_)};
o0.prototype.string=function(C){return arguments.length==0?xSU(this):sdl(this,C)};
var sdl=function(C,F){var G;return(G=qRW(C))!=null?G:F},xSU=function(C){var F=qRW(C);
F===null&&ebW(C);return F},qRW=function(C){var F=C.JSC$19818_value_;
if(F==null)return null;if(typeof F==="string")return F;throw dSt(C,"string");};
o0.prototype.bool=function(C){if(arguments.length==0){var F=this.optionalBool();F===null&&ebW(this)}else{var G;F=(G=this.optionalBool())!=null?G:C}return F};
o0.prototype.optionalBool=function(){var C=this.JSC$19818_value_;if(C==null)return null;if(typeof C==="boolean")return C;if(typeof C==="string"){C=C.toLowerCase();if(C==="true"||C==="1")return!0;if(C==="false"||C==="0")return!1}throw dSt(this,"boolean");};
o0.prototype.number=function(C){if(arguments.length==0){var F=PuL(this);F===null&&ebW(this)}else F=gDs(this,C);return F};
var gDs=function(C,F){var G;return(G=PuL(C))!=null?G:F},PuL=function(C){var F=C.JSC$19818_value_;
if(F==null)return null;if(typeof F==="number")return F;if(typeof F==="string"){var G=Number(F);if(!isNaN(G)&&(G!==0||F.trim().length!==0))return G}throw dSt(C,"number");};
o0.prototype.toString=function(){return xSU(this)};
o0.prototype.enum=function(C,F){var G=!0,V=void 0,J;for(J in C){var b=C[J];G&&(G=!1,V=typeof b==="number"?gDs(this,F):sdl(this,F));if(b==V)return V}JSON.stringify(C);return V};
o0.prototype.array=function(C){if(arguments.length==0){var F=Rbs(this);F===null&&ebW(this);return F}F=Rbs(this);return F==null?C:F};
var Rbs=function(C){var F=C.JSC$19818_value_;if(F==null)return null;Array.isArray(F)||(typeof F!=="string"?F=[F]:(F=F.trim(),F=F==""?[]:F.split(",").map(function(G){return G.trim()})));
return YRr(C,F)},YRr=function(C,F){var G=C.JSC$19818_key_+"[";
return Array.from(F,function(V,J){return new o0(G+J+"]",V)})};
o0.prototype.object=function(C){var F=this.JSC$19818_value_;if(F==null)return C===void 0&&ebW(this),C;if(typeof F==="object"&&F.constructor===Object){C={};var G=this.JSC$19818_key_+".",V;for(V in F)C[V]=new o0(G+V,F[V]);return C}throw dSt(this,"object");};var rX=function(C){this.list_=TfL(C)},TfL=function(C){if(C instanceof rX)C=C.list_;
else if(C[0]instanceof rX){for(var F=new Set,G=0;G<C.length;G++)for(var V=_.u(C[G].list_),J=V.next();!J.done;J=V.next())F.add(J.value);C=F}return[].concat(_.da(C))};
_.n=rX.prototype;_.n.each=function(C,F,G){((G===void 0?0:G)?l5U:_.F$)(this.list_,C,F);return this};
_.n.size=function(){return this.list_.length};
_.n.isEmpty=function(){return this.list_.length===0};
_.n.get=function(C){return this.list_[C]||null};
_.n.el=function(){return this.list_[0]||null};
_.n.map=function(C,F){return _.ss(this.list_,C,F)};
_.n.equals=function(C){return this===C||_.K9(this.list_,C.list_)};
_.n.first=function(){return this.list_.length==0?null:new Ks(this.list_[0])};
_.n.last=function(){return this.list_.length==0?null:new Ks(this.list_[this.list_.length-1])};
_.n.find=function(C){var F=[];this.each(function(G){G=G.querySelectorAll(String(C));for(var V=0;V<G.length;V++)F.push(G[V])});
return new rX(F)};
_.n.parent=function(){var C=[];this.each(function(F){(F=F.parentElement||null)&&!_.sB(C,F)&&C.push(F)});
return new rX(C)};
_.n.children=function(){var C=[];this.each(function(F){F=_.Lk(F);for(var G=0;G<F.length;G++)C.push(F[G])});
return new rX(C)};
_.n.filter=function(C){C=_.TC(this.list_,cat(C));return new rX(C)};
_.n.closest=function(C){var F=[],G=cat(C),V=function(J){return _.$w(J)&&G(J)};
this.each(function(J){(J=_.Yf(J,V,!0))&&!_.sB(F,J)&&F.push(J)});
return new rX(F)};
_.n.next=function(C){return oDh(this,_.Wiu,C)};
_.n.prev=function(C){return oDh(this,g0M,C)};
var oDh=function(C,F,G){var V=[];var J=G?cat(G):Aa_;C.each(function(b){(b=F(b))&&J(b)&&V.push(b)});
return new rX(V)};
rX.prototype.setClass=function(C){return this.each(function(F){_.sW(F,C)})};
var raU=function(C,F){return C.each(function(G){_.eR(G,F)})},KV8=function(C,F){return C.each(function(G){_.c6(G,F)})};
rX.prototype.toggleClass=function(C,F){return F===!0?raU(this,C):F===!1?KV8(this,C):this.each(function(G){_.Pd(G,C)?_.c6(G,C):_.eR(G,C)})};
rX.prototype.setText=function(C){return this.each(function(F){_.BN(F,C)})};
var DS3=function(C){C.each(function(F){F.removeAttribute("aria-hidden")})};
rX.prototype.getStyle=function(C){if(this.list_.length>0){var F=this.list_[0],G=F.style[_.$6(C)];return typeof G!=="undefined"?G:F.style[_.My8(F,C)]||""}};
rX.prototype.getData=function(C){if(this.list_.length===0)return new o0(C,null);var F=XbM(this.list_[0],C);return new o0(C,F)};
rX.prototype.focus=function(C){try{C?this.el().focus(C):this.el().focus()}catch(F){}return this};
rX.prototype.click=function(){var C=_.gS(this.el());if(C.createEvent){var F=C.createEvent("MouseEvents");F.initMouseEvent("click",!0,!0,C.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(F)}else C=C.createEventObject(),C.clientX=0,C.clientY=0,C.screenX=0,C.screenY=0,C.altKey=!1,C.ctrlKey=!1,C.shiftKey=!1,C.button=0,this.el().fireEvent("onclick",C)};
var DP=function(C,F,G,V){function J(Q,E,t){var k=E;E&&E.parentNode&&(k=E.cloneNode(!0));Q(k,t)}
V=V===void 0?!1:V;if(C.list_.length==1){var b=C.list_[0],z=function(Q){return F(Q,b)};
G instanceof rX?G.each(z,void 0,V):Array.isArray(G)?(V?l5U:_.F$)(G,z):z(G);return C}return C.each(function(Q){G instanceof rX?G.each(function(E){J(F,E,Q)}):Array.isArray(G)?_.F$(G,function(E){J(F,E,Q)}):J(F,G,Q)})};
_.n=rX.prototype;_.n.append=function(C){return DP(this,function(F,G){F&&G.appendChild(F)},C)};
_.n.appendTo=function(C){(new rX([C])).append(this);return this};
_.n.remove=function(){return DP(this,function(C,F){_.So(F)},null)};
_.n.empty=function(){return DP(this,function(C,F){_.w8(F)},null)};
_.n.after=function(C,F){return DP(this,function(G,V){G&&_.SI(G,V)},C,!(F===void 0||F))};
_.n.before=function(C){return DP(this,function(F,G){F&&_.ME(F,G)},C)};
_.n.replaceWith=function(C){return DP(this,function(F,G){F&&_.QRy(F,G)},C)};
_.n.toggle=function(C){return this.each(function(F){_.F5(F,C)})};
_.n.show=function(){return this.toggle(!0)};
_.n.hide=function(){return this.toggle(!1)};
_.n.trigger=function(C,F,G,V){return pfL(this,C,F,G,V)};
var pfL=function(C,F,G,V,J){return C.each(function(b){_.aso(_.gS(b)).triggerWizEventInternal(b,F,G,V,J)})},Ks=function(C,F){C instanceof rX&&(F=C.list_,C=null);
this.list_=TfL(C!=null?[C]:F)};
_.RE(Ks,rX);_.n=Ks.prototype;_.n.children=function(){return new rX(Array.prototype.slice.call(_.Lk(this.list_[0])))};
_.n.each=function(C,F){C.call(F,this.list_[0],0);return this};
_.n.size=function(){return 1};
_.n.el=function(){return this.list_[0]};
_.n.first=function(){return this};var ps=function(C,F){F=F===void 0?window:F;this.hostId=C;this.win=F;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$19829_previousHtmlOverscroll=this.JSC$19829_previousBodyOverscroll=this.JSC$19829_previousBodyOverflow="";this.eventTarget=new _.lT;this.win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},jjs=function(C){var F=
mS3(mS3(mS3(new CWl(78),"po"),"hppp"),"hhc");
F.authUser=Number(_.TF("SESSION_INDEX","0"));F.colorScheme=C;return F};
ps.prototype.getOrigin=function(){return this.origin?this.origin:_.jB(_.C4(_.mA(new _.dz,this.win.location.protocol),this.win.location.hostname),this.win.location.port).toString()};
ps.prototype.getTargetOrigin=function(){return _.jB(_.C4(_.mA(new _.dz,this.scheme),this.domain),this.port)};
ps.prototype.preloadIframe=function(C){var F=this;if(this.iframeLoadPromise===void 0){var G=document.createElement("iframe");this.iframe=G;zNh(G,C);this.iframeLoadPromise=new Promise(function(V,J){var b=!1,z=function(Q){Q.stopPropagation();G.removeEventListener("error",z);G.removeEventListener("securitypolicyviolation",z);J(Error("Dk",{cause:Q}))};
G.addEventListener("error",z);G.addEventListener("securitypolicyviolation",z);setTimeout(function(){b||J(Error("Ek"))},3E4);
Fos(F,G,function(){b=!0;G.removeEventListener("error",z);G.removeEventListener("securitypolicyviolation",z);V()})});
GzM(this);C=this.getTargetOrigin().toString();G.setAttribute("allow","camera "+C+"; display-capture "+C);this.parentElement.appendChild(G)}return this.iframeLoadPromise};
var JK8=function(C,F){var G,V;return _.I(function(J){if(J.nextAddress==1)return G=G3L(getComputedStyle(C.parentElement).direction==="rtl"),C.parentElement.appendChild(G),document.activeElement instanceof HTMLElement&&(C.elementToFocusAfterClose=document.activeElement),_.yy(J,2),J.yield(C.preloadIframe(F),4);if(J.nextAddress!=2){C.parentElement.removeChild(G);C.JSC$19829_previousBodyOverflow=C.parentElement.style.overflow;C.JSC$19829_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
C.JSC$19829_previousBodyOverscroll=C.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";C.parentElement.style.overscrollBehavior="contain";C.parentElement.style.overflow="hidden";var b=C.iframe;b.style.bottom="0";b.style.border="none";b.style.height="100%";b.style.left="0";b.style.position=C.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");
C.opened=!0;VlU(C);return _.Gn(J,0)}V=_.wa(J);C.parentElement.removeChild(G);bYW(C.isDarkTheme());iQ_(C,!1);throw Error("Fk",{cause:V});})},iQ_=function(C,F){F=F===void 0?!0:F;
C.iframe!==void 0&&($Jl(C),document.documentElement.style.overscrollBehavior=C.JSC$19829_previousHtmlOverscroll,C.parentElement.style.overscrollBehavior=C.JSC$19829_previousBodyOverscroll,C.parentElement.style.overflow=C.JSC$19829_previousBodyOverflow,C.elementToFocusAfterClose!==void 0&&(C.elementToFocusAfterClose.focus(),C.elementToFocusAfterClose=void 0),F?GzM(C):(C.parentElement.removeChild(C.iframe),C.iframe=void 0,C.iframeLoadPromise=void 0,C.mainChannel=void 0),C.opened=!1)},$Jl=function(C){C.backgroundElementsAriaHiddenIsNull&&
(DS3(C.backgroundElementsAriaHiddenIsNull),C.backgroundElementsAriaHiddenIsNull=void 0);
C.backgroundElementsAriaHiddenIsFalse&&(C.backgroundElementsAriaHiddenIsFalse.each(function(F){F.setAttribute("aria-hidden","false")}),C.backgroundElementsAriaHiddenIsFalse=void 0);
C.backgroundElementsWithoutInert&&(C.backgroundElementsWithoutInert.each(function(F){F.removeAttribute("inert")}),C.backgroundElementsWithoutInert=void 0)},VlU=function(C){C.backgroundElementsAriaHiddenIsNull=(new Ks(C.iframe.parentElement)).children().filter(function(F){return F.getAttribute("aria-hidden")===null&&F!==C.iframe});
C.backgroundElementsAriaHiddenIsNull.each(function(F){F.setAttribute("aria-hidden","true")});
C.backgroundElementsAriaHiddenIsFalse=(new Ks(C.iframe.parentElement)).children().filter(function(F){return F.getAttribute("aria-hidden")==="false"&&F!==C.iframe});
C.backgroundElementsAriaHiddenIsFalse.each(function(F){F.setAttribute("aria-hidden","true")});
C.backgroundElementsWithoutInert=(new Ks(C.iframe.parentElement)).children().filter(function(F){return!F.hasAttribute("inert")&&F!==C.iframe});
C.backgroundElementsWithoutInert.each(function(F){F.setAttribute("inert","true")})},GzM=function(C){C=C.iframe;
C.style.bottom="-1000px";C.style.position="fixed";C.style.right="-1000px";C.style.border="";C.style.height="";C.style.left="";C.style.top="";C.style.width="";C.style.zIndex="";C.setAttribute("aria-hidden","true");C.setAttribute("aria-modal","false")};
ps.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var CWl=function(C,F){ps.call(this,IYl[C],F);this.options=[];this.style=""};
_.O(CWl,ps);var bQ3=function(C){C.style="youtube";return C},nXL=function(C,F){C.eventTarget.listen(OHr,F);
return C},uuh=function(C,F){C.eventTarget.listen(ZHh,F);
return C},mS3=function(C,F){C.options.push(F);
return C},z$d=function(C){var F=[C.getOrigin()];
C.ancestorOrigins&&F.push.apply(F,_.da(C.ancestorOrigins));var G=new _.dz(C.win.location.href),V=C.startUrl?C.startUrl:C.options.includes("po")?"profile-picture/art":"profile-picture";F=tX(_.F4(C.getTargetOrigin(),V),"origin",F);C.startUrl&&_.jE(F,"startPath",C.startUrl);C.authUser>0&&_.jE(F,"authuser",C.authUser);C.pageId!==void 0&&_.jE(F,"pageId",C.pageId);_.jE(F,"hostId",C.hostId);C.jsMode!==void 0&&_.jE(F,"jsmode",C.jsMode);C.rectangleRatio!==void 0&&_.jE(F,"rectangleRatio",C.rectangleRatio);
C.options.length>0&&_.jE(F,"opts",C.options.join(","));try{for(var J=_.u(["utm_source","utm_medium","utm_campaign","utm_content"]),b=J.next();!b.done;b=J.next()){var z=b.value;_.CB(G,z)&&_.jE(F,z,_.CB(G,z))}var Q,E=(Q=C.hl)!=null?Q:_.CB(G,"hl");E!==void 0&&_.jE(F,"hl",E)}catch(t){if(!(t instanceof URIError))throw t;}C.colorScheme&&_.jE(F,"theme",C.colorScheme);C.style&&_.jE(F,"style",C.style);return F},QjV=function(C,F){C.mainChannel=_.p2({destination:C.win,
iframe:F,origin:C.getTargetOrigin().toString(),channelName:"ow",onMessage:function(G){G=USM(G.data);if(F===C.iframe)switch(_.kL(G,1)){case 1:C.eventTarget.dispatchEvent(new SRt);iQ_(C);break;case 2:C.eventTarget.dispatchEvent(new wf_(_.a3(G,4),_.a3(G,2),_.kL(G,5),_.aa(G,t6L,6)));break;case 0:var V;C.eventTarget.dispatchEvent(new M6U(_.a3(G,2),(V=_.kL(G,3))!=null?V:0));break;case 3:C.eventTarget.dispatchEvent(new SRt(!0));iQ_(C,!1);break;case 4:C.eventTarget.dispatchEvent(new LVM)}}})},Fos=function(C,
F,G){_.p2({destination:C.win,
iframe:F,origin:_.jB(_.C4(_.mA(new _.dz,C.scheme),C.domain),C.port).toString(),channelName:"owi",onMessage:function(V){F===C.iframe&&(G!==void 0&&G(),QjV(C,F),C.opened&&C.mainChannel.send(ya8(lYM())),V.reply(),Fos(C,F))}})};
CWl.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?ps.prototype.preloadIframe.call(this,z$d(this).toString()):this.iframeLoadPromise};
CWl.prototype.openPicker=function(C){var F=this;return _.I(function(G){if(G.nextAddress==1)return F.startUrl=C?C:F.options.includes("po")?"profile-picture/art":"profile-picture",G.yield(JK8(F,z$d(F).toString()),2);if(F.mainChannel){var V=F.mainChannel,J=V.send;var b=lYM();b=_.fA(b,2,F.startUrl);J.call(V,ya8(b))}_.S9(G)})};var IpL=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(IpL,_.b0);_.n=IpL.prototype;_.n.getSize=function(){return ZP(this,1)};
_.n.setSize=function(C){return _.ZW(this,1,C)};
_.n.getWidth=function(){return ZP(this,12)};
_.n.getHeight=function(){return ZP(this,13)};
_.n.setCenterCrop=function(C){return _.UD(this,20,C)};
_.n.getHtml=function(){return _.Ej(this,4)};
_.n.getToken=function(){return _.wG(this,24)};
_.n.setToken=function(C){return _.fA(this,24,C)};
_.n.getBackgroundColor=function(){return ZP(this,87)};
_.n.hasBackgroundColor=function(){return _.nt(_.ig(this,87))!=null};
_.n.getStoryboardLevel=function(){return ZP(this,109)};var mt=function(C){this.JSC$19837_value_=void 0;this.childNodes_={};if(C){var F=_.GfG(C);C=_.pC(C);for(var G=0;G<F.length;G++)this.set(F[G],C[G])}};
mt.prototype.set=function(C,F){EXM(this,C,F,!1)};
mt.prototype.add=function(C,F){EXM(this,C,F,!0)};
var EXM=function(C,F,G,V){for(var J=0;J<F.length;J++){var b=F.charAt(J);C.childNodes_[b]||(C.childNodes_[b]=new mt);C=C.childNodes_[b]}if(V&&C.JSC$19837_value_!==void 0)throw Error("Gk`"+F);C.JSC$19837_value_=G},WoM=function(C,F){for(var G=0;G<F.length;G++)if(C=C.childNodes_[F.charAt(G)],!C)return;
return C};
mt.prototype.get=function(C){return(C=WoM(this,C))?C.JSC$19837_value_:void 0};
mt.prototype.getValues=function(){var C=[];tlr(this,C);return C};
var tlr=function(C,F){C.JSC$19837_value_!==void 0&&F.push(C.JSC$19837_value_);for(var G in C.childNodes_)tlr(C.childNodes_[G],F)};
mt.prototype.getKeys=function(C){var F=[];if(C){for(var G=this,V=0;V<C.length;V++){var J=C.charAt(V);if(!G.childNodes_[J])return[];G=G.childNodes_[J]}aps(G,C,F)}else aps(this,"",F);return F};
var aps=function(C,F,G){C.JSC$19837_value_!==void 0&&G.push(F);for(var V in C.childNodes_)aps(C.childNodes_[V],F+V,G)};
_.n=mt.prototype;_.n.containsKey=function(C){return this.get(C)!==void 0};
_.n.containsValue=function(C){if(this.JSC$19837_value_===C)return!0;for(var F in this.childNodes_)if(this.childNodes_[F].containsValue(C))return!0;return!1};
_.n.clear=function(){this.childNodes_={};this.JSC$19837_value_=void 0};
_.n.remove=function(C){for(var F=this,G=[],V=0;V<C.length;V++){var J=C.charAt(V);if(!F.childNodes_[J])throw Error("Hk`"+C);G.push([F,J]);F=F.childNodes_[J]}C=F.JSC$19837_value_;for(delete F.JSC$19837_value_;G.length>0;)if(V=G.pop(),F=V[0],V=V[1],F.childNodes_[V].isEmpty())delete F.childNodes_[V];else break;return C};
_.n.clone=function(){return new mt(this)};
_.n.getCount=function(){return o0l(this.getValues())};
_.n.isEmpty=function(){return this.JSC$19837_value_===void 0&&_.xf.isEmpty(this.childNodes_)};var tVx=function(){if(!kzl){var C=kzl=new mt,F;for(F in UJ3)C.add(F,UJ3[F])}},kzl,CU=function(C,F){this.types=C;
this.setters=F},UJ3={a:new CU([3,
0],[function(C,F){_.UD(C,21,F)},
function(C,F){_.ZW(C,56,F)}]),
al:new CU([3],[function(C,F){_.UD(C,74,F)}]),
b:new CU([3,0],[function(C,F){_.UD(C,23,F)},
function(C,F){_.ZW(C,38,F)}]),
ba:new CU([0],[function(C,F){_.ZW(C,85,F)}]),
bc:new CU([0],[function(C,F){_.ZW(C,87,F)}]),
br:new CU([0],[function(C,F){_.ZW(C,86,F)}]),
c:new CU([3,0],[function(C,F){_.UD(C,2,F)},
function(C,F){_.ZW(C,39,F)}]),
cc:new CU([3],[function(C,F){_.UD(C,51,F)}]),
ci:new CU([3],[function(C,F){_.UD(C,32,F)}]),
ckm:new CU([3],[function(C,F){_.UD(C,104,F)}]),
cp:new CU([0],[function(C,F){_.ZW(C,92,F)}]),
cr:new CU([3],[function(C,F){_.UD(C,108,F)}]),
cv:new CU([0],[function(C,F){_.ZW(C,94,F)}]),
d:new CU([3],[function(C,F){_.UD(C,3,F)}]),
dc:new CU([5],[function(C,F){_.fA(C,99,F)}]),
df:new CU([3],[function(C,F){_.UD(C,80,F)}]),
dv:new CU([3],[function(C,F){_.UD(C,90,F)}]),
e:new CU([0],[function(C,F){_.ZW(C,15,F)}]),
em:new CU([0],[function(C,F){_.ZW(C,107,F)}]),
f:new CU([4],[function(C,F){_.fA(C,16,F)}]),
fg:new CU([3],[function(C,F){_.UD(C,34,F)}]),
fh:new CU([3],[function(C,F){_.UD(C,30,F)}]),
fm:new CU([3],[function(C,F){_.UD(C,84,F)}]),
fo:new CU([2],[function(C,F){_.Ut(C,79,_.KP(F))}]),
ft:new CU([3],[function(C,F){_.UD(C,50,F)}]),
fv:new CU([3],[function(C,F){_.UD(C,31,F)}]),
g:new CU([3],[function(C,F){_.UD(C,14,F)}]),
gce:new CU([4],[function(C,F){_.fA(C,112,F)}]),
gd:new CU([3],[function(C,F){_.UD(C,83,F)}]),
gm:new CU([3],[function(C,F){_.UD(C,105,F)}]),
h:new CU([3,0],[function(C,F){_.UD(C,4,F)},
function(C,F){_.ZW(C,13,F)}]),
i:new CU([3],[function(C,F){_.UD(C,22,F)}]),
ic:new CU([0],[function(C,F){_.ZW(C,71,F)}]),
id:new CU([3],[function(C,F){_.UD(C,70,F)}]),
il:new CU([3],[function(C,F){_.UD(C,96,F)}]),
ip:new CU([3],[function(C,F){_.UD(C,54,F)}]),
iv:new CU([0],[function(C,F){_.f1(C,75,F)}]),
j:new CU([1],[function(C,F){F=F==null?F:Nkd(F);_.Ut(C,29,F)}]),
k:new CU([3,0],[function(C,F){_.UD(C,17,F)},
function(C,F){_.ZW(C,42,F)}]),
l:new CU([0],[function(C,F){_.ZW(C,44,F)}]),
lf:new CU([3],[function(C,F){_.UD(C,65,F)}]),
lo:new CU([3],[function(C,F){_.UD(C,97,F)}]),
m:new CU([0],[function(C,F){_.ZW(C,63,F)}]),
md:new CU([3],[function(C,F){_.UD(C,91,F)}]),
mm:new CU([4],[function(C,F){_.fA(C,81,F)}]),
mo:new CU([3],[function(C,F){_.UD(C,73,F)}]),
mp:new CU([0],[function(C,F){_.ZW(C,115,F)}]),
mv:new CU([3],[function(C,F){_.UD(C,66,F)}]),
n:new CU([3],[function(C,F){C.setCenterCrop(F)}]),
nc:new CU([3],[function(C,F){_.UD(C,55,F)}]),
nd:new CU([3],[function(C,F){_.UD(C,53,F)}]),
ng:new CU([3],[function(C,F){_.UD(C,95,F)}]),
ngm:new CU([3],[function(C,F){_.UD(C,106,F)}]),
no:new CU([3],[function(C,F){_.UD(C,37,F)}]),
ns:new CU([3],[function(C,F){_.UD(C,40,F)}]),
nt0:new CU([4],[function(C,F){_.fA(C,36,F)}]),
ntm:new CU([3],[function(C,F){_.UD(C,114,F)}]),
nu:new CU([3],[function(C,F){_.UD(C,46,F)}]),
nw:new CU([3],[function(C,F){_.UD(C,48,F)}]),
o:new CU([1,3],[function(C,F){F=F==null?F:Nkd(F);_.Ut(C,7,F)},
function(C,F){_.UD(C,27,F)}]),
p:new CU([3,0],[function(C,F){_.UD(C,19,F)},
function(C,F){_.ZW(C,43,F)}]),
pa:new CU([3],[function(C,F){_.UD(C,61,F)}]),
pc:new CU([0],[function(C,F){_.ZW(C,88,F)}]),
pd:new CU([3],[function(C,F){_.UD(C,60,F)}]),
pf:new CU([3],[function(C,F){_.UD(C,67,F)}]),
pg:new CU([3],[function(C,F){_.UD(C,72,F)}]),
pi:new CU([2],[function(C,F){_.Ut(C,76,_.KP(F))}]),
pp:new CU([3],[function(C,F){_.UD(C,52,F)}]),
pt:new CU([4],[function(C,F){_.fA(C,111,F)}]),
q:new CU([4],[function(C,F){_.fA(C,28,F)}]),
r:new CU([3,0],[function(C,F){_.UD(C,6,F)},
function(C,F){_.ZW(C,26,F)}]),
ra:new CU([3],[function(C,F){_.UD(C,103,F)}]),
rf:new CU([3],[function(C,F){_.UD(C,100,F)}]),
rg:new CU([3],[function(C,F){_.UD(C,59,F)}]),
rh:new CU([3],[function(C,F){_.UD(C,49,F)}]),
rj:new CU([3],[function(C,F){_.UD(C,57,F)}]),
ro:new CU([2],[function(C,F){_.Ut(C,78,_.KP(F))}]),
rp:new CU([3],[function(C,F){_.UD(C,58,F)}]),
rw:new CU([3],[function(C,F){_.UD(C,35,F)}]),
rwa:new CU([3],[function(C,F){_.UD(C,64,F)}]),
rwu:new CU([3],[function(C,F){_.UD(C,41,F)}]),
s:new CU([3,0],[function(C,F){_.UD(C,33,F)},
function(C,F){C.setSize(F)}]),
sb:new CU([0],[function(C,F){_.ZW(C,110,F)}]),
sc:new CU([0],[function(C,F){_.ZW(C,89,F)}]),
sg:new CU([3],[function(C,F){_.UD(C,82,F)}]),
sl:new CU([0],[function(C,F){_.ZW(C,109,F)}]),
sm:new CU([3],[function(C,F){_.UD(C,93,F)}]),
t:new CU([4],[function(C,F){C.setToken(F)}]),
tm:new CU([3],[function(C,F){_.UD(C,113,F)}]),
u:new CU([3],[function(C,F){_.UD(C,18,F)}]),
ut:new CU([3],[function(C,F){_.UD(C,45,F)}]),
v:new CU([0],[function(C,F){_.ZW(C,62,F)}]),
vb:new CU([0],[function(C,F){_.f1(C,68,F)}]),
vf:new CU([4],[function(C,F){_.fA(C,102,F)}]),
vl:new CU([0],[function(C,F){_.f1(C,69,F)}]),
vm:new CU([3],[function(C,F){_.UD(C,98,F)}]),
w:new CU([0],[function(C,F){_.ZW(C,12,F)}]),
x:new CU([0],[function(C,F){_.ZW(C,9,F)}]),
y:new CU([0],[function(C,F){_.ZW(C,10,F)}]),
ya:new CU([2],[function(C,F){_.Ut(C,77,_.KP(F))}]),
z:new CU([0],[function(C,F){_.ZW(C,11,F)}])};
tVx.prototype.parse=function(C){var F=new IpL,G=new IpL;if(C=="")C=!0;else{C=C.split("-");for(var V=!0,J=0;J<C.length;J++){var b=C[J];if(b.length==0)V=!1;else{var z=b,Q=!1;var E=z;var t=z.charAt(0);t!=t.toLowerCase()&&(Q=!0,E=z.charAt(0).toLowerCase()+z.substring(1));var k=kzl;for(t=1;t<=E.length;++t){var U=k,H=E.substring(0,t);if(H.length==0?U.isEmpty():!WoM(U,H))break}E=t==1?null:(E=k.get(E.substring(0,t-1)))?{option:z.substring(0,t-1),value:z.substring(t-1),signed:Q,attributes:E}:null;if(E){z=
[];Q=[];t=!1;for(k=0;k<E.attributes.types.length;k++){U=E.attributes.types[k];var l=E.value;H=J;if(E.signed&&U==1)for(var N=l.length;N<12&&H<C.length-1;)l+="-"+C[H+1],N=l.length,++H;else if(U==2)for(;H<C.length-1&&C[H+1].match(/^[\d\.]/);)l+="-"+C[H+1],++H;N=E.attributes.setters[k];l=HQr(this,U)(E.option,l,F,G,N);if(l===null){t=!0;J=H;break}else z.push(U),Q.push(l)}if(!t)for(E=0;E<Q.length;E++)k=z[E],l=Q[E],lp_(this,k)(b,l);V=V&&t}else V=!1}}C=V}return new yKL(F,G,C)};
var ZQt=function(C,F,G,V,J,b){J(G,F);C=C.charAt(0);b=b(C==C.toUpperCase());J(V,b)};
_.n=tVx.prototype;_.n.parseAndSetIntOption_=function(C,F,G,V,J){if(F=="")return 0;isFinite(F)&&(F=String(F));F=typeof F==="string"?/^\s*-?0x/i.test(F)?parseInt(F,16):parseInt(F,10):NaN;if(isNaN(F))return 1;ZQt(C,F,G,V,J,Number);return null};
_.n.logIntParseError_=function(){};
_.n.parseAndSetFloatOption_=function(C,F,G,V,J){if(F=="")return 0;var b=Number(F);F=b==0&&_.uZ(F)?NaN:b;if(isNaN(F))return 1;ZQt(C,F,G,V,J,Number);return null};
_.n.logFloatParseError_=function(){};
_.n.parseAndSetBoolOption_=function(C,F,G,V,J){if(F!="")return 2;ZQt(C,!0,G,V,J,Boolean);return null};
_.n.logBoolParseError_=function(){};
_.n.parseAndSetStringOption_=function(C,F,G,V,J){if(F=="")return 0;ZQt(C,F,G,V,J,function(b){return b?"1":""});
return null};
_.n.logStringParseError_=function(){};
_.n.parseAndSetUint64Base64Option_=function(C,F,G,V,J){if(F=="")return 0;ZQt(C,F,G,V,J,function(b){return b?1:0});
return null};
var HQr=function(C,F){switch(F){case 0:return(0,_.ck)(C.parseAndSetIntOption_,C);case 2:return(0,_.ck)(C.parseAndSetFloatOption_,C);case 3:return(0,_.ck)(C.parseAndSetBoolOption_,C);case 4:return(0,_.ck)(C.parseAndSetStringOption_,C);case 1:return(0,_.ck)(C.parseAndSetUint64Base64Option_,C);default:return function(){}}},lp_=function(C,F){switch(F){case 0:return(0,_.ck)(C.logIntParseError_,C);
case 2:return(0,_.ck)(C.logFloatParseError_,C);case 3:return(0,_.ck)(C.logBoolParseError_,C);case 4:case 1:return(0,_.ck)(C.logStringParseError_,C);default:return function(){}}},yKL=function(C,F,G){this.valueProto_=C;
this.signatureFlagProto_=F;this.JSC$19849_valid_=G};
yKL.prototype.isValid=function(){return this.JSC$19849_valid_};var QyU=function(C){this.JSC$19850_parser_=null;this.JSC$19850_components_=[];this.JSC$19850_parsedOptions_=null;NoL(this,C)},OQL=function(C){C.JSC$19850_parser_==null&&(C.JSC$19850_parser_=new tVx);
return C.JSC$19850_parser_},NoL=function(C,F){C.JSC$19850_parsedOptions_=F?typeof F==="string"?OQL(C).parse(F):F:OQL(C).parse("")},jw=function(C,F){return C==F?!1:!0};
_.n=QyU.prototype;_.n.JSC$19852_setCrop=function(C){C=C||void 0;var F=this.JSC$19850_parsedOptions_,G=F.valueProto_;jw(C,_.Ej(G,2),_.Ej(F.signatureFlagProto_,2))&&_.UD(G,2,C);return this};
_.n.JSC$19852_setCircleCrop=function(C){C=C||void 0;var F=this.JSC$19850_parsedOptions_,G=F.valueProto_;jw(C,ya(G,51),ya(F.signatureFlagProto_,51))&&_.UD(G,51,C);return this};
_.n.JSC$19852_setImageCrop=function(C){C=C||void 0;var F=this.JSC$19850_parsedOptions_,G=F.valueProto_;jw(C,ya(G,32),ya(F.signatureFlagProto_,32))&&_.UD(G,32,C);return this};
_.n.JSC$19852_setHeight=function(C){var F=this.JSC$19850_parsedOptions_,G=F.valueProto_;jw(C,G.getHeight(),F.signatureFlagProto_.getHeight())&&_.ZW(G,13,C);return this};
_.n.setCenterCrop=function(C){C=C||void 0;var F=this.JSC$19850_parsedOptions_,G=F.valueProto_;jw(C,_.Ej(G,20),_.Ej(F.signatureFlagProto_,20))&&G.setCenterCrop(C);return this};
_.n.JSC$19852_setSmartCrop=function(C){C=C||void 0;var F=this.JSC$19850_parsedOptions_,G=F.valueProto_;jw(C,_.Ej(G,19),_.Ej(F.signatureFlagProto_,19))&&_.UD(G,19,C);return this};
_.n.JSC$19852_setPad=function(C){C=C||void 0;var F=this.JSC$19850_parsedOptions_,G=F.valueProto_;jw(C,ya(G,60),ya(F.signatureFlagProto_,60))&&_.UD(G,60,C);return this};
_.n.JSC$19852_setSmartCropUseFace=function(C){C=C||void 0;var F=this.JSC$19850_parsedOptions_,G=F.valueProto_;jw(C,_.Ej(G,67),_.Ej(F.signatureFlagProto_,67))&&_.UD(G,67,C);return this};
_.n.JSC$19852_setSmartCropNoClip=function(C){C=C||void 0;var F=this.JSC$19850_parsedOptions_,G=F.valueProto_;jw(C,_.Ej(G,52),_.Ej(F.signatureFlagProto_,52))&&_.UD(G,52,C);return this};
_.n.setSize=function(C){var F=this.JSC$19850_parsedOptions_,G=F.valueProto_;jw(C,G.getSize(),F.signatureFlagProto_.getSize())&&G.setSize(C);return this};
_.n.setToken=function(C){C=C||void 0;var F=this.JSC$19850_parsedOptions_,G=F.valueProto_;jw(C,G.getToken(),F.signatureFlagProto_.getToken())&&G.setToken(C);return this};
_.n.JSC$19852_setWidth=function(C){var F=this.JSC$19850_parsedOptions_,G=F.valueProto_;jw(C,G.getWidth(),F.signatureFlagProto_.getWidth())&&_.ZW(G,12,C);return this};
_.n.clearOptions=function(){NoL(this,"");return this};
_.n.build=function(){this.JSC$19850_components_.length=0;var C=this.JSC$19850_parsedOptions_,F=C.valueProto_;C=C.signatureFlagProto_;FW(this,"s",F.getSize(),C.getSize());FW(this,"w",F.getWidth(),C.getWidth());Gy(this,"c",_.Ej(F,2),_.Ej(C,2));Gy(this,"d",_.Ej(F,3),_.Ej(C,3));FW(this,"h",F.getHeight(),C.getHeight());Gy(this,"s",ya(F,33),ya(C,33));Gy(this,"h",F.getHtml(),C.getHtml());Gy(this,"p",_.Ej(F,19),_.Ej(C,19));Gy(this,"pp",_.Ej(F,52),_.Ej(C,52));Gy(this,"pf",_.Ej(F,67),_.Ej(C,67));Gy(this,"n",
_.Ej(F,20),_.Ej(C,20));FW(this,"r",ZP(F,26),ZP(C,26));Gy(this,"r",_.Ej(F,6),_.Ej(C,6));Gy(this,"o",ya(F,27),ya(C,27));var G=_.I3(F,7,_.VZ);VL(this,"o",G,_.I3(C,7,_.VZ));G=_.I3(F,29,_.VZ);VL(this,"j",G,_.I3(C,29,_.VZ));FW(this,"x",ZP(F,9),ZP(C,9));FW(this,"y",ZP(F,10),ZP(C,10));FW(this,"z",ZP(F,11),ZP(C,11));Gy(this,"g",_.Ej(F,14),_.Ej(C,14));FW(this,"e",ZP(F,15),ZP(C,15));VL(this,"f",_.wG(F,16),_.wG(C,16));Gy(this,"k",ya(F,17),ya(C,17));Gy(this,"u",ya(F,18),!0);Gy(this,"ut",ya(F,45),!0);Gy(this,"i",
ya(F,22),!0);Gy(this,"a",ya(F,21),ya(C,21));Gy(this,"b",_.Ej(F,23),_.Ej(C,23));FW(this,"b",ZP(F,38),ZP(C,38));FW(this,"c",ZP(F,39),ZP(C,39),16,8);VL(this,"q",_.wG(F,28),_.wG(C,28));Gy(this,"fh",ya(F,30),ya(C,30));Gy(this,"fv",ya(F,31),ya(C,31));Gy(this,"fg",_.Ej(F,34),_.Ej(C,34));Gy(this,"ci",ya(F,32),ya(C,32));VL(this,"t",F.getToken(),C.getToken());VL(this,"nt0",_.wG(F,36),_.wG(C,36));Gy(this,"rw",_.Ej(F,35),_.Ej(C,35));Gy(this,"rwu",_.Ej(F,41),_.Ej(C,41));Gy(this,"rwa",_.Ej(F,64),_.Ej(C,64));Gy(this,
"nw",_.Ej(F,48),_.Ej(C,48));Gy(this,"rh",_.Ej(F,49),_.Ej(C,49));Gy(this,"no",_.Ej(F,37),_.Ej(C,37));Gy(this,"ns",ya(F,40),ya(C,40));FW(this,"k",ZP(F,42),ZP(C,42));FW(this,"p",ZP(F,43),ZP(C,43));FW(this,"l",ZP(F,44),ZP(C,44));FW(this,"v",ZP(F,62),ZP(C,62));Gy(this,"nu",ya(F,46),ya(C,46));Gy(this,"ft",ya(F,50),ya(C,50));Gy(this,"cc",ya(F,51),ya(C,51));Gy(this,"nd",ya(F,53),ya(C,53));Gy(this,"ip",ya(F,54),ya(C,54));Gy(this,"nc",ya(F,55),ya(C,55));FW(this,"a",ZP(F,56),ZP(C,56));Gy(this,"rj",ya(F,57),
ya(C,57));Gy(this,"rp",ya(F,58),ya(C,58));Gy(this,"rg",ya(F,59),ya(C,59));Gy(this,"pd",ya(F,60),ya(C,60));Gy(this,"pa",ya(F,61),ya(C,61));FW(this,"m",ZP(F,63),ZP(C,63));FW(this,"vb",Nc(F,68),Nc(C,68));FW(this,"vl",Nc(F,69),Nc(C,69));Gy(this,"lf",ya(F,65),ya(C,65));Gy(this,"mv",ya(F,66),ya(C,66));Gy(this,"id",ya(F,70),ya(C,70));FW(this,"ic",ZP(F,71),!0);Gy(this,"pg",_.Ej(F,72),_.Ej(C,72));Gy(this,"mo",ya(F,73),ya(C,73));Gy(this,"al",ya(F,74),ya(C,74));FW(this,"iv",Nc(F,75),Nc(C,75));FW(this,"pi",OK(F,
76),OK(C,76));FW(this,"ya",OK(F,77),OK(C,77));FW(this,"ro",OK(F,78),OK(C,78));FW(this,"fo",OK(F,79),OK(C,79));Gy(this,"df",ya(F,80),ya(C,80));VL(this,"mm",_.wG(F,81),_.wG(C,81));Gy(this,"sg",ya(F,82),ya(C,82));Gy(this,"gd",ya(F,83),ya(C,83));Gy(this,"fm",ya(F,84),ya(C,84));FW(this,"ba",ZP(F,85),ZP(C,85));FW(this,"br",ZP(F,86),ZP(C,86));FW(this,"bc",F.getBackgroundColor(),C.getBackgroundColor(),16,8);FW(this,"pc",ZP(F,88),ZP(C,88),16,8);FW(this,"sc",ZP(F,89),ZP(C,89),16,8);Gy(this,"dv",ya(F,90),ya(C,
90));Gy(this,"md",ya(F,91),ya(C,91));FW(this,"cp",ZP(F,92),ZP(C,92));Gy(this,"sm",ya(F,93),ya(C,93));FW(this,"cv",ZP(F,94),ZP(C,94));Gy(this,"ng",ya(F,95),ya(C,95));Gy(this,"il",ya(F,96),ya(C,96));Gy(this,"lo",ya(F,97),ya(C,97));Gy(this,"vm",ya(F,98),ya(C,98));VL(this,"dc",_.wG(F,99),_.wG(C,99));Gy(this,"rf",ya(F,100),ya(C,100));VL(this,"vf",_.wG(F,102),_.wG(C,102));Gy(this,"ra",_.Ej(F,103),_.Ej(C,103));Gy(this,"ckm",ya(F,104),ya(C,104));Gy(this,"gm",ya(F,105),ya(C,105));Gy(this,"ngm",ya(F,106),ya(C,
106));FW(this,"em",ZP(F,107),ZP(C,107));Gy(this,"cr",ya(F,108),ya(C,108));FW(this,"sl",F.getStoryboardLevel(),C.getStoryboardLevel());FW(this,"sb",ZP(F,110),ZP(C,110));VL(this,"pt",_.wG(F,111),_.wG(C,111));VL(this,"gce",_.wG(F,112),_.wG(C,112));Gy(this,"tm",ya(F,113),ya(C,113));Gy(this,"ntm",ya(F,114),ya(C,114));FW(this,"mp",ZP(F,115),ZP(C,115));return this.JSC$19850_components_.join("-")};
var FW=function(C,F,G,V,J,b){if(G!=null){var z=J==void 0||J!=10&&J!=16?10:J;G=Number(G).toString(z);J=new qAt;J.append(z==16?"0x":"");z=J.append;b==void 0?b="":(b-=G.length,b=b<=0?"":(0,_.Ci7)("0",b));z.call(J,b);J.append(G);X0t(C,F,J.toString(),!!Number(V))}},Gy=function(C,F,G,V){G&&X0t(C,F,"",!!V)},VL=function(C,F,G,V){G&&X0t(C,F,String(G),!!Number(V))},X0t=function(C,F,G,V){V&&(F=F.charAt(0).toUpperCase()+F.substring(1));
C.JSC$19850_components_.push(F+G)};_.RE(Zk,QyU);_.n=Zk.prototype;_.n.JSC$19852_setCrop=function(C){C&&i_(this);return Zk.superClass_.JSC$19852_setCrop.call(this,C)};
_.n.JSC$19852_setHeight=function(C){C=C==null||C<0?void 0:C;C!=null&&this.setSize();return Zk.superClass_.JSC$19852_setHeight.call(this,C)};
_.n.JSC$19852_setImageCrop=function(C){C&&i_(this);return Zk.superClass_.JSC$19852_setImageCrop.call(this,C)};
_.n.JSC$19852_setCircleCrop=function(C){C&&i_(this);return Zk.superClass_.JSC$19852_setCircleCrop.call(this,C)};
_.n.setSize=function(C){_.TE(C)&&(C=Math.max(C.width,C.height));C=C==null||C<0?void 0:C;C!=null&&(this.JSC$19852_setWidth(),this.JSC$19852_setHeight());return Zk.superClass_.setSize.call(this,C)};
_.n.JSC$19852_setSmartCrop=function(C){C&&i_(this);return Zk.superClass_.JSC$19852_setSmartCrop.call(this,C)};
_.n.JSC$19852_setSmartCropNoClip=function(C){C&&i_(this);return Zk.superClass_.JSC$19852_setSmartCropNoClip.call(this,C)};
_.n.JSC$19852_setSmartCropUseFace=function(C){C&&i_(this);return Zk.superClass_.JSC$19852_setSmartCropUseFace.call(this,C)};
_.n.setCenterCrop=function(C){C&&i_(this);return Zk.superClass_.setCenterCrop.call(this,C)};
_.n.JSC$19852_setPad=function(C){C&&i_(this);return Zk.superClass_.JSC$19852_setPad.call(this,C)};
_.n.JSC$19852_setWidth=function(C){C=C==null||C<0?void 0:C;C!=null&&this.setSize();return Zk.superClass_.JSC$19852_setWidth.call(this,C)};
var w0h=function(C){C.clearOptions();var F=C.JSC$19850_parsedOptions_,G=F.valueProto_;jw(!0,_.Ej(G,3),_.Ej(F.signatureFlagProto_,3))&&_.UD(G,3,!0);return C},i_=function(C){C.setCenterCrop();
C.JSC$19852_setCircleCrop();C.JSC$19852_setCrop();C.JSC$19852_setImageCrop();C.JSC$19852_setPad();C.JSC$19852_setSmartCrop();C.JSC$19852_setSmartCropNoClip();C.JSC$19852_setSmartCropUseFace()};
Zk.prototype.build=function(){var C=this.JSC$19850_parsedOptions_.valueProto_;ya(C,18)||ya(C,45)?C.getSize()||this.setSize(0):(C=this.JSC$19850_parsedOptions_.valueProto_,C.getSize()||C.getWidth()||C.getHeight()||(this.setSize(),this.JSC$19852_setHeight(),this.JSC$19852_setWidth(),i_(this)));return Zk.superClass_.build.call(this)};var MlM=/^[^\/]*\/\//,Sf8=function(C,F){F=F===void 0?!1:F;this.original_=C;this.originalPrefix_="";(C=this.original_.match(MlM))&&C[0]?(this.originalPrefix_=C[0],C=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):C="http://"+this.original_;this.uri_=_.mg(C,!0);this.isFreeformUrl_=F;this.JSC$19856_valid_=!0;this.obfuscated_=!1},Lod=function(C,F){C.JSC$19858_pathPrefix_=C.JSC$19858_pathPrefix_?C.JSC$19858_pathPrefix_+("/"+F):F},Jj=function(C){if(C.JSC$19858_components_==
void 0){var F=C.uri_.getPath().substring(1);
C.JSC$19858_pathPrefix_=null;if(C.isFreeformUrl_){C.JSC$19858_components_=[];if((F.match(/=/g)||[]).length>1)return C.JSC$19856_valid_=!1,C.JSC$19858_components_;var G=F.indexOf("=");G!=-1?(C.JSC$19858_components_.push(F.substr(0,G)),C.JSC$19858_components_.push(F.substr(G+1))):C.JSC$19858_components_.push(F);return C.JSC$19858_components_}C.JSC$19858_components_=F.split("/");F=C.JSC$19858_components_.length;F>2&&C.JSC$19858_components_[0]=="u"&&(Lod(C,C.JSC$19858_components_[0]+"/"+C.JSC$19858_components_[1]),
C.JSC$19858_components_.shift(),C.JSC$19858_components_.shift(),F-=2);if(F==0||F==4||F>7)return C.JSC$19856_valid_=!1,C.JSC$19858_components_;if(F==2)Lod(C,C.JSC$19858_components_[0]);else if(C.JSC$19858_components_[0]=="image")Lod(C,C.JSC$19858_components_[0]);else if(F==7||F==3)return C.JSC$19856_valid_=!1,C.JSC$19858_components_;if(F<=3){C.obfuscated_=!0;F==3&&(Lod(C,C.JSC$19858_components_[1]),C.JSC$19858_components_.shift(),--F);--F;G=C.JSC$19858_components_[F];var V=G.indexOf("=");V!=-1&&(C.JSC$19858_components_[F]=
G.substr(0,V),C.JSC$19858_components_.push(G.substr(V+1)))}}return C.JSC$19858_components_};
Sf8.prototype.isValid=function(){Jj(this);return this.JSC$19856_valid_};
Sf8.prototype.isObfuscated=function(){Jj(this);return this.obfuscated_};
var Bot=function(C){Jj(C);return C.isFreeformUrl_},$Y=function(C){Jj(C);
C.JSC$19858_pathPrefix_==void 0&&(C.JSC$19858_pathPrefix_=null);return C.JSC$19858_pathPrefix_},vX8=function(C){switch(Jj(C).length){case 7:return!0;
case 6:return $Y(C)==null;case 5:return!1;case 3:return!0;case 2:return $Y(C)==null;case 1:return!1;default:return!1}},b_=function(C,F){if(Bot(C))a:{switch(F){case 7:F=0;
break;case 4:if(!vX8(C)){C=null;break a}F=1;break;default:C=null;break a}C=Jj(C)[F]}else if(C.isObfuscated())a:{var G=$Y(C)!=null?1:0;switch(F){case 6:F=G;break;case 4:if(!vX8(C)){C=null;break a}F=1+G;break;default:C=null;break a}C=Jj(C)[F]}else a:{G=$Y(C)!=null?1:0;switch(F){case 0:F=G;break;case 1:F=1+G;break;case 2:F=2+G;break;case 3:F=3+G;break;case 4:if(!vX8(C)){C=null;break a}F=4+G;break;case 5:F=vX8(C)?1:0;F=4+G+F;break;default:C=null;break a}C=Jj(C)[F]}return C};
Sf8.prototype.getOptions=function(){this.options_==void 0&&(this.options_=b_(this,4));return this.options_};var Wer=function(){};
Wer.prototype.parse=function(C,F){return new IRr(C,F===void 0?!1:F)};
var IRr=function(C,F){Sf8.call(this,C,F===void 0?!1:F)};
_.O(IRr,Sf8);_.RE(Nv,Zk);var Eb_;Nv.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
Nv.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var C=Nv.superClass_.build.call(this),F=[];$Y(this.parsedImageUrl_)!=null&&F.push($Y(this.parsedImageUrl_));var G=Bot(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var V=this.parsedImageUrl_;V.obfuscatedData_==void 0&&(V.obfuscatedData_=b_(V,6));F.push(V.obfuscatedData_+(C?"="+C:""))}else if(G){V=F.push;var J=this.parsedImageUrl_;J.freeformUrlPath_===void 0&&(J.freeformUrlPath_=b_(J,
7));V.call(F,J.freeformUrlPath_);C&&F.push(C)}else V=F.push,J=this.parsedImageUrl_,J.obfuscatedGaiaId_==void 0&&(J.obfuscatedGaiaId_=b_(J,0)),V.call(F,J.obfuscatedGaiaId_),V=F.push,J=this.parsedImageUrl_,J.photoId_==void 0&&(J.photoId_=b_(J,1)),V.call(F,J.photoId_),V=F.push,J=this.parsedImageUrl_,J.imageVersion_==void 0&&(J.imageVersion_=b_(J,2)),V.call(F,J.imageVersion_),V=F.push,J=this.parsedImageUrl_,J.signature_==void 0&&(J.signature_=b_(J,3)),V.call(F,J.signature_),C&&F.push(C),C=F.push,V=this.parsedImageUrl_,
V.filename_==void 0&&(V.filename_=b_(V,5)),C.call(F,V.filename_);F=G?F.join("="):F.join("/");F=_.mg(this.protocolPrefix_+this.JSC$19864_domain_+"/"+F+(this.JSC$19864_query_?"?"+this.JSC$19864_query_:"")).toString();F.startsWith("%3a//")&&(F=F.replace("%3a//","://"));return F};var fpl=_.h6(["viewBox"]),h$d=_.h6(["width"]),cKx=_.h6(["height"]),AKW=_.h6(["fill"]),e$s=_.h6(["id"]),dJU=_.h6(["x"]),xJh=_.h6(["y"]);aRd.prototype.getLength=function(){return this.parsedData.length};
aRd.prototype.write=function(C){for(var F=0,G=this.parsedData.length;F<G;F++)C.put(this.parsedData[F],8)};
var Nvr=function(C,F){var G=new aRd(F);C.dataList.push(G);G=C.errorCorrectLevel;var V=1,J=encodeURI(F).toString().replace(/%[0-9a-fA-F]{2}/g,"a");F=J.length+(J.length!=F?3:0);J=0;for(var b=nU.length;J<=b;J++){var z=0;switch(G){case 1:z=nU[J][0];break;case 0:z=nU[J][1];break;case 3:z=nU[J][2];break;case 2:z=nU[J][3]}if(F<=z)break;else V++}if(V>nU.length)throw Error("Qk");C.typeNumber=V;C.dataCache=null};
k3W.prototype.isDark=function(C,F){if(C<0||this.moduleCount<=C||F<0||this.moduleCount<=F)throw Error("Ik`"+C+"`"+F);return this.modules[C][F]};
for(var OY8=function(C,F,G){C.moduleCount=C.typeNumber*4+17;C.modules=Array(C.moduleCount);for(var V=0;V<C.moduleCount;V++){C.modules[V]=Array(C.moduleCount);for(var J=0;J<C.moduleCount;J++)C.modules[V][J]=null}sjd(C,0,0);sjd(C,C.moduleCount-7,0);sjd(C,0,C.moduleCount-7);V=qfd[C.typeNumber-1];for(J=0;J<V.length;J++)for(var b=0;b<V.length;b++){var z=V[J],Q=V[b];if(C.modules[z][Q]==null)for(var E=-2;E<=2;E++)for(var t=-2;t<=2;t++)C.modules[z+E][Q+t]=E==-2||E==2||t==-2||t==2||E==0&&t==0?!0:!1}for(V=
8;V<C.moduleCount-8;V++)C.modules[V][6]==null&&(C.modules[V][6]=V%2==0);for(V=8;V<C.moduleCount-8;V++)C.modules[6][V]==null&&(C.modules[6][V]=V%2==0);V=C.errorCorrectLevel<<3|G;for(J=V<<10;u_(J)-u_(1335)>=0;)J^=1335<<u_(J)-u_(1335);V=(V<<10|J)^21522;for(J=0;J<15;J++)b=!F&&(V>>J&1)==1,J<6?C.modules[J][8]=b:J<8?C.modules[J+1][8]=b:C.modules[C.moduleCount-15+J][8]=b;for(J=0;J<15;J++)b=!F&&(V>>J&1)==1,J<8?C.modules[8][C.moduleCount-J-1]=b:J<9?C.modules[8][15-J-1+1]=b:C.modules[8][15-J-1]=b;C.modules[C.moduleCount-
8][8]=!F;if(C.typeNumber>=7){V=C.typeNumber;for(J=V<<12;u_(J)-u_(7973)>=0;)J^=7973<<u_(J)-u_(7973);V=V<<12|J;for(J=0;J<18;J++)b=!F&&(V>>J&1)==1,C.modules[Math.floor(J/3)][J%3+C.moduleCount-8-3]=b;for(J=0;J<18;J++)b=!F&&(V>>J&1)==1,C.modules[J%3+C.moduleCount-8-3][Math.floor(J/3)]=b}if(C.dataCache==null){J=C.typeNumber;b=C.dataList;F=C.errorCorrectLevel;V=PWr(J,F);if(V==void 0)throw Error("Pk`"+J+"`"+F);z=V.length/3;F=[];for(Q=0;Q<z;Q++){E=V[Q*3];t=V[Q*3+1];for(var k=V[Q*3+2],U=0;U<E;U++)F.push(new Uh8(t,
k))}V=new HYs;for(z=0;z<b.length;z++)Q=b[z],V.put(Q.mode,4),V.put(Q.getLength(),gXU(Q.mode,J)),Q.write(V);for(z=J=0;z<F.length;z++)J+=F[z].dataCount;if(V.length>J*8)throw Error("Jk`"+V.length+"`"+J*8);for(V.length+4<=J*8&&V.put(0,4);V.length%8!=0;)R$L(V,!1);for(;!(V.length>=J*8);){V.put(236,8);if(V.length>=J*8)break;V.put(17,8)}b=J=t=0;z=Array(F.length);Q=Array(F.length);for(E=0;E<F.length;E++){U=F[E].dataCount;var H=F[E].totalCount-U;J=Math.max(J,U);b=Math.max(b,H);z[E]=Array(U);for(k=0;k<z[E].length;k++)z[E][k]=
255&V.buffer[k+t];t+=U;k=H;U=new OO([1],0);for(H=0;H<k;H++)U=U.multiply(new OO([1,Yfl(H)],0));k=U;U=(new OO(z[E],k.getLength()-1)).mod(k);Q[E]=Array(k.getLength()-1);for(k=0;k<Q[E].length;k++)H=k+U.getLength()-Q[E].length,Q[E][k]=H>=0?U.get(H):0}for(k=V=0;k<F.length;k++)V+=F[k].totalCount;V=Array(V);for(k=t=0;k<J;k++)for(E=0;E<F.length;E++)k<z[E].length&&(V[t++]=z[E][k]);for(k=0;k<b;k++)for(E=0;E<F.length;E++)k<Q[E].length&&(V[t++]=Q[E][k]);C.dataCache=V}F=C.dataCache;V=-1;J=C.moduleCount-1;b=7;z=
0;for(Q=C.moduleCount-1;Q>0;Q-=2)for(Q==6&&Q--;;){for(E=0;E<2;E++)C.modules[J][Q-E]==null&&(t=!1,z<F.length&&(t=(F[z]>>>b&1)==1),Tol(G,J,Q-E)&&(t=!t),C.modules[J][Q-E]=t,b--,b==-1&&(z++,b=7));J+=V;if(J<0||C.moduleCount<=J){J-=V;V=-V;break}}},sjd=function(C,F,G){for(var V=-1;V<=7;V++)if(!(F+V<=-1||C.moduleCount<=F+V))for(var J=-1;J<=7;J++)G+J<=-1||C.moduleCount<=G+J||(C.modules[F+V][G+J]=0<=V&&V<=6&&(J==0||J==6)||0<=J&&J<=6&&(V==0||V==6)||2<=V&&V<=4&&2<=J&&J<=4?!0:!1)},Xlr=function(C){for(var F=0,
G=0,V=0;V<8;V++){OY8(C,!0,V);
var J=C;for(var b=J.moduleCount,z=0,Q=0;Q<b;Q++)for(var E=0;E<b;E++){for(var t=0,k=J.isDark(Q,E),U=-1;U<=1;U++)if(!(Q+U<0||b<=Q+U))for(var H=-1;H<=1;H++)E+H<0||b<=E+H||(U!=0||H!=0)&&k==J.isDark(Q+U,E+H)&&t++;t>5&&(z+=3+t-5)}for(Q=0;Q<b-1;Q++)for(E=0;E<b-1;E++)if(t=0,J.isDark(Q,E)&&t++,J.isDark(Q+1,E)&&t++,J.isDark(Q,E+1)&&t++,J.isDark(Q+1,E+1)&&t++,t==0||t==4)z+=3;for(Q=0;Q<b;Q++)for(E=0;E<b-6;E++)J.isDark(Q,E)&&!J.isDark(Q,E+1)&&J.isDark(Q,E+2)&&J.isDark(Q,E+3)&&J.isDark(Q,E+4)&&!J.isDark(Q,E+5)&&
J.isDark(Q,E+6)&&(z+=40);for(E=0;E<b;E++)for(Q=0;Q<b-6;Q++)J.isDark(Q,E)&&!J.isDark(Q+1,E)&&J.isDark(Q+2,E)&&J.isDark(Q+3,E)&&J.isDark(Q+4,E)&&!J.isDark(Q+5,E)&&J.isDark(Q+6,E)&&(z+=40);for(E=t=0;E<b;E++)for(Q=0;Q<b;Q++)J.isDark(Q,E)&&t++;J=z+=Math.abs(100*t/b/b-50)/5*10;if(V==0||F>J)F=J,G=V}return G},qfd=[[],
[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]],u_=function(C){for(var F=0;C!=0;)F++,C>>>=1;return F},Tol=function(C,F,G){switch(C){case 0:return(F+G)%2==0;
case 1:return F%2==0;case 2:return G%3==0;case 3:return(F+G)%3==0;case 4:return(Math.floor(F/2)+Math.floor(G/3))%2==0;case 5:return F*G%2+F*G%3==0;case 6:return(F*G%2+F*G%3)%2==0;case 7:return(F*G%3+(F+G)%2)%2==0;default:throw Error("Kk`"+C);}},gXU=function(C,F){if(1<=F&&F<10)switch(C){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Lk`"+C);}else if(F<27)switch(C){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Lk`"+C);}else if(F<41)switch(C){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Lk`"+C);}else throw Error("Mk`"+F);},rKW=function(C){if(C<1)throw Error("Nk`"+C);
return oXM[C]},Yfl=function(C){for(;C<0;)C+=255;
for(;C>=256;)C-=255;return zy[C]},zy=Array(256),oXM=Array(256),KoU=0;KoU<8;KoU++)zy[KoU]=1<<KoU;
for(var QL=8;QL<256;QL++)zy[QL]=zy[QL-4]^zy[QL-5]^zy[QL-6]^zy[QL-8];for(var DJr=0;DJr<255;DJr++)oXM[zy[DJr]]=DJr;OO.prototype.get=function(C){return this.num[C]};
OO.prototype.getLength=function(){return this.num.length};
OO.prototype.multiply=function(C){for(var F=Array(this.getLength()+C.getLength()-1),G=0;G<this.getLength();G++)for(var V=0;V<C.getLength();V++)F[G+V]^=Yfl(rKW(this.get(G))+rKW(C.get(V)));return new OO(F,0)};
OO.prototype.mod=function(C){if(this.getLength()-C.getLength()<0)return this;for(var F=rKW(this.get(0))-rKW(C.get(0)),G=Array(this.getLength()),V=0;V<this.getLength();V++)G[V]=this.get(V);for(V=0;V<C.getLength();V++)G[V]^=Yfl(rKW(C.get(V))+F);return(new OO(G,0)).mod(C)};
var p0h=[[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]],PWr=function(C,F){switch(F){case 1:return p0h[(C-1)*4];case 0:return p0h[(C-1)*4+1];case 3:return p0h[(C-1)*4+2];case 2:return p0h[(C-1)*4+3]}};
HYs.prototype.get=function(C){return(this.buffer[Math.floor(C/8)]>>>7-C%8&1)==1};
HYs.prototype.put=function(C,F){for(var G=0;G<F;G++)R$L(this,(C>>>F-G-1&1)==1)};
var R$L=function(C,F){var G=Math.floor(C.length/8);C.buffer.length<=G&&C.buffer.push(0);F&&(C.buffer[G]|=128>>>C.length%8);C.length++},nU=[[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]],ZYL=function(){var C=function(F,G){this.JSC$19884__el=F;this.JSC$19884__htOption=G};
C.prototype.draw=function(F){function G(k,U){k=document.createElementNS("http://www.w3.org/2000/svg",k);for(var H in U)U.hasOwnProperty(H)&&(H==="href"?_.JRr(k,U[H]):_.bi([_.Wj(fpl),_.Wj(h$d),_.Wj(cKx),_.Wj(AKW),_.Wj(e$s),_.Wj(dJU),_.Wj(xJh)],k,H,U[H]));return k}
var V=this.JSC$19884__htOption,J=this.JSC$19884__el,b=F.moduleCount;this.clear();var z=G("svg",{viewBox:"0 0 "+String(b)+" "+String(b),width:"100%",height:"100%",fill:V.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});J.appendChild(z);z.appendChild(G("rect",{fill:V.colorLight,width:"100%",height:"100%"}));z.appendChild(G("rect",{fill:V.colorDark,width:"1",height:"1",id:"template"}));for(var Q=0;Q<b;Q++)for(var E=0;E<b;E++)if(F.isDark(Q,E)){var t=G("use",{x:String(Q),y:String(E),href:"#template"});
z.appendChild(t)}};
C.prototype.clear=function(){for(;this.JSC$19884__el.hasChildNodes();)this.JSC$19884__el.removeChild(this.JSC$19884__el.lastChild)};
return C}(),ym3=document.documentElement.tagName.toLowerCase()==="svg"?ZYL:typeof CanvasRenderingContext2D!="undefined"?function(){var C=function(F,G){this._bIsPainted=!1;
lRL();this.JSC$19884__htOption=G;this._elCanvas=document.createElement("canvas");this._elCanvas.width=G.width;this._elCanvas.height=G.height;F.appendChild(this._elCanvas);this.JSC$19884__el=F;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$19884__el.appendChild(this._elImage);this._bSupportDataURI=null};
C.prototype._onMakeImage=function(){var F=this._elCanvas.toDataURL("image/png");this._elImage.src=F;this._elImage.style.display="block";this._elCanvas.style.display="none"};
C.prototype._safeSetDataURI=function(F,G){var V=this;V._fFail=G;V._fSuccess=F;V._bSupportDataURI===null?(F=_.Md("IMG"),G=function(){V._bSupportDataURI=!1;V._fFail&&V._fFail.call(V)},F.onabort=G,F.onerror=G,F.onload=function(){V._bSupportDataURI=!0;
V._fSuccess&&V._fSuccess.call(V)},F.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):V._bSupportDataURI===!0&&V._fSuccess?V._fSuccess.call(V):V._bSupportDataURI===!1&&V._fFail&&V._fFail.call(V)};
C.prototype.draw=function(F){var G=this._oContext,V=this.JSC$19884__htOption,J=F.moduleCount,b=V.width/J,z=V.height/J,Q=Math.round(b),E=Math.round(z);this._elImage.style.display="none";this.clear();for(var t=0;t<J;t++)for(var k=0;k<J;k++){var U=F.isDark(t,k),H=k*b,l=t*z;G.strokeStyle=U?V.colorDark:V.colorLight;G.lineWidth=1;G.fillStyle=U?V.colorDark:V.colorLight;G.fillRect(H,l,b,z);G.strokeRect(Math.floor(H)+.5,Math.floor(l)+.5,Q,E);G.strokeRect(Math.ceil(H)-.5,Math.ceil(l)-.5,Q,E)}this._bIsPainted=
!0};
C.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
C.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
C.prototype.round=function(F){return F?Math.floor(F*1E3)/1E3:F};
return C}():function(){var C=function(F,G){this.JSC$19884__el=F;
this.JSC$19884__htOption=G};
C.prototype.draw=function(F){for(var G=this.JSC$19884__htOption,V=this.JSC$19884__el,J=F.moduleCount,b=Math.floor(G.width/J),z=Math.floor(G.height/J),Q=['<table style="border:0;border-collapse:collapse;">'],E=0;E<J;E++){Q.push("<tr>");for(var t=0;t<J;t++)Q.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+b+"px;height:"+z+"px;background-color:"+(F.isDark(E,t)?G.colorDark:G.colorLight)+';"></td>');Q.push("</tr>")}Q.push("</table>");F=Q.join("");F=_.gOl(_.YaG,F);_.$O(V,F);
F=V.childNodes[0];J=(G.width-F.offsetWidth)/2;b=(G.height-F.offsetHeight)/2;J>0&&b>0&&(F.style.margin=b+"px "+J+"px")};
C.prototype.clear=function(){this.JSC$19884__el.textContent=""};
return C}();
wlx.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19887__android||this.JSC$19887__android>=3)&&this._oDrawing.makeImage()};
wlx.prototype.clear=function(){this._oDrawing.clear()};
_.VT.QRCode=wlx;var mJh={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var CMs=function(){};
CMs.prototype.stringify=function(C){return _.VT.JSON.stringify(C,void 0)};
CMs.prototype.parse=function(C){return _.VT.JSON.parse(C,void 0)};var jmM=function(){_.tP.call(this,"z")};
_.RE(jmM,_.tP);var FnV=function(){_.tP.call(this,"y")};
_.RE(FnV,_.tP);var GWh=null,V8d=function(){return GWh=GWh||new _.lT},iSl=function(C){_.tP.call(this,"serverreachability",C)};
_.RE(iSl,_.tP);var JhW=function(C){var F=V8d();F.dispatchEvent(new iSl(F,C))},$Zx=function(C,F){_.tP.call(this,"statevent",C);
this.stat=F};
_.RE($Zx,_.tP);var IJ=function(C){var F=V8d();F.dispatchEvent(new $Zx(F,C))},bSd=function(C,F,G,V){_.tP.call(this,"timingevent",C);
this.size=F;this.rtt=G;this.retries=V};
_.RE(bSd,_.tP);var nsh=function(C,F,G){var V=V8d();V.dispatchEvent(new bSd(V,C,F,G))},uxL=function(C,F){if(typeof C!=="function")throw Error("Rk");
return _.VT.setTimeout(function(){C()},F)};var EE=function(){this.redactEnabled_=!0};
EE.prototype.disableRedact=function(){this.redactEnabled_=!1};
var zFl=function(C,F,G,V,J,b){C.info(function(){if(C.redactEnabled_)if(b){var z="";for(var Q=b.split("&"),E=0;E<Q.length;E++){var t=Q[E].split("=");if(t.length>1){var k=t[0];t=t[1];var U=k.split("_");z=U.length>=2&&U[1]=="type"?z+(k+"="+t+"&"):z+(k+"=redacted&")}}}else z=null;else z=b;return"XMLHTTP REQ ("+V+") [attempt "+J+"]: "+F+"\n"+G+"\n"+z})},Qmx=function(C,F,G,V,J,b,z){C.info(function(){return"XMLHTTP RESP ("+V+") [ attempt "+J+"]: "+F+"\n"+G+"\n"+b+" "+z})},WT=function(C,F,G,V){C.info(function(){return"XMLHTTP TEXT ("+
F+"): "+IS_(C,G)+(V?" "+V:"")})},EsV=function(C,F){C.info(function(){return"TIMEOUT: "+F})};
EE.prototype.debug=function(){};
EE.prototype.info=function(){};
EE.prototype.warning=function(){};
var IS_=function(C,F){if(!C.redactEnabled_)return F;if(!F)return null;try{var G=JSON.parse(F);if(G)for(var V=0;V<G.length;V++)if(Array.isArray(G[V])){var J=G[V];if(!(J.length<2)){var b=J[1];if(Array.isArray(b)&&!(b.length<1)){var z=b[0];if(z!="noop"&&z!="stop"&&z!="close")for(var Q=1;Q<b.length;Q++)b[Q]=""}}}return(0,_.MX)(G)}catch(E){return C.debug("Exception parsing expected JS array - probably was not JS"),F}};var tj=function(C,F,G,V,J){this.JSC$19909_channel_=C;this.JSC$19909_channelDebug_=F;this.sid_=G;this.JSC$19909_rid_=V;this.JSC$19909_retryId_=J||1;this.JSC$19909_eventHandler_=new _.ln(this);this.timeout_=45E3;this.JSC$19909_extraHeaders_=null;this.JSC$19909_successful_=!1;this.JSC$19909_postData_=this.JSC$19909_requestUri_=this.JSC$19909_baseUri_=this.JSC$19909_type_=this.JSC$19909_requestStartTime_=this.JSC$19909_watchDogTimeoutTime_=this.JSC$19909_watchDogTimerId_=null;this.JSC$19909_pendingMessages_=
[];this.JSC$19909_xmlHttp_=null;this.JSC$19909_xmlHttpChunkStart_=0;this.JSC$19909_lastError_=this.JSC$19909_verb_=null;this.JSC$19909_lastStatusCode_=-1;this.JSC$19909_cancelled_=!1;this.JSC$19909_readyStateChangeThrottleMs_=0;this.JSC$19909_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new Wnr},Wnr=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},t8M=function(C,F){switch(C){case 0:return"Non-200 return code ("+F+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},aSx={},kWr={};
tj.prototype.setTimeout=function(C){this.timeout_=C};
var HSL=function(C,F,G){C.JSC$19909_type_=1;C.JSC$19909_baseUri_=_.bx(F.clone());C.JSC$19909_postData_=G;C.decodeChunks_=!0;UZL(C,null)},UZL=function(C,F){C.JSC$19909_requestStartTime_=Date.now();
lSl(C);C.JSC$19909_requestUri_=C.JSC$19909_baseUri_.clone();tX(C.JSC$19909_requestUri_,"t",C.JSC$19909_retryId_);C.JSC$19909_xmlHttpChunkStart_=0;var G=C.JSC$19909_channel_.JSC$19928_supportsCrossDomainXhrs_;C.fetchResponseState_=new Wnr;C.JSC$19909_xmlHttp_=yhl(C.JSC$19909_channel_,G?F:null,!C.JSC$19909_postData_);C.JSC$19909_readyStateChangeThrottleMs_>0&&(C.JSC$19909_readyStateChangeThrottle_=new _.FX((0,_.ck)(C.JSC$19913_xmlHttpHandler_,C,C.JSC$19909_xmlHttp_),C.JSC$19909_readyStateChangeThrottleMs_));
C.JSC$19909_eventHandler_.listen(C.JSC$19909_xmlHttp_,"readystatechange",C.JSC$19913_readyStateChangeHandler_);F=C.JSC$19909_extraHeaders_?_.xf.clone(C.JSC$19909_extraHeaders_):{};C.JSC$19909_postData_?(C.JSC$19909_verb_||(C.JSC$19909_verb_="POST"),F["Content-Type"]="application/x-www-form-urlencoded",C.JSC$19909_xmlHttp_.send(C.JSC$19909_requestUri_,C.JSC$19909_verb_,C.JSC$19909_postData_,F)):(C.JSC$19909_verb_="GET",C.JSC$19909_xmlHttp_.send(C.JSC$19909_requestUri_,C.JSC$19909_verb_,null,F));JhW(1);
zFl(C.JSC$19909_channelDebug_,C.JSC$19909_verb_,C.JSC$19909_requestUri_,C.JSC$19909_rid_,C.JSC$19909_retryId_,C.JSC$19909_postData_)};
tj.prototype.JSC$19913_readyStateChangeHandler_=function(C){C=C.target;var F=this.JSC$19909_readyStateChangeThrottle_;F&&_.LC(C)==3?(this.JSC$19909_channelDebug_.debug("Throttling readystatechange."),F.fire()):this.JSC$19913_xmlHttpHandler_(C)};
tj.prototype.JSC$19913_xmlHttpHandler_=function(C){try{C==this.JSC$19909_xmlHttp_?ZSh(this):this.JSC$19909_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(F){this.JSC$19909_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),N6r(this)}finally{}};
var ZSh=function(C){var F=_.LC(C.JSC$19909_xmlHttp_),G=C.JSC$19909_xmlHttp_.JSC$9795_lastErrorCode_,V=C.JSC$19909_xmlHttp_.getStatus();if(!(F<3||F==3&&!N6r(C))){C.JSC$19909_cancelled_||F!=4||G==7||(G==8||V<=0?JhW(3):JhW(2));OSr(C);var J=C.JSC$19909_xmlHttp_.getStatus();C.JSC$19909_lastStatusCode_=J;G=X$_(C);N6r(C)||C.JSC$19909_channelDebug_.debug(function(){return"No response text for uri "+C.JSC$19909_requestUri_+" status "+J});
C.JSC$19909_successful_=J==200;Qmx(C.JSC$19909_channelDebug_,C.JSC$19909_verb_,C.JSC$19909_requestUri_,C.JSC$19909_rid_,C.JSC$19909_retryId_,F,J);if(C.JSC$19909_successful_){if(C.decodeInitialResponse_&&!C.initialResponseDecoded_)if(V=w$h(C))WT(C.JSC$19909_channelDebug_,C.JSC$19909_rid_,V,"Initial handshake response via X-HTTP-Initial-Response"),C.initialResponseDecoded_=!0,M8r(C,V);else{C.JSC$19909_successful_=!1;C.JSC$19909_lastError_=3;IJ(12);C.JSC$19909_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
C.JSC$19909_rid_+")");aJ(C);SiM(C);return}C.decodeChunks_?Ln3(C,F,G):(WT(C.JSC$19909_channelDebug_,C.JSC$19909_rid_,G,null),M8r(C,G));F==4&&aJ(C);C.JSC$19909_successful_&&!C.JSC$19909_cancelled_&&(F==4?B6M(C.JSC$19909_channel_,C):(C.JSC$19909_successful_=!1,lSl(C)))}else FAr(C.JSC$19909_xmlHttp_),J==400&&G.indexOf("Unknown SID")>0?(C.JSC$19909_lastError_=3,IJ(12),C.JSC$19909_channelDebug_.warning("XMLHTTP Unknown SID ("+C.JSC$19909_rid_+")")):(C.JSC$19909_lastError_=0,IJ(13),C.JSC$19909_channelDebug_.warning("XMLHTTP Bad status "+
J+" ("+C.JSC$19909_rid_+")")),aJ(C),SiM(C)}},w$h=function(C){return C.JSC$19909_xmlHttp_&&(C=EO(C.JSC$19909_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.uZ(C)?C:null},X$_=function(C){if(!vs8(C))return C.JSC$19909_xmlHttp_.getResponseText();
var F=C.JSC$19909_xmlHttp_.getResponse();if(F==="")return"";var G="",V=F.length,J=_.LC(C.JSC$19909_xmlHttp_)==4;if(!C.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return aJ(C),SiM(C),"";C.fetchResponseState_.textDecoder=new _.VT.TextDecoder}for(var b=0;b<V;b++)C.fetchResponseState_.responseArrivedForFetch=!0,G+=C.fetchResponseState_.textDecoder.decode(F[b],{stream:!(J&&b==V-1)});F.length=0;C.fetchResponseState_.responseBuffer+=G;C.JSC$19909_xmlHttpChunkStart_=0;return C.fetchResponseState_.responseBuffer},
N6r=function(C){return C.JSC$19909_xmlHttp_?C.fetchResponseState_.responseArrivedForFetch?!0:!(!C.JSC$19909_xmlHttp_.getResponseText()&&!C.JSC$19909_xmlHttp_.getResponse()):!1},vs8=function(C){return C.JSC$19909_xmlHttp_?C.JSC$19909_verb_=="GET"&&C.JSC$19909_type_!=2&&C.JSC$19909_channel_.usesFetchStreams_:!1},Ln3=function(C,F,G){for(var V=!0,J;!C.JSC$19909_cancelled_&&C.JSC$19909_xmlHttpChunkStart_<G.length;)if(J=fSr(C,G),J==kWr){F==4&&(C.JSC$19909_lastError_=4,IJ(14),V=!1);
WT(C.JSC$19909_channelDebug_,C.JSC$19909_rid_,null,"[Incomplete Response]");break}else if(J==aSx){C.JSC$19909_lastError_=4;IJ(15);WT(C.JSC$19909_channelDebug_,C.JSC$19909_rid_,G,"[Invalid Chunk]");V=!1;break}else WT(C.JSC$19909_channelDebug_,C.JSC$19909_rid_,J,null),M8r(C,J);vs8(C)&&C.JSC$19909_xmlHttpChunkStart_!=0&&(C.fetchResponseState_.responseBuffer=C.fetchResponseState_.responseBuffer.slice(C.JSC$19909_xmlHttpChunkStart_),C.JSC$19909_xmlHttpChunkStart_=0);F!=4||G.length!=0||C.fetchResponseState_.responseArrivedForFetch||
(C.JSC$19909_lastError_=1,IJ(16),V=!1);C.JSC$19909_successful_=C.JSC$19909_successful_&&V;V?G.length>0&&!C.firstByteReceived_&&(C.firstByteReceived_=!0,F=C.JSC$19909_channel_,F.JSC$19928_backChannelRequest_==C&&F.detectBufferingProxy_&&!F.bpDetectionDone_&&(F.JSC$19928_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+G.length),hF8(F),F.bpDetectionDone_=!0,IJ(11))):(WT(C.JSC$19909_channelDebug_,C.JSC$19909_rid_,G,"[Invalid Chunked Response]"),aJ(C),SiM(C))},fSr=function(C,
F){var G=C.JSC$19909_xmlHttpChunkStart_,V=F.indexOf("\n",G);
if(V==-1)return kWr;G=Number(F.substring(G,V));if(isNaN(G))return aSx;V+=1;if(V+G>F.length)return kWr;F=F.slice(V,V+G);C.JSC$19909_xmlHttpChunkStart_=V+G;return F};
tj.prototype.cancel=function(){this.JSC$19909_cancelled_=!0;aJ(this)};
var lSl=function(C){C.JSC$19909_watchDogTimeoutTime_=Date.now()+C.timeout_;chl(C,C.timeout_)},chl=function(C,F){if(C.JSC$19909_watchDogTimerId_!=null)throw Error("Sk");
C.JSC$19909_watchDogTimerId_=uxL((0,_.ck)(C.JSC$19913_onWatchDogTimeout_,C),F)},OSr=function(C){C.JSC$19909_watchDogTimerId_&&(_.VT.clearTimeout(C.JSC$19909_watchDogTimerId_),C.JSC$19909_watchDogTimerId_=null)};
tj.prototype.JSC$19913_onWatchDogTimeout_=function(){this.JSC$19909_watchDogTimerId_=null;var C=Date.now();C-this.JSC$19909_watchDogTimeoutTime_>=0?(EsV(this.JSC$19909_channelDebug_,this.JSC$19909_requestUri_),this.JSC$19909_type_!=2&&(JhW(3),IJ(17)),aJ(this),this.JSC$19909_lastError_=2,SiM(this)):(this.JSC$19909_channelDebug_.warning("WatchDog timer called too early"),chl(this,this.JSC$19909_watchDogTimeoutTime_-C))};
var SiM=function(C){C.JSC$19909_channel_.state_==0||C.JSC$19909_cancelled_||B6M(C.JSC$19909_channel_,C)},aJ=function(C){OSr(C);
_.uz(C.JSC$19909_readyStateChangeThrottle_);C.JSC$19909_readyStateChangeThrottle_=null;C.JSC$19909_eventHandler_.removeAll();if(C.JSC$19909_xmlHttp_){var F=C.JSC$19909_xmlHttp_;C.JSC$19909_xmlHttp_=null;F.abort();F.dispose()}};
tj.prototype.getLastError=function(){return this.JSC$19909_lastError_};
var M8r=function(C,F){try{var G=C.JSC$19909_channel_;if(G.state_!=0&&(G.JSC$19928_backChannelRequest_==C||Ah8(G.forwardChannelRequestPool_,C)))if(!C.initialResponseDecoded_&&Ah8(G.forwardChannelRequestPool_,C)&&G.state_==3){try{var V=G.wireCodec_.JSC$19923_parser_.parse(F)}catch(Q){V=null}if(Array.isArray(V)&&V.length==3){F=V;if(F[0]==0)a:if(G.JSC$19928_channelDebug_.debug("Server claims our backchannel is missing."),G.JSC$19928_backChannelTimerId_)G.JSC$19928_channelDebug_.debug("But we are currently starting the request.");
else{if(G.JSC$19928_backChannelRequest_)if(G.JSC$19928_backChannelRequest_.JSC$19909_requestStartTime_+3E3<C.JSC$19909_requestStartTime_)eFU(G),dZr(G);else break a;else G.JSC$19928_channelDebug_.warning("We do not have a BackChannel established");xZ8(G);IJ(18)}else{G.JSC$19928_lastPostResponseArrayId_=F[1];var J=G.JSC$19928_lastPostResponseArrayId_-G.JSC$19928_lastArrayId_;if(0<J){var b=F[2];G.JSC$19928_channelDebug_.debug(b+" bytes (in "+J+" arrays) are outstanding on the BackChannel");b<37500&&
G.enableStreaming_&&G.JSC$19928_backChannelRetryCount_==0&&!G.JSC$19928_deadBackChannelTimerId_&&(G.JSC$19928_deadBackChannelTimerId_=uxL((0,_.ck)(G.JSC$19930_onBackChannelDead_,G),6E3))}}if(sms(G.forwardChannelRequestPool_)<=1&&G.forwardChannelFlushedCallback_){try{G.forwardChannelFlushedCallback_()}catch(Q){}G.forwardChannelFlushedCallback_=void 0}}else G.JSC$19928_channelDebug_.debug("Bad POST response data returned"),kY(G,11)}else if((C.initialResponseDecoded_||G.JSC$19928_backChannelRequest_==
C)&&eFU(G),!_.uZ(F)){var z=G.wireCodec_.JSC$19923_parser_.parse(F);G.onInput_(z,C)}JhW(4)}catch(Q){}};var qis=function(C,F){this.JSC$19916_mapId=C;this.map=F;this.context=null};var PM8=function(C){this.maxPoolSizeConfigured_=C||10;_.VT.PerformanceNavigationTiming?(C=_.VT.performance.getEntriesByType("navigation"),C=C.length>0&&(C[0].nextHopProtocol=="hq"||C[0].nextHopProtocol=="h2")):C=!!(_.VT.chrome&&_.VT.chrome.loadTimes&&_.VT.chrome.loadTimes()&&_.VT.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19919_maxSize_=C?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19919_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19919_request_=null;this.JSC$19919_pendingMessages_=
[]},gsd=function(C){return C.JSC$19919_request_?!0:C.requestPool_?C.requestPool_.size>=C.JSC$19919_maxSize_:!1},sms=function(C){return C.JSC$19919_request_?1:C.requestPool_?C.requestPool_.size:0},Ah8=function(C,F){return C.JSC$19919_request_?C.JSC$19919_request_==F:C.requestPool_?C.requestPool_.has(F):!1},RFx=function(C,F){C.requestPool_?C.requestPool_.add(F):C.JSC$19919_request_=F},Yi8=function(C,F){C.JSC$19919_request_&&C.JSC$19919_request_==F?C.JSC$19919_request_=null:C.requestPool_&&C.requestPool_.has(F)&&
C.requestPool_.delete(F)};
PM8.prototype.cancel=function(){this.JSC$19919_pendingMessages_=T6r(this);if(this.JSC$19919_request_)this.JSC$19919_request_.cancel(),this.JSC$19919_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var C=_.u(this.requestPool_.values()),F=C.next();!F.done;F=C.next())F.value.cancel();this.requestPool_.clear()}};
var T6r=function(C){if(C.JSC$19919_request_!=null)return C.JSC$19919_pendingMessages_.concat(C.JSC$19919_request_.JSC$19909_pendingMessages_);if(C.requestPool_!=null&&C.requestPool_.size!==0){var F=C.JSC$19919_pendingMessages_;C=_.u(C.requestPool_.values());for(var G=C.next();!G.done;G=C.next())F=F.concat(G.value.JSC$19909_pendingMessages_);return F}return _.Po(C.JSC$19919_pendingMessages_)},osl=function(C,F){C.JSC$19919_pendingMessages_=C.JSC$19919_pendingMessages_.concat(F)};var rhx=function(C,F){var G=new EE;G.debug("TestLoadImage: loading "+C);if(_.VT.Image){var V=new Image;V.onload=_.$B(UE,G,"TestLoadImage: loaded",!0,F,V);V.onerror=_.$B(UE,G,"TestLoadImage: error",!1,F,V);V.onabort=_.$B(UE,G,"TestLoadImage: abort",!1,F,V);V.ontimeout=_.$B(UE,G,"TestLoadImage: timeout",!1,F,V);_.VT.setTimeout(function(){if(V.ontimeout)V.ontimeout()},1E4);
V.src=C}else F(!1)},Knt=function(C,F){var G=new EE,V=new AbortController,J=setTimeout(function(){V.abort();
UE(G,"TestPingServer: timeout",!1,F)},1E4);
fetch(C,{signal:V.signal}).then(function(b){clearTimeout(J);b.ok?UE(G,"TestPingServer: ok",!0,F):UE(G,"TestPingServer: server error",!1,F)}).catch(function(){clearTimeout(J);
UE(G,"TestPingServer: error",!1,F)})},UE=function(C,F,G,V,J){try{C.debug(F),J&&(J.onload=null,J.onerror=null,J.onabort=null,J.ontimeout=null),V(G)}catch(b){}};var DZL=function(){this.JSC$19923_parser_=new CMs};var p$U=function(C,F,G){return G&&G.internalChannelParams?G.internalChannelParams[C]||F:F},HT=function(C){this.serverVersion_=0;
this.JSC$19928_outgoingMaps_=[];this.JSC$19928_channelDebug_=new EE;this.JSC$19928_hostPrefix_=this.JSC$19928_backChannelUri_=this.JSC$19928_forwardChannelUri_=this.JSC$19928_path_=this.JSC$19928_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19928_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19928_extraHeaders_=null;this.JSC$19928_nextMapId_=this.JSC$19928_nextRid_=0;this.JSC$19928_failFast_=p$U("failFast",!1,C);this.enableStreaming_=this.JSC$19928_deadBackChannelTimerId_=
this.JSC$19928_backChannelTimerId_=this.JSC$19928_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19928_lastPostResponseArrayId_=this.JSC$19928_lastArrayId_=-1;this.JSC$19928_backChannelAttemptId_=this.JSC$19928_backChannelRetryCount_=this.JSC$19928_forwardChannelRetryCount_=0;this.JSC$19928_baseRetryDelayMs_=p$U("baseRetryDelayMs",5E3,C);this.JSC$19928_retryDelaySeedMs_=p$U("retryDelaySeedMs",1E4,C);this.JSC$19928_forwardChannelMaxRetries_=
p$U("forwardChannelMaxRetries",2,C);this.JSC$19928_forwardChannelRequestTimeoutMs_=p$U("forwardChannelRequestTimeoutMs",2E4,C);this.JSC$19928_xmlHttpFactory_=C&&C.xmlHttpFactory||void 0;this.networkTestUrl_=C&&C.networkTestUrl||void 0;this.usesFetchStreams_=C&&C.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19928_supportsCrossDomainXhrs_=C&&C.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new PM8(C&&C.concurrentRequestLimit);this.wireCodec_=new DZL;
this.fastHandshake_=C&&C.fastHandshake||!1;this.encodeInitMessageHeaders_=C&&C.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19928_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=C&&C.blockingHandshake||!1;C&&C.disableRedact&&this.JSC$19928_channelDebug_.disableRedact();C&&C.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&
this.allowStreamingMode_&&C&&C.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;C&&C.longPollingTimeout&&C.longPollingTimeout>0&&(this.longPollingTimeout_=C.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
HT.prototype.JSC$19930_channelVersion_=8;HT.prototype.state_=1;
HT.prototype.connect=function(C,F,G,V){this.JSC$19928_channelDebug_.debug("connect()");IJ(0);this.JSC$19928_path_=C;this.JSC$19928_extraParams_=F||{};G&&V!==void 0&&(this.JSC$19928_extraParams_.OSID=G,this.JSC$19928_extraParams_.OAID=V);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19928_channelDebug_.debug("connectChannel_()");C=mZh(this,null,this.JSC$19928_path_);this.JSC$19928_channelDebug_.debug("GetForwardChannelUri: "+C);this.JSC$19928_forwardChannelUri_=C;CcM(this)};
HT.prototype.disconnect=function(){this.JSC$19928_channelDebug_.debug("disconnect()");jkM(this);if(this.state_==3){var C=this.JSC$19928_nextRid_++,F=this.JSC$19928_forwardChannelUri_.clone();_.jE(F,"SID",this.sid_);_.jE(F,"RID",C);_.jE(F,"TYPE","terminate");FPV(this,F);C=new tj(this,this.JSC$19928_channelDebug_,this.sid_,C);C.JSC$19909_type_=2;C.JSC$19909_baseUri_=_.bx(F.clone());F=!1;if(_.VT.navigator&&_.VT.navigator.sendBeacon)try{F=_.VT.navigator.sendBeacon(C.JSC$19909_baseUri_.toString(),"")}catch(G){}!F&&
_.VT.Image&&((new Image).src=C.JSC$19909_baseUri_,F=!0);F||(C.JSC$19909_xmlHttp_=yhl(C.JSC$19909_channel_,null),C.JSC$19909_xmlHttp_.send(C.JSC$19909_baseUri_));C.JSC$19909_requestStartTime_=Date.now();lSl(C)}GV3(this)};
var dZr=function(C){C.JSC$19928_backChannelRequest_&&(hF8(C),C.JSC$19928_backChannelRequest_.cancel(),C.JSC$19928_backChannelRequest_=null)},jkM=function(C){dZr(C);
C.JSC$19928_backChannelTimerId_&&(_.VT.clearTimeout(C.JSC$19928_backChannelTimerId_),C.JSC$19928_backChannelTimerId_=null);eFU(C);C.forwardChannelRequestPool_.cancel();C.JSC$19928_forwardChannelTimerId_&&(typeof C.JSC$19928_forwardChannelTimerId_==="number"&&_.VT.clearTimeout(C.JSC$19928_forwardChannelTimerId_),C.JSC$19928_forwardChannelTimerId_=null)};
HT.prototype.getState=function(){return this.state_};
var CcM=function(C){gsd(C.forwardChannelRequestPool_)||C.JSC$19928_forwardChannelTimerId_||(C.JSC$19928_forwardChannelTimerId_=!0,_.Zf(C.JSC$19930_onStartForwardChannelTimer_,C),C.JSC$19928_forwardChannelRetryCount_=0)},iJL=function(C,F){if(sms(C.forwardChannelRequestPool_)>=C.forwardChannelRequestPool_.JSC$19919_maxSize_-(C.JSC$19928_forwardChannelTimerId_?1:0))return!1;
if(C.JSC$19928_forwardChannelTimerId_)return C.JSC$19928_channelDebug_.debug("Use the retry request that is already scheduled."),C.JSC$19928_outgoingMaps_=F.JSC$19909_pendingMessages_.concat(C.JSC$19928_outgoingMaps_),!0;if(C.state_==1||C.state_==2||C.JSC$19928_forwardChannelRetryCount_>=(C.JSC$19928_failFast_?0:C.JSC$19928_forwardChannelMaxRetries_))return!1;C.JSC$19928_channelDebug_.debug("Going to retry POST");C.JSC$19928_forwardChannelTimerId_=uxL((0,_.ck)(C.JSC$19930_onStartForwardChannelTimer_,
C,F),VpL(C,C.JSC$19928_forwardChannelRetryCount_));C.JSC$19928_forwardChannelRetryCount_++;return!0};
HT.prototype.JSC$19930_onStartForwardChannelTimer_=function(C){if(this.JSC$19928_forwardChannelTimerId_)if(this.JSC$19928_forwardChannelTimerId_=null,this.JSC$19928_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!C){this.JSC$19928_channelDebug_.debug("open_()");this.JSC$19928_nextRid_=Math.floor(Math.random()*1E5);C=this.JSC$19928_nextRid_++;var F=new tj(this,this.JSC$19928_channelDebug_,"",C),G=this.JSC$19928_extraHeaders_;this.initHeaders_&&(G?(G=_.xf.clone(G),_.xf.extend(G,this.initHeaders_)):
G=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(F.JSC$19909_extraHeaders_=G,G=null);var V;if(this.fastHandshake_)a:{for(var J=V=0;J<this.JSC$19928_outgoingMaps_.length;J++){b:{var b=this.JSC$19928_outgoingMaps_[J];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;V+=b;if(V>4096){V=J;break a}if(V===4096||J===this.JSC$19928_outgoingMaps_.length-1){V=J+1;break a}}V=1E3}else V=1E3;V=JSW(this,F,V);
J=this.JSC$19928_forwardChannelUri_.clone();_.jE(J,"RID",C);_.jE(J,"CVER",22);this.httpSessionIdParam_&&_.jE(J,"X-HTTP-Session-Id",this.httpSessionIdParam_);FPV(this,J);G&&(this.encodeInitMessageHeaders_?V="headers="+_.jP(bad(G))+"&"+V:this.httpHeadersOverwriteParam_&&nrL(J,this.httpHeadersOverwriteParam_,G));RFx(this.forwardChannelRequestPool_,F);this.blockingHandshake_&&_.jE(J,"TYPE","init");this.fastHandshake_?(_.jE(J,"$req",V),_.jE(J,"SID","null"),F.decodeInitialResponse_=!0,HSL(F,J,null)):HSL(F,
J,V);this.state_=2}}else this.state_==3&&(C?$Qs(this,C):this.JSC$19928_outgoingMaps_.length==0?this.JSC$19928_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):gsd(this.forwardChannelRequestPool_)||($Qs(this),this.JSC$19928_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var $Qs=function(C,F){var G;F?G=F.JSC$19909_rid_:G=C.JSC$19928_nextRid_++;var V=C.JSC$19928_forwardChannelUri_.clone();_.jE(V,"SID",C.sid_);_.jE(V,"RID",G);_.jE(V,"AID",C.JSC$19928_lastArrayId_);FPV(C,V);C.httpHeadersOverwriteParam_&&C.JSC$19928_extraHeaders_&&nrL(V,C.httpHeadersOverwriteParam_,C.JSC$19928_extraHeaders_);G=new tj(C,C.JSC$19928_channelDebug_,C.sid_,G,C.JSC$19928_forwardChannelRetryCount_+1);C.httpHeadersOverwriteParam_===null&&(G.JSC$19909_extraHeaders_=C.JSC$19928_extraHeaders_);
F&&(C.JSC$19928_outgoingMaps_=F.JSC$19909_pendingMessages_.concat(C.JSC$19928_outgoingMaps_));F=JSW(C,G,1E3);G.setTimeout(Math.round(C.JSC$19928_forwardChannelRequestTimeoutMs_*.5)+Math.round(C.JSC$19928_forwardChannelRequestTimeoutMs_*.5*Math.random()));RFx(C.forwardChannelRequestPool_,G);HSL(G,V,F)},FPV=function(C,F){C.JSC$19928_extraParams_&&_.xf.forEach(C.JSC$19928_extraParams_,function(G,V){_.jE(F,V,G)});
C.handler_&&_.xf.forEach({},function(G,V){_.jE(F,V,G)})},JSW=function(C,F,G){G=Math.min(C.JSC$19928_outgoingMaps_.length,G);
var V=C.handler_?(0,_.ck)(C.handler_.JSC$19934_badMapError,C.handler_,C):null;a:{for(var J=C.JSC$19928_outgoingMaps_,b=-1;;){var z=["count="+G];b==-1?G>0?(b=J[0].JSC$19916_mapId,z.push("ofs="+b)):b=0:z.push("ofs="+b);for(var Q=!0,E=0;E<G;E++){var t=J[E].JSC$19916_mapId,k=J[E].map;t-=b;if(t<0)b=Math.max(0,J[E].JSC$19916_mapId-100),Q=!1;else try{t="req"+t+"_"||"";try{var U=k instanceof Map?k:Object.entries(k);for(var H=_.u(U),l=H.next();!l.done;l=H.next()){var N=_.u(l.value),S=N.next().value,f=N.next().value,
c=f;_.TE(f)&&(c=(0,_.MX)(f));z.push(t+S+"="+encodeURIComponent(c))}}catch(A){throw z.push(t+"type="+encodeURIComponent("_badmap")),A;}}catch(A){V&&V(k)}}if(Q){U=z.join("&");break a}}U=void 0}C=C.JSC$19928_outgoingMaps_.splice(0,G);F.JSC$19909_pendingMessages_=C;return U},bJ8=function(C){C.JSC$19928_backChannelRequest_||C.JSC$19928_backChannelTimerId_||(C.JSC$19928_backChannelAttemptId_=1,_.Zf(C.JSC$19930_onStartBackChannelTimer_,C),C.JSC$19928_backChannelRetryCount_=0)},xZ8=function(C){if(C.JSC$19928_backChannelRequest_||
C.JSC$19928_backChannelTimerId_||C.JSC$19928_backChannelRetryCount_>=3)return!1;
C.JSC$19928_channelDebug_.debug("Going to retry GET");C.JSC$19928_backChannelAttemptId_++;C.JSC$19928_backChannelTimerId_=uxL((0,_.ck)(C.JSC$19930_onStartBackChannelTimer_,C),VpL(C,C.JSC$19928_backChannelRetryCount_));C.JSC$19928_backChannelRetryCount_++;return!0};
HT.prototype.JSC$19930_onStartBackChannelTimer_=function(){this.JSC$19928_backChannelTimerId_=null;na8(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19928_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19928_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19928_backChannelRequest_+" "+this.handshakeRttMs_);else{var C=4*this.handshakeRttMs_;this.JSC$19928_channelDebug_.info("BP detection timer enabled: "+C);this.bpDetectionTimerId_=uxL((0,_.ck)(this.onBpDetectionTimer_,
this),C)}};
HT.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19928_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19928_backChannelRequest_.JSC$19909_xmlHttp_!=null){var C=this.JSC$19928_backChannelRequest_.JSC$19909_xmlHttp_.getResponseText();C&&this.JSC$19928_channelDebug_.warning("Timer should have been cancelled : "+C)}this.JSC$19928_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;IJ(10);dZr(this);na8(this)}else this.JSC$19928_channelDebug_.warning("Invalid operation.")};
var hF8=function(C){C.bpDetectionTimerId_!=null&&(C.JSC$19928_channelDebug_.debug("Cancel the BP detection timer."),_.VT.clearTimeout(C.bpDetectionTimerId_),C.bpDetectionTimerId_=null)},na8=function(C){C.JSC$19928_channelDebug_.debug("Creating new HttpRequest");
C.JSC$19928_backChannelRequest_=new tj(C,C.JSC$19928_channelDebug_,C.sid_,"rpc",C.JSC$19928_backChannelAttemptId_);C.httpHeadersOverwriteParam_===null&&(C.JSC$19928_backChannelRequest_.JSC$19909_extraHeaders_=C.JSC$19928_extraHeaders_);C.JSC$19928_backChannelRequest_.JSC$19909_readyStateChangeThrottleMs_=0;var F=C.JSC$19928_backChannelUri_.clone();_.jE(F,"RID","rpc");_.jE(F,"SID",C.sid_);_.jE(F,"AID",C.JSC$19928_lastArrayId_);_.jE(F,"CI",C.enableStreaming_?"0":"1");!C.enableStreaming_&&C.longPollingTimeout_&&
_.jE(F,"TO",C.longPollingTimeout_);_.jE(F,"TYPE","xmlhttp");FPV(C,F);C.httpHeadersOverwriteParam_&&C.JSC$19928_extraHeaders_&&nrL(F,C.httpHeadersOverwriteParam_,C.JSC$19928_extraHeaders_);C.backChannelRequestTimeoutMs_&&C.JSC$19928_backChannelRequest_.setTimeout(C.backChannelRequestTimeoutMs_);var G=C.JSC$19928_backChannelRequest_,V=C.JSC$19928_hostPrefix_;G.JSC$19909_type_=1;G.JSC$19909_baseUri_=_.bx(F.clone());G.JSC$19909_postData_=null;G.decodeChunks_=!0;UZL(G,V);C.JSC$19928_channelDebug_.debug("New Request created")};
HT.prototype.JSC$19930_onBackChannelDead_=function(){this.JSC$19928_deadBackChannelTimerId_!=null&&(this.JSC$19928_deadBackChannelTimerId_=null,dZr(this),xZ8(this),IJ(19))};
var eFU=function(C){C.JSC$19928_deadBackChannelTimerId_!=null&&(_.VT.clearTimeout(C.JSC$19928_deadBackChannelTimerId_),C.JSC$19928_deadBackChannelTimerId_=null)},B6M=function(C,F){C.JSC$19928_channelDebug_.debug("Request complete");
var G=null;if(C.JSC$19928_backChannelRequest_==F){eFU(C);hF8(C);C.JSC$19928_backChannelRequest_=null;var V=2}else if(Ah8(C.forwardChannelRequestPool_,F))G=F.JSC$19909_pendingMessages_,Yi8(C.forwardChannelRequestPool_,F),V=1;else return;if(C.state_!=0)if(F.JSC$19909_successful_)V==1?(nsh(F.JSC$19909_postData_?F.JSC$19909_postData_.length:0,Date.now()-F.JSC$19909_requestStartTime_,C.JSC$19928_forwardChannelRetryCount_),CcM(C)):bJ8(C);else{var J=F.JSC$19909_lastStatusCode_,b=F.getLastError();if(b==3||
b==0&&J>0)C.JSC$19928_channelDebug_.debug("Not retrying due to error type"),J>200&&(C.errorResponseStatusCode_=F.JSC$19909_lastStatusCode_);else{C.JSC$19928_channelDebug_.debug(function(){return"Maybe retrying, last error: "+t8M(b,C.errorResponseStatusCode_)});
if(V==1&&iJL(C,F)||V==2&&xZ8(C))return;C.JSC$19928_channelDebug_.debug("Exceeded max number of retries")}G&&G.length>0&&osl(C.forwardChannelRequestPool_,G);C.JSC$19928_channelDebug_.debug("Error: HTTP request failed");switch(b){case 1:kY(C,5);break;case 4:kY(C,10);break;case 3:kY(C,6);break;default:kY(C,2)}}},VpL=function(C,F){var G=C.JSC$19928_baseRetryDelayMs_+Math.floor(Math.random()*C.JSC$19928_retryDelaySeedMs_);
C.isActive()||(C.JSC$19928_channelDebug_.debug("Inactive channel"),G*=2);return G*F};
HT.prototype.onInput_=function(C,F){for(var G=0;G<C.length;G++){var V=C[G],J=V[0];if(J<=this.JSC$19928_lastArrayId_)this.JSC$19928_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+J+", lastArrayId: "+this.JSC$19928_lastArrayId_);else if(J>this.JSC$19928_lastArrayId_+1&&this.JSC$19928_lastArrayId_>-1&&this.JSC$19928_channelDebug_.warning("Received non-consecutive message with arrayId: "+J+", lastArrayId: "+this.JSC$19928_lastArrayId_),this.JSC$19928_lastArrayId_=J,
V=V[1],this.state_==2)if(V[0]=="c"){this.sid_=V[1];this.JSC$19928_hostPrefix_=V[2];J=V[3];J!=null&&(this.JSC$19930_channelVersion_=J,this.JSC$19928_channelDebug_.info("VER="+this.JSC$19930_channelVersion_));J=V[4];J!=null&&(this.serverVersion_=J,this.JSC$19928_channelDebug_.info("SVER="+this.serverVersion_));V=V[5];V!=null&&typeof V==="number"&&V>0&&(this.backChannelRequestTimeoutMs_=V*=1.5,this.JSC$19928_channelDebug_.info("backChannelRequestTimeoutMs_="+V));if(V=F.JSC$19909_xmlHttp_){var b=EO(V,
"X-Client-Wire-Protocol");b&&(J=this.forwardChannelRequestPool_,!J.requestPool_&&(_.zE(b,"spdy")||_.zE(b,"quic")||_.zE(b,"h2"))&&(J.JSC$19919_maxSize_=J.maxPoolSizeConfigured_,J.requestPool_=new Set,J.JSC$19919_request_&&(RFx(J,J.JSC$19919_request_),J.JSC$19919_request_=null)));this.httpSessionIdParam_&&((V=EO(V,"X-HTTP-Session-Id"))?(this.httpSessionId_=V,_.jE(this.JSC$19928_forwardChannelUri_,this.httpSessionIdParam_,V)):this.JSC$19928_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$19934_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-F.JSC$19909_requestStartTime_,this.JSC$19928_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));V=F;J=mZh(this,this.JSC$19928_supportsCrossDomainXhrs_?this.JSC$19928_hostPrefix_:null,this.JSC$19928_path_);this.JSC$19928_channelDebug_.debug("GetBackChannelUri: "+J);this.JSC$19928_backChannelUri_=J;V.initialResponseDecoded_?(this.JSC$19928_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
Yi8(this.forwardChannelRequestPool_,V),J=V,(b=this.backChannelRequestTimeoutMs_)&&J.setTimeout(b),J.JSC$19909_watchDogTimerId_&&(OSr(J),lSl(J)),this.JSC$19928_backChannelRequest_=V):bJ8(this);this.JSC$19928_outgoingMaps_.length>0&&CcM(this)}else V[0]!="stop"&&V[0]!="close"||kY(this,7);else this.state_==3&&(V[0]=="stop"||V[0]=="close"?V[0]=="stop"?kY(this,7):this.disconnect():V[0]!="noop"&&this.handler_&&this.handler_.JSC$19934_channelHandleArray(V),this.JSC$19928_backChannelRetryCount_=0)}};
var kY=function(C,F){C.JSC$19928_channelDebug_.info("Error code "+F);if(F==2){var G=(0,_.ck)(C.testNetworkCallback_,C),V=C.networkTestUrl_,J=!V;V=new _.dz(V||"//www.google.com/images/cleardot.gif");_.VT.location&&_.VT.location.protocol=="http"||_.mA(V,"https");_.bx(V);J?rhx(V.toString(),G):Knt(V.toString(),G)}else IJ(2);C.onError_(F)};
HT.prototype.testNetworkCallback_=function(C){C?(this.JSC$19928_channelDebug_.info("Successfully pinged google.com"),IJ(2)):(this.JSC$19928_channelDebug_.info("Failed to ping google.com"),IJ(1))};
HT.prototype.onError_=function(C){this.JSC$19928_channelDebug_.debug("HttpChannel: error - "+C);this.state_=0;this.handler_&&this.handler_.JSC$19934_channelError(C);GV3(this);jkM(this)};
var GV3=function(C){C.state_=0;C.nonAckedMapsAtChannelClose_=[];if(C.handler_){var F=T6r(C.forwardChannelRequestPool_);if(F.length!=0||C.JSC$19928_outgoingMaps_.length!=0)C.JSC$19928_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+F.length+", outgoing: "+C.JSC$19928_outgoingMaps_.length}),_.Rw(C.nonAckedMapsAtChannelClose_,F),_.Rw(C.nonAckedMapsAtChannelClose_,C.JSC$19928_outgoingMaps_),C.forwardChannelRequestPool_.JSC$19919_pendingMessages_.length=0,_.Po(C.JSC$19928_outgoingMaps_),
C.JSC$19928_outgoingMaps_.length=0;
C.handler_.JSC$19934_channelClosed()}},ueL=function(C){if(C.state_==0)return C.nonAckedMapsAtChannelClose_;
var F=[];_.Rw(F,T6r(C.forwardChannelRequestPool_));_.Rw(F,C.JSC$19928_outgoingMaps_);return F},mZh=function(C,F,G){var V=_.mg(G);
V.JSC$10031_domain_!=""?(F&&_.C4(V,F+"."+V.JSC$10031_domain_),_.jB(V,V.JSC$10031_port_)):(V=_.VT.location,V=Kll(V.protocol,F?F+"."+V.hostname:V.hostname,+V.port,G));F=C.httpSessionIdParam_;G=C.httpSessionId_;F&&G&&_.jE(V,F,G);_.jE(V,"VER",C.JSC$19930_channelVersion_);FPV(C,V);return V},yhl=function(C,F,G){if(F&&!C.JSC$19928_supportsCrossDomainXhrs_)throw Error("Tk");
F=C.usesFetchStreams_&&!C.JSC$19928_xmlHttpFactory_?new _.SL(new V$8({streamBinaryChunks:G})):new _.SL(C.JSC$19928_xmlHttpFactory_);F.JSC$9795_withCredentials_=C.JSC$19928_supportsCrossDomainXhrs_;return F};
HT.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var zhl=function(){};
_.n=zhl.prototype;_.n.JSC$19934_channelOpened=function(){};
_.n.JSC$19934_channelHandleArray=function(){};
_.n.JSC$19934_channelError=function(){};
_.n.JSC$19934_channelClosed=function(){};
_.n.isActive=function(){return!0};
_.n.JSC$19934_badMapError=function(){};var Qkh=function(){},yL=function(C,F){_.lT.call(this);
this.JSC$19937_channel_=new HT(F);this.JSC$19937_url_=C;this.messageUrlParams_=F&&F.messageUrlParams||null;C=F&&F.messageHeaders||null;F&&F.clientProtocolHeaderRequired&&(C?_.xf.set(C,"X-Client-Protocol","webchannel"):C=_.xf.create("X-Client-Protocol","webchannel"));this.JSC$19937_channel_.JSC$19928_extraHeaders_=C;C=F&&F.initMessageHeaders||null;F&&F.messageContentType&&(C?_.xf.set(C,"X-WebChannel-Content-Type",F.messageContentType):C=_.xf.create("X-WebChannel-Content-Type",F.messageContentType));
F&&F.clientProfile&&(C?_.xf.set(C,"X-WebChannel-Client-Profile",F.clientProfile):C=_.xf.create("X-WebChannel-Client-Profile",F.clientProfile));this.JSC$19937_channel_.initHeaders_=C;(C=F&&F.httpHeadersOverwriteParam)&&!_.uZ(C)&&(this.JSC$19937_channel_.httpHeadersOverwriteParam_=C);this.supportsCrossDomainXhr_=F&&F.supportsCrossDomainXhr||!1;this.sendRawJson_=F&&F.sendRawJson||!1;(F=F&&F.httpSessionIdParam)&&!_.uZ(F)&&(this.JSC$19937_channel_.httpSessionIdParam_=F,_.xf.containsKey(this.messageUrlParams_,
F)&&_.xf.remove(this.messageUrlParams_,F));this.channelHandler_=new l_(this)};
_.RE(yL,_.lT);yL.prototype.open=function(){this.JSC$19937_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19937_channel_.JSC$19928_supportsCrossDomainXhrs_=!0);this.JSC$19937_channel_.connect(this.JSC$19937_url_,this.messageUrlParams_||void 0)};
yL.prototype.close=function(){this.JSC$19937_channel_.disconnect()};
yL.prototype.send=function(C){var F=this.JSC$19937_channel_;if(typeof C==="string"){var G={};G.__data__=C;C=G}else this.sendRawJson_&&(G={},G.__data__=(0,_.MX)(C),C=G);F.JSC$19928_outgoingMaps_.push(new qis(F.JSC$19928_nextMapId_++,C));F.state_==3&&CcM(F)};
yL.prototype.disposeInternal=function(){this.JSC$19937_channel_.handler_=null;delete this.channelHandler_;this.JSC$19937_channel_.disconnect();delete this.JSC$19937_channel_;yL.superClass_.disposeInternal.call(this)};
var I7_=function(C){jmM.call(this);C.__headers__&&(this.headers=C.__headers__,this.statusCode=C.__status__,delete C.__headers__,delete C.__status__);var F=C.__sm__;F?this.data=(this.metadataKey=_.xf.getAnyKey(F))?_.xf.get(F,this.metadataKey):F:this.data=C};
_.RE(I7_,jmM);var Eat=function(C){FnV.call(this);this.status=1;this.errorCode=C};
_.RE(Eat,FnV);var l_=function(C){this.JSC$19944_channel_=C};
_.RE(l_,zhl);l_.prototype.JSC$19934_channelOpened=function(){this.JSC$19944_channel_.dispatchEvent("w")};
l_.prototype.JSC$19934_channelHandleArray=function(C){this.JSC$19944_channel_.dispatchEvent(new I7_(C))};
l_.prototype.JSC$19934_channelError=function(C){this.JSC$19944_channel_.dispatchEvent(new Eat(C))};
l_.prototype.JSC$19934_channelClosed=function(){this.JSC$19944_channel_.dispatchEvent("x")};
var WPL=function(C,F){this.transportChannel_=C;this.JSC$19947_channel_=F},tph=function(C){return ueL(C.JSC$19947_channel_).map(function(F){var G=C.transportChannel_;
F=F.map;"__data__"in F?(F=F.__data__,G=G.sendRawJson_?(0,_.fNS)(F):F):G=F;return G})};
WPL.prototype.commit=function(C){this.JSC$19947_channel_.forwardChannelFlushedCallback_=C};var ZK=function(C){a7t.dispatchEvent(new kVM(a7t,C))},a7t=new _.lT,kVM=function(C,F){_.tP.call(this,"statevent",C);
this.stat=F};
_.O(kVM,_.tP);var NK=function(C,F,G,V,J){this.JSC$19952_channel_=C;this.JSC$19952_channelDebug_=F;this.sid_=G;this.JSC$19952_rid_=V;this.JSC$19952_retryId_=J||1;this.timeout_=45E3;this.JSC$19952_eventHandler_=new _.ln(this);this.pollingTimer_=new _.UH;this.pollingTimer_.setInterval(250)};
_.n=NK.prototype;_.n.JSC$19954_extraHeaders_=null;_.n.JSC$19954_successful_=!1;_.n.JSC$19954_watchDogTimerId_=null;_.n.JSC$19954_watchDogTimeoutTime_=null;_.n.JSC$19954_requestStartTime_=null;_.n.JSC$19954_type_=null;_.n.JSC$19954_baseUri_=null;_.n.JSC$19954_requestUri_=null;_.n.JSC$19954_postData_=null;_.n.JSC$19954_xmlHttp_=null;_.n.JSC$19954_xmlHttpChunkStart_=0;_.n.trident_=null;_.n.JSC$19954_verb_=null;_.n.JSC$19954_lastError_=null;_.n.JSC$19954_lastStatusCode_=-1;_.n.sendClose_=!0;
_.n.JSC$19954_cancelled_=!1;_.n.JSC$19954_readyStateChangeThrottleMs_=0;_.n.JSC$19954_readyStateChangeThrottle_=null;var UQ3=function(C,F){switch(C){case 0:return"Non-200 return code ("+F+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},HJV={},l7W={};
NK.prototype.setTimeout=function(C){this.timeout_=C};
var ZJ3=function(C,F,G){C.JSC$19954_type_=1;C.JSC$19954_baseUri_=_.bx(F.clone());C.JSC$19954_postData_=G;C.decodeChunks_=!0;ySM(C,null)},NqL=function(C,F,G,V,J){C.JSC$19954_type_=1;
C.JSC$19954_baseUri_=_.bx(F.clone());C.JSC$19954_postData_=null;C.decodeChunks_=G;J&&(C.sendClose_=!1);ySM(C,V)},ySM=function(C,F){C.JSC$19954_requestStartTime_=Date.now();
OJ_(C);C.JSC$19954_requestUri_=C.JSC$19954_baseUri_.clone();tX(C.JSC$19954_requestUri_,"t",C.JSC$19952_retryId_);C.JSC$19954_xmlHttpChunkStart_=0;C.JSC$19954_xmlHttp_=C.JSC$19952_channel_.JSC$19961_createXhrIo(C.JSC$19952_channel_.JSC$19961_shouldUseSecondaryDomains()?F:null);C.JSC$19954_readyStateChangeThrottleMs_>0&&(C.JSC$19954_readyStateChangeThrottle_=new _.FX((0,_.ck)(C.JSC$19954_xmlHttpHandler_,C,C.JSC$19954_xmlHttp_),C.JSC$19954_readyStateChangeThrottleMs_));C.JSC$19952_eventHandler_.listen(C.JSC$19954_xmlHttp_,
"readystatechange",C.JSC$19954_readyStateChangeHandler_);F=C.JSC$19954_extraHeaders_?_.xf.clone(C.JSC$19954_extraHeaders_):{};C.JSC$19954_postData_?(C.JSC$19954_verb_="POST",F["Content-Type"]="application/x-www-form-urlencoded",C.JSC$19954_xmlHttp_.send(C.JSC$19954_requestUri_,C.JSC$19954_verb_,C.JSC$19954_postData_,F)):(C.JSC$19954_verb_="GET",C.sendClose_&&!_.Do&&(F.Connection="close"),C.JSC$19954_xmlHttp_.send(C.JSC$19954_requestUri_,C.JSC$19954_verb_,null,F));C.JSC$19952_channel_.notifyServerReachabilityEvent(1);
F=C.JSC$19952_channelDebug_;var G=C.JSC$19954_postData_;if(G){var V="";G=G.split("&");for(var J=0;J<G.length;J++){var b=G[J].split("=");if(b.length>1){var z=b[0];b=b[1];var Q=z.split("_");V=Q.length>=2&&Q[1]=="type"?V+(z+"="+b+"&"):V+(z+"=redacted&")}}}else V=null;F.info("XMLHTTP REQ ("+C.JSC$19952_rid_+") [attempt "+C.JSC$19952_retryId_+"]: "+C.JSC$19954_verb_+"\n"+C.JSC$19954_requestUri_+"\n"+V)};
NK.prototype.JSC$19954_readyStateChangeHandler_=function(C){C=C.target;var F=this.JSC$19954_readyStateChangeThrottle_;F&&_.LC(C)==3?(this.JSC$19952_channelDebug_.debug("Throttling readystatechange."),F.fire()):this.JSC$19954_xmlHttpHandler_(C)};
NK.prototype.JSC$19954_xmlHttpHandler_=function(C){try{if(C==this.JSC$19954_xmlHttp_)a:{var F=_.LC(this.JSC$19954_xmlHttp_),G=this.JSC$19954_xmlHttp_.JSC$9795_lastErrorCode_,V=this.JSC$19954_xmlHttp_.getStatus();if(_.Do&&!_.pV("420+")){if(F<4)break a}else if(F<3||F==3&&!this.JSC$19954_xmlHttp_.getResponseText())break a;this.JSC$19954_cancelled_||F!=4||G==7||(G==8||V<=0?this.JSC$19952_channel_.notifyServerReachabilityEvent(3):this.JSC$19952_channel_.notifyServerReachabilityEvent(2));XnL(this);var J=
this.JSC$19954_xmlHttp_.getStatus();this.JSC$19954_lastStatusCode_=J;var b=this.JSC$19954_xmlHttp_.getResponseText();b||this.JSC$19952_channelDebug_.debug("No response text for uri "+this.JSC$19954_requestUri_+" status "+J);this.JSC$19954_successful_=J==200;this.JSC$19952_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19952_rid_+") [ attempt "+this.JSC$19952_retryId_+"]: "+this.JSC$19954_verb_+"\n"+this.JSC$19954_requestUri_+"\n"+F+" "+J);if(this.JSC$19954_successful_){F==4&&wn_(this);if(this.decodeChunks_){for(C=
!0;!this.JSC$19954_cancelled_&&this.JSC$19954_xmlHttpChunkStart_<b.length;){var z=MpL(this,b);if(z==l7W){F==4&&(this.JSC$19954_lastError_=4,ZK(15),C=!1);Sbr(this.JSC$19952_channelDebug_,this.JSC$19952_rid_,null,"[Incomplete Response]");break}else if(z==HJV){this.JSC$19954_lastError_=4;ZK(16);Sbr(this.JSC$19952_channelDebug_,this.JSC$19952_rid_,b,"[Invalid Chunk]");C=!1;break}else Sbr(this.JSC$19952_channelDebug_,this.JSC$19952_rid_,z,null),LPV(this,z)}F==4&&b.length==0&&(this.JSC$19954_lastError_=
1,ZK(17),C=!1);this.JSC$19954_successful_=this.JSC$19954_successful_&&C;C||(Sbr(this.JSC$19952_channelDebug_,this.JSC$19952_rid_,b,"[Invalid Chunked Response]"),wn_(this),BqW(this))}else Sbr(this.JSC$19952_channelDebug_,this.JSC$19952_rid_,b,null),LPV(this,b);this.JSC$19954_successful_&&!this.JSC$19954_cancelled_&&(F==4?this.JSC$19952_channel_.JSC$19961_onRequestComplete(this):(this.JSC$19954_successful_=!1,OJ_(this)))}else J==400&&b.indexOf("Unknown SID")>0?(this.JSC$19954_lastError_=3,ZK(13),this.JSC$19952_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19952_rid_+")")):(this.JSC$19954_lastError_=0,ZK(14),this.JSC$19952_channelDebug_.warning("XMLHTTP Bad status "+J+" ("+this.JSC$19952_rid_+")")),wn_(this),BqW(this)}else this.JSC$19952_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(Q){this.JSC$19952_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var MpL=function(C,F){var G=C.JSC$19954_xmlHttpChunkStart_,V=F.indexOf("\n",G);if(V==-1)return l7W;G=Number(F.substring(G,V));if(isNaN(G))return HJV;V+=1;if(V+G>F.length)return l7W;F=F.slice(V,V+G);C.JSC$19954_xmlHttpChunkStart_=V+G;return F};
NK.prototype.cancel=function(){this.JSC$19954_cancelled_=!0;wn_(this)};
var OJ_=function(C){C.JSC$19954_watchDogTimeoutTime_=Date.now()+C.timeout_;va_(C,C.timeout_)},va_=function(C,F){if(C.JSC$19954_watchDogTimerId_!=null)throw Error("Sk");
C.JSC$19954_watchDogTimerId_=XK((0,_.ck)(C.JSC$19954_onWatchDogTimeout_,C),F)},XnL=function(C){C.JSC$19954_watchDogTimerId_&&(_.VT.clearTimeout(C.JSC$19954_watchDogTimerId_),C.JSC$19954_watchDogTimerId_=null)};
NK.prototype.JSC$19954_onWatchDogTimeout_=function(){this.JSC$19954_watchDogTimerId_=null;var C=Date.now();C-this.JSC$19954_watchDogTimeoutTime_>=0?(this.JSC$19952_channelDebug_.info("TIMEOUT: "+this.JSC$19954_requestUri_),this.JSC$19954_type_!=2&&this.JSC$19952_channel_.notifyServerReachabilityEvent(3),wn_(this),this.JSC$19954_lastError_=2,ZK(18),BqW(this)):(this.JSC$19952_channelDebug_.warning("WatchDog timer called too early"),va_(this,this.JSC$19954_watchDogTimeoutTime_-C))};
var BqW=function(C){C.JSC$19952_channel_.JSC$19961_isClosed()||C.JSC$19954_cancelled_||C.JSC$19952_channel_.JSC$19961_onRequestComplete(C)},wn_=function(C){XnL(C);
_.uz(C.JSC$19954_readyStateChangeThrottle_);C.JSC$19954_readyStateChangeThrottle_=null;C.pollingTimer_.stop();C.JSC$19952_eventHandler_.removeAll();if(C.JSC$19954_xmlHttp_){var F=C.JSC$19954_xmlHttp_;C.JSC$19954_xmlHttp_=null;F.abort();F.dispose()}C.trident_&&(C.trident_=null)};
NK.prototype.getLastError=function(){return this.JSC$19954_lastError_};
var LPV=function(C,F){try{C.JSC$19952_channel_.JSC$19961_onRequestData(C,F),C.JSC$19952_channel_.notifyServerReachabilityEvent(4)}catch(G){}};var Sbr=function(C,F,G,V){var J=C.info;a:if(G&&G!="y2f%"){try{var b=JSON.parse(G);if(b)for(var z=0;z<b.length;z++)if(Array.isArray(b[z])){var Q=b[z];if(!(Q.length<2)){var E=Q[1];if(Array.isArray(E)&&!(E.length<1)){var t=E[0];if(t!="noop"&&t!="stop")for(var k=1;k<E.length;k++)E[k]=""}}}var U=(0,_.MX)(b);break a}catch(H){C.debug("Exception parsing expected JS array - probably was not JS");U=G;break a}U=void 0}else U=G;J.call(C,"XMLHTTP TEXT ("+F+"): "+U+(V?" "+V:""))};
w5.prototype.debug=function(C){this.info(C)};
w5.prototype.info=function(){};
w5.prototype.warning=function(){};var f7s=function(C,F){this.JSC$19959_channel_=C;this.JSC$19959_channelDebug_=F;this.JSC$19959_parser_=new CMs};
_.n=f7s.prototype;_.n.JSC$19961_extraHeaders_=null;_.n.JSC$19961_request_=null;_.n.receivedIntermediateResult_=!1;_.n.JSC$19961_path_=null;_.n.state_=null;_.n.JSC$19961_lastStatusCode_=-1;_.n.JSC$19961_hostPrefix_=null;_.n.blockedPrefix_=null;
_.n.connect=function(C){this.JSC$19961_path_=C;C=hhh(this.JSC$19959_channel_,this.JSC$19961_path_);ZK(3);Date.now();var F=this.JSC$19959_channel_.firstTestResults_;F!=null?(this.JSC$19961_hostPrefix_=F[0],(this.blockedPrefix_=F[1])?(this.state_=1,cS_(this)):(this.state_=2,ASs(this))):(tX(C,"MODE","init"),this.JSC$19961_request_=new NK(this,this.JSC$19959_channelDebug_),this.JSC$19961_request_.JSC$19954_extraHeaders_=this.JSC$19961_extraHeaders_,NqL(this.JSC$19961_request_,C,!1,null,!0),this.state_=
0)};
var cS_=function(C){var F=eh3(C.JSC$19959_channel_,C.blockedPrefix_,"/mail/images/cleardot.gif");_.bx(F);LeU(F.toString(),5E3,(0,_.ck)(C.checkBlockedCallback_,C),3,2E3);C.notifyServerReachabilityEvent(1)};
f7s.prototype.checkBlockedCallback_=function(C){if(C)this.state_=2,ASs(this);else{ZK(4);var F=this.JSC$19959_channel_;F.JSC$19962_channelDebug_.debug("Test Connection Blocked");F.JSC$19966_lastStatusCode_=F.connectionTest_.JSC$19961_lastStatusCode_;OE(F,9)}C&&this.notifyServerReachabilityEvent(2)};
var ASs=function(C){C.JSC$19959_channelDebug_.debug("TestConnection: starting stage 2");var F=C.JSC$19959_channel_.secondTestResults_;F!=null?(C.JSC$19959_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+F?"Buffered":"Unbuffered"),ZK(5),F?(ZK(11),dQV(C.JSC$19959_channel_,C,!1)):(ZK(12),dQV(C.JSC$19959_channel_,C,!0))):(C.JSC$19961_request_=new NK(C,C.JSC$19959_channelDebug_),C.JSC$19961_request_.JSC$19954_extraHeaders_=C.JSC$19961_extraHeaders_,F=xQr(C.JSC$19959_channel_,
C.JSC$19961_hostPrefix_,C.JSC$19961_path_),ZK(5),tX(F,"TYPE","xmlhttp"),NqL(C.JSC$19961_request_,F,!1,C.JSC$19961_hostPrefix_,!1))};
_.n=f7s.prototype;_.n.JSC$19961_createXhrIo=function(C){return this.JSC$19959_channel_.JSC$19961_createXhrIo(C)};
_.n.abort=function(){this.JSC$19961_request_&&(this.JSC$19961_request_.cancel(),this.JSC$19961_request_=null);this.JSC$19961_lastStatusCode_=-1};
_.n.JSC$19961_isClosed=function(){return!1};
_.n.JSC$19961_onRequestData=function(C,F){this.JSC$19961_lastStatusCode_=C.JSC$19954_lastStatusCode_;if(this.state_==0)if(this.JSC$19959_channelDebug_.debug("TestConnection: Got data for stage 1"),F){try{var G=this.JSC$19959_parser_.parse(F)}catch(V){skr(this.JSC$19959_channel_,this);return}this.JSC$19961_hostPrefix_=G[0];this.blockedPrefix_=G[1]}else this.JSC$19959_channelDebug_.debug("TestConnection: Null responseText"),skr(this.JSC$19959_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(ZK(7),Date.now()):F=="11111"?(ZK(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19961_lastStatusCode_=200,this.JSC$19961_request_.cancel(),this.JSC$19959_channelDebug_.debug("Test connection succeeded; using streaming connection"),ZK(12),dQV(this.JSC$19959_channel_,this,!0)):(ZK(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.n.JSC$19961_onRequestComplete=function(){this.JSC$19961_lastStatusCode_=this.JSC$19961_request_.JSC$19954_lastStatusCode_;this.JSC$19961_request_.JSC$19954_successful_?this.state_==0?(this.JSC$19959_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,cS_(this)):(this.state_=2,ASs(this))):this.state_==2&&(this.JSC$19959_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19959_channelDebug_.debug("Test connection succeeded; using streaming connection"),
ZK(12),dQV(this.JSC$19959_channel_,this,!0)):(this.JSC$19959_channelDebug_.debug("Test connection failed; not using streaming"),ZK(11),dQV(this.JSC$19959_channel_,this,!1))):(this.JSC$19959_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?ZK(9):this.state_==2&&ZK(10),skr(this.JSC$19959_channel_,this,this.JSC$19961_request_.getLastError()))};
_.n.JSC$19961_shouldUseSecondaryDomains=function(){return this.JSC$19959_channel_.JSC$19961_shouldUseSecondaryDomains()};
_.n.isActive=function(){return this.JSC$19959_channel_.isActive()};
_.n.notifyServerReachabilityEvent=function(C){this.JSC$19959_channel_.notifyServerReachabilityEvent(C)};var XW=function(C,F,G){this.state_=1;this.JSC$19962_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19962_channelDebug_=new w5;this.JSC$19962_parser_=new CMs;this.firstTestResults_=C||null;this.secondTestResults_=F!=null?F:null;this.asyncTest_=G||!1},qbL=function(C,F){this.JSC$19964_mapId=C;
this.map=F;this.context=null};
_.n=XW.prototype;_.n.JSC$19966_extraHeaders_=null;_.n.JSC$19966_extraParams_=null;_.n.forwardChannelRequest_=null;_.n.JSC$19966_backChannelRequest_=null;_.n.JSC$19966_path_=null;_.n.JSC$19966_forwardChannelUri_=null;_.n.JSC$19966_backChannelUri_=null;_.n.JSC$19966_hostPrefix_=null;_.n.JSC$19966_nextRid_=0;_.n.JSC$19966_nextMapId_=0;_.n.handler_=null;_.n.JSC$19966_forwardChannelTimerId_=null;_.n.JSC$19966_backChannelTimerId_=null;_.n.JSC$19966_deadBackChannelTimerId_=null;_.n.connectionTest_=null;
_.n.useChunked_=null;_.n.JSC$19966_lastArrayId_=-1;_.n.JSC$19966_lastPostResponseArrayId_=-1;_.n.JSC$19966_lastStatusCode_=-1;_.n.JSC$19966_forwardChannelRetryCount_=0;_.n.JSC$19966_backChannelRetryCount_=0;_.n.JSC$19966_channelVersion_=8;var PcW={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},ga_=function(C,F,G,V){_.tP.call(this,"timingevent",C);this.size=F;this.rtt=G;this.retries=V};
_.RE(ga_,_.tP);var Rhx=function(C){_.tP.call(this,"serverreachability",C)};
_.RE(Rhx,_.tP);XW.prototype.connect=function(C,F,G,V,J){this.JSC$19962_channelDebug_.debug("connect()");ZK(0);this.JSC$19966_path_=F;this.JSC$19966_extraParams_=G||{};V&&J!==void 0&&(this.JSC$19966_extraParams_.OSID=V,this.JSC$19966_extraParams_.OAID=J);this.asyncTest_?(XK((0,_.ck)(this.connectTest_,this,C),100),Yb_(this)):this.connectTest_(C)};
XW.prototype.disconnect=function(){this.JSC$19962_channelDebug_.debug("disconnect()");TqV(this);if(this.state_==3){var C=this.JSC$19966_nextRid_++,F=this.JSC$19966_forwardChannelUri_.clone();_.jE(F,"SID",this.sid_);_.jE(F,"RID",C);_.jE(F,"TYPE","terminate");oat(this,F);C=new NK(this,this.JSC$19962_channelDebug_,this.sid_,C);C.JSC$19954_type_=2;C.JSC$19954_baseUri_=_.bx(F.clone());(new Image).src=C.JSC$19954_baseUri_.toString();C.JSC$19954_requestStartTime_=Date.now();OJ_(C)}rSM(this)};
XW.prototype.connectTest_=function(C){this.JSC$19962_channelDebug_.debug("connectTest_()");this.connectionTest_=new f7s(this,this.JSC$19962_channelDebug_);this.connectionTest_.JSC$19961_extraHeaders_=this.JSC$19966_extraHeaders_;this.connectionTest_.JSC$19959_parser_=this.JSC$19962_parser_;this.connectionTest_.connect(C)};
var Yb_=function(C){C.JSC$19962_channelDebug_.debug("connectChannel_()");C.JSC$19966_ensureInState_(1,0);C.JSC$19966_forwardChannelUri_=hhh(C,C.JSC$19966_path_);KPr(C)},TqV=function(C){C.connectionTest_&&(C.connectionTest_.abort(),C.connectionTest_=null);
C.JSC$19966_backChannelRequest_&&(C.JSC$19966_backChannelRequest_.cancel(),C.JSC$19966_backChannelRequest_=null);C.JSC$19966_backChannelTimerId_&&(_.VT.clearTimeout(C.JSC$19966_backChannelTimerId_),C.JSC$19966_backChannelTimerId_=null);DQx(C);C.forwardChannelRequest_&&(C.forwardChannelRequest_.cancel(),C.forwardChannelRequest_=null);C.JSC$19966_forwardChannelTimerId_&&(_.VT.clearTimeout(C.JSC$19966_forwardChannelTimerId_),C.JSC$19966_forwardChannelTimerId_=null)},pns=function(C,F){if(C.state_==0)throw Error("Vk");
C.JSC$19962_outgoingMaps_.length==1E3&&C.JSC$19962_parser_.stringify(F);C.JSC$19962_outgoingMaps_.push(new qbL(C.JSC$19966_nextMapId_++,F));C.state_!=2&&C.state_!=3||KPr(C)};
XW.prototype.JSC$19961_isClosed=function(){return this.state_==0};
XW.prototype.getState=function(){return this.state_};
var KPr=function(C){C.forwardChannelRequest_||C.JSC$19966_forwardChannelTimerId_||(C.JSC$19966_forwardChannelTimerId_=XK((0,_.ck)(C.JSC$19966_onStartForwardChannelTimer_,C),0),C.JSC$19966_forwardChannelRetryCount_=0)};
XW.prototype.JSC$19966_onStartForwardChannelTimer_=function(C){this.JSC$19966_forwardChannelTimerId_=null;mQd(this,C)};
var mQd=function(C,F){C.JSC$19962_channelDebug_.debug("startForwardChannel_");if(C.state_==1){if(!F){C.JSC$19962_channelDebug_.debug("open_()");C.JSC$19966_nextRid_=Math.floor(Math.random()*1E5);F=C.JSC$19966_nextRid_++;var G=new NK(C,C.JSC$19962_channelDebug_,"",F);G.JSC$19954_extraHeaders_=C.JSC$19966_extraHeaders_;var V=CFV(C),J=C.JSC$19966_forwardChannelUri_.clone();_.jE(J,"RID",F);_.jE(J,"CVER","1");oat(C,J);ZJ3(G,J,V);C.forwardChannelRequest_=G;C.state_=2}}else C.state_==3&&(F?jr_(C,F):C.JSC$19962_outgoingMaps_.length==
0?C.JSC$19962_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):C.forwardChannelRequest_||(jr_(C),C.JSC$19962_channelDebug_.debug("startForwardChannel_ finished, sent request")))},jr_=function(C,F){if(F)if(C.JSC$19966_channelVersion_>6){C.JSC$19962_outgoingMaps_=C.pendingMaps_.concat(C.JSC$19962_outgoingMaps_);
C.pendingMaps_.length=0;var G=C.JSC$19966_nextRid_-1;F=CFV(C)}else G=F.JSC$19952_rid_,F=F.JSC$19954_postData_;else G=C.JSC$19966_nextRid_++,F=CFV(C);var V=C.JSC$19966_forwardChannelUri_.clone();_.jE(V,"SID",C.sid_);_.jE(V,"RID",G);_.jE(V,"AID",C.JSC$19966_lastArrayId_);oat(C,V);G=new NK(C,C.JSC$19962_channelDebug_,C.sid_,G,C.JSC$19966_forwardChannelRetryCount_+1);G.JSC$19954_extraHeaders_=C.JSC$19966_extraHeaders_;G.setTimeout(1E4+Math.round(1E4*Math.random()));C.forwardChannelRequest_=G;ZJ3(G,V,
F)},oat=function(C,F){C.handler_&&(C=C.handler_.JSC$19973_getAdditionalParams())&&_.xf.forEach(C,function(G,V){_.jE(F,V,G)})},CFV=function(C){var F=Math.min(C.JSC$19962_outgoingMaps_.length,1E3),G=["count="+F];
if(C.JSC$19966_channelVersion_>6&&F>0){var V=C.JSC$19962_outgoingMaps_[0].JSC$19964_mapId;G.push("ofs="+V)}else V=0;for(var J={},b=0;b<F;J={mapId$jscomp$3:void 0},b++){J.mapId$jscomp$3=C.JSC$19962_outgoingMaps_[b].JSC$19964_mapId;var z=C.JSC$19962_outgoingMaps_[b].map;J.mapId$jscomp$3=C.JSC$19966_channelVersion_<=6?b:J.mapId$jscomp$3-V;try{_.xf.forEach(z,function(Q){return function(E,t){G.push("req"+Q.mapId$jscomp$3+"_"+t+"="+encodeURIComponent(E))}}(J))}catch(Q){G.push("req"+J.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}C.pendingMaps_=C.pendingMaps_.concat(C.JSC$19962_outgoingMaps_.splice(0,F));
return G.join("&")},FMr=function(C){C.JSC$19966_backChannelRequest_||C.JSC$19966_backChannelTimerId_||(C.JSC$19966_backChannelAttemptId_=1,C.JSC$19966_backChannelTimerId_=XK((0,_.ck)(C.JSC$19966_onStartBackChannelTimer_,C),0),C.JSC$19966_backChannelRetryCount_=0)},Vih=function(C){if(C.JSC$19966_backChannelRequest_||C.JSC$19966_backChannelTimerId_||C.JSC$19966_backChannelRetryCount_>=3)return!1;
C.JSC$19962_channelDebug_.debug("Going to retry GET");C.JSC$19966_backChannelAttemptId_++;C.JSC$19966_backChannelTimerId_=XK((0,_.ck)(C.JSC$19966_onStartBackChannelTimer_,C),G6_(C,C.JSC$19966_backChannelRetryCount_));C.JSC$19966_backChannelRetryCount_++;return!0};
XW.prototype.JSC$19966_onStartBackChannelTimer_=function(){this.JSC$19966_backChannelTimerId_=null;this.JSC$19962_channelDebug_.debug("Creating new HttpRequest");this.JSC$19966_backChannelRequest_=new NK(this,this.JSC$19962_channelDebug_,this.sid_,"rpc",this.JSC$19966_backChannelAttemptId_);this.JSC$19966_backChannelRequest_.JSC$19954_extraHeaders_=this.JSC$19966_extraHeaders_;this.JSC$19966_backChannelRequest_.JSC$19954_readyStateChangeThrottleMs_=0;var C=this.JSC$19966_backChannelUri_.clone();_.jE(C,
"RID","rpc");_.jE(C,"SID",this.sid_);_.jE(C,"CI",this.useChunked_?"0":"1");_.jE(C,"AID",this.JSC$19966_lastArrayId_);oat(this,C);_.jE(C,"TYPE","xmlhttp");NqL(this.JSC$19966_backChannelRequest_,C,!0,this.JSC$19966_hostPrefix_,!1);this.JSC$19962_channelDebug_.debug("New Request created")};
var dQV=function(C,F,G){C.JSC$19962_channelDebug_.debug("Test Connection Finished");C.useChunked_=C.secondTestResults_==null?G:!C.secondTestResults_;C.JSC$19966_lastStatusCode_=F.JSC$19961_lastStatusCode_;C.asyncTest_||Yb_(C)},skr=function(C,F){C.JSC$19962_channelDebug_.debug("Test Connection Failed");
C.JSC$19966_lastStatusCode_=F.JSC$19961_lastStatusCode_;OE(C,2)};
XW.prototype.JSC$19961_onRequestData=function(C,F){if(this.state_!=0&&(this.JSC$19966_backChannelRequest_==C||this.forwardChannelRequest_==C))if(this.JSC$19966_lastStatusCode_=C.JSC$19954_lastStatusCode_,this.forwardChannelRequest_==C&&this.state_==3)if(this.JSC$19966_channelVersion_>7){try{var G=this.JSC$19962_parser_.parse(F)}catch(V){G=null}if(Array.isArray(G)&&G.length==3)if(F=G,F[0]==0)a:if(this.JSC$19962_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19966_backChannelTimerId_)this.JSC$19962_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19966_backChannelRequest_)if(this.JSC$19966_backChannelRequest_.JSC$19954_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19954_requestStartTime_)DQx(this),this.JSC$19966_backChannelRequest_.cancel(),this.JSC$19966_backChannelRequest_=null;else break a;else this.JSC$19962_channelDebug_.warning("We do not have a BackChannel established");Vih(this);ZK(19)}else this.JSC$19966_lastPostResponseArrayId_=F[1],C=this.JSC$19966_lastPostResponseArrayId_-this.JSC$19966_lastArrayId_,0<
C&&(F=F[2],this.JSC$19962_channelDebug_.debug(F+" bytes (in "+C+" arrays) are outstanding on the BackChannel"),F<37500&&this.useChunked_&&this.JSC$19966_backChannelRetryCount_==0&&!this.JSC$19966_deadBackChannelTimerId_&&(this.JSC$19966_deadBackChannelTimerId_=XK((0,_.ck)(this.JSC$19966_onBackChannelDead_,this),6E3)));else this.JSC$19962_channelDebug_.debug("Bad POST response data returned"),OE(this,11)}else F!="y2f%"&&(this.JSC$19962_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
OE(this,11));else this.JSC$19966_backChannelRequest_==C&&DQx(this),_.uZ(F)||(C=this.JSC$19962_parser_.parse(F),this.onInput_(C))};
XW.prototype.JSC$19966_onBackChannelDead_=function(){this.JSC$19966_deadBackChannelTimerId_!=null&&(this.JSC$19966_deadBackChannelTimerId_=null,this.JSC$19966_backChannelRequest_.cancel(),this.JSC$19966_backChannelRequest_=null,Vih(this),ZK(20))};
var DQx=function(C){C.JSC$19966_deadBackChannelTimerId_!=null&&(_.VT.clearTimeout(C.JSC$19966_deadBackChannelTimerId_),C.JSC$19966_deadBackChannelTimerId_=null)};
XW.prototype.JSC$19961_onRequestComplete=function(C){this.JSC$19962_channelDebug_.debug("Request complete");if(this.JSC$19966_backChannelRequest_==C){DQx(this);this.JSC$19966_backChannelRequest_=null;var F=2}else if(this.forwardChannelRequest_==C)this.forwardChannelRequest_=null,F=1;else return;this.JSC$19966_lastStatusCode_=C.JSC$19954_lastStatusCode_;if(this.state_!=0)if(C.JSC$19954_successful_)if(F==1){F=C.JSC$19954_postData_?C.JSC$19954_postData_.length:0;C=Date.now()-C.JSC$19954_requestStartTime_;
var G=a7t;G.dispatchEvent(new ga_(G,F,C,this.JSC$19966_forwardChannelRetryCount_));KPr(this);this.handler_&&this.handler_.JSC$19973_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else FMr(this);else{G=C.getLastError();if(G==3||G==7||G==0&&this.JSC$19966_lastStatusCode_>0)this.JSC$19962_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19962_channelDebug_.debug("Maybe retrying, last error: "+UQ3(G,this.JSC$19966_lastStatusCode_));var V;if(V=F==1)this.forwardChannelRequest_||
this.JSC$19966_forwardChannelTimerId_||this.state_==1||this.JSC$19966_forwardChannelRetryCount_>=2?V=!1:(this.JSC$19962_channelDebug_.debug("Going to retry POST"),this.JSC$19966_forwardChannelTimerId_=XK((0,_.ck)(this.JSC$19966_onStartForwardChannelTimer_,this,C),G6_(this,this.JSC$19966_forwardChannelRetryCount_)),this.JSC$19966_forwardChannelRetryCount_++,V=!0);if(V||F==2&&Vih(this))return;this.JSC$19962_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19962_channelDebug_.debug("Error: HTTP request failed");
switch(G){case 1:OE(this,5);break;case 4:OE(this,10);break;case 3:OE(this,6);break;case 7:OE(this,12);break;default:OE(this,2)}}};
var G6_=function(C,F){var G=5E3+Math.floor(Math.random()*1E4);C.isActive()||(C.JSC$19962_channelDebug_.debug("Inactive channel"),G*=2);return G*F};
XW.prototype.onInput_=function(C){for(var F=0;F<C.length;F++){var G=C[F];this.JSC$19966_lastArrayId_=G[0];G=G[1];this.state_==2?G[0]=="c"?(this.sid_=G[1],this.JSC$19966_hostPrefix_=G[2],G=G[3],G!=null?this.JSC$19966_channelVersion_=G:this.JSC$19966_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19973_channelOpened(),this.JSC$19966_backChannelUri_=xQr(this,this.JSC$19966_hostPrefix_,this.JSC$19966_path_),FMr(this)):G[0]=="stop"&&OE(this,7):this.state_==3&&(G[0]=="stop"?OE(this,7):
G[0]!="noop"&&this.handler_&&this.handler_.JSC$19973_channelHandleArray(G),this.JSC$19966_backChannelRetryCount_=0)}};
XW.prototype.JSC$19966_ensureInState_=function(C){if(!_.sB(arguments,this.state_))throw Error("Wk`"+this.state_);};
var OE=function(C,F){C.JSC$19962_channelDebug_.info("Error code "+F);if(F==2||F==9){var G=null;C.handler_&&(G=null);var V=(0,_.ck)(C.testGoogleComCallback_,C);G||(G=new _.dz("//www.google.com/images/cleardot.gif"),_.bx(G));SIV(G.toString(),1E4,V)}else ZK(2);C.onError_(F)};
XW.prototype.testGoogleComCallback_=function(C){C?(this.JSC$19962_channelDebug_.info("Successfully pinged google.com"),ZK(2)):(this.JSC$19962_channelDebug_.info("Failed to ping google.com"),ZK(1),this.onError_(8))};
XW.prototype.onError_=function(C){this.JSC$19962_channelDebug_.debug("HttpChannel: error - "+C);this.state_=0;this.handler_&&this.handler_.JSC$19973_channelError(C);rSM(this);TqV(this)};
var rSM=function(C){C.state_=0;C.JSC$19966_lastStatusCode_=-1;if(C.handler_)if(C.pendingMaps_.length==0&&C.JSC$19962_outgoingMaps_.length==0)C.handler_.JSC$19973_channelClosed();else{C.JSC$19962_channelDebug_.debug("Number of undelivered maps, pending: "+C.pendingMaps_.length+", outgoing: "+C.JSC$19962_outgoingMaps_.length);var F=_.Po(C.pendingMaps_),G=_.Po(C.JSC$19962_outgoingMaps_);C.pendingMaps_.length=0;C.JSC$19962_outgoingMaps_.length=0;C.handler_.JSC$19973_channelClosed(F,G)}},hhh=function(C,
F){F=eh3(C,null,F);
C.JSC$19962_channelDebug_.debug("GetForwardChannelUri: "+F);return F},xQr=function(C,F,G){F=eh3(C,C.JSC$19961_shouldUseSecondaryDomains()?F:null,G);
C.JSC$19962_channelDebug_.debug("GetBackChannelUri: "+F);return F},eh3=function(C,F,G){var V=_.mg(G);
if(V.JSC$10031_domain_!="")F&&_.C4(V,F+"."+V.JSC$10031_domain_),_.jB(V,V.JSC$10031_port_);else{var J=window.location;V=Kll(J.protocol,F?F+"."+J.hostname:J.hostname,+J.port,G)}C.JSC$19966_extraParams_&&_.xf.forEach(C.JSC$19966_extraParams_,function(b,z){_.jE(V,z,b)});
_.jE(V,"VER",C.JSC$19966_channelVersion_);oat(C,V);return V};
XW.prototype.JSC$19961_createXhrIo=function(C){if(C)throw Error("Tk");C=new _.SL;C.JSC$9795_withCredentials_=!1;return C};
XW.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
XW.prototype.notifyServerReachabilityEvent=function(C){var F=a7t;F.dispatchEvent(new Rhx(F,C))};
XW.prototype.JSC$19961_shouldUseSecondaryDomains=function(){return!1};
new FHr;var iKU=function(){};
_.n=iKU.prototype;_.n.JSC$19973_channelOpened=function(){};
_.n.JSC$19973_channelHandleArray=function(){};
_.n.JSC$19973_channelSuccess=function(){};
_.n.JSC$19973_channelError=function(){};
_.n.JSC$19973_channelClosed=function(){};
_.n.JSC$19973_getAdditionalParams=function(){return{}};
_.n.isActive=function(){return!0};var JTs=function(C){C.front_.length===0&&(C.front_=C.back_,C.front_.reverse(),C.back_=[])};
_.n=vbl.prototype;_.n.enqueue=function(C){this.back_.push(C)};
_.n.peek=function(){JTs(this);return _.hs(this.front_)};
_.n.getCount=function(){return this.front_.length+this.back_.length};
_.n.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.n.clear=function(){this.front_=[];this.back_=[]};
_.n.contains=function(C){return _.sB(this.front_,C)||_.sB(this.back_,C)};
_.n.remove=function(C){var F=this.front_;var G=Array.prototype.lastIndexOf.call(F,C,F.length-1);G>=0?(_.BIT(F,G),F=!0):F=!1;return F||_.qf(this.back_,C)};
_.n.getValues=function(){for(var C=[],F=this.front_.length-1;F>=0;--F)C.push(this.front_[F]);F=this.back_.length;for(var G=0;G<F;++G)C.push(this.back_[G]);return C};var ws=function(C){this.JSC$19977_map_=new _.EX;this.size=0;C&&this.addAll(C)},$mr=function(C){var F=typeof C;
return F=="object"&&C||F=="function"?"o"+_.rI(C):F.charAt(0)+C};
_.n=ws.prototype;_.n.getCount=function(){return this.JSC$19977_map_.size};
_.n.add=function(C){this.JSC$19977_map_.set($mr(C),C);this.size=this.JSC$19977_map_.size};
_.n.addAll=function(C){C=_.pC(C);for(var F=C.length,G=0;G<F;G++)this.add(C[G]);this.size=this.JSC$19977_map_.size};
_.n.removeAll=function(C){C=_.pC(C);for(var F=C.length,G=0;G<F;G++)this.remove(C[G]);this.size=this.JSC$19977_map_.size};
_.n.delete=function(C){C=this.JSC$19977_map_.remove($mr(C));this.size=this.JSC$19977_map_.size;return C};
_.n.remove=function(C){return this.delete(C)};
_.n.clear=function(){this.JSC$19977_map_.clear();this.size=0};
_.n.isEmpty=function(){return this.JSC$19977_map_.size===0};
_.n.has=function(C){return this.JSC$19977_map_.containsKey($mr(C))};
_.n.contains=function(C){return this.JSC$19977_map_.containsKey($mr(C))};
_.n.getValues=function(){return this.JSC$19977_map_.getValues()};
_.n.values=function(){return this.JSC$19977_map_.values()};
_.n.clone=function(){return new ws(this)};
_.n.equals=function(C){return this.getCount()==o0l(C)&&bKV(this,C)};
var bKV=function(C,F){var G=o0l(F);if(C.getCount()>G)return!1;!(F instanceof ws)&&G>5&&(F=new ws(F));return rc_(C,function(V){var J=F;return J.contains&&typeof J.contains=="function"?J.contains(V):J.containsValue&&typeof J.containsValue=="function"?J.containsValue(V):_.gI(J)||typeof J==="string"?_.sB(J,V):_.xf.containsValue(J,V)})};
ws.prototype.__iterator__=function(){return this.JSC$19977_map_.__iterator__(!1)};
ws.prototype[Symbol.iterator]=function(){return this.values()};var nPU={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(C){return(this._clampValue(C)-this.min)/(this.max-this.min)},
_clampValue:function(C){return Math.min(this.max,Math.max(this.min,this._calcStep(C)))},
_calcStep:function(C){C=parseFloat(C);if(!this.step)return C;C=Math.round((C-this.min)/this.step);return this.step<1?C/(1/this.step)+this.min:C*this.step+this.min},
_validateValue:function(){var C=this._clampValue(this.value);this.value=this.oldValue=isNaN(C)?this.oldValue:C;return this.value!==C},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var ulL;var zJh;_.kz({_template:function(){if(zJh!==void 0)return zJh;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;ulL===void 0&&(ulL=document.createElement("template"));var V=ulL;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return zJh=C},
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(){_.zH(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(C){C.keyCode===27&&(C.preventDefault(),this.close())},
_track:function(C){if(!this.persistent&&!this.disableSwipe)switch(C.preventDefault(),C.detail.state){case "start":this._trackStart(C);break;case "track":this._trackMove(C);break;case "end":this._trackEnd(C)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var C=this.$.contentContainer.getBoundingClientRect();this._savedWidth=C.width;this._translateOffset=this.position==="left"?C.left:C.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(C){this._trackDetails&&(this._translateDrawer(C.detail.dx+this._translateOffset),this._trackDetails.push({dx:C.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(C){if(this._trackDetails){var F=C.detail.dx+this._translateOffset,G=this.getWidth();F=this.position==="left"?F>=0||F<=-G:F<=0||F>=G;if(!F){var V=this._trackDetails;this._trackDetails=null;this._flingDrawer(C,V);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}G/=2;C.detail.dx<-G?this.opened=this.position==="right":C.detail.dx>G&&(this.opened=this.position==="left");F?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(C,F){for(var G=Date.now(),V=G-100,J,b=0,z=F.length-1;b<=z;){var Q=b+z>>1,E=F[Q];E.timeStamp>=V?(J=E,z=Q-1):b=Q+1}return J?(C.detail.dx-J.dx)/(G-J.timeStamp||1):0},
_flingDrawer:function(C,F){F=this._calculateVelocity(C,F);if(!(Math.abs(F)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;C=C.detail.dx+this._translateOffset;var G=this.getWidth(),V=this.position==="left",J=F>0;J?(F=Math.max(F,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(F=Math.min(F,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");F=this._FLING_INITIAL_SLOPE*(!J&&V?-(C+G):J&&!V?G-C:-C)/F;this._styleTransitionDuration(F);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,F)}},
_styleTransitionDuration:function(C){this.style.transitionDuration=C+"ms";this.$.contentContainer.style.transitionDuration=C+"ms";this.$.scrim.style.transitionDuration=C+"ms"},
_styleTransitionTimingFunction:function(C){this.$.contentContainer.style.transitionTimingFunction=C;this.$.scrim.style.transitionTimingFunction=C},
_translateDrawer:function(C){var F=this.getWidth();this.position==="left"?(C=Math.max(-F,Math.min(C,0)),this.$.scrim.style.opacity=1+C/F):(C=Math.max(0,Math.min(C,F)),this.$.scrim.style.opacity=1-C/F);this.translate3d(C+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var C=this._drawerState;C===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;C!==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=""),C!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var C=_.E5(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"])');C.length>0?(this._firstTabStop=C[0],this._lastTabStop=C[C.length-1]):
this._lastTabStop=this._firstTabStop=null;(C=this.getAttribute("tabindex"))&&parseInt(C,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(C){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||C.keyCode!==9||(C.shiftKey?this._firstTabStop&&_.E5(C).localTarget===this._firstTabStop&&(C.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.E5(C).localTarget===this._lastTabStop&&(C.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(C,F){this.toggleClass("visible",C&&!F,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 QrM;var IL3;_.kz({_template:function(){if(IL3!==void 0)return IL3;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;QrM===void 0&&(QrM=document.createElement("template"));var V=QrM;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return IL3=C},
is:"tp-yt-paper-progress",behaviors:[nPU],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(C){this.toggleClass("indeterminate",C,this.$.primaryProgress)},
_transformProgress:function(C,F){C.style.transform=C.style.webkitTransform="scaleX("+F/100+")"},
_mainRatioChanged:function(C){this._transformProgress(this.$.primaryProgress,C)},
_progressChanged:function(C,F,G,V,J){C=this._clampValue(C);F=this._clampValue(F);var b=this._calcRatio(C)*100,z=this._calcRatio(F)*100;this._setSecondaryRatio(b);this._transformProgress(this.$.secondaryProgress,b);this._transformProgress(this.$.primaryProgress,z);this.secondaryProgress=C;J?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",F);this.setAttribute("aria-valuemin",G);this.setAttribute("aria-valuemax",V)},
_disabledChanged:function(C){this.setAttribute("aria-disabled",C?"true":"false")},
_hideSecondaryProgress:function(C){return C===0}});var EPL;var WMV;var tid=function(){};
_.n=tid.prototype;_.n.registered=function(){};
_.n.addOwnKeyBinding=function(){};
_.n.removeOwnKeyBindings=function(){};
_.n.keyboardEventMatchesKeys=function(){};
_.n._collectKeyBindings=function(){};
_.n._prepKeyBindings=function(){};
_.n._addKeyBinding=function(){};
_.n._resetKeyEventListeners=function(){};
_.n._listenKeyEventListeners=function(){};
_.n._unlistenKeyEventListeners=function(){};
_.n._onKeyBindingEvent=function(){};
_.n._triggerKeyHandler=function(){};
_.n._tapHandler=function(){};
_.n._focusChanged=function(){};
_.n._detectKeyboardFocus=function(){};
_.n._userActivate=function(){};
_.n._upHandler=function(){};
_.n._spaceKeyDownHandler=function(){};
_.n._spaceKeyUpHandler=function(){};
_.n._asyncClick=function(){};
_.n._pressedChanged=function(){};
_.n._ariaActiveAttributeChanged=function(){};
_.n._activeChanged=function(){};
_.n._controlStateChanged=function(){};
_.n._changedButtonState=function(){};
_.n._focusBlurHandler=function(){};
_.n._disabledChanged=function(){};
_.n._changedControlState=function(){};
_.n._buttonStateChanged=function(){};
_.n._downHandler=function(){};
_.n.ensureRipple=function(){};
_.n.getRipple=function(){};
_.n.hasRipple=function(){};
_.n._noinkChanged=function(){};
_.n._calcRatio=function(){};
_.n._clampValue=function(){};
_.n._calcStep=function(){};
_.n._validateValue=function(){};
_.n._update=function(){};
_.n._setImmediateValue=function(){};
_.n._setExpand=function(){};
_.n._setDragging=function(){};
_.n._setTransiting=function(){};
_.n._setMarkers=function(){};
_.n._setPressed=function(){};
_.n._setPointerDown=function(){};
_.n._setReceivedFocusFromKeyboard=function(){};
_.n._setFocused=function(){};
_.n._setRatio=function(){};
tid=_.kz({_template:function(){if(WMV!==void 0)return WMV;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;EPL===void 0&&(EPL=document.createElement("template"));var V=EPL;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return WMV=C},
is:"tp-yt-paper-slider",behaviors:[_.wg,_.BP,_.r8P,nPU],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&&_.TA(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(C,F,G){this.setAttribute("aria-valuemin",F);this.setAttribute("aria-valuemax",G);this.setAttribute("aria-valuenow",C);this._positionKnob(this._calcRatio(C)*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(C){this._setImmediateValue(this._calcStep(this._calcKnobPosition(C)));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(C){return(this.max-this.min)*C/100+this.min},
_onTrack:function(C){C.stopPropagation();switch(C.detail.state){case "start":this._trackStart(C);break;case "track":this._trackX(C);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(C){this.dragging||this._trackStart(C);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,C.detail.dx*(this._isRTL?-1:1)));C=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(C);C=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(C+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var C=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;C.transform=C.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(C){this._expandKnob();C.preventDefault();this.focus()},
_bartrack:function(C){this._allowBarEvent(C)&&this._onTrack(C)},
_barclick:function(C){this._w=this.$.sliderBar.offsetWidth;var F=this.$.sliderBar.getBoundingClientRect();F=(C.detail.x-F.left)/this._w*100;this._isRTL&&(F=100-F);var G=this.ratio;this._setTransiting(!0);this._positionKnob(F);G===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
C.preventDefault();this.focus()},
_bardown:function(C){this._allowBarEvent(C)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(C))},
_knobTransitionEnd:function(C){C.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(C,F,G,V){V||this._setMarkers([]);F=Math.round((G-F)/this.step);F>C&&(F=C);if(F<0||!isFinite(F))F=0;this._setMarkers(Array(F))},
_mergeClasses:function(C){return Object.keys(C).filter(function(F){return C[F]}).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(C){return!this.ignoreBarTouch||C.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(C){this._isRTL?this._incrementKey(C):this._decrementKey(C)},
_rightKey:function(C){this._isRTL?this._decrementKey(C):this._incrementKey(C)},
_incrementKey:function(C){this.disabled||(C.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),C.preventDefault())},
_decrementKey:function(C){this.disabled||(C.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),C.preventDefault())},
_changeValue:function(C){this.value=C.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(C){C.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.okS._createRipple.call(this)},
_focusedChanged:function(C){C&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=C?"":"none",this._ripple.holdDown=C)}});var aLd;var bpx;var MK=null,nVW=function(){};
_.n=nVW.prototype;_.n.fit=function(){};
_.n._discoverInfo=function(){};
_.n.resetFit=function(){};
_.n.refit=function(){};
_.n.position=function(){};
_.n.constrain=function(){};
_.n._sizeDimension=function(){};
_.n.__sizeDimension=function(){};
_.n.center=function(){};
_.n.__getNormalizedRect=function(){};
_.n.__getOffscreenArea=function(){};
_.n.__getPosition=function(){};
_.n.notifyResize=function(){};
_.n.assignParentResizable=function(){};
_.n.stopResizeNotificationsFor=function(){};
_.n._subscribeIronResize=function(){};
_.n._unsubscribeIronResize=function(){};
_.n.resizerShouldNotify=function(){};
_.n._onDescendantIronResize=function(){};
_.n._fireResize=function(){};
_.n._onIronRequestResizeNotifications=function(){};
_.n._parentResizableChanged=function(){};
_.n._notifyDescendant=function(){};
_.n._requestResizeNotifications=function(){};
_.n._findParent=function(){};
_.n.toggle=function(){};
_.n.open=function(){};
_.n.close=function(){};
_.n.cancel=function(){};
_.n.invalidateTabbables=function(){};
_.n._ensureSetup=function(){};
_.n._canceledChanged=function(){};
_.n._withBackdropChanged=function(){};
_.n._prepareRenderOpened=function(){};
_.n._finishRenderOpened=function(){};
_.n._finishRenderClosed=function(){};
_.n._preparePositioning=function(){};
_.n._finishPositioning=function(){};
_.n._applyFocus=function(){};
_.n._onCaptureClick=function(){};
_.n._onCaptureFocus=function(){};
_.n._onCaptureEsc=function(){};
_.n._onCaptureTab=function(){};
_.n._onIronResize=function(){};
_.n._onNodesChange=function(){};
_.n.__ensureFirstLastFocusables=function(){};
_.n.__openedChanged=function(){};
_.n.__deraf=function(){};
_.n.__updateScrollObservers=function(){};
_.n.__addScrollListeners=function(){};
_.n.__removeScrollListeners=function(){};
_.n.__isValidScrollAction=function(){};
_.n.__onCaptureScroll=function(){};
_.n.__saveScrollPosition=function(){};
_.n.__restoreScrollPosition=function(){};
_.n._setCanceled=function(){};
nVW=_.kz({_template:function(){if(bpx!==void 0)return bpx;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;aLd===void 0&&(aLd=document.createElement("template"));var V=aLd;G.call(F,V.content.cloneNode(!0),C.content.firstChild);return bpx=C},
is:"tp-yt-paper-toast",behaviors:[_.mw],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(){_.w3._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.oY.requestAvailability()},
show:function(C){typeof C=="string"&&(C={text:C});for(var F in C)F.indexOf("_")===0?_.w3._warn('The property "'+F+'" is private and was not set.'):F in this?this[F]=C[F]:_.w3._warn('The property "'+F+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(C){C&&C.target===this&&C.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(MK&&MK!==this&&MK.close(),MK=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):MK===this&&(MK=null);_.pq._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(C){this.positionTarget=C},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var uAt=new _.Cx("disablePersonalizationAction");var SVr=new _.Cx("showDmaConsentFlowCommand");var LSr=new _.Cx("showMmgNoticeCommand");var z3t=new _.Cx("saveConsentAction");var QOs=function(C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.sr(C)};
_.O(QOs,_.b0);var IM_=_.T9B(QOs);var EVh=new _.Cx("updateTopbarAvatarAction");var WuV=new _.Cx("channelHandleValidationResultRenderer");var tKx=new _.Cx("generateHandleFromNameResultRenderer");var aMU=new _.Cx("channelHandleInputRenderer");var ks3=new _.Cx("copyLinkRenderer");var URV=new _.Cx("timedCommand");var Hpl=new _.Cx("clearCookieAction");var lMU=new _.Cx("getMultiPageMenuAction");var yZM=new _.Cx("addToGuideSectionAction"),Zpt=new _.Cx("removeFromGuideSectionAction");var NP_=new _.Cx("updateNotificationsUnseenCountAction");var Op3=new _.Cx("resetChannelUnreadCountCommand");var XIV=new _.Cx("resetSubscriptionsUnreadDotCommand");var wIr=new _.Cx("selectLanguageCommand");var Rq_=new _.Cx("sendFeedbackAction");var MK8=new _.Cx("uploadImageToScottyCommand");var SGr=new _.Cx("registerPromoCommand");var Lur=new _.Cx("setPushNotificationsEnabledCommand");var BPd=new _.Cx("desktopTopbarRenderer");var vV_=new _.Cx("surveyFollowUpRenderer");var fMr=new _.Cx("handlesClaimingRadioOptionRenderer");var h38=new _.Cx("hotkeyDialogRenderer");var cZd=new _.Cx("modifyReportFormCommand");var AZV=new _.Cx("accountLinkCommand");var e3W=new _.Cx("accountUnlinkCommand");var dR8=new _.Cx("logAccountLinkingEventCommand");var xRd=new _.Cx("guideCollapsibleEntryRenderer");var sOx=new _.Cx("guideDownloadsEntryRenderer");var sEV=new _.Cx("guideEntryRenderer");var qGU=new _.Cx("getLocationCommand");var P7r=new _.Cx("locationCollectionCommand");var gVM=new _.Cx("storiesItemViewModel");var R3h=new _.Cx("addToRemoteQueueAction");var YG_=new _.Cx("insertInRemoteQueueAction");var TPU=new _.Cx("removeFromRemoteQueueAction");var oV_=new _.Cx("notificationRenderer");var Ekt=new _.Cx("localWatchHistoryCommand");var rZM=new _.Cx("pdgBuyFlowHeaderRenderer");var Ku8=new _.Cx("pdgColorSliderRenderer");var DRV=new _.Cx("pdgCommentOptionRenderer");var pI_=new _.Cx("pdgCommentPreviewRenderer");var mRW=new _.Cx("superVodSelectableItemButtonRenderer");var CL3=new _.Cx("switchButtonRenderer");var jhx=new _.Cx("upsellDialogRenderer");var F_U=new _.Cx("feedbackQuestionRenderer"),G1d=new _.Cx("feedbackOptionRenderer");var Vzd=new _.Cx("sponsorshipsTierRenderer"),i$d=new _.Cx("sponsorshipsPromotionChannelRenderer");var Jw3=new _.Cx("simpleSurveyMessageRenderer");var RXW=new _.Cx("invokeInstrumentManagerAction");var $OV=new _.Cx("logYpcFlowDismissCommand");var b$L=new _.Cx("logYpcFlowStartCommand");var nN_=new _.Cx("unlimitedCreateFamilyEndpoint");var uYs=new _.Cx("iconBadgeRenderer");var W7U=new _.Cx("collaborativePlaylistVisibilityValidationRule");var zUM=function(C){_.tP.call(this,"channelMessage");this.message=C};
_.O(zUM,_.tP);var Qhr=function(C){_.tP.call(this,"channelError");this.error=C};
_.O(Qhr,_.tP);var IZh={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw",ACTIVE_STREAM_WRITES_FOR_REMOTE_CONNECTION_AND_DISCONNECTION:"wrc",PUNCTUAL_WATCH:"pcw",
IP_VALIDATION:"ipv",NO_DISCONNECT_TOAST:"ndt",CONNECT_TOAST_ONCE_PER_SESSION:"ctops"},ENs={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},W_L={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},tzt={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},aZs={NOW_PLAYING_SHORTS:"nowPlayingShorts",
ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var Sw=function(C){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 _.EX;this.localChannelEncryptionKey=this.remoteControllerUrl="";this.deviceContext=void 0;this.model=this.brand="";this.year=0;this.chipset=this.osVersion=this.os="";this.mdxDialServerType=
"MDX_DIAL_SERVER_TYPE_UNKNOWN";this.pairingType="unknown";this.castUserId=void 0;C&&(this.id=C.id||C.name,this.name=C.name,this.clientName=C.clientName?C.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=C.app,this.type=C.type||"REMOTE_CONTROL",this.username=C.user||"",this.avatar=C.userAvatarUri||"",this.obfuscatedGaiaId=C.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=C.ownerObfuscatedGaiaId||"",this.castUserId=C.castUserId||"",this.theme=C.theme||"u",k1l(this,C.capabilities||""),UOl(this,
C.compatibleSenderThemes||""),H$M(this,C.experiments||""),this.remoteControllerUrl=C.remoteControllerUrl||"",this.localChannelEncryptionKey=C.localChannelEncryptionKey||"",this.deviceContext=C.deviceContext,this.brand=C.brand||"",this.model=C.model||"",this.year=C.year||0,this.os=C.os||"",this.osVersion=C.osVersion||"",this.chipset=C.chipset||"",this.mdxDialServerType=C.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=C.pairingType||"unknown",C=C.deviceInfo)&&(C=JSON.parse(C),this.brand=
C.brand||"",this.model=C.model||"",this.year=C.year||0,this.os=C.os||"",this.osVersion=C.osVersion||"",this.chipset=C.chipset||"",this.clientName=C.clientName?C.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=C.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
Sw.prototype.copy=function(){var C={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&&(C.brand=this.brand);
this.model&&(C.model=this.model);this.year&&(C.year=this.year);this.os&&(C.os=this.os);this.osVersion&&(C.osVersion=this.osVersion);this.chipset&&(C.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(C.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(C.mdxDialServerType=this.mdxDialServerType);C=new Sw(C);C.connected=this.connected;C.remoteControllerUrl=this.remoteControllerUrl;C.localChannelEncryptionKey=this.localChannelEncryptionKey;C.deviceContext=
this.deviceContext;C.castUserId=this.castUserId;return C};
Sw.prototype.equals=function(C){return C?this.id==C.id:!1};
var k1l=function(C,F){C.capabilities.clear();_.TC(F.split(","),_.$B(_.xf.contains,IZh)).forEach(function(G){C.capabilities.add(G)})},UOl=function(C,F){C.compatibleSenderThemes.clear();
_.TC(F.split(","),_.$B(_.xf.contains,ENs)).forEach(function(G){C.compatibleSenderThemes.add(G)})},H$M=function(C,F){C.experiments.clear();
F.split(",").forEach(function(G){C.experiments.add(G)})};_.RE(hNt,_.hV);_.n=hNt.prototype;_.n.JSC$20013_onTick_=function(){this.JSC$20011_interval_=Math.min(3E5,this.JSC$20011_interval_*2);this.JSC$20013_listener_();this.nextTickTime_&&this.start()};
_.n.start=function(){var C=this.JSC$20011_interval_+15E3*Math.random(),F=this.delay_;F.isActive()||F.start(C);this.nextTickTime_=Date.now()+C};
_.n.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.n.isActive=function(){return this.delay_.isActive()};
_.n.reset=function(){this.delay_.stop();this.JSC$20011_interval_=5E3};_.RE(Mv,iKU);_.n=Mv.prototype;_.n.subscribe=function(C,F,G){return this.pubsub_.subscribe(C,F,G)};
_.n.unsubscribe=function(C,F,G){return this.pubsub_.unsubscribe(C,F,G)};
_.n.unsubscribeByKey=function(C){return this.pubsub_.unsubscribeByKey(C)};
_.n.publish=function(C,F){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.n.dispose=function(){this.JSC$20014_disposed_||(this.JSC$20014_disposed_=!0,_.uz(this.pubsub_),this.disconnect(),_.uz(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$20014_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.mE({})})};
_.n.isDisposed=function(){return this.JSC$20014_disposed_};
_.n.connect=function(C,F,G){var V=this,J,b,z,Q;return _.I(function(E){if(E.nextAddress==1)return _.Oa(E,2),V.useAsyncBrowserChannelHandler_?E.yield(V.connectPromise_,2):E.jumpTo(2);_.Na(E);if(V.JSC$20014_disposed_||V.JSC$20014_channel_&&V.JSC$20014_channel_.getState()==2)return E.return();V.sCookie_="";V.reconnectTimer_.stop();V.connectionParams_=C||null;V.connectUi_=F||0;J=V.JSC$20014_pathPrefix_+"/test";b=V.JSC$20014_pathPrefix_+"/bind";z=new XW(G?G.firstTestResults:null,G?G.secondTestResults:null,
V.enableAsyncTest_);if(Q=V.JSC$20014_channel_)Q.handler_=null;z.handler_=V;V.JSC$20014_channel_=z;if(V.useAsyncBrowserChannelHandler_)return V.connectPromise_=lZl(V).then(function(){return ywd(V,J,b,Q,G)}),E.return(V.connectPromise_.then(function(){V.connectPromise_=_.mE()}));
ywd(V,J,b,Q,G);return _.XG(E,0)})};
var ywd=function(C,F,G,V,J){Z$l(C);if(C.JSC$20014_channel_){var b=_.TF("ID_TOKEN"),z=C.JSC$20014_channel_.JSC$19966_extraHeaders_||{};b?z["x-youtube-identity-token"]=b:delete z["x-youtube-identity-token"];C.JSC$20014_channel_.JSC$19966_extraHeaders_=z}NMU(C);V?(V.getState(),C.JSC$20014_channel_.connect(F,G,C.defaultQueryParams_,V.sid_,V.JSC$19966_lastArrayId_)):J?C.JSC$20014_channel_.connect(F,G,C.defaultQueryParams_,J.sessionId,J.arrayId):C.JSC$20014_channel_.connect(F,G,C.defaultQueryParams_)};
Mv.prototype.disconnect=function(C){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.mE())}finally{this.disconnectUi_=C||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),Z$l(this),this.JSC$20014_channel_&&(this.JSC$20014_channel_.getState()==3&&mQd(this.JSC$20014_channel_),this.JSC$20014_channel_.disconnect()),this.disconnectUi_=0}};
Mv.prototype.sendMessage=function(C,F){var G=this,V;return _.I(function(J){switch(J.nextAddress){case 1:_.Oa(J,2);if(!G.useAsyncBrowserChannelHandler_){J.jumpTo(2);break}return J.yield(G.connectPromise_,2);case 2:_.Na(J);if(G.JSC$20014_disposed_)return J.return();V={_sc:C};F&&_.xf.extend(V,F);if(G.reconnectTimer_.isActive()||(G.JSC$20014_channel_?G.JSC$20014_channel_.getState():0)==2){G.JSC$20014_pendingMessages_.push(V);J.jumpTo(6);break}if(!G.isChannelOpened()){J.jumpTo(6);break}_.Oa(J,8);if(!G.useAsyncBrowserChannelHandler_||
O$3(G,C)){J.jumpTo(8);break}return J.yield(lZl(G),8);case 8:_.Na(J,0,0,1);G.isChannelOpened()&&(O$3(G,C)||NMU(G),Z$l(G),pns(G.JSC$20014_channel_,V));_.XG(J,6,1);break;case 6:_.XG(J,0)}})};
var O$3=function(C,F){return C.enableMdxAuthForConnectionOnly_?!0:C.disableMdxAuthForAdMessages_?Object.values(W_L).includes(F):C.disableMdxAuthForNonPlaybackMessages_?!Object.values(tzt).includes(F):C.disableMdxAuthForShortsMessages_?Object.values(aZs).includes(F):!1};
Mv.prototype.JSC$19973_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$20014_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)X13(this);else{var C=this.JSC$20014_pendingMessages_;this.JSC$20014_pendingMessages_=[];var F=C.length;NMU(this);w1d(this,C,F);Mzl(this)}else Mzl(this)};
var X13=function(C){var F,G;_.I(function(V){if(V.nextAddress==1)return _.Oa(V,2),V.yield(lZl(C),2);_.Na(V);F=C.JSC$20014_pendingMessages_;C.JSC$20014_pendingMessages_=[];G=F.length;w1d(C,F,G);Mzl(C);return _.XG(V,0)})},w1d=function(C,F,G){for(var V=0;V<G;++V)pns(C.JSC$20014_channel_,F[V]);
Mzl(C)},Mzl=function(C){C.publish("handlerOpened");
C.JSC$20014_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.n=Mv.prototype;_.n.JSC$19973_channelError=function(C){var F=C==2&&this.JSC$20014_channel_.JSC$19966_lastStatusCode_==401;C==4||F||this.reconnectTimer_.start();this.publish("handlerError",C,F);F=Object.keys(PcW).find(function(G){return PcW[G]===C});
this.JSC$20014_channelErrorCounter.increment("BROWSER_CHANNEL",F!=null?F:"UNKNOWN")};
_.n.JSC$19973_channelClosed=function(C,F){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(F)for(var G=F.length,V=0;V<G;++V){var J=F[V].map;J&&this.JSC$20014_pendingMessages_.push(J)}this.JSC$20014_channelClosedCounter.increment("BROWSER_CHANNEL");C&&this.pendingMapsOnClosedCounter.JSC$9931_streamzService.JSC$9786_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",C.length);F&&this.undeliveredMapsOnClosedCounter.JSC$9934_streamzService.JSC$9786_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
F.length)};
_.n.JSC$19973_channelSuccess=function(C,F){F!=null&&C!=null&&this.channelMessageSentCounter.increment()};
_.n.JSC$19973_getAdditionalParams=function(){var C={v:2};this.sCookie_&&(C.gsessionid=this.sCookie_);this.connectUi_!=0&&(C.ui=""+this.connectUi_);this.disconnectUi_!=0&&(C.ui=""+this.disconnectUi_);this.connectionParams_&&_.xf.extend(C,this.connectionParams_);return C};
_.n.JSC$19973_channelHandleArray=function(C){C[0]=="S"?this.sCookie_=C[1]:C[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$20014_channel_.disconnect()):this.publish("handlerMessage",new fR_(C[0],C[1]));this.JSC$20014_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.n.isChannelOpened=function(){return!!this.JSC$20014_channel_&&this.JSC$20014_channel_.getState()==3};
var Z$l=function(C){if(C.JSC$20014_channel_){var F=C.JSC$20014_getXsrfToken_(),G=C.JSC$20014_channel_.JSC$19966_extraHeaders_||{};F?G["x-youtube-lounge-xsrf-token"]=F:delete G["x-youtube-lounge-xsrf-token"];C.JSC$20014_channel_.JSC$19966_extraHeaders_=G}},lZl=function(C){if(C.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.mE();
if(!C.enableCachedUpdateAuthorizationHeader_)return ShU(C);C.updateAuthorizationHeaderPromise_===null&&(C.updateAuthorizationHeaderPromise_=ShU(C));return C.updateAuthorizationHeaderPromise_},ShU=function(C){return _.OW(C.getAuthorizationHeader_().then(function(F){L_3(C,F)}).thenCatch(function(){}),function(){C.updateAuthorizationHeaderPromise_=null})},L_3=function(C,F){if(C.JSC$20014_channel_){var G=C.JSC$20014_channel_.JSC$19966_extraHeaders_||{};
F&&Object.keys(F).length>0?G=Object.assign({},G,F):delete G.Authorization;C.JSC$20014_channel_.JSC$19966_extraHeaders_=G}},NMU=function(C){C.getAuthorizationHeaderSync_&&!C.useAsyncBrowserChannelHandler_&&L_3(C,C.getAuthorizationHeaderSync_())};
_.n=Mv.prototype;_.n.setLoungeToken=function(C){(this.defaultQueryParams_.loungeIdToken=C)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$20014_channel_){var F=this.JSC$20014_channel_.JSC$19966_extraHeaders_||{};C?F["X-YouTube-LoungeId-Token"]=C:delete F["X-YouTube-LoungeId-Token"];this.JSC$20014_channel_.JSC$19966_extraHeaders_=F}};
_.n.getDeviceId=function(){return this.defaultQueryParams_.id};
_.n.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.n.reconnect=function(){var C=this.reconnectTimer_;C.delay_.fire();C.start()};
_.n.safeReconnect_=function(){var C=this.JSC$20014_channel_,F=0;C.JSC$19966_backChannelRequest_&&F++;C.forwardChannelRequest_&&F++;F==0&&this.connect(this.connectionParams_,this.connectUi_)};var c2=function(C,F){var G=C.basePath;C.supportCors&&(G=C.scheme+"://"+C.domain+C.port+C.basePath);return _.Jy(G+F,{})};
S1.prototype.sendRequest=function(C,F,G,V,J,b,z){C={format:b?"RAW":"JSON",method:C,context:this,timeout:5E3,withCredentials:!!z,onSuccess:_.$B(this.JSC$20019_onSuccess_,V,!b),onError:_.$B(this.onError_,J),onTimeout:_.$B(this.JSC$20019_onTimeout_,J)};G&&(C.postParams=G,C.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.wj(F,C)};
S1.prototype.JSC$20019_onSuccess_=function(C,F,G,V){F?C(V):C({text:G.responseText})};
S1.prototype.onError_=function(C,F){C(Error("Xk`"+F.status))};
S1.prototype.JSC$20019_onTimeout_=function(C){C(Error("Yk"))};var B2=function(C,F){return!!F&&(C.id==F||C.uuid==F)},BMV=function(C){return{name:C.name,
screenId:C.id,loungeToken:C.token,dialId:C.uuid,screenIdType:C.idType,screenIdSecret:C.secret}},vNt=function(C){return new Lu(C)},fZh=function(C){return Array.isArray(C)?_.ss(C,vNt):[]},R1V=function(C){if(!C)return"null";
var F=C.token?".."+C.token.slice(-6):"-",G=C.uuid?".."+C.uuid.slice(-6):"-",V=C.secret?".."+C.secret.slice(-6):"-";return'{name:"'+C.name+'",id:'+C.id.substr(0,6)+"..,token:"+(F+",uuid:"+G+",idType:"+C.idType+",secret:")+(V+"}")},kZ8=function(C){return Array.isArray(C)?"["+_.ss(C,R1V).join(",")+"]":"null"};var pl3="",hD=null;var $xM=function(C,F){_.lT.call(this);var G=this;this.handler=C();this.handler.subscribe("handlerOpened",this.JSC$20026_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(V,J){G.onError(J)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=F};
_.O($xM,_.lT);_.n=$xM.prototype;_.n.connect=function(C,F,G){this.handler.connect(C,F,G)};
_.n.disconnect=function(C){this.handler.disconnect(C)};
_.n.reconnect=function(){this.handler.reconnect()};
_.n.getDeviceId=function(){return this.handler.getDeviceId()};
_.n.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.n.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.n.JSC$20026_onOpened=function(){this.dispatchEvent("channelOpened");var C=this.handler,F=this.currentScreenId;_.E6("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!C.JSC$20014_channel_.useChunked_,sessionId:C.JSC$20014_channel_.sid_,arrayId:C.JSC$20014_channel_.JSC$19966_lastArrayId_});_.E6("yt-remote-session-screen-id",F);C=YIr();F=Tvs();_.sB(C,F)||C.push(F);Dhs(C);KeL()};
_.n.onClosed=function(){this.dispatchEvent("channelClosed")};
_.n.onMessage=function(C){this.dispatchEvent(new zUM(C))};
_.n.onError=function(C){this.dispatchEvent(new Qhr(C?1:0))};
_.n.sendMessage=function(C,F){this.handler.sendMessage(C,F)};
_.n.setLoungeToken=function(C){this.handler.setLoungeToken(C)};
_.n.dispose=function(){this.handler.dispose()};var JkL=function(C,F,G){var V=this;G=G===void 0?function(){return""}:G;
var J=J===void 0?new Qkh:J;var b=b===void 0?new _.SP:b;this.pathPrefix=C;this.defaultQueryParams=F;this.getXsrfToken=G;this.JSC$20029_pubsub=b;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new hNt(function(){var z;((z=V.channel)==null?void 0:sms((new WPL(z,z.JSC$19937_channel_)).JSC$19947_channel_.forwardChannelRequestPool_))===0&&V.connect(V.connectionParams,V.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$20029_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$20029_channelOpenedCounter=new cmh;this.JSC$20029_channelClosedCounter=new Amt;this.JSC$20029_channelMessageReceivedCounter=new dhV;this.JSC$20029_channelErrorCounter=new xhh};
JkL.prototype.connect=function(C,F){C=C===void 0?{}:C;F=F===void 0?0:F;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=C,this.connectUi=F,hU3(this),(C=_.TF("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=C: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 yL(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,cwV(this))};
var cwV=function(C){_.IP(C.channel,"w",function(){C.channelState=3;C.reconnectTimer.reset();C.connectionParams=null;C.connectUi=0;for(var F=_.u(C.nonAckedMessagesOnChannelClosed),G=F.next();!G.done;G=F.next())G=G.value,C.channel&&C.channel.send(G);C.nonAckedMessagesOnChannelClosed=[];C.publish("webChannelOpened");C.JSC$20029_channelOpenedCounter.increment("WEB_CHANNEL")});
_.IP(C.channel,"x",function(){C.channelState=0;C.reconnectTimer.isActive()||C.publish("webChannelClosed");var F,G=(F=C.channel)==null?void 0:tph(new WPL(F,F.JSC$19937_channel_));G&&(C.nonAckedMessagesOnChannelClosed=[].concat(_.da(G)));C.JSC$20029_channelClosedCounter.increment("WEB_CHANNEL")});
_.IP(C.channel,"z",function(F){var G=F.data;G[0]==="gracefulReconnect"?(C.reconnectTimer.start(),C.channel&&C.channel.close()):C.publish("webChannelMessage",new fR_(G[0],G[1]));C.lastStatusCode=F.statusCode;C.JSC$20029_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.IP(C.channel,"y",function(){C.lastStatusCode===401||C.reconnectTimer.start();C.publish("webChannelError");C.JSC$20029_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.n=JkL.prototype;_.n.disconnect=function(C){this.disconnectUi=C===void 0?0:C;this.reconnectTimer.stop();hU3(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.n.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.n.reconnect=function(){var C=this.reconnectTimer;C.delay_.fire();C.start()};
_.n.sendMessage=function(C,F){this.channel&&(hU3(this),C=Object.assign({},{_sc:C},F),this.channel.send(C))};
_.n.setLoungeToken=function(C){C||this.reconnectTimer.stop();C?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=C:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var hU3=function(C){var F=C.getXsrfToken();F?C.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=F:delete C.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.n=JkL.prototype;_.n.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.n.publish=function(C){return this.JSC$20029_pubsub.publish.apply(this.JSC$20029_pubsub,[C].concat(_.da(_.Rn.apply(1,arguments))))};
_.n.subscribe=function(C,F,G){return this.JSC$20029_pubsub.subscribe(C,F,G)};
_.n.unsubscribe=function(C,F,G){return this.JSC$20029_pubsub.unsubscribe(C,F,G)};
_.n.unsubscribeByKey=function(C){return this.JSC$20029_pubsub.unsubscribeByKey(C)};
_.n.dispose=function(){this.JSC$20029_disposed||(this.JSC$20029_disposed=!0,_.uz(this.JSC$20029_pubsub),this.disconnect(),_.uz(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.n.isDisposed=function(){return this.JSC$20029_disposed};var i3V=function(C){_.lT.call(this);this.webChannelService=C();this.webChannelService.subscribe("webChannelOpened",this.JSC$20037_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.O(i3V,_.lT);_.n=i3V.prototype;_.n.connect=function(C,F){this.webChannelService.connect(C,F)};
_.n.disconnect=function(C){this.webChannelService.disconnect(C)};
_.n.reconnect=function(){this.webChannelService.reconnect()};
_.n.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.n.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.n.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.n.JSC$20037_onOpened=function(){this.dispatchEvent("channelOpened")};
_.n.onClosed=function(){this.dispatchEvent("channelClosed")};
_.n.onMessage=function(C){this.dispatchEvent(new zUM(C))};
_.n.onError=function(){this.dispatchEvent(new Qhr(this.webChannelService.lastStatusCode===401?1:0))};
_.n.sendMessage=function(C,F){this.webChannelService.sendMessage(C,F)};
_.n.setLoungeToken=function(C){this.webChannelService.setLoungeToken(C)};
_.n.dispose=function(){this.webChannelService.dispose()};var aFh=Date.now(),AD=null,W8W=Array(50),xQ=-1,tZx=!1;_.RE(sO,_.Rb);sO.prototype.getScreens=function(){return this.screens};
sO.prototype.contains=function(C){return!!RNh(this.screens,C)};
sO.prototype.get=function(C){return C?v2(this.screens,C):null};
var AwU=function(C,F){var G=C.get(F.uuid)||C.get(F.id);if(G)return C=G.name,G.id=F.id||G.id,G.name=F.name,G.token=F.token,G.uuid=F.uuid||G.uuid,G.name!=C;C.screens.push(F);return!0},eUU=function(C,F){var G=C.screens.length!=F.length;
C.screens=_.TC(C.screens,function(b){return!!RNh(F,b)});
for(var V=F.length,J=0;J<V;J++)G=AwU(C,F[J])||G;return G},dO8=function(C,F){var G=C.screens.length;
C.screens=_.TC(C.screens,function(V){return!(V||F?!V!=!F?0:V.id==F.id:1)});
return C.screens.length<G};
sO.prototype.info=function(C){e1(this.JSC$20038_logName_,C)};var xOl=function(C,F,G,V,J){_.Rb.call(this);this.JSC$20041_http_=C;this.pairingCode_=F;this.deviceId_=G;this.friendlyName_=V;this.enableShortLivedLoungeToken_=J;this.pollIndex_=0;this.JSC$20041_xhr_=null;this.JSC$20041_timer_=NaN};
_.O(xOl,_.Rb);_.n=xOl.prototype;_.n.start=function(){!this.JSC$20041_xhr_&&isNaN(this.JSC$20041_timer_)&&this.poll_()};
_.n.stop=function(){this.JSC$20041_xhr_&&(this.JSC$20041_xhr_.abort(),this.JSC$20041_xhr_=null);isNaN(this.JSC$20041_timer_)||(_.Ow(this.JSC$20041_timer_),this.JSC$20041_timer_=NaN)};
_.n.disposeInternal=function(){this.stop();_.Rb.prototype.disposeInternal.call(this)};
_.n.poll_=function(){this.JSC$20041_timer_=NaN;this.JSC$20041_xhr_=_.wj(c2(this.JSC$20041_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.ck)(this.JSC$20043_onSuccess_,this),onError:(0,_.ck)(this.onError_,this),onTimeout:(0,_.ck)(this.JSC$20043_onTimeout_,this)})};
_.n.JSC$20043_onSuccess_=function(C,F){this.JSC$20041_xhr_=null;C=F.screen||{};C.dialId=this.deviceId_;C.name=this.friendlyName_;F=-1;this.enableShortLivedLoungeToken_&&C.shortLivedLoungeToken&&C.shortLivedLoungeToken.value&&C.shortLivedLoungeToken.refreshIntervalMs&&(C.screenIdType="shortLived",C.loungeToken=C.shortLivedLoungeToken.value,F=C.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new Lu(C),F)};
_.n.onError_=function(C){this.JSC$20041_xhr_=null;C.status&&C.status==404?this.pollIndex_>=shV.length?this.publish("pairingFailed",Error("Zk")):(C=shV[this.pollIndex_],this.JSC$20041_timer_=_.lH((0,_.ck)(this.poll_,this),C),this.pollIndex_++):this.publish("pairingFailed",Error("$k`"+C.status))};
_.n.JSC$20043_onTimeout_=function(){this.JSC$20041_xhr_=null;this.publish("pairingFailed",Error("al"))};
var shV=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.RE(P2,sO);_.n=P2.prototype;_.n.start=function(){qv(this)&&this.publish("screenChange");!_.Wr("yt-remote-lounge-token-expiration")&&qhd(this);_.Ow(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.lH((0,_.ck)(this.start,this),1E4)};
_.n.add=function(C,F){qv(this);AwU(this,C);PLW(this,!1);this.publish("screenChange");F(C);C.token||qhd(this)};
_.n.remove=function(C,F){var G=qv(this);dO8(this,C)&&(PLW(this,!1),G=!0);F(C);G&&this.publish("screenChange")};
_.n.updateName=function(C,F,G,V){var J=qv(this),b=this.get(C.id);b?(b.name!=F&&(b.name=F,PLW(this,!1),J=!0),G(C)):V(Error("bl"));J&&this.publish("screenChange")};
_.n.disposeInternal=function(){_.Ow(this.loungeTokenRefreshTimer_);P2.superClass_.disposeInternal.call(this)};
var qhd=function(C){if(C.screens.length){var F=_.ss(C.screens,function(V){return V.id}),G=c2(C.JSC$20045_http_,"/pairing/get_lounge_token_batch");
C.JSC$20045_http_.sendRequest("POST",G,{screen_ids:F.join(",")},(0,_.ck)(C.handleLoungeTokens_,C),(0,_.ck)(C.handleLoungeTokenError_,C))}};
P2.prototype.handleLoungeTokens_=function(C){qv(this);var F=this.screens.length;C=C&&C.screens||[];for(var G=C.length,V=0;V<G;++V){var J=C[V],b=this.get(J.screenId);b&&(b.token=J.loungeToken,--F)}PLW(this,!F);F&&e1(this.JSC$20038_logName_,"Missed "+F+" lounge tokens.")};
P2.prototype.handleLoungeTokenError_=function(C){e1(this.JSC$20038_logName_,"Requesting lounge tokens failed: "+C)};
var qv=function(C){if(_.y("deprecate_pair_servlet_enabled"))return eUU(C,[]);var F=fZh(Cd8());F=_.TC(F,function(G){return!G.uuid});
return eUU(C,F)},PLW=function(C,F){F8U(_.ss(C.screens,BMV));
F&&jvx()};var LU=function(C,F){_.Rb.call(this);this.getScreensToCheck_=F;F=(F=_.Wr("yt-remote-online-screen-ids")||"")?F.split(","):[];for(var G={},V=this.getScreensToCheck_(),J=V.length,b=0;b<J;++b){var z=V[b].id;G[z]=_.sB(F,z)}this.screenIdSet_=G;this.JSC$20048_http_=C;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;gNW("Initialized with "+(0,_.MX)(this.screenIdSet_))};
_.O(LU,_.Rb);LU.prototype.isOnline=function(C){return!!this.screenIdSet_[C]};
LU.prototype.start=function(){var C=parseInt(_.Wr("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.gp()-144E5<C?0:C)?RUl(this):(this.fastCheckEndTime_=_.gp()+3E5,_.E6("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
LU.prototype.isEmpty=function(){return _.xf.isEmpty(this.screenIdSet_)};
LU.prototype.update=function(){gNW("Updating availability on schedule.");var C=this.getScreensToCheck_(),F=_.xf.filter(this.screenIdSet_,function(G,V){return G&&!!v2(C,V)},this);
Yh3(this,F)};
var TML=function(C,F,G){var V=c2(C.JSC$20048_http_,"/pairing/get_screen_availability");C.JSC$20048_http_.sendRequest("POST",V,{lounge_token:F.token},(0,_.ck)(function(J){J=J.screens||[];for(var b=J.length,z=0;z<b;++z)if(J[z].loungeToken==F.token){G(J[z].status=="online");return}G(!1)},C),(0,_.ck)(function(){G(!1)},C))};
LU.prototype.disposeInternal=function(){_.Ow(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.Rb.prototype.disposeInternal.call(this)};
var Yh3=function(C,F){a:if(_.xf.getCount(F)!=_.xf.getCount(C.screenIdSet_))var G=!1;else{G=_.xf.getKeys(F);for(var V=G.length,J=0;J<V;++J)if(!C.screenIdSet_[G[J]]){G=!1;break a}G=!0}G||(gNW("Updated online screens: "+(0,_.MX)(C.screenIdSet_)),C.screenIdSet_=F,C.publish("screenChange"));oN3(C)},RUl=function(C){isNaN(C.refreshTimer_)||_.Ow(C.refreshTimer_);
C.refreshTimer_=_.lH((0,_.ck)(C.requestScreenAvailability_,C),C.fastCheckEndTime_>0&&C.fastCheckEndTime_<_.gp()?2E4:1E4)};
LU.prototype.requestScreenAvailability_=function(){_.Ow(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var C=rwL(this);if(_.xf.getCount(C)){var F=c2(this.JSC$20048_http_,"/pairing/get_screen_availability"),G={lounge_token:_.xf.getKeys(C).join(",")};this.currentRequest_=this.JSC$20048_http_.sendRequest("POST",F,G,(0,_.ck)(this.onScreenAvailability_,this,C),(0,_.ck)(this.onScreenAvailabilityError_,this))}else Yh3(this,{}),RUl(this)};
LU.prototype.onScreenAvailability_=function(C,F){this.currentRequest_=null;var G=_.xf.getKeys(rwL(this));if(_.K9(G,_.xf.getKeys(C))){F=F.screens||[];G={};for(var V=F.length,J=0;J<V;++J)G[C[F[J].loungeToken]]=F[J].status=="online";Yh3(this,G);RUl(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
LU.prototype.onScreenAvailabilityError_=function(C){this.warn_("Screen availability failed: "+C);this.currentRequest_=null;RUl(this)};
var gNW=function(C){e1("OnlineScreenService",C)};
LU.prototype.warn_=function(C){e1("OnlineScreenService",C)};
var rwL=function(C){var F={};_.F$(C.getScreensToCheck_(),function(G){G.token?F[G.token]=G.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return F},oN3=function(C){C=_.xf.getKeys(_.xf.filter(C.screenIdSet_,function(F){return F}));
C.sort(_.csI);C.length?_.E6("yt-remote-online-screen-ids",C.join(","),60):_.tR("yt-remote-online-screen-ids")};_.RE(g5,sO);_.n=g5.prototype;_.n.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.n.add=function(C,F,G){this.localScreenService_.add(C,F,G)};
_.n.remove=function(C,F,G){this.localScreenService_.remove(C,F,G);this.onlineScreenService_.update()};
_.n.updateName=function(C,F,G,V){this.localScreenService_.contains(C)?this.localScreenService_.updateName(C,F,G,V):(C="Updating name of unknown screen: "+C.name,e1(this.JSC$20038_logName_,C),V(Error(C)))};
_.n.getScreens=function(C){return C?this.screens:Z5L(this.screens,_.TC(this.automaticScreens_,function(F){return!this.contains(F)},this))};
_.n.JSC$20053_getOnlineScreens=function(){return _.TC(this.getScreens(!0),function(C){return this.onlineScreenService_.isOnline(C.id)},this)};
var DO3=function(C,F,G,V,J,b){C.info("getAutomaticScreenByIds "+G+" / "+F);G||(G=C.deviceToScreenId_[F]);var z=C.getScreens(),Q=G?v2(z,G):null;G&&(C.disableAutomaticScreenCache_||Q)||(Q=v2(z,F));if(Q){Q.uuid=F;var E=BT(C,Q);TML(C.onlineScreenService_,E,function(t){J(t?E:null)})}else G?K__(C,G,(0,_.ck)(function(t){var k=BT(this,new Lu({name:V,
screenId:G,loungeToken:t,dialId:F||""}));TML(this.onlineScreenService_,k,function(U){J(U?k:null)})},C),b):J(null)};
g5.prototype.JSC$20053_getScreenByPollingPairingCode=function(C,F,G,V,J,b){var z=this;this.info("getDialScreenByPairingCode "+C+" / "+F);var Q=new xOl(this.JSC$20051_http_,C,F,G,V);Q.subscribe("pairingComplete",function(E,t){_.uz(Q);J(BT(z,E),t)});
Q.subscribe("pairingFailed",function(E){_.uz(Q);b(E)});
Q.start();return(0,_.ck)(Q.stop,Q)};
var p13=function(C,F){for(var G=C.screens.length,V=0;V<G;++V)if(C.screens[V].name==F)return C.screens[V];return null};
g5.prototype.JSC$20053_getScreenByPairingCode=function(C,F,G,V){_.wj(c2(this.JSC$20051_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:C},timeout:5E3,onSuccess:(0,_.ck)(function(J,b){J=new Lu(b.screen||{});if(!J.name||p13(this,J.name)){a:{b=J.name;for(var z=2,Q=F(b,z);p13(this,Q);){z++;if(z>20)break a;Q=F(b,z)}b=Q}J.name=b}G(BT(this,J))},this),
onError:(0,_.ck)(function(J){V(Error("cl`"+J.status))},this),
onTimeout:(0,_.ck)(function(){V(Error("dl"))},this)})};
var mOt=function(C,F,G){TML(C.onlineScreenService_,F,G)};
g5.prototype.disposeInternal=function(){_.uz(this.localScreenService_);_.uz(this.onlineScreenService_);g5.superClass_.disposeInternal.call(this)};
var K__=function(C,F,G,V){C.info("requestLoungeToken_ for "+F);var J={postParams:{screen_ids:F},method:"POST",context:C,onSuccess:function(b,z){b=z&&z.screens||[];b[0]&&b[0].screenId==F?G(b[0].loungeToken):V(Error("el"))},
onError:function(){V(Error("fl"))}};
_.wj(c2(C.JSC$20051_http_,"/pairing/get_lounge_token_batch"),J)},Cfr=function(C){C.screens=C.localScreenService_.getScreens();
for(var F=_.xf.transpose(C.deviceToScreenId_),G=C.screens.length,V=0;V<G;++V){var J=C.screens[V];J.uuid=F[J.id]||""}C.info("Updated manual screens: "+kZ8(C.screens))};
g5.prototype.handleScreenChange_=function(){Cfr(this);this.publish("screenChange");this.onlineScreenService_.update()};
var Ux8=function(C){j_U(C);C.localScreenService_=new P2(C.JSC$20051_http_);C.localScreenService_.subscribe("screenChange",(0,_.ck)(C.handleScreenChange_,C));Cfr(C);C.disableAutomaticScreenCache_||(C.automaticScreens_=fZh(_.Wr("yt-remote-automatic-screen-cache")||[]));j_U(C);C.info("Initializing automatic screens: "+kZ8(C.automaticScreens_));C.onlineScreenService_=new LU(C.JSC$20051_http_,(0,_.ck)(C.getScreens,C,!0));C.onlineScreenService_.subscribe("screenChange",(0,_.ck)(function(){this.publish("onlineScreenChange")},
C))},BT=function(C,F){var G=C.get(F.id);
G?(G.uuid=F.uuid,F=G):((G=v2(C.automaticScreens_,F.uuid))?(G.id=F.id,G.token=F.token,F=G):C.automaticScreens_.push(F),C.disableAutomaticScreenCache_||F0x(C));j_U(C);C.deviceToScreenId_[F.uuid]=F.id;_.E6("yt-remote-device-id-map",C.deviceToScreenId_,31536E3);return F},F0x=function(C){C=_.TC(C.automaticScreens_,function(F){return F.idType!="shortLived"});
_.E6("yt-remote-automatic-screen-cache",_.ss(C,BMV))},j_U=function(C){C.deviceToScreenId_=_.Wr("yt-remote-device-id-map")||{}};
g5.prototype.dispose=g5.prototype.dispose;_.RE(Rc,_.Rb);var vT=function(C,F){C.screen_=F;C.publish("sessionScreen",C.screen_)},Gox=function(C,F){C.screen_&&(C.screen_.token=F,BT(C.JSC$20055_screenService_,C.screen_));
C.publish("sessionScreen",C.screen_)};
Rc.prototype.onSessionStopped=function(C){this.isDisposed()||(C&&(fU(this,""+C),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
Rc.prototype.info=function(C){e1(this.JSC$20055_logName_,C)};
var fU=function(C,F){e1(C.JSC$20055_logName_,F)};
Rc.prototype.JSC$20057_getCastSession=function(){return null};
Rc.prototype.setDisplayStatus=function(C){var F=this.receiver_;C?(F.displayStatus=new chrome.cast.ReceiverDisplayStatus(C,[]),F.displayStatus.showStop=!0):F.displayStatus=null;chrome.cast.setReceiverDisplayStatus(F,(0,_.ck)(function(){this.info("Updated receiver status for "+F.friendlyName+": "+C)},this),(0,_.ck)(function(){fU(this,"Failed to update receiver status for: "+F.friendlyName)},this))};
Rc.prototype.disposeInternal=function(){this.setDisplayStatus("");Rc.superClass_.disposeInternal.call(this)};var hj=function(C,F,G){Rc.call(this,C,F,"CastSession");var V=this;this.config_=G;this.JSC$20060_session_=null;this.JSC$20060_boundSessionUpdate_=(0,_.ck)(this.JSC$20062_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.ck)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.lH(function(){V7d(V,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$20060_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$20060_isInitLoungeToken_=!1;this.JSC$20060_lastLoungeTokenRefreshError_="unknown"};
_.O(hj,Rc);_.n=hj.prototype;
_.n.setCastSession=function(C){if(this.JSC$20060_session_){if(this.JSC$20060_session_==C)return;fU(this,"Overriding cast session with new session object");ie3(this);this.JSC$20060_isInitLoungeToken_=!1;this.JSC$20060_lastLoungeTokenRefreshError_="unknown";this.JSC$20060_session_.removeUpdateListener(this.JSC$20060_boundSessionUpdate_);this.JSC$20060_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$20060_session_=C;this.JSC$20060_session_.addUpdateListener(this.JSC$20060_boundSessionUpdate_);this.JSC$20060_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);JEh(this,"getMdxSessionStatus")};
_.n.launchWithParams=function(C){this.info("launchWithParams no-op for Cast: "+(0,_.MX)(C))};
_.n.stop=function(){if(this.JSC$20060_session_)this.JSC$20060_session_.stop((0,_.ck)(function(){this.onSessionStopped()},this),(0,_.ck)(function(){this.onSessionStopped(Error("gl"))},this));
else this.onSessionStopped(Error("hl"))};
_.n.setDisplayStatus=function(){};
_.n.disposeInternal=function(){this.info("disposeInternal");ie3(this);this.JSC$20060_session_&&(this.JSC$20060_session_.removeUpdateListener(this.JSC$20060_boundSessionUpdate_),this.JSC$20060_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$20060_session_=null;Rc.prototype.disposeInternal.call(this)};
var beW=function(C,F){_.Ow(C.getLoungeTokenTimeoutKey_);C.getLoungeTokenTimeoutKey_=0;F==0?$nh(C):C.getLoungeTokenTimeoutKey_=_.lH(function(){$nh(C)},F)},$nh=function(C){JEh(C,"getLoungeToken");
_.Ow(C.onLoungeTokenTimeoutKey_);C.onLoungeTokenTimeoutKey_=_.lH(function(){nFd(C,null)},3E4)},JEh=function(C,F){C.info("sendYoutubeMessage_: "+F+" "+(0,_.MX)(void 0));
var G={};G.type=F;C.JSC$20060_session_?C.JSC$20060_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",G,function(){},(0,_.ck)(function(){fU(this,"Failed to send message: "+F+".")},C)):fU(C,"Sending yt message without session: "+(0,_.MX)(G))};
hj.prototype.onYoutubeMessage_=function(C,F){if(!this.isDisposed())if(F)if(F=(0,_.ao)(F),_.TE(F))switch(C=""+F.type,F=F.data||{},this.info("onYoutubeMessage_: "+C+" "+(0,_.MX)(F)),C){case "mdxSessionStatus":V7d(this,F);break;case "loungeToken":nFd(this,F);break;default:fU(this,"Unknown youtube message: "+C)}else fU(this,"Unable to parse message.");else fU(this,"No data in message.")};
var uHx=function(C,F){if(F)C.info("onConnectedScreenId_: Received screenId: "+F),C.screen_&&C.screen_.id==F||C.getScreen_(F,function(G){vT(C,G)},function(){return C.onSessionStopped()},5);
else C.onSessionStopped(Error("il"))},Q_r=function(C,F,G){C.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(F));
var V=new Lu(F);zCr(C,V,function(J){J?(C.JSC$20060_isInitLoungeToken_=!0,BT(C.JSC$20055_screenService_,V),vT(C,V),C.JSC$20060_lastLoungeTokenRefreshError_="unknown",beW(C,G)):(_.ri(Error("jl`"+JSON.stringify(F))),C.onSessionStopped())},5)},V7d=function(C,F){_.Ow(C.sessionStatusTimeoutKey_);
C.sessionStatusTimeoutKey_=0;if(F)C.config_.enableCastLoungeToken&&F.loungeToken?F.deviceId?C.screen_&&C.screen_.uuid==F.deviceId||(F.loungeTokenRefreshIntervalMs?Q_r(C,{name:C.receiver_.friendlyName,screenId:F.screenId,loungeToken:F.loungeToken,dialId:F.deviceId,screenIdType:"shortLived"},F.loungeTokenRefreshIntervalMs):(_.ri(Error("ll`"+JSON.stringify(F))),uHx(C,F.screenId))):(_.ri(Error("kl`"+JSON.stringify(F))),uHx(C,F.screenId)):uHx(C,F.screenId);else C.onSessionStopped(Error("il"))},nFd=function(C,
F){_.Ow(C.onLoungeTokenTimeoutKey_);
C.onLoungeTokenTimeoutKey_=0;var G=null;if(F)if(F.loungeToken){var V;((V=C.screen_)==null?void 0:V.token)==F.loungeToken&&(G="staleLoungeToken")}else G="missingLoungeToken";else G="noLoungeTokenResponse";G?(C.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(F)+", error: "+G)),C.JSC$20060_lastLoungeTokenRefreshError_=G,beW(C,3E4)):(Gox(C,F.loungeToken),C.JSC$20060_isInitLoungeToken_=!1,C.JSC$20060_lastLoungeTokenRefreshError_="unknown",beW(C,F.loungeTokenRefreshIntervalMs))};
hj.prototype.getScreen_=function(C,F,G,V){_.Ow(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;DO3(this.JSC$20055_screenService_,this.receiver_.label,C,this.receiver_.friendlyName,(0,_.ck)(function(J){J?F(J):V>=0?(fU(this,"Screen "+C+" appears to be offline. "+V+" retries left."),this.getScreenTimeoutKey_=_.lH((0,_.ck)(this.getScreen_,this,C,F,G,V-1),300)):G(Error("ml"))},this),G)};
var zCr=function(C,F,G,V){_.Ow(C.JSC$20060_checkScreenAvailabilityTimeoutKey_);C.JSC$20060_checkScreenAvailabilityTimeoutKey_=0;mOt(C.JSC$20055_screenService_,F,function(J){J||V<0?G(J):C.JSC$20060_checkScreenAvailabilityTimeoutKey_=_.lH(function(){zCr(C,F,G,V-1)},300)})};
hj.prototype.JSC$20057_getCastSession=function(){return this.JSC$20060_session_};
hj.prototype.JSC$20062_onSessionUpdate_=function(C){this.isDisposed()||C||(fU(this,"Cast session died."),this.onSessionStopped())};
var ie3=function(C){_.Ow(C.getScreenTimeoutKey_);C.getScreenTimeoutKey_=0;_.Ow(C.JSC$20060_checkScreenAvailabilityTimeoutKey_);C.JSC$20060_checkScreenAvailabilityTimeoutKey_=0;_.Ow(C.sessionStatusTimeoutKey_);C.sessionStatusTimeoutKey_=0;_.Ow(C.onLoungeTokenTimeoutKey_);C.onLoungeTokenTimeoutKey_=0;_.Ow(C.getLoungeTokenTimeoutKey_);C.getLoungeTokenTimeoutKey_=0};var cT=function(C,F,G,V){Rc.call(this,C,F,"DialSession");this.config_=V;this.JSC$20064_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$20064_theme_=G;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$20064_deferredLaunchDeadlineTimer_=NaN;this.JSC$20064_boundSessionUpdate_=(0,_.ck)(this.JSC$20066_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$20064_checkScreenAvailabilityTimeoutKey_=0;this.JSC$20064_isInitLoungeToken_=!1;this.JSC$20064_lastLoungeTokenRefreshError_="unknown"};
_.O(cT,Rc);cT.prototype.setCastSession=function(C){this.JSC$20064_session_=C;this.JSC$20064_session_.addUpdateListener(this.JSC$20064_boundSessionUpdate_)};
cT.prototype.launchWithParams=function(C){this.connectData_=C;this.deferredLaunch_()};
cT.prototype.stop=function(){Ijl(this);if(this.JSC$20064_session_)this.JSC$20064_session_.stop((0,_.ck)(this.onSessionStopped,this,null),(0,_.ck)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
cT.prototype.disposeInternal=function(){Ijl(this);this.JSC$20064_session_&&this.JSC$20064_session_.removeUpdateListener(this.JSC$20064_boundSessionUpdate_);this.JSC$20064_session_=null;Rc.prototype.disposeInternal.call(this)};
var EFh=function(C){var F;return!!(C.config_.enableDialLoungeToken&&((F=C.JSC$20064_session_)==null?0:F.getDialAppInfo))},t7d=function(C){C.cancelPolling_=C.JSC$20055_screenService_.JSC$20053_getScreenByPollingPairingCode(C.reversePairingCode_,C.receiver_.label,C.receiver_.friendlyName,EFh(C),function(F,G){C.cancelPolling_=function(){};
C.JSC$20064_isInitLoungeToken_=!0;vT(C,F);F.idType=="shortLived"&&G>0&&W0r(C,G)},function(F){C.cancelPolling_=function(){};
C.onSessionStopped(F)})};
cT.prototype.JSC$20066_onSessionUpdate_=function(C){this.isDisposed()||C||(fU(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var ajx=function(C){var F={};F.pairingCode=C.reversePairingCode_;F.theme=C.JSC$20064_theme_;VZl()&&(F.env_useStageMdx=1);return _.Me(F)},koW=function(C){return new Promise(function(F){C.reversePairingCode_=PC_();
if(C.connectData_){var G=new chrome.cast.DialLaunchResponse(!0,ajx(C));F(G);t7d(C)}else C.deferredLaunch_=function(){_.Ow(C.JSC$20064_deferredLaunchDeadlineTimer_);C.deferredLaunch_=function(){};
C.JSC$20064_deferredLaunchDeadlineTimer_=NaN;var V=new chrome.cast.DialLaunchResponse(!0,ajx(C));F(V);t7d(C)},C.JSC$20064_deferredLaunchDeadlineTimer_=_.lH(function(){C.deferredLaunch_()},100)})},HeU=function(C,F,G){C.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(F));
var V=new Lu(F);return(new Promise(function(J){UnM(C,V,function(b){b?(C.JSC$20064_isInitLoungeToken_=!0,BT(C.JSC$20055_screenService_,V),vT(C,V),W0r(C,G)):_.ri(Error("ol`"+JSON.stringify(F)));J(b)},5)})).then(function(J){return J?new chrome.cast.DialLaunchResponse(!1):koW(C)})},ljM=function(C,F){var G=C.launchData_.receiver.label,V=C.receiver_.friendlyName;
return(new Promise(function(J){DO3(C.JSC$20055_screenService_,G,F,V,function(b){b&&b.token&&vT(C,b);J(b)},function(b){fU(C,"Failed to get DIAL screen: "+b);
J(null)})})).then(function(J){return J&&J.token?new chrome.cast.DialLaunchResponse(!1):koW(C)})},UnM=function(C,F,G,V){_.Ow(C.JSC$20064_checkScreenAvailabilityTimeoutKey_);
C.JSC$20064_checkScreenAvailabilityTimeoutKey_=0;mOt(C.JSC$20055_screenService_,F,function(J){J||V<0?G(J):C.JSC$20064_checkScreenAvailabilityTimeoutKey_=_.lH(function(){UnM(C,F,G,V-1)},300)})},W0r=function(C,F){C.info("getDialAppInfoWithTimeout_ "+F);
EFh(C)&&(_.Ow(C.getDialAppInfoTimeoutKey_),C.getDialAppInfoTimeoutKey_=0,F==0?yE_(C):C.getDialAppInfoTimeoutKey_=_.lH(function(){yE_(C)},F))},yE_=function(C){EFh(C)&&C.JSC$20064_session_.getDialAppInfo(function(F){C.info("getDialAppInfo dialLaunchData: "+JSON.stringify(F));
F=F.extraData||{};var G=null;if(F.loungeToken){var V;((V=C.screen_)==null?void 0:V.token)==F.loungeToken&&(G="staleLoungeToken")}else G="missingLoungeToken";G?(C.JSC$20064_lastLoungeTokenRefreshError_=G,W0r(C,3E4)):(C.JSC$20064_isInitLoungeToken_=!1,C.JSC$20064_lastLoungeTokenRefreshError_="unknown",Gox(C,F.loungeToken),W0r(C,F.loungeTokenRefreshIntervalMs))},function(F){C.info("getDialAppInfo error: "+F);
C.JSC$20064_lastLoungeTokenRefreshError_="noLoungeTokenResponse";W0r(C,3E4)})},Ijl=function(C){_.Ow(C.JSC$20064_checkScreenAvailabilityTimeoutKey_);
C.JSC$20064_checkScreenAvailabilityTimeoutKey_=0;_.Ow(C.getDialAppInfoTimeoutKey_);C.getDialAppInfoTimeoutKey_=0;C.cancelPolling_();C.cancelPolling_=function(){};
_.Ow(C.JSC$20064_deferredLaunchDeadlineTimer_)};var Aj=function(C,F){Rc.call(this,C,F,"ManualSession");this.JSC$20068_deferredLaunchDeadlineTimer_=_.lH((0,_.ck)(this.launchWithParams,this,null),150)};
_.O(Aj,Rc);Aj.prototype.stop=function(){this.onSessionStopped()};
Aj.prototype.setCastSession=function(){};
Aj.prototype.launchWithParams=function(){_.Ow(this.JSC$20068_deferredLaunchDeadlineTimer_);this.JSC$20068_deferredLaunchDeadlineTimer_=NaN;var C=v2(this.JSC$20055_screenService_.getScreens(),this.receiver_.label);if(C)vT(this,C);else this.onSessionStopped(Error("pl"))};
Aj.prototype.disposeInternal=function(){_.Ow(this.JSC$20068_deferredLaunchDeadlineTimer_);this.JSC$20068_deferredLaunchDeadlineTimer_=NaN;Rc.prototype.disposeInternal.call(this)};var r5=function(C,F){_.Rb.call(this);this.config_=F;this.JSC$20071_screenService_=C;this.JSC$20071_appId_=F.appId||"233637DE";this.JSC$20071_theme_=F.theme||"cl";this.disableDial_=F.disableCastApi||!1;this.forceMirroring_=F.forceMirroring||!1;this.JSC$20071_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.ck)(this.onReceiverAction_,this)};
_.O(r5,_.Rb);
r5.prototype.init=function(C,F){chrome.cast.timeout.requestSession=3E4;var G=new chrome.cast.SessionRequest(this.JSC$20071_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.y("desktop_enable_cast_connect")&&(G.androidReceiverCompatible=!0);this.disableDial_||(G.dialRequest=new chrome.cast.DialRequest("YouTube"));var V=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;C=C||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var J=(0,_.ck)(this.onReceiverUpdated_,
this);G=new chrome.cast.ApiConfig(G,(0,_.ck)(this.onSessionEstablished_,this),J,V,C);G.customDialLaunchCallback=(0,_.ck)(this.onDialLaunchRequested_,this);chrome.cast.initialize(G,(0,_.ck)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),Qvl(),this.JSC$20071_screenService_.subscribe("onlineScreenChange",(0,_.ck)(this.JSC$20073_onScreenChange_,this)),this.customReceivers_=Zer(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.ck)(function(b){this.warn_("Failed to set initial custom receivers: "+(0,_.MX)(b))},this)),this.publish("yt-remote-cast2-availability-change",N4M(this)),F(!0))},this),(0,_.ck)(function(b){this.warn_("Failed to initialize API: "+(0,_.MX)(b));
F(!1)},this))};
r5.prototype.setConnectedScreenStatus=function(C,F){ew("Setting connected screen ID: "+C+" -> "+F);if(this.JSC$20071_session_){var G=this.JSC$20071_session_.screen_;if(!C||G&&G.id!=C)ew("Unsetting old screen status: "+this.JSC$20071_session_.receiver_.friendlyName),ds(this,null)}if(C&&F){if(!this.JSC$20071_session_){C=v2(this.JSC$20071_screenService_.getScreens(),C);if(!C){ew("setConnectedScreenStatus: Unknown screen.");return}if(C.idType=="shortLived"){ew("setConnectedScreenStatus: Screen with id type to be short lived.");
return}G=Oe3(this,C);G||(ew("setConnectedScreenStatus: Connected receiver not custom..."),G=new chrome.cast.Receiver(C.uuid?C.uuid:C.id,C.name),G.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(G),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.ck)(function(V){this.warn_("Failed to set initial custom receivers: "+(0,_.MX)(V))},this)));
ew("setConnectedScreenStatus: new active receiver: "+G.friendlyName);ds(this,new Aj(this.JSC$20071_screenService_,G),!0)}this.JSC$20071_session_.setDisplayStatus(F)}else ew("setConnectedScreenStatus: no screen.")};
var Oe3=function(C,F){return F?_.co(C.customReceivers_,function(G){return B2(F,G.label)},C):null};
r5.prototype.setLaunchParams=function(C){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$20071_session_?this.JSC$20071_session_.launchWithParams(C):this.warn_("Setting connection data without a session")};
r5.prototype.JSC$20073_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$20071_session_?(this.JSC$20071_session_.stop(),ds(this,null)):ew("Stopping non-existing session")};
r5.prototype.requestSession=function(){chrome.cast.requestSession((0,_.ck)(this.onSessionEstablished_,this),(0,_.ck)(this.onSessionRequestFailed_,this))};
r5.prototype.disposeInternal=function(){this.JSC$20071_screenService_.unsubscribe("onlineScreenChange",(0,_.ck)(this.JSC$20073_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.qf(_.mN("yt.mdx.remote.debug.handlers_")||[],nZM);_.uz(this.JSC$20071_session_);_.Rb.prototype.disposeInternal.call(this)};
var ew=function(C){e1("Controller",C)};
r5.prototype.warn_=function(C){e1("Controller",C)};
var nZM=function(C){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(C)},N4M=function(C){return C.hasCastReceiver_||!!C.customReceivers_.length||!!C.JSC$20071_session_},ds=function(C,F,G){F!=C.JSC$20071_session_&&(_.uz(C.JSC$20071_session_),(C.JSC$20071_session_=F)?(G?C.publish("yt-remote-cast2-receiver-resumed",F.receiver_):C.publish("yt-remote-cast2-receiver-selected",F.receiver_),F.subscribe("sessionScreen",(0,_.ck)(C.onSessionScreen_,C,F)),F.subscribe("sessionFailed",
function(){return XXM(C,F)}),F.screen_?C.publish("yt-remote-cast2-session-change",F.screen_):G&&C.JSC$20071_session_.launchWithParams(null)):C.publish("yt-remote-cast2-session-change",null))},XXM=function(C,F){C.JSC$20071_session_==F&&C.publish("yt-remote-cast2-session-failed")};
_.n=r5.prototype;_.n.onSessionScreen_=function(C,F){this.JSC$20071_session_==C&&(F||ds(this,null),this.publish("yt-remote-cast2-session-change",F))};
_.n.onReceiverAction_=function(C,F){if(!this.isDisposed())if(C)switch(C.friendlyName=chrome.cast.unescape(C.friendlyName),ew("onReceiverAction_ "+C.label+" / "+C.friendlyName+"-- "+F),F){case chrome.cast.ReceiverAction.CAST:if(this.JSC$20071_session_)if(this.JSC$20071_session_.receiver_.label!=C.label)ew("onReceiverAction_: Stopping active receiver: "+this.JSC$20071_session_.receiver_.friendlyName),this.JSC$20071_session_.stop();else{ew("onReceiverAction_: Casting to active receiver.");this.JSC$20071_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$20071_session_.screen_);break}switch(C.receiverType){case chrome.cast.ReceiverType.CUSTOM:ds(this,new Aj(this.JSC$20071_screenService_,C));break;case chrome.cast.ReceiverType.DIAL:ds(this,new cT(this.JSC$20071_screenService_,C,this.JSC$20071_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:ds(this,new hj(this.JSC$20071_screenService_,C,this.config_));break;default:this.warn_("Unknown receiver type: "+C.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$20071_session_&&
this.JSC$20071_session_.receiver_.label==C.label?this.JSC$20071_session_.stop():this.warn_("Stopping receiver w/o session: "+C.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.n.onDialLaunchRequested_=function(C){if(this.isDisposed())return Promise.reject(Error("ql"));var F=C.receiver;F.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+F.friendlyName),F.receiverType=chrome.cast.ReceiverType.DIAL);var G=this.JSC$20071_session_?this.JSC$20071_session_.receiver_:null;if(!G||G.label!=F.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+F.friendlyName),Promise.reject(Error("rl"));if(G&&G.label==F.label&&G.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$20071_session_.screen_)return ew("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$20071_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+G.receiverType+'" to "dial" for '+F.friendlyName);ds(this,new cT(this.JSC$20071_screenService_,F,this.JSC$20071_theme_,this.config_))}F=this.JSC$20071_session_;F.launchData_=C;F.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(C=F.launchData_.extraData||{},G=C.screenId||null,EFh(F)&&C.loungeToken?C.loungeTokenRefreshIntervalMs?C=HeU(F,{name:F.receiver_.friendlyName,screenId:C.screenId,loungeToken:C.loungeToken,dialId:F.launchData_.receiver.label,screenIdType:"shortLived"},C.loungeTokenRefreshIntervalMs):(_.ri(Error("nl`"+JSON.stringify(C))),C=ljM(F,G)):C=ljM(F,G)):C=koW(F);return C};
_.n.onSessionEstablished_=function(C){var F=this;if(!this.isDisposed()&&!this.forceMirroring_){ew("New cast session ID: "+C.sessionId);var G=C.receiver;if(G.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$20071_session_)if(G.receiverType==chrome.cast.ReceiverType.CAST)ew("Got resumed cast session before resumed mdx connection."),G.friendlyName=chrome.cast.unescape(G.friendlyName),ds(this,new hj(this.JSC$20071_screenService_,G,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var V=this.JSC$20071_session_.receiver_,J=v2(this.JSC$20071_screenService_.getScreens(),V.label);J&&B2(J,G.label)&&V.receiverType!=chrome.cast.ReceiverType.CAST&&G.receiverType==chrome.cast.ReceiverType.CAST&&(ew("onSessionEstablished_: manual to cast session change "+G.friendlyName),_.uz(this.JSC$20071_session_),this.JSC$20071_session_=new hj(this.JSC$20071_screenService_,G,this.config_),this.JSC$20071_session_.subscribe("sessionScreen",(0,_.ck)(this.onSessionScreen_,this,this.JSC$20071_session_)),
this.JSC$20071_session_.subscribe("sessionFailed",function(){return XXM(F,F.JSC$20071_session_)}),this.JSC$20071_session_.launchWithParams(null));
this.JSC$20071_session_.setCastSession(C)}}};
_.n.JSC$20073_getCastSession=function(){return this.JSC$20071_session_?this.JSC$20071_session_.JSC$20057_getCastSession():null};
_.n.onSessionRequestFailed_=function(C){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.MX)(C)),C.code!=chrome.cast.ErrorCode.CANCEL&&ds(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.n.onReceiverUpdated_=function(C){ew("Receiver availability updated: "+C);if(!this.isDisposed()){var F=N4M(this);this.hasCastReceiver_=C==chrome.cast.ReceiverAvailability.AVAILABLE;N4M(this)!=F&&this.publish("yt-remote-cast2-availability-change",N4M(this))}};
var Zer=function(C){var F=C.JSC$20071_screenService_.JSC$20053_getOnlineScreens(),G=C.JSC$20071_session_&&C.JSC$20071_session_.receiver_;C=_.ss(F,function(V){G&&B2(V,G.label)&&(G=null);var J=V.uuid?V.uuid:V.id,b=Oe3(this,V);b?(b.label=J,b.friendlyName=V.name):(b=new chrome.cast.Receiver(J,V.name),b.receiverType=chrome.cast.ReceiverType.CUSTOM);return b},C);
G&&(G.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(G=new chrome.cast.Receiver(G.label,G.friendlyName),G.receiverType=chrome.cast.ReceiverType.CUSTOM),C.push(G));return C};
r5.prototype.JSC$20073_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=Zer(this),ew("Updating custom receivers: "+(0,_.MX)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.ck)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",N4M(this)))};
r5.prototype.setLaunchParams=r5.prototype.setLaunchParams;r5.prototype.setConnectedScreenStatus=r5.prototype.setConnectedScreenStatus;r5.prototype.stopSession=r5.prototype.JSC$20073_stopSession;r5.prototype.getCastSession=r5.prototype.JSC$20073_getCastSession;r5.prototype.requestSession=r5.prototype.requestSession;r5.prototype.init=r5.prototype.init;r5.prototype.dispose=r5.prototype.dispose;var wXx=_.h6(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),e1L=[],Xxt=_.kf(wXx);var M7t=function(C){C.audioTrackId=null;C.trackData=null;C.playerState=-1;C.hasPrevious=!1;C.hasNext=!1;C.playerTime_=0;C.playerTimeAt_=_.gp();C.seekableStart_=0;C.seekableEnd_=0;C.duration_=0;C.loadedTime=0;C.liveIngestionTime_=NaN;C.isLive_=!1};
_.n=Ku.prototype;
_.n.reset=function(C){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;C&&(this.index=C.index,this.listId=C.listId,this.videoId=C.videoId,this.playerState=C.playerState,this.volume=C.volume,this.muted=C.muted,this.audioTrackId=C.audioTrackId,this.trackData=C.trackData,this.hasPrevious=C.hasPrevious,this.hasNext=C.hasNext,this.playerTime_=C.playerTime,this.playerTimeAt_=C.playerTimeAt,this.seekableStart_=C.seekableStart,this.seekableEnd_=C.seekableEnd,this.duration_=C.duration,this.loadedTime=
C.loadedTime,this.liveIngestionTime_=C.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.n.stopPlayer=function(){this.index=-1;this.videoId="";M7t(this)};
_.n.isPlaying=function(){return this.playerState==1};
_.n.isBuffering=function(){return this.playerState==3};
_.n.isAdPlaying=function(){return this.playerState==1081};
var xY=function(C,F){C.playerTime_=F;C.playerTimeAt_=_.gp()},SCU=function(C){switch(C.playerState){case 1:case 1081:return(_.gp()-C.playerTimeAt_)/1E3+C.playerTime_;
case -1E3:return 0}return C.playerTime_};
Ku.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.gp()-this.playerTimeAt_)/1E3:0):this.duration_};
var L0l=function(C,F,G){var V=C.videoId;C.videoId=F;C.index=G;F!=V&&M7t(C)},B4U=function(C){var F={};
F.index=C.index;F.listId=C.listId;F.videoId=C.videoId;F.playerState=C.playerState;F.volume=C.volume;F.muted=C.muted;F.audioTrackId=C.audioTrackId;F.trackData=_.xf.unsafeClone(C.trackData);F.hasPrevious=C.hasPrevious;F.hasNext=C.hasNext;F.playerTime=C.playerTime_;F.playerTimeAt=C.playerTimeAt_;F.seekableStart=C.seekableStart_;F.seekableEnd=C.seekableEnd_;F.duration=C.duration_;F.loadedTime=C.loadedTime;F.liveIngestionTime=C.liveIngestionTime_;return F};
Ku.prototype.clone=function(){return new Ku(B4U(this))};var Va=function(C,F){_.Rb.call(this);var G=this;this.state_=0;this.connection_=C;this.contextSubscriptions_=[];this.actionQueue_=new vbl;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.ck)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.ck)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.ck)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.ck)(this.onCloudviewAvailabilityChange_,this);var V=0;C?(V=C.getProxyState(),
V!=3&&(C.subscribe("proxyStateChange",this.setState_,this),vFx(this))):V=3;V!=0&&(F?this.setState_(V):_.lH(function(){G.setState_(V)},0));
(C=qpL())&&fjM(this,C);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.O(Va,_.Rb);Va.prototype.getState=function(){return this.state_};
Va.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
Va.prototype.reconnect=function(){this.connection_.reconnect()};
var sE=function(C){return new Ku(C.connection_.getPlayerContextData())};
_.n=Va.prototype;_.n.play=function(){qK(this)?(this.castMedia_?this.castMedia_.play(null,_.t8,hCs(this,"play")):PT(this,"play"),cEW(this,1,SCU(sE(this))),this.publish("remotePlayerChange")):gs(this,this.play)};
_.n.pause=function(){qK(this)?(this.castMedia_?this.castMedia_.pause(null,_.t8,hCs(this,"pause")):PT(this,"pause"),cEW(this,2,SCU(sE(this))),this.publish("remotePlayerChange")):gs(this,this.pause)};
_.n.seekTo=function(C){if(qK(this)){if(this.castMedia_){var F=sE(this),G=new chrome.cast.media.SeekRequest;G.currentTime=C;F.isPlaying()||F.isBuffering()?G.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:G.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(G,_.t8,hCs(this,"seekTo",{newTime:C}))}else PT(this,"seekTo",{newTime:C});cEW(this,3,C);this.publish("remotePlayerChange")}else gs(this,_.$B(this.seekTo,C))};
_.n.stop=function(){if(qK(this)){this.castMedia_?this.castMedia_.stop(null,_.t8,hCs(this,"stopVideo")):PT(this,"stopVideo");var C=sE(this);C.stopPlayer();RJ(this,C);this.publish("remotePlayerChange")}else gs(this,this.stop)};
_.n.setVolume=function(C,F){if(qK(this)){var G=sE(this);if(this.castSession_){if(G.volume!=C){var V=Math.round(C)/100;this.castSession_.setReceiverVolumeLevel(V,(0,_.ck)(function(){d5("set receiver volume: "+V)},this),(0,_.ck)(function(){this.warn_("failed to set receiver volume.")},this))}G.muted!=F&&this.castSession_.setReceiverMuted(F,(0,_.ck)(function(){d5("set receiver muted: "+F)},this),(0,_.ck)(function(){this.warn_("failed to set receiver muted.")},this))}else{var J={volume:C,
muted:F};G.volume!=-1&&(J.delta=C-G.volume);PT(this,"setVolume",J)}G.muted=F;G.volume=C;RJ(this,G)}else gs(this,_.$B(this.setVolume,C,F))};
_.n.setAudioTrack=function(C,F){qK(this)?(F=F.getLanguageInfo().getId(),PT(this,"setAudioTrack",{videoId:C,audioTrackId:F}),C=sE(this),C.audioTrackId=F,RJ(this,C)):gs(this,_.$B(this.setAudioTrack,C,F))};
_.n.addVideo=function(C){qK(this)?PT(this,"addVideo",{videoId:C}):gs(this,_.$B(this.addVideo,C))};
_.n.addPlaylist=function(C){qK(this)?PT(this,"addVideos",{listId:C}):gs(this,_.$B(this.addPlaylist,C))};
_.n.addVideos=function(C){C.length==0?this.warn_("Ignore add videos request due to empty list"):qK(this)?PT(this,"addVideos",{videoIds:C.join(",")}):gs(this,_.$B(this.addVideos,C))};
_.n.JSC$20083_removeVideo=function(C){qK(this)?PT(this,"removeVideo",{videoId:C}):gs(this,_.$B(this.JSC$20083_removeVideo,C))};
_.n.JSC$20083_insertVideo=function(C){qK(this)?PT(this,"insertVideo",{videoId:C}):gs(this,_.$B(this.JSC$20083_insertVideo,C))};
_.n.playVideo=function(C,F,G,V,J,b,z){V=V===void 0?null:V;J=J===void 0?null:J;b=b===void 0?null:b;z=z===void 0?null:z;var Q=sE(this),E={videoId:C};G!==void 0&&(E.currentIndex=G);L0l(Q,C,G||0);F!==void 0&&(xY(Q,F),E.currentTime=F);V&&(E.listId=V);J&&(E.playerParams=J);b&&(E.clickTrackingParams=b);z&&(E.locationInfo=(0,_.MX)(z));PT(this,"setPlaylist",E);V||RJ(this,Q)};
_.n.nextVideo=function(C,F){if(qK(this)){if(C&&F){var G=sE(this);L0l(G,C,F);RJ(this,G)}PT(this,"next")}else gs(this,_.$B(this.nextVideo,C,F))};
_.n.clearPlaylist=function(){if(qK(this)){PT(this,"clearPlaylist");var C=sE(this);C.reset();RJ(this,C);this.publish("remotePlayerChange")}else gs(this,this.clearPlaylist)};
_.n.dispose=function(){if(this.state_!=3){var C=this.state_;this.state_=3;this.publish("proxyStateChange",C,this.state_)}_.Rb.prototype.dispose.call(this)};
_.n.disposeInternal=function(){AE3(this);this.connection_=null;this.actionQueue_.clear();fjM(this,null);_.Rb.prototype.disposeInternal.call(this)};
var vFx=function(C){_.F$("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(F){this.contextSubscriptions_.push(this.connection_.subscribe(F,_.$B(this.onProxyEvent_,F),this))},C)},AE3=function(C){_.F$(C.contextSubscriptions_,function(F){this.connection_.unsubscribeByKey(F)},C);
C.contextSubscriptions_.length=0},qK=function(C){return C.getState()==1},gs=function(C,F){C.actionQueue_.getCount()<50&&C.actionQueue_.enqueue(F)},cEW=function(C,F,G){var V=sE(C);
xY(V,G);V.playerState!=-1E3&&(V.playerState=F);RJ(C,V)},PT=function(C,F,G){C.connection_.sendMessage(F,G)},RJ=function(C,F){AE3(C);
C.connection_.setPlayerContextData(B4U(F));vFx(C)};
Va.prototype.setState_=function(C){if((C!=this.state_||C==2)&&this.state_!=3&&C!=0){var F=this.state_;this.state_=C;this.publish("proxyStateChange",F,C);if(C==1)for(;!this.actionQueue_.isEmpty();)C=this.actionQueue_,JTs(C),C.front_.pop().apply(this);else C==3&&this.dispose()}};
Va.prototype.onProxyEvent_=function(C,F){this.publish(C,F)};
var fjM=function(C,F){C.castSession_&&(C.castSession_.removeUpdateListener(C.boundCastStatusListener_),C.castSession_.removeMediaListener(C.boundCastMediaListener_),C.onCastMediaChange_(null));C.castSession_=F;if(C.castSession_&&(d5("Setting cast session: "+C.castSession_.sessionId),C.castSession_.addUpdateListener(C.boundCastStatusListener_),C.castSession_.addMediaListener(C.boundCastMediaListener_),C.castSession_.media.length))C.onCastMediaChange_(C.castSession_.media[0])};
Va.prototype.onCastStatusUpdate_=function(C){if(!C)this.onCastMediaChange_(null),fjM(this,null);else if(this.castSession_.receiver.volume){C=this.castSession_.receiver.volume;var F=sE(this),G=Math.round(100*C.level||0);if(F.volume!=G||F.muted!=C.muted)d5("Cast volume update: "+C.level+(C.muted?" muted":"")),F.volume=G,F.muted=!!C.muted,RJ(this,F)}};
Va.prototype.onCastMediaChange_=function(C){d5("Cast media: "+!!C);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=C)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),eCU(this),this.publish("remotePlayerChange")};
var eCU=function(C){var F=C.castMedia_.media,G=C.castMedia_.customData;if(F&&G){var V=sE(C);F.contentId!=V.videoId&&d5("Cast changing video to: "+F.contentId);V.videoId=F.contentId;V.playerState=G.playerState;xY(V,C.castMedia_.getEstimatedTime());RJ(C,V)}else d5("No cast media video. Ignoring state update.")};
Va.prototype.onCastMediaUpdate_=function(C){if(C)eCU(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
Va.prototype.onCloudviewAvailabilityChange_=function(){var C=qpL();C&&fjM(this,C)};
Va.prototype.warn_=function(C){e1("CP",C)};
var hCs=function(C,F,G){return(0,_.ck)(function(V){this.warn_("Failed to "+F+" with cast v2 channel. Error code: "+V.code);V.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+F+" using MDx browser channel."),PT(this,F,G))},C)};var iq=function(C,F,G,V){V=V===void 0?!1:V;_.Rb.call(this);var J=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$20088_http_=C;this.enableConnectWithInitialState_=V;this.listeners_.push(_.uS(window,"beforeunload",function(){J.JSC$20091_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new Ku;this.currentScreenId_=F.id;this.currentScreenIdType_=F.idType;this.channelService=b3x(this.JSC$20088_http_,G,this.JSC$20091_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){dnd(J)});
this.channelService.listen("channelClosed",function(){YY("Channel closed");isNaN(J.connectTimerId_)?fu(!0):fu();J.dispose()});
this.channelService.listen("channelError",function(b){fu();isNaN(J.getReconnectTimeout_())?(b==1&&J.currentScreenIdType_=="shortLived"&&J.publish("browserChannelAuthError",b),YY("Channel error: "+b+" without reconnection"),J.dispose()):(J.reconnecting_=!0,YY("Channel error: "+b+" with reconnection in "+J.getReconnectTimeout_()+" ms"),xn8(J,2))});
this.channelService.listen("channelMessage",function(b){s__(J,b)});
this.channelService.setLoungeToken(F.token);this.subscribe("remoteQueueChange",function(){var b=J.playerContext_.videoId;obs()&&_.E6("yt-remote-session-video-id",b)})};
_.O(iq,_.Rb);
iq.prototype.connect=function(C,F){if(F){var G=F.listId,V=F.videoId,J=F.videoIds,b=F.playerParams,z=F.clickTrackingParams,Q=F.index,E={videoId:V},t=F.currentTime,k=F.locationInfo;F=F.loopMode;t!==void 0&&(E.currentTime=t<=5?0:t);b&&(E.playerParams=b);k&&(E.locationInfo=k);z&&(E.clickTrackingParams=z);G&&(E.listId=G);J&&J.length>0&&(E.videoIds=J.join(","));Q!==void 0&&(E.currentIndex=Q);this.enableConnectWithInitialState_&&(E.loopMode=F||"LOOP_MODE_OFF");G&&(this.playerContext_.listId=G);this.playerContext_.videoId=
V;this.playerContext_.index=Q||0;this.playerContext_.state=3;xY(this.playerContext_,t);this.autoplayMode_="UNSUPPORTED";G=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";YY("Connecting with "+G+" and params: "+(0,_.MX)(E));this.channelService.connect({method:G,params:(0,_.MX)(E)},C,mhr())}else YY("Connecting without params"),this.channelService.connect({},C,mhr());qCW(this)};
iq.prototype.setLoungeToken=function(C){this.channelService.setLoungeToken(C)};
iq.prototype.dispose=function(){this.isDisposed()||(_.zn("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),xn8(this,3));_.Rb.prototype.dispose.call(this)};
iq.prototype.disposeInternal=function(){Pf_(this);gFr(this);RCU(this);_.Ow(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.Ow(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.Ees(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.Rb.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var YCr=function(C){return _.co(C.connectedDevices_,function(F){return F.type=="LOUNGE_SCREEN"})},YY=function(C){e1("conn",C)},xn8=function(C,F){C.publish("proxyStateChange",F)},qCW=function(C){C.connectTimerId_=_.lH(function(){YY("Connecting timeout");
C.JSC$20091_disconnect_(1)},2E4)},Pf_=function(C){_.Ow(C.connectTimerId_);
C.connectTimerId_=NaN},RCU=function(C){_.Ow(C.reconnectedCheckScreenTimeout_);
C.reconnectedCheckScreenTimeout_=NaN},oFV=function(C){gFr(C);
C.playingSyncTimerId_=_.lH(function(){T4_(C,"getNowPlaying")},2E4)},gFr=function(C){_.Ow(C.playingSyncTimerId_);
C.playingSyncTimerId_=NaN},dnd=function(C){YY("Channel opened");
C.reconnecting_&&(C.reconnecting_=!1,RCU(C),C.reconnectedCheckScreenTimeout_=_.lH(function(){YY("Timing out waiting for a screen.");C.JSC$20091_disconnect_(1)},15E3))},K0W=function(C,F){var G=null;
if(F){var V=YCr(C);V&&(G={clientName:V.clientName,deviceMake:V.brand,deviceModel:V.model,osVersion:V.osVersion})}_.zn("yt.mdx.remote.remoteClient_",G);F&&(Pf_(C),RCU(C));G=C.channelService.isChannelOpened()&&isNaN(C.connectTimerId_);F==G?F&&(xn8(C,1),T4_(C,"getSubtitlesTrack")):F?(C.getOtherConnectedRemoteId_()&&C.playerContext_.reset(),xn8(C,1),T4_(C,"getNowPlaying"),rEd(C)):C.JSC$20091_disconnect_(1)},Dnx=function(C,F){var G=F.params.videoId;
delete F.params.videoId;G==C.playerContext_.videoId&&(_.xf.isEmpty(F.params)?C.playerContext_.trackData=null:C.playerContext_.trackData=F.params,C.publish("remotePlayerChange"))},pXW=function(C,F,G){var V=F.params.videoId||F.params.video_id,J=parseInt(F.params.currentIndex,10);
C.playerContext_.listId=F.params.listId||C.playerContext_.listId;L0l(C.playerContext_,V,J);C.publish("remoteQueueChange",G)},mnM=function(C,F){F.params=F.params||{};
pXW(C,F,"NOW_PLAYING_MAY_CHANGE");C.onStateChange_(F);C.publish("autoplayDismissed")};
iq.prototype.onStateChange_=function(C){var F=parseInt(C.params.currentTime||C.params.current_time,10);xY(this.playerContext_,isNaN(F)?0:F);F=parseInt(C.params.state,10);F=isNaN(F)?-1:F;F==-1&&this.playerContext_.playerState==-1E3&&(F=-1E3);this.playerContext_.playerState=F;F=Number(C.params.loadedTime);this.playerContext_.loadedTime=isNaN(F)?0:F;F=Number(C.params.duration);this.playerContext_.duration_=isNaN(F)?0:F;F=this.playerContext_;var G=Number(C.params.liveIngestionTime);F.liveIngestionTime_=
G;F.isLive_=isNaN(G)?!1:!0;F=this.playerContext_;G=Number(C.params.seekableStartTime);C=Number(C.params.seekableEndTime);F.seekableStart_=isNaN(G)?0:G;F.seekableEnd_=isNaN(C)?0:C;this.playerContext_.playerState==1?oFV(this):gFr(this);this.publish("remotePlayerChange")};
iq.prototype.onAdStateChange_=function(C){if(this.playerContext_.playerState!=-1E3){var F=1085;switch(parseInt(C.params.adState,10)){case 1:F=1081;break;case 2:F=1084;break;case 0:F=1083}this.playerContext_.playerState=F;C=parseInt(C.params.currentTime,10);xY(this.playerContext_,isNaN(C)?0:C);this.publish("remotePlayerChange")}};
var CO8=function(C,F){var G=F.params.muted=="true";C.playerContext_.volume=parseInt(F.params.volume,10);C.playerContext_.muted=G;C.publish("remotePlayerChange")},jSV=function(C,F){C.autoplayVideoId_=F.params.videoId;
C.publish("nowAutoplaying",parseInt(F.params.timeout,10))},FZr=function(C,F){C.autoplayVideoId_=F.params.videoId||null;
C.publish("autoplayUpNext",C.autoplayVideoId_)},Gm8=function(C,F){C.autoplayMode_=F.params.autoplayMode;
C.publish("autoplayModeChange",C.autoplayMode_);C.autoplayMode_=="DISABLED"&&C.publish("autoplayDismissed")},V0U=function(C,F){var G=F.params.hasNext=="true";
C.playerContext_.hasPrevious=F.params.hasPrevious=="true";C.playerContext_.hasNext=G;C.publish("previousNextChange")};
iq.prototype.isCapabilitySupportedOnConnectedDevices_=function(C){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var F=_.u(this.connectedDevices_),G=F.next();!G.done;G=F.next())if(!G.value.capabilities.has(C))return!1;return!0};
var s__=function(C,F){F=F.message;F.params?YY("Received: action="+F.action+", params="+(0,_.MX)(F.params)):YY("Received: action="+F.action+" {}");switch(F.action){case "loungeStatus":F=(0,_.ao)(F.params.devices);C.connectedDevices_=_.ss(F,function(V){return new Sw(V)});
F=!!_.co(C.connectedDevices_,function(V){return V.type=="LOUNGE_SCREEN"});
K0W(C,F);F=C.isCapabilitySupportedOnConnectedDevices_("mlm");C.publish("multiStateLoopEnabled",F);break;case "loungeScreenDisconnected":yvd(C.connectedDevices_,function(V){return V.type=="LOUNGE_SCREEN"});
K0W(C,!1);break;case "remoteConnected":var G=new Sw((0,_.ao)(F.params.device));_.co(C.connectedDevices_,function(V){return V.equals(G)})||_.LWi(C.connectedDevices_,G);
break;case "remoteDisconnected":G=new Sw((0,_.ao)(F.params.device));yvd(C.connectedDevices_,function(V){return V.equals(G)});
break;case "gracefulDisconnect":break;case "playlistModified":pXW(C,F,"QUEUE_MODIFIED");break;case "nowPlaying":mnM(C,F);break;case "onStateChange":C.onStateChange_(F);break;case "onAdStateChange":C.onAdStateChange_(F);break;case "onVolumeChanged":CO8(C,F);break;case "onSubtitlesTrackChanged":Dnx(C,F);break;case "nowAutoplaying":jSV(C,F);break;case "autoplayDismissed":C.publish("autoplayDismissed");break;case "autoplayUpNext":FZr(C,F);break;case "onAutoplayModeChanged":Gm8(C,F);break;case "onHasPreviousNextChanged":V0U(C,
F);break;case "requestAssistedSignIn":C.publish("assistedSignInRequested",F.params.authCode);break;case "onLoopModeChanged":C.publish("loopModeChange",F.params.loopMode);break;default:YY("Unrecognized action: "+F.action)}};
_.n=iq.prototype;_.n.getProxyState_=function(){var C=3;this.isDisposed()||(C=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(C=1):C=2);return C};
_.n.JSC$20091_disconnect_=function(C){YY("Disconnecting with "+C);_.zn("yt.mdx.remote.remoteClient_",null);Pf_(this);this.publish("beforeDisconnect",C);C==1&&fu();this.channelService.disconnect(C);this.dispose()};
_.n.getPlayerContextData_=function(){var C=this.playerContext_;this.clientVideoId_&&(C=this.playerContext_.clone(),L0l(C,this.clientVideoId_,C.index));return B4U(C)};
_.n.setPlayerContextData_=function(C){var F=this,G=new Ku(C);G.videoId&&G.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=G.videoId,_.Ow(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.lH(function(){if(F.clientVideoId_){var J=F.clientVideoId_;F.clientVideoId_=null;F.playerContext_.videoId!=J&&T4_(F,"getNowPlaying")}},5E3));
var V=[];this.playerContext_.listId==G.listId&&this.playerContext_.videoId==G.videoId&&this.playerContext_.index==G.index||V.push("remoteQueueChange");this.playerContext_.playerState==G.playerState&&this.playerContext_.volume==G.volume&&this.playerContext_.muted==G.muted&&SCU(this.playerContext_)==SCU(G)&&(0,_.MX)(this.playerContext_.trackData)==(0,_.MX)(G.trackData)||V.push("remotePlayerChange");this.playerContext_.reset(C);_.F$(V,function(J){this.publish(J)},this)};
_.n.getOtherConnectedRemoteId_=function(){var C=this.channelService.getDeviceId(),F=_.co(this.connectedDevices_,function(G){return G.type=="REMOTE_CONTROL"&&G.id!=C});
return F?F.id:""};
_.n.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.n.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.n.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.n.JSC$20091_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var rEd=function(C){_.Ow(C.idleDisconnectTimerId_);C.idleDisconnectTimerId_=_.lH(function(){C.JSC$20091_disconnect_(1)},864E5)},T4_=function(C,F,G){G?YY("Sending: action="+F+", params="+(0,_.MX)(G)):YY("Sending: action="+F);
C.channelService.sendMessage(F,G)};
iq.prototype.sendMessageWithUserAction_=function(C,F){T4_(this,C,F);rEd(this)};
iq.prototype.JSC$20091_getXsrfToken_=function(){var C=_.BD.get("SAPISID","")||_.BD.get("__Secure-1PAPISID",void 0)||"",F=_.BD.get("__Secure-3PAPISID","")||"";if(!C&&!F)return"";C=_.eU(_.ff(C),2);F=_.eU(_.ff(F),2);return _.eU(_.ff(","+C+","+F),2)};
iq.prototype.subscribe=iq.prototype.subscribe;iq.prototype.unsubscribeByKey=iq.prototype.unsubscribeByKey;iq.prototype.getProxyState=iq.prototype.getProxyState_;iq.prototype.disconnect=iq.prototype.JSC$20091_disconnect_;iq.prototype.getPlayerContextData=iq.prototype.getPlayerContextData_;iq.prototype.setPlayerContextData=iq.prototype.setPlayerContextData_;iq.prototype.getOtherConnectedRemoteId=iq.prototype.getOtherConnectedRemoteId_;iq.prototype.getReconnectTimeout=iq.prototype.getReconnectTimeout_;
iq.prototype.getAutoplayMode=iq.prototype.getAutoplayMode_;iq.prototype.getAutoplayVideoId=iq.prototype.getAutoplayVideoId_;iq.prototype.reconnect=iq.prototype.JSC$20091_reconnect_;iq.prototype.sendMessage=iq.prototype.sendMessageWithUserAction_;iq.prototype.getXsrfToken=iq.prototype.JSC$20091_getXsrfToken_;iq.prototype.isCapabilitySupportedOnConnectedDevices=iq.prototype.isCapabilitySupportedOnConnectedDevices_;var bV3=function(C){sO.call(this,"ScreenServiceProxy");this.instance_=C;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.ck)(this.JSC$20094_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.ck)(this.onOnlineScreenChange_,this)))};
_.O(bV3,sO);_.n=bV3.prototype;_.n.getScreens=function(C){return this.instance_.$_gs(C)};
_.n.contains=function(C){return!!this.instance_.$_c(C)};
_.n.get=function(C){return this.instance_.$_g(C)};
_.n.start=function(){this.instance_.$_st()};
_.n.add=function(C,F,G){this.instance_.$_a(C,F,G)};
_.n.remove=function(C,F,G){this.instance_.$_r(C,F,G)};
_.n.updateName=function(C,F,G,V){this.instance_.$_un(C,F,G,V)};
_.n.disposeInternal=function(){for(var C=this.subscriptionKeys_.length,F=0;F<C;++F)this.instance_.$_ubk(this.subscriptionKeys_[F]);this.subscriptionKeys_.length=0;this.instance_=null;sO.prototype.disposeInternal.call(this)};
_.n.JSC$20094_onScreenChange_=function(){this.publish("screenChange")};
_.n.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
g5.prototype.$_st=g5.prototype.start;g5.prototype.$_gspc=g5.prototype.JSC$20053_getScreenByPairingCode;g5.prototype.$_gsppc=g5.prototype.JSC$20053_getScreenByPollingPairingCode;g5.prototype.$_c=g5.prototype.contains;g5.prototype.$_g=g5.prototype.get;g5.prototype.$_a=g5.prototype.add;g5.prototype.$_un=g5.prototype.updateName;g5.prototype.$_r=g5.prototype.remove;g5.prototype.$_gs=g5.prototype.getScreens;g5.prototype.$_gos=g5.prototype.JSC$20053_getOnlineScreens;g5.prototype.$_s=g5.prototype.subscribe;
g5.prototype.$_ubk=g5.prototype.unsubscribeByKey;var F4h=null,uDs=!1,Dk=null,pu=null,$bV=null,Fj=[];var i6M=new _.rT("yt-menu"),JpU=function(){},b6V=function(C,F,G){C=F=="right-click"?G.rightClickMenuPopupHint:G.menuPopupHint;
if(!($At(F)>10))return F=F||"default",i6M.set(F+"-impression",$At(F)+1),C},$At=function(C){return parseInt(i6M.get((C||"default")+"-impression")||0,10)};
_.Ps(JpU);var njr=function(){this.contexts_=new WeakMap;this.JSC$20100_networkService_=this.activeContext_=null},ubl=function(C,F,G){var V=C.contexts_.get(F);
V||(V=new Epx(C.JSC$20100_networkService_),C.contexts_.set(F,V));C.activeContext_=V;G&&C.activeContext_.reset();C.activeContext_.start();return C.activeContext_};var Ty=function(){};
Ty.prototype.enqueue=function(){var C=this,F;return _.I(function(G){if(C.isCounterfactual())return(F=C.getCounterfactualData())&&C.shouldLogCounterfactualImpression()&&C.sendImpressionEndpoints(F),G.return();C.doEnqueue();_.S9(G)})};
Ty.prototype.sendImpressionEndpoints=function(C){_.FV.getInstance().triggerOptionalAction("yt-service-request",{},C[0])};var oJ=function(C,F){this.renderer=C;this.page=F};
_.O(oJ,Ty);oJ.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
oJ.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
oJ.prototype.shouldLogCounterfactualImpression=function(){return!0};
oJ.prototype.doEnqueue=function(){var C=_.PB(this.page);C&&C.pause();this.renderer.impressionCommand&&_.FV.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.AB(_.FV.getInstance(),[this.renderer.promoCommand],this.page)};var zjr=function(C,F){this.renderer=C;this.resolver=_.hM();this.JSC$20112_enforcementCounter=new _.jau;F?this.JSC$20112_playerManager=_.PB(F):this.JSC$20112_playerManager=null;_.Gt(1,!0)};
_.O(zjr,Ty);_.n=zjr.prototype;_.n.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var C=[];this.renderer.impressionEndpoints.forEach(function(F){(F=_.ZD(F))&&C.push(F)});
return C}};
_.n.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.n.shouldLogCounterfactualImpression=function(){var C=_.wU5();C?(this.JSC$20112_enforcementCounter.increment("POPUP"),_.Gt(3)):_.Gt(2);return C};
_.n.cancel=function(){this.resolver.promise.cancel()};
_.n.doEnqueue=function(){var C=this;_.wU5()?(this.JSC$20112_enforcementCounter.increment("POPUP"),_.Gt(3),QSs(this)):this.JSC$20112_playerManager?(this.resolver.promise.then(function(){QSs(C)}),IJU(this.resolver,this.JSC$20112_playerManager)):_.Gt(2)};
var IJU=function(C,F){var G=_.hM();F.getPlayerPromise().then(function(V){G.resolve(V)});
G.promise.then(function(V){V.addEventListener("onAbnormalityDetected",C.resolve);_.OW(C.promise,function(){V.removeEventListener("onAbnormalityDetected",C.resolve)})});
C.promise.thenCatch(function(){G.promise.cancel()})},QSs=function(C){_.Gt(3);
var F={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:C.renderer}};F=_.FV.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:F},{});Promise.all(F).then(function(){EjV();C.JSC$20112_playerManager&&C.JSC$20112_playerManager.pause()})},EjV=function(){GSr(function(C,F){_.rRl(C,F);
C===0?_.Gt(7):_.Gt(4)})};var WZx=function(C,F){this.renderer=C;this.page=F;this.resolver=_.hM()};
_.O(WZx,Ty);_.n=WZx.prototype;_.n.cancel=function(){this.resolver.promise.cancel()};
_.n.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.n.isCounterfactual=function(){return!this.renderer.isVisible};
_.n.shouldLogCounterfactualImpression=function(){return!0};
_.n.doEnqueue=function(){var C=this;this.resolver.promise.then(function(){var G={popup:{mealbarPromoRenderer:C.renderer},popupType:"MEALBAR"};_.FV.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:G},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var F=_.PB(this.page);F&&t0d(this.resolver,F)}break;default:this.resolver.resolve()}};
var t0d=function(C,F){var G=_.hM();F.getPlayerPromise().then(function(V){G.resolve(V)});
G.promise.then(function(V){V.addEventListener("onAdEnd",C.resolve);_.OW(C.promise,function(){V.removeEventListener("onAdEnd",C.resolve)})});
C.promise.thenCatch(function(){G.promise.cancel()})};var aJr=function(C,F){this.renderer=C;this.page=F};
_.O(aJr,Ty);_.n=aJr.prototype;_.n.cancel=function(){this.JSC$20120_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20120_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20120_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.n.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.n.isCounterfactual=function(){return!this.renderer.isVisible};
_.n.shouldLogCounterfactualImpression=function(){return!0};
_.n.doEnqueue=function(){var C=this,F,G;((F=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(G=F.playbackUpsellDialogTriggerConditionData)==null?void 0:G.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$20120_downloadedVideosCountSelectorUnsubscriber=_.hK(_.s3(),jPL,function(V,J){V>J&&(km8(C),C.cancel())}):km8(this)};
var km8=function(C){var F={popup:{upsellDialogRenderer:C.renderer},popupType:"MODAL"};_.FV.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:F},{});(C=_.PB(C.page))&&C.pause()};var rs={},UAM=(rs.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",rs.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",rs.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",rs.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",rs.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",rs.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",rs.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",rs),H6t=function(C,F){this.renderer=C;this.targetManager=
F};
_.O(H6t,Ty);_.n=H6t.prototype;_.n.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$20127_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20127_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20127_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.n.getCounterfactualData=function(){if(this.isCounterfactual()){var C;return(C=this.renderer.promoConfig)==null?void 0:C.impressionEndpoints}};
_.n.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.n.shouldLogCounterfactualImpression=function(){return!0};
_.n.doEnqueue=function(){var C=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$20127_downloadedVideosCountSelectorUnsubscriber=_.hK(_.s3(),jPL,function(F,G){C.renderer.targetId&&F>G&&(s5U(C.targetManager,C.renderer.targetId,lJ_(C)),C.cancel())});
break;default:s5U(this.targetManager,this.renderer.targetId,lJ_(this))}};
var lJ_=function(C){var F;if((F=C.renderer.suggestedPosition)==null?0:F.type)var G=UAM[C.renderer.suggestedPosition.type];G||(G="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:C.renderer},popupType:"HINT",position:G}}};var yph=function(){this.previousPage=null},Z68;
yph.prototype.registerPromoCommand=function(C,F){Nbh(this,void 0,void 0,_.Z(C.roadblock,jhx),void 0,void 0,F)};
var Nbh=function(C,F,G,V,J,b,z){C.previousPage!==z&&C.pendingTooltipPromo&&C.pendingTooltipPromo.cancel();C.previousPage=z;J?(C.pendingEnforcementPromo&&C.pendingEnforcementPromo.cancel(),C.pendingEnforcementPromo=new zjr(J,z),C.pendingEnforcementPromo.enqueue()):b?(C.pendingCommandWrapperPromo=new oJ(b,z),C.pendingCommandWrapperPromo.enqueue()):V?(C.pendingRoadblockPromo&&C.pendingRoadblockPromo.cancel(),C.pendingRoadblockPromo=new aJr(V,z),C.pendingRoadblockPromo.enqueue()):F?(C.pendingMealbarPromo&&
C.pendingMealbarPromo.cancel(),C.pendingMealbarPromo=new WZx(F,z),C.pendingMealbarPromo.enqueue()):G&&(C.pendingTooltipPromo&&C.pendingTooltipPromo.cancel(),C.pendingTooltipPromo=new H6t(G,_.w6()),C.pendingTooltipPromo.enqueue())},O6s=function(){Z68||(Z68=new yph);
return Z68};var ECs=!1;var gkx=function(C,F){var G=_.TF("SESSION_INDEX");this.actionToken_=C;this.commonToken_=F;this.sessionIndex_=G},PGs=function(C){var F=_.hM(),G=_.mN("payments.business.integration.bootstrap"),V=_.mN("payments.business.integration"),J=V.Style.create().withMaterialDesignStyle(),b=V.mashupMode.popup("instrument-manager");
G.asMashupMode(b).usingUserIndex(C.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(J).inStandaloneContext(V.standaloneContextAuthId.forUserId()).instrumentManager(C.actionToken_,C.commonToken_.length>0?C.commonToken_:void 0,function(z){var Q=z.instrumentId;Q?F.resolve(Q):(Q=_.mN("payments.business.integration.scenario.InstrumentManager"),F.reject(z.errorCode&&z.errorCode===Q.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(z){_.ri(z);
F.reject("instrumentManagerLoadError")});
return F.promise};var ns=function(C,F,G){this.payloadName="transactionFlowFailed";this.payload={errorType:C,serializedTransactionFlowLoggingParams:F,isUserDismiss:G===void 0?!1:G}};
_.zn("yt.ypc.shared.YpcTransactionFlowError",ns);var KU=function(){return _.n5.apply(this,arguments)||this};
_.O(KU,_.n5);KU.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
KU.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
KU.prototype.onErrorMessageDismiss=KU.prototype.onErrorMessageDismiss;_.R([_.L({readOnly:!0,observer:"errorRendererChanged"}),_.Y("design:type",Object)],KU.prototype,"errorRenderer",void 0);_.R([_.VG("yt-live-chat-error-message-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],KU.prototype,"onErrorMessageDismiss",null);_.R([_.uP()],KU);var Xq_=[KU.prototype];var wqs;var M0r;var SUL=new _.rT("yt-live-chat"),LZh=new Map;LZh.set("timestamp_toggle","show-timestamps");LZh.set("reactions_toggle","allow-reactions");var DK=function(){return _.B.apply(this,arguments)||this};
_.O(DK,_.B);_.n=DK.prototype;_.n.menuItemIdentifierChanged=function(){var C;(C=this.data)!=null&&C.menuItemIdentifier&&(C=LZh.get(this.data.menuItemIdentifier))&&(_.y("enable_lwe_web_mute")?(C=SUL.get(C),this.isToggled=!(C===void 0?!this.data.isToggled:!C)):this.isToggled=SUL.get(C))};
_.n.onFocus=function(){this.toggleButton.focus()};
_.n.onTap=function(){var C=this.data.command;C&&this.componentBehavior.resolveCommand(C)};
_.n.computeText=function(C,F,G){return this.componentBehavior.getSimpleString(C?G:F)};
_.n.computeIcon=function(C,F,G){return(C=C?G:F)&&C.iconType?_.p5(C.iconType):""};
DK.prototype.onTap=DK.prototype.onTap;DK.prototype.onFocus=DK.prototype.onFocus;DK.prototype.menuItemIdentifierChanged=DK.prototype.menuItemIdentifierChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],DK.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],DK.prototype,"componentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],DK.prototype,"data",void 0);
_.R([_.L({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.Y("design:type",String)],DK.prototype,"icon",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],DK.prototype,"isToggled",void 0);_.R([_.$z("tp-yt-paper-toggle-button"),_.Y("design:type",Object)],DK.prototype,"toggleButton",void 0);_.R([_.iP("data.menuItemIdentifier"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DK.prototype,"menuItemIdentifierChanged",null);
_.R([_.VG("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DK.prototype,"onFocus",null);_.R([_.VG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DK.prototype,"onTap",null);_.R([_.Z5({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],DK);
_.q(DK,"yt-live-chat-toggle-renderer",function(){if(M0r===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;wqs===void 0&&(wqs=document.createElement("template"));var V=wqs;G.call(F,V.content.cloneNode(!0),C.content.firstChild);M0r=C}C=M0r;return C},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var BbM=new _.jh("NAVIGATION_PROGRESS_TOKEN");var vjr={},fJU={},hjt=(fJU[P7r.name]=!0,fJU),pU=function(){var C=_.n5.apply(this,arguments)||this;C._noAccessors=!0;C.tabGesturesIsActive=!1;C.actionRouterIsRoot=!0;C.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"};C.pageTitle="";C.titleSuffix="YouTube";C.unseenNotificationCount=
0;C.hasNavigated=!1;C.hasSetScrollTopForNavigation=!1;C.pagePreparer=null;C.zwiebackInitJobId=0;C.dataUpdatePromise=null;C.loadDepsPromise=_.mE();C.hasPendingNavigation=!1;C.pendingPlayerOnResponseReceivedActions=[];return C};
_.O(pU,_.n5);pU.prototype.attached=function(){cpt(this);document.addEventListener("yt-navigate-cache",_.Gp(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var C=mf();C.init();C.dispatchElement=this.hostElement};
var cpt=function(C,F){F=F===void 0?0:F;var G=_.I8().resolve(_.Qt(_.Xx));if(G)Ap8(C,G);else{if(F>=5)throw Error("sl");setTimeout(function(){cpt(C,F+1)},0)}},Ap8=function(C,F){F.addEventListener("yt-navigate-start",_.Gp(C,C.onYtNavigateStart));
F.addEventListener("yt-navigate-finish",_.Gp(C,C.onYtNavigateFinish));F.addEventListener("yt-navigate-error",_.Gp(C,C.onYtNavigateError));F.addEventListener("yt-page-data-fetched",_.Gp(C,C.onYtPageDataFetched))};
_.n=pU.prototype;_.n.detached=function(){var C=_.I8().resolve(_.Xx);C.removeEventListener("yt-navigate-start",_.Gp(this,this.onYtNavigateStart));C.removeEventListener("yt-navigate-finish",_.Gp(this,this.onYtNavigateFinish));C.removeEventListener("yt-navigate-error",_.Gp(this,this.onYtNavigateError));C.removeEventListener("yt-page-data-fetched",_.Gp(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.Gp(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.n.setPageOffset=function(C,F){C?_.rz(this.hostElement,"yt-set-page-offset",[C,F]):_.gD(Error("tl"))};
_.n.setPageOffsetForNavigation=function(C,F){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(C,F))};
_.n.onYtNavigateSetPageOffset=function(C,F){this.setPageOffsetForNavigation(F.page,F.offset)};
_.n.getPageOffset=function(){var C=_.ot(this.hostElement).querySelector("#page-manager").getCurrentPage(),F=0;C&&(F=_.rz(this.hostElement,"yt-get-page-offset",[C])[0]);return F};
_.n.onYtHistoryPop=function(C,F){if(_.oD("DISABLE_WARM_LOADS"))C.preventDefault(),window.location.reload();else{var G=_.I8().resolve(_.Xx);G.hasPendingNavigation()&&C.preventDefault();G.cancelPendingNavigation();_.KX(this.hostElement,"yt-pending-navigation-cancelled");F.errorMsg&&(C=F.errorMsg.split(" - "),F=Error(C[0]),C.length==2&&C[1]&&(_.Tf(F,C[1]),_.Yw(F)),window.location.reload())}};
_.n.onYtHistoryLoad=function(C,F){var G=this;if(_.oD("DISABLE_WARM_LOADS"))window.location.reload();else{(C=F.endpoint)&&Object.keys(C).length||(C=null);var V=F.historyEntry,J=_.I8().resolve(_.Xx),b=_.I8().resolve(_.qG),z=null;V&&V.rootData&&(z=V.rootData);var Q=z&&ejr(z);!z||Q||z.filler?C?(J.navigate(C,!0),dAM(this,C)):(F.legacyBorder||Q||(F.JSC$30427_savedComponentState==null&&z==null?_.Yw(new _.Ay("Incomplete history entry",F.forward)):_.R1(new _.Ay("Malformed history entry",F.JSC$30427_savedComponentState,
F.forward,z))),window.location.reload()):(_.Tfw({isHot:!0}),_.UZ({webInfo:{navigationReason:"h"}}),_.k0T(),_.NV("srt"),_.NV("pdc"),this.cancelPendingTasks(),xAl(this,F.forward,z),z.player&&(z.player.loaded=!1),dAM(this,C),_.aPO(J,C||{},z,2,{},!1,F).then(function(){G.setPageOffset(b.getCurrentPage(),V.scrollTop||0)}))}};
_.n.initHistoryManager=function(C){if(!this.hasNavigated){this.hasNavigated=!0;var F=_.ot(this.hostElement).querySelector("#page-manager").getCurrentData();C=isNaN(C)?this.getPageOffset():C;var G=_.I8().resolve(_.Xx).currentEndpoint;this.replaceState(G,F,C)}};
_.n.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.n.onYtNavigateStart=function(C,F){this.cancelPendingTasks();F.noProgressBar||(C=_.I8().resolve(_.Qt(BbM)))&&C.start();C=this.hasPendingNavigation?null:this.data;var G=_.I8().resolve(_.qG),V,J,b;_.y("kevlar_use_vimio_behavior")&&!((V=F.endpoint)==null?0:(J=V.commandMetadata)==null?0:(b=J.webCommandMetadata)==null?0:b.ignoreNavigation)&&(V=G.getCurrentPage())&&V.disconnectVisibilityRoot();G.prepareForNavigation(F.pageType,F.endpoint);_.y("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.$a(1,
"pcl"),_.bc(this.pagePreparer,G.preparePage.bind(G,F.pageType,F.endpoint)));V=this.getPageOffset();this.initHistoryManager(V);F.reload||this.hasPendingNavigation?((_.y("web_enable_delay_shorts_sequence_call")||_.y("web_enable_shorts_sequence_cache_fix"))&&F.pageType==="shorts"&&F.reload&&_.oo(this.hostElement,"yt-shorts-reset"),this.replaceState(F.endpoint,C,V)):(C==null?void 0:C.page)==="watch"&&F.pageType==="watch"&&_.y("kevlar_replace_watch_to_watch_history_state")?this.replaceState(F.endpoint,
C,V):(C==null?void 0:C.page)!=="shorts"||F.pageType!=="shorts"||F.endpoint.reelWatchEndpoint.sequenceParams||_.y("short_to_short_back_nav_killswitch")?F.type!="navigate-back"&&F.type!="navigate-forward"&&(F.pageType==="shorts"&&_.oo(this.hostElement,"yt-shorts-reset"),this.saveAndPush(F.url,F.endpoint,C,V)):(_.y("web_enable_delay_shorts_sequence_call")&&(F.endpoint.reelWatchEndpoint.sequenceParams=C==null?void 0:C.cachedSequenceParams,F.endpoint.reelWatchEndpoint.sequenceProvider=C==null?void 0:C.cachedSequenceProvider),
this.replaceState(F.endpoint,C,0));this.hasPendingNavigation=!0};
var sSr=function(C){C.hasPendingNavigation=!1;(C=_.I8().resolve(_.Qt(BbM)))&&C.finish()};
pU.prototype.onYtNavigateError=function(C,F){sSr(this);C=this.get("endpoint.commandMetadata.webCommandMetadata.url",F);var G=_.Vt(window.location.href);C&&!G.pbjreload&&(F=F.navigationErrorReason||"10",_.y("kevlar_parent_on_pbjreload")&&(G={csn:_.ZQ()},this.get("data.endpoint.clickTrackingParams")&&(G.itct=this.data.endpoint.clickTrackingParams),_.qU(C,G)),_.Xp(_.iH(C,{pbjreload:F})))};
pU.prototype.onYtNavigateCache=function(C,F){var G=this,V=F.url,J=F.endpoint,b=F.data;C=!!F.miniplayer;F=!!F.skipHistory;if(V&&J&&b){var z=this.getPageOffset(),Q=this.data||null;F||this.saveAndPush(V,J,Q,z);V=_.aPO(_.I8().resolve(_.Xx),J,b,C?4:3,{},C);C&&V.then(function(){G.dataUpdatePromise&&G.dataUpdatePromise.then(function(){var E=_.I8().resolve(_.qG);G.setPageOffset(E.getCurrentPage(),0)})})}};
pU.prototype.onYtNavigateFinish=function(C,F){var G=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){qUs(G,F.fromHistory)})};
var qUs=function(C,F){sSr(C);if(C.pendingPlayerOnResponseReceivedActions){for(var G=_.u(C.pendingPlayerOnResponseReceivedActions),V=G.next();!V.done;V=G.next())_.jR(V.value,C.hostElement);C.pendingPlayerOnResponseReceivedActions=[]}G=_.I8().resolve(_.qG);F||!C.hasNavigated||_.y("web_disable_scroll_on_navigate_finish")||((F=G.getCurrentPage())?F.is==="ytd-shorts"||C.tabGesturesIsActive||C.setPageOffsetForNavigation(F,0):_.Yw(Error("ul")));_.L5(function(){_.L5(function(){_.NV("pda")})})};
pU.prototype.onYtNavigate=function(C){if(!C.detail.endpoint){var F=new _.Ay("Error: Missing yt-navigate endpoint from target:",C.target,C.target.nodeName);_.gD(F)}if(F=_.y("cold_missing_history"))F=mf(),F.init(!1),F=!(F.browserHistory.boundHistoryReplaceState&&F.browserHistory.boundHistoryPushState);if(F){_.Yn("DISABLE_WARM_LOADS",!0);F=new _.Ay("Failed to initialize history manager",this.getDebugString());var G=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
G?_.Yw(F):_.gD(F)}F=C.detail.endpoint;var V,J;_.y("debug_forward_web_query_parameters")&&((V=F.commandMetadata)==null?0:(J=V.webCommandMetadata)==null?0:J.url)&&(F=JSON.parse(JSON.stringify(F)),F.commandMetadata.webCommandMetadata.url=_.EBw(F.commandMetadata.webCommandMetadata.url,window.location.search));C={type:0,command:F,form:{params:C.detail.params,tempData:C.detail.tempData||{},requestType:C.detail.type,createScreenConfig:C.detail.createScreenConfig,reload:C.detail.reload?C.detail.reload:!1,
requestForm:C.detail}};_.y("kevlar_yt_navigate_command_handler")?(V=_.I8().resolve(_.WD),C.form.skipDefaultElement=!0,V.resolveCommand(F,{form:C.form})):this.handleNavigate(C)};
pU.prototype.handleNavigate=function(C){this.hasSetScrollTopForNavigation=!1;var F=_.I8().resolve(_.Xx),G=C.form||{};F.navigate(C.command,G.reload,G.params,G.tempData,G.requestType,G.createScreenConfig,G.ignoreConfirmation,G.requestForm)&&dAM(this,C.command,G.tempData)};
pU.prototype.onYtPageDataFetched=function(C,F){try{_.Jx7().reset();this.data=F.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.I8().resolve(_.qG).updatePageData(this.data);var G=this.get("playerResponse.onResponseReceivedActions",this.data);G&&(G=POt(this,G));G&&_.pX(this.hostElement,G,this.hostElement);var V=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),J=this.get("response.responseContext.consistencyTokenJar",this.data);if(V||J){var b=_.IZE(),z=(0,_.xf.getValues)(b.tokenJars);V&&b.replace(z,V);J&&b.replace(z,J)}}catch(Q){_.gD(Q)}};
var dAM=function(C,F,G){try{C.onYtEndpointChangeHandler(F,G)}catch(V){_.gD(V)}};
_.n=pU.prototype;_.n.onYtEndpointChangeHandler=function(){};
_.n.setPageTitle=function(C){C=(this.pageTitle=C)?C+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+C};
_.n.onYtUpdateTitle=function(C,F){this.setPageTitle(F)};
_.n.setUnseenNotificationCount=function(C){this.unseenNotificationCount=C;this.setPageTitle(this.pageTitle)};
_.n.handleUpdateNotificationsUnseenCountAction=function(C){_.Z(C,NP_)&&((C=_.Z(C,NP_).unseenCount)?this.setUnseenNotificationCount(C):this.setUnseenNotificationCount(0))};
_.n.handleClearCookieAction=function(C){var F;(C=(F=_.Z(C,Hpl))==null?void 0:F.cookieName)&&_.f8w(C)};
_.n.onYtUpdateUnseenNotificationCount=function(C,F){this.setUnseenNotificationCount(F)};
_.n.loadData=function(C){var F=this;this.loadDepsPromise.then(function(){var G=_.I8().resolve(_.Qt(_.Xx));G||_.gD(Error("vl"));if(C&&C.response){if(!C.endpoint){var V=_.v9(window.document.location.href)||"/",J="";if(V==="/"||V.startsWith("/?"))J="WEB_PAGE_TYPE_BROWSE";C.endpoint={commandMetadata:{webCommandMetadata:{url:V,webPageType:J,rootVe:3854}}}}_.aPO(G,C.endpoint,C,5,{})}else C.endpoint?G.navigate(C.endpoint):G.navigate(_.fQ);_.gT.cancelJob(F.zwiebackInitJobId);F.zwiebackInitJobId=_.gT.addLowPriorityJob(W4U)})};
var mf=function(){return _.I8().resolve(_.Xi)};
pU.prototype.getDebugString=function(){return mf().getDebugString()};
pU.prototype.getThirdPartyManipulationSuspected=function(){return mf().getThirdPartyManipulationSuspected()};
pU.prototype.replaceState=function(C,F,G){mf().saveAndReplace(C,F,G)};
pU.prototype.saveAndPush=function(C,F,G,V){mf().saveAndPush(C,F,G,V)};
var ejr=function(C){return _.Z(C.endpoint,_.eT)||_.Z(C.endpoint,_.nd)?!0:!C||isNaN(C.expirationTime)?!1:(0,_.Et)()>C.expirationTime},xAl=function(C,F,G){var V=C.get("response.trackingParams",G),J=_.lm(),b=_.ZQ();
if(V&&J&&b&&(V=C.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",G),!V&&G.rootVe&&(V=G.rootVe),J=F?"forwardButton":"backButton",F=C.get("playerResponse.topbar.desktopTopbarRenderer."+J+".buttonRenderer.command.clickTrackingParams",C.data),C=C.get("response.topbar.desktopTopbarRenderer."+J+".buttonRenderer.command.clickTrackingParams",C.data),F=(C=F||C)?_.zS(C):void 0,C=_.ia(),J=[_.mE(G)],_.NJ(C,V,F,{dataPromises:J,csnToClone:G.csn}),G.graftedVes))for(G=
_.u(G.graftedVes),V=G.next();!V.done;V=G.next())_.Of(C,V.value)};
pU.prototype.onStoreGraftedVeAction=function(C){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(C)):_.Yw(Error("wl"))};
var POt=function(C,F){return F.filter(function(G){for(var V in G)if(hjt[V])return C.pendingPlayerOnResponseReceivedActions.push(G),!0;return!1})};
_.I6.Object.defineProperties(pU.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
pU.prototype.onStoreGraftedVeAction=pU.prototype.onStoreGraftedVeAction;pU.prototype.loadData=pU.prototype.loadData;pU.prototype.onYtUpdateUnseenNotificationCount=pU.prototype.onYtUpdateUnseenNotificationCount;pU.prototype.handleClearCookieAction=pU.prototype.handleClearCookieAction;pU.prototype.handleUpdateNotificationsUnseenCountAction=pU.prototype.handleUpdateNotificationsUnseenCountAction;pU.prototype.setUnseenNotificationCount=pU.prototype.setUnseenNotificationCount;
pU.prototype.onYtUpdateTitle=pU.prototype.onYtUpdateTitle;pU.prototype.setPageTitle=pU.prototype.setPageTitle;pU.prototype.onYtEndpointChangeHandler=pU.prototype.onYtEndpointChangeHandler;pU.prototype.onYtPageDataFetched=pU.prototype.onYtPageDataFetched;pU.prototype.handleNavigate=pU.prototype.handleNavigate;pU.prototype.onYtNavigate=pU.prototype.onYtNavigate;pU.prototype.onYtNavigateFinish=pU.prototype.onYtNavigateFinish;pU.prototype.onYtNavigateCache=pU.prototype.onYtNavigateCache;
pU.prototype.onYtNavigateError=pU.prototype.onYtNavigateError;pU.prototype.onYtNavigateStart=pU.prototype.onYtNavigateStart;pU.prototype.cancelPendingTasks=pU.prototype.cancelPendingTasks;pU.prototype.initHistoryManager=pU.prototype.initHistoryManager;pU.prototype.onYtHistoryLoad=pU.prototype.onYtHistoryLoad;pU.prototype.onYtHistoryPop=pU.prototype.onYtHistoryPop;pU.prototype.onYtNavigateSetPageOffset=pU.prototype.onYtNavigateSetPageOffset;pU.prototype.setPageOffset=pU.prototype.setPageOffset;
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],pU.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],pU.prototype,"data",void 0);_.R([_.VG("yt-navigate-set-page-offset"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],pU.prototype,"onYtNavigateSetPageOffset",null);
_.R([_.VG("yt-history-pop"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],pU.prototype,"onYtHistoryPop",null);_.R([_.VG("yt-history-load"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,_.fkm]),_.Y("design:returntype")],pU.prototype,"onYtHistoryLoad",null);_.R([_.VG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],pU.prototype,"onYtNavigate",null);
_.R([_.VG("yt-update-title"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,String]),_.Y("design:returntype")],pU.prototype,"onYtUpdateTitle",null);_.R([_.VG("yt-update-unseen-notification-count"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,Number]),_.Y("design:returntype")],pU.prototype,"onYtUpdateUnseenNotificationCount",null);_.R([_.uP()],pU);vjr.YtdAppBehavior=[_.Z7.YtActionHandlerBehavior,pU.prototype];var Co=function(){var C=_.n5.apply(this,arguments)||this;C._noAccessors=!0;return C};
_.O(Co,_.n5);Co.prototype.ready=function(){var C=this;_.ot(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){C.onChange_()})};
Co.prototype.dataChanged_=function(){_.ot(this.hostElement).querySelector("#checkbox").checked=!1};
Co.prototype.onChange_=function(){var C=_.ot(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.oo(this.hostElement,"yt-dismissal-reason-"+C,this.data.feedbackToken)};
Co.prototype.dataChanged_=Co.prototype.dataChanged_;_.R([_.L(),_.Y("design:type",Object)],Co.prototype,"data",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Co.prototype,"dataChanged_",null);_.R([_.uP()],Co);var gjr=[Co.prototype];var jY=function(){var C=_.n5.apply(this,arguments)||this;C.timeoutJobId=0;C.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return C};
_.O(jY,_.n5);jY.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
jY.prototype.startTimeout=function(){var C=this,F=this.data&&this.data.displayDurationSeconds;F&&!this.timeoutJobId&&(this.timeoutJobId=_.c8(_.gT,function(){_.rz(C.hostElement,"yt-close-popup-action",[C.is]);C.timeoutJobId=0},F*1E3))};
jY.prototype.cancelTimeout=function(){_.gT.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
jY.prototype.ytdHatsSurveyBehaviorDataChanged=jY.prototype.ytdHatsSurveyBehaviorDataChanged;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],jY.prototype,"ytActionHandlerBehavior",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jY.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.R([_.uP()],jY);var RjU=[_.Z7.YtActionHandlerBehavior,jY.prototype];var YU8=function(C,F){var G;return((G=C.prefixMapping)==null?0:G[F])?C.prefixMapping[F]:C.SHARED_RENDERERS_.hasOwnProperty(F)?"yt":C.prefix},Fy={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}};Fy.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.y("kevlar_mealbar_above_player"),modern:_.y("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"}};
Fy.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};Fy.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};Fy.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
Fy.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)"}};
Fy.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};
Fy.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};
Fy.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};
Fy.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0},positionalProperties:{OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",verticalAlign:"middle"}},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};
Fy.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"}};Fy.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};Fy.TOAST={component:null,properties:{}};var Tb3=new function(C,F,G){this.supportedPopups=C;this.navigationEndpointPopupMap=F;this.popupTypeMap=G;this.supportedPopups=C;this.navigationEndpointPopupMap=F;this.popupTypeMap=G}({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:_.y("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"}),ojr=new function(){this.prefix="ytd";this.prefixMapping=void 0;this.SHARED_RENDERERS_=
{aboutThisAdRenderer:!0,bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,
ypcUpgradeDialogRenderer:!0,loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$20178_popupConfig=Fy;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 rpt=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.gK.getInstance()},GM=function(C,F){var G=C.pageNameToElement.get(F);
if(!G){switch(F){case "watch":var V=_.y("web_watch_force_learning_journey_for_testing")?_.JS("ytd-watch-learning-journey"):_.y("kevlar_watch_fixie")?_.JS("ytd-watch-fixie"):_.y("kevlar_watch_grid")?_.JS("ytd-watch-grid"):_.JS("ytd-watch-flexy");break;case "learning_journey_watch":V=_.JS("ytd-watch-learning-journey");break;case "shorts":V=_.JS("ytd-shorts");break;case "search":V=_.JS("ytd-search");break;case "channel":V=_.JS("ytd-browse");V.pageSubtype="channels";break;case "trending":V=_.JS("ytd-browse");
V.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "companion-canvas":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":V=
_.JS("ytd-browse");V.pageSubtype=F;break;case "browse":V=_.JS("ytd-browse");break;default:_.Yw(new _.Ay("Error getting page element for type",F))}G=V;C.pageNameToElement.set(F,G)}return G};
rpt.prototype.preparePage=function(C,F,G){G&&(C=_.Vk(G)||C);if(C!=="watch"&&C!=="learning_journey_watch"){var V=this.elementPoolPopulator,J=C;J!=V.targetPage_&&V.pendingPages_.indexOf(J)>-1&&(V.targetPage_&&(V.pendingPages_.unshift(V.targetPage_),V.abort()),g8U(V,J),_.hzr(V,J))}if((V=GM(this,C))||!_.Z(G,_.jW)){V.isAttached||V===F||(V.hidden=!0);if(!V.data&&(C!=="watch"&&C!=="learning_journey_watch"||!_.y("swatcheroo_page_pool_dont_provide_filler_data"))){var b;if(C=(b=_.TF("FILLER_DATA",{})[C])==
null?void 0:b.response)V.data=C}return V}};var KZr=function(C){this.JSC$32394_clientRoot=C;this.playlistHandlerActionMap={"yt-add-to-playlist-command":Np8,"yt-end-playlist-command":OVs,"yt-recover-playlist-command":wsl,"yt-refresh-playlist-command":L4V,"yt-playlist-remove-videos-action":MuL};_.GA(_.FV.getInstance(),this.playlistHandlerActionMap,this.JSC$32394_clientRoot);Cxx()},DAr;var Vd=function(C,F,G){this.apiKey=C;this.endpoint=F;this.confidenceThreshold=G===void 0?.5:G;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=F==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||F==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
F==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||F==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new Qkh};
_.n=Vd.prototype;
_.n.start=function(C){if(this.state===0)if(this.isOnline()){C.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=C.supportsHttpHeadersOverwriteParam);C.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=C.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.Z8("voice_assistant");_.OZ("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=C.languageCode||"en-US";this.supportsCrossDomainXhr=C.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=C.youtubeAssistantRequest||null;this.listeningHandler=C.listeningHandler||this.listeningHandler;this.audioDetectedHandler=C.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=C.stopHandler||this.stopHandler;this.completeHandler=C.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=C.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=C.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
C.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=C.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=C.accessToken;this.additionalHeaders=C.additionalHeaders||{};var F;this.prefetchResponseTimeoutMs=(F=C.prefetchResponseTimeoutMs)!=null?F:this.prefetchResponseTimeoutMs;pqt(this);this.startAudio();mAd(this)}else this.errorHandler("OFFLINE")};
_.n.stop=function(C){var F=C===void 0?{}:C;C=F.logCancel===void 0?!0:F.logCancel;var G=F.logMicClosed===void 0?!0:F.logMicClosed;var V=F.handleError===void 0?!0:F.handleError;F=F.handleStop===void 0?!0:F.handleStop;this.state!==0&&(C&&i4("voz_cx"),JF(this,{logMicClosed:G,handleStop:F}),V&&this.errorHandler("ABORTED"))};
_.n.getState=function(){return this.state};
_.n.isSupported=function(){return!0};
_.n.stopAudio=function(C){(C===void 0||C)&&i4("voz_mf")};
_.n.startAudio=function(){i4("voz_vp");return _.mE(null)};
var Crh=function(C,F){C.channelOpen&&(C.state!==2&&(C.state=2,i4("voz_ss"),C.listeningHandler()),F=new Uint8Array(F),F='{ "audioIn": "'+_.eU(F)+'" }',C.channel.send(F))},JF=function(C,F){var G=F===void 0?{}:F;
F=G.logMicClosed===void 0?!0:G.logMicClosed;G=G.handleStop===void 0?!0:G.handleStop;C.vozEndOfDataTimeout>-1&&(clearTimeout(C.vozEndOfDataTimeout),C.vozEndOfDataTimeout=-1);jiU(C);C.stopAudio(F);C.channel&&(C.channelOpen=!1,C.manuallyClosedChannel=!0,C.channel.close(),C.channel=void 0);C.transcribedSpeechResults=[];C.state=0;G&&C.stopHandler()},pqt=function(C){var F={httpHeadersOverwriteParam:C.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},C.additionalHeaders,C.accessToken&&C.isUsingVoz?{Authorization:"Bearer "+C.accessToken}:{"x-goog-api-key":C.apiKey}),supportsCrossDomainXhr:C.supportsCrossDomainXhr};C.channel=new yL(C.endpoint,F);C.channel.open();_.IP(C.channel,"w",function(){var G=C.channel,V=G.send,J=C.isUsingVoz?"PLACEHOLDER":"example";J={config:{dialogStateIn:{languageCode:C.languageCode},deviceConfig:{deviceId:J,deviceModelId:J},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!C.isUsingVoz)J.config.requestType=4;else if(C.isUsingVoz&&C.youtubeAssistantRequest){var b=JSON.stringify(C.youtubeAssistantRequest);J.config.internalIn={youtubeAssistantS3InputJson:b}}V.call(G,J);C.channelOpen=!0;C.manuallyClosedChannel=!1});
_.IP(C.channel,"x",function(){C.manuallyClosedChannel||(C.channelOpen=!1,C.channel=void 0,JF(C))});
_.IP(C.channel,"z",function(G){if(G.data){jiU(C);for(var V=0;V<G.data.length;V++){var J=C,b=G.data[V],z=b.speechResults;if(z)a:{var Q=[];b=[];var E=!1;z=_.u(z);for(var t=z.next();!t.done;t=z.next()){t=t.value;if(t.noSpeech){JF(J);J.errorHandler("NO_SPEECH");break a}t.transcript!==void 0&&t.stability!==void 0&&(t.stability<J.confidenceThreshold&&(E=!0),E?b.push(t.transcript):Q.push(t.transcript))}if(Q.length!==0||b.length!==0)Q=Q.join(" "),b=b.join(" "),J.receivedEndOfUtterance&&!J.isUsingVoz?J.isUsingVoz||
J.completeHandler([Q,b]):(E=J,z=Q,t=b,i4("voz_sf"),E.transcriptionUpdateHandler(z,t),E.transcribedSpeechResults=[z,t]),J.receivedEndOfUtterance&&(i4("voz_eou"),J.transcriptionCompleteHandler([Q,b]),J.isUsingVoz&&(J.prefetchResponseTimeoutMs===0?JF(J,{logMicClosed:!1,handleStop:!0}):J.prefetchResponseTimeoutMs>0&&FQh(J)))}else J.isUsingVoz&&(b==null?0:b.internalOut)?(b=JSON.parse(b.internalOut.youtubeAssistantS3OutputJson),b.userHasOptedInToVaa||b.vaaConsent?J.vaaConsentUpdateHandler(!!b.userHasOptedInToVaa,
!!b.vaaConsent):(GQh(J),b&&(Q=J.transcribedSpeechResults,i4("voz_rqf"),J.completeHandler(Q,b)))):b.eventType==="END_OF_UTTERANCE"?J.receivedEndOfUtterance=!0:(i4("voz_err"),J.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.Yw(Error("xl")))}}});
_.IP(C.channel,"y",function(G){JF(C);switch(G.status){case 1:G="WEBCHANNEL_NETWORK_ERROR";break;case 2:G="WEBCHANNEL_SERVER_ERROR";break;default:G="WEBCHANNEL_UNKNOWN_ERROR"}C.errorHandler(G);C.logError(Error(G))})};
Vd.prototype.logError=function(C){_.gD(C)};
Vd.prototype.isOnline=function(){return!0};
var FQh=function(C){GQh(C);C.prefetchResponseSetTimeoutId=setTimeout(function(){JF(C,{logMicClosed:!1,handleStop:!0})},C.prefetchResponseTimeoutMs)},GQh=function(C){C.prefetchResponseSetTimeoutId>-1&&(clearTimeout(C.prefetchResponseSetTimeoutId),C.prefetchResponseSetTimeoutId=-1)},mAd=function(C){jiU(C);
C.noResponseReceivedTimeout=window.setTimeout(function(){JF(C);C.errorHandler("NO_SPEECH")},11E3)},jiU=function(C){C.noResponseReceivedTimeout>-1&&(window.clearTimeout(C.noResponseReceivedTimeout),C.noResponseReceivedTimeout=-1)},i4=function(C){_.NV(C,void 0,"voice_assistant")};var $I=function(){Vd.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.O($I,Vd);$I.prototype.isSupported=function(){return Bpt()};
$I.prototype.startAudio=function(){var C=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.W6(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(V){Vg3(C,V)};
this.processor.connect(this.audioContext.destination);var F=function(V){C.stream=V;if(!C.audioContext)return _.mE(null);V=C.audioContext.createMediaStreamSource(V);C.processor&&V.connect(C.processor);return _.mE(null)},G={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?F(this.stream):(G=navigator.mediaDevices.getUserMedia(G))?G.then(F).catch(function(V){JF(C);V.name&&V.name==="NotAllowedError"?C.errorHandler("NO_MICROPHONE_PERMISSION"):(C.errorHandler("AUDIO_ERROR"),C.logError(V));return _.W6(null)}):(JF(this),this.errorHandler("AUDIO_ERROR"),_.Yw(Error("yl")));
return Vd.prototype.startAudio.call(this)};
$I.prototype.stopAudio=function(C){C=C===void 0?!0:C;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(F){F.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;Vd.prototype.stopAudio.call(this,C)};
$I.prototype.isOnline=function(){return navigator.onLine};
var Vg3=function(C,F){if(C.audioContext)if(window.OfflineAudioContext){var G=C.audioContext.sampleRate,V=F.inputBuffer.getChannelData(0);F=new window.OfflineAudioContext(1,V.length,16E3);for(var J=F.createBuffer(1,V.length,G),b=J.getChannelData(0),z=0,Q=0;Q<V.length;Q++)b[Q]=V[Q],z+=b[Q]*b[Q];!C.audioDetected&&Math.sqrt(z/V.length)>.01&&(C.audioDetected=!0,C.audioDetectedHandler());V=F.createBufferSource();V.buffer=J;V.connect(F.destination);V.start(0);F.oncomplete=function(E){E=E.renderedBuffer.getChannelData(0);
for(var t=Math.floor(16384E3/G),k=new Int16Array(t),U=0;U<t;++U)k[U]=Math.max(-1,Math.min(1,E[U]))*32767;Crh(C,k.buffer)};
F.startRendering()}else iwd(C,F)},iwd=function(C,F){var G=C.audioContext.sampleRate,V=F.inputBuffer.getChannelData(0),J=Math.floor((G+8E3)/16E3);
G=V.length/J;F=new Float32Array(G);for(var b=0;b<G;++b)F[b]=V[b*J];V=new Int16Array(G);for(J=0;J<G;++J)V[J]=Math.max(-1,Math.min(1,F[J]))*32767;Crh(C,V.buffer)};var JIh={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var $LL=function(){this.JSC$20244_audioEnabled=!0;this.audioFeedbackHolder={}};
$LL.prototype.isPlaying=function(C){return C.currentTime>0&&!C.paused&&!C.ended&&C.readyState>2};
var bwL=function(C){for(var F=_.u(Object.values(JIh)),G=F.next();!G.done;G=F.next())G=G.value,C.audioFeedbackHolder[G]=new Audio,C.audioFeedbackHolder[G].src="/s/search/audio/"+G+".mp3",C.audioFeedbackHolder[G].load()},b4=function(C,F){if(C.JSC$20244_audioEnabled!==!1&&F in C.audioFeedbackHolder){for(var G=_.u(Object.values(C.audioFeedbackHolder)),V=G.next();!V.done;V=G.next())V=V.value,C.isPlaying(V)&&V.pause();
C.audioFeedbackHolder[F].currentTime=0;C.audioFeedbackHolder[F].play().catch(function(){})}};var n1V=function(C,F){var G=this;this.store=C;this.service=F;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){G.setState("offline");G.stop()};
this.audioPlayer=new $LL;var V;(V=this.audioPlayer)==null||bwL(V)};
_.n=n1V.prototype;_.n.getService=function(){return this.service};
_.n.isEnabled=function(){return!!this.service};
_.n.isSupported=function(){var C;return(C=this.service)==null?void 0:C.isSupported()};
_.n.start=function(){var C=this,F,G,V,J,b,z,Q,E,t,k,U,H,l;return _.I(function(N){switch(N.nextAddress){case 1:C.store.dispatch($qU("",""));if(!navigator.onLine)return C.setState("offline"),N.return();window.addEventListener("offline",C.handleOfflineEvent);C.stream=null;if(!C.permissionsSupported){N.jumpTo(2);break}_.yy(N,3);return N.yield(uaU(C),5);case 5:F=N.yieldResult;if(!F)return(G=C.audioPlayer)==null||b4(G,"failure"),N.return();C.service.stream=C.stream;C.setState("listening");_.Gn(N,2);break;
case 3:_.wa(N),C.permissionsSupported=!1;case 2:V={context:_.xWf(_.tn())},V.youtubeAssistantParams={searchParams:{inlineSearchResponse:C.enableInlineSearchResponse}},J=function(S,f){C.store.dispatch(bxd("transcribing"));C.store.dispatch($qU(S,f))},b=function(){var S;
(S=C.audioPlayer)==null||b4(S,"open");C.setState("listening")},z=function(){C.setState("transcribing")},Q=function(S){C.setErrorState(S)},E=function(S,f){var c;
(c=C.audioPlayer)==null||b4(c,"success");f&&(_.y("kevlar_voice_search_inline_search")&&(C.responseProcessor=_.I8().resolve(_.a1q),C.responseProcessor&&(c=f.navigationAction,S=f.prefetchedSearchResponse,c&&S&&(c=(new _.jMM).JSC$14174_getStoreKey(c),_.Su(C.responseProcessor,S,c)))),C.JSC$20262_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",f))},t=function(){window.removeEventListener("offline",C.handleOfflineEvent)},k=_.r4i(!1),U=k.Authorization!=null,H=C.enableFirstPartyAuth||
C.enableFPAForSignedInUsers&&U?k:{"X-Goog-Visitor-Id":k["X-Goog-Visitor-Id"]},l={completeHandler:E,
errorHandler:Q,listeningHandler:b,audioDetectedHandler:z,stopHandler:t,transcriptionUpdateHandler:J,youtubeAssistantRequest:V,languageCode:zEh(),additionalHeaders:H,supportsCrossDomainXhr:C.enableFirstPartyAuth||C.enableFPAForSignedInUsers&&U,supportsHttpHeadersOverwriteParam:!C.disableHttpHeadersOverwrite},C.service.start(l),_.S9(N)}})};
_.n.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.n.reset=function(){this.store.dispatch(_.rh({type:"RESET_VOICE_SEARCH_STATE"}))};
_.n.setState=function(C){this.store.dispatch(bxd(C))};
_.n.setErrorState=function(C){switch(C){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var F;(F=this.audioPlayer)==null||b4(F,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)uaU(this);else{var G;(G=this.audioPlayer)==null||b4(G,"failure");this.setState("permission-denied")}break;case "ABORTED":var V;(V=this.audioPlayer)==null||b4(V,"no_input");break;default:var J;(J=this.audioPlayer)==
null||b4(J,"no_input");this.setState("timeout")}};
var uaU=function(C){var F,G;return _.I(function(V){switch(V.nextAddress){case 1:return V.yield(navigator.permissions.query({name:"microphone"}),2);case 2:F=V.yieldResult;if(F.state==="granted")return V.return(!0);if(F.state==="denied")return C.setState("permission-denied"),V.return(!1);C.setState("permission");G={audio:{sampleSize:16,channelCount:1},video:!1};_.yy(V,3);return V.yield(navigator.mediaDevices.getUserMedia(G),5);case 5:return C.stream=V.yieldResult,V.return(!0);case 3:return _.wa(V),
C.setState("permission-denied"),V.return(!1)}})},zEh=function(){var C=_.TF("INNERTUBE_CONTEXT_HL"),F=_.TF("INNERTUBE_CONTEXT_GL");
return C.indexOf("-")>-1?C:C+"-"+F};var Qi_=function(C,F,G){n1V.call(this,F,G);this.JSC$20262_actionRouter=C;this.enableInlineSearchResponse=_.y("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.y("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.y("kevlar_voice_search_enable_fpa_signedin_users")},ITt;
_.O(Qi_,n1V);
var E18=function(){if(!ITt){var C="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.y("kevlar_voice_search_auth_enabled")||_.y("kevlar_voice_search_use_yt_endpoint")?C="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.y("kevlar_voice_search_use_fp_endpoint")&&(C="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");ITt=
new Qi_(_.FV.getInstance(),_.s3(),new $I(_.TF("VOZ_API_KEY"),C,.5))}return ITt};var WQr=function(C){this.JSC$20266_clientRoot=C;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1,commentsPanelOpen:!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$20266_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)],["yt-autonav-engagement-panel-visible-changed",this.onYtEngagementPanelVisibleChanged.bind(this)]]));C=_.u(this.eventListeners);for(var F=C.next();!F.done;F=C.next()){var G=
_.u(F.value);F=G.next().value;G=G.next().value;G=_.u(G);for(var V=G.next();!V.done;V=G.next()){var J=_.u(V.value);V=J.next().value;J=J.next().value;F.addEventListener(V,J)}}_.GA(_.FV.getInstance(),this.autonavPauseActionMap,this.JSC$20266_clientRoot)},tgM,aT_=function(C){return _.y("kevlar_autonav_popup_filtering")?(C=_.ev(C))?C.hasAttribute("prevent-autonav"):!0:!0};
_.n=WQr.prototype;_.n.onIronOverlayOpened=function(C){aT_(C)&&(this.autonavPauseReasons.overlayOpen=!0,no(this))};
_.n.onIronOverlayClosed=function(C){aT_(C)&&(this.autonavPauseReasons.overlayOpen=!1,no(this))};
_.n.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;no(this)};
_.n.onYtAutonavPauseBlur=function(){var C=this;_.gT.addJob(function(){kQr()||(C.autonavPauseReasons.inputBoxFocus=!1,no(C))},8,0)};
_.n.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;no(this)};
_.n.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;no(this)};
_.n.onYtAutonavPauseScroll=function(){var C=_.I8().resolve(_.qG);C.isOnWatch()&&(C=C.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=C.getBoundingClientRect().top<-200,no(this))};
_.n.onYtAutonavPauseUserEngagement=function(C){var F=this;if(_.y("user_engagement_enable_autoplay_pause_feature")){var G=Number(C.lowEngagementThresholdMs);isNaN(G)||G<=0||C.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.Pt("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.I8().resolve(_.zb),_.I1()<G?_.c8(_.gT,function(){_.Pt("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.Dzr()?(this.userEngagementCsn=_.ZQ(),_.c8(_.gT,function(){_.Pt("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
F.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,no(this)):_.Pt("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.mGo(Error("zl`"+JSON.stringify(C)))};
_.n.onYtAutonavPausePlayer=function(C){this.autonavPauseReasons.requestedByPlayer=!!C.detail;no(this)};
_.n.onYtAutonavVisibilityChanged=function(){var C=this,F,G,V;return _.I(function(J){if(J.nextAddress==1)return(F=_.gE())?J.yield(F.getPlayerPromise(),2):J.return();G=J.yieldResult;V=G.isMuted()||G.getVolume()===0;C.autonavPauseReasons.backgroundAndMute=kQr()&&V;no(C);_.S9(J)})};
_.n.onYtAutonavPausePlayerEnded=function(){_.I8().resolve(_.zb);var C=144E5;_.y("user_engagement_enable_autoplay_pause_feature")||_.y("is_part_of_any_user_engagement_experiment")||(C=45E5);this.autonavPauseReasons.longIdle=_.I1()>C;UL_(this);no(this)};
_.n.onYtUserActivity=function(){var C=this;this.autonavPauseReasons.userEngagement&&(_.c8(_.gT,function(){_.Pt("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",C.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,no(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.c8(_.gT,function(){_.Pt("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",C.userEngagementCsn);_.P8()}),this.autonavPauseReasons.youthereLactExperiment=!1,no(this));
this.autonavPauseReasons.longIdle&&!_.y("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,no(this))};
var kQr=function(){var C=window.document.visibilityState;return!(!C||C==="visible")},no=function(C){for(var F=!1,G=_.u(Object.values(C.autonavPauseReasons)),V=G.next();!V.done;V=G.next())V=V.value,F=F||V;
F?_.Ef.getInstance().pause(C.autonavPauseReasons):(C=_.Ef.getInstance(),C.autonavState_==3?(C.setState(2,!1,!1),C.autonavPauseReason_=void 0):C.autonavState_==1&&(C.disabledAutonavPauseReason_=void 0))},UL_=function(C){var F=!1;
if(_.y("enable_autoplay_pause_by_lact")){_.I8().resolve(_.zb);F=_.a8("autoplay_pause_by_lact_sec")*1E3;var G=_.a8("autoplay_pause_by_lact_sampling_fraction");(F=_.I1()>=F&&Math.random()<G)&&!_.Dzr()&&(_.c8(_.gT,function(){_.Pt("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),F=!1)}F!==C.autonavPauseReasons.youthereLactExperiment&&(C.autonavPauseReasons.youthereLactExperiment=F)&&(C.userEngagementCsn=_.ZQ(),_.c8(_.gT,function(){_.Pt("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",C.userEngagementCsn)}));
C.autonavPauseReasons.userEngagement&&_.c8(_.gT,function(){_.Pt("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",C.userEngagementCsn)})};
WQr.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.Pt("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.P8(),this.autonavPauseReasons.youthereLactExperiment=!1,no(this));this.autonavPauseReasons.userEngagement&&(_.Pt("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,no(this))};
WQr.prototype.onYtEngagementPanelVisibleChanged=function(C){C.detail&&C.detail.targetId==="engagement-panel-comments-section"&&(this.autonavPauseReasons.commentsPanelOpen=C.detail.visible,no(this))};
WQr.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var Hwh=_.SV.persistentPanelVisibleSelector,u4=function(){var C=_.B.apply(this,arguments)||this;C.miniGuideVisible=!1;C.guideOpened=_.y("disable_initial_guide_state_fix")?!1:C.canFitPersistentGuide(C.initialBodyClientWidth);C.guideUserStateOpened=C.getInitialGuideUserStateOpened();C.isFullscreenShorts=!1;C.miniGuideWidthThreshold=_.a8("kevlar_mini_guide_width_threshold",791);C.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
C.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");C.persistentGuideBlockedPagePathRegex=new RegExp(C.persistentGuideBlockedPagesPatterns.join("|"));C.animationTransitionDuration=0;C.lateDataResolver=_.hM();C.initialGuideDataFetchFailed=!1;C.initialLoad=!0;C.guideRenderers=new Set;C.isMouseOverGuide=!1;C.sessionUserManuallyExpandedGuideState=
!1;C.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return C};
_.O(u4,_.B);_.n=u4.prototype;_.n.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.n.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.n.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.n.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.n.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.n.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.n.ready=function(){_.I8().addProvider({provide:_.KK,useValue:this.hostElement})};
_.n.attached=function(){var C=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.Gp(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.Gp(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.Gp(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.Gp(this,this.onYtGuideShow));_.zH(this,function(){C.animationTransitionDuration=200})};
_.n.detached=function(){document.removeEventListener("yt-navigate-finish",_.Gp(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.Gp(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.Gp(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.Gp(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.Gp(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.Gp(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.Gp(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.n.getData=function(){return this.data};
_.n.load=function(){var C=this,F,G,V,J;return _.I(function(b){switch(b.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=C.lateDataResolver.resolve.bind(C),b.return(C.lateDataResolver.promise);if(window.ytInitialGuideData)return F=_.hM(),F.resolve(window.ytInitialGuideData),b.return(F.promise);V=!1;_.yy(b,2);return b.yield(C.fetchGuideData(),4);case 4:G=b.yieldResult;_.Gn(b,3);break;case 2:J=_.wa(b),J.message==="Returned error"&&(V=
!0);case 3:if(G)return b.return(G);C.onYtGuideClose();V||(C.initialGuideDataFetchFailed=!0);return b.return(C.lateDataResolver.promise)}})};
_.n.fetchGuideData=function(){var C=this,F,G,V,J,b,z,Q;return _.I(function(E){if(E.nextAddress==1)return F=_.I8(),C.guidePromise||(G=F.resolve(_.Qk),C.guidePromise=_.fZ(G,WAh)),E.yield(C.guidePromise,2);if(E.nextAddress!=3)return V=E.yieldResult,J=F.resolve(_.h_),E.yield(J(),3);(b=E.yieldResult)&&((z=V)==null?void 0:(Q=z.responseContext)==null?void 0:Q.maxAgeSeconds)!==0&&b.put("service:guide:fallback",new _.yU({innertubeResponse:V}));return E.return(V)})};
_.n.initializeGuideDataIfEmpty=function(){var C=this,F,G;return _.I(function(V){if(V.nextAddress==1){if(!C.initialGuideDataFetchFailed||C.data)return V.return();_.yy(V,2);return V.yield(C.fetchGuideData(),4)}if(V.nextAddress!=2)return(F=V.yieldResult)&&C.lateDataResolver.resolve(F),_.Gn(V,0);G=_.wa(V);_.Yw(G);_.S9(V)})};
_.n.initializeGuideData=function(){var C=this,F;return _.I(function(G){switch(G.nextAddress){case 1:return _.m8(PPr(),{mainAppWeb:_.vr()}),_.yy(G,2),G.yield(C.load(),4);case 4:C.data=G.yieldResult;_.Gn(G,3);break;case 2:_.wa(G),_.CV(PPr(),"FAILURE");case 3:F=C.data&&C.data.items&&C.data.items.length>0?"SUCCESS":"FAILURE",_.CV(PPr(),F),_.S9(G)}})};
_.n.setGuideData=function(C){var F=this,G,V;return _.I(function(J){if(J.nextAddress==1)return F.disabled?J.return():F.data?(C.data=F.data,F.guideRenderers.add(C),J.return()):J.yield(F.initializeGuideData(),2);F.graftGuideToPage();G=_.oD("IS_HOMEPAGE_COLD")?"eop":void 0;_.y("disable_element_pool_populator")?F.setGuideDataAfterInit(C):(V=new _.$a(1,G),_.bc(V,F.setGuideDataAfterInit.bind(F,C)));_.S9(J)})};
_.n.setGuideDataAfterInit=function(C){C.data=this.data;C.markDirty();this.guideRenderers.add(C);_.L5(function(){_.NV("gle")});
_.zH(this,function(){_.NV("gpe")})};
_.n.graftGuideToPage=function(){if(this.data){var C=this.data&&this.data.trackingParams;C&&(C=_.zS(C),_.Xu(_.ia(),C))}};
_.n.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.Gp(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.n.onDrawerOpenedChanged=function(C,F){!F.value&&this.guideOpened&&(this.guideOpened=!1)};
_.n.onYtGuideToggle=function(C){var F=this.guideOpened;this.guideOpened=!F;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var G=_.bQ();_.nl(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;G.save()}this.updateGuideDrawerElementState();if(this.guideElement){var V;this.guideOpened&&((V=C.detail)==null?0:V.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.Gp(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.Gp(this,this.onAppDrawerTransitioned))}F||this.initializeGuideDataIfEmpty()};
_.n.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Gp(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.J5(this.guideElement)};
_.n.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Gp(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(ixW(this.guideOpened))};
_.n.guidePersistentAndVisibleChanged=function(){_.KX(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.n.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.rh({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.n.miniGuideVisibleChanged=function(){_.KX(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.n.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(ixW(this.guideOpened)),this.initialLoad=!1);_.KX(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.n.activeEndpointChanged=function(){_.KX(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.n.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.n.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()};
_.n.cachedClientWidthChanged=function(){this.updateGuideState()};
_.n.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.n.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var C=this.canFitPersistentGuide(this.cachedClientWidth);C?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=C}this.updateGuideDrawerElementState()};
_.n.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.n.getGuideOpened=function(){return this.guideOpened};
_.n.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.n.getActiveEndpoint=function(){return this.activeEndpoint};
_.n.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.n.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&&_.oo(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.n.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.y("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.n.handleGuideMouseLeave=function(){var C=this;!this.sessionUserManuallyExpandedGuideState&&_.y("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.Bb(this,"handleGuideMouseLeave",function(){C.isMouseOverGuide||!C.guideOpened||C.miniGuideVisible||(C.guideOpened=!1,C.updateGuideDrawerElementState())},100))};
_.n.computeGuidePersistentAndVisible=function(){var C=this;_.Bb(this,"computeGuidePersistentAndVisible",function(){C.guidePersistentAndVisible=C.guideOpened&&C.guidePersistent;C.guideIsVisibleButNotPersistent=!(!C.guideOpened||C.guidePersistent)})};
_.n.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.n.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.n.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.n.startLoadingWatch=function(){this.closeGuide()};
_.n.startLoadingShorts=function(){_.y("web_hide_guide_on_shorts")&&this.closeGuide()};
_.n.onYtNavigateFinish=function(C,F){if(!_.rp||F){this.activeEndpoint=F.endpoint;this.pageType=F.pageType;this.pageUrl=F.response.url;var G,V;C=(V=_.Z((G=F.endpoint)==null?void 0:G.commandMetadata,_.GU))==null?void 0:V.url;!this.pageUrl&&C&&(this.pageUrl=C);_.y("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.n.getVisibleGuideRenderer=function(){for(var C=_.u(this.guideRenderers),F=C.next();!F.done;F=C.next())if(F=F.value,this.miniGuideVisible&&F.is==="ytd-mini-guide-renderer"||this.guideOpened&&F.is==="ytd-guide-renderer")return F;return null};
_.n.markGuideRendererDirty=function(C){if(C){typeof C.markDirty==="function"&&C.markDirty();C=_.u([].concat(_.da(_.ot(C).children)));for(var F=C.next();!F.done;F=C.next())this.markGuideRendererDirty(F.value)}};
_.n.persistentGuideEnabled=function(C,F){if(!F||C==="watch"||C==="settings"||C==="shorts"&&this.isFullscreenShorts||_.y("reels_web_disable_persistent_guide_shorts")&&C==="shorts")return!1;var G=_.X$(F)||"";return _.y("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(V){return G===V}):!this.persistentGuideBlockedPagePathRegex.test(G)};
_.n.canFitPersistentGuide=function(C){var F=_.a8("kevlar_persistent_guide_width_threshold",1312);return F===-1||_.y("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:C>this.calculateGuideThreshold(F)};
_.n.calculateGuideThreshold=function(C){return _.y("enable_ai_companion")?C+(this.persistentPanelVisible?400:0):C};
_.n.canFitMiniGuide=function(C){return this.miniGuideWidthThreshold===-1?!1:C>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.n.onResize=function(){var C=this;_.Bb(this,"calculateGuideState",function(){C.onResizeDebounced()})};
_.n.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.n.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.n.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.n.getInitialGuideUserStateOpened=function(){return _.y("web_force_mini_guide_default")?!1:!_.bQ().getFlag(109)};
_.I6.Object.defineProperties(u4.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.TF("initialBodyClientWidth")||window.innerWidth}}});
u4.prototype.onResize=u4.prototype.onResize;u4.prototype.observeForMiniGuideVisible=u4.prototype.observeForMiniGuideVisible;u4.prototype.computeGuidePersistentAndVisible=u4.prototype.computeGuidePersistentAndVisible;u4.prototype.persistentPanelVisibleChanged=u4.prototype.persistentPanelVisibleChanged;u4.prototype.cachedClientWidthChanged=u4.prototype.cachedClientWidthChanged;u4.prototype.resetGuide=u4.prototype.resetGuide;u4.prototype.activeEndpointChanged=u4.prototype.activeEndpointChanged;
u4.prototype.guideOpenedChanged=u4.prototype.guideOpenedChanged;u4.prototype.miniGuideVisibleChanged=u4.prototype.miniGuideVisibleChanged;u4.prototype.guideIsVisibleButNotPersistentChanged=u4.prototype.guideIsVisibleButNotPersistentChanged;u4.prototype.guidePersistentAndVisibleChanged=u4.prototype.guidePersistentAndVisibleChanged;u4.prototype.onGuideElementChanged=u4.prototype.onGuideElementChanged;u4.prototype.onGuidePersistentChanged=u4.prototype.onGuidePersistentChanged;
u4.prototype.onRenderGuideChanged=u4.prototype.onRenderGuideChanged;u4.prototype.onActiveEndpointChanged=u4.prototype.onActiveEndpointChanged;u4.prototype.onMiniGuideVisibleChanged=u4.prototype.onMiniGuideVisibleChanged;u4.prototype.onGuideIsVisibleButNotPersistentChanged=u4.prototype.onGuideIsVisibleButNotPersistentChanged;u4.prototype.onGuidePersistendAndVisibleChanged=u4.prototype.onGuidePersistendAndVisibleChanged;
_.R([_.w(_.AY),_.Y("design:type",Object)],u4.prototype,"ironResizableBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],u4.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],u4.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],u4.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],u4.prototype,"data",void 0);
_.R([_.L(),_.Y("design:type",Boolean)],u4.prototype,"disabled",void 0);_.R([_.L(),_.Y("design:type",Boolean)],u4.prototype,"guidePersistentAndVisible",void 0);_.R([_.iP("guidePersistentAndVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u4.prototype,"onGuidePersistendAndVisibleChanged",null);_.R([_.L(),_.Y("design:type",Boolean)],u4.prototype,"guideIsVisibleButNotPersistent",void 0);
_.R([_.iP("guideIsVisibleButNotPersistent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u4.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.R([_.L(),_.Y("design:type",Object)],u4.prototype,"miniGuideVisible",void 0);_.R([_.iP("miniGuideVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u4.prototype,"onMiniGuideVisibleChanged",null);_.R([_.L(),_.Y("design:type",Boolean)],u4.prototype,"forceMiniGuideClose",void 0);
_.R([_.L(),_.Y("design:type",Object)],u4.prototype,"activeEndpoint",void 0);_.R([_.iP("activeEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u4.prototype,"onActiveEndpointChanged",null);_.R([_.L(),_.Y("design:type",Boolean)],u4.prototype,"renderGuide",void 0);_.R([_.iP("renderGuide"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u4.prototype,"onRenderGuideChanged",null);
_.R([_.L({selector:Hwh}),_.Y("design:type",Boolean)],u4.prototype,"persistentPanelVisible",void 0);_.R([_.L(),_.Y("design:type",Object)],u4.prototype,"guideOpened",void 0);_.R([_.L(),_.Y("design:type",Boolean)],u4.prototype,"guidePersistent",void 0);_.R([_.iP("guidePersistent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u4.prototype,"onGuidePersistentChanged",null);_.R([_.L(),_.Y("design:type",Object)],u4.prototype,"guideUserStateOpened",void 0);
_.R([_.L(),_.Y("design:type",String)],u4.prototype,"pageUrl",void 0);_.R([_.L(),_.Y("design:type",String)],u4.prototype,"pageType",void 0);_.R([_.L(),_.Y("design:type",Number)],u4.prototype,"cachedClientWidth",void 0);_.R([_.L(),_.Y("design:type",Object)],u4.prototype,"guideElement",void 0);_.R([_.L({selector:_.gv}),_.Y("design:type",Object)],u4.prototype,"isFullscreenShorts",void 0);
_.R([_.iP("guideElement"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u4.prototype,"onGuideElementChanged",null);_.R([_.iP("guidePersistentAndVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u4.prototype,"guidePersistentAndVisibleChanged",null);
_.R([_.zp("guideIsVisibleButNotPersistent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u4.prototype,"guideIsVisibleButNotPersistentChanged",null);_.R([_.iP("miniGuideVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u4.prototype,"miniGuideVisibleChanged",null);_.R([_.zp("guideOpened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u4.prototype,"guideOpenedChanged",null);
_.R([_.iP("activeEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u4.prototype,"activeEndpointChanged",null);_.R([_.zp("pageUrl"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u4.prototype,"resetGuide",null);_.R([_.zp("cachedClientWidth"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u4.prototype,"cachedClientWidthChanged",null);
_.R([_.zp("persistentPanelVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u4.prototype,"persistentPanelVisibleChanged",null);_.R([_.iP("guideOpened","guidePersistent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u4.prototype,"computeGuidePersistentAndVisible",null);
_.R([_.zp("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u4.prototype,"observeForMiniGuideVisible",null);_.R([_.VG("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u4.prototype,"onResize",null);_.R([_.e({disableElementRegistration:!0,is:"yt-guide-manager"})],u4);
var lT8=_.q(u4,"yt-guide-manager",void 0,{mode:_.oN("kevlar_poly_si_batch_j081")?1:2});var zM=function(){var C=_.B.apply(this,arguments)||this;C.JSC$20276_keyboardInUse=!1;C.boundHandleCapturedKeydownEvent=function(F){C.handleCapturedKeydownEvent(F)};
return C};
_.O(zM,_.B);_.n=zM.prototype;_.n.attached=function(){this.listenToDocument(document)};
_.n.listenToDocument=function(C){C.addEventListener("keydown",_.Gp(this,this.onKeyDownEvent));C.addEventListener("keyup",_.Gp(this,this.onKeyUpEvent));C.addEventListener("mousedown",_.Gp(this,this.onMouseDownEvent));_.y("desktop_keyboard_capture_keydown_killswitch")||C.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);C.addEventListener("yt-page-data-updated",_.Gp(this,this.onPageUpdate))};
_.n.detached=function(){this.unlistenFromDocument(document)};
_.n.unlistenFromDocument=function(C){C.removeEventListener("keydown",_.Gp(this,this.onKeyDownEvent));C.removeEventListener("keyup",_.Gp(this,this.onKeyUpEvent));C.removeEventListener("mousedown",_.Gp(this,this.onMouseDownEvent));_.y("desktop_keyboard_capture_keydown_killswitch")||C.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);C.removeEventListener("yt-page-data-updated",_.Gp(this,this.onPageUpdate))};
_.n.ready=function(){_.I8().addProvider({provide:_.uc,useValue:this})};
_.n.isKeyBoardInUse=function(){return this.JSC$20276_keyboardInUse};
_.n.handleCapturedKeydownEvent=function(C){if(C.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(C)};
_.n.onMouseDownEvent=function(){this.JSC$20276_keyboardInUse=!1};
_.n.onPageUpdate=function(){if(_.y("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.y("web_shorts_keyboard_shortcut_usage_log")){_.ob.clear();for(var C=_.u(_.Yu),F=C.next();!F.done;F=C.next()){var G=_.u(F.value);F=G.next().value;G=G.next().value;G=_.m2(G);_.ob.set(F,G);_.vA(_.ZQ(),_.lm(),G)}_.rr.clear();C=_.u(_.T0);for(F=C.next();!F.done;F=C.next())G=_.u(F.value),F=G.next().value,G=G.next().value,G=_.m2(G),_.rr.set(F,G),_.vA(_.ZQ(),_.lm(),G);_.fl(_.ZQ(),_.lm(),[].concat(_.da(_.rr.values()),
_.da(_.ob.values())));_.cA(_.ZQ(),[].concat(_.da(_.rr.values()),_.da(_.ob.values())))}};
_.n.onMiniplayerActiveChange=function(){var C;(C=_.I8().resolve(_.Od).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(C.document):this.unlistenFromDocument(C.document))};
_.n.ignoreKeyEvent=function(C){if(C.ctrlKey||C.altKey)if(_.y("kevlar_macro_markers_keyboard_shortcut")){if(C.keyCode!==37&&C.keyCode!==39)return!0}else return!0;var F=_.AR(C)||[];return _.CPr(F)?(_.y("web_button_or_anchor_list_item")&&zI3(F,C)&&(this.JSC$20276_keyboardInUse=!0),!0):C.defaultPrevented?(Ic(C.keyCode,C.shiftKey,this.isShortsPage),!0):C.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(C):!1};
_.n.isSpacebarClick=function(C){var F=C||window.event;var G;F.composedPath&&typeof F.composedPath==="function"?G=F.composedPath():G=F.path;G&&G.length?F=G[0]:(F=F||window.event,F=F.target||F.srcElement,F.nodeType==3&&(F=F.parentNode));return F&&C.keyCode===32&&(C=F.tagName==="BUTTON"||F.tagName==="A"||F.tagName==="INPUT",F=(F=F.getAttribute("role"))&&(F==="option"||F==="button"||F.indexOf("menuitem")===0),C||F)?!0:!1};
_.n.onKeyDownEvent=function(C){if(!this.ignoreKeyEvent(C)&&(C.keyCode===191&&(C.shiftKey||C.metaKey?C.repeat!=null&&C.repeat||(this.openHotkeyDialog(),Ic(C.keyCode,C.shiftKey,this.isShortsPage)):(this.focusSearchBox(),C.preventDefault())),!C.metaKey)){var F=_.I8().resolve(_.Od);switch(C.keyCode){case 9:this.JSC$20276_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(C);break;case 84:F.pipController.getWindow()&&window.focus();this.toggleTheaterMode(C.keyCode,C.shiftKey);break;case 73:F.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(C.keyCode,C.shiftKey);break;case 70:if(this.isShortsPage){_.jN8();break}this.isMiniplayerActive()?F.pipController.getWindow()&&(F.close(!0),window.focus()):this.passEventToPlayer(C);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(C.keyCode,C.shiftKey):this.closeMiniplayer(C.keyCode,C.shiftKey)||this.passEventToPlayer(C);break;case 13:C.shiftKey&&_.I8().resolve(_.G9).activate(C);break;default:this.passEventToPlayer(C)}}};
_.n.onKeyUpEvent=function(C){if(!this.ignoreKeyEvent(C))if(_.y("web_speedmaster_spacebar_control")&&C.keyCode===32)this.handlePlayerSpaceKey(C,!0);else{var F=this.getPlayerManager();F&&(F=F.getPlayer())&&F.handleGlobalKeyUp(C.keyCode,C.shiftKey,C.ctrlKey,C.altKey,C.metaKey,C.key,C.code)}};
_.n.getPlayerManager=function(){var C=_.gE(),F=_.I8().resolve(_.Qt(_.qG));return C&&F&&F.isOnWatch()?C:null};
_.n.passEventToPlayer=function(C,F){var G=this,V,J,b,z;return _.I(function(Q){if(Q.nextAddress==1){if(!_.y("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&G.isMiniplayerActive())V=_.I8().resolve(_.Od).getPlayerElement();else if(G.inlinePreviewIsActive){if(J=_.KX(G.hostElement,"yt-get-inline-preview-player-action"),(b=J)==null?0:b[0])V=J[0]}else V=_.gE();return V?Q.yield(V.getPlayerPromise(),3):Q.jumpTo(0)}z=Q.yieldResult;F?z.handleGlobalKeyUp(C.keyCode,C.shiftKey,C.ctrlKey,C.altKey,C.metaKey,
C.key,C.code):z.handleGlobalKeyDown(C.keyCode,C.shiftKey,C.ctrlKey,C.altKey,C.metaKey,C.key,C.code,C.repeat);C.keyCode!==38&&C.keyCode!==40&&Ic(C.keyCode,C.shiftKey,G.isShortsPage);_.S9(Q)})};
_.n.focusSearchBox=function(){_.oo(this.hostElement,"yt-focus-searchbox")};
_.n.openHotkeyDialog=function(){_.oo(this.hostElement,"yt-open-hotkey-dialog")};
_.n.isMiniplayerActive=function(){return _.I8().resolve(_.Od).isMiniplayerActive()};
_.n.closeMiniplayer=function(C,F){return this.isMiniplayerActive()?(_.I8().resolve(_.Od).close(),Ic(C,F,this.isShortsPage),!0):!1};
_.n.toggleTheaterMode=function(C,F){var G=_.l5(_.s3().getState()),V=this.getPlayerManager(),J=_.y("disable_theater_mode_keyboard")||_.oD("START_IN_FULL_WINDOW_MODE");V&&!J&&(G=!G,_.gz()&&_.y("external_fullscreen")&&(G=!0),_.rz(this.hostElement,"yt-toggle-theater-mode",[G]),Ic(C,F,this.isShortsPage))};
_.n.toggleMiniplayer=function(C,F){var G=this.getPlayerManager();if(this.isMiniplayerActive()){var V;((V=_.I8().resolve(_.Qt(_.qG)))==null?0:V.isOnWatch())?_.I8().resolve(_.Od).close(!0):_.IK(_.I8().resolve(_.Od));Ic(C,F,this.isShortsPage)}else G&&(_.rz(this.hostElement,"yt-activate-miniplayer-from-watch-action"),Ic(C,F,this.isShortsPage))};
_.n.handlePlayerSpaceKey=function(C,F){var G=!!_.gE()||this.isMiniplayerActive();G=_.y("disable_space_scroll_fix")||G;_.y("global_spacebar_pause")&&!this.isKeyBoardInUse()&&G&&(C.preventDefault(),this.passEventToPlayer(C,F))};
_.n.isPresentingTheaterMode=function(){return _.y("web_watch_enable_tm_esc_key")?_.l5(_.s3().getState())&&!_.gz():!1};
zM.prototype.onMiniplayerActiveChange=zM.prototype.onMiniplayerActiveChange;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],zM.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],zM.prototype,"ytdReduxBehavior",void 0);_.R([_.L({selector:_.vai}),_.Y("design:type",Boolean)],zM.prototype,"inlinePreviewIsActive",void 0);_.R([_.L({selector:_.RYB}),_.Y("design:type",Boolean)],zM.prototype,"isShortsPage",void 0);
_.R([_.L({selector:_.yj}),_.Y("design:type",Boolean)],zM.prototype,"miniplayerIsActive",void 0);_.R([_.iP("miniplayerIsActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zM.prototype,"onMiniplayerActiveChange",null);_.R([_.e({disableElementRegistration:!0,is:"yt-hotkey-manager"})],zM);_.q(zM,"yt-hotkey-manager",void 0,{mode:_.oN("kevlar_poly_si_batch_j081")?1:2});var Qd=function(){var C=_.B.apply(this,arguments)||this;C.loopStateEntityKey_=null;C.playlistLoopStateEntity_=null;C.isShuffleNextPlaylist=!1;C.PLAYER_EVENTS_=new Map;C.playerListenersSetup_=!1;C.videoSkipJob_=0;C.canAutoAdvance_=!1;C.playerManager_=null;C.TEST_ONLY={};return C};
_.O(Qd,_.B);_.n=Qd.prototype;_.n.ready=function(){_.I8().addProvider({provide:_.Fx,useValue:this.hostElement})};
_.n.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_)};
_.n.attached=function(){document.addEventListener("yt-navigate-start",_.Gp(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.Gp(this,this.onYtNavigateFinish_))};
_.n.detached=function(){document.removeEventListener("yt-navigate-start",_.Gp(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.Gp(this,this.onYtNavigateFinish_))};
_.n.updatePlaylistEventListeners=function(C,F){F&&!this.playerListenersSetup_?(this.playerManager_=C,this.registerPlaylistEventListeners_(C)):!F&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(C))};
_.n.setPlayer=function(C){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=C};
_.n.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.n.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.n.registerPlaylistEventListeners_=function(C){var F=this;C.getPlayerPromise().then(function(G){F.playerListenersSetup_||(F.ytPlayerListenerBehavior.listenToPlayerEvents(G,F.PLAYER_EVENTS_),F.playerListenersSetup_=!0)})};
_.n.removePlaylistEventListeners_=function(C){var F=this;C.getPlayerPromise().then(function(G){F.playerListenersSetup_&&(F.ytPlayerListenerBehavior.unlistenFromPlayerEvents(G,F.PLAYER_EVENTS_),F.playerListenersSetup_=!1)})};
_.n.setPlaylistComponent=function(C){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.Gp(this,this.onPlaylistYtNavigate_)),C&&(C.data&&this.playlistComponent.data&&C.data.playlistId==this.playlistComponent.data.playlistId?(C.loopOn=this.playlistComponent.loopOn,C.shuffleOn=this.playlistComponent.shuffleOn):(C.loopOn=!1,C.shuffleOn=!1),this.isShuffleNextPlaylist&&(C.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=C;this.playlistComponent.addEventListener("yt-navigate",
_.Gp(this,this.onPlaylistYtNavigate_))};
_.n.setAutoplayRenderer=function(C){this.autoplayData=C};
_.n.setPlaylistData=function(C){this.currentPlaylistData_=C;_.oo(this.hostElement,"yt-playlist-data-updated");_.xf.isEmpty(C)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(C)};
_.n.setPlayerPlaybackControlData=function(C){this.playerManager_&&this.playerManager_.updatePlayerComponents(C.playlistPanelRenderer)};
_.n.getPlaylistData=function(){return this.currentPlaylistData_};
_.n.getTempData_=function(C,F){if(this.playlistComponent==null)return null;C={};this.playlistComponent.shuffleOn&&(C.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(C.loop_on=this.playlistComponent.loopOn);F&&(C.autonav="1",_.I8().resolve(_.zb),F=_.I1(),F>0&&(C.lact=F),this.playerManager_&&(F=this.playerManager_.getPlayer())&&F.shouldSendVisibilityState()&&(F=F.getVisibilityState(),F!=0&&(C.vis=F)));_.y("enable_unknown_lact_fix_on_html5")&&(_.I8().resolve(_.zb),C.lact=
_.I1());return C};
_.n.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.n.setLoopStateEntityKey_=function(C){var F;this.loopStateEntityKey_=((F=this.getPlaylistLoopData_(C))==null?void 0:F.playlistLoopStateEntityKey)||null};
_.n.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.n.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.n.skipVideo=function(){var C=this,F=_.y("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||F)F=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.Iy(_.gT,function(){C.onPlaylistNext();C.videoSkipJob_=0},F)};
_.n.cancelVideoSkip=function(){this.videoSkipJob_&&(_.gT.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.n.isInBackground_=function(){var C=window.document.visibilityState;return!(!C||C=="visible")};
_.n.onPlaylistIndex_=function(C){this.playlistComponent&&(C=this.playlistComponent.data.contents[C].playlistPanelVideoRenderer.navigationEndpoint,_.oo(this.hostElement,"yt-navigate",{endpoint:C,tempData:this.getTempData_(C)}))};
_.n.onPlayerStateChange_=function(C){if(C=C==0&&this.playlistComponent&&this.canAutoAdvance_)C=_.Ef.getInstance(),C=!(C.autonavState_===3?C.autonavPauseReason_&&C.autonavPauseReason_.inputBoxFocus===!0:C.autonavState_===1&&C.disabledAutonavPauseReason_&&C.disabledAutonavPauseReason_.inputBoxFocus===!0);C&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.n.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.n.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.n.navigateToAutoplayWatchEndpoint_=function(C,F,G){var V=this.playlistComponent.data.currentIndex,J=this.getNumPlayableVideos_();C=="NORMAL"&&F=="autoplayVideo"&&V+1>=J&&G||!(C=this.getVideoEndpoint_(C,F))||(G=this.getTempData_(C,G),_.oo(this.hostElement,"yt-navigate",{endpoint:C,tempData:G}))};
_.n.getNumPlayableVideos_=function(){for(var C=0,F=_.u(this.playlistComponent.data.contents||[]),G=F.next();!G.done;G=F.next())G.value.playlistPanelVideoRenderer&&(C+=1);return C};
_.n.getVideoEndpoint_=function(C,F){if(this.autoplayData&&this.autoplayData.sets)for(var G=0,V=this.autoplayData.sets.length;G<V;G++){var J=this.autoplayData.sets[G];if(J.mode==C){if(J[F])return J[F];break}}else C=new _.Ay("AutoplayData is undefined in playlist manager","Mode: "+C+" endpoint: "+F),_.Yw(C)};
_.n.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.n.onPlaylistYtNavigate_=function(C){if(C.detail.endpoint){C.stopPropagation();var F=C.detail;F.tempData=this.getTempData_(C.detail.endpoint);_.oo(this.hostElement,"yt-navigate",F)}};
_.n.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.n.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.n.playlistLoopStateEntityChanged_=function(C){var F=this,G,V,J;return _.I(function(b){if(b.nextAddress==1){if(!C)return b.return();G=C.state==="PLAYLIST_LOOP_STATE_ONE";return F.playerManager_?b.yield(F.playerManager_.getPlayerPromise(),3):b.jumpTo(2)}b.nextAddress!=2&&(V=b.yieldResult,V.setLoopVideo(G));J=C.state==="PLAYLIST_LOOP_STATE_ALL";F.playlistComponent&&(F.playlistComponent.loopOn=J);_.S9(b)})};
_.n.getPlaylistLoopData_=function(C){var F,G;if(C=C==null?void 0:(F=C.playlistButtons)==null?void 0:(G=F.menuRenderer)==null?void 0:G.topLevelButtons)for(F=_.u(C),G=F.next();!G.done;G=F.next())if(G=G.value,G.playlistLoopButtonRenderer)return G.playlistLoopButtonRenderer};
_.n.getLoopStateCommand_=function(C){var F=this.getPlaylistData(),G;F=((G=this.getPlaylistLoopData_(F))==null?void 0:G.states)||[];var V;C=(V=_.Z(F[C?1:2],_.aw$))==null?void 0:V.button;var J;return(J=_.Z(C,_.DY))==null?void 0:J.command};
_.n.onPlayerLoopChange_=function(C){this.playlistLoopStateEntity_&&(C?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(C=this.getLoopStateCommand_(C))&&this.ytComponentBehavior.resolveCommand(C)};
_.n.onSleepTimerSettingsChanged_=function(C){this.canAutoAdvance_=C!=="End of video"};
Qd.prototype.onPlaylistLoopStateEntityChanged=Qd.prototype.onPlaylistLoopStateEntityChanged;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Qd.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.Fi.YtPlayerListenerBehavior),_.Y("design:type",_.GR)],Qd.prototype,"ytPlayerListenerBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],Qd.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Qd.prototype,"loopStateEntityKey_",void 0);
_.R([_.L({selectorArgs:["loopStateEntityKey_"],selector:_.cn.playlistLoopStateEntitySelector}),_.Y("design:type",Object)],Qd.prototype,"playlistLoopStateEntity_",void 0);_.R([_.iP("playlistLoopStateEntity_"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qd.prototype,"onPlaylistLoopStateEntityChanged",null);_.R([_.e({disableElementRegistration:!0,is:"yt-playlist-manager"})],Qd);_.q(Qd,"yt-playlist-manager",void 0,{mode:_.oN("kevlar_poly_si_batch_j081")?1:2});var yIW,Zwh=function(){if(yIW!==void 0)return yIW;var C=document.createElement("template");_.X(C,"\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");C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return yIW=C};var I$=function(){var C=_.B.apply(this,arguments)||this;C.lastCallback=null;C.getAccountLinkPromises={};C.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);C.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return C};
_.O(I$,_.B);_.n=I$.prototype;_.n.getLocation=function(){return window.location.href};
_.n.getCompletionUrl=function(){return _.s5(this.getLocation())};
_.n.containsRedirectState=function(C){return(C=_.Ed(_.QbB(C)))?(new URLSearchParams(C)).get("redirect_state")!==null:!1};
_.n.createGalConfig=function(C,F){var G=new fEd;C=G=F?this.getPopupOrRedirectSetting(G,_.TF("LINK_API_KEY"),_.TF("LINK_API_KEY_REDIRECT"),C):hSr(G,_.TF("LINK_API_KEY"));C.authUser=_.TF("SESSION_INDEX")||0;C.supportedFlows=new Set([4]);return C.build()};
_.n.getPopupOrRedirectSetting=function(C,F,G,V){this.isGalInteractionPopupMode(V)?(C.interactionMode=0,C=hSr(C,F)):(C.interactionMode=1,F=this.getCompletionUrl(),C.completionUrl=F,C=hSr(C,G));return C};
_.n.isGalInteractionPopupMode=function(C){if(this.redirectModeProviderAllowlist.has(C))switch(C){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.n.getStatusEntityKeyForProviderId=function(C){return _.C7(C+":all","accountLinkStatusEntity")};
_.n.findNestedPropValue=function(C,F){var G=!1,V=null;JSON.stringify(C,function(J,b){G||J!==F||(G=!0,V=b);return G?null:b});
return V};
_.n.findAccountLinkButtonViewModel=function(C,F){var G=null,V=!1;JSON.stringify(C,function(J,b){V||b.accountLinkStatusEntityKey!==F||b.accountLinkStatusSecondaryEntityKey||(V=!0,G=b);return V?null:b});
return G};
_.n.executeLinkingSuccessOrFailureCommands=function(C,F,G){var V=null,J;(F==null?0:(J=F.url)==null?0:J.includes("account_sharing"))?V=F==null?void 0:F.response:V=F==null?void 0:F.response;(F=this.findAccountLinkButtonViewModel(V,C))?(C=G?this.findNestedPropValue(F,"onSuccessCommand"):this.findNestedPropValue(F,"onFailureCommand"))?_.jj([C],this.hostElement):_.CD(Error("Al")):_.CD(Error("Bl`"+C))};
_.n.handleInitializeRequest=function(C,F){var G=this,V=CCx(this.createGalConfig(C,!0));this.containsRedirectState(this.getLocation())?rMr(C,V.config,V.galService).then(function(J){var b=G.getStatusEntityKeyForProviderId(C);if(J.statusCode===1)F&&G.executeLinkingSuccessOrFailureCommands(b,F,!0),J=G.getLocation().indexOf("#"),J!==-1&&window.history.pushState(null,"",G.getLocation().substring(0,J));else return F&&G.executeLinkingSuccessOrFailureCommands(b,F,!1),Promise.reject(Error(J.statusMessage))}).catch(function(J){_.Yw(J);
_.q1("gamingAccountLinkStatusChanged",{serviceId:C,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(J)}):this.getAccountLinkPromises[C]=V.startLinkingSession({serviceId:C})};
_.n.handleAccountLinkCommand=function(C){_.Z(C,AZV)&&this.handleLinkRequest(_.Z(C,AZV))};
_.n.handleLinkRequest=function(C){var F=this,G=C.thirdPartyId;if(G)if(this.isGalInteractionPopupMode(G)){var V=function(){F.closeAndFire("ytd-gaming-account-link-setting-renderer",C.onFailureCommand)},J=function(){F.closeAndFire("ytd-gaming-account-link-setting-renderer",C.onSuccessCommand)};
this.lastCallback=J;this.getAccountLinkPromises[G].then(function(b){EHM(b).then(function(z){z.statusCode===1?J():V()})}).catch(function(){V()})}else this.getAccountLinkPromises[G].then(function(b){EHM(b).then(function(z){if(z.statusCode!==1)return Promise.reject(Error(z.statusMessage))})}).catch(function(b){_.Yw(b);
_.q1("gamingAccountLinkStatusChanged",{serviceId:G,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(b)})};
_.n.closeAndFire=function(C,F){_.rz(this.hostElement,"yt-close-popup-action",[C]);F&&_.jj([F],this.hostElement)};
_.n.handleAccountUnlinkCommand=function(C){_.Z(C,e3W)&&this.handleUnlinkRequest(_.Z(C,e3W))};
_.n.handleUnlinkRequest=function(C){var F=this,G=C.thirdPartyId;if(G){var V=function(){F.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",C.onFailureCommand)},J=function(){F.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",C.onSuccessCommand)};
this.lastCallback=J;var b=CCx(this.createGalConfig(G,!1));this.unlinkUserGal(b,G).then(function(z){z.statusCode===1?J():V()}).catch(function(){V()})}};
_.n.unlinkUserGal=function(C,F){return C.deleteLink(F)};
_.n.handleLogAccountLinkingEventCommand=function(C){_.y("enable_gel_log_commands")&&_.Z(C,dR8)&&(C=_.Z(C,dR8).event)&&_.q1("gamingAccountLinkStatusChanged",C)};
_.I6.Object.defineProperties(I$,{template:{configurable:!0,enumerable:!0,get:function(){return Zwh()}}});
_.R([_.w(_.lc.YtOpenPopupBehavior),_.Y("design:type",Object)],I$.prototype,"ytOpenPopupBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],I$.prototype,"ytActionHandlerBehavior",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-third-party-manager"})],I$);_.q(I$,"ytd-third-party-manager",function(){return Zwh()},{mode:_.oN("kevlar_poly_si_batch_j081")?1:2});var NY_,OwW=function(){if(NY_!==void 0)return NY_;var C=document.createElement("template");_.X(C,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return NY_=C};var E7=function(){var C=_.B.apply(this,arguments)||this;C.currentPage=void 0;C.renderLoadingStateJobId=0;C.updatePageDataJobId=0;C.pageDisposeJobsets=new WeakMap;C.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"};C.shouldApplyLockupToWatchTransition=_.y("web_thumbnail_to_watch_transition");C.shouldApplySlideTransition=_.kU("web_page_transition_type")==="slide"||_.y("enable_plj_landing_page");C.shouldApplyLearningJourneyTransition=_.y("enable_plj_landing_page");C.TEST_ONLY=void 0;return C};
_.O(E7,_.B);_.n=E7.prototype;_.n.ready=function(){var C=_.I8();C.addProvider({provide:_.qG,useValue:this});C.addProvider({provide:_.hxr,useValue:this})};
_.n.created=function(){this.pagePool=new rpt;this.contextSwitcher=new njr};
_.n.attached=function(){_.oo(this.hostElement,"attached");var C=_.I8().resolve(_.Qt(_.zt));C&&(this.contextSwitcher.JSC$20100_networkService_=C);this.viewTransitionManager=_.I8().resolve(_.vq)};
_.n.getPageOffset=function(C){return C.getScrollTop()};
_.n.setPageOffset=function(C,F){try{C.setScrollTop(F)}catch(G){}};
_.n.setPageOffsetForNavigation=function(C,F){_.oo(this.hostElement,"yt-navigate-set-page-offset",{page:C,offset:F===void 0?0:F})};
_.n.pauseActiveContext=function(){var C=this.contextSwitcher;C.activeContext_&&C.activeContext_.pause()};
_.n.getModuleNameForType=function(C){return C==="watch"?_.y("kevlar_watch_fixie")?"watchFixie":_.y("kevlar_watch_grid")?"watchGrid":"watchFlexy":C==="shorts"||C==="search"?C:"browse"};
_.n.attachPage=function(C){var F,G=!_.y("pc_is_attached_ks")&&(C==null?void 0:(F=C.polymerController)==null?void 0:F.isAttached);if(!C.isAttached&&!G)try{_.ot(this.hostElement).appendChild(C)}catch(J){var V;_.Yw(new _.Ay("Error attaching page element for component",{origin:(V=this.currentPage)==null?void 0:V.is,component:C.is}))}};
_.n.setActivePage=function(C,F){var G=this,V=!1,J=function(){var b=G.isOnWatch(),z=G.currentPage;if(C)if(C!==G.currentPage){z&&(z.hidden=!0,z.active=!1,z.removeAttribute("role"));G.currentPage=C;var Q,E=F!=null?F:_.Vk((Q=G.data)==null?void 0:Q.endpoint);z&&_.oo(G.hostElement,"yt-page-type-changed",{oldPageType:z.is,newPageType:C.is,newPageSubtype:E});_.Av().dispatch(_.rh({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:C.is}));_.Av().dispatch(_.rh({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:E||""}));
C.hidden=!1;G.attachPage(C);C.active=!0;C.setAttribute("role","main");z&&G.setPageOffsetForNavigation(C,0);_.y("kevlar_remove_page_dom_on_switch")&&!b&&z&&_.ot(G.hostElement).removeChild(z)}else V=!0;else G.handleMissingDestinationPage(z)};
this.shouldRunBrowseTransition(this.currentPage,C)?Bcr(this.viewTransitionManager,J):this.shouldRunLearningJourneyTransition(this.currentPage,C)?hmd(this.viewTransitionManager,J):J();return V};
_.n.handleMissingDestinationPage=function(C){if(this.isColdLoadForUnknownPage(C))_.Yw(new _.Ay("Cold load for unknown page"));else{var F;C=new _.Ay("Unable to set active page",C?C.is:"unknown origin",(F=this.data)==null?void 0:F.endpoint);_.gD(C)}};
_.n.isColdLoadForUnknownPage=function(C){return!C&&FK(this.data)==="unknown"};
_.n.shouldRunBrowseTransition=function(C,F){return this.shouldApplySlideTransition&&(C==null?void 0:C.is)==="ytd-browse"&&(F==null?void 0:F.is)==="ytd-browse"&&C!==F};
_.n.shouldRunLearningJourneyTransition=function(C,F){return this.shouldApplyLearningJourneyTransition&&(C==null?void 0:C.is)==="ytd-browse"&&((F==null?void 0:F.is)==="ytd-watch-learning-journey"||(F==null?void 0:F.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.n.shouldRunWatchNextLoadedTransition=function(C,F){return this.viewTransitionManager&&C.is==="ytd-watch-flexy"&&F};
_.n.updatePageData=function(C){var F=this,G=this.data;this.updatePageDataJobId&&_.gT.cancelJob(this.updatePageDataJobId);this.data=C;return new _.N1(function(V){var J=function(){C.filler?F.performDataUpdate(C,G):qWU(function(){F.performDataUpdate(C,G)});
var E=_.Vc();_.iM(E,"cr")||E.processSignal("cr");V()},b=function(){C&&C.page==="watch"?F.updatePageDataJobId=_.Iy(_.gT,J):J()};
if(_.y("kevlar_enable_mss_page_modules_client")&&C){var z=_.I8().resolve(_.wp),Q=F.getModuleNameForType(C.page);(z=SvV(z,[Q]))?z.then(b):b()}else b()})};
_.n.isDownloadsPage=function(C){var F,G;return(C==null?void 0:(F=C.endpoint)==null?void 0:(G=F.browseEndpoint)==null?void 0:G.browseId)==="FEdownloads"};
_.n.setPlayerSyncInterval=function(C){var F;return _.I(function(G){if(G.nextAddress==1)return G.yield(_.I8().resolve(_.rE),2);F=G.yieldResult;F.setUpPositionSyncInterval(C);_.S9(G)})};
_.n.performDataUpdate=function(C,F){_.y("kevlar_early_popup_close")||_.rz(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var G=!C.filler;G&&(_.NV("lps"),_.y("config_age_report_killswitch")||lDs());var V=FK(C),J,b=!1;if(_.y("kevlar_remove_page_dom_on_switch")){var z=F&&FK(F);V===z&&(J=this.getCurrentPage())}J||(J=GM(this.pagePool,V));G&&RPl(this.pagePool.elementPoolPopulator,V);G&&!this.renderLoadingStateJobId&&(b=this.setActivePage(J));if(J){z=V==="watch";var Q=
V==="shorts",E=V==="learning_journey_watch";_.y("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(J);if(z||Q||E)J.playerData=C.playerResponse;if(Q)if(_.y("web_enable_delay_shorts_sequence_call")){C.reelWatchSequenceResponse&&(C.reelWatchSequenceResponse.entries||C.reelWatchSequenceResponse.prevEntries)&&(J.reelWatchSequenceResponse=C.reelWatchSequenceResponse);J.currentEndpoint=C.endpoint;var t;J.isPreviousPageShorts=!!(F==null?0:(t=F.endpoint)==null?0:t.reelWatchEndpoint);
var k,U;C.cachedSequenceParams=((k=C.endpoint)==null?void 0:(U=k.reelWatchEndpoint)==null?void 0:U.sequenceParams)||C.cachedSequenceParams||(F==null?void 0:F.cachedSequenceParams);var H,l;C.cachedSequenceProvider=((H=C.endpoint)==null?void 0:(l=H.reelWatchEndpoint)==null?void 0:l.sequenceProvider)||C.cachedSequenceProvider||(F==null?void 0:F.cachedSequenceProvider);J.cachedSequenceParams=C.cachedSequenceParams;J.cachedSequenceProvider=C.cachedSequenceProvider}else if(_.y("web_enable_shorts_sequence_cache_fix")){C.reelWatchSequenceResponse&&
(C.reelWatchSequenceResponse.entries||C.reelWatchSequenceResponse.prevEntries)?J.reelWatchSequenceResponse=C.reelWatchSequenceResponse:J.cachedReelWatchSequenceResponse&&!J.reelWatchSequenceResponse&&(J.reelWatchSequenceResponse=J.cachedReelWatchSequenceResponse);C.reelWatchSequenceResponse&&(F==null?void 0:F.page)!=="shorts"&&(J.cachedReelWatchSequenceResponse=C.reelWatchSequenceResponse);J.currentEndpoint=C.endpoint;var N;J.isPreviousPageShorts=!!(F==null?0:(N=F.endpoint)==null?0:N.reelWatchEndpoint)}else{C.reelWatchSequenceResponse&&
(C.reelWatchSequenceResponse.entries||C.reelWatchSequenceResponse.prevEntries)?J.reelWatchSequenceResponse=C.reelWatchSequenceResponse:C.cachedReelWatchSequenceResponse?J.reelWatchSequenceResponse=C.cachedReelWatchSequenceResponse:_.y("web_enable_cached_reel_sequence_fix")&&J.cachedReelWatchSequenceResponse&&!J.reelWatchSequenceResponse&&(J.reelWatchSequenceResponse=J.cachedReelWatchSequenceResponse);J.currentEndpoint=C.endpoint;var S;J.isPreviousPageShorts=!!(F==null?0:(S=F.endpoint)==null?0:S.reelWatchEndpoint);
C.cachedReelWatchSequenceResponse=C.reelWatchSequenceResponse||C.cachedReelWatchSequenceResponse||(F==null?void 0:F.cachedReelWatchSequenceResponse);J.cachedReelWatchSequenceResponse=C.cachedReelWatchSequenceResponse}t=this.isDownloadsPage(C);k=this.isDownloadsPage(F);t&&!k?this.setPlayerSyncInterval(6E5):!t&&k&&this.setPlayerSyncInterval();_.y("block_all_player_prefetch_requests")||this.preparePrefetchRequest(C,J,G,z,Q,E);ccV(_.I8().resolve(_.Od),F,C);if(_.y("enable_ai_companion")){var f;(f=_.I8().resolve(_.Qt(_.qj)))==
null||_.bBs(f,this.getPersistentPanelSurface(V))}_.nR(_.I8().resolve(_.zb));_.y("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(J);G?(G=typeof J.loadPage,G==="function"?(J.pageContext=ubl(this.contextSwitcher,J,J.data!==C.response),G=function(){J.loadPage(C.response)},this.shouldApplySlideTransition&&J.is==="ytd-browse"&&b&&(V==="learning"||this.isDifferentBrowseId(C==null?void 0:C.endpoint,F==null?void 0:F.endpoint))?Bcr(this.viewTransitionManager,G):this.shouldRunWatchNextLoadedTransition(J,
b)?fdh(this.viewTransitionManager,G):G()):_.R1(new _.Ay("b/38014653 ",[V,
J.is,J.nodeName,G,J.isAttached,F&&FK(F),this.hostElement.children.length])),_.NV("pdl")):(J.hidden=!0,C.response.filler=!0,J.data=C.response,this.attachPage(J));_.oo(this.hostElement,"yt-page-data-updated",{pageType:V})}_.c8(_.gT,function(){_.y("logging_avoid_blocking_during_navigation")&&_.OZT().transition("none");var c=O6s(),A=J;if(C){var T=QEr(C),P=Ioh(C),g;a:{if(C.playerResponse){var r=C.playerResponse,C9;if((g=r.auxiliaryUi)==null?0:(C9=g.messageRenderers)==null?0:C9.upsellDialogRenderer){g=
r.auxiliaryUi.messageRenderers.upsellDialogRenderer;break a}}else if(C.response&&(g=C.response,(r=g.overlay)==null?0:r.upsellDialogRenderer)){g=g.overlay.upsellDialogRenderer;break a}g=void 0}var Wo;var EB;C9=(Wo=C.playerResponse)==null?void 0:(EB=Wo.auxiliaryUi)==null?void 0:EB.messageRenderers;Wo=(C9==null?void 0:C9.enforcementMessageViewModel)||(C9==null?void 0:C9.bkaEnforcementMessageViewModel);Wo=(Wo==null?void 0:Wo.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?Wo:void 0;
var L9;a:{if(C.response&&(EB=C.response,(L9=EB.overlay)==null?0:L9.commandWrapperPromoRenderer)){L9=EB.overlay.commandWrapperPromoRenderer;break a}L9=void 0}Nbh(c,T,P,g,Wo,L9,A)}})};
_.n.preparePrefetchRequest=function(C,F,G,V,J,b){var z,Q,E,t,k,U,H,l,N,S,f,c,A,T,P;return _.I(function(g){if(g.nextAddress==1)return!G||!(V||J||b)||_.y("kevlar_disable_background_prefetch")&&_.pW(_.ca9)()===0?g.return():(z=_.PB(F))?g.yield(z.getPlayerPromise(),2):g.return();Q=g.yieldResult;E=_.I8().resolve(_.Qt(_.zt));if(!E)return g.return();if(J)return t=_.xZ(_.Oi),pdr(t,(k=C.endpoint)==null?void 0:k.reelWatchEndpoint,F.reelWatchSequenceResponse,Q,E),g.return();l=(U=C.response)==null?void 0:(H=U.responseContext)==
null?void 0:H.webResponseContextExtensionData;if(!l)return g.return();A=(N=C.response)==null?void 0:(S=N.contents)==null?void 0:(f=S.twoColumnWatchNextResults)==null?void 0:(c=f.autoplay)==null?void 0:c.autoplay;T=_.I8().resolve(_.Fx);P=_.xZ(_.Oi);mXh(P,l,Q,E,T,A);_.S9(g)})};
_.n.movePlayerToWatch=function(C){var F=this,G,V;return _.I(function(J){G=GM(F.pagePool,"watch");V=G.getPlayerContainer();C.appendTo(V);_.S9(J)})};
_.n.movePlayerToShorts=function(C){var F=this,G,V,J;return _.I(function(b){G=GM(F.pagePool,"shorts");V=G.getPlayerContainer();(J=C)==null||J.appendTo(V,void 0,!0);_.S9(b)})};
_.n.getPlayerFromWatch=function(){var C=GM(this.pagePool,"watch");return _.PB(C)};
_.n.getPlayerFromShorts=function(){var C=GM(this.pagePool,"shorts");return _.PB(C)};
_.n.startLoadingWatch=function(){var C=this,F=GM(this.pagePool,"watch");this.renderLoadingStateJobId?(_.gT.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.y("web_watch_transition_enable_start_loading_watch_callsite")?v0r(this.viewTransitionManager,function(){C.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(F,"watch");
if(_.y("enable_ai_companion")){var G;(G=_.I8().resolve(_.Qt(_.qj)))==null||_.bBs(G,this.getPersistentPanelSurface("watch"))}};
_.n.startLoadingShorts=function(){var C=GM(this.pagePool,"shorts");this.setActivePage(C,"shorts")};
_.n.startLoadingLearningJourney=function(){var C=GM(this.pagePool,"learning_journey_watch");this.setActivePage(C,"learning_journey_watch")};
_.n.getCurrentPage=function(){return this.currentPage};
_.n.getDestinationPageType=function(){return this.destinationPageType};
_.n.getCurrentData=function(){return this.data};
_.n.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.n.isOnShorts=function(){var C;return((C=this.currentPage)==null?void 0:C.is)==="ytd-shorts"};
_.n.isWatchPage=function(C){return!!C&&(C.is==="ytd-watch-flexy"||C.is==="ytd-watch-fixie"||C.is==="ytd-watch-grid")};
_.n.preparePage=function(C,F){var G=this,V=function(){var z=G.pagePool.preparePage(C,G.currentPage,F);z&&G.attachPage(z)},J=function(z){_.Tf(z,F);
_.Yw(z)};
if(_.y("kevlar_enable_mss_page_modules_client")){var b=this.getModuleNameForType(C);if(b=SvV(_.I8().resolve(_.wp),[b])){b.then(V.bind(this)).catch(J.bind(this));return}}try{V()}catch(z){J(z)}};
_.n.lazyPrepareCriticalPages=function(C,F){C=_.Vk(F)||C;_.y("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(C).then(this.maybePrepareWatchPage.bind(this,C)):this.maybePrepareWatchPage(C)};
_.n.maybePrepareWatchPage=function(C){C==="watch"||C==="learning_journey_watch"&&_.y("web_watch_learning_journey_disable_lazy_pages")||_.c8(_.gT,this.preparePage.bind(this,"watch"))};
_.n.downloadPageModules=function(C){C=this.getModuleNameForType(C);var F=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);F.delete(C);var G=_.I8().resolve(_.wp);G.JSC$18815_loadModules(C);return G.JSC$18815_loadModules.apply(G,_.da(F))};
_.n.renderPageLoadingState=function(C,F){this.preparePage(C,F);var G=GM(this.pagePool,C);G.loadingData&&(G.loadingData.endpoint=F);G.loading=!0;this.setActivePage(G,C);C!=="watch"&&C!=="learning_journey_watch"||_.oo(this.hostElement,"yt-guide-close")};
_.n.prepareForNavigation=function(C,F){var G=this;if(this.currentPage&&this.data){var V=_.Vk(F)||C;this.destinationPageType=V;FK(this.data)==V&&_.oo(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((C==="watch"||C==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.gT.cancelJob(this.renderLoadingStateJobId);_.I8().resolve(_.Od).deactivate(F);_.FD(_.gT,function(){var b=G.viewTransitionManager,z=G.currentPage;
if(b.isLockupToWatchTransitionEnabled&&b.isLockupThumbnailRegistrationEnabled&&z)if(b.registeredLockupThumbnail)b.lockupThumbnailRegisteredFromWatchEndpoint&&_.Yw(new _.Ay("Lockup thumbnail already registered from watch endpoint."));else{a:{var Q=_.Z(F,_.eT);if(Q==null?0:Q.videoId){var E="yt-lockup-view-model ."+_.Kf5(Q.videoId)+" yt-thumbnail-view-model";z=z.querySelectorAll(E);if(z.length===1){Q=z[0];break a}z.length>1?_.Yw(new _.Ay("Multiple LockupViewModel thumbnails found for videoId: "+Q.videoId+
". Selector: "+E)):_.y("web_thumbnail_to_watch_transition_debug")&&_.Yw(new _.Ay("No LockupViewModel thumbnail found for videoId: "+Q.videoId+". Selector: "+E))}Q=void 0}Q&&(b.registeredLockupThumbnail=Q,b.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.des(b,Q))}});
var J=this.data;this.renderLoadingStateJobId=_.FD(_.gT,function(){v0r(G.viewTransitionManager,function(){if(G.data!=J){var b=GM(G.pagePool,C);G.setActivePage(b)}else G.renderPageLoadingState(C,F);G.renderLoadingStateJobId=0})},150)}};
_.n.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var C=new _.$a(1);this.currentPage.pageDisposeJobs.forEach(function(F){_.bc(C,F)});
this.pageDisposeJobsets.set(this.currentPage,C)}};
_.n.flushPageDisposeJobset=function(C){var F=this.pageDisposeJobsets.get(C);F&&(F.flushJobs(),this.pageDisposeJobsets.delete(C))};
_.n.onYtStopOldPlayer=function(C,F){F=F===void 0?!1:F;var G,V=_.Uw("kevlar_new_stop_old_player_logic_pages");if(_.y("kevlar_check_current_page_on_stop_old_player")&&(V.length===0||this.currentPage&&V.includes(this.currentPage.is)))if(this.data&&(G=FK(this.data)),FK(C)===G&&this.currentPage&&FK(this.currentPage.data)!==G)var J=_.PB(this.currentPage);else G=FK(this.data),J=GM(this.pagePool,G),J=_.PB(J);else this.data&&(G=FK(this.data),J=GM(this.pagePool,G),J=_.PB(J));if(J){V=FK(C);var b=GM(this.pagePool,
V);b=_.PB(b);if(J==b)F&&!_.y("kevlar_disable_preemptive_player_reset")&&J.resetForNewPlayback();else if(F=G==="watch"&&V!=="watch",!F||V==="shorts"||_.oFu()&&!Urr(this.data,C))C=_.I8().resolve(_.Od),F&&C.isMiniplayerActive()&&C.pipController.getWindow()||J.stop()}};
_.n.isDifferentBrowseId=function(C,F){C=_.Z(C,_.iE);F=_.Z(F,_.iE);return(C==null?void 0:C.browseId)!==(F==null?void 0:F.browseId)};
_.n.getPersistentPanelSurface=function(C){switch(C){case "watch":return"WATCH";default:return"APP"}};
_.I6.Object.defineProperties(E7,{template:{configurable:!0,enumerable:!0,get:function(){return OwW()}}});
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],E7.prototype,"ytActionHandlerBehavior",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-page-manager"})],E7);_.q(E7,"ytd-page-manager",function(){return OwW()},{mode:_.oN("kevlar_poly_si_batch_j081")?1:2});var XOh;var W_=function(){var C=_.B.apply(this,arguments)||this;C.useListItemStyles=_.y("web_list_item_style_for_menu_items");C.systemIcons=_.y("kevlar_system_icons");return C};
_.O(W_,_.B);_.n=W_.prototype;_.n.ready=function(){this.hostElement.addEventListener("tap",_.Gp(this,this.onEndpointTapExtra))};
_.n.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.n.onFocus=function(){var C;(C=_.ot(this.hostElement).querySelector("tp-yt-paper-item"))==null||C.focus()};
_.n.onEndpointTapExtra=function(C){_.oo(this.hostElement,"iron-activate");var F=this.data.navigationEndpoint;F&&_.Z(F,_.y_I)&&(C.stopPropagation(),_.pX(this.hostElement,[F],this.hostElement))};
_.n.computeIcon=function(C){return C&&C.iconType?_.p5(C.iconType):""};
_.n.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.n.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.n.forceUpdateStylesOnLegacyBrowsers=function(){_.y("kevlar_legacy_browsers")&&_.jr(this.hostElement)};
W_.prototype.forceUpdateStylesOnLegacyBrowsers=W_.prototype.forceUpdateStylesOnLegacyBrowsers;W_.prototype.onFocus=W_.prototype.onFocus;_.R([_.w(_.nK),_.Y("design:type",Object)],W_.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.w(_.bTr.YtConditionalRendererBehavior),_.Y("design:type",Object)],W_.prototype,"ytConditionalRendererBehavior",void 0);_.R([_.w(_.yR.YtEndpointBehavior),_.Y("design:type",Object)],W_.prototype,"ytEndpointBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],W_.prototype,"data",void 0);_.R([_.L({computed:"computeIcon(data.icon)",value:""}),_.Y("design:type",String)],W_.prototype,"icon",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],W_.prototype,"useIcons",void 0);_.R([_.L({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],W_.prototype,"hasSeparator",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],W_.prototype,"useListItemStyles",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],W_.prototype,"systemIcons",void 0);_.R([_.VG("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],W_.prototype,"onFocus",null);_.R([_.iP("useIcons","hasSeparator"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],W_.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.q(W_,"ytd-menu-navigation-item-renderer",function(){if(XOh===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);XOh=C}C=XOh;return C},{mode:1});var wOV;var Mgx=_.eN(_.iQ("DOWNLOAD",{},"Download")),S2h=_.eN(_.iQ("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),LQ_=_.eN(_.iQ("RETRY",{},"Retry")),BY3=_.eN(_.iQ("PAUSE_DOWNLOADING",{},"Pause downloading")),v1d=_.eN(_.iQ("RESUME_DOWNLOAD",{},"Resume download")),tF=function(){var C=_.B.apply(this,arguments)||this;C.primaryText=Mgx;C.primaryIconType="OFFLINE_DOWNLOAD";C.hasSecondaryContent=!1;C.hasSeparator=!1;C.transferState="TRANSFER_STATE_UNKNOWN";C.isVideoDeletedByUser=!1;C.isHidden=!1;C.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return C};
_.O(tF,_.B);_.n=tF.prototype;_.n.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.n.onFocus=function(){this.primaryEntry.focus()};
_.n.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.n.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.n.getRemoveAction=function(){return"ACTION_REMOVE"};
_.n.sendOfflineAction=function(C){var F=this.data.serviceEndpoint;if(F){var G=_.Z(F,_.VJ);G&&C&&(G.action=C);this.ytComponentBehavior.resolveCommand(F)}};
_.n.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=Mgx,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=Mgx;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=LQ_;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=S2h;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=v1d;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=S2h;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
BY3;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=S2h;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=S2h;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=Mgx,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.n.showHideButton=function(){var C;this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||((C=this.playerStateEntity)==null?void 0:C.adsState)==="ADS_STATE_PLAYING"};
_.n.isSecondaryEntryHidden=function(C,F){return C?!0:!F};
_.n.computeHasSeparator=function(){var C;return!((C=this.data)==null||!C.hasSeparator)};
_.n.computePlayerStateEntityKey=function(C){return C};
tF.prototype.showHideButton=tF.prototype.showHideButton;tF.prototype.onTransferStateChange=tF.prototype.onTransferStateChange;tF.prototype.onFocus=tF.prototype.onFocus;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],tF.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],tF.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],tF.prototype,"ytComponentBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],tF.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],tF.prototype,"primaryText",void 0);_.R([_.L(),_.Y("design:type",String)],tF.prototype,"primaryIconType",void 0);_.R([_.L(),_.Y("design:type",String)],tF.prototype,"primaryAction",void 0);_.R([_.L(),_.Y("design:type",Object)],tF.prototype,"secondaryText",void 0);_.R([_.L(),_.Y("design:type",String)],tF.prototype,"secondaryIconType",void 0);
_.R([_.L(),_.Y("design:type",String)],tF.prototype,"secondaryAction",void 0);_.R([_.L(),_.Y("design:type",Object)],tF.prototype,"hasSecondaryContent",void 0);_.R([_.L({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.Y("design:type",Object)],tF.prototype,"hasSeparator",void 0);_.R([_.L({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.Y("design:type",String)],tF.prototype,"playerStateEntityKey",void 0);
_.R([_.L({selector:_.mr,selectorArgs:["playerStateEntityKey"]}),_.Y("design:type",Object)],tF.prototype,"playerStateEntity",void 0);_.R([_.L({selector:_.O3,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.Y("design:type",String)],tF.prototype,"transferState",void 0);_.R([_.L({selector:_.DQ5,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.Y("design:type",Object)],tF.prototype,"isVideoDeletedByUser",void 0);
_.R([_.L(),_.Y("design:type",Object)],tF.prototype,"isHidden",void 0);_.R([_.L({selector:_.gai,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.Y("design:type",Object)],tF.prototype,"offlineabilityState",void 0);_.R([_.$z("#primary-entry"),_.Y("design:type",Object)],tF.prototype,"primaryEntry",void 0);_.R([_.VG("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tF.prototype,"onFocus",null);
_.R([_.zp("transferState","isVideoDeletedByUser"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tF.prototype,"onTransferStateChange",null);_.R([_.zp("offlineabilityState","playerStateEntity"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tF.prototype,"showHideButton",null);
_.q(tF,"ytd-menu-service-item-download-renderer",function(){if(wOV===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);wOV=C}C=wOV;return C},{mode:1});var fTt;var a$=function(){var C=_.B.apply(this,arguments)||this;C.useIcons=!1;C.systemIcons=_.y("kevlar_system_icons");C.useListItemStyles=_.y("web_list_item_style_for_menu_items");return C};
_.O(a$,_.B);_.n=a$.prototype;_.n.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.n.onFocus=function(){var C;(C=_.ot(this.hostElement).querySelector("tp-yt-paper-item"))==null||C.focus()};
_.n.onTap=function(){_.KX(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var C=this.data.serviceEndpoint,F=this.data.command;if(C){var G,V=(G=this.data)==null?void 0:G.trackingParams;G=!!_.Z(C,_.jkE);V&&G&&_.s3().dispatch(_.rh({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:V}}));this.ytComponentBehavior.resolveCommand(C)||_.I8().resolve(_.WD).resolveCommand(C,{form:{element:this.hostElement}})}F&&(this.ytComponentBehavior.resolveCommand(F)||_.pX(this.hostElement,
[F],this.hostElement))};
_.n.computeIcon=function(C){return C&&C.iconType?_.p5(C.iconType):""};
_.n.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.n.computeHasSeparator=function(){var C;return!((C=this.data)==null||!C.hasSeparator)};
_.n.forceUpdateStylesOnLegacyBrowsers=function(){_.y("kevlar_legacy_browsers")&&_.jr(this.hostElement)};
_.n.computeIsSelected=function(){var C;return!((C=this.data)==null||!C.isSelected)};
a$.prototype.forceUpdateStylesOnLegacyBrowsers=a$.prototype.forceUpdateStylesOnLegacyBrowsers;a$.prototype.onTap=a$.prototype.onTap;a$.prototype.onFocus=a$.prototype.onFocus;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],a$.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nK),_.Y("design:type",Object)],a$.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],a$.prototype,"ytComponentBehavior",void 0);
_.R([_.w(_.bTr.YtConditionalRendererBehavior),_.Y("design:type",Object)],a$.prototype,"ytConditionalRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],a$.prototype,"data",void 0);_.R([_.L({computed:"computeIcon(data.icon)",value:""}),_.Y("design:type",String)],a$.prototype,"icon",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],a$.prototype,"useIcons",void 0);
_.R([_.L({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],a$.prototype,"hasSeparator",void 0);_.R([_.L({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],a$.prototype,"isSelected",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],a$.prototype,"systemIcons",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],a$.prototype,"useListItemStyles",void 0);
_.R([_.VG("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],a$.prototype,"onFocus",null);_.R([_.VG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],a$.prototype,"onTap",null);_.R([_.iP("useIcons","hasSeparator"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],a$.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.q(a$,"ytd-menu-service-item-renderer",function(){if(fTt===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);fTt=C}C=fTt;return C},{mode:2});var hEd;var kI=function(){return _.B.apply(this,arguments)||this};
_.O(kI,_.B);_.n=kI.prototype;_.n.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.n.onDataChanged=function(){var C=this;_.zH(this,function(){C.postbox.openDialog();C.focus();_.oo(C.hostElement,"yt-refit")})};
_.n.focus=function(){this.postbox.focus()};
_.n.closePopup=function(){_.rz(this.hostElement,"yt-close-popup-action")};
_.n.onYtCommentboxDismiss=function(){this.closePopup()};
kI.prototype.onYtCommentboxDismiss=kI.prototype.onYtCommentboxDismiss;kI.prototype.onDataChanged=kI.prototype.onDataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],kI.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],kI.prototype,"data",void 0);_.R([_.L({value:function(){return _.iQ("SBOX_INAPPROPRIATE_CANCEL")}}),
_.Y("design:type",String)],kI.prototype,"closeButtonAriaLabel",void 0);_.R([_.$z("#postbox"),_.Y("design:type",Object)],kI.prototype,"postbox",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kI.prototype,"onDataChanged",null);_.R([_.VG("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kI.prototype,"onYtCommentboxDismiss",null);
_.R([_.e({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],kI);
_.q(kI,"ytd-backstage-post-dialog-popup-renderer",function(){if(hEd!==void 0)return hEd;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return hEd=C},{mode:1});var cI8;var AIx=function(){return _.B.apply(this,arguments)||this};
_.O(AIx,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],AIx.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],AIx.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],AIx);
_.q(AIx,"ytd-sender-id-section-renderer",function(){if(cI8!==void 0)return cI8;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);
return cI8=C},{mode:1});var eE3;var dLl;var xLt;var U7=function(){return _.B.apply(this,arguments)||this};
_.O(U7,_.B);U7.prototype.closePopup=function(){_.rz(this.hostElement,"yt-close-popup-action")};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],U7.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],U7.prototype,"data",void 0);_.R([_.Z5({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],U7);
_.q(U7,"yt-community-post-section-renderer",function(){if(xLt===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;dLl===void 0&&(dLl=document.createElement("template"));var V=dLl;G.call(F,V.content.cloneNode(!0),C.content.firstChild);xLt=C}C=xLt;return C},{mode:2});var siW;var q2L;var Prl;var g1r;var REl;var Y2d;var TYl=function(){return _.B.apply(this,arguments)||this};
_.O(TYl,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],TYl.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],TYl.prototype,"data",void 0);_.R([_.Z5({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],TYl);
_.q(TYl,"yt-share-start-time-with-context-renderer",function(){if(Y2d===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;REl===void 0&&(REl=document.createElement("template"));var V=REl;G.call(F,V.content.cloneNode(!0),C.content.firstChild);Y2d=C}C=Y2d;return C},{mode:2});var H_=function(){return _.B.apply(this,arguments)||this};
_.O(H_,_.B);H_.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],H_.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],H_.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],H_.prototype,"data",void 0);_.R([_.Z5({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],H_);
_.q(H_,"yt-share-panel-title-v15-renderer",function(){if(g1r===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;Prl===void 0&&(Prl=document.createElement("template"));var V=Prl;G.call(F,V.content.cloneNode(!0),C.content.firstChild);g1r=C}C=g1r;return C},{mode:2});var l4=function(){return _.B.apply(this,arguments)||this};
_.O(l4,_.B);l4.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"}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],l4.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],l4.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],l4.prototype,"data",void 0);_.R([_.Z5({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],l4);
_.q(l4,"yt-share-panel-header-renderer",function(){if(q2L===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;siW===void 0&&(siW=document.createElement("template"));var V=siW;G.call(F,V.content.cloneNode(!0),C.content.firstChild);q2L=C}C=q2L;return C},{mode:2});var o18;var rIr;var yd=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-open-popup-action":"onOpen"};return C};
_.O(yd,_.B);_.n=yd.prototype;_.n.attached=function(){this.onOpen()};
_.n.updateTimeSecs=function(C){this.currentTimeSecs=C};
_.n.computeTimeString=function(C){C=C.toString();var F=Math.floor(Number(C)/3600),G=Math.floor(Number(C)%3600%60);return(F>0?F+":":"")+_.jI(Math.floor(Number(C)%3600/60),F>0?2:1)+":"+_.jI(G,2)};
_.n.computeTimeStringA11y=function(C){return _.ViE({seconds:C})};
_.n.getTimeParam=function(){return vCd(this.timeString)};
_.n.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var C={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},F;_.MJ(_.ia(),(F=this.data)==null?void 0:F.trackingParams,C,7)};
_.n.onChangeStartAtTimestamp=function(){for(var C=this.startAtTimestamp.value.split(":"),F=0,G=1,V=C.length-1;V>=0;V--)F+=Number(C[V])*G,G*=60;this.updateTimeSecs(F);this.setTimestamp()};
_.n.onOpen=function(){var C=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var F=_.gE();F?F.getPlayerPromise().then(function(G){G=G.getCurrentTime();C.updateTimeSecs(G)}):F2V()&&this.updateTimeSecs(F2V())};
_.n.setTimestamp=function(){var C=Math.floor(this.currentTimeSecs);_.rz(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!C,timestamp:C||""}])};
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],yd.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],yd.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],yd.prototype,"data",void 0);_.R([_.L({value:!1,notify:!0}),_.Y("design:type",Boolean)],yd.prototype,"isStartAtChecked",void 0);_.R([_.L(),_.Y("design:type",Number)],yd.prototype,"currentTimeSecs",void 0);
_.R([_.L({computed:"computeTimeString(currentTimeSecs)"}),_.Y("design:type",String)],yd.prototype,"timeString",void 0);_.R([_.L({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.Y("design:type",String)],yd.prototype,"timeStringA11y",void 0);_.R([_.$z("#start-at-timestamp"),_.Y("design:type",Object)],yd.prototype,"startAtTimestamp",void 0);_.R([_.Z5({is:"yt-start-at-renderer",disableElementRegistration:!0})],yd);
_.q(yd,"yt-start-at-renderer",function(){if(rIr===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;o18===void 0&&(o18=document.createElement("template"));var V=o18;G.call(F,V.content.cloneNode(!0),C.content.firstChild);rIr=C}C=rIr;return C},{mode:2});var KQ_;var DLh;var pO3=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"]]),mL_=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"]]),C6U=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var jHl={};jHl.YtBindingExpressionsBehavior={identity:_.As,msg:function(C,F){F=F===void 0?{}:F;return _.iQ(C,F,C)},
msgPlural:function(C,F){return _.J3(C,F)},
getMusicIconFromType:function(C){if(_.y("music_web_enable_icon_wil"))C=_.p5(C);else if(mL_.has(C))C="yt-sys-icons:"+mL_.get(C);else{var F=pO3.get(C)||_.p5(C).split(":")[1];F=_.OGZ(F);var G;C=((G=C6U.get(C))!=null?G:"yt-sys-icons:")+F}return C}};var F3h;var G8M;var VbM;var iFU=document.head,J73=iFU.appendChild,$yd;if(VbM===void 0){var bF8=document.createElement("template");_.X(bF8,'\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>');VbM=bF8}$yd=VbM;J73.call(iFU,$yd.content);var Zq=function(){var C=_.B.apply(this,arguments)||this;C.screenLayer=7;return C};
_.O(Zq,_.B);Zq.prototype.getScreenLayer=function(){return this.screenLayer};
Zq.prototype.onTap=function(C){C&&C.detail&&(C.detail.x||C.detail.y)&&_.ot(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.DQ(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(C=this.getScreenLayer(),_.oo(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:C}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.I6.Object.defineProperties(Zq.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()}}});
Zq.prototype.onTap=Zq.prototype.onTap;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Zq.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Zq.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Zq.prototype,"data",void 0);_.R([_.M("data.title"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Zq.prototype,"title",null);
_.R([_.M("data.serviceName"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Zq.prototype,"icon",null);_.R([_.VG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Zq.prototype,"onTap",null);_.R([_.Z5({is:"yt-share-target-renderer",disableElementRegistration:!0})],Zq);
_.q(Zq,"yt-share-target-renderer",function(){if(G8M===void 0){var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" active="true" icon="[[icon]]" size="60"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;F3h===void 0&&(F3h=document.createElement("template"));var V=F3h;G.call(F,V.content.cloneNode(!0),C.content.firstChild);G8M=C}C=G8M;return C},{mode:2});var nqx;var uvx;var Nt=function(){var C=_.B.apply(this,arguments)||this;C.SHARE_TARGET_WIDTH=70;C.SHARE_TARGET_MARGIN_RIGHT=8;C.PAGE_SCROLL_SPEED=9;C.actionMap={"yt-share-panel-reset-action":"onReset_"};return C};
_.O(Nt,_.B);_.n=Nt.prototype;_.n.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.n.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.ot(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.ot(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.n.onReset_=function(){if(_.ot(this.hostElement).querySelector("#list")){var C=_.ot(this.hostElement).querySelector("#list");var F=_.ot(this.hostElement).querySelector("#list");var G=F.offsetLeft,V=F.offsetParent;V||_.LiG(F)!="fixed"||(V=_.gS(F).documentElement);if(V){if(_.KV&&!_.pV(58)){var J=_.dlu(V);G+=J.left}else Number(_.C87)>=8&&!(Number(_.C87)>=9)&&(J=_.dlu(V),G-=J.left);F=_.AGE(V)?V.clientWidth-(G+F.offsetWidth):G}else F=G;mYr(C,F);this.updateScrollButtons_()}};
_.n.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.n.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.n.onScrollWheel_=function(C){C.stopPropagation();C.preventDefault();var F=peU(_.ot(this.hostElement).querySelector("#list"));C=Math.abs(C.deltaX)>Math.abs(C.deltaY)?C.deltaX:C.deltaY;mYr(_.ot(this.hostElement).querySelector("#list"),F+C);this.updateScrollButtons_()};
_.n.smoothScrollByOnePage_=function(C){var F=_.ot(this.hostElement).querySelector("#list"),G=(Math.floor(F.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,V=peU(F),J=G*(C?1:-1),b=this.PAGE_SCROLL_SPEED,z=this.updateScrollButtons_.bind(this),Q=0,E;(function k(){Q+=b;E=Q/G*2;mYr(F,V+J*(E<1?E*E:-E*E+4*E-2));Q<G?window.requestAnimationFrame(k):z()})()};
_.n.updateScrollButtons_=function(){var C=peU(_.ot(this.hostElement).querySelector("#list")),F=_.ot(this.hostElement).querySelector("#list").scrollWidth-_.ot(this.hostElement).querySelector("#list").clientWidth;_.ot(this.hostElement).querySelector("#scroll-button-back").hidden=C<=0;_.ot(this.hostElement).querySelector("#scroll-button-forward").hidden=C>=F};
Nt.prototype.onScrollWheel_=Nt.prototype.onScrollWheel_;Nt.prototype.onDataChanged_=Nt.prototype.onDataChanged_;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Nt.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],Nt.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(jHl.YtBindingExpressionsBehavior),_.Y("design:type",Object)],Nt.prototype,"ytBindingExpressionsBehavior",void 0);
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Nt.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Nt.prototype,"data",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Nt.prototype,"onDataChanged_",null);_.R([_.VG("wheel"),_.Y("design:type",Function),_.Y("design:paramtypes",[WheelEvent]),_.Y("design:returntype")],Nt.prototype,"onScrollWheel_",null);
_.R([_.Z5({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],Nt);
_.q(Nt,"yt-third-party-share-target-section-renderer",function(){if(uvx===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;nqx===void 0&&(nqx=document.createElement("template"));var V=nqx;G.call(F,V.content.cloneNode(!0),C.content.firstChild);uvx=C}C=uvx;return C},{mode:2});var O7=function(){return _.B.apply(this,arguments)||this};
_.O(O7,_.B);O7.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"}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],O7.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],O7.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],O7.prototype,"data",void 0);_.R([_.Z5({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],O7);
_.q(O7,"yt-third-party-network-section-renderer",function(){if(DLh===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;KQ_===void 0&&(KQ_=document.createElement("template"));var V=KQ_;G.call(F,V.content.cloneNode(!0),C.content.firstChild);DLh=C}C=DLh;return C},{mode:2});_.gQ(_.d(function(C){return _.W("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.W("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.W(_.uC,{data:function(){return C.data().firstPartyItems}},{listItemViewModel:_.oi})))},"Yi"),"first-party-network-section-view-model",{props:{data:_.CJ}});var zWr=(0,_.Bzl)(_.gu.share,{parentClickTrackingParamsSelector:function(C){return C.parentClickTrackingParams}});var QHM=_.h6(["data:image/svg+xml;charset=UTF-8;base64,",""]),Xy=function(){var C=_.B.apply(this,arguments)||this;C.screenLayer=7;C.qrCodeEnabled=_.y("web_enable_sharing_qr_code");C.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return C};
_.O(Xy,_.B);_.n=Xy.prototype;_.n.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"}}}};
_.n.attached=function(){this.JSC$20342_scroller&&(this.JSC$20342_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20342_scroller.attached&&typeof this.JSC$20342_scroller.attached==="function"&&this.JSC$20342_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.n.onDataChanged=function(){var C=this,F;(F=this.data)!=null&&F.contents&&(this.hostElement.setAttribute("links-only","true"),_.m5(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.zH(this,function(){_.oo(C.hostElement,"yt-refit");C.focusSharePanelHeader()}))};
_.n.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.n.handleSetTimestamp=function(C){var F=this.shortUrl();C.isSet&&(F=_.xk(F,"t",C.timestamp));this.maybeRenderQrCode(F)};
_.n.shortUrl=function(){var C,F=(C=this.data)==null?void 0:C.contents;if(F)for(C=0;C<F.length;C++){var G=void 0,V=void 0;if((G=F[C])==null?0:(V=G.thirdPartyNetworkSection)==null?0:V.copyLinkContainer){var J=V=G=void 0;return(J=_.Z((G=F[C])==null?void 0:(V=G.thirdPartyNetworkSection)==null?void 0:V.copyLinkContainer,ks3))==null?void 0:J.shortUrl}}};
_.n.maybeRenderQrCode=function(C){var F=this,G,V,J,b,z,Q,E,t,k;return _.I(function(U){if(U.nextAddress==1){G=_.ot(F.hostElement).querySelector("#qr-code");if(!F.qrCodeEnabled||!C)return G&&(G.style.display="none"),U.return();V=_.A_I(_.I8().resolve(_.mm),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});J=document.createElement("div");return typeof V==="function"?(V(J),U.jumpTo(2)):U.yield(V,3)}U.nextAddress!=2&&(b=U.yieldResult,b(J));E=(z=J)==null?void 0:(Q=z.firstChild)==null?void 0:Q.firstChild;
t=document.createElement("img");k=_.$aI(QHM,btoa(E.outerHTML));t.onload=function(){var H={canvas:G,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:t},l=new k3W;Nvr(l,C);OY8(l,!1,Xlr(l));var N=l.modules,S=Object.assign({},mJh,H);N=structuredClone(N);H=N.length;var f,c=(f=S.canvas)!=null?f:document.createElement("canvas");f=S.cellSize;l=S.logo;var A,T=(A=S.logoSize)!=null?A:Math.floor(H/4);H%2!==T%2&&T++;var P=S.logoPadding,g=S.backgroundColor;A=H*f;var r=
S.width,C9=0;r&&(C9=S.padding,C9=Math.ceil(C9*A/(r-C9*2)),c.style.width=r+"px",c.style.height=r+"px");c.width!==A+C9*2&&(c.width=A+C9*2);c.height!==A+C9*2&&(c.height=A+C9*2);A=c.getContext("2d");S.autoClear&&A.clearRect(0,0,c.width,c.height);A.fillStyle=g;A.beginPath();A.roundRect(0,0,c.width,c.height,S.borderRadius);A.fill();A.save();A.translate(C9,C9);if(l)for(c=Math.floor(H-T)/2-P,P=Math.floor(H+T)/2+P,g=c;g<P;g++)for(r=c;r<P;r++)N[g][r]=!1;for(c=0;c<H;c++)for(P=0;P<H;P++)(c<7&&P<7||c<7&&P>=H-
7||c>=H-7&&P<7)&&(N[c][P]=!1);var Wo;c=(Wo=S.markerColor)!=null?Wo:S.color;MVM(A,0,0,f,c);MVM(A,f*(H-7),0,f,c);MVM(A,0,f*(H-7),f,c);switch(S.cellStyle){case 0:Wo=N;N=Wo.length;c=S.cellSize;A.beginPath();for(P=0;P<N;P++)for(g=0;g<N;g++)Wo[P][g]&&A.rect(P*c,g*c,c,c);A.fillStyle=S.color;A.fill();break;case 1:Wo=N;N=Wo.length;c=S.cellSize;P=c*S.relativeCircleSize;A.fillStyle=S.color;A.beginPath();for(S=0;S<N;S++)for(g=0;g<N;g++)Wo[S][g]&&(A.beginPath(),A.ellipse((S+.5)*c,(g+.5)*c,P/2,P/2,0,0,2*Math.PI),
A.fill());A.fill();break;case 2:Wo=N;N=Wo.length;c=S.cellSize;A.fillStyle=S.color;S=[[1,1],[-1,1],[-1,-1],[1,-1]];A.beginPath();for(P=0;P<N;P++)for(g=0;g<N;g++)if(Wo[P][g])A.roundRect(P*c,g*c,c,c,c/2),P+1<N&&Wo[P+1][g]&&A.rect(P*c+c/2,g*c,c,c),g+1<N&&Wo[P][g+1]&&A.rect(P*c,g*c+c/2,c,c);else{r=P*c+c/2;C9=g*c+c/2;for(var EB=0;EB<4;EB++){var L9=_.u(S[EB]),ki=L9.next().value;L9=L9.next().value;P+ki>=0&&P+ki<N&&g+L9>=0&&g+L9<N&&Wo[P+ki][g]&&Wo[P][g+L9]&&Wo[P+ki][g+L9]&&(ki=EB*Math.PI/2,L9=c/2,A.moveTo(r+
L9*Math.cos(ki),C9+L9*Math.sin(ki)),A.arc(r,C9,c/2,ki,ki+Math.PI/2,!1),A.lineTo(r+L9*(Math.cos(ki)-Math.sin(ki)),C9+L9*(Math.cos(ki)+Math.sin(ki))),A.lineTo(r+L9*Math.cos(ki),C9+L9*Math.sin(ki)))}}A.fill()}l&&A.drawImage(l,(H-T)*f/2,(H-T)*f/2,T*f,T*f);A.restore();G.style.removeProperty("display")};
t.src=_.eS(k);_.S9(U)})};
_.n.hasCommunityPostRenderer=function(){var C,F,G,V;return!!((C=this.data)==null?0:(F=C.header)==null?0:(G=F.sharePanelHeaderRenderer)==null?0:(V=G.communityPost)==null?0:V.communityPostSectionRenderer)};
_.n.onTapClose=function(){_.rz(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.n.getScreenLayer=function(){return this.screenLayer};
_.n.logSharePanelPage=function(){if(!_.y("enable_share_panel_navigation_logging_fix_on_web")){var C;if((C=this.data)!=null&&C.trackingParams){C=this.data.trackingParams;var F=this.parentClickTrackingParams;F=F?_.zS(F):void 0;var G=_.ia();_.NJ(G,21760,F,{layer:7,parentLayer:0});G.graftServerVe(C,void 0,7);_.s3().dispatch(_.rh({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
Xy.prototype.onDataChanged=Xy.prototype.onDataChanged;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Xy.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Xy.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],Xy.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],Xy.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],Xy.prototype,"data",void 0);_.R([_.L({value:_.iQ("SBOX_INAPPROPRIATE_CANCEL")}),_.Y("design:type",String)],Xy.prototype,"closeButtonAriaLabel",void 0);_.R([_.$z("yt-share-panel-header-renderer"),_.Y("design:type",HTMLElement)],Xy.prototype,"header",void 0);_.R([_.L({selector:zWr.parentClickTrackingParamsSelector}),_.Y("design:type",String)],Xy.prototype,"parentClickTrackingParams",void 0);_.R([_.L(),_.Y("design:type",Object)],Xy.prototype,"qrCodeEnabled",void 0);
_.R([_.$z("#scroller"),_.Y("design:type",Object)],Xy.prototype,"JSC$20342_scroller",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Xy.prototype,"onDataChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],Xy);
_.q(Xy,"ytd-unified-share-panel-renderer",function(){if(eE3!==void 0)return eE3;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return eE3=C},{mode:1});var I3W;var wl=function(){var C=_.B.apply(this,arguments)||this;C.modernModal=!0;return C};
_.O(wl,_.B);wl.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
wl.prototype.computeShouldHideOldButtons=function(){var C;return!((C=this.data)==null?0:C.button)};
_.I6.Object.defineProperties(wl.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var C,F;return(C=this.data)==null?void 0:(F=C.button)==null?void 0:F.buttonRenderer}}});
_.R([_.L(),_.Y("design:type",Object)],wl.prototype,"data",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],wl.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.h9.YtEventForwardingBehavior),_.Y("design:type",Object)],wl.prototype,"ytEventForwardingBehavior",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],wl.prototype,"modernModal",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],wl.prototype,"buttonRendererData",null);
_.R([_.e({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],wl);
_.q(wl,"ytd-modal-with-title-and-button-renderer",function(){if(I3W!==void 0)return I3W;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return I3W=C},{mode:1});var EqM;var Mt=function(){return _.B.apply(this,arguments)||this};
_.O(Mt,_.B);Mt.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G6("page-changed",this.page))};
Mt.prototype.pageChangedForBinding=Mt.prototype.pageChangedForBinding;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Mt.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Mt.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",String)],Mt.prototype,"page",void 0);_.R([_.iP("page"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Mt.prototype,"pageChangedForBinding",null);
_.R([_.e({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],Mt);
_.q(Mt,"ytd-account-item-section-header-renderer",function(){if(EqM!==void 0)return EqM;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return EqM=C},{mode:1});var W3V;var SY=function(){return _.B.apply(this,arguments)||this};
_.O(SY,_.B);SY.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"}}}};
SY.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],SY.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],SY.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.G1),_.Y("design:type",Object)],SY.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],SY.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!1}),_.Y("design:type",Function)],SY.prototype,"onAccountItemTap",void 0);
_.R([_.e({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],SY);
_.q(SY,"ytd-account-item-section-renderer",function(){if(W3V!==void 0)return W3V;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return W3V=C},{mode:1});var tbV;var a3r;var k83=function(){return _.B.apply(this,arguments)||this};
_.O(k83,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],k83.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],k83.prototype,"data",void 0);_.R([_.e({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],k83);
_.q(k83,"ytd-accounts-dialog-header-renderer",function(){if(a3r!==void 0)return a3r;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return a3r=C},{mode:1});var Uyh;var Lo=function(){return _.B.apply(this,arguments)||this};
_.O(Lo,_.B);Lo.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Lo.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Lo.prototype,"data",void 0);_.R([_.e({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],Lo);
_.q(Lo,"ytd-google-account-header-renderer",function(){if(Uyh!==void 0)return Uyh;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Uyh=C},{mode:1});var B_=function(){return _.B.apply(this,arguments)||this};
_.O(B_,_.B);B_.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"}}}};
B_.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G6("page-changed",this.page))};
B_.prototype.pageChangedForBinding=B_.prototype.pageChangedForBinding;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],B_.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],B_.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],B_.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",String)],B_.prototype,"page",void 0);
_.R([_.iP("page"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],B_.prototype,"pageChangedForBinding",null);_.R([_.e({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],B_);
_.Tp()(B_,"ytd-account-section-list-renderer",function(){if(tbV===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);tbV=C}C=tbV;return C},{allowedProps:["data"],
mode:1});var HFV;var v_=function(){var C=_.B.apply(this,arguments)||this;C.enableHandlesAccountMenuSwitcher=_.y("enable_handles_account_menu_switcher");return C};
_.O(v_,_.B);v_.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
v_.prototype.dataChanged=v_.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],v_.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],v_.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],v_.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.R([_.$z("#avatar"),_.Y("design:type",Object)],v_.prototype,"avatar",void 0);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],v_.prototype,"dataChanged",null);_.R([_.e({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],v_);
_.Tp()(v_,"ytd-active-account-header-renderer",function(){if(HFV===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);HFV=C}C=HFV;return C},{allowedProps:["data"],
mode:1});var l3_;var y7l;var fo=function(){return _.B.apply(this,arguments)||this};
_.O(fo,_.B);fo.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
fo.prototype.onBackTap=function(){_.oo(this.hostElement,"yt-menu-back-tapped")};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],fo.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],fo.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],fo.prototype,"data",void 0);_.R([_.e({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],fo);
_.Tp()(fo,"ytd-simple-menu-header-renderer",function(){if(y7l===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);y7l=C}C=y7l;return C},{allowedProps:["data"],
mode:2});var ZFt;var N_M=function(){return _.B.apply(this,arguments)||this};
_.O(N_M,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],N_M.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],N_M.prototype,"data",void 0);_.R([_.e({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],N_M);
_.q(N_M,"ytd-comment-video-thumbnail-header-renderer",function(){if(ZFt!==void 0)return ZFt;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return ZFt=C},{mode:1});var OFL;var X4V=function(){return _.B.apply(this,arguments)||this};
_.O(X4V,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],X4V.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],X4V.prototype,"data",void 0);_.R([_.e({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],X4V);
_.q(X4V,"ytd-abuse-type-selector-renderer",function(){if(OFL!==void 0)return OFL;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return OFL=C},{mode:1});var w4W;var MbU=(0,_.Bzl)(_.gu.reportChannelAbuse,{isVideoIdSelectedSelector:function(C,F){return F in C.selectedVideoIds},
additionalContextSelector:function(C){return C.additionalContext},
impersonatedChannelUrlSelector:function(C){return C.impersonatedChannelUrl},
reportChannelAbuseSelector:function(C){return C}});var hF=function(){return _.B.apply(this,arguments)||this};
_.O(hF,_.B);hF.prototype.attached=function(){var C=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){C.additionalContextInput.focusTextInput()})};
hF.prototype.handleAdditionalContextChanged=function(){var C=this;_.Bb(this,"ytd-report-channel-additional-context-update",function(){C.ytdReduxBehavior.dispatch(_.rh({type:"ADDITIONAL_CONTEXT_UPDATED",payload:C.additionalContext}))},300)};
hF.prototype.updateAdditionalContextFromBinding=function(C){this.additionalContext=C.detail.value};
hF.prototype.handleAdditionalContextChanged=hF.prototype.handleAdditionalContextChanged;_.R([_.w(_.Rr),_.Y("design:type",Object)],hF.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",String)],hF.prototype,"additionalContext",void 0);_.R([_.L({selector:MbU.additionalContextSelector}),_.Y("design:type",String)],hF.prototype,"additionalContextRedux",void 0);_.R([_.L(),_.Y("design:type",Object)],hF.prototype,"data",void 0);
_.R([_.$z("yt-text-input-form-field-renderer"),_.Y("design:type",Object)],hF.prototype,"additionalContextInput",void 0);_.R([_.iP("additionalContext"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hF.prototype,"handleAdditionalContextChanged",null);_.R([_.e({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],hF);
_.q(hF,"ytd-report-channel-modal-additional-context-renderer",function(){if(w4W!==void 0)return w4W;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return w4W=C},{mode:1});var SJV;var c_=function(){var C=_.B.apply(this,arguments)||this;C.nextButtonDisabled=null;C.submitEndpoint=null;C.navigationEndpoint=null;C.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return C};
_.O(c_,_.B);_.n=c_.prototype;_.n.computeNextButtonData=function(C,F,G){var V={};F&&(V.navigationEndpoint=F);G&&(V.serviceEndpoint=G);C&&C.buttonRenderer&&_.xf.extend(V,C.buttonRenderer);return V};
_.n.handleReportChannelModalDisableNextButtonAction=function(C){this.setNextButtonIsDisabled(C)};
_.n.handleReportFormEndpointUpdateAction=function(C){this.setNextButtonIsDisabled(!!C.disableSubmitButton);this.resetEndpointData();C.submitEndpoint?this.submitEndpoint=C.submitEndpoint:C.submitNavigationEndpoint&&(this.navigationEndpoint=C.submitNavigationEndpoint)};
_.n.handleSignalActionSubmitForm=function(){var C,F=Object.keys(((C=this.reportChannelAbuseForm)==null?void 0:C.selectedVideoIds)||{}),G;C=((G=this.reportChannelAbuseForm)==null?void 0:G.additionalContext)||"";var V;G=((V=this.reportChannelAbuseForm)==null?void 0:V.impersonatedChannelUrl)||"";var J;if((J=this.data)==null?0:J.submitEndpoint){F={impersonated_channel_url:G,text:C,video_ids:F};var b;_.I8().resolve(_.WD).resolveCommand((b=this.data)==null?void 0:b.submitEndpoint,{form:Object.assign({},
F,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.n.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.n.onYtServiceRequestError=function(C){this.setNextButtonIsDisabled(!1);_.Bl(this.hostElement,C.detail.error.message)};
_.n.setNextButtonIsDisabled=function(C){this.set("data.nextButton.buttonRenderer.isDisabled",C)};
_.n.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
c_.prototype.onYtServiceRequestError=c_.prototype.onYtServiceRequestError;c_.prototype.onYtServiceRequestCompleted=c_.prototype.onYtServiceRequestCompleted;_.R([_.L(),_.Y("design:type",Object)],c_.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],c_.prototype,"nextButtonDisabled",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],c_.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],c_.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],c_.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],c_.prototype,"submitEndpoint",void 0);_.R([_.L(),_.Y("design:type",Object)],c_.prototype,"navigationEndpoint",void 0);_.R([_.L({selector:MbU.reportChannelAbuseSelector}),_.Y("design:type",Object)],c_.prototype,"reportChannelAbuseForm",void 0);
_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],c_.prototype,"onYtServiceRequestCompleted",null);_.R([_.VG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],c_.prototype,"onYtServiceRequestError",null);_.R([_.e({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],c_);
_.q(c_,"ytd-report-channel-modal-footer-renderer",function(){if(SJV!==void 0)return SJV;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return SJV=C},{mode:1});var L3s;var AF=function(){var C=_.B.apply(this,arguments)||this;C.boundOnTapDismissButton=function(){C.closePopup()};
return C};
_.O(AF,_.B);AF.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
AF.prototype.handleDataChanged=function(){_.iS(this.hostElement)};
AF.prototype.closePopup=function(){_.rz(this.hostElement,"yt-close-popup-action")};
AF.prototype.handleDataChanged=AF.prototype.handleDataChanged;_.R([_.L(),_.Y("design:type",Object)],AF.prototype,"boundOnTapDismissButton",void 0);_.R([_.L(),_.Y("design:type",Object)],AF.prototype,"data",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],AF.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],AF.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AF.prototype,"handleDataChanged",null);_.R([_.e({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],AF);
_.q(AF,"ytd-report-channel-modal-header-renderer",function(){if(L3s!==void 0)return L3s;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return L3s=C},{mode:1});var B_L;var eY=function(){var C=_.B.apply(this,arguments)||this;C.autoValidate=!1;C.invalid=!1;C.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return C};
_.O(eY,_.B);_.n=eY.prototype;_.n.attached=function(){var C=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){C.channelUrlInput.focusTextInput()})};
_.n.disableNextButton=function(C){_.rz(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[C])};
_.n.handleImpersonatedChannelUrlChanged=function(){var C=this;this.disableNextButton(!0);this.invalid=!1;_.Bb(this,"ytd-report-channel-impersonated-channel-update",function(){var F=C.impersonatedChannelUrl.trim();C.ytdReduxBehavior.dispatch(_.rh({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:F}));var G;((G=C.data)==null?0:G.submitEndpoint)&&F&&_.I8().resolve(_.WD).resolveCommand(C.data.submitEndpoint,{form:{impersonated_channel_url:F,element:C.hostElement}})},500)};
_.n.handleModifyReportFormCommand=function(C){this.invalid=this.get("modifyReportFormCommand.action",C)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.n.updateInvalidFromBinding=function(C){this.invalid=C.detail.value};
_.n.updateImpersonatedChannelUrlFromBinding=function(C){this.impersonatedChannelUrl=C.detail.value};
eY.prototype.handleImpersonatedChannelUrlChanged=eY.prototype.handleImpersonatedChannelUrlChanged;_.R([_.w(_.Rr),_.Y("design:type",Object)],eY.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],eY.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],eY.prototype,"autoValidate",void 0);_.R([_.L(),_.Y("design:type",Object)],eY.prototype,"invalid",void 0);
_.R([_.L(),_.Y("design:type",String)],eY.prototype,"impersonatedChannelUrl",void 0);_.R([_.L({selector:MbU.impersonatedChannelUrlSelector}),_.Y("design:type",String)],eY.prototype,"impersonatedChannelUrlRedux",void 0);_.R([_.L(),_.Y("design:type",Object)],eY.prototype,"data",void 0);_.R([_.$z("#text-input"),_.Y("design:type",Object)],eY.prototype,"channelUrlInput",void 0);
_.R([_.iP("impersonatedChannelUrl"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eY.prototype,"handleImpersonatedChannelUrlChanged",null);_.R([_.e({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],eY);
_.q(eY,"ytd-report-channel-modal-impersonation-renderer",function(){if(B_L!==void 0)return B_L;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return B_L=C},{mode:1});var vqt;var f3r;var dl=function(){return _.B.apply(this,arguments)||this};
_.O(dl,_.B);dl.prototype.onCheckboxToggled=function(C){var F,G,V=(G=_.Z((F=this.data)==null?void 0:F.video,_.mV))==null?void 0:G.videoId;V&&this.ytdReduxBehavior.dispatch(C.target.checked?_.rh({type:"VIDEO_SELECTED",payload:V}):_.rh({type:"VIDEO_UNSELECTED",payload:V}))};
dl.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.I6.Object.defineProperties(dl.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var C,F=(C=this.data)==null?void 0:C.video;if(!F)return{};var G;C=(G=_.Z(F,_.mV))==null?void 0:G.navigationEndpoint;if(!C)return F;_.Z(C==null?void 0:C.commandMetadata,_.GU)&&(_.Z(C.commandMetadata,_.GU).ignoreNavigation=!0);return F}}});
_.R([_.L({reflectToAttribute:!0,selector:MbU.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.Y("design:type",Boolean)],dl.prototype,"checked",void 0);_.R([_.L(),_.Y("design:type",Object)],dl.prototype,"data",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],dl.prototype,"video",null);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],dl.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],dl.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],dl.prototype,"ytdReduxBehavior",void 0);_.R([_.e({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],dl);
_.q(dl,"ytd-selectable-video-renderer",function(){if(f3r!==void 0)return f3r;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return f3r=C},{mode:1});var xI=function(){var C=_.B.apply(this,arguments)||this;C.monitorScroll=!0;return C};
_.O(xI,_.B);xI.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],xI.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],xI.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],xI.prototype,"data",void 0);_.R([_.e({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],xI);
_.q(xI,"ytd-selectable-video-list-renderer",function(){if(vqt!==void 0)return vqt;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return vqt=C},{mode:1});var hWh;_.ae("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var s7=function(){return _.B.apply(this,arguments)||this};
_.O(s7,_.B);s7.prototype.onChange=function(C){if(C=_.ev(C).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.y("kevlar_command_handler_migration_killswitch"))_.pX(this.hostElement,C,this.hostElement);else{C=_.u(C);for(var F=C.next();!F.done;F=C.next())this.ytComponentBehavior.resolveCommand(F.value)}};
s7.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
s7.prototype.updateDataToggledFromBinding=function(C){this.set("data.toggled",C.detail.value)};
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],s7.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],s7.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],s7.prototype,"data",void 0);_.R([_.L({computed:"isEnabled(data)"}),_.Y("design:type",Boolean)],s7.prototype,"enabled",void 0);_.R([_.e({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],s7);
_.q(s7,"ytd-toggle-item-renderer",function(){if(hWh!==void 0)return hWh;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return hWh=C},{mode:1});var c7W;var A7s;var eWr;var qt=function(){var C=_.B.apply(this,arguments)||this;C.setVisible=!1;C.boundOnSubmitButtonClick=function(){C.onSubmitButtonClick()};
C.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return C};
_.O(qt,_.B);qt.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}}}}}};
qt.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
qt.prototype.onSubmitButtonClick=function(){var C;((C=this.data)==null?0:C.submitEndpoint)&&!_.y("enable_ytc_refunds_submit_form_signal_action")&&_.DQ(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
qt.prototype.handleSignalActionSubmitForm=function(){var C;((C=this.data)==null?0:C.submitEndpoint)&&_.DQ(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.I6.Object.defineProperties(qt.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.hiddenByDefault)&&!this.setVisible}}});
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],qt.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],qt.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],qt.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],qt.prototype,"setVisible",void 0);_.R([_.L(),_.Y("design:type",Object)],qt.prototype,"data",void 0);
_.R([_.L(),_.Y("design:type",Object)],qt.prototype,"surveyFeedbackData",void 0);_.R([_.L(),_.Y("design:type",Object)],qt.prototype,"boundOnSubmitButtonClick",void 0);_.R([_.L({reflectToAttribute:!0}),_.M("data","setVisible"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],qt.prototype,"visibilityHidden",null);_.R([_.Z5({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],qt);
_.q(qt,"yt-flow-footer-renderer",function(){if(eWr===void 0){var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;A7s===void 0&&(A7s=document.createElement("template"));var V=A7s;G.call(F,V.content.cloneNode(!0),C.content.firstChild);eWr=C}C=eWr;return C},{mode:2});var dy3=(0,_.Bzl)(_.gu.ypc,{surveyFeedbackDataSelector:function(C){return C.surveyFeedbackData}});var P_=function(){return _.B.apply(this,arguments)||this};
_.O(P_,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],P_.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],P_.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],P_.prototype,"data",void 0);_.R([_.L({selector:dy3.surveyFeedbackDataSelector}),_.Y("design:type",Object)],P_.prototype,"surveyFeedbackData",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],P_);
_.q(P_,"ytd-flow-footer-renderer",function(){if(c7W!==void 0)return c7W;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return c7W=C},{mode:_.oN("kevlar_poly_si_batch_j025")?1:2});var xyL;var sHM;var gl=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return C};
_.O(gl,_.B);_.n=gl.prototype;_.n.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.kJ("multiPageMenuSectionItems")}}};
_.n.handleHideEnclosingAction_=function(C){if(this.data&&this.data.items)for(var F=0;F<this.data.items.length;F++){var G=this.data.items[F].notificationRenderer;if(G&&G.notificationId==C.hideEnclosingAction.notificationId){this.splice("data.items",F,1);_.rz(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.n.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.m5(this.hostElement,"hidden",!0)};
_.n.updateMenu_=function(C){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&C&&!C.doNotRefreshInbox){C=this.data.continuations;for(var F=0;F<C.length;F++)if(C[F].invalidationContinuationData){var G=void 0;var V=(G=C[F].invalidationContinuationData)==null?void 0:G.continuation;break}C=_.xf.clone(this.data.continuationUpdateEndpoint||null);C.continuation=V;C.click_tracking_params=this.data.trackingParams;_.DQ(this.hostElement,[C])}};
_.n.onServiceRequestCompleted_=function(C,F){if(this.data&&(C=F.actions)){F=0;for(var G=C.length;F<G;F++){var V=_.Z(C[F],_.X3$);if(!V)break;if((V.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||V.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&V.continuationItems&&this.data.items){var J=this.data.items.length-1;this.data.items[J].continuationItemRenderer&&(V=["data.items",J,1].concat(V.continuationItems),this.splice.apply(this,V))}}}};
gl.prototype.onServiceRequestCompleted_=gl.prototype.onServiceRequestCompleted_;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],gl.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],gl.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],gl.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],gl.prototype,"data",void 0);
_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.en]),_.Y("design:returntype")],gl.prototype,"onServiceRequestCompleted_",null);_.R([_.Z5({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],gl);
_.Tp()(gl,"yt-multi-page-menu-section-renderer",function(){if(sHM===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;xyL===void 0&&(xyL=document.createElement("template"));var V=xyL;G.call(F,V.content.cloneNode(!0),C.content.firstChild);sHM=C}C=sHM;return C},{allowedProps:["data"],
mode:2});var qJ_;var P6d;var R$=function(){return _.B.apply(this,arguments)||this};
_.O(R$,_.B);R$.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.I6.Object.defineProperties(R$.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.progress)==null?0:this.data.progress*100}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],R$.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],R$.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],R$.prototype,"data",void 0);_.R([_.M("data.progress"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],R$.prototype,"showProgressBar",null);
_.R([_.M("data.progress"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],R$.prototype,"progress",null);_.R([_.Z5({is:"yt-flow-header-renderer",disableElementRegistration:!0})],R$);
_.q(R$,"yt-flow-header-renderer",function(){if(P6d===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;qJ_===void 0&&(qJ_=document.createElement("template"));var V=qJ_;G.call(F,V.content.cloneNode(!0),C.content.firstChild);P6d=C}C=P6d;return C},{mode:2});var gqV;var RWW;var YI=function(){return _.B.apply(this,arguments)||this};
_.O(YI,_.B);YI.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],YI.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],YI.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],YI.prototype,"data",void 0);_.R([_.Z5({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],YI);
_.q(YI,"yt-post-confirmation-flow-step-renderer",function(){if(RWW===void 0){var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;gqV===void 0&&(gqV=document.createElement("template"));var V=gqV;G.call(F,V.content.cloneNode(!0),C.content.firstChild);RWW=C}C=RWW;return C},{mode:2});var YJh;var T_L;var TM=function(){return _.B.apply(this,arguments)||this};
_.O(TM,_.B);
TM.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"}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],TM.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],TM.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],TM.prototype,"data",void 0);_.R([_.Z5({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],TM);
_.q(TM,"yt-refund-confirmation-flow-step-renderer",function(){if(T_L===void 0){var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;YJh===void 0&&(YJh=document.createElement("template"));var V=YJh;G.call(F,V.content.cloneNode(!0),C.content.firstChild);T_L=C}C=T_L;return C},{mode:2});var oqr=_.d(function(C){var F=C.data;return _.W("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.W("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.W(_.AC,{data:function(){return{thumbnails:[{url:F().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.W("div",{class:"profileBadgeViewModelContent"},_.W("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return F().badgeDesc}),_.W(_.a,{cond:function(){return F().badgeSubtitle},
then:function(){return _.W("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return F().badgeSubtitle})}})))},"Zi");
oqr.idomCompat=!0;var r7M=_.d(function(C){var F=C.data;return _.W("yt-comment-interaction-view-model",{el:_.dQ(_.lC(function(){return F().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.W("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return F().onTapA11yLabel},
"on:keydown":_.dc9(),tabindex:0},_.W("div",{class:"ytCommentInteractionViewModelHeader"},_.W("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return F().headerPrefix},' "',function(){return F().videoTitle}),_.W("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.W("div",{class:"ytCommentInteractionViewModelContent"},_.W("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return F().commentContent}),_.W("div",{class:"ytCommentInteractionViewModelChevron"},
_.W(_.AC,{data:function(){return{thumbnails:[{url:F().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"$i");
r7M.idomCompat=!0;var K3U=_.d(function(C){var F=C.data;return _.W("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.W(_.uC,{data:function(){return F().avatar}},{avatarViewModel:_.g$}),_.W("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return F().channelName}))},"aj");
K3U.idomCompat=!0;var jud=_.d(function(C){var F=C.data;C={};return _.W("yt-profile-info-view-model",{class:_.py("ytProfileInfoViewModelHost",(C.ytProfileInfoViewModelWithVideoShelf=function(){return F().videosHorizontalShelf},C))},_.W(Dyl,{profileInfo:F}),_.W(_.uC,{data:function(){return F().videosHorizontalShelf}},{horizontalShelfViewModel:function(G){return _.W("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.W(_.mQ,{data:G.data}))}}),_.W(_.a,{cond:function(){return F().comments},
then:function(){return _.W(p4l,{profileInfo:F})}}),_.W(_.a,{cond:function(){return F().sharedSubscriptionsTitle},
then:function(){return _.W(_.a,{cond:function(){return F().subscriptionsAccessButtonCommand},
then:function(){return _.W(myx,{profileInfo:F})},
else:function(){return _.W(Clr,{profileInfo:F})}})}}))},"bj");
jud.idomCompat=!0;var p4l=_.d(function(C){var F=C.profileInfo;return _.W("div",{class:"ytProfileInfoViewModelActivity"},_.W("div",{class:"ytProfileInfoViewModelHeader"},_.W("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return F().commentsInteractionTitle})),_.W(_.uC,{data:function(){return F().comments}},{commentInteractionViewModel:function(G){return _.W("div",{class:"ytProfileInfoViewModelActivity"},_.W(r7M,{data:G.data}))}}))},"cj"),myx=_.d(function(C){var F=C.profileInfo;
return _.W("div",{class:"ytProfileInfoViewModelSubSection"},_.W("div",{class:"ytProfileInfoViewModelSubHeader"},_.W(_.zV,{command:function(){return F().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.W("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return F().sharedSubscriptionsTitle}),_.W("div",null,_.W(_.uC,{data:function(){return F().subscriptionsAccessButton}},{buttonViewModel:_.tS})))),_.W(FR3,{sharedSubscriptions:function(){var G;
return((G=F().sharedSubscriptions)==null?void 0:G.slice(0,5))||[]}}))},"dj"),Clr=_.d(function(C){var F=C.profileInfo;
return _.W("div",{class:"ytProfileInfoViewModelSubSection"},_.W("div",{class:"ytProfileInfoViewModelSubHeader"},_.W("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return F().sharedSubscriptionsTitle})),_.W(FR3,{sharedSubscriptions:function(){var G;
return((G=F().sharedSubscriptions)==null?void 0:G.slice(0,5))||[]}}))},"ej"),FR3=_.d(function(C){return _.W("div",{class:"ytProfileInfoViewModelSubs"},_.W(_.uC,{data:C.sharedSubscriptions},{sharedSubscriptionViewModel:function(F){return _.W("div",{class:"ytProfileInfoViewModelSub"},_.W(K3U,{data:F.data}))}}))},"fj"),Dyl=_.d(function(C){var F=C.profileInfo;
return _.W("div",{class:"ytProfileInfoViewModelActivity"},_.W(_.Ag,{each:function(){return[F().profileBadgeInfoYtWide,F().profileBadgeInfoChannelWide].filter(function(G){return!!G})},
keyBy:"INDEX"},function(G){return _.W(_.WQ,null,_.W("div",{class:"ytProfileInfoViewModelHeader"},_.W("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return G().profileSectionTitle}),_.W("div",{class:"ytProfileInfoViewModelSectionDesc"},_.W("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var V;
return(V=G().commentBadge)==null?void 0:V.commentDesc}),_.W(_.a,{cond:function(){var V;
return(V=G().commentBadge)==null?void 0:V.blackHeartDesc},
then:function(){return _.W("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.W("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.W(_.AC,{data:function(){var V;
return{thumbnails:[{url:(V=G().commentBadge)==null?void 0:V.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.W("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var V;return(V=G().commentBadge)==null?void 0:V.blackHeartDesc}))),_.W("div",{class:"ytProfileInfoViewModelBadge"},_.W(_.Ag,{each:function(){return G().badges||[]}},function(V){return _.W(oqr,{data:V})})))}))},"gj");var Gjr=_.d(function(C){var F=C.data;var G=function(){return F().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.W("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.W(_.uC,{data:function(){return F().profileIdentityInfo}},{profileIdentityInfoViewModel:function(V){return _.W(_.q5r,{data:V.data,
hideDivider:G,isChannelInfoCard:G})},
profileInfoViewModel:jud}),_.W(_.uC,{data:function(){return F().profileInfo}},{profileIdentityInfoViewModel:_.q5r,
profileInfoViewModel:jud}))},"hj");
Gjr.idomCompat=!0;_.gQ(Gjr,"yt-profile-card-view-model",{props:{data:_.CJ}});var o$=function(){var C=_.B.apply(this,arguments)||this;C.enableFocusFix=_.y("music_web_enable_focus_on_setting_menu_fix")&&_.oD("IS_MOBILE_WEB",!1);C.covered=!1;C.hideMenu=!1;C.isCommentNotificationOnProfileCard=!1;C.scrolledByTouch=!1;C.disableBackdropFilter=_.y("web_disable_backdrop_filter");C.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return C};
_.O(o$,_.B);_.n=o$.prototype;
_.n.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"}}}};
_.n.ready=function(){var C=this;this.JSC$20443_containerElement.addEventListener("scroll",function(){C.ytRendererBehavior.markDirty()})};
_.n.attributeChanged=function(C,F){C==="menu-style"&&_.rz(this.hostElement,"yt-multi-page-menu-closed-action",[F])};
_.n.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Gp(this,this.focusOnStampFinished))};
_.n.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.Gp(this,this.focusOnStampFinished))};
_.n.reset=function(){this.closeJobId&&(_.gT.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.n.focusOnStampFinished=function(C){C.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Gp(this,this.focusOnStampFinished)),this.doFocus())};
_.n.doFocus=function(){var C=_.MI8(this.sectionsElement);C.length&&C[0].focus()};
_.n.computeMenuStyle=function(C){return C?C.toLowerCase().replace(/_/g,"-"):""};
_.n.computeIsCommentNotificationOnProfileCard=function(C){return _.y("enable_profile_cards_on_comments")&&C.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.n.computeHideMenu=function(C,F){return C||!(!F||!F.showLoadingSpinner)};
_.n.onPopupClosed=function(){this.isPopUpOpen=!1;_.rz(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.n.onPopupOpened=function(C,F){this.isPopUpOpen=!0;F.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.oo(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.rh({type:"CHANNEL_REPORT_RESET"})))};
_.n.onYtNavigate=function(C,F){this.shouldCloseOnNavigateEvent(F.endpoint)&&_.rz(this.hostElement,"yt-close-all-popups-action")};
_.n.handleEndpoint=function(C){C=_.Z(C,_.YD);!this.isCommentNotificationOnProfileCard&&C&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20443_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.n.handleActions=function(C){for(var F=0,G=C.length;F<G;F++){var V=_.Z(C[F],lMU);V&&this.handleGetMultiPageMenuAction(V);(V=_.Z(C[F],_.X3$))&&this.handleAppendContinuationItemsAction(V)}};
_.n.onServiceRequestSentOrCompleted=function(C,F){C.detail&&C.detail.endpoint&&this.handleEndpoint(C.detail.endpoint);F.actions&&this.handleActions(F.actions)};
_.n.handleGetMultiPageMenuAction=function(C){var F=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.ot(this.submenuElement).appendChild(F);(C=C.menu.multiPageMenuRenderer)&&this.logSubmenu(C);F.data=C;F.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.n.handleAppendContinuationItemsAction=function(C){if(this.data&&C.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&C.continuationItems&&this.data.sections){var F=this.data.sections.length-1;this.data.sections[F].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),F--);if(this.data.sections[F].multiPageMenuNotificationSectionRenderer&&C.continuationItems){C=_.u(C==null?void 0:C.continuationItems);for(var G=C.next();!G.done;G=C.next())if(G=G.value,_.Z(G,oV_)){var V=
void 0,J=void 0,b=void 0,z=void 0,Q=void 0;((V=this)==null?0:(J=V.data)==null?0:(b=J.sections)==null?0:(z=b[F])==null?0:(Q=z.multiPageMenuNotificationSectionRenderer)==null?0:Q.items)&&this.push("data.sections."+F+".multiPageMenuNotificationSectionRenderer.items",G)}else if(_.Z(G,_.tHE)||_.Z(G,_.eZ))this.push("data.sections",G),F++}}};
_.n.logSubmenu=function(C){if(!_.y("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var F=this.ytRendererBehavior.getScreenLayer(),G=_.ZQ(F),V=_.lm(F);if((C=C.trackingParams)&&G&&V){var J=_.zS(C);_.y("combine_ve_grafts")?_.ia().graftServerVe(C,V,F):_.vA(G,V,J)}}};
_.n.emptySubmenuContainer=function(){for(var C=_.ot(this.submenuElement);C.firstChild;)C.removeChild(C.firstChild)};
_.n.onMenuBackTap=function(C){_.oo(this.hostElement,"yt-submenu-closed");C.stopPropagation()};
_.n.onSubmenuClosed=function(C){_.ev(C)!==this.hostElement&&(this.covered=!1,_.oo(this.hostElement,"yt-refit"),C.stopPropagation())};
_.n.onRetrieveLocation=function(C,F){F.hasComments&&(F.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),C.stopPropagation())};
_.n.shouldCloseOnNavigateEvent=function(C){if(!C)return!0;if(_.Z(C,_.osO)||_.Z(C,_.rhy)||_.Z(C,_.T6u)||_.Z(C,_.jW))return!1;var F;return((F=_.Z(C==null?void 0:C.commandMetadata,_.GU))==null?0:F.ignoreNavigation)?!1:!0};
_.n.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.n.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.n.refitAfterRender=function(){var C=this;_.zH(this,function(){_.oo(C.hostElement,"yt-refit")})};
o$.prototype.refitAfterRender=o$.prototype.refitAfterRender;o$.prototype.onRetrieveLocation=o$.prototype.onRetrieveLocation;o$.prototype.onSubmenuClosed=o$.prototype.onSubmenuClosed;o$.prototype.onMenuBackTap=o$.prototype.onMenuBackTap;o$.prototype.onServiceRequestSentOrCompleted=o$.prototype.onServiceRequestSentOrCompleted;o$.prototype.onYtNavigate=o$.prototype.onYtNavigate;o$.prototype.onPopupOpened=o$.prototype.onPopupOpened;o$.prototype.onPopupClosed=o$.prototype.onPopupClosed;
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],o$.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.h9.YtEventForwardingBehavior),_.Y("design:type",Object)],o$.prototype,"ytEventForwardingBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],o$.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],o$.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],o$.prototype,"data",void 0);
_.R([_.L(),_.Y("design:type",Object)],o$.prototype,"enableFocusFix",void 0);_.R([_.L(),_.Y("design:type",Object)],o$.prototype,"covered",void 0);_.R([_.L({computed:"computeHideMenu(covered, data)"}),_.Y("design:type",Object)],o$.prototype,"hideMenu",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.Y("design:type",String)],o$.prototype,"menuStyle",void 0);
_.R([_.L({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.Y("design:type",Object)],o$.prototype,"isCommentNotificationOnProfileCard",void 0);_.R([_.L(),_.Y("design:type",Boolean)],o$.prototype,"isPopUpOpen",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],o$.prototype,"scrolledByTouch",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],o$.prototype,"disableBackdropFilter",void 0);
_.R([_.$z("#sections"),_.Y("design:type",HTMLElement)],o$.prototype,"sectionsElement",void 0);_.R([_.$z("#spinner"),_.Y("design:type",HTMLElement)],o$.prototype,"spinnerElement",void 0);_.R([_.$z("#header"),_.Y("design:type",HTMLElement)],o$.prototype,"headerElement",void 0);_.R([_.$z("#container"),_.Y("design:type",HTMLElement)],o$.prototype,"JSC$20443_containerElement",void 0);_.R([_.$z("#submenu"),_.Y("design:type",HTMLElement)],o$.prototype,"submenuElement",void 0);
_.R([_.VG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],o$.prototype,"onPopupClosed",null);_.R([_.VG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],o$.prototype,"onPopupOpened",null);_.R([_.VG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],o$.prototype,"onYtNavigate",null);
_.R([_.VG("yt-service-request-completed"),_.VG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.en]),_.Y("design:returntype")],o$.prototype,"onServiceRequestSentOrCompleted",null);_.R([_.VG("yt-menu-back-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],o$.prototype,"onMenuBackTap",null);
_.R([_.VG("yt-submenu-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],o$.prototype,"onSubmenuClosed",null);_.R([_.VG("yt-retrieve-location"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],o$.prototype,"onRetrieveLocation",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],o$.prototype,"refitAfterRender",null);
_.R([_.e({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],o$);
_.q(o$,"ytd-multi-page-menu-renderer",function(){if(l3_!==void 0)return l3_;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return l3_=C},{mode:1});var Vdt;var rl=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return C};
_.O(rl,_.B);_.n=rl.prototype;_.n.created=function(){this.showTooltips=!0};
_.n.computeAccessibility_=function(C){return this.get("accessibility.accessibilityData",C)||null};
_.n.onTap=function(){var C=_.KX(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(C&&C.length===1&&C[0])_.rz(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var F;if((F=this.data)==null?0:F.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var G;((G=this.data)==null?0:G.menuRequest)&&_.DQ(this.hostElement,[this.data.menuRequest])}}};
_.n.handleTopbarMenuClosedAction=function(C){var F,G;(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(C)===((F=this.data)==null?void 0:(G=F.icon)==null?void 0:G.iconType)&&this.toggleIconState(!1)};
_.n.toggleIconState=function(C){_.y("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=C)};
_.n.handleUpdateTopbarAvatarAction=function(C){var F;C=(F=_.Z(C,EVh))==null?void 0:F.avatarUrl;var G,V;F=(G=this.data)==null?void 0:(V=G.avatar)==null?void 0:V.thumbnails;C&&F&&(G={thumbnails:[Object.assign({},F[0],{url:C})]},this.set("data.avatar",G))};
_.I6.Object.defineProperties(rl.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.ot(this.hostElement).querySelector("#button")}}});
rl.prototype.onTap=rl.prototype.onTap;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],rl.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],rl.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nK),_.Y("design:type",Object)],rl.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.w(_.no2.YtButtonBehavior),_.Y("design:type",Object)],rl.prototype,"ytButtonBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],rl.prototype,"data",void 0);
_.R([_.$z("yt-icon-button#button"),_.Y("design:type",Object)],rl.prototype,"iconButton",void 0);_.R([_.VG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rl.prototype,"onTap",null);_.R([_.e({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],rl);
_.Tp()(rl,"ytd-topbar-menu-button-renderer",function(){if(Vdt===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);Vdt=C}C=Vdt;return C},{allowedProps:["data"],
mode:1});var iG8;var Ko=function(){return _.B.apply(this,arguments)||this};
_.O(Ko,_.B);Ko.prototype.getSelected=function(){return this.reasons.selected};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Ko.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Ko.prototype,"data",void 0);_.R([_.$z("#reasons"),_.Y("design:type",Object)],Ko.prototype,"reasons",void 0);_.R([_.e({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],Ko);
_.q(Ko,"ytd-ad-feedback-content",function(){if(iG8!==void 0)return iG8;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return iG8=C},{mode:1});var J$U;var Dq=function(){return _.B.apply(this,arguments)||this};
_.O(Dq,_.B);_.n=Dq.prototype;_.n.onPopupOpened=function(){_.rz(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.n.computeConfirmButton=function(C){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:C.confirmLabel}};
_.n.computeCancelButton=function(C){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:C.cancelLabel}};
_.n.onConfirmTap=function(){var C=this.content.getSelected();C!==void 0&&(C=this.data.reasons[C].endpoint)&&(_.I8().resolve(_.WD).resolveCommand(C,{form:{element:this.hostElement}}),_.rz(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.n.sendFeedbackSubmitToastAction=function(){var C;(C=this.data)!=null&&C.completionMessage&&(C=_.PY(this.data.completionMessage),_.rz(this.hostElement,"yt-open-popup-action",[C,this]))};
_.n.onCancelTap=function(){_.rz(this.hostElement,"yt-close-popup-action")};
Dq.prototype.onPopupOpened=Dq.prototype.onPopupOpened;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Dq.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Dq.prototype,"data",void 0);_.R([_.$z("#content"),_.Y("design:type",Object)],Dq.prototype,"content",void 0);_.R([_.VG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Dq.prototype,"onPopupOpened",null);
_.R([_.e({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],Dq);
_.q(Dq,"ytd-ad-feedback-renderer",function(){if(J$U!==void 0)return J$U;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return J$U=C},{mode:1});var $Bl;var bGL=function(){return _.B.apply(this,arguments)||this};
_.O(bGL,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],bGL.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],bGL.prototype,"data",void 0);_.R([_.e({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],bGL);
_.q(bGL,"ytd-ad-info-dialog-content",function(){if($Bl!==void 0)return $Bl;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return $Bl=C},{mode:1});var nRt;var po=function(){return _.B.apply(this,arguments)||this};
_.O(po,_.B);po.prototype.computeConfirmButton=function(C){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:C.confirmLabel}};
po.prototype.onConfirmTap=function(){_.rz(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
po.prototype.computeShouldShowTitle=function(){var C;return!((C=this.data)==null||!C.title)};
po.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.I8().resolve(_.WD).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
po.prototype.onPopupClosed=po.prototype.onPopupClosed;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],po.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],po.prototype,"data",void 0);_.R([_.VG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],po.prototype,"onPopupClosed",null);_.R([_.e({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],po);
_.q(po,"ytd-ad-info-dialog-renderer",function(){if(nRt!==void 0)return nRt;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return nRt=C},{mode:1});var uBl;var mT=function(){var C=_.B.apply(this,arguments)||this;C.actionButtonClass="action-button";C.dismissButtonId="dismiss-button";C.dialogDismiss=!0;return C};
_.O(mT,_.B);_.n=mT.prototype;_.n.computeInPlayer=function(C){return(C==null?void 0:C.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.n.computedLogo=function(){var C,F;return this.isDarkTheme()?(C=this.data)==null?void 0:C.logoDark:(F=this.data)==null?void 0:F.logo};
_.n.computedHeaderImage=function(){var C,F;return this.isDarkTheme()?(C=this.data)==null?void 0:C.headerImageDark:(F=this.data)==null?void 0:F.headerImage};
_.n.computeLogoIconId=function(){var C,F,G,V=(C=this.computedLogo())==null?void 0:(F=C.sources)==null?void 0:(G=F[0])==null?void 0:G.height;return V&&V%31===0?"logo-icon-with-padding":"logo-icon"};
_.n.computeLogoIconHeight=function(){var C,F,G,V=(C=this.computedLogo())==null?void 0:(F=C.sources)==null?void 0:(G=F[0])==null?void 0:G.height;return V&&V%31===0?"31":"24"};
_.n.onPopupClosed=function(){_.I8().resolve(_.vR).dispose()};
_.n.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.n.onShow=function(){this.inPlayer&&_.Gt(6);this.titleElement.focus()};
_.n.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var C=0;C<this.data.impressionEndpoints.length;C++){var F=_.Z(this.data.impressionEndpoints[C],_.yp);F&&this.ytComponentBehavior.resolveCommand(F)}};
_.n.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.rz(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.I6.Object.defineProperties(mT.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var C,F;return!((C=this.data)==null||!C.headerImageDark)&&!((F=this.data)==null||!F.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.secondaryButton)}}});
mT.prototype.onPopupClosed=mT.prototype.onPopupClosed;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],mT.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],mT.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.r6.YtVisibilityBehavior),_.Y("design:type",Object)],mT.prototype,"ytVisibilityBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],mT.prototype,"data",void 0);
_.R([_.L(),_.Y("design:type",Object)],mT.prototype,"actionButtonClass",void 0);_.R([_.L(),_.Y("design:type",Object)],mT.prototype,"dismissButtonId",void 0);_.R([_.L(),_.Y("design:type",Object)],mT.prototype,"dialogDismiss",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],mT.prototype,"hasHeaderImage",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],mT.prototype,"hasPremiumButton",null);
_.R([_.L({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.Y("design:type",Boolean)],mT.prototype,"inPlayer",void 0);_.R([_.$z("#dismiss-button"),_.Y("design:type",HTMLElement)],mT.prototype,"dismissButton",void 0);_.R([_.$z("#title"),_.Y("design:type",HTMLElement)],mT.prototype,"titleElement",void 0);_.R([_.VG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],mT.prototype,"onPopupClosed",null);
_.R([_.e({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],mT);
_.q(mT,"ytd-enforcement-message-view-model",function(){if(uBl!==void 0)return uBl;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="fc-dialog-container style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" tabindex="0" role="heading" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return uBl=C},{mode:1});var zA_;var Qu8;var C8=function(){var C=_.B.apply(this,arguments)||this;C.TEST_ONLY={immediateValidation:function(){C.immediateValidation()},
onValidationResponse:function(F){C.onValidationResponse(F)},
onGenerateHandleFromNameResponse:function(F){C.onGenerateHandleFromNameResponse(F)}};
return C};
_.O(C8,_.B);_.n=C8.prototype;_.n.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.n.validate=function(){this.immediateValidation()};
_.n.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.n.setHandleInputValue=function(C){this.handleDir=this.getHandleDir(C);this.handleInput.value=C;this.validationState={status:"PENDING"};this.immediateValidation()};
_.n.getHandleDir=function(C){var F=C===""&&!1;return(F=_.Tz2.test.call(_.Tz2,C))?"rtl":"ltr"};
_.n.onDataChanged=function(){var C,F;this.handleDir=this.getHandleDir((F=(C=this.data)==null?void 0:C.handle)!=null?F:"");var G;this.validationState=((G=this.data)==null?0:G.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var V;((V=this.data)==null?0:V.validateOnInit)&&this.immediateValidation()};
_.n.stopPropagation=function(C){C.stopPropagation()};
_.n.onInput=function(){var C;this.handleDir=this.getHandleDir((C=this.handleInput.value)!=null?C:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.n.onFocusout=function(C){this.handleInput.contains(C.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.n.delayedValidation=function(){var C,F;this.debouncedValidation((F=(C=this.data)==null?void 0:C.validationDelayMs)!=null?F:1E3)};
_.n.immediateValidation=function(){this.debouncedValidation(0)};
_.n.debouncedValidation=function(C){var F=this;_.Bb(this,"debouncedValidation",function(){var G,V=F.staticValidation((G=F.handleInput.value)!=null?G:"");if(V!==void 0)F.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:V};else{var J;if((J=F.data)!=null&&J.validateChannelHandleCommand){F.validationState={status:"LOADING"};var b;F.ytComponentBehavior.resolveCommand(F.data.validateChannelHandleCommand,{form:{handle:(b=F.handleInput.value)!=null?b:""},commandController:{onSuccess:function(z,
Q){F.onValidationResponse(Q)},
onServerError:function(z,Q){F.onValidationServerError(Q)}}})}else F.handleUnexpectedValidationError(new _.Ay("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",F.data))}},C)};
_.n.staticValidation=function(C){var F;if(((F=this.data)==null?void 0:F.channelHandleStaticValidationParams)!==void 0){F=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(C)&&F.validValueRegexpErrorMessage!==void 0)return F.validValueRegexpErrorMessage;if(F.minLength!==void 0&&C.length<F.minLength&&F.minLengthErrorMessage!==void 0)return F.minLengthErrorMessage;if(F.maxLength!==void 0&&C.length>F.maxLength&&F.maxLengthErrorMessage!==void 0)return F.maxLengthErrorMessage}};
_.n.onValidationResponse=function(C){var F=_.Z(C.result,WuV);F===void 0?this.handleUnexpectedValidationError(new _.Ay("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",C)):this.handleValidationResultRenderer(F)};
_.n.onValidationServerError=function(C){this.handleUnexpectedValidationError(new _.Ay("ValidateChannelHandle request failed.",C))};
_.n.handleValidationResultRenderer=function(C){if(C.handle===void 0)this.handleUnexpectedValidationError(new _.Ay("ChannelHandleValidationResultRenderer does not contain handle.",C));else if(C.handle===this.handleInput.value)switch(C.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:C.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:C.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.Ay("Unrecognized ChannelHandleValidationResult",C));break;default:_.r2(C.result)}};
_.n.handleUnexpectedValidationError=function(C){var F;this.validationState={status:"UNKNOWN",handle:(F=this.handleInput.value)!=null?F:""};_.Yw(C)};
_.n.stopEventPropagation=function(C){C.stopPropagation()};
_.n.updateHandleOnChannelNameInputChange=function(C){if(!this.wasEdited){var F,G;this.debouncedGenerateHandleFromName(C,(G=(F=this.data)==null?void 0:F.validationDelayMs)!=null?G:1E3)}};
_.n.debouncedGenerateHandleFromName=function(C,F){var G=this;_.Bb(this,"debouncedGenerateHandleFromName",function(){var V;(V=G.data)!=null&&V.validateChannelHandleCommand?G.ytComponentBehavior.resolveCommand(G.data.validateChannelHandleCommand,{form:{name:C},commandController:{onSuccess:function(J,b){G.onGenerateHandleFromNameResponse(b)},
onServerError:function(J,b){_.Yw(new _.Ay("Error calling GenerateHandleFromName",b))}}}):_.Yw(new _.Ay("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",G.data))},F)};
_.n.onGenerateHandleFromNameResponse=function(C){this.wasEdited||((C=_.Z(C.result,tKx))?this.setHandleInputValue(C.handle):_.Yw(new _.Ay("Invalid results when generate handle from name")))};
_.I6.Object.defineProperties(C8.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var C;if(C=this.validationState)C=this.validationState,C=C.status==="OK"||C.status==="UNKNOWN";if(C)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var C;if(((C=this.validationState)==null?void 0:C.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 C,F=(C=this.channelHandleEntity)==null?void 0:C.handleEdit;this.handleDir=this.getHandleDir(F!=null?F:"");return F}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var C,F;if(((C=this.data)==null?void 0:(F=C.channelHandleStaticValidationParams)==null?void 0:F.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
C8.prototype.stopEventPropagation=C8.prototype.stopEventPropagation;C8.prototype.onDataChanged=C8.prototype.onDataChanged;C8.prototype.applyHandleEdit=C8.prototype.applyHandleEdit;C8.prototype.onValueChanged=C8.prototype.onValueChanged;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],C8.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],C8.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],C8.prototype,"data",void 0);
_.R([_.L(),_.Y("design:type",Boolean)],C8.prototype,"wasEdited",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],C8.prototype,"handleDir",void 0);_.R([_.$z("#handle-input"),_.Y("design:type",Object)],C8.prototype,"handleInput",void 0);_.R([_.L(),_.M("validationState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],C8.prototype,"value",null);
_.R([_.iP("value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],C8.prototype,"onValueChanged",null);_.R([_.M("validationState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],C8.prototype,"errorIndicator",null);_.R([_.L({reflectToAttribute:!0}),_.M("errorIndicator"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],C8.prototype,"borderErrorIndicator",null);
_.R([_.L({selectorArgs:["data.channelHandleEntityKey"],selector:function(C,F){return _.jN(C.entities,"channelHandle",F)}}),
_.Y("design:type",Object)],C8.prototype,"channelHandleEntity",void 0);_.R([_.M("channelHandleEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],C8.prototype,"handleEdit",null);_.R([_.iP("handleEdit"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],C8.prototype,"applyHandleEdit",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],C8.prototype,"onDataChanged",null);
_.R([_.M("data.channelHandleStaticValidationParams.validValueRegexp"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],C8.prototype,"validValueRegexp",null);_.R([_.VG("yt-service-request-sent"),_.VG("yt-service-request-completed"),_.VG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],C8.prototype,"stopEventPropagation",null);_.R([_.e({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],C8);
_.q(C8,"ytd-channel-handle-input-renderer",function(){if(Qu8!==void 0)return Qu8;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Qu8=C},{mode:_.oN("kevlar_poly_si_batch_j025")?1:2});var jc=function(){var C=_.B.apply(this,arguments)||this;C.data=null;C.errorMessage=null;C.isLoading=!0;C.hideContainer=!1;C.enableNewChannelCreationOnIdForAll=_.y("enable_new_channel_creation_for_id4all");C.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"};C.testOnly={setErrorMessage:function(F){C.resetErrorState();
C.setErrorState(F)}};
return C};
_.O(jc,_.B);_.n=jc.prototype;_.n.created=function(){this.logScreenVe()};
_.n.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")};
_.n.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var C;((C=this.zeroStepErrorMessageEntity)==null?0:C.value)&&this.set("errorMessage",_.eN(this.zeroStepErrorMessageEntity.value))};
_.n.onCreateTap=function(){var C=this;if(this.data&&this.data.channelCreationEndpoint){var F,G;if(!((F=this.data.createChannelButton)==null?0:(G=F.buttonRenderer)==null?0:G.isDisabled)){var V;if((V=this.nameInput)!=null&&V.value){this.setLoadingState();var J,b;F=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(J=this.handleInput)==null?void 0:J.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:F,commandController:{onSuccess:function(z,Q){C.onChannelCreationEndpointSuccess(Q);C.obakeImageSource&&_.q1("channelCreatedWithObakeImage",{imageSourceType:C.obakeImageSource})},
onServerError:function(){C.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.n.endpointRequiresServiceRequestAction=function(C){return!!_.Z(C,_.kC)||!!_.Z(C,EVh)};
_.n.isNavigateAction=function(C){var F;return!!_.Z(C,_.LN)||!!_.Z((F=_.Z(C,URV))==null?void 0:F.command,_.LN)};
_.n.isPlaylistAction=function(C){return!!_.Z(C,_.TL)||!!_.Z(C,_.CQ)};
_.n.onChannelCreationEndpointSuccess=function(C){if(C.createChannelError){var F;this.setErrorState((F=C.createChannelError)==null?void 0:F.errorMessage);this.handleInput&&this.handleInput.validate()}else{C.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(C.navigationEndpoint);if(C.actions){F=_.u(C.actions);for(var G=F.next();!G.done;G=F.next())if(G=G.value,this.endpointRequiresServiceRequestAction(G)&&this.ytComponentBehavior.resolveCommand(G),this.isNavigateAction(G)){var V=void 0;G=_.Z((V=
_.Z(G,URV))==null?void 0:V.command,_.LN);V=void 0;this.isPlaylistAction((V=G)==null?void 0:V.endpoint)&&(_.rz(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),V=void 0,this.ytComponentBehavior.resolveCommand((V=G)==null?void 0:V.endpoint))}}C.actions&&C.actions.some(function(J){var b;return _.Z(J,_.LN)||_.Z((b=_.Z(J,URV))==null?void 0:b.command,_.LN)})||_.rz(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.n.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.n.onCancelTap=function(){var C,F,G;if(!((C=this.data)==null?0:(F=C.cancelButton)==null?0:(G=F.buttonRenderer)==null?0:G.isDisabled)){var V,J,b;C=(V=this.data)==null?void 0:(J=V.cancelButton)==null?void 0:(b=J.buttonRenderer)==null?void 0:b.command;if(!C||!_.Z(C,_.lyi)){var z;this.nameInput&&((z=this.data)==null?0:z.name)&&(this.nameInput.value=this.data.name);var Q;this.handleInput&&((Q=this.data)==null?0:Q.channelHandleInput)&&(this.handleInput.data=_.Z(this.data.channelHandleInput,aMU));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.n.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.n.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.n.onClearProfilePhotoTap=function(){var C,F,G;((C=this.data)==null?0:(F=C.clearProfilePhotoButton)==null?0:(G=F.buttonRenderer)==null?0:G.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.n.onEditAvatarTap=function(){var C,F,G;((C=this.data)==null?0:(F=C.editAvatarButton)==null?0:(G=F.buttonRenderer)==null?0:G.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.n.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)};
_.n.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var C;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((C=this.data)==null?0:C.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.n.setErrorState=function(C){this.resetErrorState();if(C)this.set("errorMessage",C);else{var F;if((F=this.zeroStepErrorMessageEntity)==null?0:F.value)this.set("errorMessage",_.eN(this.zeroStepErrorMessageEntity.value));else{var G;((G=this.data)==null?0:G.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.n.fetchImageBlobWithAlr=function(C,F){F=F===void 0?5:F;var G=this,V,J,b,z,Q;return _.I(function(E){switch(E.nextAddress){case 1:return E.yield(fetch(C,{method:"GET",mode:"cors"}),2);case 2:V=E.yieldResult;if(V.ok){E.jumpTo(3);break}if(F===0)throw Error();J=G.addJitter(Math.pow(2,5-F));return E.yield(new Promise(function(t){setTimeout(t,J*1E3)}),4);
case 4:return E.return(G.fetchImageBlobWithAlr(C,F-1));case 3:if(!V.headers.get("content-type").split(";").some(function(t){return t.trim()==="text/plain"})){E.jumpTo(5);
break}b=G;z=b.fetchImageBlobWithAlr;return E.yield(V.text(),6);case 6:return E.return(z.call(b,E.yieldResult,F-1));case 5:return E.yield(V.blob(),7);case 7:return Q=E.yieldResult,E.return(Q)}})};
_.n.addJitter=function(C){var F=C*.3*Math.random();Math.random()>.5&&(F*=-1);return C+F};
_.n.openProfilePicturePicker=function(){var C=this,F,G,V,J,b,z;return _.I(function(Q){if(Q.nextAddress==1){F=C.data.scottyUploadUrl;if(!F)return Q.return();G=document.documentElement.hasAttribute("dark");V=document.body.style.colorScheme;G&&(document.body.style.colorScheme="dark");J=nXL(uuh(bQ3(jjs(G?"dark":"light")),function(E){var t,k,U,H,l;return _.I(function(N){if(N.nextAddress==1)return t=_.xk(w0h(new Nv(E.photoUrl,!1)).build(),"alr","yes"),C.obakeImageSource=C.pictureChangeSourceToObakeImageSourceType(E.photoSource),
_.yy(N,2),C.setLoadingState(),N.yield(C.fetchImageBlobWithAlr(t),4);if(N.nextAddress!=2)return k=N.yieldResult,U=new FileReader,U.addEventListener("load",function(){var S,f,c,A,T,P;return _.I(function(g){if(g.nextAddress==1){if(k.size>15728640)return C.setErrorState((S=C.data)==null?void 0:S.imageSizeErrorMessage),_.Yw(Error("Fl")),g.return();if(!U.result)return C.setErrorState((f=C.data)==null?void 0:f.genericImageLoadErrorMessage),_.Yw(Error("Gl")),g.return();c=U.result;_.yy(g,2);return g.yield(fol(k,
F),4)}if(g.nextAddress!=2)return A=g.yieldResult,C.handleImageUpdatedAction(c,A),C.resetErrorState(),_.Gn(g,0);T=_.wa(g);C.setErrorState((P=C.data)==null?void 0:P.uploadErrorMessage);if(T instanceof Error)_.gD(T);else{var r=new _.Ay(JSON.stringify(T));_.gD(r)}_.S9(g)})}),U.readAsDataURL(k),_.Gn(N,0);
H=_.wa(N);C.setErrorState((l=C.data)==null?void 0:l.genericImageLoadErrorMessage);H instanceof Error?_.gD(H):_.R1(new _.Ay(JSON.stringify(H)));_.S9(N)})}),function(){C.hideContainer=!1;
document.body.style.colorScheme=V});
_.yy(Q,2);return((b=C.data)==null?0:b.shouldViewChannelCreationFormForSupex)?Q.yield(J.openPicker("profile-picture/art-selection"),5):Q.yield(J.openPicker(),5)}if(Q.nextAddress!=2)return _.Gn(Q,0);_.wa(Q);C.setErrorState((z=C.data)==null?void 0:z.selectImageErrorMessage);_.S9(Q)})};
_.n.pictureChangeSourceToObakeImageSourceType=function(C){switch(C){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.n.logScreenVe=function(){_.NJ(_.ia(),124448)};
_.n.graftServerVe=function(){var C=_.lm(),F,G,V=(F=this.data)==null?void 0:(G=F.loggingDirectives)==null?void 0:G.trackingParams;V&&C&&(this.channelCreationFormVe=_.ia().graftServerVe(V,C),C={visualElement:this.channelCreationFormVe},_.GS().reportShown(C))};
_.n.isNameChanged=function(C){var F;return((F=this.data)==null?void 0:F.name)!==C};
_.n.isHandleChanged=function(C){var F,G=_.Z((F=this.data)==null?void 0:F.channelHandleInput,aMU);return G&&C?G.handle!==C:!1};
_.n.handleImageUpdatedAction=function(C,F){this.hideContainer=!1;this.previewDataUrl=C;this.encryptedBlobId=F};
_.n.handleImageSelectionErrorAction=function(C){this.hideContainer=!1;this.setErrorState(C)};
_.n.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.n.showContainer=function(){this.hideContainer=!1};
_.n.maybeWipeZeroStepErrorMessage=function(){var C,F=(C=this.data)==null?void 0:C.zeroStepErrorMessageEntityKey,G;F&&((G=this.zeroStepErrorMessageEntity)==null?0:G.value)&&this.ytdReduxBehavior.dispatch(_.z3("stringEntity",F,{key:F,value:""}))};
_.I6.Object.defineProperties(jc.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 C;return((C=this.photoThumbnail)==null?0:C.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 C;return!((C=this.data)==null||!C.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)==null?void 0:C.descriptionInfo}}});
jc.prototype.dataChanged=jc.prototype.dataChanged;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],jc.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],jc.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],jc.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],jc.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],jc.prototype,"errorMessage",void 0);
_.R([_.L(),_.Y("design:type",Object)],jc.prototype,"isLoading",void 0);_.R([_.L(),_.Y("design:type",String)],jc.prototype,"previewDataUrl",void 0);_.R([_.L(),_.Y("design:type",Number)],jc.prototype,"obakeImageSource",void 0);_.R([_.L(),_.Y("design:type",Object)],jc.prototype,"hideContainer",void 0);_.R([_.$z("#title-input"),_.Y("design:type",Object)],jc.prototype,"nameInput",void 0);_.R([_.$z("#handle-input"),_.Y("design:type",Object)],jc.prototype,"handleInput",void 0);
_.R([_.L(),_.Y("design:type",Boolean)],jc.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.R([_.L({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.Vsw}),_.Y("design:type",Object)],jc.prototype,"zeroStepErrorMessageEntity",void 0);_.R([_.M("data","data.isDefaultProfilePhoto","previewDataUrl"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jc.prototype,"photoThumbnail",null);
_.R([_.M("data","data.isDefaultProfilePhoto","photoThumbnail"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jc.prototype,"userSetPhotoThumbnailUrl",null);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],jc.prototype,"hideProfilePhotoButtonLayer",null);_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],jc.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.R([_.zp("data","zeroStepErrorMessageEntity"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jc.prototype,"dataChanged",null);_.R([_.L({reflectToAttribute:!0}),_.M("data.descriptionInfo","zeroStepErrorMessageEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jc.prototype,"description",null);_.R([_.e({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],jc);
_.q(jc,"ytd-channel-creation-dialog-renderer",function(){if(zA_!==void 0)return zA_;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return zA_=C},{mode:1});var Izh;var Fz=function(){var C=_.B.apply(this,arguments)||this;C.isLoading=!1;C.isDisabled=!1;return C};
_.O(Fz,_.B);Fz.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Fz.prototype.updateDisabled=function(){var C;this.isDisabled=this.isLoading||((C=this.handleInput)==null?void 0:C.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
Fz.prototype.onSaveClick=function(){var C=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var F;((F=this.data)==null?void 0:F.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 G;if((G=C.data)==null?0:G.nextEndpoint){var V;C.ytComponentBehavior.resolveCommand((V=C.data)==null?void 0:V.nextEndpoint)}else C.isLoading=
!1,C.closeDialog()},
onServerError:function(){C.isLoading=!1;C.handleInput.validate();var G;C.errorMessage=(G=C.data)==null?void 0:G.errorMessage}}}))}};
Fz.prototype.closeDialog=function(){_.rz(this.hostElement,"yt-close-popup-action",[this.is])};
Fz.prototype.updateDisabled=Fz.prototype.updateDisabled;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Fz.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Fz.prototype,"data",void 0);_.R([_.$z("#handle-input"),_.Y("design:type",Object)],Fz.prototype,"handleInput",void 0);_.R([_.iP("isLoading"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fz.prototype,"updateDisabled",null);
_.R([_.e({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],Fz);
_.q(Fz,"ytd-channel-handle-edit-dialog-renderer",function(){if(Izh!==void 0)return Izh;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Izh=C},{mode:1});var ERd;var GK=function(){return _.B.apply(this,arguments)||this};
_.O(GK,_.B);GK.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],GK.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],GK.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],GK.prototype,"data",void 0);_.R([_.e({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],GK);
_.q(GK,"ytd-channel-switcher-footer-renderer",function(){if(ERd!==void 0)return ERd;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return ERd=C},{mode:1});var WRs;var td8;var VB=function(){return _.B.apply(this,arguments)||this};
_.O(VB,_.B);VB.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
VB.prototype.onIronChange=VB.prototype.onIronChange;_.R([_.L(),_.Y("design:type",Object)],VB.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!1}),_.Y("design:type",Function)],VB.prototype,"onDontAskAgainChanged",void 0);_.R([_.$z("#checkbox"),_.Y("design:type",Object)],VB.prototype,"checkbox",void 0);_.R([_.VG("iron-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VB.prototype,"onIronChange",null);
_.R([_.e({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],VB);
_.q(VB,"ytd-identity-prompt-footer-renderer",function(){if(td8!==void 0)return td8;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return td8=C},{mode:1});var iU=function(){var C=_.B.apply(this,arguments)||this;C.dontAskAgain=!1;C.showPopup=!1;C.boundDontAskAgainChanged=function(F){C.dontAskAgainChanged(F)};
C.boundOnAccountItemTap=function(F){C.onAccountItemTap(F)};
return C};
_.O(iU,_.B);_.n=iU.prototype;
_.n.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]]"}}}}}};
_.n.ready=function(){var C=this;_.ot(this.hostElement).querySelector("#container").addEventListener("scroll",function(){C.ytRendererBehavior.markDirty()})};
_.n.dontAskAgainChanged=function(C){this.dontAskAgain=C};
_.n.onAccountItemTap=function(C){if(C){var F={};this.dontAskAgain&&(F={dont_ask_again:this.dontAskAgain});_.Xp(C,F)}};
_.n.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.n.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.n.redirectOnlyAccount=function(C){C.sections&&C.sections.length>0&&(C=_.Z(C.sections[0],_.Ih$),(C==null?0:C.contents)&&(C==null?void 0:C.contents.length)<=1?(C=_.Vt(window.location.href),(C==null?0:C.next)&&_.Y5o(C.next)?_.Xp(C.next):_.Xp("/")):this.showPopup=!0)};
iU.prototype.dataChanged=iU.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],iU.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],iU.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],iU.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!1}),_.Y("design:type",Object)],iU.prototype,"dontAskAgain",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],iU.prototype,"showPopup",void 0);_.R([_.L({reflectToAttribute:!1}),_.Y("design:type",Object)],iU.prototype,"boundDontAskAgainChanged",void 0);_.R([_.L({reflectToAttribute:!1}),_.Y("design:type",Object)],iU.prototype,"boundOnAccountItemTap",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iU.prototype,"dataChanged",null);
_.R([_.e({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],iU);
_.q(iU,"ytd-channel-switcher-renderer",function(){if(WRs!==void 0)return WRs;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return WRs=C},{mode:1});var azL;var Jf=function(){return _.B.apply(this,arguments)||this};
_.O(Jf,_.B);_.I6.Object.defineProperties(Jf.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.R([_.L(),_.Y("design:type",Object)],Jf.prototype,"data",void 0);_.R([_.M("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],Jf.prototype,"steps",null);_.R([_.e({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],Jf);
_.q(Jf,"ytd-channel-transfer-stepper-renderer",function(){if(azL!==void 0)return azL;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return azL=C},{mode:1});var kjx;var $m=function(){var C=_.B.apply(this,arguments)||this;C.data=null;C.isError=!1;C.isLoading=!1;return C};
_.O($m,_.B);_.n=$m.prototype;_.n.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"}}}};
_.n.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.n.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.n.computeProfileName=function(C){return C?C.givenNameValue+" "+C.familyNameValue:""};
_.n.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)};
_.n.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)};
$m.prototype.onYtServiceRequestError=$m.prototype.onYtServiceRequestError;$m.prototype.onYtServiceRequestSent=$m.prototype.onYtServiceRequestSent;$m.prototype.dataChanged=$m.prototype.dataChanged;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],$m.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],$m.prototype,"data",void 0);
_.R([_.L({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.Y("design:type",String)],$m.prototype,"profileName",void 0);_.R([_.L(),_.Y("design:type",Object)],$m.prototype,"isError",void 0);_.R([_.L(),_.Y("design:type",Object)],$m.prototype,"isLoading",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$m.prototype,"dataChanged",null);
_.R([_.VG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Sn]),_.Y("design:returntype")],$m.prototype,"onYtServiceRequestSent",null);_.R([_.VG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Sn]),_.Y("design:returntype")],$m.prototype,"onYtServiceRequestError",null);_.R([_.e({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],$m);
_.q($m,"ytd-channel-warm-welcome-cont-renderer",function(){if(kjx!==void 0)return kjx;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return kjx=C},{mode:1});var UBh;var bU=function(){var C=_.B.apply(this,arguments)||this;C.data=null;return C};
_.O(bU,_.B);bU.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
bU.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],bU.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],bU.prototype,"data",void 0);_.R([_.e({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],bU);
_.q(bU,"ytd-channel-warm-welcome-renderer",function(){if(UBh!==void 0)return UBh;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return UBh=C},{mode:1});var HGt;var n8=function(){return _.B.apply(this,arguments)||this};
_.O(n8,_.B);_.I6.Object.defineProperties(n8.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.authorThumbnail)||{}}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],n8.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],n8.prototype,"data",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],n8.prototype,"thumbnailDetails",null);_.R([_.e({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],n8);
_.q(n8,"ytd-comment-preview-renderer",function(){if(HGt!==void 0)return HGt;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return HGt=C},{mode:1});var lzh;var uU=function(){return _.B.apply(this,arguments)||this};
_.O(uU,_.B);uU.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.I6.Object.defineProperties(uU.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)==null?void 0:C.submitButton}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],uU.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],uU.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],uU.prototype,"data",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],uU.prototype,"submitButton",null);_.R([_.e({is:"ytd-notice-renderer",disableElementRegistration:!0})],uU);
_.q(uU,"ytd-notice-renderer",function(){if(lzh!==void 0)return lzh;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return lzh=C},{mode:1});var y$8;var zK=function(){return _.B.apply(this,arguments)||this};
_.O(zK,_.B);zK.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],zK.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],zK.prototype,"data",void 0);_.R([_.e({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],zK);
_.q(zK,"ytd-preview-comment-dialog-content",function(){if(y$8!==void 0)return y$8;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return y$8=C},{mode:1});var ZGV;var QB=function(){return _.B.apply(this,arguments)||this};
_.O(QB,_.B);QB.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
QB.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],QB.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],QB.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],QB.prototype,"data",void 0);_.R([_.e({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],QB);
_.q(QB,"ytd-preview-comment-dialog-renderer",function(){if(ZGV!==void 0)return ZGV;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return ZGV=C},{mode:1});var NNr;var OGs=_.y("web_button_rework")&&_.oD("BUTTON_REWORK")||_.y("web_button_rework_with_live"),I9=function(){var C=_.B.apply(this,arguments)||this;C.closeLabel=_.iQ("CLOSE");C.selectedAmountIndex=1;C.privacyCheckboxValue=!1;C.useAmsterdamStyle=OGs;C.amountPlaceholderIndex=-1;return C};
_.O(I9,_.B);_.n=I9.prototype;_.n.onAmountClick=function(C){this.selectedAmountIndex=_.ot(this.hostElement).querySelector("#amounts").indexForElement(C.currentTarget)};
_.n.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.rz(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.n.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.rz(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.rz(this.hostElement,"yt-close-popup-action",[this.is]);var C;(C=_.gE())==null||C.getPlayerPromise().then(function(F){F.pauseVideo()})}};
_.n.donationCallback=function(C){C.success?(this.hostElement.hasAttribute("live-chat")&&C.response&&C.response.data&&C.response.data.actions&&_.rz(this.hostElement,"yt-live-chat-open-popup",[C.response.data.actions[0]]),_.rz(this.hostElement,"yt-close-popup-action",[this.is]),_.rz(this.hostElement,"yt-live-chat-close-buy-flow")):C.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(C.errorMessageRenderer)};
_.n.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.ot(this.hostElement).querySelector("#custom-amount-input").focus()};
_.n.updateConfirmationDialogTextWithAmount=function(C){var F=this.getConfirmDialogRuns();F&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(F),"text"],this.getFormattedAmount(C))};
_.n.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.n.getAmountPlaceholderIndex=function(C){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=C.findIndex(function(F){return F.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.n.getFormattedAmount=function(C){var F;return(new _.vY(4,((F=this.data)==null?void 0:F.currencyCode)||"")).format(C)};
_.n.isAmountValid=function(C){if(C==="")return!1;C=Number(C)*1E6;var F=this.get("minAmountMicros",this.data),G=this.get("maxAmountMicros",this.data);return F&&C<F||G&&C>G?!1:!0};
_.n.setInputError=function(){this.shouldShowValidationError?_.ot(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.ot(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.n.setInitialCheckboxValue=function(){var C;this.privacyCheckboxValue=!((C=this.data)==null||!C.privacyCheckboxInitialState)};
_.n.updateCustomAmountInputFromBinding=function(C){this.customAmountInput=C.detail.value};
_.n.updatePrivacyCheckboxValueFromBinding=function(C){this.privacyCheckboxValue=C.detail.value};
_.I6.Object.defineProperties(I9.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var C=this,F,G;return((F=this.data)==null?void 0:(G=F.suggestedAmounts)==null?void 0:G.map(function(V,J){return{buttonRenderer:{style:C.selectedAmountIndex===J?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:V.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 C;return!((C=this.data)==null||!C.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 C=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(C&&this.amountMicros!==null)return Object.assign({},C,{ypcGetCartEndpoint:Object.assign({},C.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 C=this.get("confirmLargeAmount",this.data);if(C&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),C}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var C=this.get("donateButton.buttonRenderer",this.data);if(C)return Object.assign({},C,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
I9.prototype.setInitialCheckboxValue=I9.prototype.setInitialCheckboxValue;I9.prototype.setInputError=I9.prototype.setInputError;I9.prototype.setFocusOnCustomAmountInput=I9.prototype.setFocusOnCustomAmountInput;_.R([_.w(Xq_),_.Y("design:type",Object)],I9.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],I9.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],I9.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],I9.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],I9.prototype,"closeLabel",void 0);_.R([_.L(),_.Y("design:type",Object)],I9.prototype,"selectedAmountIndex",void 0);_.R([_.L(),_.Y("design:type",String)],I9.prototype,"customAmountInput",void 0);_.R([_.L(),_.Y("design:type",Object)],I9.prototype,"privacyCheckboxValue",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],I9.prototype,"useAmsterdamStyle",void 0);_.R([_.iP("customAmount"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],I9.prototype,"setFocusOnCustomAmountInput",null);_.R([_.M("data","selectedAmountIndex"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],I9.prototype,"suggestedAmountButtons",null);
_.R([_.M("data","selectedAmountIndex"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],I9.prototype,"isCustomAmountSelected",null);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],I9.prototype,"showPrivacyCheckbox",null);_.R([_.M("data","selectedAmountIndex","customAmount"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],I9.prototype,"amountMicros",null);
_.R([_.M("isCustomAmountSelected","customAmountInput"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],I9.prototype,"customAmount",null);_.R([_.M("customAmount"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],I9.prototype,"shouldShowValidationError",null);_.R([_.M("customAmount"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],I9.prototype,"isDonateButtonEnabled",null);
_.R([_.M("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],I9.prototype,"donateCommand",null);_.R([_.M("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],I9.prototype,"donateCommandWithConfirmation",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],I9.prototype,"largeDonationThreshold",null);
_.R([_.M("customAmount","donateCommand","amountMicros"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],I9.prototype,"confirmLargeAmountCommand",null);_.R([_.M("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],I9.prototype,"donateButtonRenderer",null);_.R([_.iP("shouldShowValidationError"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],I9.prototype,"setInputError",null);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],I9.prototype,"setInitialCheckboxValue",null);_.R([_.e({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],I9);
_.q(I9,"ytd-donation-amount-picker-renderer",function(){if(NNr!==void 0)return NNr;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" aria-label="[[getSimpleString(data.pickerTitle)]]" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" label="[[closeLabel]]" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignTitle)]]</div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignSubtitle)]]</div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return NNr=C},{mode:1});var XRd;var wRx=function(){return _.B.apply(this,arguments)||this};
_.O(wRx,_.B);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],wRx.prototype,"ytComponentBehavior",void 0);_.R([_.L({}),_.Y("design:type",Object)],wRx.prototype,"data",void 0);_.R([_.e({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],wRx);
_.q(wRx,"ytd-donation-post-transaction-content",function(){if(XRd!==void 0)return XRd;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return XRd=C},{mode:1});var Md8;var Ex=function(){return _.B.apply(this,arguments)||this};
_.O(Ex,_.B);Ex.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Ex.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Ex.prototype,"ytRendererBehavior",void 0);_.R([_.L({}),_.Y("design:type",Object)],Ex.prototype,"data",void 0);_.R([_.e({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],Ex);
_.q(Ex,"ytd-donation-post-transaction-renderer",function(){if(Md8!==void 0)return Md8;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Md8=C},{mode:1});var Sct;var LR_;var WG=function(){return _.B.apply(this,arguments)||this};
_.O(WG,_.B);WG.prototype.computeIsStreamingProvider=function(C){return!!C.isStreamingShelf};
WG.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],WG.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],WG.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],WG.prototype,"data",void 0);_.R([_.L({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],WG.prototype,"isStreamingProvider",void 0);
_.R([_.e({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],WG);
_.q(WG,"ytd-media-provider-renderer",function(){if(LR_!==void 0)return LR_;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return LR_=C},{mode:1});var BNh;var tf=function(){return _.B.apply(this,arguments)||this};
_.O(tf,_.B);tf.prototype.observeLightsourcePalette=function(){var C,F=(C=this.data)==null?void 0:C.vibrantsourceColorPaletteData;F&&_.WB(this.hostElement,F)};
tf.prototype.observeLightsourcePalette=tf.prototype.observeLightsourcePalette;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],tf.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],tf.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],tf.prototype,"data",void 0);
_.R([_.iP("data.vibrantsourceColorPaletteData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tf.prototype,"observeLightsourcePalette",null);_.R([_.e({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],tf);
_.q(tf,"ytd-streaming-pop-up-dialog",function(){if(BNh!==void 0)return BNh;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return BNh=C},{mode:1});var a9=function(){return _.B.apply(this,arguments)||this};
_.O(a9,_.B);a9.prototype.onPopupOpened_=function(){var C;((C=this.data)==null?0:C.serviceEndpoint)&&_.I8().resolve(_.WD).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
a9.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
a9.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"}}}}};
a9.prototype.onPopupOpened_=a9.prototype.onPopupOpened_;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],a9.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],a9.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.G1),_.Y("design:type",Object)],a9.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],a9.prototype,"data",void 0);
_.R([_.VG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],a9.prototype,"onPopupOpened_",null);_.R([_.e({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],a9);
_.q(a9,"ytd-brandconnect-popup-renderer",function(){if(Sct!==void 0)return Sct;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Sct=C},{mode:1});var vRr;var km=function(){return _.B.apply(this,arguments)||this};
_.O(km,_.B);_.n=km.prototype;_.n.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.n.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.n.dataChanged=function(){for(var C=0;C<this.getOptionRenderers().length;C++)this.notifyPath("data.options."+C+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+C+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.n.updateSubmitButton=function(C){this.set("data.submitButton.buttonRenderer.isDisabled",!C)};
_.n.computeAlt=function(C){return _.dd(C)};
_.n.onDismissTap=function(){_.rz(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.I8().resolve(_.WD).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.n.getOptionRenderers=function(C){return(C=C||this.data)&&C.options?C.options.reduce(function(F,G){G.checkboxSurveyOptionRenderer&&F.push(G.checkboxSurveyOptionRenderer);return F},[]):[]};
_.n.onOptionChange=function(C){var F=this,G=!1;if(C.detail.checked)for(var V=this.getOptionRenderers().find(function(Q){return Q.value===C.detail.value}),J=this.getOptionRenderers(),b=0;b<J.length;b++){var z=J[b];
this.notifyPath("data.options."+b+".checkboxSurveyOptionRenderer.checked");z.checked&&((V==null?0:V.isExclusiveOption)?!z.isExclusiveOption:z.isExclusiveOption)?this.set("data.options."+b+".checkboxSurveyOptionRenderer.checked",!1):z.checked&&(G=!0)}else G=this.getOptionRenderers().some(function(Q,E){F.notifyPath("data.options."+E+".checkboxSurveyOptionRenderer.checked");return Q.checked});
this.updateSubmitButton(G)};
_.n.onSubmitTap=function(){var C=this.getOptionRenderers().filter(function(b){return b.checked});
if(C.length!==0){var F=C.map(function(b){return b.responseEndpoint});
C=[];for(var G=1;G<F.length;G++){var V=void 0,J=(V=_.Z(F[G],_.Ud))==null?void 0:V.feedbackToken;J&&C.push(J)}F=[F[0]];C.length&&F.push({extra_feedback_tokens:C});_.DQ(this.hostElement,F);_.rz(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);C=this.data&&this.data.submitActions||[];if(_.y("kevlar_command_handler_migration_killswitch"))_.pX(this.hostElement,C,this.hostElement);else for(C=_.u(C),F=C.next();!F.done;F=C.next())this.ytComponentBehavior.resolveCommand(F.value)}};
km.prototype.onOptionChange=km.prototype.onOptionChange;km.prototype.dataChanged=km.prototype.dataChanged;_.R([_.w(_.h9.YtEventForwardingBehavior),_.Y("design:type",Object)],km.prototype,"ytEventForwardingBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],km.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],km.prototype,"ytComponentBehavior",void 0);
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],km.prototype,"ytRendererBehavior",void 0);_.R([_.w(RjU),_.Y("design:type",Object)],km.prototype,"ytdHatsSurveyBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],km.prototype,"data",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],km.prototype,"dataChanged",null);
_.R([_.VG("ytd-checkbox-survey-option-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],km.prototype,"onOptionChange",null);_.R([_.e({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],km);
_.q(km,"ytd-checkbox-survey-renderer",function(){if(vRr!==void 0)return vRr;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return vRr=C},{mode:1});var fzL;var hA3;var Ux=function(){return _.B.apply(this,arguments)||this};
_.O(Ux,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Ux.prototype,"ytRendererBehavior",void 0);_.R([_.w(gjr),_.Y("design:type",Object)],Ux.prototype,"ytdDismissalReasonBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Ux.prototype,"data",void 0);_.R([_.e({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],Ux);
_.q(Ux,"ytd-dismissal-reason-text-renderer",function(){if(hA3!==void 0)return hA3;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return hA3=C},{mode:1});var c$t;var HG=function(){return _.B.apply(this,arguments)||this};
_.O(HG,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],HG.prototype,"ytRendererBehavior",void 0);_.R([_.w(gjr),_.Y("design:type",Object)],HG.prototype,"ytdDismissalReasonBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],HG.prototype,"data",void 0);_.R([_.e({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],HG);
_.q(HG,"ytd-dismissal-reason-video-renderer",function(){if(c$t!==void 0)return c$t;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return c$t=C},{mode:1});var lU=function(){var C=_.B.apply(this,arguments)||this;C.darkerDarkTheme=_.y("web_darker_dark_theme");return C};
_.O(lU,_.B);_.n=lU.prototype;_.n.created=function(){this.selectedFeedbackTokens=new ws};
_.n.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.n.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.n.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.n.onDismissalReasonSelected=function(C,F){_.oo(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(F);this.hasReasonsSelected=!0};
_.n.onDismissalReasonDeselected=function(C,F){_.oo(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(F);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.n.onCancelTap=function(){_.rz(this.hostElement,"yt-close-popup-action")};
_.n.onSubmitTap=function(){var C=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(C={feedback_tokens:C},_.I8().resolve(_.WD).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},C,{element:this.hostElement})}));_.rz(this.hostElement,"yt-close-popup-action")};
lU.prototype.onDismissalReasonDeselected=lU.prototype.onDismissalReasonDeselected;lU.prototype.onDismissalReasonSelected=lU.prototype.onDismissalReasonSelected;lU.prototype.dataChanged=lU.prototype.dataChanged;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],lU.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],lU.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],lU.prototype,"data",void 0);
_.R([_.L(),_.Y("design:type",Boolean)],lU.prototype,"hasReasonsSelected",void 0);_.R([_.L(),_.Y("design:type",ws)],lU.prototype,"selectedFeedbackTokens",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],lU.prototype,"darkerDarkTheme",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lU.prototype,"dataChanged",null);
_.R([_.VG("yt-dismissal-reason-selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,String]),_.Y("design:returntype")],lU.prototype,"onDismissalReasonSelected",null);_.R([_.VG("yt-dismissal-reason-deselected"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,String]),_.Y("design:returntype")],lU.prototype,"onDismissalReasonDeselected",null);_.R([_.e({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],lU);
_.q(lU,"ytd-dismissal-follow-up-renderer",function(){if(fzL!==void 0)return fzL;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return fzL=C},{mode:1});var A$3;var yB=function(){return _.B.apply(this,arguments)||this};
_.O(yB,_.B);_.n=yB.prototype;_.n.onCheckedChange=function(){this.multiselect||_.oo(this.hostElement,"yt-feedback-single-select-changed");_.ot(this.hostElement).querySelector("#freeform").focus();_.oo(this.hostElement,"yt-refit")};
_.n.showTextBox=function(C,F){return C&&F};
_.n.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))};
_.n.updateDataCheckedFromBinding=function(C){this.set("data.checked",C.detail.value)};
_.n.updateDataResultTextFromBinding=function(C){this.set("data.resultText",C.detail.value)};
yB.prototype.dataChanged=yB.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],yB.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],yB.prototype,"data",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],yB.prototype,"multiselect",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yB.prototype,"dataChanged",null);
_.R([_.e({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],yB);
_.q(yB,"ytd-feedback-option-renderer",function(){if(A$3!==void 0)return A$3;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return A$3=C},{mode:1});var eAV;var Zx=function(){return _.B.apply(this,arguments)||this};
_.O(Zx,_.B);Zx.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
Zx.prototype.onSingleSelectCheckedChanged=function(C){C=_.ev(C);for(var F=0;F<this.data.options.length;F++)if(C.data!==_.Z(this.data.options[F],G1d)){var G="data.options."+F+".feedbackOptionRenderer.checked";this.notifyPath(G);this.set(G,!1)}};
Zx.prototype.onSingleSelectCheckedChanged=Zx.prototype.onSingleSelectCheckedChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Zx.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Zx.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Zx.prototype,"data",void 0);
_.R([_.VG("yt-feedback-single-select-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Zx.prototype,"onSingleSelectCheckedChanged",null);_.R([_.e({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],Zx);
_.q(Zx,"ytd-feedback-question-renderer",function(){if(eAV!==void 0)return eAV;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return eAV=C},{mode:1});var dBM;var N$=function(){return _.B.apply(this,arguments)||this};
_.O(N$,_.B);N$.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
N$.prototype.getSelectedFeedbackResults=function(){for(var C={},F=0;F<this.data.questions.length;F++)for(var G=_.Z(this.data.questions[F],F_U),V=0;V<G.options.length;V++){var J=_.Z(G.options[V],G1d);J&&J.checked&&(C[J.optionKey]=J.resultText)}return C};
N$.prototype.onKeyUp=function(){var C=this;_.rQ(_.gT,function(){_.oo(C.hostElement,"yt-refit")});
_.gT.start()};
N$.prototype.submitSurvey=function(){var C=this.getSelectedFeedbackResults();Object.keys(C).length>0&&this.data.submitFeedbackEndpoint&&(C={survey_results:C,is_feedback_token_unencrypted:!0},_.I8().resolve(_.WD).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},C,{element:this.hostElement})}))};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],N$.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],N$.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],N$.prototype,"data",void 0);_.R([_.e({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],N$);
_.q(N$,"ytd-feedback-survey-renderer",function(){if(dBM!==void 0)return dBM;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return dBM=C},{mode:1});var xBM;var suL;var Ox=function(){return _.B.apply(this,arguments)||this};
_.O(Ox,_.B);Ox.prototype.computeAlt=function(C){return _.dd(C)};
Ox.prototype.submitResponse=function(){var C,F;(C=this.data)!=null&&C.feedbackToken&&((F=this.data)==null?void 0:F.nextStageIndex)!==void 0&&(_.KX(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.KX(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
Ox.prototype.onClick=function(){this.submitResponse()};
Ox.prototype.onClick=Ox.prototype.onClick;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Ox.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Ox.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ox.prototype,"vertical",void 0);_.R([_.VG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ox.prototype,"onClick",null);
_.R([_.e({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],Ox);
_.q(Ox,"ytd-single-select-answer-option-renderer",function(){if(suL!==void 0)return suL;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return suL=C},{mode:1});var qcU;var Xz=function(){var C=_.B.apply(this,arguments)||this;C.darkerDarkTheme=_.y("web_darker_dark_theme");C.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return C};
_.O(Xz,_.B);Xz.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
Xz.prototype.dataChanged=function(){var C,F;this.vertical=((F=(C=this.data)==null?void 0:C.answerOrientation)!=null?F:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
Xz.prototype.submitFeedback=function(C){var F;((F=this.data)==null?0:F.responseEndpoint)&&C&&_.DQ(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[C]}])};
Xz.prototype.dataChanged=Xz.prototype.dataChanged;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],Xz.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.h9.YtEventForwardingBehavior),_.Y("design:type",Object)],Xz.prototype,"eventForwardingBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Xz.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Xz.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],Xz.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Xz.prototype,"vertical",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Xz.prototype,"darkerDarkTheme",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Xz.prototype,"dataChanged",null);_.R([_.e({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],Xz);
_.q(Xz,"ytd-single-select-question-renderer",function(){if(qcU!==void 0)return qcU;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return qcU=C},{mode:1});var wO=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return C};
_.O(wO,_.B);_.n=wO.prototype;_.n.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"}}}};
_.n.dataChanged=function(){this.jumpToStage(0)};
_.n.jumpToStage=function(C){var F,G;if((F=this.data)==null?0:(G=F.stages)==null?0:G[C])this.currentStage=this.data.stages[C],this.refitAfterRender()};
_.n.computeAlt=function(C){return _.dd(C)};
_.n.computeSimpleMessage=function(C){var F;return(F=_.Z(C,Jw3))==null?void 0:F.messageText};
_.n.computeHideDismiss=function(C){var F;return(F=_.Z(C,vV_))==null?void 0:F.hideParentDismissButton};
_.n.onDismissTap=function(){_.rz(this.hostElement,"yt-close-popup-action");_.Z(this.currentStage,Jw3)||this.data.dismissalEndpoint&&_.I8().resolve(_.WD).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.n.refitAfterRender=function(){var C=this;_.zH(this,function(){_.oo(C.hostElement,"yt-refit")})};
wO.prototype.dataChanged=wO.prototype.dataChanged;_.R([_.w(_.h9.YtEventForwardingBehavior),_.Y("design:type",Object)],wO.prototype,"eventForwardingBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],wO.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],wO.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],wO.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.w(RjU),_.Y("design:type",Object)],wO.prototype,"ytdHatsSurveyBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],wO.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],wO.prototype,"currentStage",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wO.prototype,"dataChanged",null);_.R([_.e({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],wO);
_.q(wO,"ytd-multi-stage-survey-renderer",function(){if(xBM!==void 0)return xBM;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return xBM=C},{mode:1});var Plh;var M$=function(){return _.B.apply(this,arguments)||this};
_.O(M$,_.B);M$.prototype.computeAlt=function(C){return _.dd(C)};
M$.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.I8().resolve(_.WD).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.rz(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.sts(!1)))};
M$.prototype.onTap=function(){this.vertical&&this.submitResponse()};
M$.prototype.onTap=M$.prototype.onTap;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],M$.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],M$.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],M$.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],M$.prototype,"vertical",void 0);
_.R([_.VG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],M$.prototype,"onTap",null);_.R([_.e({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],M$);
_.q(M$,"ytd-single-option-survey-option-renderer",function(){if(Plh!==void 0)return Plh;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Plh=C},{mode:1});var gRh;var Sc=function(){return _.B.apply(this,arguments)||this};
_.O(Sc,_.B);_.n=Sc.prototype;_.n.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.n.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.n.dataChanged=function(){var C,F;this.vertical=(((C=this.data)==null?void 0:(F=C.surveyOrientation)==null?void 0:F.type)||"HORIZONTAL")==="VERTICAL"};
_.n.computeAlt=function(C){return _.dd(C)};
_.n.onDismissTap=function(){_.rz(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.I8().resolve(_.WD).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.sts(!1))};
Sc.prototype.dataChanged=Sc.prototype.dataChanged;_.R([_.w(_.h9.YtEventForwardingBehavior),_.Y("design:type",Object)],Sc.prototype,"eventForwardingBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Sc.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Sc.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(RjU),_.Y("design:type",Object)],Sc.prototype,"ytdHatsSurveyBehavior",void 0);
_.R([_.w(_.Rr),_.Y("design:type",Object)],Sc.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Sc.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Sc.prototype,"vertical",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Sc.prototype,"dataChanged",null);_.R([_.e({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],Sc);
_.q(Sc,"ytd-single-option-survey-renderer",function(){if(gRh!==void 0)return gRh;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return gRh=C},{mode:1});var RAd;var L8=function(){var C=_.B.apply(this,arguments)||this;C.darkerDarkTheme=_.y("web_darker_dark_theme");return C};
_.O(L8,_.B);L8.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
L8.prototype.onDismissTap=function(){_.rz(this.hostElement,"yt-close-popup-action")};
L8.prototype.onNavigate=function(){_.rz(this.hostElement,"yt-close-popup-action")};
L8.prototype.onNavigate=L8.prototype.onNavigate;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],L8.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.h9.YtEventForwardingBehavior),_.Y("design:type",Object)],L8.prototype,"ytEventForwardingBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],L8.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],L8.prototype,"darkerDarkTheme",void 0);
_.R([_.VG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L8.prototype,"onNavigate",null);_.R([_.e({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],L8);
_.q(L8,"ytd-survey-follow-up-renderer",function(){if(RAd!==void 0)return RAd;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return RAd=C},{mode:1});var Ycr;var TNL;var oRt;var hf=function(){var C=_.B.apply(this,arguments)||this;C.polymer2="Element"in Polymer;return C};
_.O(hf,_.B);_.n=hf.prototype;_.n.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.n.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.n.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.n.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G6("minutes-changed",this.minutes))};
_.n.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G6("seconds-changed",this.seconds))};
_.n.updateMinutesFromBinding=function(C){this.minutes=C.detail.value};
_.n.updateSecondsFromBinding=function(C){this.seconds=C.detail.value};
hf.prototype.secondsChangedForBinding=hf.prototype.secondsChangedForBinding;hf.prototype.minutesChangedForBinding=hf.prototype.minutesChangedForBinding;hf.prototype.secondsChanged=hf.prototype.secondsChanged;_.R([_.L(),_.Y("design:type",String)],hf.prototype,"minutes",void 0);_.R([_.L(),_.Y("design:type",String)],hf.prototype,"seconds",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],hf.prototype,"polymer2",void 0);
_.R([_.$z("#seconds"),_.Y("design:type",Object)],hf.prototype,"secondsEl",void 0);_.R([_.iP("seconds"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hf.prototype,"secondsChanged",null);_.R([_.iP("minutes"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hf.prototype,"minutesChangedForBinding",null);
_.R([_.iP("seconds"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hf.prototype,"secondsChangedForBinding",null);_.R([_.Z5({is:"yt-timestamp-input",disableElementRegistration:!0})],hf);
_.q(hf,"yt-timestamp-input",function(){if(oRt===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;TNL===void 0&&(TNL=document.createElement("template"));var V=TNL;G.call(F,V.content.cloneNode(!0),C.content.firstChild);oRt=C}C=oRt;return C},{mode:2});var cG=function(){return _.B.apply(this,arguments)||this};
_.O(cG,_.B);_.n=cG.prototype;_.n.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20615_scroller.dialogElement=this.hostElement.parentNode};
_.n.dataChanged=function(){var C=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.Re().getPlayerPromise().then(function(F){F=F.getCurrentTime();C.minutes=Math.floor(F/60).toString();C.seconds=(Math.floor(F)%60).toString()})};
_.n.onTapSubmit=function(C){C.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(C={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(C.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(C.minutes=this.minutes,C.seconds=this.seconds),_.I8().resolve(_.WD).resolveCommand(this.serviceEndpoint,{form:Object.assign({},C,{element:this.hostElement})}))};
_.n.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.n.onYtServiceRequestCompleted=function(C,F){F=F.actions;if(Array.isArray(F))for(var G=0,V=F.length;G<V;G++)_.Z(F[G],_.vf)&&(C.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(F[G]))};
_.n.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.n.toggleSubmitButton=function(C){this.set("submitButton.isDisabled",!C)};
_.n.handleInput=function(){var C=this.issueType,F=this.affiliation,G=this.minutes,V=this.seconds;G=!this.showTimestamp||!!G&&!!V;this.toggleSubmitButton(!!this.descriptionText&&!!C&&!!F&&G)};
_.n.computeServiceEndpoint=function(C){return this.get("submitButton.buttonRenderer.serviceEndpoint",C)};
_.n.computeSubmitButton=function(C){(C=this.get("submitButton.buttonRenderer",C))&&(C=Object.assign({},C,{serviceEndpoint:void 0}));return C};
_.n.computeShowTimestamp=function(C){return!!C};
_.n.onValueChangedForIssueType=function(C){this.issueType=C.detail.value};
_.n.onValueChangedForAffiliation=function(C){this.affiliation=C.detail.value};
_.n.updateDescriptionTextFromBinding=function(C){this.descriptionText=C.detail.value};
_.n.updateFullNameTextFromBinding=function(C){this.fullNameText=C.detail.value};
_.n.updateMinutesFromBinding=function(C){this.minutes=C.detail.value};
_.n.updateSecondsFromBinding=function(C){this.seconds=C.detail.value};
cG.prototype.handleInput=cG.prototype.handleInput;cG.prototype.onYtServiceRequestError=cG.prototype.onYtServiceRequestError;cG.prototype.onYtServiceRequestCompleted=cG.prototype.onYtServiceRequestCompleted;cG.prototype.onYtServiceRequestSent=cG.prototype.onYtServiceRequestSent;cG.prototype.dataChanged=cG.prototype.dataChanged;_.R([_.w(_.lc.YtOpenPopupBehavior),_.Y("design:type",Object)],cG.prototype,"ytOpenPopupBehavior",void 0);
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],cG.prototype,"ytRendererBehavior",void 0);_.R([_.$z("#scroller"),_.Y("design:type",Object)],cG.prototype,"JSC$20615_scroller",void 0);_.R([_.$z("#description"),_.Y("design:type",HTMLInputElement)],cG.prototype,"description",void 0);_.R([_.$z("#full-name"),_.Y("design:type",Object)],cG.prototype,"fullName",void 0);_.R([_.L(),_.Y("design:type",Object)],cG.prototype,"data",void 0);
_.R([_.L({computed:"computeShowTimestamp(data.timestampLabel)"}),_.Y("design:type",Boolean)],cG.prototype,"showTimestamp",void 0);_.R([_.L({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.Y("design:type",Object)],cG.prototype,"serviceEndpoint",void 0);_.R([_.L({computed:"computeSubmitButton(data)"}),_.Y("design:type",Object)],cG.prototype,"submitButton",void 0);_.R([_.L(),_.Y("design:type",String)],cG.prototype,"descriptionText",void 0);
_.R([_.L(),_.Y("design:type",Number)],cG.prototype,"issueType",void 0);_.R([_.L(),_.Y("design:type",Number)],cG.prototype,"affiliation",void 0);_.R([_.L(),_.Y("design:type",String)],cG.prototype,"fullNameText",void 0);_.R([_.L(),_.Y("design:type",String)],cG.prototype,"minutes",void 0);_.R([_.L(),_.Y("design:type",String)],cG.prototype,"seconds",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cG.prototype,"dataChanged",null);
_.R([_.VG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Sn]),_.Y("design:returntype")],cG.prototype,"onYtServiceRequestSent",null);_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.en]),_.Y("design:returntype")],cG.prototype,"onYtServiceRequestCompleted",null);
_.R([_.VG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],cG.prototype,"onYtServiceRequestError",null);_.R([_.iP("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cG.prototype,"handleInput",null);_.R([_.e({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],cG);
_.q(cG,"ytd-legal-report-details-form-renderer",function(){if(Ycr!==void 0)return Ycr;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Ycr=C},{mode:1});var r$s;var Af=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return C};
_.O(Af,_.B);Af.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
Af.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var C=this.formRenderer.getForm();C&&this.data.submitEndpoint&&(_.I8().resolve(_.WD).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},C,{element:this.hostElement})}),_.rz(this.hostElement,"yt-close-popup-action"))}};
Af.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.rz(this.hostElement,"yt-close-popup-action"))};
Af.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
Af.prototype.onPopupClosed=Af.prototype.onPopupClosed;_.R([_.w(_.h9.YtEventForwardingBehavior),_.Y("design:type",Object)],Af.prototype,"ytEventForwardingBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Af.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],Af.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Af.prototype,"ytRendererBehavior",void 0);
_.R([_.$z("yt-form-renderer"),_.Y("design:type",Object)],Af.prototype,"formRenderer",void 0);_.R([_.L(),_.Y("design:type",Object)],Af.prototype,"data",void 0);_.R([_.VG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Af.prototype,"onPopupClosed",null);_.R([_.e({is:"ytd-form-popup-content",disableElementRegistration:!0})],Af);
_.q(Af,"ytd-form-popup-content",function(){if(r$s!==void 0)return r$s;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return r$s=C},{mode:1});var KRL;var ec=function(){return _.B.apply(this,arguments)||this};
_.O(ec,_.B);ec.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
ec.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ec.prototype.onPopupOpened=function(){_.oo(this.hostElement,"yt-invalidate-popup-tabbables")};
ec.prototype.onYtServiceRequestCompleted=function(C,F){F.data&&F.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.oo(this.hostElement,"yt-invalidate-popup-tabbables"))};
ec.prototype.onYtServiceRequestCompleted=ec.prototype.onYtServiceRequestCompleted;ec.prototype.onPopupOpened=ec.prototype.onPopupOpened;_.R([_.w(_.h9.YtEventForwardingBehavior),_.Y("design:type",Object)],ec.prototype,"ytEventForwardingBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],ec.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ec.prototype,"ytRendererBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],ec.prototype,"data",void 0);_.R([_.VG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ec.prototype,"onPopupOpened",null);_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.en]),_.Y("design:returntype")],ec.prototype,"onYtServiceRequestCompleted",null);_.R([_.e({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],ec);
_.q(ec,"ytd-form-popup-renderer",function(){if(KRL!==void 0)return KRL;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return KRL=C},{mode:1});var DB3;var dO=function(){var C=_.B.apply(this,arguments)||this;C.isLoading=!1;return C};
_.O(dO,_.B);_.n=dO.prototype;_.n.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");pbx(this.hostElement)};
_.n.onYtServiceRequestSent=function(){this.isLoading=!0};
_.n.onYtServiceRequestCompleted=function(){_.rz(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.n.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.pX(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.n.closePopupHandler=function(){this.fireOnCloseActions()};
_.n.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var C=this.get("data.headerImage.thumbnails");C&&(C=_.RP(C,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+C+")")}};
_.n.onYtNavigate=function(C){(C=_.ev(C))&&C.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
dO.prototype.onYtNavigate=dO.prototype.onYtNavigate;dO.prototype.onHeaderImageChanged=dO.prototype.onHeaderImageChanged;dO.prototype.closePopupHandler=dO.prototype.closePopupHandler;dO.prototype.onYtServiceRequestCompleted=dO.prototype.onYtServiceRequestCompleted;dO.prototype.onYtServiceRequestSent=dO.prototype.onYtServiceRequestSent;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],dO.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.h9.YtEventForwardingBehavior),_.Y("design:type",Object)],dO.prototype,"ytEventForwardingBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],dO.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],dO.prototype,"isLoading",void 0);_.R([_.$z("#header"),_.Y("design:type",HTMLDivElement)],dO.prototype,"header",void 0);_.R([_.$z("#confirm-button"),_.Y("design:type",_.Bn)],dO.prototype,"confirmButton",void 0);
_.R([_.VG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],dO.prototype,"onYtServiceRequestSent",null);_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],dO.prototype,"onYtServiceRequestCompleted",null);
_.R([_.VG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],dO.prototype,"closePopupHandler",null);_.R([_.iP("data.headerImage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dO.prototype,"onHeaderImageChanged",null);_.R([_.VG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],dO.prototype,"onYtNavigate",null);
_.R([_.e({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],dO);
_.q(dO,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(DB3!==void 0)return DB3;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return DB3=C},{mode:1});var pRt;var xm=function(){var C=_.B.apply(this,arguments)||this;C.isLoading=!1;return C};
_.O(xm,_.B);_.n=xm.prototype;_.n.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"}}}};
_.n.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);pbx(this.hostElement)};
_.n.onYtServiceRequestCompleted=function(){_.rz(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.n.onYtServiceRequestError=function(C){_.Bl(this.hostElement,C.detail.error.message)};
_.n.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.n.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.rz(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.n.onDataChanged=function(){this.isLoading=!1;var C=this.get("data.headerImage.thumbnails");C&&(C=_.RP(C,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+C+")");C=_.ZQ();var F=_.lm(),G=this.get("data.trackingParams");G&&F&&C&&_.vA(C,F,_.zS(G))};
_.I6.Object.defineProperties(xm.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
xm.prototype.onDataChanged=xm.prototype.onDataChanged;xm.prototype.onDomChange=xm.prototype.onDomChange;xm.prototype.onYtServiceRequestError=xm.prototype.onYtServiceRequestError;xm.prototype.onYtServiceRequestCompleted=xm.prototype.onYtServiceRequestCompleted;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],xm.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],xm.prototype,"ytRendererBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],xm.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],xm.prototype,"isLoading",void 0);_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xm.prototype,"hasDescription",null);_.R([_.$z("tp-yt-paper-dialog-scrollable"),_.Y("design:type",Object)],xm.prototype,"scrollable",void 0);_.R([_.$z("#header"),_.Y("design:type",HTMLElement)],xm.prototype,"header",void 0);
_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],xm.prototype,"onYtServiceRequestCompleted",null);_.R([_.VG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],xm.prototype,"onYtServiceRequestError",null);
_.R([_.VG("dom-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],xm.prototype,"onDomChange",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xm.prototype,"onDataChanged",null);_.R([_.e({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],xm);
_.q(xm,"ytd-gaming-account-link-setting-renderer",function(){if(pRt!==void 0)return pRt;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return pRt=C},{mode:1});var mBh;var Cvs;var sx=function(){var C=_.B.apply(this,arguments)||this;C.isHeader=!1;C.getEndpointForm=function(){return xb8(C.data)};
return C};
_.O(sx,_.B);_.n=sx.prototype;_.n.triggerHintActions=function(){var C=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var F=_.KX(C.hostElement,"yt-get-opened-popups-action");!(F&&F.length===1?F[0]:[]).some(function(G){G=G.openPopupAction.popupType;return G==="SURVEY"||G==="MEALBAR"||G==="HINT"})&&C.data.hintActions&&C.guideOpened&&(_.pX(C.hostElement,C.data.hintActions,C.hostElement),C.data.hintActions=void 0)})};
_.n.getBadgeIconType=function(C){return C&&C.liveBroadcasting?"live":null};
_.n.onDown=function(){this.interaction.triggerDown()};
_.n.onUp=function(){this.interaction.triggerUp()};
_.n.onTap=function(C){if(this.data.serviceEndpoint){var F;_.y("shorts_controller_retrieve_seedless_sequence_v2")&&((F=_.Z(this.data.serviceEndpoint,_.nd))==null?void 0:F.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):dbd(this.data.serviceEndpoint,this);C.preventDefault()}else this.data.navigationEndpoint&&!_.dE(_.AR(C),this.hostElement,["A".toString()])&&_.oo(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.n.computeActive=function(C,F){if(!C)return!1;var G=C.navigationEndpoint;C=C.serviceEndpoint;if(!G&&!C||!F)return!1;if(G){C=(C=_.Vk(F))&&["subscriptions","filteredsubscriptions"].includes(C);if(_.Z(G,_.iE)&&_.Z(F,_.iE)&&!C){var V=_.Z(G,_.iE).browseId;F=_.Z(F,_.iE).browseId;return V!==void 0&&F!==void 0&&(V===F||V==="VLWL"&&F==="FEwatch_later"||V==="FEwatch_later"&&F==="VLWL")}var J;G=(J=_.Z(G.commandMetadata,_.GU))==null?void 0:J.url;F=(V=_.Z(F.commandMetadata,_.GU))==null?void 0:V.url;return!(!G||
!F||G!==F&&G!==_.X$(F))}return this.isActiveShortsTab(C,F)};
_.n.isActiveShortsTab=function(C,F){F=!!_.Z(F,_.nd)||!!_.Z(F,_.od);return(!!_.Z(C,_.nd)||!!_.Z(C,_.od))&&F};
_.n.computeIsPrimary=function(C){return!!C};
_.I6.Object.defineProperties(sx.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 C=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&C)return C}}});
sx.prototype.onTap=sx.prototype.onTap;sx.prototype.onUp=sx.prototype.onUp;sx.prototype.onDown=sx.prototype.onDown;sx.prototype.triggerHintActions=sx.prototype.triggerHintActions;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],sx.prototype,"componentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],sx.prototype,"rendererBehavior",void 0);_.R([_.w(_.ic.YtTaskEmitterBehavior),_.Y("design:type",Object)],sx.prototype,"taskEmitterBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],sx.prototype,"activeEndpoint",void 0);_.R([_.L(),_.Y("design:type",Object)],sx.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Boolean)],sx.prototype,"guideOpened",void 0);_.R([_.L(),_.Y("design:type",String)],sx.prototype,"type",void 0);_.R([_.$z("yt-interaction"),_.Y("design:type",Object)],sx.prototype,"interaction",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],sx.prototype,"isHeader",void 0);
_.R([_.L({reflectToAttribute:!0}),_.M("data","activeEndpoint"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],sx.prototype,"active",null);_.R([_.L({reflectToAttribute:!0}),_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],sx.prototype,"isPrimary",null);_.R([_.L({reflectToAttribute:!0}),_.M("data.count","data.presentationStyle","data.badges.*"),_.Y("design:type",String),_.Y("design:paramtypes",[])],sx.prototype,"lineEndStyle",null);
_.R([_.M("lineEndStyle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],sx.prototype,"ariaLabel",null);_.R([_.iP("data.hintActions","guideOpened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sx.prototype,"triggerHintActions",null);_.R([_.VG("down"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sx.prototype,"onDown",null);
_.R([_.VG("up"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sx.prototype,"onUp",null);_.R([_.VG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],sx.prototype,"onTap",null);_.R([_.e({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],sx);
_.q(sx,"ytd-guide-entry-renderer",function(){if(Cvs!==void 0)return Cvs;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Cvs=C},{mode:1});var q$=function(){var C=_.B.apply(this,arguments)||this;C.userToggled=!1;return C};
_.O(q$,_.B);_.n=q$.prototype;_.n.getItemsPath=function(){return"data.expandableItems"};
_.n.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.n.onExpanderItemTapped=function(C){var F=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.y("kevlar_guide_expandable_items_killswitch")&&_.zH(this,function(){_.J5(F.expandableItems)});
C.preventDefault()};
_.n.onCollapserItemTapped=function(C){var F=this;this._setExpanded(!1);this.userToggled=!0;C.preventDefault();this.expandableItems&&!_.y("kevlar_guide_collapsible_items_killswitch")&&_.zH(this,function(){_.iS(F.hostElement)})};
_.n.observeActiveEndpoint=function(){for(var C=this.activeEndpoint,F=this.data,G=this.expandableItems.children,V=0,J=G.length;V<J;V++)G[V].activeEndpoint=C;F&&F.autoExpandCommand&&C&&!this.userToggled&&(G=this.data.autoExpandCommand,F=!(!_.Z(G,_.iE)||!_.Z(C,_.iE)||_.Z(G,_.iE).browseId!==_.Z(C,_.iE).browseId),C=this.get("commandMetadata.webCommandMetadata.url",C),G=this.get("commandMetadata.webCommandMetadata.url",G),F=F||!!(C&&G&&C.includes(G)),this._setExpanded(F),F&&this.ytLazyListBehavior.fillRemainingListItems())};
q$.prototype.observeActiveEndpoint=q$.prototype.observeActiveEndpoint;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],q$.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],q$.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.zR.YtLazyListBehavior),_.Y("design:type",Object)],q$.prototype,"ytLazyListBehavior",void 0);_.R([_.$z("#expandable-items"),_.Y("design:type",HTMLElement)],q$.prototype,"expandableItems",void 0);
_.R([_.L(),_.Y("design:type",Object)],q$.prototype,"data",void 0);_.R([_.L({readOnly:!0,reflectToAttribute:!0}),_.Y("design:type",Boolean)],q$.prototype,"expanded",void 0);_.R([_.L({value:0}),_.Y("design:type",Number)],q$.prototype,"initialCount",void 0);_.R([_.L(),_.Y("design:type",Object)],q$.prototype,"activeEndpoint",void 0);_.R([_.iP("data","activeEndpoint","canShowMore"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],q$.prototype,"observeActiveEndpoint",null);
_.R([_.e({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],q$);
_.q(q$,"ytd-guide-collapsible-entry-renderer",function(){if(mBh!==void 0)return mBh;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return mBh=C},{mode:_.oN("kevlar_poly_si_batch_j079")?1:2});var jBl;var FzW;var PG=function(){var C=_.B.apply(this,arguments)||this;C.allVideosCount=0;C.renderGuideEntry=!1;return C};
_.O(PG,_.B);PG.prototype.observeRenderEntry=function(){var C;this.renderGuideEntry=!((C=this.data)==null||!C.alwaysShow)||!!this.allVideosCount};
PG.prototype.observeRenderEntry=PG.prototype.observeRenderEntry;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],PG.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],PG.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],PG.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],PG.prototype,"activeEndpoint",void 0);_.R([_.L({selector:_.dQo}),_.Y("design:type",Object)],PG.prototype,"allVideosCount",void 0);
_.R([_.L(),_.Y("design:type",Object)],PG.prototype,"renderGuideEntry",void 0);_.R([_.zp("allVideosCount","data.alwaysShow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PG.prototype,"observeRenderEntry",null);_.R([_.e({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],PG);
_.q(PG,"ytd-guide-downloads-entry-renderer",function(){if(FzW===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);FzW=C}C=FzW;return C},{mode:1});var gO=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return C};
_.O(gO,_.B);_.n=gO.prototype;_.n.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]]"}}}}}};
_.n.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var C=this.sectionItems.children,F=0,G=C.length;F<G;F++)C[F].activeEndpoint=this.activeEndpoint}};
_.n.handleAddToGuideSectionAction=function(C){var F=_.Z(C,yZM);if(F&&this.data&&(C=F.items,F=F.handlerData,C&&F&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(F)>-1)){F=0;for(var G=C.length;F<G;F++)C[F].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,C[F])}};
_.n.handleRemoveFromGuideSectionAction=function(C){var F=_.Z(C,Zpt);F&&this.data&&(C=F.guideEntryId,F=F.handlerData,C&&F&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(F)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(C,this.data.sectionItems),this.removeFromCollapsedSection(C,this.data.sectionItems)))};
_.n.removeFromExpandedSection=function(C,F){C=this.getEntryIndexMatchingId(C,F);C!==-1&&this.splice("data.sectionItems",C,1)};
_.n.removeFromCollapsedSection=function(C,F){var G=F.findIndex(function(V){return!!_.Z(V,xRd)});
G&&G!==-1&&F[G]&&_.Z(F[G],xRd)&&(F=_.Z(F[G],xRd).expandableItems)&&(C=this.getEntryIndexMatchingId(C,F),C!==-1&&this.splice("data.sectionItems."+G+".guideCollapsibleEntryRenderer.expandableItems",C,1))};
_.n.getEntryIndexMatchingId=function(C,F){var G=this;return F.findIndex(function(V){return G.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",V)===C})};
gO.prototype.activeEndpointChanged=gO.prototype.activeEndpointChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],gO.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],gO.prototype,"actionHandlerBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],gO.prototype,"ytRendererstamperBehavior",void 0);_.R([_.$z("#section-items"),_.Y("design:type",HTMLDivElement)],gO.prototype,"sectionItems",void 0);
_.R([_.$z("#header-entry"),_.Y("design:type",Object)],gO.prototype,"headerEntry",void 0);_.R([_.L(),_.Y("design:type",Object)],gO.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],gO.prototype,"activeEndpoint",void 0);_.R([_.iP("activeEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gO.prototype,"activeEndpointChanged",null);_.R([_.e({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],gO);
_.q(gO,"ytd-guide-collapsible-section-entry-renderer",function(){if(jBl===void 0){var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="true" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);jBl=C}C=jBl;return C},{mode:1});var GPx;var V43;var R9=function(){var C=_.B.apply(this,arguments)||this;C.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 C};
_.O(R9,_.B);_.n=R9.prototype;
_.n.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}}}}};
_.n.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var C=_.KX(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);C&&C.length===1&&C[0]&&_.KX(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.n.handleResetChannelUnreadCountCommand=function(C){var F;(C=(F=_.Z(C,Op3))==null?void 0:F.channelId)&&this.data&&this.data.items&&(F=this.getPathToEntryMatchingId(C))&&(this.set(F+".guideEntryRenderer.count",0),this.set(F+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.n.handleResetSubscriptionsUnreadDotCommand=function(C){var F,G=(F=_.Z(C,XIV))==null?void 0:F.targetId,V;G&&(V=this.data)!=null&&V.items&&(C=this.data.items.findIndex(function(J){var b;return((b=J.guideEntryRenderer)==null?void 0:b.targetId)===G}),C<0||this.set("data.items."+C+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.n.getPathToEntryMatchingId=function(C){if(this.data&&this.data.items){var F=this.getEntryIndexMatchingId(C,this.data.items);if(F>-1)return"data.items."+F;for(var G=0;G<this.data.items.length;G++)if(F=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[G]))if(F=this.getEntryIndexMatchingId(C,F),F>-1)return"data.items."+G+".guideCollapsibleEntryRenderer.expandableItems."+F}};
_.n.handleAddToGuideSectionAction=function(C){var F=this;if(_.Z(C,yZM)){var G=_.Z(C,yZM).items;C=_.Z(C,yZM).handlerData;var V,J;if(G&&C&&((V=this.data)==null?void 0:(J=V.handlerDatas)==null?void 0:J.indexOf(C))>-1){G=G.filter(function(z){return(z=F.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",z))&&!F.isGuideItemPresent(z)});
var b;if(C==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((b=this.data)==null?0:b.items)&&(V=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),V>-1)){this.splice.apply(this,["data.items",V+1,0].concat(_.da(G)));return}this.unshift.apply(this,["data.items"].concat(_.da(G)))}}};
_.n.isGuideItemPresent=function(C){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(C,this.data.items)!==-1)return!0;var F=this.data.items.find(function(G){return!!G.guideCollapsibleEntryRenderer});
if((F==null?0:F.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(C,F.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.n.getEntryIndexMatchingId=function(C,F){var G=this;return F.findIndex(function(V){return G.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",V)===C})};
_.n.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(C,F){var G=this;return F.findIndex(function(V){return G.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",V)===C})};
_.n.handleRemoveFromGuideSectionAction=function(C){if(_.Z(C,Zpt)){var F=_.Z(C,Zpt).guideEntryId;C=_.Z(C,Zpt).handlerData;var G,V;F&&C&&((G=this.data)==null?void 0:(V=G.handlerDatas)==null?void 0:V.indexOf(C))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(F,this.data.items),this.removeFromCollapsedSection(F,this.data.items))}};
_.n.removeFromExpandedSection=function(C,F){C=this.getEntryIndexMatchingId(C,F);C!==-1&&this.splice("data.items",C,1)};
_.n.removeFromCollapsedSection=function(C,F){var G=F.findIndex(function(V){return!!V.guideCollapsibleEntryRenderer});
G!==-1&&(F=F[G].guideCollapsibleEntryRenderer.expandableItems)&&(C=this.getEntryIndexMatchingId(C,F),C!==-1&&this.splice("data.items."+G+".guideCollapsibleEntryRenderer.expandableItems",C,1))};
_.n.activeEndpointChanged=function(){for(var C=_.ot(this.hostElement).querySelector("#items").children,F=0,G=C.length;F<G;F++)C[F].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.n.guideOpenedChanged=function(){for(var C=_.ot(this.hostElement).querySelector("#items").children,F=0,G=C.length;F<G;F++)C[F].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
R9.prototype.guideOpenedChanged=R9.prototype.guideOpenedChanged;R9.prototype.activeEndpointChanged=R9.prototype.activeEndpointChanged;R9.prototype.persistentGuideChanged=R9.prototype.persistentGuideChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],R9.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],R9.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],R9.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.zR.YtLazyListBehavior),_.Y("design:type",Object)],R9.prototype,"ytLazyListBehavior",void 0);_.R([_.w(_.DL.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],R9.prototype,"ytdGuideStateAwareBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],R9.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],R9.prototype,"data",void 0);
_.R([_.L(),_.Y("design:type",String)],R9.prototype,"type",void 0);_.R([_.L({value:20}),_.Y("design:type",Number)],R9.prototype,"initialCount",void 0);_.R([_.L({value:10}),_.Y("design:type",Number)],R9.prototype,"targetFramerate",void 0);_.R([_.L({value:!0}),_.Y("design:type",Boolean)],R9.prototype,"autoFill",void 0);_.R([_.L({value:50}),_.Y("design:type",Number)],R9.prototype,"renderDelay",void 0);
_.R([_.iP("guidePersistentAndVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],R9.prototype,"persistentGuideChanged",null);_.R([_.zp("activeEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],R9.prototype,"activeEndpointChanged",null);_.R([_.zp("guideOpened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],R9.prototype,"guideOpenedChanged",null);
_.R([_.e({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],R9);
_.q(R9,"ytd-guide-section-renderer",function(){if(V43!==void 0)return V43;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return V43=C},{mode:_.oN("kevlar_poly_si_batch_j073")?1:2});var iLs;var Ym=function(){return _.B.apply(this,arguments)||this};
_.O(Ym,_.B);_.I6.Object.defineProperties(Ym.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Ym.prototype,"rendererBehaviors",void 0);_.R([_.L(),_.Y("design:type",Object)],Ym.prototype,"data",void 0);_.R([_.L(),_.M("data.signInButton.buttonRenderer.style"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ym.prototype,"alignByText",null);_.R([_.e({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],Ym);
_.q(Ym,"ytd-guide-signin-promo-renderer",function(){if(iLs===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);iLs=C}C=iLs;return C},{mode:1});var TK=function(){var C=_.B.apply(this,arguments)||this;C.showFooter=!1;return C};
_.O(TK,_.B);TK.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}}}}};
TK.prototype.attached=function(){var C=this,F;return _.I(function(G){if(G.nextAddress==1){F=_.I8().resolve(_.Qt(_.KK));if(!F)return G.jumpTo(0);F.setGuideData(C.hostElement);return G.yield(0,3)}C.ytLazyListBehavior.initialCount=2;return G.return()})};
TK.prototype.onMouseExit=function(){_.y("web_guide_hover_expansion")&&_.KX(this.hostElement,"yt-guide-mouseleaved",[])};
TK.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
TK.prototype.dataChanged=TK.prototype.dataChanged;TK.prototype.onMouseExit=TK.prototype.onMouseExit;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],TK.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],TK.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.zR.YtLazyListBehavior),_.Y("design:type",Object)],TK.prototype,"ytLazyListBehavior",void 0);
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],TK.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],TK.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],TK.prototype,"showFooter",void 0);_.R([_.L({value:!0}),_.Y("design:type",Boolean)],TK.prototype,"autoFill",void 0);_.R([_.VG("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],TK.prototype,"onMouseExit",null);
_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],TK.prototype,"dataChanged",null);_.R([_.e({is:"ytd-guide-renderer",disableElementRegistration:!0})],TK);
_.q(TK,"ytd-guide-renderer",function(){if(GPx!==void 0)return GPx;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return GPx=C},{mode:_.oN("kevlar_poly_si_batch_j073")?1:2});var JQr;var o9=function(){var C=_.B.apply(this,arguments)||this;C.systemIcons=_.y("kevlar_system_icons");C.frostedGlass=_.y("web_frosted_glass");C.getEndpointForm=function(){return xb8(C.data)};
return C};
_.O(o9,_.B);_.n=o9.prototype;_.n.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.n.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.dd(this.data.formattedTitle))};
_.n.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.n.onDown=function(){this.interaction.triggerDown()};
_.n.onUp=function(){this.interaction.triggerUp()};
_.n.onTap=function(C){if(this.data.serviceEndpoint){var F;_.y("shorts_controller_retrieve_seedless_sequence_v2")&&((F=_.Z(this.data.serviceEndpoint,_.nd))==null?void 0:F.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):dbd(this.data.serviceEndpoint,this);C.preventDefault()}else{var G;((G=this.data)==null?0:G.navigationEndpoint)&&!_.dE(_.AR(C),this.hostElement,["A".toString()])&&_.oo(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.n.computeActive=function(C,F){if(!C)return!1;var G=C.navigationEndpoint;C=C.serviceEndpoint;if(!G&&!C||!F)return!1;if(G){C=_.Z(G,_.iE);var V=_.Z(F,_.iE);if(C&&V)return C.browseId===V.browseId&&C.params===V.params;var J;G=(J=_.Z(G.commandMetadata,_.GU))==null?void 0:J.url;var b;F=(b=_.Z(F.commandMetadata,_.GU))==null?void 0:b.url;return!(!G||!F||G!==F&&G!==_.X$(F))}return this.isActiveShortsTab(C,F)};
_.n.isActiveShortsTab=function(C,F){F=!!_.Z(F,_.nd)||!!_.Z(F,_.od);return(!!_.Z(C,_.nd)||!!_.Z(C,_.od))&&F};
_.n.computeTitle=function(C,F){return F?"":_.dd(C)};
_.I6.Object.defineProperties(o9.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
o9.prototype.onTap=o9.prototype.onTap;o9.prototype.onUp=o9.prototype.onUp;o9.prototype.onDown=o9.prototype.onDown;o9.prototype.onActiveStateChange=o9.prototype.onActiveStateChange;o9.prototype.dataChanged=o9.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],o9.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],o9.prototype,"ytComponentBehavior",void 0);
_.R([_.w(_.dg),_.Y("design:type",Object)],o9.prototype,"ironButtonState",void 0);_.R([_.L(),_.Y("design:type",Object)],o9.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],o9.prototype,"activeEndpoint",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],o9.prototype,"noLabels",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.Y("design:type",Boolean)],o9.prototype,"isActive",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],o9.prototype,"systemIcons",void 0);_.R([_.$z("yt-interaction"),_.Y("design:type",Object)],o9.prototype,"interaction",void 0);_.R([_.M("isActive"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],o9.prototype,"ariaSelected",null);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],o9.prototype,"frostedGlass",void 0);
_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],o9.prototype,"dataChanged",null);_.R([_.iP("isActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],o9.prototype,"onActiveStateChange",null);_.R([_.VG("down"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],o9.prototype,"onDown",null);
_.R([_.VG("up"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],o9.prototype,"onUp",null);_.R([_.VG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],o9.prototype,"onTap",null);_.R([_.e({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],o9);
_.q(o9,"ytd-mini-guide-entry-renderer",function(){if(JQr!==void 0)return JQr;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return JQr=C},{mode:_.oN("kevlar_poly_si_batch_j063")?1:2});var $98;var rO=function(){var C=_.B.apply(this,arguments)||this;C.allVideosCount=0;C.noLabels=_.y("kevlar_mini_guide_no_labels")||_.y("kevlar_modern_mini_guide");C.frostedGlass=_.y("web_frosted_glass");return C};
_.O(rO,_.B);_.n=rO.prototype;_.n.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.n.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.n.onMouseEnter=function(){_.y("web_guide_hover_expansion")&&_.KX(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.n.visibleChanged=function(){if(this.visible&&!this.data){var C=_.I8().resolve(_.Qt(_.KK));C&&C.setGuideData(this.hostElement)}};
_.n.dataChanged=function(){var C=_.y("kevlar_modern_mini_guide"),F;var G=(F=this.data)==null?void 0:F.items;F=this.allVideosCount;var V=[];if(G){for(var J=[],b=_.u(G),z=b.next();!z.done;z=b.next())if(z=z.value,z.guideSubscriptionsSectionRenderer){var Q=void 0;J=((Q=z.guideSubscriptionsSectionRenderer)==null?void 0:Q.items)||[]}G=_.u(G);for(b=G.next();!b.done;b=G.next())if(b=b.value,z=void 0,(z=b.guideSectionRenderer)==null?0:z.items)for(z=void 0,b=_.u((z=b.guideSectionRenderer)==null?void 0:z.items),
z=b.next();!z.done;z=b.next()){z=z.value;var E=void 0,t=void 0;Q=z.guideEntryRenderer||_.Z((E=z)==null?void 0:(t=E.guideCollapsibleSectionEntryRenderer)==null?void 0:t.headerEntry,sEV);E=[];t=[];var k=void 0;if(((k=Q)==null?void 0:k.targetId)==="subscriptions-guide-item")E=J;else{var U=k=void 0;if((k=z)==null?0:(U=k.guideCollapsibleSectionEntryRenderer)==null?0:U.sectionItems)t=E=z.guideCollapsibleSectionEntryRenderer.sectionItems}qdL(V,Q,C?E:[]);if(t.length>0)for(z=_.u(t),Q=z.next();!Q.done;Q=z.next())Q=
Q.value,t=_.Z(Q,sOx),E=void 0,t=t&&(t.alwaysShow||F)?_.Z((E=t)==null?void 0:E.entryRenderer,sEV):_.Z(Q,sEV),qdL(V,t,[])}}this.miniGuideItems=V};
_.n.activeEndpointChanged=function(){for(var C=this.items.children,F=0;F<C.length;F++)C[F].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.n.registerWithViewTransitionManager=function(){var C=this;_.c8(_.gT,function(){var F=_.I8().resolve(_.Qt(_.vq));if(F&&F.isAnyTransitionEnabled){var G={};F.viewTransitionCoordinator.registerElement(C.hostElement,(G.slide="mini-guide-page-transition",G))}})};
rO.prototype.activeEndpointChanged=rO.prototype.activeEndpointChanged;rO.prototype.dataChanged=rO.prototype.dataChanged;rO.prototype.visibleChanged=rO.prototype.visibleChanged;rO.prototype.onMouseEnter=rO.prototype.onMouseEnter;_.R([_.w(_.Rr),_.Y("design:type",Object)],rO.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],rO.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],rO.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.DL.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],rO.prototype,"ytdGuideStateAwareBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],rO.prototype,"ytComponentBehavior",void 0);_.R([_.$z("#items"),_.Y("design:type",Object)],rO.prototype,"items",void 0);_.R([_.L(),_.Y("design:type",Object)],rO.prototype,"data",void 0);
_.R([_.L(),_.Y("design:type",Boolean)],rO.prototype,"visible",void 0);_.R([_.L(),_.Y("design:type",Object)],rO.prototype,"miniGuideItems",void 0);_.R([_.L({selector:_.dQo}),_.Y("design:type",Object)],rO.prototype,"allVideosCount",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],rO.prototype,"noLabels",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],rO.prototype,"frostedGlass",void 0);
_.R([_.VG("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rO.prototype,"onMouseEnter",null);_.R([_.zp("visible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rO.prototype,"visibleChanged",null);_.R([_.zp("data","allVideosCount"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rO.prototype,"dataChanged",null);
_.R([_.zp("activeEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rO.prototype,"activeEndpointChanged",null);_.R([_.e({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],rO);
_.q(rO,"ytd-mini-guide-renderer",function(){if($98===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);$98=C}C=$98;return C},{mode:1});var bLd;var n58=/^[\x00-\x7F]+$/,K8=function(){var C=_.B.apply(this,arguments)||this;C.darkerDarkTheme=_.y("web_darker_dark_theme");return C};
_.O(K8,_.B);_.I6.Object.defineProperties(K8.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var C,F=_.dd((C=this.data)==null?void 0:C.handle);if(F)return _.eN("@"+F)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var C=_.dd(this.displayHandle),F,G=_.dd((F=this.data)==null?void 0:F.handleUrl);if(C&&G)return _.eN(G+C)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var C=_.dd(this.displayHandle);if(C&&!n58.test(C)){var F;return(F=this.data)==null?void 0:F.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var C=_.dd(this.displayHandleUrl),F,G=_.dd((F=this.data)==null?void 0:F.urlInfoText);if(C&&G)return _.eN(G+" "+C)}}});
_.R([_.L(),_.Y("design:type",Object)],K8.prototype,"data",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],K8.prototype,"displayHandle",null);_.R([_.M("displayHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],K8.prototype,"displayHandleUrl",null);_.R([_.M("displayHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],K8.prototype,"warningText",null);
_.R([_.M("displayHandleUrl"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],K8.prototype,"urlInfoTextWithUrl",null);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],K8.prototype,"darkerDarkTheme",void 0);_.R([_.e({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],K8);
_.q(K8,"ytd-handles-claiming-confirm-dialog-content",function(){if(bLd!==void 0)return bLd;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return bLd=C},{mode:1});var uqt;var Dx=function(){var C=_.B.apply(this,arguments)||this;C.okButtonOverride={style:"mono",type:"outline",size:"M"};return C};
_.O(Dx,_.B);Dx.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Dx.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Dx.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Dx.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Dx.prototype,"okButtonOverride",void 0);_.R([_.L(),_.Y("design:type",Object)],Dx.prototype,"data",void 0);_.R([_.e({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],Dx);
_.q(Dx,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(uqt!==void 0)return uqt;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return uqt=C},{mode:1});var zLV;var QBW=/^[\x00-\x7F]+$/,p8=function(){var C=_.B.apply(this,arguments)||this;C.isLoading=!1;C.darkerDarkTheme=_.y("web_darker_dark_theme");return C};
_.O(p8,_.B);p8.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var C;this.selectedHandle=(C=this.handleInput)==null?void 0:C.value;this.onSelectedHandleChanged(this.selectedHandle);_.KX(this.hostElement,"yt-refit-popups-action")}};
_.I6.Object.defineProperties(p8.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var C;return(C=this.data)==null?void 0:C.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.eN("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.eN(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!QBW.test(this.selectedHandle)){var C;return(C=this.data)==null?void 0:C.warningText}}}});
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],p8.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],p8.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",String)],p8.prototype,"selectedHandle",void 0);_.R([_.L(),_.Y("design:type",Object)],p8.prototype,"isLoading",void 0);_.R([_.L(),_.Y("design:type",Function)],p8.prototype,"onSelectedHandleChanged",void 0);_.R([_.$z("#channel-handle-input"),_.Y("design:type",Object)],p8.prototype,"handleInput",void 0);
_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],p8.prototype,"handleUrlPrefix",null);_.R([_.M("selectedHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],p8.prototype,"displayHandle",null);_.R([_.M("selectedHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],p8.prototype,"displayHandleUrl",null);_.R([_.M("selectedHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],p8.prototype,"warningText",null);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],p8.prototype,"darkerDarkTheme",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],p8.prototype,"ytRendererBehavior",void 0);_.R([_.e({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],p8);
_.q(p8,"ytd-handles-claiming-edit-dialog-content",function(){if(zLV!==void 0)return zLV;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return zLV=C},{mode:1});var IvM;var mX=function(){var C=_.B.apply(this,arguments)||this;C.actionButtonOverride={style:"mono",type:"filled",size:"M"};C.cancelButtonOverride={style:"mono",type:"text",size:"M"};C.selectButtonDisabled=!1;C.isLoading=!1;C.hasSelectedHandleEventListener=!1;C.selectedHandleChanged=function(F){C.selectedHandle=F};
return C};
_.O(mX,_.B);_.n=mX.prototype;_.n.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.n.onDataChanged=function(){var C,F;this.selectedHandle=(F=_.Z((C=this.data)==null?void 0:C.inputField,aMU))==null?void 0:F.handle};
_.n.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.n.onCancel=function(){this.selectedHandle="";_.rz(this.hostElement,"yt-close-popup-action",[this.is])};
_.n.onSelectHandle=function(){var C=this;if(this.selectedHandle!==void 0){var F;((F=this.data)==null?void 0:F.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(G,V){if(V.newHandleUpdateStatus!==void 0&&V.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&V.newHandleUpdateStatus.errorMessage)_.Bl(C.hostElement,_.dd(V.newHandleUpdateStatus.errorMessage)),
C.isLoading=!1;else{var J;if((J=C.data)==null?0:J.onChannelUpdateSuccess){G=C.data.onChannelUpdateSuccess;var b,z;if(V=(b=_.Z(G,_.vf))==null?void 0:(z=b.popup)==null?void 0:z.handlesClaimingConfirmDialogRenderer)V.handle=_.eN(C.selectedHandle);C.ytComponentBehavior.resolveCommand(G);_.rz(C.hostElement,"yt-close-popup-action",[C.is])}else C.isLoading=!1}},
onServerError:function(){var G;C.content&&((G=C.content)==null?0:G.handleInput)&&C.content.handleInput.validate();C.isLoading=!1;_.Bl(C.hostElement,_.iQ("TRY_AGAIN_LATER"))}}}))}};
_.n.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
mX.prototype.onDataChanged=mX.prototype.onDataChanged;mX.prototype.onSelectedHandleChanged=mX.prototype.onSelectedHandleChanged;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],mX.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],mX.prototype,"actionButtonOverride",void 0);_.R([_.L(),_.Y("design:type",Object)],mX.prototype,"cancelButtonOverride",void 0);_.R([_.L(),_.Y("design:type",Object)],mX.prototype,"data",void 0);
_.R([_.L(),_.Y("design:type",String)],mX.prototype,"selectedHandle",void 0);_.R([_.L(),_.Y("design:type",Object)],mX.prototype,"selectButtonDisabled",void 0);_.R([_.L(),_.Y("design:type",Object)],mX.prototype,"isLoading",void 0);_.R([_.L(),_.Y("design:type",Object)],mX.prototype,"hasSelectedHandleEventListener",void 0);_.R([_.L(),_.Y("design:type",Object)],mX.prototype,"handleInput",void 0);
_.R([_.iP("selectedHandle"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mX.prototype,"onSelectedHandleChanged",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mX.prototype,"onDataChanged",null);_.R([_.$z("ytd-handles-claiming-edit-dialog-content"),_.Y("design:type",Object)],mX.prototype,"content",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],mX.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],mX.prototype,"ytRendererstamperBehavior",void 0);_.R([_.e({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],mX);
_.q(mX,"ytd-handles-claiming-edit-dialog-renderer",function(){if(IvM!==void 0)return IvM;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return IvM=C},{mode:1});var E5U;var Cm=function(){return _.B.apply(this,arguments)||this};
_.O(Cm,_.B);_.I6.Object.defineProperties(Cm.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var C;if((C=this.data)==null?0:C.handle){var F;return _.eN("@"+_.dd((F=this.data)==null?void 0:F.handle))}}}});
_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Cm.prototype,"formattedHandle",null);_.R([_.L(),_.Y("design:type",Object)],Cm.prototype,"data",void 0);_.R([_.e({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],Cm);
_.q(Cm,"ytd-handles-claiming-radio-option-renderer",function(){if(E5U!==void 0)return E5U;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return E5U=C},{mode:1});var Wzh;var t4x=/^[\x00-\x7F]+$/,jD=function(){var C=_.B.apply(this,arguments)||this;C.initialRadioIndex="-1";C.isLoading=!1;C.darkerDarkTheme=_.y("web_darker_dark_theme");C.maybeSubmitFeedback=function(){C.feedbackSurveyRenderer.submitSurvey()};
return C};
_.O(jD,_.B);jD.prototype.updateSelectedHandleIndexFromBinding=function(C){this.selectedRadioIndex=+C.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(C)};
jD.prototype.selectedHandleChanged=function(C){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var F;this.selectedHandle=(F=this.handleInput)==null?void 0:F.value;this.onSelectedHandleChanged(C)}};
_.I6.Object.defineProperties(jD.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var C;return(((C=this.data)==null?void 0:C.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var C;return this.ytRendererBehavior.getSimpleString((C=this.data)==null?void 0:C.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.eN("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.eN(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!t4x.test(this.selectedHandle)){var C;return(C=this.data)==null?void 0:C.warningText}}}});
_.R([_.L(),_.Y("design:type",Object)],jD.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],jD.prototype,"initialRadioIndex",void 0);_.R([_.L(),_.Y("design:type",Number)],jD.prototype,"selectedRadioIndex",void 0);_.R([_.L(),_.Y("design:type",String)],jD.prototype,"selectedHandle",void 0);_.R([_.L(),_.Y("design:type",Object)],jD.prototype,"isLoading",void 0);_.R([_.L(),_.Y("design:type",Function)],jD.prototype,"onSelectedHandleChanged",void 0);
_.R([_.L(),_.Y("design:type",Function)],jD.prototype,"onSelectedRadioIndexChanged",void 0);_.R([_.$z("#channel-handle-input"),_.Y("design:type",Object)],jD.prototype,"handleInput",void 0);_.R([_.$z("ytd-feedback-survey-renderer"),_.Y("design:type",Object)],jD.prototype,"feedbackSurveyRenderer",void 0);_.R([_.M("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],jD.prototype,"radioButtonLength",null);
_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jD.prototype,"handleUrlPrefix",null);_.R([_.M("selectedHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jD.prototype,"displayHandle",null);_.R([_.M("selectedHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jD.prototype,"displayHandleUrl",null);_.R([_.M("selectedHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jD.prototype,"warningText",null);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],jD.prototype,"darkerDarkTheme",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],jD.prototype,"ytRendererBehavior",void 0);_.R([_.e({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],jD);
_.q(jD,"ytd-handles-claiming-select-dialog-content",function(){if(Wzh!==void 0)return Wzh;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Wzh=C},{mode:1});var avV;var Fm=function(){var C=_.B.apply(this,arguments)||this;C.actionButtonOverride={style:"mono",type:"filled",size:"M"};C.cancelButtonOverride={style:"mono",type:"text",size:"M"};C.initialRadioIndex="-1";C.selectButtonDisabled=!1;C.isLoading=!1;C.selectedRadioIndexChanged=function(F){C.selectedRadioIndex=Number(F.detail.value)};
C.selectedHandleChanged=function(F){C.selectedHandle=F.detail.value};
C.darkerDarkTheme=_.y("web_darker_dark_theme");return C};
_.O(Fm,_.B);_.n=Fm.prototype;_.n.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.n.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.n.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.KX(this.hostElement,"yt-refit-popups-action")};
_.n.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.n.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.rz(this.hostElement,"yt-close-popup-action",[this.is])};
_.n.onSelectHandle=function(){var C=this;if(this.selectedHandle!==void 0){var F;((F=this.data)==null?void 0:F.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(G,V){if(V.newHandleUpdateStatus!==void 0&&V.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&V.newHandleUpdateStatus.errorMessage)_.Bl(C.hostElement,_.dd(V.newHandleUpdateStatus.errorMessage)),
C.isLoading=!1;else{var J;if((J=C.data)==null?0:J.onChannelUpdateSuccess){G=C.data.onChannelUpdateSuccess;V=_.Z(G,_.vf);var b;if(V==null?0:(b=V.popup)==null?0:b.handlesClaimingConfirmDialogRenderer)V.popup.handlesClaimingConfirmDialogRenderer.handle=_.eN(C.selectedHandle);C.ytComponentBehavior.resolveCommand(G);_.rz(C.hostElement,"yt-close-popup-action",[C.is])}else C.isLoading=!1}},
onServerError:function(){if(C.selectedRadioIndex===C.radioButtonLength){var G;C.content&&((G=C.content)==null?0:G.handleInput)&&C.content.handleInput.validate()}C.isLoading=!1;_.Bl(C.hostElement,_.iQ("TRY_AGAIN_LATER"))}}}))}};
_.n.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var C,F;this.selectedHandle=(C=this.content)==null?void 0:(F=C.handleInput)==null?void 0:F.value}else this.selectedRadioIndex>=0&&((C=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(C==null?void 0:C.handle):this.selectedHandle=void 0)};
_.n.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.n.getRadioItem=function(C){if(this.radioButtonLength>C&&C>=0)return _.Z(this.data.radioButton[C],fMr)};
_.I6.Object.defineProperties(Fm.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var C;return(((C=this.data)==null?void 0:C.radioButton)||[]).length}}});
Fm.prototype.onSelectedHandleChanged=Fm.prototype.onSelectedHandleChanged;Fm.prototype.onSelectedHandleIndexChanged=Fm.prototype.onSelectedHandleIndexChanged;Fm.prototype.onDataChanged=Fm.prototype.onDataChanged;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Fm.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Fm.prototype,"actionButtonOverride",void 0);_.R([_.L(),_.Y("design:type",Object)],Fm.prototype,"cancelButtonOverride",void 0);
_.R([_.L(),_.Y("design:type",Object)],Fm.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],Fm.prototype,"initialRadioIndex",void 0);_.R([_.L(),_.Y("design:type",Number)],Fm.prototype,"selectedRadioIndex",void 0);_.R([_.L(),_.Y("design:type",String)],Fm.prototype,"selectedHandle",void 0);_.R([_.L(),_.Y("design:type",Object)],Fm.prototype,"selectButtonDisabled",void 0);_.R([_.L(),_.Y("design:type",Object)],Fm.prototype,"isLoading",void 0);
_.R([_.M("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Fm.prototype,"radioButtonLength",null);_.R([_.$z("ytd-handles-claiming-select-dialog-content"),_.Y("design:type",Object)],Fm.prototype,"content",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fm.prototype,"onDataChanged",null);
_.R([_.iP("selectedRadioIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fm.prototype,"onSelectedHandleIndexChanged",null);_.R([_.iP("selectedHandle"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fm.prototype,"onSelectedHandleChanged",null);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Fm.prototype,"darkerDarkTheme",void 0);
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Fm.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Fm.prototype,"ytRendererstamperBehavior",void 0);_.R([_.e({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],Fm);
_.q(Fm,"ytd-handles-claiming-select-dialog-renderer",function(){if(avV!==void 0)return avV;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return avV=C},{mode:1});var kPW;var U9d;var GX=function(){return _.B.apply(this,arguments)||this};
_.O(GX,_.B);GX.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],GX.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],GX.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],GX.prototype,"data",void 0);_.R([_.e({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],GX);
_.q(GX,"ytd-hotkey-dialog-section-option-renderer",function(){if(U9d!==void 0)return U9d;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return U9d=C},{mode:1});var HLr;var Vw=function(){return _.B.apply(this,arguments)||this};
_.O(Vw,_.B);Vw.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Vw.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Vw.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Vw.prototype,"data",void 0);_.R([_.e({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],Vw);
_.q(Vw,"ytd-hotkey-dialog-section-renderer",function(){if(HLr!==void 0)return HLr;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return HLr=C},{mode:1});var iD=function(){var C=_.B.apply(this,arguments)||this;C.darkerDarkTheme=_.y("web_darker_dark_theme");return C};
_.O(iD,_.B);iD.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],iD.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],iD.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],iD.prototype,"darkerDarkTheme",void 0);_.R([_.e({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],iD);
_.q(iD,"ytd-hotkey-dialog-content",function(){if(kPW!==void 0)return kPW;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return kPW=C},{mode:1});var lvr;var Jq=function(){return _.B.apply(this,arguments)||this};
_.O(Jq,_.B);Jq.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var C=document.querySelector("ytd-hotkey-dialog-content #scrollable");C&&(C.dialogElement=this.hostElement.parentElement)};
Jq.prototype.onCloseTap=function(){_.rz(this.hostElement,"yt-close-popup-action")};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Jq.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Jq.prototype,"data",void 0);_.R([_.e({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],Jq);
_.q(Jq,"ytd-hotkey-dialog-renderer",function(){if(lvr!==void 0)return lvr;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return lvr=C},{mode:1});var yQr;var $7=function(){return _.B.apply(this,arguments)||this};
_.O($7,_.B);$7.prototype.onYtServiceRequestError=function(){if(this.blocked){var C;var F=(C=this.data)==null?void 0:C.defaultServiceEndpoint}else{var G;F=(G=this.data)==null?void 0:G.toggledServiceEndpoint}var V;(F=(V=_.Z(F,_.HH7))==null?void 0:V.onFailureAction)&&this.ytComponentBehavior.resolveCommand(F);this.updateBlockState(!this.blocked)};
$7.prototype.onYtToggleButton=function(C){this.updateBlockState(C.detail.toggled)};
$7.prototype.updateBlockState=function(C){if(C!==this.blocked){var F=this.blockedEntityKey;F&&this.ytdReduxBehavior.dispatch(_.z3("blockStateEntity",F,{key:F,blocked:C}));this.set("data.isToggled",C)}};
_.I6.Object.defineProperties($7.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)}}});
$7.prototype.onYtToggleButton=$7.prototype.onYtToggleButton;$7.prototype.onYtServiceRequestError=$7.prototype.onYtServiceRequestError;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],$7.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],$7.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],$7.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],$7.prototype,"blockedEntityKey",void 0);
_.R([_.L({selectorArgs:["blockedEntityKey"],selector:function(C,F){return _.jN(C.entities,"blockStateEntity",F)}}),
_.Y("design:type",Object)],$7.prototype,"blockStateEntity",void 0);_.R([_.M("data","blockStateEntity"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],$7.prototype,"blocked",null);_.R([_.VG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],$7.prototype,"onYtServiceRequestError",null);
_.R([_.VG("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],$7.prototype,"onYtToggleButton",null);_.R([_.e({is:"ytd-block-button",disableElementRegistration:!0})],$7);
_.q($7,"ytd-block-button",function(){if(yQr!==void 0)return yQr;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return yQr=C},
{mode:1});var ZLW;var Ne_;var bD=function(){return _.B.apply(this,arguments)||this};
_.O(bD,_.B);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],bD.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],bD.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],bD.prototype,"data",void 0);_.R([_.e({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],bD);
_.q(bD,"ytd-kids-blocklist-picker-item-renderer",function(){if(Ne_!==void 0)return Ne_;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Ne_=C},{mode:1});var nm=function(){return _.B.apply(this,arguments)||this};
_.O(nm,_.B);nm.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],nm.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],nm.prototype,"data",void 0);_.R([_.e({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],nm);
_.q(nm,"ytd-kids-blocklist-picker-content",function(){if(ZLW!==void 0)return ZLW;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return ZLW=
C},{mode:_.oN("kevlar_poly_si_batch_j025")?1:2});var OLt;var uD=function(){var C=_.B.apply(this,arguments)||this;C.hasAnyRequestSucceeded=!1;C.hasAnyRequestFailed=!1;C.numPendingRequests=0;return C};
_.O(uD,_.B);_.n=uD.prototype;_.n.attached=function(){this.hostElement.setAttribute("dialog","")};
_.n.onDoneButtonTap=function(){_.rz(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.n.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.n.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.n.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.n.onPopupClosed=function(C){var F,G;if(((F=C.detail)==null?void 0:(G=F.popup)==null?void 0:G.is)==="tp-yt-paper-dialog"){var V;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((V=this.data)==null?0:V.successfulToastActionMessage)&&(C=_.PY(this.data.successfulToastActionMessage),this.ytComponentBehavior.resolveCommand(C));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
uD.prototype.onPopupClosed=uD.prototype.onPopupClosed;uD.prototype.onYtServiceRequestError=uD.prototype.onYtServiceRequestError;uD.prototype.onYtServiceRequestCompleted=uD.prototype.onYtServiceRequestCompleted;uD.prototype.onYtServiceRequestSent=uD.prototype.onYtServiceRequestSent;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],uD.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],uD.prototype,"ytRendererBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],uD.prototype,"data",void 0);_.R([_.VG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uD.prototype,"onYtServiceRequestSent",null);_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uD.prototype,"onYtServiceRequestCompleted",null);
_.R([_.VG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uD.prototype,"onYtServiceRequestError",null);_.R([_.VG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],uD.prototype,"onPopupClosed",null);_.R([_.e({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],uD);
_.q(uD,"ytd-kids-blocklist-picker-renderer",function(){if(OLt!==void 0)return OLt;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return OLt=C},{mode:1});var XK_;var wK8;var zX=function(){return _.B.apply(this,arguments)||this};
_.O(zX,_.B);zX.prototype.setTip=function(C){var F=this;this.data&&(this.tip=b6V(JpU.getInstance(),C,this.data),_.zH(this,function(){_.oo(F.hostElement,"yt-refit")}))};
zX.prototype.clearTip=function(){this.tip=void 0};
zX.prototype.computeHidden=function(C){return!C};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],zX.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],zX.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.Y("design:type",Boolean)],zX.prototype,"hidden",void 0);_.R([_.L(),_.Y("design:type",Object)],zX.prototype,"tip",void 0);_.R([_.e({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],zX);
_.q(zX,"ytd-menu-popup-tip-renderer",function(){if(wK8!==void 0)return wK8;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);
return wK8=C},{mode:1});var M4d;var Qw=function(){var C=_.B.apply(this,arguments)||this;C.useIcons=!1;C.systemIcons=_.y("kevlar_system_icons");C.useListItemStyles=_.y("web_list_item_style_for_menu_items");return C};
_.O(Qw,_.B);_.n=Qw.prototype;_.n.onFocus=function(){var C;(C=_.ot(this.hostElement).querySelector("tp-yt-paper-item"))==null||C.focus()};
_.n.onTap=function(){var C=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(C&&_.Z(C,_.Cl))this.componentBehavior.resolveCommand(C),this.updateToggledStateInEntity();else if(C){this.componentBehavior.resolveCommand(C)||_.I8().resolve(_.WD).resolveCommand(C,{form:{element:this.hostElement}});var F;((F=_.Z(C,_.FI))==null?void 0:F.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.n.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.n.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.n.updateToggledStateInEntity=function(){var C=this.data.toggleMenuServiceItemEntityKey,F=!this.data.isToggled;C&&this.ytdReduxBehavior.dispatch(_.z3("toggleMenuServiceItemEntity",C,{key:C,isToggled:F}))};
_.n.computeIcon=function(C,F,G){return(C=C?G:F)&&C.iconType?_.p5(C.iconType):""};
_.n.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.n.isIconActive=function(C){return!_.y("toggle_menu_active_icon_killswitch")&&C};
_.I6.Object.defineProperties(Qw.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var C,F,G;return((C=this.data)==null?0:C.isToggled)?(F=this.data)==null?void 0:F.toggledText:(G=this.data)==null?void 0:G.defaultText}}});
Qw.prototype.toggledStateEntityChanged=Qw.prototype.toggledStateEntityChanged;Qw.prototype.onYtServiceRequestCompleted=Qw.prototype.onYtServiceRequestCompleted;Qw.prototype.onTap=Qw.prototype.onTap;Qw.prototype.onFocus=Qw.prototype.onFocus;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Qw.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Qw.prototype,"componentBehavior",void 0);
_.R([_.w(_.Rr),_.Y("design:type",Object)],Qw.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Qw.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Qw.prototype,"useIcons",void 0);_.R([_.L({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.Y("design:type",String)],Qw.prototype,"icon",void 0);
_.R([_.L({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:_.cn.toggleMenuServiceItemEntitySelector}),_.Y("design:type",Object)],Qw.prototype,"toggleMenuServiceItemEntity",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Qw.prototype,"systemIcons",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Qw.prototype,"useListItemStyles",void 0);
_.R([_.VG("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qw.prototype,"onFocus",null);_.R([_.M("data.isToggled"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Qw.prototype,"toggleButtonText",null);_.R([_.VG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qw.prototype,"onTap",null);
_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qw.prototype,"onYtServiceRequestCompleted",null);_.R([_.iP("toggleMenuServiceItemEntity.isToggled","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qw.prototype,"toggledStateEntityChanged",null);_.R([_.e({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],Qw);
_.q(Qw,"ytd-toggle-menu-service-item-renderer",function(){if(M4d!==void 0)return M4d;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return M4d=C},{mode:1});var SNs;var I2=function(){return _.B.apply(this,arguments)||this};
_.O(I2,_.B);I2.prototype.onFocus=function(){var C;(C=_.ot(this.hostElement).querySelector("tp-yt-paper-item"))==null||C.focus()};
_.I6.Object.defineProperties(I2.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.Ph(this.data.iconUrl)}}});
I2.prototype.onFocus=I2.prototype.onFocus;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],I2.prototype,"rendererBehavior",void 0);_.R([_.w(_.yR.YtEndpointBehavior),_.Y("design:type",Object)],I2.prototype,"ytEndpointBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],I2.prototype,"data",void 0);_.R([_.VG("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],I2.prototype,"onFocus",null);
_.R([_.M("data.iconUrl"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],I2.prototype,"imageSource",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],I2);
_.q(I2,"ytd-menu-custom-icon-item-renderer",function(){if(SNs!==void 0)return SNs;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return SNs=C},{mode:_.oN("kevlar_poly_si_batch_j028")?1:2});_.gQ(_.oi,"yt-list-item-view-model",{props:{data:_.CJ,isMenuItem:_.CJ,isCompact:_.CJ,onTap:_.s9,trailingAccessory:_.s9,hideSelectionTextChevron:_.CJ,disabled:_.CJ,inPopup:_.CJ,disableHorizontalPadding:_.CJ,isOverlay:_.CJ,isToggled:_.CJ,ariaLabel:_.CJ,ariaPressed:_.CJ}});var Eu=function(){var C=_.B.apply(this,arguments)||this;C.disableBackdropFilter=_.y("web_disable_backdrop_filter");return C};
_.O(Eu,_.B);_.n=Eu.prototype;
_.n.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"}}}};
_.n.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.n.computeAriaLabel=function(C){return C};
_.n.onPopupOpened=function(){this.items.selected=0;for(var C=_.u(_.ot(this.items).children),F=C.next();!F.done;F=C.next())F.value.popupPositionTarget=this.positionTarget;if(C=this.popupTip||void 0)C.setTip(this.source||""),this.source=void 0;this.veData&&(C=_.ZQ())&&_.cA(C,[this.veData])};
_.n.onPopupClosed=function(){var C=this.popupTip||void 0;C&&C.clearTip()};
_.n.onIronActivate=function(C){this.shouldPersist(C)||_.rz(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(C=_.ZQ())&&_.ej(C,this.veData)};
_.n.shouldPersist=function(C){var F,G;if(((F=C.detail)==null?void 0:F.selected)===void 0||(G=this.data)==null||!G.items)return!1;var V,J;return!((J=(V=this.data.items[C.detail.selected])==null?void 0:V.toggleMenuServiceItemRenderer)==null||!J.persistentOnMenuPopup)};
_.n.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(C){return C.menuNavigationItemRenderer?!!C.menuNavigationItemRenderer.icon:C.menuServiceItemRenderer?!!C.menuServiceItemRenderer.icon:C.menuConditionalServiceItemRenderer?!!C.menuConditionalServiceItemRenderer.icon:C.menuConditionalNavigationItemRenderer?!!C.menuConditionalNavigationItemRenderer.icon:C.toggleMenuServiceItemRenderer?!!C.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
Eu.prototype.onPopupClosed=Eu.prototype.onPopupClosed;Eu.prototype.onPopupOpened=Eu.prototype.onPopupOpened;_.R([_.w(_.h9.YtEventForwardingBehavior),_.Y("design:type",Object)],Eu.prototype,"ytEventForwardingBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Eu.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Eu.prototype,"ytRendererBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],Eu.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],Eu.prototype,"veData",void 0);_.R([_.L({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.Y("design:type",String)],Eu.prototype,"ariaLabel",void 0);_.R([_.L({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Eu.prototype,"useIcons",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Eu.prototype,"disableBackdropFilter",void 0);_.R([_.$z("#items"),_.Y("design:type",Object)],Eu.prototype,"items",void 0);_.R([_.$z("ytd-menu-popup-tip-renderer"),_.Y("design:type",Object)],Eu.prototype,"popupTip",void 0);_.R([_.VG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Eu.prototype,"onPopupOpened",null);
_.R([_.VG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Eu.prototype,"onPopupClosed",null);_.R([_.e({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],Eu);
_.q(Eu,"ytd-menu-popup-renderer",function(){if(XK_!==void 0)return XK_;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return XK_=C},{mode:1});var Lz3;var Bed=_.d(function(C){C=_.xz(C,{icon:void 0});var F=C.data;C=C.icon;var G=function(){return F().iconBadgeText},V={},J=_.py("yt-spec-icon-badge-shape",function(){a:switch(F().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(F().iconBadgeStyle){case "overlay":var b="yt-spec-icon-badge-shape--style-overlay";
break a;default:b=""}return b},(V["yt-spec-icon-badge-shape--text-size-small"]=function(){var b=G();
return!!((b==null?0:b.length)&&b.length>2)},V));
return _.W("yt-icon-badge-shape",null,_.W(_.a,{cond:C,then:function(b){return _.W("div",{class:J},_.W("div",{class:"yt-spec-icon-badge-shape__icon"},_.W(_.i5,{icon:b})),_.W(_.a,{cond:G,then:function(z){return _.W("div",{class:"yt-spec-icon-badge-shape__badge"},z)}}))}}))},"ij");
Bed.idomCompat=!0;_.gQ(Bed,"yt-icon-badge-shape",{props:{data:_.CJ,icon:_.CJ}});var WF=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};C.unseenCount=0;C.isOverlay=!1;return C};
_.O(WF,_.B);_.n=WF.prototype;_.n.attached=function(){var C=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(F){C.onServiceWorkerMessage(F)})};
_.n.onDataChanged=function(){this.isAttached&&!this.JSC$20752_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20752_lastData=this.data};
_.n.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.n.computeIcon=function(){var C,F;return(C=this.data)==null?void 0:(F=C.icon)==null?void 0:F.iconType};
_.n.onServiceWorkerMessage=function(C){C.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.n.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.Z(this.data.updateUnseenCountEndpoint,_.FI)&&_.Z(this.data.updateUnseenCountEndpoint,_.FI).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.n.handleUpdateNotificationsUnseenCountAction=function(C){var F=this;C=_.Z(C,NP_);C!=null&&C.unseenCount&&C.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(C.unseenCount),_.gT.addLowPriorityJob(function(){F.data.updateUnseenCountEndpoint&&F.ytComponentBehavior.resolveCommand(F.data.updateUnseenCountEndpoint)},C.timeoutMs))};
_.n.onClick=function(){_.oo(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var C=_.KX(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),F=this.data.menuRequest;C&&C.length===1&&C[0]?_.rz(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):F&&this.ytComponentBehavior.resolveCommand(F)};
_.n.handleTopbarMenuClosedAction=function(C){C==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.n.toggleIconState=function(C){this.iconButton&&(this.iconButton.pressed=C)};
_.n.sendUnseenCountRequest=function(C){var F=this;_.c8(_.gT,function(){F.ytComponentBehavior.resolveCommand(C)})};
_.n.updateCountUI=function(C){this.set("unseenCount",C<9?C:"9+")};
_.I6.Object.defineProperties(WF.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
WF.prototype.handleUpdateNotificationsUnseenCountAction=WF.prototype.handleUpdateNotificationsUnseenCountAction;WF.prototype.onDataChanged=WF.prototype.onDataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],WF.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],WF.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.nK),_.Y("design:type",Object)],WF.prototype,"ytdOpenPopupBehavior",void 0);
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],WF.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],WF.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],WF.prototype,"unseenCount",void 0);_.R([_.L(),_.Y("design:type",Object)],WF.prototype,"isOverlay",void 0);_.R([_.L({value:!0}),_.Y("design:type",Boolean)],WF.prototype,"showTooltips",void 0);_.R([_.$z("yt-icon-button"),_.Y("design:type",Object)],WF.prototype,"iconButton",void 0);
_.R([_.M("unseenCount"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],WF.prototype,"showNotificationCount",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WF.prototype,"onDataChanged",null);_.R([_.VG("yt-update-notifications-unseen-count-action"),_.Y("design:type",Function),_.Y("design:paramtypes",[Object]),_.Y("design:returntype")],WF.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.R([_.e({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],WF);
_.q(WF,"ytd-notification-topbar-button-renderer",function(){if(Lz3!==void 0)return Lz3;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Lz3=C},{mode:_.oN("kevlar_poly_si_batch_j025")?1:2});var v53;var tq=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return C};
_.O(tq,_.B);tq.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}}}}}};
tq.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
tq.prototype.onDarkModeToggled=function(C){this.dark=C};
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],tq.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],tq.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],tq.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],tq.prototype,"data",void 0);_.R([_.L({value:!0,reflectToAttribute:!0}),_.Y("design:type",Boolean)],tq.prototype,"dark",void 0);
_.R([_.e({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],tq);
_.q(tq,"yt-pdg-buy-flow-header-renderer",function(){if(v53!==void 0)return v53;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return v53=C},{mode:1});var fvl;var hLV;var a2=function(){var C=_.B.apply(this,arguments)||this;C.immediateValue=0;C.isDarkTheme=!1;C.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return C};
_.O(a2,_.B);_.n=a2.prototype;_.n.created=function(){_.oY.requestAvailability()};
_.n.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.n.dataChanged=function(){var C=_.ot(this.hostElement).querySelector("#color-slider");C.immediateValue&&this.updateSliderKnobAndGradientStyles(C.immediateValue);this.data.notches[0].knobColorArgb&&_.jr(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.lE(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.TF("HTML_DIR")==="rtl"&&_.ot(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.n.onSliderImmediateChange=function(){var C=_.ot(this.hostElement).querySelector("#color-slider");C.dragging&&(C.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(C.immediateValue),this.updateSliderKnobAndGradientStyles(C.immediateValue)),this.updateSliderAria())};
_.n.onSliderChange=function(){var C=_.ot(this.hostElement).querySelector("#color-slider");C.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(C.immediateValue),this.updateSliderKnobAndGradientStyles(C.immediateValue));this.updateSliderAria()};
_.n.updateSliderAria=function(){var C=_.ot(this.hostElement).querySelector("#color-slider"),F=_.ot(this.hostElement).querySelector("#color-slider");F=_.dd(this.data.notches[F.immediateValue].tierValue);_.kEs()&&_.oo(this.hostElement,"iron-announce",{text:F});C.setAttribute("aria-valuetext",F)};
_.n.updateSuperThanksSelectedTierEntity=function(C){if(C!==this.immediateValue){var F,G,V=this==null?void 0:(F=this.data)==null?void 0:(G=F.superThanksSelectedTierEntity)==null?void 0:G.key;V&&V.length>0&&this.ytdReduxBehavior.dispatch(_.z3("superThanksSelectedTierEntity",V,{key:V,index:C}))}};
_.n.onDarkModeToggledAction=function(C){this.isDarkTheme=C};
_.n.updateSliderKnobAndGradientStyles=function(C){this.immediateValue=C;C=this.data.notches[C];if(C==null?0:C.knobColorArgb)var F={"--ytd-pdg-color-slider-knob-color":_.lE(C.knobColorArgb)};(C==null?0:C.linearGradientCssStyle)&&F!==null&&(F=Object.assign({},F,{"--ytd-pdg-color-slider-active-color":C==null?void 0:C.linearGradientCssStyle}));F!==null&&_.jr(this.hostElement,F)};
a2.prototype.onSliderChange=a2.prototype.onSliderChange;a2.prototype.onSliderImmediateChange=a2.prototype.onSliderImmediateChange;a2.prototype.dataChanged=a2.prototype.dataChanged;_.R([_.L(),_.Y("design:type",Object)],a2.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],a2.prototype,"immediateValue",void 0);_.R([_.L(),_.Y("design:type",Number)],a2.prototype,"maxMarkers",void 0);
_.R([_.L({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:iZs}),_.Y("design:type",Object)],a2.prototype,"superThanksSelectedTierEntity",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],a2.prototype,"isDarkTheme",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],a2.prototype,"ytdReduxBehavior",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],a2.prototype,"dataChanged",null);
_.R([_.VG("immediate-value-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],a2.prototype,"onSliderImmediateChange",null);_.R([_.VG("change"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],a2.prototype,"onSliderChange",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],a2);
_.q(a2,"ytd-pdg-color-slider-renderer",function(){if(hLV!==void 0)return hLV;var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return hLV=C},{mode:1});var cQM;var AQl;var k7=null;
_.kz({is:"ytd-comment-input",_template:function(){if(AQl!==void 0)return AQl;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return AQl=C},
behaviors:[_.pXI.YtHostElementBehavior,_.wg,_.Ys.YtComponentBehavior,_.nJ.YtRendererstamperBehavior,_.Rzm.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 _.mP}},
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",_.Gp(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;_.a4();this.focus()},
detached:function(){document.removeEventListener("tap",_.Gp(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(C){C=C.detail;C=C.isCustomEmoji?C.shortcuts[0]:C.emojiId;var F=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(F,C);this.maybeUpdateTextDirection_();_.oo(this.hostElement,"input")},
getInputRange_:function(){var C=_.rv();if(C){C=C.getBrowserRangeObject();for(var F=C.commonAncestorContainer;F;){if(F===this.getEditableTextArea_())return C;F=F.parentNode}}C=this.getEditableTextArea_();C=_.sz(C,C.childNodes.length);C.select();return C.getBrowserRangeObject()},
insertTextWithEmojis_:function(C,F,G){(F=this.emojiManager.createDocumentFragment(F,!0,!1,G===void 0?!0:G))&&F.childNodes.length!==0&&(C.collapsed||C.deleteContents(),G=F.lastChild,C.insertNode(F),_.Vno(G).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var C=_.rv();if(C){var F=C.JSC$11350_getStartNode(),G=C.JSC$11350_getEndNode();if(PVr(F)&&PVr(G)){var V=C.JSC$11350_getStartOffset(),J;if(_.m4&&F.nodeType===Node.ELEMENT_NODE&&(J=_.VyG(F)))_.sz(J,0).select();else{J=JX(F)?F:_.Yf(F,JX);var b=JX(G)?G:_.Yf(G,JX);if(J||b)if(C.isCollapsed()){if(F.nodeType===Node.TEXT_NODE){C=!0;V===F.length&&(C=!1);if(k7==="end"||k7==="right")C=!1;F=F.parentNode;C=[].concat(_.da(F.parentNode.childNodes)).indexOf(F)+(C?0:1);_.sz(F.parentNode,
C).select()}}else J?J.previousSibling&&J.previousSibling.length>0?_.qi(G,C.JSC$11350_getEndOffset(),J.previousSibling,J.previousSibling.length-1).select():(F=document.createTextNode("\u200b"),J.parentNode.insertBefore(F,J),_.qi(G,C.JSC$11350_getEndOffset(),F,0).select()):b&&(b.nextSibling&&b.nextSibling.length>0?_.qi(F,C.JSC$11350_getStartOffset(),b.nextSibling,1).select():(G=document.createTextNode("\u200b"),b.parentNode.insertBefore(G,b.nextSibling),_.qi(F,C.JSC$11350_getStartOffset(),G,G.length).select()));
k7=null}}else k7=null}else k7=null},
leftKeyPressed_:function(){k7="left"},
rightKeyPressed_:function(){k7="right"},
endKeyPressed_:function(){k7="end"},
maybeDeleteChip_:function(){var C=r6r(!0);if(C){var F=_.rv(),G=F.JSC$11350_getStartNode();F=F.JSC$11350_getStartOffset();_.c3(G,F,C,C.childNodes.length).select()}},
maybeBackspaceChip_:function(){var C=r6r(!1);if(C){var F=_.rv(),G=F.JSC$11350_getStartNode();F=F.JSC$11350_getStartOffset();_.c3(G,F,C,0).select()}},
maybeBackspaceChipWordMode_:function(C){var F=_.rv();if(F.isCollapsed()){var G=F.JSC$11350_getStartNode();F=F.JSC$11350_getStartOffset();var V=K4l(G,F,!0);V&&(_.c3(G,F,V,0).select(),document.execCommand("delete"),C.preventDefault(),C.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(C){var F=_.rv();if(F.isCollapsed()){var G=F.JSC$11350_getStartNode();F=F.JSC$11350_getStartOffset();var V=K4l(G,F,!1);V&&(_.c3(G,F,V,V.childNodes.length).select(),document.execCommand("delete"),C.preventDefault(),C.stopImmediatePropagation())}},
onContentClick:function(C){C.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(C){C.defaultPrevented||C.currentTarget.tagName==="YTD-COMMENT-INPUT"&&JX(C.target)&&C.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.ot(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.ot(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(C,F){C=RTM(C,this.emojiManager,F).cloneNode(!0);for(F=C.firstChild;F;)if(F.nodeType!==1)F=F.nextSibling;else switch(F.tagName){case "BR":var G=_.OV();_.QRy(G,F);F=G.nextSibling;break;case "DIV":(G=F.lastChild)&&F.nextSibling&&_.SI(_.OV(),G);F.previousSibling&&(F.previousSibling.nodeType===1||F.previousSibling.nodeType===3&&!F.previousSibling.textContent.endsWith("\n"))&&_.ME(_.OV(),F);G&&G.nodeName==="BR"&&_.So(G);G=F;F.hasChildNodes()?(F=F.firstChild,
_.Ii7(G)):(F=F.nextSibling,_.So(G));break;default:F=F.nextSibling}return Db8(C)},
setTextAreaValue:function(C){C||(C="");var F=this.getEditableFormattedString_();F.text="";this.getEditableTextArea_().innerText="";typeof C==="string"&&(C={runs:[{text:C}]});F.text=C},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();k7=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var C=this.getEditableTextArea_();C&&(_.sz(C,C.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.TF("HTML_DIR")==="rtl"){var C=this.getEditableTextArea_(),F=this.getTextAreaValue()!==""?"auto":"rtl";C.setAttribute("dir",F)}},
handleInputEvent_:function(){var C=null;if(this.isEmojiButtonDisplayed){var F=this.getInputRange_();F&&(C=this.emojiInput.retrieveTextBeforeRange(F))}this.insertText_(C,!0);this.updateCharCount_();C=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=C.scrollHeight>C.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var C=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:C})},
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(C){this.isEmojiButtonDisplayed&&(C.preventDefault(),C.stopImmediatePropagation(),C=C.clipboardData.getData("text/plain"),this.insertText_(C,!1,!1),_.oo(this.hostElement,"input"))},
insertText_:function(C,F,G){F=F===void 0?!1:F;G=G===void 0?!0:G;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&C){var V=this.getInputRange_().cloneRange();this.emojiManager&&V&&(F&&this.emojiInput.offsetStartOfRangeBy(V,C.length),this.insertTextWithEmojis_(V,C,G),gCl(this.getEditableTextArea_().lastChild)||(V=this.getInputRange_().cloneRange()),V&&(this.emojiInput.updateSuggestions(V,C),this.updateSuggestionOffset_(V)))}},
getSimpleString:_.dd,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(C){return C?"focused":"not-focused"},
computePlaceholderText_:function(C){return this.getSimpleString(C)},
computeEditableText_:function(C){return this.getSimpleString(C)},
onPrefilledContentDismissed_:function(C){C.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(C,F){C?this.fire("yt-autonav-pause-focus"):F!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(C){var F=this.getEditableTextArea_();[].concat(_.da(C.dataTransfer.items)).forEach(function(G){G.kind==="string"&&G.type.match("^text/plain")&&G.getAsString(function(V){F.appendChild(document.createTextNode(V))})});
C.preventDefault()},
preventDefault_:function(C){C.preventDefault()},
onSuggestionInsert_:function(C){this.insertTextWithEmojis_(C.detail.range,C.detail.text)},
onEmojiSuggestionClick_:function(C){this.emojiInput.insertSuggestion(C.detail)},
updateSuggestionOffset_:function(C){if(this.emojiInput&&_.ot(this.emojiInput).querySelector("#dropdown")){var F=this.getEditableTextArea_().getBoundingClientRect().bottom,G=C.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(F-G)+5;F=this.getEditableTextArea_().getBoundingClientRect().left;C=C.getBoundingClientRect().left-F;_.ot(this.emojiInput).querySelector("#dropdown").style.marginLeft=C+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.rT("yt-post"));return this.localStorage}});var Uu=function(){var C=_.B.apply(this,arguments)||this;C.currentCommentOptionIndex=0;C.isEmojiPickerDisplayed=!1;C.emojiManager=_.mP;C.isUgcEmpty=!1;C.userGeneratedCommentChangedHandler=function(){_.oo(C.hostElement,"ytd-pdg-user-generated-comment-changed");C.isEmojiYtdCommentInputEnabled&&(C.isUgcEmpty=!C.ytdCommentInputEl.getTextAreaValue())};
C.pasteHandler=function(F){F.preventDefault();F.stopImmediatePropagation();var G;if(F=(G=F.clipboardData)==null?void 0:G.getData("text/plain"))G=document.getSelection().getRangeAt(0),G.collapsed||G.deleteContents(),F=document.createTextNode(F),G.insertNode(F),G.selectNodeContents(F),G.collapse(!1),F=window.getSelection(),F.removeAllRanges(),F.addRange(G)};
C.onDocumentClick=function(F){if(C.isEmojiPickerDisplayed){var G,V,J;!(F.target instanceof Node)||(G=F.composedPath())!=null&&G.includes(C.editableTextEl)||(V=F.composedPath())!=null&&V.includes(C.emojiButtonEl)||(J=F.composedPath())!=null&&J.includes(C.emojiPickerEl)||(C.isEmojiPickerDisplayed=!1)}};
return C};
_.O(Uu,_.B);_.n=Uu.prototype;_.n.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.n.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.n.detached=function(){var C;(C=this.contentEl)==null||C.removeEventListener("input",this.userGeneratedCommentChangedHandler);var F;(F=this.contentEl)==null||F.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.n.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.n.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var C;this.contentEl.textContent=this.rendererBehavior.getSimpleString((C=this.data)==null?void 0:C.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.n.reloadEmojis=function(){this.emojiPickerEl&&_.Z(this.emojiPicker,_.jj8)&&this.emojiPickerEl.updateEmojiCategories()};
_.n.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.jr(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.n.handleBackgroundColorStyling=function(){var C;if((C=this.currentCommentOption)==null?0:C.commentBackgroundColorArgb){var F;_.jr(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.lE((F=this.currentCommentOption)==null?void 0:F.commentBackgroundColorArgb)})}else _.jr(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.n.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var C;(C=this.contentEl)==null||C.focus()}};
_.n.onEditButtonClick=function(C){var F=document.getSelection();F&&this.contentEl&&(C.stopPropagation(),C.preventDefault(),F.selectAllChildren(this.contentEl),F.collapseToEnd())};
_.n.onContentDrop=function(C){var F=this;if(C.dataTransfer){C=_.u(C.dataTransfer.items);for(var G=C.next();!G.done;G=C.next())G=G.value,G.kind==="string"&&G.type.match("^text/plain")&&G.getAsString(function(V){var J;(J=F.contentEl)==null||J.appendChild(document.createTextNode(V))})}};
_.n.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.n.getUserGeneratedCommentText=function(){var C,F=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(C=this.contentEl)==null?void 0:C.textContent;return F?F.trim():""};
_.n.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.n.onEmojiSelect=function(C){this.ytdCommentInputEl.onEmojiSelect(C)};
_.I6.Object.defineProperties(Uu.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.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 C;return!((C=this.currentCommentOption)==null||!C.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var C;if(_.Z((C=this.currentCommentOption)==null?void 0:C.chipRenderer,_.ZJo)){var F;return _.Z((F=this.currentCommentOption)==null?void 0:F.chipRenderer,_.ZJo)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var C,F;return((C=this.data)==null?0:C.commentOptionRenderers)?_.Z((F=this.data)==null?void 0:F.commentOptionRenderers[this.superThanksSelectedTierEntity.index],DRV):void 0}var G,V;return((G=this.data)==null?0:G.commentOptionRenderers)?_.Z((V=this.data)==null?void 0:V.commentOptionRenderers[this.currentCommentOptionIndex],DRV):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var C;return this.rendererBehavior.getSimpleString((C=this.data)==null?void 0:C.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var C;return this.rendererBehavior.getSimpleString((C=this.data)==null?void 0:C.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var C,F;return(F=_.Z((C=this.data)==null?void 0:C.commentDialog,_.Uim))==null?void 0:F.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var C,F;return(F=_.Z((C=this.data)==null?void 0:C.commentDialog,_.Uim))==null?void 0:F.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var C,F;return(F=_.Z((C=this.data)==null?void 0:C.commentDialog,_.Uim))==null?void 0:F.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var C,F,G=(F=_.Z((C=this.data)==null?void 0:C.commentDialog,_.Uim))==null?void 0:F.emojiPicker;if(!_.Z(G,_.jj8)||!_.Z(G,_.jj8).categories)return!1;C=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 V,J;return((V=_.Z(G,_.jj8))==null?0:(J=V.categories)==null?0:J.find(C))?!0:!1}}});
Uu.prototype.onEmojiSelect=Uu.prototype.onEmojiSelect;Uu.prototype.dataChanged=Uu.prototype.dataChanged;Uu.prototype.currentCommentOptionChanged=Uu.prototype.currentCommentOptionChanged;_.R([_.w(_.Rr),_.Y("design:type",Object)],Uu.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Uu.prototype,"rendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Uu.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.$z("#content-dom-if"),_.Y("design:type",_.Hb)],Uu.prototype,"contentDomIfEl",void 0);_.R([_.$z("#content-no-emojis"),_.Y("design:type",HTMLElement)],Uu.prototype,"contentEl",void 0);_.R([_.$z("#container"),_.Y("design:type",HTMLElement)],Uu.prototype,"containerEl",void 0);_.R([_.$z("#comment-chip-container"),_.Y("design:type",HTMLElement)],Uu.prototype,"paidCommentChipContainerEl",void 0);_.R([_.$z("#text-input"),_.Y("design:type",HTMLElement)],Uu.prototype,"editableTextEl",void 0);
_.R([_.$z("#emoji-button"),_.Y("design:type",HTMLElement)],Uu.prototype,"emojiButtonEl",void 0);_.R([_.$z("#emoji-picker > yt-emoji-picker-renderer"),_.Y("design:type",Object)],Uu.prototype,"emojiPickerEl",void 0);_.R([_.$z("#text-input > ytd-comment-input"),_.Y("design:type",Object)],Uu.prototype,"ytdCommentInputEl",void 0);_.R([_.L(),_.Y("design:type",Object)],Uu.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],Uu.prototype,"currentCommentOptionIndex",void 0);
_.R([_.L({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:iZs}),_.Y("design:type",Object)],Uu.prototype,"superThanksSelectedTierEntity",void 0);_.R([_.L(),_.Y("design:type",Object)],Uu.prototype,"isEmojiPickerDisplayed",void 0);_.R([_.L(),_.Y("design:type",Object)],Uu.prototype,"emojiManager",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Uu.prototype,"isUgcEmpty",void 0);
_.R([_.iP("currentCommentOption"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Uu.prototype,"currentCommentOptionChanged",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Uu.prototype,"dataChanged",null);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Uu.prototype,"isEmojiYtdCommentInputEnabled",null);
_.R([_.M("data.title"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Uu.prototype,"title",null);_.R([_.M("data.authorText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Uu.prototype,"channelName",null);_.R([_.M("data.commentOptionRenderers","currentCommentOption"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Uu.prototype,"shouldShowPaidCommentChipRenderer",null);
_.R([_.M("data.commentOptionRenderers","currentCommentOption"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Uu.prototype,"paidCommentChipRenderer",null);_.R([_.M("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Uu.prototype,"currentCommentOption",null);
_.R([_.M("data.defaultCommentText","superThanksSelectedTierEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Uu.prototype,"commentText",null);_.R([_.M("data.placeholderText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Uu.prototype,"placeholderText",null);_.R([_.M("data.commentDialog.commentDialogRenderer.editableText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Uu.prototype,"editableText",null);
_.R([_.M("data.commentDialog.commentDialogRenderer.emojiButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Uu.prototype,"emojiButton",null);_.R([_.M("data.commentDialog.commentDialogRenderer.emojiPicker"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Uu.prototype,"emojiPicker",null);
_.R([_.M("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Uu.prototype,"isEmojiButtonDisplayed",null);_.R([_.VG("yt-emoji-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Uu.prototype,"onEmojiSelect",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],Uu);
_.q(Uu,"ytd-pdg-comment-preview-renderer",function(){if(cQM!==void 0)return cQM;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return cQM=C},{mode:2});var eLM;var HF=function(){var C=_.B.apply(this,arguments)||this;C.selected=!1;return C};
_.O(HF,_.B);_.n=HF.prototype;_.n.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.n.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.n.dataChanged=function(){this.data&&(_.r7(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.jr(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.lE(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.lE(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.n.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.n.onClick=function(){this.logClick()};
_.n.onKeyboardSelect=function(){_.oo(this.hostElement,"tap");this.onClick()};
_.n.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
HF.prototype.onClick=HF.prototype.onClick;HF.prototype.selectedChanged=HF.prototype.selectedChanged;HF.prototype.dataChanged=HF.prototype.dataChanged;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],HF.prototype,"componentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],HF.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.wg),_.Y("design:type",Object)],HF.prototype,"ironA11yKeysBehavior",void 0);
_.R([_.w(_.f5),_.Y("design:type",Object)],HF.prototype,"ironSelectableBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],HF.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],HF.prototype,"shownThumbnail",void 0);_.R([_.L(),_.Y("design:type",Object)],HF.prototype,"basePriceText",void 0);_.R([_.L(),_.Y("design:type",Object)],HF.prototype,"purchaseCommand",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],HF.prototype,"selected",void 0);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],HF.prototype,"dataChanged",null);_.R([_.iP("selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],HF.prototype,"selectedChanged",null);_.R([_.VG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],HF.prototype,"onClick",null);
_.R([_.e({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],HF);
_.q(HF,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(eLM!==void 0)return eLM;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return eLM=C},{mode:1});var lD=function(){var C=_.B.apply(this,arguments)||this;C.selectedItemIndex=0;C.buyButtonDisabled=!1;return C};
_.O(lD,_.B);_.n=lD.prototype;
_.n.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]]"}}}}}};
_.n.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var C;var F=(C=_.Z(this.data.colorSlider,Ku8))==null?void 0:C.notches[this.selectedItemIndex].purchaseCommand}else{var G;F=(G=_.Z(this.data.selectableItemButtons[this.selectedItemIndex],mRW))==null?void 0:G.purchaseCommand}if(F){C=_.Z(F,_.bpy);C.productData||(C.productData={});var V;C.productData={pdgData:{commentMessageText:(V=this.commentPreviewRenderer)==null?void 0:V.getUserGeneratedCommentText()}};
_.oo(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(F)}}};
_.n.dataChanged=function(){if(this.data){_.mP.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.lVm(_.mP,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.mP.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var C;this.buyButtonDisabled=!((C=_.Z(this.data.commentPreview,pI_))==null||!C.placeholderText);this.updatePriceSelectorStatus();var F;if((F=this.data)==null?0:F.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;C=[];this.data.preloadImages&&(C=this.data.preloadImages);
C=C.map(function(G){return _.RP(G.thumbnails,1920)});
C=_.u(C);for(F=C.next();!F.done;F=C.next())(F=F.value)&&_.vAT(F).thenCatch(function(){_.Yw(Error("Hl"))})}};
_.n.superThanksSelectedTierEntityChanged=function(){var C;(this==null?void 0:(C=this.superThanksSelectedTierEntity)==null?void 0:C.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.n.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.n.updatePriceSelectorStatus=function(){this.isColorSlider?(_.ot(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.ot(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.ot(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.ot(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.n.closeBuyFlow=function(){_.rz(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.n.onUserGeneratedContentChanged=function(){var C;this.buyButtonDisabled=!((C=this.commentPreviewRenderer)==null?0:C.getUserGeneratedCommentText())};
_.n.updateSelectedItemIndexFromBinding=function(C){this.selectedItemIndex=C.detail.value};
_.I6.Object.defineProperties(lD.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var C;return!((C=this.data)==null||!C.disclaimerText)}}});
lD.prototype.onUserGeneratedContentChanged=lD.prototype.onUserGeneratedContentChanged;lD.prototype.closeBuyFlow=lD.prototype.closeBuyFlow;lD.prototype.selectedItemIndexChanged=lD.prototype.selectedItemIndexChanged;lD.prototype.superThanksSelectedTierEntityChanged=lD.prototype.superThanksSelectedTierEntityChanged;lD.prototype.dataChanged=lD.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],lD.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],lD.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],lD.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],lD.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],lD.prototype,"selectedItemIndex",void 0);_.R([_.L(),_.Y("design:type",Boolean)],lD.prototype,"isColorSlider",void 0);
_.R([_.L(),_.Y("design:type",Object)],lD.prototype,"buyButtonDisabled",void 0);_.R([_.L({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:iZs}),_.Y("design:type",Object)],lD.prototype,"superThanksSelectedTierEntity",void 0);_.R([_.$z("ytd-pdg-comment-preview-renderer"),_.Y("design:type",Object)],lD.prototype,"commentPreviewRenderer",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],lD.prototype,"ytdReduxBehavior",void 0);
_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lD.prototype,"dataChanged",null);_.R([_.iP("superThanksSelectedTierEntity"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lD.prototype,"superThanksSelectedTierEntityChanged",null);_.R([_.iP("selectedItemIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lD.prototype,"selectedItemIndexChanged",null);
_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lD.prototype,"closeBuyFlow",null);_.R([_.VG("ytd-pdg-user-generated-comment-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lD.prototype,"onUserGeneratedContentChanged",null);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],lD.prototype,"isDisclaimerTextShown",null);
_.R([_.e({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],lD);
_.q(lD,"yt-super-vod-buy-flow-content-renderer",function(){if(fvl!==void 0)return fvl;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return fvl=C},{mode:1});var d9t;var yw=function(){var C=_.B.apply(this,arguments)||this;C.lottieAnimationRef={};return C};
_.O(yw,_.B);_.n=yw.prototype;_.n.created=function(){_.oY.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.Gp(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.n.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.oo(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.n.detached=function(){this.autoCloseJobId&&_.gT.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.Gp(this,this.onPopupIronOverlayOpened))};
_.n.dataChanged=function(){var C=this;this.data&&this.data.autoCloseDelay&&(_.rz(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.rQ(_.gT,function(){C.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.jr(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.n.onDOMLoadedLottie=function(){var C=this,F,G,V=Number((F=this.data)==null?void 0:(G=F.autoCloseDelay)==null?void 0:G.seconds)||0;this.fadeOutJobId=_.rQ(_.gT,function(){C.lottiePlayerEl.classList.add("fadeout")},(V-.25)*1E3);
this.autoCloseJobId=_.rQ(_.gT,function(){C.closePopup()},V*1E3)};
_.n.openPopup=function(){this.ironOverlayBehavior.open()};
_.n.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.rz(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.pX(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.I8().resolve(_.WD).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.gT.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.gT.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.n.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var C,F;(C=this.lottieAnimationRef)==null||(F=C.lottieEl)==null||F.destroy();C=this.data.lottie;var G,V;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:C.url+"_"+Math.random(),path:C.url,autoplay:!0,loop:(V=(G=C.settings)==null?void 0:G.loop)!=null?V:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.I6.Object.defineProperties(yw.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var C,F;return!!((C=this.data)==null?0:(F=C.lottie)==null?0:F.url)}}});
yw.prototype.maybeInitializeLottie=yw.prototype.maybeInitializeLottie;yw.prototype.dataChanged=yw.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],yw.prototype,"rendererBehavior",void 0);_.R([_.w(_.mw),_.Y("design:type",Object)],yw.prototype,"ironOverlayBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],yw.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],yw.prototype,"lottiePlayerProps",void 0);
_.R([_.L(),_.Y("design:type",Object)],yw.prototype,"lottieAnimationRef",void 0);_.R([_.$z("ytd-lottie-player"),_.Y("design:type",HTMLElement)],yw.prototype,"lottiePlayerEl",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yw.prototype,"dataChanged",null);_.R([_.M("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],yw.prototype,"hasLottieAnimation",null);
_.R([_.iP("data.lottie.url"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yw.prototype,"maybeInitializeLottie",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],yw);
_.q(yw,"ytd-desktop-image-overlay-renderer",function(){if(d9t!==void 0)return d9t;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return d9t=C},{mode:1});var x98;var Zm=function(){return _.B.apply(this,arguments)||this};
_.O(Zm,_.B);_.n=Zm.prototype;_.n.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"}}}}};
_.n.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",_.Gp(this,this.closePopup))};
_.n.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Gp(this,this.closePopup))};
_.n.dataChanged=function(){_.KX(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.Z(this.data.header,rZM)&&(this.hasBackgroundBanner=!!_.Z(this.data.header,rZM).backgroundBanner)};
_.n.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Gp(this,this.closePopup))};
_.n.closePopup=function(){this.data&&this.data.onCloseCommand&&_.DQ(this.hostElement,[this.data.onCloseCommand])};
Zm.prototype.handleBuyflowSelectionSubmitted=Zm.prototype.handleBuyflowSelectionSubmitted;Zm.prototype.dataChanged=Zm.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Zm.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Zm.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Zm.prototype,"data",void 0);
_.R([_.L({value:!0,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Zm.prototype,"hasBackgroundBanner",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Zm.prototype,"dataChanged",null);_.R([_.VG("yt-pdg-buy-flow-selection-submitted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Zm.prototype,"handleBuyflowSelectionSubmitted",null);
_.R([_.e({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],Zm);
_.q(Zm,"ytd-pdg-buy-flow-renderer",function(){if(x98!==void 0)return x98;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return x98=C},{mode:1});var sBs;var NC=function(){var C=_.B.apply(this,arguments)||this;C.isOpen=!1;C.isPlaylistCreated=!1;return C};
_.O(NC,_.B);_.n=NC.prototype;_.n.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.n.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.oo(this.hostElement,"yt-refit")};
_.n.onCreateTap=function(){var C=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.DQ(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(F,G){if(!_.y("killswitch_ep_in_create_playlist_response")&&(G==null?0:G.actions))for(F=_.u(G.actions),G=F.next();!G.done;G=F.next())G=G.value,_.Z(G,_.kC)&&C.ytComponentBehavior.resolveCommand(G)}}]),this.isPlaylistCreated=!0)};
_.n.onKeydown=function(C){if(C.keyCode===13)this.onCreateTap()};
_.n.onServiceRequestCompleted=function(C){C.stopPropagation();_.rz(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.n.computePrivacyBadge=function(C){return C?[{metadataBadgeRenderer:C}]:[]};
NC.prototype.onServiceRequestCompleted=NC.prototype.onServiceRequestCompleted;NC.prototype.onKeydown=NC.prototype.onKeydown;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],NC.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],NC.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],NC.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],NC.prototype,"isOpen",void 0);
_.R([_.L(),_.Y("design:type",Object)],NC.prototype,"isPlaylistCreated",void 0);_.R([_.L({value:{REQUIRED_LABEL:_.iQ("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.iQ("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.Y("design:type",Object)],NC.prototype,"addToStrings",void 0);_.R([_.L({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.Y("design:type",Array)],NC.prototype,"privacyBadge",void 0);
_.R([_.$z("#privacy-input"),_.Y("design:type",Object)],NC.prototype,"privacyInput",void 0);_.R([_.$z("#name-input"),_.Y("design:type",Object)],NC.prototype,"nameInput",void 0);_.R([_.VG("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],NC.prototype,"onKeydown",null);_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],NC.prototype,"onServiceRequestCompleted",null);
_.R([_.e({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],NC);
_.q(NC,"ytd-add-to-playlist-create-renderer",function(){if(sBs!==void 0)return sBs;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return sBs=C},{mode:1});var qNV;var Pvx;var Ou=function(){var C=_.B.apply(this,arguments)||this;C.transferState="TRANSFER_STATE_UNKNOWN";return C};
_.O(Ou,_.B);Ou.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
Ou.prototype.onCheckboxChange=function(C){var F=this;this.data&&_.Bb(this,"yt-playlist-checkbox-changed",function(){var G=_.ev(C).checked?F.data.addToPlaylistServiceEndpoint:F.data.removeFromPlaylistServiceEndpoint;G&&_.I8().resolve(_.WD).resolveCommand(G,{form:{element:F.hostElement}});_.y("dl_playlist_killswitch")||F.transferState!=="TRANSFER_STATE_UNKNOWN"&&F.transferState!=="TRANSFER_STATE_FAILED"&&F.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:F.data.playlistId,action:"ACTION_SYNC"}})},
100)};
Ou.prototype.computeIconType=function(C){return C?"yt-icons:"+C.toLowerCase():null};
Ou.prototype.dataChanged=Ou.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Ou.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Ou.prototype,"data",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],Ou.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Ou.prototype,"ytComponentBehavior",void 0);_.R([_.$z("#checkbox"),_.Y("design:type",HTMLInputElement)],Ou.prototype,"checkbox",void 0);
_.R([_.L({selector:_.X0,selectorArgs:["data.playlistId"]}),_.Y("design:type",String)],Ou.prototype,"transferState",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ou.prototype,"dataChanged",null);_.R([_.e({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],Ou);
_.q(Ou,"ytd-playlist-add-to-option-renderer",function(){if(Pvx!==void 0)return Pvx;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Pvx=C},{mode:1});var g5M=_.d(function(C){var F=C.data;return _.W("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.W("div",null,_.W(_.mn,{text:function(){return F().title}})),_.W(_.a,{cond:function(){return F().subtitle},
then:function(G){return _.W("div",{class:"ytdMenuTitleRendererSubtitle"},_.W(_.mn,{text:G}))}}))},"jj");
g5M.idomCompat=!0;_.gQ(g5M,"ytd-menu-title-renderer",{props:{data:_.CJ}});var Xm=function(){var C=_.B.apply(this,arguments)||this;C.addToStrings={ADD_TO_DROPDOWN_LABEL:_.iQ("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};C.closeButtonAriaLabel=_.iQ("SBOX_INAPPROPRIATE_CANCEL");C.dialog=_.y("desktop_add_to_playlist_renderer_dialog_popup");return C};
_.O(Xm,_.B);_.n=Xm.prototype;_.n.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"}}}};
_.n.onPopupOpened=function(){_.pd(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.n.onPopupClosed=function(){_.pd(this.playlists,"scrollable",!1)};
_.n.computeAriaLabel=function(){var C;if(this==null?0:(C=this.data)==null?0:C.actions){C=_.u(this.data.actions);for(var F=C.next();!F.done;F=C.next())if(F=F.value,F.menuTitleRenderer)return _.dd(F.menuTitleRenderer.title)}};
_.n.onTapClose=function(){_.rz(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.I6.Object.defineProperties(Xm.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var C;if(this==null?0:(C=this.data)==null?0:C.actions){C=_.u(this.data.actions);for(var F=C.next();!F.done;F=C.next())if(F=F.value,F.menuTitleRenderer)return F.menuTitleRenderer}return!1}}});
Xm.prototype.onPopupClosed=Xm.prototype.onPopupClosed;Xm.prototype.onPopupOpened=Xm.prototype.onPopupOpened;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Xm.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.h9.YtEventForwardingBehavior),_.Y("design:type",Object)],Xm.prototype,"ytEventForwardingBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Xm.prototype,"ytRendererStamperBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],Xm.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],Xm.prototype,"addToStrings",void 0);_.R([_.L({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.Y("design:type",String)],Xm.prototype,"ariaLabel",void 0);_.R([_.L(),_.Y("design:type",String)],Xm.prototype,"closeButtonAriaLabel",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Xm.prototype,"dialog",void 0);
_.R([_.$z("#playlists"),_.Y("design:type",HTMLElement)],Xm.prototype,"playlists",void 0);_.R([_.$z("ytd-add-to-playlist-create-renderer"),_.Y("design:type",Object)],Xm.prototype,"createRenderer",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xm.prototype,"menuTitleRenderer",null);_.R([_.VG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Xm.prototype,"onPopupOpened",null);
_.R([_.VG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Xm.prototype,"onPopupClosed",null);_.R([_.e({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],Xm);
_.q(Xm,"ytd-add-to-playlist-renderer",function(){if(qNV!==void 0)return qNV;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return qNV=C},{mode:1});var RLt;var wC=function(){var C=_.B.apply(this,arguments)||this;C.isPlaylistEditComplete=!1;C.isCollabEngagementDisabled=!1;C.closeButtonAriaLabel=_.iQ("SBOX_INAPPROPRIATE_CANCEL");C.saveButton={title:_.iQ("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"};C.onValueChanged=function(){C.updateSaveButtonState();C.computeCollabEngagementDisabled()};
return C};
_.O(wC,_.B);_.n=wC.prototype;_.n.attached=function(){this.JSC$20806_scroller&&(this.JSC$20806_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20806_scroller.attached&&typeof this.JSC$20806_scroller.attached==="function"&&this.JSC$20806_scroller.attached())};
_.n.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.n.onPopupClosed=function(){this.reset()};
_.n.close=function(){_.rz(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.n.onClickSave=function(){var C=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var F=[];this.nameInput.value!==null&&F.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&F.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var G=Number(this.privacyInput.value);isNaN(G)||F.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:G})}this.votingInput.value!==null&&(G=this.votingInput.value)&&F.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:G});if(F.length>0){var V;_.Z((V=this.data)==null?void 0:V.updateSettingsEndpoint,_.TL).actions=F;var J;if((J=this.data)==null?0:J.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){C.close()}}}),this.isPlaylistEditComplete=!0}}};
_.n.computePrivacyBadge=function(C){return C?[{metadataBadgeRenderer:C}]:[]};
_.n.computeEditorData=function(C){var F,G;return C==null?void 0:(F=C.sections)==null?void 0:(G=F[0])==null?void 0:G.playlistSettingsEditorCasualSectionRenderer};
_.n.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.n.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}}}}}};
_.n.computeAriaLabel=function(){var C,F,G,V=(C=this.data)==null?void 0:(F=C.sections)==null?void 0:(G=F[0])==null?void 0:G.playlistSettingsEditorCasualSectionRenderer;return _.dd(V==null?void 0:V.title)};
_.n.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"}))};
_.n.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.n.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.n.isNameChanged=function(){var C,F,G;return(((C=this.editorData)==null?void 0:(F=C.name)==null?void 0:(G=F.textInputFormFieldRenderer)==null?void 0:G.value)||"")!==(this.nameInput.value||"")};
_.n.isDescriptionChanged=function(){var C,F,G;return(((C=this.editorData)==null?void 0:(F=C.description)==null?void 0:(G=F.textInputFormFieldRenderer)==null?void 0:G.value)||"")!==(this.descriptionInput.value||"")};
_.n.isPrivacyChanged=function(){var C,F,G,V,J,b,z,Q;return((z=(C=this.editorData)==null?void 0:(F=C.privacy)==null?void 0:(G=F.dropdownFormFieldRenderer)==null?void 0:(V=G.dropdown)==null?void 0:(J=V.dropdownRenderer)==null?void 0:(b=J.entries)==null?void 0:b.find(function(E){var t;return E==null?void 0:(t=E.privacyDropdownItemRenderer)==null?void 0:t.isSelected}))==null?void 0:(Q=z.privacyDropdownItemRenderer)==null?void 0:Q.int32Value)!==this.privacyInput.value};
_.n.isVotingChanged=function(){var C,F,G,V,J,b,z,Q;return((z=(C=this.editorData)==null?void 0:(F=C.voting)==null?void 0:(G=F.dropdownFormFieldRenderer)==null?void 0:(V=G.dropdown)==null?void 0:(J=V.dropdownRenderer)==null?void 0:(b=J.entries)==null?void 0:b.find(function(E){var t;return E==null?void 0:(t=E.privacyDropdownItemRenderer)==null?void 0:t.isSelected}))==null?void 0:(Q=z.privacyDropdownItemRenderer)==null?void 0:Q.int32Value)!==this.votingInput.value};
wC.prototype.onPopupClosed=wC.prototype.onPopupClosed;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],wC.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],wC.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.h9.YtEventForwardingBehavior),_.Y("design:type",Object)],wC.prototype,"ytEventForwardingBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],wC.prototype,"ytRendererStamperBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],wC.prototype,"data",void 0);_.R([_.L({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.Y("design:type",Array)],wC.prototype,"privacyBadge",void 0);_.R([_.L({computed:"computeEditorData(data)"}),_.Y("design:type",Object)],wC.prototype,"editorData",void 0);_.R([_.L(),_.Y("design:type",Object)],wC.prototype,"isPlaylistEditComplete",void 0);_.R([_.L(),_.Y("design:type",Object)],wC.prototype,"isCollabEngagementDisabled",void 0);
_.R([_.L({value:{REQUIRED_LABEL:_.iQ("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.iQ("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.Y("design:type",Object)],wC.prototype,"addToStrings",void 0);_.R([_.L({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.Y("design:type",String)],wC.prototype,"ariaLabel",void 0);_.R([_.L(),_.Y("design:type",String)],wC.prototype,"closeButtonAriaLabel",void 0);
_.R([_.L(),_.Y("design:type",Object)],wC.prototype,"saveButton",void 0);_.R([_.$z("#name-input"),_.Y("design:type",Object)],wC.prototype,"nameInput",void 0);_.R([_.$z("#description-input"),_.Y("design:type",Object)],wC.prototype,"descriptionInput",void 0);_.R([_.$z("#privacy-input"),_.Y("design:type",Object)],wC.prototype,"privacyInput",void 0);_.R([_.$z("#voting-input"),_.Y("design:type",Object)],wC.prototype,"votingInput",void 0);
_.R([_.$z("#scroller"),_.Y("design:type",Object)],wC.prototype,"JSC$20806_scroller",void 0);_.R([_.VG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wC.prototype,"onPopupClosed",null);_.R([_.L(),_.Y("design:type",Object)],wC.prototype,"onValueChanged",void 0);_.R([_.e({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],wC);
_.q(wC,"ytd-playlist-settings-editor-renderer",function(){if(RLt===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);RLt=C}C=RLt;return C},{mode:1});var YNV;_.ae("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var MC=function(){return _.B.apply(this,arguments)||this};
_.O(MC,_.B);_.n=MC.prototype;_.n.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}}}}}};
_.n.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.n.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 C=this.get("data.nextButton.buttonRenderer.navigationEndpoint");C&&(this.nextNavigationEndpoint=C,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.n.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 C={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",C)}}};
_.n.onPopupOpened=function(C){C.detail!==this&&C.detail!==this.hostElement||!_.y("enable_premium_voluntary_pause")||_.rz(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.n.onNextButtonTap=function(){var C=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);C&&this.ytdOpenPopupBehavior.openPopup(C)};
_.n.updateSelectedResponseIndexFromBinding=function(C){this.selectedResponseIndex=C.detail.value};
MC.prototype.onPopupOpened=MC.prototype.onPopupOpened;MC.prototype.onSelectedResponseIndexChange=MC.prototype.onSelectedResponseIndexChange;MC.prototype.dataChanged=MC.prototype.dataChanged;_.R([_.w(_.nK),_.Y("design:type",Object)],MC.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],MC.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],MC.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],MC.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Number)],MC.prototype,"selectedResponseIndex",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MC.prototype,"dataChanged",null);_.R([_.iP("selectedResponseIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MC.prototype,"onSelectedResponseIndexChange",null);
_.R([_.VG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],MC.prototype,"onPopupOpened",null);_.R([_.e({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],MC);
_.q(MC,"ytd-red-cancel-survey-renderer",function(){if(YNV!==void 0)return YNV;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return YNV=C},{mode:1});var Teh;var SD=function(){var C=_.B.apply(this,arguments)||this;C.closeButtonAriaLabel=_.iQ("SBOX_INAPPROPRIATE_CANCEL");return C};
_.O(SD,_.B);SD.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
SD.prototype.onClickClose=function(){_.rz(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],SD.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],SD.prototype,"rendererStamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],SD.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",String)],SD.prototype,"closeButtonAriaLabel",void 0);_.R([_.e({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],SD);
_.q(SD,"ytd-search-filter-options-dialog-renderer",function(){if(Teh!==void 0)return Teh;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Teh=C},{mode:1});var o5r;var Cgt=function(){return function(C){C=C.availabilityType;return C===void 0||C==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||C==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var Lm=function(){var C=_.B.apply(this,arguments)||this;C.qualityOptions=[];C.upsellOptions=[];C.showUpsellSection=!1;C.darkerDarkTheme=_.y("web_darker_dark_theme");C.rememberSettingsChecked=!1;return C};
_.O(Lm,_.B);_.n=Lm.prototype;_.n.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}}}}};
_.n.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.n.updateQualityOptions=function(){if(this.formats===void 0)_.rz(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var C=[],F=[];this.showUpsellSection=!1;for(var G=_.u(this.formats),V=G.next();!V.done;V=G.next())(V=V.value)&&(V.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?F.push(V):C.push(V));C.length&&(this.qualityOptions=mbx(C));F.length&&(this.showUpsellSection=!0,this.upsellOptions=mbx(F))}};
_.n.updateRememberString=function(){if(this.downloadQualityPickerEntity)var C=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var F;C=(F=this.data)==null?void 0:F.premiumRememberSettingString}else{var G;C=(G=this.data)==null?void 0:G.rememberSettingString}C=C===void 0?_.iQ("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):C;this.rememberSettingsCheckboxRenderer={title:_.YB(C),disabled:!1}};
_.n.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.I6.Object.defineProperties(Lm.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var C;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(C=this.data)==null?void 0:C.qualityFormats}}});
Lm.prototype.updateRememberString=Lm.prototype.updateRememberString;Lm.prototype.updateQualityOptions=Lm.prototype.updateQualityOptions;Lm.prototype.dataChanged=Lm.prototype.dataChanged;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Lm.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Lm.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Lm.prototype,"data",void 0);
_.R([_.w(_.Rr),_.Y("design:type",Object)],Lm.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Boolean)],Lm.prototype,"selectedUpsellQuality",void 0);_.R([_.L({computed:"computeIcon_(data.premiumIcon)",value:""}),_.Y("design:type",String)],Lm.prototype,"premiumIcon",void 0);_.R([_.L({selector:Frx,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.Y("design:type",Object)],Lm.prototype,"downloadQualityPickerEntity",void 0);
_.R([_.L(),_.Y("design:type",Array)],Lm.prototype,"qualityOptions",void 0);_.R([_.L(),_.Y("design:type",Array)],Lm.prototype,"upsellOptions",void 0);_.R([_.L(),_.Y("design:type",Object)],Lm.prototype,"showUpsellSection",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],Lm.prototype,"darkerDarkTheme",void 0);_.R([_.L(),_.Y("design:type",Object)],Lm.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.R([_.$z("#remember-settings"),_.Y("design:type",HTMLInputElement)],Lm.prototype,"rememberSettingsCheckbox",void 0);_.R([_.L(),_.Y("design:type",Object)],Lm.prototype,"rememberSettingsChecked",void 0);_.R([_.L(),_.Y("design:type",Function)],Lm.prototype,"onRememberSettingsCheckedChanged",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lm.prototype,"dataChanged",null);
_.R([_.iP("downloadQualityPickerEntity"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lm.prototype,"updateQualityOptions",null);_.R([_.iP("selectedUpsellQuality"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lm.prototype,"updateRememberString",null);_.R([_.e({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],Lm);
_.q(Lm,"ytd-download-quality-selector-content",function(){if(o5r!==void 0)return o5r;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return o5r=C},{mode:1});var rQU;var BF=function(){var C=_.B.apply(this,arguments)||this;C.selectedUpsellQuality=!1;C.qualityOptions=[];C.darkerDarkTheme=_.y("web_darker_dark_theme");C.useUpsellDismissAlternate=_.y("use_not_now_dl_upsell_dismiss_cta");C.shouldShowAlternateUpsellDimiss=!1;C.rememberSettings=!1;C.rememberSettingsChecked=!1;C.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};C.rememberSettingsCheckedChanged=function(F){C.rememberSettingsChecked=F};
return C};
_.O(BF,_.B);_.n=BF.prototype;
_.n.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.YB(_.iQ("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.YB(_.iQ("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.YB(_.iQ("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.YB(_.iQ("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.n.updateQualityOptions=function(){this.formats===void 0?_.rz(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=mbx(this.formats)};
_.n.onQualityOptionsSelect=function(C){if(this.qualityOptions&&C){C!==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 F=_.u(this.qualityOptions.entries()),G=F.next();!G.done;G=
F.next()){G=_.u(G.value);var V=G.next().value;G=G.next().value;var J=void 0,b=void 0;if(((J=G)==null?void 0:(b=J.settingsRadioOptionRenderer)==null?void 0:b.id)===C){this.selectedQualityIndex=V;C=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((C=this.formats[V])==null?void 0:C.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.n.onClickSubmit=function(){var C;if((C=this.downloadButtonRenderer)==null||!C.isDisabled){var F,G;C=(G=(F=this.data)==null?void 0:F.onSubmitEndpoint)!=null?G:{};var V,J;if(this.formats&&(((V=_.Z(C,_.VJ))==null?0:V.videoId)||((J=_.Z(C,_.Jm))==null?0:J.playlistId))){var b,z,Q,E,t,k;F={formatType:(E=(b=this.formats)==null?void 0:(z=b[(Q=this.selectedQualityIndex)!=null?Q:0])==null?void 0:z.format)!=null?E:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(t=this.getOfflineEndpoint(C))==null?void 0:(k=t.actionParams)==null?void 0:k.settingsAction)};this.getOfflineEndpoint(C).actionParams=F;this.ytComponentBehavior.resolveCommand(C)}_.rz(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.n.onClickUpsell=function(){var C;if((C=this.upsellButtonRenderer)==null||!C.isDisabled){var F,G;C=(G=(F=this.data)==null?void 0:F.upsellEndpoint)!=null?G:{};this.ytComponentBehavior.resolveCommand(C);_.rz(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);F="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var V,J,b,z;F=(z=(V=this.formats)==null?void 0:(J=V[(b=this.selectedQualityIndex)!=null?b:0])==null?void 0:J.format)!=null?z:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:F}})}};
_.n.onClickClose=function(){_.rz(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.n.getOfflineSettingsAction=function(C,F){return C?F===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":F:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.n.getOfflineEndpoint=function(C){return _.Z(C,_.VJ)?_.Z(C,_.VJ):_.Z(C,_.Jm)};
_.I6.Object.defineProperties(BF.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.YB(_.iQ("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var C;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(C=this.data)==null?void 0:C.qualityFormats}}});
BF.prototype.updateQualityOptions=BF.prototype.updateQualityOptions;BF.prototype.dataChanged=BF.prototype.dataChanged;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],BF.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],BF.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],BF.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],BF.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],BF.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Number)],BF.prototype,"selectedQualityIndex",void 0);_.R([_.L(),_.Y("design:type",Object)],BF.prototype,"selectedUpsellQuality",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],BF.prototype,"ytdReduxBehavior",void 0);
_.R([_.L({selector:Frx,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.Y("design:type",Object)],BF.prototype,"downloadQualityPickerEntity",void 0);_.R([_.L(),_.Y("design:type",Array)],BF.prototype,"qualityOptions",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],BF.prototype,"darkerDarkTheme",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],BF.prototype,"useUpsellDismissAlternate",void 0);
_.R([_.L(),_.Y("design:type",Object)],BF.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.R([_.L(),_.Y("design:type",Object)],BF.prototype,"downloadButtonRenderer",void 0);_.R([_.L(),_.Y("design:type",Object)],BF.prototype,"upsellButtonRenderer",void 0);_.R([_.L(),_.Y("design:type",Object)],BF.prototype,"cancelButtonRenderer",void 0);_.R([_.L(),_.Y("design:type",Object)],BF.prototype,"upsellCancelButtonRenderer",void 0);_.R([_.L(),_.Y("design:type",Object)],BF.prototype,"rememberSettings",void 0);
_.R([_.L(),_.Y("design:type",Object)],BF.prototype,"rememberSettingsChecked",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BF.prototype,"dataChanged",null);_.R([_.iP("downloadQualityPickerEntity"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BF.prototype,"updateQualityOptions",null);_.R([_.e({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],BF);
_.q(BF,"ytd-download-quality-selector-renderer",function(){if(rQU!==void 0)return rQU;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return rQU=C},{mode:1});var KzL;var vF=function(){var C=_.B.apply(this,arguments)||this;C.darkerDarkTheme=_.y("web_darker_dark_theme");return C};
_.O(vF,_.B);vF.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
vF.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"}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],vF.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],vF.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],vF.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],vF.prototype,"darkerDarkTheme",void 0);_.R([_.L({computed:"computeIcon_(data.infoIcon)"}),_.Y("design:type",Object)],vF.prototype,"infoIcon",void 0);
_.R([_.L({computed:"computeIcon_(data.warningIcon)"}),_.Y("design:type",Object)],vF.prototype,"warningIcon",void 0);_.R([_.e({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],vF);
_.q(vF,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(KzL!==void 0)return KzL;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return KzL=C},{mode:1});var D9r;var fm=function(){var C=_.B.apply(this,arguments)||this;C.darkerDarkTheme=_.y("web_darker_dark_theme");return C};
_.O(fm,_.B);fm.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
fm.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"}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],fm.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],fm.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],fm.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],fm.prototype,"darkerDarkTheme",void 0);_.R([_.e({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],fm);
_.q(fm,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(D9r!==void 0)return D9r;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return D9r=C},{mode:1});var pKW;var hq=function(){var C=_.B.apply(this,arguments)||this;C.darkerDarkTheme=_.y("web_darker_dark_theme");return C};
_.O(hq,_.B);hq.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
hq.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"}}}}};
hq.prototype.onServiceRequestSentOrCompleted=function(C,F){F&&F.actions&&F.actions.length>0&&_.rz(this.hostElement,"yt-close-popup-action",[this.is])};
hq.prototype.onServiceRequestSentOrCompleted=hq.prototype.onServiceRequestSentOrCompleted;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],hq.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],hq.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],hq.prototype,"darkerDarkTheme",void 0);_.R([_.L(),_.Y("design:type",Object)],hq.prototype,"data",void 0);
_.R([_.VG("yt-service-request-completed"),_.VG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.en]),_.Y("design:returntype")],hq.prototype,"onServiceRequestSentOrCompleted",null);_.R([_.e({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],hq);
_.q(hq,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(pKW!==void 0)return pKW;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return pKW=C},{mode:1});var m9s;var cF=function(){var C=_.B.apply(this,arguments)||this;C.darkerDarkTheme=_.y("web_darker_dark_theme");C.submitButtonDisabled=!0;return C};
_.O(cF,_.B);_.n=cF.prototype;_.n.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.n.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.n.onDataChanged=function(){var C,F,G;if(((C=this.data)==null?void 0:(F=C.confirmButton)==null?void 0:(G=F.buttonRenderer)==null?void 0:G.isDisabled)!==void 0){var V,J,b;this.submitButtonDisabled=(V=this.data)==null?void 0:(J=V.confirmButton)==null?void 0:(b=J.buttonRenderer)==null?void 0:b.isDisabled}};
_.n.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.n.updateSubmitButtonDisabledFromBinding=function(C){this.submitButtonDisabled=C.detail.value};
_.n.updateSubmitButtonDisabledFromConfirmCheckbox=function(C){this.submitButtonDisabled=!C.detail.value};
cF.prototype.onDataChanged=cF.prototype.onDataChanged;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],cF.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],cF.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],cF.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],cF.prototype,"darkerDarkTheme",void 0);
_.R([_.L(),_.Y("design:type",Object)],cF.prototype,"submitButtonDisabled",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cF.prototype,"onDataChanged",null);_.R([_.e({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],cF);
_.q(cF,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(m9s!==void 0)return m9s;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return m9s=C},{mode:1});var Col;var Aq=function(){return _.B.apply(this,arguments)||this};
_.O(Aq,_.B);_.I6.Object.defineProperties(Aq.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var C,F,G;return((C=this.data)==null?void 0:C.title)+" "+((F=this.data)==null?void 0:F.metadataPrimary)+" "+((G=this.data)==null?void 0:G.metadataSecondary)}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Aq.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Aq.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Aq.prototype,"data",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Aq.prototype,"ariaLabel",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],Aq);
_.q(Aq,"ytd-compact-product-list-item-renderer",function(){if(Col!==void 0)return Col;var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Col=C},{mode:1});var jTd;var eD=function(){return _.B.apply(this,arguments)||this};
_.O(eD,_.B);eD.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]]"}}}}}};
_.I6.Object.defineProperties(eD.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],eD.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],eD.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],eD.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],eD.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],eD);
_.q(eD,"ytd-compact-product-list-renderer",function(){if(jTd!==void 0)return jTd;var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return jTd=C},{mode:1});var FIr;var dC=function(){var C=_.B.apply(this,arguments)||this;C.darkerDarkTheme=_.y("web_darker_dark_theme");return C};
_.O(dC,_.B);_.n=dC.prototype;_.n.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.n.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.n.getBackgroundUrl=function(){var C=this.get("data.headerImage.thumbnails");return C?"url("+_.RP(C,this.hostElement.clientWidth)+")":""};
_.n.onDataChanged=function(){var C=this.getBackgroundUrl();C&&(this.header.style.backgroundImage=C);C=_.ZQ();var F=_.lm(),G=this.get("data.trackingParams");G&&F&&C&&_.vA(C,F,_.zS(G));C=_.u(this.hostElement.querySelectorAll("yt-img-shadow"));for(F=C.next();!F.done;F=C.next())F.value.onShow()};
_.n.onPopupClosed=function(C){_.ev(C).localName==="ytd-membership-post-cancel-renderer"&&_.rz(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
dC.prototype.onPopupClosed=dC.prototype.onPopupClosed;dC.prototype.onDataChanged=dC.prototype.onDataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],dC.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],dC.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],dC.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],dC.prototype,"darkerDarkTheme",void 0);
_.R([_.$z("#header"),_.Y("design:type",HTMLDivElement)],dC.prototype,"header",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dC.prototype,"onDataChanged",null);_.R([_.VG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],dC.prototype,"onPopupClosed",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],dC);
_.q(dC,"ytd-membership-post-cancel-renderer",function(){if(FIr!==void 0)return FIr;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return FIr=C},{mode:1});var GaU;var x7=function(){var C=_.B.apply(this,arguments)||this;C.darkerDarkTheme=_.y("web_darker_dark_theme");return C};
_.O(x7,_.B);x7.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
x7.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],x7.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],x7.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],x7.prototype,"darkerDarkTheme",void 0);_.R([_.$z("ytd-feedback-survey-renderer"),_.Y("design:type",Object)],x7.prototype,"feedbackSurveyRenderer",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],x7);
_.q(x7,"ytd-sponsorship-confirm-cancel-content",function(){if(GaU!==void 0)return GaU;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return GaU=C},{mode:1});var V2s;var su=function(){var C=_.B.apply(this,arguments)||this;C.darkerDarkTheme=_.y("web_darker_dark_theme");C.maybeSubmitFeedback=function(){C.content&&C.content.maybeSubmitFeedback()};
return C};
_.O(su,_.B);_.n=su.prototype;_.n.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.n.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.n.onYtPopupOpened=function(C,F){F===this&&this.data&&this.data.onOpenCommands&&_.pX(this.hostElement,this.data.onOpenCommands,this.hostElement);_.rz(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.n.onYtPopupClosed=function(C,F){(F&&F.canceled===!0||F&&F.canceled===!1&&F.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.pX(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.n.onYtServiceRequestCompleted=function(){_.rz(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.n.onYtServiceRequestError=function(C){_.Bl(this.hostElement,C.detail.error.message)};
_.n.onDataChanged=function(){if(this.isAttached){var C=this.backgroundUrl;C&&(_.ot(this.hostElement).querySelector("#header").style.backgroundImage=C)}};
_.I6.Object.defineProperties(su.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var C=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return C?"url("+_.RP(C,this.hostElement.clientWidth)+")":""}}});
su.prototype.onDataChanged=su.prototype.onDataChanged;su.prototype.onYtServiceRequestError=su.prototype.onYtServiceRequestError;su.prototype.onYtServiceRequestCompleted=su.prototype.onYtServiceRequestCompleted;su.prototype.onYtPopupClosed=su.prototype.onYtPopupClosed;su.prototype.onYtPopupOpened=su.prototype.onYtPopupOpened;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],su.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],su.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],su.prototype,"data",void 0);_.R([_.L({value:function(){return _.iQ("SBOX_INAPPROPRIATE_CANCEL")}}),
_.Y("design:type",String)],su.prototype,"closeButtonAriaLabel",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],su.prototype,"darkerDarkTheme",void 0);_.R([_.$z("#scrollable"),_.Y("design:type",Object)],su.prototype,"scrollable",void 0);_.R([_.$z("ytd-sponsorship-confirm-cancel-content"),_.Y("design:type",Object)],su.prototype,"content",void 0);
_.R([_.VG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],su.prototype,"onYtPopupOpened",null);_.R([_.VG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],su.prototype,"onYtPopupClosed",null);
_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],su.prototype,"onYtServiceRequestCompleted",null);_.R([_.VG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],su.prototype,"onYtServiceRequestError",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],su.prototype,"onDataChanged",null);
_.R([_.e({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],su);
_.q(su,"ytd-sponsorship-confirm-cancel-renderer",function(){if(V2s!==void 0)return V2s;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return V2s=C},{mode:_.oN("kevlar_poly_si_batch_j081")?1:2});var izd;var qC=function(){var C=_.B.apply(this,arguments)||this;C.darkerDarkTheme=_.y("web_darker_dark_theme");return C};
_.O(qC,_.B);qC.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],qC.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],qC.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],qC.prototype,"darkerDarkTheme",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],qC);
_.q(qC,"ytd-sponsorships-celebration-content",function(){if(izd!==void 0)return izd;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return izd=
C},{mode:1});var Jxh;var $6M=_.h6(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),PF=function(){var C=_.B.apply(this,arguments)||this;C.scriptsAppended=!1;C.useFullWidthPrimaryButton=!1;C.buttonOverrides={type:"tonal",style:"overlay-dark"};return C};
_.O(PF,_.B);_.n=PF.prototype;_.n.dataChanged=function(){var C;this.useFullWidthPrimaryButton=!((C=this.data)==null||!C.useFullWidthPrimaryButton)};
_.n.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:_.y("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.n.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.n.onDataChanged=function(){var C;(C=this.header)==null||C.style.setProperty("background-color",this.backgroundColor);if(C=this.headerImageUrl){var F;(F=this.header)==null||F.style.setProperty("background-image",C)}F=_.ZQ(4);C=_.lm(4);var G=this.get("data.trackingParams");if(G&&C&&F){var V=_.zS(G);_.vA(F,C,V);_.y("combine_ve_grafts")?_.ia().graftServerVe(G,C,4):_.vA(F,C,V)}F=_.u(this.hostElement.querySelectorAll("yt-img-shadow"));for(C=F.next();!C.done;C=F.next())C.value.onShow();if(F=this.get("data.gtmId"))_.fS(F,
_.TF("GL","")),this.setupConversionTracking()};
_.n.setupConversionTracking=function(){if(!this.scriptsAppended){var C=document.createElement("script");_.ii(C,_.GO($6M.join("")));document.head.appendChild(C);C=document.createElement("noscript");C.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(C);this.scriptsAppended=!0}};
_.n.onPopupClosed=function(C){if(_.ev(C).localName==="ytd-sponsorships-celebration-renderer"){_.rz(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var F;this.data&&((F=this.data)==null?0:F.dismissCommand)&&_.Cy.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.I6.Object.defineProperties(PF.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var C=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.lE(C)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var C=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return C?"url("+_.RP(C,this.hostElement.getBoundingClientRect().width)+")":""}}});
PF.prototype.onPopupClosed=PF.prototype.onPopupClosed;PF.prototype.onDataChanged=PF.prototype.onDataChanged;PF.prototype.dataChanged=PF.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],PF.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],PF.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],PF.prototype,"data",void 0);
_.R([_.$z("#header"),_.Y("design:type",HTMLElement)],PF.prototype,"header",void 0);_.R([_.L(),_.Y("design:type",Object)],PF.prototype,"scriptsAppended",void 0);_.R([_.L({type:Boolean,reflectToAttribute:!0}),_.Y("design:type",Object)],PF.prototype,"useFullWidthPrimaryButton",void 0);_.R([_.L(),_.Y("design:type",Object)],PF.prototype,"buttonOverrides",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PF.prototype,"dataChanged",null);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PF.prototype,"onDataChanged",null);_.R([_.VG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],PF.prototype,"onPopupClosed",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],PF);
_.q(PF,"ytd-sponsorships-celebration-renderer",function(){if(Jxh!==void 0)return Jxh;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Jxh=C},{mode:1});var bzt;var gC=function(){var C=_.B.apply(this,arguments)||this;C.isToggleChecked=!1;return C};
_.O(gC,_.B);gC.prototype.onDataChanged=function(){var C;this.isToggleChecked=((C=this.data)==null?void 0:C.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
gC.prototype.close=function(){var C;((C=this.data)==null?0:C.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
gC.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var C,F=_.Z((C=this.data)==null?void 0:C.switchButton,CL3);F&&(this.isToggleChecked&&F.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(F.switchOnInnertubeCommand),!this.isToggleChecked&&F.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(F.switchOffInnertubeCommand))};
gC.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
gC.prototype.onDataChanged=gC.prototype.onDataChanged;_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],gC.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],gC.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],gC.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],gC.prototype,"isToggleChecked",void 0);_.R([_.L({value:_.iQ("CLOSE")}),_.Y("design:type",String)],gC.prototype,"closeButtonAriaLabel",void 0);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gC.prototype,"onDataChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],gC);
_.q(gC,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(bzt!==void 0)return bzt;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return bzt=C},{mode:1});var n3_;var R2=function(){return _.B.apply(this,arguments)||this};
_.O(R2,_.B);_.n=R2.prototype;_.n.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"}}}}};
_.n.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.n.detached=function(){this.playerElement.stop()};
_.n.onYtServiceRequestCompleted=function(){_.rz(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.n.onYtServiceRequestError=function(C){_.Bl(this.hostElement,C.detail.error.message)};
_.n.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.n.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.n.getTier=function(C,F){return!C||!C.tiers||F<0?null:_.Z(C.tiers[F],Vzd)};
_.n.moreThanOne=function(C){return!!(C&&C.length>1)};
_.n.tierOverviewTap=function(C){var F=this;this.selectedTier=C.model.index;_.zH(this,function(){_.oo(F.hostElement,"yt-refit")})};
_.n.computeSelectedClass=function(C,F){return this.isSelected(C,F)?"selected":""};
_.n.computeButtonAriaPressed=function(C,F){return this.isSelected(C,F)?"true":"false"};
_.n.isSelected=function(C,F){return C===F};
_.n.onDataChanged=function(){_.ot(this.hostElement).querySelector("#header-overlay").style.visibility="";_.ot(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 C=_.u(this.hostElement.querySelectorAll("yt-img-shadow")),
F=C.next();!F.done;F=C.next())F.value.onShow();var G;this.set("selectedTier",(G=this.get("data.targetTierIndex"))!=null?G:0);var V;(C=(V=this.data)==null?void 0:V.onVisible)&&this.ytComponentBehavior.resolveCommand(C)};
_.n.initializeVe=function(C){var F=_.ZQ(),G=_.lm(),V=this.get("data.trackingParams");G&&F&&(this.screenLayer=4,F=_.pW(_.iQi)(void 0,69877,{clientScreenNonce:F,visualElement:G},void 0,void 0,void 0),_.O5(F,69877,4),G=_.lm(4),V&&G&&(V=_.zS(V),_.vA(F,G,V),C&&(this.offerVideoVe=_.m2(74659),_.vA(F,V,this.offerVideoVe))))};
_.n.setHeaderBackground=function(){var C=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.ot(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.lE(C);if(C=this.getHeaderImage())C=_.RP(C,screen.width),_.ot(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+C+")"};
_.n.getHeaderImage=function(){var C=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&C?C:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.n.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.n.setupVideoPlayer=function(C){var F=this,G,V,J,b;return _.I(function(z){if(z.nextAddress==1)return G=F.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),V=F.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.y("kevlar_player_update_killswitch")?F.playerElement.update({args:{autoplay:G,video_id:C,player_params:V}}):F.playerElement.loadVideoWithPlayerVars({autoplay:G,video_id:C,player_params:V}),
z.yield(F.playerElement.getPlayerPromise(),2);J=z.yieldResult;J.addEventListener("onStateChange",function(Q){F.onPlayerStateChange(Q)});
J.setScreenLayer(F.screenLayer);(b=_.ZQ(4))&&F.offerVideoVe&&_.h3(b,F.offerVideoVe);G&&(F.pauseOtherPlayers(),F.playerElement.focusOnPlayer(),F.playerElement.getPlayer().hideControls(),_.c8(_.gT,function(){F.fadeOutHeaderOverlay()},4E3));
_.S9(z)})};
_.n.onPlayerStateChange=function(C){C===1?this.backgroundPlayerElement&&(C=this.backgroundPlayerElement.player_.getPlayerState(),C!==1&&C!==3||this.backgroundPlayerElement.pause()):C===0&&(_.ot(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.ot(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.n.fadeOutHeaderOverlay=function(){_.ot(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.n.onHeaderTap=function(){if(this.offerVideo){_.ot(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var C;((C=this.playerElement.player_)==null?void 0:C.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(C=_.ZQ(4))&&this.offerVideoVe&&_.ej(C,this.offerVideoVe)}};
_.n.getBackgroundImageLayerClass=function(C){return C?"background-image-layer-with-video":""};
_.n.getHeaderClass=function(C){return C?"header-with-video":""};
_.n.getHeaderOverlayClass=function(C){return C?"header-overlay-with-video":""};
_.n.getTitleContainerClass=function(C,F){return C?"title-container-with-video":F?"title-container-without-video-flexible":"title-container-without-video"};
_.n.tierTitleDisplayStatus=function(C){return this.moreThanOne(C)?"hide":"show"};
_.n.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.I8().resolve(_.Od).getPlayerElement():this.backgroundPlayerElement=_.gE();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var C=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=C===1||C===3;this.backgroundPlayerElement.pause()}};
_.n.isMiniplayerActive=function(){return _.I8().resolve(_.Od).isMiniplayerActive()};
_.n.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G6("selected-tier-changed",this.selectedTier))};
R2.prototype.selectedTierChangedForBinding=R2.prototype.selectedTierChangedForBinding;R2.prototype.onDataChanged=R2.prototype.onDataChanged;R2.prototype.onYtPopupClosed=R2.prototype.onYtPopupClosed;R2.prototype.onYtPopupOpened=R2.prototype.onYtPopupOpened;R2.prototype.onYtServiceRequestError=R2.prototype.onYtServiceRequestError;R2.prototype.onYtServiceRequestCompleted=R2.prototype.onYtServiceRequestCompleted;
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],R2.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],R2.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],R2.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],R2.prototype,"data",void 0);_.R([_.L({value:0}),_.Y("design:type",Number)],R2.prototype,"selectedTier",void 0);
_.R([_.L({value:""}),_.Y("design:type",String)],R2.prototype,"offerVideo",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],R2.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.R([_.L({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.rI(this)}}),
_.Y("design:type",String)],R2.prototype,"playerId",void 0);_.R([_.$z("tp-yt-paper-dialog-scrollable"),_.Y("design:type",Object)],R2.prototype,"scrollable",void 0);_.R([_.$z("ytd-sponsorships-tier-renderer"),_.Y("design:type",Object)],R2.prototype,"tierRenderer",void 0);_.R([_.$z("#player"),_.Y("design:type",Object)],R2.prototype,"playerElement",void 0);
_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],R2.prototype,"onYtServiceRequestCompleted",null);_.R([_.VG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],R2.prototype,"onYtServiceRequestError",null);
_.R([_.VG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],R2.prototype,"onYtPopupOpened",null);_.R([_.VG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],R2.prototype,"onYtPopupClosed",null);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],R2.prototype,"onDataChanged",null);
_.R([_.iP("selectedTier"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],R2.prototype,"selectedTierChangedForBinding",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],R2);
_.q(R2,"ytd-sponsorships-offer-renderer",function(){if(n3_!==void 0)return n3_;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return n3_=C},{mode:_.oN("kevlar_poly_si_batch_j077")?1:2});var ur8;var Y7=function(){var C=_.B.apply(this,arguments)||this;C.buttonOverrides={type:"filled",style:"mono"};return C};
_.O(Y7,_.B);Y7.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}}}}}};
Y7.prototype.backgroundColorChanged=function(){var C,F,G,V=(F=_.Z((C=this.data)==null?void 0:C.content,i$d))==null?void 0:(G=F.backgroundColor)==null?void 0:G.backgroundColor;V&&(C=_.Hr(V),_.ot(this.hostElement).querySelector("#banner").style.backgroundColor=C,_.ot(this.hostElement).querySelector("#abstract-art").style.backgroundColor=C)};
Y7.prototype.attached=function(){this.JSC$20892_scroller&&(this.JSC$20892_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20892_scroller.attached&&typeof this.JSC$20892_scroller.attached==="function"&&this.JSC$20892_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Y7.prototype.backgroundColorChanged=Y7.prototype.backgroundColorChanged;_.R([_.L(),_.Y("design:type",Object)],Y7.prototype,"data",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Y7.prototype,"ytRendererstamperBehavior",void 0);_.R([_.$z("#scroller"),_.Y("design:type",Object)],Y7.prototype,"JSC$20892_scroller",void 0);_.R([_.L(),_.Y("design:type",Object)],Y7.prototype,"buttonOverrides",void 0);
_.R([_.iP("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Y7.prototype,"backgroundColorChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],Y7);
_.q(Y7,"ytd-sponsorships-promotion-celebration-renderer",function(){if(ur8!==void 0)return ur8;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return ur8=C},{mode:_.oN("kevlar_poly_si_batch_j077")?1:2});var zoU;var QTM;var TX=function(){return _.B.apply(this,arguments)||this};
_.O(TX,_.B);TX.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
TX.prototype.computeIsInitiallyChecked=function(C){return C===1};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],TX.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],TX.prototype,"data",void 0);_.R([_.$z("#checkbox"),_.Y("design:type",Object)],TX.prototype,"checkbox",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],TX);
_.q(TX,"ytd-subscription-toggle-option-renderer",function(){if(QTM!==void 0)return QTM;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return QTM=C},{mode:1});var o2=function(){var C=_.B.apply(this,arguments)||this;C.darkerDarkTheme=_.y("web_darker_dark_theme");C.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return C};
_.O(o2,_.B);o2.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"}}}};
o2.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
o2.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var C=_.ot(this.hostElement).querySelector("#options").selected;C=this.data.options[C].subscriptionRadioOptionRenderer.serviceEndpoint;var F=_.ot(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");F&&C&&C.modifyChannelNotificationPreferenceEndpoint&&(F=F.getValue())&&(C.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[F]);_.I8().resolve(_.WD).resolveCommand(C,{form:{element:this.hostElement}});
_.rz(this.hostElement,"yt-close-popup-action")};
_.I6.Object.defineProperties(o2.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var C=this.data.options,F=0;F<C.length;F++){var G=C[F].subscriptionRadioOptionRenderer;if(G&&G.selected)return F}return null}}});
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],o2.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],o2.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.h9.YtEventForwardingBehavior),_.Y("design:type",Object)],o2.prototype,"eventForwardingBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],o2.prototype,"ytRendererBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],o2.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],o2.prototype,"darkerDarkTheme",void 0);_.R([_.M("data.options"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],o2.prototype,"initialIndex",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],o2);
_.q(o2,"ytd-subscription-notification-options-renderer",function(){if(zoU!==void 0)return zoU;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return zoU=C},{mode:1});var Il8;var E3t=function(){return _.B.apply(this,arguments)||this};
_.O(E3t,_.B);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],E3t.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],E3t.prototype,"data",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],E3t);
_.q(E3t,"ytd-tvfilm-offer-groups-renderer",function(){if(Il8!==void 0)return Il8;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Il8=C},{mode:1});var WIx;var rC=function(){var C=_.B.apply(this,arguments)||this;C.darkerDarkTheme=_.y("web_darker_dark_theme");return C};
_.O(rC,_.B);_.n=rC.prototype;_.n.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"}}}};
_.n.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.n.computeThumbnailClass=function(C){return C.thumbnailOverlays?C.isShow?"thumbnail-show":"thumbnail-movie":C.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.n.computeCommerceSectionClass=function(C){return C.offers&&C.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.n.computeTitleClass=function(C){return C.offers&&C.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.n.onDataChanged=function(){[].concat(_.da(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(C){C.onShow()})};
rC.prototype.onDataChanged=rC.prototype.onDataChanged;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],rC.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],rC.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],rC.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],rC.prototype,"darkerDarkTheme",void 0);
_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rC.prototype,"onDataChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],rC);
_.q(rC,"ytd-ypc-offers-overlay-renderer",function(){if(WIx!==void 0)return WIx;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return WIx=C},{mode:_.oN("kevlar_poly_si_batch_j028")?1:2});var t2M;var als=function(){this.usedMethods=new Set};
als.prototype.add=function(C){this.usedMethods.add(C)};
als.prototype.reset=function(){this.usedMethods.clear()};var Hzl=function(C,F){this.query=C;this.previousSearchQuery=F;this.id=kal++;if(!U6L){F=_.TF("SBOX_SETTINGS");C="https://"+((F==null?void 0:F.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var G=F==null?void 0:F.REQUEST_LANGUAGE;G&&(C+="&hl="+G);(G=F==null?void 0:F.REQUEST_DOMAIN)&&(C+="&gl="+G);C+="&client=youtube&gs_ri=youtube";(G=F==null?void 0:F.SUGG_EXP_ID)&&(C+="&sugexp="+encodeURIComponent(G));(G=F==null?void 0:F.PSUGGEST_TOKEN)&&(C+="&tok="+G);(F=
F==null?void 0:F.SESSION_INDEX)&&(C+="&authuser="+F);_.y("desktop_enable_visual_suggest")&&(C+="&h=180&w=320&ytvs=1");U6L=C}},llW=function(C){var F="q="+encodeURIComponent(C.query);
C.previousSearchQuery&&(F+="&pq="+encodeURIComponent(C.previousSearchQuery));return F},yxM=function(){var C=_.TF("SBOX_SETTINGS"),F={};
if(C==null?0:C.SEND_VISITOR_DATA)F["X-Goog-Visitor-Id"]=C==null?void 0:C.VISITOR_DATA;return F},Zz3=function(C){var F=U6L;
F+="&gs_id="+C.id.toString(36);F+="&q="+encodeURIComponent(C.query);F+="&cp="+C.query.length;C.previousSearchQuery&&(F+="&pq="+encodeURIComponent(C.previousSearchQuery));(C=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(F+="&video_id="+C);return F},kal=0,U6L="";var NLt=_.Oy.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,Ozl=_.Oy.SEARCH_ENTITY_SUGGESTION_MOVIE,Xmt=_.Oy.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,wmW=_.Oy.SEARCH_ENTITY_SUGGESTION_TV_SHOW,M2d=function(C,F){this.text=C;this.bold=F},SPx=function(C,F,G){this.input=F;
this.index=G;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=C[0];this.type=C[1];this.subtypes=C[2];var V;this.displayText=bq((V=C[3])==null?void 0:V.b);var J;this.ignoredPrefix=bq((J=C[3])==null?void 0:J.a);var b,z;this.hasNewVideo=((b=C[3])==null?void 0:(z=b.zam)==null?void 0:z.toString())==="true"?!0:!1;var Q;this.visualSuggestUrl=(Q=C[3])==null?void 0:Q.zai;var E;this.entityType=bq((E=C[3])==null?void 0:E.zap);var t;this.entityName=bq((t=C[3])==null?void 0:t.zao);var k;F=bq((k=
C[3])==null?void 0:k.zaf);var U;this.entityMid=(U=C[3])==null?void 0:U.zae;k=F73(this.subtypes,this.entityMid);if(F&&k){if(F){U="";switch(k){case "YOUTUBE_ENTITY_TYPE_SONG":U=Xmt;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":U=NLt;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":U=wmW;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":U=Ozl}k=k==="YOUTUBE_ENTITY_TYPE_SONG"||k==="YOUTUBE_ENTITY_TYPE_ALBUM"?U+" \u2022  \u2022 "+F:F}else k="";this.entitySubtitle=k}var H;this.externalChannelId=(H=C[3])==null?void 0:H.zav;var l;
this.entityThumbnailAttributionUrl=(l=C[3])==null?void 0:l.zaq},BLV=function(C,F){var G=[],V,J=(V=C.displayText)!=null?V:C.text;
(F==null?0:F.useEntityName)&&LIL(C)&&C.entityName&&(J=C.entityName);if(C.type===33)return G.push(new M2d(J,!1)),G;if(J.length>=C.input.length&&J.substring(0,C.input.length)===C.input)G.push(new M2d(C.input,!1)),G.push(new M2d(J.substring(C.input.length),!0));else{var b=new Set(C.input.split(/\s/)),z=J.split(/\s/);G=z.map(function(Q,E){return new M2d(Q.trim()+(E===z.length-1?"":" "),!b.has(Q))})}return G},LIL=function(C){var F=!!F73(C.subtypes);
C=!!C.entityMid;return F||C};var v3l=function(C){this.rawResponse=["",[],{}];this.suggestions=[];try{var F=JSON.parse(GGs(C));if(typeof F==="object"&&F!==null)this.rawResponse=F;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(V){console.log("Suggest: Failed to parse SuggestResponse!");return}var G=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(V,J){return new SPx(V,G,J)})};var fl8=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new als;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$20929_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},hoh,cxx=function(){hoh||(hoh=new fl8);
return hoh};
fl8.prototype.updateSuggestions=function(C){var F=this;this.availableSuggestions.forEach(function(G){F.previousSuggestions[G]=!0});
this.availableSuggestions=C.map(function(G){var V=G.type.toString();G.subtypes.length>0&&(V+="i"+G.subtypes.join("i"),V+="k"+G.suggestionSources.COMPLETE_SERVER.toString());return V})};
var AxU=function(C,F){var G=Date.now();C.firstEditTime<0&&(C.firstEditTime=G);F&&(C.lastQueryBuildTime=G);C.lastEditTime=G};
fl8.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$20929_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var eor=function(C){var F="";C.availableSuggestions.forEach(function(J){delete C.previousSuggestions[J]});
for(var G=_.u(Object.keys(C.previousSuggestions)),V=G.next();!V.done;V=G.next())V=V.value,C.previousSuggestions[V]&&(F+=(F?"j":"")+V);return F},d6W=function(C,F){var G=[];
F&&(G[1]=F.toString());G[0]="youtube";G[7]=Date.now()-C.startTime;G[6]=C.sessionNumber;C.zeroPrefixSuggestionCount>=0&&(G[33]=C.zeroPrefixSuggestionCount);G[13]=C.outOfSyncResponseCount;if(C.availableSuggestions.length>0){for(var V=F="",J=0,b=_.u(C.availableSuggestions),z=b.next();!z.done;z=b.next())z=z.value,z!==V&&(J>1&&(F+="l"+J),F+=(V?"j":"")+z,J=0,V=z),J+=1;J>1&&(F+="l"+J);G[3]=F}G[35]=eor(C);C.selectedSuggestionIndex>=0&&(G[2]=C.selectedSuggestionIndex);var Q;if(F=(Q=_.TF("SBOX_SETTINGS"))==
null?void 0:Q.SUGG_EXP_ID)G[19]=C.normalize(F),Q=0,C.experimentTriggeredBeforeFinal&&(Q|=1),C.experimentTriggeredFinal&&(Q|=2),G[20]=Q;G[26]=Array.from(C.inputMethodsTracker.usedMethods).join("j");if(C.JSC$20929_totalRoundTripTime>0){G[15]=C.JSC$20929_totalRoundTripTime;G[14]=C.maxRoundTripTime;Q=[];for(J=F=0;J<10;J++)V=C.roundTripTimeHistogram[J],V===0?F++:(F>1?Q.push(J+"-"+V):F===1?Q.push("0j"+V):Q.push(V.toString()),F=0);Q=Q.join("j");G[16]=Q}C.zeroPrefixRoundTripTime>0&&(G[36]=C.zeroPrefixRoundTripTime);
C.lastQueryBuildTime>0&&(G[18]=C.lastQueryBuildTime-C.startTime);C.firstEditTime>0&&(G[4]=C.firstEditTime-C.startTime);C.lastEditTime>0&&(G[5]=C.lastEditTime-C.startTime);return G.join(".")};
fl8.prototype.normalize=function(C){return C.replaceAll(".","-")};
var x6r=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var Km=function(){var C=_.B.apply(this,arguments)||this;C.microphoneSpinnerActive=!1;C.noAnimations=!1;C.boundExitClick=function(){C.onExitButtonClick()};
C.speechOverlayClassName="";C.isLevelAnimating=!1;C.playCloseDialogAudioFeedback=!0;C.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return C};
_.O(Km,_.B);_.n=Km.prototype;_.n.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.n.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=E18()};
_.n.dataChanged=function(){this.logDialog()};
_.n.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var C;(C=this.manager.audioPlayer)!=null&&(C.JSC$20244_audioEnabled=!1)}this.manager.stop();(C=this.manager.audioPlayer)!=null&&(C.JSC$20244_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.n.handleSpeechQueryCompleteAction=function(C){var F=C.navigationAction;F&&(C.trackingParams&&_.ia().graftServerVe(C.trackingParams,this.dialogVe,5),_.oo(this.hostElement,"yt-navigate",{endpoint:F,tempData:this.getNavigationParams(F),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.n.onExitButtonClick=function(){this.closeDialog()};
_.n.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var C;if((C=this.manager)!=null){var F;(F=C.audioPlayer)==null||b4(F,"failure");C.setState("microphone-off");C.stop()}}else(C=this.manager)==null||C.start()};
_.n.transcriptionChanged=function(){var C,F;(((C=this.transcription)==null?0:C.low)||((F=this.transcription)==null?0:F.high))&&this.setState("transcribing",this.transcription)};
_.n.stateChanged=function(){this.setState(this.state,this.transcription)};
_.n.logDialog=function(){var C;(C=this.data)!=null&&C.trackingParams&&(C=_.ia(),_.NJ(C,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=C.graftServerVe(this.data.trackingParams,void 0,5))};
_.n.getNavigationParams=function(C){var F={};if(_.y("web_yt_searchbox")){var G=cxx();G.inputMethodsTracker.add(6);G=d6W(G,15);F.gs_l=G;var V;F.oq=((V=_.Z(C,_.JR))==null?void 0:V.query)||""}else if(C=window.ytvoicesearchloggingparams){if(C=C())F.oq=C.oq,F.gs_l=C.gs_l}else _.CD(Error("Il"));return F};
_.n.closeDialog=function(){_.rz(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.n.setState=function(C,F){if(this.data){var G=this.data,V={};switch(C){case "listening":V={headerText:G.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:G.microphoneButtonAriaLabel};break;case "timeout":V={headerText:G.promptHeader,microphoneState:"try-again",microphoneLabel:G.promptMicrophoneLabel,microphoneAriaLabel:G.promptMicrophoneLabel};break;case "microphone-off":V={headerText:G.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:G.promptMicrophoneLabel,
microphoneAriaLabel:G.promptMicrophoneLabel};break;case "transcribing":(F==null?0:F.low)||(F==null?0:F.high)?V={transcriptionLow:F==null?void 0:F.low,transcriptionHigh:F==null?void 0:F.high,microphoneState:"speaking",microphoneAriaLabel:G.microphoneButtonAriaLabel}:V={headerText:G.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:G.microphoneButtonAriaLabel};break;case "processing":V={headerText:G.loadingHeader,microphoneState:"processing",microphoneAriaLabel:G.microphoneButtonAriaLabel};
break;case "offline":V={headerText:G.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:G.connectionErrorMicrophoneLabel,microphoneAriaLabel:G.connectionErrorMicrophoneLabel};break;case "permission":V={headerText:G.permissionsHeader,bodyLine1:G.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:G.permissionsSubtext};break;case "permission-denied":V={headerText:G.disabledHeader,bodyLine1:G.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:G.disabledSubtext}}V.className=
C;this.speechOverlayState=V;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.n.setMicrophoneState=function(C){var F=this.isLevelAnimating;this.isLevelAnimating=C==="speaking";!F&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=C==="processing"&&!this.noAnimations};
_.n.setClass=function(C){this.speechOverlayClassName&&_.pd(this.hostElement,this.speechOverlayClassName,!1);C&&(this.speechOverlayClassName=C,_.pd(this.hostElement,C,!0))};
_.n.runLevelAnimation=function(){var C=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var F=1+Math.random()*.75,G=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+G/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+F+")");_.gT.addJob(function(){C.runLevelAnimation()},3,G)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
Km.prototype.stateChanged=Km.prototype.stateChanged;Km.prototype.transcriptionChanged=Km.prototype.transcriptionChanged;Km.prototype.onPopupClosed=Km.prototype.onPopupClosed;Km.prototype.dataChanged=Km.prototype.dataChanged;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],Km.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Km.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Km.prototype,"rendererStamperBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],Km.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.h9.YtEventForwardingBehavior),_.Y("design:type",Object)],Km.prototype,"eventForwardingBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Km.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],Km.prototype,"speechOverlayState",void 0);
_.R([_.L(),_.Y("design:type",Object)],Km.prototype,"microphoneSpinnerActive",void 0);_.R([_.L({type:_.y("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.Y("design:type",Object)],Km.prototype,"noAnimations",void 0);_.R([_.L({selector:function(C){var F;return(F=C.voiceSearch)==null?void 0:F.transcription}}),
_.Y("design:type",Object)],Km.prototype,"transcription",void 0);_.R([_.L({selector:function(C){var F;return(F=C.voiceSearch)==null?void 0:F.overlay}}),
_.Y("design:type",String)],Km.prototype,"state",void 0);_.R([_.L(),_.Y("design:type",Object)],Km.prototype,"boundExitClick",void 0);_.R([_.$z("#microphone-levels"),_.Y("design:type",HTMLElement)],Km.prototype,"level",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Km.prototype,"dataChanged",null);_.R([_.VG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Km.prototype,"onPopupClosed",null);
_.R([_.zp("transcription"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Km.prototype,"transcriptionChanged",null);_.R([_.zp("state"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Km.prototype,"stateChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],Km);
_.q(Km,"ytd-voice-search-dialog-renderer",function(){if(t2M!==void 0)return t2M;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return t2M=C},{mode:1});var sTh;var Dm=function(){var C=_.B.apply(this,arguments)||this;C.isOverlay=!1;C.hidden=!1;return C};
_.O(Dm,_.B);_.n=Dm.prototype;_.n.onPopupClosed=function(){this.toggleIconState(!1)};
_.n.computeIcon=function(){var C,F,G;return(F=_.Z((C=this.data)==null?void 0:C.icon,uYs))==null?void 0:(G=F.icon)==null?void 0:G.iconType};
_.n.computeIconBadgeShape=function(){var C;return{iconBadgeType:"cart",iconBadgeText:(C=this.iconBadgeEntity)==null?void 0:C.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.n.onClick=function(){var C;(C=this.data)!=null&&C.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.n.computeHidden=function(C){return!C};
_.n.toggleIconState=function(C){this.iconButton&&(this.iconButton.pressed=C)};
Dm.prototype.onPopupClosed=Dm.prototype.onPopupClosed;_.R([_.w(_.Rr),_.Y("design:type",Object)],Dm.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Dm.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],Dm.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Dm.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],Dm.prototype,"isOverlay",void 0);
_.R([_.L({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.Y("design:type",Object)],Dm.prototype,"hidden",void 0);_.R([_.L({selectorArgs:["data.iconBadgeEntityKey"],selector:function(C,F){return _.jN(C.entities,"iconBadgeEntity",F)}}),
_.Y("design:type",Object)],Dm.prototype,"iconBadgeEntity",void 0);_.R([_.$z("yt-icon-button"),_.Y("design:type",HTMLButtonElement)],Dm.prototype,"iconButton",void 0);_.R([_.VG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Dm.prototype,"onPopupClosed",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],Dm);
_.q(Dm,"ytd-icon-badge-topbar-button-renderer",function(){if(sTh!==void 0)return sTh;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return sTh=C},{mode:1});var qP3;var pm=function(){var C=_.B.apply(this,arguments)||this;C.premiumOptions=[];C.darkerDarkTheme=_.y("web_darker_dark_theme");return C};
_.O(pm,_.B);pm.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.I6.Object.defineProperties(pm.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],pm.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],pm.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Array)],pm.prototype,"premiumOptions",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],pm.prototype,"darkerDarkTheme",void 0);_.R([_.M("premiumOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],pm.prototype,"hasPremiumOptions",null);
_.R([_.e({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],pm);
_.q(pm,"ytd-offline-promo-content",function(){if(qP3!==void 0)return qP3;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return qP3=C},{mode:1});var PoM;var ma=function(){var C=_.B.apply(this,arguments)||this;C.premiumOptions=[];return C};
_.O(ma,_.B);ma.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var C;this.premiumOptions=j3W((C=this.data)==null?void 0:C.formats)};
ma.prototype.onClickSubmit=function(){_.rz(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var C;(C=_.gE())==null||C.pause()};
ma.prototype.attached=function(){this.JSC$20949_scroller&&(this.JSC$20949_scroller.dialogElement=this.hostElement.parentNode)};
_.I6.Object.defineProperties(ma.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
ma.prototype.dataChanged=ma.prototype.dataChanged;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],ma.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],ma.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ma.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],ma.prototype,"data",void 0);
_.R([_.L({computed:"computeIcon_(data.headersIcon)",value:""}),_.Y("design:type",String)],ma.prototype,"headersIcon",void 0);_.R([_.L(),_.Y("design:type",Array)],ma.prototype,"premiumOptions",void 0);_.R([_.$z("#scroller"),_.Y("design:type",Object)],ma.prototype,"JSC$20949_scroller",void 0);_.R([_.M("headersIcon"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ma.prototype,"showIcon",null);
_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ma.prototype,"dataChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],ma);
_.q(ma,"ytd-offline-promo-renderer",function(){if(PoM!==void 0)return PoM;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return PoM=C},{mode:1});var g3U;var CM=function(){var C=_.B.apply(this,arguments)||this;C.playbackPauseInterval=NaN;C.isLoading=!1;C.hasError=!1;C.dialogClass="";C.youtubeLabel=_.iQ("LOGO_ALT_LABEL",{},"YouTube Home");C.logoName="yt-logos-ext:yt-logo-updated";C.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return C};
_.O(CM,_.B);_.n=CM.prototype;_.n.onDataChange=function(){var C;if(this.showEOMV1Text=!((C=this.data)==null||!C.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.n.attached=function(){this.pausePlayer()};
_.n.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.n.handleLangSelect=function(C){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[C.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.n.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.n.handleSaveConsent=function(C){var F=this;this.showLoadingSpinner();this.showLoadingSpinner();RGU(_.Z(C,z3t)).catch(function(G){_.Yw(new _.Ay("Something went wrong when save consent "+(G.message?G.message:G)+"."));F.hideLoadingSpinner();F.showErrorMessage()})};
_.n.handleDisablePersonalization=function(C){var F=this;this.showLoadingSpinner();YAr(_.Z(C,uAt)).then(function(){F.dialog.close();F.resumePlayer()}).catch(function(G){_.Yw(new _.Ay("Something went wrong when disable personalization "+(G.message?G.message:G)+"."));
F.hideLoadingSpinner();F.showErrorMessage()})};
_.n.showLoadingSpinner=function(){var C=this;this.showSpinnerJobId=_.gT.addLowPriorityJob(function(){C.isLoading=!0},500)};
_.n.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.gT.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.n.showErrorMessage=function(){var C=this;this.hasError=!0;_.gT.addLowPriorityJob(function(){C.hasError=!1},2E3)};
_.n.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.Z9(function(){try{var C=_.gE();C&&C.pause()}catch(F){}},100))};
_.n.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var C=_.gE();C&&C.play()}catch(F){}};
_.I6.Object.defineProperties(CM.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var C;if((C=this.data)==null||!C.eomV1Text)return[];C=[];for(var F=["SHIELD","WARNING","BAR_CHART"],G=this.data.eomV1Text.essentialCookieMsg.items,V=0;V<F.length&&V<G.length;V++)C.push({icon:F[V],text:G[V]});return C}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var C;if((C=this.data)==null||!C.eomV1Text)return[];C=[];for(var F=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],G=this.data.eomV1Text.nonEssentialCookieMsg.items,V=0;V<F.length&&V<G.length;V++)C.push({icon:F[V],text:G[V]});return C}}});
CM.prototype.onDataChange=CM.prototype.onDataChange;_.R([_.L(),_.Y("design:type",Object)],CM.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Boolean)],CM.prototype,"showEOMV1Text",void 0);_.R([_.L(),_.Y("design:type",Object)],CM.prototype,"isLoading",void 0);_.R([_.L(),_.Y("design:type",Object)],CM.prototype,"hasError",void 0);_.R([_.L(),_.Y("design:type",Number)],CM.prototype,"showSpinnerJobId",void 0);_.R([_.L(),_.Y("design:type",Object)],CM.prototype,"dialogClass",void 0);
_.R([_.$z("#dialog"),_.Y("design:type",Object)],CM.prototype,"dialog",void 0);_.R([_.$z("#cb-header"),_.Y("design:type",HTMLElement)],CM.prototype,"header",void 0);_.R([_.$z("#lang-select"),_.Y("design:type",HTMLElement)],CM.prototype,"langSelect",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],CM.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],CM.prototype,"ytComponentBehavior",void 0);
_.R([_.L(),_.Y("design:type",String)],CM.prototype,"youtubeLabel",void 0);_.R([_.L(),_.Y("design:type",Object)],CM.prototype,"logoName",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],CM.prototype,"onDataChange",null);_.R([_.M("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],CM.prototype,"eomEssentialCookieMsgItems",null);
_.R([_.M("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],CM.prototype,"eomNonEssentialCookieMsgItems",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],CM);
_.q(CM,"ytd-consent-bump-v2-lightbox",function(){if(g3U!==void 0)return g3U;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return g3U=C},{mode:1});var Rod;var jf=function(){return _.B.apply(this,arguments)||this};
_.O(jf,_.B);jf.prototype.ready=function(){if(!_.fD()||G$8)var C=!0;else G$8=!0,C=!1;C||(C=document.querySelector("ytd-app"),C||(C=document.body),this.internalLightBox=_.ot(C).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.R([_.L(),_.Y("design:type",Object)],jf.prototype,"data",void 0);_.R([_.$z("#lightbox"),_.Y("design:type",Object)],jf.prototype,"lightBox",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],jf);
_.q(jf,"ytd-consent-bump-v2-renderer",function(){if(Rod!==void 0)return Rod;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Rod=C},{mode:1});var YPx;var TLr;var o3h;var FZ=function(){return _.B.apply(this,arguments)||this};
_.O(FZ,_.B);_.n=FZ.prototype;_.n.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&kes(this.toastManager,this.toastType)};
_.n.open=function(C){this.toast&&(this.ephemeralAction&&_.I8().resolve(_.G9).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=C!=null?C:0,this.toastManager.enqueue(this.toast,C)):this.toast.open())};
_.n.close=function(C){var F;(F=this.toast)==null||F.close();this.toastManager&&C===1&&kes(this.toastManager,C)};
_.n.refit=function(){var C;(C=this.toast)==null||C.refit()};
_.n.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var C;(C=this.toast)==null||C.close()}};
_.n.setVerticalOffset=function(C){this.toast&&(this.toast.verticalOffset=C,this.toast.fit())};
_.n.computeButtonClass_=function(C){return C?"toast-button":""};
_.n.computeText_=function(C){return _.dd(C)};
_.n.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G6("toast-opened-changed",this.toastOpened))};
_.n.updateToastOpenedFromBinding=function(C){this.toastOpened=C.detail.value};
_.I6.Object.defineProperties(FZ.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var C,F,G=(C=this.data)==null?void 0:(F=C.actionButton)==null?void 0:F.buttonRenderer;return(G==null?void 0:G.command)||(G==null?void 0:G.serviceEndpoint)||(G==null?void 0:G.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var C=[],F;((F=this.data)==null?0:F.responseText)&&C.push(_.dd(this.data.responseText));var G;((G=this.data)==null?0:G.subText)&&C.push(_.dd(this.data.subText));var V,J;if((V=this.data)==null?0:(J=V.actionButton)==null?0:J.buttonRenderer){var b,z;C.push(((b=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(z=b.accessibilityData)==null?void 0:z.label)||_.dd(this.data.actionButton.buttonRenderer.text))}return C.filter(function(Q){return Q}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var C,F;return(F=(C=this.toast)==null?void 0:C.opened)!=null?F:!1}}});
FZ.prototype.toastOpenedChangedForBinding=FZ.prototype.toastOpenedChangedForBinding;FZ.prototype.toastOpenedChanged=FZ.prototype.toastOpenedChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],FZ.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.h9.YtEventForwardingBehavior),_.Y("design:type",Object)],FZ.prototype,"ytEventForwardingBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],FZ.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],FZ.prototype,"duration",void 0);
_.R([_.L(),_.Y("design:type",Number)],FZ.prototype,"toastType",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],FZ.prototype,"useCloseButton",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],FZ.prototype,"closeToastOnActionButtonClick",void 0);_.R([_.L({value:function(){return _.iQ("SBOX_INAPPROPRIATE_CANCEL")}}),
_.Y("design:type",String)],FZ.prototype,"closeButtonAriaLabel",void 0);_.R([_.L(),_.Y("design:type",Boolean)],FZ.prototype,"toastOpened",void 0);_.R([_.L(),_.Y("design:type",Boolean)],FZ.prototype,"hasOpened",void 0);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],FZ.prototype,"command",null);_.R([_.M("labelText","command","duration"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],FZ.prototype,"ephemeralAction",null);
_.R([_.M("ephemeralAction"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],FZ.prototype,"hasEphemeralAction",null);_.R([_.$z("#toast"),_.Y("design:type",Object)],FZ.prototype,"toast",void 0);_.R([_.L({value:function(){return{style:"call-to-action-inverse"}}}),
_.Y("design:type",Object)],FZ.prototype,"buttonOverrides",void 0);_.R([_.L({value:{style:"mono-inverse"}}),_.Y("design:type",Object)],FZ.prototype,"closeButtonOverrides",void 0);_.R([_.L({value:function(){return _.I8().resolve(_.Qt(_.pI))}}),
_.Y("design:type",Object)],FZ.prototype,"toastManager",void 0);_.R([_.M("data.responseText","data.subText","data.actionButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],FZ.prototype,"labelText",null);_.R([_.iP("toastOpened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],FZ.prototype,"toastOpenedChanged",null);
_.R([_.iP("toastOpened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],FZ.prototype,"toastOpenedChangedForBinding",null);_.R([_.Z5({is:"yt-notification-action-renderer",disableElementRegistration:!0})],FZ);
_.q(FZ,"yt-notification-action-renderer",function(){if(o3h===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;TLr===void 0&&(TLr=document.createElement("template"));var V=TLr;G.call(F,V.content.cloneNode(!0),C.content.firstChild);o3h=C}C=o3h;return C},{mode:2});var GJ=function(){var C=_.B.apply(this,arguments)||this;C.duration=4E3;C.downloadingCount=0;C.downloadedCount=0;C.downloadingOnlySmartDownloads=!1;C.sessionTotalDownloads=0;C.sessionDownloaded=0;C.previousSessionsDownloaded=0;C.totalDownloadPercentage=0;C.currentDownloadProgress=0;C.currentDownloadPercentage=0;C.isLeaderTab=!0;C.isFullScreen=!1;C.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};C.boundBeforeUnload=function(F){C.isLeaderTab&&C.downloadingCount>0&&(F.preventDefault(),
F.returnValue=!0)};
return C};
_.O(GJ,_.B);_.n=GJ.prototype;
_.n.open=function(){this.updateDownloadState();if(this.data){var C=this.sessionDownloaded+1,F=this.sessionTotalDownloads>1?_.iQ("VIDEOS_DOWNLOADING_RATIO",{downloaded:C.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+C+"/"+this.sessionTotalDownloads):_.iQ("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(F=this.sessionTotalDownloads>1?_.iQ("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:C.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
C+"/"+this.sessionTotalDownloads):_.iQ("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));C=this.isLeaderTab?_.iQ("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.dd(this.data.responseText)!==F||_.dd(this.data.subText)!==C)this.set("data.responseText",_.eN(F)),this.set("data.subText",_.eN(C)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.n.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.n.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.n.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.n.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var C=this.downloadedCount-this.previousSessionsDownloaded;C<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-C);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.n.handleFullscreenChange=function(C){(this.isFullScreen=C)||this.updatePopup()};
GJ.prototype.updateCurrentDownloadProgress=GJ.prototype.updateCurrentDownloadProgress;GJ.prototype.updatePopup=GJ.prototype.updatePopup;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],GJ.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],GJ.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.h9.YtEventForwardingBehavior),_.Y("design:type",Object)],GJ.prototype,"ytEventForwardingBehavior",void 0);
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],GJ.prototype,"actionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],GJ.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],GJ.prototype,"duration",void 0);_.R([_.L({selector:function(C){return _.eFq(C.entities).length}}),
_.Y("design:type",Object)],GJ.prototype,"downloadingCount",void 0);_.R([_.L({selector:jPL}),_.Y("design:type",Object)],GJ.prototype,"downloadedCount",void 0);_.R([_.L({selector:function(C){var F=_.eFq(C.entities);return CaU(C.entities,F)}}),
_.Y("design:type",Object)],GJ.prototype,"downloadingOnlySmartDownloads",void 0);_.R([_.L(),_.Y("design:type",Object)],GJ.prototype,"sessionTotalDownloads",void 0);_.R([_.L(),_.Y("design:type",Object)],GJ.prototype,"sessionDownloaded",void 0);_.R([_.L(),_.Y("design:type",Object)],GJ.prototype,"previousSessionsDownloaded",void 0);_.R([_.L(),_.Y("design:type",Object)],GJ.prototype,"totalDownloadPercentage",void 0);
_.R([_.L({selector:function(C){var F;C=(F=_.eFq(C.entities))!=null?F:[];return C.length>0?_.X$i(C.slice(-1)):0}}),
_.Y("design:type",Object)],GJ.prototype,"currentDownloadProgress",void 0);_.R([_.L(),_.Y("design:type",Object)],GJ.prototype,"currentDownloadPercentage",void 0);_.R([_.L({selector:_.PcI}),_.Y("design:type",Object)],GJ.prototype,"isLeaderTab",void 0);_.R([_.$z("yt-notification-action-renderer"),_.Y("design:type",Object)],GJ.prototype,"notificationActionRenderer",void 0);
_.R([_.zp("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GJ.prototype,"updatePopup",null);_.R([_.zp("currentDownloadProgress"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GJ.prototype,"updateCurrentDownloadProgress",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],GJ);
_.q(GJ,"ytd-video-download-toast-renderer",function(){if(YPx!==void 0)return YPx;var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return YPx=C},{mode:1});var rx_;var KIr;var V0=function(){return _.B.apply(this,arguments)||this};
_.O(V0,_.B);V0.prototype.computeIsRedLogo=function(C,F){!C&&F&&(C=F);return C==="YOUTUBE_RED_LOGO"||C==="YOUTUBE_PREMIUM_LOGO"};
V0.prototype.computeLogoName=function(C){C=this.componentBehavior.computeIcon_(C);return C===""?"yt-logos-ext:yt-logo-updated":C};
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],V0.prototype,"componentBehavior",void 0);_.R([_.L({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.Y("design:type",Boolean)],V0.prototype,"isRedLogo",void 0);_.R([_.L({computed:"computeLogoName(data)"}),_.Y("design:type",String)],V0.prototype,"logoName",void 0);_.R([_.L({value:{}}),_.Y("design:type",Object)],V0.prototype,"data",void 0);
_.R([_.L(),_.Y("design:type",Object)],V0.prototype,"logoType",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-logo"})],V0);
_.q(V0,"ytd-logo",function(){if(KIr!==void 0)return KIr;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return KIr=C},{mode:_.oN("kevlar_poly_si_batch_j074")?1:2});var iB=function(){var C=_.B.apply(this,arguments)||this;C.animationRef={};return C};
_.O(iB,_.B);_.n=iB.prototype;_.n.attached=function(){document.addEventListener("yt-navigate-finish",_.Gp(this,this.logYoodle))};
_.n.detached=function(){document.removeEventListener("yt-navigate-finish",_.Gp(this,this.logYoodle))};
_.n.logYoodle=function(){var C,F;if((C=this.data)==null?0:(F=C.loggingDirectives)==null?0:F.trackingParams)this.ytRendererBehavior.markDirty(),_.ia().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.n.computeHideImg=function(C,F){return!!C||!!F};
_.n.computeHideYtdLogo=function(C,F){return!C||!!F};
_.n.computeHideLottie=function(C){return!C};
_.n.computeIsRedLogo=function(C){return C==="YOUTUBE_RED_LOGO"||C==="YOUTUBE_PREMIUM_LOGO"};
_.n.renderLogoEntity=function(){var C=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),F=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),G=this.getLogoTitleText(this.data),V=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==C&&(this.url=C);this.animatedUrl!==F&&(this.animatedUrl=F);this.logoTitleText!==G&&(this.logoTitleText=G);this.lottieUrl!==V&&(this.lottieUrl=V,this.lottiePlayerProps=this.computeLottiePlayerProps(V))};
_.n.getSanitizedThumbnail=function(C){return C&&C.thumbnails?_.PoS(C.thumbnails,122)||"":""};
_.n.getThumbnailUrl=function(C,F){if(!F)return"";var G,V;C=C?(G=F.darkThemeLogo)==null?void 0:G.thumbnail:(V=F.lightThemeLogo)==null?void 0:V.thumbnail;return this.getSanitizedThumbnail(C)};
_.n.getAnimatedThumbnailUrl=function(C,F){return F?this.getSanitizedThumbnail(C?F.darkThemeAnimatedLogo:F.lightThemeAnimatedLogo):""};
_.n.getLogoTitleText=function(C){if(C)return _.dd(C.tooltipText)};
_.n.computeLogoIcon=function(C,F){if(F){var G,V;return C?(G=F.darkThemeLogo)==null?void 0:G.icon:(V=F.lightThemeLogo)==null?void 0:V.icon}};
_.n.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.n.getLottieUrl=function(C,F){var G,V,J,b;return C?F==null?void 0:(G=F.darkThemeLogo)==null?void 0:(V=G.lottieAnimation)==null?void 0:V.url:F==null?void 0:(J=F.lightThemeLogo)==null?void 0:(b=J.lottieAnimation)==null?void 0:b.url};
_.n.computeLottiePlayerProps=function(C){if(C){var F;if((F=this.animationRef)==null?0:F.lottieEl){var G;(G=this.animationRef)==null||G.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:C,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.n.onLottieError=function(){this.data&&this.lottieUrl&&_.oo(this.hostElement,"yoodle-error")};
_.n.onImgError=function(){this.data&&!this.lottieUrl&&_.oo(this.hostElement,"yoodle-error")};
iB.prototype.playAnimation=iB.prototype.playAnimation;iB.prototype.renderLogoEntity=iB.prototype.renderLogoEntity;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],iB.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],iB.prototype,"data",void 0);_.R([_.L({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.Y("design:type",Boolean)],iB.prototype,"hideImg",void 0);
_.R([_.L({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.Y("design:type",Boolean)],iB.prototype,"hideYtdLogo",void 0);_.R([_.L({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.Y("design:type",Boolean)],iB.prototype,"hideLottie",void 0);_.R([_.L({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.Y("design:type",Boolean)],iB.prototype,"isRedLogo",void 0);
_.R([_.L(),_.Y("design:type",Boolean)],iB.prototype,"useDarkThemeYoodle",void 0);_.R([_.L(),_.Y("design:type",String)],iB.prototype,"url",void 0);_.R([_.L(),_.Y("design:type",String)],iB.prototype,"animatedUrl",void 0);_.R([_.L(),_.Y("design:type",String)],iB.prototype,"logoTitleText",void 0);_.R([_.L({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.Y("design:type",Object)],iB.prototype,"logoIcon",void 0);_.R([_.L(),_.Y("design:type",Object)],iB.prototype,"logoType",void 0);
_.R([_.L(),_.Y("design:type",String)],iB.prototype,"lottieUrl",void 0);_.R([_.L(),_.Y("design:type",Object)],iB.prototype,"lottiePlayerProps",void 0);_.R([_.L(),_.Y("design:type",Object)],iB.prototype,"animationRef",void 0);_.R([_.iP("data"),_.iP("useDarkThemeYoodle"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iB.prototype,"renderLogoEntity",null);
_.R([_.VG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],iB.prototype,"playAnimation",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],iB);
_.q(iB,"ytd-yoodle-renderer",function(){if(rx_!==void 0)return rx_;var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return rx_=C},{mode:_.oN("kevlar_poly_si_batch_j074")?1:2});var D6s;var pmM;var m6r=_.SV.currentPageTypeSelector,CAh=_.SV.currentPageSubTypeSelector,J0=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return C};
_.O(J0,_.B);_.n=J0.prototype;_.n.onYoodleError=function(){_.y("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.n.computeLogoName=function(C){C=this.componentBehavior.computeIcon_(C);return C===""?"yt-logos-ext:yt-logo-updated":C};
_.n.computeTitle=function(C,F,G){return G&&(F==null?0:F.tooltipText)?_.dd(F.tooltipText):_.dd(C)};
_.n.computeAriaLabel=function(C,F,G){return G&&(F==null?0:F.tooltipText)?_.dd(C):""};
_.n.computeShowYoodle=function(C,F,G){return!C||!F&&!!G&&!_.xf.isEmpty(G)};
_.n.onNavigateHomeAction=function(){if(_.y("kevlar_miniplayer_navigate_home_from_app_killswitch")){var C;(C=_.ot(this.hostElement).querySelector(".yt-simple-endpoint"))==null||C.click()}};
_.n.computeLogoHref=function(C,F,G){var V;(G==null?0:G.onTapCommand)?V=this.componentBehavior.computeHref_(G.onTapCommand):C&&(V=this.componentBehavior.computeHref_(C));return V?V:F};
_.n.computeCommand=function(C,F){return(F==null?void 0:F.onTapCommand)||C};
_.n.getEndpointForm=function(){if(_.y("kevlar_topbar_disable_cache_only_home")){var C=_.I8().resolve(_.P$),F=m6r(C.getState())||"";C=CAh(C.getState())||"";return{disableCache:F==="ytd-browse"&&C==="home"}}return{disableCache:!0}};
J0.prototype.onYoodleError=J0.prototype.onYoodleError;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],J0.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],J0.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],J0.prototype,"componentBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],J0.prototype,"ytdReduxBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],J0.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",String)],J0.prototype,"countryCode",void 0);_.R([_.L({selectorArgs:["data.overrideEntityKey"],selector:function(C,F){return _.jN(C.entities,"logoEntity",F)}}),
_.Y("design:type",Object)],J0.prototype,"logoEntity",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.Y("design:type",Boolean)],J0.prototype,"showYoodle",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],J0.prototype,"yoodleError",void 0);_.R([_.L({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.Y("design:type",String)],J0.prototype,"titleText",void 0);
_.R([_.L({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.Y("design:type",String)],J0.prototype,"ariaLabelText",void 0);_.R([_.L({value:"/"}),_.Y("design:type",String)],J0.prototype,"defaultEndpointUrl",void 0);_.R([_.L({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.Y("design:type",String)],J0.prototype,"endpointUrl",void 0);
_.R([_.L({computed:"computeCommand(data.endpoint, logoEntity)"}),_.Y("design:type",String)],J0.prototype,"command",void 0);_.R([_.L(),_.Y("design:type",Object)],J0.prototype,"logoType",void 0);_.R([_.L({}),_.Y("design:type",Boolean)],J0.prototype,"useDarkThemeYoodle",void 0);_.R([_.VG("yoodle-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],J0.prototype,"onYoodleError",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],J0);
_.q(J0,"ytd-topbar-logo-renderer",function(){if(pmM!==void 0)return pmM;var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return pmM=C},{mode:_.oN("kevlar_poly_si_batch_j027")?1:2});var jUU=0;var FGs=_.Oy.SEARCH_APPEND_LABEL,Grr=_.Oy.SUGGESTION_NEW_VIDEOS_TEXT,VOW=_.Oy.SUGGESTION_THUMBNAIL_LABEL,ijL=_.Oy.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,Jer=_.d(function(C){function F(kS){var HV,r9;return _.I(function(BV){if(BV.nextAddress==1)return HV=new Request(kS),_.yy(BV,2),BV.yield(fetch(HV,{credentials:"include"}),4);if(BV.nextAddress!=2)return Zr(!0),_.Gn(BV,0);r9=_.wa(BV);_.Yw(r9);_.S9(BV)})}
var G=C.isHighlighted;var V=C.suggestion;var J=C.onClickCallback;var b=C.onHoverUpdateCallback;var z=C.labels;var Q=C.queryBuilderFunction;var E=C.onRemoveCallback;var t=C.suggestionIndex;var k=C.generateUniqueId;var U=C.highlightedId;var H=C.useScrollMargin;var l=C.isKeyboardMode;var N=null,S=null,f=_.Jt("div"),c=_.Jt("span");C=_.u(_.yH(!1,void 0,"mxSc0e"));var A=C.next().value,T=C.next().value,P=_.nc("a",function(kS){kS&&_.ud(237477,kS,S,function(HV){S=HV})}),g=_.nc("button",function(kS){kS&&_.ud(237477,
kS,S,function(HV){S=HV})}),r=_.CZ(function(kS){if((kS==null?void 0:kS.button)===2)return kS.preventDefault(),!1;
var HV=_.ZQ();HV&&N&&_.dh(HV,N,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var r9;J(kS,V().text,V().index,V().entityMid,kS==null?void 0:(r9=kS.detail)==null?void 0:r9.wasSelectedByKeyboard);return!1}),C9=function(){return V().type===35},Wo=function(){return _.y("desktop_enable_single_suggestion_highlight")},EB=function(){return _.a8("desktop_suggestions_panel_row_height")||0},L9=function(){var kS;
return _.y("desktop_enable_new_video_metadata")&&((kS=V())==null?void 0:kS.hasNewVideo)===!0},ki=function(){return _.y("desktop_enable_visual_suggest")},lZ=function(){return _.y("desktop_enable_entity_suggest")&&LIL(V())},eq=function(){return V().entitySubtitle},OB=function(){return Wo()?(G==null?void 0:G())||Vr()&&!(l==null?0:l()):(G==null?void 0:G())||Vr()},yr=function(){var kS=_.TF("SBOX_SETTINGS");
return C9()&&!(kS==null?0:kS.HIDE_REMOVE_LINK)},Rl=function(){return BLV(V(),{useEntityName:lZ()})},w2,jG=!((w2=_.I8().resolve(_.Qt(_.v6)))==null||!w2()),Il=function(){return C9()?_.y("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},Bu=function(){return z==null?void 0:z().SUGGESTION_DISMISS_LABEL},vu=function(){return z==null?void 0:z().SUGGESTION_DISMISSED_LABEL};
C=_.u(_.yH(!1,void 0,"WMms1e"));w2=C.next().value;var Zr=C.next().value;C=_.u(_.yH(!1,void 0,"PyL0t"));var k_=C.next().value,$i=C.next().value,Vr=k_,Um=_.CZ(function(){Q(c.value.innerText);return!1}),V8=_.CZ(function(kS){kS.preventDefault();
return!1}),Hu=_.CZ(function(kS){var HV=V().text,r9=_.TF("SBOX_SETTINGS"),BV="https://"+(r9.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
BV+="&delq="+encodeURIComponent(HV);(HV=r9==null?void 0:r9.PSUGGEST_TOKEN)&&(BV+="&tok="+HV);(r9=r9==null?void 0:r9.SESSION_INDEX)&&(BV+="&authuser="+r9);F(BV);kS.preventDefault();(kS=_.ZQ())&&S&&_.dh(kS,S,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");E(t==null?void 0:t());return!1}),Gh=_.CZ(function(){if(Wo()&&(l==null?0:l()))return!1;
$i(!0);b(!0);return!1}),hW=_.CZ(function(){$i(!1);
b(!1);return!1}),YS=_.CZ(function(){T(!0);
return!1}),Em=_.CZ(function(){T(!1);
return!1}),Qr=_.CZ(function(kS){kS.preventDefault();
if(V().entityThumbnailAttributionUrl){var HV=V().entityThumbnailAttributionUrl;kS=V().entityName;var r9={dismissDialogEndpoint:{}};HV={commandExecutorCommand:{commands:[r9,{urlEndpoint:{url:HV,target:"TARGET_NEW_WINDOW"},commandMetadata:{webCommandMetadata:{url:HV}}}]}};r9={buttonViewModel:{title:_.iQ("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:r9}}};HV={buttonViewModel:{title:_.iQ("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),
style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:HV}}};kS={dialogHeaderViewModel:{headline:{content:kS!=null?kS:_.iQ("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var BV={basicContentViewModel:{paragraphs:[{text:{content:_.iQ("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};kS={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:kS,footer:{panelFooterViewModel:{primaryButton:HV,
secondaryButton:r9,shouldHideDivider:!0}},content:BV}}}}};_.I8().resolve(_.WD).resolveCommand(kS)}return!1});
C=_.u(_.yH("",void 0,"yG5Sx"));var FM=C.next().value,ow=C.next().value;_.s0(function(){yr()&&ow(k==null?void 0:k(t==null?void 0:t()));f.value&&_.ud(12453,f.value,N,function(kS){N=kS})});
return _.W(_.a,{cond:w2,then:function(){var kS={};return _.W("div",{class:_.py("ytSuggestionComponentRemovedText",(kS.ytSuggestionComponentLargerRemovedText=function(){return ki()},kS)),
style:function(){return EB()>0?"height: "+EB()+"px;":""},
role:"button"},vu)},
else:function(){var kS={},HV={};return _.W("div",{class:_.py("ytSuggestionComponentSuggestion",(kS.ytSuggestionComponentSuggestionHover=function(){return!Wo()},kS.ytSuggestionComponentHighlighted=OB,kS.ytSuggestionComponentPersonalizedSuggestion=C9,kS.ytSuggestionComponentMweb=!1,kS.ytSuggestionComponentLargerSuggestion=function(){return L9()||ki()},kS.ytSuggestionComponentThumbnailSuggestion=function(){return ki()},kS.ytSuggestionComponentRoundedSuggestion=function(){return _.y("desktop_enable_scrollable_suggestions_panel")&&
_.y("desktop_enable_suggestions_panel_padding")},kS.ytSuggestionComponentThumbnailPadding=function(){return ki()&&!C9()},kS)),
style:function(){return EB()>0?"height: "+EB()+"px;":""},
role:"presentation","on:mousedown":r,"on:mouseover":Gh,"on:mouseout":hW,el:f},_.W("div",{class:_.py("ytSuggestionComponentText",(HV.ytSuggestionComponentScrollMargin=H,HV)),"aria-label":function(){return L9()?V().text+" "+Grr:V().text},
id:function(){return k==null?void 0:k(t==null?void 0:t())},
"on:mousedown":r,role:"option"},_.W(_.a,{cond:function(){return V().type!==33},
then:function(){return _.W(_.i5,{icon:Il,className:"ytSuggestionComponentIcon"})}}),_.W("div",{class:"ytSuggestionComponentLeftContainer"},_.W("span",{el:c,
role:"button",tabindex:0},_.W(_.Ag,{each:Rl},function(r9){return r9.bold?_.W("span",{class:"ytSuggestionComponentBold"},r9.text):_.W("span",null,r9.text)})),_.W(_.a,{cond:function(){return lZ()&&!!V().entitySubtitle||L9()},
then:function(){return _.W("div",{class:"ytSuggestionComponentMetadataContainer"},_.W(_.a,{cond:function(){return lZ()&&!!V().entitySubtitle},
then:function(){return _.W("div",{class:"ytSuggestionComponentEntitySubtitle"},eq)}}),_.W(_.a,{cond:function(){return L9()},
then:function(){return _.W("div",{class:"ytSuggestionComponentNewVideoContainer"},_.W("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.W("div",{class:"ytSuggestionComponentNewVideoText"},Grr))}}))}}))),_.W("div",{class:"ytSuggestionComponentRightContainer"},_.W(_.a,{cond:function(){return ki()&&V().visualSuggestUrl!==void 0},
then:function(){var r9={};return _.W("div",{class:"ytSuggestionComponentThumbnailContainer"},_.W("img",{"aria-label":VOW,class:_.py("ytSuggestionComponentVisualSuggestThumbnail",(r9.ytSuggestionComponentCircularFrame=function(){return lZ()&&V().subtypes.includes(790)},r9.ytSuggestionComponentEntitySuggestThumbnail=function(){return lZ()},r9)),
src:function(){return V().visualSuggestUrl}}),_.W(_.a,{cond:function(){return lZ()&&!!V().entityThumbnailAttributionUrl},
then:function(){var BV={};return _.W("span",{title:ijL,role:"tooltip"},_.W("div",{"on:mouseover":YS,"on:mouseout":Em,"on:mousedown":Qr,class:_.py("ytSuggestionComponentThumbnailOverlay",(BV.ytSuggestionComponentThumbnailOverlayHidden=function(){return!A()},BV))},_.W(_.i5,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.W(_.e_,null,_.W(_.hg,{when:function(){return ki()&&yr()}},function(){var r9={};
return _.W("button",{class:_.py("ytSuggestionComponentRemoveLinkClearButton",(r9.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return FM()&&FM()===(U==null?void 0:U())},r9.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!OB()},r9)),
el:g,"on:mousedown":Hu,"aria-label":Bu,id:function(){return FM()}},_.W(_.i5,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.W(_.hg,{when:function(){return!(ki()&&V().visualSuggestUrl!==void 0)&&yr()}},function(){var r9={};
return _.W("a",{class:_.py("ytSuggestionComponentRemoveLink",(r9.ytSuggestionComponentRemoveLinkDark=jG,r9.ytSuggestionComponentRemoveLinkSelected=function(){return FM()&&FM()===(U==null?void 0:U())},r9)),
el:P,"on:mousedown":Hu,"aria-label":Bu,tabindex:0,role:"button",id:function(){return FM()}},Bu)}),_.W(_.hg,{when:function(){return!1}},function(){return _.W("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":Um,"on:mousedown":V8,role:"button","aria-label":FGs},_.W(_.i5,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"lj");var $Ix=_.h6(["//www.google.com/textinputassistant/","/","_tia.js"]),bjW=_.d(function(){return _.W("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.W("button",{class:"ytdTextInputAssistantButton","on:click":_.CZ(function(){cxx().inputMethodsTracker.add(3);var C,F=(C=_.TF("SBOX_SETTINGS"))==null?void 0:C.REQUEST_LANGUAGE;if(F)return _.LX(_.kf($Ix,14,F)),!1})},_.W("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"mj");var noW=function(){this.cache=new Map},ugx=function(C){for(var F=_.u(C.cache.entries()),G=F.next();!G.done;G=F.next()){var V=_.u(G.value);
G=V.next().value;V=V.next().value;V.suggestions.some(function(J){return J.type===35})&&C.cache.delete(G)}};var zfl=_.Oy.SEARCH,QUV=_.Oy.SEARCH_CLEAR_LABEL,IGr=new _.jh("FAKE_SUGGEST_RESPONSE");_.gQ(_.d(function(C){function F(){YS||(YS=setTimeout(function(){Qr()},1E3))}
function G(Om,No,dW){if(Om.trim()){hW=Om;_.Yn("REFINEMENTS_TUPLE",void 0);Hu=!0;var UL;No=d6W(k_,No);var al=(UL=C.searchEndpoint)==null?void 0:UL.call(C);_.i2M(Om,No,al,Il.value.value,dW,window.location.pathname.startsWith("/shorts"));Qr();Il.value.value=Om;Il.value.blur();k_.reset()}}
function V(Om){return _.I(function(No){return No.return(new Promise(function(dW){var UL=new XMLHttpRequest;UL.open("GET",Zz3(Om),!0);UL.withCredentials=!0;var al=_.TF("SBOX_SETTINGS");(al==null?0:al.SEND_VISITOR_DATA)&&UL.setRequestHeader("X-Goog-Visitor-Id",al==null?void 0:al.VISITOR_DATA);UL.onload=function(){dW(UL.responseText)};
UL.onerror=function(){_.Yw(Error("Kl"));dW(null)};
setTimeout(function(){UL.abort()},1E4);
UL.send(null)}))})}
function J(Om){var No,dW,UL,al;return _.I(function(Sy){switch(Sy.nextAddress){case 1:return No={credentials:"include",headers:yxM()},window.AbortController&&(dW=new AbortController,setTimeout(function(){dW.abort("ytsbox-suggest-timeout")},1E4),No.signal=dW.signal),_.yy(Sy,2),Sy.yield(fetch(Zz3(Om),No),4);
case 4:UL=Sy.yieldResult.text();_.Gn(Sy,3);break;case 2:return al=_.wa(Sy),al!=="ytsbox-abort-last"&&al!=="ytsbox-suggest-timeout"&&_.Yw(al),Sy.return(null);case 3:return Sy.return(UL)}})}
function b(Om){var No,dW,UL;return _.I(function(al){switch(al.nextAddress){case 1:if(No=_.I8().resolve(_.Qt(IGr)))return al.return(No);dW=Date.now();F();return _.y("yt_searchbox_xhr")?al.yield(V(Om),5):al.yield(J(Om),4);case 4:UL=al.yieldResult;al.jumpTo(3);break;case 5:UL=al.yieldResult;case 3:if(UL){YS&&(clearTimeout(YS),YS=null);var Sy=k_,eE=dW,xl=Om.query.length===0;eE=Date.now()-eE;xl?Sy.zeroPrefixRoundTripTime=eE:(Sy.JSC$20929_totalRoundTripTime+=eE,Sy.maxRoundTripTime=Math.max(Sy.maxRoundTripTime,
eE),xl=Math.floor(eE/100),xl>=x6r.length?++Sy.roundTripTimeHistogram[9]:++Sy.roundTripTimeHistogram[x6r[xl]])}return al.return(UL)}})}
function z(Om){var No,dW,UL;return _.I(function(al){if(al.nextAddress==1)return(No=Zr.cache.get(llW(Om)))?al.return(No):al.yield(b(Om),2);dW=al.yieldResult;if(dW===null)return al.return(null);UL=new v3l(dW);Om.query.length===0&&UL.suggestions.length===0||Zr.cache.set(llW(Om),UL);return al.return(UL)})}
function Q(Om){var No,dW;return _.I(function(UL){if(UL.nextAddress==1){Gh=!1;var al=hW;al=_.HoW()==="search"?(_.Da(location.href,"search_query")||_.Da(location.href,"q"))===al:!1;No=new Hzl(Om,al?hW:null);return UL.yield(z(No),2)}dW=UL.yieldResult;if(dW===null)return UL.return();No.query.length===0&&(k_.zeroPrefixSuggestionCount=dW.suggestions.length);if(No.id<=Em)return k_.outOfSyncResponseCount++,UL.return();if(document.activeElement!==Il.value)return UL.return();Em=No.id;var Sy=k_,eE=dW.rawResponse[2]||
{};Sy.experimentTriggeredBeforeFinal||(Sy.experimentTriggeredBeforeFinal=Sy.experimentTriggeredFinal);Sy.experimentTriggeredFinal=!!eE.e;k_.updateSuggestions(dW.suggestions);f(-1);yr([]);dW.suggestions!==l()&&A2(dW.suggestions.length);N(dW.suggestions);Wo(dW.suggestions.length>0&&dW.suggestions[0].type===33);vu&&(vu.hidden=dW.suggestions.length===0,C9()?(vu.style.minWidth="",Sy=vu.style,eE=(al=l()[0])==null?void 0:al.ignoredPrefix,Sy.marginLeft=(eE?Math.min(eE.length*6,Bu.value.offsetWidth):0).toString()+
"px"):(vu.style.minWidth=Bu.value.offsetWidth+"px",vu.style.marginLeft="0"),li());_.S9(UL)})}
function E(){if(!Hu)return!1;var Om=_.TF("REFINEMENTS_TUPLE");return Om?(Om=Om[1].map(function(No,dW){return new SPx([No,0,[71]],Il.value.value,dW)}),l()!==Om&&A2(Om.length),yr([]),N(Om),k_.updateSuggestions(Om),Hu=!1,vu.hidden=Om.length===0,Gh=Om.length>0,!0):!1}
function t(){var Om=Il.value.value;(typeof Om==="string"||Om instanceof String)&&Om!==""?P(!0):P(!1)}
function k(){if(_.HoW()==="search"){var Om=window.location.href;try{var No=_.Da(Om,"search_query")||_.Da(Om,"q")||""}catch(dW){No=""}No&&(Il.value.value=No,P(!0))}}
var U=_.u(_.yH([],void 0,"YqWjzb")),H=U.next().value;U=U.next().value;var l=H,N=U;H=_.u(_.yH(-1,void 0,"hiyF4d"));var S=H.next().value,f=H.next().value;H=_.u(_.yH(-1,void 0,"SUGY4b"));var c=H.next().value,A=H.next().value;H=_.u(_.yH(!1,void 0,"ozgCGe"));var T=H.next().value,P=H.next().value;H=_.u(_.yH(!1,void 0,"fb0dKe"));var g=H.next().value,r=H.next().value;U=_.u(_.yH(!1,void 0,"KkbNee"));H=U.next().value;U=U.next().value;var C9=H,Wo=U;U=_.u(_.yH(!1,void 0,"b5D7E"));H=U.next().value;var EB=U.next().value;
U=_.u(_.yH(!1,void 0,"UrhqVc"));var L9=U.next().value,ki=U.next().value;U=_.u(_.yH(1,void 0,"zwJX4d"));var lZ=U.next().value,eq=U.next().value;U=_.u(_.yH([],void 0,"HryHu"));var OB=U.next().value,yr=U.next().value;U=_.u(_.yH(!1,void 0,"Imfa3e"));var Rl=U.next().value,w2=U.next().value;U=_.y("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var jG=_.Jt("yt-searchbox"),Il=_.Jt("input"),Bu=_.Jt("div"),vu,Zr=
new noW,k_=cxx(),$i=_.I8().resolve(_.Qt(_.v6)),Vr=function(){var Om;return((Om=C.forceDarkMode)==null?void 0:Om.call(C))||!($i==null||!$i())},Um=function(){return _.y("desktop_enable_scrollable_suggestions_panel")},V8="i"+jUU++,Hu=!1,Gh=!1,hW="",YS=null,Em=-1,Qr=function(){yr([]);
N([]);Wo(!1);vu&&(vu.hidden=!0);YS&&(clearTimeout(YS),YS=null);f(-1)},FM=function(Om,No){Om.preventDefault();
w2(!0);vu&&(vu.hidden=!1);var dW=S();Om=l();var UL=OB();No=JiV(No);dW+=No;for(dW>=Om.length?dW=-1:dW<-1&&(dW=Om.length-1);dW!==-1&&(UL.includes(dW)||dW>=Om.length||dW<0);)dW+=No,dW>=Om.length&&(dW=-1);f(dW);S()>=0&&(Il.value.value=l()[S()].text,A(0),t(),Om=S(),UL=c(),(UL=document.getElementById(jo[Om][UL]))&&Um()&&(Om===l().length-1?vu.scrollTop=vu.scrollHeight:UL.scrollIntoView({block:"nearest",inline:"start"})))},ow=_.CZ(function(Om){if(!(Om.relatedTarget instanceof Element&&Om.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){r(!0);
var No;(No=C.focusCallback)==null||No.call(C,!0);E()||(Gh?vu.hidden=!1:(_.oo(jG.value,"yt-autonav-pause-focus",{}),Q(Om.target.value)))}}),kS=_.CZ(function(Om){if(!(Om.relatedTarget instanceof Element&&Om.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){r(!1);
var No;(No=C.focusCallback)==null||No.call(C,!1);vu.scrollTop=0;vu.hidden=!0;_.oo(jG.value,"yt-autonav-pause-blur",{})}}),HV=function(Om){Om=JiV(Om);
var No;((No=jo[S()])==null?0:No[c()+Om])&&A(c()+Om)},r9=_.CZ(function(Om){var No=Om.target;
switch(Om.keyCode){case 13:Om.preventDefault();var dW;if((dW=jo[S()])==null?0:dW[c()]){var UL;(UL=document.getElementById(jo[S()][c()]))==null||UL.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}Om=Om.shiftKey?4:3;dW=k_;UL=S();dW.selectedSuggestionIndex=UL;G(No.value,Om);break;case 27:vu&&(vu.hidden=!0);break;case 40:FM(Om,40);break;case 38:FM(Om,38);break;case 39:HV(39);break;case 37:HV(37);break;case 229:k_.inputMethodsTracker.add(4);break;default:k_.inputMethodsTracker.add(1),
AxU(k_)}return!1}),BV=_.CZ(function(Om){Q(Om.target.value);
t();Um()&&vu&&(vu.scrollTop=0);return!1}),qa=_.CZ(function(){k_.inputMethodsTracker.add(2);
AxU(k_);return!1});
_.s0(function(){if(vu){k_.reset();if(window.ResizeObserver){var Om=new ResizeObserver(function(){C9()||(vu.style.minWidth=Bu.value.offsetWidth+"px")});
Om.observe(Bu.value);(new ResizeObserver(function(){li()})).observe(vu);
_.q0(function(){Om.disconnect()})}k();
window.addEventListener("yt-navigate-finish",k);window.addEventListener("yt-focus-searchbox",function(){Il.value.focus()});
var No;EB((No=_.TF("SBOX_SETTINGS"))==null?void 0:No.HAS_ON_SCREEN_KEYBOARD)}else _.gD(new _.Ay("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var mh=_.CZ(function(Om){Om.preventDefault();G(Il.value.value,12);return!1}),nA=_.CZ(function(Om){Om.preventDefault();
var No,dW;(No=Il)==null||(dW=No.value)==null||dW.focus();var UL,al;((UL=Il)==null?void 0:(al=UL.value)==null?void 0:al.value)!==""&&(Il.value.value="",Il.value.dispatchEvent(new Event("input")));return!1}),pP=_.CZ(function(){var Om=JM_(Il.value.value,l().filter(function(No){return No.type!==35}).map(function(No){return{label:No.text}}));
_.rz(jG.value,"yt-open-popup-action",[{openPopupAction:Om},document.body]);return!1}),XM=_.CZ(function(){Il.value.focus();
return!1}),is=function(Om,No,dW,UL,al){k_.selectedSuggestionIndex=dW;
G(No,al?3:1,UL)},nf=function(Om){Il.value.value=Om;
Il.value.dispatchEvent(new Event("input"));k_.inputMethodsTracker.add(5);AxU(k_,!0)},jo=[[]],oR=function(Om){var No="searchbox-suggestion"+_.ve(_.Y1);
jo[Om].push(No);return No},A2=function(Om){if(l()){jo=[[]];
for(var No=0;No<Om;No++)jo.push([])}},li=function(){if(Um()){var Om=vu,No=Om.scrollTop;
Om=Om.scrollHeight-Om.clientHeight;ki(No>=Om);No=Math.abs(Om-No);No<=40?eq(1-(40-No)/40):eq(1)}},HS=function(){return"opacity: "+lZ()*100+"%"},Sq=_.CZ(function(){li();
return!1}),xi=_.CZ(function(){w2(!1);
return!1}),Yi,Zu={},ls={},Bh={},vV={};
return _.W("yt-searchbox",{class:_.py("ytSearchboxComponentHost",(Zu.ytSearchboxComponentMweb=!1,Zu.ytSearchboxComponentDesktop=!0,Zu["yt-searchbox-filled-query"]=function(){return T()},Zu["ytd-masthead"]=function(){return!g()},Zu.ytSearchboxComponentHostDark=Vr,Zu)),
role:"search",el:jG,"client-ve-type":10349},_.W("div",{el:Bu,"on:click":XM,class:_.py("ytSearchboxComponentInputBox",(ls.ytSearchboxComponentInputBoxDark=Vr,ls.ytSearchboxComponentInputBoxHasFocus=g,ls))},_.W("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":mh},_.W(_.a,{cond:g,then:function(){return _.W("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.W(_.i5,{icon:"SEARCH"}))}}),_.W("input",{el:Il,
class:_.py("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":V8,"aria-expanded":!((Yi=vu)==null?0:Yi.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":kS,"on:focus":ow,"on:input":BV,"on:keydown":r9,"on:paste":qa,placeholder:C.placeholderText,"aria-activedescendant":function(){var Om;return(Om=jo[S()])==null?void 0:Om[c()]},
"aria-autocomplete":"list",role:"combobox"})),_.W(_.a,{cond:H,then:function(){return _.W("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.W(bjW,null))}}),_.W(_.a,{cond:T,
then:function(){return _.W("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.W("button",{class:"ytSearchboxComponentClearButton","on:click":nA,"aria-label":C.clearButtonAriaLabel||QUV},_.W(_.i5,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.W(_.QR,{model:{}})))}})),_.W("button",{class:_.py("ytSearchboxComponentSearchButton",(Bh.ytSearchboxComponentSearchButtonDark=Vr,Bh)),
"on:click":mh,"aria-label":zfl,title:C.placeholderText},_.W(_.i5,{icon:"SEARCH"})),_.W(_.a,{cond:function(){if(Bpt()&&_.y("mweb_voice_search")&&C.voiceSearchButton)return C.voiceSearchButton()},
then:function(Om){var No={};return _.W("div",{class:_.py("ytSearchboxComponentVoiceSearchWrapper",(No.ytSearchboxComponentHideVoiceSearchButton=function(){return T()},No))},_.W(_.uC,{data:Om},{buttonRenderer:function(dW){return _.W(_.JZ,{data:dW.data,
onButtonClickCallback:function(){}})}}))}}),_.W("div",{el:_.dQ(function(Om){return void(vu=Om)}),
id:V8,class:_.py("ytSearchboxComponentSuggestionsContainer",(vV.ytSearchboxComponentSuggestionsContainerDark=Vr,vV["yt-searchbox-suggestions-container"]=!1,vV.ytSearchboxComponentSuggestionsContainerScrollable=Um(),vV.ytSearchboxComponentSuggestionsContainerAnimated=U,vV)),"on:scroll":Sq,"on:mousemove":xi,role:"listbox",hidden:!0},_.W(_.Ag,{each:l},function(Om,No){return _.W(Jer,{suggestion:Om,isHighlighted:function(){return No()===S()},
onClickCallback:is,onHoverUpdateCallback:function(dW){if(_.y("desktop_enable_single_suggestion_highlight")){var UL=No();dW&&(A(0),f(UL))}},
onRemoveCallback:function(dW){ugx(Zr);dW===void 0||dW<0||OB().includes(dW)||yr([].concat(_.da(OB()),[dW]))},
labels:C.labels,queryBuilderFunction:nf,suggestionIndex:No,generateUniqueId:oR,highlightedId:function(){var dW;return(dW=jo[S()])==null?void 0:dW[c()]},
useScrollMargin:Um(),isKeyboardMode:Rl})}),_.W(_.a,{cond:function(){return!C9()&&l().find(function(Om){return Om.type!==35})&&_.y("searchbox_reporting")},
then:function(){return _.W("button",{class:"ytSearchboxComponentReportButton","on:mousedown":pP},_.iQ("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.W(_.a,{cond:function(){return!L9()&&Um()},
then:function(){return _.W("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.W("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:HS}))}})))},"oj"),"yt-searchbox",{props:{searchEndpoint:_.CJ,
placeholderText:_.CJ,labels:_.CJ,voiceSearchButton:_.CJ,focusCallback:_.s9,clearButtonAriaLabel:_.CJ,forceDarkMode:_.CJ}});var $4=function(){var C=_.B.apply(this,arguments)||this;C.menuButtonTargetId="topbar-guide-menu";C.narrow=!1;C.menuStrings={BACK_ALT_LABEL:_.iQ("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.iQ("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.iQ("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.iQ("SBOX_PLACEHOLDER",void 0,"Search")};C.pageDarkTheme=document.documentElement.hasAttribute("dark");C.watchPageScrollTop=0;C.theater=!1;C.fullscreen=!1;C.disableFrostedGlassDuringViewTransition=
!1;C.desktopUnifiedSearchPanelMode=_.y("desktop_enable_unified_search_panel");C.cinematicTheaterMode=_.y("web_cinematic_theater_mode");C.aiCompanionEnabled=_.y("enable_ai_companion");C.ytSearchboxFocused=!1;C.searchboxLabels=_.TF("SBOX_LABELS");C.topbarIsAboveChipbar=!1;C.isDarkThemeForced=!1;C.areGhostCardsHidden=!1;C.guideKeyboardToggle=!1;C.voiceSearchManager=E18();C.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};C.setYtSearchboxFocused=
function(F){C.ytSearchboxFocused=F};
C.toggleFrostedGlassDuringViewTransition=function(F){C.disableFrostedGlassDuringViewTransition=F};
return C};
_.O($4,_.B);_.n=$4.prototype;_.n.computeSimpleText=function(C){return _.dd(C)};
_.n.onDarkChanged=function(){for(var C=_.u(this.buttons||[]),F=C.next();!F.done;F=C.next())F.value.isOverlay=!!this.dark;C=_.u(this.buttonRenderers||[]);for(F=C.next();!F.done;F=C.next())F.value.overrides=this.computeButtonOverride()};
_.n.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.n.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.aiCompanionButton":{id:"ai-companion-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},
"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}},notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},
initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.n.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var C=_.iM(_.Vc(),"aa");_.pd(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||C||(this.isDarkThemeForced=this.dark=!0);this.logoType?(C=this.hostElement.querySelector("#masthead-logo"))&&(_.y("polymer_on_demand_shady_dom")?C.setAttribute("slot","masthead-logo-old"):_.So(C)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.Gp(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.Gp(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.n.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.Gp(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.Gp(this,this.onSetTheaterModeEnabled))};
_.n.dataChanged=function(){var C=this.data;C&&(this.voiceEnabled=C.voiceSearchButton?E18().isSupported():!1,_.k8o(_.w6(),this.menuButtonTargetId,this.guideButton),C.onReceivedActions&&C.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.pX(this.hostElement,C.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&C&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.pd(this.hostElement,"dark",!1),_.pd(this.hostElement,"theater",!1),
(C=this.hostElement.querySelector("#masthead-logo"))&&(_.y("polymer_on_demand_shady_dom")?C.setAttribute("slot","masthead-logo-old"):_.So(C))))};
_.n.computeCenterHidden=function(){var C;return this.data&&!((C=this.data.searchbox)==null?0:C.fusionSearchboxRenderer)};
_.n.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.pd(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.n.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.n.onWatchScroll=function(C){this.watchPageScrollTop=C.detail||0;this.updateMastheadBackgroundOpacity()};
_.n.onFullscreenChangeAction=function(C){C||(this.watchPageScrollTop=0);this.fullscreen=C;this.updateMastheadBackgroundOpacity()};
_.n.onSetTheaterModeEnabled=function(C){this.theater=C.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.n.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.n.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.n.setBackgroundOpacity=function(C){C=this.calculateBackgroundOpacity(C);this.background.style.opacity=""+C};
_.n.calculateBackgroundOpacity=function(C){var F=this.theater&&this.cinematicTheaterMode?.6:0,G=this.hostElement.clientHeight/2;return Math.min(Math.max(C,0),G)/G*(1-F)+F};
_.n.shouldShowCinematicMastHead=function(){var C=_.y("kevlar_watch_grid")&&!_.y("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(C||this.pageDarkTheme)};
_.n.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.n.focusGuide=function(){this.guideButton.focus()};
_.n.onGuideToggleTap=function(){_.oo(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.n.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.n.onGuideToggleHover=function(){_.oo(this.hostElement,"yt-guide-hover")};
_.n.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.n.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.n.closeOnOutsideClickCondition=function(C){for(C=_.AR(C);C[0];){var F=C.shift();if(F instanceof Element&&F.id==="kbd")return!1}return!0};
_.n.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.n.pausePlayer=function(){var C;(C=_.gE())==null||C.pause();this.pauseMiniplayer()};
_.n.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var C;(C=_.I8().resolve(_.Od).getPlayerElement())==null||C.pause()}};
_.n.isMiniplayerActive=function(){return _.I8().resolve(_.Od).isMiniplayerActive()};
_.n.updateNarrowFromBinding=function(C){this.narrow=C.detail.value};
_.n.onYtSendFeedbackAction=function(){_.rz(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.n.registerWithViewTransitionManager=function(){Ll_(_.I8().resolve(_.vq),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.I6.Object.defineProperties($4.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.y("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
shouldShowAiCompanionButton:{configurable:!0,enumerable:!0,get:function(){var C;return!!(this.aiCompanionEnabled&&((C=this.data)==null?0:C.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var C;return(C=this.data)==null?void 0:C.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
$4.prototype.narrowChanged=$4.prototype.narrowChanged;$4.prototype.onWatchPageChange=$4.prototype.onWatchPageChange;$4.prototype.onRendererStamperFinished=$4.prototype.onRendererStamperFinished;$4.prototype.dataChanged=$4.prototype.dataChanged;$4.prototype.onDarkChanged=$4.prototype.onDarkChanged;_.R([_.w(_.AY),_.Y("design:type",Object)],$4.prototype,"ironResizableBehavior",void 0);_.R([_.w(_.XrL),_.Y("design:type",Object)],$4.prototype,"ytdExpandableInputBehavior",void 0);
_.R([_.w(_.DL.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],$4.prototype,"ytdGuideStateAwareBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],$4.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],$4.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],$4.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],$4.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.Rr),_.Y("design:type",Object)],$4.prototype,"ytdReduxBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],$4.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],$4.prototype,"narrow",void 0);_.R([_.L(),_.Y("design:type",Object)],$4.prototype,"logoType",void 0);_.R([_.L(),_.Y("design:type",Boolean)],$4.prototype,"voiceEnabled",void 0);
_.R([_.L(),_.Y("design:type",Object)],$4.prototype,"menuStrings",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],$4.prototype,"dark",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],$4.prototype,"pageDarkTheme",void 0);_.R([_.L(),_.Y("design:type",Object)],$4.prototype,"watchPageScrollTop",void 0);_.R([_.L({reflectToAttribute:!0,selector:_.LPo}),_.Y("design:type",Boolean)],$4.prototype,"isWatchPage",void 0);
_.R([_.L({reflectToAttribute:!0,selector:_.BqI}),_.Y("design:type",Boolean)],$4.prototype,"isShortsPage",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],$4.prototype,"theater",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],$4.prototype,"fullscreen",void 0);_.R([_.L({reflectToAttribute:!0,selector:_.cSi}),_.Y("design:type",String)],$4.prototype,"frostedGlassMode",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],$4.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],$4.prototype,"aiCompanionEnabled",void 0);_.R([_.L(),_.Y("design:type",Object)],$4.prototype,"ytSearchboxFocused",void 0);_.R([_.bP("#buttons > *"),_.Y("design:type",Array)],$4.prototype,"buttons",void 0);_.R([_.bP("ytd-button-renderer"),_.Y("design:type",Array)],$4.prototype,"buttonRenderers",void 0);
_.R([_.$z("#background"),_.Y("design:type",HTMLDivElement)],$4.prototype,"background",void 0);_.R([_.$z("#guide-button"),_.Y("design:type",Object)],$4.prototype,"guideButton",void 0);_.R([_.$z("#logo"),_.Y("design:type",Object)],$4.prototype,"logo",void 0);_.R([_.L({computed:"computeButtonOverride(dark)"}),_.Y("design:type",Object)],$4.prototype,"buttonOverrides",void 0);
_.R([_.zp("dark"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$4.prototype,"onDarkChanged",null);_.R([_.L({value:function(){return this.onVoiceTap.bind(this)}}),
_.Y("design:type",Function)],$4.prototype,"boundOnTapVoiceButton",void 0);_.R([_.L(),_.Y("design:type",Object)],$4.prototype,"topbarIsAboveChipbar",void 0);_.R([_.L(),_.Y("design:type",String),_.Y("design:paramtypes",[])],$4.prototype,"guideIcon",null);_.R([_.M("voiceEnabled"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],$4.prototype,"shouldShowVoiceSearchButton",null);
_.R([_.M("data.aiCompanionButton","aiCompanionEnabled"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],$4.prototype,"shouldShowAiCompanionButton",null);_.R([_.M("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],$4.prototype,"voiceSearchButton",null);_.R([_.M("aiCompanionEnabled"),_.Y("design:type",String),_.Y("design:paramtypes",[])],$4.prototype,"narrowQuery",null);
_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$4.prototype,"dataChanged",null);_.R([_.VG("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$4.prototype,"onRendererStamperFinished",null);_.R([_.zp("isWatchPage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$4.prototype,"onWatchPageChange",null);
_.R([_.zp("narrow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$4.prototype,"narrowChanged",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-masthead"})],$4);
_.q($4,"ytd-masthead",function(){if(D6s!==void 0)return D6s;var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[narrowQuery]]" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n    <div id="ai-companion-button" hidden="[[!shouldShowAiCompanionButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return D6s=C},{mode:_.oN("kevlar_poly_si_batch_j036")?1:2});var Eo3;var WGl={},tOV={},aGr={},krV={},UIV=(krV.OFFLINE=(WGl["publicytnetworkstatus-online"]="BACK_ONLINE",WGl),krV.ONLINE=(tOV["publicytnetworkstatus-offline"]="OFFLINE",tOV),krV.BACK_ONLINE=(aGr["publicytnetworkstatus-offline"]="OFFLINE",aGr.TIMER_TRIGGER="ONLINE",aGr),krV),bB=function(){var C=_.B.apply(this,arguments)||this;C.currentState="ONLINE";C.scheduledJobId=0;C.bannerString="";C.bannerVe=null;C.networkStatusManagerInstance=new _.FP;return C};
_.O(bB,_.B);_.n=bB.prototype;_.n.attached=function(){var C=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){C.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){C.stateChangeHandler("publicytnetworkstatus-offline")})};
_.n.detached=function(){var C=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){C.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){C.stateChangeHandler("publicytnetworkstatus-offline")})};
_.n.enterState=function(C){var F=this;this.scheduledJobId&&_.gT.cancelJob(this.scheduledJobId);C==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):C==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.iQ("NO_INTERNET_CONNECTION",void 0,"No internet connection")):C==="BACK_ONLINE"&&(this.bannerString=_.iQ("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.c8(_.gT,function(){F.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=C};
_.n.stateChangeHandler=function(C){(C=UIV[this.currentState][C])&&this.enterState(C)};
_.n.logVisibility=function(C){var F=_.ZQ();this.createBannerVe(C);F&&this.bannerVe&&(C?_.cA(F,[this.bannerVe]):_.A3(F,[this.bannerVe]))};
_.n.createBannerVe=function(C){!this.bannerVe&&C&&(this.bannerVe=_.m2(37929),_.Xu(_.ia(),this.bannerVe))};
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",String)],bB.prototype,"currentState",void 0);_.R([_.L(),_.Y("design:type",Object)],bB.prototype,"scheduledJobId",void 0);_.R([_.L(),_.Y("design:type",Object)],bB.prototype,"bannerString",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-network-status-banner"})],bB);
_.q(bB,"ytd-network-status-banner",function(){if(Eo3!==void 0)return Eo3;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return Eo3=
C},{mode:1});var Hjl;var nM=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};C.hidden=!0;C.frostedGlass=_.y("web_frosted_glass");return C};
_.O(nM,_.B);nM.prototype.computeHidden=function(C){return C&&C.status?!1:!0};
nM.prototype.handleUpdatePermissionRoleCommand=function(C){if(C=_.Z(C,_.OJS))if(C=_.Z(C.renderer,_.Nql))this.data=C};
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],nM.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],nM.prototype,"componentBehavior",void 0);_.R([_.L({value:!0,computed:"computeHidden(data)"}),_.Y("design:type",Object)],nM.prototype,"hidden",void 0);_.R([_.L(),_.Y("design:type",Object)],nM.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],nM.prototype,"frostedGlass",void 0);
_.R([_.e({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],nM);
_.q(nM,"ytd-permission-role-bottom-bar-renderer",function(){if(Hjl!==void 0)return Hjl;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return Hjl=C},{mode:1});var lGr;var yel;var $5W={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var uB=function(){return _.B.apply(this,arguments)||this};
_.O(uB,_.B);_.n=uB.prototype;_.n.attached=function(){this.JSC$21046_scroller&&(this.JSC$21046_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21046_scroller.attached&&typeof this.JSC$21046_scroller.attached==="function"&&this.JSC$21046_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.n.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(G){G.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var C=_.ot(this.hostElement);C.querySelector("tp-yt-paper-radio-group").selected="";var F=C.querySelector("#reason-text");F&&(F.value="");C.querySelector("#description-text").value=""}};
_.n.canSubmit=function(C,F){_.oo(this.hostElement,"yt-invalidate-popup-tabbables");return!(C&&F)};
_.n.onCancel=function(){_.rz(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.n.onSubmit=function(){var C=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(b){return b.active}).map(function(b){return b.innerText.trim()}),F=this.hostElement.querySelector("tp-yt-paper-radio-group"),G=F.selectedItem,V=G.name;
G=G.innerText.trim();var J=F.querySelector("#reason-text");F=void 0;J&&(F=J.value);(J=this.descriptionText.value)&&(J=J.trim());b2l(this.data.searchQuery,C,V,G,J,F);_.rz(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.n.sendFormSubmitToast=function(){var C=_.gd(_.iQ("SBOX_INAPPROPRIATE_TOAST"));_.rz(this.hostElement,"yt-open-popup-action",[C,this])};
_.n.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(C){return C.active})};
_.n.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
uB.prototype.onIronSelect=uB.prototype.onIronSelect;uB.prototype.onIronChange=uB.prototype.onIronChange;uB.prototype.dataChanged=uB.prototype.dataChanged;_.R([_.L(),_.Y("design:type",Object)],uB.prototype,"data",void 0);_.R([_.L({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.Y("design:type",Boolean)],uB.prototype,"submitDisabled",void 0);_.R([_.L(),_.Y("design:type",Boolean)],uB.prototype,"suggestionSelected",void 0);
_.R([_.L(),_.Y("design:type",Boolean)],uB.prototype,"catagorySelected",void 0);_.R([_.$z("#scroller"),_.Y("design:type",Object)],uB.prototype,"JSC$21046_scroller",void 0);_.R([_.$z("#description-text"),_.Y("design:type",Object)],uB.prototype,"descriptionText",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uB.prototype,"dataChanged",null);
_.R([_.VG("iron-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uB.prototype,"onIronChange",null);_.R([_.VG("iron-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uB.prototype,"onIronSelect",null);_.R([_.e({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],uB);
_.q(uB,"ytd-search-suggestion-report-dialog",function(){if(yel!==void 0)return yel;var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);return yel=C},{mode:1});var zJ=function(C){var F=C.openPopupAction;var G=C.target;var V=C.container;var J=C.popupContainerConfig;var b=C.getElement;C=C.removeWhenClosed===void 0?!1:C.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=F;this.target=G;this.container=V;this.popupContainerConfig=J;this.getElement=b;this.JSC$21052_popupConfig=this.popupContainerConfig.JSC$20178_popupConfig[this.openPopupAction.popupType];this.rendererName=(F=this.getName())?_.iYo(F,YU8(this.popupContainerConfig,
F)):"";_.y("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=C);this.createPopup()};
zJ.prototype.updatePopup=function(C){this.openPopupAction=C;this.JSC$21052_popupConfig=this.popupContainerConfig.JSC$20178_popupConfig[this.openPopupAction.popupType];ZjM(this);_.y("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
zJ.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var XEh=function(C,F,G){(F=F&&C.JSC$21052_popupConfig.narrowProperties?C.JSC$21052_popupConfig.narrowProperties:C.JSC$21052_popupConfig.properties)&&G!==void 0&&(F.isAriaModal=G);Nxs(C,F);C.isRtl()&&Nxs(C,C.JSC$21052_popupConfig.rtlProperties);Ojl(C)};
zJ.prototype.createPopup=function(){var C=this.JSC$21052_popupConfig.component;if(this.popupContent=wEx(this,this.rendererName)){if(C){this.popup=wEx(this,C);var F=this.popupContent;_.y("web_enable_wrapper_for_cow_component_in_popup")&&(F=document.createElement("div"),F.appendChild(this.popupContent));_.y("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$21052_popupConfig.slotName&&F.setAttribute("slot",this.JSC$21052_popupConfig.slotName);C=this.popup;var G=this.container.tagName.toLowerCase(),
V=_.d7(F);_.CfA(_.s6(C),_.g7(F,G,V));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.y("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.ot(this.container).appendChild(this.popup)}};
var ZjM=function(C){var F,G,V=(F=C.openPopupAction.accessibilityData)==null?void 0:(G=F.accessibilityData)==null?void 0:G.label;V&&(C.popup.ariaLabel=V);var J;((J=C.popupContent.polymerController)!=null?J:C.popupContent).data=(0,_.xf.unsafeClone)(C.openPopupAction.popup[C.getName()]);C.popupContent.duration=MO3(C);C.popupContent.positionType=C.openPopupAction.position;var b=C.openPopupAction.properties;b&&Object.keys(b).forEach(function(z){C.popupContent[z]=b[z]})},Nxs=function(C,F){if(F)for(var G=
_.u(Object.keys(F)),V=G.next();!V.done;V=G.next())V=V.value,C.popup[V]=F[V]},Ojl=function(C){if(C.openPopupAction.position){var F=C.JSC$21052_popupConfig.positionalProperties&&C.JSC$21052_popupConfig.positionalProperties[C.openPopupAction.position],G=C.JSC$21052_popupConfig.rtlPositionalProperties&&C.JSC$21052_popupConfig.rtlPositionalProperties[C.openPopupAction.position];
F=C.isRtl()&&G?G:F;F.shiftedHorizontalOffset&&(G=C.popup.style.display,C.popup.style.display="block",C.popupContent&&C.popup.positionTarget&&C.popupContent.clientWidth>C.popup.positionTarget.clientWidth&&(F.horizontalOffset=C.popup.positionTarget.clientWidth/2-F.shiftedHorizontalOffset),C.popup.style.display=G);Nxs(C,F)}},Ser=function(C,F){if(F)for(var G=_.u(Object.keys(F)),V=G.next();!V.done;V=G.next())V=V.value,C.popup.style[V]=F[V]};
zJ.prototype.getName=function(){return _.gi(this.openPopupAction.popup,"renderer")||_.gi(this.openPopupAction.popup,"dialog")||_.gi(this.openPopupAction.popup,"model")||void 0};
var MO3=function(C){C=C.openPopupAction.durationHintMs;return C===0?C:Math.max(4E3,C||4E3)};
zJ.prototype.isRtl=function(){return _.TF("HTML_DIR")==="rtl"};
var wEx=function(C,F){C=C.getElement(F,C.target);C==null&&_.Yw(new _.Ay("popup getElement returned null",F));return C};var LGr={};
LGr.YtPopupContainerBehavior=[_.Ys.YtComponentBehavior,_.Z7.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.isAriaModal=!1},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.Y6(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.T_(this.hostElement)},
closePopup:function(C){var F=this.createCacheKey(void 0,C);this.popups_[F]&&this.handleClosePopupAction_(void 0,C)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.gT.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.gT.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(C){C.opened&&C.keepBelowPlayer&&this.ensurePopupBelowPlayer(C)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var C in this.popups_){var F=this.popups_[C];if(F.popup.scrollAction==="refit"){var G=F.popup.positionTarget.getBoundingClientRect(),V=F.popup;G=G.top;var J=F;if(!J.naturalHeight){J.popup.hidden=!1;J.popup.style.position="fixed";J.popup.style.top="0px";J.popup.style.left="0px";var b=J.popup.getBoundingClientRect();J.naturalHeight=b.bottom-b.top;J.popup.refit()}V.hidden=!(G>=J.naturalHeight+60);F.popupContent.clientHeight===0&&F.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(C){this.popupContainerConfig=C},
handleOpenPopupAction:function(C,F){var G=C.openPopupAction,V=_.I8().resolve(_.Qt(_.pI))&&G.popupType==="TOAST";V&&!G.uniqueId&&(G.uniqueId=_.wr());if(!_.y("popup_container_parent_target_killswitch")){var J;F=(J=this.getParentTarget(F))!=null?J:F}var b=this.ensurePopup_(G,F);return new _.N1(function(z){b.then(function(Q){if(!Q)return z();this.maybeCreateNarrowMediaQuery_();var E=this.createCacheKey(Q.rendererName,Q.openPopupAction.uniqueId);if(G.showOncePerUniqueId){if(this.shownPopupKeys_.has(E))return z();
this.shownPopupKeys_.add(E)}E=this.popups_[E];var t=!(!E||!E.openPopupAction.beReused);t=!!G.reusePopup||t;if(Q.popup.opened&&!t){V&&!Q.openPopupAction.replacePopup||this.handleClosePopupAction_(Q.rendererName,Q.openPopupAction.uniqueId);t=G.popupType==="DIALOG"&&!_.y("popup_container_dialog_reopen_killswitch");if(!V&&!t&&E&&E.target==F&&!Q.openPopupAction.replacePopup)return z();_.zH(Q.popup,function(){this.completeOpenPopupAction_(G,F,Q);z()}.bind(this))}else Q.popup.opened?Q.updatePopup(G):this.completeOpenPopupAction_(G,
F,Q),z()}.bind(this))}.bind(this))},
getParentTarget:function(C){if(C&&C instanceof HTMLElement)for(var F=_.u(Object.entries(this.popups_)),G=F.next();!G.done;G=F.next())if(G=_.u(G.value),G.next(),G=G.next().value,this.popupClosesOnClick(G)&&G.popup.contains(C))return G.target},
popupClosesOnClick:function(C){return C.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER"].includes(C.rendererName.toUpperCase())},
completeOpenPopupAction_:function(C,F,G){G.updatePopup(C);C=this.narrowMediaQuery_.queryMatches;var V=this.isAriaModal;G.target=F;var J;F=((J=G.target.polymerController)!=null?J:G.target).popupPositionTarget||G.target;G.JSC$21052_popupConfig.targetContainer&&(F=G.container);G.popup.positionTarget=F;G.popupContent.positionTarget=F;Ojl(G);G.JSC$21052_popupConfig.forceFocus&&(G.popupContent.style.outline="none");G.popupContent.tabIndex=-1;G.JSC$21052_popupConfig.narrowProperties&&(G.popup.style.position=
"static");G.JSC$21052_popupConfig.preventAutonav&&G.popup.setAttribute("prevent-autonav",!0);G.JSC$21052_popupConfig.forceCloseOnOutsideClick&&G.popup.setAttribute("force-close-on-outside-click",!0);XEh(G,C,V);Ser(G,G.JSC$21052_popupConfig.styles);G.isRtl()&&Ser(G,G.JSC$21052_popupConfig.rtlStyles);if(!G.openPopupAction.shouldStopParentSignal){var b;J=(b=G.target.polymerController)!=null?b:G.target;(G.popupContent.startForwardingEvents||G.popupContainerConfig.forwardingEnabledPopups.has(G.rendererName))&&
J.parentComponent!==G.popupContent&&G.popupContent!==G.target&&G.target!==document.body&&(G.popupContent.startForwardingEvents?G.popupContent.startForwardingEvents(G.popupContainerConfig.forwardedEvents,G.target):(G.JSC$21052_eventForwarder||(G.JSC$21052_eventForwarder=new _.K3(G.popupContent)),G.JSC$21052_eventForwarder.start(G.popupContainerConfig.forwardedEvents,G.target)))}G=G.popup;G.addEventListener("iron-overlay-opened",_.Gp(this,this.onPopupIronOverlayOpened_));G.addEventListener("iron-overlay-closed",
_.Gp(this,this.onPopupIronOverlayClosed_));G.addEventListener("iron-overlay-canceled",_.Gp(this,this.onPopupIronOverlayCanceled_));G.addEventListener("yt-refit",_.Gp(this,this.refitPopup_));G.addEventListener("yt-invalidate-popup-tabbables",_.Gp(this,this.handleInvalidatePopupTabbables_));G.open()},
getPopupDurationMs_:function(C){return C.durationHintMs===0?C.durationHintMs:Math.max(4E3,C.durationHintMs||4E3)},
handleClosePopupAction_:function(C,F){var G=_.y("web_popup_cache_key_killswitch")||!!F;if(C||G){var V=this.createCacheKey(C,F);C=(C=this.popups_[V])&&C.popup}else C=_.B8o(_.Dw);if(C&&C.close){if(F=_.I8().resolve(_.Qt(_.uc)))C.restoreFocusOnClose=F.isKeyBoardInUse();C.close();this.removePopup_(C,V)}},
handleClosePopupCommand_:function(C){C.closePopupCommand&&C.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,C.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(C){var F={},G;for(G in this.popups_)if(F={key$jscomp$1223:F.key$jscomp$1223},F.key$jscomp$1223=G,!C||!C.some(function(b){return function(z){return z==b.key$jscomp$1223}}(F))){var V=this.popups_[F.key$jscomp$1223],J=V.popup;
_.I8().resolve(_.Qt(_.pI))&&V.openPopupAction.popupType==="TOAST"||(J&&J.close&&J.close(),this.removePopup_(J,F.key$jscomp$1223))}},
handleClosePopupsAction_:function(C){C.forEach(function(F){var G=this.popups_[F];G&&((G=G.popup)&&G.close&&G.close(),this.removePopup_(G,F))}.bind(this))},
handleGetPopupOpenedAction_:function(C,F){return(F=this.createCacheKey(C,F))&&this.popups_[F]?this.popups_[C].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var C=[],F;for(F in this.popups_){var G=this.popups_[F];G.popup.opened&&C.push(G)}return C},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(C,F){_.y("ytpopup_disable_default_html_caching")&&C&&C.removeWhenClosed&&(_.ot(this.hostElement).removeChild(C),F&&this.popups_[F]&&delete this.popups_[F])},
shouldReusePopup_:function(C){return!(!C||!C.reusePopup)||!(!C||!C.beReused)},
ensurePopup_:function(C,F){this.maybeCreateNarrowMediaQuery_();var G=_.gi(C.popup,"renderer")||_.gi(C.popup,"dialog")||_.gi(C.popup,"model");if(!G)return _.mE();G=_.iYo(G,YU8(this.popupContainerConfig,G));return _.mE(this.getAndMaybeCreatePopup_(C,G,F))},
getAndMaybeCreatePopup_:function(C,F,G){var V=this.createCacheKey(F,C.uniqueId);if(this.popups_[V])return this.popups_[V];C=new zJ({openPopupAction:C,target:G,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(F)});return this.popups_[V]=C},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(C){return _.y("ytpopup_disable_default_html_caching")?C&&C.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",_.Gp(this,this.openPopupQueryMatchesChanged_)),_.ot(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(C){C=C.detail.value;for(var F in this.popups_)XEh(this.popups_[F],C)},
onPopupIronOverlayClosed_:function(C){var F=C.currentTarget,G=_.Heq(F);G=G.length>0?G[0]:F;if(G.is!=="ytd-reel-watch-while-dialog-renderer"||C.target.is!=="tp-yt-iron-dropdown"){C.detail.popup=F;C.detail.popupRenderer=G;var V,J={context:{openingElement:((V=this.popups_[(G==null?void 0:G.is)||""])==null?void 0:V.target)||void 0}};Object.assign(J,C.detail);var b;_.oo((b=G.hostElement)!=null?b:G,"yt-popup-closed",J);F.removeEventListener("yt-refit",_.Gp(this,this.refitPopup_));F.removeEventListener("yt-invalidate-popup-tabbables",
_.Gp(this,this.handleInvalidatePopupTabbables_));F.removeEventListener("iron-overlay-canceled",_.Gp(this,this.onPopupIronOverlayCanceled_));F.removeEventListener("iron-overlay-closed",_.Gp(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(F)}},
onPopupIronOverlayCanceled_:function(C,F){var G=C.currentTarget,V=_.Heq(G);V=V.length>0?V[0]:G;if(V.is!=="ytd-reel-watch-while-dialog-renderer"||C.target.is!=="tp-yt-iron-dropdown"){var J;_.oo((J=V.hostElement)!=null?J:V,"yt-popup-canceled",C.detail);J=F?_.AR(F):null;(!F||["click","tap"].includes(F.type))&&!G.hasAttribute("force-close-on-outside-click")&&G.positionTarget&&J&&J.includes(G.positionTarget)&&C.preventDefault();G.restoreFocusOnClose=_.wg.keyboardEventMatchesKeys(F,"esc")}},
onPopupIronOverlayOpened_:function(C){C=C.currentTarget;var F=_.Heq(C);F=F.length>0?F[0]:C;var G,V;_.oo((G=F.hostElement)!=null?G:F,"yt-popup-opened",(V=F.hostElement)!=null?V:F);C.keepBelowPlayer&&(this.ensurePopupBelowPlayer(C,!0),this.dynamicallyPositionedElements_.add(C));G=_.I8().resolve(_.Qt(_.uc));V=!!F.querySelector("#toast");G&&G.isKeyBoardInUse()&&!V&&(typeof F.focusFirstItem==="function"?F.focusFirstItem():(F=_.MI8(C),F.length&&F[0].focus()));C.removeEventListener("iron-overlay-opened",
_.Gp(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(C){C=C.currentTarget;C.refit&&C.refit()},
refitPopups_:function(){for(var C in this.popups_)this.popups_[C].refit()},
handleInvalidatePopupTabbables_:function(C){C=C.currentTarget;C.invalidateTabbables&&C.invalidateTabbables()},
createCacheKey:function(C,F){return _.y("web_popup_cache_key_killswitch")?F?C+"#"+F:C:F?"#"+F:C},
openSheet:function(C,F){var G=C==null?void 0:C.openPopupActionCommand;if(!G&&(C==null?0:C.viewModel)){if(C.sheetPosition)a:switch(C.sheetPosition){case "SHEET_POSITION_RIGHT":G="OPEN_POPUP_POSITION_RIGHT";break a;default:G="OPEN_POPUP_POSITION_UNKNOWN"}else G=void 0;G={openPopupAction:{popup:{sheetViewModel:C.viewModel},popupType:"CONTEXTUAL_SHEET",position:G}}}G&&this.handleOpenPopupAction(G,F)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var C=this;return _.I(function(F){return F.return(C.handleGetOpenedPopupsAction_().filter(function(G){var V;return((V=G.openPopupAction)==null?void 0:V.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(C,F,G){if(_.y("web_dialog_utils_killswitch")){var V=C==null?void 0:C.openPopupActionCommand,J=(G==null?0:G.ariaLabel)?{accessibilityData:{accessibilityData:{label:G.ariaLabel}}}:void 0;!V&&(C==null?0:C.viewModel)&&(V={openPopupAction:Object.assign({},{popup:{dialogViewModel:C.viewModel},popupType:(G==null?0:G.isModal)?"MODAL":"DIALOG"},J&&J)});V&&this.handleOpenPopupAction(V,F)}else{if(J=C==null?void 0:C.viewModel){var b=G=G===void 0?{}:G;G=b.ariaLabel;J={popup:{dialogViewModel:J},
popupType:b.isModal?"MODAL":"DIALOG"};b={accessibilityData:{label:G}};G&&(J.accessibilityData=b);J={openPopupAction:J}}else J=void 0;if(J=(V=J)!=null?V:C==null?void 0:C.openPopupActionCommand)this.isAriaModal=_.y("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(J,F)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var C=this;return _.I(function(F){return F.return(C.handleGetOpenedPopupsAction_().filter(function(G){var V;return((V=G.openPopupAction)==null?void 0:V.popupType)==="DIALOG"}).length>0)})}}];var BxU;var vo8;var fGd=_.h6(["about:blank"]),Q0=function(){var C=_.B.apply(this,arguments)||this;C.isMuted=!1;C.pageLoadTimeoutId=void 0;return C};
_.O(Q0,_.B);_.n=Q0.prototype;_.n.dataChanged=function(){var C=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var F=this.data.url,G=_.Ra(F);_.y("enable_yt_ata_iframe_authuser")?(G=_.Ra(F),_.mY(this.iframe,nLl(G))):_.mY(this.iframe,G);this.pageLoadTimeoutId=_.c8(_.Ws(),function(){return void C.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.p2({destination:window,iframe:this.iframe,origin:_.pju(G.toString()),channelName:"ataiframe",onMessage:_.iT8(QOs,function(V){IM_(V.data)?(V=_.Dr(V.data,1,_.$_,_.ED()),V.length!==1?_.Yw(Error("Ll")):(V=V[0],V===3?(C.isMuted=!0,C.logStateChanged({adMuteRequested:!0})):V===1&&C.close())):_.Yw(Error("Ml"))}),
onEstablished:function(){C.cancelPageLoadTimeout();C.logStateChanged({pageLoadSucceeded:!0})}})}};
_.n.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.Ws().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.n.logStateChanged=function(C){var F;if((F=this.data)==null?0:F.trackingParams)C={adsClientData:{aboutThisAdData:C}},_.ia().stateChanged(this.data.trackingParams,C)};
_.n.close=function(){_.rz(this.hostElement,"yt-close-popup-action",[this.is])};
_.n.handlesPopupClosed=function(C,F){var G=this,V,J;return _.I(function(b){if(b.nextAddress==1)return _.TF("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.rz(G.hostElement,"on-about-this-ad-popup-closed",[G.isMuted,F]),b.jumpTo(0)):C&&uhM(C)?b.yield(zqr(C),4):(G.isMuted&&_.rz(G.hostElement,"yt-mute-ad-action",[G.is,G]),b.jumpTo(0));if(V=b.yieldResult){var z=J=new _.xV(V),Q=G.isMuted;z.getOptions().includes("onAboutThisAdPopupClosed")?_.GXG(z,"onAboutThisAdPopupClosed",{isMuted:Q,layoutId:F}):_.LY("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.S9(b)})};
_.n.onPopupClosed=function(C){var F=this,G,V;return _.I(function(J){G=_.kf(fGd);_.mY(F.iframe,G);F.cancelPageLoadTimeout();if(!F.data)return J.jumpTo(0);F.ytRendererBehavior.markDirty();V=C.detail.context.openingElement;return J.yield(F.handlesPopupClosed(V,F.data.layoutId),0)})};
_.n.detached=function(){this.cancelPageLoadTimeout()};
_.n.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Q0.prototype.onPopupClosed=Q0.prototype.onPopupClosed;Q0.prototype.dataChanged=Q0.prototype.dataChanged;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Q0.prototype,"ytRendererBehavior",void 0);_.R([_.$z("#iframe"),_.Y("design:type",HTMLIFrameElement)],Q0.prototype,"iframe",void 0);_.R([_.L(),_.Y("design:type",Object)],Q0.prototype,"data",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Q0.prototype,"dataChanged",null);
_.R([_.VG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype",Promise)],Q0.prototype,"onPopupClosed",null);_.R([_.Z5({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],Q0);
_.q(Q0,"yt-about-this-ad-renderer",function(){if(vo8===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;BxU===void 0&&(BxU=document.createElement("template"));var V=BxU;G.call(F,V.content.cloneNode(!0),C.content.firstChild);vo8=C}C=vo8;return C},{mode:2});var hfL;var ceh;var Aet=function(C){var F=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=F.message;"stack"in F&&(this.stack=F.stack);this.maxFileSizeMB=C;Object.setPrototypeOf(this,Aet.prototype)};
_.O(Aet,Error);var efl=function(C,F){var G=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=G.message;"stack"in G&&(this.stack=G.stack);this.minWidth=C;this.minHeight=F;Object.setPrototypeOf(this,efl.prototype)};
_.O(efl,Error);var dIs=function(C){this.requirements=C;this.JSC$21080_maxFileSize=C.maxFileSizeMB*1024*1024},xIV=function(C,F){if(F.size>C.JSC$21080_maxFileSize)throw new Aet(C.requirements.maxFileSizeMB);
};var sUd=function(C,F){this.canvas=C;this.imageEditorBuilder=F};
sUd.prototype.addEventListeners=function(C){var F=function(J){qe3(C,J)};
this.JSC$21086_mouseDownEvent=F;var G=function(J){PAx(C,J)};
this.JSC$21086_mouseMoveEvent=G;var V=function(){goM(C)};
this.JSC$21086_mouseUpEvent=V;this.canvas.addEventListener("mousedown",F);this.canvas.addEventListener("mousemove",G);document.addEventListener("mouseup",V)};
sUd.prototype.removeEventListeners=function(){this.JSC$21086_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$21086_mouseDownEvent);this.JSC$21086_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$21086_mouseMoveEvent);this.JSC$21086_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$21086_mouseUpEvent)};
var RfL=function(C,F){C.removeEventListeners();return new Promise(function(G){var V=new Image;V.crossOrigin="anonymous";V.onload=function(){var J=C.imageEditorBuilder(C.canvas,V);C.addEventListeners(J);G(J)};
V.src=F})},Iz=function(C,F,G,V,J,b,z,Q){this.canvas=C;
this.image=F;this.requiredRatio=G;this.minImageCropDimension=V;this.minOutputImageResolution=J;this.component=b;this.styleFocusedCorner=Q===void 0?!0:Q;this.action=2;this.focusedCorner=this.resizeCorner=0;C=this.canvas.getContext("2d");if(!C)throw Error("Nl");this.ctx=C;this.canvasMargin=z!=null?z:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;z=this.image;C=this.canvasInnerWidth/z.width;z.height*C>912&&(C=z.width/z.height*912/z.width);z=C;this.scaledImageWidth=this.canvas.width%2?
IWr(this.image.width*z):Q3r(this.image.width*z);this.scaledImageHeight=Math.round(this.image.height*z);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$21089_overlayMarginBottom=this.JSC$21089_overlayMarginTop=this.canvasMargin;this.JSC$21089_overlayMarginRight=this.JSC$21089_overlayMarginLeft=this.horizontalMargin;this.JSC$21089_overlayWidth=this.scaledImageWidth;this.JSC$21089_overlayHeight=this.scaledImageHeight;
C=this.image.width/this.image.height;C>this.requiredRatio?(this.JSC$21089_overlayWidth=this.canvas.width%2?IWr(this.scaledImageHeight*this.requiredRatio):Q3r(this.scaledImageHeight*this.requiredRatio),this.JSC$21089_overlayMarginRight=this.JSC$21089_overlayMarginLeft=(this.canvas.width-this.JSC$21089_overlayWidth)/2):C<this.requiredRatio&&(this.JSC$21089_overlayHeight=this.canvas.height%2?IWr(this.scaledImageWidth/this.requiredRatio):Q3r(this.scaledImageWidth/this.requiredRatio),this.JSC$21089_overlayMarginBottom=
this.JSC$21089_overlayMarginTop=(this.canvas.height-this.JSC$21089_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*z,this.scaledImageWidth);Yel(this)};
Iz.prototype.getContext=function(){return this.ctx};
var qe3=function(C,F){F={x:Math.round(F.pageX-C.canvas.getBoundingClientRect().left),y:Math.round(F.pageY-C.canvas.getBoundingClientRect().top)};C.dragStart=F;Txt(C,F)!==0?(C.action=1,oos(C,F),C.resizeCorner=Txt(C,F)):F.x>C.JSC$21089_overlayMarginLeft&&F.x<C.JSC$21089_overlayMarginLeft+C.JSC$21089_overlayWidth&&F.y>C.JSC$21089_overlayMarginTop&&F.y<C.JSC$21089_overlayMarginTop+C.JSC$21089_overlayHeight&&(C.action=0)},red=function(C,F){switch(F){case 1:return{x:C.JSC$21089_overlayMarginLeft,
y:C.JSC$21089_overlayMarginTop};case 2:return{x:C.JSC$21089_overlayMarginLeft,y:C.JSC$21089_overlayMarginTop+C.JSC$21089_overlayHeight};case 3:return{x:C.JSC$21089_overlayMarginLeft+C.JSC$21089_overlayWidth,y:C.JSC$21089_overlayMarginTop};case 4:return{x:C.JSC$21089_overlayMarginLeft+C.JSC$21089_overlayWidth,y:C.JSC$21089_overlayMarginTop+C.JSC$21089_overlayHeight};default:throw Error("Ol");}},DIr=function(C,F){if(C.focusedCorner!==0){C.dragStart=red(C,C.focusedCorner);
C.action=1;C.resizeCorner=C.focusedCorner;var G=C.dragStart.x,V=C.dragStart.y;switch(F){case 0:C.focusedCorner===1||C.focusedCorner===4?(G-=10,V-=10):(G-=10,V+=10);break;case 1:C.focusedCorner===1||C.focusedCorner===4?(G+=10,V+=10):(G+=10,V-=10);break;case 2:G=C.focusedCorner===1||C.focusedCorner===4?G-10:G+10;V-=10;break;case 3:G=C.focusedCorner===1||C.focusedCorner===4?G+10:G-10;V+=10;break;default:throw Error("Pl");}KGt(C,{x:G,y:V});Yel(C);C.action=2;C.dragStart=void 0}},PAx=function(C,F){F={x:Math.round(F.pageX-
C.canvas.getBoundingClientRect().left),
y:Math.round(F.pageY-C.canvas.getBoundingClientRect().top)};oos(C,F);switch(C.action){case 1:KGt(C,F);break;case 0:C.dragStart&&(C.JSC$21089_overlayMarginLeft=Math.max(C.horizontalMargin,Math.min(C.JSC$21089_overlayMarginLeft-(C.dragStart.x-F.x),C.horizontalMargin+C.scaledImageWidth-C.JSC$21089_overlayWidth)),C.JSC$21089_overlayMarginRight=C.canvas.width-C.JSC$21089_overlayMarginLeft-C.JSC$21089_overlayWidth,C.JSC$21089_overlayMarginTop=Math.max(C.canvasMargin,Math.min(C.JSC$21089_overlayMarginTop-
(C.dragStart.y-F.y),C.scaledImageHeight-C.JSC$21089_overlayHeight+C.canvasMargin)),C.JSC$21089_overlayMarginBottom=C.canvas.height-(C.JSC$21089_overlayMarginTop+C.JSC$21089_overlayHeight));break;default:return}Yel(C);C.dragStart=F},goM=function(C){C.action=2;
C.dragStart=void 0;document.body.style.cursor="auto"},oos=function(C,F){switch(Txt(C,F)){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:C.action!==1&&(document.body.style.cursor="auto")}},Txt=function(C,F){var G=C.JSC$21089_overlayMarginLeft-5,V=C.JSC$21089_overlayMarginTop-5,J=C.JSC$21089_overlayMarginLeft+C.JSC$21089_overlayWidth-5;
C=C.JSC$21089_overlayMarginTop+C.JSC$21089_overlayHeight-5;return pEL(F,{x:G,y:V})?1:pEL(F,{x:J,y:V})?3:pEL(F,{x:G,y:C})?2:pEL(F,{x:J,y:C})?4:0},pEL=function(C,F){return C.x>=F.x&&C.x<=F.x+10&&C.y>=F.y&&C.y<=F.y+10},KGt=function(C,F){if(C.dragStart)switch(C.resizeCorner){case 2:Math.abs((C.JSC$21089_overlayMarginLeft+C.JSC$21089_overlayWidth-F.x)/(F.y-C.JSC$21089_overlayMarginTop))>=C.requiredRatio?mIh(C,F.x):C$r(C,F.y);
break;case 1:Math.abs((C.JSC$21089_overlayMarginLeft+C.JSC$21089_overlayWidth-F.x)/(C.JSC$21089_overlayMarginTop+C.JSC$21089_overlayHeight-F.y))>=C.requiredRatio?jZ8(C,F.x):C$r(C,F.y);break;case 4:Math.abs((F.x-C.JSC$21089_overlayMarginLeft)/(F.y-C.JSC$21089_overlayMarginTop))>=C.requiredRatio?mIh(C,F.x):Fch(C,F.y);break;case 3:Math.abs((F.x-C.JSC$21089_overlayMarginLeft)/(C.JSC$21089_overlayMarginTop+C.JSC$21089_overlayHeight-F.y))>=C.requiredRatio?jZ8(C,F.x):Fch(C,F.y);break;default:throw Error("Ql");
}},mIh=function(C,F){var G=C.JSC$21089_overlayMarginTop;
C.JSC$21089_overlayMarginBottom=Ggx(C,F);C.JSC$21089_overlayHeight=C.canvas.height-C.JSC$21089_overlayMarginBottom-G;C.JSC$21089_overlayWidth=Math.round(C.JSC$21089_overlayHeight*C.requiredRatio);Vkr(C)},jZ8=function(C,F){var G=C.JSC$21089_overlayMarginTop+C.JSC$21089_overlayHeight;
C.JSC$21089_overlayMarginTop=Ggx(C,F);C.JSC$21089_overlayHeight=G-C.JSC$21089_overlayMarginTop;C.JSC$21089_overlayWidth=Math.round(C.JSC$21089_overlayHeight*C.requiredRatio);Vkr(C)},Vkr=function(C){switch(C.resizeCorner){case 2:case 1:C.JSC$21089_overlayMarginLeft=C.canvas.width-C.JSC$21089_overlayMarginRight-C.JSC$21089_overlayWidth;
break;case 4:case 3:C.JSC$21089_overlayMarginRight=C.canvas.width-C.JSC$21089_overlayMarginLeft-C.JSC$21089_overlayWidth;break;default:throw Error("Ql");}},C$r=function(C,F){var G=C.JSC$21089_overlayMarginLeft+C.JSC$21089_overlayWidth;
C.JSC$21089_overlayMarginLeft=iIt(C,F);C.JSC$21089_overlayWidth=G-C.JSC$21089_overlayMarginLeft;C.JSC$21089_overlayHeight=Math.round(C.JSC$21089_overlayWidth/C.requiredRatio);J__(C)},Fch=function(C,F){var G=C.JSC$21089_overlayMarginLeft;
C.JSC$21089_overlayMarginRight=iIt(C,F);C.JSC$21089_overlayWidth=C.canvas.width-C.JSC$21089_overlayMarginRight-G;C.JSC$21089_overlayHeight=Math.round(C.JSC$21089_overlayWidth/C.requiredRatio);J__(C)},J__=function(C){switch(C.resizeCorner){case 2:case 4:C.JSC$21089_overlayMarginBottom=C.canvas.height-C.JSC$21089_overlayMarginTop-C.JSC$21089_overlayHeight;
break;case 1:case 3:C.JSC$21089_overlayMarginTop=C.canvas.height-C.JSC$21089_overlayMarginBottom-C.JSC$21089_overlayHeight;break;default:throw Error("Ql");}},Ggx=function(C,F){switch(C.resizeCorner){case 2:F=C.canvas.height-(C.JSC$21089_overlayMarginTop+$8s(C,F));
break;case 4:F=C.canvas.height-(C.JSC$21089_overlayMarginTop+bIU(C,F));break;case 1:F=C.JSC$21089_overlayMarginTop+C.JSC$21089_overlayHeight-$8s(C,F);break;case 3:F=C.JSC$21089_overlayMarginTop+C.JSC$21089_overlayHeight-bIU(C,F);break;default:throw Error("Ql");}return Math.max(F,C.canvasMargin)},$8s=function(C,F){F=C.JSC$21089_overlayMarginLeft+C.JSC$21089_overlayWidth-Math.max(F,C.horizontalMargin);
F=F<0?C.JSC$21089_overlayWidth:Math.max(F,C.minOverlayWidth);return Math.round(F/C.requiredRatio)},bIU=function(C,F){F=C.canvas.width-Math.max(C.canvas.width-F,C.horizontalMargin)-C.JSC$21089_overlayMarginLeft;
F=F<0?C.JSC$21089_overlayWidth:Math.max(F,C.minOverlayWidth);return Math.round(F/C.requiredRatio)},iIt=function(C,F){switch(C.resizeCorner){case 2:F=C.canvas.width-C.JSC$21089_overlayMarginRight-nMr(C,F);
break;case 4:F=C.canvas.width-C.JSC$21089_overlayMarginLeft-nMr(C,F);break;case 1:F=C.canvas.width-C.JSC$21089_overlayMarginRight-uRW(C,F);break;case 3:F=C.canvas.width-C.JSC$21089_overlayMarginLeft-uRW(C,F);break;default:throw Error("Ql");}return Math.max(F,C.horizontalMargin)},nMr=function(C,F){F=C.canvas.height-Math.max(C.canvas.height-F,C.canvasMargin)-C.JSC$21089_overlayMarginTop;
return F<0?C.JSC$21089_overlayWidth:Math.max(Math.round(F*C.requiredRatio),C.minOverlayWidth)},uRW=function(C,F){F=C.JSC$21089_overlayMarginTop+C.JSC$21089_overlayHeight-Math.max(F,C.canvasMargin);
return F<0?C.JSC$21089_overlayWidth:Math.max(Math.round(F*C.requiredRatio),C.minOverlayWidth)},Yel=function(C){C.ctx.clearRect(0,0,C.canvas.width,C.canvas.height);
C.ctx.drawImage(C.image,0,0,C.image.width,C.image.height,C.horizontalMargin,C.canvasMargin,C.canvas.width-2*C.horizontalMargin,C.scaledImageHeight);C.ctx.fillStyle="rgba(0, 0, 0, 0.7)";C.ctx.fillRect(C.horizontalMargin,C.JSC$21089_overlayMarginTop,C.JSC$21089_overlayMarginLeft-C.horizontalMargin,C.JSC$21089_overlayHeight);C.ctx.fillRect(C.JSC$21089_overlayMarginLeft+C.JSC$21089_overlayWidth,C.JSC$21089_overlayMarginTop,C.JSC$21089_overlayMarginRight-C.horizontalMargin,C.JSC$21089_overlayHeight);C.ctx.fillRect(C.horizontalMargin,
C.canvasMargin,C.scaledImageWidth,C.JSC$21089_overlayMarginTop-C.canvasMargin);C.ctx.fillRect(C.horizontalMargin,C.JSC$21089_overlayMarginTop+C.JSC$21089_overlayHeight,C.scaledImageWidth,C.JSC$21089_overlayMarginBottom-C.canvasMargin);C.drawOverlay();C.component&&_.oo(C.component,"image-updated")};
Iz.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$21089_overlayMarginLeft,this.JSC$21089_overlayMarginTop,this.JSC$21089_overlayWidth,this.JSC$21089_overlayHeight);zpl(this)};
var zpl=function(C){var F=C.JSC$21089_overlayMarginLeft-5,G=C.JSC$21089_overlayMarginTop-5,V=C.JSC$21089_overlayMarginLeft+C.JSC$21089_overlayWidth-5,J=C.JSC$21089_overlayMarginTop+C.JSC$21089_overlayHeight-5;C.ctx.fillStyle="#FFF";C.ctx.fillRect(F,G,10,10);C.ctx.strokeRect(F,G,10,10);C.ctx.fillRect(V,G,10,10);C.ctx.strokeRect(V,G,10,10);C.ctx.fillRect(F,J,10,10);C.ctx.strokeRect(F,J,10,10);C.ctx.fillRect(V,J,10,10);C.ctx.strokeRect(V,J,10,10);if(C.focusedCorner!==0&&C.styleFocusedCorner){C.ctx.lineWidth=
4;C.ctx.strokeStyle="#3EA6FF";switch(C.focusedCorner){case 1:--F;--G;break;case 2:--F;G=J-1;break;case 3:F=V-1;--G;break;case 4:F=V-1;G=J-1;break;default:return}C.ctx.strokeRect(F,G,12,12)}};
Iz.prototype.crop=function(C,F){F=F===void 0?!0:F;var G=this.image.width/this.scaledImageWidth,V=document.createElement("canvas"),J=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],b=this.JSC$21089_overlayWidth*G,z=this.JSC$21089_overlayHeight*G;V.width=Math.max(b,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);V.height=Math.max(z,J);C&&(V.width=Math.min(V.width,V.height),V.height=Math.min(V.width,V.height));
C=V.getContext("2d");if(!C)throw Error("El");J=(this.JSC$21089_overlayMarginLeft-this.horizontalMargin)*G;G*=this.JSC$21089_overlayMarginTop-this.canvasMargin;F||(C.fillStyle="white",C.fillRect(0,0,V.width,V.height));C.drawImage(this.image,J,G,b,z,0,0,V.width,V.height);return V};var QZM=function(C,F,G,V,J){Iz.call(this,C,F,G,V,void 0,J,8,!1)};
_.O(QZM,Iz);QZM.prototype.drawOverlay=function(){var C=this.getContext(),F=this.JSC$21089_overlayWidth,G=this.JSC$21089_overlayHeight,V=this.JSC$21089_overlayMarginTop,J=this.JSC$21089_overlayMarginLeft;C.lineWidth=2;C.strokeStyle="#3EA6FF";C.beginPath();C.arc(J+F/2,V+G/2,F/2,0,2*Math.PI);C.stroke();C.strokeRect(J,V,F,G);zpl(this)};
var IVr={maxFileSizeMB:15,minWidth:98,minHeight:98},EMx=["image/png","image/jpeg","image/gif"],E_=function(){var C=_.B.apply(this,arguments)||this;C.fileSelectorFocusListener=null;C.errorMessage=null;C.isLoading=!0;C.hideContainer=!0;C.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return C};
_.O(E_,_.B);_.n=E_.prototype;_.n.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.n.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.n.computePlaylistThumbnail=function(C){return C==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.n.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.rz(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.n.setErrorState=function(C){this.resetErrorState();C&&(this.errorMessage=C)};
_.n.showPopup=function(){var C=this;this.hideContainer=!1;_.c8(_.gT,function(){_.oo(C.hostElement,"yt-refit")});
this.isLoading=!1};
_.n.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.n.closePopup=function(){this.resetFileSelector();_.rz(this.hostElement,"yt-close-popup-action",[this.is])};
_.n.onCancelTap=function(){this.isPlaylistThumbnail||_.rz(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.n.openFileSelector=function(){var C=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.c8(_.gT,function(){setTimeout(function(){if(!C.fileSelector.files||C.fileSelector.files.length===0)C.onCancelTap();C.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(F){F instanceof Error?_.gD(F):_.R1(new _.Ay(JSON.stringify(F)))}};
_.n.handleFileSelection=function(){var C=this,F,G,V,J,b,z;return _.I(function(Q){switch(Q.nextAddress){case 1:_.yy(Q,2);if(!C.fileSelector.files||!C.imageEditorCanvas)return C.onCancelTap(),Q.return();F=C.fileSelector.files[0];xIV(C.imageChecker,F);_.yy(Q,4);return Q.yield(c6V(F),6);case 6:C.mimeType=Q.yieldResult;_.Gn(Q,5,2);break;case 4:_.wa(Q,2),_.rz(C.hostElement,"yt-image-selection-error-action",[(G=C.data)==null?void 0:G.genericImageLoadErrorMessage]),C.onCancelTap();case 5:V=new FileReader;
V.addEventListener("load",function(){var E,t;return _.I(function(k){if(k.nextAddress==1){if(!V.result)return _.Yw(Error("Gl")),k.return();E=V.result;t=new Image;t.src=E;t.onload=function(){try{var U=C.imageChecker;if(t.width<U.requirements.minWidth||t.height<U.requirements.minHeight)throw new efl(U.requirements.minWidth,U.requirements.minHeight);}catch(l){if(l instanceof efl){var H;_.rz(C.hostElement,"yt-image-selection-error-action",[(H=C.data)==null?void 0:H.imageDimensionErrorMessage]);C.logImageDimensionErrorVe()}else l instanceof
Error?_.gD(l):(U=new _.Ay(JSON.stringify(l)),_.gD(U));C.onCancelTap()}C.showPopup()};
t.onerror=function(){var U;_.rz(C.hostElement,"yt-image-selection-error-action",[(U=C.data)==null?void 0:U.genericImageLoadErrorMessage]);C.onCancelTap()};
return k.yield(RfL(C.imageEditorCanvas,E),2)}C.imageEditor=k.yieldResult;C.updatePositionOfAllCorners();C.addEventListeners(C.imageEditor);_.S9(k)})},!1);
V.readAsDataURL(F);_.Gn(Q,0);break;case 2:J=_.wa(Q),J instanceof Aet?_.rz(C.hostElement,"yt-image-selection-error-action",[(b=C.data)==null?void 0:b.imageSizeErrorMessage]):(J instanceof Error?_.gD(J):_.R1(new _.Ay(JSON.stringify(J))),_.rz(C.hostElement,"yt-image-selection-error-action",[(z=C.data)==null?void 0:z.genericImageLoadErrorMessage])),C.onCancelTap(),_.S9(Q)}})};
_.n.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var C=_.Vp(_.ia(),{veType:232707,visualElement:_.m2(232707)});C&&(C={visualElement:C},_.GS().reportShown(C))}};
_.n.handleImageSelectionErrorAction=function(C){this.isPlaylistThumbnail&&_.IqT(this.hostElement,C)};
_.n.convertToImageFormatBundle=function(C){var F=this,G,V,J;return _.I(function(b){switch(b.nextAddress){case 1:return G=C.toDataURL(F.outputMimeType,1),b.yield(A68(G),2);case 2:V=b.yieldResult;_.yy(b,3);xIV(F.imageChecker,V);_.Gn(b,4);break;case 3:J=_.wa(b);if(!(J instanceof Aet))throw J;_.Yw(new _.Ay("Output size is bigger than input size for image",F.mimeType,F.outputMimeType,V.size));G=C.toDataURL("image/jpeg",.95);return b.yield(A68(G),6);case 6:V=b.yieldResult;case 4:return b.return({dataUrl:G,
imageFile:V})}})};
_.n.handleUploadImageToScottyCommand=function(C){var F=this,G,V,J,b,z,Q,E,t,k,U;return _.I(function(H){switch(H.nextAddress){case 1:if(!F.imageEditor||!_.Z(C,MK8))return H.return();G=_.Z(C,MK8).scottyUploadUrl;if(!G){var l=new _.Ay("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.gD(l);return H.return()}_.yy(H,2);F.setLoadingState();V=F.imageEditor.crop(!1,!1);return H.yield(F.convertToImageFormatBundle(V),4);case 4:return J=H.yieldResult,H.yield(fol(J.imageFile,G),5);
case 5:b=H.yieldResult;((z=F.data)==null?0:z.onUploadEndpoint)?(Q=F.buildUploadServiceEndpoint(b),F.ytComponentBehavior.resolveCommand(Q),E=_.Z(Q,_.TL),((t=E)==null?0:t.params)?F.closePopup():F.resetFileSelector()):(_.rz(F.hostElement,"yt-image-updated-action",[J.dataUrl,b]),F.closePopup());_.Gn(H,0);break;case 2:k=_.wa(H),F.setErrorState((U=F.data)==null?void 0:U.uploadErrorMessage),k instanceof Error?_.gD(k):(l=new _.Ay(JSON.stringify(k)),_.gD(l)),_.S9(H)}})};
_.n.buildUploadServiceEndpoint=function(C){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",C),this.data.onUploadEndpoint):null};
_.n.dataChanged=function(){var C=this,F;return _.I(function(G){if(G.nextAddress==1){if(!C.data||!C.canvasElement)return G.return();C.data.imageRatio&&C.data.minImageCropWidth||_.R1(new _.Ay("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));F=function(V,J){return C.data.imageType==="IMAGE_TYPE_AVATAR"?new QZM(V,J,C.data.imageRatio,[C.data.minImageCropWidth,C.data.minImageCropWidth/C.data.imageRatio],C.hostElement):new Iz(V,J,C.data.imageRatio,[C.data.minImageCropWidth,
C.data.minImageCropWidth/C.data.imageRatio],void 0,C.hostElement,8,!1)};
C.imageEditorCanvas=new sUd(C.canvasElement,F);return C.data.url?G.yield(RfL(C.imageEditorCanvas,C.data.url),3):(C.hideContainer=!0,C.openFileSelector(),G.jumpTo(0))}C.imageEditor=G.yieldResult;C.showPopup();C.addEventListeners(C.imageEditor);_.S9(G)})};
_.n.addEventListeners=function(C){this.removeEventListeners();var F=function(J){qe3(C,J)};
this.JSC$21097_mouseDownEvent=F;var G=function(J){PAx(C,J)};
this.JSC$21097_mouseMoveEvent=G;var V=function(){goM(C)};
this.JSC$21097_mouseUpEvent=V;this.topLeftCorner.addEventListener("mousedown",F);this.topLeftCorner.addEventListener("mousemove",G);this.topLeftCorner.addEventListener("mouseup",V);this.topRightCorner.addEventListener("mousedown",F);this.topRightCorner.addEventListener("mousemove",G);this.topRightCorner.addEventListener("mouseup",V);this.bottomLeftCorner.addEventListener("mousedown",F);this.bottomLeftCorner.addEventListener("mousemove",G);this.bottomLeftCorner.addEventListener("mouseup",V);this.bottomRightCorner.addEventListener("mousedown",
F);this.bottomRightCorner.addEventListener("mousemove",G);this.bottomRightCorner.addEventListener("mouseup",V)};
_.n.removeEventListeners=function(){this.JSC$21097_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$21097_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$21097_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$21097_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$21097_mouseDownEvent));this.JSC$21097_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$21097_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$21097_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$21097_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$21097_mouseMoveEvent));this.JSC$21097_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$21097_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$21097_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$21097_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$21097_mouseUpEvent))};
_.n.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var C=document.activeElement;C&&C.shadowRoot&&C.shadowRoot.activeElement;)C=C.shadowRoot.activeElement;switch(C){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};
_.n.updatePositionOfCorner=function(C,F){var G=C.y-F.offsetHeight/2+4;F.style.left=C.x-F.offsetWidth/2+16+"px";F.style.top=G+"px"};
_.n.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var C=_.u([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),F=C.next();!F.done;F=C.next()){F=F.value;var G=red(this.imageEditor,F.corner);this.updatePositionOfCorner(G,F.div)}};
_.n.onLeft=function(C){this.imageEditor&&this.setFocusInImageEditor()&&(DIr(this.imageEditor,0),this.updatePositionOfAllCorners(),C.preventDefault())};
_.n.onRight=function(C){this.imageEditor&&this.setFocusInImageEditor()&&(DIr(this.imageEditor,1),this.updatePositionOfAllCorners(),C.preventDefault())};
_.n.onUp=function(C){this.imageEditor&&this.setFocusInImageEditor()&&(DIr(this.imageEditor,2),this.updatePositionOfAllCorners(),C.preventDefault())};
_.n.onDown=function(C){this.imageEditor&&this.setFocusInImageEditor()&&(DIr(this.imageEditor,3),this.updatePositionOfAllCorners(),C.preventDefault())};
_.n.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.n.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.n.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.I6.Object.defineProperties(E_.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&EMx.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var C,F,G;((F=this.data)==null?0:F.imageRatio)&&((G=this.data)==null?0:G.minImageCropWidth)?C={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:C=IVr;return new dIs(C)}}});
E_.prototype.updatePositionOfAllCorners=E_.prototype.updatePositionOfAllCorners;E_.prototype.dataChanged=E_.prototype.dataChanged;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],E_.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],E_.prototype,"ytComponentBehavior",void 0);_.R([_.w(_.wg),_.Y("design:type",Object)],E_.prototype,"ironA11yKeysBehavior",void 0);
_.R([_.$z("#canvas"),_.Y("design:type",HTMLCanvasElement)],E_.prototype,"canvasElement",void 0);_.R([_.$z("#file-selector"),_.Y("design:type",HTMLInputElement)],E_.prototype,"fileSelector",void 0);_.R([_.$z("#top-left-corner"),_.Y("design:type",HTMLDivElement)],E_.prototype,"topLeftCorner",void 0);_.R([_.$z("#top-right-corner"),_.Y("design:type",HTMLDivElement)],E_.prototype,"topRightCorner",void 0);
_.R([_.$z("#bottom-left-corner"),_.Y("design:type",HTMLDivElement)],E_.prototype,"bottomLeftCorner",void 0);_.R([_.$z("#bottom-right-corner"),_.Y("design:type",HTMLDivElement)],E_.prototype,"bottomRightCorner",void 0);_.R([_.L(),_.Y("design:type",Object)],E_.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],E_.prototype,"errorMessage",void 0);_.R([_.L(),_.Y("design:type",Object)],E_.prototype,"isLoading",void 0);_.R([_.L(),_.Y("design:type",Object)],E_.prototype,"hideContainer",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.Y("design:type",Boolean)],E_.prototype,"isPlaylistThumbnail",void 0);_.R([_.zp("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],E_.prototype,"dataChanged",null);_.R([_.VG("image-updated"),_.VG("yt-refit"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],E_.prototype,"updatePositionOfAllCorners",null);
_.R([_.Z5({is:"yt-image-editor-renderer",disableElementRegistration:!0})],E_);
_.q(E_,"yt-image-editor-renderer",function(){if(ceh===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;hfL===void 0&&(hfL=document.createElement("template"));var V=hfL;G.call(F,V.content.cloneNode(!0),C.content.firstChild);ceh=C}C=ceh;return C},{mode:2});var WcW;var tkr;var WM=function(){return _.B.apply(this,arguments)||this};
_.O(WM,_.B);WM.prototype.updateMinutesFromBinding=function(C){this.handleMinutesChanged&&this.handleMinutesChanged(C)};
WM.prototype.updateSecondsFromBinding=function(C){this.handleSecondsChanged&&this.handleSecondsChanged(C)};
WM.prototype.updateDescriptionFromBinding=function(C){this.handleDescriptionChanged&&this.handleDescriptionChanged(C)};
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],WM.prototype,"ytComponentBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],WM.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",String)],WM.prototype,"minutes",void 0);_.R([_.L(),_.Y("design:type",String)],WM.prototype,"seconds",void 0);_.R([_.L(),_.Y("design:type",String)],WM.prototype,"description",void 0);_.R([_.L(),_.Y("design:type",Function)],WM.prototype,"handleMinutesChanged",void 0);
_.R([_.L(),_.Y("design:type",Function)],WM.prototype,"handleSecondsChanged",void 0);_.R([_.L(),_.Y("design:type",Function)],WM.prototype,"handleDescriptionChanged",void 0);_.R([_.L(),_.Y("design:type",Number)],WM.prototype,"characterLimit",void 0);_.R([_.L(),_.Y("design:type",Number)],WM.prototype,"textNumRows",void 0);_.R([_.Z5({is:"yt-report-details-form-content",disableElementRegistration:!0})],WM);
_.q(WM,"yt-report-details-form-content",function(){if(tkr===void 0){var C=document.createElement("template");_.X(C,'\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>');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;WcW===void 0&&(WcW=document.createElement("template"));var V=WcW;G.call(F,V.content.cloneNode(!0),C.content.firstChild);tkr=C}C=tkr;return C},{mode:2});var aVx;var kgh;var t0=function(){var C=_.B.apply(this,arguments)||this;C.updateMinutesFromBinding=function(F){C.minutes=F.detail.value};
C.updateSecondsFromBinding=function(F){C.seconds=F.detail.value};
C.updateDescriptionFromBinding=function(F){C.description=F.detail.value};
return C};
_.O(t0,_.B);_.n=t0.prototype;_.n.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.n.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"}}}};
_.n.ready=function(){_.ot(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.n.onSubmitYtAction=function(C){var F=C.detail;F.actionName==="yt-service-request"&&(F=F.args[1],F.flagEndpoint&&(C.stopPropagation(),this.refireAction(F)))};
_.n.refireAction=function(C){var F={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(F.vss_id=this.vssId);_.DQ(this.hostElement,[C,F]);this.submitDisabled=!0};
_.n.dataChanged=function(){var C=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var F=_.gE();F&&F.getPlayerPromise().then(function(G){var V=G.getOption("cc","track")||G.getOption("captions","track");V&&(C.vssId=V.vss_id);G=G.getCurrentTime();C.minutes=Math.floor(G/60).toString();C.seconds=(Math.floor(G)%60).toString()})};
_.n.updateSubmitButtonState=function(){var C;((C=this.data)==null?0:C.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==="")};
_.n.onYtServiceRequestCompleted=function(){_.rz(this.hostElement,"yt-close-popup-action")};
_.n.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.I6.Object.defineProperties(t0.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var C;return((C=this.data)==null?void 0:C.textNumRows)||4}}});
t0.prototype.onYtServiceRequestError=t0.prototype.onYtServiceRequestError;t0.prototype.onYtServiceRequestCompleted=t0.prototype.onYtServiceRequestCompleted;t0.prototype.updateSubmitButtonState=t0.prototype.updateSubmitButtonState;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],t0.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],t0.prototype,"ytRendererBehavior",void 0);
_.R([_.L({observer:"dataChanged"}),_.Y("design:type",Object)],t0.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Boolean)],t0.prototype,"submitDisabled",void 0);_.R([_.L(),_.Y("design:type",String)],t0.prototype,"minutes",void 0);_.R([_.L(),_.Y("design:type",String)],t0.prototype,"seconds",void 0);_.R([_.L(),_.Y("design:type",String)],t0.prototype,"description",void 0);_.R([_.L(),_.Y("design:type",String)],t0.prototype,"vssId",void 0);
_.R([_.L({value:_.TF("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.Y("design:type",Boolean)],t0.prototype,"isMusic",void 0);_.R([_.M("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],t0.prototype,"characterLimit",null);_.R([_.M("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],t0.prototype,"textNumRows",null);
_.R([_.zp("minutes","seconds","description","submitDisabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],t0.prototype,"updateSubmitButtonState",null);_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],t0.prototype,"onYtServiceRequestCompleted",null);
_.R([_.VG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],t0.prototype,"onYtServiceRequestError",null);_.R([_.Z5({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],t0);
_.q(t0,"yt-report-details-form-renderer",function(){if(kgh===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;aVx===void 0&&(aVx=document.createElement("template"));var V=aVx;G.call(F,V.content.cloneNode(!0),C.content.firstChild);kgh=C}C=kgh;return C});var U8V;var HId;var lVr;var y_W;var az=function(){return _.B.apply(this,arguments)||this};
_.O(az,_.B);
az.prototype.onCheckedChanged_=function(){if(this.data){var C=_.ot(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.rz(this.hostElement,"yt-additional-detail-checkbox-update",[C]):this.data.identifier==="yt-hide-user-checkbox"?_.rz(this.hostElement,"yt-hide-user-checkbox-update",[C]):C&&this.data.enableCommand?_.rz(this.hostElement,"yt-modify-report-form-command",[_.Z(this.data.enableCommand,cZd)]):!C&&this.data.disableCommand&&_.rz(this.hostElement,
"yt-modify-report-form-command",[_.Z(this.data.enableCommand,cZd)])}};
az.prototype.onLabelTap_=function(C){C.target.tagName!="A"&&(_.ot(this.hostElement).querySelector("#checkbox").checked=!_.ot(this.hostElement).querySelector("#checkbox").checked)};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],az.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],az.prototype,"data",void 0);_.R([_.Z5({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],az);
_.q(az,"yt-boolean-form-field-v2-renderer",function(){if(y_W===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;lVr===void 0&&(lVr=document.createElement("template"));var V=lVr;G.call(F,V.content.cloneNode(!0),C.content.firstChild);y_W=C}C=y_W;return C});var k4=function(){var C=_.B.apply(this,arguments)||this;C.canShowAdditionalDetailCheckbox=!1;C.canShowCheckbox=!1;C.keepDropdownFocusedAfterSelection=!0;return C};
_.O(k4,_.B);k4.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}}}}};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],k4.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],k4.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],k4.prototype,"canShowAdditionalDetailCheckbox",void 0);_.R([_.L(),_.Y("design:type",Object)],k4.prototype,"canShowCheckbox",void 0);_.R([_.L(),_.Y("design:type",Object)],k4.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.R([_.Z5({is:"yt-report-form-modal-content",disableElementRegistration:!0})],k4);
_.q(k4,"yt-report-form-modal-content",function(){if(HId===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;U8V===void 0&&(U8V=document.createElement("template"));var V=U8V;G.call(F,V.content.cloneNode(!0),C.content.firstChild);HId=C}C=HId;return C},{mode:2});var ZIV;var Nyr;var U_=function(){var C=_.B.apply(this,arguments)||this;C.submitting=!1;C.submitButtonDisabled=!0;C.command=null;C.canShowCheckbox=!1;C.canShowAdditionalDetailCheckbox=!1;C.canShowNextButton=!1;C.additionalDetailCheckboxChecked=!1;C.refitJob=0;C.keepDropdownFocusedAfterSelection=!0;C.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 C};
_.O(U_,_.B);_.n=U_.prototype;_.n.created=function(){this.refitJob=0};
_.n.attached=function(){this.JSC$21120_scroller&&(this.JSC$21120_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21120_scroller.attached&&typeof this.JSC$21120_scroller.attached==="function"&&this.JSC$21120_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.n.dataChanged=function(C){C&&(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,C.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),C.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.n.onYtPopupOpened=function(){var C=_.gE();C&&C.getPlayerPromise().then(function(F){F.pauseVideo()})};
_.n.onYtNavigate=function(C){_.Z(C.detail.endpoint,_.opG)&&(C.stopPropagation(),this.hideReportForm=!0)};
_.n.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.n.onYtServiceRequestCompleted=function(C,F){var G=F.actions;if(G){if(G.length===1&&_.Z(G[0],_.Cl)){var V;G=((V=_.Z(G[0],_.Cl))==null?void 0:V.commands)||[]}V=0;for(var J=G.length;V<J;V++)_.Z(G[V],_.vf)&&(C.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(G[V]))}if(F.data&&(C=this.get("feedbackResponses",F.data)))for(F=0;F<C.length;F++)if(C[F].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.n.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.n._onDescendantIronResize=function(C){C.stopPropagation();return!1};
_.n.handleReportFormEndpointUpdateAction=function(C){if(C.submitEndpoint){var F=this.command=C.submitEndpoint;F=_.Z(F,_.Ra$);if(F==null?0:F.additionalDetailCheckboxChecked)F.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else C.submitNavigationEndpoint?(this.command=C.submitNavigationEndpoint,this.toggleSubmitButton(!1)):C.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:C.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;C.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",C));this.refit()};
_.n.handleConfirmDialogCloseAction=function(C){C.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.n.submitButtonDisabledChanged=function(){var C=this.hostElement.parentElement;C&&C.invalidateTabbables&&C.invalidateTabbables()};
_.n.handleModifyReportFormCommand=function(C){C=this.get("action",C);C==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:C==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:C==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:C==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:C==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:C==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.n.updateDialogStyling=function(){var C,F,G,V,J,b=((J=(C=this.data)==null?void 0:(F=C.optionsSupportedRenderers)==null?void 0:(G=F.optionsRenderer)==null?void 0:(V=G.items)==null?void 0:V.length)!=null?J:0)<=2?0:240;_.jr(this.hostElement,{"--yt-report-form-modal-renderer-min-width":b+"px"})};
_.n.toggleSubmitButton=function(C){this.submitButtonDisabled=!C;this.submitButtonDisabled=C};
_.n.computeSubmitButtonData=function(C,F){var G={};_.Z(F,_.opG)?G.navigationEndpoint=F:G.command=F||void 0;C&&C.buttonRenderer&&_.xf.extend(G,C.buttonRenderer);return G};
_.n.computeNextButtonData=function(C,F){var G={};if(!C||!C.buttonRenderer)return G;_.xf.extend(G,C.buttonRenderer);if(!F)return G;if(_.Z(F,_.opG))G.navigationEndpoint=emd(F);else if(G.command=emd(F),C=_.Z(G.command,_.Ra$))C.legalCheckboxChecked=!0;return G};
_.n.computeShowNextButton=function(C,F,G){return!!C&&F&&G};
_.n.refit=function(){var C=this;this.refitJob||(this.refitJob=_.gT.addLowPriorityJob(function(){_.oo(C.hostElement,"yt-refit");C.refitJob=0}))};
_.n.handleAdditionalDetailCheckboxUpdateAction=function(C){this.additionalDetailCheckboxChecked=C;_.Z(this.command,_.Ra$).additionalDetailCheckboxChecked=C};
_.I6.Object.defineProperties(U_,{template:{configurable:!0,enumerable:!0,get:function(){if(Nyr===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;ZIV===void 0&&(ZIV=document.createElement("template"));var V=ZIV;G.call(F,V.content.cloneNode(!0),C.content.firstChild);Nyr=C}C=Nyr;return C}}});
U_.prototype.onYtServiceRequestError=U_.prototype.onYtServiceRequestError;U_.prototype.onYtServiceRequestCompleted=U_.prototype.onYtServiceRequestCompleted;U_.prototype.onYtServiceRequestSent=U_.prototype.onYtServiceRequestSent;U_.prototype.onYtNavigate=U_.prototype.onYtNavigate;U_.prototype.onYtPopupOpened=U_.prototype.onYtPopupOpened;_.R([_.w(_.lc.YtOpenPopupBehavior),_.Y("design:type",Object)],U_.prototype,"openPopupBehavior",void 0);
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],U_.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],U_.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.h9.YtEventForwardingBehavior),_.Y("design:type",Object)],U_.prototype,"eventForwardingBehavior",void 0);_.R([_.w(_.AY),_.Y("design:type",Object)],U_.prototype,"ironResizableBehavior",void 0);_.R([_.L({observer:"dataChanged"}),_.Y("design:type",Object)],U_.prototype,"data",void 0);
_.R([_.L(),_.Y("design:type",Object)],U_.prototype,"submitting",void 0);_.R([_.L({observer:"submitButtonDisabledChanged"}),_.Y("design:type",Object)],U_.prototype,"submitButtonDisabled",void 0);_.R([_.L(),_.Y("design:type",Object)],U_.prototype,"command",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],U_.prototype,"hideReportForm",void 0);_.R([_.L(),_.Y("design:type",Object)],U_.prototype,"canShowCheckbox",void 0);
_.R([_.L(),_.Y("design:type",Object)],U_.prototype,"canShowAdditionalDetailCheckbox",void 0);_.R([_.L(),_.Y("design:type",Object)],U_.prototype,"canShowNextButton",void 0);_.R([_.L(),_.Y("design:type",Object)],U_.prototype,"additionalDetailCheckboxChecked",void 0);_.R([_.L(),_.Y("design:type",Object)],U_.prototype,"refitJob",void 0);_.R([_.L(),_.Y("design:type",Object)],U_.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.R([_.$z("#scroller"),_.Y("design:type",Object)],U_.prototype,"JSC$21120_scroller",void 0);_.R([_.VG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],U_.prototype,"onYtPopupOpened",null);_.R([_.VG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],U_.prototype,"onYtNavigate",null);
_.R([_.VG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Sn]),_.Y("design:returntype")],U_.prototype,"onYtServiceRequestSent",null);_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.en]),_.Y("design:returntype")],U_.prototype,"onYtServiceRequestCompleted",null);
_.R([_.VG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],U_.prototype,"onYtServiceRequestError",null);_.R([_.Z5({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],U_);var OI8;var X7d;var HM=function(){return _.B.apply(this,arguments)||this};
_.O(HM,_.B);_.n=HM.prototype;_.n.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.n.onVisible=function(){var C,F;(F=_.I8().resolve(_.Qt(_.G9)))==null||F.enqueue({label:_.dd((C=this.data)==null?void 0:C.messageTitle),elementToFocus:this.hostElement})};
_.n.onThumbnailLoaded=function(){_.oo(this.hostElement,"yt-refit")};
_.n.onDismissTap=function(){_.rz(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.n.computeAlternateIcon=function(C){return C?C==="BACKSTAGE_ARTWORK"?"backstage:artwork":C:null};
_.n.computeFontFamily=function(C){return C==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.n.computeBackgroundStyle=function(C,F){if(C=this.computeBackgroundImage(C,F))if(C=_.Ye(C.thumbnails))return'background-image: url("'+C+'");'};
_.n.computeHasFullHeightImage=function(C){return!(!(C&&C.thumbnails&&C.thumbnails.length>0)||this.modern)};
_.n.isModernStyle=function(C){return C.style==="STYLE_MODERN"};
_.n.computeIcon=function(C,F){if(C&&C.icon)return F?C.iconDark:C.icon};
_.n.computeBackgroundImage=function(C,F){if(C&&C.backgroundImage)return F?C.backgroundImageDark:C.backgroundImage};
_.n.computeLogo=function(C,F){if(C&&C.logo)return F?C.logoDark:C.logo};
_.n.computeShouldShowModernIcon=function(C,F){return C&&!!F};
_.n.getLogoContainerClassName=function(C){return this.logoWithPadding(C)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.n.getLogoImageId=function(C){return this.logoWithPadding(C)?"mealbar-logo-with-padding":"mealbar-logo"};
_.n.logoWithPadding=function(C){var F,G,V;return(C=(F=this.computeLogo(C,this.isDarkTheme))==null?void 0:(G=F.thumbnails)==null?void 0:(V=G[0])==null?void 0:V.height)&&C%31===0?!0:!1};
HM.prototype.onThumbnailLoaded=HM.prototype.onThumbnailLoaded;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],HM.prototype,"ytRendererBehavior",void 0);_.R([_.L({}),_.Y("design:type",Object)],HM.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.Y("design:type",Boolean)],HM.prototype,"modern",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],HM.prototype,"isDarkTheme",void 0);
_.R([_.L({computed:"computeIcon(data, isDarkTheme)"}),_.Y("design:type",Object)],HM.prototype,"icon",void 0);_.R([_.L({computed:"computeLogo(data, isDarkTheme)"}),_.Y("design:type",Object)],HM.prototype,"logo",void 0);_.R([_.L({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.Y("design:type",Object)],HM.prototype,"backgroundStyle",void 0);_.R([_.L({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.Y("design:type",Object)],HM.prototype,"alternateIcon",void 0);
_.R([_.L({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.Y("design:type",Boolean)],HM.prototype,"hasFullHeightImage",void 0);_.R([_.L({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.Y("design:type",Boolean)],HM.prototype,"useYoutubeSans",void 0);_.R([_.L({computed:"computeShouldShowModernIcon(modern, icon)"}),_.Y("design:type",Boolean)],HM.prototype,"shouldShowModernIcon",void 0);
_.R([_.VG("yt-img-shadow-loaded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],HM.prototype,"onThumbnailLoaded",null);_.R([_.Z5({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],HM);
_.q(HM,"yt-mealbar-promo-renderer",function(){if(X7d===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;OI8===void 0&&(OI8=document.createElement("template"));var V=OI8;G.call(F,V.content.cloneNode(!0),C.content.firstChild);X7d=C}C=X7d;return C},{mode:2});var w7W;var Mkx;var lB=function(){return _.B.apply(this,arguments)||this};
_.O(lB,_.B);_.n=lB.prototype;_.n.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]]"}}}}}};
_.n.computeHasButtons_=function(C){return!(!C.dismissButton&&!C.acceptButton)};
_.n.computeStyle_=function(C){return C||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.n.observeImpressionEndpoints_=function(){var C=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(F){F.clickTrackingParams&&delete F.clickTrackingParams;_.DQ(C.hostElement,[F])})};
_.n.onTap_=function(){_.rz(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
lB.prototype.observeImpressionEndpoints_=lB.prototype.observeImpressionEndpoints_;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],lB.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.h9.YtEventForwardingBehavior),_.Y("design:type",Object)],lB.prototype,"ytEventForwardingBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],lB.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],lB.prototype,"data",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],lB.prototype,"positionType",void 0);_.R([_.L({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.Y("design:type",Boolean)],lB.prototype,"hasButtons_",void 0);_.R([_.L({value:function(){return this.onTap_.bind(this)}}),
_.Y("design:type",Function)],lB.prototype,"boundOnTap_",void 0);_.R([_.L({value:{style:"mono-inverse"}}),_.Y("design:type",Object)],lB.prototype,"buttonOverride",void 0);_.R([_.iP("data.promoConfig.impressionEndpoints"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lB.prototype,"observeImpressionEndpoints_",null);_.R([_.Z5({is:"yt-tooltip-renderer",disableElementRegistration:!0})],lB);
_.q(lB,"yt-tooltip-renderer",function(){if(Mkx===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;w7W===void 0&&(w7W=document.createElement("template"));var V=w7W;G.call(F,V.content.cloneNode(!0),C.content.firstChild);Mkx=C}C=Mkx;return C},{mode:2});var SSM;var Lct;var Byl={},vMd=(Byl.WEB_REMIX="music.youtube.com",Byl),y0=function(){var C=_.B.apply(this,arguments)||this;C.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return C};
_.O(y0,_.B);_.n=y0.prototype;_.n.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.n.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.n.created=function(){this.embedHost_=vMd[_.TF("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.n.ready=function(){_.ot(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.n.computeEmbedCode_=function(C,F,G,V,J){if(!C)return"";var b=C.videoId,z=C.fullListId,Q=[];C.attributionId&&Q.push("si="+C.attributionId);V||Q.push("controls=0");G&&Number(F)>0&&Q.push("start="+F);z&&(b="videoseries",Q.push("list="+z));G="https://"+(J?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+b;C.clipId&&(Q.push("clip="+C.clipId),Q.push("clipt="+C.clipTiming));F=Q.length>0?G+"?"+Q.join("&amp;"):G;C.encryptedEmbedConfig&&Q.push("embed_config="+JSON.stringify({enc:C.encryptedEmbedConfig}));
Q=Q.length>0?G+"?"+Q.join("&amp;"):G;_.y("web_sharing_embed_preview_killswitch")?_.ot(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(Q,C.previewWidth||854,C.previewHeight||480):(_.w8(this.videoPreviewContainer),_.ot(this.videoPreviewContainer).appendChild(this.buildIframeElement(Q)));return this.getEmbedCode_(F,C.width||560,C.height||315)};
_.n.buildIframeElement=function(C){var F=document.createElement("iframe"),G,V;F.width=""+((V=(G=this.data)==null?void 0:G.previewWidth)!=null?V:854);var J,b;F.height=""+((b=(J=this.data)==null?void 0:J.previewHeight)!=null?b:480);_.I6o(F,2,C);F.title="YouTube video player";F.frameBorder="0";F.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";F.referrerPolicy="strict-origin-when-cross-origin";F.allowFullscreen=!0;return F};
_.n.computeIsSquareAspectRatio_=function(C){return C.previewHeight&&C.previewWidth?C.previewHeight==C.previewWidth:!1};
_.n.computeShowEmbedOptions_=function(C){return!!C.enablePrivacyModeOptionLabel||!!C.showPlayerControlsOptionLabel};
_.n.getEmbedCode_=function(C,F,G){return'<iframe width="'+F+'" height="'+G+'" src="'+C+'" 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>'};
_.n.handleSignalActionCopyShareEmbedUrl_=function(){_.ot(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.n.handleSetTimestamp_=function(C){this.startAtTimeStamp_=(this.startAtChecked_=C.isSet)?C.timestamp:0};
_.n.closePanel_=function(){_.rz(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.n.onEmbedCode_=function(){_.ot(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.n.onYtPopupClosed_=function(){_.w8(_.ot(this.hostElement).querySelector("#video-preview"))};
_.n.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.Z(this.data.actionButtons[0],_.DY)&&this.ytRendererBehavior.logExplicitClick(_.Z(this.data.actionButtons[0],_.DY))};
y0.prototype.onYtPopupClosed_=y0.prototype.onYtPopupClosed_;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],y0.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],y0.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],y0.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],y0.prototype,"data",void 0);
_.R([_.L({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.Y("design:type",String)],y0.prototype,"embedCode_",void 0);_.R([_.L({value:!0}),_.Y("design:type",Boolean)],y0.prototype,"isPlayerControlsOptionChecked_",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],y0.prototype,"isPrivacyModeOptionChecked_",void 0);_.R([_.L({value:!1,notify:!0}),_.Y("design:type",Boolean)],y0.prototype,"startAtChecked_",void 0);
_.R([_.L({value:0}),_.Y("design:type",Number)],y0.prototype,"startAtTimeStamp_",void 0);_.R([_.L({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],y0.prototype,"isSquareAspectRatio_",void 0);_.R([_.$z("#video-preview"),_.Y("design:type",HTMLElement)],y0.prototype,"videoPreviewContainer",void 0);_.R([_.VG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],y0.prototype,"onYtPopupClosed_",null);
_.R([_.Z5({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],y0);
_.q(y0,"yt-sharing-embed-renderer",function(){if(Lct===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;SSM===void 0&&(SSM=document.createElement("template"));var V=SSM;G.call(F,V.content.cloneNode(!0),C.content.firstChild);Lct=C}C=Lct;return C},{mode:2});var fVx={};
fVx.YtUnlimitedFamilyInterstitialBehavior=[_.lc.YtOpenPopupBehavior,_.Z7.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(C){C=_.wjy(_.ev(C),"yt-button-renderer");return C?C.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(C){this.dialogHistory_.push(C)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var C=this.popFromHistory();if(C){var F={openPopupAction:{popupType:"DIALOG",popup:{}}};F.openPopupAction.popup[C.renderer]=C.data;this.showingPreviousDialog_=!0;this.openPopup(F)}},
handleOpenPopupAction_:function(C){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var F=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(V){return!!C.openPopupAction.popup[V]}),G=this.getElementName_();
F&&this.data&&(this.pushToHistory({renderer:G,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(C){if(C=_.Z(C,nN_))this.loading=!0,_.rz(this.hostElement,"yt-open-create-family-dialog",[C,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var C=this.hostElement.nodeName.split("-").slice(1).map(function(F){return""+F[0].toUpperCase()+F.slice(1).toLowerCase()}).join("");
return C[0].toLowerCase()+C.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var hpd;var c_V;var ZC=function(){return _.B.apply(this,arguments)||this};
_.O(ZC,_.B);_.n=ZC.prototype;_.n.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}}}}}};
_.n.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.rz(this.hostElement,"yt-register-create-family-dialog");_.ot(this.hostElement).querySelector("#thumbnail").onShow()};
_.n.fireOnCloseCommand_=function(){var C;((C=this.data)==null?0:C.onCloseCommand)&&_.pX(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.n.onYtServiceRequestSent_=function(C,F){F&&F.endpoint&&_.Z(F.endpoint,_.FI)||(this.loading=!0)};
_.n.onYtServiceRequestCompleted_=function(){var C=this.hostElement.parentElement;C.close&&C.close();this.loading=!1};
_.n.openPopupHandler_=function(C){if(C.detail==this){var F;((F=this.data)==null?0:F.onOpenCommands)&&_.pX(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.n.closePopupHandler_=function(C,F){this.fireOnCloseCommand_();if(F&&F.canceled===!0||F&&F.canceled===!1&&F.confirmed===!1){var G;((G=this.data)==null?0:G.onDismissCommands)&&_.pX(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.n.dataChanged_=function(){this.loading=!1};
ZC.prototype.dataChanged_=ZC.prototype.dataChanged_;ZC.prototype.closePopupHandler_=ZC.prototype.closePopupHandler_;ZC.prototype.openPopupHandler_=ZC.prototype.openPopupHandler_;ZC.prototype.onYtServiceRequestCompleted_=ZC.prototype.onYtServiceRequestCompleted_;ZC.prototype.onYtServiceRequestSent_=ZC.prototype.onYtServiceRequestSent_;_.R([_.w(_.h9.YtEventForwardingBehavior),_.Y("design:type",Object)],ZC.prototype,"ytEventForwardingBehavior",void 0);
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],ZC.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(fVx.YtUnlimitedFamilyInterstitialBehavior),_.Y("design:type",Object)],ZC.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],ZC.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],ZC.prototype,"data",void 0);
_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],ZC.prototype,"loading",void 0);_.R([_.VG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Sn]),_.Y("design:returntype")],ZC.prototype,"onYtServiceRequestSent_",null);_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.en]),_.Y("design:returntype")],ZC.prototype,"onYtServiceRequestCompleted_",null);
_.R([_.VG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],ZC.prototype,"openPopupHandler_",null);_.R([_.VG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],ZC.prototype,"closePopupHandler_",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ZC.prototype,"dataChanged_",null);
_.R([_.Z5({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],ZC);
_.q(ZC,"yt-unlimited-family-message-interstitial-renderer",function(){if(c_V===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;hpd===void 0&&(hpd=document.createElement("template"));var V=hpd;G.call(F,V.content.cloneNode(!0),C.content.firstChild);c_V=C}C=c_V;return C},{mode:2});var A_W;var epV;var NP=function(){return _.B.apply(this,arguments)||this};
_.O(NP,_.B);NP.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"}}}};
NP.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.ot(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(C){C.onShow()});
_.ot(this.hostElement).querySelector("#main-thumbnail").onShow()};
NP.prototype.onButtonTap_=function(C){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(C)};
NP.prototype.computeMainThumbnailWidth_=function(C){return C&&C.length!==0?72:96};
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],NP.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],NP.prototype,"ytRendererBehavior",void 0);_.R([_.w(fVx.YtUnlimitedFamilyInterstitialBehavior),_.Y("design:type",Object)],NP.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],NP.prototype,"data",void 0);
_.R([_.L({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.Y("design:type",Number)],NP.prototype,"mainThumbnailWidth_",void 0);_.R([_.L({value:function(){return this.onButtonTap_.bind(this)}}),
_.Y("design:type",Function)],NP.prototype,"boundButtonTap_",void 0);_.R([_.Z5({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],NP);
_.q(NP,"yt-unlimited-family-profile-interstitial-renderer",function(){if(epV===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;A_W===void 0&&(A_W=document.createElement("template"));var V=A_W;G.call(F,V.content.cloneNode(!0),C.content.firstChild);epV=C}C=epV;return C},{mode:2});var d8l;var x88;var O_=function(){var C=_.B.apply(this,arguments)||this;C.sliderAriaValueText_=null;C.selectedIndex_=0;C.messages={PAUSE_SLIDER:_.iQ("PAUSE_SLIDER",void 0,"Pause Duration")};return C};
_.O(O_,_.B);_.n=O_.prototype;_.n.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_]]"}}}}}};
_.n.onPopupOpened_=function(C){C.detail==this&&_.y("enable_premium_voluntary_pause")&&(_.rz(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.n.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.n.setDialogData=function(C){this.data=C;this.resetSlider_()};
_.n.dataChanged_=function(){this.data&&this.resetSlider_()};
_.n.onSubmitTap_=function(){if(this.data.confirmCommand){var C=this.data.confirmCommand;_.Z(C,_.T$7)&&_.DQ(this.hostElement,[C,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.n.onExitButtonTap_=function(){_.rz(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.n.closePopupHandler_=function(C,F){(F&&F.canceled===!0||F.canceled===!1&&F.confirmed===!1)&&this.handleOnDismissCommands_()};
_.n.onSliderChange_=function(){this.selectedIndex_=_.ot(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.n.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.n.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.n.resetSlider_=function(){if(this.data){var C=this.data.defaultEndOptionIndex||0,F=_.ot(this.hostElement).querySelector("#id-pause-slider");if(F.immediateValue<C)for(;F.immediateValue!=C;)F.increment();else if(C<F.immediateValue)for(;F.immediateValue!=C;)F.decrement();this.selectedIndex_=C;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.n.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.pX(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.n.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.pX(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.n.onYtServiceRequestSent=function(){this.loading=!0};
_.n.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
O_.prototype.onYtServiceRequestCompleted=O_.prototype.onYtServiceRequestCompleted;O_.prototype.onYtServiceRequestSent=O_.prototype.onYtServiceRequestSent;O_.prototype.closePopupHandler_=O_.prototype.closePopupHandler_;O_.prototype.dataChanged_=O_.prototype.dataChanged_;O_.prototype.onPopupOpened_=O_.prototype.onPopupOpened_;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],O_.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],O_.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],O_.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],O_.prototype,"loading",void 0);_.R([_.L(),_.Y("design:type",Number)],O_.prototype,"selectIndexMax_",void 0);_.R([_.L(),_.Y("design:type",Object)],O_.prototype,"selectedData_",void 0);
_.R([_.L(),_.Y("design:type",Object)],O_.prototype,"sliderAriaValueText_",void 0);_.R([_.L({value:function(){return this.onSubmitTap_.bind(this)}}),
_.Y("design:type",Function)],O_.prototype,"onButtonTap_",void 0);_.R([_.L({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.Y("design:type",Function)],O_.prototype,"onSecondaryTap_",void 0);_.R([_.L(),_.Y("design:type",Object)],O_.prototype,"messages",void 0);_.R([_.VG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],O_.prototype,"onPopupOpened_",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],O_.prototype,"dataChanged_",null);
_.R([_.VG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],O_.prototype,"closePopupHandler_",null);_.R([_.VG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Sn]),_.Y("design:returntype")],O_.prototype,"onYtServiceRequestSent",null);
_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.en]),_.Y("design:returntype")],O_.prototype,"onYtServiceRequestCompleted",null);_.R([_.Z5({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],O_);
_.q(O_,"yt-unplugged-pause-membership-dialog-renderer",function(){if(x88===void 0){var C=document.createElement("template");_.X(C,'\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>');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;d8l===void 0&&(d8l=document.createElement("template"));var V=d8l;G.call(F,V.content.cloneNode(!0),C.content.firstChild);x88=C}C=x88;return C},{mode:2});var sZs;var qSr;var XZ=function(){return _.B.apply(this,arguments)||this};
_.O(XZ,_.B);XZ.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.kJ("vcBalanceRenderer")}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],XZ.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],XZ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],XZ.prototype,"data",void 0);_.R([_.Z5({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],XZ);
_.q(XZ,"yt-vc-offer-layout-header-renderer",function(){if(qSr===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;sZs===void 0&&(sZs=document.createElement("template"));var V=sZs;G.call(F,V.content.cloneNode(!0),C.content.firstChild);qSr=C}C=qSr;return C},{mode:2});var P$L;var gMs;var RpU;var YSh;var wF=function(){return _.B.apply(this,arguments)||this};
_.O(wF,_.B);wF.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.I6.Object.defineProperties(wF.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)}}});
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],wF.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],wF.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.$ot.YtTappableItemBehavior),_.Y("design:type",Object)],wF.prototype,"ytTappableItemBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],wF.prototype,"data",void 0);
_.R([_.L({reflectToAttribute:!0}),_.M("data.accessibilityText"),_.Y("design:type",String),_.Y("design:paramtypes",[])],wF.prototype,"ariaLabel",null);_.R([_.L({reflectToAttribute:!0}),_.M("data.style"),_.Y("design:type",String),_.Y("design:paramtypes",[])],wF.prototype,"vcOfferStyle",null);_.R([_.M("data.style","data.titleText"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],wF.prototype,"showTitleText",null);_.R([_.Z5({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],wF);
_.q(wF,"yt-vc-offer-renderer",function(){if(YSh===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;RpU===void 0&&(RpU=document.createElement("template"));var V=RpU;G.call(F,V.content.cloneNode(!0),C.content.firstChild);YSh=C}C=YSh;return C},{mode:2});var MP=function(){return _.B.apply(this,arguments)||this};
_.O(MP,_.B);MP.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}}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],MP.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],MP.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],MP.prototype,"data",void 0);_.R([_.Z5({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],MP);
_.q(MP,"yt-vc-offer-layout-renderer",function(){if(gMs===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;P$L===void 0&&(P$L=document.createElement("template"));var V=P$L;G.call(F,V.content.cloneNode(!0),C.content.firstChild);gMs=C}C=gMs;return C},{mode:2});var Tyr;var oMM;var r_8;var KcM;var Sf=function(){return _.B.apply(this,arguments)||this};
_.O(Sf,_.B);Sf.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}}}}}};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],Sf.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],Sf.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],Sf.prototype,"data",void 0);_.R([_.Z5({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],Sf);
_.q(Sf,"yt-ypc-offers-modal-top-bar-renderer",function(){if(KcM===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;r_8===void 0&&(r_8=document.createElement("template"));var V=r_8;G.call(F,V.content.cloneNode(!0),C.content.firstChild);KcM=C}C=KcM;return C},{mode:2});var LM=function(){return _.B.apply(this,arguments)||this};
_.O(LM,_.B);LM.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"}}}}};
LM.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
LM.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var C=this.scrollable;C.attached&&typeof C.attached==="function"&&C.attached()};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],LM.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],LM.prototype,"ytRendererstamperBehavior",void 0);_.R([_.$z("#scrollable"),_.Y("design:type",Object)],LM.prototype,"scrollable",void 0);_.R([_.L(),_.Y("design:type",Object)],LM.prototype,"data",void 0);_.R([_.Z5({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],LM);
_.q(LM,"yt-ypc-offers-modal-renderer",function(){if(oMM===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;Tyr===void 0&&(Tyr=document.createElement("template"));var V=Tyr;G.call(F,V.content.cloneNode(!0),C.content.firstChild);oMM=C}C=oMM;return C},{mode:2});var D8_;var p7_;var BM=function(){return _.B.apply(this,arguments)||this};
_.O(BM,_.B);_.n=BM.prototype;_.n.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}}}}}};
_.n.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.ot(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.n.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.rz(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.n.onYtPopupOpened_=function(C,F){(F==null?void 0:F.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.pX(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.n.onYtPopupClosed_=function(C,F){this.continueButtonTapped||F&&(F.canceled===!0||F.canceled===!1&&F.confirmed===!1)&&this.data.onDismissCommands&&_.pX(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.n.onYtServiceRequestError_=function(C){this.set("showSpinner",!1);_.Bl(this.hostElement,C.detail.error.message)};
_.n.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.y("enable_ypc_spinners")?_.rz(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
BM.prototype.onYtServiceRequestError_=BM.prototype.onYtServiceRequestError_;BM.prototype.onYtPopupClosed_=BM.prototype.onYtPopupClosed_;BM.prototype.onYtPopupOpened_=BM.prototype.onYtPopupOpened_;BM.prototype.onYtServiceRequestCompleted_=BM.prototype.onYtServiceRequestCompleted_;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],BM.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],BM.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.L(),_.Y("design:type",Object)],BM.prototype,"data",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],BM.prototype,"showSpinner",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],BM.prototype,"continueButtonTapped",void 0);_.R([_.L({value:function(){return this.onContinueTapped_.bind(this)}}),
_.Y("design:type",Function)],BM.prototype,"bindOnContinueTapped_",void 0);_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],BM.prototype,"onYtServiceRequestCompleted_",null);_.R([_.VG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],BM.prototype,"onYtPopupOpened_",null);
_.R([_.VG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],BM.prototype,"onYtPopupClosed_",null);_.R([_.VG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],BM.prototype,"onYtServiceRequestError_",null);_.R([_.Z5({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],BM);
_.q(BM,"yt-ypc-upgrade-dialog-renderer",function(){if(p7_===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;D8_===void 0&&(D8_=document.createElement("template"));var V=D8_;G.call(F,V.content.cloneNode(!0),C.content.firstChild);p7_=C}C=p7_;return C},{mode:2});var m8t;var C3W;var vM=function(){return _.B.apply(this,arguments)||this};
_.O(vM,_.B);vM.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
vM.prototype.computeHasButtons_=function(C){return!(!C.dismissButton&&!C.confirmButton)};
vM.prototype.computeStyle_=function(C){return C||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],vM.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.h9.YtEventForwardingBehavior),_.Y("design:type",Object)],vM.prototype,"ytEventForwardingBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],vM.prototype,"ytRendererstamperBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],vM.prototype,"data",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],vM.prototype,"positionType",void 0);
_.R([_.L({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.Y("design:type",Boolean)],vM.prototype,"hasButtons_",void 0);_.R([_.L({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],vM.prototype,"style_",void 0);_.R([_.Z5({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],vM);
_.q(vM,"yt-bubble-hint-renderer",function(){if(C3W===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;m8t===void 0&&(m8t=document.createElement("template"));var V=m8t;G.call(F,V.content.cloneNode(!0),C.content.firstChild);C3W=C}C=C3W;return C},{mode:2});var jKr;var FLU;var fM=function(){var C=_.EH.apply(this,arguments)||this;C.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return C};
_.O(fM,_.EH);_.n=fM.prototype;_.n.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.n.attached=function(){var C=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){C.$.thumbnail.onShow();C.$["header-image"].onShow()})};
_.n.handleCheckBoxUpdateAction_=function(C){this.canShowCheckboxEnabledConfirmButton=C};
_.n.computeUseOverlayForSpinner_=function(C,F){return!!C&&F};
_.n.computeShowSpinner_=function(C,F){return C||!!F};
_.n.fireOnCloseActions_=function(){var C,F=_.u(((C=this.data)==null?void 0:C.onClosedActions)||[]);for(C=F.next();!C.done;C=F.next())this.ytRendererBehavior.resolveCommand(C.value)};
_.n.fireOnOpenCommands_=function(C){var F,G=(F=this.data)==null?void 0:F.onOpenCommands;if(G)for(C.stopImmediatePropagation(),C=_.u(G),F=C.next();!F.done;F=C.next())this.ytRendererBehavior.resolveCommand(F.value)};
_.n.fireOnDismissCommands_=function(C){var F,G=(F=this.data)==null?void 0:F.onDismissCommands;if(G)for(C.stopImmediatePropagation(),C=_.u(G),F=C.next();!F.done;F=C.next())this.ytRendererBehavior.resolveCommand(F.value)};
_.n.openPopupHandler_=function(C){C.detail==this&&this.fireOnOpenCommands_(C)};
_.n.closePopupHandler_=function(C,F){_.KX(this,"yt-confirm-dialog-close-action",[F]);this.fireOnCloseActions_();(F&&F.canceled===!0||F&&F.canceled===!1&&F.confirmed===!1)&&this.fireOnDismissCommands_(C)};
_.n.onHeaderImageChanged_=function(){var C;((C=this.data)==null?0:C.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.n.computeHasHeaderImageWidth_=function(C){return C!=void 0};
_.n.computeHasLoadingMessage=function(C){return!!C};
_.n.onHeaderImageWidthChanged_=function(){var C,F=(C=this.data)==null?void 0:C.headerImageWidth;if(F){if(C=1.25*F*2+F,this.$.main.style.width=C+"px",F=this.$.scroller.firstElementChild)F.style.minWidth=C+"px"}else this.$.main.style.width="100%"};
_.n.onThumbnailChanged_=function(){var C;((C=this.data)==null?0:C.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")};
_.n.onYtNavigate_=function(C){C=_.ev(C);C instanceof Node&&_.r7(this.$["confirm-button"]).contains(C)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.n.computePrimaryIsCancel_=function(C){return C};
_.n.computeIsCancelButtonHidden_=function(C){return C.skipCancelButton||!C.cancelButton};
_.n.computeIsCheckboxHidden_=function(C){return!C.checkbox};
_.n.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.n.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.n.onYtServiceRequestCompleted_=function(){var C;((C=this.data)==null?0:C.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.I6.Object.defineProperties(fM,{template:{configurable:!0,enumerable:!0,get:function(){if(FLU===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;jKr===void 0&&(jKr=document.createElement("template"));var V=jKr;G.call(F,V.content.cloneNode(!0),C.content.firstChild);FLU=C}C=FLU;return C}}});
fM.prototype.onYtServiceRequestCompleted_=fM.prototype.onYtServiceRequestCompleted_;fM.prototype.onYtServiceRequestSent_=fM.prototype.onYtServiceRequestSent_;fM.prototype.onThumbnailLoaded_=fM.prototype.onThumbnailLoaded_;fM.prototype.onYtNavigate_=fM.prototype.onYtNavigate_;fM.prototype.onThumbnailChanged_=fM.prototype.onThumbnailChanged_;fM.prototype.onHeaderImageWidthChanged_=fM.prototype.onHeaderImageWidthChanged_;fM.prototype.onHeaderImageChanged_=fM.prototype.onHeaderImageChanged_;
fM.prototype.closePopupHandler_=fM.prototype.closePopupHandler_;fM.prototype.openPopupHandler_=fM.prototype.openPopupHandler_;_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],fM.prototype,"ytActionHandlerBehavior",void 0);_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],fM.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],fM.prototype,"ytRendererBehavior",void 0);
_.R([_.w(_.h9.YtEventForwardingBehavior),_.Y("design:type",Object)],fM.prototype,"ytEventForwardingBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],fM.prototype,"data",void 0);_.R([_.L({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.Y("design:type",Boolean)],fM.prototype,"primaryIsCancel",void 0);_.R([_.L({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.Y("design:type",Boolean)],fM.prototype,"isCancelButtonHidden",void 0);
_.R([_.L({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.Y("design:type",Boolean)],fM.prototype,"isCheckboxHidden",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],fM.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.R([_.L({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],fM.prototype,"useOverlayForSpinner_",void 0);
_.R([_.L({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.Y("design:type",Boolean)],fM.prototype,"showSpinner_",void 0);_.R([_.L({value:!1}),_.Y("design:type",Boolean)],fM.prototype,"isActionInProgress_",void 0);_.R([_.L({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.Y("design:type",Boolean)],fM.prototype,"hasHeaderImageWidth_",void 0);
_.R([_.L({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.Y("design:type",Boolean)],fM.prototype,"hasLoadingMessage",void 0);_.R([_.VG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],fM.prototype,"openPopupHandler_",null);_.R([_.VG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],fM.prototype,"closePopupHandler_",null);
_.R([_.iP("data.headerImage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fM.prototype,"onHeaderImageChanged_",null);_.R([_.iP("data.headerImageWidth"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fM.prototype,"onHeaderImageWidthChanged_",null);_.R([_.iP("data.thumbnail"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fM.prototype,"onThumbnailChanged_",null);
_.R([_.VG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],fM.prototype,"onYtNavigate_",null);_.R([_.VG("yt-img-shadow-loaded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fM.prototype,"onThumbnailLoaded_",null);_.R([_.VG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Sn]),_.Y("design:returntype")],fM.prototype,"onYtServiceRequestSent_",null);
_.R([_.VG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.en]),_.Y("design:returntype")],fM.prototype,"onYtServiceRequestCompleted_",null);_.R([_.Z5({is:"yt-confirm-dialog-renderer",noInjection:!0})],fM);var G9r;var VsL;var h0=function(){return _.B.apply(this,arguments)||this};
_.O(h0,_.B);h0.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.ot(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
h0.prototype.computeConfirmButton_=function(C){var F={text:C.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};C.confirmNavigationEndpoint?F.navigationEndpoint=C.confirmNavigationEndpoint:C.confirmServiceEndpoint&&(F.serviceEndpoint=C.confirmServiceEndpoint);return F};
h0.prototype.computeShowTitle_=function(C){return!(C==null||!C.title)};
_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],h0.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],h0.prototype,"data",void 0);_.R([_.L({computed:"computeShowTitle_(data)"}),_.Y("design:type",Boolean)],h0.prototype,"showTitle",void 0);_.R([_.Z5({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],h0);
_.q(h0,"yt-fancy-dismissible-dialog-renderer",function(){if(VsL===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;G9r===void 0&&(G9r=document.createElement("template"));var V=G9r;G.call(F,V.content.cloneNode(!0),C.content.firstChild);VsL=C}C=VsL;return C});var iis;var JUx;var cM=function(){var C=_.B.apply(this,arguments)||this;C.spinnerActive=!1;return C};
_.O(cM,_.B);cM.prototype.created=function(){JPx(2201)};
cM.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
cM.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
cM.prototype.onIronOverlayClosed=cM.prototype.onIronOverlayClosed;cM.prototype.onIronOverlayOpened=cM.prototype.onIronOverlayOpened;_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],cM.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.mw),_.Y("design:type",Object)],cM.prototype,"tpYtIronOverlayBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],cM.prototype,"data",void 0);_.R([_.L(),_.Y("design:type",Object)],cM.prototype,"spinnerActive",void 0);
_.R([_.VG("iron-overlay-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cM.prototype,"onIronOverlayOpened",null);_.R([_.VG("iron-overlay-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cM.prototype,"onIronOverlayClosed",null);_.R([_.Z5({is:"yt-loading-renderer",disableElementRegistration:!0})],cM);
_.q(cM,"yt-loading-renderer",function(){if(JUx===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;iis===void 0&&(iis=document.createElement("template"));var V=iis;G.call(F,V.content.cloneNode(!0),C.content.firstChild);JUx=C}C=JUx;return C},{mode:2});var $gL;var biU;var A0=function(){var C=_.B.apply(this,arguments)||this;C.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);C.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);C.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";C.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return C};
_.O(A0,_.B);_.n=A0.prototype;_.n.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.n.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.n.onDarkModeToggledAction=function(C){this.isDarkTheme=C};
_.n.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.n.openPopupHandler_=function(C){C.detail===this.hostElement&&this.hostElement.hidden&&_.rz(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.n.onDismissButtonTap_=function(){var C;this.closeOnDismissButton_.has(((C=this.data)==null?void 0:C.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.rz(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.n.onAcceptButtonTap_=function(){var C;this.closeOnAcceptButton_.has(((C=this.data)==null?void 0:C.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.rz(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.n.computeHasHeader_=function(C){return!!C.headerBackgroundImage};
_.n.computeLayoutStyle_=function(C){return C};
_.n.computePopupSize_=function(C){return C};
_.n.computeIconType_=function(C){return C.dialogIcon&&C.dialogIcon.iconType?C.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":C.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":C.dialogIcon.iconType:""};
_.n.computeIsLogo_=function(C){return!!C.dialogIcon&&!!C.dialogIcon.iconType&&(C.dialogIcon.iconType==="YOUTUBE_LOGO"||C.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||C.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.n.computeHasCustomLogo=function(C){return!(C==null||!C.headerForegroundImage)};
_.n.computeCustomLogo=function(C,F){if(C!=null&&C.headerForegroundImage)return C.headerForegroundImageDark?F?C.headerForegroundImageDark:C.headerForegroundImage:C.headerForegroundImage};
_.n.computeHeaderBackgroundImage=function(C,F){if(C!=null&&C.headerBackgroundImage)return F&&(C==null?0:C.headerBackgroundImageDark)?C.headerBackgroundImageDark:C.headerBackgroundImage};
_.n.shouldShowIconContainer=function(C,F){return C&&!F};
_.n.shouldShowNonYouTubeIcon=function(C,F){return!C&&!F};
_.n.getLogoImageId=function(C){var F,G,V;return(C=(F=this.computeCustomLogo(C,this.isDarkTheme))==null?void 0:(G=F.thumbnails)==null?void 0:(V=G[0])==null?void 0:V.height)&&C%31===0?"custom-logo-with-padding":"custom-logo"};
A0.prototype.openPopupHandler_=A0.prototype.openPopupHandler_;A0.prototype.dataChanged_=A0.prototype.dataChanged_;_.R([_.w(_.nJ.YtRendererstamperBehavior),_.Y("design:type",Object)],A0.prototype,"ytRendererstamperBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],A0.prototype,"ytRendererBehavior",void 0);_.R([_.L(),_.Y("design:type",Boolean)],A0.prototype,"isDarkTheme",void 0);
_.R([_.L({computed:"computeCustomLogo(data, isDarkTheme)"}),_.Y("design:type",Object)],A0.prototype,"customLogo",void 0);_.R([_.L({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.Y("design:type",Object)],A0.prototype,"headerBackgroundImage",void 0);_.R([_.L(),_.Y("design:type",Object)],A0.prototype,"data",void 0);_.R([_.L({computed:"computeHasHeader_(data)"}),_.Y("design:type",Boolean)],A0.prototype,"hasHeader",void 0);
_.R([_.L({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.Y("design:type",Object)],A0.prototype,"layoutStyle",void 0);_.R([_.L({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.Y("design:type",Object)],A0.prototype,"popupSize",void 0);_.R([_.L({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],A0.prototype,"hasLogo",void 0);
_.R([_.L({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],A0.prototype,"hasCustomLogo",void 0);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],A0.prototype,"dataChanged_",null);_.R([_.VG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],A0.prototype,"openPopupHandler_",null);
_.R([_.Z5({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],A0);
_.q(A0,"yt-upsell-dialog-renderer",function(){if(biU===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;$gL===void 0&&($gL=document.createElement("template"));var V=$gL;G.call(F,V.content.cloneNode(!0),C.content.firstChild);biU=C}C=biU;return C},{mode:2});var nAs=_.d(function(C){return _.W("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.W(_.a,{cond:C.title,then:function(F){return _.W("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},F)}}))},"pj"),uO_=_.d(function(C){return _.W("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.W(_.uC,{data:C.closeButton},{buttonViewModel:function(F){return _.W("div",null,_.W(_.tS,{data:F.data}))}}))},"qj"),zM_=_.d(function(C){var F=C.data;
return _.W(_.WQ,null,_.W("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.W("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.W(_.a,{cond:function(){return!!F().image&&!!F().title},
then:function(){return _.W(_.AC,{data:function(){return F().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.W("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.W(_.a,{cond:function(){return F().title},
then:function(G){return _.W("h3",{class:"miniAppGameInfoDialogViewModelTitle"},G)}}),_.W(_.a,{cond:function(){return F().primaryGenre},
then:function(G){return _.W("span",{class:"miniAppGameInfoDialogViewModelGenre"},G)}}))),_.W(_.a,{cond:function(){var G=F().description;
return G&&G.length<=150},
then:function(){return _.W("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.W("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return F().description}))}}))},"rj"),QKs=_.d(function(C){C=C.infoRows;
var F=_.I8().resolve(_.il),G=_.y("enable_displaying_ppn");return _.W("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.W(_.Ag,{each:C},function(V){return _.W("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.W(_.a,{cond:function(){return V.label},
then:function(J){return _.W("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},J)}}),_.W(_.a,{cond:function(){return V.attributedLabel},
then:function(J){return _.W("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.W(_.mn,{text:J,noPreWrap:!0}))}}),_.W(_.a,{cond:function(){return V.value},
then:function(J){return _.W("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},J)}}),_.W(_.a,{cond:function(){return V.attributedValue},
then:function(J){return _.W("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.W(_.mn,{text:J,noPreWrap:!0}))}}))}),_.W(_.a,{cond:function(){return G&&F.clientData.has("post_play_nonce")},
then:function(){return _.W("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.W("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.W("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},F.getData("post_play_nonce")))}}))},"sj"),Iyr=_.d(function(C){var F=C.data;
return _.W("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.W(nAs,{title:function(){return F().dialogTitle}}),_.W(zM_,{data:F}),_.W(_.a,{cond:function(){return F().infoRow},
then:function(G){return _.W(QKs,{infoRows:G})}}),_.W(uO_,{closeButton:function(){return F().closeButton}}))},"tj");
Iyr.idomCompat=!0;_.gQ(Iyr,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.CJ}});_.gQ(_.d(function(C){var F=C.data;return _.W("yt-gulp-triggering-dialog-view-model",{class:_.py("ytGulpTriggeringDialogViewModelHost","ytGulpTriggeringDialogViewModelResetSpacing"),dialog:!0},_.W(_.AC,{data:function(){return F().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.W("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.W("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.W(_.a,{cond:function(){var G=F().ytLogo;return G?G.iconType:null},
then:function(G){return _.W(_.i5,{icon:G,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.W("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.W("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.W(_.mn,{text:function(){return F().title}})),_.W("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.W(_.mn,{text:function(){return F().body}})),_.W("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.W(_.mn,{text:function(){return F().verifyStateText}}))),
_.W("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.W("div",null,_.W(_.uC,{data:function(){return F().dismissButton}},{buttonViewModel:_.tS})),_.W("div",null,_.W(_.uC,{data:function(){return F().linkParentButton}},{buttonViewModel:_.tS})))))},"uj"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.CJ}});var EAL=_.d(function(C){var F=C.data;C=_.dk(function(){return F().agreements},[]);
return _.W("installment-agreements-view-model",{class:_.py("ytInstallmentAgreementsViewModelHost")},_.W(_.Ag,{each:C},function(G){return _.W("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.W("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.W(_.mn,{text:G.label})),_.W("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.W(_.uC,{data:function(){return G.openButton}},{buttonViewModel:_.tS})))}))},"vj");
EAL.idomCompat=!0;var WLW=_.d(function(C){var F=_.u(_.Gb(function(){var r,C9;return((r=C.data().createPlaylistDialogFormSchema)==null?0:(C9=r.initialValues)==null?0:C9.title)?C.data().createPlaylistDialogFormSchema.initialValues.title:""})),G=F.next().value,V=F.next().value;
F=_.u(_.Gb(function(){C.data();return!1}));
var J=F.next().value,b=F.next().value;F=_.u(_.Gb(function(){C.data();return!1}));
var z=F.next().value,Q=F.next().value;F=_.u(_.Gb(function(){var r,C9;return(r=C.data().createPlaylistDialogFormSchema)==null?void 0:(C9=r.initialValues)==null?void 0:C9.visibility}));
var E=F.next().value,t=F.next().value;F=_.u(_.Gb(function(){C.data();return!1}));
var k=F.next().value,U=F.next().value;F=_.u(_.Gb(function(){var r,C9;return(r=C.data().createPlaylistDialogFormSchema)==null?void 0:(C9=r.initialValues)==null?void 0:C9.isCollaborative}));
var H=F.next().value,l=F.next().value,N=_.Jt("div");_.sq(function(){var r=N.value.querySelector("textarea");r&&(r.value=G())},"axFRaf");
_.q4(function(){var r;_.GAd((r=C.data().createPlaylistDialogFormSchema)==null?void 0:r.id,{onSubmit:function(){var C9=G();var Wo=E(),EB=H(),L9=C.data();C9={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:C9,privacyStatus:Wo,videoIds:L9.videoIds,sourcePlaylistId:L9.sourcePlaylistId,params:EB?L9.createPlaylistParamsCollaborationEnabled:L9.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.I8().resolve(_.WD).resolveCommand(C9)},
isValid:function(){return J()&&!z()&&!k()}})});
var S=function(r){if(r!==void 0&&(V(r),!J()&&r.length>0&&b(!0),J())){var C9=ELM(C.data());if(C9){var Wo=C9.minLength;C9=C9.maxLength;Wo&&r.length<Wo?Q(!0):C9&&r.length>C9?Q(!0):Q(!1)}}},f=function(){var r=!(!H()||E()!=="PRIVATE");
U(r)},c=function(r){r!==void 0&&(t(r),f())},A=function(){if(k())return tXU(C.data())},T=function(){l(!H());
f()},P=function(){return{validate:function(r){if(J()){var C9=ELM(C.data());
if(C9){var Wo=C9.minLength;C9=C9.translations;if(Wo&&r.length<Wo)return C9==null?void 0:C9.minLengthErrorMessage}}}}},g=function(){var r=ELM(C.data()),C9=r==null?void 0:r.maxLength,Wo;
r=r==null?void 0:(Wo=r.translations)==null?void 0:Wo.maxLengthErrorMessage;if(C9&&r)return{maxChars:C9,errorMessage:r}};
return _.W("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.W("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:N},_.W(_.uC,{data:function(){return C.data().playlistTitle}},{textFormFieldViewModel:function(r){return _.W(_.WDL,{data:r.data,
text:G,onInput:S,validation:P,characterLimit:g})},
textFieldViewModel:function(r){return _.W(_.E2U,{data:r.data,text:G,onInput:S,validation:P,characterLimit:g})}})),_.W("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.W(_.uC,{data:function(){return C.data().playlistVisibility}},{dropdownViewModel:function(r){return _.W(_.XYM,{data:r.data,
onSelected:c,error:A})}})),_.W(_.a,{cond:function(){return!!C.data().playlistCollaborate},
then:function(){return _.W("div",null,_.W(_.uC,{data:function(){return C.data().playlistCollaborate}},{switchListItemViewModel:function(r){return _.W(_.GwG,{data:r.data,
onTap:T})}}))}}))},"xj");var tsx=_.d(function(C){var F=C.data;return _.W("upsell-offer-table-cell-content-view-model",null,_.W("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.W(_.e_,null,_.W(_.hg,{when:function(){return F().iconType}},function(){return _.W("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.W(_.i5,{icon:function(){return F().iconType.toString()}}))}),_.W(_.hg,{when:function(){return F().title}},function(){return _.W(_.mn,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return F().title}})}),_.W(_.hg,{when:function(){return F().subtitle}},function(){return _.W(_.mn,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return F().subtitle}})}),_.W(_.hg,{when:function(){return F().infoText}},function(){return _.W(_.mn,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return F().infoText}})}),_.W(_.hg,{when:function(){return F().featureDescription}},function(){return _.W(_.mn,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return F().featureDescription}})}),_.W(_.hg,{when:function(){return F().note}},function(){return _.W(_.mn,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return F().note}})}))))},"yj");
tsx.idomCompat=!0;var ayV=_.d(function(C){var F=C.data;return _.W("upsell-offer-table-cell-view-model",null,_.W("div",{class:_.py("ytUpsellOfferTableCellViewModelCellWrapper",function(){return F().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.W(_.uC,{data:function(){return F().contents}},{upsellOfferTableCellContentViewModel:tsx})))},"zj");
ayV.idomCompat=!0;var k9l=_.d(function(C){var F=C.data;var G=C.upsellTableIsFirstRow;var V=function(){return(G==null?0:G())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},J=function(){return(G==null?0:G())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.W("ytm-upsell-offer-table-row-view-model",null,_.W("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.W(_.uC,{data:function(){return F().rowHeaderCell}},{upsellOfferTableCellViewModel:function(b){return _.W("div",{class:V},_.W(ayV,{data:b.data}))}}),_.W(_.uC,{data:function(){return F().contentCells}},{upsellOfferTableCellViewModel:function(b){return _.W("div",{class:J},_.W(ayV,{data:b.data}))}})))},"Aj");
k9l.idomCompat=!0;var Ug_=_.d(function(C){var F=C.data;return _.W("ytm-upsell-offer-table-view-model",null,_.W("div",{class:"ytUpsellOfferTableViewModelHost"},_.W("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.W(_.uC,{data:function(){return F().rows}},{upsellOfferTableRowViewModel:function(G,V){return _.W(k9l,{data:G.data,
upsellTableIsFirstRow:function(){return V()===0}})}}))))},"Bj");
Ug_.idomCompat=!0;var Hir=_.d(function(C){var F=function(){return C.data()},G=_.dk(C.noPadding,!1),V=function(){var b,z;
return(z=(b=F().logo.accessibilityData)==null?void 0:b.label)!=null?z:""},J={};
return _.W("upsell-view-model",{class:_.py("ytUpsellViewModelHost",(J.ytUpsellViewModelHostNoPadding=function(){return G()},J.ytUpsellViewModelHostWide=function(){return F().offerTable!==void 0},J))},_.W("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.W(_.a,{cond:function(){return _.Mh(F().logo)},
then:function(b){return _.W(_.AC,{data:b,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:V})}})),_.W("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.W(_.mn,{text:function(){return F().title}})),_.W("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.W(_.Ag,{each:function(){var b;
return(b=F().subtitles)!=null?b:[]},
keyBy:"INDEX"},function(b){var z={};return _.W("div",{class:_.py("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(z.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return F().offerTable!==void 0},z))},_.W(_.mn,{text:b}))})),_.W("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.W(_.Ag,{each:function(){var b;
return(b=F().benefitInfos)!=null?b:[]},
keyBy:"INDEX"},function(b){return _.W(_.a,{cond:function(){return b().info},
then:function(z){return _.W("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.W(_.i5,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.W(_.mn,{text:z}))}})})),_.W(_.a,{cond:function(){return F().offerTable!==void 0},
then:function(){return _.W("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.W(_.uC,{data:function(){return F().offerTable}},{upsellOfferTableViewModel:function(b){return _.W(Ug_,{data:b.data})}}))}}),_.W("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.W(_.Ag,{each:function(){var b;
return(b=F().legalInfos)!=null?b:[]},
keyBy:"INDEX"},function(b){var z={};return _.W("div",{class:_.py("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(z.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return F().offerTable!==void 0},z))},_.W(_.mn,{text:b}))})))},"Cj");var ly_=_.d(function(C){var F=C.data;C={};C=(C.ytMiniAppScoreChallengeViewModelScoreRadial=!0,C.ytMiniAppScoreChallengeViewModelDarkScoreRadial=aWW(),C);return _.W("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.W("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return F().title}),_.W("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return F().subtitle}),_.W("div",{class:_.tm(C)},_.W("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return F().score})),_.W("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return F().prompt}))},"Dj");var yUh=function(){this.store=_.Av();this.formId=""};
yUh.prototype.onInit=function(C){C.formId&&(this.formId=C.formId,this.store.dispatch(_.rh({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var Zis=_.d(function(C){function F(Q){if(Q&&(Q=_.Z(Q,_.QJ)))return Object.assign({},Q,{isSelected:b()})}
var G=_.u(_.Gb(function(){var Q,E;return(E=(Q=_.Z(C.data().option,_.QJ))==null?void 0:Q.isSelected)!=null?E:!1})),V=G.next().value,J=G.next().value,b=V;
_.q4(function(){var Q;_.GAd((Q=C.data().formSchema)==null?void 0:Q.id,{onSubmit:function(){var E=_.I8().resolve(_.WD),t=!!C.data().selectedCommand,k=!!C.data().unselectedCommand;if(b()){if(t)var U=C.data().selectedCommand}else k&&(U=C.data().unselectedCommand);U=_.ZD(U);F(C.data().option)&&!U?(E="",!t&&k?E="selected ":t&&!k&&(E="unselected "),t=new _.Ay("No "+E+"command found for SelectionListItemFormViewModel"),_.gD(t)):U&&E.resolveCommand(U)},
isValid:function(){return!0}})});
var z=function(){J(!b())};
_.q0(function(){var Q,E,t=(Q=C.data())==null?void 0:(E=Q.formSchema)==null?void 0:E.id;t&&_.bC()().delete(t)});
return _.W("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.W("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.W(_.mn,{text:function(){return C.data().paragraph}})),_.W(_.a,{cond:function(){return F(C.data().option)},
then:function(Q){return _.W(_.oi,{data:Q,isCompact:!0,hideSelectionTextChevron:!0,onTap:z,disableHorizontalPadding:!0})}}))},"Ej");var NuL=_.d(function(C){var F=C.data;var G=C.disablePadding;var V=C.className;var J=_.Jt("yt-dialog-header-view-model"),b=function(){var Q=F().imageBanner;a:switch(F().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var E="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:E="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:Q,style:E,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},z=function(){return F().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.q4(function(){var Q=function(){_.rz(J.value,"yt-refit-popups-action")},E;
(E=J.value)==null||E.addEventListener("image-loaded",Q);_.q0(function(){var t;(t=J.value)==null||t.removeEventListener("image-loaded",Q)})});
C={};return _.W("yt-dialog-header-view-model",{el:J,class:_.py(V,(C.ytDialogHeaderViewModelHost=!0,C.ytDialogHeaderViewModelHostDisablePadding=G,C))},_.W(_.a,{cond:function(){return F().imageBanner},
then:function(){var Q={};return _.W("div",{class:_.py(V,(Q.ytDialogHeaderViewModelBanner=!0,Q.ytDialogHeaderViewModelBannerFullBleed=z,Q)),style:_.VA({"max-height":function(){return F().assetContainerMaxHeight!==void 0?F().assetContainerMaxHeight+"px":void 0}})},_.W(_.tZ,{data:b,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.W(_.a,{cond:function(){return F().headerBlock},
then:function(){return _.W("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.W(_.uC,{data:function(){return F().headerBlock}},{contentPreviewImageViewModel:function(Q){return _.W(_.tZ,{data:Q.data,
notifyOnLoaded:!0})}}))}}),_.W(_.a,{cond:function(){return F().customBanner},
then:function(Q){return _.W("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.W(_.uC,{data:Q},{avatarStackViewModel:_.Y9}))}}),_.W(_.a,{cond:function(){return F().headline},
then:function(Q){return _.W("h2",null,_.W(_.mn,{text:Q,className:"ytDialogHeaderViewModelText"}))}}))},"Fj");
NuL.idomCompat=!0;var Ois=_.d(function(C){var F=_.nQB(function(){return C.data().formId}),G=F.submitForm,V=F.isValid;
return _.W("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.W(_.uC,{data:function(){return C.data().panelFooter}},{panelFooterViewModel:function(J){return _.W(_.Uy,{data:J.data,
disablePadding:!0,disablePrimaryButton:function(){return!V()},
onClickPrimaryButton:function(){G()}})}}))},"Gj");var X5M=_.d(function(C){var F=function(){var G,V;return(V=(G=_.Z(C.data().rendererContext,_.$Z))==null?void 0:G.label)!=null?V:""};
return _.W("yt-dialog-image-content-view-model",{class:_.py("ytDialogImageContentViewModelHost",C.className)},_.W(_.a,{cond:function(){return _.Mh(C.data().image)},
then:function(G){var V={};return _.W("div",{style:_.VA((V.width=(0,_.bd)(function(){var J;return(J=C.data().imageMaxWidth)!=null?J:""}),V)),
class:"ytDialogImageContentViewModelImage"},_.W(_.AC,{data:G,alt:F,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.W(_.mn,{text:function(){return C.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Hj");var SFr=_.d(function(C){var F=_.xz(C,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),G=F.elRefCallback;C=F.iconWiz;var V=F.assetWiz,J=F.assetType,b=F.titleWiz,z=F.leadingActionHeaderWiz,Q=F.trailingActionHeaderWiz,E=F.headerPosition,t=F.contentWiz,k=F.buttonLayout,U=F.buttonStyle,H=F.primaryButtonWiz,l=F.secondaryButtonWiz,N=F.contentAlignment,S=F.isFullscreen,f=F.width,c=F.maxHeight,A=F.isHeaderWizDefined,
T=F.headerWiz,P=F.isFooterWizDefined,g=F.footerWiz;F=_.Jt("dialog-layout",function(OB){G==null||G(OB)});
var r=V?function(){return V({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,C9=H?function(){var OB={};
return H({buttonOverrides:function(){return{style:(U==null?void 0:U())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.py((OB["yt-spec-dialog-layout__dialog-layout-button"]=!0,OB["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(k==null?void 0:k())===0||(k==null?void 0:k())===2},OB))})}:void 0,Wo=l?function(){var OB={};
return l({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.py((OB["yt-spec-dialog-layout__dialog-layout-button"]=!0,OB["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(k==null?void 0:k())===0||(k==null?void 0:k())===2},OB))})}:void 0,EB=function(){return(!!b||!!z||!!Q)&&E()===0},L9={},ki={},lZ={},eq={};
return _.W("dialog-layout",{el:F,class:_.py((L9["yt-spec-dialog-layout"]=!0,L9["yt-spec-dialog-layout--dialog-layout-fullscreen"]=S,L9["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!S()},L9["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return c()===1},L9["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(J==null?void 0:J())===1},L9)),
style:function(){return(f==null?void 0:f())!==void 0?"width: "+f+"px;":""}},C?_.W("div",{class:_.py((ki["yt-spec-dialog-layout__dialog-layout-icon"]=!0,ki["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!V&&E()===1},ki["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return N()===1},ki))},_.W(C,null)):null,_.W(_.a,{cond:A,
then:function(){return T?_.W("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.W(T,null)):null},
else:function(){return _.W(_.WQ,null,_.W(_.a,{cond:EB,then:function(){return _.W(w5d,{contentAlignment:N,LeadingActionHeader:z,TrailingActionHeader:Q,Title:b,isAboveAsset:!!r})}}),r?_.W("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.W(r,null)):null)}}),_.W("div",{class:_.py((lZ["yt-spec-dialog-layout__dialog-layout-container"]=!0,lZ["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(N==null?void 0:N())===1},lZ["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=
function(){return!b&&!(T&&A())||!!r&&(E==null?void 0:E())===0},lZ))},_.W(_.a,{cond:function(){return b&&!T&&(E==null?void 0:E())===1},
then:function(){return _.W(w5d,{contentAlignment:N,LeadingActionHeader:z,TrailingActionHeader:Q,Title:b,isAboveAsset:!1})}}),t?_.W("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.W("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.W(t,null))):null,_.W(_.a,{cond:P,
then:function(){return g?_.W("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.W(g,null)):null}}),C9||Wo?_.W(MsL,{footerClasses:_.py((eq["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,eq["yt-spec-dialog-layout__dialog-layout-footer"]=!0,eq["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(k==null?void 0:k())===2},eq["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(k==null?void 0:k())===1},eq)),
PrimaryButton:C9,SecondaryButton:Wo}):null))},"Ij"),w5d=_.d(function(C){var F=_.xz(C,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),G=F.contentAlignment,V=F.LeadingActionHeader;C=F.Title;var J=F.TrailingActionHeader,b=F.isAboveAsset,z=F.enableLeadingActionHeader;F={};return _.W("div",{class:_.py((F["yt-spec-dialog-layout__dialog-header-container"]=!0,F["yt-spec-dialog-layout__dialog-header"]=!0,F["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=b,F["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(G==null?void 0:G())===1&&z()},F))},_.W(_.a,{cond:function(){return z()},
then:function(){return V?_.W("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.W(V,null)):null}}),C?_.W("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.W(C,null)):null,J?_.W("div",null,_.W(J,null)):null)},"Jj"),MsL=_.d(function(C){var F=C.footerClasses;
var G=C.PrimaryButton;C=C.SecondaryButton;return _.W("div",{class:F},C?_.W(C,null):null,G?_.W(G,null):null)},"Kj");var LL_=_.d(function(C){var F=C.data;return _.W("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.W("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.W(_.uC,{data:function(){return F().avatar}},{avatarViewModel:_.g$})),_.W("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.W(_.mn,{text:function(){return F().title}})),_.W(_.mn,{text:function(){return F().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Lj");var Bu8=_.d(function(C){return _.W("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.W("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.W(_.mn,{text:function(){return C.data().inviteMessage}})),_.W("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.W(_.mn,{text:function(){return C.data().attributedAccountSectionHeaderText}})),_.W("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.W(_.uC,{data:function(){return C.data().accountAvatar}},{avatarViewModel:_.g$}),_.W("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.W(_.mn,{text:function(){return C.data().accountName}}),_.W("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.W(_.mn,{text:function(){return C.data().handle}}))),_.W(_.uC,{data:function(){return C.data().trailingButton}},{buttonViewModel:_.tS})),_.W("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.W(_.mn,{text:function(){return C.data().termsOfService}})))},"Mj");var vA8=_.d(function(C){var F=C.data;return _.W("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.W("div",{class:"ytAccessConfirmationViewModelContent"},_.W(_.uC,{data:function(){var G;return(G=F().avatar)!=null?G:F().dualAvatar}},{dualAvatarViewModel:function(G){return _.W(_.YrW,{data:G.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(G){return _.W(_.R7,{data:G.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.W("h2",{class:"ytAccessConfirmationViewModelTitle"},_.W(_.mn,{text:function(){return F().title}})),_.W(_.mn,{text:function(){return F().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Nj");var fyU=_.d(function(C){var F=C.data;var G=void 0;C=_.u(_.Gb(function(){var t;return((t=_.Z(F().content,_.qg))==null?void 0:t.defaultSelectedKey)||""}));
var V=C.next().value,J=C.next().value,b,z=function(){J("");var t;(t=G)!=null&&t.store.dispatch(_.rh({type:"RESET_COMMAND_MAP"}))};
_.q4(function(){G=new yUh;window.addEventListener("yt-popup-closed",z)});
_.sq(function(){if(G&&b!==F().formId&&(G.onInit(F()),(b=F().formId)&&V())){var t=G,k={key:V()};k.command&&t.store.dispatch(VhU(b,k.command))}},"c2n8Gf");
_.q0(function(){window.removeEventListener("yt-popup-closed",z)});
var Q=function(t,k,U){k.key&&U&&k.key!==V()&&(J(k.key),G&&k.command&&G.store.dispatch(VhU(U,k.command)))},E=function(){if(_.Z(F().content,_.qg))return!(V==null?0:V())};
return _.W("yt-dialog-view-model",{class:_.py("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.W(SFr,{headerWiz:function(){return _.W("span",{skip:!0},_.W(_.uC,{data:function(){return F().header}},{dialogHeaderViewModel:function(t){return _.W(NuL,{data:t.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!F().header},
contentWiz:function(){return _.W("span",{skip:!0},_.W(_.uC,{data:function(){return F().customContent?F().customContent:F().content}},{basicContentViewModel:_.TZr,
createPlaylistDialogFormViewModel:WLW,collaborativePlaylistInviteMessageViewModel:Bu8,miniAppScoreChallengeViewModel:ly_,radioButtonGroupViewModel:function(t){var k=t.data;return _.W(_.u0t,{data:k,selectedKey:V,onSelected:Q,groupName:function(){return k().formId}})},
selectionListItemFormViewModel:Zis,upsellViewModel:function(t){return _.W(Hir,{data:t.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:LL_,installmentAgreementsViewModel:EAL,accessConfirmationViewModel:vA8,listViewModel:function(t){return _.W(_.zHO,{data:t.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:X5M}))},
footerWiz:function(){return _.W("span",{skip:!0},_.W(_.uC,{data:function(){return F().footer}},{panelFooterViewModel:function(t){return _.W(_.Uy,{data:t.data,
disablePadding:!0,disablePrimaryButton:E})},
formPanelFooterViewModel:Ois,formFooterViewModel:function(t){return _.W(_.pAt,{data:t.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!F().footer}}))},"Pj");
fyU.idomCompat=!0;_.gQ(fyU,"yt-dialog-view-model",{props:{data:_.CJ},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var hM3=_.d(function(C){var F=C.data;var G=_.quT(function(){return F().rendererContext});
C={};return _.W("yt-panel-header-view-model",{class:_.py("ytPanelHeaderViewModelHost",(C.ytPanelHeaderViewModelHostHideDivider=function(){return!!F().shouldHideDivider},C.ytPanelHeaderViewModelHostCompact=function(){return!!F().subtitle},C)),
"aria-label":function(){var V;return(V=G())==null?void 0:V.label}},_.W("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.W(_.a,{cond:function(){return F().title},
then:function(V){return _.W("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.W(_.mn,{text:V,className:"ytPanelHeaderViewModelTitle"}))}}),_.W(_.a,{cond:function(){return F().subtitle},
then:function(V){return _.W(_.mn,{text:V,className:"ytPanelHeaderViewModelSubtitle"})}})),_.W("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.W(_.uC,{data:function(){return F().trailingButtons}},{buttonViewModel:function(V){return _.W(_.tS,{data:V.data,
className:"ytPanelHeaderViewModelButton"})}})))},"Qj");
hM3.idomCompat=!0;var cUh=_.d(function(C){var F=_.CZ(function(b){var z;if((z=C.skipContentClick)==null?0:z.call(C))return!1;C.onContentWrapperClick(b);return!0}),G,V,J;
return _.W("div",{class:_.py("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return C.isAnimating()?"transform: translateY("+C.currentY()+"px);transition: 0.2s":""}},(G=C.header)==null?void 0:G.call(C),_.W("div",{id:C.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.VA({"max-height":(0,_.bd)(C.maxHeightForContentWrapper)}),"on:scroll":lWt(C.onScroll),"on:touchmove":lWt(function(b){return void b.stopPropagation()})},_.W("div",{el:{onRender:C.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":F},(V=C.body)==null?void 0:V.call(C))),(J=C.footer)==null?void 0:J.call(C))},"Rj");
cUh.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var AU_=_.d(function(C){var F=_.dk(C.leadingLabel),G=_.dk(C.trailingLabel),V=_.dk(C.footerButtonType),J=function(){return F()||G()||C.hasPrimaryButton()||C.hasSecondaryButton()},b={},z=_.py("yt-spec-bottom-sheet-layout__primary-button",(b["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return V()===0&&C.hasPrimaryButton()},b["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return V()===1&&C.hasPrimaryButton()},b["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return V()===2&&C.hasPrimaryButton()},b["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return V()===3&&C.hasPrimaryButton()},b));
b={};var Q=_.py("yt-spec-bottom-sheet-layout__secondary-button",(b["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return V()===1&&C.hasSecondaryButton()},b["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return V()===2&&C.hasSecondaryButton()},b["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return V()===3&&C.hasPrimaryButton()},b));
return _.W(_.a,{cond:C.hasFooterOverride,then:function(){var E;return _.W(_.WQ,null,(E=C.footerOverride)==null?void 0:E.call(C))},
else:function(){return _.W(_.a,{cond:J,then:function(){return _.W("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.W(_.a,{cond:function(){return F()||G()},
then:function(){var E={};return _.W("div",{class:_.py("yt-spec-bottom-sheet-layout__footer-label-wrapper",(E["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!C.hasPrimaryButton()},E))},_.W(_.a,{cond:F,
then:function(){return _.W("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},F)}}),_.W(_.a,{cond:G,
then:function(){return _.W("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},G)}}))}}),_.W(_.a,{cond:function(){return C.hasPrimaryButton()||C.hasSecondaryButton()},
then:function(){var E={};return _.W("div",{class:_.py("yt-spec-bottom-sheet-layout__footer-button-wrapper",(E["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.Te7,E))},_.W(_.a,{cond:function(){return C.hasSecondaryButton()&&V()!==0},
then:function(){var t;return _.W("div",{class:Q},(t=C.secondaryButton)==null?void 0:t.call(C))}}),_.W(_.a,{cond:C.hasPrimaryButton,
then:function(){var t;return _.W("div",{class:z},(t=C.primaryButton)==null?void 0:t.call(C))}}))}}))}})}})},"Sj");
AU_.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var eMW=_.d(function(C){var F=_.dk(C.title),G=_.dk(C.subtitle);return _.W("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:C.headerId,"on:touchstart":_.CZ(function(V){var J;(J=C.touchstart)==null||J.call(C,V);return!1}),
"on:touchmove":_.CZ(function(V){var J;(J=C.touchmove)==null||J.call(C,V);return!1}),
"on:touchend":_.CZ(function(V){var J;(J=C.touchend)==null||J.call(C,V);return!1})},_.W("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.W(_.a,{cond:C.hasHeaderOverride,
then:function(){var V;return _.W(_.WQ,null,(V=C.headerOverride)==null?void 0:V.call(C))},
else:function(){var V={};return _.W("div",{class:_.py((V["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,V["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=F,V))},_.W("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.W(_.a,{cond:F,then:function(){return _.W(_.WQ,null,_.W("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},F),_.W(_.a,{cond:G,then:function(){return _.W("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
G)}}))}})),_.W(_.a,{cond:function(){return F()&&C.hasActionHeader()},
then:function(){var J;return _.W("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(J=C.actionHeader)==null?void 0:J.call(C))}}))}}))},"Tj");
eMW.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.d(function(C){function F(r){if(!c&&typeof MutationObserver!=="undefined"){var C9={childList:!0};"MutationObserver"in window&&(c=new MutationObserver(G.bind(void 0,r)),c.observe(r,C9))}}
function G(r){typeof c!=="undefined"&&(A["content-wrapper"]===void 0&&(A["content-wrapper"]=r.children[0].clientHeight),l(A["content-wrapper"]),H()>N()||S(H()))}
function V(){U(window.innerHeight);H()>N()||S(H());T.isFullScreen[0]()&&H()>N()?P().dispatch("Snap To Full Screen",{maxHeight:f()}):P().dispatch("Snap To Neutral Position",{maxHeight:N()})}
function J(r){document.body.style.overscrollBehavior="none";r.preventDefault();P().dispatch("Touch Start",{event:r})}
function b(r){r.preventDefault();P().dispatch("Touch Move",{event:r,contentScrollable:H()>N(),fullContentWrapperHeight:f(),contentWrapperHeight:N(),contentHeightMap:A,contentWrapperId:"content-wrapper",header:Z2r(C),footer:Z2r(C)})}
function z(){document.body.style.overscrollBehavior="";T.isFullScreen[0]()?T.currentY[0]()>=60?P().dispatch("Snap To Neutral Position",{maxHeight:N()}):P().dispatch("Snap To Full Screen",{maxHeight:f()}):T.currentY[0]()>=60?Q():T.currentY[0]()<=-60&&H()>N()?P().dispatch("Snap To Full Screen",{maxHeight:f()}):P().dispatch("Snap To Neutral Position",{maxHeight:N()})}
function Q(){P().dispatch("Close Sheet",{clientHeight:k(),maxHeight:0});setTimeout(function(){yit()},250)}
var E=_.u(_.yH(window.innerHeight,void 0,"Q6Nekc")),t=E.next().value;E=E.next().value;var k=t,U=E;E=_.u(_.yH(0,void 0,"vjnlmb"));t=E.next().value;E=E.next().value;var H=t,l=E;E=_.u(_.Gb(function(){var r=Z2r(C);return.6*k()-kGM(r)-U5V(r)}));
t=E.next().value;E=E.next().value;var N=t,S=E,f=function(){var r=Z2r(C);return k()-kGM(r)-U5V(r)-24-24},c=null,A={},T={initialY:_.yH(0,void 0,"B0aY2c"),
currentY:_.yH(0,void 0,"nLPMcf"),isAnimating:_.yH(!1,void 0,"lXnnZ"),isFullScreen:_.yH(!1,void 0,"rZZoFe"),maxHeightForContentWrapper:_.Gb(N)},P=function(){var r=null;return function(){if(!r){var C9={initialY:T.initialY[0](),currentY:T.currentY[0](),isAnimating:T.isAnimating[0](),isFullScreen:T.isFullScreen[0](),maxHeightForContentWrapper:T.maxHeightForContentWrapper[0]()};r=H2W(C9)}return r}}();
_.q4(function(){window.addEventListener("resize",V);P().subscribe(function(r){T.initialY[1](r.initialY);T.currentY[1](r.currentY);T.isAnimating[1](r.isAnimating);T.isFullScreen[1](r.isFullScreen);T.maxHeightForContentWrapper[1](r.maxHeightForContentWrapper)})});
_.q0(function(){window.removeEventListener("resize",V);c&&(c.disconnect(),c=null)});
var g=_.py({"bottom-sheet-content-without-icon":function(){var r;return!((r=C.shouldShowIcons)==null?0:r.call(C))}});
return _.W("bottom-sheet-layout",null,_.W(cUh,{contentWrapperId:"content-wrapper",isAnimating:function(){return T.isAnimating[0]()},
currentY:function(){return T.currentY[0]()},
maxHeightForContentWrapper:function(){return T.maxHeightForContentWrapper[0]()},
shouldShowIcons:C.shouldShowIcons,skipContentClick:C.skipContentClick,onScroll:function(){var r=document.getElementById("header-wrapper"),C9=document.getElementById("content-wrapper");if(r&&C9){var Wo={};Wo=(Wo["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,Wo["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,Wo);r.className=C9.scrollTop>1?_.tm(Wo):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:yit,contentWrapperEl:function(r){F(r);requestAnimationFrame(function(){G(r)})},
header:function(){return _.W(eMW,{touchstart:J,touchmove:b,touchend:z,title:C.headerTitle,subtitle:C.headerSubtitle,headerId:"header-wrapper",headerOverride:C.headerFn,hasHeaderOverride:C.hasHeaderFn,actionHeader:C.headerActionHeader,hasActionHeader:C.hasHeaderActionHeader})},
footer:function(){return _.W(AU_,{footerButtonType:C.footerButtonType,leadingLabel:C.footerLeadingLabel,trailingLabel:C.footerTrailingLabel,primaryButton:C.footerPrimaryButton,hasPrimaryButton:C.hasFooterPrimaryButton,secondaryButton:C.footerSecondaryButton,hasSecondaryButton:C.hasFooterSecondaryButton,footerOverride:C.footerFn,hasFooterOverride:C.hasFooterFn})},
body:function(){return _.W(_.a,{cond:C.hasContentFn,then:function(){var r;return _.W("div",{class:g},(r=C.contentFn)==null?void 0:r.call(C))}})}}))},"Uj").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var dgr=_.d(function(C){var F=_.I8().resolve(_.xW);return _.W("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.CZ(function(){return void F.closeSheet()})},_.W(_.a,{cond:function(){return!!C.header},
then:function(){return _.W("div",{class:"ytContextualSheetLayoutHeaderContainer"},C.header())}}),_.W(_.a,{cond:function(){return!!C.content},
then:function(){return _.W("div",{class:"ytContextualSheetLayoutContentContainer"},C.content())}}),_.W(_.a,{cond:function(){return!!C.footer},
then:function(){return _.W("div",{class:"ytContextualSheetLayoutFooterContainer"},C.footer())}}))},"Vj");
dgr.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var xgV=_.d(function(C){C=C.data;var F=_.Jt("yt-sheet-view-model",function(V){if(_.y("web_focus_first_element_sheet")||!_.y("sheet_focus_first_killswitch"))return V.addEventListener("focus",function(){H5s(V)}),function(){V.removeEventListener("focus",function(){H5s(V)})}}),G={};
return _.W("yt-sheet-view-model",{"on:mousedown":_.CZ(function(V){_.y("sheet_focus_first_killswitch")||V.currentTarget!==V.target&&V.preventDefault()}),
"on:focus":_.CZ(function(){_.y("sheet_focus_first_killswitch")||H5s(F.value)}),
class:_.py("ytSheetViewModelHost",(G.ytSheetViewModelContextual=!0,G.ytSheetViewModelDisableBackdropFilter=_.y("web_disable_backdrop_filter"),G)),el:F,tabindex:-1},_.W(_.a,{cond:C,then:function(V){return _.W(dgr,{header:function(){return _.W(_.uC,{data:function(){return V().header}},{panelHeaderViewModel:hM3})},
content:function(){return _.W(_.uC,{data:function(){return V().content}},{listViewModel:function(J){return _.W(_.zHO,{data:J.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:Hir,miniAppScoreChallengeViewModel:ly_})},
footer:function(){return _.W(_.uC,{data:function(){return V().footer}},{panelFooterViewModel:_.Uy})}})}}))},"Wj");
xgV.idomCompat=!0;_.gQ(xgV,"yt-sheet-view-model",{props:{data:_.CJ}});var qF3=_.d(function(C){var F=function(){var G;return(G=C.data().enableDebuggingFeatures)!=null?G:!1};
return _.W("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.W(_.Ag,{each:function(){var G;return(G=C.data().stickers)!=null?G:[]}},function(G){return _.W(sKl,{data:function(){return G},
debugMode:F})}))},"Xj"),sKl=_.d(function(C){var F=_.xz(C,{debugMode:!1}).debugMode,G=_.dk(function(){var E;
return(E=C.data().region)==null?void 0:E.w},0),V=_.dk(function(){var E;
return(E=C.data().region)==null?void 0:E.h},0),J=_.dk(function(){var E;
return(E=C.data().region)==null?void 0:E.x},0),b=_.dk(function(){var E;
return(E=C.data().region)==null?void 0:E.y},0),z=_.CZ(function(){var E=C.data().onTap;
E&&_.wQ(E)}),Q={};
return _.W("div",{class:_.py("ytStoriesStickerLayerViewModelSticker",(Q.ytStoriesStickerLayerViewModelDebugMode=F,Q)),style:_.VA({width:function(){return 100*G()+"%"},
height:function(){return 100*V()+"%"},
left:function(){return 100*J()+"%"},
top:function(){return 100*b()+"%"},
"flex-direction":function(){return Nnl(C.data().flexDirection)},
"justify-content":function(){return O2t(C.data().justifyContent)},
"align-items":function(){return Xcx(C.data().alignItems)}}),
"on:click":z},_.W(_.uC,{data:function(){return C.data().button||C.data().toggleButton}},{buttonViewModel:function(E){return _.W(_.tS,{data:E.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(E){return _.W(_.AS,{data:E.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Yj");var gA3=_.d(function(C){var F=function(){return C.data()},G={},V=_.u(_.yH(!1,void 0,"SegA3d")),J=V.next().value,b=V.next().value,z=_.dk(function(){return F().backgroundColor},0);
V=_.dk(function(){return F().actionButtons},[]);
var Q=_.dk(function(){return F().stickerLayer},{}),E=function(){var k,U;
return{animationRef:G,animationConfig:{autoplay:!1,loop:!1,path:(U=(k=F().foregroundAnimation)==null?void 0:k.url)!=null?U:"",name:"stories_item_foreground_animation"},listeners:{data_ready:function(){b(!0)},
complete:function(){C.navigateToNextItemOnLottieComplete()}}}},t=function(){var k,U,H,l,N,S,f,c;
return{animationConfig:{autoplay:(S=(k=F().backgroundAnimation)==null?void 0:(U=k.settings)==null?void 0:U.autoplay)!=null?S:!1,loop:(f=(H=F().backgroundAnimation)==null?void 0:(l=H.settings)==null?void 0:l.loop)!=null?f:!1,path:(c=(N=F().backgroundAnimation)==null?void 0:N.url)!=null?c:"",name:"stories_item_background_animation"}}};
_.sq(function(){if(C.isVisible()&&J()){var k;(k=G.lottieEl)==null||k.play();C.animationRef()&&(C.animationRef().lottieEl=G.lottieEl)}else{var U;(U=G.lottieEl)==null||U.stop()}},"MxM2wb");
return _.W("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.VA({"background-color":function(){return _.lE(z())+";"}})},_.W("div",{class:"ytStoriesItemViewModelAssetContent"},_.W(_.a,{cond:function(){return!!F().backgroundAnimation},
then:function(){return _.W(_.NQ,{data:t,animationName:function(){return t().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.W(_.a,{cond:function(){return!!F().backgroundImage},
then:function(){return _.W(_.AC,{data:function(){return F().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.W(_.a,{cond:function(){return!!F().foregroundAnimation},
then:function(){return _.W(_.NQ,{data:E,animationName:function(){return E().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.W(_.a,{cond:function(){return!!F().foregroundImage},
then:function(){return _.W(_.AC,{data:function(){return F().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.W("div",{class:"ytStoriesItemViewModelTopShadow"}),_.W(_.uC,{data:function(){return Q()}},{storiesStickerLayerViewModel:qF3})),_.W("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.VA({"background-color":function(){return _.lE(z())}})},_.W("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.W(_.Ag,{each:V},function(k){return _.W(P3r,{data:function(){return k},
pauseAutoNavigation:C.pauseAutoNavigation})}))))},"$j"),RMh={style:"overlay",
type:"outline"},P3r=_.d(function(C){var F={};return _.W("div",{class:_.py("ytStoriesItemViewModelActionButton",(F.ytStoriesItemViewModelStretchedActionButton=function(){return C.data().size==="STORIES_BUTTON_SIZE_STRETCH"},F)),
"on:click":_.CZ(C.pauseAutoNavigation)},_.W(_.uC,{data:function(){return C.data().button}},{buttonViewModel:function(G){return _.W(_.tS,{data:G.data,
buttonOverrides:RMh})}}))},"ak");var YFU={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.gQ(_.d(function(C){var F=function(){var ki;return(ki=C.data().startIndex)!=null?ki:0},G=_.u(_.Gb(F)),V=G.next().value,J=G.next().value;
G=_.u(_.yH(!1,void 0,"qWlrrc"));var b=G.next().value,z=G.next().value,Q=function(){var ki;return(ki=C.data().storyItems)!=null?ki:[]},E={},t=_.Jt("yt-stories-viewer-view-model"),k=function(){return C.data().dismissButton},U=function(){var ki;
return _.ZD((ki=_.Z(k(),_.jl))==null?void 0:ki.onTap)},H=_.Jt("div"),l,N,S=!1,f=function(){var ki;
(ki=l)==null||ki.cancel();l=c(V()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});l.onfinish=function(){var lZ=_.Z(Q()[V()],gVM),eq,OB;lZ!=null&&lZ.foregroundAnimation&&((lZ==null?0:(eq=lZ.foregroundAnimation)==null?0:eq.url)||(lZ==null?0:(OB=lZ.foregroundAnimation)==null?0:OB.payload))||(V()!==Q().length-1?(J(V()+1),f()):U()&&_.ND(U()))}},c=function(ki){return H.value.children[ki].children[0]},A=function(){for(var ki=0;ki<V();ki++)c(ki).style.transform=
"scaleX(1)"},T=function(){S||(b()?z(!1):(V()===Q().length-1&&U()&&_.ND(U()),c(V()).style.transform="scaleX(1)",V()!==Q().length-1&&(J(V()+1),f())))},P=function(){S||(b()?z(!1):(c(V()).style.transform="scaleX(0)",V()!==0&&J(V()-1),f()))},g=function(){z(!0)},r=function(){c(V()).style.transform="scaleX(1)";
V()!==Q().length-1?(J(V()+1),f()):U()&&_.ND(U())};
G=function(){S=!1;N=setTimeout(function(){z(!0);S=!0},300)};
var C9=function(){clearTimeout(N);S&&b()&&z(!1)};
_.sq(function(){if(b()){var ki;(ki=l)==null||ki.pause();var lZ;(lZ=E.lottieEl)==null||lZ.pause()}else{var eq;(eq=l)==null||eq.play();var OB;(OB=E.lottieEl)==null||OB.play()}},"utQ8Hb");
_.sq(function(){A();V()===F()&&f()},"UsBAlc");
var Wo=function(ki){ki.key==="ArrowLeft"?P():ki.key==="ArrowRight"&&T()},EB=function(ki){if(ki.target===t.value){(ki=U())&&_.ND(ki);
clearTimeout(N);var lZ;(lZ=l)==null||lZ.cancel();window.removeEventListener("keydown",Wo);window.removeEventListener("yt-popup-closed",EB)}},L9=function(ki){ki.target===t.value&&(window.addEventListener("keydown",Wo),window.addEventListener("yt-popup-closed",EB))};
_.q4(function(){A();f();window.addEventListener("yt-popup-opened",L9)});
return _.W("yt-stories-viewer-view-model",{el:t,class:_.py("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.W("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.W("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.CZ(P),"on:mousedown":_.CZ(G),"on:mouseup":_.CZ(C9),"on:mouseleave":_.CZ(C9)}),_.W("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.CZ(T),"on:mousedown":_.CZ(G),"on:mouseup":_.CZ(C9),"on:mouseleave":_.CZ(C9)})),
_.W("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.W(_.uC,{data:Q},{storiesItemViewModel:function(ki,lZ){var eq=ki.data;return _.W(_.a,{cond:function(){return Math.abs(lZ()-V())<=1},
then:function(){var OB={};return _.W("div",{class:_.py("ytStoriesViewerViewModelStoryItem",(OB.ytStoriesViewerViewModelActiveStoryItem=function(){return lZ()===V()},OB))},_.W(gA3,{data:eq,
pauseAutoNavigation:g,navigateToNextItemOnLottieComplete:r,isVisible:function(){return lZ()===V()},
animationRef:E}))}})}})),_.W("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:H},_.W(_.Ag,{each:Q},function(){return _.W("div",{class:"ytStoriesViewerViewModelProgressBar"},_.W("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.W("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.W(_.AC,{data:YFU,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.W("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.W(_.uC,{data:k},{buttonViewModel:_.tS}))))},"dk"),"yt-stories-viewer-view-model",{props:{data:_.CJ}});_.gQ(_.d(function(C){var F=C.data;var G=_.Jt("yt-gen-ai-feedback-form-view-model"),V=[];return _.W("yt-gen-ai-feedback-form-view-model",{el:G,class:"ytGenAiFeedbackFormViewModelHost"},_.W(_.mn,{text:function(){return F().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.W("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.W(_.uC,{data:function(){return F().feedbackChips}},{toggleButtonViewModel:function(J){var b=J.data;
return _.W(_.AS,{data:b,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(z){var Q=b();Q=_.Z(Q,_.Gz);Q=_.Z(Q==null?void 0:Q.defaultButtonViewModel,_.jl).trackingParams;z?V.push(Q):(z=V.indexOf(Q),z>-1&&V.splice(z,1))}})}})),_.W(_.mn,{text:function(){return F().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.W("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.W(_.uC,{data:function(){return F().submitButton}},{buttonViewModel:function(J){return _.W(_.tS,{data:J.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){wcL(G.value,V,F().uniqueId)}})}}),_.W(_.uC,{data:function(){return F().moreFeedbackButton}},{buttonViewModel:function(J){return _.W(_.tS,{data:J.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"ek"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.CJ},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var ef=function(){return _.B.apply(this,arguments)||this};
_.O(ef,_.B);ef.prototype.created=function(){JPx(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(ojr);var C=_.I8().resolve(_.VE_);C&&(C.container=this.ytPopupContainerBehavior);if(C=_.I8().resolve(_.xW))C.container=this.ytPopupContainerBehavior;if(C=_.I8().resolve(_.sY)){var F=this.ytPopupContainerBehavior;C.containerWasInjected?_.Yw(Error("qj")):C.container=F}};
ef.prototype.ensurePopupBelowPlayer=function(C,F){var G=_.I8().resolve(_.Qt(_.qG));if(!G||!G.isOnWatch()||!_.gE())return!1;G=G.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.bE().height>G+this.getPopupHeight(C,F)?(C.style.top="auto",C.style.bottom="0px"):(C.style.top=G+"px",C.style.bottom="auto");return!0};
ef.prototype.getPopupHeight=function(C,F){F&&(C.cachedPopupHeight=0);if(!C.cachedPopupHeight){F=0;var G=C.clientHeight,V=window.getComputedStyle(C);F+=parseInt(V.marginTop,10);F+=parseInt(V.marginBottom,10);C.cachedPopupHeight=G+F}return C.cachedPopupHeight};
ef.prototype.getElement=function(C){return document.createElement(C)};
_.R([_.w(LGr.YtPopupContainerBehavior),_.Y("design:type",Object)],ef.prototype,"ytPopupContainerBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],ef.prototype,"ytComponentBehavior",void 0);_.R([_.e({disableElementRegistration:!0,is:"ytd-popup-container"})],ef);
_.q(ef,"ytd-popup-container",function(){if(lGr!==void 0)return lGr;var C=document.createElement("template");_.X(C,"\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");C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);return lGr=C},{mode:1});var Tur;var oAt={};oAt.YtLogYpcFlowCommandsBehavior=[_.Z7.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(C){_.Z(C,b$L)&&(C=_.Z(C,b$L))&&(C.serializedTransactionFlowLoggingParams?_.H$S(C.serializedTransactionFlowLoggingParams):C.serializedYpcCancelFlowLoggingParams?(C=C.serializedYpcCancelFlowLoggingParams)&&_.kA("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",C):C.serializedYpcResumeFlowLoggingParams?(C=C.serializedYpcResumeFlowLoggingParams)&&_.kA("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",C):C.serializedYpcPauseFlowLoggingParams?(C=C.serializedYpcPauseFlowLoggingParams)&&
_.kA("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",C):C.serializedYpcRefundFlowLoggingParams?(C=C.serializedYpcRefundFlowLoggingParams)&&DDV("YPC_EVENT_TYPE_START",C):C.serializedYpcDeactivateFlowLoggingParams?(C=C.serializedYpcDeactivateFlowLoggingParams)&&_.kA("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",C):C.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(C=C.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.kA("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",C))},
handleLogYpcFlowDismiss_:function(C){_.Z(C,$OV)&&(C=_.Z(C,$OV),C.serializedTransactionFlowLoggingParams?_.lZs(C.serializedTransactionFlowLoggingParams):C.serializedYpcCancelFlowLoggingParams?(C=C.serializedYpcCancelFlowLoggingParams)&&_.kA("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",C):C.serializedYpcResumeFlowLoggingParams?(C=C.serializedYpcResumeFlowLoggingParams)&&_.kA("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",C):C.serializedYpcPauseFlowLoggingParams?(C=
C.serializedYpcPauseFlowLoggingParams)&&_.kA("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",C):C.serializedYpcRefundFlowLoggingParams&&(C=C.serializedYpcRefundFlowLoggingParams)&&DDV("YPC_EVENT_TYPE_CANCEL",C))}}];var rUs={};rUs.YtCancelRecurrenceBehavior=[_.Ys.YtComponentBehavior,_.P$l,{attached:function(){var C=this;PTs(this,function(F,G){return C.ypcCancelRecurrenceHandler(F,G)})},
ypcCancelRecurrenceHandler:function(C,F){var G=this;if(!F||!F.ypcCancelRecurrenceEndpoint)return!1;if(!F.ypcCancelRecurrenceEndpoint.params)return _.ri(Error("Rl")),!0;_.Xc(this.hostElement);var V=_.BB.instance,J=_.I8().resolve(_.Qt(_.zt));V&&_.vB(V,F)?_.fZ(V,F).then(function(b){G.ypcCancelRecurrenceSuccess_(C,F,{data:b})},function(b){G.ypcCancelRecurrenceFailure_(C,F,b)}).thenCatch(function(){_.ri(Error("Sl"))}):J?J.requestDataForServiceEndpoint(F).then(function(b){G.ypcCancelRecurrenceSuccess_(C,
F,b)},function(b){G.ypcCancelRecurrenceFailure_(C,F,b)}).thenCatch(function(){_.ri(Error("Sl"))}):_.ri(Error("Tl"));
return!0},
ypcCancelRecurrenceSuccess_:function(C,F,G){_.wJ(this.hostElement);G.data||(G={data:G});G.data&&G.data.actions&&_.pX(this.hostElement,G.data.actions,this.hostElement);G.data.messageRenderer?mDM(F.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(F=F.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.kA("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",F);_.oo(C,"yt-service-request-completed",G)},
ypcCancelRecurrenceFailure_:function(C,F,G){_.wJ(this.hostElement);mDM(F.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.oo(C,"yt-service-request-error",{error:G,params:[C,F]})}}];var KLV=function(C,F){_.FS.call(this,F)};
_.O(KLV,thx);var DgL={};DgL.YtCompleteTransactionBehavior=[_.Ys.YtComponentBehavior,_.P$l,{attached:function(){var C=this;PTs(this,function(F,G){return C.ypcCompleteTransactionHandler(F,G)})},
completeTransaction:function(C,F){var G=this;F={payments_payload:window.btoa(F.integratorData),buybucket_params:C.data.buybucketParams,offer_params:C.data.offerParams};var V=_.I8().resolve(_.zt),J=C.data.completeTransactionEndpoint,b=this.get("ypcCompleteTransactionEndpoint.actions",J);b&&_.pX(this.hostElement,b,this.hostElement);return(b=_.BB.instance)&&_.vB(b,J)?_.fZ(b,J,F).then(function(z){return!z||(z==null?0:z.error)?(z=G.get("data.serializedTransactionFlowLoggingParams",C),_.W6(new ns("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
z))):{data:z}}).then(function(z){return G.handleCompleteTransactionSuccess_(z,C)},function(){return G.handleCompleteTransactionFailure_(C)}):V.requestDataForServiceEndpoint(J,F).then(function(z){return G.handleCompleteTransactionSuccess_(z,C)},function(){return G.handleCompleteTransactionFailure_(C)})},
handleCompleteTransactionSuccess_:function(C,F){C.data||(C={data:C});if(C.data.messageRenderer)return _.W6(new KLV(C.data.messageRenderer));if(C.data.trackingParams){var G=_.ZQ(),V=_.lm();G&&V&&_.vA(G,V,_.zS(C.data.trackingParams))}F=this.get("data.serializedTransactionFlowLoggingParams",F);p6x(F);return _.mE(C)},
handleCompleteTransactionFailure_:function(C){C=this.get("data.serializedTransactionFlowLoggingParams",C);_.hR("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",C);return _.W6(new ns("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",C))},
ypcCompleteTransactionHandler:function(C,F){var G=this;if(!F.ypcCompleteTransactionEndpoint)return!1;if(!F.ypcCompleteTransactionEndpoint.transactionParams)return _.ri(Error("Ul")),!0;F.ypcCompleteTransactionEndpoint&&F.ypcCompleteTransactionEndpoint.gtmData&&_.hh(F.ypcCompleteTransactionEndpoint.gtmData);var V=_.I8().resolve(_.Qt(_.zt));if(V){_.Xc(this.hostElement);var J=_.BB.instance;J&&_.vB(J,F)?_.fZ(J,F).then(function(b){return!b||(b==null?0:b.error)?(b=G.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
F),_.W6(new ns("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",b))):{data:b}}).then(function(b){_.oo(C,"yt-service-request-completed");
G.ypcCompleteTransactionSuccess_(F,b)},function(){return G.ypcCompleteTransactionFailure_(F)}):V.requestDataForServiceEndpoint(F).then(function(b){_.oo(C,"yt-service-request-completed");
G.ypcCompleteTransactionSuccess_(F,b)},function(){return G.ypcCompleteTransactionFailure_(F)})}return!0},
ypcCompleteTransactionSuccess_:function(C,F){_.wJ(this.hostElement);F.data||(F={data:F});_.rz(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);F.data.messageRenderer||F.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(C):(_.hh('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",C));F.data.actions&&(C=Ubd(F.data.actions),F=HVs(F.data.actions),C.length&&_.DQ(this.hostElement,
C),F.length&&_.pX(this.hostElement,F,this.hostElement))},
ypcCompleteTransactionFailure_:function(C){_.wJ(this.hostElement);_.rz(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",C,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(C,F,G){if(F=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",F))F={serializedTransactionFlowLoggingParams:F},G&&(F.errorType=G),_.q1(C,F),_.P8()}}];var p5r={};p5r.YtEndpointHandlerWithYpcBehavior=[_.P$l,_.Z7.YtActionHandlerBehavior,[{openWalletDialog:function(C,F,G,V,J,b,z){var Q=this,E=_.hM();F=F.replace(/-/g,"+").replace(/_/g,"/");var t=_.bQ().get("hl");_.c1w(_.xZ(_.cr),F,E.resolve,J,function(k){b&&b();E.reject(k)},t,function(k){return Q.onServerBackendAnalyticEvent_(C,G,k)},this.onDialogClose_.bind(this),V,z);
return E.promise},
openFixFlowDialog:function(C,F,G,V){C=C.replace(/-/g,"+").replace(/_/g,"/");_.xZ(_.cr).openFixFlowDialog(C,F,G,V)},
onDialogClose_:function(){_.rz(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(C,F,G){_.oo(C,"yt-commerce-action-init-done");F&&_.DQ(this.hostElement,[F,{backend_analytics:G}])}}],
_.lc.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(C,F){C=this.get("data.nativeFlowEndpoint",F);F=this.get("data.fallbackEndpoint",F);C?_.DQ(this.hostElement,[C]):F&&_.oo(this.hostElement,"yt-navigate",{endpoint:F})}}],
rUs.YtCancelRecurrenceBehavior,DgL.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 C=this;PTs(this,function(F,G,V){return C.handleYPCEndpoint(F,G,V)});
this.ypcRegisterActionMapJobId_=_.c8(_.gT,function(){C.registerActionMap(C.buyFlowActionMap_)})},
detached:function(){var C=this;_.gT.cancelJob(this.ypcRegisterActionMapJobId_);_.c8(_.gT,function(){C.unregisterActionMap(C.buyFlowActionMap_)})},
handleYPCEndpoint:function(C,F,G){var V=F.ypcGetCartEndpoint;if(V){_.Z8("commerce_transaction");var J=V.gtmId;J&&_.fS(J);(V=V.gtmData)&&_.hh(V)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",F)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(C,F),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",F)!=null?(this.handleYPCFixInstrumentEndpoint_(C,F),!0):F.ypcPauseSubscriptionCommand?(AiW(this.hostElement,C,F,G),
!0):F.ypcResumeSubscriptionCommand?(x5W(this.hostElement,C,F),!0):F.getPaymentInstrumentsParamsCommand?(fWx(this.hostElement,C,F),!0):F.ypcHandleTransactionEndpoint?(Bn_(this.hostElement,C,F,G),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(C,F){var G=this;_.NV("ttcr",void 0,"commerce_transaction");F=F.ypcGetCartEndpoint;var V=F.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,J=V.encryptedPurchaseParams,b=V.serializedTransactionFlowLoggingParams,z=V.serializedPaymentsClientParams,Q=this.createGetCartResponseFromParams_(V,F.offerParams,b);this.changeButtonState(C,!0);_.OW(this.openWalletDialog(C,J,V.ypcLogWalletAnalyticDataEndpoint,b,function(){G.changeButtonState(C,!1)},function(){G.changeButtonState(C,
!1)},z).then(function(E){return G.handleBuyFlowCompleteCallback_(C,Q,E)},function(){return G.handleOnLoadError(Q)}).then(function(E){return void G.handlePostPurchaseSuccess_(C,Q,E)},function(E){return void G.handlePostPurchaseError_(E)}),function(){G.changeButtonState(C,!1);
C instanceof Element&&_.oo(C,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(C,F,G){var V=C.completeTransactionEndpoint,J=C.handleTransactionEndpoint;F={data:{offerParams:window.btoa(F),serializedTransactionFlowLoggingParams:G}};J?F.data.handleTransactionEndpoint=J:F.data.completeTransactionEndpoint=V;C.onCartDismissCommand&&(F.data.onCartDismissCommand=C.onCartDismissCommand);return F},
onGetCartServiceRequestCompleted_:function(C,F){var G=this,V=C.target;if(F&&F.data&&F.data.messageRenderer)_.wJ(this.hostElement),this.handleMessageRenderer_(F.data.messageRenderer),this.changeButtonState(V,!1);else{var J=this.get("data.encryptedPurchaseParams",F),b=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",F),z=this.get("data.ypcLogWalletAnalyticDataEndpoint",F),Q=this.get("data.serializedPaymentsClientParams",F),E=this.getLoggingParams_(F);if(E||J||b)C.stopPropagation(),_.NV("ttcr",
void 0,"commerce_transaction"),J||_.wJ(this.hostElement),this.changeButtonState(V,!1),b?_.rz(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.TF("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:b}}},this]):J&&(this.changeButtonState(V,!0),C=null,C=this.openWalletDialog(V,J,z,E,function(){_.wJ(G.hostElement);G.changeButtonState(V,!1)},function(){_.wJ(G.hostElement);
G.changeButtonState(V,!1)},Q),_.OW(C.then(function(t){return G.handleBuyFlowCompleteCallback_(V,F,t)},function(){return G.handleOnLoadError(F)}).then(function(t){return G.handlePostPurchaseSuccess_(V,F,t)},function(t){return G.handlePostPurchaseError_(t)}),function(){G.changeButtonState(V,!1);
_.oo(V,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(C,F){F&&F.endpoint&&F.endpoint.ypcGetCartEndpoint&&!F.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",F.endpoint.ypcGetCartEndpoint)&&_.pX(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",F.endpoint.ypcGetCartEndpoint)],C.target),_.Xc(this.hostElement),this.changeButtonState(C.target,!0))},
onServiceRequestError_:function(C,F){if(F&&F.params&&F.params.length){F=_.u(F.params);for(var G=F.next();!G.done;G=F.next())if((G=G.value)&&G.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",G.ypcGetCartEndpoint)&&_.pX(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",G.ypcGetCartEndpoint)],C.target);_.wJ(this.hostElement);this.changeButtonState(C.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(C,F,G){var V=G.integratorData;return V==null||V===""||G.error!=null?(V=this.getLoggingParams_(F),String(G.error)==="-1"?(F.data.onCartDismissCommand&&_.pX(this.hostElement,[F.data.onCartDismissCommand],C),_.W6(new ns("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",V,!0))):_.W6(new ns("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",V))):F.data.handleTransactionEndpoint?vLd(this.hostElement,F.data.handleTransactionEndpoint,{payments_payload:V,funds_guarantee_callback_client_data:G.integratorClientCallbackData}):
this.completeTransaction(F,G)},
handlePostPurchaseSuccess_:function(C,F,G){F=G.data;var V=!1,J,b;if(F&&((J=F.command)==null?0:(b=J.commandExecutorCommand)==null?0:b.commands)){var z,Q;J=(z=F.command)==null?void 0:(Q=z.commandExecutorCommand)==null?void 0:Q.commands;for(z=0;z<J.length;z++)if(_.Z(J[z],_.R2m)){V=!0;break}}V||(F&&F.gtmDatas&&F.gtmDatas.length?_.hh(F.gtmDatas[0]):_.hh('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));G.data&&G.data.actions&&(F=Ubd(G.data.actions),G=HVs(G.data.actions),F.length&&
_.DQ(this.hostElement,F),G.length&&_.pX(this.hostElement,G,C))},
handlePostPurchaseError_:function(C){C&&C.payload&&C.payload.isUserDismiss||_.gD(Error("Wl"))},
handleOnLoadError:function(C){C=this.getLoggingParams_(C);return _.W6(new ns("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",C))},
getLoggingParams_:function(C){return this.get("data.serializedTransactionFlowLoggingParams",C)},
handleMessageRenderer_:function(C){var F=_.gi(C,"renderer"),G=_.TF("openPopupConfig");F==="confirmDialogRenderer"&&G&&_.rz(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:G.popupTypeMap[F],popup:C}},this])},
handleYPCFixInstrumentEndpoint_:function(C,F){var G=this,V=F.ypcFixInstrumentEndpoint;F=V.encryptedFixInstrumentParameters;this.logFixFopEvent_(V,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(C,!0);this.openFixFlowDialog(F,function(J,b){G.onFixFlowCompleteCallback_(V,J,b)},function(){return G.changeButtonState(C,!1)},function(){G.changeButtonState(C,!1);
G.logFixFopEvent_(V,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(C,F,G){var V=_.mN("payments.business.integration.scenario.FixInstrument");if(F==V.IntegratorCallbackType.ON_COMPLETE){F="FIX_FOP_EVENT_TYPE_CANCEL";var J=null;G.error!=null?G.error!=V.OnCompleteCallbackError.USER_CANCELLED&&(_.pX(this.hostElement,[C.errorAction],this.hostElement),F="FIX_FOP_EVENT_TYPE_FAILURE",J="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.pX(this.hostElement,[C.successAction],this.hostElement),F="FIX_FOP_EVENT_TYPE_SUCCESS");_.pX(this.hostElement,[C.onFinishAction],
this.hostElement);this.logFixFopEvent_(C,F,J)}},
logFixFopEvent_:function(C,F,G){(C=C.serializedFixFopLoggingParams)?(F={eventType:F,serializedFixFopLoggingParams:C},G!=null&&(F.errorType=G),_.q1("fixFopFlow",F),_.P8()):_.gD(Error("Xl"))},
changeButtonState:function(C,F){_.y("enable_ypc_spinners")&&C&&(C.is==="yt-button-renderer"||C.is==="ytd-button-renderer")&&(C.disabled=F)}}];var mgM=function(C){this.JSC$32680_clientRoot=C;this.feedbackCollectorActionMap={"yt-help-dialog-requested":qjM,"yt-feedback-dialog-requested":s3t,"yt-signal-action-help":Pgs,"yt-signal-action-send-feedback":gLV,"yt-send-feedback-action":YjV,"yt-user-feedback-endpoint":Tn3};_.GA(_.FV.getInstance(),this.feedbackCollectorActionMap,this.JSC$32680_clientRoot)},Ct8;var jb_=function(C){this.JSC$32685_clientRoot=C;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":oLL.bind(null,this.JSC$32685_clientRoot),"yt-signal-action-delete-all-downloads":K73,"yt-signal-action-delete-download":D5U,"yt-signal-action-delete-playlist-download":m58,"yt-signal-action-install-pwa":ikV,"yt-signal-action-refresh-downloads":Gix,"yt-offline-video-endpoint":$Et,"yt-offline-playlist-endpoint":nkW,"yt-update-local-app-setting-command":zXM,"yt-offline-orchestration-action-command":InL,
"yt-signal-action-undo-delete-download":jFx,"yt-local-watch-history-command":tIt};_.GA(_.FV.getInstance(),this.downloadManagerActionMap,this.JSC$32685_clientRoot);_.Ld.instance=new _.Ld},FKL;var dF=function(){var C=_.B.apply(this,arguments)||this;C.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_"};C.remoteApi_=null;return C};
_.O(dF,_.B);_.n=dF.prototype;
_.n.ready=function(){_.y("polymer_enable_mdx")&&(px3({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.y("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.y("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.y("enable_cast_short_lived_lounge_token")}),_.a1("yt-remote-connection-change",this.handleConnectionChange_,this),_.a1("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=J6W())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.n.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.n.handleConnectionChange_=function(C){(this.mdxConnected=C)?(C=jEt(),!C&&dx3()&&xx8()&&(C={key:"cast-selector-receiver",name:xx8()}),C=C.name):C=null;this.receiverName=C;_.uz(this.remoteApi_);(this.remoteApi_=J6W())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.n.handleReceiverAvailabilityChange_=function(){var C=CVV();dx3()&&_.Wr("yt-remote-cast-available")&&C.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=C.length>0};
_.n.handleRemoteQueueChange_=function(){var C=this.currentVideoId_,F=this.currentListId_,G=sE(this.remoteApi_);this.currentVideoId_=G.videoId;this.currentListId_=G.listId;this.currentVideoId_&&_.rz(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.y("polymer_enable_mdx_queue")?this.currentListId_:null,C,F])};
_.n.handleAddToQueueAction_=function(C){C=_.Z(C,R3h);this.remoteApi_&&(C.videoId?this.remoteApi_.addVideo(C.videoId):C.playlistId&&this.remoteApi_.addPlaylist(C.playlistId))};
_.n.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.n.handleInsertInQueueAction_=function(C){C=_.Z(C,YG_);this.remoteApi_&&C.videoId&&this.remoteApi_.JSC$20083_insertVideo(C.videoId)};
_.n.handleRemoveFromQueueAction_=function(C){C=_.Z(C,TPU);this.remoteApi_&&C.videoId&&this.remoteApi_.JSC$20083_removeVideo(C.videoId)};
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],dF.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L(),_.Y("design:type",Object)],dF.prototype,"appId",void 0);_.R([_.L(),_.Y("design:type",Boolean)],dF.prototype,"mdxConnected",void 0);_.R([_.L(),_.Y("design:type",Boolean)],dF.prototype,"receiverAvailable",void 0);_.R([_.L(),_.Y("design:type",Object)],dF.prototype,"receiverName",void 0);_.R([_.L(),_.Y("design:type",Object)],dF.prototype,"currentVideoId_",void 0);
_.R([_.L(),_.Y("design:type",Object)],dF.prototype,"currentListId_",void 0);_.R([_.Z5({is:"yt-mdx-manager",disableElementRegistration:!0})],dF);_.q(dF,"yt-mdx-manager",void 0,{mode:2});var G08;var Vas;var x4=function(){var C=_.B.apply(this,arguments)||this;C.APP_IDS={ytr:3,ytm:5};C.JSC$21311_timeoutId_=0;C.actionMap={"yt-open-create-family-dialog":"open"};return C};
_.O(x4,_.B);_.n=x4.prototype;_.n.created=function(){JPx(2200)};
_.n.detached=function(){this.observer_&&this.observer_.disconnect()};
_.n.open=function(C,F){var G=this,V=C.serializedYpcFamilyCreateLoggingParams;this.JSC$21311_timeoutId_=setTimeout(this.abort_.bind(this,C.postFlowErrorEndpoint,V),3E4);F&&(this.onReadyCallback_=F);var J=_.ot(this.hostElement).querySelector("#unicorn-iframe");V&&V&&Krh("ypcFamilyCreateFlowStarted",V);_.iHs("family_creation",function(){var b=_.mN("gapi.family_creation.render");_.mN("gapi.config.update")("iframes/family_creation/url",G.getFamilyCreationUrlWithUnicornParams_());var z=3;C.appId&&C.appId in
G.APP_IDS&&(z=G.APP_IDS[C.appId]);z={authUser:_.TF("SESSION_INDEX")||0,clientId:z,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.TF("HL"),initialflow:[4,5,6,7],m:G.isMobile?1:0,onFlowComplete:G.onUnicornFlowComplete_.bind(G,C.postFlowSuccessEndpoint,V),onError:G.onUnicornFlowError_.bind(G,C.postFlowErrorEndpoint,V),onReady:G.onUnicornFlowReady_.bind(G,C.referencePcidParams)};b(J,z)})};
_.n.close=function(){_.ot(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.n.onUnicornFlowComplete_=function(C,F){this.close();F&&F&&Krh("ypcFamilyCreateFlowSucceeded",F);_.oo(this.hostElement,"yt-navigate",{endpoint:C})};
_.n.onUnicornFlowError_=function(C,F){this.close();F&&Krh("ypcFamilyCreateFlowCancelled",F);_.oo(this.hostElement,"yt-navigate",{endpoint:C})};
_.n.onUnicornFlowReady_=function(C){var F=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();C&&_.mN("gapi.family_creation.setConfig")(0,C);this.observer_=new MutationObserver(function(){_.ot(F.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.ot(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.ot(this.hostElement).querySelector("#dialog").open()};
_.n.getFamilyCreationUrlWithUnicornParams_=function(){return _.TF("YTR_FAMILY_CREATION_URL")};
_.n.getCurrentUrl_=function(){return document.location.href};
_.n.abort_=function(C,F){this.clearTimeout_();this.onUnicornFlowError_(C,F)};
_.n.clearTimeout_=function(){clearTimeout(this.JSC$21311_timeoutId_)};
_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],x4.prototype,"ytActionHandlerBehavior",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],x4.prototype,"isMobile",void 0);_.R([_.L(),_.Y("design:type",Object)],x4.prototype,"onReadyCallback_",void 0);_.R([_.L(),_.Y("design:type",Object)],x4.prototype,"observer_",void 0);_.R([_.Z5({is:"yt-create-family-dialog",disableElementRegistration:!0})],x4);
_.q(x4,"yt-create-family-dialog",function(){if(Vas===void 0){var C=document.createElement("template");_.X(C,'\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');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);var F=C.content,G=F.insertBefore;G08===void 0&&(G08=document.createElement("template"));var V=G08;G.call(F,V.content.cloneNode(!0),C.content.firstChild);Vas=C}C=Vas;return C},{mode:2});var iNs;var JNs;var s_=function(){var C=_.B.apply(this,arguments)||this;C.STEP=1;C.BLOCK_ON=80;C.MIN_PROGESS=0;C.MAX_PROGESS=100;return C};
_.O(s_,_.B);_.n=s_.prototype;_.n.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.n.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));_.I8().addProvider({provide:BbM,useValue:this})};
_.n.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.n.finish=function(){var C=this;this.progress=this.MAX_PROGESS;an3(function(){C.progress==C.MAX_PROGESS&&(C.hostElement.hidden=!0)})};
_.n.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.I6.Object.defineProperties(s_.prototype,{progress:{configurable:!0,enumerable:!0,set:function(C){this.progress_=C;var F="scaleX("+C/this.MAX_PROGESS+")",G=_.ot(this.hostElement).querySelector("#progress").style;G.transform=F;G.webkitTransform=F;this.hostElement.setAttribute("aria-valuenow",String(C))},
get:function(){return this.progress_}}});
_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],s_.prototype,"ytComponentBehavior",void 0);_.R([_.Z5({is:"yt-page-navigation-progress",disableElementRegistration:!0})],s_);
_.q(s_,"yt-page-navigation-progress",function(){if(JNs===void 0){var C=document.createElement("template");_.X(C,'\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');C.content.insertBefore(_.K().content.cloneNode(!0),
C.content.firstChild);var F=C.content,G=F.insertBefore;iNs===void 0&&(iNs=document.createElement("template"));var V=iNs;G.call(F,V.content.cloneNode(!0),C.content.firstChild);JNs=C}C=JNs;return C},{mode:2});var $F_={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"},bNU={"font-size":"12px","font-style":"italic"},nur={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.lnt=function(){return _.I(function(C){_.S9(C)})};var u8h=_.d(function(C){var F=function(){return C.data().subtext},G={};
return _.W("snackbar-view-model",{class:_.py("snackbarViewModelHost",C.className)},_.W("div",{class:_.py("snackbarViewModelEngagementBarWrapper",C.className)},_.W(_.a,{cond:function(){return C.data().image},
then:function(V){return _.W(_.AC,{data:V,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.W(_.a,{cond:function(){return C.data().imageContent},
then:function(){return _.W("div",{class:"snackbarViewModelAvatarContainer"},_.W(_.uC,{data:function(){return C.data().imageContent}},{decoratedAvatarViewModel:_.R7}))}}),_.W("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.W("div",{class:_.py((G.snackbarViewModelTitle=!0,G.snackbarViewModelTitleWithSubtext=F,G))},_.W(_.mn,{text:function(){return C.data().text}})),_.W(_.a,{cond:F,
then:function(){return _.W("div",{class:"snackbarViewModelSubtext"},_.W(_.mn,{text:function(){return F()}}))}})),_.W(_.a,{cond:function(){return C.data().buttons},
then:function(){return _.W("div",{class:"snackbarViewModelButtonClassWrapper"},_.W(_.uC,{data:function(){return C.data().buttons}},{buttonViewModel:function(V){return _.W(_.tS,{data:V.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:C.target})}}))}})))},"fk");_.gQ(_.d(function(){function C(A,T,P){N(A);f(P);H("in");k(!0);F(A,T);z=setTimeout(function(){G()},T)}
function F(A,T){var P,g=(P=A.text)==null?void 0:P.content;A=_.UI(A.rendererContext);g&&(T={label:g,command:A,durationMs:T},_.I8().resolve(_.G9).enqueue(T))}
function G(A){H("out");A&&clearTimeout(z)}
function V(){G(!0)}
function J(A){if(A){var T=A.snackbarViewModel,P=A.durationMs,g=A.target;P||(P=3E3);T&&(A=_.I8().resolve(_.Qt(_.pI)))&&A.enqueue({isOpened:t,open:function(){C(T,P,g)},
close:G},0)}}
var b=_.nc("snackbar-container"),z=void 0,Q=_.u(_.yH(!1,void 0,"mDc5N")),E=Q.next().value;Q=Q.next().value;var t=E,k=Q;E=_.u(_.yH("out",void 0,"FpOs5e"));var U=E.next().value,H=E.next().value;E=_.u(_.yH(void 0,void 0,"jIDRob"));var l=E.next().value,N=E.next().value;E=_.u(_.yH(void 0,void 0,"kOA3Mb"));var S=E.next().value,f=E.next().value,c=_.CZ(function(){if(U()==="out"){k(!1);N(void 0);f(void 0);var A=_.I8().resolve(_.Qt(_.pI));A&&kes(A,0)}});
_.q4(function(){var A=_.I8().resolve(_.Qt(_.VyU));A&&(A.showSnackbarFn=J,A.closeSnackbarFn=V)});
return _.W("snackbar-container",{class:"ytSnackbarContainerHost",el:b},_.W(_.a,{cond:function(){return t()&&!!l()},
then:function(){var A={};return _.W("div",{class:_.py("ytSnackbarContainerSnackbarContainer",(A.ytSnackbarContainerMobile=!1,A.ytSnackbarContainerPivotBar=function(){var T;return!((T=_.I8().resolve(_.Qt(_.iAr)))==null||!T())},A.ytSnackbarContainerOpened=function(){return t()&&U()==="in"},A.ytSnackbarContainerClosed=function(){return t()&&U()==="out"},A)),
"on:animationend":c},_.W(u8h,{data:function(){return l()},
target:function(){return S()}}))}}))},"gk"),"snackbar-container");_.gQ(_.d62,"yt-tooltip");var zzl=_.Pzd.ephemeralActionSelector;_.gQ(_.d(function(){var C=_.nZ(zzl);return _.W("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var F;return(F=C())==null?void 0:F.announcement})},"hk"),"yt-ephemeral-actions");var xEr=new Map;var Lmx=function(C,F){var G=this;this.handleError=C;this.logEventInternal=F;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){G.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
Lmx.prototype.logError=function(C){this.handleError(C)};
Lmx.prototype.logEvent=function(C,F){switch(C){case "IDB_DATA_CORRUPTED":_.y("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",F);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",F);break;case "IS_SUPPORTED_COMPLETED":_.y("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",F);break;case "QUOTA_EXCEEDED":Qbr(this,F);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",F);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":C=Object.assign({},F,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",C)}};
var Qbr=function(C,F){_.i3.getInstance().estimate().then(function(G){G=Object.assign({},F,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:qVV(G==null?void 0:G.usage),deviceStorageQuotaMbytes:qVV(G==null?void 0:G.quota)});C.logEventInternal("idbQuotaExceeded",G)})};var I_r=_.d(function(C){var F=_.Jt("yt-draggable"),G=C.onDrag,V=C.onDragStart,J=C.onDragEnd,b=_.xz(C,{allowClicks:!1,dragThreshold:5}),z=b.dragThreshold,Q=b.allowClicks;C=b.children;b=b.className;var E=void 0,t=void 0,k=new _.ql(0,0),U=!1;_.q4(function(){E=new _.Ac(F.value);t=new _.tu(l);H(E,t);if(Q()){_.O_2(E,z());var S;(S=F.value)==null||S.addEventListener("click",N,{capture:!0})}_.q0(function(){var f;(f=E)==null||f.dispose();if(Q()){var c;(c=F.value)==null||c.removeEventListener("click",N,{capture:!0})}})});
var H=function(S,f){_.IP(S,"earlycancel",function(){Q()&&(U=!1)});
_.IP(S,"start",function(c){V==null||V(c);c.defaultPrevented||Q()&&(U=!0)});
_.IP(S,"beforedrag",function(c){E&&t&&(c.preventDefault(),k=new _.ql(c.clientX-E.startX,c.clientY-E.startY),t.start())});
_.IP(S,"end",function(){f.stop();J==null||J();k=new _.ql(0,0)})},l=function(){k&&G(k)},N=function(S){U&&(U=!1,S.stopPropagation(),S.preventDefault())};
return _.W("yt-draggable",{el:F,class:_.py("ytDraggableComponentHost",b)},C)},"ik");var Eut=_.d(function(C){var F=_.u(_.yH(0,void 0,"Qf0tbc")),G=F.next().value,V=F.next().value;F=function(J){var b={},z={};return _.W(I_r,{className:_.py("ytdMiniplayerComponentResizer",(b.ytdMiniplayerComponentResizerDisabled=function(){return J===C.horizontalAlignment()||J===C.verticalAlignment()},b.ytdMiniplayerComponentResizerNorth=J==="north",b.ytdMiniplayerComponentResizerEast=J==="east",b.ytdMiniplayerComponentResizerSouth=J==="south",b.ytdMiniplayerComponentResizerWest=J==="west",b)),
onDragStart:function(){V(C.currentMiniplayerSize());if(C.onResizeStart)C.onResizeStart()},
onDrag:function(Q){J!=="north"&&J!=="west"||Q.scale(-1);var E;Q=(E=J==="north"||J==="south")?Q.y:Q.x;var t=C.currentAspectRatio();E&&t>=1?Q*=t:!E&&t<1&&(Q/=t);E=Q;C.onResize(G()+E)}},_.W("div",{class:_.py("ytdMiniplayerComponentResizerCorner",(z.ytdMiniplayerComponentResizerNorthCorner=J==="north",z.ytdMiniplayerComponentResizerEastCorner=J==="east",z.ytdMiniplayerComponentResizerSouthCorner=J==="south",z.ytdMiniplayerComponentResizerWestCorner=J==="west",z))}))};
return _.W("div",{class:"ytdMiniplayerComponentResizers"},F("north"),F("east"),F("south"),F("west"))},"jk");var WKr=16/9;_.gQ(_.d(function(){var C=_.Jt("ytd-miniplayer"),F=_.u(_.yH(new _.Ml(NaN,NaN),void 0,"NHaFyc")),G=F.next().value,V=F.next().value;F=_.u(_.yH(!1,void 0,"a0rwG"));var J=F.next().value,b=F.next().value;F=_.u(_.yH(!1,void 0,"f1jSeb"));var z=F.next().value,Q=F.next().value;F=_.u(_.yH(!1,void 0,"JojXKc"));var E=F.next().value,t=F.next().value;F=_.u(_.yH(!1,void 0,"FjS8Db"));var k=F.next().value,U=F.next().value;F=_.u(_.yH(!1,void 0,"z5WG9e"));var H=F.next().value,l=F.next().value;F=_.u(_.yH(!1,void 0,"eUzZd"));
var N=F.next().value,S=F.next().value;F=_.u(_.yH(WKr,void 0,"XsBIy"));var f=F.next().value,c=F.next().value,A=_.u(_.yH(!1,void 0,"FJSvse"));F=A.next().value;var T=A.next().value;A=_.u(_.yH(!1,void 0,"VDUFL"));var P=A.next().value,g=A.next().value;A=_.u(_.yH(void 0,void 0,"nFeh4b"));var r=A.next().value,C9=A.next().value;A=_.u(_.yH(WJ()?"west":"east",void 0,"T7co7c"));var Wo=A.next().value,EB=A.next().value;A=_.u(_.yH("south",void 0,"QDUsLb"));var L9=A.next().value,ki=A.next().value;A=_.u(_.yH(400,
void 0,"F7Vdze"));var lZ=A.next().value,eq=A.next().value,OB=_.I8().resolve(_.Od).miniplayerPropSignalMap[0],yr=OB.data,Rl=OB.externalPlaylistData;A=OB.toastData;var w2=OB.playabilityStatus,jG=OB.isReadyToResume,Il=OB.isDisabled,Bu=OB.watchWhile,vu=OB.playerVe,Zr=OB.expandVe,k_=OB.closeVe,$i=OB.readyToResumeVe,Vr=OB.readyToResumeCloseVe,Um=OB.repositionVe,V8=OB.resizeVe;OB=_.u(_.Gb(jG));var Hu=OB.next().value,Gh=OB.next().value,hW=_.nZ(_.SV.persistentPanelVisibleSelector),YS=!1,Em=!1,Qr;_.q4(function(){V(_.bE());
C.value.addEventListener("animationend",function(pP){pP.target===C.value&&(l(!1),S(!1))});
ok_(C.value)});
_.i9("yt-window-resized",function(pP){pP&&V(pP)});
var FM=function(){Qr&&c(Qr.getVideoAspectRatio())},ow=function(){if(Qr){var pP=Qr.getPlayerState()===1;
Hu()&&pP&&Gh(!1)}},kS=function(){var pP=Zr();
if(pP){var XM=_.ZQ(3);XM&&_.ej(XM,pP)}},HV=function(){var pP=k_(),XM=Vr();
pP&&_.ej(_.ZQ(3),pP);jG()&&XM&&_.ej(_.ZQ(3),XM)};
_.i9("yt-activate-miniplayer",function(pP){var XM;return _.I(function(is){if(is.nextAddress==1)return J()?is.return():is.yield((XM=_.I8().resolve(_.Od).getPlayerElement())==null?void 0:XM.getPlayerPromise(),2);Qr=is.yieldResult;if(!Qr)return is.return();!P()&&_.y("kevlar_watch_while_v2")&&(ki(pP&&!_.y("kevlar_watch_while_bottom_align")?"north":"south"),EB(WJ()?"west":"east"));var nf=Qr;nf.addEventListener("onVideoDataChange",FM);nf.addEventListener("onStateChange",ow);nf.addEventListener("onExpandMiniplayer",
kS);nf.addEventListener("onCloseMiniplayer",HV);c(Qr.getVideoAspectRatio());b(!0);T8M()||l(!0);_.S9(is)})});
_.i9("yt-deactivate-miniplayer",function(pP,XM){return _.I(function(is){if(!J())return is.return();b(!1);Gh(!1);S(pP);U(!1);Q(!1);if(Qr){var nf=Qr;nf.removeEventListener("onVideoDataChange",FM);nf.removeEventListener("onStateChange",ow);nf.removeEventListener("onExpandMiniplayer",kS);nf.removeEventListener("onCloseMiniplayer",HV)}T8M()||XM?XM&&l(!1):l(!0);_.S9(is)})});
var r9=function(){return!(Bu()&&_.y("kevlar_watch_while_modern"))},BV=function(){var pP;
return!((pP=Rl())==null||!pP.contents)},qa=function(){var pP=lZ();
var XM=G();XM=Math.min(Math.min(XM.width,XM.height)-32,720);var is=f(),nf=r9(),jo=BV()&&z(),oR=Math.min(pP,XM);pP=new _.Ml(192,nf?116:192);is=new _.Ml(jo?WKr:is,1);oR=new _.Ml(oR,nf?oR-76:oR);oR=is.aspectRatio()>oR.aspectRatio()?oR.width/is.width:oR.height/is.height;is=is.scale(oR);pP.width<=is.width&&pP.height<=is.height||(pP=is.aspectRatio()<=pP.aspectRatio()?pP.width/is.width:pP.height/is.height,is.scale(pP),is.width=Math.min(is.width,XM),is.height=Math.min(is.height,XM));return new _.Ml(is.width,
_.lV(192,is.height+pNt(nf,jo),720))},mh=function(){var pP=qa(),XM=r9(),is=BV()&&z();
return new _.Ml(pP.width,pP.height-pNt(XM,is))},nA=function(){var pP=function(XM){XM.target===C.value&&k()&&(U(!1),C.value.removeEventListener("transitionend",pP))};
T8M()||(C.value.addEventListener("transitionend",pP),U(!0));Q(!z())};
_.sq(function(){var pP=vu(),XM=_.ZQ(3),is=_.lm(3);if(XM&&is&&pP){_.vA(XM,is,pP);is=Um();var nf=V8(),jo=Zr(),oR=k_(),A2=Vr();jo&&oR&&A2&&(_.fl(XM,pP,[jo,oR,A2]),_.cA(XM,[jo,oR]));is&&nf&&_.fl(XM,pP,[is,nf])}},"UBpUDd");
_.sq(function(){var pP=$i();if(pP){var XM=_.ZQ(0),is=_.lm(0);XM&&is&&(_.vA(XM,is,pP),_.cA(XM,[pP]))}},"fQpBzb");
OB={};return _.W("ytd-miniplayer",{el:C,class:_.py("ytdMiniplayerComponentHost",(OB.ytdMiniplayerComponentVisible=function(){return(J()||H())&&!(Bu()&&_.y("kevlar_watch_while_counterfactual"))},OB.ytdMiniplayerComponentAnimatingSnap=E,OB.ytdMiniplayerComponentAnimatingPlaylistExpand=k,OB.ytdMiniplayerComponentAnimatingFade=H,OB),function(){if(H()){var pP=L9();
var XM=J(),is=N();pP=XM?pP==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":is?pP==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":pP==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else pP="";return pP}),
style:_.VA({top:function(){return L9()==="north"?"16px":""},
right:function(){var pP=Wo(),XM=hW();XM=(XM===void 0?0:XM)&&!WJ()?400:0;return pP==="east"?16+XM+"px":""},
bottom:function(){return L9()==="south"?"16px":""},
left:function(){var pP=Wo(),XM=hW();XM=(XM===void 0?0:XM)&&WJ()?400:0;return pP==="west"?16+XM+"px":""},
width:function(){return qa().width+"px"},
height:function(){return qa().height+"px"},
transform:function(){var pP=r();return pP?"translate("+pP.x+"px, "+pP.y+"px)":""}})},_.W("div",{class:"ytdMiniplayerComponentContent"},_.W(I_r,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(pP){var XM=DEs(Wo(),L9(),G(),qa(),r()),is=mh();Math.abs(pP.clientY-(XM.y+is.height))>15?(T(!0),pP=_.ZQ(3),XM=Um(),YS||(YS=!0,pP&&XM&&_.cA(pP,[XM])),pP&&XM&&_.ej(pP,XM)):pP.preventDefault()},
onDrag:function(pP){C9(pP)},
onDragEnd:function(){var pP=r8t(DEs(Wo(),L9(),G(),qa(),r()),G(),qa()),XM=KSr(Wo(),L9(),G(),qa(),hW()),is=KSr(pP.horizontalAlignment,pP.verticalAlignment,G(),qa(),hW());is=new _.ql(is.x-XM.x,is.y-XM.y);var nf;XM=XM.y+(((nf=r())==null?void 0:nf.y)||0)+qa().height/2;var jo=function(){Wo()===pP.horizontalAlignment&&L9()===pP.verticalAlignment||g(!0);EB(pP.horizontalAlignment);ki(pP.verticalAlignment);C9(void 0)},oR=function(A2){A2.target===C.value&&E()&&(t(!1),jo(),C.value.removeEventListener("transitionend",
oR))};
T(!1);L9()==="south"&&XM>G().height?(jo(),_.I8().resolve(_.Od).close()):(C.value.addEventListener("transitionend",oR),t(!0),C9(is))}},_.W(_.a,{cond:J,
then:function(){return _.W(_.PH8,{isDisabled:Il,playabilityStatus:w2,size:mh})}}),_.W(_.a,{cond:r9,
then:function(){return _.W(_.s8W,{isReadyToResume:Hu,data:yr,expanded:z,onExpandClick:nA,playlistData:Rl})}}),_.W(_.a,{cond:F,
then:function(){return _.W("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.W(_.a,{cond:function(){return BV()&&z()||k()},
then:function(){return _.W(_.iTs,{className:"ytdMiniplayerComponentPlaylistPanel",data:Rl,hideHeaderText:!0,withinMiniplayer:!0})}}),_.W("div",{class:"ytdMiniplayerComponentToast"},_.W(_.gUW,{toastData:A}))),_.W(Eut,{onResize:function(pP){eq(_.lV(192,pP,720))},
onResizeStart:function(){var pP=_.ZQ(3),XM=V8();Em||(Em=!0,pP&&XM&&_.cA(pP,[XM]));pP&&XM&&_.ej(pP,XM)},
currentAspectRatio:f,currentMiniplayerSize:lZ,horizontalAlignment:Wo,verticalAlignment:L9}))},"mk"),"ytd-miniplayer",{});var taL=_.SV.persistentPanelVisibleSelector,qP=function(){var C=_.B.apply(this,arguments)||this;C.tabGesturesIsActive=!1;C.persistentPanelEnabled=_.y("enable_ai_companion");C.hasDelegation=!1;C.darkerDarkTheme=_.y("web_darker_dark_theme");C.isFrostedGlassInitialized=!1;C.frostedGlassExp=_.y("web_frosted_glass");C.hasPendingWatchNavigation=!1;C.mastheadHiddenFocusWithinKillswitch=_.y("web_masthead_hidden_focus_within_killswitch");C.clientOnlyWizTooltipsEnabled=_.y("enable_client_only_wiz_tooltips")&&
HTMLElement.prototype.hasOwnProperty("popover");C.scrollAtTop=!0;C.guideScrollTop=0;C.isTheaterModeSession=_.oD("START_IN_THEATER_MODE");C.iMaxTheaterMode=_.y("web_watch_imax_theater_mode");C.isFullWindowSession=_.oD("START_IN_FULL_WINDOW_MODE");C.hasCreateFamilyDialog=!1;C.mastheadHeight=56;C.networkStatusManager=new _.FP;C.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"};C.dynamicActionMap={"yt-run-attestation-command":function(F){var G=
_.YL8.instance,V=_.Z(F,_.npS);return V?_.y("use_rta_manager_for_async")&&trL()?rPM(G,V,F.clickTrackingParams):o8s(G,V,F.clickTrackingParams):_.W6(Error("pi"))}};
C.isFrostedGlassDisabled=!1;C.isChannelOrPlaylistPage=!1;return C};
_.O(qP,_.B);_.n=qP.prototype;_.n.created=function(){var C=_.I8();_.y("kevlar_clear_duplicate_pref_cookie")&&_.c8(_.gT,function(){var F=_.BD.get("PREF");F&&!/f\d=/.test(F)&&(F=_.kU("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=F?"PREF=null;domain="+F+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.y("gzip_gel_with_worker")&&_.jNT();_.y("jspb_serialize_with_worker")&&sNV();_.y("web_worker_availability_check")&&sFx();_.y("nwl_init_killswitch")||drx().then(function(){_.gT.addLowPriorityJob(zT8)});
this.pageManagerAttachedPromise=_.hM();this.ytdAppBehavior.loadDepsPromise=_.NX([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.FX(this.onThrottledScroll,200,this);_.y("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);Bkr();WHd=!!_.mN("ytappsettings.initialized");Qb=_.mN("ytappsettings.previousValue");Lrr=_.mN("ytappsettings.previousSnapshotTime");WHd||(WHd=!0,BQr());aoU();kCs();_.Yn("DEFERRED_DETACH",
_.y("kevlar_tuner_should_defer_detach"));_.Yn("REUSE_COMPONENTS",!0);_.Yn("STAMPER_STABLE_LIST",!0);_.Yn("SCHEDULED_LAZY_LIST",!0);_.Yn("openPopupConfig",Tb3);_.Yn("useClickHandler",!0);_.y("kevlar_shell_cleanup")&&_.gT.addLowPriorityJob(UD_.bind(this,_.VT.caches));_.oD("IS_SHELL_LOAD")&&_.UZ({shellStartupDurationMs:Math.round((0,_.Et)()-_.EZ())});OkU(this.networkStatusManager);_.y("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",kir($F_)),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!",
kir(bNU)),console.log("%cVisit http://go/join-youtube-web to apply today.",kir(nur)));_.jol(C.resolve(_.js),1E3)};
_.n.ready=function(){var C=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var F=DrV();F&&!_.y("external_fullscreen_killswitch")&&document.addEventListener(F,this.setFullscreen.bind(this));(F=window.matchMedia("(prefers-color-scheme: dark)"))&&F.addEventListener&&F.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(F=_.I8().resolve(_.Qt(_.FtE)))F.subscribe("navigation-start",
function(G){G.destinationPageSubtype==="watch"&&(C.hasPendingWatchNavigation=!0)}),F.subscribe("navigation-end",function(G){G.destinationPageSubtype==="watch"&&(C.hasPendingWatchNavigation=!1)})};
_.n.attached=function(){var C=this;_.Vc().processSignal("ci");_.y("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.m3m?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.CV(_.OqZ(),"SUCCESS");this.updateIconSet();_.Y6(this.guideInnerContent,!1);_.w6().initVisibilityObserver();this.guideService.guideElement=this.guide;var F=document.createElement("ytd-miniplayer"),G=_.ot(this.hostElement).querySelector("#content");
_.ot(this.hostElement).insertBefore(F,G);_.Vc().processSignal("ma");_.I8().resolve(_.Od).init(F);this.persistentPanelEnabled&&_.$z_(_.I8().resolve(_.qj),this.persistentPanelContainer,"APP");_.oD("IS_SHELL_LOAD")&&(G=document.createElement("ytd-network-status-banner"),_.ot(this.hostElement).insertBefore(G,F));_.y("kevlar_right_click_on_lockups")&&_.Dw._onCaptureClick&&document.addEventListener("contextmenu",_.Dw._onCaptureClick.bind(_.Dw),!0);var V=function(){var J=_.JS("yt-page-navigation-progress");
_.ot(C.hostElement).appendChild(J)};
setTimeout(function(){_.Vc().parkOrScheduleJob(V,0,"eocs",16)},0);
_.y("service_worker_push_enabled")&&_.c8(_.gT,rCd);_.GA(_.FV.getInstance(),this.dynamicActionMap,this.hostElement);_.oo(this.hostElement,"ytd-app-attached");_.Vc().processSignal("aa");u1W(this.hostElement);_.zn("gapi.load",_.iHs);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.c8(_.gT,
function(){var J=document.createElement("ytd-video-preview");_.ot(_.ot(C.hostElement).querySelector("#video-preview")).appendChild(J)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.c8(_.gT,function(){y8r();C.registerWithViewTransitionManager()});
if(_.Sv()&&this.isAppDarkTheme()!==_.w7())this.onDarkModeToggledAction();else F=_.Mz()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==F&&(_.y("enable_dark_theme_only_on_shorts")?_.Xp(_.y("enable_dark_theme_only_on_shorts_control")?window.location.href:_.iH(window.location.href,{theme:"dark"})):_.Yw(new _.Ay("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(DAr=new KZr(this.hostElement)),FKL=new jb_(this.hostElement),Ct8=new mgM(this.hostElement),tgM=new WQr(this.hostElement)};
_.n.getThemeSettingsToLog=function(){var C=_.Mz()==="USER_INTERFACE_THEME_DARK";C=_.Sv()?_.w7()?"os-dark":"os-light":C?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:C,cookiesEnabled:_.fD()}};
_.n.detached=function(){_.T_(this.guideInnerContent);_.gT.cancelJob($Q);$Q=0;_.gT.cancelJob(nu);nu=0;_.Ees(ned);ned.length=0;JCM=_.$Rs=null;_.w6().dispose();_.y("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.V3(_.FV.getInstance(),DAr.playlistHandlerActionMap,DAr.JSC$32394_clientRoot);_.V3(_.FV.getInstance(),FKL.downloadManagerActionMap,FKL.JSC$32685_clientRoot);_.V3(_.FV.getInstance(),Ct8.feedbackCollectorActionMap,Ct8.JSC$32680_clientRoot);
for(var C=_.u(tgM.eventListeners),F=C.next();!F.done;F=C.next()){var G=_.u(F.value);F=G.next().value;G=G.next().value;G=_.u(G);for(var V=G.next();!V.done;V=G.next()){var J=_.u(V.value);V=J.next().value;J=J.next().value;F.removeEventListener(V,J)}}_.V3(_.FV.getInstance(),tgM.autonavPauseActionMap,tgM.JSC$20266_clientRoot)};
_.n.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.bQ().getFlag(186)};
_.n.computeIsInlinePreviewEnabled=function(C,F,G){return!G&&_.YH3({miniplayerIsActive:C,miniplayerPlaybackState:F})};
_.n.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.rh({type:"SET_FROSTED_GLASS_MODE",payload:!_.y("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"}))};
_.n.computeIsFrostedGlassDisabled=function(C,F,G,V){return C||F||G||V&&_.y("web_frosted_glass_disable_watch")};
_.n.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.y("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.n.computeIsHomePage=function(C,F){if(!C||F==null||!F.endpoint)return!1;var G;return((G=_.Z(F.endpoint,_.iE))==null?void 0:G.browseId)==="FEwhat_to_watch"};
_.n.updateIsChannelOrPlaylistPage=function(){if(_.y("web_frosted_glass")){var C,F,G=(F=(C=_.I8().resolve(_.Qt(_.qG)))==null?void 0:C.getCurrentPage())==null?void 0:F.pageSubtype;this.isChannelOrPlaylistPage=G?["channel","channels","playlist"].includes(G):!1}};
_.n.scheduleFrostedGlassInitialization=function(){var C=this;_.y("web_frosted_glass")&&_.Vc().parkOrScheduleJob(function(){C.isFrostedGlassInitialized=!0},0,_.UF(["eocs",
"cr"]),300)};
_.n.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.gju(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.rh({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.rh({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.n.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(JBt(!0))};
_.n.onYtSignalActionRequestPersistentStorage=function(){if(!_.y("request_persistent_storage_killswitch")){var C=_.I8().resolve(_.lBW);C.cachedPersistStatePromise||(C.cachedPersistStatePromise=MBr())}};
_.n.handleYtChannelCreationFormEndpoints=function(C){C&&this.ytComponentBehavior.resolveCommand(C)};
_.n.handleShowEngagementPanelEndpoint=function(C){C&&this.ytComponentBehavior.resolveCommand(C)};
_.n.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(JBt(!1))};
_.n.initIconDefs=function(C,F){var G=document.createElement("iron-iconset-svg");G.name=C;C=document.createElementNS("http://www.w3.org/2000/svg","svg");G.appendChild(C);C.appendChild(F);document.body.appendChild(G);return G};
_.n.onWindowResized=function(){_.rz(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var C=_.H$.getInstance();C.documentWidth_=document.body.clientWidth;lf_(C)};
_.n.onWindowScrolled=function(){var C=_.I8().resolve(_.qG).getCurrentPage();if(C!=null&&C.getScrollTop){var F=this.ytdReduxBehavior,G=F.dispatch;C=C.getScrollTop()<=0;G.call(F,_.rh({type:"SET_SCROLL_AT_TOP",payload:C}))}};
_.n.guideIsVisibleButNotPersistentSelectorChanged=function(){var C=_.I8().resolve(_.qG).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=C.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"),
C.setScrollTop(this.guideScrollTop));_.KX(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.n.getCurrentPageScrollableElementType=function(){var C=_.I8().resolve(_.qG).getCurrentPage();if(C&&C.getPageScrollingElement())return C.getPageScrollingElement().nodeName};
_.n.observeGuideVisibility=function(){var C=_.H$.getInstance(),F=this.miniGuideVisible;C.guidePersistentAndVisible_=this.guidePersistentAndVisible;C.miniGuideVisible_=F;lf_(C)};
_.n.observePersistentPanelVisibility=function(){var C=_.H$.getInstance();C.persistentPanelVisible_=this.persistentPanelVisible;lf_(C)};
_.n.handleEduDismissAction=function(C){C&&C.eduDismissAction&&(_.rz(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.o1r.getInstance(),_.ks.set(C.eduDismissAction.key+"-dismissed",!0))};
_.n.handleEduImpressionAction=function(C){if(C&&C.eduImpressionAction){var F=_.o1r.getInstance();C=C.eduImpressionAction.key;F.JSC$13181_eduDisplayedThisLoad_[_.TYO[C].setKey||C]=!0;_.ks.set(C+"-impression",parseInt(_.ks.get(C+"-impression")||0,10)+1)}};
_.n.onYtSignalActionConfirmMentionsEdu=function(){_.rz(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.yc.getInstance();_.lM.set("edu-dismissed",!0)};
_.n.onYtSignalActionRecordMentionsEduImpression=function(){_.yc.getInstance();var C=_.lM.set,F=parseInt(_.lM.get("edu-impressions"),10);C.call(_.lM,"edu-impressions",(isFinite(F)?F:0)+1)};
_.n.onYtPageManagerAttached=function(C){var F;((F=_.ev(C))==null?void 0:F.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.n.onInvokeInstrumentManagerAction=function(C,F){YVd(F,C)};
_.n.updateIconSet=function(){var C=this.hostElement.querySelector("#masthead");if(C){var F=_.r7(C),G=F.querySelector("g#yt-logo-updated");G&&(C=document.createElementNS("http://www.w3.org/2000/svg","defs"),C.appendChild(G.cloneNode(!0)),(F=F.querySelector("g#yt-logo-red-updated"))&&C.appendChild(F.cloneNode(!0)),this.initIconDefs("yt-logos-ext",C))}};
_.n.updateMastheadData=function(){var C=this,F,G,V,J,b;return _.I(function(z){if(z.nextAddress==1){F=C.data;G=C.hostElement.querySelector("#masthead");if(!G)return z.return();_.zH(C,function(){G.data=C.topbarData});
if(!C.get("response.topbar",F)||C.get("response.topbar.responseContext.maxAgeSeconds",F)===0)return z.jumpTo(0);if(V=_.I8().resolve(_.h_))return z.yield(V(),6);J=_.I8().resolve(_.lY);return z.yield(J.put("service:topbar:fallback",new _.yU({innertubeResponse:C.get("response.topbar",F)})),0)}return(b=z.yieldResult)?z.yield(b.put("service:topbar:fallback",new _.yU({innertubeResponse:C.get("response.topbar",F)})),0):z.jumpTo(0)})};
_.n.computeTopbarData=function(C){if(!C)return null;var F;return this.isShortsPage&&this.topbarData&&!_.Z((F=C.response)==null?void 0:F.topbar,BPd)?this.topbarData:C.response&&"topbar"in C.response?_.Z(C.response.topbar,BPd)||null:null};
_.n.onSetTheaterModeEnabled=function(C,F){this.isTheaterModeSession=F.enabled;this.setTheaterModeStyles(F.enabled)};
_.n.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.n.onDarkModeToggledAction=function(){var C=_.X$(window.location.href);if(!_.uYZ(C)){(C=!!_.Vt(window.location.href).themeRefresh)&&_.Yw(new _.Ay("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!C){BQr();C={themeRefresh:1};var F=_.I8().resolve(_.qG);if(F.isOnWatch()){var G,V;F=((G=F.getPlayerFromWatch())==null?void 0:(V=G.getPlayer())==null?void 0:V.getCurrentTime())||0;F>=1&&(C.time_continue=Math.floor(F))}_.fD()||_.Mz()!=="USER_INTERFACE_THEME_DARK"||(C.theme="dark");_.Xp(_.iH(window.location.href,
C))}_.y("web_appshell_refresh_trigger")&&_.VT.caches&&this.refreshAppShellResponse();G=_.v9(window.location.href);_.OY(_.I8().resolve(_.Xi),_.P9(G,"theme"))}};
_.n.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.n.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.n.onPlayerFullscreen=function(C){_.gz();this.playerFullscreen=C};
_.n.setRestrictedMode=function(C){var F=_.bQ();_.nl(0,58,C);F.save();_.I8().resolve(_.Xx).reload()};
_.n.onPageChanged=function(C){C.detail.newPageType==="ytd-watch-flexy"||C.detail.newPageType==="ytd-watch-fixie"||C.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.t6("WEB_PAGE_TYPE_WATCH")):C.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.t6("WEB_PAGE_TYPE_SHORTS")):C.detail.newPageType==="ytd-browse"&&C.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.t6("WEB_PAGE_TYPE_MINI_APP")):_.y("web_frosted_glass")&&C.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.t6("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.t6("WEB_PAGE_TYPE_UNKNOWN"));C.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.n.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.n.onGuideToggleTap=function(){_.oo(this.hostElement,"yt-guide-toggle")};
_.n.onGuideToggleHover=function(){_.oo(this.hostElement,"yt-guide-hover")};
_.n.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.n.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.n.setMastheadTheme=function(){var C=_.r7(this.hostElement).querySelector("#masthead");C&&(C.dark=C.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),C.isDarkThemeForced=!1)};
_.n.onRequestPanelModeChange=function(C,F){this.hideHeaderShadow=F.mode!=="seamed"};
_.n.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.n.onDrawerIronSelect=function(C){_.ev(C).id==="guide"&&this.processDrawerIronSelect()};
_.n.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var C="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(C="opened"));_.oo(this.hostElement,"yt-autonav-pause-guide-"+C)};
_.n.onAddElementToApp=function(C){_.ot(this.hostElement).appendChild(C.detail)};
_.n.onThrottledScroll=function(){var C=_.I8().resolve(_.qG).getCurrentPage();C&&(this.scrollAtTop=C.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.n.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.n.setFullscreen=function(){if(_.y("external_fullscreen")||!this.isWatchPage){var C=_.y("kevlar_fullerscreen_root_only_killswitch")?!!_.gz():!!_.gz()&&_.gz()===document.documentElement;C=(this.isWatchPage||this.isShortsPage||this.isMiniAppPage)&&(C||this.isFullWindowSession);this.fullscreen!==C&&((this.fullscreen=C)&&_.KX(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.s3().dispatch(_.vjm(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),this.updateScrollAndMasthead(this.isWatchPage&&
this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.rz(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.n.setFullscreenLoggingForShorts=function(C){var F,G,V;return _.I(function(J){if(J.nextAddress==1)return J.yield((F=_.gE())==null?void 0:F.getPlayerPromise(),2);G=J.yieldResult;(V=G)==null||V.setAppFullscreen(C);_.S9(J)})};
_.n.updateMastheadCssHeight=function(){var C=this.mastheadHeight;this.fullscreen&&(C=0);_.jr(this.hostElement,{"--ytd-masthead-height":C+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.n.updateNetworkStatusBannerDisplayStatus=function(){var C="unset";this.fullscreen&&(C="none");_.jr(this.hostElement,{"--ytd-network-status-banner-display":C})};
_.n.updateNetworkStatusBannerCssHeight=function(){var C="unset";this.fullscreen&&(C="0px");_.jr(this.hostElement,{"--ytd-network-status-banner-max-height":C})};
_.n.updateScrollAndMasthead=function(C,F,G,V){this.iMaxTheaterMode||(V=!1);var J=_.I8().resolve(_.qG).getCurrentPage();C||F||V?(document.body.classList.add("no-scroll"),J.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.Gp(this,this.onScroll)),J.setScrollTop(0),_.jr(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.MF()+"px"})):G?_.oo(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.oo(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
J.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.Gp(this,this.onScroll)));this.mastheadHidden=C||F||G;this.updateMastheadCssHeight();_.y("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.n.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.n.onYtNavigateAction=function(C){C=this.get("navigateAction.endpoint",C);_.oo(this.hostElement,"yt-navigate",{endpoint:C})};
_.n.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var C=document.createElement("yt-create-family-dialog");_.ot(this.hostElement).appendChild(C);this.hasCreateFamilyDialog=!0}};
_.n.onSetPushNotificationsEnabledCommand=function(C){var F=this,G=_.Z(C,Lur);G&&typeof G.enabled==="boolean"&&(Notification.permission!=="granted"?geM().then(function(){Notification.permission==="granted"?(X6x(!G.enabled).then(S9h),G.successAction&&_.DQ(F.hostElement,[G.successAction])):G.failureAction&&_.DQ(F.hostElement,[G.failureAction])}):(X6x(!G.enabled).then(S9h),G.successAction&&_.DQ(this.hostElement,[G.successAction])))};
_.n.onYtSignalActionEnableChromeNotifications=function(){RtM(!0)};
_.n.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.Z(this.topbarData.hotkeyDialog,h38)}}})};
_.n.onYtSignalActionShowKeyboardShortcutDialog=function(){_.rz(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.n.onYtEndpointChangeHandler=function(C,F){var G=_.xZ(_.Oi);G.pendingPrefetchJob_&&(F=!(!F||F.autonav!="1"),G.pendingPrefetchJob_.resolve(C&&_.bp5(C)?_.nVI(C,F):""),G.pendingPrefetchJob_=null);_.rz(this.hostElement,"yt-pause-active-page-context");_.rz(this.hostElement,"ytd-log-youthere-nav");_.rz(this.hostElement,"yt-prepare-page-dispose")};
_.n.handleCommandWithCommandHandler=function(C,F){_.Cy.instance.resolveCommand(C,{form:{element:F}})};
_.n.onYtTimedCommand=function(C){var F=this;C=_.Z(C,URV);var G=C.command;G&&_.FD(_.gT,function(){var V=_.Z(G,_.$mu);V?(_.Cy.instance.resolveCommand(G),F.maybeLogGetAnswerRequestTick(V)):_.pX(F.hostElement,[G],F.hostElement)},C.timeoutMs||0)};
_.n.maybeLogGetAnswerRequestTick=function(C){C&&C.isFirstRequest&&(_.Z8("search_overview_answer"),_.NV("so_rq",void 0,"search_overview_answer"))};
_.n.onYtSignalActionSkipNavigation=function(){var C=_.I8().resolve(_.qG).getCurrentPage();_.J5(C)};
_.n.onYtSignalActionCopyDebugData=function(){Vn3()};
_.n.handleEntityUpdateCommand=function(C){_.J4(_.Z(C,_.bhA).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.n.logFlowLoggingEventCommand=function(C){if(C=_.Z(C,_.gRE))if(C.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var F=C.flowEventNamespace,G=C.flowEventType,V=C.flowType;V&&F&&G&&_.C75(_.jv(F,G,C.flowEventMetadata),V)}else{F=_.Fp();G=C.flowEventNamespace;V=C.flowEventType;var J=C.flowType;J&&G&&V&&F.logFlowEvent(_.jv(G,V,C.flowEventMetadata),J,C.flowNonce)}};
_.n.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.n.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.n.onTouchStart=function(){var C=_.MZ();_.ZQ()&&_.LZ(C.JSC$13303_screenManager,{visualElement:C.ve})};
_.n.handleSelectLanguageCommand=function(C){if(C=_.Z(C,wIr).hl){var F=_.bQ();F.set("hl",C);F.save();_.I8().resolve(_.Xx).reload()}};
_.n.handleConfirmDialogEndpoint=function(C){(C=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(C))&&this.ytOpenPopupBehavior.openPopup(C)};
_.n.handleOpenPopupNavigationEndpoints=function(C,F){_.y("web_button_rework")&&(C=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(C))&&this.ytOpenPopupBehavior.openPopup(C,F)};
_.n.handleSaveCommandToSessionStorage=function(C){if(C=_.Z(C,_.WH$)){var F=C.key;F&&C.command&&window.sessionStorage.setItem(F,JSON.stringify(C.command))}};
_.n.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(C){C&&C.active&&C.active.postMessage({type:"refresh_shell"})}).catch(function(C){C.name!=="SecurityError"&&_.gD(C)})};
_.n.onDeviceThemeChanged=function(){var C=_.w7();_.nl(_.bQ(),185,C);_.bQ().save()};
_.n.handleYtRegisterPromoCommand=function(C){if(_.Z(C,SGr)){var F=_.I8().resolve(_.qG).getCurrentPage()||this.hostElement;O6s().registerPromoCommand(_.Z(C,SGr),F)}};
_.n.onYtNavigateHomeAction=function(){if(!_.y("kevlar_miniplayer_navigate_home_from_app_killswitch")){var C,F,G,V,J=(V=(C=this.topbarData)==null?void 0:(F=C.logo)==null?void 0:(G=F.topbarLogoRenderer)==null?void 0:G.endpoint)!=null?V:_.fQ;this.ytComponentBehavior.resolveCommand(J)}};
_.n.onYtLocationCollectionCommand=function(C){HkL(_.Z(C,P7r))};
_.n.onYtGetLocationCommand=function(C){y6V(_.Z(C,qGU),this)};
_.n.updateRenderGuideFromBinding=function(C){this.renderGuide=C.detail.value};
_.n.updateGuidePersistentAndVisibleFromBinding=function(C){this.guidePersistentAndVisible=C.detail.value};
_.n.updateMiniGuideVisibleFromBinding=function(C){this.miniGuideVisible=C.detail.value};
_.n.onThemeSelected=function(C,F){var G=_.bQ(),V=C||F?C:_.w7(),J=(V&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!V&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.uYZ(_.X$(window.location.href));_.nl(0,165,C);_.nl(0,174,F);G.save();J&&_.rz(this.hostElement,"yt-dark-mode-toggled-action",[V]);_.rz(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.n.getCurrentTheme=function(){return _.Sv()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Mz()};
_.n.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.n.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.n.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.n.handleShowConsentPrimitive=function(C){var F=this,G,V;return _.I(function(J){if(J.nextAddress==1){try{G=(V=_.gE())==null?void 0:V.getPlayerPromise()}catch(b){}return J.yield(dE_(C,G),2)}_.rz(F.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.S9(J)})};
_.n.handleSelectActiveIdentityEndpointInternal=function(C){_.Nz();C=_.Z(C,_.ZKu);if(C!=null&&C.supportedTokens){C=_.u(C.supportedTokens);for(var F=C.next();!F.done;F=C.next())F=F.value,F.accountSigninToken&&_.Xp(F.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.n.handleUpdatePermissionRoleCommand=function(C){if(C=_.Z(C,_.OJS)){var F;this.hasDelegation=!((F=_.Z(C.renderer,_.Nql))==null||!F.status)}};
_.n.registerWithViewTransitionManager=function(){var C=_.I8().resolve(_.Qt(_.vq));if(C){var F,G=(F=this.guide)==null?void 0:F.querySelector("#scrim"),V;F=(V=this.guide)==null?void 0:V.querySelector("#contentContainer");G&&F&&C.isAnyTransitionEnabled&&(V={},C.viewTransitionCoordinator.registerElement(G,(V.slide="app-drawer-scrim-page-transition",V["lockup-to-watch"]="app-drawer-scrim-page-transition",V["learning-journey"]="app-drawer-scrim-page-transition",V)),G={},C.viewTransitionCoordinator.registerElement(F,
(G.slide="app-drawer-container-page-transition",G["lockup-to-watch"]="app-drawer-container-page-transition",G["learning-journey"]="app-drawer-container-page-transition",G)))}};
_.I6.Object.defineProperties(qP.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.y("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.I6.Object.defineProperties(qP,{template:{configurable:!0,enumerable:!0,get:function(){if(Tur===void 0){var C=document.createElement("template");_.X(C,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n  <div id="persistent-panel-container" hidden="[[!persistentPanelEnabled]]" class="style-scope ytd-app"></div>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
C.content.insertBefore(_.K().content.cloneNode(!0),C.content.firstChild);Tur=C}C=Tur;return C}}});
qP.prototype.onOpenHotkeyDialog=qP.prototype.onOpenHotkeyDialog;qP.prototype.setFullscreen=qP.prototype.setFullscreen;qP.prototype.onAddElementToApp=qP.prototype.onAddElementToApp;qP.prototype.onDrawerIronSelect=qP.prototype.onDrawerIronSelect;qP.prototype.onGuideOpenButtonHover=qP.prototype.onGuideOpenButtonHover;qP.prototype.onRequestPanelModeChange=qP.prototype.onRequestPanelModeChange;qP.prototype.onPageDataUpdated=qP.prototype.onPageDataUpdated;qP.prototype.onPageChanged=qP.prototype.onPageChanged;
qP.prototype.onSetTheaterModeEnabled=qP.prototype.onSetTheaterModeEnabled;qP.prototype.updateMastheadData=qP.prototype.updateMastheadData;qP.prototype.onYtPageManagerAttached=qP.prototype.onYtPageManagerAttached;qP.prototype.observePersistentPanelVisibility=qP.prototype.observePersistentPanelVisibility;qP.prototype.observeGuideVisibility=qP.prototype.observeGuideVisibility;qP.prototype.guideIsVisibleButNotPersistentSelectorChanged=qP.prototype.guideIsVisibleButNotPersistentSelectorChanged;
qP.prototype.isInlinePreviewEnabledChanged=qP.prototype.isInlinePreviewEnabledChanged;qP.prototype.isWatchPageChanged=qP.prototype.isWatchPageChanged;qP.prototype.dispatchFrostedGlassMode=qP.prototype.dispatchFrostedGlassMode;_.R([_.w(_.Rr),_.Y("design:type",Object)],qP.prototype,"ytdReduxBehavior",void 0);_.R([_.w(_.h9.YtEventForwardingBehavior),_.Y("design:type",Object)],qP.prototype,"ytEventForwardingBehavior",void 0);
_.R([_.w(_.lc.YtOpenPopupBehavior),_.Y("design:type",Object)],qP.prototype,"ytOpenPopupBehavior",void 0);_.R([_.w(_.Z7.YtActionHandlerBehavior),_.Y("design:type",Object)],qP.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.w({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.FV.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.y("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var C;((C=this.actionRouterNode.hostElement)!=null?C:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var C;((C=this.actionRouterNode.hostElement)!=null?C:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(C){this.actionRouter_.handleAction(C.detail)}}),
_.Y("design:type",Object)],qP.prototype,"ytActionRouterBehavior",void 0);_.R([_.w(vjr.YtdAppBehavior),_.Y("design:type",Object)],qP.prototype,"ytdAppBehavior",void 0);_.R([_.w(_.yR.YtEndpointBehavior),_.Y("design:type",Object)],qP.prototype,"ytEndpointBehavior",void 0);_.R([_.w(p5r.YtEndpointHandlerWithYpcBehavior),_.Y("design:type",Object)],qP.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.R([_.w(oAt.YtLogYpcFlowCommandsBehavior),_.Y("design:type",Object)],qP.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.R([_.w(_.D.YtRendererBehavior),_.Y("design:type",Object)],qP.prototype,"ytRendererBehavior",void 0);_.R([_.w(_.Ys.YtComponentBehavior),_.Y("design:type",Object)],qP.prototype,"ytComponentBehavior",void 0);_.R([_.L({selector:_.It3}),_.Y("design:type",Object)],qP.prototype,"tabGesturesIsActive",void 0);_.R([_.L(),_.Y("design:type",Boolean)],qP.prototype,"renderGuide",void 0);
_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],qP.prototype,"guidePersistentAndVisible",void 0);_.R([_.L({selector:_.Qth}),_.Y("design:type",Boolean)],qP.prototype,"guideIsVisibleButNotPersistent",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],qP.prototype,"standalone",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],qP.prototype,"miniGuideVisible",void 0);
_.R([_.L(),_.Y("design:type",Object)],qP.prototype,"persistentPanelEnabled",void 0);_.R([_.L({selector:taL,reflectToAttribute:!0}),_.Y("design:type",Boolean)],qP.prototype,"persistentPanelVisible",void 0);_.R([_.L({selector:_.hhE}),_.Y("design:type",Number)],qP.prototype,"miniplayerPlaybackState",void 0);_.R([_.L({selector:_.yj,reflectToAttribute:!0}),_.Y("design:type",Boolean)],qP.prototype,"miniplayerIsActive",void 0);
_.R([_.L({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.Y("design:type",Boolean)],qP.prototype,"isInlinePreviewEnabled",void 0);_.R([_.L(),_.Y("design:type",Boolean)],qP.prototype,"isInlinePreviewDisabled",void 0);_.R([_.L({reflectToAttribute:!0,value:function(){return _.oD("START_IN_FULL_WINDOW_MODE")}}),
_.Y("design:type",Boolean)],qP.prototype,"mastheadHidden",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],qP.prototype,"playerFullscreen",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],qP.prototype,"fullscreen",void 0);_.R([_.L({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],qP.prototype,"hideHeaderShadow",void 0);
_.R([_.L({value:{GUIDE_ALT_LABEL:_.iQ("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.Y("design:type",Object)],qP.prototype,"menuStrings",void 0);_.R([_.L({computed:"computeTopbarData(data)"}),_.Y("design:type",Object)],qP.prototype,"topbarData",void 0);_.R([_.L({selector:_.LPo,reflectToAttribute:!0}),_.Y("design:type",Boolean)],qP.prototype,"isWatchPage",void 0);_.R([_.L({selector:_.BqI,reflectToAttribute:!0}),_.Y("design:type",Boolean)],qP.prototype,"isShortsPage",void 0);
_.R([_.L({selector:function(C){return _.Zb(C)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.Y("design:type",Boolean)],qP.prototype,"isMiniAppPage",void 0);_.R([_.L({selector:function(C){return _.Zb(C)==="WEB_PAGE_TYPE_BROWSE"}}),
_.Y("design:type",Boolean)],qP.prototype,"isBrowsePage",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Boolean)],qP.prototype,"scrolling",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],qP.prototype,"hasDelegation",void 0);_.R([_.L({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],qP.prototype,"guideScrolledByTouch",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],qP.prototype,"darkerDarkTheme",void 0);
_.R([_.L(),_.Y("design:type",Object)],qP.prototype,"isFrostedGlassInitialized",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],qP.prototype,"frostedGlassExp",void 0);_.R([_.L({selector:function(C){return C.ui.chipBarIsSticky}}),
_.Y("design:type",Boolean)],qP.prototype,"chipBarIsSticky",void 0);_.R([_.L({computed:"computeIsHomePage(isBrowsePage, data)"}),_.Y("design:type",Boolean)],qP.prototype,"isHomePage",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],qP.prototype,"hasPendingWatchNavigation",void 0);_.R([_.L({reflectToAttribute:!0}),_.Y("design:type",Object)],qP.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);
_.R([_.L(),_.Y("design:type",Object)],qP.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.R([_.gr("guide"),_.Y("design:type",Object)],qP.prototype,"guide",void 0);_.R([_.gr("guide-service"),_.Y("design:type",lT8)],qP.prototype,"guideService",void 0);_.R([_.gr("guide-inner-content"),_.Y("design:type",HTMLDivElement)],qP.prototype,"guideInnerContent",void 0);_.R([_.$z("#persistent-panel-container"),_.Y("design:type",HTMLElement)],qP.prototype,"persistentPanelContainer",void 0);
_.R([_.L({selector:_.cSi}),_.Y("design:type",String)],qP.prototype,"frostedGlassMode",void 0);_.R([_.iP("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qP.prototype,"dispatchFrostedGlassMode",null);_.R([_.L({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.Y("design:type",Object)],qP.prototype,"isFrostedGlassDisabled",void 0);
_.R([_.iP("isWatchPage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qP.prototype,"isWatchPageChanged",null);_.R([_.M("isHomePage","chipBarIsSticky"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],qP.prototype,"applyFrostedGlassToChipBar",null);_.R([_.L(),_.Y("design:type",Object)],qP.prototype,"isChannelOrPlaylistPage",void 0);
_.R([_.zp("isInlinePreviewEnabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qP.prototype,"isInlinePreviewEnabledChanged",null);_.R([_.iP("guideIsVisibleButNotPersistent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qP.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.R([_.iP("guidePersistentAndVisible","miniGuideVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qP.prototype,"observeGuideVisibility",null);_.R([_.iP("persistentPanelVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qP.prototype,"observePersistentPanelVisibility",null);
_.R([_.VG("attached"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],qP.prototype,"onYtPageManagerAttached",null);_.R([_.iP("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],qP.prototype,"updateMastheadData",null);_.R([_.VG("yt-set-theater-mode-enabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],qP.prototype,"onSetTheaterModeEnabled",null);
_.R([_.VG("yt-page-type-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],qP.prototype,"onPageChanged",null);_.R([_.VG("yt-page-data-updated"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qP.prototype,"onPageDataUpdated",null);_.R([_.VG("yt-request-panel-mode-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,Object]),_.Y("design:returntype")],qP.prototype,"onRequestPanelModeChange",null);
_.R([_.VG("yt-guide-hover"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qP.prototype,"onGuideOpenButtonHover",null);_.R([_.VG("app-drawer-transitioned"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],qP.prototype,"onDrawerIronSelect",null);_.R([_.VG("yt-add-element-to-app"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],qP.prototype,"onAddElementToApp",null);
_.R([_.VG("yt-set-fullerscreen-styles"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qP.prototype,"setFullscreen",null);_.R([_.VG("yt-open-hotkey-dialog"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qP.prototype,"onOpenHotkeyDialog",null);_.R([_.e({is:"ytd-app"})],qP);_.Vc().processSignal("eor");
_.Pk();
}catch(e){_._DumpException(e)}
try{
_.qd("NSzT5");
var Fmd;_.KN=function(C){var F=document.createElement("link");_.nv(F,C,"stylesheet");document.head.appendChild(F)};
_.D_=function(C,F){var G,V;return _.I(function(J){G=document.createElement("div");G.id=C.id;C.className&&(G.className=C.className);V=C.element;if(!V)throw Error("fk");if(C.location==="prepend")V.prepend(G);else if(C.location==="appendChild")V.appendChild(G);else if(C.location==="after")V.after(G);else throw Error("gk");return J.return(_.xn(G,F,"Qi"))})};
_.pN=function(C){var F;return _.I(function(G){(F=document.getElementById(C))&&F.remove();_.S9(G)})};
_.mK=function(C,F){var G=document.querySelector(C);G?F(G):setTimeout(function(){_.mK(C,F)},1E3)};
_.Gph=function(C,F,G){var V;_.I(function(J){if(J.nextAddress==1)return(V=document.getElementById(C))?J.jumpTo(2):J.yield(Fmd(C,F,G),2);if(V=document.getElementById(C))V.style.display="block";_.S9(J)})};
Fmd=function(C,F,G){return _.I(function(V){return V.return(new Promise(function(J){_.mK("div #panels",function(b){_.D_({element:b,location:"appendChild",id:C,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+G},F);J()})}))})};
_.$rx=function(C){C=C===void 0?"":C;_.pN("creator_chatbots-entry-point");_.pN("creator_chatbots-panel");_.KN(Vrd);_.mK("ytd-watch-metadata #top-level-buttons-computed",function(F){document.getElementById("creator_chatbots-entry-point")||(_.D_({element:F,location:"appendChild",id:"creator_chatbots-entry-point",className:"ytprotoCreatorChatbotsExtensionExtensionMountPoint"},function(){return _.W(i5M,{creatorChannelId:C})}),_.Gph("creator_chatbots-panel",function(){return _.W(JvV,{usePlayerHeight:!0,
creatorChannelId:C})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint"))})};_.Cu=_.d(function(C){var F=C.text;var G=C.onClick;var V=C.color;var J=C.backgroundColor;var b=C.buttonSize;var z=C.disabled;var Q=C.iconName;var E=C.iconSize;C=C.className;var t=_.CZ(function(U){G(U)}),k={};
return _.W("button",{class:_.py("ytpStandardButtonsHost",(k.ytpStandardButtonsLarge=function(){return(b==null?void 0:b())==="large"},k),C),
"on:click":t,style:_.VA({color:V,"background-color":J}),disabled:z}," ",_.W(_.a,{cond:Q,then:function(){return _.W(_.i5,{className:"ytpStandardButtonsIconContainer",icon:Q,size:E})}}),F)},"Pi");_.b5t=_.d(function(C){var F;return _.W("div",{class:_.py("ytprototypesEngagementPanelComponentHost",C.className),id:C.id},_.W("div",{class:_.py("ytprototypesEngagementPanelComponentEngagementPanelHeader",C.headerClassName)},_.W("div",null,C.header()),_.W("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.W("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(F=C.HeaderButton)==null?void 0:F.call(C)),_.W(_.Cu,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",
onClick:function(){var G;(G=C.onHide)==null||G.call(C);G=C.id();if(G=document.getElementById(G))G.style.display="none"}}))),_.W("div",{class:_.py("ytprototypesEngagementPanelComponentEngagementPanelContent",C.contentClassName),
style:function(){var G;return"height: "+(((G=C.height)==null?void 0:G.call(C))||"800px")+";"}},C.content()))},"Ri");var nzh=_.h6(["https://portraits.google.com"]),uU3=_.h6(["https://labs-characters.teams.x20web.corp.google.com"]),zGV=_.h6(["https://portraits.google.com/gallery?ytChannelId=",""]),QNL=_.kf(nzh),j1=_.kf(uU3),JvV=_.d(function(C){function F(H){var l;if(H=(l=H.detail)==null?void 0:l.endpoint){l=_.Z(H,_.iE);var N;l&&((N=l.browseId)==null?0:N.startsWith("UC"))&&l.browseId!==J()&&(_.pN("creator_chatbots-panel-persistent"),k.removeEventListener("yt-navigate-start",F))}}
var G=C.usePlayerHeight;var V=C.isPersistentPanel;var J=C.creatorChannelId;var b=_.y("enable_creator_chatbots_extension_dev_server"),z=document.createElement("iframe"),Q=b?j1:QNL;_.s0(function(){var H=J();H=b?j1:_.kf(zGV,H);_.I6o(z,1,H)});
z.className="ytprotoCreatorChatbotsAppLabsIframe";z.allow="microphone; clipboard-read; clipboard-write self "+Q;var E=function(){var H;return _.I(function(l){if(l.nextAddress==1)return l.yield(_.I8().resolve(_.rE),2);(H=l.yieldResult)&&H.pauseVideo();_.S9(l)})},t=function(){var H,l,N;
return _.I(function(S){return S.nextAddress==1?S.yield(_.I8().resolve(_.rE),2):(H=S.yieldResult)?S.return({video_id:(N=(l=H.getVideoData())==null?void 0:l.video_id)!=null?N:"",timestamp_sec:H.getCurrentTime().toString()}):S.return({})})};
window.addEventListener("message",function(H){var l,N,S,f,c,A;return _.I(function(T){if(T.nextAddress==1){l=b?j1.toString():QNL.toString();if(H.origin!==l)return console.warn("Received message from untrusted origin:",H.origin),T.return();N=H.data;if(typeof N!=="object"||N===null||!N.action)return T.return();if(N.action==="pause")return T.yield(E(),0);if(N.action!=="getYouTubeContext"||!H.source)return T.jumpTo(0);S=H.source;f=S.postMessage;c=JSON;A=c.stringify;return T.yield(t(),7)}f.call(S,A.call(c,
{youTubeContext:T.yieldResult}),{targetOrigin:H.origin});return T.jumpTo(0)})});
_.Ix("yt-page-type-changed",function(){if(V==null?0:V()){var H;((H=_.I8().resolve(_.qG).getCurrentPage())==null?void 0:H.pageSubtype)!=="channels"&&(H=document.getElementById("creator_chatbots-panel-persistent"))&&(H.style.display="none")}});
var k=_.I8().resolve(_.Xx),U;(U=k)==null||U.addEventListener("yt-navigate-start",F);_.q0(function(){var H;(H=k)==null||H.removeEventListener("yt-navigate-start",F)});
return _.W("div",{class:"ytprotoCreatorChatbotsAppHost",style:function(){return(G==null?0:G())?"height: var(--ytd-watch-flexy-panel-max-height);":"height: 100%;"}},_.W(_.b5t,{id:function(){return(V==null?0:V())?"creator_chatbots-panel-persistent":"creator_chatbots-panel"},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:function(){var H=b?j1.toString():QNL.toString(),l;(l=z.contentWindow)==null||l.postMessage("ep_closed",H)},
header:function(){return _.W("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.W("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to the Creator"),_.W(_.KR,{data:{text:"AI experiment",type:0}}))},
HeaderButton:function(){return _.W(_.Cu,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",onClick:function(){_.Cv(window,_.sL(b?j1.toString():Q.toString()+"/gallery?ytChannelId="+J()),"_blank")}})},
content:function(){return z}}))},"Ti");var I5_,Vrd,i5M;I5_=_.h6(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]);Vrd=_.kf(I5_);i5M=_.d(function(C){var F=C.creatorChannelId;var G=function(){_.Gph("creator_chatbots-panel",function(){return _.W(JvV,{usePlayerHeight:!0,creatorChannelId:F})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")};
return _.W("div",{class:"ytd-menu-renderer"},_.W(_.Wn,{data:function(){return{style:"mono",type:"tonal",state:"active",iconPosition:"leading",size:"M",buttonText:"Chat now",onTap:G}},
icon:function(){return _.W(_.i5,{icon:"SPARK"})}}))},"Ui");
_.Q8s=function(C){C=C===void 0?"":C;var F;return _.I(function(G){return(F=document.getElementById("creator_chatbots-panel-persistent"))?(F.style.display==="none"&&(F.style.display="block"),G.jumpTo(0)):G.yield(new Promise(function(V){_.mK("ytd-app",function(J){_.D_({element:J,location:"appendChild",id:"creator_chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.W(JvV,{isPersistentPanel:!0,
creatorChannelId:C})});
V()})}),0)})};
_.Pk();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
