@krx3d/tizentubekrx 1.15.15 → 1.15.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,27 +0,0 @@
1
- (function(){if(window.__TIZENTUBE_INJECT_LOADED)return;window.__TIZENTUBE_INJECT_LOADED=true;
2
- (()=>{var nn=Object.create;var pt=Object.defineProperty;var rn=Object.getOwnPropertyDescriptor;var sn=Object.getOwnPropertyNames;var an=Object.getPrototypeOf,on=Object.prototype.hasOwnProperty;var nt=(u,r)=>()=>(r||u((r={exports:{}}).exports,r),r.exports);var un=(u,r,l,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let d of sn(r))!on.call(u,d)&&d!==l&&pt(u,d,{get:()=>r[d],enumerable:!(a=rn(r,d))||a.enumerable});return u};var it=(u,r,l)=>(l=u!=null?nn(an(u)):{},un(r||!u||!u.__esModule?pt(l,"default",{value:u,enumerable:!0}):l,u));var Lt=nt(Rt=>{Rt.qrcode=(function(){var u=function(n,i){var h=236,g=17,S=n,D=l[i],y=null,v=0,b=null,w=new Array,P={},N=function(z,H){v=S*4+17,y=(function(O){for(var J=new Array(O),V=0;V<O;V+=1){J[V]=new Array(O);for(var Y=0;Y<O;Y+=1)J[V][Y]=null}return J})(v),R(0,0),R(v-7,0),R(0,v-7),q(),W(),$(z,H),S>=7&&Z(z),b==null&&(b=ce(S,D,w)),ee(b,H)},R=function(z,H){for(var O=-1;O<=7;O+=1)if(!(z+O<=-1||v<=z+O))for(var J=-1;J<=7;J+=1)H+J<=-1||v<=H+J||(0<=O&&O<=6&&(J==0||J==6)||0<=J&&J<=6&&(O==0||O==6)||2<=O&&O<=4&&2<=J&&J<=4?y[z+O][H+J]=!0:y[z+O][H+J]=!1)},_=function(){for(var z=0,H=0,O=0;O<8;O+=1){N(!0,O);var J=d.getLostPoint(P);(O==0||z>J)&&(z=J,H=O)}return H},W=function(){for(var z=8;z<v-8;z+=1)y[z][6]==null&&(y[z][6]=z%2==0);for(var H=8;H<v-8;H+=1)y[6][H]==null&&(y[6][H]=H%2==0)},q=function(){for(var z=d.getPatternPosition(S),H=0;H<z.length;H+=1)for(var O=0;O<z.length;O+=1){var J=z[H],V=z[O];if(y[J][V]==null)for(var Y=-2;Y<=2;Y+=1)for(var te=-2;te<=2;te+=1)Y==-2||Y==2||te==-2||te==2||Y==0&&te==0?y[J+Y][V+te]=!0:y[J+Y][V+te]=!1}},Z=function(z){for(var H=d.getBCHTypeNumber(S),O=0;O<18;O+=1){var J=!z&&(H>>O&1)==1;y[Math.floor(O/3)][O%3+v-8-3]=J}for(var O=0;O<18;O+=1){var J=!z&&(H>>O&1)==1;y[O%3+v-8-3][Math.floor(O/3)]=J}},$=function(z,H){for(var O=D<<3|H,J=d.getBCHTypeInfo(O),V=0;V<15;V+=1){var Y=!z&&(J>>V&1)==1;V<6?y[V][8]=Y:V<8?y[V+1][8]=Y:y[v-15+V][8]=Y}for(var V=0;V<15;V+=1){var Y=!z&&(J>>V&1)==1;V<8?y[8][v-V-1]=Y:V<9?y[8][15-V-1+1]=Y:y[8][15-V-1]=Y}y[v-8][8]=!z},ee=function(z,H){for(var O=-1,J=v-1,V=7,Y=0,te=d.getMaskFunction(H),K=v-1;K>0;K-=2)for(K==6&&(K-=1);;){for(var ue=0;ue<2;ue+=1)if(y[J][K-ue]==null){var le=!1;Y<z.length&&(le=(z[Y]>>>V&1)==1);var ne=te(J,K-ue);ne&&(le=!le),y[J][K-ue]=le,V-=1,V==-1&&(Y+=1,V=7)}if(J+=O,J<0||v<=J){J-=O,O=-O;break}}},se=function(z,H){for(var O=0,J=0,V=0,Y=new Array(H.length),te=new Array(H.length),K=0;K<H.length;K+=1){var ue=H[K].dataCount,le=H[K].totalCount-ue;J=Math.max(J,ue),V=Math.max(V,le),Y[K]=new Array(ue);for(var ne=0;ne<Y[K].length;ne+=1)Y[K][ne]=255&z.getBuffer()[ne+O];O+=ue;var me=d.getErrorCorrectPolynomial(le),ge=s(Y[K],me.getLength()-1),xe=ge.mod(me);te[K]=new Array(me.getLength()-1);for(var ne=0;ne<te[K].length;ne+=1){var Be=ne+xe.getLength()-te[K].length;te[K][ne]=Be>=0?xe.get(Be):0}}for(var we=0,ne=0;ne<H.length;ne+=1)we+=H[ne].totalCount;for(var Ee=new Array(we),De=0,ne=0;ne<J;ne+=1)for(var K=0;K<H.length;K+=1)ne<Y[K].length&&(Ee[De]=Y[K][ne],De+=1);for(var ne=0;ne<V;ne+=1)for(var K=0;K<H.length;K+=1)ne<te[K].length&&(Ee[De]=te[K][ne],De+=1);return Ee},ce=function(z,H,O){for(var J=B.getRSBlocks(z,H),V=A(),Y=0;Y<O.length;Y+=1){var te=O[Y];V.put(te.getMode(),4),V.put(te.getLength(),d.getLengthInBits(te.getMode(),z)),te.write(V)}for(var K=0,Y=0;Y<J.length;Y+=1)K+=J[Y].dataCount;if(V.getLengthInBits()>K*8)throw new Error("code length overflow. ("+V.getLengthInBits()+">"+K*8+")");for(V.getLengthInBits()+4<=K*8&&V.put(0,4);V.getLengthInBits()%8!=0;)V.putBit(!1);for(;!(V.getLengthInBits()>=K*8||(V.put(h,8),V.getLengthInBits()>=K*8));)V.put(g,8);return se(V,J)};return P.addData=function(z){var H=C(z);w.push(H),b=null},P.isDark=function(z,H){if(z<0||v<=z||H<0||v<=H)throw new Error(z+","+H);return y[z][H]},P.getModuleCount=function(){return v},P.make=function(){N(!1,_())},P.createTableTag=function(z,H){z=z||2,H=typeof H>"u"?z*4:H;var O="";O+='<table style="',O+=" border-width: 0px; border-style: none;",O+=" border-collapse: collapse;",O+=" padding: 0px; margin: "+H+"px;",O+='">',O+="<tbody>";for(var J=0;J<P.getModuleCount();J+=1){O+="<tr>";for(var V=0;V<P.getModuleCount();V+=1)O+='<td style="',O+=" border-width: 0px; border-style: none;",O+=" border-collapse: collapse;",O+=" padding: 0px; margin: 0px;",O+=" width: "+z+"px;",O+=" height: "+z+"px;",O+=" background-color: ",O+=P.isDark(J,V)?"#000000":"#ffffff",O+=";",O+='"/>';O+="</tr>"}return O+="</tbody>",O+="</table>",O},P.createImgTag=function(z,H){z=z||2,H=typeof H>"u"?z*4:H;var O=P.getModuleCount()*z+H*2,J=H,V=O-H;return t(O,O,function(Y,te){if(J<=Y&&Y<V&&J<=te&&te<V){var K=Math.floor((Y-J)/z),ue=Math.floor((te-J)/z);return P.isDark(ue,K)?0:1}else return 1})},P};u.stringToBytes=function(n){for(var i=new Array,h=0;h<n.length;h+=1){var g=n.charCodeAt(h);i.push(g&255)}return i},u.createStringToBytes=function(n,i){var h=(function(){for(var S=p(n),D=function(){var W=S.read();if(W==-1)throw new Error;return W},y=0,v={};;){var b=S.read();if(b==-1)break;var w=D(),P=D(),N=D(),R=String.fromCharCode(b<<8|w),_=P<<8|N;v[R]=_,y+=1}if(y!=i)throw new Error(y+" != "+i);return v})(),g=63;return function(S){for(var D=new Array,y=0;y<S.length;y+=1){var v=S.charCodeAt(y);if(v<128)D.push(v);else{var b=h[S.charAt(y)];typeof b=="number"?(b&255)==b?D.push(b):(D.push(b>>>8),D.push(b&255)):D.push(g)}}return D}};var r={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},l={L:1,M:0,Q:3,H:2},a={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},d=(function(){var n=[[],[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]],i=1335,h=7973,g=21522,S={},D=function(y){for(var v=0;y!=0;)v+=1,y>>>=1;return v};return S.getBCHTypeInfo=function(y){for(var v=y<<10;D(v)-D(i)>=0;)v^=i<<D(v)-D(i);return(y<<10|v)^g},S.getBCHTypeNumber=function(y){for(var v=y<<12;D(v)-D(h)>=0;)v^=h<<D(v)-D(h);return y<<12|v},S.getPatternPosition=function(y){return n[y-1]},S.getMaskFunction=function(y){switch(y){case a.PATTERN000:return function(v,b){return(v+b)%2==0};case a.PATTERN001:return function(v,b){return v%2==0};case a.PATTERN010:return function(v,b){return b%3==0};case a.PATTERN011:return function(v,b){return(v+b)%3==0};case a.PATTERN100:return function(v,b){return(Math.floor(v/2)+Math.floor(b/3))%2==0};case a.PATTERN101:return function(v,b){return v*b%2+v*b%3==0};case a.PATTERN110:return function(v,b){return(v*b%2+v*b%3)%2==0};case a.PATTERN111:return function(v,b){return(v*b%3+(v+b)%2)%2==0};default:throw new Error("bad maskPattern:"+y)}},S.getErrorCorrectPolynomial=function(y){for(var v=s([1],0),b=0;b<y;b+=1)v=v.multiply(s([1,o.gexp(b)],0));return v},S.getLengthInBits=function(y,v){if(1<=v&&v<10)switch(y){case r.MODE_NUMBER:return 10;case r.MODE_ALPHA_NUM:return 9;case r.MODE_8BIT_BYTE:return 8;case r.MODE_KANJI:return 8;default:throw new Error("mode:"+y)}else if(v<27)switch(y){case r.MODE_NUMBER:return 12;case r.MODE_ALPHA_NUM:return 11;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 10;default:throw new Error("mode:"+y)}else if(v<41)switch(y){case r.MODE_NUMBER:return 14;case r.MODE_ALPHA_NUM:return 13;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 12;default:throw new Error("mode:"+y)}else throw new Error("type:"+v)},S.getLostPoint=function(y){for(var v=y.getModuleCount(),b=0,w=0;w<v;w+=1)for(var P=0;P<v;P+=1){for(var N=0,R=y.isDark(w,P),_=-1;_<=1;_+=1)if(!(w+_<0||v<=w+_))for(var W=-1;W<=1;W+=1)P+W<0||v<=P+W||_==0&&W==0||R==y.isDark(w+_,P+W)&&(N+=1);N>5&&(b+=3+N-5)}for(var w=0;w<v-1;w+=1)for(var P=0;P<v-1;P+=1){var q=0;y.isDark(w,P)&&(q+=1),y.isDark(w+1,P)&&(q+=1),y.isDark(w,P+1)&&(q+=1),y.isDark(w+1,P+1)&&(q+=1),(q==0||q==4)&&(b+=3)}for(var w=0;w<v;w+=1)for(var P=0;P<v-6;P+=1)y.isDark(w,P)&&!y.isDark(w,P+1)&&y.isDark(w,P+2)&&y.isDark(w,P+3)&&y.isDark(w,P+4)&&!y.isDark(w,P+5)&&y.isDark(w,P+6)&&(b+=40);for(var P=0;P<v;P+=1)for(var w=0;w<v-6;w+=1)y.isDark(w,P)&&!y.isDark(w+1,P)&&y.isDark(w+2,P)&&y.isDark(w+3,P)&&y.isDark(w+4,P)&&!y.isDark(w+5,P)&&y.isDark(w+6,P)&&(b+=40);for(var Z=0,P=0;P<v;P+=1)for(var w=0;w<v;w+=1)y.isDark(w,P)&&(Z+=1);var $=Math.abs(100*Z/v/v-50)/5;return b+=$*10,b},S})(),o=(function(){for(var n=new Array(256),i=new Array(256),h=0;h<8;h+=1)n[h]=1<<h;for(var h=8;h<256;h+=1)n[h]=n[h-4]^n[h-5]^n[h-6]^n[h-8];for(var h=0;h<255;h+=1)i[n[h]]=h;var g={};return g.glog=function(S){if(S<1)throw new Error("glog("+S+")");return i[S]},g.gexp=function(S){for(;S<0;)S+=255;for(;S>=256;)S-=255;return n[S]},g})();function s(n,i){if(typeof n.length>"u")throw new Error(n.length+"/"+i);var h=(function(){for(var S=0;S<n.length&&n[S]==0;)S+=1;for(var D=new Array(n.length-S+i),y=0;y<n.length-S;y+=1)D[y]=n[y+S];return D})(),g={};return g.get=function(S){return h[S]},g.getLength=function(){return h.length},g.multiply=function(S){for(var D=new Array(g.getLength()+S.getLength()-1),y=0;y<g.getLength();y+=1)for(var v=0;v<S.getLength();v+=1)D[y+v]^=o.gexp(o.glog(g.get(y))+o.glog(S.get(v)));return s(D,0)},g.mod=function(S){if(g.getLength()-S.getLength()<0)return g;for(var D=o.glog(g.get(0))-o.glog(S.get(0)),y=new Array(g.getLength()),v=0;v<g.getLength();v+=1)y[v]=g.get(v);for(var v=0;v<S.getLength();v+=1)y[v]^=o.gexp(o.glog(S.get(v))+D);return s(y,0).mod(S)},g}var B=(function(){var n=[[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]],i=function(S,D){var y={};return y.totalCount=S,y.dataCount=D,y},h={},g=function(S,D){switch(D){case l.L:return n[(S-1)*4+0];case l.M:return n[(S-1)*4+1];case l.Q:return n[(S-1)*4+2];case l.H:return n[(S-1)*4+3];default:return}};return h.getRSBlocks=function(S,D){var y=g(S,D);if(typeof y>"u")throw new Error("bad rs block @ typeNumber:"+S+"/errorCorrectLevel:"+D);for(var v=y.length/3,b=new Array,w=0;w<v;w+=1)for(var P=y[w*3+0],N=y[w*3+1],R=y[w*3+2],_=0;_<P;_+=1)b.push(i(N,R));return b},h})(),A=function(){var n=new Array,i=0,h={};return h.getBuffer=function(){return n},h.get=function(g){var S=Math.floor(g/8);return(n[S]>>>7-g%8&1)==1},h.put=function(g,S){for(var D=0;D<S;D+=1)h.putBit((g>>>S-D-1&1)==1)},h.getLengthInBits=function(){return i},h.putBit=function(g){var S=Math.floor(i/8);n.length<=S&&n.push(0),g&&(n[S]|=128>>>i%8),i+=1},h},C=function(n){var i=r.MODE_8BIT_BYTE,h=n,g=u.stringToBytes(n),S={};return S.getMode=function(){return i},S.getLength=function(D){return g.length},S.write=function(D){for(var y=0;y<g.length;y+=1)D.put(g[y],8)},S},c=function(){var n=new Array,i={};return i.writeByte=function(h){n.push(h&255)},i.writeShort=function(h){i.writeByte(h),i.writeByte(h>>>8)},i.writeBytes=function(h,g,S){g=g||0,S=S||h.length;for(var D=0;D<S;D+=1)i.writeByte(h[D+g])},i.writeString=function(h){for(var g=0;g<h.length;g+=1)i.writeByte(h.charCodeAt(g))},i.toByteArray=function(){return n},i.toString=function(){var h="";h+="[";for(var g=0;g<n.length;g+=1)g>0&&(h+=","),h+=n[g];return h+="]",h},i},m=function(){var n=0,i=0,h=0,g="",S={},D=function(v){g+=String.fromCharCode(y(v&63))},y=function(v){if(!(v<0)){if(v<26)return 65+v;if(v<52)return 97+(v-26);if(v<62)return 48+(v-52);if(v==62)return 43;if(v==63)return 47}throw new Error("n:"+v)};return S.writeByte=function(v){for(n=n<<8|v&255,i+=8,h+=1;i>=6;)D(n>>>i-6),i-=6},S.flush=function(){if(i>0&&(D(n<<6-i),n=0,i=0),h%3!=0)for(var v=3-h%3,b=0;b<v;b+=1)g+="="},S.toString=function(){return g},S},p=function(n){var i=n,h=0,g=0,S=0,D={};D.read=function(){for(;S<8;){if(h>=i.length){if(S==0)return-1;throw new Error("unexpected end of file./"+S)}var v=i.charAt(h);if(h+=1,v=="=")return S=0,-1;if(v.match(/^\s$/))continue;g=g<<6|y(v.charCodeAt(0)),S+=6}var b=g>>>S-8&255;return S-=8,b};var y=function(v){if(65<=v&&v<=90)return v-65;if(97<=v&&v<=122)return v-97+26;if(48<=v&&v<=57)return v-48+52;if(v==43)return 62;if(v==47)return 63;throw new Error("c:"+v)};return D},e=function(n,i){var h=n,g=i,S=new Array(n*i),D={};D.setPixel=function(w,P,N){S[P*h+w]=N},D.write=function(w){w.writeString("GIF87a"),w.writeShort(h),w.writeShort(g),w.writeByte(128),w.writeByte(0),w.writeByte(0),w.writeByte(0),w.writeByte(0),w.writeByte(0),w.writeByte(255),w.writeByte(255),w.writeByte(255),w.writeString(","),w.writeShort(0),w.writeShort(0),w.writeShort(h),w.writeShort(g),w.writeByte(0);var P=2,N=v(P);w.writeByte(P);for(var R=0;N.length-R>255;)w.writeByte(255),w.writeBytes(N,R,255),R+=255;w.writeByte(N.length-R),w.writeBytes(N,R,N.length-R),w.writeByte(0),w.writeString(";")};var y=function(w){var P=w,N=0,R=0,_={};return _.write=function(W,q){if(W>>>q)throw new Error("length over");for(;N+q>=8;)P.writeByte(255&(W<<N|R)),q-=8-N,W>>>=8-N,R=0,N=0;R=W<<N|R,N=N+q},_.flush=function(){N>0&&P.writeByte(R)},_},v=function(w){for(var P=1<<w,N=(1<<w)+1,R=w+1,_=b(),W=0;W<P;W+=1)_.add(String.fromCharCode(W));_.add(String.fromCharCode(P)),_.add(String.fromCharCode(N));var q=c(),Z=y(q);Z.write(P,R);var $=0,ee=String.fromCharCode(S[$]);for($+=1;$<S.length;){var se=String.fromCharCode(S[$]);$+=1,_.contains(ee+se)?ee=ee+se:(Z.write(_.indexOf(ee),R),_.size()<4095&&(_.size()==1<<R&&(R+=1),_.add(ee+se)),ee=se)}return Z.write(_.indexOf(ee),R),Z.write(N,R),Z.flush(),q.toByteArray()},b=function(){var w={},P=0,N={};return N.add=function(R){if(N.contains(R))throw new Error("dup key:"+R);w[R]=P,P+=1},N.size=function(){return P},N.indexOf=function(R){return w[R]},N.contains=function(R){return typeof w[R]<"u"},N};return D},t=function(n,i,h,g){for(var S=e(n,i),D=0;D<i;D+=1)for(var y=0;y<n;y+=1)S.setPixel(y,D,h(y,D));var v=c();S.write(v);for(var b=m(),w=v.toByteArray(),P=0;P<w.length;P+=1)b.writeByte(w[P]);b.flush();var N="";return N+="<img",N+=' src="',N+="data:image/gif;base64,",N+=b,N+='"',N+=' width="',N+=n,N+='"',N+=' height="',N+=i,N+='"',g&&(N+=' alt="',N+=g,N+='"'),N+="/>",N};return u})()});var qt=nt((Ue,dt)=>{(function(r,l){typeof Ue=="object"&&typeof dt=="object"?dt.exports=l():typeof define=="function"&&define.amd?define([],l):typeof Ue=="object"?Ue.esprima=l():r.esprima=l()})(Ue,function(){return(function(u){var r={};function l(a){if(r[a])return r[a].exports;var d=r[a]={exports:{},id:a,loaded:!1};return u[a].call(d.exports,d,d.exports,l),d.loaded=!0,d.exports}return l.m=u,l.c=r,l.p="",l(0)})([function(u,r,l){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a=l(1),d=l(3),o=l(8),s=l(15);function B(p,e,t){var n=null,i=function(w,P){t&&t(w,P),n&&n.visit(w,P)},h=typeof t=="function"?i:null,g=!1;if(e){g=typeof e.comment=="boolean"&&e.comment;var S=typeof e.attachComment=="boolean"&&e.attachComment;(g||S)&&(n=new a.CommentHandler,n.attach=S,e.comment=!0,h=i)}var D=!1;e&&typeof e.sourceType=="string"&&(D=e.sourceType==="module");var y;e&&typeof e.jsx=="boolean"&&e.jsx?y=new d.JSXParser(p,e,h):y=new o.Parser(p,e,h);var v=D?y.parseModule():y.parseScript(),b=v;return g&&n&&(b.comments=n.comments),y.config.tokens&&(b.tokens=y.tokens),y.config.tolerant&&(b.errors=y.errorHandler.errors),b}r.parse=B;function A(p,e,t){var n=e||{};return n.sourceType="module",B(p,n,t)}r.parseModule=A;function C(p,e,t){var n=e||{};return n.sourceType="script",B(p,n,t)}r.parseScript=C;function c(p,e,t){var n=new s.Tokenizer(p,e),i;i=[];try{for(;;){var h=n.getNextToken();if(!h)break;t&&(h=t(h)),i.push(h)}}catch(g){n.errorHandler.tolerate(g)}return n.errorHandler.tolerant&&(i.errors=n.errors()),i}r.tokenize=c;var m=l(2);r.Syntax=m.Syntax,r.version="4.0.1"},function(u,r,l){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a=l(2),d=(function(){function o(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return o.prototype.insertInnerComments=function(s,B){if(s.type===a.Syntax.BlockStatement&&s.body.length===0){for(var A=[],C=this.leading.length-1;C>=0;--C){var c=this.leading[C];B.end.offset>=c.start&&(A.unshift(c.comment),this.leading.splice(C,1),this.trailing.splice(C,1))}A.length&&(s.innerComments=A)}},o.prototype.findTrailingComments=function(s){var B=[];if(this.trailing.length>0){for(var A=this.trailing.length-1;A>=0;--A){var C=this.trailing[A];C.start>=s.end.offset&&B.unshift(C.comment)}return this.trailing.length=0,B}var c=this.stack[this.stack.length-1];if(c&&c.node.trailingComments){var m=c.node.trailingComments[0];m&&m.range[0]>=s.end.offset&&(B=c.node.trailingComments,delete c.node.trailingComments)}return B},o.prototype.findLeadingComments=function(s){for(var B=[],A;this.stack.length>0;){var C=this.stack[this.stack.length-1];if(C&&C.start>=s.start.offset)A=C.node,this.stack.pop();else break}if(A){for(var c=A.leadingComments?A.leadingComments.length:0,m=c-1;m>=0;--m){var p=A.leadingComments[m];p.range[1]<=s.start.offset&&(B.unshift(p),A.leadingComments.splice(m,1))}return A.leadingComments&&A.leadingComments.length===0&&delete A.leadingComments,B}for(var m=this.leading.length-1;m>=0;--m){var C=this.leading[m];C.start<=s.start.offset&&(B.unshift(C.comment),this.leading.splice(m,1))}return B},o.prototype.visitNode=function(s,B){if(!(s.type===a.Syntax.Program&&s.body.length>0)){this.insertInnerComments(s,B);var A=this.findTrailingComments(B),C=this.findLeadingComments(B);C.length>0&&(s.leadingComments=C),A.length>0&&(s.trailingComments=A),this.stack.push({node:s,start:B.start.offset})}},o.prototype.visitComment=function(s,B){var A=s.type[0]==="L"?"Line":"Block",C={type:A,value:s.value};if(s.range&&(C.range=s.range),s.loc&&(C.loc=s.loc),this.comments.push(C),this.attach){var c={comment:{type:A,value:s.value,range:[B.start.offset,B.end.offset]},start:B.start.offset};s.loc&&(c.comment.loc=s.loc),s.type=A,this.leading.push(c),this.trailing.push(c)}},o.prototype.visit=function(s,B){s.type==="LineComment"?this.visitComment(s,B):s.type==="BlockComment"?this.visitComment(s,B):this.attach&&this.visitNode(s,B)},o})();r.CommentHandler=d},function(u,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(u,r,l){"use strict";var a=this&&this.__extends||(function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)n.hasOwnProperty(i)&&(t[i]=n[i])};return function(t,n){e(t,n);function i(){this.constructor=t}t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})();Object.defineProperty(r,"__esModule",{value:!0});var d=l(4),o=l(5),s=l(6),B=l(7),A=l(8),C=l(13),c=l(14);C.TokenName[100]="JSXIdentifier",C.TokenName[101]="JSXText";function m(e){var t;switch(e.type){case s.JSXSyntax.JSXIdentifier:var n=e;t=n.name;break;case s.JSXSyntax.JSXNamespacedName:var i=e;t=m(i.namespace)+":"+m(i.name);break;case s.JSXSyntax.JSXMemberExpression:var h=e;t=m(h.object)+"."+m(h.property);break;default:break}return t}var p=(function(e){a(t,e);function t(n,i,h){return e.call(this,n,i,h)||this}return t.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():e.prototype.parsePrimaryExpression.call(this)},t.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},t.prototype.finishJSX=function(){this.nextToken()},t.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},t.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.scanXHTMLEntity=function(n){for(var i="&",h=!0,g=!1,S=!1,D=!1;!this.scanner.eof()&&h&&!g;){var y=this.scanner.source[this.scanner.index];if(y===n)break;if(g=y===";",i+=y,++this.scanner.index,!g)switch(i.length){case 2:S=y==="#";break;case 3:S&&(D=y==="x",h=D||d.Character.isDecimalDigit(y.charCodeAt(0)),S=S&&!D);break;default:h=h&&!(S&&!d.Character.isDecimalDigit(y.charCodeAt(0))),h=h&&!(D&&!d.Character.isHexDigit(y.charCodeAt(0)));break}}if(h&&g&&i.length>2){var v=i.substr(1,i.length-2);S&&v.length>1?i=String.fromCharCode(parseInt(v.substr(1),10)):D&&v.length>2?i=String.fromCharCode(parseInt("0"+v.substr(1),16)):!S&&!D&&c.XHTMLEntities[v]&&(i=c.XHTMLEntities[v])}return i},t.prototype.lexJSX=function(){var n=this.scanner.source.charCodeAt(this.scanner.index);if(n===60||n===62||n===47||n===58||n===61||n===123||n===125){var i=this.scanner.source[this.scanner.index++];return{type:7,value:i,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index}}if(n===34||n===39){for(var h=this.scanner.index,g=this.scanner.source[this.scanner.index++],S="";!this.scanner.eof();){var D=this.scanner.source[this.scanner.index++];if(D===g)break;D==="&"?S+=this.scanXHTMLEntity(g):S+=D}return{type:8,value:S,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:h,end:this.scanner.index}}if(n===46){var y=this.scanner.source.charCodeAt(this.scanner.index+1),v=this.scanner.source.charCodeAt(this.scanner.index+2),i=y===46&&v===46?"...":".",h=this.scanner.index;return this.scanner.index+=i.length,{type:7,value:i,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:h,end:this.scanner.index}}if(n===96)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(d.Character.isIdentifierStart(n)&&n!==92){var h=this.scanner.index;for(++this.scanner.index;!this.scanner.eof();){var D=this.scanner.source.charCodeAt(this.scanner.index);if(d.Character.isIdentifierPart(D)&&D!==92)++this.scanner.index;else if(D===45)++this.scanner.index;else break}var b=this.scanner.source.slice(h,this.scanner.index);return{type:100,value:b,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:h,end:this.scanner.index}}return this.scanner.lex()},t.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var n=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(n)),n},t.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var n=this.scanner.index,i="";!this.scanner.eof();){var h=this.scanner.source[this.scanner.index];if(h==="{"||h==="<")break;++this.scanner.index,i+=h,d.Character.isLineTerminator(h.charCodeAt(0))&&(++this.scanner.lineNumber,h==="\r"&&this.scanner.source[this.scanner.index]===`
3
- `&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var g={type:101,value:i,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:n,end:this.scanner.index};return i.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(g)),g},t.prototype.peekJSXToken=function(){var n=this.scanner.saveState();this.scanner.scanComments();var i=this.lexJSX();return this.scanner.restoreState(n),i},t.prototype.expectJSX=function(n){var i=this.nextJSXToken();(i.type!==7||i.value!==n)&&this.throwUnexpectedToken(i)},t.prototype.matchJSX=function(n){var i=this.peekJSXToken();return i.type===7&&i.value===n},t.prototype.parseJSXIdentifier=function(){var n=this.createJSXNode(),i=this.nextJSXToken();return i.type!==100&&this.throwUnexpectedToken(i),this.finalize(n,new o.JSXIdentifier(i.value))},t.prototype.parseJSXElementName=function(){var n=this.createJSXNode(),i=this.parseJSXIdentifier();if(this.matchJSX(":")){var h=i;this.expectJSX(":");var g=this.parseJSXIdentifier();i=this.finalize(n,new o.JSXNamespacedName(h,g))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var S=i;this.expectJSX(".");var D=this.parseJSXIdentifier();i=this.finalize(n,new o.JSXMemberExpression(S,D))}return i},t.prototype.parseJSXAttributeName=function(){var n=this.createJSXNode(),i,h=this.parseJSXIdentifier();if(this.matchJSX(":")){var g=h;this.expectJSX(":");var S=this.parseJSXIdentifier();i=this.finalize(n,new o.JSXNamespacedName(g,S))}else i=h;return i},t.prototype.parseJSXStringLiteralAttribute=function(){var n=this.createJSXNode(),i=this.nextJSXToken();i.type!==8&&this.throwUnexpectedToken(i);var h=this.getTokenRaw(i);return this.finalize(n,new B.Literal(i.value,h))},t.prototype.parseJSXExpressionAttribute=function(){var n=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var i=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(n,new o.JSXExpressionContainer(i))},t.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},t.prototype.parseJSXNameValueAttribute=function(){var n=this.createJSXNode(),i=this.parseJSXAttributeName(),h=null;return this.matchJSX("=")&&(this.expectJSX("="),h=this.parseJSXAttributeValue()),this.finalize(n,new o.JSXAttribute(i,h))},t.prototype.parseJSXSpreadAttribute=function(){var n=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var i=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(n,new o.JSXSpreadAttribute(i))},t.prototype.parseJSXAttributes=function(){for(var n=[];!this.matchJSX("/")&&!this.matchJSX(">");){var i=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();n.push(i)}return n},t.prototype.parseJSXOpeningElement=function(){var n=this.createJSXNode();this.expectJSX("<");var i=this.parseJSXElementName(),h=this.parseJSXAttributes(),g=this.matchJSX("/");return g&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(n,new o.JSXOpeningElement(i,g,h))},t.prototype.parseJSXBoundaryElement=function(){var n=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var i=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(n,new o.JSXClosingElement(i))}var h=this.parseJSXElementName(),g=this.parseJSXAttributes(),S=this.matchJSX("/");return S&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(n,new o.JSXOpeningElement(h,S,g))},t.prototype.parseJSXEmptyExpression=function(){var n=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(n,new o.JSXEmptyExpression)},t.prototype.parseJSXExpressionContainer=function(){var n=this.createJSXNode();this.expectJSX("{");var i;return this.matchJSX("}")?(i=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),i=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(n,new o.JSXExpressionContainer(i))},t.prototype.parseJSXChildren=function(){for(var n=[];!this.scanner.eof();){var i=this.createJSXChildNode(),h=this.nextJSXText();if(h.start<h.end){var g=this.getTokenRaw(h),S=this.finalize(i,new o.JSXText(h.value,g));n.push(S)}if(this.scanner.source[this.scanner.index]==="{"){var D=this.parseJSXExpressionContainer();n.push(D)}else break}return n},t.prototype.parseComplexJSXElement=function(n){for(var i=[];!this.scanner.eof();){n.children=n.children.concat(this.parseJSXChildren());var h=this.createJSXChildNode(),g=this.parseJSXBoundaryElement();if(g.type===s.JSXSyntax.JSXOpeningElement){var S=g;if(S.selfClosing){var D=this.finalize(h,new o.JSXElement(S,[],null));n.children.push(D)}else i.push(n),n={node:h,opening:S,closing:null,children:[]}}if(g.type===s.JSXSyntax.JSXClosingElement){n.closing=g;var y=m(n.opening.name),v=m(n.closing.name);if(y!==v&&this.tolerateError("Expected corresponding JSX closing tag for %0",y),i.length>0){var D=this.finalize(n.node,new o.JSXElement(n.opening,n.children,n.closing));n=i[i.length-1],n.children.push(D),i.pop()}else break}}return n},t.prototype.parseJSXElement=function(){var n=this.createJSXNode(),i=this.parseJSXOpeningElement(),h=[],g=null;if(!i.selfClosing){var S=this.parseComplexJSXElement({node:n,opening:i,closing:g,children:h});h=S.children,g=S.closing}return this.finalize(n,new o.JSXElement(i,h,g))},t.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var n=this.parseJSXElement();return this.finishJSX(),n},t.prototype.isStartOfExpression=function(){return e.prototype.isStartOfExpression.call(this)||this.match("<")},t})(A.Parser);r.JSXParser=p},function(u,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var l={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\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\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\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\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\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\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\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\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\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-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\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]|\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-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\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\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[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\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]|\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]|\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]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\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\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\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-\u0B6F\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-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\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\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\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\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\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\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\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\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\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\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\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\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\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]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\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\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\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]|\uDB40[\uDD00-\uDDEF]/};r.Character={fromCodePoint:function(a){return a<65536?String.fromCharCode(a):String.fromCharCode(55296+(a-65536>>10))+String.fromCharCode(56320+(a-65536&1023))},isWhiteSpace:function(a){return a===32||a===9||a===11||a===12||a===160||a>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(a)>=0},isLineTerminator:function(a){return a===10||a===13||a===8232||a===8233},isIdentifierStart:function(a){return a===36||a===95||a>=65&&a<=90||a>=97&&a<=122||a===92||a>=128&&l.NonAsciiIdentifierStart.test(r.Character.fromCodePoint(a))},isIdentifierPart:function(a){return a===36||a===95||a>=65&&a<=90||a>=97&&a<=122||a>=48&&a<=57||a===92||a>=128&&l.NonAsciiIdentifierPart.test(r.Character.fromCodePoint(a))},isDecimalDigit:function(a){return a>=48&&a<=57},isHexDigit:function(a){return a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102},isOctalDigit:function(a){return a>=48&&a<=55}}},function(u,r,l){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a=l(6),d=(function(){function n(i){this.type=a.JSXSyntax.JSXClosingElement,this.name=i}return n})();r.JSXClosingElement=d;var o=(function(){function n(i,h,g){this.type=a.JSXSyntax.JSXElement,this.openingElement=i,this.children=h,this.closingElement=g}return n})();r.JSXElement=o;var s=(function(){function n(){this.type=a.JSXSyntax.JSXEmptyExpression}return n})();r.JSXEmptyExpression=s;var B=(function(){function n(i){this.type=a.JSXSyntax.JSXExpressionContainer,this.expression=i}return n})();r.JSXExpressionContainer=B;var A=(function(){function n(i){this.type=a.JSXSyntax.JSXIdentifier,this.name=i}return n})();r.JSXIdentifier=A;var C=(function(){function n(i,h){this.type=a.JSXSyntax.JSXMemberExpression,this.object=i,this.property=h}return n})();r.JSXMemberExpression=C;var c=(function(){function n(i,h){this.type=a.JSXSyntax.JSXAttribute,this.name=i,this.value=h}return n})();r.JSXAttribute=c;var m=(function(){function n(i,h){this.type=a.JSXSyntax.JSXNamespacedName,this.namespace=i,this.name=h}return n})();r.JSXNamespacedName=m;var p=(function(){function n(i,h,g){this.type=a.JSXSyntax.JSXOpeningElement,this.name=i,this.selfClosing=h,this.attributes=g}return n})();r.JSXOpeningElement=p;var e=(function(){function n(i){this.type=a.JSXSyntax.JSXSpreadAttribute,this.argument=i}return n})();r.JSXSpreadAttribute=e;var t=(function(){function n(i,h){this.type=a.JSXSyntax.JSXText,this.value=i,this.raw=h}return n})();r.JSXText=t},function(u,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(u,r,l){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a=l(2),d=(function(){function F(k){this.type=a.Syntax.ArrayExpression,this.elements=k}return F})();r.ArrayExpression=d;var o=(function(){function F(k){this.type=a.Syntax.ArrayPattern,this.elements=k}return F})();r.ArrayPattern=o;var s=(function(){function F(k,L,j){this.type=a.Syntax.ArrowFunctionExpression,this.id=null,this.params=k,this.body=L,this.generator=!1,this.expression=j,this.async=!1}return F})();r.ArrowFunctionExpression=s;var B=(function(){function F(k,L,j){this.type=a.Syntax.AssignmentExpression,this.operator=k,this.left=L,this.right=j}return F})();r.AssignmentExpression=B;var A=(function(){function F(k,L){this.type=a.Syntax.AssignmentPattern,this.left=k,this.right=L}return F})();r.AssignmentPattern=A;var C=(function(){function F(k,L,j){this.type=a.Syntax.ArrowFunctionExpression,this.id=null,this.params=k,this.body=L,this.generator=!1,this.expression=j,this.async=!0}return F})();r.AsyncArrowFunctionExpression=C;var c=(function(){function F(k,L,j){this.type=a.Syntax.FunctionDeclaration,this.id=k,this.params=L,this.body=j,this.generator=!1,this.expression=!1,this.async=!0}return F})();r.AsyncFunctionDeclaration=c;var m=(function(){function F(k,L,j){this.type=a.Syntax.FunctionExpression,this.id=k,this.params=L,this.body=j,this.generator=!1,this.expression=!1,this.async=!0}return F})();r.AsyncFunctionExpression=m;var p=(function(){function F(k){this.type=a.Syntax.AwaitExpression,this.argument=k}return F})();r.AwaitExpression=p;var e=(function(){function F(k,L,j){var he=k==="||"||k==="&&";this.type=he?a.Syntax.LogicalExpression:a.Syntax.BinaryExpression,this.operator=k,this.left=L,this.right=j}return F})();r.BinaryExpression=e;var t=(function(){function F(k){this.type=a.Syntax.BlockStatement,this.body=k}return F})();r.BlockStatement=t;var n=(function(){function F(k){this.type=a.Syntax.BreakStatement,this.label=k}return F})();r.BreakStatement=n;var i=(function(){function F(k,L){this.type=a.Syntax.CallExpression,this.callee=k,this.arguments=L}return F})();r.CallExpression=i;var h=(function(){function F(k,L){this.type=a.Syntax.CatchClause,this.param=k,this.body=L}return F})();r.CatchClause=h;var g=(function(){function F(k){this.type=a.Syntax.ClassBody,this.body=k}return F})();r.ClassBody=g;var S=(function(){function F(k,L,j){this.type=a.Syntax.ClassDeclaration,this.id=k,this.superClass=L,this.body=j}return F})();r.ClassDeclaration=S;var D=(function(){function F(k,L,j){this.type=a.Syntax.ClassExpression,this.id=k,this.superClass=L,this.body=j}return F})();r.ClassExpression=D;var y=(function(){function F(k,L){this.type=a.Syntax.MemberExpression,this.computed=!0,this.object=k,this.property=L}return F})();r.ComputedMemberExpression=y;var v=(function(){function F(k,L,j){this.type=a.Syntax.ConditionalExpression,this.test=k,this.consequent=L,this.alternate=j}return F})();r.ConditionalExpression=v;var b=(function(){function F(k){this.type=a.Syntax.ContinueStatement,this.label=k}return F})();r.ContinueStatement=b;var w=(function(){function F(){this.type=a.Syntax.DebuggerStatement}return F})();r.DebuggerStatement=w;var P=(function(){function F(k,L){this.type=a.Syntax.ExpressionStatement,this.expression=k,this.directive=L}return F})();r.Directive=P;var N=(function(){function F(k,L){this.type=a.Syntax.DoWhileStatement,this.body=k,this.test=L}return F})();r.DoWhileStatement=N;var R=(function(){function F(){this.type=a.Syntax.EmptyStatement}return F})();r.EmptyStatement=R;var _=(function(){function F(k){this.type=a.Syntax.ExportAllDeclaration,this.source=k}return F})();r.ExportAllDeclaration=_;var W=(function(){function F(k){this.type=a.Syntax.ExportDefaultDeclaration,this.declaration=k}return F})();r.ExportDefaultDeclaration=W;var q=(function(){function F(k,L,j){this.type=a.Syntax.ExportNamedDeclaration,this.declaration=k,this.specifiers=L,this.source=j}return F})();r.ExportNamedDeclaration=q;var Z=(function(){function F(k,L){this.type=a.Syntax.ExportSpecifier,this.exported=L,this.local=k}return F})();r.ExportSpecifier=Z;var $=(function(){function F(k){this.type=a.Syntax.ExpressionStatement,this.expression=k}return F})();r.ExpressionStatement=$;var ee=(function(){function F(k,L,j){this.type=a.Syntax.ForInStatement,this.left=k,this.right=L,this.body=j,this.each=!1}return F})();r.ForInStatement=ee;var se=(function(){function F(k,L,j){this.type=a.Syntax.ForOfStatement,this.left=k,this.right=L,this.body=j}return F})();r.ForOfStatement=se;var ce=(function(){function F(k,L,j,he){this.type=a.Syntax.ForStatement,this.init=k,this.test=L,this.update=j,this.body=he}return F})();r.ForStatement=ce;var z=(function(){function F(k,L,j,he){this.type=a.Syntax.FunctionDeclaration,this.id=k,this.params=L,this.body=j,this.generator=he,this.expression=!1,this.async=!1}return F})();r.FunctionDeclaration=z;var H=(function(){function F(k,L,j,he){this.type=a.Syntax.FunctionExpression,this.id=k,this.params=L,this.body=j,this.generator=he,this.expression=!1,this.async=!1}return F})();r.FunctionExpression=H;var O=(function(){function F(k){this.type=a.Syntax.Identifier,this.name=k}return F})();r.Identifier=O;var J=(function(){function F(k,L,j){this.type=a.Syntax.IfStatement,this.test=k,this.consequent=L,this.alternate=j}return F})();r.IfStatement=J;var V=(function(){function F(k,L){this.type=a.Syntax.ImportDeclaration,this.specifiers=k,this.source=L}return F})();r.ImportDeclaration=V;var Y=(function(){function F(k){this.type=a.Syntax.ImportDefaultSpecifier,this.local=k}return F})();r.ImportDefaultSpecifier=Y;var te=(function(){function F(k){this.type=a.Syntax.ImportNamespaceSpecifier,this.local=k}return F})();r.ImportNamespaceSpecifier=te;var K=(function(){function F(k,L){this.type=a.Syntax.ImportSpecifier,this.local=k,this.imported=L}return F})();r.ImportSpecifier=K;var ue=(function(){function F(k,L){this.type=a.Syntax.LabeledStatement,this.label=k,this.body=L}return F})();r.LabeledStatement=ue;var le=(function(){function F(k,L){this.type=a.Syntax.Literal,this.value=k,this.raw=L}return F})();r.Literal=le;var ne=(function(){function F(k,L){this.type=a.Syntax.MetaProperty,this.meta=k,this.property=L}return F})();r.MetaProperty=ne;var me=(function(){function F(k,L,j,he,tt){this.type=a.Syntax.MethodDefinition,this.key=k,this.computed=L,this.value=j,this.kind=he,this.static=tt}return F})();r.MethodDefinition=me;var ge=(function(){function F(k){this.type=a.Syntax.Program,this.body=k,this.sourceType="module"}return F})();r.Module=ge;var xe=(function(){function F(k,L){this.type=a.Syntax.NewExpression,this.callee=k,this.arguments=L}return F})();r.NewExpression=xe;var Be=(function(){function F(k){this.type=a.Syntax.ObjectExpression,this.properties=k}return F})();r.ObjectExpression=Be;var we=(function(){function F(k){this.type=a.Syntax.ObjectPattern,this.properties=k}return F})();r.ObjectPattern=we;var Ee=(function(){function F(k,L,j,he,tt,tn){this.type=a.Syntax.Property,this.key=L,this.computed=j,this.value=he,this.kind=k,this.method=tt,this.shorthand=tn}return F})();r.Property=Ee;var De=(function(){function F(k,L,j,he){this.type=a.Syntax.Literal,this.value=k,this.raw=L,this.regex={pattern:j,flags:he}}return F})();r.RegexLiteral=De;var He=(function(){function F(k){this.type=a.Syntax.RestElement,this.argument=k}return F})();r.RestElement=He;var Pe=(function(){function F(k){this.type=a.Syntax.ReturnStatement,this.argument=k}return F})();r.ReturnStatement=Pe;var $e=(function(){function F(k){this.type=a.Syntax.Program,this.body=k,this.sourceType="script"}return F})();r.Script=$e;var Qe=(function(){function F(k){this.type=a.Syntax.SequenceExpression,this.expressions=k}return F})();r.SequenceExpression=Qe;var ae=(function(){function F(k){this.type=a.Syntax.SpreadElement,this.argument=k}return F})();r.SpreadElement=ae;var Ze=(function(){function F(k,L){this.type=a.Syntax.MemberExpression,this.computed=!1,this.object=k,this.property=L}return F})();r.StaticMemberExpression=Ze;var et=(function(){function F(){this.type=a.Syntax.Super}return F})();r.Super=et;var Je=(function(){function F(k,L){this.type=a.Syntax.SwitchCase,this.test=k,this.consequent=L}return F})();r.SwitchCase=Je;var Xe=(function(){function F(k,L){this.type=a.Syntax.SwitchStatement,this.discriminant=k,this.cases=L}return F})();r.SwitchStatement=Xe;var f=(function(){function F(k,L){this.type=a.Syntax.TaggedTemplateExpression,this.tag=k,this.quasi=L}return F})();r.TaggedTemplateExpression=f;var x=(function(){function F(k,L){this.type=a.Syntax.TemplateElement,this.value=k,this.tail=L}return F})();r.TemplateElement=x;var E=(function(){function F(k,L){this.type=a.Syntax.TemplateLiteral,this.quasis=k,this.expressions=L}return F})();r.TemplateLiteral=E;var T=(function(){function F(){this.type=a.Syntax.ThisExpression}return F})();r.ThisExpression=T;var I=(function(){function F(k){this.type=a.Syntax.ThrowStatement,this.argument=k}return F})();r.ThrowStatement=I;var X=(function(){function F(k,L,j){this.type=a.Syntax.TryStatement,this.block=k,this.handler=L,this.finalizer=j}return F})();r.TryStatement=X;var M=(function(){function F(k,L){this.type=a.Syntax.UnaryExpression,this.operator=k,this.argument=L,this.prefix=!0}return F})();r.UnaryExpression=M;var Q=(function(){function F(k,L,j){this.type=a.Syntax.UpdateExpression,this.operator=k,this.argument=L,this.prefix=j}return F})();r.UpdateExpression=Q;var G=(function(){function F(k,L){this.type=a.Syntax.VariableDeclaration,this.declarations=k,this.kind=L}return F})();r.VariableDeclaration=G;var re=(function(){function F(k,L){this.type=a.Syntax.VariableDeclarator,this.id=k,this.init=L}return F})();r.VariableDeclarator=re;var ie=(function(){function F(k,L){this.type=a.Syntax.WhileStatement,this.test=k,this.body=L}return F})();r.WhileStatement=ie;var ye=(function(){function F(k,L){this.type=a.Syntax.WithStatement,this.object=k,this.body=L}return F})();r.WithStatement=ye;var Ae=(function(){function F(k,L){this.type=a.Syntax.YieldExpression,this.argument=k,this.delegate=L}return F})();r.YieldExpression=Ae},function(u,r,l){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a=l(9),d=l(10),o=l(11),s=l(7),B=l(12),A=l(2),C=l(13),c="ArrowParameterPlaceHolder",m=(function(){function p(e,t,n){t===void 0&&(t={}),this.config={range:typeof t.range=="boolean"&&t.range,loc:typeof t.loc=="boolean"&&t.loc,source:null,tokens:typeof t.tokens=="boolean"&&t.tokens,comment:typeof t.comment=="boolean"&&t.comment,tolerant:typeof t.tolerant=="boolean"&&t.tolerant},this.config.loc&&t.source&&t.source!==null&&(this.config.source=String(t.source)),this.delegate=n,this.errorHandler=new d.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new B.Scanner(e,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return p.prototype.throwError=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=Array.prototype.slice.call(arguments,1),h=e.replace(/%(\d)/g,function(y,v){return a.assert(v<i.length,"Message reference must be in range"),i[v]}),g=this.lastMarker.index,S=this.lastMarker.line,D=this.lastMarker.column+1;throw this.errorHandler.createError(g,S,D,h)},p.prototype.tolerateError=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=Array.prototype.slice.call(arguments,1),h=e.replace(/%(\d)/g,function(y,v){return a.assert(v<i.length,"Message reference must be in range"),i[v]}),g=this.lastMarker.index,S=this.scanner.lineNumber,D=this.lastMarker.column+1;this.errorHandler.tolerateError(g,S,D,h)},p.prototype.unexpectedTokenError=function(e,t){var n=t||o.Messages.UnexpectedToken,i;if(e?(t||(n=e.type===2?o.Messages.UnexpectedEOS:e.type===3?o.Messages.UnexpectedIdentifier:e.type===6?o.Messages.UnexpectedNumber:e.type===8?o.Messages.UnexpectedString:e.type===10?o.Messages.UnexpectedTemplate:o.Messages.UnexpectedToken,e.type===4&&(this.scanner.isFutureReservedWord(e.value)?n=o.Messages.UnexpectedReserved:this.context.strict&&this.scanner.isStrictModeReservedWord(e.value)&&(n=o.Messages.StrictReservedWord))),i=e.value):i="ILLEGAL",n=n.replace("%0",i),e&&typeof e.lineNumber=="number"){var h=e.start,g=e.lineNumber,S=this.lastMarker.index-this.lastMarker.column,D=e.start-S+1;return this.errorHandler.createError(h,g,D,n)}else{var h=this.lastMarker.index,g=this.lastMarker.line,D=this.lastMarker.column+1;return this.errorHandler.createError(h,g,D,n)}},p.prototype.throwUnexpectedToken=function(e,t){throw this.unexpectedTokenError(e,t)},p.prototype.tolerateUnexpectedToken=function(e,t){this.errorHandler.tolerate(this.unexpectedTokenError(e,t))},p.prototype.collectComments=function(){if(!this.config.comment)this.scanner.scanComments();else{var e=this.scanner.scanComments();if(e.length>0&&this.delegate)for(var t=0;t<e.length;++t){var n=e[t],i=void 0;i={type:n.multiLine?"BlockComment":"LineComment",value:this.scanner.source.slice(n.slice[0],n.slice[1])},this.config.range&&(i.range=n.range),this.config.loc&&(i.loc=n.loc);var h={start:{line:n.loc.start.line,column:n.loc.start.column,offset:n.range[0]},end:{line:n.loc.end.line,column:n.loc.end.column,offset:n.range[1]}};this.delegate(i,h)}}},p.prototype.getTokenRaw=function(e){return this.scanner.source.slice(e.start,e.end)},p.prototype.convertToken=function(e){var t={type:C.TokenName[e.type],value:this.getTokenRaw(e)};if(this.config.range&&(t.range=[e.start,e.end]),this.config.loc&&(t.loc={start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}),e.type===9){var n=e.pattern,i=e.flags;t.regex={pattern:n,flags:i}}return t},p.prototype.nextToken=function(){var e=this.lookahead;this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.collectComments(),this.scanner.index!==this.startMarker.index&&(this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart);var t=this.scanner.lex();return this.hasLineTerminator=e.lineNumber!==t.lineNumber,t&&this.context.strict&&t.type===3&&this.scanner.isStrictModeReservedWord(t.value)&&(t.type=4),this.lookahead=t,this.config.tokens&&t.type!==2&&this.tokens.push(this.convertToken(t)),e},p.prototype.nextRegexToken=function(){this.collectComments();var e=this.scanner.scanRegExp();return this.config.tokens&&(this.tokens.pop(),this.tokens.push(this.convertToken(e))),this.lookahead=e,this.nextToken(),e},p.prototype.createNode=function(){return{index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}},p.prototype.startNode=function(e,t){t===void 0&&(t=0);var n=e.start-e.lineStart,i=e.lineNumber;return n<0&&(n+=t,i--),{index:e.start,line:i,column:n}},p.prototype.finalize=function(e,t){if(this.config.range&&(t.range=[e.index,this.lastMarker.index]),this.config.loc&&(t.loc={start:{line:e.line,column:e.column},end:{line:this.lastMarker.line,column:this.lastMarker.column}},this.config.source&&(t.loc.source=this.config.source)),this.delegate){var n={start:{line:e.line,column:e.column,offset:e.index},end:{line:this.lastMarker.line,column:this.lastMarker.column,offset:this.lastMarker.index}};this.delegate(t,n)}return t},p.prototype.expect=function(e){var t=this.nextToken();(t.type!==7||t.value!==e)&&this.throwUnexpectedToken(t)},p.prototype.expectCommaSeparator=function(){if(this.config.tolerant){var e=this.lookahead;e.type===7&&e.value===","?this.nextToken():e.type===7&&e.value===";"?(this.nextToken(),this.tolerateUnexpectedToken(e)):this.tolerateUnexpectedToken(e,o.Messages.UnexpectedToken)}else this.expect(",")},p.prototype.expectKeyword=function(e){var t=this.nextToken();(t.type!==4||t.value!==e)&&this.throwUnexpectedToken(t)},p.prototype.match=function(e){return this.lookahead.type===7&&this.lookahead.value===e},p.prototype.matchKeyword=function(e){return this.lookahead.type===4&&this.lookahead.value===e},p.prototype.matchContextualKeyword=function(e){return this.lookahead.type===3&&this.lookahead.value===e},p.prototype.matchAssign=function(){if(this.lookahead.type!==7)return!1;var e=this.lookahead.value;return e==="="||e==="*="||e==="**="||e==="/="||e==="%="||e==="+="||e==="-="||e==="<<="||e===">>="||e===">>>="||e==="&="||e==="^="||e==="|="},p.prototype.isolateCoverGrammar=function(e){var t=this.context.isBindingElement,n=this.context.isAssignmentTarget,i=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var h=e.call(this);return this.context.firstCoverInitializedNameError!==null&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=t,this.context.isAssignmentTarget=n,this.context.firstCoverInitializedNameError=i,h},p.prototype.inheritCoverGrammar=function(e){var t=this.context.isBindingElement,n=this.context.isAssignmentTarget,i=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var h=e.call(this);return this.context.isBindingElement=this.context.isBindingElement&&t,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&n,this.context.firstCoverInitializedNameError=i||this.context.firstCoverInitializedNameError,h},p.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(this.lookahead.type!==2&&!this.match("}")&&this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},p.prototype.parsePrimaryExpression=function(){var e=this.createNode(),t,n,i;switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&this.lookahead.value==="await"&&this.tolerateUnexpectedToken(this.lookahead),t=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(e,new s.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,o.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,n=this.nextToken(),i=this.getTokenRaw(n),t=this.finalize(e,new s.Literal(n.value,i));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,n=this.nextToken(),i=this.getTokenRaw(n),t=this.finalize(e,new s.Literal(n.value==="true",i));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,n=this.nextToken(),i=this.getTokenRaw(n),t=this.finalize(e,new s.Literal(null,i));break;case 10:t=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,t=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":t=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":t=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,n=this.nextRegexToken(),i=this.getTokenRaw(n),t=this.finalize(e,new s.RegexLiteral(n.regex,i,n.pattern,n.flags));break;default:t=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?t=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?t=this.finalize(e,new s.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?t=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),t=this.finalize(e,new s.ThisExpression)):this.matchKeyword("class")?t=this.parseClassExpression():t=this.throwUnexpectedToken(this.nextToken()));break;default:t=this.throwUnexpectedToken(this.nextToken())}return t},p.prototype.parseSpreadElement=function(){var e=this.createNode();this.expect("...");var t=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(e,new s.SpreadElement(t))},p.prototype.parseArrayInitializer=function(){var e=this.createNode(),t=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),t.push(null);else if(this.match("...")){var n=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),t.push(n)}else t.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(e,new s.ArrayExpression(t))},p.prototype.parsePropertyMethod=function(e){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var t=this.context.strict,n=this.context.allowStrictDirective;this.context.allowStrictDirective=e.simple;var i=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&e.firstRestricted&&this.tolerateUnexpectedToken(e.firstRestricted,e.message),this.context.strict&&e.stricted&&this.tolerateUnexpectedToken(e.stricted,e.message),this.context.strict=t,this.context.allowStrictDirective=n,i},p.prototype.parsePropertyMethodFunction=function(){var e=!1,t=this.createNode(),n=this.context.allowYield;this.context.allowYield=!0;var i=this.parseFormalParameters(),h=this.parsePropertyMethod(i);return this.context.allowYield=n,this.finalize(t,new s.FunctionExpression(null,i.params,h,e))},p.prototype.parsePropertyMethodAsyncFunction=function(){var e=this.createNode(),t=this.context.allowYield,n=this.context.await;this.context.allowYield=!1,this.context.await=!0;var i=this.parseFormalParameters(),h=this.parsePropertyMethod(i);return this.context.allowYield=t,this.context.await=n,this.finalize(e,new s.AsyncFunctionExpression(null,i.params,h))},p.prototype.parseObjectPropertyKey=function(){var e=this.createNode(),t=this.nextToken(),n;switch(t.type){case 8:case 6:this.context.strict&&t.octal&&this.tolerateUnexpectedToken(t,o.Messages.StrictOctalLiteral);var i=this.getTokenRaw(t);n=this.finalize(e,new s.Literal(t.value,i));break;case 3:case 1:case 5:case 4:n=this.finalize(e,new s.Identifier(t.value));break;case 7:t.value==="["?(n=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):n=this.throwUnexpectedToken(t);break;default:n=this.throwUnexpectedToken(t)}return n},p.prototype.isPropertyKey=function(e,t){return e.type===A.Syntax.Identifier&&e.name===t||e.type===A.Syntax.Literal&&e.value===t},p.prototype.parseObjectProperty=function(e){var t=this.createNode(),n=this.lookahead,i,h=null,g=null,S=!1,D=!1,y=!1,v=!1;if(n.type===3){var b=n.value;this.nextToken(),S=this.match("["),v=!this.hasLineTerminator&&b==="async"&&!this.match(":")&&!this.match("(")&&!this.match("*")&&!this.match(","),h=v?this.parseObjectPropertyKey():this.finalize(t,new s.Identifier(b))}else this.match("*")?this.nextToken():(S=this.match("["),h=this.parseObjectPropertyKey());var w=this.qualifiedPropertyName(this.lookahead);if(n.type===3&&!v&&n.value==="get"&&w)i="get",S=this.match("["),h=this.parseObjectPropertyKey(),this.context.allowYield=!1,g=this.parseGetterMethod();else if(n.type===3&&!v&&n.value==="set"&&w)i="set",S=this.match("["),h=this.parseObjectPropertyKey(),g=this.parseSetterMethod();else if(n.type===7&&n.value==="*"&&w)i="init",S=this.match("["),h=this.parseObjectPropertyKey(),g=this.parseGeneratorMethod(),D=!0;else if(h||this.throwUnexpectedToken(this.lookahead),i="init",this.match(":")&&!v)!S&&this.isPropertyKey(h,"__proto__")&&(e.value&&this.tolerateError(o.Messages.DuplicateProtoProperty),e.value=!0),this.nextToken(),g=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))g=v?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),D=!0;else if(n.type===3){var b=this.finalize(t,new s.Identifier(n.value));if(this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),y=!0;var P=this.isolateCoverGrammar(this.parseAssignmentExpression);g=this.finalize(t,new s.AssignmentPattern(b,P))}else y=!0,g=b}else this.throwUnexpectedToken(this.nextToken());return this.finalize(t,new s.Property(i,h,S,g,D,y))},p.prototype.parseObjectInitializer=function(){var e=this.createNode();this.expect("{");for(var t=[],n={value:!1};!this.match("}");)t.push(this.parseObjectProperty(n)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(e,new s.ObjectExpression(t))},p.prototype.parseTemplateHead=function(){a.assert(this.lookahead.head,"Template literal must start with a template head");var e=this.createNode(),t=this.nextToken(),n=t.value,i=t.cooked;return this.finalize(e,new s.TemplateElement({raw:n,cooked:i},t.tail))},p.prototype.parseTemplateElement=function(){this.lookahead.type!==10&&this.throwUnexpectedToken();var e=this.createNode(),t=this.nextToken(),n=t.value,i=t.cooked;return this.finalize(e,new s.TemplateElement({raw:n,cooked:i},t.tail))},p.prototype.parseTemplateLiteral=function(){var e=this.createNode(),t=[],n=[],i=this.parseTemplateHead();for(n.push(i);!i.tail;)t.push(this.parseExpression()),i=this.parseTemplateElement(),n.push(i);return this.finalize(e,new s.TemplateLiteral(n,t))},p.prototype.reinterpretExpressionAsPattern=function(e){switch(e.type){case A.Syntax.Identifier:case A.Syntax.MemberExpression:case A.Syntax.RestElement:case A.Syntax.AssignmentPattern:break;case A.Syntax.SpreadElement:e.type=A.Syntax.RestElement,this.reinterpretExpressionAsPattern(e.argument);break;case A.Syntax.ArrayExpression:e.type=A.Syntax.ArrayPattern;for(var t=0;t<e.elements.length;t++)e.elements[t]!==null&&this.reinterpretExpressionAsPattern(e.elements[t]);break;case A.Syntax.ObjectExpression:e.type=A.Syntax.ObjectPattern;for(var t=0;t<e.properties.length;t++)this.reinterpretExpressionAsPattern(e.properties[t].value);break;case A.Syntax.AssignmentExpression:e.type=A.Syntax.AssignmentPattern,delete e.operator,this.reinterpretExpressionAsPattern(e.left);break;default:break}},p.prototype.parseGroupExpression=function(){var e;if(this.expect("("),this.match(")"))this.nextToken(),this.match("=>")||this.expect("=>"),e={type:c,params:[],async:!1};else{var t=this.lookahead,n=[];if(this.match("..."))e=this.parseRestElement(n),this.expect(")"),this.match("=>")||this.expect("=>"),e={type:c,params:[e],async:!1};else{var i=!1;if(this.context.isBindingElement=!0,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var h=[];for(this.context.isAssignmentTarget=!1,h.push(e);this.lookahead.type!==2&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var g=0;g<h.length;g++)this.reinterpretExpressionAsPattern(h[g]);i=!0,e={type:c,params:h,async:!1}}else if(this.match("...")){this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),h.push(this.parseRestElement(n)),this.expect(")"),this.match("=>")||this.expect("=>"),this.context.isBindingElement=!1;for(var g=0;g<h.length;g++)this.reinterpretExpressionAsPattern(h[g]);i=!0,e={type:c,params:h,async:!1}}else h.push(this.inheritCoverGrammar(this.parseAssignmentExpression));if(i)break}i||(e=this.finalize(this.startNode(t),new s.SequenceExpression(h)))}if(!i){if(this.expect(")"),this.match("=>")&&(e.type===A.Syntax.Identifier&&e.name==="yield"&&(i=!0,e={type:c,params:[e],async:!1}),!i)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),e.type===A.Syntax.SequenceExpression)for(var g=0;g<e.expressions.length;g++)this.reinterpretExpressionAsPattern(e.expressions[g]);else this.reinterpretExpressionAsPattern(e);var S=e.type===A.Syntax.SequenceExpression?e.expressions:[e];e={type:c,params:S,async:!1}}this.context.isBindingElement=!1}}}return e},p.prototype.parseArguments=function(){this.expect("(");var e=[];if(!this.match(")"))for(;;){var t=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAssignmentExpression);if(e.push(t),this.match(")")||(this.expectCommaSeparator(),this.match(")")))break}return this.expect(")"),e},p.prototype.isIdentifierName=function(e){return e.type===3||e.type===4||e.type===1||e.type===5},p.prototype.parseIdentifierName=function(){var e=this.createNode(),t=this.nextToken();return this.isIdentifierName(t)||this.throwUnexpectedToken(t),this.finalize(e,new s.Identifier(t.value))},p.prototype.parseNewExpression=function(){var e=this.createNode(),t=this.parseIdentifierName();a.assert(t.name==="new","New expression must start with `new`");var n;if(this.match("."))if(this.nextToken(),this.lookahead.type===3&&this.context.inFunctionBody&&this.lookahead.value==="target"){var i=this.parseIdentifierName();n=new s.MetaProperty(t,i)}else this.throwUnexpectedToken(this.lookahead);else{var h=this.isolateCoverGrammar(this.parseLeftHandSideExpression),g=this.match("(")?this.parseArguments():[];n=new s.NewExpression(h,g),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return this.finalize(e,n)},p.prototype.parseAsyncArgument=function(){var e=this.parseAssignmentExpression();return this.context.firstCoverInitializedNameError=null,e},p.prototype.parseAsyncArguments=function(){this.expect("(");var e=[];if(!this.match(")"))for(;;){var t=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAsyncArgument);if(e.push(t),this.match(")")||(this.expectCommaSeparator(),this.match(")")))break}return this.expect(")"),e},p.prototype.parseLeftHandSideExpressionAllowCall=function(){var e=this.lookahead,t=this.matchContextualKeyword("async"),n=this.context.allowIn;this.context.allowIn=!0;var i;for(this.matchKeyword("super")&&this.context.inFunctionBody?(i=this.createNode(),this.nextToken(),i=this.finalize(i,new s.Super),!this.match("(")&&!this.match(".")&&!this.match("[")&&this.throwUnexpectedToken(this.lookahead)):i=this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var h=this.parseIdentifierName();i=this.finalize(this.startNode(e),new s.StaticMemberExpression(i,h))}else if(this.match("(")){var g=t&&e.lineNumber===this.lookahead.lineNumber;this.context.isBindingElement=!1,this.context.isAssignmentTarget=!1;var S=g?this.parseAsyncArguments():this.parseArguments();if(i=this.finalize(this.startNode(e),new s.CallExpression(i,S)),g&&this.match("=>")){for(var D=0;D<S.length;++D)this.reinterpretExpressionAsPattern(S[D]);i={type:c,params:S,async:!0}}}else if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var h=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),i=this.finalize(this.startNode(e),new s.ComputedMemberExpression(i,h))}else if(this.lookahead.type===10&&this.lookahead.head){var y=this.parseTemplateLiteral();i=this.finalize(this.startNode(e),new s.TaggedTemplateExpression(i,y))}else break;return this.context.allowIn=n,i},p.prototype.parseSuper=function(){var e=this.createNode();return this.expectKeyword("super"),!this.match("[")&&!this.match(".")&&this.throwUnexpectedToken(this.lookahead),this.finalize(e,new s.Super)},p.prototype.parseLeftHandSideExpression=function(){a.assert(this.context.allowIn,"callee of new expression always allow in keyword.");for(var e=this.startNode(this.lookahead),t=this.matchKeyword("super")&&this.context.inFunctionBody?this.parseSuper():this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var n=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),t=this.finalize(e,new s.ComputedMemberExpression(t,n))}else if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var n=this.parseIdentifierName();t=this.finalize(e,new s.StaticMemberExpression(t,n))}else if(this.lookahead.type===10&&this.lookahead.head){var i=this.parseTemplateLiteral();t=this.finalize(e,new s.TaggedTemplateExpression(t,i))}else break;return t},p.prototype.parseUpdateExpression=function(){var e,t=this.lookahead;if(this.match("++")||this.match("--")){var n=this.startNode(t),i=this.nextToken();e=this.inheritCoverGrammar(this.parseUnaryExpression),this.context.strict&&e.type===A.Syntax.Identifier&&this.scanner.isRestrictedWord(e.name)&&this.tolerateError(o.Messages.StrictLHSPrefix),this.context.isAssignmentTarget||this.tolerateError(o.Messages.InvalidLHSInAssignment);var h=!0;e=this.finalize(n,new s.UpdateExpression(i.value,e,h)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else if(e=this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall),!this.hasLineTerminator&&this.lookahead.type===7&&(this.match("++")||this.match("--"))){this.context.strict&&e.type===A.Syntax.Identifier&&this.scanner.isRestrictedWord(e.name)&&this.tolerateError(o.Messages.StrictLHSPostfix),this.context.isAssignmentTarget||this.tolerateError(o.Messages.InvalidLHSInAssignment),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var g=this.nextToken().value,h=!1;e=this.finalize(this.startNode(t),new s.UpdateExpression(g,e,h))}return e},p.prototype.parseAwaitExpression=function(){var e=this.createNode();this.nextToken();var t=this.parseUnaryExpression();return this.finalize(e,new s.AwaitExpression(t))},p.prototype.parseUnaryExpression=function(){var e;if(this.match("+")||this.match("-")||this.match("~")||this.match("!")||this.matchKeyword("delete")||this.matchKeyword("void")||this.matchKeyword("typeof")){var t=this.startNode(this.lookahead),n=this.nextToken();e=this.inheritCoverGrammar(this.parseUnaryExpression),e=this.finalize(t,new s.UnaryExpression(n.value,e)),this.context.strict&&e.operator==="delete"&&e.argument.type===A.Syntax.Identifier&&this.tolerateError(o.Messages.StrictDelete),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else this.context.await&&this.matchContextualKeyword("await")?e=this.parseAwaitExpression():e=this.parseUpdateExpression();return e},p.prototype.parseExponentiationExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseUnaryExpression);if(t.type!==A.Syntax.UnaryExpression&&this.match("**")){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var n=t,i=this.isolateCoverGrammar(this.parseExponentiationExpression);t=this.finalize(this.startNode(e),new s.BinaryExpression("**",n,i))}return t},p.prototype.binaryPrecedence=function(e){var t=e.value,n;return e.type===7?n=this.operatorPrecedence[t]||0:e.type===4?n=t==="instanceof"||this.context.allowIn&&t==="in"?7:0:n=0,n},p.prototype.parseBinaryExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseExponentiationExpression),n=this.lookahead,i=this.binaryPrecedence(n);if(i>0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var h=[e,this.lookahead],g=t,S=this.isolateCoverGrammar(this.parseExponentiationExpression),D=[g,n.value,S],y=[i];i=this.binaryPrecedence(this.lookahead),!(i<=0);){for(;D.length>2&&i<=y[y.length-1];){S=D.pop();var v=D.pop();y.pop(),g=D.pop(),h.pop();var b=this.startNode(h[h.length-1]);D.push(this.finalize(b,new s.BinaryExpression(v,g,S)))}D.push(this.nextToken().value),y.push(i),h.push(this.lookahead),D.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var w=D.length-1;t=D[w];for(var P=h.pop();w>1;){var N=h.pop(),R=P&&P.lineStart,b=this.startNode(N,R),v=D[w-1];t=this.finalize(b,new s.BinaryExpression(v,D[w-2],t)),w-=2,P=N}}return t},p.prototype.parseConditionalExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var n=this.context.allowIn;this.context.allowIn=!0;var i=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=n,this.expect(":");var h=this.isolateCoverGrammar(this.parseAssignmentExpression);t=this.finalize(this.startNode(e),new s.ConditionalExpression(t,i,h)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return t},p.prototype.checkPatternParam=function(e,t){switch(t.type){case A.Syntax.Identifier:this.validateParam(e,t,t.name);break;case A.Syntax.RestElement:this.checkPatternParam(e,t.argument);break;case A.Syntax.AssignmentPattern:this.checkPatternParam(e,t.left);break;case A.Syntax.ArrayPattern:for(var n=0;n<t.elements.length;n++)t.elements[n]!==null&&this.checkPatternParam(e,t.elements[n]);break;case A.Syntax.ObjectPattern:for(var n=0;n<t.properties.length;n++)this.checkPatternParam(e,t.properties[n].value);break;default:break}e.simple=e.simple&&t instanceof s.Identifier},p.prototype.reinterpretAsCoverFormalsList=function(e){var t=[e],n,i=!1;switch(e.type){case A.Syntax.Identifier:break;case c:t=e.params,i=e.async;break;default:return null}n={simple:!0,paramSet:{}};for(var h=0;h<t.length;++h){var g=t[h];g.type===A.Syntax.AssignmentPattern?g.right.type===A.Syntax.YieldExpression&&(g.right.argument&&this.throwUnexpectedToken(this.lookahead),g.right.type=A.Syntax.Identifier,g.right.name="yield",delete g.right.argument,delete g.right.delegate):i&&g.type===A.Syntax.Identifier&&g.name==="await"&&this.throwUnexpectedToken(this.lookahead),this.checkPatternParam(n,g),t[h]=g}if(this.context.strict||!this.context.allowYield)for(var h=0;h<t.length;++h){var g=t[h];g.type===A.Syntax.YieldExpression&&this.throwUnexpectedToken(this.lookahead)}if(n.message===o.Messages.StrictParamDupe){var S=this.context.strict?n.stricted:n.firstRestricted;this.throwUnexpectedToken(S,n.message)}return{simple:n.simple,params:t,stricted:n.stricted,firstRestricted:n.firstRestricted,message:n.message}},p.prototype.parseAssignmentExpression=function(){var e;if(!this.context.allowYield&&this.matchKeyword("yield"))e=this.parseYieldExpression();else{var t=this.lookahead,n=t;if(e=this.parseConditionalExpression(),n.type===3&&n.lineNumber===this.lookahead.lineNumber&&n.value==="async"&&(this.lookahead.type===3||this.matchKeyword("yield"))){var i=this.parsePrimaryExpression();this.reinterpretExpressionAsPattern(i),e={type:c,params:[i],async:!0}}if(e.type===c||this.match("=>")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var h=e.async,g=this.reinterpretAsCoverFormalsList(e);if(g){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var S=this.context.strict,D=this.context.allowStrictDirective;this.context.allowStrictDirective=g.simple;var y=this.context.allowYield,v=this.context.await;this.context.allowYield=!0,this.context.await=h;var b=this.startNode(t);this.expect("=>");var w=void 0;if(this.match("{")){var P=this.context.allowIn;this.context.allowIn=!0,w=this.parseFunctionSourceElements(),this.context.allowIn=P}else w=this.isolateCoverGrammar(this.parseAssignmentExpression);var N=w.type!==A.Syntax.BlockStatement;this.context.strict&&g.firstRestricted&&this.throwUnexpectedToken(g.firstRestricted,g.message),this.context.strict&&g.stricted&&this.tolerateUnexpectedToken(g.stricted,g.message),e=h?this.finalize(b,new s.AsyncArrowFunctionExpression(g.params,w,N)):this.finalize(b,new s.ArrowFunctionExpression(g.params,w,N)),this.context.strict=S,this.context.allowStrictDirective=D,this.context.allowYield=y,this.context.await=v}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(o.Messages.InvalidLHSInAssignment),this.context.strict&&e.type===A.Syntax.Identifier){var R=e;this.scanner.isRestrictedWord(R.name)&&this.tolerateUnexpectedToken(n,o.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(R.name)&&this.tolerateUnexpectedToken(n,o.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(e):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1),n=this.nextToken();var _=n.value,W=this.isolateCoverGrammar(this.parseAssignmentExpression);e=this.finalize(this.startNode(t),new s.AssignmentExpression(_,e,W)),this.context.firstCoverInitializedNameError=null}}return e},p.prototype.parseExpression=function(){var e=this.lookahead,t=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var n=[];for(n.push(t);this.lookahead.type!==2&&this.match(",");)this.nextToken(),n.push(this.isolateCoverGrammar(this.parseAssignmentExpression));t=this.finalize(this.startNode(e),new s.SequenceExpression(n))}return t},p.prototype.parseStatementListItem=function(){var e;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,this.lookahead.type===4)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,o.Messages.IllegalExportDeclaration),e=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,o.Messages.IllegalImportDeclaration),e=this.parseImportDeclaration();break;case"const":e=this.parseLexicalDeclaration({inFor:!1});break;case"function":e=this.parseFunctionDeclaration();break;case"class":e=this.parseClassDeclaration();break;case"let":e=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:e=this.parseStatement();break}else e=this.parseStatement();return e},p.prototype.parseBlock=function(){var e=this.createNode();this.expect("{");for(var t=[];!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.finalize(e,new s.BlockStatement(t))},p.prototype.parseLexicalBinding=function(e,t){var n=this.createNode(),i=[],h=this.parsePattern(i,e);this.context.strict&&h.type===A.Syntax.Identifier&&this.scanner.isRestrictedWord(h.name)&&this.tolerateError(o.Messages.StrictVarName);var g=null;return e==="const"?!this.matchKeyword("in")&&!this.matchContextualKeyword("of")&&(this.match("=")?(this.nextToken(),g=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(o.Messages.DeclarationMissingInitializer,"const")):(!t.inFor&&h.type!==A.Syntax.Identifier||this.match("="))&&(this.expect("="),g=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(n,new s.VariableDeclarator(h,g))},p.prototype.parseBindingList=function(e,t){for(var n=[this.parseLexicalBinding(e,t)];this.match(",");)this.nextToken(),n.push(this.parseLexicalBinding(e,t));return n},p.prototype.isLexicalDeclaration=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.scanner.lex();return this.scanner.restoreState(e),t.type===3||t.type===7&&t.value==="["||t.type===7&&t.value==="{"||t.type===4&&t.value==="let"||t.type===4&&t.value==="yield"},p.prototype.parseLexicalDeclaration=function(e){var t=this.createNode(),n=this.nextToken().value;a.assert(n==="let"||n==="const","Lexical declaration must be either let or const");var i=this.parseBindingList(n,e);return this.consumeSemicolon(),this.finalize(t,new s.VariableDeclaration(i,n))},p.prototype.parseBindingRestElement=function(e,t){var n=this.createNode();this.expect("...");var i=this.parsePattern(e,t);return this.finalize(n,new s.RestElement(i))},p.prototype.parseArrayPattern=function(e,t){var n=this.createNode();this.expect("[");for(var i=[];!this.match("]");)if(this.match(","))this.nextToken(),i.push(null);else{if(this.match("...")){i.push(this.parseBindingRestElement(e,t));break}else i.push(this.parsePatternWithDefault(e,t));this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(n,new s.ArrayPattern(i))},p.prototype.parsePropertyPattern=function(e,t){var n=this.createNode(),i=!1,h=!1,g=!1,S,D;if(this.lookahead.type===3){var y=this.lookahead;S=this.parseVariableIdentifier();var v=this.finalize(n,new s.Identifier(y.value));if(this.match("=")){e.push(y),h=!0,this.nextToken();var b=this.parseAssignmentExpression();D=this.finalize(this.startNode(y),new s.AssignmentPattern(v,b))}else this.match(":")?(this.expect(":"),D=this.parsePatternWithDefault(e,t)):(e.push(y),h=!0,D=v)}else i=this.match("["),S=this.parseObjectPropertyKey(),this.expect(":"),D=this.parsePatternWithDefault(e,t);return this.finalize(n,new s.Property("init",S,i,D,g,h))},p.prototype.parseObjectPattern=function(e,t){var n=this.createNode(),i=[];for(this.expect("{");!this.match("}");)i.push(this.parsePropertyPattern(e,t)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(n,new s.ObjectPattern(i))},p.prototype.parsePattern=function(e,t){var n;return this.match("[")?n=this.parseArrayPattern(e,t):this.match("{")?n=this.parseObjectPattern(e,t):(this.matchKeyword("let")&&(t==="const"||t==="let")&&this.tolerateUnexpectedToken(this.lookahead,o.Messages.LetInLexicalBinding),e.push(this.lookahead),n=this.parseVariableIdentifier(t)),n},p.prototype.parsePatternWithDefault=function(e,t){var n=this.lookahead,i=this.parsePattern(e,t);if(this.match("=")){this.nextToken();var h=this.context.allowYield;this.context.allowYield=!0;var g=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=h,i=this.finalize(this.startNode(n),new s.AssignmentPattern(i,g))}return i},p.prototype.parseVariableIdentifier=function(e){var t=this.createNode(),n=this.nextToken();return n.type===4&&n.value==="yield"?this.context.strict?this.tolerateUnexpectedToken(n,o.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(n):n.type!==3?this.context.strict&&n.type===4&&this.scanner.isStrictModeReservedWord(n.value)?this.tolerateUnexpectedToken(n,o.Messages.StrictReservedWord):(this.context.strict||n.value!=="let"||e!=="var")&&this.throwUnexpectedToken(n):(this.context.isModule||this.context.await)&&n.type===3&&n.value==="await"&&this.tolerateUnexpectedToken(n),this.finalize(t,new s.Identifier(n.value))},p.prototype.parseVariableDeclaration=function(e){var t=this.createNode(),n=[],i=this.parsePattern(n,"var");this.context.strict&&i.type===A.Syntax.Identifier&&this.scanner.isRestrictedWord(i.name)&&this.tolerateError(o.Messages.StrictVarName);var h=null;return this.match("=")?(this.nextToken(),h=this.isolateCoverGrammar(this.parseAssignmentExpression)):i.type!==A.Syntax.Identifier&&!e.inFor&&this.expect("="),this.finalize(t,new s.VariableDeclarator(i,h))},p.prototype.parseVariableDeclarationList=function(e){var t={inFor:e.inFor},n=[];for(n.push(this.parseVariableDeclaration(t));this.match(",");)this.nextToken(),n.push(this.parseVariableDeclaration(t));return n},p.prototype.parseVariableStatement=function(){var e=this.createNode();this.expectKeyword("var");var t=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(e,new s.VariableDeclaration(t,"var"))},p.prototype.parseEmptyStatement=function(){var e=this.createNode();return this.expect(";"),this.finalize(e,new s.EmptyStatement)},p.prototype.parseExpressionStatement=function(){var e=this.createNode(),t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new s.ExpressionStatement(t))},p.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(o.Messages.StrictFunction),this.parseStatement()},p.prototype.parseIfStatement=function(){var e=this.createNode(),t,n=null;this.expectKeyword("if"),this.expect("(");var i=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new s.EmptyStatement)):(this.expect(")"),t=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),n=this.parseIfClause())),this.finalize(e,new s.IfStatement(i,t,n))},p.prototype.parseDoWhileStatement=function(){var e=this.createNode();this.expectKeyword("do");var t=this.context.inIteration;this.context.inIteration=!0;var n=this.parseStatement();this.context.inIteration=t,this.expectKeyword("while"),this.expect("(");var i=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(e,new s.DoWhileStatement(n,i))},p.prototype.parseWhileStatement=function(){var e=this.createNode(),t;this.expectKeyword("while"),this.expect("(");var n=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new s.EmptyStatement);else{this.expect(")");var i=this.context.inIteration;this.context.inIteration=!0,t=this.parseStatement(),this.context.inIteration=i}return this.finalize(e,new s.WhileStatement(n,t))},p.prototype.parseForStatement=function(){var e=null,t=null,n=null,i=!0,h,g,S=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){e=this.createNode(),this.nextToken();var D=this.context.allowIn;this.context.allowIn=!1;var y=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=D,y.length===1&&this.matchKeyword("in")){var v=y[0];v.init&&(v.id.type===A.Syntax.ArrayPattern||v.id.type===A.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(o.Messages.ForInOfLoopInitializer,"for-in"),e=this.finalize(e,new s.VariableDeclaration(y,"var")),this.nextToken(),h=e,g=this.parseExpression(),e=null}else y.length===1&&y[0].init===null&&this.matchContextualKeyword("of")?(e=this.finalize(e,new s.VariableDeclaration(y,"var")),this.nextToken(),h=e,g=this.parseAssignmentExpression(),e=null,i=!1):(e=this.finalize(e,new s.VariableDeclaration(y,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){e=this.createNode();var b=this.nextToken().value;if(!this.context.strict&&this.lookahead.value==="in")e=this.finalize(e,new s.Identifier(b)),this.nextToken(),h=e,g=this.parseExpression(),e=null;else{var D=this.context.allowIn;this.context.allowIn=!1;var y=this.parseBindingList(b,{inFor:!0});this.context.allowIn=D,y.length===1&&y[0].init===null&&this.matchKeyword("in")?(e=this.finalize(e,new s.VariableDeclaration(y,b)),this.nextToken(),h=e,g=this.parseExpression(),e=null):y.length===1&&y[0].init===null&&this.matchContextualKeyword("of")?(e=this.finalize(e,new s.VariableDeclaration(y,b)),this.nextToken(),h=e,g=this.parseAssignmentExpression(),e=null,i=!1):(this.consumeSemicolon(),e=this.finalize(e,new s.VariableDeclaration(y,b)))}}else{var w=this.lookahead,D=this.context.allowIn;if(this.context.allowIn=!1,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=D,this.matchKeyword("in"))(!this.context.isAssignmentTarget||e.type===A.Syntax.AssignmentExpression)&&this.tolerateError(o.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(e),h=e,g=this.parseExpression(),e=null;else if(this.matchContextualKeyword("of"))(!this.context.isAssignmentTarget||e.type===A.Syntax.AssignmentExpression)&&this.tolerateError(o.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(e),h=e,g=this.parseAssignmentExpression(),e=null,i=!1;else{if(this.match(",")){for(var P=[e];this.match(",");)this.nextToken(),P.push(this.isolateCoverGrammar(this.parseAssignmentExpression));e=this.finalize(this.startNode(w),new s.SequenceExpression(P))}this.expect(";")}}typeof h>"u"&&(this.match(";")||(t=this.parseExpression()),this.expect(";"),this.match(")")||(n=this.parseExpression()));var N;if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),N=this.finalize(this.createNode(),new s.EmptyStatement);else{this.expect(")");var R=this.context.inIteration;this.context.inIteration=!0,N=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=R}return typeof h>"u"?this.finalize(S,new s.ForStatement(e,t,n,N)):i?this.finalize(S,new s.ForInStatement(h,g,N)):this.finalize(S,new s.ForOfStatement(h,g,N))},p.prototype.parseContinueStatement=function(){var e=this.createNode();this.expectKeyword("continue");var t=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var n=this.parseVariableIdentifier();t=n;var i="$"+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,i)||this.throwError(o.Messages.UnknownLabel,n.name)}return this.consumeSemicolon(),t===null&&!this.context.inIteration&&this.throwError(o.Messages.IllegalContinue),this.finalize(e,new s.ContinueStatement(t))},p.prototype.parseBreakStatement=function(){var e=this.createNode();this.expectKeyword("break");var t=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var n=this.parseVariableIdentifier(),i="$"+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,i)||this.throwError(o.Messages.UnknownLabel,n.name),t=n}return this.consumeSemicolon(),t===null&&!this.context.inIteration&&!this.context.inSwitch&&this.throwError(o.Messages.IllegalBreak),this.finalize(e,new s.BreakStatement(t))},p.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(o.Messages.IllegalReturn);var e=this.createNode();this.expectKeyword("return");var t=!this.match(";")&&!this.match("}")&&!this.hasLineTerminator&&this.lookahead.type!==2||this.lookahead.type===8||this.lookahead.type===10,n=t?this.parseExpression():null;return this.consumeSemicolon(),this.finalize(e,new s.ReturnStatement(n))},p.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(o.Messages.StrictModeWith);var e=this.createNode(),t;this.expectKeyword("with"),this.expect("(");var n=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new s.EmptyStatement)):(this.expect(")"),t=this.parseStatement()),this.finalize(e,new s.WithStatement(n,t))},p.prototype.parseSwitchCase=function(){var e=this.createNode(),t;this.matchKeyword("default")?(this.nextToken(),t=null):(this.expectKeyword("case"),t=this.parseExpression()),this.expect(":");for(var n=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)n.push(this.parseStatementListItem());return this.finalize(e,new s.SwitchCase(t,n))},p.prototype.parseSwitchStatement=function(){var e=this.createNode();this.expectKeyword("switch"),this.expect("(");var t=this.parseExpression();this.expect(")");var n=this.context.inSwitch;this.context.inSwitch=!0;var i=[],h=!1;for(this.expect("{");!this.match("}");){var g=this.parseSwitchCase();g.test===null&&(h&&this.throwError(o.Messages.MultipleDefaultsInSwitch),h=!0),i.push(g)}return this.expect("}"),this.context.inSwitch=n,this.finalize(e,new s.SwitchStatement(t,i))},p.prototype.parseLabelledStatement=function(){var e=this.createNode(),t=this.parseExpression(),n;if(t.type===A.Syntax.Identifier&&this.match(":")){this.nextToken();var i=t,h="$"+i.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,h)&&this.throwError(o.Messages.Redeclaration,"Label",i.name),this.context.labelSet[h]=!0;var g=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),g=this.parseClassDeclaration();else if(this.matchKeyword("function")){var S=this.lookahead,D=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(S,o.Messages.StrictFunction):D.generator&&this.tolerateUnexpectedToken(S,o.Messages.GeneratorInLegacyContext),g=D}else g=this.parseStatement();delete this.context.labelSet[h],n=new s.LabeledStatement(i,g)}else this.consumeSemicolon(),n=new s.ExpressionStatement(t);return this.finalize(e,n)},p.prototype.parseThrowStatement=function(){var e=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(o.Messages.NewlineAfterThrow);var t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new s.ThrowStatement(t))},p.prototype.parseCatchClause=function(){var e=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var t=[],n=this.parsePattern(t),i={},h=0;h<t.length;h++){var g="$"+t[h].value;Object.prototype.hasOwnProperty.call(i,g)&&this.tolerateError(o.Messages.DuplicateBinding,t[h].value),i[g]=!0}this.context.strict&&n.type===A.Syntax.Identifier&&this.scanner.isRestrictedWord(n.name)&&this.tolerateError(o.Messages.StrictCatchVariable),this.expect(")");var S=this.parseBlock();return this.finalize(e,new s.CatchClause(n,S))},p.prototype.parseFinallyClause=function(){return this.expectKeyword("finally"),this.parseBlock()},p.prototype.parseTryStatement=function(){var e=this.createNode();this.expectKeyword("try");var t=this.parseBlock(),n=this.matchKeyword("catch")?this.parseCatchClause():null,i=this.matchKeyword("finally")?this.parseFinallyClause():null;return!n&&!i&&this.throwError(o.Messages.NoCatchOrFinally),this.finalize(e,new s.TryStatement(t,n,i))},p.prototype.parseDebuggerStatement=function(){var e=this.createNode();return this.expectKeyword("debugger"),this.consumeSemicolon(),this.finalize(e,new s.DebuggerStatement)},p.prototype.parseStatement=function(){var e;switch(this.lookahead.type){case 1:case 5:case 6:case 8:case 10:case 9:e=this.parseExpressionStatement();break;case 7:var t=this.lookahead.value;t==="{"?e=this.parseBlock():t==="("?e=this.parseExpressionStatement():t===";"?e=this.parseEmptyStatement():e=this.parseExpressionStatement();break;case 3:e=this.matchAsyncFunction()?this.parseFunctionDeclaration():this.parseLabelledStatement();break;case 4:switch(this.lookahead.value){case"break":e=this.parseBreakStatement();break;case"continue":e=this.parseContinueStatement();break;case"debugger":e=this.parseDebuggerStatement();break;case"do":e=this.parseDoWhileStatement();break;case"for":e=this.parseForStatement();break;case"function":e=this.parseFunctionDeclaration();break;case"if":e=this.parseIfStatement();break;case"return":e=this.parseReturnStatement();break;case"switch":e=this.parseSwitchStatement();break;case"throw":e=this.parseThrowStatement();break;case"try":e=this.parseTryStatement();break;case"var":e=this.parseVariableStatement();break;case"while":e=this.parseWhileStatement();break;case"with":e=this.parseWithStatement();break;default:e=this.parseExpressionStatement();break}break;default:e=this.throwUnexpectedToken(this.lookahead)}return e},p.prototype.parseFunctionSourceElements=function(){var e=this.createNode();this.expect("{");var t=this.parseDirectivePrologues(),n=this.context.labelSet,i=this.context.inIteration,h=this.context.inSwitch,g=this.context.inFunctionBody;for(this.context.labelSet={},this.context.inIteration=!1,this.context.inSwitch=!1,this.context.inFunctionBody=!0;this.lookahead.type!==2&&!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.context.labelSet=n,this.context.inIteration=i,this.context.inSwitch=h,this.context.inFunctionBody=g,this.finalize(e,new s.BlockStatement(t))},p.prototype.validateParam=function(e,t,n){var i="$"+n;this.context.strict?(this.scanner.isRestrictedWord(n)&&(e.stricted=t,e.message=o.Messages.StrictParamName),Object.prototype.hasOwnProperty.call(e.paramSet,i)&&(e.stricted=t,e.message=o.Messages.StrictParamDupe)):e.firstRestricted||(this.scanner.isRestrictedWord(n)?(e.firstRestricted=t,e.message=o.Messages.StrictParamName):this.scanner.isStrictModeReservedWord(n)?(e.firstRestricted=t,e.message=o.Messages.StrictReservedWord):Object.prototype.hasOwnProperty.call(e.paramSet,i)&&(e.stricted=t,e.message=o.Messages.StrictParamDupe)),typeof Object.defineProperty=="function"?Object.defineProperty(e.paramSet,i,{value:!0,enumerable:!0,writable:!0,configurable:!0}):e.paramSet[i]=!0},p.prototype.parseRestElement=function(e){var t=this.createNode();this.expect("...");var n=this.parsePattern(e);return this.match("=")&&this.throwError(o.Messages.DefaultRestParameter),this.match(")")||this.throwError(o.Messages.ParameterAfterRestParameter),this.finalize(t,new s.RestElement(n))},p.prototype.parseFormalParameter=function(e){for(var t=[],n=this.match("...")?this.parseRestElement(t):this.parsePatternWithDefault(t),i=0;i<t.length;i++)this.validateParam(e,t[i],t[i].value);e.simple=e.simple&&n instanceof s.Identifier,e.params.push(n)},p.prototype.parseFormalParameters=function(e){var t;if(t={simple:!0,params:[],firstRestricted:e},this.expect("("),!this.match(")"))for(t.paramSet={};this.lookahead.type!==2&&(this.parseFormalParameter(t),!(this.match(")")||(this.expect(","),this.match(")")))););return this.expect(")"),{simple:t.simple,params:t.params,stricted:t.stricted,firstRestricted:t.firstRestricted,message:t.message}},p.prototype.matchAsyncFunction=function(){var e=this.matchContextualKeyword("async");if(e){var t=this.scanner.saveState();this.scanner.scanComments();var n=this.scanner.lex();this.scanner.restoreState(t),e=t.lineNumber===n.lineNumber&&n.type===4&&n.value==="function"}return e},p.prototype.parseFunctionDeclaration=function(e){var t=this.createNode(),n=this.matchContextualKeyword("async");n&&this.nextToken(),this.expectKeyword("function");var i=n?!1:this.match("*");i&&this.nextToken();var h,g=null,S=null;if(!e||!this.match("(")){var D=this.lookahead;g=this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(D.value)&&this.tolerateUnexpectedToken(D,o.Messages.StrictFunctionName):this.scanner.isRestrictedWord(D.value)?(S=D,h=o.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(D.value)&&(S=D,h=o.Messages.StrictReservedWord)}var y=this.context.await,v=this.context.allowYield;this.context.await=n,this.context.allowYield=!i;var b=this.parseFormalParameters(S),w=b.params,P=b.stricted;S=b.firstRestricted,b.message&&(h=b.message);var N=this.context.strict,R=this.context.allowStrictDirective;this.context.allowStrictDirective=b.simple;var _=this.parseFunctionSourceElements();return this.context.strict&&S&&this.throwUnexpectedToken(S,h),this.context.strict&&P&&this.tolerateUnexpectedToken(P,h),this.context.strict=N,this.context.allowStrictDirective=R,this.context.await=y,this.context.allowYield=v,n?this.finalize(t,new s.AsyncFunctionDeclaration(g,w,_)):this.finalize(t,new s.FunctionDeclaration(g,w,_,i))},p.prototype.parseFunctionExpression=function(){var e=this.createNode(),t=this.matchContextualKeyword("async");t&&this.nextToken(),this.expectKeyword("function");var n=t?!1:this.match("*");n&&this.nextToken();var i,h=null,g,S=this.context.await,D=this.context.allowYield;if(this.context.await=t,this.context.allowYield=!n,!this.match("(")){var y=this.lookahead;h=!this.context.strict&&!n&&this.matchKeyword("yield")?this.parseIdentifierName():this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(y.value)&&this.tolerateUnexpectedToken(y,o.Messages.StrictFunctionName):this.scanner.isRestrictedWord(y.value)?(g=y,i=o.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(y.value)&&(g=y,i=o.Messages.StrictReservedWord)}var v=this.parseFormalParameters(g),b=v.params,w=v.stricted;g=v.firstRestricted,v.message&&(i=v.message);var P=this.context.strict,N=this.context.allowStrictDirective;this.context.allowStrictDirective=v.simple;var R=this.parseFunctionSourceElements();return this.context.strict&&g&&this.throwUnexpectedToken(g,i),this.context.strict&&w&&this.tolerateUnexpectedToken(w,i),this.context.strict=P,this.context.allowStrictDirective=N,this.context.await=S,this.context.allowYield=D,t?this.finalize(e,new s.AsyncFunctionExpression(h,b,R)):this.finalize(e,new s.FunctionExpression(h,b,R,n))},p.prototype.parseDirective=function(){var e=this.lookahead,t=this.createNode(),n=this.parseExpression(),i=n.type===A.Syntax.Literal?this.getTokenRaw(e).slice(1,-1):null;return this.consumeSemicolon(),this.finalize(t,i?new s.Directive(n,i):new s.ExpressionStatement(n))},p.prototype.parseDirectivePrologues=function(){for(var e=null,t=[];;){var n=this.lookahead;if(n.type!==8)break;var i=this.parseDirective();t.push(i);var h=i.directive;if(typeof h!="string")break;h==="use strict"?(this.context.strict=!0,e&&this.tolerateUnexpectedToken(e,o.Messages.StrictOctalLiteral),this.context.allowStrictDirective||this.tolerateUnexpectedToken(n,o.Messages.IllegalLanguageModeDirective)):!e&&n.octal&&(e=n)}return t},p.prototype.qualifiedPropertyName=function(e){switch(e.type){case 3:case 8:case 1:case 5:case 6:case 4:return!0;case 7:return e.value==="[";default:break}return!1},p.prototype.parseGetterMethod=function(){var e=this.createNode(),t=!1,n=this.context.allowYield;this.context.allowYield=!t;var i=this.parseFormalParameters();i.params.length>0&&this.tolerateError(o.Messages.BadGetterArity);var h=this.parsePropertyMethod(i);return this.context.allowYield=n,this.finalize(e,new s.FunctionExpression(null,i.params,h,t))},p.prototype.parseSetterMethod=function(){var e=this.createNode(),t=!1,n=this.context.allowYield;this.context.allowYield=!t;var i=this.parseFormalParameters();i.params.length!==1?this.tolerateError(o.Messages.BadSetterArity):i.params[0]instanceof s.RestElement&&this.tolerateError(o.Messages.BadSetterRestParameter);var h=this.parsePropertyMethod(i);return this.context.allowYield=n,this.finalize(e,new s.FunctionExpression(null,i.params,h,t))},p.prototype.parseGeneratorMethod=function(){var e=this.createNode(),t=!0,n=this.context.allowYield;this.context.allowYield=!0;var i=this.parseFormalParameters();this.context.allowYield=!1;var h=this.parsePropertyMethod(i);return this.context.allowYield=n,this.finalize(e,new s.FunctionExpression(null,i.params,h,t))},p.prototype.isStartOfExpression=function(){var e=!0,t=this.lookahead.value;switch(this.lookahead.type){case 7:e=t==="["||t==="("||t==="{"||t==="+"||t==="-"||t==="!"||t==="~"||t==="++"||t==="--"||t==="/"||t==="/=";break;case 4:e=t==="class"||t==="delete"||t==="function"||t==="let"||t==="new"||t==="super"||t==="this"||t==="typeof"||t==="void"||t==="yield";break;default:break}return e},p.prototype.parseYieldExpression=function(){var e=this.createNode();this.expectKeyword("yield");var t=null,n=!1;if(!this.hasLineTerminator){var i=this.context.allowYield;this.context.allowYield=!1,n=this.match("*"),n?(this.nextToken(),t=this.parseAssignmentExpression()):this.isStartOfExpression()&&(t=this.parseAssignmentExpression()),this.context.allowYield=i}return this.finalize(e,new s.YieldExpression(t,n))},p.prototype.parseClassElement=function(e){var t=this.lookahead,n=this.createNode(),i="",h=null,g=null,S=!1,D=!1,y=!1,v=!1;if(this.match("*"))this.nextToken();else{S=this.match("["),h=this.parseObjectPropertyKey();var b=h;if(b.name==="static"&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(t=this.lookahead,y=!0,S=this.match("["),this.match("*")?this.nextToken():h=this.parseObjectPropertyKey()),t.type===3&&!this.hasLineTerminator&&t.value==="async"){var w=this.lookahead.value;w!==":"&&w!=="("&&w!=="*"&&(v=!0,t=this.lookahead,h=this.parseObjectPropertyKey(),t.type===3&&t.value==="constructor"&&this.tolerateUnexpectedToken(t,o.Messages.ConstructorIsAsync))}}var P=this.qualifiedPropertyName(this.lookahead);return t.type===3?t.value==="get"&&P?(i="get",S=this.match("["),h=this.parseObjectPropertyKey(),this.context.allowYield=!1,g=this.parseGetterMethod()):t.value==="set"&&P&&(i="set",S=this.match("["),h=this.parseObjectPropertyKey(),g=this.parseSetterMethod()):t.type===7&&t.value==="*"&&P&&(i="init",S=this.match("["),h=this.parseObjectPropertyKey(),g=this.parseGeneratorMethod(),D=!0),!i&&h&&this.match("(")&&(i="init",g=v?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),D=!0),i||this.throwUnexpectedToken(this.lookahead),i==="init"&&(i="method"),S||(y&&this.isPropertyKey(h,"prototype")&&this.throwUnexpectedToken(t,o.Messages.StaticPrototype),!y&&this.isPropertyKey(h,"constructor")&&((i!=="method"||!D||g&&g.generator)&&this.throwUnexpectedToken(t,o.Messages.ConstructorSpecialMethod),e.value?this.throwUnexpectedToken(t,o.Messages.DuplicateConstructor):e.value=!0,i="constructor")),this.finalize(n,new s.MethodDefinition(h,S,g,i,y))},p.prototype.parseClassElementList=function(){var e=[],t={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():e.push(this.parseClassElement(t));return this.expect("}"),e},p.prototype.parseClassBody=function(){var e=this.createNode(),t=this.parseClassElementList();return this.finalize(e,new s.ClassBody(t))},p.prototype.parseClassDeclaration=function(e){var t=this.createNode(),n=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var i=e&&this.lookahead.type!==3?null:this.parseVariableIdentifier(),h=null;this.matchKeyword("extends")&&(this.nextToken(),h=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var g=this.parseClassBody();return this.context.strict=n,this.finalize(t,new s.ClassDeclaration(i,h,g))},p.prototype.parseClassExpression=function(){var e=this.createNode(),t=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var n=this.lookahead.type===3?this.parseVariableIdentifier():null,i=null;this.matchKeyword("extends")&&(this.nextToken(),i=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var h=this.parseClassBody();return this.context.strict=t,this.finalize(e,new s.ClassExpression(n,i,h))},p.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var e=this.createNode(),t=this.parseDirectivePrologues();this.lookahead.type!==2;)t.push(this.parseStatementListItem());return this.finalize(e,new s.Module(t))},p.prototype.parseScript=function(){for(var e=this.createNode(),t=this.parseDirectivePrologues();this.lookahead.type!==2;)t.push(this.parseStatementListItem());return this.finalize(e,new s.Script(t))},p.prototype.parseModuleSpecifier=function(){var e=this.createNode();this.lookahead.type!==8&&this.throwError(o.Messages.InvalidModuleSpecifier);var t=this.nextToken(),n=this.getTokenRaw(t);return this.finalize(e,new s.Literal(t.value,n))},p.prototype.parseImportSpecifier=function(){var e=this.createNode(),t,n;return this.lookahead.type===3?(t=this.parseVariableIdentifier(),n=t,this.matchContextualKeyword("as")&&(this.nextToken(),n=this.parseVariableIdentifier())):(t=this.parseIdentifierName(),n=t,this.matchContextualKeyword("as")?(this.nextToken(),n=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(e,new s.ImportSpecifier(n,t))},p.prototype.parseNamedImports=function(){this.expect("{");for(var e=[];!this.match("}");)e.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),e},p.prototype.parseImportDefaultSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName();return this.finalize(e,new s.ImportDefaultSpecifier(t))},p.prototype.parseImportNamespaceSpecifier=function(){var e=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(o.Messages.NoAsAfterImportNamespace),this.nextToken();var t=this.parseIdentifierName();return this.finalize(e,new s.ImportNamespaceSpecifier(t))},p.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(o.Messages.IllegalImportDeclaration);var e=this.createNode();this.expectKeyword("import");var t,n=[];if(this.lookahead.type===8)t=this.parseModuleSpecifier();else{if(this.match("{")?n=n.concat(this.parseNamedImports()):this.match("*")?n.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(n.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?n.push(this.parseImportNamespaceSpecifier()):this.match("{")?n=n.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var i=this.lookahead.value?o.Messages.UnexpectedToken:o.Messages.MissingFromClause;this.throwError(i,this.lookahead.value)}this.nextToken(),t=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(e,new s.ImportDeclaration(n,t))},p.prototype.parseExportSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName(),n=t;return this.matchContextualKeyword("as")&&(this.nextToken(),n=this.parseIdentifierName()),this.finalize(e,new s.ExportSpecifier(t,n))},p.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(o.Messages.IllegalExportDeclaration);var e=this.createNode();this.expectKeyword("export");var t;if(this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var n=this.parseFunctionDeclaration(!0);t=this.finalize(e,new s.ExportDefaultDeclaration(n))}else if(this.matchKeyword("class")){var n=this.parseClassDeclaration(!0);t=this.finalize(e,new s.ExportDefaultDeclaration(n))}else if(this.matchContextualKeyword("async")){var n=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression();t=this.finalize(e,new s.ExportDefaultDeclaration(n))}else{this.matchContextualKeyword("from")&&this.throwError(o.Messages.UnexpectedToken,this.lookahead.value);var n=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression();this.consumeSemicolon(),t=this.finalize(e,new s.ExportDefaultDeclaration(n))}else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var i=this.lookahead.value?o.Messages.UnexpectedToken:o.Messages.MissingFromClause;this.throwError(i,this.lookahead.value)}this.nextToken();var h=this.parseModuleSpecifier();this.consumeSemicolon(),t=this.finalize(e,new s.ExportAllDeclaration(h))}else if(this.lookahead.type===4){var n=void 0;switch(this.lookahead.value){case"let":case"const":n=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":n=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}t=this.finalize(e,new s.ExportNamedDeclaration(n,[],null))}else if(this.matchAsyncFunction()){var n=this.parseFunctionDeclaration();t=this.finalize(e,new s.ExportNamedDeclaration(n,[],null))}else{var g=[],S=null,D=!1;for(this.expect("{");!this.match("}");)D=D||this.matchKeyword("default"),g.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");if(this.expect("}"),this.matchContextualKeyword("from"))this.nextToken(),S=this.parseModuleSpecifier(),this.consumeSemicolon();else if(D){var i=this.lookahead.value?o.Messages.UnexpectedToken:o.Messages.MissingFromClause;this.throwError(i,this.lookahead.value)}else this.consumeSemicolon();t=this.finalize(e,new s.ExportNamedDeclaration(null,g,S))}return t},p})();r.Parser=m},function(u,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});function l(a,d){if(!a)throw new Error("ASSERT: "+d)}r.assert=l},function(u,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var l=(function(){function a(){this.errors=[],this.tolerant=!1}return a.prototype.recordError=function(d){this.errors.push(d)},a.prototype.tolerate=function(d){if(this.tolerant)this.recordError(d);else throw d},a.prototype.constructError=function(d,o){var s=new Error(d);try{throw s}catch(B){Object.create&&Object.defineProperty&&(s=Object.create(B),Object.defineProperty(s,"column",{value:o}))}return s},a.prototype.createError=function(d,o,s,B){var A="Line "+o+": "+B,C=this.constructError(A,s);return C.index=d,C.lineNumber=o,C.description=B,C},a.prototype.throwError=function(d,o,s,B){throw this.createError(d,o,s,B)},a.prototype.tolerateError=function(d,o,s,B){var A=this.createError(d,o,s,B);if(this.tolerant)this.recordError(A);else throw A},a})();r.ErrorHandler=l},function(u,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(u,r,l){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a=l(9),d=l(4),o=l(11);function s(C){return"0123456789abcdef".indexOf(C.toLowerCase())}function B(C){return"01234567".indexOf(C)}var A=(function(){function C(c,m){this.source=c,this.errorHandler=m,this.trackComment=!1,this.isModule=!1,this.length=c.length,this.index=0,this.lineNumber=c.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return C.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},C.prototype.restoreState=function(c){this.index=c.index,this.lineNumber=c.lineNumber,this.lineStart=c.lineStart},C.prototype.eof=function(){return this.index>=this.length},C.prototype.throwUnexpectedToken=function(c){return c===void 0&&(c=o.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,c)},C.prototype.tolerateUnexpectedToken=function(c){c===void 0&&(c=o.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,c)},C.prototype.skipSingleLineComment=function(c){var m=[],p,e;for(this.trackComment&&(m=[],p=this.index-c,e={start:{line:this.lineNumber,column:this.index-this.lineStart-c},end:{}});!this.eof();){var t=this.source.charCodeAt(this.index);if(++this.index,d.Character.isLineTerminator(t)){if(this.trackComment){e.end={line:this.lineNumber,column:this.index-this.lineStart-1};var n={multiLine:!1,slice:[p+c,this.index-1],range:[p,this.index-1],loc:e};m.push(n)}return t===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,m}}if(this.trackComment){e.end={line:this.lineNumber,column:this.index-this.lineStart};var n={multiLine:!1,slice:[p+c,this.index],range:[p,this.index],loc:e};m.push(n)}return m},C.prototype.skipMultiLineComment=function(){var c=[],m,p;for(this.trackComment&&(c=[],m=this.index-2,p={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var e=this.source.charCodeAt(this.index);if(d.Character.isLineTerminator(e))e===13&&this.source.charCodeAt(this.index+1)===10&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(e===42){if(this.source.charCodeAt(this.index+1)===47){if(this.index+=2,this.trackComment){p.end={line:this.lineNumber,column:this.index-this.lineStart};var t={multiLine:!0,slice:[m+2,this.index-2],range:[m,this.index],loc:p};c.push(t)}return c}++this.index}else++this.index}if(this.trackComment){p.end={line:this.lineNumber,column:this.index-this.lineStart};var t={multiLine:!0,slice:[m+2,this.index],range:[m,this.index],loc:p};c.push(t)}return this.tolerateUnexpectedToken(),c},C.prototype.scanComments=function(){var c;this.trackComment&&(c=[]);for(var m=this.index===0;!this.eof();){var p=this.source.charCodeAt(this.index);if(d.Character.isWhiteSpace(p))++this.index;else if(d.Character.isLineTerminator(p))++this.index,p===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,m=!0;else if(p===47)if(p=this.source.charCodeAt(this.index+1),p===47){this.index+=2;var e=this.skipSingleLineComment(2);this.trackComment&&(c=c.concat(e)),m=!0}else if(p===42){this.index+=2;var e=this.skipMultiLineComment();this.trackComment&&(c=c.concat(e))}else break;else if(m&&p===45)if(this.source.charCodeAt(this.index+1)===45&&this.source.charCodeAt(this.index+2)===62){this.index+=3;var e=this.skipSingleLineComment(3);this.trackComment&&(c=c.concat(e))}else break;else if(p===60&&!this.isModule)if(this.source.slice(this.index+1,this.index+4)==="!--"){this.index+=4;var e=this.skipSingleLineComment(4);this.trackComment&&(c=c.concat(e))}else break;else break}return c},C.prototype.isFutureReservedWord=function(c){switch(c){case"enum":case"export":case"import":case"super":return!0;default:return!1}},C.prototype.isStrictModeReservedWord=function(c){switch(c){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},C.prototype.isRestrictedWord=function(c){return c==="eval"||c==="arguments"},C.prototype.isKeyword=function(c){switch(c.length){case 2:return c==="if"||c==="in"||c==="do";case 3:return c==="var"||c==="for"||c==="new"||c==="try"||c==="let";case 4:return c==="this"||c==="else"||c==="case"||c==="void"||c==="with"||c==="enum";case 5:return c==="while"||c==="break"||c==="catch"||c==="throw"||c==="const"||c==="yield"||c==="class"||c==="super";case 6:return c==="return"||c==="typeof"||c==="delete"||c==="switch"||c==="export"||c==="import";case 7:return c==="default"||c==="finally"||c==="extends";case 8:return c==="function"||c==="continue"||c==="debugger";case 10:return c==="instanceof";default:return!1}},C.prototype.codePointAt=function(c){var m=this.source.charCodeAt(c);if(m>=55296&&m<=56319){var p=this.source.charCodeAt(c+1);if(p>=56320&&p<=57343){var e=m;m=(e-55296)*1024+p-56320+65536}}return m},C.prototype.scanHexEscape=function(c){for(var m=c==="u"?4:2,p=0,e=0;e<m;++e)if(!this.eof()&&d.Character.isHexDigit(this.source.charCodeAt(this.index)))p=p*16+s(this.source[this.index++]);else return null;return String.fromCharCode(p)},C.prototype.scanUnicodeCodePointEscape=function(){var c=this.source[this.index],m=0;for(c==="}"&&this.throwUnexpectedToken();!this.eof()&&(c=this.source[this.index++],!!d.Character.isHexDigit(c.charCodeAt(0)));)m=m*16+s(c);return(m>1114111||c!=="}")&&this.throwUnexpectedToken(),d.Character.fromCodePoint(m)},C.prototype.getIdentifier=function(){for(var c=this.index++;!this.eof();){var m=this.source.charCodeAt(this.index);if(m===92)return this.index=c,this.getComplexIdentifier();if(m>=55296&&m<57343)return this.index=c,this.getComplexIdentifier();if(d.Character.isIdentifierPart(m))++this.index;else break}return this.source.slice(c,this.index)},C.prototype.getComplexIdentifier=function(){var c=this.codePointAt(this.index),m=d.Character.fromCodePoint(c);this.index+=m.length;var p;for(c===92&&(this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]==="{"?(++this.index,p=this.scanUnicodeCodePointEscape()):(p=this.scanHexEscape("u"),(p===null||p==="\\"||!d.Character.isIdentifierStart(p.charCodeAt(0)))&&this.throwUnexpectedToken()),m=p);!this.eof()&&(c=this.codePointAt(this.index),!!d.Character.isIdentifierPart(c));)p=d.Character.fromCodePoint(c),m+=p,this.index+=p.length,c===92&&(m=m.substr(0,m.length-1),this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]==="{"?(++this.index,p=this.scanUnicodeCodePointEscape()):(p=this.scanHexEscape("u"),(p===null||p==="\\"||!d.Character.isIdentifierPart(p.charCodeAt(0)))&&this.throwUnexpectedToken()),m+=p);return m},C.prototype.octalToDecimal=function(c){var m=c!=="0",p=B(c);return!this.eof()&&d.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(m=!0,p=p*8+B(this.source[this.index++]),"0123".indexOf(c)>=0&&!this.eof()&&d.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(p=p*8+B(this.source[this.index++]))),{code:p,octal:m}},C.prototype.scanIdentifier=function(){var c,m=this.index,p=this.source.charCodeAt(m)===92?this.getComplexIdentifier():this.getIdentifier();if(p.length===1?c=3:this.isKeyword(p)?c=4:p==="null"?c=5:p==="true"||p==="false"?c=1:c=3,c!==3&&m+p.length!==this.index){var e=this.index;this.index=m,this.tolerateUnexpectedToken(o.Messages.InvalidEscapedReservedWord),this.index=e}return{type:c,value:p,lineNumber:this.lineNumber,lineStart:this.lineStart,start:m,end:this.index}},C.prototype.scanPunctuator=function(){var c=this.index,m=this.source[this.index];switch(m){case"(":case"{":m==="{"&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,this.source[this.index]==="."&&this.source[this.index+1]==="."&&(this.index+=2,m="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:m=this.source.substr(this.index,4),m===">>>="?this.index+=4:(m=m.substr(0,3),m==="==="||m==="!=="||m===">>>"||m==="<<="||m===">>="||m==="**="?this.index+=3:(m=m.substr(0,2),m==="&&"||m==="||"||m==="=="||m==="!="||m==="+="||m==="-="||m==="*="||m==="/="||m==="++"||m==="--"||m==="<<"||m===">>"||m==="&="||m==="|="||m==="^="||m==="%="||m==="<="||m===">="||m==="=>"||m==="**"?this.index+=2:(m=this.source[this.index],"<>=!+-*%&|^/".indexOf(m)>=0&&++this.index)))}return this.index===c&&this.throwUnexpectedToken(),{type:7,value:m,lineNumber:this.lineNumber,lineStart:this.lineStart,start:c,end:this.index}},C.prototype.scanHexLiteral=function(c){for(var m="";!this.eof()&&d.Character.isHexDigit(this.source.charCodeAt(this.index));)m+=this.source[this.index++];return m.length===0&&this.throwUnexpectedToken(),d.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+m,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:c,end:this.index}},C.prototype.scanBinaryLiteral=function(c){for(var m="",p;!this.eof()&&(p=this.source[this.index],!(p!=="0"&&p!=="1"));)m+=this.source[this.index++];return m.length===0&&this.throwUnexpectedToken(),this.eof()||(p=this.source.charCodeAt(this.index),(d.Character.isIdentifierStart(p)||d.Character.isDecimalDigit(p))&&this.throwUnexpectedToken()),{type:6,value:parseInt(m,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:c,end:this.index}},C.prototype.scanOctalLiteral=function(c,m){var p="",e=!1;for(d.Character.isOctalDigit(c.charCodeAt(0))?(e=!0,p="0"+this.source[this.index++]):++this.index;!this.eof()&&d.Character.isOctalDigit(this.source.charCodeAt(this.index));)p+=this.source[this.index++];return!e&&p.length===0&&this.throwUnexpectedToken(),(d.Character.isIdentifierStart(this.source.charCodeAt(this.index))||d.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(p,8),octal:e,lineNumber:this.lineNumber,lineStart:this.lineStart,start:m,end:this.index}},C.prototype.isImplicitOctalLiteral=function(){for(var c=this.index+1;c<this.length;++c){var m=this.source[c];if(m==="8"||m==="9")return!1;if(!d.Character.isOctalDigit(m.charCodeAt(0)))return!0}return!0},C.prototype.scanNumericLiteral=function(){var c=this.index,m=this.source[c];a.assert(d.Character.isDecimalDigit(m.charCodeAt(0))||m===".","Numeric literal must start with a decimal digit or a decimal point");var p="";if(m!=="."){if(p=this.source[this.index++],m=this.source[this.index],p==="0"){if(m==="x"||m==="X")return++this.index,this.scanHexLiteral(c);if(m==="b"||m==="B")return++this.index,this.scanBinaryLiteral(c);if(m==="o"||m==="O")return this.scanOctalLiteral(m,c);if(m&&d.Character.isOctalDigit(m.charCodeAt(0))&&this.isImplicitOctalLiteral())return this.scanOctalLiteral(m,c)}for(;d.Character.isDecimalDigit(this.source.charCodeAt(this.index));)p+=this.source[this.index++];m=this.source[this.index]}if(m==="."){for(p+=this.source[this.index++];d.Character.isDecimalDigit(this.source.charCodeAt(this.index));)p+=this.source[this.index++];m=this.source[this.index]}if(m==="e"||m==="E")if(p+=this.source[this.index++],m=this.source[this.index],(m==="+"||m==="-")&&(p+=this.source[this.index++]),d.Character.isDecimalDigit(this.source.charCodeAt(this.index)))for(;d.Character.isDecimalDigit(this.source.charCodeAt(this.index));)p+=this.source[this.index++];else this.throwUnexpectedToken();return d.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseFloat(p),lineNumber:this.lineNumber,lineStart:this.lineStart,start:c,end:this.index}},C.prototype.scanStringLiteral=function(){var c=this.index,m=this.source[c];a.assert(m==="'"||m==='"',"String literal must starts with a quote"),++this.index;for(var p=!1,e="";!this.eof();){var t=this.source[this.index++];if(t===m){m="";break}else if(t==="\\")if(t=this.source[this.index++],!t||!d.Character.isLineTerminator(t.charCodeAt(0)))switch(t){case"u":if(this.source[this.index]==="{")++this.index,e+=this.scanUnicodeCodePointEscape();else{var n=this.scanHexEscape(t);n===null&&this.throwUnexpectedToken(),e+=n}break;case"x":var i=this.scanHexEscape(t);i===null&&this.throwUnexpectedToken(o.Messages.InvalidHexEscapeSequence),e+=i;break;case"n":e+=`
4
- `;break;case"r":e+="\r";break;case"t":e+=" ";break;case"b":e+="\b";break;case"f":e+="\f";break;case"v":e+="\v";break;case"8":case"9":e+=t,this.tolerateUnexpectedToken();break;default:if(t&&d.Character.isOctalDigit(t.charCodeAt(0))){var h=this.octalToDecimal(t);p=h.octal||p,e+=String.fromCharCode(h.code)}else e+=t;break}else++this.lineNumber,t==="\r"&&this.source[this.index]===`
5
- `&&++this.index,this.lineStart=this.index;else{if(d.Character.isLineTerminator(t.charCodeAt(0)))break;e+=t}}return m!==""&&(this.index=c,this.throwUnexpectedToken()),{type:8,value:e,octal:p,lineNumber:this.lineNumber,lineStart:this.lineStart,start:c,end:this.index}},C.prototype.scanTemplate=function(){var c="",m=!1,p=this.index,e=this.source[p]==="`",t=!1,n=2;for(++this.index;!this.eof();){var i=this.source[this.index++];if(i==="`"){n=1,t=!0,m=!0;break}else if(i==="$"){if(this.source[this.index]==="{"){this.curlyStack.push("${"),++this.index,m=!0;break}c+=i}else if(i==="\\")if(i=this.source[this.index++],d.Character.isLineTerminator(i.charCodeAt(0)))++this.lineNumber,i==="\r"&&this.source[this.index]===`
6
- `&&++this.index,this.lineStart=this.index;else switch(i){case"n":c+=`
7
- `;break;case"r":c+="\r";break;case"t":c+=" ";break;case"u":if(this.source[this.index]==="{")++this.index,c+=this.scanUnicodeCodePointEscape();else{var h=this.index,g=this.scanHexEscape(i);g!==null?c+=g:(this.index=h,c+=i)}break;case"x":var S=this.scanHexEscape(i);S===null&&this.throwUnexpectedToken(o.Messages.InvalidHexEscapeSequence),c+=S;break;case"b":c+="\b";break;case"f":c+="\f";break;case"v":c+="\v";break;default:i==="0"?(d.Character.isDecimalDigit(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(o.Messages.TemplateOctalLiteral),c+="\0"):d.Character.isOctalDigit(i.charCodeAt(0))?this.throwUnexpectedToken(o.Messages.TemplateOctalLiteral):c+=i;break}else d.Character.isLineTerminator(i.charCodeAt(0))?(++this.lineNumber,i==="\r"&&this.source[this.index]===`
8
- `&&++this.index,this.lineStart=this.index,c+=`
9
- `):c+=i}return m||this.throwUnexpectedToken(),e||this.curlyStack.pop(),{type:10,value:this.source.slice(p+1,this.index-n),cooked:c,head:e,tail:t,lineNumber:this.lineNumber,lineStart:this.lineStart,start:p,end:this.index}},C.prototype.testRegExp=function(c,m){var p="\uFFFF",e=c,t=this;m.indexOf("u")>=0&&(e=e.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(n,i,h){var g=parseInt(i||h,16);return g>1114111&&t.throwUnexpectedToken(o.Messages.InvalidRegExp),g<=65535?String.fromCharCode(g):p}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p));try{RegExp(e)}catch{this.throwUnexpectedToken(o.Messages.InvalidRegExp)}try{return new RegExp(c,m)}catch{return null}},C.prototype.scanRegExpBody=function(){var c=this.source[this.index];a.assert(c==="/","Regular expression literal must start with a slash");for(var m=this.source[this.index++],p=!1,e=!1;!this.eof();)if(c=this.source[this.index++],m+=c,c==="\\")c=this.source[this.index++],d.Character.isLineTerminator(c.charCodeAt(0))&&this.throwUnexpectedToken(o.Messages.UnterminatedRegExp),m+=c;else if(d.Character.isLineTerminator(c.charCodeAt(0)))this.throwUnexpectedToken(o.Messages.UnterminatedRegExp);else if(p)c==="]"&&(p=!1);else if(c==="/"){e=!0;break}else c==="["&&(p=!0);return e||this.throwUnexpectedToken(o.Messages.UnterminatedRegExp),m.substr(1,m.length-2)},C.prototype.scanRegExpFlags=function(){for(var c="",m="";!this.eof();){var p=this.source[this.index];if(!d.Character.isIdentifierPart(p.charCodeAt(0)))break;if(++this.index,p==="\\"&&!this.eof())if(p=this.source[this.index],p==="u"){++this.index;var e=this.index,t=this.scanHexEscape("u");if(t!==null)for(m+=t,c+="\\u";e<this.index;++e)c+=this.source[e];else this.index=e,m+="u",c+="\\u";this.tolerateUnexpectedToken()}else c+="\\",this.tolerateUnexpectedToken();else m+=p,c+=p}return m},C.prototype.scanRegExp=function(){var c=this.index,m=this.scanRegExpBody(),p=this.scanRegExpFlags(),e=this.testRegExp(m,p);return{type:9,value:"",pattern:m,flags:p,regex:e,lineNumber:this.lineNumber,lineStart:this.lineStart,start:c,end:this.index}},C.prototype.lex=function(){if(this.eof())return{type:2,value:"",lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};var c=this.source.charCodeAt(this.index);return d.Character.isIdentifierStart(c)?this.scanIdentifier():c===40||c===41||c===59?this.scanPunctuator():c===39||c===34?this.scanStringLiteral():c===46?d.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():d.Character.isDecimalDigit(c)?this.scanNumericLiteral():c===96||c===125&&this.curlyStack[this.curlyStack.length-1]==="${"?this.scanTemplate():c>=55296&&c<57343&&d.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},C})();r.Scanner=A},function(u,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.TokenName={},r.TokenName[1]="Boolean",r.TokenName[2]="<end>",r.TokenName[3]="Identifier",r.TokenName[4]="Keyword",r.TokenName[5]="Null",r.TokenName[6]="Numeric",r.TokenName[7]="Punctuator",r.TokenName[8]="String",r.TokenName[9]="RegularExpression",r.TokenName[10]="Template"},function(u,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",lang:"\u27E8",rang:"\u27E9"}},function(u,r,l){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a=l(10),d=l(12),o=l(13),s=(function(){function A(){this.values=[],this.curly=this.paren=-1}return A.prototype.beforeFunctionExpression=function(C){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(C)>=0},A.prototype.isRegexStart=function(){var C=this.values[this.values.length-1],c=C!==null;switch(C){case"this":case"]":c=!1;break;case")":var m=this.values[this.paren-1];c=m==="if"||m==="while"||m==="for"||m==="with";break;case"}":if(c=!1,this.values[this.curly-3]==="function"){var p=this.values[this.curly-4];c=p?!this.beforeFunctionExpression(p):!1}else if(this.values[this.curly-4]==="function"){var p=this.values[this.curly-5];c=p?!this.beforeFunctionExpression(p):!0}break;default:break}return c},A.prototype.push=function(C){C.type===7||C.type===4?(C.value==="{"?this.curly=this.values.length:C.value==="("&&(this.paren=this.values.length),this.values.push(C.value)):this.values.push(null)},A})(),B=(function(){function A(C,c){this.errorHandler=new a.ErrorHandler,this.errorHandler.tolerant=c?typeof c.tolerant=="boolean"&&c.tolerant:!1,this.scanner=new d.Scanner(C,this.errorHandler),this.scanner.trackComment=c?typeof c.comment=="boolean"&&c.comment:!1,this.trackRange=c?typeof c.range=="boolean"&&c.range:!1,this.trackLoc=c?typeof c.loc=="boolean"&&c.loc:!1,this.buffer=[],this.reader=new s}return A.prototype.errors=function(){return this.errorHandler.errors},A.prototype.getNextToken=function(){if(this.buffer.length===0){var C=this.scanner.scanComments();if(this.scanner.trackComment)for(var c=0;c<C.length;++c){var m=C[c],p=this.scanner.source.slice(m.slice[0],m.slice[1]),e={type:m.multiLine?"BlockComment":"LineComment",value:p};this.trackRange&&(e.range=m.range),this.trackLoc&&(e.loc=m.loc),this.buffer.push(e)}if(!this.scanner.eof()){var t=void 0;this.trackLoc&&(t={start:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},end:{}});var n=this.scanner.source[this.scanner.index]==="/"&&this.reader.isRegexStart(),i=n?this.scanner.scanRegExp():this.scanner.lex();this.reader.push(i);var h={type:o.TokenName[i.type],value:this.scanner.source.slice(i.start,i.end)};if(this.trackRange&&(h.range=[i.start,i.end]),this.trackLoc&&(t.end={line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},h.loc=t),i.type===9){var g=i.pattern,S=i.flags;h.regex={pattern:g,flags:S}}this.buffer.push(h)}}return this.buffer.shift()},A})();r.Tokenizer=B}])})});var Qt=nt($t=>{(function u(r){"use strict";var l,a,d,o,s,B;function A(D){var y={},v,b;for(v in D)D.hasOwnProperty(v)&&(b=D[v],typeof b=="object"&&b!==null?y[v]=A(b):y[v]=b);return y}function C(D,y){var v,b,w,P;for(b=D.length,w=0;b;)v=b>>>1,P=w+v,y(D[P])?b=v:(w=P+1,b-=v+1);return w}l={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},d={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},o={},s={},B={},a={Break:o,Skip:s,Remove:B};function c(D,y){this.parent=D,this.key=y}c.prototype.replace=function(y){this.parent[this.key]=y},c.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)};function m(D,y,v,b){this.node=D,this.path=y,this.wrap=v,this.ref=b}function p(){}p.prototype.path=function(){var y,v,b,w,P,N;function R(_,W){if(Array.isArray(W))for(b=0,w=W.length;b<w;++b)_.push(W[b]);else _.push(W)}if(!this.__current.path)return null;for(P=[],y=2,v=this.__leavelist.length;y<v;++y)N=this.__leavelist[y],R(P,N.path);return R(P,this.__current.path),P},p.prototype.type=function(){var D=this.current();return D.type||this.__current.wrap},p.prototype.parents=function(){var y,v,b;for(b=[],y=1,v=this.__leavelist.length;y<v;++y)b.push(this.__leavelist[y].node);return b},p.prototype.current=function(){return this.__current.node},p.prototype.__execute=function(y,v){var b,w;return w=void 0,b=this.__current,this.__current=v,this.__state=null,y&&(w=y.call(this,v.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=b,w},p.prototype.notify=function(y){this.__state=y},p.prototype.skip=function(){this.notify(s)},p.prototype.break=function(){this.notify(o)},p.prototype.remove=function(){this.notify(B)},p.prototype.__initialize=function(D,y){this.visitor=y,this.root=D,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,y.fallback==="iteration"?this.__fallback=Object.keys:typeof y.fallback=="function"&&(this.__fallback=y.fallback),this.__keys=d,y.keys&&(this.__keys=Object.assign(Object.create(this.__keys),y.keys))};function e(D){return D==null?!1:typeof D=="object"&&typeof D.type=="string"}function t(D,y){return(D===l.ObjectExpression||D===l.ObjectPattern)&&y==="properties"}function n(D,y){for(var v=D.length-1;v>=0;--v)if(D[v].node===y)return!0;return!1}p.prototype.traverse=function(y,v){var b,w,P,N,R,_,W,q,Z,$,ee,se;for(this.__initialize(y,v),se={},b=this.__worklist,w=this.__leavelist,b.push(new m(y,null,null,null)),w.push(new m(null,null,null,null));b.length;){if(P=b.pop(),P===se){if(P=w.pop(),_=this.__execute(v.leave,P),this.__state===o||_===o)return;continue}if(P.node){if(_=this.__execute(v.enter,P),this.__state===o||_===o)return;if(b.push(se),w.push(P),this.__state===s||_===s)continue;if(N=P.node,R=N.type||P.wrap,$=this.__keys[R],!$)if(this.__fallback)$=this.__fallback(N);else throw new Error("Unknown node type "+R+".");for(q=$.length;(q-=1)>=0;)if(W=$[q],ee=N[W],!!ee){if(Array.isArray(ee)){for(Z=ee.length;(Z-=1)>=0;)if(ee[Z]&&!n(w,ee[Z])){if(t(R,$[q]))P=new m(ee[Z],[W,Z],"Property",null);else if(e(ee[Z]))P=new m(ee[Z],[W,Z],null,null);else continue;b.push(P)}}else if(e(ee)){if(n(w,ee))continue;b.push(new m(ee,W,null,null))}}}}},p.prototype.replace=function(y,v){var b,w,P,N,R,_,W,q,Z,$,ee,se,ce;function z(H){var O,J,V,Y;if(H.ref.remove()){for(J=H.ref.key,Y=H.ref.parent,O=b.length;O--;)if(V=b[O],V.ref&&V.ref.parent===Y){if(V.ref.key<J)break;--V.ref.key}}}for(this.__initialize(y,v),ee={},b=this.__worklist,w=this.__leavelist,se={root:y},_=new m(y,null,null,new c(se,"root")),b.push(_),w.push(_);b.length;){if(_=b.pop(),_===ee){if(_=w.pop(),R=this.__execute(v.leave,_),R!==void 0&&R!==o&&R!==s&&R!==B&&_.ref.replace(R),(this.__state===B||R===B)&&z(_),this.__state===o||R===o)return se.root;continue}if(R=this.__execute(v.enter,_),R!==void 0&&R!==o&&R!==s&&R!==B&&(_.ref.replace(R),_.node=R),(this.__state===B||R===B)&&(z(_),_.node=null),this.__state===o||R===o)return se.root;if(P=_.node,!!P&&(b.push(ee),w.push(_),!(this.__state===s||R===s))){if(N=P.type||_.wrap,Z=this.__keys[N],!Z)if(this.__fallback)Z=this.__fallback(P);else throw new Error("Unknown node type "+N+".");for(W=Z.length;(W-=1)>=0;)if(ce=Z[W],$=P[ce],!!$)if(Array.isArray($)){for(q=$.length;(q-=1)>=0;)if($[q]){if(t(N,Z[W]))_=new m($[q],[ce,q],"Property",new c($,q));else if(e($[q]))_=new m($[q],[ce,q],null,new c($,q));else continue;b.push(_)}}else e($)&&b.push(new m($,ce,null,new c(P,ce)))}}return se.root};function i(D,y){var v=new p;return v.traverse(D,y)}function h(D,y){var v=new p;return v.replace(D,y)}function g(D,y){var v;return v=C(y,function(w){return w.range[0]>D.range[0]}),D.extendedRange=[D.range[0],D.range[1]],v!==y.length&&(D.extendedRange[1]=y[v].range[0]),v-=1,v>=0&&(D.extendedRange[0]=y[v].range[1]),D}function S(D,y,v){var b=[],w,P,N,R;if(!D.range)throw new Error("attachComments needs range information");if(!v.length){if(y.length){for(N=0,P=y.length;N<P;N+=1)w=A(y[N]),w.extendedRange=[0,D.range[0]],b.push(w);D.leadingComments=b}return D}for(N=0,P=y.length;N<P;N+=1)b.push(g(A(y[N]),v));return R=0,i(D,{enter:function(_){for(var W;R<b.length&&(W=b[R],!(W.extendedRange[1]>_.range[0]));)W.extendedRange[1]===_.range[0]?(_.leadingComments||(_.leadingComments=[]),_.leadingComments.push(W),b.splice(R,1)):R+=1;if(R===b.length)return a.Break;if(b[R].extendedRange[0]>_.range[1])return a.Skip}}),R=0,i(D,{leave:function(_){for(var W;R<b.length&&(W=b[R],!(_.range[1]<W.extendedRange[0]));)_.range[1]===W.extendedRange[0]?(_.trailingComments||(_.trailingComments=[]),_.trailingComments.push(W),b.splice(R,1)):R+=1;if(R===b.length)return a.Break;if(b[R].extendedRange[0]>_.range[1])return a.Skip}}),D}return r.Syntax=l,r.traverse=i,r.replace=h,r.attachComments=S,r.VisitorKeys=d,r.VisitorOption=a,r.Controller=p,r.cloneEnvironment=function(){return u({})},r})($t)});var ft=[{architecture:"Linux arm64-v8a",os:"Android 10",rasterizer:"gles",manufacturer:"Sony",deviceType:"ATV",chipsetModel:"sdm845",modelYear:13140765,firmwareVersion:"52.1.C.0.268",brand:"KDDI",model:"SOV38"},{architecture:"Linux armeabi-v7a",os:"Android 14",rasterizer:"gles",manufacturer:"Google",deviceType:"ATV",chipsetModel:"sabrina",modelYear:2020,firmwareVersion:"UTTC.250917.004",brand:"google",model:"Chromecast"},{architecture:"Linux armeabi-v7a",os:"Android 12",rasterizer:"gles",manufacturer:"TCL",deviceType:"ATV",chipsetModel:"merak",modelYear:2023,firmwareVersion:"STT2.221228.001",brand:"TCL",model:"Smart TV Pro"},{architecture:"Linux armeabi-v7a",os:"Android 7.1.2",rasterizer:"gles",manufacturer:"Amazon",deviceType:"ATV",chipsetModel:"mt8695",modelYear:0,firmwareVersion:"NS6294",brand:"Amazon",model:"AFTMM"}],ln="25.lts.30.1034958-gold",cn="v8/8.8.278.17-jit",hn="15",dn="com.google.android.youtube.tv/5.30.301";function pn(u){return`Mozilla/5.0 (${u.architecture}; ${u.os}) Cobalt/${ln} (unlike Gecko) ${cn} ${u.rasterizer} Starboard/${hn}, ${u.manufacturer}_${u.deviceType}_${u.chipsetModel}_${u.modelYear}/${u.firmwareVersion} (${u.brand}, ${u.model}) ${dn}`}if(document.querySelector(".content-container")&&window.h5vcc&&window.h5vcc.tizentube&&window.h5vcc.tizentube.SetUserAgent){let u=localStorage.getItem("userAgent");u&&(window.h5vcc.tizentube.SetUserAgent(u),location.reload());let r=ft[Math.floor(Math.random()*ft.length)],l=pn(r);localStorage.setItem("userAgent",l),window.h5vcc.tizentube.SetUserAgent(l),location.reload()}(function(u){function r(d){return d===void 0?0:Number(d)}function l(d,o){return d!==o&&!(isNaN(d)&&isNaN(o))}function a(d,o,s,B){var A,C,c,m,p,e,t,n;A=r(d),C=r(o),c=r(s),m=r(B),Object.defineProperties(this,{x:{get:function(){return A},set:function(i){l(A,i)&&(A=i,p=e=void 0)},enumerable:!0},y:{get:function(){return C},set:function(i){l(C,i)&&(C=i,t=n=void 0)},enumerable:!0},width:{get:function(){return c},set:function(i){l(c,i)&&(c=i,p=e=void 0)},enumerable:!0},height:{get:function(){return m},set:function(i){l(m,i)&&(m=i,t=n=void 0)},enumerable:!0},left:{get:function(){return p===void 0&&(p=A+Math.min(0,c)),p},enumerable:!0},right:{get:function(){return e===void 0&&(e=A+Math.max(0,c)),e},enumerable:!0},top:{get:function(){return t===void 0&&(t=C+Math.min(0,m)),t},enumerable:!0},bottom:{get:function(){return n===void 0&&(n=C+Math.max(0,m)),n},enumerable:!0}})}u.DOMRect=a})(self);var mt="ytaf-configuration",rt={enableAdBlock:!0,enableSponsorBlock:!0,sponsorBlockManualSkips:["intro","outro","filler"],enableSponsorBlockSponsor:!0,enableSponsorBlockIntro:!0,enableSponsorBlockOutro:!0,enableSponsorBlockInteraction:!0,enableSponsorBlockSelfPromo:!0,enableSponsorBlockPreview:!0,enableSponsorBlockMusicOfftopic:!0,enableSponsorBlockFiller:!1,enableSponsorBlockHighlight:!0,videoSpeed:1,preferredVideoQuality:"auto",enableDeArrow:!0,enableDeArrowThumbnails:!1,focusContainerColor:"#0f0f0f",routeColor:"#0f0f0f",enableFixedUI:!(window.h5vcc&&window.h5vcc.tizentube),enableHqThumbnails:!0,enableChapters:!0,enableLongPress:!0,enableShorts:!1,dontCheckUpdateUntil:0,enableWhoIsWatchingMenu:!1,enableShowUserLanguage:!0,enableShowOtherLanguages:!1,showWelcomeToast:!1,enablePreviousNextButtons:!0,enableSuperThanksButton:!1,enableSpeedControlsButton:!0,enablePatchingVideoPlayer:!0,enablePreviews:!1,enableHideWatchedVideos:!0,hideWatchedVideosThreshold:10,hideWatchedVideosPages:["home","music","gaming","subscriptions","more"],enableHideWatchedInPlaylists:!0,enablePlaylistContinueButton:!0,enableHideEndScreenCards:!1,enableYouThereRenderer:!1,lastAnnouncementCheck:0,enableScreenDimming:!0,dimmingTimeout:60,dimmingOpacity:.5,enablePaidPromotionOverlay:!1,speedSettingsIncrement:.25,videoPreferredCodec:"any",launchToOnStartup:null,disabledSidebarContents:["TROPHY","NEWS","YOUTUBE_MUSIC","BROADCAST","CLAPPERBOARD","LIVE","GAMING","TAB_MORE"],enableUpdater:!0},be;try{be=JSON.parse(window.localStorage[mt])}catch(u){console.warn("Config read failed:",u),be=rt}function U(u){return be[u]===void 0&&(console.warn("Populating key",u,"with default value",rt[u]),be[u]=rt[u]),be[u]}function ke(u,r){console.info("Setting key",u,"to",r),be[u]=r,window.localStorage[mt]=JSON.stringify(be),ve.dispatchEvent(new CustomEvent("configChange",{detail:{key:u,value:r}}))}var ve={listeners:{},addEventListener(u,r){this.listeners[u]||(this.listeners[u]=[]),this.listeners[u].push(r)},removeEventListener(u,r){this.listeners[u]&&(this.listeners[u]=this.listeners[u].filter(l=>l!==r))},dispatchEvent(u){let r=u.type;this.listeners[r]&&this.listeners[r].forEach(l=>{try{l.call(this,u)}catch{}})}};window.isPipPlaying=!1;var Ie=null;function yt(){let u=Object.values(window._yttv).find(d=>d&&d.mappings);Ie=u.get("PlayerService");let r=u.get("PlaybackPreviewService"),l=r.start,a=r.stop;r.start=function(...d){if(!window.isPipPlaying)return l.apply(this,d)},r.stop=function(...d){if(!window.isPipPlaying)return a.apply(this,d)}}document.readyState==="complete"?yt():window.addEventListener("load",yt);function vt(){if(!Ie)return;let u=Math.floor(document.querySelector("video").currentTime),r=document.querySelector("video"),l=document.querySelector("ytlr-player"),a=document.querySelector("ytlr-player-container"),d=new MutationObserver(o=>{o.forEach(s=>{if(s.attributeName==="class"&&!l.classList.contains("ytLrPlayerEnabled")){let B=function(){a.style.zIndex="10",l.style.display="block",l.style.backgroundColor="rgba(0,0,0,0)"},A=function(){r.style.removeProperty("inset");let C=window.innerWidth/3.5,c=window.innerHeight/3.5;r.style.width=`${C}px`,r.style.height=`${c}px`,r.style.top="68vh",r.style.left="68vw",window.isPipPlaying=!0,r.removeEventListener("play",A)};B(),setTimeout(B,500),r.addEventListener("play",A),d.disconnect(),setTimeout(()=>{Ie.loadedPlaybackConfig.watchEndpoint.startTimeSeconds=u,Ie.loadVideo(Ie.loadedPlaybackConfig)},1e3)}})});d.observe(l,{attributes:!0}),oe({signalAction:{signal:"HISTORY_BACK"}})}function gt(){let{clickTrackingParams:u,commandMetadata:r,watchEndpoint:l}=Ie.loadedPlaybackConfig;l.startTimeSeconds=Math.floor(document.querySelector("video").currentTime),oe({clickTrackingParams:u,commandMetadata:r,watchEndpoint:l}),window.isPipPlaying=!1}var fe={ytlrSearchVoice:{length:0,classes:[]},ytlrSearchVoiceMicButton:{length:0,classes:[]}},fn=new MutationObserver(()=>{if(!window.isPipPlaying)return;let u=document.querySelector("ytlr-search-bar");if(u&&!document.querySelector("#tt-pip-button")){let l=u.querySelector("ytlr-search-voice");if(l){let a=Object.values(window._yttv).find(C=>C instanceof Map&&C.has("CLEAR_COOKIES")),d=a.get("MICROPHONE_ON"),o=a.get("CLEAR_COOKIES"),s=document.createElement("ytlr-search-voice");for(let C=0;C<l.classList.length;C++){if(fe.ytlrSearchVoice.length===0&&(fe.ytlrSearchVoice.length=l.classList.length),fe.ytlrSearchVoice.length!==l.classList.length){for(let c of fe.ytlrSearchVoice.classes)s.classList.add(c);break}fe.ytlrSearchVoice.classes.includes(l.classList[C])||fe.ytlrSearchVoice.classes.push(l.classList[C]),s.classList.add(l.classList[C])}s.style.left="10.25em",s.id="tt-pip-button";let B=document.createElement("ytlr-search-voice-mic-button");for(let C=0;C<l.children[0].classList.length;C++){if(fe.ytlrSearchVoiceMicButton.length===0&&(fe.ytlrSearchVoiceMicButton.length=l.children[0].classList.length),fe.ytlrSearchVoiceMicButton.length!==l.children[0].classList.length){for(let c of fe.ytlrSearchVoiceMicButton.classes)B.classList.add(c);break}fe.ytlrSearchVoiceMicButton.classes.includes(l.children[0].classList[C])||fe.ytlrSearchVoiceMicButton.classes.push(l.children[0].classList[C]),B.classList.add(l.children[0].classList[C])}let A=document.createElement("yt-icon");for(let C=0;C<l.children[0].children[0].classList.length;C++)A.classList.add(l.children[0].children[0].classList[C]);A.classList.remove(d),A.classList.add(o),B.appendChild(A),s.appendChild(B),u.appendChild(s)}else{let a=document.createElement("ytlr-search-voice");a.style.left="10.25em",a.id="tt-pip-button",a.setAttribute("idomkey","ytLrSearchBarSearchVoice"),a.setAttribute("tabindex","0"),a.classList.add("ytLrSearchVoiceHost","ytLrSearchBarSearchVoice");let d=document.createElement("ytlr-search-voice-mic-button");d.setAttribute("hybridnavfocusable","true"),d.setAttribute("tabindex","-1"),d.classList.add("ytLrSearchVoiceMicButtonHost","zylon-ve");let o=document.createElement("yt-icon");o.setAttribute("tabindex","-1"),o.classList.add("ytContribIconTvArrowLeft","ytContribIconHost","ytLrSearchVoiceMicButtonIcon"),d.appendChild(o),a.appendChild(d),u.appendChild(a)}}});fn.observe(document.body,{childList:!0,subtree:!0});function de(u,r,l){let a={openPopupAction:{popupType:"TOAST",popup:{overlayToastRenderer:{title:{simpleText:u},subtitle:{simpleText:r}}}}};l&&(a.openPopupAction.popup.overlayToastRenderer.image.thumbnails=l),oe(a)}function mn(u,r,l,a){let d=typeof u=="string"?{title:u,subtitle:""}:u,s={openPopupAction:{popupType:"MODAL",popup:{overlaySectionRenderer:{overlay:{overlayTwoPanelRenderer:{actionPanel:{overlayPanelRenderer:{header:{overlayPanelHeaderRenderer:u.overlayPanelHeaderRenderer||{title:{simpleText:d.title}}},content:r}},backButton:{buttonRenderer:{accessibilityData:{accessibilityData:{label:"Back"}},command:{signalAction:{signal:"POPUP_BACK"}}}}}},dismissalCommand:{signalAction:{signal:"POPUP_BACK"}}}},uniqueId:l}};return d.subtitle&&(s.openPopupAction.popup.overlaySectionRenderer.overlay.overlayTwoPanelRenderer.actionPanel.overlayPanelRenderer.header.overlayPanelHeaderRenderer.subtitle={simpleText:d.subtitle}),a&&(s.openPopupAction.shouldMatchUniqueId=!0,s.openPopupAction.updateAction=!0),s}function Se(u,r,l,a){let d=mn(u,r,l,a);oe(d)}function Ce(u,r){return{overlayPanelItemListRenderer:{items:u,selectedIndex:r}}}function pe(u,r,l){let a={compactLinkRenderer:{serviceEndpoint:{commandExecutorCommand:{commands:l}}}};return u&&(a.compactLinkRenderer.title={simpleText:u.title}),u.subtitle&&(a.compactLinkRenderer.subtitle={simpleText:u.subtitle}),r&&(a.compactLinkRenderer.icon={iconType:r.icon}),r&&r.secondaryIcon&&(a.compactLinkRenderer.secondaryIcon={iconType:r.secondaryIcon}),a}function Et(u,r,l,a,d){return{timelyActionRenderer:{actionButtons:[{buttonRenderer:{isDisabled:!1,text:{runs:[{text:u}]},icon:{iconType:r},trackingParams:null,command:l}}],triggerTimeMs:a,timeoutMs:d,type:""}}}function Dt(u){return{clickTrackingParams:null,showMenuCommand:{contentId:u.videoId,thumbnail:{thumbnails:u.thumbnails},title:{simpleText:u.title},subtitle:{simpleText:u.subtitle},menu:{menuRenderer:{items:[xt("Play",{clickTrackingParams:null,watchEndpoint:u.watchEndpointData}),We("Save to Watch Later",{clickTrackingParams:null,playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:u.videoId,action:"ACTION_ADD_VIDEO"}]}}),xt("Save to Playlist",{clickTrackingParams:null,addToPlaylistEndpoint:{videoId:u.videoId}}),We("Add to Queue",{clickTrackingParams:null,playlistEditEndpoint:{customAction:{action:"ADD_TO_QUEUE",parameters:u.item}}})],trackingParams:null,accessibility:{accessibilityData:{label:"Video options"}}}}}}}function We(u,r){return{menuServiceItemRenderer:{text:{runs:[{text:u}]},serviceEndpoint:r,trackingParams:null}}}function xt(u,r){return{menuNavigationItemRenderer:{text:{runs:[{text:u}]},navigationEndpoint:r,trackingParams:null}}}function St(u,r,l){let a={settingCategoryCollectionRenderer:{items:r,categoryId:u,focused:!1,trackingParams:"null"}};return l&&(a.settingCategoryCollectionRenderer.title={runs:[{text:l}]}),a}function Ct(u,r,l,a,d){return{settingActionRenderer:{title:{runs:[{text:u}]},serviceEndpoint:l,summary:{runs:[{text:a}]},trackingParams:"null",actionLabel:{runs:[{text:u}]},itemId:r,thumbnail:{thumbnails:[{url:d}]}}}}function wt(u){return{scrollPaneRenderer:{content:{scrollPaneItemListRenderer:{items:u}}}}}function Te(u){return{overlayMessageRenderer:{title:{simpleText:u}}}}function At(u,r,l=0){return{shelfRenderer:{shelfHeaderRenderer:{title:{simpleText:u}},tvhtml5ShelfRendererType:"TVHTML5_SHELF_RENDERER_TYPE_GRID",content:{horizontalListRenderer:{items:r,selectedIndex:l,visibleItemCount:3}}}}}function bt(u,r){return{tileRenderer:{contentType:"TILE_CONTENT_TYPE_VIDEO",metadata:{tileMetadataRenderer:{title:{simpleText:u}}},onSelectCommand:r,style:"TILE_STYLE_YTLR_DEFAULT"}}}function kt(u){return{qrCodeRenderer:{qrCodeImage:{thumbnails:[{url:u}]},style:"QR_CODE_RENDERER_STYLE_ATA_SIDESHEET",trackingParams:null}}}function Fe(u,r,l,a){return{isDisabled:u,text:{runs:[{text:r}]},icon:{iconType:l},command:a,trackingParams:null}}var Tt=["af","sq","am","ar","hy","as","az","eu","be","bn","bs","bg","my","ca","zh-CN","zh-TW","zh-HK","hr","cs","da","nl","en","et","fil","fi","fr","gl","ka","de","el","gu","he","hi","hu","is","id","ga","it","ja","kn","kk","km","ko","ky","lo","lv","lt","mk","ms","ml","mt","mr","mn","ne","no","or","fa","pl","pt","pa","ro","ru","sr","si","sk","sl","es","sw","sv","ta","te","th","tr","uk","ur","uz","vi","cy","yi","yo","zu"];function yn(u="en"){try{let r=new Intl.DisplayNames([u],{type:"language"}),l={};return Tt.forEach(a=>{let d=r.of(a)||a;l[a]=d}),l}catch{let l={};return Tt.forEach(a=>l[a]=a),l}}function Pt(u,r="en"){if(!u)return null;try{let l=String(u).toUpperCase(),a={CN:"zh-CN",TW:"zh-TW",HK:"zh-HK",SG:"zh-CN"};if(a[l]){let C=a[l],c=new Intl.DisplayNames([r],{type:"language"}).of(C)||C;return{code:C,name:c}}let d=new Intl.Locale("und",{region:l}),s=(d.maximize?d.maximize():d).language||"en",A=new Intl.DisplayNames([r],{type:"language"}).of(s)||s;return{code:s,name:A}}catch(l){return console.warn("TizenTube Subtitle Localization: Could not infer language for country",u,l),null}}var Ft=!1;function It(){try{return window.yt&&window.yt.config_&&window.yt.config_.GL?window.yt.config_.GL:(console.warn("TizenTube Subtitle Localization: Could not determine user country code"),null)}catch(u){return console.error("TizenTube Subtitle Localization: Error getting country code:",u),null}}function Nt(){let u=It(),r=Pt(u);return r?`Show ${r.name} Subtitle`:"Show Local Subtitle"}function vn(u,r,l){return u.some(a=>{if(a.compactLinkRenderer&&a.compactLinkRenderer.serviceEndpoint){let d=a.compactLinkRenderer.serviceEndpoint.commandExecutorCommand?.commands;if(d&&d[0]&&d[0].selectSubtitlesTrackCommand){let o=d[0].selectSubtitlesTrackCommand.translationLanguage;return o&&(o.languageCode===r||o.languageName===l)}}return!1})}function Bt(u,r){return{compactLinkRenderer:{title:{simpleText:r},serviceEndpoint:{commandExecutorCommand:{commands:[{selectSubtitlesTrackCommand:{translationLanguage:{languageCode:u,languageName:r}}},{openClientOverlayAction:{type:"CLIENT_OVERLAY_TYPE_CAPTIONS_LANGUAGE",updateAction:!0}},{signalAction:{signal:"POPUP_BACK"}}]}},secondaryIcon:{iconType:"RADIO_BUTTON_UNCHECKED"}}}}function gn(u){let r=new Set;return u.forEach(l=>{if(l.compactLinkRenderer&&l.compactLinkRenderer.serviceEndpoint){let a=l.compactLinkRenderer.serviceEndpoint.commandExecutorCommand?.commands;if(a&&a[0]&&a[0].selectSubtitlesTrackCommand){let d=a[0].selectSubtitlesTrackCommand.translationLanguage;d&&(r.add(d.languageCode),r.add(d.languageName))}}}),r}function xn(u){return{overlayMessageRenderer:{title:{simpleText:""},subtitle:{simpleText:u},style:"OVERLAY_MESSAGE_STYLE_SUBSECTION_TITLE"}}}function Ye(){if(Ft)return;if(!window._yttv)return setTimeout(Ye,250);let u=Object.values(window._yttv).find(l=>l&&l.instance&&typeof l.instance.resolveCommand=="function");if(!u||u.instance.resolveCommand.isPatchedBySubtitleLocalization){u?console.log("TizenTube Subtitle Localization: Already patched."):console.error("TizenTube Subtitle Localization: Could not find resolveCommand instance.");return}let r=u.instance.resolveCommand;u.instance.resolveCommand=function(l,a){if(l?.openPopupAction?.uniqueId==="CLIENT_OVERLAY_TYPE_CAPTIONS_AUTO_TRANSLATE"){let d=U("enableShowUserLanguage"),o=U("enableShowOtherLanguages");if(!d&&!o)return r.apply(this,arguments);let s=l.openPopupAction.popup.overlaySectionRenderer.overlay.overlayTwoPanelRenderer.actionPanel.overlayPanelRenderer.content.overlayPanelItemListRenderer.items,B=gn(s);if(d){let A=It(),C=Pt(A);if(C)if(vn(s,C.code,C.name))console.log(`%c[TizenTube Subtitle Localization] User's language ${C.name} already exists in menu`,"background: #4CAF50; color: #ffffff; font-size: 12px;");else{console.log(`%c[TizenTube Subtitle Localization] Adding user's local language: ${C.name} (${C.code})`,"background: #2196F3; color: #ffffff; font-size: 14px; font-weight: bold;");let c=Bt(C.code,C.name),m=s.findIndex(p=>p.overlayMessageRenderer?.subtitle?.simpleText==="Recommended languages");if(m>-1)s.splice(m+1,0,c),B.add(C.code),B.add(C.name);else{let p=s.findIndex(e=>e.overlayMessageRenderer?.subtitle?.simpleText==="Other languages");p>-1?s.splice(p,0,c):s.unshift(c),B.add(C.code),B.add(C.name)}}else console.warn(`TizenTube Subtitle Localization: No language mapping found for country code: ${A}`)}if(o){let A=Object.entries(yn()).filter(([C,c])=>!B.has(C)&&!B.has(c)).sort(([,C],[,c])=>C.localeCompare(c));A.length>0?(console.log(`%c[TizenTube Subtitle Localization] Adding "Tizen Languages" section with ${A.length} additional languages`,"background: #FF9800; color: #ffffff; font-size: 12px;"),s.push(xn("Other Languages")),A.forEach(([C,c])=>{s.push(Bt(C,c))}),console.log('%c[TizenTube Subtitle Localization] Added "Tizen Languages" section',"background: #FF9800; color: #ffffff; font-size: 12px;")):console.log("%c[TizenTube Subtitle Localization] All languages already present in menu","background: #4CAF50; color: #ffffff; font-size: 12px;")}}return r.apply(this,arguments)},u.instance.resolveCommand.isPatchedBySubtitleLocalization=!0,console.log("TizenTube Subtitle Localization: Patch successful!"),Ft=!0}var En=setInterval(()=>{window._yttv&&Object.keys(window._yttv).length>0&&(Ye(),clearInterval(En))},1e3);document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Ye):Ye();console.log("TizenTube Subtitle Localization: Module loaded, waiting for YouTube TV...");var _t=it(Lt(),1);function Ne(u,r){let l=[{name:"Support TizenTube",icon:"MONEY_HEART",value:null,options:{title:"Support TizenTube",subtitle:"\u2764\uFE0F Show support for TizenTube and its development",content:wt([Te("If you enjoy using TizenTube and would like to support its development, consider the following:"),Te("1. Star the GitHub repository to help increase its visibility."),Te("2. Share TizenTube with others."),Te("If you would like to contribute financially, consider donating:"),Te("- GitHub Sponsors: https://github.com/sponsors/reisxd")])}},{name:"Social Media Links",icon:"PRIVACY_UNLISTED",value:null,options:[{name:"GitHub",link:"https://github.com/reisxd/TizenTube"},{name:"YouTube",link:"https://www.youtube.com/@tizenbrew"},{name:"Discord",link:"https://discord.gg/m2P7v8Y2qR"},{name:"Telegram (Announcements)",link:"https://t.me/tizentubecobaltofficial"},{name:"Telegram (Group)",link:"https://t.me/tizentubeofficial"},{name:"Website",link:"https://tizentube.6513006.xyz"}].map(o=>{let s=_t.default.qrcode(6,"H");s.addData(o.link),s.make();let A=s.createImgTag(8,8).match(/src="([^"]+)"/)[1];return{name:o.name,icon:"OPEN_IN_NEW",value:null,options:{title:o.name,subtitle:o.link,content:Ce([Te(`You can visit the ${o.name} page by scanning the QR code below.`),kt(A)])}}})},{name:"Ad block",icon:"DOLLAR_SIGN",value:"enableAdBlock"},{name:"SponsorBlock",icon:"MONEY_HAND",value:null,menuId:"tt-sponsorblock-settings",menuHeader:{title:"SponsorBlock Settings",subtitle:"https://sponsor.ajay.app/"},options:[{name:"Enable SponsorBlock",icon:"MONEY_HAND",value:"enableSponsorBlock"},{name:"Manual SponsorBlock Segment Skip",icon:"DOLLAR_SIGN",value:null,arrayToEdit:"sponsorBlockManualSkips",menuId:"tt-sponsorblock-manual-segment-skip",options:[{name:"Skip Sponsor Segments",icon:"MONEY_HEART",value:"sponsor"},{name:"Skip Intro Segments",icon:"PLAY_CIRCLE",value:"intro"},{name:"Skip Outro Segments",value:"outro"},{name:"Skip Interaction Reminder Segments",value:"interaction"},{name:"Skip Self-Promotion Segments",value:"selfpromo"},{name:"Skip Preview/Recap Segments",value:"preview"},{name:"Skip Tangents/Jokes Segments",value:"filler"},{name:"Skip Off-Topic Music Segments",value:"music_offtopic"}]},{name:"Segments",icon:"SETTINGS",value:null,menuId:"tt-sponsorblock-segments",options:[{name:"Skip Sponsor Segments",icon:"MONEY_HEART",value:"enableSponsorBlockSponsor"},{name:"Skip Intro Segments",icon:"PLAY_CIRCLE",value:"enableSponsorBlockIntro"},{name:"Skip Outro Segments",value:"enableSponsorBlockOutro"},{name:"Skip Interaction Reminder Segments",value:"enableSponsorBlockInteraction"},{name:"Skip Self-Promotion Segments",value:"enableSponsorBlockSelfPromo"},{name:"Skip Preview/Recap Segments",value:"enableSponsorBlockPreview"},{name:"Skip Tangents/Jokes Segments",value:"enableSponsorBlockFiller"},{name:"Skip Off-Topic Music Segments",value:"enableSponsorBlockMusicOfftopic"},{name:"Highlights",icon:"LOCATION_POINT",value:"enableSponsorBlockHighlight"}]}]},{name:"DeArrow",icon:"VISIBILITY_OFF",value:null,menuHeader:{title:"DeArrow Settings",subtitle:"https://dearrow.ajay.app/"},options:[{name:"Enable DeArrow",icon:"VISIBILITY_OFF",value:"enableDeArrow"},{name:"DeArrow Thumbnails",icon:"TV",value:"enableDeArrowThumbnails"}]},{name:"Miscellaneous",icon:"SETTINGS",value:null,options:[{name:"Hide End Screen Cards",icon:"VISIBILITY_OFF",value:"enableHideEndScreenCards"},{name:"You There Renderer",icon:"HELP",value:"enableYouThereRenderer"},{name:"Paid Promotion Overlay",icon:"MONEY_HAND",value:"enablePaidPromotionOverlay"},{name:"Who's Watching Menu",icon:"ACCOUNT_CIRCLE",value:"enableWhoIsWatchingMenu"},{name:"Fix UI",icon:"STAR",value:"enableFixedUI"},{name:"High Quality Thumbnails",icon:"VIDEO_QUALITY",value:"enableHqThumbnails"},{name:"Long Press",value:"enableLongPress"},{name:"Shorts",icon:"YOUTUBE_SHORTS_FILL_24",value:"enableShorts"},{name:"Video Previews",value:"enablePreviews"},{name:"Welcome Message",value:"showWelcomeToast"}]},{name:"Subtitles",icon:"TRANSLATE",value:null,options:[{name:Nt(),value:"enableShowUserLanguage"},{name:"Show Hidden Subtitles",value:"enableShowOtherLanguages"}]},{name:"Video Player Settings",icon:"VIDEO_YOUTUBE",value:null,menuHeader:{title:"Video Player Settings",subtitle:"Customize video player features"},options:[{name:"Patch Video Player UI",icon:"SETTINGS",value:null,menuId:"tt-video-player-ui-patching",options:[{name:"Enable Video Player UI Patching",icon:"SETTINGS",value:"enablePatchingVideoPlayer"},{name:"Previous and Next Buttons",icon:"SKIP_NEXT",value:"enablePreviousNextButtons"},{name:"Super Thanks Button",icon:"MONEY_HEART",value:"enableSuperThanksButton"},{name:"Speed Controls Button",icon:"SLOW_MOTION_VIDEO",value:"enableSpeedControlsButton"}]},{name:"Preferred Video Quality",icon:"VIDEO_QUALITY",value:null,menuId:"tt-preferred-video-quality",menuHeader:{title:"Preferred Video Quality",subtitle:"Choose the preferred or next best video quality applied when playback starts"},options:["Auto","2160p","1440p","1080p","720p","480p","360p","240p","144p"].map(o=>({name:o,key:"preferredVideoQuality",value:o.toLowerCase()}))},{name:"Speed Settings Increments",icon:"SLOW_MOTION_VIDEO",value:null,menuId:"tt-speed-settings-increments",menuHeader:{title:"Speed Settings Increments",subtitle:"Set the speed increments for video playback speed adjustments"},options:[.05,.1,.15,.2,.25,.3,.35,.4,.45,.5].map(o=>({name:`${o}x`,key:"speedSettingsIncrement",value:o}))},{name:"Preferred Video Codec",icon:"VIDEO_QUALITY",value:null,menuId:"tt-preferred-video-codec",menuHeader:{title:"Preferred Video Codec",subtitle:"Choose the preferred video codec for playback"},options:["any","vp9","av01","avc1"].map(o=>({name:o==="any"?"Any":o.toUpperCase(),key:"preferredVideoCodec",value:o}))}]},{name:"User Interface Settings",icon:"SETTINGS",value:null,menuHeader:{title:"User Interface Settings",subtitle:"Customize the UI to your liking"},options:[{name:"Hide Watched Videos",icon:"VISIBILITY_OFF",value:null,menuId:"tt-hide-watched-videos-settings",options:[{name:"Enable Hide Watched Videos",icon:"VISIBILITY_OFF",value:"enableHideWatchedVideos"},{name:"Watched Videos Threshold",value:null,menuId:"tt-hide-watched-videos-threshold",menuHeader:{title:"Watched Videos Threshold",subtitle:"Set the percentage threshold for hiding watched videos"},options:[0,10,20,30,40,50,60,70,80,90,100].map(o=>({name:`${o}%`,key:"hideWatchedVideosThreshold",value:o}))},{name:"Set Pages to Hide Watched Videos",value:null,arrayToEdit:"hideWatchedVideosPages",menuId:"tt-hide-watched-videos-pages",options:[{name:"Search Results",value:"search"},{name:"Home",value:"home"},{name:"Music",value:"music"},{name:"Gaming",value:"gaming"},{name:"Subscriptions",value:"subscriptions"},{name:"Library",value:"library"},{name:"More",value:"more"}]}]},{name:"Screen Dimming",icon:"EYE_OFF",value:null,menuId:"tt-screen-dimming-settings",options:[{name:"Enable Screen Dimming",icon:"EYE_OFF",value:"enableScreenDimming"},{name:"Dimming Timeout",icon:"TIMER",value:null,menuId:"tt-dimming-timeout",menuHeader:{title:"Dimming Timeout",subtitle:"Set the inactivity timeout (in seconds) before the screen dims"},options:[10,20,30,60,120,180,240,300].map(o=>({name:o>=60?`${o/60} minute${o/60>1?"s":""}`:`${o} seconds`,key:"dimmingTimeout",value:o}))},{name:"Dimming Opacity",icon:"LENS_BLUE",value:null,menuId:"tt-dimming-opacity",menuHeader:{title:"Dimming Opacity",subtitle:"Set the opacity level for screen dimming"},options:[.1,.2,.3,.4,.5,.6,.7,.8,.9,1].map(o=>({name:`${Math.round(o*100)}%`,key:"dimmingOpacity",value:o}))}]},{name:"Disable Sidebar Contents (Guide Actions)",icon:"MENU",value:null,arrayToEdit:"disabledSidebarContents",menuId:"tt-sidebar-contents",menuHeader:{title:"Disable Sidebar Contents",subtitle:"Select sidebar contents (guide actions) to disable"},options:[{name:"Search",icon:"SEARCH",value:"SEARCH"},{name:"Home",icon:"WHAT_TO_WATCH",value:"WHAT_TO_WATCH"},{name:"Sports",icon:"TROPHY",value:"TROPHY"},{name:"News",icon:"NEWS",value:"NEWS"},{name:"Music",icon:"YOUTUBE_MUSIC",value:"YOUTUBE_MUSIC"},{name:"Podcasts",icon:"BROADCAST",value:"BROADCAST"},{name:"Movies & TV",icon:"CLAPPERBOARD",value:"CLAPPERBOARD"},{name:"Live",icon:"LIVE",value:"LIVE"},{name:"Gaming",icon:"GAMING",value:"GAMING"},{name:"Subscriptions",icon:"SUBSCRIPTIONS",value:"SUBSCRIPTIONS"},{name:"Library",icon:"TAB_LIBRARY",value:"TAB_LIBRARY"},{name:"More",icon:"TAB_MORE",value:"TAB_MORE"}]},{name:"Launch to on startup",icon:"TV",value:null,menuId:"tt-launch-to-on-startup",menuHeader:{title:"Launch to on startup",subtitle:"Choose the default page TizenTube opens to on startup"},options:[{name:"Search",icon:"SEARCH",key:"launchToOnStartup",value:JSON.stringify({searchEndpoint:{query:""}})},{name:"Home",icon:"WHAT_TO_WATCH",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FEtopics"}})},{name:"Sports",icon:"TROPHY",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FEtopics_sports"}})},{name:"News",icon:"NEWS",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FEtopics_news"}})},{name:"Music",icon:"YOUTUBE_MUSIC",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FEtopics_music"}})},{name:"Podcasts",icon:"BROADCAST",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FEtopics_podcasts"}})},{name:"Movies & TV",icon:"CLAPPERBOARD",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FEtopics_movies"}})},{name:"Gaming",icon:"GAMING",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FEtopics_gaming"}})},{name:"Live",icon:"LIVE",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FEtopics_live"}})},{name:"Subscriptions",icon:"SUBSCRIPTIONS",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FEsubscriptions"}})},{name:"Library",icon:"TAB_LIBRARY",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FElibrary"}})},{name:"More",icon:"TAB_MORE",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FEtopics_more"}})}]}]},window.h5vcc&&window.h5vcc.tizentube?{name:"TizenTube Cobalt Updater",icon:"SYSTEM_UPDATE",value:null,menuHeader:{title:"TizenTube Cobalt Updater",subtitle:"Manage TizenTube Cobalt updates"},subtitle:`Current version: ${window.h5vcc.tizentube.GetVersion()}`,options:[pe({title:"Check for Updates"},{icon:"SYSTEM_UPDATE"},[{customAction:{action:"CHECK_FOR_UPDATES"}}]),{name:"Check for updates on startup",icon:"SYSTEM_UPDATE",value:"enableUpdater"}]}:null],a=[],d=0;for(let o of l){if(!o)continue;let s=o.value?U(o.value):null;a.push(pe({title:o.name,subtitle:o.subtitle},{icon:o.icon?o.icon:"CHEVRON_DOWN",secondaryIcon:s===null?"CHEVRON_RIGHT":s?"CHECK_BOX":"CHECK_BOX_OUTLINE_BLANK"},s!==null?[{setClientSettingEndpoint:{settingDatas:[{clientSettingEnum:{item:o.value},boolValue:!U(o.value)}]}},{customAction:{action:"SETTINGS_UPDATE",parameters:[d]}}]:[{customAction:{action:"OPTIONS_SHOW",parameters:{options:o.options,selectedIndex:0,update:o.options?.title?"customUI":!1,menuId:o.menuId,arrayToEdit:o.arrayToEdit,menuHeader:o.menuHeader}}}])),d++}Se({title:"TizenTube Settings",subtitle:"Made by Reis Can (reisxd) with \u2764\uFE0F"},Ce(a,r&&r.length>0?r[0]:0),"tt-settings",u)}function Ot(u,r){if(r==="customUI"){let d=u.options;Se({title:d.title,subtitle:d.subtitle},d.content,"tt-settings-support",!1);return}let l=[];if(u.arrayToEdit!==void 0){let d=U(u.arrayToEdit);for(let o of u.options)l.push(pe({title:o.name,subtitle:o.subtitle},{icon:o.icon?o.icon:"CHEVRON_DOWN",secondaryIcon:d.includes(o.value)?"CHECK_BOX":"CHECK_BOX_OUTLINE_BLANK"},[{setClientSettingEndpoint:{settingDatas:[{clientSettingEnum:{item:u.arrayToEdit},arrayValue:o.value}]}},{customAction:{action:"OPTIONS_SHOW",parameters:{options:u.options,selectedIndex:u.options.indexOf(o),update:!0,menuId:u.menuId,arrayToEdit:u.arrayToEdit,menuHeader:u.menuHeader}}}]))}else{let d=0;for(let o of u.options){if(o.compactLinkRenderer){l.push(o),d++;continue}let s=o.key!==null&&o.key!==void 0,B=U(s?o.key:o.value);l.push(pe({title:o.name,subtitle:o.subtitle},{icon:o.icon?o.icon:"CHEVRON_DOWN",secondaryIcon:s?B===o.value?"RADIO_BUTTON_CHECKED":"RADIO_BUTTON_UNCHECKED":o.value===null?"CHEVRON_RIGHT":B?"CHECK_BOX":"CHECK_BOX_OUTLINE_BLANK"},o.value===null?[{customAction:{action:"OPTIONS_SHOW",parameters:{options:o.options,selectedIndex:0,update:o.options?.title?"customUI":!1,menuId:o.menuId,arrayToEdit:o.arrayToEdit,menuHeader:o.menuHeader}}}]:o.key!==null&&o.key!==void 0?[{setClientSettingEndpoint:{settingDatas:[{clientSettingEnum:{item:o.key},stringValue:o.value}]}},{customAction:{action:"OPTIONS_SHOW",parameters:{options:u.options,selectedIndex:d,update:u.options?.title?"customUI":!0,menuId:u.menuId,arrayToEdit:u.arrayToEdit,menuHeader:u.menuHeader}}}]:[{setClientSettingEndpoint:{settingDatas:[{clientSettingEnum:{item:o.value},boolValue:!B}]}},{customAction:{action:"OPTIONS_SHOW",parameters:{options:u.options,selectedIndex:d,update:u.options?.title?"customUI":!0,menuId:u.menuId,arrayToEdit:u.arrayToEdit,menuHeader:u.menuHeader}}}])),d++}}Se(u.menuHeader?u.menuHeader:"TizenTube Settings",Ce(l,u.selectedIndex),u.menuId||"tt-settings-options",r)}var Dn=setInterval(()=>{document.querySelector("video")&&(Sn(),clearInterval(Dn))},1e3);function Sn(){document.querySelector("video").addEventListener("canplay",()=>{document.getElementsByTagName("video")[0].playbackRate=U("videoSpeed")});let u=r=>{if(r.keyCode==406||r.keyCode==191)return r.preventDefault(),r.stopPropagation(),r.type==="keydown"?(st(),!1):!0};document.addEventListener("keydown",u,!0),document.addEventListener("keypress",u,!0),document.addEventListener("keyup",u,!0)}function st(){let u=U("videoSpeed"),r=0,l=5,a=U("speedSettingsIncrement")||.25,d=[];for(let o=a;o<=l;o+=a){let s=Math.round(o*100)/100;d.push(pe({title:`${s}x`},null,[{signalAction:{signal:"POPUP_BACK"}},{setClientSettingEndpoint:{settingDatas:[{clientSettingEnum:{item:"videoSpeed"},intValue:s.toString()}]}},{customAction:{action:"SET_PLAYER_SPEED",parameters:s.toString()}}])),u===s&&(r=d.length-1)}d.push(pe({title:"Fix stuttering (1.0001x)"},null,[{signalAction:{signal:"POPUP_BACK"}},{setClientSettingEndpoint:{settingDatas:[{clientSettingEnum:{item:"videoSpeed"},intValue:"1.0001"}]}},{customAction:{action:"SET_PLAYER_SPEED",parameters:"1.0001"}}])),Se("Playback Speed",Ce(d,r),"tt-speed")}if(window.h5vcc&&window.h5vcc.tizentube&&U("enableUpdater")){let u=Math.floor(Date.now()/1e3);U("dontCheckUpdateUntil")>u?console.info("Skipping update check until",new Date(U("dontCheckUpdateUntil")*1e3).toLocaleString()):Mt()}function Cn(){return fetch("https://api.github.com/repos/reisxd/TizenTubeCobalt/releases/latest").then(u=>{if(!u.ok)throw new Error("Network response was not ok");return u.json()})}function Mt(u){let r=window.h5vcc.tizentube.GetVersion(),l=Math.floor(Date.now()/1e3);Cn().then(a=>{let d=a.tag_name.replace("v",""),o=new Date(a.published_at).getTime()/1e3;d!==r?(console.info(`New version available: ${d} (current: ${r})`),Se({title:"Update Available",subtitle:`A new version of TizenTube Cobalt is available: ${d}
10
- Current version: ${r}
11
- Release Date: ${new Date(o*1e3).toLocaleString()}
12
- Release Notes:
13
- ${a.body}`},Ce([pe({title:"Update Now",subtitle:"Click to download the latest version."},{icon:"DOWN_ARROW"},[{customAction:{action:"UPDATE_DOWNLOAD",parameters:a.assets[0].browser_download_url}},{signalAction:{signal:"POPUP_BACK"}}]),pe({title:"Remind Me Later",subtitle:"Check for updates later."},{icon:"SEARCH_HISTORY"},[{customAction:{action:"UPDATE_REMIND_LATER",parameters:l+86400}},{signalAction:{signal:"POPUP_BACK"}}])]),"tt-update-modal",!1)):(console.info("You are using the latest version of TizenTube."),u&&de("TizenTube is up to date",`You are using the latest version (${r}) of TizenTube Cobalt.`,null))}).catch(a=>{console.error("Error fetching the latest release:",a),de("TizenTube update check failed","Could not check for updates.",null)})}var Ut=Mt;function oe(u,r){for(let l in window._yttv)if(window._yttv[l]&&window._yttv[l].instance&&window._yttv[l].instance.resolveCommand)return window._yttv[l].instance.resolveCommand(u,r)}function zt(){for(let u in window._yttv)if(window._yttv[u]&&window._yttv[u].instance&&window._yttv[u].instance.resolveCommand){let r=window._yttv[u].instance.resolveCommand;window._yttv[u].instance.resolveCommand=function(l,a){if(l.setClientSettingEndpoint)for(let d of l.setClientSettingEndpoint.settingDatas)if(d.clientSettingEnum.item.includes("_")){if(d.clientSettingEnum.item==="I18N_LANGUAGE"){let o=d.stringValue,s=new Date;return s.setFullYear(s.getFullYear()+10),document.cookie=`PREF=hl=${o}; expires=${s.toUTCString()};`,oe({signalAction:{signal:"RELOAD_PAGE"}}),!0}}else for(let o of l.setClientSettingEndpoint.settingDatas){let s=Object.keys(o).find(A=>A.includes("Value")),B=s==="intValue"?Number(o[s]):o[s];if(s==="arrayValue"){let A=U(o.clientSettingEnum.item);A.includes(B)?A.splice(A.indexOf(B),1):A.push(B),ke(o.clientSettingEnum.item,A)}else ke(o.clientSettingEnum.item,B)}else{if(l.customAction)return Ke(l.customAction.action,l.customAction.parameters),!0;if(l?.signalAction?.customAction)return Ke(l.signalAction.customAction.action,l.signalAction.customAction.parameters),!0;if(l?.showEngagementPanelEndpoint?.customAction)return Ke(l.showEngagementPanelEndpoint.customAction.action,l.showEngagementPanelEndpoint.customAction.parameters),!0;if(l?.playlistEditEndpoint?.customAction)return Ke(l.playlistEditEndpoint.customAction.action,l.playlistEditEndpoint.customAction.parameters),!0;if(l?.openPopupAction?.uniqueId==="playback-settings"){let d=l.openPopupAction.popup.overlaySectionRenderer.overlay.overlayTwoPanelRenderer.actionPanel.overlayPanelRenderer.content.overlayPanelItemListRenderer.items;for(let o of d)o?.compactLinkRenderer?.icon?.iconType==="SLOW_MOTION_VIDEO"&&(o.compactLinkRenderer.subtitle&&(o.compactLinkRenderer.subtitle.simpleText="with TizenTube"),o.compactLinkRenderer.serviceEndpoint={clickTrackingParams:"null",signalAction:{customAction:{action:"TT_SPEED_SETTINGS_SHOW",parameters:[]}}});l.openPopupAction.popup.overlaySectionRenderer.overlay.overlayTwoPanelRenderer.actionPanel.overlayPanelRenderer.content.overlayPanelItemListRenderer.items.splice(2,0,pe({title:"Mini Player"},{icon:"CLEAR_COOKIES"},[{customAction:{action:"ENTER_PIP"}}]))}else l?.watchEndpoint?.videoId&&(window.isPipPlaying=!1,document.querySelector("ytlr-player-container").style.removeProperty("z-index"))}return r.call(this,l,a)}}}function Ke(u,r){switch(u){case"SETTINGS_UPDATE":Ne(!0,r);break;case"OPTIONS_SHOW":Ot(r,r.update);break;case"SKIP":let l=document.createEvent("Event");l.initEvent("keydown",!0,!0),l.keyCode=27,l.which=27,document.dispatchEvent(l),document.querySelector("video").currentTime=r.time;break;case"TT_SETTINGS_SHOW":Ne();break;case"TT_SPEED_SETTINGS_SHOW":st();break;case"UPDATE_REMIND_LATER":ke("dontCheckUpdateUntil",r);break;case"UPDATE_DOWNLOAD":window.h5vcc.tizentube.InstallAppFromURL(r),de("TizenTube Update","Downloading update, please wait...");break;case"SET_PLAYER_SPEED":let a=Number(r);document.querySelector("video").playbackRate=a;break;case"ENTER_PIP":vt();break;case"SHOW_TOAST":de("TizenTube",r);break;case"ADD_TO_QUEUE":window.queuedVideos.videos.push(r),de("TizenTube","Video added to queue.");break;case"CLEAR_QUEUE":window.queuedVideos.videos=[],de("TizenTube","Video queue cleared.");break;case"CHECK_FOR_UPDATES":Ut(!0);break}}function Vt(u){let r=Ct("TizenTube Settings","tizentube_open_action",{customAction:{action:"TT_SETTINGS_SHOW",parameters:[]}},"Open TizenTube Settings","https://www.gstatic.com/ytlr/img/parent_code.png"),l=St("tizentube_category",[r]);u.items.unshift(l)}var wn=JSON.parse;JSON.parse=function(){let u=wn.apply(this,arguments),r=U("enableAdBlock");if(u.adPlacements&&r&&(u.adPlacements=[]),u.playerAds&&r&&(u.playerAds=!1),u.adSlots&&r&&(u.adSlots=[]),u.paidContentOverlay&&!U("enablePaidPromotionOverlay")&&(u.paidContentOverlay=null),u?.streamingData?.adaptiveFormats&&U("videoPreferredCodec")!=="any"){let l=U("videoPreferredCodec");u.streamingData.adaptiveFormats.find(d=>d.mimeType.includes(l))&&(u.streamingData.adaptiveFormats=u.streamingData.adaptiveFormats.filter(d=>d.mimeType.startsWith("audio/")?!0:d.mimeType.includes(l)))}if(u?.contents?.tvBrowseRenderer?.content?.tvSurfaceContentRenderer?.content?.sectionListRenderer?.contents){if(r){u.contents.tvBrowseRenderer.content.tvSurfaceContentRenderer.content.sectionListRenderer.contents=u.contents.tvBrowseRenderer.content.tvSurfaceContentRenderer.content.sectionListRenderer.contents.filter(l=>!l.adSlotRenderer);for(let l of u.contents.tvBrowseRenderer.content.tvSurfaceContentRenderer.content.sectionListRenderer.contents)l.shelfRenderer&&(l.shelfRenderer.content.horizontalListRenderer.items=l.shelfRenderer.content.horizontalListRenderer.items.filter(a=>!a.adSlotRenderer))}Re(u.contents.tvBrowseRenderer.content.tvSurfaceContentRenderer.content.sectionListRenderer.contents)}if(u.endscreen&&U("enableHideEndScreenCards")&&(u.endscreen=null),u.messages&&Array.isArray(u.messages)&&!U("enableYouThereRenderer")&&(u.messages=u.messages.filter(l=>!l?.youThereRenderer)),!Array.isArray(u)&&u?.entries&&r&&(u.entries=u.entries?.filter(l=>!l?.command?.reelWatchEndpoint?.adClientParams?.isAd)),u?.title?.runs&&Vt(u),u?.contents?.sectionListRenderer?.contents&&Re(u.contents.sectionListRenderer.contents),u?.continuationContents?.sectionListContinuation?.contents&&Re(u.continuationContents.sectionListContinuation.contents),u?.continuationContents?.horizontalListContinuation?.items&&(Le(u.continuationContents.horizontalListContinuation.items),_e(u.continuationContents.horizontalListContinuation.items),Oe(u.continuationContents.horizontalListContinuation.items),u.continuationContents.horizontalListContinuation.items=Me(u.continuationContents.horizontalListContinuation.items)),u?.contents?.tvBrowseRenderer?.content?.tvSecondaryNavRenderer?.sections)for(let l of u.contents.tvBrowseRenderer.content.tvSecondaryNavRenderer.sections)for(let a of l.tvSecondaryNavSectionRenderer.tabs)Re(a.tabRenderer.content.tvSurfaceContentRenderer.content.sectionListRenderer.contents);if(u?.contents?.singleColumnWatchNextResults?.pivot?.sectionListRenderer&&(Re(u.contents.singleColumnWatchNextResults.pivot.sectionListRenderer.contents,!1),window.queuedVideos.videos.length>0)){let l=window.queuedVideos.videos.slice();l.unshift(bt("Clear Queue",{customAction:{action:"CLEAR_QUEUE"}})),u.contents.singleColumnWatchNextResults.pivot.sectionListRenderer.contents.unshift(At("Queued Videos",l,l.findIndex(a=>a.contentId===window.queuedVideos.lastVideoId)!==-1?l.findIndex(a=>a.contentId===window.queuedVideos.lastVideoId):0))}if(U("sponsorBlockManualSkips").length>0&&u?.playerOverlays?.playerOverlayRenderer){let l=U("sponsorBlockManualSkips"),a=[];if(window?.sponsorblock?.segments){for(let d of window.sponsorblock.segments)if(l.includes(d.category)){let o=Et(`Skip ${d.category}`,"SKIP_NEXT",{clickTrackingParams:null,showEngagementPanelEndpoint:{customAction:{action:"SKIP",parameters:{time:d.segment[1]}}}},d.segment[0]*1e3,d.segment[1]*1e3-d.segment[0]*1e3);a.push(o)}u.playerOverlays.playerOverlayRenderer.timelyActionRenderers=a}}else u?.playerOverlays?.playerOverlayRenderer&&(u.playerOverlays.playerOverlayRenderer.timelyActionRenderers=[]);if(u?.transportControls?.transportControlsRenderer?.promotedActions&&U("enableSponsorBlockHighlight")&&window?.sponsorblock?.segments){let l=window.sponsorblock.segments.find(a=>a.category==="poi_highlight");l&&u.transportControls.transportControlsRenderer.promotedActions.push({type:"TRANSPORT_CONTROLS_BUTTON_TYPE_SPONSORBLOCK_HIGHLIGHT",button:{buttonRenderer:Fe(!1,"Skip to highlight","SKIP_NEXT",{clickTrackingParams:null,customAction:{action:"SKIP",parameters:{time:l.segment[0]}}})}})}return u};window.JSON.parse=JSON.parse;for(let u in window._yttv)window._yttv[u]&&window._yttv[u].JSON&&window._yttv[u].JSON.parse&&(window._yttv[u].JSON.parse=JSON.parse);function Re(u,r=!0){for(let l of u)if(l.shelfRenderer){let a=l.shelfRenderer.content?.horizontalListRenderer?.items,d=l.shelfRenderer.content?.gridRenderer?.items,o=l.richShelfRenderer?.content?.richGridRenderer?.contents;if(a&&a.length&&(Le(a),_e(a),Oe(a),r&&Ge(a),l.shelfRenderer.content.horizontalListRenderer.items=Me(a)),d&&d.length&&(Le(d),_e(d),Oe(d),r&&Ge(d),l.shelfRenderer.content.gridRenderer.items=Me(d)),o&&o.length&&(Le(o),_e(o),Oe(o),r&&Ge(o),l.richShelfRenderer=l.richShelfRenderer||{},l.richShelfRenderer.content=l.richShelfRenderer.content||{},l.richShelfRenderer.content.richGridRenderer=l.richShelfRenderer.content.richGridRenderer||{},l.richShelfRenderer.content.richGridRenderer.contents=Me(o)),!U("enableShorts")){if(l.shelfRenderer.tvhtml5ShelfRendererType==="TVHTML5_SHELF_RENDERER_TYPE_SHORTS"){u.splice(u.indexOf(l),1);continue}l.shelfRenderer.content.horizontalListRenderer.items=l.shelfRenderer.content.horizontalListRenderer.items.filter(s=>s.tileRenderer?.tvhtml5ShelfRendererType!=="TVHTML5_TILE_RENDERER_TYPE_SHORTS")}}else try{let a=[];if(l?.richShelfRenderer?.content?.richGridRenderer?.contents&&a.push(l.richShelfRenderer.content.richGridRenderer.contents),l?.sectionListRenderer?.contents)for(let d of l.sectionListRenderer.contents)d?.shelfRenderer?.content?.horizontalListRenderer?.items&&a.push(d.shelfRenderer.content.horizontalListRenderer.items),d?.shelfRenderer?.content?.gridRenderer?.items&&a.push(d.shelfRenderer.content.gridRenderer.items);for(let d of a){if(!d||!Array.isArray(d))continue;Le(d),_e(d),Oe(d),r&&Ge(d);let o=Me(d);d.splice(0,d.length,...o)}}catch(a){console.warn("processShelves: defensive handling failed",a)}}function Ge(u){if(U("enablePreviews")){for(let r of u)if(r.tileRenderer){let l=r.tileRenderer.onSelectCommand;if(r.tileRenderer?.onFocusCommand?.playbackEndpoint)continue;r.tileRenderer.onFocusCommand={startInlinePlaybackCommand:{blockAdoption:!0,caption:!1,delayMs:3e3,durationMs:4e4,muted:!1,restartPlaybackBeforeSeconds:10,resumeVideo:!0,playbackEndpoint:l}}}}}function Le(u){for(let r of u){if(r.adSlotRenderer){let l=u.indexOf(r);u.splice(l,1);continue}if(r.tileRenderer&&U("enableDeArrow")){let l=r.tileRenderer.contentId;fetch(`https://sponsor.ajay.app/api/branding?videoID=${l}`).then(a=>a.json()).then(a=>{if(a.titles.length>0){let d=a.titles.reduce((o,s)=>o.votes>s.votes?o:s);r.tileRenderer.metadata.tileMetadataRenderer.title.simpleText=d.title}if(a.thumbnails.length>0&&U("enableDeArrowThumbnails")){let d=a.thumbnails.reduce((o,s)=>o.votes>s.votes?o:s);d.timestamp&&(r.tileRenderer.header.tileHeaderRenderer.thumbnail.thumbnails=[{url:`https://dearrow-thumb.ajay.app/api/v1/getThumbnail?videoID=${l}&time=${d.timestamp}`,width:1280,height:640}])}}).catch(()=>{})}}}function _e(u){for(let r of u)if(r.tileRenderer&&r.tileRenderer.style==="TILE_STYLE_YTLR_DEFAULT"&&U("enableHqThumbnails")){let l=r.tileRenderer.onSelectCommand.watchEndpoint.videoId,a=r.tileRenderer.header.tileHeaderRenderer.thumbnail.thumbnails[0].url.split("?")[1];r.tileRenderer.header.tileHeaderRenderer.thumbnail.thumbnails=[{url:`https://i.ytimg.com/vi/${l}/sddefault.jpg${a?`?${a}`:""}`,width:640,height:480}]}}function Oe(u){for(let r of u){if(!r.tileRenderer||r.tileRenderer.style!=="TILE_STYLE_YTLR_DEFAULT")continue;if(r.tileRenderer.onLongPressCommand){r.tileRenderer.onLongPressCommand.showMenuCommand.menu.menuRenderer.items.push(We("Add to Queue",{clickTrackingParams:null,playlistEditEndpoint:{customAction:{action:"ADD_TO_QUEUE",parameters:r}}}));continue}if(!U("enableLongPress"))continue;let l=r.tileRenderer.metadata.tileMetadataRenderer.lines[0].lineRenderer.items[0].lineItemRenderer.text,a=Dt({videoId:r.tileRenderer.contentId,thumbnails:r.tileRenderer.header.tileHeaderRenderer.thumbnail.thumbnails,title:r.tileRenderer.metadata.tileMetadataRenderer.title.simpleText,subtitle:l.runs?l.runs[0].text:l.simpleText,watchEndpointData:r.tileRenderer.onSelectCommand.watchEndpoint,item:r});r.tileRenderer.onLongPressCommand=a}}function Me(u){if(!Array.isArray(u))return u;function r(s){let B=[s?.tileRenderer?.header?.tileHeaderRenderer?.thumbnailOverlays,s?.playlistVideoRenderer?.thumbnailOverlays,s?.compactVideoRenderer?.thumbnailOverlays,s?.gridVideoRenderer?.thumbnailOverlays,s?.videoRenderer?.thumbnailOverlays];for(let A of B){if(!Array.isArray(A))continue;let C=A.find(c=>c&&c.thumbnailOverlayResumePlaybackRenderer);if(C&&C.thumbnailOverlayResumePlaybackRenderer)return C.thumbnailOverlayResumePlaybackRenderer}for(let A of Object.keys(s)){let C=s[A];if(C&&typeof C=="object"&&Array.isArray(C.thumbnailOverlays)){let c=C.thumbnailOverlays.find(m=>m&&m.thumbnailOverlayResumePlaybackRenderer);if(c&&c.thumbnailOverlayResumePlaybackRenderer)return c.thumbnailOverlayResumePlaybackRenderer}}return null}function l(){let s=[],B=location.hash?location.hash.substring(1):"",A=location.pathname||"",C=(B+" "+A+" "+location.search).toLowerCase();return(C.includes("/feed/subscriptions")||C.includes("subscriptions")||C.includes("abos"))&&s.push("subscriptions"),(C.includes("/feed/library")||C.includes("library")||C.includes("mediathek"))&&s.push("library"),(C.includes("/playlist")||C.includes("list="))&&s.push("playlist"),(C.includes("/results")||C.includes("/search")||C.includes("search"))&&s.push("search"),(C===""||C.includes("/home")||C.includes("browse")||C.includes("/"))&&s.push("home"),(B||"").split(/[\/?&=#]/).filter(Boolean).forEach(c=>s.push(c)),s}let a=U("hideWatchedVideosPages")||[],d=l(),o=Array.isArray(a)&&a.length>0;return u.filter(s=>{if(!s)return!1;if(!s.tileRenderer&&!s.playlistVideoRenderer&&!s.compactVideoRenderer&&!s.gridVideoRenderer&&!s.videoRenderer||o&&!a.map(e=>String(e).toLowerCase()).some(e=>d.some(t=>t.includes(e)||e.includes(t))))return!0;let B=r(s);if(!B)return!0;let A=Number(B.percentDurationWatched||0);if((d.includes("playlist")||d.includes("playlists")||d.includes("mediathek"))&&!U("enableHideWatchedInPlaylists"))return!0;let c=Number(U("hideWatchedVideosThreshold")||0);return A<=c})}var An=function u(r){function l(N,R){return N>>>R|N<<32-R}for(var a=Math.pow,d=a(2,32),o="length",s,B,A="",C=[],c=r[o]*8,m=u.h=u.h||[],p=u.k=u.k||[],e=p[o],t={},n=2;e<64;n++)if(!t[n]){for(s=0;s<313;s+=n)t[s]=n;m[e]=a(n,.5)*d|0,p[e++]=a(n,.3333333333333333)*d|0}for(r+="\x80";r[o]%64-56;)r+="\0";for(s=0;s<r[o];s++){if(B=r.charCodeAt(s),B>>8)return;C[s>>2]|=B<<(3-s)%4*8}for(C[C[o]]=c/d|0,C[C[o]]=c,B=0;B<C[o];){var i=C.slice(B,B+=16),h=m;for(m=m.slice(0,8),s=0;s<64;s++){var g=s+B,S=i[s-15],D=i[s-2],y=m[0],v=m[4],b=m[7]+(l(v,6)^l(v,11)^l(v,25))+(v&m[5]^~v&m[6])+p[s]+(i[s]=s<16?i[s]:i[s-16]+(l(S,7)^l(S,18)^S>>>3)+i[s-7]+(l(D,17)^l(D,19)^D>>>10)|0),w=(l(y,2)^l(y,13)^l(y,22))+(y&m[1]^y&m[2]^m[1]&m[2]);m=[b+w|0].concat(m),m[4]=m[4]+b|0}for(s=0;s<8;s++)m[s]=m[s]+h[s]|0}for(s=0;s<8;s++)for(B=3;B+1;B--){var P=m[s]>>B*8&255;A+=(P<16?0:"")+P.toString(16)}return A},Ht=An;var Jt={sponsor:{color:"#00d400",opacity:"0.7",name:"sponsored segment"},intro:{color:"#00ffff",opacity:"0.7",name:"intro"},outro:{color:"#0202ed",opacity:"0.7",name:"outro"},interaction:{color:"#cc00ff",opacity:"0.7",name:"interaction reminder"},selfpromo:{color:"#ffff00",opacity:"0.7",name:"self-promotion"},preview:{color:"#008fd6",opacity:"0.7",name:"recap or preview"},filler:{color:"#7300FF",opacity:"0.9",name:"tangents"},music_offtopic:{color:"#ff9900",opacity:"0.7",name:"non-music part"},poi_highlight:{color:"#9b044c",opacity:"0.7",name:"highlight"}},bn="https://sponsor.ajay.app/api",at=class{video=null;active=!0;attachVideoTimeout=null;nextSkipTimeout=null;sliderInterval=null;observer=null;scheduleSkipHandler=null;durationChangeHandler=null;segments=null;skippableCategories=[];manualSkippableCategories=[];skippedCategories=new Map;constructor(r){this.videoID=r}async init(){let r=Ht(this.videoID).substring(0,4),o=(await(await fetch(`${bn}/skipSegments/${r}?categories=${encodeURIComponent(JSON.stringify(["sponsor","intro","outro","interaction","selfpromo","preview","filler","music_offtopic","poi_highlight"]))}`)).json()).find(s=>s.videoID===this.videoID);if(console.info(this.videoID,"Got it:",o),!o||!o.segments||!o.segments.length){console.info(this.videoID,"No segments found.");return}this.segments=o.segments,this.manualSkippableCategories=U("sponsorBlockManualSkips"),this.skippableCategories=this.getSkippableCategories(),this.scheduleSkipHandler=()=>{let B=document.querySelector('div[idomkey="slider"]').getBoundingClientRect();!document.querySelector('div[idomkey="Metadata-Section"]')&&this.segmentsoverlay.style.setProperty("top",`${B.top}px`,"important"),this.scheduleSkip()},this.durationChangeHandler=()=>this.buildOverlay(),this.attachVideo(),this.buildOverlay()}getSkippableCategories(){let r=[];return U("enableSponsorBlockSponsor")&&r.push("sponsor"),U("enableSponsorBlockIntro")&&r.push("intro"),U("enableSponsorBlockOutro")&&r.push("outro"),U("enableSponsorBlockInteraction")&&r.push("interaction"),U("enableSponsorBlockSelfPromo")&&r.push("selfpromo"),U("enableSponsorBlockPreview")&&r.push("preview"),U("enableSponsorBlockFiller")&&r.push("filler"),U("enableSponsorBlockMusicOfftopic")&&r.push("music_offtopic"),r}attachVideo(){if(clearTimeout(this.attachVideoTimeout),this.attachVideoTimeout=null,this.video=document.querySelector("video"),!this.video){console.info(this.videoID,"No video yet..."),this.attachVideoTimeout=setTimeout(()=>this.attachVideo(),100);return}console.info(this.videoID,"Video found, binding..."),this.video.addEventListener("play",this.scheduleSkipHandler),this.video.addEventListener("pause",this.scheduleSkipHandler),this.video.addEventListener("timeupdate",this.scheduleSkipHandler),this.video.addEventListener("durationchange",this.durationChangeHandler)}buildOverlay(){if(this.segmentsoverlay){console.info("Overlay already built");return}if(!this.video||!this.video.duration){console.info("No video duration yet");return}let r=this.video.duration,l=document.querySelector('div[idomkey="slider"]');this.segmentsoverlay=document.createElement("div"),this.segmentsoverlay.classList.add("ytLrProgressBarSlider","ytLrProgressBarSliderRectangularProgressBar"),this.segmentsoverlay.style.setProperty("z-index","10","important"),this.segmentsoverlay.style.setProperty("background-color","rgba(0, 0, 0, 0)","important"),this.segmentsoverlay.style.setProperty("width","72rem","important"),this.segmentsoverlay.style.setProperty("left","4rem","important");let a=l.getBoundingClientRect();if(!l.classList.contains("ytLrProgressBarSlider")){for(let d=0;d<l.classList.length;d++)this.segmentsoverlay.classList.add(l.classList[d]);this.segmentsoverlay.style.setProperty("height",`${a.height}px`,"important"),this.segmentsoverlay.style.setProperty("bottom",`${a.bottom-a.top}px`,"important")}this.segments.forEach(d=>{let[o,s]=d.segment,B=Jt[d.category]||{color:"blue",opacity:.7},A=r?100*o/r:0,C=r?100*(s-o)/r:0,c=document.createElement("div");c.style.setProperty("background-color",B.color,"important"),c.style.setProperty("opacity",B.opacity,"important"),c.style.setProperty("height","100%","important"),c.style.setProperty("width",`${d.category==="poi_highlight"?1:C}%`,"important"),c.style.setProperty("left",`${A}%`,"important"),c.style.setProperty("position","absolute","important"),console.info("Generated element",c,"from",d),this.segmentsoverlay.appendChild(c)}),this.observer=new MutationObserver(d=>{d.forEach(o=>{if(o.removedNodes)for(let s of o.removedNodes)s===this.segmentsoverlay&&(console.info("bringing back segments overlay"),this.slider.appendChild(this.segmentsoverlay));document.querySelector("ytlr-progress-bar").getAttribute("hybridnavfocusable")==="false"?this.segmentsoverlay.style.setProperty("display","none","important"):this.segmentsoverlay.style.setProperty("display","block","important")})}),this.sliderInterval=setInterval(()=>{this.slider=document.querySelector("ytlr-redux-connect-ytlr-progress-bar"),this.slider&&(clearInterval(this.sliderInterval),this.sliderInterval=null,this.observer.observe(this.slider,{childList:!0,subtree:!0}),this.slider.appendChild(this.segmentsoverlay))},500)}scheduleSkip(){if(clearTimeout(this.nextSkipTimeout),this.nextSkipTimeout=null,!this.active){console.info(this.videoID,"No longer active, ignoring...");return}if(this.video.paused){console.info(this.videoID,"Currently paused, ignoring...");return}let r=this.segments.filter(o=>o.segment[0]>this.video.currentTime-.3&&o.segment[1]>this.video.currentTime-.3);if(r.sort((o,s)=>o.segment[0]-s.segment[0]),!r.length){console.info(this.videoID,"No more segments");return}let[l]=r,[a,d]=l.segment;console.info(this.videoID,"Scheduling skip of",l,"in",a-this.video.currentTime),this.nextSkipTimeout=setTimeout(()=>{if(this.video.paused){console.info(this.videoID,"Currently paused, ignoring...");return}if(!this.skippableCategories.includes(l.category)){console.info(this.videoID,"Segment",l.category,"is not skippable, ignoring...");return}let o=Jt[l.category]?.name||l.category;if(console.info(this.videoID,"Skipping",l),!this.manualSkippableCategories.includes(l.category)){let s=this.skippedCategories.get(l.UUID);if(s){if(s.count++,s.lastSkipped=Date.now(),this.skippedCategories.set(l.UUID,s),s.lastSkipped-s.firstSkipped<1e3){s.hasShownToast||(de("SponsorBlock",`Not skipping ${o} (was skipped ${s.count} times)`),s.hasShownToast=!0,this.skippedCategories.set(l.UUID,s));return}}else this.skippedCategories.set(l.UUID,{count:1,firstSkipped:Date.now(),lastSkipped:Date.now(),hasShownToast:!1});de("SponsorBlock",`Skipping ${o}`),this.video.duration-d<1?this.video.currentTime=d-1:this.video.currentTime=d,this.scheduleSkip()}},(a-this.video.currentTime)*1e3)}destroy(){console.info(this.videoID,"Destroying"),this.active=!1,this.nextSkipTimeout&&(clearTimeout(this.nextSkipTimeout),this.nextSkipTimeout=null),this.attachVideoTimeout&&(clearTimeout(this.attachVideoTimeout),this.attachVideoTimeout=null),this.sliderInterval&&(clearInterval(this.sliderInterval),this.sliderInterval=null),this.observer&&(this.observer.disconnect(),this.observer=null),this.segmentsoverlay&&(this.segmentsoverlay.remove(),this.segmentsoverlay=null),this.video&&(this.video.removeEventListener("play",this.scheduleSkipHandler),this.video.removeEventListener("pause",this.scheduleSkipHandler),this.video.removeEventListener("timeupdate",this.scheduleSkipHandler),this.video.removeEventListener("durationchange",this.durationChangeHandler)),this.skippedCategories.clear()}};window.sponsorblock=null;window.addEventListener("hashchange",()=>{let r=new URL(location.hash.substring(1),location.href).search.replace("?v=","").split("&")[0],l=r&&(!window.sponsorblock||window.sponsorblock.videoID!=r);if(console.info("hashchange",r,window.sponsorblock,window.sponsorblock?window.sponsorblock.videoID:null,l),l){if(window.sponsorblock){try{window.sponsorblock.destroy()}catch(a){console.warn("window.sponsorblock.destroy() failed!",a)}window.sponsorblock=null}U("enableSponsorBlock")?(window.sponsorblock=new at(r),window.sponsorblock.init()):console.info("SponsorBlock disabled, not loading")}},!1);(function(){if("navigate"in window)return;let u={37:"left",38:"up",39:"right",40:"down"},r=9,l=null,a=null,d={element:null,rect:null},o=null;function s(){window.navigate=A,window.Element.prototype.spatialNavigationSearch=e,window.Element.prototype.focusableAreas=D,window.Element.prototype.getSpatialNavigationContainer=g,window.CSS&&CSS.registerProperty&&(window.getComputedStyle(document.documentElement).getPropertyValue("--spatial-navigation-contain")===""&&CSS.registerProperty({name:"--spatial-navigation-contain",syntax:"auto | contain",inherits:!1,initialValue:"auto"}),window.getComputedStyle(document.documentElement).getPropertyValue("--spatial-navigation-action")===""&&CSS.registerProperty({name:"--spatial-navigation-action",syntax:"auto | focus | scroll",inherits:!1,initialValue:"auto"}),window.getComputedStyle(document.documentElement).getPropertyValue("--spatial-navigation-function")===""&&CSS.registerProperty({name:"--spatial-navigation-function",syntax:"normal | grid",inherits:!1,initialValue:"normal"}))}function B(){window.addEventListener("keydown",f=>{let x=parent&&parent.__spatialNavigation__.keyMode||window.__spatialNavigation__.keyMode,E=document.activeElement,T=u[f.keyCode];if(f.keyCode===r&&(a=null),!(!x||x==="NONE"||x==="SHIFTARROW"&&!f.shiftKey||x==="ARROW"&&f.shiftKey)&&!f.defaultPrevented){let I={left:!0,up:!0,right:!0,down:!0};(E.nodeName==="INPUT"||E.nodeName==="TEXTAREA")&&(I=Qe(f)),I[T]&&(f.preventDefault(),l=new Map,A(T),l=null,a=null)}}),document.addEventListener("mouseup",f=>{a={x:f.clientX,y:f.clientY}}),window.addEventListener("focusin",f=>{f.target!==window&&(d.element=f.target,d.rect=f.target.getBoundingClientRect())})}function A(f){let x=N(),E=x,T=null;a&&(T=document.elementFromPoint(a.x,a.y),T===null&&(T=document.body),z(T)&&!_(T)?a=null:_(T)?E=T:E=T.getSpatialNavigationContainer()),(E===document||E===document.documentElement)&&(E=document.body||document.documentElement);let I=null;if((_(E)||E.nodeName==="BODY")&&E.nodeName!=="INPUT"){E.nodeName==="IFRAME"&&(E=E.contentDocument.documentElement),I=E;let M=null;if(document.activeElement===x||document.activeElement===document.body&&x===document.documentElement){if(w(E)==="scroll"){if(c(E,f))return}else if(w(E)==="focus"){if(M=E.spatialNavigationSearch(f,{container:E,candidates:m(E,{mode:"all"})}),C(M,f))return}else if(w(E)==="auto"&&(M=E.spatialNavigationSearch(f,{container:E}),C(M,f)||c(E,f)))return}else I=I.getSpatialNavigationContainer()}I=E.getSpatialNavigationContainer();let X=I.parentElement?I.getSpatialNavigationContainer():null;if(!X&&window.location!==window.parent.location&&(X=window.parent.document.documentElement),w(I)==="scroll"){if(c(I,f))return}else w(I)==="focus"?P(E,I,X,f,"all"):w(I)==="auto"&&P(E,I,X,f,"visible")}function C(f,x){if(f){if(!y("beforefocus",f,null,x))return!0;let E=f.getSpatialNavigationContainer();return E!==window&&w(E)==="focus"?f.focus():f.focus({preventScroll:!0}),a=null,!0}return!1}function c(f,x){return Z(f,x)&&!se(f,x)?(R(f,x),!0):!f.parentElement&&!ee(f,x)?(R(f.ownerDocument.documentElement,x),!0):!1}function m(f,x={mode:"visible"}){let E=[];if(f.childElementCount>0){f.parentElement||(f=f.getElementsByTagName("body")[0]||document.body);let T=f.children;for(let I of T)W(I)?E.push(I):z(I)?(E.push(I),!_(I)&&I.childElementCount&&(E=E.concat(m(I,{mode:"all"})))):I.childElementCount&&(E=E.concat(m(I,{mode:"all"})))}return x.mode==="all"?E:E.filter(Y)}function p(f,x,E,T){let I=f;return T=T||I.getSpatialNavigationContainer(),E=!E||E.length<=0?m(T):E,t(I,E,x,T)}function e(f,x){let E=this,T=[],I=[],X=Ze(E),M;x||(x={});let Q=E.getSpatialNavigationContainer(),G=m(Q),re=x.container||Q;x.container&&Q.contains(x.container)&&(G=G.concat(m(re)));let ie=x.candidates&&x.candidates.length>0?x.candidates.filter(ye=>re.contains(ye)):G.filter(ye=>re.contains(ye)&&re!==ye);if(ie&&ie.length>0){ie.forEach(k=>{k!==E&&(E.contains(k)&&E!==k?T:I).push(k)});let ye=X.filter(k=>!T.includes(k)),F=ie.filter(k=>_(k)&&te(E,k)).map(k=>k.focusableAreas()).flat().filter(k=>k!==E);if(T=T.concat(ye).filter(k=>re.contains(k)),I=I.concat(F).filter(k=>re.contains(k)),I.length>0&&(I=p(E,f,I,re)),o&&(M=n(E,p(E,f,T,re),f)),T&&T.length>0&&E.nodeName!=="INPUT"&&(M=i(E,T,f)),M=M||n(E,I,f),M&&W(M)){let k=m(M,{mode:"all"}),L=k.length>0?E.spatialNavigationSearch(f,{candidates:k,container:M}):null;L?M=L:z(M)||(ie.splice(ie.indexOf(M),1),M=ie.length?E.spatialNavigationSearch(f,{candidates:ie,container:re}):null)}return M}return null}function t(f,x,E,T){let I=f.getSpatialNavigationContainer(),X;return E===void 0?x:(I.parentElement&&T!==I&&!Y(f)?X=ae(I):X=o||ae(f),(_(f)||f.nodeName==="BODY")&&f.nodeName!=="INPUT"?x.filter(M=>{let Q=ae(M);return T.contains(M)&&(f.contains(M)&&le(X,Q)&&M!==f||ne(Q,X,E))}):x.filter(M=>{let Q=ae(M),G=M.nodeName==="IFRAME"?M.contentDocument.body:null;return T.contains(M)&&M!==f&&G!==f&&ne(Q,X,E)&&!le(X,Q)}))}function n(f,x,E){let T=f.getSpatialNavigationContainer(),I=getComputedStyle(T).getPropertyValue("--spatial-navigation-function"),X=o||ae(f),M,Q;return I==="grid"?(Q=x.filter(G=>xe(X,ae(G),E)),Q.length>0&&(x=Q),M=He):M=Ee,h(f,x,E,M)}function i(f,x,E){return a?h(f,x,E,Be):h(f,x,E,we)}function h(f,x,E,T){let I=null;window.location!==window.parent.location&&(f.nodeName==="BODY"||f.nodeName==="HTML")?(I=window.frameElement.getBoundingClientRect(),I.x=0,I.y=0):I=o||f.getBoundingClientRect();let X=Number.POSITIVE_INFINITY,M=[];if(x)for(let Q=0;Q<x.length;Q++){let G=T(I,ae(x[Q]),E);G<X?(X=G,M=[x[Q]]):G===X&&M.push(x[Q])}return M.length===0?null:M.length>1&&T===He?h(f,M,E,De):M[0]}function g(){let f=this;do if(f.parentElement)f=f.parentElement;else{window.location!==window.parent.location?f=window.parent.document.documentElement:f=window.document.documentElement;break}while(!_(f));return f}function S(f){let x=f;do if(x.parentElement)x=x.parentElement;else{window.location!==window.parent.location?x=window.parent.document.documentElement:x=window.document.documentElement;break}while(!q(x)||!Y(x));return(x===document||x===document.documentElement)&&(x=window),x}function D(f={mode:"visible"}){let x=this.parentElement?this:document.body,E=Array.prototype.filter.call(x.getElementsByTagName("*"),z);return f.mode==="all"?E:E.filter(Y)}function y(f,x,E,T){if(["beforefocus","notarget"].includes(f)){let I={causedTarget:E,dir:T},X=new CustomEvent("nav"+f,{bubbles:!0,cancelable:!0,detail:I});return x.dispatchEvent(X)}}function v(f,x){return(f.style.getPropertyValue(`--${x}`)||"").trim()}function b(f){return v(f,"spatial-navigation-contain")==="contain"}function w(f){return v(f,"spatial-navigation-action")||"auto"}function P(f,x,E,T,I){let X={candidates:m(x,{mode:I}),container:x};for(;E;){if(C(f.spatialNavigationSearch(T,X),T))return;if(I==="visible"&&c(x,T))return;{if(!y("notarget",x,f,T))return;x===document||x===document.documentElement?window.location!==window.parent.location&&(f=window.frameElement,x=f.ownerDocument.documentElement):x=E,X={candidates:m(x,{mode:I}),container:x};let M=x.getSpatialNavigationContainer();M!==x?E=M:E=null}}X={candidates:m(x,{mode:I}),container:x},!(!E&&x&&C(f.spatialNavigationSearch(T,X),T))&&y("notarget",X.container,f,T)&&w(x)==="auto"&&I==="visible"&&c(x,T)}function N(){let f=document.activeElement;if(!f||f===document.body&&!document.querySelector(":focus")){if(d.element&&f!==d.element){let x=window.getComputedStyle(d.element,null),E=["hidden","collapse"];if(d.element.disabled||E.includes(x.getPropertyValue("visibility")))return f=d.element,f}f=document.documentElement}if(d.element&&(ae(d.element).height===0||ae(d.element).width===0)&&(o=d.rect),!ce(f)){let x=S(f);if(x&&(x===window||w(x)==="auto"))return x}return f}function R(f,x,E=0){if(f)switch(x){case"left":f.scrollLeft-=40+E;break;case"right":f.scrollLeft+=40+E;break;case"up":f.scrollTop-=40+E;break;case"down":f.scrollTop+=40+E;break}}function _(f){return!f.parentElement||f.nodeName==="IFRAME"||q(f)||b(f)}function W(f){return v(f,"spatial-navigation-contain")==="delegable"}function q(f){let x=window.getComputedStyle(f,null),E=x.getPropertyValue("overflow-x"),T=x.getPropertyValue("overflow-y");return!!(E!=="visible"&&E!=="clip"&&$(f,"left")||T!=="visible"&&T!=="clip"&&$(f,"down"))}function Z(f,x){if(f&&typeof f=="object")if(x&&typeof x=="string"){if($(f,x)){let E=window.getComputedStyle(f,null),T=E.getPropertyValue("overflow-x"),I=E.getPropertyValue("overflow-y");switch(x){case"left":case"right":return T!=="visible"&&T!=="clip"&&T!=="hidden";case"up":case"down":return I!=="visible"&&I!=="clip"&&I!=="hidden"}}return!1}else return f.nodeName==="HTML"||f.nodeName==="BODY"||q(f)&&$(f)}function $(f,x){if(f&&typeof f=="object"){if(x&&typeof x=="string")switch(x){case"left":case"right":return f.scrollWidth>f.clientWidth;case"up":case"down":return f.scrollHeight>f.clientHeight}else return f.scrollWidth>f.clientWidth||f.scrollHeight>f.clientHeight;return!1}}function ee(f,x){let E=!1;switch(x){case"left":E=f.scrollLeft===0;break;case"right":E=f.scrollWidth-f.scrollLeft-f.clientWidth===0;break;case"up":E=f.scrollTop===0;break;case"down":E=f.scrollHeight-f.scrollTop-f.clientHeight===0;break}return E}function se(f,x){if(Z(f,x)){let E=f.scrollTop,T=f.scrollLeft,I=f.scrollHeight-f.clientHeight,X=f.scrollWidth-f.clientWidth;switch(x){case"left":return T===0;case"right":return Math.abs(T-X)<=1;case"up":return E===0;case"down":return Math.abs(E-I)<=1}}return!1}function ce(f){let x=f.getBoundingClientRect(),E=S(f),T=null;return E!==window?T=ae(E):T=new DOMRect(0,0,window.innerWidth,window.innerHeight),!!(le(T,x,"left")&&le(T,x,"down"))}function z(f){if(f.tabIndex<0||H(f)||O(f)||J(f)||!V(f))return!1;if(!f.parentElement||Z(f)&&$(f)||f.tabIndex>=0)return!0}function H(f){return f.tagName==="A"&&f.getAttribute("href")===null&&f.getAttribute("tabIndex")===null}function O(f){return["BUTTON","INPUT","SELECT","TEXTAREA","OPTGROUP","OPTION","FIELDSET"].includes(f.tagName)?f.disabled:!1}function J(f){return f.inert&&!f.ownerDocument.documentElement.inert}function V(f){return!(!K(f.parentElement)||!K(f)||f.style.opacity==="0"||window.getComputedStyle(f).height==="0px"||window.getComputedStyle(f).width==="0px")}function Y(f){return!f.parentElement||K(f)&&ue(f)}function te(f,x){let E=ae(f),T=x||f.getSpatialNavigationContainer(),I=ae(T);return!(E.left<I.left||E.right>I.right||E.top<I.top||E.bottom>I.bottom)}function K(f){let x=window.getComputedStyle(f,null),E=x.getPropertyValue("visibility");return x.getPropertyValue("display")!=="none"&&!["hidden","collapse"].includes(E)}function ue(f){let x=ae(f);if(f.nodeName!=="IFRAME"&&(x.top<0||x.left<0||x.top>f.ownerDocument.documentElement.clientHeight||x.left>f.ownerDocument.documentElement.clientWidth))return!1;let E=parseInt(f.offsetWidth)/10,T=parseInt(f.offsetHeight)/10;E=isNaN(E)?1:E,T=isNaN(T)?1:T;let I={middle:[(x.left+x.right)/2,(x.top+x.bottom)/2],leftTop:[x.left+E,x.top+T],rightBottom:[x.right-E,x.bottom-T]};for(let X in I){let M=f.ownerDocument.elementFromPoint(...I[X]);if(f===M||f.contains(M))return!0}return!1}function le(f,x){let E=f.left<=x.right&&f.right>=x.right,T=f.left<=x.left&&f.right>=x.left,I=f.top<=x.top&&f.bottom>=x.top,X=f.top<=x.bottom&&f.bottom>=x.bottom;return(E||T)&&(I||X)}function ne(f,x,E){switch(E){case"left":return me(x,f);case"right":return me(f,x);case"up":return ge(x,f);case"down":return ge(f,x);default:return!1}}function me(f,x){return f.left>=x.right||f.left>=x.left&&f.right>x.right&&f.bottom>x.top&&f.top<x.bottom}function ge(f,x){return f.top>=x.bottom||f.top>=x.top&&f.bottom>x.bottom&&f.left<x.right&&f.right>x.left}function xe(f,x,E){switch(E){case"left":case"right":return f.bottom>x.top&&f.top<x.bottom;case"up":case"down":return f.right>x.left&&f.left<x.right;default:return!1}}function Be(f,x,E){f=a;let T=Pe(E,f,x),I=Math.abs(T.entryPoint.x-T.exitPoint.x),X=Math.abs(T.entryPoint.y-T.exitPoint.y);return Math.sqrt(Math.pow(I,2)+Math.pow(X,2))}function we(f,x,E){let I={left:"right",right:"left",up:"bottom",down:"top"}[E];return Math.abs(f[I]-x[I])}function Ee(f,x,E){let X=0,M=0,Q=5,G=Pe(E,f,x),re=Math.abs(G.entryPoint.x-G.exitPoint.x),ie=Math.abs(G.entryPoint.y-G.exitPoint.y),ye=Math.sqrt(Math.pow(re,2)+Math.pow(ie,2)),Ae,F,k=$e(f,x),L=k.area;switch(E){case"left":case"right":xe(f,x,E)?M=Math.min(k.height/f.height,1):X=f.height/2,Ae=(ie+X)*30,F=Q*M;break;case"up":case"down":xe(f,x,E)?M=Math.min(k.width/f.width,1):X=f.width/2,Ae=(re+X)*2,F=Q*M;break;default:Ae=0,F=0;break}return ye+Ae-F-L}function De(f,x,E){let T=Pe(E,f,x),I=Math.abs(T.entryPoint.x-T.exitPoint.x),X=Math.abs(T.entryPoint.y-T.exitPoint.y);return Math.sqrt(Math.pow(I,2)+Math.pow(X,2))}function He(f,x,E){let T=Pe(E,f,x);return Math.abs(E==="left"||E==="right"?T.entryPoint.x-T.exitPoint.x:T.entryPoint.y-T.exitPoint.y)}function Pe(f="down",x,E){let T={entryPoint:{x:0,y:0},exitPoint:{x:0,y:0}};if(a){switch(T.exitPoint=x,f){case"left":T.entryPoint.x=E.right;break;case"up":T.entryPoint.y=E.bottom;break;case"right":T.entryPoint.x=E.left;break;case"down":T.entryPoint.y=E.top;break}switch(f){case"left":case"right":a.y<=E.top?T.entryPoint.y=E.top:a.y<E.bottom?T.entryPoint.y=a.y:T.entryPoint.y=E.bottom;break;case"up":case"down":a.x<=E.left?T.entryPoint.x=E.left:a.x<E.right?T.entryPoint.x=a.x:T.entryPoint.x=E.right;break}}else{switch(f){case"left":T.exitPoint.x=x.left,T.entryPoint.x=E.right<x.left?E.right:x.left;break;case"up":T.exitPoint.y=x.top,T.entryPoint.y=E.bottom<x.top?E.bottom:x.top;break;case"right":T.exitPoint.x=x.right,T.entryPoint.x=E.left>x.right?E.left:x.right;break;case"down":T.exitPoint.y=x.bottom,T.entryPoint.y=E.top>x.bottom?E.top:x.bottom;break}switch(f){case"left":case"right":ge(x,E)?(T.exitPoint.y=x.top,T.entryPoint.y=E.bottom<x.top?E.bottom:x.top):ge(E,x)?(T.exitPoint.y=x.bottom,T.entryPoint.y=E.top>x.bottom?E.top:x.bottom):(T.exitPoint.y=Math.max(x.top,E.top),T.entryPoint.y=T.exitPoint.y);break;case"up":case"down":me(x,E)?(T.exitPoint.x=x.left,T.entryPoint.x=E.right<x.left?E.right:x.left):me(E,x)?(T.exitPoint.x=x.right,T.entryPoint.x=E.left>x.right?E.left:x.right):(T.exitPoint.x=Math.max(x.left,E.left),T.entryPoint.x=T.exitPoint.x);break}}return T}function $e(f,x){let E={width:0,height:0,area:0},T=[Math.max(f.left,x.left),Math.max(f.top,x.top)],I=[Math.min(f.right,x.right),Math.min(f.bottom,x.bottom)];return E.width=Math.abs(T[0]-I[0]),E.height=Math.abs(T[1]-I[1]),T[0]>=I[0]||T[1]>=I[1]||(E.area=Math.sqrt(E.width*E.height)),E}function Qe(f){let x=["email","date","month","number","time","week"],E=["password","text","search","tel","url",null],T=document.activeElement,I={left:!1,up:!1,right:!1,down:!1},X=u[f.keyCode];if(X===void 0)return I;if(x.includes(T.getAttribute("type"))&&(X==="up"||X==="down"))I[X]=!0;else if(E.includes(T.getAttribute("type"))||T.nodeName==="TEXTAREA"){let M=T.selectionStart,Q=T.selectionEnd;M===Q&&(M===0&&(I.left=!0,I.up=!0),Q===T.value.length&&(I.right=!0,I.down=!0))}else I[X]=!0;return I}function ae(f){let x=l&&l.get(f);if(!x){let E=f.getBoundingClientRect();x={top:Number(E.top.toFixed(2)),right:Number(E.right.toFixed(2)),bottom:Number(E.bottom.toFixed(2)),left:Number(E.left.toFixed(2)),width:Number(E.width.toFixed(2)),height:Number(E.height.toFixed(2))},l&&l.set(f,x)}return x}function Ze(f){let E=f.getSpatialNavigationContainer().focusableAreas(),T=[];return E.forEach(I=>{f!==I&&te(I,f)&&T.push(I)}),T}function et(){function f(E,T){return Z(E,T)&&!se(E,T)||!E.parentElement&&!ee(E,T)}function x(E,T,I,X){let M=T,Q=null;if((M===document||M===document.documentElement)&&(M=document.body||document.documentElement),(_(M)||M.nodeName==="BODY")&&M.nodeName!=="INPUT"){M.nodeName==="IFRAME"&&(M=M.contentDocument.body);let ie=m(M,X);if(Array.isArray(ie)&&ie.length>0)return E?p(M,I,ie):M.spatialNavigationSearch(I,{candidates:ie});if(f(M,I))return E?[]:M}let G=M.getSpatialNavigationContainer(),re=G.parentElement?G.getSpatialNavigationContainer():null;for(!re&&window.location!==window.parent.location&&(re=window.parent.document.documentElement);re;){let ie=t(M,m(G,X),I,G);if(Array.isArray(ie)&&ie.length>0){if(Q=M.spatialNavigationSearch(I,{candidates:ie,container:G}),Q)return E?ie:Q}else{if(f(G,I))return E?[]:M;if(G===document||G===document.documentElement){if(G=window.document.documentElement,window.location!==window.parent.location)if(M=window.frameElement,G=window.parent.document.documentElement,G.parentElement)re=G.getSpatialNavigationContainer();else{re=null;break}}else if(z(G)&&(M=G),G=re,G.parentElement)re=G.getSpatialNavigationContainer();else{re=null;break}}}if(!re&&G){let ie=t(M,m(G,X),I,G);if(Array.isArray(ie)&&ie.length>0&&(Q=M.spatialNavigationSearch(I,{candidates:ie,container:G}),Q))return E?ie:Q}if(f(G,I))return Q=M,Q}return{isContainer:_,isScrollContainer:q,isVisibleInScroller:ce,findCandidates:x.bind(null,!0),findNextTarget:x.bind(null,!1),getDistanceFromTarget:(E,T,I)=>(_(E)||E.nodeName==="BODY")&&E.nodeName!=="INPUT"&&m(E).includes(T)?we(ae(E),ae(T),I):Ee(ae(E),ae(T),I)}}function Je(f){let x=window.__spatialNavigation__&&window.__spatialNavigation__.keyMode;window.__spatialNavigation__=f===!1?Xe():Object.assign(Xe(),et()),window.__spatialNavigation__.keyMode=x,Object.seal(window.__spatialNavigation__)}function Xe(){return{enableExperimentalAPIs:Je,get keyMode(){return this._keymode?this._keymode:"ARROW"},set keyMode(f){this._keymode=["SHIFTARROW","ARROW","NONE"].includes(f)?f:"ARROW"},setStartingPoint:function(f,x){a=f&&x?{x:f,y:x}:null}}}s(),Je(!1),window.addEventListener("load",()=>{B()})})();var ot={};var Xt=document.createElement("style"),ut="";function Wt(){ut=`
14
- ytlr-guide-response yt-focus-container {
15
- background-color: ${U("focusContainerColor")};
16
- }
17
-
18
- #container {
19
- background-color: ${U("routeColor")} !important;
20
- }
21
- `;let u=document.querySelector("style[nonce]");u?u.textContent+=ut:Xt.textContent=ut}document.head.appendChild(Xt);Wt();var lt=Wt;function Tn(){let u,r;for(let a in window._yttv)if(window._yttv[a]&&window._yttv[a].getInstance)if(window._yttv[a].toString().includes("ytlrActionRouter"))u=window._yttv[a].getInstance();else{let d=!1,o=window._yttv[a].getInstance(),s=Object.getOwnPropertyNames(Object.getPrototypeOf(o));for(let B of s)typeof o[B]=="function"&&o[B].toString().includes("ytlrActionRouter")&&(r=o[B],d=!0);d&&(u=window._yttv[a].getInstance())}if(!u)return;if(!r){let a=Object.getOwnPropertyNames(Object.getPrototypeOf(u));for(let d of a)typeof u[d]=="function"&&u[d].toString().includes("ytlrActionRouter")&&(r=u[d])}if(!r)return;let l;for(let a in window._yttv)window._yttv[a]&&typeof window._yttv[a]=="function"&&window._yttv[a].toString().includes("this.actionName")&&(l=window._yttv[a]);return{executeFunction:r.bind(u),commandFunction:l}}var je=Tn;var Fn=setInterval(()=>{document.querySelector("video")&&(Bn(),zt(),clearInterval(Fn))},250),ct=null;function Bn(){let u=document.querySelector("style[nonce]");if(u)u.textContent+=ot;else{let s=document.createElement("style");s.textContent=ot,document.head.appendChild(s)}if(U("enableFixedUI"))try{window.tectonicConfig.featureSwitches.isLimitedMemory=!1,window.tectonicConfig.clientData.legacyApplicationQuality="full-animation",window.tectonicConfig.featureSwitches.enableAnimations=!0,window.tectonicConfig.featureSwitches.enableOnScrollLinearAnimation=!0,window.tectonicConfig.featureSwitches.enableListAnimations=!0}catch{}window.__spatialNavigation__.keyMode="NONE";var l={37:"left",38:"up",39:"right",40:"down"},a=document.createElement("div");a.classList.add("ytaf-ui-container"),a.style.display="none",a.setAttribute("tabindex",0),a.addEventListener("focus",()=>console.info("uiContainer focused!"),!0),a.addEventListener("blur",()=>console.info("uiContainer blured!"),!0),a.addEventListener("keydown",s=>{if(console.info("uiContainer key event:",s.type,s.keyCode,s),s.keyCode!==404&&s.keyCode!==172){if(s.keyCode in l)navigate(l[s.keyCode]);else if(s.keyCode===13||s.keyCode===32){console.log("OK button pressed");let B=document.querySelector(":focus");B.type==="checkbox"&&(B.checked=!B.checked,B.dispatchEvent(new Event("change"))),s.preventDefault(),s.stopPropagation();return}else if(s.keyCode===27&&document.querySelector(":focus").type!=="text")a.style.display="none",a.blur();else if(document.querySelector(":focus").type==="text"&&s.keyCode===27){let B=document.querySelector(":focus");B.value=B.value.slice(0,-1)}(s.key==="Enter"||s.Uc?.key==="Enter")&&document.querySelector(":focus").type==="text"&&document.querySelector(":focus").dispatchEvent(new Event("change"))}},!0);try{a.innerHTML=`
22
- <h1>TizenTube Theme Configuration</h1>
23
- <label for="__barColor">Navigation Bar Color: <input type="text" id="__barColor"/></label>
24
- <label for="__routeColor">Main Content Color: <input type="text" id="__routeColor"/></label>
25
- <div><small>Sponsor segments skipping - https://sponsor.ajay.app</small></div>
26
- `,document.querySelector("body").appendChild(a),a.querySelector("#__barColor").value=U("focusContainerColor"),a.querySelector("#__barColor").addEventListener("change",s=>{ke("focusContainerColor",s.target.value),lt()}),a.querySelector("#__routeColor").value=U("routeColor"),a.querySelector("#__routeColor").addEventListener("change",s=>{ke("routeColor",s.target.value),lt()})}catch{}var d=s=>{if(console.info("Key event:",s.type,s.keyCode,s.keyCode,s.defaultPrevented),U("enableScreenDimming")&&(ct&&clearTimeout(ct),document.getElementById("container").style.setProperty("opacity","1","important"),ct=setTimeout(()=>{document.querySelector(".html5-video-player").getPlayerStateObject().isPlaying||document.getElementById("container").style.setProperty("opacity",(1-U("dimmingOpacity")).toString(),"important")},U("dimmingTimeout")*1e3)),s.keyCode==403){if(console.info("Taking over!"),s.preventDefault(),s.stopPropagation(),s.type==="keydown")try{a.style.display==="none"?(console.info("Showing and focusing!"),a.style.display="block",a.focus()):(console.info("Hiding!"),a.style.display="none",a.blur())}catch{}return!1}else s.keyCode==404?s.type==="keydown"&&Ne():s.keyCode==39&&s.type==="keydown"&&document.querySelector("ytlr-search-text-box > .zylon-focus")&&window.isPipPlaying&&(document.querySelector("ytlr-player").style.setProperty("background-color","rgb(0, 0, 0)"),gt());return!0};document.addEventListener("keydown",d,!0),document.addEventListener("keypress",d,!0),document.addEventListener("keyup",d,!0),U("showWelcomeToast")&&setTimeout(()=>{de("Welcome to TizenTube","Go to settings and click on TizenTube Settings for settings, press [RED] to open TizenTube Theme Settings.")},2e3),U("launchToOnStartup")?oe(JSON.parse(U("launchToOnStartup"))):oe({signalAction:{signal:"SOFT_RELOAD_PAGE"}});let o=je();if(o&&o.executeFunction(new o.commandFunction("reloadGuideAction")),U("enableFixedUI"))try{new MutationObserver((B,A)=>{let C=document.body;C.classList.contains("app-quality-root")&&C.classList.remove("app-quality-root")}).observe(document.body,{attributes:!0,childList:!1,subtree:!1})}catch{}}ve.addEventListener("configChange",u=>{let{key:r,value:l}=u.detail;r==="enableWhoIsWatchingMenu"&&Yt(l)});function Yt(u){let r=JSON.parse(localStorage["yt.leanback.default::recurring_actions"]),l=new Date;if(!u)l.setDate(l.getDate()+7),r.data.data["startup-screen-account-selector-with-guest"]&&(r.data.data["startup-screen-account-selector-with-guest"].lastFired=l.getTime()),r.data.data.whos_watching_fullscreen_zero_accounts.lastFired=l.getTime(),r.data.data["startup-screen-signed-out-welcome-back"]&&(r.data.data["startup-screen-signed-out-welcome-back"].lastFired=l.getTime()),localStorage["yt.leanback.default::recurring_actions"]=JSON.stringify(r);else{if(l.getTime()-r.data.data["startup-screen-account-selector-with-guest"]?.lastFired>0&&l.getTime()-r.data.data["startup-screen-account-selector-with-guest"]?.lastFired<7200*1e3)return;r.data.data["startup-screen-account-selector-with-guest"]&&(r.data.data["startup-screen-account-selector-with-guest"].lastFired=l.getTime()),r.data.data.whos_watching_fullscreen_zero_accounts.lastFired=l.getTime(),r.data.data["startup-screen-signed-out-welcome-back"]&&(r.data.data["startup-screen-signed-out-welcome-back"].lastFired=l.getTime()),localStorage["yt.leanback.default::recurring_actions"]=JSON.stringify(r)}}Yt(U("enableWhoIsWatchingMenu"));var Pn={PLAYER:".html5-video-player"},Kt={YT_STATE_CHANGE:"onStateChange",CONFIG_CHANGE:"configChange"},Gt={QUALITY:"preferredVideoQuality"},ht=class{#e=null;#n=null;#i=null;#t=!1;constructor(){this.init()}init(){this.#r(),this.#o()}#r(){clearTimeout(this.#n);let r=document.querySelector(Pn.PLAYER);if(!r){this.#n=setTimeout(()=>this.#r(),100);return}this.#e=r,this.#e.addEventListener(Kt.YT_STATE_CHANGE,this.#s),this.#s()}#o(){ve.addEventListener(Kt.CONFIG_CHANGE,r=>{r.detail?.key===Gt.QUALITY&&this.#a()})}#s=()=>{let r=this.#e?.getPlayerStateObject?.(),a=this.#e?.getVideoData?.()?.video_id;a!==this.#i&&(this.#i=a,this.#t=!1);let d=Object.values(this.#e.getVideoStats()).find(o=>o&&o==="shortspage");r?.isPlaying&&!this.#t&&!d&&(this.#a(),this.#t=!0)};#a(){let r=U(Gt.QUALITY);if(!(!r||r==="auto"||!this.#e))try{let l=this.#u(r);l&&this.#e.setPlaybackQualityRange(l,l)}catch(l){console.warn("[PreferredQuality] Failed to apply quality:",l)}}#u(r){let l=this.#e.getAvailableQualityData();if(!l?.length)return"highres";let a=s=>parseInt(s,10)||0,d=a(r),o=l.find(s=>a(s.qualityLabel)===d);return o?o.quality:"highres"}};window.preferredVideoQualityHandler=new ht;window.queuedVideos={videos:[],lastVideoId:null};function jt(){let u=document.querySelector(".html5-video-player");if(!u)return setTimeout(jt,250);u.addEventListener("onStateChange",()=>{let r=u.getPlayerStateObject(),l=u.getVideoData();if(window.queuedVideos.videos.length!==0)if(r.isEnded){let a=window.queuedVideos.videos.findIndex(d=>d.tileRenderer.contentId===l.video_id);if(a!==-1){if(a+1>=window.queuedVideos.videos.length){oe({customAction:{action:"CLEAR_QUEUE"}});return}let d=window.queuedVideos.videos[a+1].tileRenderer.onSelectCommand;setTimeout(()=>oe(d),500)}else if(window.queuedVideos.lastVideoId){let d=window.queuedVideos.videos.findIndex(o=>o.tileRenderer.contentId===window.queuedVideos.lastVideoId);if(d!==-1&&d+1<window.queuedVideos.videos.length){let o=window.queuedVideos.videos[d+1].tileRenderer.onSelectCommand;setTimeout(()=>oe(o),500)}else{oe({customAction:{action:"CLEAR_QUEUE"}});return}}else{let d=window.queuedVideos.videos[0].tileRenderer.onSelectCommand;setTimeout(()=>oe(d),500)}}else r.isPlaying&&(document.getElementById("container").style.setProperty("opacity","1","important"),window.queuedVideos.videos.find(a=>a.contentId===l.video_id)&&(window.queuedVideos.lastVideoId=l.video_id))})}jt();ve.addEventListener("configChange",u=>{qe()});function qe(){if(!window._yttv)return setTimeout(qe,250);Object.values(window._yttv).find(r=>r instanceof Map&&r.has("ENABLE_PREVIEWS_WITH_SOUND"))?.set("ENABLE_PREVIEWS_WITH_SOUND",U("enablePreviews"))}document.readyState==="complete"?qe():window.addEventListener("load",qe);var ze=it(qt(),1),Zt=it(Qt(),1);function en(u){let r=u,l=0,a;try{a=ze.default.parse(u,{range:!0,tolerant:!0,sourceType:"script"})}catch(o){try{let s="("+u+")";a=ze.default.parse(s,{range:!0,tolerant:!0,sourceType:"script"}),l=1}catch{try{a=ze.default.parse(u,{range:!0,tolerant:!0,sourceType:"module"})}catch{try{let A="("+u+")";a=ze.default.parse(A,{range:!0,tolerant:!0,sourceType:"module"}),l=1}catch{throw o}}}}let d=[];return Zt.default.traverse(a,{enter:function(o){if(o.type!=="AssignmentExpression")return;let s=o.right;if(!s||!s.range)return;let B=r.slice(s.range[0]-l,s.range[1]-l),A=null;if(s.type==="CallExpression"&&s.callee&&s.callee.type==="FunctionExpression"&&s.callee.body){let C=s.callee.body.body||[];for(let c=0;c<C.length;c++){let m=C[c];if(m.type==="ReturnStatement"&&m.argument&&m.argument.range){A=r.slice(m.argument.range[0]-l,m.argument.range[1]-l);break}}}else(s.type==="FunctionExpression"||s.type==="ArrowFunctionExpression")&&(A=B);d.push({left:o.left&&o.left.range?r.slice(o.left.range[0]-l,o.left.range[1]-l):null,rhs:B,returned:A})}}),d}function Ve(){if(!window._yttv||!document.querySelector("video"))return setTimeout(Ve,250);let u=Object.keys(window._yttv).filter(a=>typeof window._yttv[a]=="function"&&window._yttv[a].toString().includes("TRANSPORT_CONTROLS_BUTTON_TYPE_FEATURED_ACTION"));if(u.length===0){setTimeout(Ve,250);return}let r=window._yttv[u[0]];function l(){let a=Array.prototype.slice.call(arguments),d=/^class\s/.test(r.toString());function o(t,n){return typeof Reflect<"u"&&typeof Reflect.construct=="function"?Reflect.construct(t,n,l):new r(...n)}if(!(this instanceof l))return d?o(r,a):r.apply(this,a);let s;d?s=o(r,a):(r.apply(this,a),s=this);let B=en(r.toString()),A={type:"TRANSPORT_CONTROLS_BUTTON_TYPE_PIP",button:{buttonRenderer:Fe(!1,"Mini Player","CLEAR_COOKIES",{customAction:{action:"ENTER_PIP"}})}},C=B.find(t=>t.rhs.includes("TRANSPORT_CONTROLS_BUTTON_TYPE_PLAYBACK_SETTINGS")).left.split(".")[1];if(!C)return s;let c=s[C];s[C]=function(){let t=c.apply(this,arguments);return t.find(n=>n.type==="TRANSPORT_CONTROLS_BUTTON_TYPE_PIP")||t.splice(1,0,A),t};let m=B.find(t=>{if(t.rhs.includes("skipNextButton")){let n=t.rhs.indexOf("skipNextButton");if(t.rhs.indexOf("skipPreviousButton")>n)return!0}}).left.split(".")[1],p=B.find(t=>{if(t.rhs.includes("skipPreviousButton")){let n=t.rhs.indexOf("skipNextButton"),i=t.rhs.indexOf("skipPreviousButton");if(n>i)return!0}}).left.split(".")[1],e=B.find(t=>t.rhs.includes("props.data.engagementActions")).left.split(".")[1];if(e&&U("enableSpeedControlsButton")){let t=s[e];s[e]=function(){let n=t.apply(this,arguments);return n.find(i=>i.type==="TRANSPORT_CONTROLS_BUTTON_TYPE_SPEED")||n.push({type:"TRANSPORT_CONTROLS_BUTTON_TYPE_SPEED",button:{buttonRenderer:Fe(!1,"Speed Controls","SLOW_MOTION_VIDEO",{customAction:{action:"TT_SPEED_SETTINGS_SHOW"}})}}),n}}if(!U("enableSuperThanksButton")){let t=s[e];s[e]=function(){return t.apply(this,arguments).filter(g=>g.type!=="TRANSPORT_CONTROLS_BUTTON_TYPE_SUPER_THANKS").filter(g=>g.type!=="TRANSPORT_CONTROLS_BUTTON_TYPE_SHOPPING")}}if(U("enablePreviousNextButtons")){if(!m||!p)return s;s[m]=function(){return Fe(!1,"Previous","SKIP_PREVIOUS",{signalAction:{signal:"PLAYER_PLAY_PREVIOUS"}})},s[p]=function(){return Fe(!1,"Next","SKIP_NEXT",{signalAction:{signal:"PLAYER_PLAY_NEXT"}})}}return s}U("enablePatchingVideoPlayer")&&(l.prototype=r.prototype,window._yttv[u[0]]=l)}document.readyState==="complete"||document.readyState==="interactive"?Ve():window.addEventListener("DOMContentLoaded",Ve);var In=JSON.parse;JSON.parse=function(){let u=In.apply(this,arguments),r=U("disabledSidebarContents");if(u.items&&Array.isArray(u.items)&&u.items[0].guideSectionRenderer)for(let l=0;l<u.items.length;l++){let a=u.items[l].guideSectionRenderer;for(let d=0;d<a.items.length;d++){let o=a.items[d].guideEntryRenderer;o&&r.includes(o.icon.iconType)&&(a.items.splice(d,1),d--)}}return u};ve.addEventListener("configChange",u=>{if(u.detail.key==="disabledSidebarContents"){let r=je();r&&r.executeFunction(new r.commandFunction("reloadGuideAction"))}});})();
27
- })();